1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libident 0.32.
4#
5# Report bugs to <rdenis@simphalempin.com>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291       echo_test_string="`eval $cmd`" &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='libident'
425PACKAGE_TARNAME='libident'
426PACKAGE_VERSION='0.32'
427PACKAGE_STRING='libident 0.32'
428PACKAGE_BUGREPORT='rdenis@simphalempin.com'
429
430ac_unique_file="ident.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS TESTERS_TRUE TESTERS_FALSE LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures libident 0.32 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015System types:
1016  --build=BUILD     configure for building on BUILD [guessed]
1017  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022  case $ac_init_help in
1023     short | recursive ) echo "Configuration of libident 0.32:";;
1024   esac
1025  cat <<\_ACEOF
1026
1027Optional Features:
1028  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030  --disable-dependency-tracking Speeds up one-time builds
1031  --enable-dependency-tracking  Do not reject slow dependency extractors
1032  --enable-shared[=PKGS]
1033                          build shared libraries [default=yes]
1034  --enable-static[=PKGS]
1035                          build static libraries [default=yes]
1036  --enable-fast-install[=PKGS]
1037                          optimize for fast installation [default=yes]
1038  --disable-libtool-lock  avoid locking (might break parallel builds)
1039  --enable-debug          Turn on debugging
1040  --enable-testers        Turn on tests program compilation
1041
1042Optional Packages:
1043  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046  --with-pic              try to use only PIC/non-PIC objects [default=use
1047                          both]
1048  --with-tags[=TAGS]
1049                          include additional configurations [automatic]
1050
1051Some influential environment variables:
1052  CC          C compiler command
1053  CFLAGS      C compiler flags
1054  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055              nonstandard directory <lib dir>
1056  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057              headers in a nonstandard directory <include dir>
1058  CPP         C preprocessor
1059  CXX         C++ compiler command
1060  CXXFLAGS    C++ compiler flags
1061  CXXCPP      C++ preprocessor
1062  F77         Fortran 77 compiler command
1063  FFLAGS      Fortran 77 compiler flags
1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068Report bugs to <rdenis@simphalempin.com>.
1069_ACEOF
1070fi
1071
1072if test "$ac_init_help" = "recursive"; then
1073  # If there are subdirs, report their specific --help.
1074  ac_popdir=`pwd`
1075  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076    test -d $ac_dir || continue
1077    ac_builddir=.
1078
1079if test "$ac_dir" != .; then
1080  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081  # A "../" for each directory in $ac_dir_suffix.
1082  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083else
1084  ac_dir_suffix= ac_top_builddir=
1085fi
1086
1087case $srcdir in
1088  .)  # No --srcdir option.  We are building in place.
1089    ac_srcdir=.
1090    if test -z "$ac_top_builddir"; then
1091       ac_top_srcdir=.
1092    else
1093       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094    fi ;;
1095  [\\/]* | ?:[\\/]* )  # Absolute path.
1096    ac_srcdir=$srcdir$ac_dir_suffix;
1097    ac_top_srcdir=$srcdir ;;
1098  *) # Relative path.
1099    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101esac
1102
1103# Do not use `cd foo && pwd` to compute absolute paths, because
1104# the directories may not exist.
1105case `pwd` in
1106.) ac_abs_builddir="$ac_dir";;
1107*)
1108  case "$ac_dir" in
1109  .) ac_abs_builddir=`pwd`;;
1110  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112  esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_builddir=${ac_top_builddir}.;;
1116*)
1117  case ${ac_top_builddir}. in
1118  .) ac_abs_top_builddir=$ac_abs_builddir;;
1119  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121  esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_srcdir=$ac_srcdir;;
1125*)
1126  case $ac_srcdir in
1127  .) ac_abs_srcdir=$ac_abs_builddir;;
1128  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130  esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_srcdir=$ac_top_srcdir;;
1134*)
1135  case $ac_top_srcdir in
1136  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139  esac;;
1140esac
1141
1142    cd $ac_dir
1143    # Check for guested configure; otherwise get Cygnus style configure.
1144    if test -f $ac_srcdir/configure.gnu; then
1145      echo
1146      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1147    elif test -f $ac_srcdir/configure; then
1148      echo
1149      $SHELL $ac_srcdir/configure  --help=recursive
1150    elif test -f $ac_srcdir/configure.ac ||
1151	   test -f $ac_srcdir/configure.in; then
1152      echo
1153      $ac_configure --help
1154    else
1155      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156    fi
1157    cd "$ac_popdir"
1158  done
1159fi
1160
1161test -n "$ac_init_help" && exit 0
1162if $ac_init_version; then
1163  cat <<\_ACEOF
1164libident configure 0.32
1165generated by GNU Autoconf 2.59
1166
1167Copyright (C) 2003 Free Software Foundation, Inc.
1168This configure script is free software; the Free Software Foundation
1169gives unlimited permission to copy, distribute and modify it.
1170_ACEOF
1171  exit 0
1172fi
1173exec 5>config.log
1174cat >&5 <<_ACEOF
1175This file contains any messages produced by compilers while
1176running configure, to aid debugging if configure makes a mistake.
1177
1178It was created by libident $as_me 0.32, which was
1179generated by GNU Autoconf 2.59.  Invocation command line was
1180
1181  $ $0 $@
1182
1183_ACEOF
1184{
1185cat <<_ASUNAME
1186## --------- ##
1187## Platform. ##
1188## --------- ##
1189
1190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1198
1199/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1200/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1203/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1204/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1205/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1206
1207_ASUNAME
1208
1209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210for as_dir in $PATH
1211do
1212  IFS=$as_save_IFS
1213  test -z "$as_dir" && as_dir=.
1214  echo "PATH: $as_dir"
1215done
1216
1217} >&5
1218
1219cat >&5 <<_ACEOF
1220
1221
1222## ----------- ##
1223## Core tests. ##
1224## ----------- ##
1225
1226_ACEOF
1227
1228
1229# Keep a trace of the command line.
1230# Strip out --no-create and --no-recursion so they do not pile up.
1231# Strip out --silent because we don't want to record it for future runs.
1232# Also quote any args containing shell meta-characters.
1233# Make two passes to allow for proper duplicate-argument suppression.
1234ac_configure_args=
1235ac_configure_args0=
1236ac_configure_args1=
1237ac_sep=
1238ac_must_keep_next=false
1239for ac_pass in 1 2
1240do
1241  for ac_arg
1242  do
1243    case $ac_arg in
1244    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246    | -silent | --silent | --silen | --sile | --sil)
1247      continue ;;
1248    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250    esac
1251    case $ac_pass in
1252    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253    2)
1254      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255      if test $ac_must_keep_next = true; then
1256	ac_must_keep_next=false # Got value, back to normal.
1257      else
1258	case $ac_arg in
1259	  *=* | --config-cache | -C | -disable-* | --disable-* \
1260	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262	  | -with-* | --with-* | -without-* | --without-* | --x)
1263	    case "$ac_configure_args0 " in
1264	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265	    esac
1266	    ;;
1267	  -* ) ac_must_keep_next=true ;;
1268	esac
1269      fi
1270      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271      # Get rid of the leading space.
1272      ac_sep=" "
1273      ;;
1274    esac
1275  done
1276done
1277$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279
1280# When interrupted or exit'd, cleanup temporary files, and complete
1281# config.log.  We remove comments because anyway the quotes in there
1282# would cause problems or look ugly.
1283# WARNING: Be sure not to use single quotes in there, as some shells,
1284# such as our DU 5.0 friend, will then `close' the trap.
1285trap 'exit_status=$?
1286  # Save into config.log some information that might help in debugging.
1287  {
1288    echo
1289
1290    cat <<\_ASBOX
1291## ---------------- ##
1292## Cache variables. ##
1293## ---------------- ##
1294_ASBOX
1295    echo
1296    # The following way of writing the cache mishandles newlines in values,
1297{
1298  (set) 2>&1 |
1299    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300    *ac_space=\ *)
1301      sed -n \
1302	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304      ;;
1305    *)
1306      sed -n \
1307	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308      ;;
1309    esac;
1310}
1311    echo
1312
1313    cat <<\_ASBOX
1314## ----------------- ##
1315## Output variables. ##
1316## ----------------- ##
1317_ASBOX
1318    echo
1319    for ac_var in $ac_subst_vars
1320    do
1321      eval ac_val=$`echo $ac_var`
1322      echo "$ac_var='"'"'$ac_val'"'"'"
1323    done | sort
1324    echo
1325
1326    if test -n "$ac_subst_files"; then
1327      cat <<\_ASBOX
1328## ------------- ##
1329## Output files. ##
1330## ------------- ##
1331_ASBOX
1332      echo
1333      for ac_var in $ac_subst_files
1334      do
1335	eval ac_val=$`echo $ac_var`
1336	echo "$ac_var='"'"'$ac_val'"'"'"
1337      done | sort
1338      echo
1339    fi
1340
1341    if test -s confdefs.h; then
1342      cat <<\_ASBOX
1343## ----------- ##
1344## confdefs.h. ##
1345## ----------- ##
1346_ASBOX
1347      echo
1348      sed "/^$/d" confdefs.h | sort
1349      echo
1350    fi
1351    test "$ac_signal" != 0 &&
1352      echo "$as_me: caught signal $ac_signal"
1353    echo "$as_me: exit $exit_status"
1354  } >&5
1355  rm -f core *.core &&
1356  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357    exit $exit_status
1358     ' 0
1359for ac_signal in 1 2 13 15; do
1360  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361done
1362ac_signal=0
1363
1364# confdefs.h avoids OS command line length limits that DEFS can exceed.
1365rm -rf conftest* confdefs.h
1366# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367echo >confdefs.h
1368
1369# Predefined preprocessor variables.
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_NAME "$PACKAGE_NAME"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_STRING "$PACKAGE_STRING"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393_ACEOF
1394
1395
1396# Let the site file select an alternate cache file if it wants to.
1397# Prefer explicitly selected file to automatically selected ones.
1398if test -z "$CONFIG_SITE"; then
1399  if test "x$prefix" != xNONE; then
1400    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401  else
1402    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403  fi
1404fi
1405for ac_site_file in $CONFIG_SITE; do
1406  if test -r "$ac_site_file"; then
1407    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408echo "$as_me: loading site script $ac_site_file" >&6;}
1409    sed 's/^/| /' "$ac_site_file" >&5
1410    . "$ac_site_file"
1411  fi
1412done
1413
1414if test -r "$cache_file"; then
1415  # Some versions of bash will fail to source /dev/null (special
1416  # files actually), so we avoid doing that.
1417  if test -f "$cache_file"; then
1418    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419echo "$as_me: loading cache $cache_file" >&6;}
1420    case $cache_file in
1421      [\\/]* | ?:[\\/]* ) . $cache_file;;
1422      *)                      . ./$cache_file;;
1423    esac
1424  fi
1425else
1426  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427echo "$as_me: creating cache $cache_file" >&6;}
1428  >$cache_file
1429fi
1430
1431# Check that the precious variables saved in the cache have kept the same
1432# value.
1433ac_cache_corrupted=false
1434for ac_var in `(set) 2>&1 |
1435	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437  eval ac_new_set=\$ac_env_${ac_var}_set
1438  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439  eval ac_new_val="\$ac_env_${ac_var}_value"
1440  case $ac_old_set,$ac_new_set in
1441    set,)
1442      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444      ac_cache_corrupted=: ;;
1445    ,set)
1446      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448      ac_cache_corrupted=: ;;
1449    ,);;
1450    *)
1451      if test "x$ac_old_val" != "x$ac_new_val"; then
1452	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1455echo "$as_me:   former value:  $ac_old_val" >&2;}
1456	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1457echo "$as_me:   current value: $ac_new_val" >&2;}
1458	ac_cache_corrupted=:
1459      fi;;
1460  esac
1461  # Pass precious variables to config.status.
1462  if test "$ac_new_set" = set; then
1463    case $ac_new_val in
1464    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466    *) ac_arg=$ac_var=$ac_new_val ;;
1467    esac
1468    case " $ac_configure_args " in
1469      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1470      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471    esac
1472  fi
1473done
1474if $ac_cache_corrupted; then
1475  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479   { (exit 1); exit 1; }; }
1480fi
1481
1482ac_ext=c
1483ac_cpp='$CPP $CPPFLAGS'
1484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515ac_aux_dir=
1516for ac_dir in admin $srcdir/admin; do
1517  if test -f $ac_dir/install-sh; then
1518    ac_aux_dir=$ac_dir
1519    ac_install_sh="$ac_aux_dir/install-sh -c"
1520    break
1521  elif test -f $ac_dir/install.sh; then
1522    ac_aux_dir=$ac_dir
1523    ac_install_sh="$ac_aux_dir/install.sh -c"
1524    break
1525  elif test -f $ac_dir/shtool; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/shtool install -c"
1528    break
1529  fi
1530done
1531if test -z "$ac_aux_dir"; then
1532  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1533echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1534   { (exit 1); exit 1; }; }
1535fi
1536ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1539
1540am__api_version="1.7"
1541# Find a good install program.  We prefer a C program (faster),
1542# so one script is as good as another.  But avoid the broken or
1543# incompatible versions:
1544# SysV /etc/install, /usr/sbin/install
1545# SunOS /usr/etc/install
1546# IRIX /sbin/install
1547# AIX /bin/install
1548# AmigaOS /C/install, which installs bootblocks on floppy discs
1549# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552# OS/2's system install, which has a completely different semantic
1553# ./install, which can be erroneously created by make from ./install.sh.
1554echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1555echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1556if test -z "$INSTALL"; then
1557if test "${ac_cv_path_install+set}" = set; then
1558  echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561for as_dir in $PATH
1562do
1563  IFS=$as_save_IFS
1564  test -z "$as_dir" && as_dir=.
1565  # Account for people who put trailing slashes in PATH elements.
1566case $as_dir/ in
1567  ./ | .// | /cC/* | \
1568  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1569  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1570  /usr/ucb/* ) ;;
1571  *)
1572    # OSF1 and SCO ODT 3.0 have their own names for install.
1573    # Don't use installbsd from OSF since it installs stuff as root
1574    # by default.
1575    for ac_prog in ginstall scoinst install; do
1576      for ac_exec_ext in '' $ac_executable_extensions; do
1577	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1578	  if test $ac_prog = install &&
1579	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1580	    # AIX install.  It has an incompatible calling convention.
1581	    :
1582	  elif test $ac_prog = install &&
1583	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584	    # program-specific install script used by HP pwplus--don't use.
1585	    :
1586	  else
1587	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1588	    break 3
1589	  fi
1590	fi
1591      done
1592    done
1593    ;;
1594esac
1595done
1596
1597
1598fi
1599  if test "${ac_cv_path_install+set}" = set; then
1600    INSTALL=$ac_cv_path_install
1601  else
1602    # As a last resort, use the slow shell script.  We don't cache a
1603    # path for INSTALL within a source directory, because that will
1604    # break other packages using the cache if that directory is
1605    # removed, or if the path is relative.
1606    INSTALL=$ac_install_sh
1607  fi
1608fi
1609echo "$as_me:$LINENO: result: $INSTALL" >&5
1610echo "${ECHO_T}$INSTALL" >&6
1611
1612# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1613# It thinks the first close brace ends the variable substitution.
1614test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1615
1616test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1617
1618test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1619
1620echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1621echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1622# Just in case
1623sleep 1
1624echo timestamp > conftest.file
1625# Do `set' in a subshell so we don't clobber the current shell's
1626# arguments.  Must try -L first in case configure is actually a
1627# symlink; some systems play weird games with the mod time of symlinks
1628# (eg FreeBSD returns the mod time of the symlink's containing
1629# directory).
1630if (
1631   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1632   if test "$*" = "X"; then
1633      # -L didn't work.
1634      set X `ls -t $srcdir/configure conftest.file`
1635   fi
1636   rm -f conftest.file
1637   if test "$*" != "X $srcdir/configure conftest.file" \
1638      && test "$*" != "X conftest.file $srcdir/configure"; then
1639
1640      # If neither matched, then we have a broken ls.  This can happen
1641      # if, for instance, CONFIG_SHELL is bash and it inherits a
1642      # broken ls alias from the environment.  This has actually
1643      # happened.  Such a system could not be considered "sane".
1644      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1645alias in your environment" >&5
1646echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1647alias in your environment" >&2;}
1648   { (exit 1); exit 1; }; }
1649   fi
1650
1651   test "$2" = conftest.file
1652   )
1653then
1654   # Ok.
1655   :
1656else
1657   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1658Check your system clock" >&5
1659echo "$as_me: error: newly created file is older than distributed files!
1660Check your system clock" >&2;}
1661   { (exit 1); exit 1; }; }
1662fi
1663echo "$as_me:$LINENO: result: yes" >&5
1664echo "${ECHO_T}yes" >&6
1665test "$program_prefix" != NONE &&
1666  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1667# Use a double $ so make ignores it.
1668test "$program_suffix" != NONE &&
1669  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1670# Double any \ or $.  echo might interpret backslashes.
1671# By default was `s,x,x', remove it if useless.
1672cat <<\_ACEOF >conftest.sed
1673s/[\\$]/&&/g;s/;s,x,x,$//
1674_ACEOF
1675program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1676rm conftest.sed
1677
1678
1679# expand $ac_aux_dir to an absolute path
1680am_aux_dir=`cd $ac_aux_dir && pwd`
1681
1682test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1683# Use eval to expand $SHELL
1684if eval "$MISSING --run true"; then
1685  am_missing_run="$MISSING --run "
1686else
1687  am_missing_run=
1688  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1690fi
1691
1692for ac_prog in gawk mawk nawk awk
1693do
1694  # Extract the first word of "$ac_prog", so it can be a program name with args.
1695set dummy $ac_prog; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_AWK+set}" = set; then
1699  echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701  if test -n "$AWK"; then
1702  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707  IFS=$as_save_IFS
1708  test -z "$as_dir" && as_dir=.
1709  for ac_exec_ext in '' $ac_executable_extensions; do
1710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711    ac_cv_prog_AWK="$ac_prog"
1712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713    break 2
1714  fi
1715done
1716done
1717
1718fi
1719fi
1720AWK=$ac_cv_prog_AWK
1721if test -n "$AWK"; then
1722  echo "$as_me:$LINENO: result: $AWK" >&5
1723echo "${ECHO_T}$AWK" >&6
1724else
1725  echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729  test -n "$AWK" && break
1730done
1731
1732echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1733echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1734set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1735if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1736  echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738  cat >conftest.make <<\_ACEOF
1739all:
1740	@echo 'ac_maketemp="$(MAKE)"'
1741_ACEOF
1742# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1743eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1744if test -n "$ac_maketemp"; then
1745  eval ac_cv_prog_make_${ac_make}_set=yes
1746else
1747  eval ac_cv_prog_make_${ac_make}_set=no
1748fi
1749rm -f conftest.make
1750fi
1751if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1752  echo "$as_me:$LINENO: result: yes" >&5
1753echo "${ECHO_T}yes" >&6
1754  SET_MAKE=
1755else
1756  echo "$as_me:$LINENO: result: no" >&5
1757echo "${ECHO_T}no" >&6
1758  SET_MAKE="MAKE=${MAKE-make}"
1759fi
1760
1761rm -rf .tst 2>/dev/null
1762mkdir .tst 2>/dev/null
1763if test -d .tst; then
1764  am__leading_dot=.
1765else
1766  am__leading_dot=_
1767fi
1768rmdir .tst 2>/dev/null
1769
1770 # test to see if srcdir already configured
1771if test "`cd $srcdir && pwd`" != "`pwd`" &&
1772   test -f $srcdir/config.status; then
1773  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1774echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1775   { (exit 1); exit 1; }; }
1776fi
1777
1778# test whether we have cygpath
1779if test -z "$CYGPATH_W"; then
1780  if (cygpath --version) >/dev/null 2>/dev/null; then
1781    CYGPATH_W='cygpath -w'
1782  else
1783    CYGPATH_W=echo
1784  fi
1785fi
1786
1787
1788# Define the identity of the package.
1789 PACKAGE='libident'
1790 VERSION='0.32'
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE "$PACKAGE"
1795_ACEOF
1796
1797
1798cat >>confdefs.h <<_ACEOF
1799#define VERSION "$VERSION"
1800_ACEOF
1801
1802# Some tools Automake needs.
1803
1804ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1805
1806
1807AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1808
1809
1810AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1811
1812
1813AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1814
1815
1816MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1817
1818
1819AMTAR=${AMTAR-"${am_missing_run}tar"}
1820
1821install_sh=${install_sh-"$am_aux_dir/install-sh"}
1822
1823# Installed binaries are usually stripped using `strip' when the user
1824# run `make install-strip'.  However `strip' might not be the right
1825# tool to use in cross-compilation environments, therefore Automake
1826# will honor the `STRIP' environment variable to overrule this program.
1827if test "$cross_compiling" != no; then
1828  if test -n "$ac_tool_prefix"; then
1829  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1830set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
1834  echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836  if test -n "$STRIP"; then
1837  ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
1847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848    break 2
1849  fi
1850done
1851done
1852
1853fi
1854fi
1855STRIP=$ac_cv_prog_STRIP
1856if test -n "$STRIP"; then
1857  echo "$as_me:$LINENO: result: $STRIP" >&5
1858echo "${ECHO_T}$STRIP" >&6
1859else
1860  echo "$as_me:$LINENO: result: no" >&5
1861echo "${ECHO_T}no" >&6
1862fi
1863
1864fi
1865if test -z "$ac_cv_prog_STRIP"; then
1866  ac_ct_STRIP=$STRIP
1867  # Extract the first word of "strip", so it can be a program name with args.
1868set dummy strip; ac_word=$2
1869echo "$as_me:$LINENO: checking for $ac_word" >&5
1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1872  echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874  if test -n "$ac_ct_STRIP"; then
1875  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1876else
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880  IFS=$as_save_IFS
1881  test -z "$as_dir" && as_dir=.
1882  for ac_exec_ext in '' $ac_executable_extensions; do
1883  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884    ac_cv_prog_ac_ct_STRIP="strip"
1885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886    break 2
1887  fi
1888done
1889done
1890
1891  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1892fi
1893fi
1894ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1895if test -n "$ac_ct_STRIP"; then
1896  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1897echo "${ECHO_T}$ac_ct_STRIP" >&6
1898else
1899  echo "$as_me:$LINENO: result: no" >&5
1900echo "${ECHO_T}no" >&6
1901fi
1902
1903  STRIP=$ac_ct_STRIP
1904else
1905  STRIP="$ac_cv_prog_STRIP"
1906fi
1907
1908fi
1909INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1910
1911# We need awk for the "check" target.  The system "awk" is bad on
1912# some platforms.
1913
1914
1915
1916          ac_config_headers="$ac_config_headers config.h"
1917
1918
1919# Checks for programs.
1920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925if test -n "$ac_tool_prefix"; then
1926  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1927set dummy ${ac_tool_prefix}gcc; ac_word=$2
1928echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930if test "${ac_cv_prog_CC+set}" = set; then
1931  echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933  if test -n "$CC"; then
1934  ac_cv_prog_CC="$CC" # Let the user override the test.
1935else
1936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937for as_dir in $PATH
1938do
1939  IFS=$as_save_IFS
1940  test -z "$as_dir" && as_dir=.
1941  for ac_exec_ext in '' $ac_executable_extensions; do
1942  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945    break 2
1946  fi
1947done
1948done
1949
1950fi
1951fi
1952CC=$ac_cv_prog_CC
1953if test -n "$CC"; then
1954  echo "$as_me:$LINENO: result: $CC" >&5
1955echo "${ECHO_T}$CC" >&6
1956else
1957  echo "$as_me:$LINENO: result: no" >&5
1958echo "${ECHO_T}no" >&6
1959fi
1960
1961fi
1962if test -z "$ac_cv_prog_CC"; then
1963  ac_ct_CC=$CC
1964  # Extract the first word of "gcc", so it can be a program name with args.
1965set dummy gcc; ac_word=$2
1966echo "$as_me:$LINENO: checking for $ac_word" >&5
1967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1969  echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971  if test -n "$ac_ct_CC"; then
1972  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1973else
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977  IFS=$as_save_IFS
1978  test -z "$as_dir" && as_dir=.
1979  for ac_exec_ext in '' $ac_executable_extensions; do
1980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981    ac_cv_prog_ac_ct_CC="gcc"
1982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983    break 2
1984  fi
1985done
1986done
1987
1988fi
1989fi
1990ac_ct_CC=$ac_cv_prog_ac_ct_CC
1991if test -n "$ac_ct_CC"; then
1992  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1993echo "${ECHO_T}$ac_ct_CC" >&6
1994else
1995  echo "$as_me:$LINENO: result: no" >&5
1996echo "${ECHO_T}no" >&6
1997fi
1998
1999  CC=$ac_ct_CC
2000else
2001  CC="$ac_cv_prog_CC"
2002fi
2003
2004if test -z "$CC"; then
2005  if test -n "$ac_tool_prefix"; then
2006  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2007set dummy ${ac_tool_prefix}cc; ac_word=$2
2008echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010if test "${ac_cv_prog_CC+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  if test -n "$CC"; then
2014  ac_cv_prog_CC="$CC" # Let the user override the test.
2015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019  IFS=$as_save_IFS
2020  test -z "$as_dir" && as_dir=.
2021  for ac_exec_ext in '' $ac_executable_extensions; do
2022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023    ac_cv_prog_CC="${ac_tool_prefix}cc"
2024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025    break 2
2026  fi
2027done
2028done
2029
2030fi
2031fi
2032CC=$ac_cv_prog_CC
2033if test -n "$CC"; then
2034  echo "$as_me:$LINENO: result: $CC" >&5
2035echo "${ECHO_T}$CC" >&6
2036else
2037  echo "$as_me:$LINENO: result: no" >&5
2038echo "${ECHO_T}no" >&6
2039fi
2040
2041fi
2042if test -z "$ac_cv_prog_CC"; then
2043  ac_ct_CC=$CC
2044  # Extract the first word of "cc", so it can be a program name with args.
2045set dummy cc; ac_word=$2
2046echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049  echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051  if test -n "$ac_ct_CC"; then
2052  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053else
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057  IFS=$as_save_IFS
2058  test -z "$as_dir" && as_dir=.
2059  for ac_exec_ext in '' $ac_executable_extensions; do
2060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061    ac_cv_prog_ac_ct_CC="cc"
2062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063    break 2
2064  fi
2065done
2066done
2067
2068fi
2069fi
2070ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071if test -n "$ac_ct_CC"; then
2072  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073echo "${ECHO_T}$ac_ct_CC" >&6
2074else
2075  echo "$as_me:$LINENO: result: no" >&5
2076echo "${ECHO_T}no" >&6
2077fi
2078
2079  CC=$ac_ct_CC
2080else
2081  CC="$ac_cv_prog_CC"
2082fi
2083
2084fi
2085if test -z "$CC"; then
2086  # Extract the first word of "cc", so it can be a program name with args.
2087set dummy cc; ac_word=$2
2088echo "$as_me:$LINENO: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090if test "${ac_cv_prog_CC+set}" = set; then
2091  echo $ECHO_N "(cached) $ECHO_C" >&6
2092else
2093  if test -n "$CC"; then
2094  ac_cv_prog_CC="$CC" # Let the user override the test.
2095else
2096  ac_prog_rejected=no
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100  IFS=$as_save_IFS
2101  test -z "$as_dir" && as_dir=.
2102  for ac_exec_ext in '' $ac_executable_extensions; do
2103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2105       ac_prog_rejected=yes
2106       continue
2107     fi
2108    ac_cv_prog_CC="cc"
2109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110    break 2
2111  fi
2112done
2113done
2114
2115if test $ac_prog_rejected = yes; then
2116  # We found a bogon in the path, so make sure we never use it.
2117  set dummy $ac_cv_prog_CC
2118  shift
2119  if test $# != 0; then
2120    # We chose a different compiler from the bogus one.
2121    # However, it has the same basename, so the bogon will be chosen
2122    # first if we set CC to just the basename; use the full file name.
2123    shift
2124    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2125  fi
2126fi
2127fi
2128fi
2129CC=$ac_cv_prog_CC
2130if test -n "$CC"; then
2131  echo "$as_me:$LINENO: result: $CC" >&5
2132echo "${ECHO_T}$CC" >&6
2133else
2134  echo "$as_me:$LINENO: result: no" >&5
2135echo "${ECHO_T}no" >&6
2136fi
2137
2138fi
2139if test -z "$CC"; then
2140  if test -n "$ac_tool_prefix"; then
2141  for ac_prog in cl
2142  do
2143    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2144set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2145echo "$as_me:$LINENO: checking for $ac_word" >&5
2146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147if test "${ac_cv_prog_CC+set}" = set; then
2148  echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150  if test -n "$CC"; then
2151  ac_cv_prog_CC="$CC" # Let the user override the test.
2152else
2153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154for as_dir in $PATH
2155do
2156  IFS=$as_save_IFS
2157  test -z "$as_dir" && as_dir=.
2158  for ac_exec_ext in '' $ac_executable_extensions; do
2159  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2161    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162    break 2
2163  fi
2164done
2165done
2166
2167fi
2168fi
2169CC=$ac_cv_prog_CC
2170if test -n "$CC"; then
2171  echo "$as_me:$LINENO: result: $CC" >&5
2172echo "${ECHO_T}$CC" >&6
2173else
2174  echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6
2176fi
2177
2178    test -n "$CC" && break
2179  done
2180fi
2181if test -z "$CC"; then
2182  ac_ct_CC=$CC
2183  for ac_prog in cl
2184do
2185  # Extract the first word of "$ac_prog", so it can be a program name with args.
2186set dummy $ac_prog; ac_word=$2
2187echo "$as_me:$LINENO: checking for $ac_word" >&5
2188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2190  echo $ECHO_N "(cached) $ECHO_C" >&6
2191else
2192  if test -n "$ac_ct_CC"; then
2193  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2194else
2195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196for as_dir in $PATH
2197do
2198  IFS=$as_save_IFS
2199  test -z "$as_dir" && as_dir=.
2200  for ac_exec_ext in '' $ac_executable_extensions; do
2201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202    ac_cv_prog_ac_ct_CC="$ac_prog"
2203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204    break 2
2205  fi
2206done
2207done
2208
2209fi
2210fi
2211ac_ct_CC=$ac_cv_prog_ac_ct_CC
2212if test -n "$ac_ct_CC"; then
2213  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2214echo "${ECHO_T}$ac_ct_CC" >&6
2215else
2216  echo "$as_me:$LINENO: result: no" >&5
2217echo "${ECHO_T}no" >&6
2218fi
2219
2220  test -n "$ac_ct_CC" && break
2221done
2222
2223  CC=$ac_ct_CC
2224fi
2225
2226fi
2227
2228
2229test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2230See \`config.log' for more details." >&5
2231echo "$as_me: error: no acceptable C compiler found in \$PATH
2232See \`config.log' for more details." >&2;}
2233   { (exit 1); exit 1; }; }
2234
2235# Provide some information about the compiler.
2236echo "$as_me:$LINENO:" \
2237     "checking for C compiler version" >&5
2238ac_compiler=`set X $ac_compile; echo $2`
2239{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2240  (eval $ac_compiler --version </dev/null >&5) 2>&5
2241  ac_status=$?
2242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243  (exit $ac_status); }
2244{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2245  (eval $ac_compiler -v </dev/null >&5) 2>&5
2246  ac_status=$?
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); }
2249{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2250  (eval $ac_compiler -V </dev/null >&5) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }
2254
2255cat >conftest.$ac_ext <<_ACEOF
2256/* confdefs.h.  */
2257_ACEOF
2258cat confdefs.h >>conftest.$ac_ext
2259cat >>conftest.$ac_ext <<_ACEOF
2260/* end confdefs.h.  */
2261
2262int
2263main ()
2264{
2265
2266  ;
2267  return 0;
2268}
2269_ACEOF
2270ac_clean_files_save=$ac_clean_files
2271ac_clean_files="$ac_clean_files a.out a.exe b.out"
2272# Try to create an executable without -o first, disregard a.out.
2273# It will help us diagnose broken compilers, and finding out an intuition
2274# of exeext.
2275echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2276echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2277ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2278if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2279  (eval $ac_link_default) 2>&5
2280  ac_status=$?
2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282  (exit $ac_status); }; then
2283  # Find the output, starting from the most likely.  This scheme is
2284# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2285# resort.
2286
2287# Be careful to initialize this variable, since it used to be cached.
2288# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2289ac_cv_exeext=
2290# b.out is created by i960 compilers.
2291for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2292do
2293  test -f "$ac_file" || continue
2294  case $ac_file in
2295    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2296	;;
2297    conftest.$ac_ext )
2298	# This is the source file.
2299	;;
2300    [ab].out )
2301	# We found the default executable, but exeext='' is most
2302	# certainly right.
2303	break;;
2304    *.* )
2305	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306	# FIXME: I believe we export ac_cv_exeext for Libtool,
2307	# but it would be cool to find out if it's true.  Does anybody
2308	# maintain Libtool? --akim.
2309	export ac_cv_exeext
2310	break;;
2311    * )
2312	break;;
2313  esac
2314done
2315else
2316  echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2320See \`config.log' for more details." >&5
2321echo "$as_me: error: C compiler cannot create executables
2322See \`config.log' for more details." >&2;}
2323   { (exit 77); exit 77; }; }
2324fi
2325
2326ac_exeext=$ac_cv_exeext
2327echo "$as_me:$LINENO: result: $ac_file" >&5
2328echo "${ECHO_T}$ac_file" >&6
2329
2330# Check the compiler produces executables we can run.  If not, either
2331# the compiler is broken, or we cross compile.
2332echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2333echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2334# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2335# If not cross compiling, check that we can run a simple program.
2336if test "$cross_compiling" != yes; then
2337  if { ac_try='./$ac_file'
2338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339  (eval $ac_try) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; }; then
2343    cross_compiling=no
2344  else
2345    if test "$cross_compiling" = maybe; then
2346	cross_compiling=yes
2347    else
2348	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2349If you meant to cross compile, use \`--host'.
2350See \`config.log' for more details." >&5
2351echo "$as_me: error: cannot run C compiled programs.
2352If you meant to cross compile, use \`--host'.
2353See \`config.log' for more details." >&2;}
2354   { (exit 1); exit 1; }; }
2355    fi
2356  fi
2357fi
2358echo "$as_me:$LINENO: result: yes" >&5
2359echo "${ECHO_T}yes" >&6
2360
2361rm -f a.out a.exe conftest$ac_cv_exeext b.out
2362ac_clean_files=$ac_clean_files_save
2363# Check the compiler produces executables we can run.  If not, either
2364# the compiler is broken, or we cross compile.
2365echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2366echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2367echo "$as_me:$LINENO: result: $cross_compiling" >&5
2368echo "${ECHO_T}$cross_compiling" >&6
2369
2370echo "$as_me:$LINENO: checking for suffix of executables" >&5
2371echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2373  (eval $ac_link) 2>&5
2374  ac_status=$?
2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376  (exit $ac_status); }; then
2377  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2378# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2379# work properly (i.e., refer to `conftest.exe'), while it won't with
2380# `rm'.
2381for ac_file in conftest.exe conftest conftest.*; do
2382  test -f "$ac_file" || continue
2383  case $ac_file in
2384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2385    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2386	  export ac_cv_exeext
2387	  break;;
2388    * ) break;;
2389  esac
2390done
2391else
2392  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2393See \`config.log' for more details." >&5
2394echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2395See \`config.log' for more details." >&2;}
2396   { (exit 1); exit 1; }; }
2397fi
2398
2399rm -f conftest$ac_cv_exeext
2400echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2401echo "${ECHO_T}$ac_cv_exeext" >&6
2402
2403rm -f conftest.$ac_ext
2404EXEEXT=$ac_cv_exeext
2405ac_exeext=$EXEEXT
2406echo "$as_me:$LINENO: checking for suffix of object files" >&5
2407echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2408if test "${ac_cv_objext+set}" = set; then
2409  echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411  cat >conftest.$ac_ext <<_ACEOF
2412/* confdefs.h.  */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h.  */
2417
2418int
2419main ()
2420{
2421
2422  ;
2423  return 0;
2424}
2425_ACEOF
2426rm -f conftest.o conftest.obj
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428  (eval $ac_compile) 2>&5
2429  ac_status=$?
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); }; then
2432  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2433  case $ac_file in
2434    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2435    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2436       break;;
2437  esac
2438done
2439else
2440  echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2444See \`config.log' for more details." >&5
2445echo "$as_me: error: cannot compute suffix of object files: cannot compile
2446See \`config.log' for more details." >&2;}
2447   { (exit 1); exit 1; }; }
2448fi
2449
2450rm -f conftest.$ac_cv_objext conftest.$ac_ext
2451fi
2452echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2453echo "${ECHO_T}$ac_cv_objext" >&6
2454OBJEXT=$ac_cv_objext
2455ac_objext=$OBJEXT
2456echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2457echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2458if test "${ac_cv_c_compiler_gnu+set}" = set; then
2459  echo $ECHO_N "(cached) $ECHO_C" >&6
2460else
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
2468int
2469main ()
2470{
2471#ifndef __GNUC__
2472       choke me
2473#endif
2474
2475  ;
2476  return 0;
2477}
2478_ACEOF
2479rm -f conftest.$ac_objext
2480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481  (eval $ac_compile) 2>conftest.er1
2482  ac_status=$?
2483  grep -v '^ *+' conftest.er1 >conftest.err
2484  rm -f conftest.er1
2485  cat conftest.err >&5
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); } &&
2488	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490  (eval $ac_try) 2>&5
2491  ac_status=$?
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); }; } &&
2494	 { ac_try='test -s conftest.$ac_objext'
2495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496  (eval $ac_try) 2>&5
2497  ac_status=$?
2498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499  (exit $ac_status); }; }; then
2500  ac_compiler_gnu=yes
2501else
2502  echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505ac_compiler_gnu=no
2506fi
2507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508ac_cv_c_compiler_gnu=$ac_compiler_gnu
2509
2510fi
2511echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2512echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2513GCC=`test $ac_compiler_gnu = yes && echo yes`
2514ac_test_CFLAGS=${CFLAGS+set}
2515ac_save_CFLAGS=$CFLAGS
2516CFLAGS="-g"
2517echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2518echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2519if test "${ac_cv_prog_cc_g+set}" = set; then
2520  echo $ECHO_N "(cached) $ECHO_C" >&6
2521else
2522  cat >conftest.$ac_ext <<_ACEOF
2523/* confdefs.h.  */
2524_ACEOF
2525cat confdefs.h >>conftest.$ac_ext
2526cat >>conftest.$ac_ext <<_ACEOF
2527/* end confdefs.h.  */
2528
2529int
2530main ()
2531{
2532
2533  ;
2534  return 0;
2535}
2536_ACEOF
2537rm -f conftest.$ac_objext
2538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539  (eval $ac_compile) 2>conftest.er1
2540  ac_status=$?
2541  grep -v '^ *+' conftest.er1 >conftest.err
2542  rm -f conftest.er1
2543  cat conftest.err >&5
2544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545  (exit $ac_status); } &&
2546	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548  (eval $ac_try) 2>&5
2549  ac_status=$?
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); }; } &&
2552	 { ac_try='test -s conftest.$ac_objext'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; }; then
2558  ac_cv_prog_cc_g=yes
2559else
2560  echo "$as_me: failed program was:" >&5
2561sed 's/^/| /' conftest.$ac_ext >&5
2562
2563ac_cv_prog_cc_g=no
2564fi
2565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2566fi
2567echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2568echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2569if test "$ac_test_CFLAGS" = set; then
2570  CFLAGS=$ac_save_CFLAGS
2571elif test $ac_cv_prog_cc_g = yes; then
2572  if test "$GCC" = yes; then
2573    CFLAGS="-g -O2"
2574  else
2575    CFLAGS="-g"
2576  fi
2577else
2578  if test "$GCC" = yes; then
2579    CFLAGS="-O2"
2580  else
2581    CFLAGS=
2582  fi
2583fi
2584echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2585echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2586if test "${ac_cv_prog_cc_stdc+set}" = set; then
2587  echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589  ac_cv_prog_cc_stdc=no
2590ac_save_CC=$CC
2591cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h.  */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h.  */
2597#include <stdarg.h>
2598#include <stdio.h>
2599#include <sys/types.h>
2600#include <sys/stat.h>
2601/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2602struct buf { int x; };
2603FILE * (*rcsopen) (struct buf *, struct stat *, int);
2604static char *e (p, i)
2605     char **p;
2606     int i;
2607{
2608  return p[i];
2609}
2610static char *f (char * (*g) (char **, int), char **p, ...)
2611{
2612  char *s;
2613  va_list v;
2614  va_start (v,p);
2615  s = g (p, va_arg (v,int));
2616  va_end (v);
2617  return s;
2618}
2619
2620/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2621   function prototypes and stuff, but not '\xHH' hex character constants.
2622   These don't provoke an error unfortunately, instead are silently treated
2623   as 'x'.  The following induces an error, until -std1 is added to get
2624   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2625   array size at least.  It's necessary to write '\x00'==0 to get something
2626   that's true only with -std1.  */
2627int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2628
2629int test (int i, double x);
2630struct s1 {int (*f) (int a);};
2631struct s2 {int (*f) (double a);};
2632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2633int argc;
2634char **argv;
2635int
2636main ()
2637{
2638return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2639  ;
2640  return 0;
2641}
2642_ACEOF
2643# Don't try gcc -ansi; that turns off useful extensions and
2644# breaks some systems' header files.
2645# AIX			-qlanglvl=ansi
2646# Ultrix and OSF/1	-std1
2647# HP-UX 10.20 and later	-Ae
2648# HP-UX older versions	-Aa -D_HPUX_SOURCE
2649# SVR4			-Xc -D__EXTENSIONS__
2650for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2651do
2652  CC="$ac_save_CC $ac_arg"
2653  rm -f conftest.$ac_objext
2654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655  (eval $ac_compile) 2>conftest.er1
2656  ac_status=$?
2657  grep -v '^ *+' conftest.er1 >conftest.err
2658  rm -f conftest.er1
2659  cat conftest.err >&5
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); } &&
2662	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664  (eval $ac_try) 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; } &&
2668	 { ac_try='test -s conftest.$ac_objext'
2669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670  (eval $ac_try) 2>&5
2671  ac_status=$?
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); }; }; then
2674  ac_cv_prog_cc_stdc=$ac_arg
2675break
2676else
2677  echo "$as_me: failed program was:" >&5
2678sed 's/^/| /' conftest.$ac_ext >&5
2679
2680fi
2681rm -f conftest.err conftest.$ac_objext
2682done
2683rm -f conftest.$ac_ext conftest.$ac_objext
2684CC=$ac_save_CC
2685
2686fi
2687
2688case "x$ac_cv_prog_cc_stdc" in
2689  x|xno)
2690    echo "$as_me:$LINENO: result: none needed" >&5
2691echo "${ECHO_T}none needed" >&6 ;;
2692  *)
2693    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2694echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2695    CC="$CC $ac_cv_prog_cc_stdc" ;;
2696esac
2697
2698# Some people use a C++ compiler to compile C.  Since we use `exit',
2699# in C++ we need to declare it.  In case someone uses the same compiler
2700# for both compiling C and C++ we need to have the C++ compiler decide
2701# the declaration of exit, since it's the most demanding environment.
2702cat >conftest.$ac_ext <<_ACEOF
2703#ifndef __cplusplus
2704  choke me
2705#endif
2706_ACEOF
2707rm -f conftest.$ac_objext
2708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709  (eval $ac_compile) 2>conftest.er1
2710  ac_status=$?
2711  grep -v '^ *+' conftest.er1 >conftest.err
2712  rm -f conftest.er1
2713  cat conftest.err >&5
2714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715  (exit $ac_status); } &&
2716	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718  (eval $ac_try) 2>&5
2719  ac_status=$?
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); }; } &&
2722	 { ac_try='test -s conftest.$ac_objext'
2723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724  (eval $ac_try) 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; }; then
2728  for ac_declaration in \
2729   '' \
2730   'extern "C" void std::exit (int) throw (); using std::exit;' \
2731   'extern "C" void std::exit (int); using std::exit;' \
2732   'extern "C" void exit (int) throw ();' \
2733   'extern "C" void exit (int);' \
2734   'void exit (int);'
2735do
2736  cat >conftest.$ac_ext <<_ACEOF
2737/* confdefs.h.  */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h.  */
2742$ac_declaration
2743#include <stdlib.h>
2744int
2745main ()
2746{
2747exit (42);
2748  ;
2749  return 0;
2750}
2751_ACEOF
2752rm -f conftest.$ac_objext
2753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754  (eval $ac_compile) 2>conftest.er1
2755  ac_status=$?
2756  grep -v '^ *+' conftest.er1 >conftest.err
2757  rm -f conftest.er1
2758  cat conftest.err >&5
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); } &&
2761	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763  (eval $ac_try) 2>&5
2764  ac_status=$?
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); }; } &&
2767	 { ac_try='test -s conftest.$ac_objext'
2768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769  (eval $ac_try) 2>&5
2770  ac_status=$?
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); }; }; then
2773  :
2774else
2775  echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778continue
2779fi
2780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781  cat >conftest.$ac_ext <<_ACEOF
2782/* confdefs.h.  */
2783_ACEOF
2784cat confdefs.h >>conftest.$ac_ext
2785cat >>conftest.$ac_ext <<_ACEOF
2786/* end confdefs.h.  */
2787$ac_declaration
2788int
2789main ()
2790{
2791exit (42);
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796rm -f conftest.$ac_objext
2797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798  (eval $ac_compile) 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } &&
2805	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807  (eval $ac_try) 2>&5
2808  ac_status=$?
2809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810  (exit $ac_status); }; } &&
2811	 { ac_try='test -s conftest.$ac_objext'
2812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813  (eval $ac_try) 2>&5
2814  ac_status=$?
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); }; }; then
2817  break
2818else
2819  echo "$as_me: failed program was:" >&5
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822fi
2823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824done
2825rm -f conftest*
2826if test -n "$ac_declaration"; then
2827  echo '#ifdef __cplusplus' >>confdefs.h
2828  echo $ac_declaration      >>confdefs.h
2829  echo '#endif'             >>confdefs.h
2830fi
2831
2832else
2833  echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836fi
2837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838ac_ext=c
2839ac_cpp='$CPP $CPPFLAGS'
2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843DEPDIR="${am__leading_dot}deps"
2844
2845          ac_config_commands="$ac_config_commands depfiles"
2846
2847
2848am_make=${MAKE-make}
2849cat > confinc << 'END'
2850am__doit:
2851	@echo done
2852.PHONY: am__doit
2853END
2854# If we don't find an include directive, just comment out the code.
2855echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2856echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2857am__include="#"
2858am__quote=
2859_am_result=none
2860# First try GNU make style include.
2861echo "include confinc" > confmf
2862# We grep out `Entering directory' and `Leaving directory'
2863# messages which can occur if `w' ends up in MAKEFLAGS.
2864# In particular we don't look at `^make:' because GNU make might
2865# be invoked under some other name (usually "gmake"), in which
2866# case it prints its new name instead of `make'.
2867if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2868   am__include=include
2869   am__quote=
2870   _am_result=GNU
2871fi
2872# Now try BSD make style include.
2873if test "$am__include" = "#"; then
2874   echo '.include "confinc"' > confmf
2875   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2876      am__include=.include
2877      am__quote="\""
2878      _am_result=BSD
2879   fi
2880fi
2881
2882
2883echo "$as_me:$LINENO: result: $_am_result" >&5
2884echo "${ECHO_T}$_am_result" >&6
2885rm -f confinc confmf
2886
2887# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2888if test "${enable_dependency_tracking+set}" = set; then
2889  enableval="$enable_dependency_tracking"
2890
2891fi;
2892if test "x$enable_dependency_tracking" != xno; then
2893  am_depcomp="$ac_aux_dir/depcomp"
2894  AMDEPBACKSLASH='\'
2895fi
2896
2897
2898if test "x$enable_dependency_tracking" != xno; then
2899  AMDEP_TRUE=
2900  AMDEP_FALSE='#'
2901else
2902  AMDEP_TRUE='#'
2903  AMDEP_FALSE=
2904fi
2905
2906
2907
2908
2909depcc="$CC"   am_compiler_list=
2910
2911echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2912echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2913if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2914  echo $ECHO_N "(cached) $ECHO_C" >&6
2915else
2916  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2917  # We make a subdir and do the tests there.  Otherwise we can end up
2918  # making bogus files that we don't know about and never remove.  For
2919  # instance it was reported that on HP-UX the gcc test will end up
2920  # making a dummy file named `D' -- because `-MD' means `put the output
2921  # in D'.
2922  mkdir conftest.dir
2923  # Copy depcomp to subdir because otherwise we won't find it if we're
2924  # using a relative directory.
2925  cp "$am_depcomp" conftest.dir
2926  cd conftest.dir
2927  # We will build objects and dependencies in a subdirectory because
2928  # it helps to detect inapplicable dependency modes.  For instance
2929  # both Tru64's cc and ICC support -MD to output dependencies as a
2930  # side effect of compilation, but ICC will put the dependencies in
2931  # the current directory while Tru64 will put them in the object
2932  # directory.
2933  mkdir sub
2934
2935  am_cv_CC_dependencies_compiler_type=none
2936  if test "$am_compiler_list" = ""; then
2937     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2938  fi
2939  for depmode in $am_compiler_list; do
2940    # Setup a source with many dependencies, because some compilers
2941    # like to wrap large dependency lists on column 80 (with \), and
2942    # we should not choose a depcomp mode which is confused by this.
2943    #
2944    # We need to recreate these files for each test, as the compiler may
2945    # overwrite some of them when testing with obscure command lines.
2946    # This happens at least with the AIX C compiler.
2947    : > sub/conftest.c
2948    for i in 1 2 3 4 5 6; do
2949      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2950      : > sub/conftst$i.h
2951    done
2952    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2953
2954    case $depmode in
2955    nosideeffect)
2956      # after this tag, mechanisms are not by side-effect, so they'll
2957      # only be used when explicitly requested
2958      if test "x$enable_dependency_tracking" = xyes; then
2959	continue
2960      else
2961	break
2962      fi
2963      ;;
2964    none) break ;;
2965    esac
2966    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2967    # mode.  It turns out that the SunPro C++ compiler does not properly
2968    # handle `-M -o', and we need to detect this.
2969    if depmode=$depmode \
2970       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2971       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2972       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2973         >/dev/null 2>conftest.err &&
2974       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2975       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2976       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2977      # icc doesn't choke on unknown options, it will just issue warnings
2978      # (even with -Werror).  So we grep stderr for any message
2979      # that says an option was ignored.
2980      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2981        am_cv_CC_dependencies_compiler_type=$depmode
2982        break
2983      fi
2984    fi
2985  done
2986
2987  cd ..
2988  rm -rf conftest.dir
2989else
2990  am_cv_CC_dependencies_compiler_type=none
2991fi
2992
2993fi
2994echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2995echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2996CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2997
2998
2999
3000if
3001  test "x$enable_dependency_tracking" != xno \
3002  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3003  am__fastdepCC_TRUE=
3004  am__fastdepCC_FALSE='#'
3005else
3006  am__fastdepCC_TRUE='#'
3007  am__fastdepCC_FALSE=
3008fi
3009
3010
3011# Check whether --enable-shared or --disable-shared was given.
3012if test "${enable_shared+set}" = set; then
3013  enableval="$enable_shared"
3014  p=${PACKAGE-default}
3015    case $enableval in
3016    yes) enable_shared=yes ;;
3017    no) enable_shared=no ;;
3018    *)
3019      enable_shared=no
3020      # Look at the argument we got.  We use all the common list separators.
3021      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3022      for pkg in $enableval; do
3023	IFS="$lt_save_ifs"
3024	if test "X$pkg" = "X$p"; then
3025	  enable_shared=yes
3026	fi
3027      done
3028      IFS="$lt_save_ifs"
3029      ;;
3030    esac
3031else
3032  enable_shared=yes
3033fi;
3034
3035# Check whether --enable-static or --disable-static was given.
3036if test "${enable_static+set}" = set; then
3037  enableval="$enable_static"
3038  p=${PACKAGE-default}
3039    case $enableval in
3040    yes) enable_static=yes ;;
3041    no) enable_static=no ;;
3042    *)
3043     enable_static=no
3044      # Look at the argument we got.  We use all the common list separators.
3045      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3046      for pkg in $enableval; do
3047	IFS="$lt_save_ifs"
3048	if test "X$pkg" = "X$p"; then
3049	  enable_static=yes
3050	fi
3051      done
3052      IFS="$lt_save_ifs"
3053      ;;
3054    esac
3055else
3056  enable_static=yes
3057fi;
3058
3059# Check whether --enable-fast-install or --disable-fast-install was given.
3060if test "${enable_fast_install+set}" = set; then
3061  enableval="$enable_fast_install"
3062  p=${PACKAGE-default}
3063    case $enableval in
3064    yes) enable_fast_install=yes ;;
3065    no) enable_fast_install=no ;;
3066    *)
3067      enable_fast_install=no
3068      # Look at the argument we got.  We use all the common list separators.
3069      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3070      for pkg in $enableval; do
3071	IFS="$lt_save_ifs"
3072	if test "X$pkg" = "X$p"; then
3073	  enable_fast_install=yes
3074	fi
3075      done
3076      IFS="$lt_save_ifs"
3077      ;;
3078    esac
3079else
3080  enable_fast_install=yes
3081fi;
3082
3083# Make sure we can run config.sub.
3084$ac_config_sub sun4 >/dev/null 2>&1 ||
3085  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3086echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3087   { (exit 1); exit 1; }; }
3088
3089echo "$as_me:$LINENO: checking build system type" >&5
3090echo $ECHO_N "checking build system type... $ECHO_C" >&6
3091if test "${ac_cv_build+set}" = set; then
3092  echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094  ac_cv_build_alias=$build_alias
3095test -z "$ac_cv_build_alias" &&
3096  ac_cv_build_alias=`$ac_config_guess`
3097test -z "$ac_cv_build_alias" &&
3098  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3099echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3100   { (exit 1); exit 1; }; }
3101ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3102  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3103echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3104   { (exit 1); exit 1; }; }
3105
3106fi
3107echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3108echo "${ECHO_T}$ac_cv_build" >&6
3109build=$ac_cv_build
3110build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3111build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3112build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3113
3114
3115echo "$as_me:$LINENO: checking host system type" >&5
3116echo $ECHO_N "checking host system type... $ECHO_C" >&6
3117if test "${ac_cv_host+set}" = set; then
3118  echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120  ac_cv_host_alias=$host_alias
3121test -z "$ac_cv_host_alias" &&
3122  ac_cv_host_alias=$ac_cv_build_alias
3123ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3124  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3125echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3126   { (exit 1); exit 1; }; }
3127
3128fi
3129echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3130echo "${ECHO_T}$ac_cv_host" >&6
3131host=$ac_cv_host
3132host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3133host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3134host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3135
3136
3137echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3138echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3139if test "${lt_cv_path_SED+set}" = set; then
3140  echo $ECHO_N "(cached) $ECHO_C" >&6
3141else
3142  # Loop through the user's path and test for sed and gsed.
3143# Then use that list of sed's as ones to test for truncation.
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147  IFS=$as_save_IFS
3148  test -z "$as_dir" && as_dir=.
3149  for lt_ac_prog in sed gsed; do
3150    for ac_exec_ext in '' $ac_executable_extensions; do
3151      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3152        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3153      fi
3154    done
3155  done
3156done
3157lt_ac_max=0
3158lt_ac_count=0
3159# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3160# along with /bin/sed that truncates output.
3161for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3162  test ! -f $lt_ac_sed && break
3163  cat /dev/null > conftest.in
3164  lt_ac_count=0
3165  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3166  # Check for GNU sed and select it if it is found.
3167  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3168    lt_cv_path_SED=$lt_ac_sed
3169    break
3170  fi
3171  while true; do
3172    cat conftest.in conftest.in >conftest.tmp
3173    mv conftest.tmp conftest.in
3174    cp conftest.in conftest.nl
3175    echo >>conftest.nl
3176    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3177    cmp -s conftest.out conftest.nl || break
3178    # 10000 chars as input seems more than enough
3179    test $lt_ac_count -gt 10 && break
3180    lt_ac_count=`expr $lt_ac_count + 1`
3181    if test $lt_ac_count -gt $lt_ac_max; then
3182      lt_ac_max=$lt_ac_count
3183      lt_cv_path_SED=$lt_ac_sed
3184    fi
3185  done
3186done
3187SED=$lt_cv_path_SED
3188
3189fi
3190
3191echo "$as_me:$LINENO: result: $SED" >&5
3192echo "${ECHO_T}$SED" >&6
3193
3194echo "$as_me:$LINENO: checking for egrep" >&5
3195echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3196if test "${ac_cv_prog_egrep+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3200    then ac_cv_prog_egrep='grep -E'
3201    else ac_cv_prog_egrep='egrep'
3202    fi
3203fi
3204echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3205echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3206 EGREP=$ac_cv_prog_egrep
3207
3208
3209
3210# Check whether --with-gnu-ld or --without-gnu-ld was given.
3211if test "${with_gnu_ld+set}" = set; then
3212  withval="$with_gnu_ld"
3213  test "$withval" = no || with_gnu_ld=yes
3214else
3215  with_gnu_ld=no
3216fi;
3217ac_prog=ld
3218if test "$GCC" = yes; then
3219  # Check if gcc -print-prog-name=ld gives a path.
3220  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3221echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3222  case $host in
3223  *-*-mingw*)
3224    # gcc leaves a trailing carriage return which upsets mingw
3225    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3226  *)
3227    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3228  esac
3229  case $ac_prog in
3230    # Accept absolute paths.
3231    [\\/]* | ?:[\\/]*)
3232      re_direlt='/[^/][^/]*/\.\./'
3233      # Canonicalize the pathname of ld
3234      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3235      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3236	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3237      done
3238      test -z "$LD" && LD="$ac_prog"
3239      ;;
3240  "")
3241    # If it fails, then pretend we aren't using GCC.
3242    ac_prog=ld
3243    ;;
3244  *)
3245    # If it is relative, then search for the first ld in PATH.
3246    with_gnu_ld=unknown
3247    ;;
3248  esac
3249elif test "$with_gnu_ld" = yes; then
3250  echo "$as_me:$LINENO: checking for GNU ld" >&5
3251echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3252else
3253  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3254echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3255fi
3256if test "${lt_cv_path_LD+set}" = set; then
3257  echo $ECHO_N "(cached) $ECHO_C" >&6
3258else
3259  if test -z "$LD"; then
3260  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3261  for ac_dir in $PATH; do
3262    IFS="$lt_save_ifs"
3263    test -z "$ac_dir" && ac_dir=.
3264    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3265      lt_cv_path_LD="$ac_dir/$ac_prog"
3266      # Check to see if the program is GNU ld.  I'd rather use --version,
3267      # but apparently some GNU ld's only accept -v.
3268      # Break only if it was the GNU/non-GNU ld that we prefer.
3269      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3270      *GNU* | *'with BFD'*)
3271	test "$with_gnu_ld" != no && break
3272	;;
3273      *)
3274	test "$with_gnu_ld" != yes && break
3275	;;
3276      esac
3277    fi
3278  done
3279  IFS="$lt_save_ifs"
3280else
3281  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3282fi
3283fi
3284
3285LD="$lt_cv_path_LD"
3286if test -n "$LD"; then
3287  echo "$as_me:$LINENO: result: $LD" >&5
3288echo "${ECHO_T}$LD" >&6
3289else
3290  echo "$as_me:$LINENO: result: no" >&5
3291echo "${ECHO_T}no" >&6
3292fi
3293test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3294echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3295   { (exit 1); exit 1; }; }
3296echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3297echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3298if test "${lt_cv_prog_gnu_ld+set}" = set; then
3299  echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
3301  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3302case `$LD -v 2>&1 </dev/null` in
3303*GNU* | *'with BFD'*)
3304  lt_cv_prog_gnu_ld=yes
3305  ;;
3306*)
3307  lt_cv_prog_gnu_ld=no
3308  ;;
3309esac
3310fi
3311echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3312echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3313with_gnu_ld=$lt_cv_prog_gnu_ld
3314
3315
3316echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3317echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3318if test "${lt_cv_ld_reload_flag+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  lt_cv_ld_reload_flag='-r'
3322fi
3323echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3324echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3325reload_flag=$lt_cv_ld_reload_flag
3326case $reload_flag in
3327"" | " "*) ;;
3328*) reload_flag=" $reload_flag" ;;
3329esac
3330reload_cmds='$LD$reload_flag -o $output$reload_objs'
3331
3332echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3333echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3334if test "${lt_cv_path_NM+set}" = set; then
3335  echo $ECHO_N "(cached) $ECHO_C" >&6
3336else
3337  if test -n "$NM"; then
3338  # Let the user override the test.
3339  lt_cv_path_NM="$NM"
3340else
3341  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3342  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3343    IFS="$lt_save_ifs"
3344    test -z "$ac_dir" && ac_dir=.
3345    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3346    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3347      # Check to see if the nm accepts a BSD-compat flag.
3348      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3349      #   nm: unknown option "B" ignored
3350      # Tru64's nm complains that /dev/null is an invalid object file
3351      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3352      */dev/null* | *'Invalid file or object type'*)
3353	lt_cv_path_NM="$tmp_nm -B"
3354	break
3355        ;;
3356      *)
3357	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3358	*/dev/null*)
3359	  lt_cv_path_NM="$tmp_nm -p"
3360	  break
3361	  ;;
3362	*)
3363	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3364	  continue # so that we can try to find one that supports BSD flags
3365	  ;;
3366	esac
3367      esac
3368    fi
3369  done
3370  IFS="$lt_save_ifs"
3371  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3372fi
3373fi
3374echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3375echo "${ECHO_T}$lt_cv_path_NM" >&6
3376NM="$lt_cv_path_NM"
3377
3378echo "$as_me:$LINENO: checking whether ln -s works" >&5
3379echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3380LN_S=$as_ln_s
3381if test "$LN_S" = "ln -s"; then
3382  echo "$as_me:$LINENO: result: yes" >&5
3383echo "${ECHO_T}yes" >&6
3384else
3385  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3386echo "${ECHO_T}no, using $LN_S" >&6
3387fi
3388
3389echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3390echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3391if test "${lt_cv_deplibs_check_method+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  lt_cv_file_magic_cmd='$MAGIC_CMD'
3395lt_cv_file_magic_test_file=
3396lt_cv_deplibs_check_method='unknown'
3397# Need to set the preceding variable on all platforms that support
3398# interlibrary dependencies.
3399# 'none' -- dependencies not supported.
3400# `unknown' -- same as none, but documents that we really don't know.
3401# 'pass_all' -- all dependencies passed with no checks.
3402# 'test_compile' -- check by making test program.
3403# 'file_magic [[regex]]' -- check by looking for files in library path
3404# which responds to the $file_magic_cmd with a given extended regex.
3405# If you have `file' or equivalent on your system and you're not sure
3406# whether `pass_all' will *always* work, you probably want this one.
3407
3408case $host_os in
3409aix4* | aix5*)
3410  lt_cv_deplibs_check_method=pass_all
3411  ;;
3412
3413beos*)
3414  lt_cv_deplibs_check_method=pass_all
3415  ;;
3416
3417bsdi4*)
3418  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3419  lt_cv_file_magic_cmd='/usr/bin/file -L'
3420  lt_cv_file_magic_test_file=/shlib/libc.so
3421  ;;
3422
3423cygwin*)
3424  # win32_libid is a shell function defined in ltmain.sh
3425  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3426  lt_cv_file_magic_cmd='win32_libid'
3427  ;;
3428
3429mingw* | pw32*)
3430  # Base MSYS/MinGW do not provide the 'file' command needed by
3431  # win32_libid shell function, so use a weaker test based on 'objdump'.
3432  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3433  lt_cv_file_magic_cmd='$OBJDUMP -f'
3434  ;;
3435
3436darwin* | rhapsody*)
3437  lt_cv_deplibs_check_method=pass_all
3438  ;;
3439
3440freebsd* | kfreebsd*-gnu)
3441  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3442    case $host_cpu in
3443    i*86 )
3444      # Not sure whether the presence of OpenBSD here was a mistake.
3445      # Let's accept both of them until this is cleared up.
3446      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3447      lt_cv_file_magic_cmd=/usr/bin/file
3448      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3449      ;;
3450    esac
3451  else
3452    lt_cv_deplibs_check_method=pass_all
3453  fi
3454  ;;
3455
3456gnu*)
3457  lt_cv_deplibs_check_method=pass_all
3458  ;;
3459
3460hpux10.20* | hpux11*)
3461  lt_cv_file_magic_cmd=/usr/bin/file
3462  case "$host_cpu" in
3463  ia64*)
3464    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3465    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3466    ;;
3467  hppa*64*)
3468    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3469    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3470    ;;
3471  *)
3472    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3473    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3474    ;;
3475  esac
3476  ;;
3477
3478irix5* | irix6* | nonstopux*)
3479  case $LD in
3480  *-32|*"-32 ") libmagic=32-bit;;
3481  *-n32|*"-n32 ") libmagic=N32;;
3482  *-64|*"-64 ") libmagic=64-bit;;
3483  *) libmagic=never-match;;
3484  esac
3485  lt_cv_deplibs_check_method=pass_all
3486  ;;
3487
3488# This must be Linux ELF.
3489linux*)
3490  lt_cv_deplibs_check_method=pass_all
3491  ;;
3492
3493netbsd*)
3494  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3495    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3496  else
3497    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3498  fi
3499  ;;
3500
3501newos6*)
3502  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3503  lt_cv_file_magic_cmd=/usr/bin/file
3504  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3505  ;;
3506
3507nto-qnx*)
3508  lt_cv_deplibs_check_method=unknown
3509  ;;
3510
3511openbsd*)
3512  lt_cv_file_magic_cmd=/usr/bin/file
3513  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3514  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3515    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3516  else
3517    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3518  fi
3519  ;;
3520
3521osf3* | osf4* | osf5*)
3522  lt_cv_deplibs_check_method=pass_all
3523  ;;
3524
3525sco3.2v5*)
3526  lt_cv_deplibs_check_method=pass_all
3527  ;;
3528
3529solaris*)
3530  lt_cv_deplibs_check_method=pass_all
3531  ;;
3532
3533sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3534  case $host_vendor in
3535  motorola)
3536    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]'
3537    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3538    ;;
3539  ncr)
3540    lt_cv_deplibs_check_method=pass_all
3541    ;;
3542  sequent)
3543    lt_cv_file_magic_cmd='/bin/file'
3544    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3545    ;;
3546  sni)
3547    lt_cv_file_magic_cmd='/bin/file'
3548    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3549    lt_cv_file_magic_test_file=/lib/libc.so
3550    ;;
3551  siemens)
3552    lt_cv_deplibs_check_method=pass_all
3553    ;;
3554  esac
3555  ;;
3556
3557sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3558  lt_cv_deplibs_check_method=pass_all
3559  ;;
3560esac
3561
3562fi
3563echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3564echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3565file_magic_cmd=$lt_cv_file_magic_cmd
3566deplibs_check_method=$lt_cv_deplibs_check_method
3567test -z "$deplibs_check_method" && deplibs_check_method=unknown
3568
3569
3570
3571
3572# If no C compiler was specified, use CC.
3573LTCC=${LTCC-"$CC"}
3574
3575# Allow CC to be a program name with arguments.
3576compiler=$CC
3577
3578
3579# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3580if test "${enable_libtool_lock+set}" = set; then
3581  enableval="$enable_libtool_lock"
3582
3583fi;
3584test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3585
3586# Some flags need to be propagated to the compiler or linker for good
3587# libtool support.
3588case $host in
3589ia64-*-hpux*)
3590  # Find out which ABI we are using.
3591  echo 'int i;' > conftest.$ac_ext
3592  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3593  (eval $ac_compile) 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }; then
3597    case `/usr/bin/file conftest.$ac_objext` in
3598    *ELF-32*)
3599      HPUX_IA64_MODE="32"
3600      ;;
3601    *ELF-64*)
3602      HPUX_IA64_MODE="64"
3603      ;;
3604    esac
3605  fi
3606  rm -rf conftest*
3607  ;;
3608*-*-irix6*)
3609  # Find out which ABI we are using.
3610  echo '#line 3610 "configure"' > conftest.$ac_ext
3611  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612  (eval $ac_compile) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; then
3616   if test "$lt_cv_prog_gnu_ld" = yes; then
3617    case `/usr/bin/file conftest.$ac_objext` in
3618    *32-bit*)
3619      LD="${LD-ld} -melf32bsmip"
3620      ;;
3621    *N32*)
3622      LD="${LD-ld} -melf32bmipn32"
3623      ;;
3624    *64-bit*)
3625      LD="${LD-ld} -melf64bmip"
3626      ;;
3627    esac
3628   else
3629    case `/usr/bin/file conftest.$ac_objext` in
3630    *32-bit*)
3631      LD="${LD-ld} -32"
3632      ;;
3633    *N32*)
3634      LD="${LD-ld} -n32"
3635      ;;
3636    *64-bit*)
3637      LD="${LD-ld} -64"
3638      ;;
3639    esac
3640   fi
3641  fi
3642  rm -rf conftest*
3643  ;;
3644
3645x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3646  # Find out which ABI we are using.
3647  echo 'int i;' > conftest.$ac_ext
3648  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649  (eval $ac_compile) 2>&5
3650  ac_status=$?
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); }; then
3653    case "`/usr/bin/file conftest.o`" in
3654    *32-bit*)
3655      case $host in
3656        x86_64-*linux*)
3657          LD="${LD-ld} -m elf_i386"
3658          ;;
3659        ppc64-*linux*|powerpc64-*linux*)
3660          LD="${LD-ld} -m elf32ppclinux"
3661          ;;
3662        s390x-*linux*)
3663          LD="${LD-ld} -m elf_s390"
3664          ;;
3665        sparc64-*linux*)
3666          LD="${LD-ld} -m elf32_sparc"
3667          ;;
3668      esac
3669      ;;
3670    *64-bit*)
3671      case $host in
3672        x86_64-*linux*)
3673          LD="${LD-ld} -m elf_x86_64"
3674          ;;
3675        ppc*-*linux*|powerpc*-*linux*)
3676          LD="${LD-ld} -m elf64ppc"
3677          ;;
3678        s390*-*linux*)
3679          LD="${LD-ld} -m elf64_s390"
3680          ;;
3681        sparc*-*linux*)
3682          LD="${LD-ld} -m elf64_sparc"
3683          ;;
3684      esac
3685      ;;
3686    esac
3687  fi
3688  rm -rf conftest*
3689  ;;
3690
3691*-*-sco3.2v5*)
3692  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3693  SAVE_CFLAGS="$CFLAGS"
3694  CFLAGS="$CFLAGS -belf"
3695  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3696echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3697if test "${lt_cv_cc_needs_belf+set}" = set; then
3698  echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
3700  ac_ext=c
3701ac_cpp='$CPP $CPPFLAGS'
3702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705
3706     cat >conftest.$ac_ext <<_ACEOF
3707/* confdefs.h.  */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h.  */
3712
3713int
3714main ()
3715{
3716
3717  ;
3718  return 0;
3719}
3720_ACEOF
3721rm -f conftest.$ac_objext conftest$ac_exeext
3722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3723  (eval $ac_link) 2>conftest.er1
3724  ac_status=$?
3725  grep -v '^ *+' conftest.er1 >conftest.err
3726  rm -f conftest.er1
3727  cat conftest.err >&5
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); } &&
3730	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732  (eval $ac_try) 2>&5
3733  ac_status=$?
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); }; } &&
3736	 { ac_try='test -s conftest$ac_exeext'
3737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738  (eval $ac_try) 2>&5
3739  ac_status=$?
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); }; }; then
3742  lt_cv_cc_needs_belf=yes
3743else
3744  echo "$as_me: failed program was:" >&5
3745sed 's/^/| /' conftest.$ac_ext >&5
3746
3747lt_cv_cc_needs_belf=no
3748fi
3749rm -f conftest.err conftest.$ac_objext \
3750      conftest$ac_exeext conftest.$ac_ext
3751     ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
3757fi
3758echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3759echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3760  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3761    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3762    CFLAGS="$SAVE_CFLAGS"
3763  fi
3764  ;;
3765
3766esac
3767
3768need_locks="$enable_libtool_lock"
3769
3770
3771ac_ext=c
3772ac_cpp='$CPP $CPPFLAGS'
3773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3777echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3778# On Suns, sometimes $CPP names a directory.
3779if test -n "$CPP" && test -d "$CPP"; then
3780  CPP=
3781fi
3782if test -z "$CPP"; then
3783  if test "${ac_cv_prog_CPP+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786      # Double quotes because CPP needs to be expanded
3787    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3788    do
3789      ac_preproc_ok=false
3790for ac_c_preproc_warn_flag in '' yes
3791do
3792  # Use a header file that comes with gcc, so configuring glibc
3793  # with a fresh cross-compiler works.
3794  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795  # <limits.h> exists even on freestanding compilers.
3796  # On the NeXT, cc -E runs the code through the compiler's parser,
3797  # not just through cpp. "Syntax error" is here to catch this case.
3798  cat >conftest.$ac_ext <<_ACEOF
3799/* confdefs.h.  */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h.  */
3804#ifdef __STDC__
3805# include <limits.h>
3806#else
3807# include <assert.h>
3808#endif
3809		     Syntax error
3810_ACEOF
3811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3812  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3813  ac_status=$?
3814  grep -v '^ *+' conftest.er1 >conftest.err
3815  rm -f conftest.er1
3816  cat conftest.err >&5
3817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818  (exit $ac_status); } >/dev/null; then
3819  if test -s conftest.err; then
3820    ac_cpp_err=$ac_c_preproc_warn_flag
3821    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3822  else
3823    ac_cpp_err=
3824  fi
3825else
3826  ac_cpp_err=yes
3827fi
3828if test -z "$ac_cpp_err"; then
3829  :
3830else
3831  echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
3834  # Broken: fails on valid input.
3835continue
3836fi
3837rm -f conftest.err conftest.$ac_ext
3838
3839  # OK, works on sane cases.  Now check whether non-existent headers
3840  # can be detected and how.
3841  cat >conftest.$ac_ext <<_ACEOF
3842/* confdefs.h.  */
3843_ACEOF
3844cat confdefs.h >>conftest.$ac_ext
3845cat >>conftest.$ac_ext <<_ACEOF
3846/* end confdefs.h.  */
3847#include <ac_nonexistent.h>
3848_ACEOF
3849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3850  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3851  ac_status=$?
3852  grep -v '^ *+' conftest.er1 >conftest.err
3853  rm -f conftest.er1
3854  cat conftest.err >&5
3855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856  (exit $ac_status); } >/dev/null; then
3857  if test -s conftest.err; then
3858    ac_cpp_err=$ac_c_preproc_warn_flag
3859    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3860  else
3861    ac_cpp_err=
3862  fi
3863else
3864  ac_cpp_err=yes
3865fi
3866if test -z "$ac_cpp_err"; then
3867  # Broken: success on invalid input.
3868continue
3869else
3870  echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873  # Passes both tests.
3874ac_preproc_ok=:
3875break
3876fi
3877rm -f conftest.err conftest.$ac_ext
3878
3879done
3880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881rm -f conftest.err conftest.$ac_ext
3882if $ac_preproc_ok; then
3883  break
3884fi
3885
3886    done
3887    ac_cv_prog_CPP=$CPP
3888
3889fi
3890  CPP=$ac_cv_prog_CPP
3891else
3892  ac_cv_prog_CPP=$CPP
3893fi
3894echo "$as_me:$LINENO: result: $CPP" >&5
3895echo "${ECHO_T}$CPP" >&6
3896ac_preproc_ok=false
3897for ac_c_preproc_warn_flag in '' yes
3898do
3899  # Use a header file that comes with gcc, so configuring glibc
3900  # with a fresh cross-compiler works.
3901  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902  # <limits.h> exists even on freestanding compilers.
3903  # On the NeXT, cc -E runs the code through the compiler's parser,
3904  # not just through cpp. "Syntax error" is here to catch this case.
3905  cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h.  */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h.  */
3911#ifdef __STDC__
3912# include <limits.h>
3913#else
3914# include <assert.h>
3915#endif
3916		     Syntax error
3917_ACEOF
3918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3919  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3920  ac_status=$?
3921  grep -v '^ *+' conftest.er1 >conftest.err
3922  rm -f conftest.er1
3923  cat conftest.err >&5
3924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925  (exit $ac_status); } >/dev/null; then
3926  if test -s conftest.err; then
3927    ac_cpp_err=$ac_c_preproc_warn_flag
3928    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3929  else
3930    ac_cpp_err=
3931  fi
3932else
3933  ac_cpp_err=yes
3934fi
3935if test -z "$ac_cpp_err"; then
3936  :
3937else
3938  echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941  # Broken: fails on valid input.
3942continue
3943fi
3944rm -f conftest.err conftest.$ac_ext
3945
3946  # OK, works on sane cases.  Now check whether non-existent headers
3947  # can be detected and how.
3948  cat >conftest.$ac_ext <<_ACEOF
3949/* confdefs.h.  */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h.  */
3954#include <ac_nonexistent.h>
3955_ACEOF
3956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3957  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3958  ac_status=$?
3959  grep -v '^ *+' conftest.er1 >conftest.err
3960  rm -f conftest.er1
3961  cat conftest.err >&5
3962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963  (exit $ac_status); } >/dev/null; then
3964  if test -s conftest.err; then
3965    ac_cpp_err=$ac_c_preproc_warn_flag
3966    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967  else
3968    ac_cpp_err=
3969  fi
3970else
3971  ac_cpp_err=yes
3972fi
3973if test -z "$ac_cpp_err"; then
3974  # Broken: success on invalid input.
3975continue
3976else
3977  echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980  # Passes both tests.
3981ac_preproc_ok=:
3982break
3983fi
3984rm -f conftest.err conftest.$ac_ext
3985
3986done
3987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3988rm -f conftest.err conftest.$ac_ext
3989if $ac_preproc_ok; then
3990  :
3991else
3992  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3993See \`config.log' for more details." >&5
3994echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3995See \`config.log' for more details." >&2;}
3996   { (exit 1); exit 1; }; }
3997fi
3998
3999ac_ext=c
4000ac_cpp='$CPP $CPPFLAGS'
4001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004
4005
4006echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4007echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4008if test "${ac_cv_header_stdc+set}" = set; then
4009  echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011  cat >conftest.$ac_ext <<_ACEOF
4012/* confdefs.h.  */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h.  */
4017#include <stdlib.h>
4018#include <stdarg.h>
4019#include <string.h>
4020#include <float.h>
4021
4022int
4023main ()
4024{
4025
4026  ;
4027  return 0;
4028}
4029_ACEOF
4030rm -f conftest.$ac_objext
4031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032  (eval $ac_compile) 2>conftest.er1
4033  ac_status=$?
4034  grep -v '^ *+' conftest.er1 >conftest.err
4035  rm -f conftest.er1
4036  cat conftest.err >&5
4037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038  (exit $ac_status); } &&
4039	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041  (eval $ac_try) 2>&5
4042  ac_status=$?
4043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044  (exit $ac_status); }; } &&
4045	 { ac_try='test -s conftest.$ac_objext'
4046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047  (eval $ac_try) 2>&5
4048  ac_status=$?
4049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050  (exit $ac_status); }; }; then
4051  ac_cv_header_stdc=yes
4052else
4053  echo "$as_me: failed program was:" >&5
4054sed 's/^/| /' conftest.$ac_ext >&5
4055
4056ac_cv_header_stdc=no
4057fi
4058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4059
4060if test $ac_cv_header_stdc = yes; then
4061  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4062  cat >conftest.$ac_ext <<_ACEOF
4063/* confdefs.h.  */
4064_ACEOF
4065cat confdefs.h >>conftest.$ac_ext
4066cat >>conftest.$ac_ext <<_ACEOF
4067/* end confdefs.h.  */
4068#include <string.h>
4069
4070_ACEOF
4071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4072  $EGREP "memchr" >/dev/null 2>&1; then
4073  :
4074else
4075  ac_cv_header_stdc=no
4076fi
4077rm -f conftest*
4078
4079fi
4080
4081if test $ac_cv_header_stdc = yes; then
4082  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4083  cat >conftest.$ac_ext <<_ACEOF
4084/* confdefs.h.  */
4085_ACEOF
4086cat confdefs.h >>conftest.$ac_ext
4087cat >>conftest.$ac_ext <<_ACEOF
4088/* end confdefs.h.  */
4089#include <stdlib.h>
4090
4091_ACEOF
4092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093  $EGREP "free" >/dev/null 2>&1; then
4094  :
4095else
4096  ac_cv_header_stdc=no
4097fi
4098rm -f conftest*
4099
4100fi
4101
4102if test $ac_cv_header_stdc = yes; then
4103  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4104  if test "$cross_compiling" = yes; then
4105  :
4106else
4107  cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h.  */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h.  */
4113#include <ctype.h>
4114#if ((' ' & 0x0FF) == 0x020)
4115# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4116# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4117#else
4118# define ISLOWER(c) \
4119		   (('a' <= (c) && (c) <= 'i') \
4120		     || ('j' <= (c) && (c) <= 'r') \
4121		     || ('s' <= (c) && (c) <= 'z'))
4122# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4123#endif
4124
4125#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4126int
4127main ()
4128{
4129  int i;
4130  for (i = 0; i < 256; i++)
4131    if (XOR (islower (i), ISLOWER (i))
4132	|| toupper (i) != TOUPPER (i))
4133      exit(2);
4134  exit (0);
4135}
4136_ACEOF
4137rm -f conftest$ac_exeext
4138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4139  (eval $ac_link) 2>&5
4140  ac_status=$?
4141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144  (eval $ac_try) 2>&5
4145  ac_status=$?
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); }; }; then
4148  :
4149else
4150  echo "$as_me: program exited with status $ac_status" >&5
4151echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
4154( exit $ac_status )
4155ac_cv_header_stdc=no
4156fi
4157rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4158fi
4159fi
4160fi
4161echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4162echo "${ECHO_T}$ac_cv_header_stdc" >&6
4163if test $ac_cv_header_stdc = yes; then
4164
4165cat >>confdefs.h <<\_ACEOF
4166#define STDC_HEADERS 1
4167_ACEOF
4168
4169fi
4170
4171# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4182		  inttypes.h stdint.h unistd.h
4183do
4184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4185echo "$as_me:$LINENO: checking for $ac_header" >&5
4186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4187if eval "test \"\${$as_ac_Header+set}\" = set"; then
4188  echo $ECHO_N "(cached) $ECHO_C" >&6
4189else
4190  cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h.  */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h.  */
4196$ac_includes_default
4197
4198#include <$ac_header>
4199_ACEOF
4200rm -f conftest.$ac_objext
4201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4202  (eval $ac_compile) 2>conftest.er1
4203  ac_status=$?
4204  grep -v '^ *+' conftest.er1 >conftest.err
4205  rm -f conftest.er1
4206  cat conftest.err >&5
4207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208  (exit $ac_status); } &&
4209	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211  (eval $ac_try) 2>&5
4212  ac_status=$?
4213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214  (exit $ac_status); }; } &&
4215	 { ac_try='test -s conftest.$ac_objext'
4216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217  (eval $ac_try) 2>&5
4218  ac_status=$?
4219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220  (exit $ac_status); }; }; then
4221  eval "$as_ac_Header=yes"
4222else
4223  echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226eval "$as_ac_Header=no"
4227fi
4228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4229fi
4230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4232if test `eval echo '${'$as_ac_Header'}'` = yes; then
4233  cat >>confdefs.h <<_ACEOF
4234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4235_ACEOF
4236
4237fi
4238
4239done
4240
4241
4242
4243for ac_header in dlfcn.h
4244do
4245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4246if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247  echo "$as_me:$LINENO: checking for $ac_header" >&5
4248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4249if eval "test \"\${$as_ac_Header+set}\" = set"; then
4250  echo $ECHO_N "(cached) $ECHO_C" >&6
4251fi
4252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4254else
4255  # Is the header compilable?
4256echo "$as_me:$LINENO: checking $ac_header usability" >&5
4257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4258cat >conftest.$ac_ext <<_ACEOF
4259/* confdefs.h.  */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h.  */
4264$ac_includes_default
4265#include <$ac_header>
4266_ACEOF
4267rm -f conftest.$ac_objext
4268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269  (eval $ac_compile) 2>conftest.er1
4270  ac_status=$?
4271  grep -v '^ *+' conftest.er1 >conftest.err
4272  rm -f conftest.er1
4273  cat conftest.err >&5
4274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275  (exit $ac_status); } &&
4276	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278  (eval $ac_try) 2>&5
4279  ac_status=$?
4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281  (exit $ac_status); }; } &&
4282	 { ac_try='test -s conftest.$ac_objext'
4283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284  (eval $ac_try) 2>&5
4285  ac_status=$?
4286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287  (exit $ac_status); }; }; then
4288  ac_header_compiler=yes
4289else
4290  echo "$as_me: failed program was:" >&5
4291sed 's/^/| /' conftest.$ac_ext >&5
4292
4293ac_header_compiler=no
4294fi
4295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4297echo "${ECHO_T}$ac_header_compiler" >&6
4298
4299# Is the header present?
4300echo "$as_me:$LINENO: checking $ac_header presence" >&5
4301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4302cat >conftest.$ac_ext <<_ACEOF
4303/* confdefs.h.  */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h.  */
4308#include <$ac_header>
4309_ACEOF
4310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4311  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4312  ac_status=$?
4313  grep -v '^ *+' conftest.er1 >conftest.err
4314  rm -f conftest.er1
4315  cat conftest.err >&5
4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317  (exit $ac_status); } >/dev/null; then
4318  if test -s conftest.err; then
4319    ac_cpp_err=$ac_c_preproc_warn_flag
4320    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4321  else
4322    ac_cpp_err=
4323  fi
4324else
4325  ac_cpp_err=yes
4326fi
4327if test -z "$ac_cpp_err"; then
4328  ac_header_preproc=yes
4329else
4330  echo "$as_me: failed program was:" >&5
4331sed 's/^/| /' conftest.$ac_ext >&5
4332
4333  ac_header_preproc=no
4334fi
4335rm -f conftest.err conftest.$ac_ext
4336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4337echo "${ECHO_T}$ac_header_preproc" >&6
4338
4339# So?  What about this header?
4340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4341  yes:no: )
4342    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4344    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4346    ac_header_preproc=yes
4347    ;;
4348  no:yes:* )
4349    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4351    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4352echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4353    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4355    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4356echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4357    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4359    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4361    (
4362      cat <<\_ASBOX
4363## -------------------------------------- ##
4364## Report this to rdenis@simphalempin.com ##
4365## -------------------------------------- ##
4366_ASBOX
4367    ) |
4368      sed "s/^/$as_me: WARNING:     /" >&2
4369    ;;
4370esac
4371echo "$as_me:$LINENO: checking for $ac_header" >&5
4372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4373if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374  echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376  eval "$as_ac_Header=\$ac_header_preproc"
4377fi
4378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4380
4381fi
4382if test `eval echo '${'$as_ac_Header'}'` = yes; then
4383  cat >>confdefs.h <<_ACEOF
4384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4385_ACEOF
4386
4387fi
4388
4389done
4390
4391ac_ext=cc
4392ac_cpp='$CXXCPP $CPPFLAGS'
4393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4396if test -n "$ac_tool_prefix"; then
4397  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4398  do
4399    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4401echo "$as_me:$LINENO: checking for $ac_word" >&5
4402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4403if test "${ac_cv_prog_CXX+set}" = set; then
4404  echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406  if test -n "$CXX"; then
4407  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4408else
4409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH
4411do
4412  IFS=$as_save_IFS
4413  test -z "$as_dir" && as_dir=.
4414  for ac_exec_ext in '' $ac_executable_extensions; do
4415  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418    break 2
4419  fi
4420done
4421done
4422
4423fi
4424fi
4425CXX=$ac_cv_prog_CXX
4426if test -n "$CXX"; then
4427  echo "$as_me:$LINENO: result: $CXX" >&5
4428echo "${ECHO_T}$CXX" >&6
4429else
4430  echo "$as_me:$LINENO: result: no" >&5
4431echo "${ECHO_T}no" >&6
4432fi
4433
4434    test -n "$CXX" && break
4435  done
4436fi
4437if test -z "$CXX"; then
4438  ac_ct_CXX=$CXX
4439  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4440do
4441  # Extract the first word of "$ac_prog", so it can be a program name with args.
4442set dummy $ac_prog; ac_word=$2
4443echo "$as_me:$LINENO: checking for $ac_word" >&5
4444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4446  echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448  if test -n "$ac_ct_CXX"; then
4449  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454  IFS=$as_save_IFS
4455  test -z "$as_dir" && as_dir=.
4456  for ac_exec_ext in '' $ac_executable_extensions; do
4457  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458    ac_cv_prog_ac_ct_CXX="$ac_prog"
4459    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460    break 2
4461  fi
4462done
4463done
4464
4465fi
4466fi
4467ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4468if test -n "$ac_ct_CXX"; then
4469  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4470echo "${ECHO_T}$ac_ct_CXX" >&6
4471else
4472  echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6
4474fi
4475
4476  test -n "$ac_ct_CXX" && break
4477done
4478test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4479
4480  CXX=$ac_ct_CXX
4481fi
4482
4483
4484# Provide some information about the compiler.
4485echo "$as_me:$LINENO:" \
4486     "checking for C++ compiler version" >&5
4487ac_compiler=`set X $ac_compile; echo $2`
4488{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4489  (eval $ac_compiler --version </dev/null >&5) 2>&5
4490  ac_status=$?
4491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492  (exit $ac_status); }
4493{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4494  (eval $ac_compiler -v </dev/null >&5) 2>&5
4495  ac_status=$?
4496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497  (exit $ac_status); }
4498{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4499  (eval $ac_compiler -V </dev/null >&5) 2>&5
4500  ac_status=$?
4501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502  (exit $ac_status); }
4503
4504echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4505echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4506if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4507  echo $ECHO_N "(cached) $ECHO_C" >&6
4508else
4509  cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h.  */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h.  */
4515
4516int
4517main ()
4518{
4519#ifndef __GNUC__
4520       choke me
4521#endif
4522
4523  ;
4524  return 0;
4525}
4526_ACEOF
4527rm -f conftest.$ac_objext
4528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529  (eval $ac_compile) 2>conftest.er1
4530  ac_status=$?
4531  grep -v '^ *+' conftest.er1 >conftest.err
4532  rm -f conftest.er1
4533  cat conftest.err >&5
4534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535  (exit $ac_status); } &&
4536	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538  (eval $ac_try) 2>&5
4539  ac_status=$?
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); }; } &&
4542	 { ac_try='test -s conftest.$ac_objext'
4543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544  (eval $ac_try) 2>&5
4545  ac_status=$?
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); }; }; then
4548  ac_compiler_gnu=yes
4549else
4550  echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553ac_compiler_gnu=no
4554fi
4555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4556ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4557
4558fi
4559echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4560echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4561GXX=`test $ac_compiler_gnu = yes && echo yes`
4562ac_test_CXXFLAGS=${CXXFLAGS+set}
4563ac_save_CXXFLAGS=$CXXFLAGS
4564CXXFLAGS="-g"
4565echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4566echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4567if test "${ac_cv_prog_cxx_g+set}" = set; then
4568  echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570  cat >conftest.$ac_ext <<_ACEOF
4571/* confdefs.h.  */
4572_ACEOF
4573cat confdefs.h >>conftest.$ac_ext
4574cat >>conftest.$ac_ext <<_ACEOF
4575/* end confdefs.h.  */
4576
4577int
4578main ()
4579{
4580
4581  ;
4582  return 0;
4583}
4584_ACEOF
4585rm -f conftest.$ac_objext
4586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587  (eval $ac_compile) 2>conftest.er1
4588  ac_status=$?
4589  grep -v '^ *+' conftest.er1 >conftest.err
4590  rm -f conftest.er1
4591  cat conftest.err >&5
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); } &&
4594	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596  (eval $ac_try) 2>&5
4597  ac_status=$?
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); }; } &&
4600	 { ac_try='test -s conftest.$ac_objext'
4601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602  (eval $ac_try) 2>&5
4603  ac_status=$?
4604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); }; }; then
4606  ac_cv_prog_cxx_g=yes
4607else
4608  echo "$as_me: failed program was:" >&5
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
4611ac_cv_prog_cxx_g=no
4612fi
4613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4614fi
4615echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4616echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4617if test "$ac_test_CXXFLAGS" = set; then
4618  CXXFLAGS=$ac_save_CXXFLAGS
4619elif test $ac_cv_prog_cxx_g = yes; then
4620  if test "$GXX" = yes; then
4621    CXXFLAGS="-g -O2"
4622  else
4623    CXXFLAGS="-g"
4624  fi
4625else
4626  if test "$GXX" = yes; then
4627    CXXFLAGS="-O2"
4628  else
4629    CXXFLAGS=
4630  fi
4631fi
4632for ac_declaration in \
4633   '' \
4634   'extern "C" void std::exit (int) throw (); using std::exit;' \
4635   'extern "C" void std::exit (int); using std::exit;' \
4636   'extern "C" void exit (int) throw ();' \
4637   'extern "C" void exit (int);' \
4638   'void exit (int);'
4639do
4640  cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h.  */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h.  */
4646$ac_declaration
4647#include <stdlib.h>
4648int
4649main ()
4650{
4651exit (42);
4652  ;
4653  return 0;
4654}
4655_ACEOF
4656rm -f conftest.$ac_objext
4657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658  (eval $ac_compile) 2>conftest.er1
4659  ac_status=$?
4660  grep -v '^ *+' conftest.er1 >conftest.err
4661  rm -f conftest.er1
4662  cat conftest.err >&5
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); } &&
4665	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667  (eval $ac_try) 2>&5
4668  ac_status=$?
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); }; } &&
4671	 { ac_try='test -s conftest.$ac_objext'
4672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673  (eval $ac_try) 2>&5
4674  ac_status=$?
4675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676  (exit $ac_status); }; }; then
4677  :
4678else
4679  echo "$as_me: failed program was:" >&5
4680sed 's/^/| /' conftest.$ac_ext >&5
4681
4682continue
4683fi
4684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685  cat >conftest.$ac_ext <<_ACEOF
4686/* confdefs.h.  */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h.  */
4691$ac_declaration
4692int
4693main ()
4694{
4695exit (42);
4696  ;
4697  return 0;
4698}
4699_ACEOF
4700rm -f conftest.$ac_objext
4701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702  (eval $ac_compile) 2>conftest.er1
4703  ac_status=$?
4704  grep -v '^ *+' conftest.er1 >conftest.err
4705  rm -f conftest.er1
4706  cat conftest.err >&5
4707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708  (exit $ac_status); } &&
4709	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711  (eval $ac_try) 2>&5
4712  ac_status=$?
4713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714  (exit $ac_status); }; } &&
4715	 { ac_try='test -s conftest.$ac_objext'
4716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717  (eval $ac_try) 2>&5
4718  ac_status=$?
4719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720  (exit $ac_status); }; }; then
4721  break
4722else
4723  echo "$as_me: failed program was:" >&5
4724sed 's/^/| /' conftest.$ac_ext >&5
4725
4726fi
4727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4728done
4729rm -f conftest*
4730if test -n "$ac_declaration"; then
4731  echo '#ifdef __cplusplus' >>confdefs.h
4732  echo $ac_declaration      >>confdefs.h
4733  echo '#endif'             >>confdefs.h
4734fi
4735
4736ac_ext=cc
4737ac_cpp='$CXXCPP $CPPFLAGS'
4738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4741
4742depcc="$CXX"  am_compiler_list=
4743
4744echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4745echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4746if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4747  echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4750  # We make a subdir and do the tests there.  Otherwise we can end up
4751  # making bogus files that we don't know about and never remove.  For
4752  # instance it was reported that on HP-UX the gcc test will end up
4753  # making a dummy file named `D' -- because `-MD' means `put the output
4754  # in D'.
4755  mkdir conftest.dir
4756  # Copy depcomp to subdir because otherwise we won't find it if we're
4757  # using a relative directory.
4758  cp "$am_depcomp" conftest.dir
4759  cd conftest.dir
4760  # We will build objects and dependencies in a subdirectory because
4761  # it helps to detect inapplicable dependency modes.  For instance
4762  # both Tru64's cc and ICC support -MD to output dependencies as a
4763  # side effect of compilation, but ICC will put the dependencies in
4764  # the current directory while Tru64 will put them in the object
4765  # directory.
4766  mkdir sub
4767
4768  am_cv_CXX_dependencies_compiler_type=none
4769  if test "$am_compiler_list" = ""; then
4770     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4771  fi
4772  for depmode in $am_compiler_list; do
4773    # Setup a source with many dependencies, because some compilers
4774    # like to wrap large dependency lists on column 80 (with \), and
4775    # we should not choose a depcomp mode which is confused by this.
4776    #
4777    # We need to recreate these files for each test, as the compiler may
4778    # overwrite some of them when testing with obscure command lines.
4779    # This happens at least with the AIX C compiler.
4780    : > sub/conftest.c
4781    for i in 1 2 3 4 5 6; do
4782      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4783      : > sub/conftst$i.h
4784    done
4785    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4786
4787    case $depmode in
4788    nosideeffect)
4789      # after this tag, mechanisms are not by side-effect, so they'll
4790      # only be used when explicitly requested
4791      if test "x$enable_dependency_tracking" = xyes; then
4792	continue
4793      else
4794	break
4795      fi
4796      ;;
4797    none) break ;;
4798    esac
4799    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4800    # mode.  It turns out that the SunPro C++ compiler does not properly
4801    # handle `-M -o', and we need to detect this.
4802    if depmode=$depmode \
4803       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4804       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4805       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4806         >/dev/null 2>conftest.err &&
4807       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4808       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4809       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4810      # icc doesn't choke on unknown options, it will just issue warnings
4811      # (even with -Werror).  So we grep stderr for any message
4812      # that says an option was ignored.
4813      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4814        am_cv_CXX_dependencies_compiler_type=$depmode
4815        break
4816      fi
4817    fi
4818  done
4819
4820  cd ..
4821  rm -rf conftest.dir
4822else
4823  am_cv_CXX_dependencies_compiler_type=none
4824fi
4825
4826fi
4827echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4828echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4829CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4830
4831
4832
4833if
4834  test "x$enable_dependency_tracking" != xno \
4835  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4836  am__fastdepCXX_TRUE=
4837  am__fastdepCXX_FALSE='#'
4838else
4839  am__fastdepCXX_TRUE='#'
4840  am__fastdepCXX_FALSE=
4841fi
4842
4843
4844ac_ext=cc
4845ac_cpp='$CXXCPP $CPPFLAGS'
4846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4849echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4850echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4851if test -z "$CXXCPP"; then
4852  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4853  echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855      # Double quotes because CXXCPP needs to be expanded
4856    for CXXCPP in "$CXX -E" "/lib/cpp"
4857    do
4858      ac_preproc_ok=false
4859for ac_cxx_preproc_warn_flag in '' yes
4860do
4861  # Use a header file that comes with gcc, so configuring glibc
4862  # with a fresh cross-compiler works.
4863  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4864  # <limits.h> exists even on freestanding compilers.
4865  # On the NeXT, cc -E runs the code through the compiler's parser,
4866  # not just through cpp. "Syntax error" is here to catch this case.
4867  cat >conftest.$ac_ext <<_ACEOF
4868/* confdefs.h.  */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h.  */
4873#ifdef __STDC__
4874# include <limits.h>
4875#else
4876# include <assert.h>
4877#endif
4878		     Syntax error
4879_ACEOF
4880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4881  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4882  ac_status=$?
4883  grep -v '^ *+' conftest.er1 >conftest.err
4884  rm -f conftest.er1
4885  cat conftest.err >&5
4886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887  (exit $ac_status); } >/dev/null; then
4888  if test -s conftest.err; then
4889    ac_cpp_err=$ac_cxx_preproc_warn_flag
4890    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4891  else
4892    ac_cpp_err=
4893  fi
4894else
4895  ac_cpp_err=yes
4896fi
4897if test -z "$ac_cpp_err"; then
4898  :
4899else
4900  echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903  # Broken: fails on valid input.
4904continue
4905fi
4906rm -f conftest.err conftest.$ac_ext
4907
4908  # OK, works on sane cases.  Now check whether non-existent headers
4909  # can be detected and how.
4910  cat >conftest.$ac_ext <<_ACEOF
4911/* confdefs.h.  */
4912_ACEOF
4913cat confdefs.h >>conftest.$ac_ext
4914cat >>conftest.$ac_ext <<_ACEOF
4915/* end confdefs.h.  */
4916#include <ac_nonexistent.h>
4917_ACEOF
4918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4919  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4920  ac_status=$?
4921  grep -v '^ *+' conftest.er1 >conftest.err
4922  rm -f conftest.er1
4923  cat conftest.err >&5
4924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925  (exit $ac_status); } >/dev/null; then
4926  if test -s conftest.err; then
4927    ac_cpp_err=$ac_cxx_preproc_warn_flag
4928    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4929  else
4930    ac_cpp_err=
4931  fi
4932else
4933  ac_cpp_err=yes
4934fi
4935if test -z "$ac_cpp_err"; then
4936  # Broken: success on invalid input.
4937continue
4938else
4939  echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
4942  # Passes both tests.
4943ac_preproc_ok=:
4944break
4945fi
4946rm -f conftest.err conftest.$ac_ext
4947
4948done
4949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4950rm -f conftest.err conftest.$ac_ext
4951if $ac_preproc_ok; then
4952  break
4953fi
4954
4955    done
4956    ac_cv_prog_CXXCPP=$CXXCPP
4957
4958fi
4959  CXXCPP=$ac_cv_prog_CXXCPP
4960else
4961  ac_cv_prog_CXXCPP=$CXXCPP
4962fi
4963echo "$as_me:$LINENO: result: $CXXCPP" >&5
4964echo "${ECHO_T}$CXXCPP" >&6
4965ac_preproc_ok=false
4966for ac_cxx_preproc_warn_flag in '' yes
4967do
4968  # Use a header file that comes with gcc, so configuring glibc
4969  # with a fresh cross-compiler works.
4970  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4971  # <limits.h> exists even on freestanding compilers.
4972  # On the NeXT, cc -E runs the code through the compiler's parser,
4973  # not just through cpp. "Syntax error" is here to catch this case.
4974  cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h.  */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h.  */
4980#ifdef __STDC__
4981# include <limits.h>
4982#else
4983# include <assert.h>
4984#endif
4985		     Syntax error
4986_ACEOF
4987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989  ac_status=$?
4990  grep -v '^ *+' conftest.er1 >conftest.err
4991  rm -f conftest.er1
4992  cat conftest.err >&5
4993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994  (exit $ac_status); } >/dev/null; then
4995  if test -s conftest.err; then
4996    ac_cpp_err=$ac_cxx_preproc_warn_flag
4997    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4998  else
4999    ac_cpp_err=
5000  fi
5001else
5002  ac_cpp_err=yes
5003fi
5004if test -z "$ac_cpp_err"; then
5005  :
5006else
5007  echo "$as_me: failed program was:" >&5
5008sed 's/^/| /' conftest.$ac_ext >&5
5009
5010  # Broken: fails on valid input.
5011continue
5012fi
5013rm -f conftest.err conftest.$ac_ext
5014
5015  # OK, works on sane cases.  Now check whether non-existent headers
5016  # can be detected and how.
5017  cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h.  */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h.  */
5023#include <ac_nonexistent.h>
5024_ACEOF
5025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5026  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027  ac_status=$?
5028  grep -v '^ *+' conftest.er1 >conftest.err
5029  rm -f conftest.er1
5030  cat conftest.err >&5
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); } >/dev/null; then
5033  if test -s conftest.err; then
5034    ac_cpp_err=$ac_cxx_preproc_warn_flag
5035    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5036  else
5037    ac_cpp_err=
5038  fi
5039else
5040  ac_cpp_err=yes
5041fi
5042if test -z "$ac_cpp_err"; then
5043  # Broken: success on invalid input.
5044continue
5045else
5046  echo "$as_me: failed program was:" >&5
5047sed 's/^/| /' conftest.$ac_ext >&5
5048
5049  # Passes both tests.
5050ac_preproc_ok=:
5051break
5052fi
5053rm -f conftest.err conftest.$ac_ext
5054
5055done
5056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057rm -f conftest.err conftest.$ac_ext
5058if $ac_preproc_ok; then
5059  :
5060else
5061  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5062See \`config.log' for more details." >&5
5063echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5064See \`config.log' for more details." >&2;}
5065   { (exit 1); exit 1; }; }
5066fi
5067
5068ac_ext=cc
5069ac_cpp='$CXXCPP $CPPFLAGS'
5070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5073
5074
5075ac_ext=f
5076ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5077ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5079if test -n "$ac_tool_prefix"; then
5080  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5081  do
5082    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084echo "$as_me:$LINENO: checking for $ac_word" >&5
5085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086if test "${ac_cv_prog_F77+set}" = set; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  if test -n "$F77"; then
5090  ac_cv_prog_F77="$F77" # Let the user override the test.
5091else
5092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095  IFS=$as_save_IFS
5096  test -z "$as_dir" && as_dir=.
5097  for ac_exec_ext in '' $ac_executable_extensions; do
5098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101    break 2
5102  fi
5103done
5104done
5105
5106fi
5107fi
5108F77=$ac_cv_prog_F77
5109if test -n "$F77"; then
5110  echo "$as_me:$LINENO: result: $F77" >&5
5111echo "${ECHO_T}$F77" >&6
5112else
5113  echo "$as_me:$LINENO: result: no" >&5
5114echo "${ECHO_T}no" >&6
5115fi
5116
5117    test -n "$F77" && break
5118  done
5119fi
5120if test -z "$F77"; then
5121  ac_ct_F77=$F77
5122  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5123do
5124  # Extract the first word of "$ac_prog", so it can be a program name with args.
5125set dummy $ac_prog; ac_word=$2
5126echo "$as_me:$LINENO: checking for $ac_word" >&5
5127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5129  echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131  if test -n "$ac_ct_F77"; then
5132  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137  IFS=$as_save_IFS
5138  test -z "$as_dir" && as_dir=.
5139  for ac_exec_ext in '' $ac_executable_extensions; do
5140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141    ac_cv_prog_ac_ct_F77="$ac_prog"
5142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143    break 2
5144  fi
5145done
5146done
5147
5148fi
5149fi
5150ac_ct_F77=$ac_cv_prog_ac_ct_F77
5151if test -n "$ac_ct_F77"; then
5152  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5153echo "${ECHO_T}$ac_ct_F77" >&6
5154else
5155  echo "$as_me:$LINENO: result: no" >&5
5156echo "${ECHO_T}no" >&6
5157fi
5158
5159  test -n "$ac_ct_F77" && break
5160done
5161
5162  F77=$ac_ct_F77
5163fi
5164
5165
5166# Provide some information about the compiler.
5167echo "$as_me:5167:" \
5168     "checking for Fortran 77 compiler version" >&5
5169ac_compiler=`set X $ac_compile; echo $2`
5170{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5171  (eval $ac_compiler --version </dev/null >&5) 2>&5
5172  ac_status=$?
5173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174  (exit $ac_status); }
5175{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5176  (eval $ac_compiler -v </dev/null >&5) 2>&5
5177  ac_status=$?
5178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179  (exit $ac_status); }
5180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5181  (eval $ac_compiler -V </dev/null >&5) 2>&5
5182  ac_status=$?
5183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184  (exit $ac_status); }
5185rm -f a.out
5186
5187# If we don't use `.F' as extension, the preprocessor is not run on the
5188# input file.  (Note that this only needs to work for GNU compilers.)
5189ac_save_ext=$ac_ext
5190ac_ext=F
5191echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5192echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5193if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5194  echo $ECHO_N "(cached) $ECHO_C" >&6
5195else
5196  cat >conftest.$ac_ext <<_ACEOF
5197      program main
5198#ifndef __GNUC__
5199       choke me
5200#endif
5201
5202      end
5203_ACEOF
5204rm -f conftest.$ac_objext
5205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206  (eval $ac_compile) 2>conftest.er1
5207  ac_status=$?
5208  grep -v '^ *+' conftest.er1 >conftest.err
5209  rm -f conftest.er1
5210  cat conftest.err >&5
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); } &&
5213	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215  (eval $ac_try) 2>&5
5216  ac_status=$?
5217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); }; } &&
5219	 { ac_try='test -s conftest.$ac_objext'
5220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221  (eval $ac_try) 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); }; }; then
5225  ac_compiler_gnu=yes
5226else
5227  echo "$as_me: failed program was:" >&5
5228sed 's/^/| /' conftest.$ac_ext >&5
5229
5230ac_compiler_gnu=no
5231fi
5232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5234
5235fi
5236echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5237echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5238ac_ext=$ac_save_ext
5239ac_test_FFLAGS=${FFLAGS+set}
5240ac_save_FFLAGS=$FFLAGS
5241FFLAGS=
5242echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5243echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5244if test "${ac_cv_prog_f77_g+set}" = set; then
5245  echo $ECHO_N "(cached) $ECHO_C" >&6
5246else
5247  FFLAGS=-g
5248cat >conftest.$ac_ext <<_ACEOF
5249      program main
5250
5251      end
5252_ACEOF
5253rm -f conftest.$ac_objext
5254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5255  (eval $ac_compile) 2>conftest.er1
5256  ac_status=$?
5257  grep -v '^ *+' conftest.er1 >conftest.err
5258  rm -f conftest.er1
5259  cat conftest.err >&5
5260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261  (exit $ac_status); } &&
5262	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264  (eval $ac_try) 2>&5
5265  ac_status=$?
5266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267  (exit $ac_status); }; } &&
5268	 { ac_try='test -s conftest.$ac_objext'
5269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270  (eval $ac_try) 2>&5
5271  ac_status=$?
5272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273  (exit $ac_status); }; }; then
5274  ac_cv_prog_f77_g=yes
5275else
5276  echo "$as_me: failed program was:" >&5
5277sed 's/^/| /' conftest.$ac_ext >&5
5278
5279ac_cv_prog_f77_g=no
5280fi
5281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5282
5283fi
5284echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5285echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5286if test "$ac_test_FFLAGS" = set; then
5287  FFLAGS=$ac_save_FFLAGS
5288elif test $ac_cv_prog_f77_g = yes; then
5289  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5290    FFLAGS="-g -O2"
5291  else
5292    FFLAGS="-g"
5293  fi
5294else
5295  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5296    FFLAGS="-O2"
5297  else
5298    FFLAGS=
5299  fi
5300fi
5301
5302G77=`test $ac_compiler_gnu = yes && echo yes`
5303ac_ext=c
5304ac_cpp='$CPP $CPPFLAGS'
5305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307ac_compiler_gnu=$ac_cv_c_compiler_gnu
5308
5309
5310
5311# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5312
5313# find the maximum length of command line arguments
5314echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5315echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5316if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5317  echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319    i=0
5320  testring="ABCD"
5321
5322  case $build_os in
5323  msdosdjgpp*)
5324    # On DJGPP, this test can blow up pretty badly due to problems in libc
5325    # (any single argument exceeding 2000 bytes causes a buffer overrun
5326    # during glob expansion).  Even if it were fixed, the result of this
5327    # check would be larger than it should be.
5328    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5329    ;;
5330
5331  gnu*)
5332    # Under GNU Hurd, this test is not required because there is
5333    # no limit to the length of command line arguments.
5334    # Libtool will interpret -1 as no limit whatsoever
5335    lt_cv_sys_max_cmd_len=-1;
5336    ;;
5337
5338  cygwin* | mingw*)
5339    # On Win9x/ME, this test blows up -- it succeeds, but takes
5340    # about 5 minutes as the teststring grows exponentially.
5341    # Worse, since 9x/ME are not pre-emptively multitasking,
5342    # you end up with a "frozen" computer, even though with patience
5343    # the test eventually succeeds (with a max line length of 256k).
5344    # Instead, let's just punt: use the minimum linelength reported by
5345    # all of the supported platforms: 8192 (on NT/2K/XP).
5346    lt_cv_sys_max_cmd_len=8192;
5347    ;;
5348
5349  amigaos*)
5350    # On AmigaOS with pdksh, this test takes hours, literally.
5351    # So we just punt and use a minimum line length of 8192.
5352    lt_cv_sys_max_cmd_len=8192;
5353    ;;
5354
5355 *)
5356    # If test is not a shell built-in, we'll probably end up computing a
5357    # maximum length that is only half of the actual maximum length, but
5358    # we can't tell.
5359    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5360	       = "XX$testring") >/dev/null 2>&1 &&
5361	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5362	    lt_cv_sys_max_cmd_len=$new_result &&
5363	    test $i != 17 # 1/2 MB should be enough
5364    do
5365      i=`expr $i + 1`
5366      testring=$testring$testring
5367    done
5368    testring=
5369    # Add a significant safety factor because C++ compilers can tack on massive
5370    # amounts of additional arguments before passing them to the linker.
5371    # It appears as though 1/2 is a usable value.
5372    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5373    ;;
5374  esac
5375
5376fi
5377
5378if test -n $lt_cv_sys_max_cmd_len ; then
5379  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5380echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5381else
5382  echo "$as_me:$LINENO: result: none" >&5
5383echo "${ECHO_T}none" >&6
5384fi
5385
5386
5387
5388
5389# Check for command to grab the raw symbol name followed by C symbol from nm.
5390echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5391echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5392if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5393  echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395
5396# These are sane defaults that work on at least a few old systems.
5397# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5398
5399# Character class describing NM global symbol codes.
5400symcode='[BCDEGRST]'
5401
5402# Regexp to match symbols that can be accessed directly from C.
5403sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5404
5405# Transform the above into a raw symbol and a C symbol.
5406symxfrm='\1 \2\3 \3'
5407
5408# Transform an extracted symbol line into a proper C declaration
5409lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5410
5411# Transform an extracted symbol line into symbol name and symbol address
5412lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5413
5414# Define system-specific variables.
5415case $host_os in
5416aix*)
5417  symcode='[BCDT]'
5418  ;;
5419cygwin* | mingw* | pw32*)
5420  symcode='[ABCDGISTW]'
5421  ;;
5422hpux*) # Its linker distinguishes data from code symbols
5423  if test "$host_cpu" = ia64; then
5424    symcode='[ABCDEGRST]'
5425  fi
5426  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5427  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5428  ;;
5429irix* | nonstopux*)
5430  symcode='[BCDEGRST]'
5431  ;;
5432osf*)
5433  symcode='[BCDEGQRST]'
5434  ;;
5435solaris* | sysv5*)
5436  symcode='[BDRT]'
5437  ;;
5438sysv4)
5439  symcode='[DFNSTU]'
5440  ;;
5441esac
5442
5443# Handle CRLF in mingw tool chain
5444opt_cr=
5445case $build_os in
5446mingw*)
5447  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5448  ;;
5449esac
5450
5451# If we're using GNU nm, then use its standard symbol codes.
5452case `$NM -V 2>&1` in
5453*GNU* | *'with BFD'*)
5454  symcode='[ABCDGIRSTW]' ;;
5455esac
5456
5457# Try without a prefix undercore, then with it.
5458for ac_symprfx in "" "_"; do
5459
5460  # Write the raw and C identifiers.
5461  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5462
5463  # Check to see that the pipe works correctly.
5464  pipe_works=no
5465
5466  rm -f conftest*
5467  cat > conftest.$ac_ext <<EOF
5468#ifdef __cplusplus
5469extern "C" {
5470#endif
5471char nm_test_var;
5472void nm_test_func(){}
5473#ifdef __cplusplus
5474}
5475#endif
5476int main(){nm_test_var='a';nm_test_func();return(0);}
5477EOF
5478
5479  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480  (eval $ac_compile) 2>&5
5481  ac_status=$?
5482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483  (exit $ac_status); }; then
5484    # Now try to grab the symbols.
5485    nlist=conftest.nm
5486    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5487  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5488  ac_status=$?
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); } && test -s "$nlist"; then
5491      # Try sorting and uniquifying the output.
5492      if sort "$nlist" | uniq > "$nlist"T; then
5493	mv -f "$nlist"T "$nlist"
5494      else
5495	rm -f "$nlist"T
5496      fi
5497
5498      # Make sure that we snagged all the symbols we need.
5499      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5500	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5501	  cat <<EOF > conftest.$ac_ext
5502#ifdef __cplusplus
5503extern "C" {
5504#endif
5505
5506EOF
5507	  # Now generate the symbol file.
5508	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5509
5510	  cat <<EOF >> conftest.$ac_ext
5511#if defined (__STDC__) && __STDC__
5512# define lt_ptr_t void *
5513#else
5514# define lt_ptr_t char *
5515# define const
5516#endif
5517
5518/* The mapping between symbol names and symbols. */
5519const struct {
5520  const char *name;
5521  lt_ptr_t address;
5522}
5523lt_preloaded_symbols[] =
5524{
5525EOF
5526	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5527	  cat <<\EOF >> conftest.$ac_ext
5528  {0, (lt_ptr_t) 0}
5529};
5530
5531#ifdef __cplusplus
5532}
5533#endif
5534EOF
5535	  # Now try linking the two files.
5536	  mv conftest.$ac_objext conftstm.$ac_objext
5537	  lt_save_LIBS="$LIBS"
5538	  lt_save_CFLAGS="$CFLAGS"
5539	  LIBS="conftstm.$ac_objext"
5540	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5541	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542  (eval $ac_link) 2>&5
5543  ac_status=$?
5544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5546	    pipe_works=yes
5547	  fi
5548	  LIBS="$lt_save_LIBS"
5549	  CFLAGS="$lt_save_CFLAGS"
5550	else
5551	  echo "cannot find nm_test_func in $nlist" >&5
5552	fi
5553      else
5554	echo "cannot find nm_test_var in $nlist" >&5
5555      fi
5556    else
5557      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5558    fi
5559  else
5560    echo "$progname: failed program was:" >&5
5561    cat conftest.$ac_ext >&5
5562  fi
5563  rm -f conftest* conftst*
5564
5565  # Do not use the global_symbol_pipe unless it works.
5566  if test "$pipe_works" = yes; then
5567    break
5568  else
5569    lt_cv_sys_global_symbol_pipe=
5570  fi
5571done
5572
5573fi
5574
5575if test -z "$lt_cv_sys_global_symbol_pipe"; then
5576  lt_cv_sys_global_symbol_to_cdecl=
5577fi
5578if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5579  echo "$as_me:$LINENO: result: failed" >&5
5580echo "${ECHO_T}failed" >&6
5581else
5582  echo "$as_me:$LINENO: result: ok" >&5
5583echo "${ECHO_T}ok" >&6
5584fi
5585
5586echo "$as_me:$LINENO: checking for objdir" >&5
5587echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5588if test "${lt_cv_objdir+set}" = set; then
5589  echo $ECHO_N "(cached) $ECHO_C" >&6
5590else
5591  rm -f .libs 2>/dev/null
5592mkdir .libs 2>/dev/null
5593if test -d .libs; then
5594  lt_cv_objdir=.libs
5595else
5596  # MS-DOS does not allow filenames that begin with a dot.
5597  lt_cv_objdir=_libs
5598fi
5599rmdir .libs 2>/dev/null
5600fi
5601echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5602echo "${ECHO_T}$lt_cv_objdir" >&6
5603objdir=$lt_cv_objdir
5604
5605
5606
5607
5608
5609case $host_os in
5610aix3*)
5611  # AIX sometimes has problems with the GCC collect2 program.  For some
5612  # reason, if we set the COLLECT_NAMES environment variable, the problems
5613  # vanish in a puff of smoke.
5614  if test "X${COLLECT_NAMES+set}" != Xset; then
5615    COLLECT_NAMES=
5616    export COLLECT_NAMES
5617  fi
5618  ;;
5619esac
5620
5621# Sed substitution that helps us do robust quoting.  It backslashifies
5622# metacharacters that are still active within double-quoted strings.
5623Xsed='sed -e s/^X//'
5624sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5625
5626# Same as above, but do not quote variable references.
5627double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5628
5629# Sed substitution to delay expansion of an escaped shell variable in a
5630# double_quote_subst'ed string.
5631delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5632
5633# Sed substitution to avoid accidental globbing in evaled expressions
5634no_glob_subst='s/\*/\\\*/g'
5635
5636# Constants:
5637rm="rm -f"
5638
5639# Global variables:
5640default_ofile=libtool
5641can_build_shared=yes
5642
5643# All known linkers require a `.a' archive for static linking (except M$VC,
5644# which needs '.lib').
5645libext=a
5646ltmain="$ac_aux_dir/ltmain.sh"
5647ofile="$default_ofile"
5648with_gnu_ld="$lt_cv_prog_gnu_ld"
5649
5650if test -n "$ac_tool_prefix"; then
5651  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5652set dummy ${ac_tool_prefix}ar; ac_word=$2
5653echo "$as_me:$LINENO: checking for $ac_word" >&5
5654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655if test "${ac_cv_prog_AR+set}" = set; then
5656  echo $ECHO_N "(cached) $ECHO_C" >&6
5657else
5658  if test -n "$AR"; then
5659  ac_cv_prog_AR="$AR" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664  IFS=$as_save_IFS
5665  test -z "$as_dir" && as_dir=.
5666  for ac_exec_ext in '' $ac_executable_extensions; do
5667  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668    ac_cv_prog_AR="${ac_tool_prefix}ar"
5669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670    break 2
5671  fi
5672done
5673done
5674
5675fi
5676fi
5677AR=$ac_cv_prog_AR
5678if test -n "$AR"; then
5679  echo "$as_me:$LINENO: result: $AR" >&5
5680echo "${ECHO_T}$AR" >&6
5681else
5682  echo "$as_me:$LINENO: result: no" >&5
5683echo "${ECHO_T}no" >&6
5684fi
5685
5686fi
5687if test -z "$ac_cv_prog_AR"; then
5688  ac_ct_AR=$AR
5689  # Extract the first word of "ar", so it can be a program name with args.
5690set dummy ar; ac_word=$2
5691echo "$as_me:$LINENO: checking for $ac_word" >&5
5692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5693if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5694  echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
5696  if test -n "$ac_ct_AR"; then
5697  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5698else
5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700for as_dir in $PATH
5701do
5702  IFS=$as_save_IFS
5703  test -z "$as_dir" && as_dir=.
5704  for ac_exec_ext in '' $ac_executable_extensions; do
5705  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706    ac_cv_prog_ac_ct_AR="ar"
5707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708    break 2
5709  fi
5710done
5711done
5712
5713  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5714fi
5715fi
5716ac_ct_AR=$ac_cv_prog_ac_ct_AR
5717if test -n "$ac_ct_AR"; then
5718  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5719echo "${ECHO_T}$ac_ct_AR" >&6
5720else
5721  echo "$as_me:$LINENO: result: no" >&5
5722echo "${ECHO_T}no" >&6
5723fi
5724
5725  AR=$ac_ct_AR
5726else
5727  AR="$ac_cv_prog_AR"
5728fi
5729
5730if test -n "$ac_tool_prefix"; then
5731  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5732set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5733echo "$as_me:$LINENO: checking for $ac_word" >&5
5734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735if test "${ac_cv_prog_RANLIB+set}" = set; then
5736  echo $ECHO_N "(cached) $ECHO_C" >&6
5737else
5738  if test -n "$RANLIB"; then
5739  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744  IFS=$as_save_IFS
5745  test -z "$as_dir" && as_dir=.
5746  for ac_exec_ext in '' $ac_executable_extensions; do
5747  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750    break 2
5751  fi
5752done
5753done
5754
5755fi
5756fi
5757RANLIB=$ac_cv_prog_RANLIB
5758if test -n "$RANLIB"; then
5759  echo "$as_me:$LINENO: result: $RANLIB" >&5
5760echo "${ECHO_T}$RANLIB" >&6
5761else
5762  echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764fi
5765
5766fi
5767if test -z "$ac_cv_prog_RANLIB"; then
5768  ac_ct_RANLIB=$RANLIB
5769  # Extract the first word of "ranlib", so it can be a program name with args.
5770set dummy ranlib; ac_word=$2
5771echo "$as_me:$LINENO: checking for $ac_word" >&5
5772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5774  echo $ECHO_N "(cached) $ECHO_C" >&6
5775else
5776  if test -n "$ac_ct_RANLIB"; then
5777  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782  IFS=$as_save_IFS
5783  test -z "$as_dir" && as_dir=.
5784  for ac_exec_ext in '' $ac_executable_extensions; do
5785  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786    ac_cv_prog_ac_ct_RANLIB="ranlib"
5787    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788    break 2
5789  fi
5790done
5791done
5792
5793  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5794fi
5795fi
5796ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5797if test -n "$ac_ct_RANLIB"; then
5798  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5799echo "${ECHO_T}$ac_ct_RANLIB" >&6
5800else
5801  echo "$as_me:$LINENO: result: no" >&5
5802echo "${ECHO_T}no" >&6
5803fi
5804
5805  RANLIB=$ac_ct_RANLIB
5806else
5807  RANLIB="$ac_cv_prog_RANLIB"
5808fi
5809
5810if test -n "$ac_tool_prefix"; then
5811  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}strip; ac_word=$2
5813echo "$as_me:$LINENO: checking for $ac_word" >&5
5814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815if test "${ac_cv_prog_STRIP+set}" = set; then
5816  echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818  if test -n "$STRIP"; then
5819  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824  IFS=$as_save_IFS
5825  test -z "$as_dir" && as_dir=.
5826  for ac_exec_ext in '' $ac_executable_extensions; do
5827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830    break 2
5831  fi
5832done
5833done
5834
5835fi
5836fi
5837STRIP=$ac_cv_prog_STRIP
5838if test -n "$STRIP"; then
5839  echo "$as_me:$LINENO: result: $STRIP" >&5
5840echo "${ECHO_T}$STRIP" >&6
5841else
5842  echo "$as_me:$LINENO: result: no" >&5
5843echo "${ECHO_T}no" >&6
5844fi
5845
5846fi
5847if test -z "$ac_cv_prog_STRIP"; then
5848  ac_ct_STRIP=$STRIP
5849  # Extract the first word of "strip", so it can be a program name with args.
5850set dummy strip; ac_word=$2
5851echo "$as_me:$LINENO: checking for $ac_word" >&5
5852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5854  echo $ECHO_N "(cached) $ECHO_C" >&6
5855else
5856  if test -n "$ac_ct_STRIP"; then
5857  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862  IFS=$as_save_IFS
5863  test -z "$as_dir" && as_dir=.
5864  for ac_exec_ext in '' $ac_executable_extensions; do
5865  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866    ac_cv_prog_ac_ct_STRIP="strip"
5867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868    break 2
5869  fi
5870done
5871done
5872
5873  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5874fi
5875fi
5876ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5877if test -n "$ac_ct_STRIP"; then
5878  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5879echo "${ECHO_T}$ac_ct_STRIP" >&6
5880else
5881  echo "$as_me:$LINENO: result: no" >&5
5882echo "${ECHO_T}no" >&6
5883fi
5884
5885  STRIP=$ac_ct_STRIP
5886else
5887  STRIP="$ac_cv_prog_STRIP"
5888fi
5889
5890
5891old_CC="$CC"
5892old_CFLAGS="$CFLAGS"
5893
5894# Set sane defaults for various variables
5895test -z "$AR" && AR=ar
5896test -z "$AR_FLAGS" && AR_FLAGS=cru
5897test -z "$AS" && AS=as
5898test -z "$CC" && CC=cc
5899test -z "$LTCC" && LTCC=$CC
5900test -z "$DLLTOOL" && DLLTOOL=dlltool
5901test -z "$LD" && LD=ld
5902test -z "$LN_S" && LN_S="ln -s"
5903test -z "$MAGIC_CMD" && MAGIC_CMD=file
5904test -z "$NM" && NM=nm
5905test -z "$SED" && SED=sed
5906test -z "$OBJDUMP" && OBJDUMP=objdump
5907test -z "$RANLIB" && RANLIB=:
5908test -z "$STRIP" && STRIP=:
5909test -z "$ac_objext" && ac_objext=o
5910
5911# Determine commands to create old-style static archives.
5912old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5913old_postinstall_cmds='chmod 644 $oldlib'
5914old_postuninstall_cmds=
5915
5916if test -n "$RANLIB"; then
5917  case $host_os in
5918  openbsd*)
5919    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5920    ;;
5921  *)
5922    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5923    ;;
5924  esac
5925  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5926fi
5927
5928# Only perform the check for file, if the check method requires it
5929case $deplibs_check_method in
5930file_magic*)
5931  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5932    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5933echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5934if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5935  echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937  case $MAGIC_CMD in
5938[\\/*] |  ?:[\\/]*)
5939  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5940  ;;
5941*)
5942  lt_save_MAGIC_CMD="$MAGIC_CMD"
5943  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5944  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5945  for ac_dir in $ac_dummy; do
5946    IFS="$lt_save_ifs"
5947    test -z "$ac_dir" && ac_dir=.
5948    if test -f $ac_dir/${ac_tool_prefix}file; then
5949      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5950      if test -n "$file_magic_test_file"; then
5951	case $deplibs_check_method in
5952	"file_magic "*)
5953	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5954	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5955	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5956	    $EGREP "$file_magic_regex" > /dev/null; then
5957	    :
5958	  else
5959	    cat <<EOF 1>&2
5960
5961*** Warning: the command libtool uses to detect shared libraries,
5962*** $file_magic_cmd, produces output that libtool cannot recognize.
5963*** The result is that libtool may fail to recognize shared libraries
5964*** as such.  This will affect the creation of libtool libraries that
5965*** depend on shared libraries, but programs linked with such libtool
5966*** libraries will work regardless of this problem.  Nevertheless, you
5967*** may want to report the problem to your system manager and/or to
5968*** bug-libtool@gnu.org
5969
5970EOF
5971	  fi ;;
5972	esac
5973      fi
5974      break
5975    fi
5976  done
5977  IFS="$lt_save_ifs"
5978  MAGIC_CMD="$lt_save_MAGIC_CMD"
5979  ;;
5980esac
5981fi
5982
5983MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5984if test -n "$MAGIC_CMD"; then
5985  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5986echo "${ECHO_T}$MAGIC_CMD" >&6
5987else
5988  echo "$as_me:$LINENO: result: no" >&5
5989echo "${ECHO_T}no" >&6
5990fi
5991
5992if test -z "$lt_cv_path_MAGIC_CMD"; then
5993  if test -n "$ac_tool_prefix"; then
5994    echo "$as_me:$LINENO: checking for file" >&5
5995echo $ECHO_N "checking for file... $ECHO_C" >&6
5996if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5997  echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999  case $MAGIC_CMD in
6000[\\/*] |  ?:[\\/]*)
6001  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6002  ;;
6003*)
6004  lt_save_MAGIC_CMD="$MAGIC_CMD"
6005  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6006  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6007  for ac_dir in $ac_dummy; do
6008    IFS="$lt_save_ifs"
6009    test -z "$ac_dir" && ac_dir=.
6010    if test -f $ac_dir/file; then
6011      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6012      if test -n "$file_magic_test_file"; then
6013	case $deplibs_check_method in
6014	"file_magic "*)
6015	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6016	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6017	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6018	    $EGREP "$file_magic_regex" > /dev/null; then
6019	    :
6020	  else
6021	    cat <<EOF 1>&2
6022
6023*** Warning: the command libtool uses to detect shared libraries,
6024*** $file_magic_cmd, produces output that libtool cannot recognize.
6025*** The result is that libtool may fail to recognize shared libraries
6026*** as such.  This will affect the creation of libtool libraries that
6027*** depend on shared libraries, but programs linked with such libtool
6028*** libraries will work regardless of this problem.  Nevertheless, you
6029*** may want to report the problem to your system manager and/or to
6030*** bug-libtool@gnu.org
6031
6032EOF
6033	  fi ;;
6034	esac
6035      fi
6036      break
6037    fi
6038  done
6039  IFS="$lt_save_ifs"
6040  MAGIC_CMD="$lt_save_MAGIC_CMD"
6041  ;;
6042esac
6043fi
6044
6045MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6046if test -n "$MAGIC_CMD"; then
6047  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6048echo "${ECHO_T}$MAGIC_CMD" >&6
6049else
6050  echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6
6052fi
6053
6054  else
6055    MAGIC_CMD=:
6056  fi
6057fi
6058
6059  fi
6060  ;;
6061esac
6062
6063enable_dlopen=no
6064enable_win32_dll=no
6065
6066# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6067if test "${enable_libtool_lock+set}" = set; then
6068  enableval="$enable_libtool_lock"
6069
6070fi;
6071test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6072
6073
6074# Check whether --with-pic or --without-pic was given.
6075if test "${with_pic+set}" = set; then
6076  withval="$with_pic"
6077  pic_mode="$withval"
6078else
6079  pic_mode=default
6080fi;
6081test -z "$pic_mode" && pic_mode=default
6082
6083# Use C for the default configuration in the libtool script
6084tagname=
6085lt_save_CC="$CC"
6086ac_ext=c
6087ac_cpp='$CPP $CPPFLAGS'
6088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091
6092
6093# Source file extension for C test sources.
6094ac_ext=c
6095
6096# Object file extension for compiled C test sources.
6097objext=o
6098objext=$objext
6099
6100# Code to be used in simple compile tests
6101lt_simple_compile_test_code="int some_variable = 0;\n"
6102
6103# Code to be used in simple link tests
6104lt_simple_link_test_code='int main(){return(0);}\n'
6105
6106
6107# If no C compiler was specified, use CC.
6108LTCC=${LTCC-"$CC"}
6109
6110# Allow CC to be a program name with arguments.
6111compiler=$CC
6112
6113
6114#
6115# Check for any special shared library compilation flags.
6116#
6117lt_prog_cc_shlib=
6118if test "$GCC" = no; then
6119  case $host_os in
6120  sco3.2v5*)
6121    lt_prog_cc_shlib='-belf'
6122    ;;
6123  esac
6124fi
6125if test -n "$lt_prog_cc_shlib"; then
6126  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6127echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6128  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6129  else
6130    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6131echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6132    lt_cv_prog_cc_can_build_shared=no
6133  fi
6134fi
6135
6136
6137#
6138# Check to make sure the static flag actually works.
6139#
6140echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6141echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6142if test "${lt_prog_compiler_static_works+set}" = set; then
6143  echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145  lt_prog_compiler_static_works=no
6146   save_LDFLAGS="$LDFLAGS"
6147   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6148   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6149   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6150     # The compiler can only warn and ignore the option if not recognized
6151     # So say no if there are warnings
6152     if test -s conftest.err; then
6153       # Append any errors to the config.log.
6154       cat conftest.err 1>&5
6155     else
6156       lt_prog_compiler_static_works=yes
6157     fi
6158   fi
6159   $rm conftest*
6160   LDFLAGS="$save_LDFLAGS"
6161
6162fi
6163echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6164echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6165
6166if test x"$lt_prog_compiler_static_works" = xyes; then
6167    :
6168else
6169    lt_prog_compiler_static=
6170fi
6171
6172
6173
6174
6175lt_prog_compiler_no_builtin_flag=
6176
6177if test "$GCC" = yes; then
6178  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6179
6180
6181echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6182echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6183if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6184  echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186  lt_cv_prog_compiler_rtti_exceptions=no
6187  ac_outfile=conftest.$ac_objext
6188   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6189   lt_compiler_flag="-fno-rtti -fno-exceptions"
6190   # Insert the option either (1) after the last *FLAGS variable, or
6191   # (2) before a word containing "conftest.", or (3) at the end.
6192   # Note that $ac_compile itself does not contain backslashes and begins
6193   # with a dollar sign (not a hyphen), so the echo should work correctly.
6194   # The option is referenced via a variable to avoid confusing sed.
6195   lt_compile=`echo "$ac_compile" | $SED \
6196   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6197   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6198   -e 's:$: $lt_compiler_flag:'`
6199   (eval echo "\"\$as_me:6199: $lt_compile\"" >&5)
6200   (eval "$lt_compile" 2>conftest.err)
6201   ac_status=$?
6202   cat conftest.err >&5
6203   echo "$as_me:6203: \$? = $ac_status" >&5
6204   if (exit $ac_status) && test -s "$ac_outfile"; then
6205     # The compiler can only warn and ignore the option if not recognized
6206     # So say no if there are warnings
6207     if test ! -s conftest.err; then
6208       lt_cv_prog_compiler_rtti_exceptions=yes
6209     fi
6210   fi
6211   $rm conftest*
6212
6213fi
6214echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6215echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6216
6217if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6218    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6219else
6220    :
6221fi
6222
6223fi
6224
6225lt_prog_compiler_wl=
6226lt_prog_compiler_pic=
6227lt_prog_compiler_static=
6228
6229echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6230echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6231
6232  if test "$GCC" = yes; then
6233    lt_prog_compiler_wl='-Wl,'
6234    lt_prog_compiler_static='-static'
6235
6236    case $host_os in
6237      aix*)
6238      # All AIX code is PIC.
6239      if test "$host_cpu" = ia64; then
6240	# AIX 5 now supports IA64 processor
6241	lt_prog_compiler_static='-Bstatic'
6242      fi
6243      ;;
6244
6245    amigaos*)
6246      # FIXME: we need at least 68020 code to build shared libraries, but
6247      # adding the `-m68020' flag to GCC prevents building anything better,
6248      # like `-m68040'.
6249      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6250      ;;
6251
6252    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6253      # PIC is the default for these OSes.
6254      ;;
6255
6256    mingw* | pw32* | os2*)
6257      # This hack is so that the source file can tell whether it is being
6258      # built for inclusion in a dll (and should export symbols for example).
6259      lt_prog_compiler_pic='-DDLL_EXPORT'
6260      ;;
6261
6262    darwin* | rhapsody*)
6263      # PIC is the default on this platform
6264      # Common symbols not allowed in MH_DYLIB files
6265      lt_prog_compiler_pic='-fno-common'
6266      ;;
6267
6268    msdosdjgpp*)
6269      # Just because we use GCC doesn't mean we suddenly get shared libraries
6270      # on systems that don't support them.
6271      lt_prog_compiler_can_build_shared=no
6272      enable_shared=no
6273      ;;
6274
6275    sysv4*MP*)
6276      if test -d /usr/nec; then
6277	lt_prog_compiler_pic=-Kconform_pic
6278      fi
6279      ;;
6280
6281    hpux*)
6282      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6283      # not for PA HP-UX.
6284      case "$host_cpu" in
6285      hppa*64*|ia64*)
6286	# +Z the default
6287	;;
6288      *)
6289	lt_prog_compiler_pic='-fPIC'
6290	;;
6291      esac
6292      ;;
6293
6294    *)
6295      lt_prog_compiler_pic='-fPIC'
6296      ;;
6297    esac
6298  else
6299    # PORTME Check for flag to pass linker flags through the system compiler.
6300    case $host_os in
6301    aix*)
6302      lt_prog_compiler_wl='-Wl,'
6303      if test "$host_cpu" = ia64; then
6304	# AIX 5 now supports IA64 processor
6305	lt_prog_compiler_static='-Bstatic'
6306      else
6307	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6308      fi
6309      ;;
6310
6311    mingw* | pw32* | os2*)
6312      # This hack is so that the source file can tell whether it is being
6313      # built for inclusion in a dll (and should export symbols for example).
6314      lt_prog_compiler_pic='-DDLL_EXPORT'
6315      ;;
6316
6317    hpux9* | hpux10* | hpux11*)
6318      lt_prog_compiler_wl='-Wl,'
6319      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6320      # not for PA HP-UX.
6321      case "$host_cpu" in
6322      hppa*64*|ia64*)
6323	# +Z the default
6324	;;
6325      *)
6326	lt_prog_compiler_pic='+Z'
6327	;;
6328      esac
6329      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6330      lt_prog_compiler_static='${wl}-a ${wl}archive'
6331      ;;
6332
6333    irix5* | irix6* | nonstopux*)
6334      lt_prog_compiler_wl='-Wl,'
6335      # PIC (with -KPIC) is the default.
6336      lt_prog_compiler_static='-non_shared'
6337      ;;
6338
6339    newsos6)
6340      lt_prog_compiler_pic='-KPIC'
6341      lt_prog_compiler_static='-Bstatic'
6342      ;;
6343
6344    linux*)
6345      case $CC in
6346      icc* | ecc*)
6347	lt_prog_compiler_wl='-Wl,'
6348	lt_prog_compiler_pic='-KPIC'
6349	lt_prog_compiler_static='-static'
6350        ;;
6351      ccc*)
6352        lt_prog_compiler_wl='-Wl,'
6353        # All Alpha code is PIC.
6354        lt_prog_compiler_static='-non_shared'
6355        ;;
6356      esac
6357      ;;
6358
6359    osf3* | osf4* | osf5*)
6360      lt_prog_compiler_wl='-Wl,'
6361      # All OSF/1 code is PIC.
6362      lt_prog_compiler_static='-non_shared'
6363      ;;
6364
6365    sco3.2v5*)
6366      lt_prog_compiler_pic='-Kpic'
6367      lt_prog_compiler_static='-dn'
6368      ;;
6369
6370    solaris*)
6371      lt_prog_compiler_wl='-Wl,'
6372      lt_prog_compiler_pic='-KPIC'
6373      lt_prog_compiler_static='-Bstatic'
6374      ;;
6375
6376    sunos4*)
6377      lt_prog_compiler_wl='-Qoption ld '
6378      lt_prog_compiler_pic='-PIC'
6379      lt_prog_compiler_static='-Bstatic'
6380      ;;
6381
6382    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6383      lt_prog_compiler_wl='-Wl,'
6384      lt_prog_compiler_pic='-KPIC'
6385      lt_prog_compiler_static='-Bstatic'
6386      ;;
6387
6388    sysv4*MP*)
6389      if test -d /usr/nec ;then
6390	lt_prog_compiler_pic='-Kconform_pic'
6391	lt_prog_compiler_static='-Bstatic'
6392      fi
6393      ;;
6394
6395    uts4*)
6396      lt_prog_compiler_pic='-pic'
6397      lt_prog_compiler_static='-Bstatic'
6398      ;;
6399
6400    *)
6401      lt_prog_compiler_can_build_shared=no
6402      ;;
6403    esac
6404  fi
6405
6406echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6407echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6408
6409#
6410# Check to make sure the PIC flag actually works.
6411#
6412if test -n "$lt_prog_compiler_pic"; then
6413
6414echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6415echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6416if test "${lt_prog_compiler_pic_works+set}" = set; then
6417  echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419  lt_prog_compiler_pic_works=no
6420  ac_outfile=conftest.$ac_objext
6421   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6422   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6423   # Insert the option either (1) after the last *FLAGS variable, or
6424   # (2) before a word containing "conftest.", or (3) at the end.
6425   # Note that $ac_compile itself does not contain backslashes and begins
6426   # with a dollar sign (not a hyphen), so the echo should work correctly.
6427   # The option is referenced via a variable to avoid confusing sed.
6428   lt_compile=`echo "$ac_compile" | $SED \
6429   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6431   -e 's:$: $lt_compiler_flag:'`
6432   (eval echo "\"\$as_me:6432: $lt_compile\"" >&5)
6433   (eval "$lt_compile" 2>conftest.err)
6434   ac_status=$?
6435   cat conftest.err >&5
6436   echo "$as_me:6436: \$? = $ac_status" >&5
6437   if (exit $ac_status) && test -s "$ac_outfile"; then
6438     # The compiler can only warn and ignore the option if not recognized
6439     # So say no if there are warnings
6440     if test ! -s conftest.err; then
6441       lt_prog_compiler_pic_works=yes
6442     fi
6443   fi
6444   $rm conftest*
6445
6446fi
6447echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6448echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6449
6450if test x"$lt_prog_compiler_pic_works" = xyes; then
6451    case $lt_prog_compiler_pic in
6452     "" | " "*) ;;
6453     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6454     esac
6455else
6456    lt_prog_compiler_pic=
6457     lt_prog_compiler_can_build_shared=no
6458fi
6459
6460fi
6461case "$host_os" in
6462  # For platforms which do not support PIC, -DPIC is meaningless:
6463  *djgpp*)
6464    lt_prog_compiler_pic=
6465    ;;
6466  *)
6467    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6468    ;;
6469esac
6470
6471echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6472echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6473if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6474  echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476  lt_cv_prog_compiler_c_o=no
6477   $rm -r conftest 2>/dev/null
6478   mkdir conftest
6479   cd conftest
6480   mkdir out
6481   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6482
6483   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6484   # that will create temporary files in the current directory regardless of
6485   # the output directory.  Thus, making CWD read-only will cause this test
6486   # to fail, enabling locking or at least warning the user not to do parallel
6487   # builds.
6488   chmod -w .
6489
6490   lt_compiler_flag="-o out/conftest2.$ac_objext"
6491   # Insert the option either (1) after the last *FLAGS variable, or
6492   # (2) before a word containing "conftest.", or (3) at the end.
6493   # Note that $ac_compile itself does not contain backslashes and begins
6494   # with a dollar sign (not a hyphen), so the echo should work correctly.
6495   lt_compile=`echo "$ac_compile" | $SED \
6496   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6497   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6498   -e 's:$: $lt_compiler_flag:'`
6499   (eval echo "\"\$as_me:6499: $lt_compile\"" >&5)
6500   (eval "$lt_compile" 2>out/conftest.err)
6501   ac_status=$?
6502   cat out/conftest.err >&5
6503   echo "$as_me:6503: \$? = $ac_status" >&5
6504   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6505   then
6506     # The compiler can only warn and ignore the option if not recognized
6507     # So say no if there are warnings
6508     if test ! -s out/conftest.err; then
6509       lt_cv_prog_compiler_c_o=yes
6510     fi
6511   fi
6512   chmod u+w .
6513   $rm conftest*
6514   # SGI C++ compiler will create directory out/ii_files/ for
6515   # template instantiation
6516   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6517   $rm out/* && rmdir out
6518   cd ..
6519   rmdir conftest
6520   $rm conftest*
6521
6522fi
6523echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6524echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6525
6526
6527hard_links="nottested"
6528if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6529  # do not overwrite the value of need_locks provided by the user
6530  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6531echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6532  hard_links=yes
6533  $rm conftest*
6534  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6535  touch conftest.a
6536  ln conftest.a conftest.b 2>&5 || hard_links=no
6537  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6538  echo "$as_me:$LINENO: result: $hard_links" >&5
6539echo "${ECHO_T}$hard_links" >&6
6540  if test "$hard_links" = no; then
6541    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6542echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6543    need_locks=warn
6544  fi
6545else
6546  need_locks=no
6547fi
6548
6549echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6550echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6551
6552  runpath_var=
6553  allow_undefined_flag=
6554  enable_shared_with_static_runtimes=no
6555  archive_cmds=
6556  archive_expsym_cmds=
6557  old_archive_From_new_cmds=
6558  old_archive_from_expsyms_cmds=
6559  export_dynamic_flag_spec=
6560  whole_archive_flag_spec=
6561  thread_safe_flag_spec=
6562  hardcode_libdir_flag_spec=
6563  hardcode_libdir_flag_spec_ld=
6564  hardcode_libdir_separator=
6565  hardcode_direct=no
6566  hardcode_minus_L=no
6567  hardcode_shlibpath_var=unsupported
6568  link_all_deplibs=unknown
6569  hardcode_automatic=no
6570  module_cmds=
6571  module_expsym_cmds=
6572  always_export_symbols=no
6573  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6574  # include_expsyms should be a list of space-separated symbols to be *always*
6575  # included in the symbol list
6576  include_expsyms=
6577  # exclude_expsyms can be an extended regexp of symbols to exclude
6578  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6579  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6580  # as well as any symbol that contains `d'.
6581  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6582  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6583  # platforms (ab)use it in PIC code, but their linkers get confused if
6584  # the symbol is explicitly referenced.  Since portable code cannot
6585  # rely on this symbol name, it's probably fine to never include it in
6586  # preloaded symbol tables.
6587  extract_expsyms_cmds=
6588
6589  case $host_os in
6590  cygwin* | mingw* | pw32*)
6591    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6592    # When not using gcc, we currently assume that we are using
6593    # Microsoft Visual C++.
6594    if test "$GCC" != yes; then
6595      with_gnu_ld=no
6596    fi
6597    ;;
6598  openbsd*)
6599    with_gnu_ld=no
6600    ;;
6601  esac
6602
6603  ld_shlibs=yes
6604  if test "$with_gnu_ld" = yes; then
6605    # If archive_cmds runs LD, not CC, wlarc should be empty
6606    wlarc='${wl}'
6607
6608    # See if GNU ld supports shared libraries.
6609    case $host_os in
6610    aix3* | aix4* | aix5*)
6611      # On AIX/PPC, the GNU linker is very broken
6612      if test "$host_cpu" != ia64; then
6613	ld_shlibs=no
6614	cat <<EOF 1>&2
6615
6616*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6617*** to be unable to reliably create shared libraries on AIX.
6618*** Therefore, libtool is disabling shared libraries support.  If you
6619*** really care for shared libraries, you may want to modify your PATH
6620*** so that a non-GNU linker is found, and then restart.
6621
6622EOF
6623      fi
6624      ;;
6625
6626    amigaos*)
6627      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)'
6628      hardcode_libdir_flag_spec='-L$libdir'
6629      hardcode_minus_L=yes
6630
6631      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6632      # that the semantics of dynamic libraries on AmigaOS, at least up
6633      # to version 4, is to share data among multiple programs linked
6634      # with the same dynamic library.  Since this doesn't match the
6635      # behavior of shared libraries on other platforms, we can't use
6636      # them.
6637      ld_shlibs=no
6638      ;;
6639
6640    beos*)
6641      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6642	allow_undefined_flag=unsupported
6643	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6644	# support --undefined.  This deserves some investigation.  FIXME
6645	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6646      else
6647	ld_shlibs=no
6648      fi
6649      ;;
6650
6651    cygwin* | mingw* | pw32*)
6652      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6653      # as there is no search path for DLLs.
6654      hardcode_libdir_flag_spec='-L$libdir'
6655      allow_undefined_flag=unsupported
6656      always_export_symbols=no
6657      enable_shared_with_static_runtimes=yes
6658      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6659
6660      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6661        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6662	# If the export-symbols file already is a .def file (1st line
6663	# is EXPORTS), use it as is; otherwise, prepend...
6664	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6665	  cp $export_symbols $output_objdir/$soname.def;
6666	else
6667	  echo EXPORTS > $output_objdir/$soname.def;
6668	  cat $export_symbols >> $output_objdir/$soname.def;
6669	fi~
6670	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6671      else
6672	ld_shlibs=no
6673      fi
6674      ;;
6675
6676    netbsd*)
6677      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6678	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6679	wlarc=
6680      else
6681	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6682	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6683      fi
6684      ;;
6685
6686    solaris* | sysv5*)
6687      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6688	ld_shlibs=no
6689	cat <<EOF 1>&2
6690
6691*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6692*** create shared libraries on Solaris systems.  Therefore, libtool
6693*** is disabling shared libraries support.  We urge you to upgrade GNU
6694*** binutils to release 2.9.1 or newer.  Another option is to modify
6695*** your PATH or compiler configuration so that the native linker is
6696*** used, and then restart.
6697
6698EOF
6699      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6700	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6701	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6702      else
6703	ld_shlibs=no
6704      fi
6705      ;;
6706
6707    sunos4*)
6708      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6709      wlarc=
6710      hardcode_direct=yes
6711      hardcode_shlibpath_var=no
6712      ;;
6713
6714  linux*)
6715    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6716        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6717	archive_cmds="$tmp_archive_cmds"
6718      supports_anon_versioning=no
6719      case `$LD -v 2>/dev/null` in
6720        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6721        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6722        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6723        *\ 2.11.*) ;; # other 2.11 versions
6724        *) supports_anon_versioning=yes ;;
6725      esac
6726      if test $supports_anon_versioning = yes; then
6727        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6728cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6729$echo "local: *; };" >> $output_objdir/$libname.ver~
6730        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6731      else
6732        archive_expsym_cmds="$tmp_archive_cmds"
6733      fi
6734    else
6735      ld_shlibs=no
6736    fi
6737    ;;
6738
6739    *)
6740      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6741	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6742	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6743      else
6744	ld_shlibs=no
6745      fi
6746      ;;
6747    esac
6748
6749    if test "$ld_shlibs" = yes; then
6750      runpath_var=LD_RUN_PATH
6751      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6752      export_dynamic_flag_spec='${wl}--export-dynamic'
6753      # ancient GNU ld didn't support --whole-archive et. al.
6754      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6755 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6756      else
6757  	whole_archive_flag_spec=
6758      fi
6759    fi
6760  else
6761    # PORTME fill in a description of your system's linker (not GNU ld)
6762    case $host_os in
6763    aix3*)
6764      allow_undefined_flag=unsupported
6765      always_export_symbols=yes
6766      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'
6767      # Note: this linker hardcodes the directories in LIBPATH if there
6768      # are no directories specified by -L.
6769      hardcode_minus_L=yes
6770      if test "$GCC" = yes && test -z "$link_static_flag"; then
6771	# Neither direct hardcoding nor static linking is supported with a
6772	# broken collect2.
6773	hardcode_direct=unsupported
6774      fi
6775      ;;
6776
6777    aix4* | aix5*)
6778      if test "$host_cpu" = ia64; then
6779	# On IA64, the linker does run time linking by default, so we don't
6780	# have to do anything special.
6781	aix_use_runtimelinking=no
6782	exp_sym_flag='-Bexport'
6783	no_entry_flag=""
6784      else
6785	# If we're using GNU nm, then we don't want the "-C" option.
6786	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6787	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6788	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6789	else
6790	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6791	fi
6792	aix_use_runtimelinking=no
6793
6794	# Test if we are trying to use run time linking or normal
6795	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6796	# need to do runtime linking.
6797	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6798	  for ld_flag in $LDFLAGS; do
6799  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6800  	    aix_use_runtimelinking=yes
6801  	    break
6802  	  fi
6803	  done
6804	esac
6805
6806	exp_sym_flag='-bexport'
6807	no_entry_flag='-bnoentry'
6808      fi
6809
6810      # When large executables or shared objects are built, AIX ld can
6811      # have problems creating the table of contents.  If linking a library
6812      # or program results in "error TOC overflow" add -mminimal-toc to
6813      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6814      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6815
6816      archive_cmds=''
6817      hardcode_direct=yes
6818      hardcode_libdir_separator=':'
6819      link_all_deplibs=yes
6820
6821      if test "$GCC" = yes; then
6822	case $host_os in aix4.012|aix4.012.*)
6823	# We only want to do this on AIX 4.2 and lower, the check
6824	# below for broken collect2 doesn't work under 4.3+
6825	  collect2name=`${CC} -print-prog-name=collect2`
6826	  if test -f "$collect2name" && \
6827  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6828	  then
6829  	  # We have reworked collect2
6830  	  hardcode_direct=yes
6831	  else
6832  	  # We have old collect2
6833  	  hardcode_direct=unsupported
6834  	  # It fails to find uninstalled libraries when the uninstalled
6835  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6836  	  # to unsupported forces relinking
6837  	  hardcode_minus_L=yes
6838  	  hardcode_libdir_flag_spec='-L$libdir'
6839  	  hardcode_libdir_separator=
6840	  fi
6841	esac
6842	shared_flag='-shared'
6843      else
6844	# not using gcc
6845	if test "$host_cpu" = ia64; then
6846  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6847  	# chokes on -Wl,-G. The following line is correct:
6848	  shared_flag='-G'
6849	else
6850  	if test "$aix_use_runtimelinking" = yes; then
6851	    shared_flag='${wl}-G'
6852	  else
6853	    shared_flag='${wl}-bM:SRE'
6854  	fi
6855	fi
6856      fi
6857
6858      # It seems that -bexpall does not export symbols beginning with
6859      # underscore (_), so it is better to generate a list of symbols to export.
6860      always_export_symbols=yes
6861      if test "$aix_use_runtimelinking" = yes; then
6862	# Warning - without using the other runtime loading flags (-brtl),
6863	# -berok will link without error, but may produce a broken library.
6864	allow_undefined_flag='-berok'
6865       # Determine the default libpath from the value encoded in an empty executable.
6866       cat >conftest.$ac_ext <<_ACEOF
6867/* confdefs.h.  */
6868_ACEOF
6869cat confdefs.h >>conftest.$ac_ext
6870cat >>conftest.$ac_ext <<_ACEOF
6871/* end confdefs.h.  */
6872
6873int
6874main ()
6875{
6876
6877  ;
6878  return 0;
6879}
6880_ACEOF
6881rm -f conftest.$ac_objext conftest$ac_exeext
6882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883  (eval $ac_link) 2>conftest.er1
6884  ac_status=$?
6885  grep -v '^ *+' conftest.er1 >conftest.err
6886  rm -f conftest.er1
6887  cat conftest.err >&5
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); } &&
6890	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892  (eval $ac_try) 2>&5
6893  ac_status=$?
6894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895  (exit $ac_status); }; } &&
6896	 { ac_try='test -s conftest$ac_exeext'
6897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898  (eval $ac_try) 2>&5
6899  ac_status=$?
6900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901  (exit $ac_status); }; }; then
6902
6903aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6904}'`
6905# Check for a 64-bit object if we didn't find anything.
6906if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6907}'`; fi
6908else
6909  echo "$as_me: failed program was:" >&5
6910sed 's/^/| /' conftest.$ac_ext >&5
6911
6912fi
6913rm -f conftest.err conftest.$ac_objext \
6914      conftest$ac_exeext conftest.$ac_ext
6915if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6916
6917       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6918	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"
6919       else
6920	if test "$host_cpu" = ia64; then
6921	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6922	  allow_undefined_flag="-z nodefs"
6923	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6924	else
6925	 # Determine the default libpath from the value encoded in an empty executable.
6926	 cat >conftest.$ac_ext <<_ACEOF
6927/* confdefs.h.  */
6928_ACEOF
6929cat confdefs.h >>conftest.$ac_ext
6930cat >>conftest.$ac_ext <<_ACEOF
6931/* end confdefs.h.  */
6932
6933int
6934main ()
6935{
6936
6937  ;
6938  return 0;
6939}
6940_ACEOF
6941rm -f conftest.$ac_objext conftest$ac_exeext
6942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943  (eval $ac_link) 2>conftest.er1
6944  ac_status=$?
6945  grep -v '^ *+' conftest.er1 >conftest.err
6946  rm -f conftest.er1
6947  cat conftest.err >&5
6948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949  (exit $ac_status); } &&
6950	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952  (eval $ac_try) 2>&5
6953  ac_status=$?
6954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955  (exit $ac_status); }; } &&
6956	 { ac_try='test -s conftest$ac_exeext'
6957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958  (eval $ac_try) 2>&5
6959  ac_status=$?
6960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961  (exit $ac_status); }; }; then
6962
6963aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6964}'`
6965# Check for a 64-bit object if we didn't find anything.
6966if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6967}'`; fi
6968else
6969  echo "$as_me: failed program was:" >&5
6970sed 's/^/| /' conftest.$ac_ext >&5
6971
6972fi
6973rm -f conftest.err conftest.$ac_objext \
6974      conftest$ac_exeext conftest.$ac_ext
6975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6976
6977	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6978	  # Warning - without using the other run time loading flags,
6979	  # -berok will link without error, but may produce a broken library.
6980	  no_undefined_flag=' ${wl}-bernotok'
6981	  allow_undefined_flag=' ${wl}-berok'
6982	  # -bexpall does not export symbols beginning with underscore (_)
6983	  always_export_symbols=yes
6984	  # Exported symbols can be pulled into shared objects from archives
6985	  whole_archive_flag_spec=' '
6986	  archive_cmds_need_lc=yes
6987	  # This is similar to how AIX traditionally builds it's shared libraries.
6988	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6989	fi
6990      fi
6991      ;;
6992
6993    amigaos*)
6994      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)'
6995      hardcode_libdir_flag_spec='-L$libdir'
6996      hardcode_minus_L=yes
6997      # see comment about different semantics on the GNU ld section
6998      ld_shlibs=no
6999      ;;
7000
7001    bsdi4*)
7002      export_dynamic_flag_spec=-rdynamic
7003      ;;
7004
7005    cygwin* | mingw* | pw32*)
7006      # When not using gcc, we currently assume that we are using
7007      # Microsoft Visual C++.
7008      # hardcode_libdir_flag_spec is actually meaningless, as there is
7009      # no search path for DLLs.
7010      hardcode_libdir_flag_spec=' '
7011      allow_undefined_flag=unsupported
7012      # Tell ltmain to make .lib files, not .a files.
7013      libext=lib
7014      # Tell ltmain to make .dll files, not .so files.
7015      shrext=".dll"
7016      # FIXME: Setting linknames here is a bad hack.
7017      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7018      # The linker will automatically build a .lib file if we build a DLL.
7019      old_archive_From_new_cmds='true'
7020      # FIXME: Should let the user specify the lib program.
7021      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7022      fix_srcfile_path='`cygpath -w "$srcfile"`'
7023      enable_shared_with_static_runtimes=yes
7024      ;;
7025
7026    darwin* | rhapsody*)
7027    if test "$GXX" = yes ; then
7028      archive_cmds_need_lc=no
7029      case "$host_os" in
7030      rhapsody* | darwin1.[012])
7031	allow_undefined_flag='-undefined suppress'
7032	;;
7033      *) # Darwin 1.3 on
7034      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7035      	allow_undefined_flag='-flat_namespace -undefined suppress'
7036      else
7037        case ${MACOSX_DEPLOYMENT_TARGET} in
7038          10.[012])
7039            allow_undefined_flag='-flat_namespace -undefined suppress'
7040            ;;
7041          10.*)
7042            allow_undefined_flag='-undefined dynamic_lookup'
7043            ;;
7044        esac
7045      fi
7046	;;
7047      esac
7048    	lt_int_apple_cc_single_mod=no
7049    	output_verbose_link_cmd='echo'
7050    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7051    	  lt_int_apple_cc_single_mod=yes
7052    	fi
7053    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7054    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7055    	else
7056        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7057      fi
7058      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7059      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7060        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7061          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7062        else
7063          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7064        fi
7065          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7066      hardcode_direct=no
7067      hardcode_automatic=yes
7068      hardcode_shlibpath_var=unsupported
7069      whole_archive_flag_spec='-all_load $convenience'
7070      link_all_deplibs=yes
7071    else
7072      ld_shlibs=no
7073    fi
7074      ;;
7075
7076    dgux*)
7077      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7078      hardcode_libdir_flag_spec='-L$libdir'
7079      hardcode_shlibpath_var=no
7080      ;;
7081
7082    freebsd1*)
7083      ld_shlibs=no
7084      ;;
7085
7086    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7087    # support.  Future versions do this automatically, but an explicit c++rt0.o
7088    # does not break anything, and helps significantly (at the cost of a little
7089    # extra space).
7090    freebsd2.2*)
7091      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7092      hardcode_libdir_flag_spec='-R$libdir'
7093      hardcode_direct=yes
7094      hardcode_shlibpath_var=no
7095      ;;
7096
7097    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7098    freebsd2*)
7099      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7100      hardcode_direct=yes
7101      hardcode_minus_L=yes
7102      hardcode_shlibpath_var=no
7103      ;;
7104
7105    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7106    freebsd* | kfreebsd*-gnu)
7107      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7108      hardcode_libdir_flag_spec='-R$libdir'
7109      hardcode_direct=yes
7110      hardcode_shlibpath_var=no
7111      ;;
7112
7113    hpux9*)
7114      if test "$GCC" = yes; then
7115	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7116      else
7117	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'
7118      fi
7119      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7120      hardcode_libdir_separator=:
7121      hardcode_direct=yes
7122
7123      # hardcode_minus_L: Not really in the search PATH,
7124      # but as the default location of the library.
7125      hardcode_minus_L=yes
7126      export_dynamic_flag_spec='${wl}-E'
7127      ;;
7128
7129    hpux10* | hpux11*)
7130      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7131	case "$host_cpu" in
7132	hppa*64*|ia64*)
7133	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7134	  ;;
7135	*)
7136	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7137	  ;;
7138	esac
7139      else
7140	case "$host_cpu" in
7141	hppa*64*|ia64*)
7142	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7143	  ;;
7144	*)
7145	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7146	  ;;
7147	esac
7148      fi
7149      if test "$with_gnu_ld" = no; then
7150	case "$host_cpu" in
7151	hppa*64*)
7152	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7153	  hardcode_libdir_flag_spec_ld='+b $libdir'
7154	  hardcode_libdir_separator=:
7155	  hardcode_direct=no
7156	  hardcode_shlibpath_var=no
7157	  ;;
7158	ia64*)
7159	  hardcode_libdir_flag_spec='-L$libdir'
7160	  hardcode_direct=no
7161	  hardcode_shlibpath_var=no
7162
7163	  # hardcode_minus_L: Not really in the search PATH,
7164	  # but as the default location of the library.
7165	  hardcode_minus_L=yes
7166	  ;;
7167	*)
7168	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7169	  hardcode_libdir_separator=:
7170	  hardcode_direct=yes
7171	  export_dynamic_flag_spec='${wl}-E'
7172
7173	  # hardcode_minus_L: Not really in the search PATH,
7174	  # but as the default location of the library.
7175	  hardcode_minus_L=yes
7176	  ;;
7177	esac
7178      fi
7179      ;;
7180
7181    irix5* | irix6* | nonstopux*)
7182      if test "$GCC" = yes; then
7183	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'
7184      else
7185	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'
7186	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7187      fi
7188      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7189      hardcode_libdir_separator=:
7190      link_all_deplibs=yes
7191      ;;
7192
7193    netbsd*)
7194      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7195	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7196      else
7197	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7198      fi
7199      hardcode_libdir_flag_spec='-R$libdir'
7200      hardcode_direct=yes
7201      hardcode_shlibpath_var=no
7202      ;;
7203
7204    newsos6)
7205      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7206      hardcode_direct=yes
7207      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7208      hardcode_libdir_separator=:
7209      hardcode_shlibpath_var=no
7210      ;;
7211
7212    openbsd*)
7213      hardcode_direct=yes
7214      hardcode_shlibpath_var=no
7215      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7216	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7217	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7218	export_dynamic_flag_spec='${wl}-E'
7219      else
7220       case $host_os in
7221	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7222	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7223	   hardcode_libdir_flag_spec='-R$libdir'
7224	   ;;
7225	 *)
7226	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7227	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7228	   ;;
7229       esac
7230      fi
7231      ;;
7232
7233    os2*)
7234      hardcode_libdir_flag_spec='-L$libdir'
7235      hardcode_minus_L=yes
7236      allow_undefined_flag=unsupported
7237      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'
7238      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7239      ;;
7240
7241    osf3*)
7242      if test "$GCC" = yes; then
7243	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7244	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'
7245      else
7246	allow_undefined_flag=' -expect_unresolved \*'
7247	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'
7248      fi
7249      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7250      hardcode_libdir_separator=:
7251      ;;
7252
7253    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7254      if test "$GCC" = yes; then
7255	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7256	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'
7257	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7258      else
7259	allow_undefined_flag=' -expect_unresolved \*'
7260	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'
7261	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7262	$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'
7263
7264	# Both c and cxx compiler support -rpath directly
7265	hardcode_libdir_flag_spec='-rpath $libdir'
7266      fi
7267      hardcode_libdir_separator=:
7268      ;;
7269
7270    sco3.2v5*)
7271      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7272      hardcode_shlibpath_var=no
7273      export_dynamic_flag_spec='${wl}-Bexport'
7274      runpath_var=LD_RUN_PATH
7275      hardcode_runpath_var=yes
7276      ;;
7277
7278    solaris*)
7279      no_undefined_flag=' -z text'
7280      if test "$GCC" = yes; then
7281	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7282	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7283	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7284      else
7285	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7287  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7288      fi
7289      hardcode_libdir_flag_spec='-R$libdir'
7290      hardcode_shlibpath_var=no
7291      case $host_os in
7292      solaris2.[0-5] | solaris2.[0-5].*) ;;
7293      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7294	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7295      esac
7296      link_all_deplibs=yes
7297      ;;
7298
7299    sunos4*)
7300      if test "x$host_vendor" = xsequent; then
7301	# Use $CC to link under sequent, because it throws in some extra .o
7302	# files that make .init and .fini sections work.
7303	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7304      else
7305	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7306      fi
7307      hardcode_libdir_flag_spec='-L$libdir'
7308      hardcode_direct=yes
7309      hardcode_minus_L=yes
7310      hardcode_shlibpath_var=no
7311      ;;
7312
7313    sysv4)
7314      case $host_vendor in
7315	sni)
7316	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7317	  hardcode_direct=yes # is this really true???
7318	;;
7319	siemens)
7320	  ## LD is ld it makes a PLAMLIB
7321	  ## CC just makes a GrossModule.
7322	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7323	  reload_cmds='$CC -r -o $output$reload_objs'
7324	  hardcode_direct=no
7325        ;;
7326	motorola)
7327	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7329	;;
7330      esac
7331      runpath_var='LD_RUN_PATH'
7332      hardcode_shlibpath_var=no
7333      ;;
7334
7335    sysv4.3*)
7336      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7337      hardcode_shlibpath_var=no
7338      export_dynamic_flag_spec='-Bexport'
7339      ;;
7340
7341    sysv4*MP*)
7342      if test -d /usr/nec; then
7343	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7344	hardcode_shlibpath_var=no
7345	runpath_var=LD_RUN_PATH
7346	hardcode_runpath_var=yes
7347	ld_shlibs=yes
7348      fi
7349      ;;
7350
7351    sysv4.2uw2*)
7352      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7353      hardcode_direct=yes
7354      hardcode_minus_L=no
7355      hardcode_shlibpath_var=no
7356      hardcode_runpath_var=yes
7357      runpath_var=LD_RUN_PATH
7358      ;;
7359
7360   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7361      no_undefined_flag='${wl}-z ${wl}text'
7362      if test "$GCC" = yes; then
7363	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7364      else
7365	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7366      fi
7367      runpath_var='LD_RUN_PATH'
7368      hardcode_shlibpath_var=no
7369      ;;
7370
7371    sysv5*)
7372      no_undefined_flag=' -z text'
7373      # $CC -shared without GNU ld will not create a library from C++
7374      # object files and a static libstdc++, better avoid it by now
7375      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7376      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7377  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7378      hardcode_libdir_flag_spec=
7379      hardcode_shlibpath_var=no
7380      runpath_var='LD_RUN_PATH'
7381      ;;
7382
7383    uts4*)
7384      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7385      hardcode_libdir_flag_spec='-L$libdir'
7386      hardcode_shlibpath_var=no
7387      ;;
7388
7389    *)
7390      ld_shlibs=no
7391      ;;
7392    esac
7393  fi
7394
7395echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7396echo "${ECHO_T}$ld_shlibs" >&6
7397test "$ld_shlibs" = no && can_build_shared=no
7398
7399variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7400if test "$GCC" = yes; then
7401  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7402fi
7403
7404#
7405# Do we need to explicitly link libc?
7406#
7407case "x$archive_cmds_need_lc" in
7408x|xyes)
7409  # Assume -lc should be added
7410  archive_cmds_need_lc=yes
7411
7412  if test "$enable_shared" = yes && test "$GCC" = yes; then
7413    case $archive_cmds in
7414    *'~'*)
7415      # FIXME: we may have to deal with multi-command sequences.
7416      ;;
7417    '$CC '*)
7418      # Test whether the compiler implicitly links with -lc since on some
7419      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7420      # to ld, don't add -lc before -lgcc.
7421      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7422echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7423      $rm conftest*
7424      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7425
7426      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427  (eval $ac_compile) 2>&5
7428  ac_status=$?
7429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430  (exit $ac_status); } 2>conftest.err; then
7431        soname=conftest
7432        lib=conftest
7433        libobjs=conftest.$ac_objext
7434        deplibs=
7435        wl=$lt_prog_compiler_wl
7436        compiler_flags=-v
7437        linker_flags=-v
7438        verstring=
7439        output_objdir=.
7440        libname=conftest
7441        lt_save_allow_undefined_flag=$allow_undefined_flag
7442        allow_undefined_flag=
7443        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7444  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7445  ac_status=$?
7446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447  (exit $ac_status); }
7448        then
7449	  archive_cmds_need_lc=no
7450        else
7451	  archive_cmds_need_lc=yes
7452        fi
7453        allow_undefined_flag=$lt_save_allow_undefined_flag
7454      else
7455        cat conftest.err 1>&5
7456      fi
7457      $rm conftest*
7458      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7459echo "${ECHO_T}$archive_cmds_need_lc" >&6
7460      ;;
7461    esac
7462  fi
7463  ;;
7464esac
7465
7466echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7467echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7468library_names_spec=
7469libname_spec='lib$name'
7470soname_spec=
7471shrext=".so"
7472postinstall_cmds=
7473postuninstall_cmds=
7474finish_cmds=
7475finish_eval=
7476shlibpath_var=
7477shlibpath_overrides_runpath=unknown
7478version_type=none
7479dynamic_linker="$host_os ld.so"
7480sys_lib_dlsearch_path_spec="/lib /usr/lib"
7481if test "$GCC" = yes; then
7482  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7483  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7484    # if the path contains ";" then we assume it to be the separator
7485    # otherwise default to the standard path separator (i.e. ":") - it is
7486    # assumed that no part of a normal pathname contains ";" but that should
7487    # okay in the real world where ";" in dirpaths is itself problematic.
7488    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7489  else
7490    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7491  fi
7492else
7493  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7494fi
7495need_lib_prefix=unknown
7496hardcode_into_libs=no
7497
7498# when you set need_version to no, make sure it does not cause -set_version
7499# flags to be left without arguments
7500need_version=unknown
7501
7502case $host_os in
7503aix3*)
7504  version_type=linux
7505  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7506  shlibpath_var=LIBPATH
7507
7508  # AIX 3 has no versioning support, so we append a major version to the name.
7509  soname_spec='${libname}${release}${shared_ext}$major'
7510  ;;
7511
7512aix4* | aix5*)
7513  version_type=linux
7514  need_lib_prefix=no
7515  need_version=no
7516  hardcode_into_libs=yes
7517  if test "$host_cpu" = ia64; then
7518    # AIX 5 supports IA64
7519    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7520    shlibpath_var=LD_LIBRARY_PATH
7521  else
7522    # With GCC up to 2.95.x, collect2 would create an import file
7523    # for dependence libraries.  The import file would start with
7524    # the line `#! .'.  This would cause the generated library to
7525    # depend on `.', always an invalid library.  This was fixed in
7526    # development snapshots of GCC prior to 3.0.
7527    case $host_os in
7528      aix4 | aix4.[01] | aix4.[01].*)
7529      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7530	   echo ' yes '
7531	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7532	:
7533      else
7534	can_build_shared=no
7535      fi
7536      ;;
7537    esac
7538    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7539    # soname into executable. Probably we can add versioning support to
7540    # collect2, so additional links can be useful in future.
7541    if test "$aix_use_runtimelinking" = yes; then
7542      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7543      # instead of lib<name>.a to let people know that these are not
7544      # typical AIX shared libraries.
7545      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7546    else
7547      # We preserve .a as extension for shared libraries through AIX4.2
7548      # and later when we are not doing run time linking.
7549      library_names_spec='${libname}${release}.a $libname.a'
7550      soname_spec='${libname}${release}${shared_ext}$major'
7551    fi
7552    shlibpath_var=LIBPATH
7553  fi
7554  ;;
7555
7556amigaos*)
7557  library_names_spec='$libname.ixlibrary $libname.a'
7558  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7559  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'
7560  ;;
7561
7562beos*)
7563  library_names_spec='${libname}${shared_ext}'
7564  dynamic_linker="$host_os ld.so"
7565  shlibpath_var=LIBRARY_PATH
7566  ;;
7567
7568bsdi4*)
7569  version_type=linux
7570  need_version=no
7571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7572  soname_spec='${libname}${release}${shared_ext}$major'
7573  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7574  shlibpath_var=LD_LIBRARY_PATH
7575  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7576  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7577  # the default ld.so.conf also contains /usr/contrib/lib and
7578  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7579  # libtool to hard-code these into programs
7580  ;;
7581
7582cygwin* | mingw* | pw32*)
7583  version_type=windows
7584  shrext=".dll"
7585  need_version=no
7586  need_lib_prefix=no
7587
7588  case $GCC,$host_os in
7589  yes,cygwin* | yes,mingw* | yes,pw32*)
7590    library_names_spec='$libname.dll.a'
7591    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7592    postinstall_cmds='base_file=`basename \${file}`~
7593      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7594      dldir=$destdir/`dirname \$dlpath`~
7595      test -d \$dldir || mkdir -p \$dldir~
7596      $install_prog $dir/$dlname \$dldir/$dlname'
7597    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7598      dlpath=$dir/\$dldll~
7599       $rm \$dlpath'
7600    shlibpath_overrides_runpath=yes
7601
7602    case $host_os in
7603    cygwin*)
7604      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7605      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7606      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7607      ;;
7608    mingw*)
7609      # MinGW DLLs use traditional 'lib' prefix
7610      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7611      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7612      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7613        # It is most probably a Windows format PATH printed by
7614        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7615        # path with ; separators, and with drive letters. We can handle the
7616        # drive letters (cygwin fileutils understands them), so leave them,
7617        # especially as we might pass files found there to a mingw objdump,
7618        # which wouldn't understand a cygwinified path. Ahh.
7619        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7620      else
7621        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7622      fi
7623      ;;
7624    pw32*)
7625      # pw32 DLLs use 'pw' prefix rather than 'lib'
7626      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7627      ;;
7628    esac
7629    ;;
7630
7631  *)
7632    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7633    ;;
7634  esac
7635  dynamic_linker='Win32 ld.exe'
7636  # FIXME: first we should search . and the directory the executable is in
7637  shlibpath_var=PATH
7638  ;;
7639
7640darwin* | rhapsody*)
7641  dynamic_linker="$host_os dyld"
7642  version_type=darwin
7643  need_lib_prefix=no
7644  need_version=no
7645  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7646  soname_spec='${libname}${release}${major}$shared_ext'
7647  shlibpath_overrides_runpath=yes
7648  shlibpath_var=DYLD_LIBRARY_PATH
7649  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7650  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7651  if test "$GCC" = yes; then
7652    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7653  else
7654    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7655  fi
7656  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7657  ;;
7658
7659dgux*)
7660  version_type=linux
7661  need_lib_prefix=no
7662  need_version=no
7663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7664  soname_spec='${libname}${release}${shared_ext}$major'
7665  shlibpath_var=LD_LIBRARY_PATH
7666  ;;
7667
7668freebsd1*)
7669  dynamic_linker=no
7670  ;;
7671
7672kfreebsd*-gnu)
7673  version_type=linux
7674  need_lib_prefix=no
7675  need_version=no
7676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7677  soname_spec='${libname}${release}${shared_ext}$major'
7678  shlibpath_var=LD_LIBRARY_PATH
7679  shlibpath_overrides_runpath=no
7680  hardcode_into_libs=yes
7681  dynamic_linker='GNU ld.so'
7682  ;;
7683
7684freebsd*)
7685  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7686  version_type=freebsd-$objformat
7687  case $version_type in
7688    freebsd-elf*)
7689      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7690      need_version=no
7691      need_lib_prefix=no
7692      ;;
7693    freebsd-*)
7694      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7695      need_version=yes
7696      ;;
7697  esac
7698  shlibpath_var=LD_LIBRARY_PATH
7699  case $host_os in
7700  freebsd2*)
7701    shlibpath_overrides_runpath=yes
7702    ;;
7703  freebsd3.01* | freebsdelf3.01*)
7704    shlibpath_overrides_runpath=yes
7705    hardcode_into_libs=yes
7706    ;;
7707  *) # from 3.2 on
7708    shlibpath_overrides_runpath=no
7709    hardcode_into_libs=yes
7710    ;;
7711  esac
7712  ;;
7713
7714gnu*)
7715  version_type=linux
7716  need_lib_prefix=no
7717  need_version=no
7718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7719  soname_spec='${libname}${release}${shared_ext}$major'
7720  shlibpath_var=LD_LIBRARY_PATH
7721  hardcode_into_libs=yes
7722  ;;
7723
7724hpux9* | hpux10* | hpux11*)
7725  # Give a soname corresponding to the major version so that dld.sl refuses to
7726  # link against other versions.
7727  version_type=sunos
7728  need_lib_prefix=no
7729  need_version=no
7730  case "$host_cpu" in
7731  ia64*)
7732    shrext='.so'
7733    hardcode_into_libs=yes
7734    dynamic_linker="$host_os dld.so"
7735    shlibpath_var=LD_LIBRARY_PATH
7736    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7737    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7738    soname_spec='${libname}${release}${shared_ext}$major'
7739    if test "X$HPUX_IA64_MODE" = X32; then
7740      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7741    else
7742      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7743    fi
7744    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7745    ;;
7746   hppa*64*)
7747     shrext='.sl'
7748     hardcode_into_libs=yes
7749     dynamic_linker="$host_os dld.sl"
7750     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7751     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7753     soname_spec='${libname}${release}${shared_ext}$major'
7754     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7755     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7756     ;;
7757   *)
7758    shrext='.sl'
7759    dynamic_linker="$host_os dld.sl"
7760    shlibpath_var=SHLIB_PATH
7761    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7762    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7763    soname_spec='${libname}${release}${shared_ext}$major'
7764    ;;
7765  esac
7766  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7767  postinstall_cmds='chmod 555 $lib'
7768  ;;
7769
7770irix5* | irix6* | nonstopux*)
7771  case $host_os in
7772    nonstopux*) version_type=nonstopux ;;
7773    *)
7774	if test "$lt_cv_prog_gnu_ld" = yes; then
7775		version_type=linux
7776	else
7777		version_type=irix
7778	fi ;;
7779  esac
7780  need_lib_prefix=no
7781  need_version=no
7782  soname_spec='${libname}${release}${shared_ext}$major'
7783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7784  case $host_os in
7785  irix5* | nonstopux*)
7786    libsuff= shlibsuff=
7787    ;;
7788  *)
7789    case $LD in # libtool.m4 will add one of these switches to LD
7790    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7791      libsuff= shlibsuff= libmagic=32-bit;;
7792    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7793      libsuff=32 shlibsuff=N32 libmagic=N32;;
7794    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7795      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7796    *) libsuff= shlibsuff= libmagic=never-match;;
7797    esac
7798    ;;
7799  esac
7800  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7801  shlibpath_overrides_runpath=no
7802  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7803  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7804  hardcode_into_libs=yes
7805  ;;
7806
7807# No shared lib support for Linux oldld, aout, or coff.
7808linux*oldld* | linux*aout* | linux*coff*)
7809  dynamic_linker=no
7810  ;;
7811
7812# This must be Linux ELF.
7813linux*)
7814  version_type=linux
7815  need_lib_prefix=no
7816  need_version=no
7817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7818  soname_spec='${libname}${release}${shared_ext}$major'
7819  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7820  shlibpath_var=LD_LIBRARY_PATH
7821  shlibpath_overrides_runpath=no
7822  # This implies no fast_install, which is unacceptable.
7823  # Some rework will be needed to allow for fast_install
7824  # before this can be enabled.
7825  hardcode_into_libs=yes
7826
7827  # Append ld.so.conf contents to the search path
7828  if test -f /etc/ld.so.conf; then
7829    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7830    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7831  fi
7832
7833  # We used to test for /lib/ld.so.1 and disable shared libraries on
7834  # powerpc, because MkLinux only supported shared libraries with the
7835  # GNU dynamic linker.  Since this was broken with cross compilers,
7836  # most powerpc-linux boxes support dynamic linking these days and
7837  # people can always --disable-shared, the test was removed, and we
7838  # assume the GNU/Linux dynamic linker is in use.
7839  dynamic_linker='GNU/Linux ld.so'
7840  ;;
7841
7842knetbsd*-gnu)
7843  version_type=linux
7844  need_lib_prefix=no
7845  need_version=no
7846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7847  soname_spec='${libname}${release}${shared_ext}$major'
7848  shlibpath_var=LD_LIBRARY_PATH
7849  shlibpath_overrides_runpath=no
7850  hardcode_into_libs=yes
7851  dynamic_linker='GNU ld.so'
7852  ;;
7853
7854netbsd*)
7855  version_type=sunos
7856  need_lib_prefix=no
7857  need_version=no
7858  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7859    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7860    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7861    dynamic_linker='NetBSD (a.out) ld.so'
7862  else
7863    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7864    soname_spec='${libname}${release}${shared_ext}$major'
7865    dynamic_linker='NetBSD ld.elf_so'
7866  fi
7867  shlibpath_var=LD_LIBRARY_PATH
7868  shlibpath_overrides_runpath=yes
7869  hardcode_into_libs=yes
7870  ;;
7871
7872newsos6)
7873  version_type=linux
7874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7875  shlibpath_var=LD_LIBRARY_PATH
7876  shlibpath_overrides_runpath=yes
7877  ;;
7878
7879nto-qnx*)
7880  version_type=linux
7881  need_lib_prefix=no
7882  need_version=no
7883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7884  soname_spec='${libname}${release}${shared_ext}$major'
7885  shlibpath_var=LD_LIBRARY_PATH
7886  shlibpath_overrides_runpath=yes
7887  ;;
7888
7889openbsd*)
7890  version_type=sunos
7891  need_lib_prefix=no
7892  need_version=yes
7893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7894  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7895  shlibpath_var=LD_LIBRARY_PATH
7896  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7897    case $host_os in
7898      openbsd2.[89] | openbsd2.[89].*)
7899	shlibpath_overrides_runpath=no
7900	;;
7901      *)
7902	shlibpath_overrides_runpath=yes
7903	;;
7904      esac
7905  else
7906    shlibpath_overrides_runpath=yes
7907  fi
7908  ;;
7909
7910os2*)
7911  libname_spec='$name'
7912  shrext=".dll"
7913  need_lib_prefix=no
7914  library_names_spec='$libname${shared_ext} $libname.a'
7915  dynamic_linker='OS/2 ld.exe'
7916  shlibpath_var=LIBPATH
7917  ;;
7918
7919osf3* | osf4* | osf5*)
7920  version_type=osf
7921  need_lib_prefix=no
7922  need_version=no
7923  soname_spec='${libname}${release}${shared_ext}$major'
7924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925  shlibpath_var=LD_LIBRARY_PATH
7926  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7927  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7928  ;;
7929
7930sco3.2v5*)
7931  version_type=osf
7932  soname_spec='${libname}${release}${shared_ext}$major'
7933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7934  shlibpath_var=LD_LIBRARY_PATH
7935  ;;
7936
7937solaris*)
7938  version_type=linux
7939  need_lib_prefix=no
7940  need_version=no
7941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7942  soname_spec='${libname}${release}${shared_ext}$major'
7943  shlibpath_var=LD_LIBRARY_PATH
7944  shlibpath_overrides_runpath=yes
7945  hardcode_into_libs=yes
7946  # ldd complains unless libraries are executable
7947  postinstall_cmds='chmod +x $lib'
7948  ;;
7949
7950sunos4*)
7951  version_type=sunos
7952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7953  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7954  shlibpath_var=LD_LIBRARY_PATH
7955  shlibpath_overrides_runpath=yes
7956  if test "$with_gnu_ld" = yes; then
7957    need_lib_prefix=no
7958  fi
7959  need_version=yes
7960  ;;
7961
7962sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7963  version_type=linux
7964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7965  soname_spec='${libname}${release}${shared_ext}$major'
7966  shlibpath_var=LD_LIBRARY_PATH
7967  case $host_vendor in
7968    sni)
7969      shlibpath_overrides_runpath=no
7970      need_lib_prefix=no
7971      export_dynamic_flag_spec='${wl}-Blargedynsym'
7972      runpath_var=LD_RUN_PATH
7973      ;;
7974    siemens)
7975      need_lib_prefix=no
7976      ;;
7977    motorola)
7978      need_lib_prefix=no
7979      need_version=no
7980      shlibpath_overrides_runpath=no
7981      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7982      ;;
7983  esac
7984  ;;
7985
7986sysv4*MP*)
7987  if test -d /usr/nec ;then
7988    version_type=linux
7989    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7990    soname_spec='$libname${shared_ext}.$major'
7991    shlibpath_var=LD_LIBRARY_PATH
7992  fi
7993  ;;
7994
7995uts4*)
7996  version_type=linux
7997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998  soname_spec='${libname}${release}${shared_ext}$major'
7999  shlibpath_var=LD_LIBRARY_PATH
8000  ;;
8001
8002*)
8003  dynamic_linker=no
8004  ;;
8005esac
8006echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8007echo "${ECHO_T}$dynamic_linker" >&6
8008test "$dynamic_linker" = no && can_build_shared=no
8009
8010echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8011echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8012hardcode_action=
8013if test -n "$hardcode_libdir_flag_spec" || \
8014   test -n "$runpath_var " || \
8015   test "X$hardcode_automatic"="Xyes" ; then
8016
8017  # We can hardcode non-existant directories.
8018  if test "$hardcode_direct" != no &&
8019     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8020     # have to relink, otherwise we might link with an installed library
8021     # when we should be linking with a yet-to-be-installed one
8022     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8023     test "$hardcode_minus_L" != no; then
8024    # Linking always hardcodes the temporary library directory.
8025    hardcode_action=relink
8026  else
8027    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8028    hardcode_action=immediate
8029  fi
8030else
8031  # We cannot hardcode anything, or else we can only hardcode existing
8032  # directories.
8033  hardcode_action=unsupported
8034fi
8035echo "$as_me:$LINENO: result: $hardcode_action" >&5
8036echo "${ECHO_T}$hardcode_action" >&6
8037
8038if test "$hardcode_action" = relink; then
8039  # Fast installation is not supported
8040  enable_fast_install=no
8041elif test "$shlibpath_overrides_runpath" = yes ||
8042     test "$enable_shared" = no; then
8043  # Fast installation is not necessary
8044  enable_fast_install=needless
8045fi
8046
8047striplib=
8048old_striplib=
8049echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8050echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8051if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8052  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8053  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8054  echo "$as_me:$LINENO: result: yes" >&5
8055echo "${ECHO_T}yes" >&6
8056else
8057# FIXME - insert some real tests, host_os isn't really good enough
8058  case $host_os in
8059   darwin*)
8060       if test -n "$STRIP" ; then
8061         striplib="$STRIP -x"
8062         echo "$as_me:$LINENO: result: yes" >&5
8063echo "${ECHO_T}yes" >&6
8064       else
8065  echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6
8067fi
8068       ;;
8069   *)
8070  echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072    ;;
8073  esac
8074fi
8075
8076if test "x$enable_dlopen" != xyes; then
8077  enable_dlopen=unknown
8078  enable_dlopen_self=unknown
8079  enable_dlopen_self_static=unknown
8080else
8081  lt_cv_dlopen=no
8082  lt_cv_dlopen_libs=
8083
8084  case $host_os in
8085  beos*)
8086    lt_cv_dlopen="load_add_on"
8087    lt_cv_dlopen_libs=
8088    lt_cv_dlopen_self=yes
8089    ;;
8090
8091  mingw* | pw32*)
8092    lt_cv_dlopen="LoadLibrary"
8093    lt_cv_dlopen_libs=
8094   ;;
8095
8096  cygwin*)
8097    lt_cv_dlopen="dlopen"
8098    lt_cv_dlopen_libs=
8099   ;;
8100
8101  darwin*)
8102  # if libdl is installed we need to link against it
8103    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8104echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8105if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8106  echo $ECHO_N "(cached) $ECHO_C" >&6
8107else
8108  ac_check_lib_save_LIBS=$LIBS
8109LIBS="-ldl  $LIBS"
8110cat >conftest.$ac_ext <<_ACEOF
8111/* confdefs.h.  */
8112_ACEOF
8113cat confdefs.h >>conftest.$ac_ext
8114cat >>conftest.$ac_ext <<_ACEOF
8115/* end confdefs.h.  */
8116
8117/* Override any gcc2 internal prototype to avoid an error.  */
8118#ifdef __cplusplus
8119extern "C"
8120#endif
8121/* We use char because int might match the return type of a gcc2
8122   builtin and then its argument prototype would still apply.  */
8123char dlopen ();
8124int
8125main ()
8126{
8127dlopen ();
8128  ;
8129  return 0;
8130}
8131_ACEOF
8132rm -f conftest.$ac_objext conftest$ac_exeext
8133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134  (eval $ac_link) 2>conftest.er1
8135  ac_status=$?
8136  grep -v '^ *+' conftest.er1 >conftest.err
8137  rm -f conftest.er1
8138  cat conftest.err >&5
8139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140  (exit $ac_status); } &&
8141	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143  (eval $ac_try) 2>&5
8144  ac_status=$?
8145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146  (exit $ac_status); }; } &&
8147	 { ac_try='test -s conftest$ac_exeext'
8148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149  (eval $ac_try) 2>&5
8150  ac_status=$?
8151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152  (exit $ac_status); }; }; then
8153  ac_cv_lib_dl_dlopen=yes
8154else
8155  echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158ac_cv_lib_dl_dlopen=no
8159fi
8160rm -f conftest.err conftest.$ac_objext \
8161      conftest$ac_exeext conftest.$ac_ext
8162LIBS=$ac_check_lib_save_LIBS
8163fi
8164echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8165echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8166if test $ac_cv_lib_dl_dlopen = yes; then
8167  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8168else
8169
8170    lt_cv_dlopen="dyld"
8171    lt_cv_dlopen_libs=
8172    lt_cv_dlopen_self=yes
8173
8174fi
8175
8176   ;;
8177
8178  *)
8179    echo "$as_me:$LINENO: checking for shl_load" >&5
8180echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8181if test "${ac_cv_func_shl_load+set}" = set; then
8182  echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184  cat >conftest.$ac_ext <<_ACEOF
8185/* confdefs.h.  */
8186_ACEOF
8187cat confdefs.h >>conftest.$ac_ext
8188cat >>conftest.$ac_ext <<_ACEOF
8189/* end confdefs.h.  */
8190/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8191   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8192#define shl_load innocuous_shl_load
8193
8194/* System header to define __stub macros and hopefully few prototypes,
8195    which can conflict with char shl_load (); below.
8196    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8197    <limits.h> exists even on freestanding compilers.  */
8198
8199#ifdef __STDC__
8200# include <limits.h>
8201#else
8202# include <assert.h>
8203#endif
8204
8205#undef shl_load
8206
8207/* Override any gcc2 internal prototype to avoid an error.  */
8208#ifdef __cplusplus
8209extern "C"
8210{
8211#endif
8212/* We use char because int might match the return type of a gcc2
8213   builtin and then its argument prototype would still apply.  */
8214char shl_load ();
8215/* The GNU C library defines this for functions which it implements
8216    to always fail with ENOSYS.  Some functions are actually named
8217    something starting with __ and the normal name is an alias.  */
8218#if defined (__stub_shl_load) || defined (__stub___shl_load)
8219choke me
8220#else
8221char (*f) () = shl_load;
8222#endif
8223#ifdef __cplusplus
8224}
8225#endif
8226
8227int
8228main ()
8229{
8230return f != shl_load;
8231  ;
8232  return 0;
8233}
8234_ACEOF
8235rm -f conftest.$ac_objext conftest$ac_exeext
8236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237  (eval $ac_link) 2>conftest.er1
8238  ac_status=$?
8239  grep -v '^ *+' conftest.er1 >conftest.err
8240  rm -f conftest.er1
8241  cat conftest.err >&5
8242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243  (exit $ac_status); } &&
8244	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246  (eval $ac_try) 2>&5
8247  ac_status=$?
8248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249  (exit $ac_status); }; } &&
8250	 { ac_try='test -s conftest$ac_exeext'
8251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252  (eval $ac_try) 2>&5
8253  ac_status=$?
8254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255  (exit $ac_status); }; }; then
8256  ac_cv_func_shl_load=yes
8257else
8258  echo "$as_me: failed program was:" >&5
8259sed 's/^/| /' conftest.$ac_ext >&5
8260
8261ac_cv_func_shl_load=no
8262fi
8263rm -f conftest.err conftest.$ac_objext \
8264      conftest$ac_exeext conftest.$ac_ext
8265fi
8266echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8267echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8268if test $ac_cv_func_shl_load = yes; then
8269  lt_cv_dlopen="shl_load"
8270else
8271  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8272echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8273if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8274  echo $ECHO_N "(cached) $ECHO_C" >&6
8275else
8276  ac_check_lib_save_LIBS=$LIBS
8277LIBS="-ldld  $LIBS"
8278cat >conftest.$ac_ext <<_ACEOF
8279/* confdefs.h.  */
8280_ACEOF
8281cat confdefs.h >>conftest.$ac_ext
8282cat >>conftest.$ac_ext <<_ACEOF
8283/* end confdefs.h.  */
8284
8285/* Override any gcc2 internal prototype to avoid an error.  */
8286#ifdef __cplusplus
8287extern "C"
8288#endif
8289/* We use char because int might match the return type of a gcc2
8290   builtin and then its argument prototype would still apply.  */
8291char shl_load ();
8292int
8293main ()
8294{
8295shl_load ();
8296  ;
8297  return 0;
8298}
8299_ACEOF
8300rm -f conftest.$ac_objext conftest$ac_exeext
8301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8302  (eval $ac_link) 2>conftest.er1
8303  ac_status=$?
8304  grep -v '^ *+' conftest.er1 >conftest.err
8305  rm -f conftest.er1
8306  cat conftest.err >&5
8307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308  (exit $ac_status); } &&
8309	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311  (eval $ac_try) 2>&5
8312  ac_status=$?
8313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314  (exit $ac_status); }; } &&
8315	 { ac_try='test -s conftest$ac_exeext'
8316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317  (eval $ac_try) 2>&5
8318  ac_status=$?
8319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320  (exit $ac_status); }; }; then
8321  ac_cv_lib_dld_shl_load=yes
8322else
8323  echo "$as_me: failed program was:" >&5
8324sed 's/^/| /' conftest.$ac_ext >&5
8325
8326ac_cv_lib_dld_shl_load=no
8327fi
8328rm -f conftest.err conftest.$ac_objext \
8329      conftest$ac_exeext conftest.$ac_ext
8330LIBS=$ac_check_lib_save_LIBS
8331fi
8332echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8333echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8334if test $ac_cv_lib_dld_shl_load = yes; then
8335  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8336else
8337  echo "$as_me:$LINENO: checking for dlopen" >&5
8338echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8339if test "${ac_cv_func_dlopen+set}" = set; then
8340  echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342  cat >conftest.$ac_ext <<_ACEOF
8343/* confdefs.h.  */
8344_ACEOF
8345cat confdefs.h >>conftest.$ac_ext
8346cat >>conftest.$ac_ext <<_ACEOF
8347/* end confdefs.h.  */
8348/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8349   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8350#define dlopen innocuous_dlopen
8351
8352/* System header to define __stub macros and hopefully few prototypes,
8353    which can conflict with char dlopen (); below.
8354    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8355    <limits.h> exists even on freestanding compilers.  */
8356
8357#ifdef __STDC__
8358# include <limits.h>
8359#else
8360# include <assert.h>
8361#endif
8362
8363#undef dlopen
8364
8365/* Override any gcc2 internal prototype to avoid an error.  */
8366#ifdef __cplusplus
8367extern "C"
8368{
8369#endif
8370/* We use char because int might match the return type of a gcc2
8371   builtin and then its argument prototype would still apply.  */
8372char dlopen ();
8373/* The GNU C library defines this for functions which it implements
8374    to always fail with ENOSYS.  Some functions are actually named
8375    something starting with __ and the normal name is an alias.  */
8376#if defined (__stub_dlopen) || defined (__stub___dlopen)
8377choke me
8378#else
8379char (*f) () = dlopen;
8380#endif
8381#ifdef __cplusplus
8382}
8383#endif
8384
8385int
8386main ()
8387{
8388return f != dlopen;
8389  ;
8390  return 0;
8391}
8392_ACEOF
8393rm -f conftest.$ac_objext conftest$ac_exeext
8394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395  (eval $ac_link) 2>conftest.er1
8396  ac_status=$?
8397  grep -v '^ *+' conftest.er1 >conftest.err
8398  rm -f conftest.er1
8399  cat conftest.err >&5
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); } &&
8402	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404  (eval $ac_try) 2>&5
8405  ac_status=$?
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); }; } &&
8408	 { ac_try='test -s conftest$ac_exeext'
8409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410  (eval $ac_try) 2>&5
8411  ac_status=$?
8412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413  (exit $ac_status); }; }; then
8414  ac_cv_func_dlopen=yes
8415else
8416  echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419ac_cv_func_dlopen=no
8420fi
8421rm -f conftest.err conftest.$ac_objext \
8422      conftest$ac_exeext conftest.$ac_ext
8423fi
8424echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8425echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8426if test $ac_cv_func_dlopen = yes; then
8427  lt_cv_dlopen="dlopen"
8428else
8429  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8430echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8431if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8432  echo $ECHO_N "(cached) $ECHO_C" >&6
8433else
8434  ac_check_lib_save_LIBS=$LIBS
8435LIBS="-ldl  $LIBS"
8436cat >conftest.$ac_ext <<_ACEOF
8437/* confdefs.h.  */
8438_ACEOF
8439cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h.  */
8442
8443/* Override any gcc2 internal prototype to avoid an error.  */
8444#ifdef __cplusplus
8445extern "C"
8446#endif
8447/* We use char because int might match the return type of a gcc2
8448   builtin and then its argument prototype would still apply.  */
8449char dlopen ();
8450int
8451main ()
8452{
8453dlopen ();
8454  ;
8455  return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext conftest$ac_exeext
8459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460  (eval $ac_link) 2>conftest.er1
8461  ac_status=$?
8462  grep -v '^ *+' conftest.er1 >conftest.err
8463  rm -f conftest.er1
8464  cat conftest.err >&5
8465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466  (exit $ac_status); } &&
8467	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469  (eval $ac_try) 2>&5
8470  ac_status=$?
8471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472  (exit $ac_status); }; } &&
8473	 { ac_try='test -s conftest$ac_exeext'
8474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475  (eval $ac_try) 2>&5
8476  ac_status=$?
8477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478  (exit $ac_status); }; }; then
8479  ac_cv_lib_dl_dlopen=yes
8480else
8481  echo "$as_me: failed program was:" >&5
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
8484ac_cv_lib_dl_dlopen=no
8485fi
8486rm -f conftest.err conftest.$ac_objext \
8487      conftest$ac_exeext conftest.$ac_ext
8488LIBS=$ac_check_lib_save_LIBS
8489fi
8490echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8491echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8492if test $ac_cv_lib_dl_dlopen = yes; then
8493  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8494else
8495  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8496echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8497if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8498  echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500  ac_check_lib_save_LIBS=$LIBS
8501LIBS="-lsvld  $LIBS"
8502cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h.  */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h.  */
8508
8509/* Override any gcc2 internal prototype to avoid an error.  */
8510#ifdef __cplusplus
8511extern "C"
8512#endif
8513/* We use char because int might match the return type of a gcc2
8514   builtin and then its argument prototype would still apply.  */
8515char dlopen ();
8516int
8517main ()
8518{
8519dlopen ();
8520  ;
8521  return 0;
8522}
8523_ACEOF
8524rm -f conftest.$ac_objext conftest$ac_exeext
8525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526  (eval $ac_link) 2>conftest.er1
8527  ac_status=$?
8528  grep -v '^ *+' conftest.er1 >conftest.err
8529  rm -f conftest.er1
8530  cat conftest.err >&5
8531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532  (exit $ac_status); } &&
8533	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535  (eval $ac_try) 2>&5
8536  ac_status=$?
8537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538  (exit $ac_status); }; } &&
8539	 { ac_try='test -s conftest$ac_exeext'
8540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541  (eval $ac_try) 2>&5
8542  ac_status=$?
8543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544  (exit $ac_status); }; }; then
8545  ac_cv_lib_svld_dlopen=yes
8546else
8547  echo "$as_me: failed program was:" >&5
8548sed 's/^/| /' conftest.$ac_ext >&5
8549
8550ac_cv_lib_svld_dlopen=no
8551fi
8552rm -f conftest.err conftest.$ac_objext \
8553      conftest$ac_exeext conftest.$ac_ext
8554LIBS=$ac_check_lib_save_LIBS
8555fi
8556echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8557echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8558if test $ac_cv_lib_svld_dlopen = yes; then
8559  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8560else
8561  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8562echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8563if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8564  echo $ECHO_N "(cached) $ECHO_C" >&6
8565else
8566  ac_check_lib_save_LIBS=$LIBS
8567LIBS="-ldld  $LIBS"
8568cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h.  */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
8573/* end confdefs.h.  */
8574
8575/* Override any gcc2 internal prototype to avoid an error.  */
8576#ifdef __cplusplus
8577extern "C"
8578#endif
8579/* We use char because int might match the return type of a gcc2
8580   builtin and then its argument prototype would still apply.  */
8581char dld_link ();
8582int
8583main ()
8584{
8585dld_link ();
8586  ;
8587  return 0;
8588}
8589_ACEOF
8590rm -f conftest.$ac_objext conftest$ac_exeext
8591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592  (eval $ac_link) 2>conftest.er1
8593  ac_status=$?
8594  grep -v '^ *+' conftest.er1 >conftest.err
8595  rm -f conftest.er1
8596  cat conftest.err >&5
8597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598  (exit $ac_status); } &&
8599	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601  (eval $ac_try) 2>&5
8602  ac_status=$?
8603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604  (exit $ac_status); }; } &&
8605	 { ac_try='test -s conftest$ac_exeext'
8606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607  (eval $ac_try) 2>&5
8608  ac_status=$?
8609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610  (exit $ac_status); }; }; then
8611  ac_cv_lib_dld_dld_link=yes
8612else
8613  echo "$as_me: failed program was:" >&5
8614sed 's/^/| /' conftest.$ac_ext >&5
8615
8616ac_cv_lib_dld_dld_link=no
8617fi
8618rm -f conftest.err conftest.$ac_objext \
8619      conftest$ac_exeext conftest.$ac_ext
8620LIBS=$ac_check_lib_save_LIBS
8621fi
8622echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8623echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8624if test $ac_cv_lib_dld_dld_link = yes; then
8625  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8626fi
8627
8628
8629fi
8630
8631
8632fi
8633
8634
8635fi
8636
8637
8638fi
8639
8640
8641fi
8642
8643    ;;
8644  esac
8645
8646  if test "x$lt_cv_dlopen" != xno; then
8647    enable_dlopen=yes
8648  else
8649    enable_dlopen=no
8650  fi
8651
8652  case $lt_cv_dlopen in
8653  dlopen)
8654    save_CPPFLAGS="$CPPFLAGS"
8655    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8656
8657    save_LDFLAGS="$LDFLAGS"
8658    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8659
8660    save_LIBS="$LIBS"
8661    LIBS="$lt_cv_dlopen_libs $LIBS"
8662
8663    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8664echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8665if test "${lt_cv_dlopen_self+set}" = set; then
8666  echo $ECHO_N "(cached) $ECHO_C" >&6
8667else
8668  	  if test "$cross_compiling" = yes; then :
8669  lt_cv_dlopen_self=cross
8670else
8671  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8672  lt_status=$lt_dlunknown
8673  cat > conftest.$ac_ext <<EOF
8674#line 8674 "configure"
8675#include "confdefs.h"
8676
8677#if HAVE_DLFCN_H
8678#include <dlfcn.h>
8679#endif
8680
8681#include <stdio.h>
8682
8683#ifdef RTLD_GLOBAL
8684#  define LT_DLGLOBAL		RTLD_GLOBAL
8685#else
8686#  ifdef DL_GLOBAL
8687#    define LT_DLGLOBAL		DL_GLOBAL
8688#  else
8689#    define LT_DLGLOBAL		0
8690#  endif
8691#endif
8692
8693/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8694   find out it does not work in some platform. */
8695#ifndef LT_DLLAZY_OR_NOW
8696#  ifdef RTLD_LAZY
8697#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8698#  else
8699#    ifdef DL_LAZY
8700#      define LT_DLLAZY_OR_NOW		DL_LAZY
8701#    else
8702#      ifdef RTLD_NOW
8703#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8704#      else
8705#        ifdef DL_NOW
8706#          define LT_DLLAZY_OR_NOW	DL_NOW
8707#        else
8708#          define LT_DLLAZY_OR_NOW	0
8709#        endif
8710#      endif
8711#    endif
8712#  endif
8713#endif
8714
8715#ifdef __cplusplus
8716extern "C" void exit (int);
8717#endif
8718
8719void fnord() { int i=42;}
8720int main ()
8721{
8722  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8723  int status = $lt_dlunknown;
8724
8725  if (self)
8726    {
8727      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8728      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8729      /* dlclose (self); */
8730    }
8731
8732    exit (status);
8733}
8734EOF
8735  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8736  (eval $ac_link) 2>&5
8737  ac_status=$?
8738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8740    (./conftest; exit; ) 2>/dev/null
8741    lt_status=$?
8742    case x$lt_status in
8743      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8744      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8745      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8746    esac
8747  else :
8748    # compilation failed
8749    lt_cv_dlopen_self=no
8750  fi
8751fi
8752rm -fr conftest*
8753
8754
8755fi
8756echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8757echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8758
8759    if test "x$lt_cv_dlopen_self" = xyes; then
8760      LDFLAGS="$LDFLAGS $link_static_flag"
8761      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8762echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8763if test "${lt_cv_dlopen_self_static+set}" = set; then
8764  echo $ECHO_N "(cached) $ECHO_C" >&6
8765else
8766  	  if test "$cross_compiling" = yes; then :
8767  lt_cv_dlopen_self_static=cross
8768else
8769  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8770  lt_status=$lt_dlunknown
8771  cat > conftest.$ac_ext <<EOF
8772#line 8772 "configure"
8773#include "confdefs.h"
8774
8775#if HAVE_DLFCN_H
8776#include <dlfcn.h>
8777#endif
8778
8779#include <stdio.h>
8780
8781#ifdef RTLD_GLOBAL
8782#  define LT_DLGLOBAL		RTLD_GLOBAL
8783#else
8784#  ifdef DL_GLOBAL
8785#    define LT_DLGLOBAL		DL_GLOBAL
8786#  else
8787#    define LT_DLGLOBAL		0
8788#  endif
8789#endif
8790
8791/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8792   find out it does not work in some platform. */
8793#ifndef LT_DLLAZY_OR_NOW
8794#  ifdef RTLD_LAZY
8795#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8796#  else
8797#    ifdef DL_LAZY
8798#      define LT_DLLAZY_OR_NOW		DL_LAZY
8799#    else
8800#      ifdef RTLD_NOW
8801#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8802#      else
8803#        ifdef DL_NOW
8804#          define LT_DLLAZY_OR_NOW	DL_NOW
8805#        else
8806#          define LT_DLLAZY_OR_NOW	0
8807#        endif
8808#      endif
8809#    endif
8810#  endif
8811#endif
8812
8813#ifdef __cplusplus
8814extern "C" void exit (int);
8815#endif
8816
8817void fnord() { int i=42;}
8818int main ()
8819{
8820  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8821  int status = $lt_dlunknown;
8822
8823  if (self)
8824    {
8825      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8826      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8827      /* dlclose (self); */
8828    }
8829
8830    exit (status);
8831}
8832EOF
8833  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834  (eval $ac_link) 2>&5
8835  ac_status=$?
8836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8838    (./conftest; exit; ) 2>/dev/null
8839    lt_status=$?
8840    case x$lt_status in
8841      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8842      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8843      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8844    esac
8845  else :
8846    # compilation failed
8847    lt_cv_dlopen_self_static=no
8848  fi
8849fi
8850rm -fr conftest*
8851
8852
8853fi
8854echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8855echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8856    fi
8857
8858    CPPFLAGS="$save_CPPFLAGS"
8859    LDFLAGS="$save_LDFLAGS"
8860    LIBS="$save_LIBS"
8861    ;;
8862  esac
8863
8864  case $lt_cv_dlopen_self in
8865  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8866  *) enable_dlopen_self=unknown ;;
8867  esac
8868
8869  case $lt_cv_dlopen_self_static in
8870  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8871  *) enable_dlopen_self_static=unknown ;;
8872  esac
8873fi
8874
8875
8876# Report which librarie types wil actually be built
8877echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8878echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8879echo "$as_me:$LINENO: result: $can_build_shared" >&5
8880echo "${ECHO_T}$can_build_shared" >&6
8881
8882echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8883echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8884test "$can_build_shared" = "no" && enable_shared=no
8885
8886# On AIX, shared libraries and static libraries use the same namespace, and
8887# are all built from PIC.
8888case "$host_os" in
8889aix3*)
8890  test "$enable_shared" = yes && enable_static=no
8891  if test -n "$RANLIB"; then
8892    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8893    postinstall_cmds='$RANLIB $lib'
8894  fi
8895  ;;
8896
8897aix4*)
8898  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8899    test "$enable_shared" = yes && enable_static=no
8900  fi
8901  ;;
8902  darwin* | rhapsody*)
8903  if test "$GCC" = yes; then
8904    archive_cmds_need_lc=no
8905    case "$host_os" in
8906    rhapsody* | darwin1.[012])
8907      allow_undefined_flag='-undefined suppress'
8908      ;;
8909    *) # Darwin 1.3 on
8910      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8911      	allow_undefined_flag='-flat_namespace -undefined suppress'
8912      else
8913        case ${MACOSX_DEPLOYMENT_TARGET} in
8914          10.[012])
8915            allow_undefined_flag='-flat_namespace -undefined suppress'
8916            ;;
8917          10.*)
8918            allow_undefined_flag='-undefined dynamic_lookup'
8919            ;;
8920        esac
8921      fi
8922      ;;
8923    esac
8924    output_verbose_link_cmd='echo'
8925    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8926    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8927    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8928    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8929    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8930    hardcode_direct=no
8931    hardcode_automatic=yes
8932    hardcode_shlibpath_var=unsupported
8933    whole_archive_flag_spec='-all_load $convenience'
8934    link_all_deplibs=yes
8935  else
8936    ld_shlibs=no
8937  fi
8938    ;;
8939esac
8940echo "$as_me:$LINENO: result: $enable_shared" >&5
8941echo "${ECHO_T}$enable_shared" >&6
8942
8943echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8944echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8945# Make sure either enable_shared or enable_static is yes.
8946test "$enable_shared" = yes || enable_static=yes
8947echo "$as_me:$LINENO: result: $enable_static" >&5
8948echo "${ECHO_T}$enable_static" >&6
8949
8950# The else clause should only fire when bootstrapping the
8951# libtool distribution, otherwise you forgot to ship ltmain.sh
8952# with your package, and you will get complaints that there are
8953# no rules to generate ltmain.sh.
8954if test -f "$ltmain"; then
8955  # See if we are running on zsh, and set the options which allow our commands through
8956  # without removal of \ escapes.
8957  if test -n "${ZSH_VERSION+set}" ; then
8958    setopt NO_GLOB_SUBST
8959  fi
8960  # Now quote all the things that may contain metacharacters while being
8961  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8962  # variables and quote the copies for generation of the libtool script.
8963  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8964    SED SHELL STRIP \
8965    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8966    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8967    deplibs_check_method reload_flag reload_cmds need_locks \
8968    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8969    lt_cv_sys_global_symbol_to_c_name_address \
8970    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8971    old_postinstall_cmds old_postuninstall_cmds \
8972    compiler \
8973    CC \
8974    LD \
8975    lt_prog_compiler_wl \
8976    lt_prog_compiler_pic \
8977    lt_prog_compiler_static \
8978    lt_prog_compiler_no_builtin_flag \
8979    export_dynamic_flag_spec \
8980    thread_safe_flag_spec \
8981    whole_archive_flag_spec \
8982    enable_shared_with_static_runtimes \
8983    old_archive_cmds \
8984    old_archive_from_new_cmds \
8985    predep_objects \
8986    postdep_objects \
8987    predeps \
8988    postdeps \
8989    compiler_lib_search_path \
8990    archive_cmds \
8991    archive_expsym_cmds \
8992    postinstall_cmds \
8993    postuninstall_cmds \
8994    old_archive_from_expsyms_cmds \
8995    allow_undefined_flag \
8996    no_undefined_flag \
8997    export_symbols_cmds \
8998    hardcode_libdir_flag_spec \
8999    hardcode_libdir_flag_spec_ld \
9000    hardcode_libdir_separator \
9001    hardcode_automatic \
9002    module_cmds \
9003    module_expsym_cmds \
9004    lt_cv_prog_compiler_c_o \
9005    exclude_expsyms \
9006    include_expsyms; do
9007
9008    case $var in
9009    old_archive_cmds | \
9010    old_archive_from_new_cmds | \
9011    archive_cmds | \
9012    archive_expsym_cmds | \
9013    module_cmds | \
9014    module_expsym_cmds | \
9015    old_archive_from_expsyms_cmds | \
9016    export_symbols_cmds | \
9017    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9018    postinstall_cmds | postuninstall_cmds | \
9019    old_postinstall_cmds | old_postuninstall_cmds | \
9020    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9021      # Double-quote double-evaled strings.
9022      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9023      ;;
9024    *)
9025      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9026      ;;
9027    esac
9028  done
9029
9030  case $lt_echo in
9031  *'\$0 --fallback-echo"')
9032    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9033    ;;
9034  esac
9035
9036cfgfile="${ofile}T"
9037  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9038  $rm -f "$cfgfile"
9039  { echo "$as_me:$LINENO: creating $ofile" >&5
9040echo "$as_me: creating $ofile" >&6;}
9041
9042  cat <<__EOF__ >> "$cfgfile"
9043#! $SHELL
9044
9045# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9046# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9047# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9048#
9049# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9050# Free Software Foundation, Inc.
9051#
9052# This file is part of GNU Libtool:
9053# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9054#
9055# This program is free software; you can redistribute it and/or modify
9056# it under the terms of the GNU General Public License as published by
9057# the Free Software Foundation; either version 2 of the License, or
9058# (at your option) any later version.
9059#
9060# This program is distributed in the hope that it will be useful, but
9061# WITHOUT ANY WARRANTY; without even the implied warranty of
9062# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9063# General Public License for more details.
9064#
9065# You should have received a copy of the GNU General Public License
9066# along with this program; if not, write to the Free Software
9067# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9068#
9069# As a special exception to the GNU General Public License, if you
9070# distribute this file as part of a program that contains a
9071# configuration script generated by Autoconf, you may include it under
9072# the same distribution terms that you use for the rest of that program.
9073
9074# A sed program that does not truncate output.
9075SED=$lt_SED
9076
9077# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9078Xsed="$SED -e s/^X//"
9079
9080# The HP-UX ksh and POSIX shell print the target directory to stdout
9081# if CDPATH is set.
9082if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9083
9084# The names of the tagged configurations supported by this script.
9085available_tags=
9086
9087# ### BEGIN LIBTOOL CONFIG
9088
9089# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9090
9091# Shell to use when invoking shell scripts.
9092SHELL=$lt_SHELL
9093
9094# Whether or not to build shared libraries.
9095build_libtool_libs=$enable_shared
9096
9097# Whether or not to build static libraries.
9098build_old_libs=$enable_static
9099
9100# Whether or not to add -lc for building shared libraries.
9101build_libtool_need_lc=$archive_cmds_need_lc
9102
9103# Whether or not to disallow shared libs when runtime libs are static
9104allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9105
9106# Whether or not to optimize for fast installation.
9107fast_install=$enable_fast_install
9108
9109# The host system.
9110host_alias=$host_alias
9111host=$host
9112
9113# An echo program that does not interpret backslashes.
9114echo=$lt_echo
9115
9116# The archiver.
9117AR=$lt_AR
9118AR_FLAGS=$lt_AR_FLAGS
9119
9120# A C compiler.
9121LTCC=$lt_LTCC
9122
9123# A language-specific compiler.
9124CC=$lt_compiler
9125
9126# Is the compiler the GNU C compiler?
9127with_gcc=$GCC
9128
9129# An ERE matcher.
9130EGREP=$lt_EGREP
9131
9132# The linker used to build libraries.
9133LD=$lt_LD
9134
9135# Whether we need hard or soft links.
9136LN_S=$lt_LN_S
9137
9138# A BSD-compatible nm program.
9139NM=$lt_NM
9140
9141# A symbol stripping program
9142STRIP=$lt_STRIP
9143
9144# Used to examine libraries when file_magic_cmd begins "file"
9145MAGIC_CMD=$MAGIC_CMD
9146
9147# Used on cygwin: DLL creation program.
9148DLLTOOL="$DLLTOOL"
9149
9150# Used on cygwin: object dumper.
9151OBJDUMP="$OBJDUMP"
9152
9153# Used on cygwin: assembler.
9154AS="$AS"
9155
9156# The name of the directory that contains temporary libtool files.
9157objdir=$objdir
9158
9159# How to create reloadable object files.
9160reload_flag=$lt_reload_flag
9161reload_cmds=$lt_reload_cmds
9162
9163# How to pass a linker flag through the compiler.
9164wl=$lt_lt_prog_compiler_wl
9165
9166# Object file suffix (normally "o").
9167objext="$ac_objext"
9168
9169# Old archive suffix (normally "a").
9170libext="$libext"
9171
9172# Shared library suffix (normally ".so").
9173shrext='$shrext'
9174
9175# Executable file suffix (normally "").
9176exeext="$exeext"
9177
9178# Additional compiler flags for building library objects.
9179pic_flag=$lt_lt_prog_compiler_pic
9180pic_mode=$pic_mode
9181
9182# What is the maximum length of a command?
9183max_cmd_len=$lt_cv_sys_max_cmd_len
9184
9185# Does compiler simultaneously support -c and -o options?
9186compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9187
9188# Must we lock files when doing compilation ?
9189need_locks=$lt_need_locks
9190
9191# Do we need the lib prefix for modules?
9192need_lib_prefix=$need_lib_prefix
9193
9194# Do we need a version for libraries?
9195need_version=$need_version
9196
9197# Whether dlopen is supported.
9198dlopen_support=$enable_dlopen
9199
9200# Whether dlopen of programs is supported.
9201dlopen_self=$enable_dlopen_self
9202
9203# Whether dlopen of statically linked programs is supported.
9204dlopen_self_static=$enable_dlopen_self_static
9205
9206# Compiler flag to prevent dynamic linking.
9207link_static_flag=$lt_lt_prog_compiler_static
9208
9209# Compiler flag to turn off builtin functions.
9210no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9211
9212# Compiler flag to allow reflexive dlopens.
9213export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9214
9215# Compiler flag to generate shared objects directly from archives.
9216whole_archive_flag_spec=$lt_whole_archive_flag_spec
9217
9218# Compiler flag to generate thread-safe objects.
9219thread_safe_flag_spec=$lt_thread_safe_flag_spec
9220
9221# Library versioning type.
9222version_type=$version_type
9223
9224# Format of library name prefix.
9225libname_spec=$lt_libname_spec
9226
9227# List of archive names.  First name is the real one, the rest are links.
9228# The last name is the one that the linker finds with -lNAME.
9229library_names_spec=$lt_library_names_spec
9230
9231# The coded name of the library, if different from the real name.
9232soname_spec=$lt_soname_spec
9233
9234# Commands used to build and install an old-style archive.
9235RANLIB=$lt_RANLIB
9236old_archive_cmds=$lt_old_archive_cmds
9237old_postinstall_cmds=$lt_old_postinstall_cmds
9238old_postuninstall_cmds=$lt_old_postuninstall_cmds
9239
9240# Create an old-style archive from a shared archive.
9241old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9242
9243# Create a temporary old-style archive to link instead of a shared archive.
9244old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9245
9246# Commands used to build and install a shared archive.
9247archive_cmds=$lt_archive_cmds
9248archive_expsym_cmds=$lt_archive_expsym_cmds
9249postinstall_cmds=$lt_postinstall_cmds
9250postuninstall_cmds=$lt_postuninstall_cmds
9251
9252# Commands used to build a loadable module (assumed same as above if empty)
9253module_cmds=$lt_module_cmds
9254module_expsym_cmds=$lt_module_expsym_cmds
9255
9256# Commands to strip libraries.
9257old_striplib=$lt_old_striplib
9258striplib=$lt_striplib
9259
9260# Dependencies to place before the objects being linked to create a
9261# shared library.
9262predep_objects=$lt_predep_objects
9263
9264# Dependencies to place after the objects being linked to create a
9265# shared library.
9266postdep_objects=$lt_postdep_objects
9267
9268# Dependencies to place before the objects being linked to create a
9269# shared library.
9270predeps=$lt_predeps
9271
9272# Dependencies to place after the objects being linked to create a
9273# shared library.
9274postdeps=$lt_postdeps
9275
9276# The library search path used internally by the compiler when linking
9277# a shared library.
9278compiler_lib_search_path=$lt_compiler_lib_search_path
9279
9280# Method to check whether dependent libraries are shared objects.
9281deplibs_check_method=$lt_deplibs_check_method
9282
9283# Command to use when deplibs_check_method == file_magic.
9284file_magic_cmd=$lt_file_magic_cmd
9285
9286# Flag that allows shared libraries with undefined symbols to be built.
9287allow_undefined_flag=$lt_allow_undefined_flag
9288
9289# Flag that forces no undefined symbols.
9290no_undefined_flag=$lt_no_undefined_flag
9291
9292# Commands used to finish a libtool library installation in a directory.
9293finish_cmds=$lt_finish_cmds
9294
9295# Same as above, but a single script fragment to be evaled but not shown.
9296finish_eval=$lt_finish_eval
9297
9298# Take the output of nm and produce a listing of raw symbols and C names.
9299global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9300
9301# Transform the output of nm in a proper C declaration
9302global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9303
9304# Transform the output of nm in a C name address pair
9305global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9306
9307# This is the shared library runtime path variable.
9308runpath_var=$runpath_var
9309
9310# This is the shared library path variable.
9311shlibpath_var=$shlibpath_var
9312
9313# Is shlibpath searched before the hard-coded library search path?
9314shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9315
9316# How to hardcode a shared library path into an executable.
9317hardcode_action=$hardcode_action
9318
9319# Whether we should hardcode library paths into libraries.
9320hardcode_into_libs=$hardcode_into_libs
9321
9322# Flag to hardcode \$libdir into a binary during linking.
9323# This must work even if \$libdir does not exist.
9324hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9325
9326# If ld is used when linking, flag to hardcode \$libdir into
9327# a binary during linking. This must work even if \$libdir does
9328# not exist.
9329hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9330
9331# Whether we need a single -rpath flag with a separated argument.
9332hardcode_libdir_separator=$lt_hardcode_libdir_separator
9333
9334# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9335# resulting binary.
9336hardcode_direct=$hardcode_direct
9337
9338# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9339# resulting binary.
9340hardcode_minus_L=$hardcode_minus_L
9341
9342# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9343# the resulting binary.
9344hardcode_shlibpath_var=$hardcode_shlibpath_var
9345
9346# Set to yes if building a shared library automatically hardcodes DIR into the library
9347# and all subsequent libraries and executables linked against it.
9348hardcode_automatic=$hardcode_automatic
9349
9350# Variables whose values should be saved in libtool wrapper scripts and
9351# restored at relink time.
9352variables_saved_for_relink="$variables_saved_for_relink"
9353
9354# Whether libtool must link a program against all its dependency libraries.
9355link_all_deplibs=$link_all_deplibs
9356
9357# Compile-time system search path for libraries
9358sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9359
9360# Run-time system search path for libraries
9361sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9362
9363# Fix the shell variable \$srcfile for the compiler.
9364fix_srcfile_path="$fix_srcfile_path"
9365
9366# Set to yes if exported symbols are required.
9367always_export_symbols=$always_export_symbols
9368
9369# The commands to list exported symbols.
9370export_symbols_cmds=$lt_export_symbols_cmds
9371
9372# The commands to extract the exported symbol list from a shared archive.
9373extract_expsyms_cmds=$lt_extract_expsyms_cmds
9374
9375# Symbols that should not be listed in the preloaded symbols.
9376exclude_expsyms=$lt_exclude_expsyms
9377
9378# Symbols that must always be exported.
9379include_expsyms=$lt_include_expsyms
9380
9381# ### END LIBTOOL CONFIG
9382
9383__EOF__
9384
9385
9386  case $host_os in
9387  aix3*)
9388    cat <<\EOF >> "$cfgfile"
9389
9390# AIX sometimes has problems with the GCC collect2 program.  For some
9391# reason, if we set the COLLECT_NAMES environment variable, the problems
9392# vanish in a puff of smoke.
9393if test "X${COLLECT_NAMES+set}" != Xset; then
9394  COLLECT_NAMES=
9395  export COLLECT_NAMES
9396fi
9397EOF
9398    ;;
9399  esac
9400
9401  # We use sed instead of cat because bash on DJGPP gets confused if
9402  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9403  # text mode, it properly converts lines to CR/LF.  This bash problem
9404  # is reportedly fixed, but why not run on old versions too?
9405  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9406
9407  mv -f "$cfgfile" "$ofile" || \
9408    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9409  chmod +x "$ofile"
9410
9411else
9412  # If there is no Makefile yet, we rely on a make rule to execute
9413  # `config.status --recheck' to rerun these tests and create the
9414  # libtool script then.
9415  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9416  if test -f "$ltmain_in"; then
9417    test -f Makefile && make "$ltmain"
9418  fi
9419fi
9420
9421
9422ac_ext=c
9423ac_cpp='$CPP $CPPFLAGS'
9424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9426ac_compiler_gnu=$ac_cv_c_compiler_gnu
9427
9428CC="$lt_save_CC"
9429
9430
9431# Check whether --with-tags or --without-tags was given.
9432if test "${with_tags+set}" = set; then
9433  withval="$with_tags"
9434  tagnames="$withval"
9435fi;
9436
9437if test -f "$ltmain" && test -n "$tagnames"; then
9438  if test ! -f "${ofile}"; then
9439    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9440echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9441  fi
9442
9443  if test -z "$LTCC"; then
9444    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9445    if test -z "$LTCC"; then
9446      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9447echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9448    else
9449      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9450echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9451    fi
9452  fi
9453
9454  # Extract list of available tagged configurations in $ofile.
9455  # Note that this assumes the entire list is on one line.
9456  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9457
9458  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9459  for tagname in $tagnames; do
9460    IFS="$lt_save_ifs"
9461    # Check whether tagname contains only valid characters
9462    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9463    "") ;;
9464    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9465echo "$as_me: error: invalid tag name: $tagname" >&2;}
9466   { (exit 1); exit 1; }; }
9467	;;
9468    esac
9469
9470    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9471    then
9472      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9473echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9474   { (exit 1); exit 1; }; }
9475    fi
9476
9477    # Update the list of available tags.
9478    if test -n "$tagname"; then
9479      echo appending configuration tag \"$tagname\" to $ofile
9480
9481      case $tagname in
9482      CXX)
9483	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9484	  ac_ext=cc
9485ac_cpp='$CXXCPP $CPPFLAGS'
9486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9489
9490
9491
9492
9493archive_cmds_need_lc_CXX=no
9494allow_undefined_flag_CXX=
9495always_export_symbols_CXX=no
9496archive_expsym_cmds_CXX=
9497export_dynamic_flag_spec_CXX=
9498hardcode_direct_CXX=no
9499hardcode_libdir_flag_spec_CXX=
9500hardcode_libdir_flag_spec_ld_CXX=
9501hardcode_libdir_separator_CXX=
9502hardcode_minus_L_CXX=no
9503hardcode_automatic_CXX=no
9504module_cmds_CXX=
9505module_expsym_cmds_CXX=
9506link_all_deplibs_CXX=unknown
9507old_archive_cmds_CXX=$old_archive_cmds
9508no_undefined_flag_CXX=
9509whole_archive_flag_spec_CXX=
9510enable_shared_with_static_runtimes_CXX=no
9511
9512# Dependencies to place before and after the object being linked:
9513predep_objects_CXX=
9514postdep_objects_CXX=
9515predeps_CXX=
9516postdeps_CXX=
9517compiler_lib_search_path_CXX=
9518
9519# Source file extension for C++ test sources.
9520ac_ext=cc
9521
9522# Object file extension for compiled C++ test sources.
9523objext=o
9524objext_CXX=$objext
9525
9526# Code to be used in simple compile tests
9527lt_simple_compile_test_code="int some_variable = 0;\n"
9528
9529# Code to be used in simple link tests
9530lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9531
9532# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9533
9534# If no C compiler was specified, use CC.
9535LTCC=${LTCC-"$CC"}
9536
9537# Allow CC to be a program name with arguments.
9538compiler=$CC
9539
9540
9541# Allow CC to be a program name with arguments.
9542lt_save_CC=$CC
9543lt_save_LD=$LD
9544lt_save_GCC=$GCC
9545GCC=$GXX
9546lt_save_with_gnu_ld=$with_gnu_ld
9547lt_save_path_LD=$lt_cv_path_LD
9548if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9549  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9550else
9551  unset lt_cv_prog_gnu_ld
9552fi
9553if test -n "${lt_cv_path_LDCXX+set}"; then
9554  lt_cv_path_LD=$lt_cv_path_LDCXX
9555else
9556  unset lt_cv_path_LD
9557fi
9558test -z "${LDCXX+set}" || LD=$LDCXX
9559CC=${CXX-"c++"}
9560compiler=$CC
9561compiler_CXX=$CC
9562cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9563
9564# We don't want -fno-exception wen compiling C++ code, so set the
9565# no_builtin_flag separately
9566if test "$GXX" = yes; then
9567  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9568else
9569  lt_prog_compiler_no_builtin_flag_CXX=
9570fi
9571
9572if test "$GXX" = yes; then
9573  # Set up default GNU C++ configuration
9574
9575
9576# Check whether --with-gnu-ld or --without-gnu-ld was given.
9577if test "${with_gnu_ld+set}" = set; then
9578  withval="$with_gnu_ld"
9579  test "$withval" = no || with_gnu_ld=yes
9580else
9581  with_gnu_ld=no
9582fi;
9583ac_prog=ld
9584if test "$GCC" = yes; then
9585  # Check if gcc -print-prog-name=ld gives a path.
9586  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9587echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9588  case $host in
9589  *-*-mingw*)
9590    # gcc leaves a trailing carriage return which upsets mingw
9591    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9592  *)
9593    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9594  esac
9595  case $ac_prog in
9596    # Accept absolute paths.
9597    [\\/]* | ?:[\\/]*)
9598      re_direlt='/[^/][^/]*/\.\./'
9599      # Canonicalize the pathname of ld
9600      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9601      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9602	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9603      done
9604      test -z "$LD" && LD="$ac_prog"
9605      ;;
9606  "")
9607    # If it fails, then pretend we aren't using GCC.
9608    ac_prog=ld
9609    ;;
9610  *)
9611    # If it is relative, then search for the first ld in PATH.
9612    with_gnu_ld=unknown
9613    ;;
9614  esac
9615elif test "$with_gnu_ld" = yes; then
9616  echo "$as_me:$LINENO: checking for GNU ld" >&5
9617echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9618else
9619  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9620echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9621fi
9622if test "${lt_cv_path_LD+set}" = set; then
9623  echo $ECHO_N "(cached) $ECHO_C" >&6
9624else
9625  if test -z "$LD"; then
9626  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9627  for ac_dir in $PATH; do
9628    IFS="$lt_save_ifs"
9629    test -z "$ac_dir" && ac_dir=.
9630    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9631      lt_cv_path_LD="$ac_dir/$ac_prog"
9632      # Check to see if the program is GNU ld.  I'd rather use --version,
9633      # but apparently some GNU ld's only accept -v.
9634      # Break only if it was the GNU/non-GNU ld that we prefer.
9635      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9636      *GNU* | *'with BFD'*)
9637	test "$with_gnu_ld" != no && break
9638	;;
9639      *)
9640	test "$with_gnu_ld" != yes && break
9641	;;
9642      esac
9643    fi
9644  done
9645  IFS="$lt_save_ifs"
9646else
9647  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9648fi
9649fi
9650
9651LD="$lt_cv_path_LD"
9652if test -n "$LD"; then
9653  echo "$as_me:$LINENO: result: $LD" >&5
9654echo "${ECHO_T}$LD" >&6
9655else
9656  echo "$as_me:$LINENO: result: no" >&5
9657echo "${ECHO_T}no" >&6
9658fi
9659test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9660echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9661   { (exit 1); exit 1; }; }
9662echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9663echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9664if test "${lt_cv_prog_gnu_ld+set}" = set; then
9665  echo $ECHO_N "(cached) $ECHO_C" >&6
9666else
9667  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9668case `$LD -v 2>&1 </dev/null` in
9669*GNU* | *'with BFD'*)
9670  lt_cv_prog_gnu_ld=yes
9671  ;;
9672*)
9673  lt_cv_prog_gnu_ld=no
9674  ;;
9675esac
9676fi
9677echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9678echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9679with_gnu_ld=$lt_cv_prog_gnu_ld
9680
9681
9682
9683  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9684  # archiving commands below assume that GNU ld is being used.
9685  if test "$with_gnu_ld" = yes; then
9686    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9687    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9688
9689    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9690    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9691
9692    # If archive_cmds runs LD, not CC, wlarc should be empty
9693    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9694    #     investigate it a little bit more. (MM)
9695    wlarc='${wl}'
9696
9697    # ancient GNU ld didn't support --whole-archive et. al.
9698    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9699	grep 'no-whole-archive' > /dev/null; then
9700      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9701    else
9702      whole_archive_flag_spec_CXX=
9703    fi
9704  else
9705    with_gnu_ld=no
9706    wlarc=
9707
9708    # A generic and very simple default shared library creation
9709    # command for GNU C++ for the case where it uses the native
9710    # linker, instead of GNU ld.  If possible, this setting should
9711    # overridden to take advantage of the native linker features on
9712    # the platform it is being used on.
9713    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9714  fi
9715
9716  # Commands to make compiler produce verbose output that lists
9717  # what "hidden" libraries, object files and flags are used when
9718  # linking a shared library.
9719  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9720
9721else
9722  GXX=no
9723  with_gnu_ld=no
9724  wlarc=
9725fi
9726
9727# PORTME: fill in a description of your system's C++ link characteristics
9728echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9729echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9730ld_shlibs_CXX=yes
9731case $host_os in
9732  aix3*)
9733    # FIXME: insert proper C++ library support
9734    ld_shlibs_CXX=no
9735    ;;
9736  aix4* | aix5*)
9737    if test "$host_cpu" = ia64; then
9738      # On IA64, the linker does run time linking by default, so we don't
9739      # have to do anything special.
9740      aix_use_runtimelinking=no
9741      exp_sym_flag='-Bexport'
9742      no_entry_flag=""
9743    else
9744      aix_use_runtimelinking=no
9745
9746      # Test if we are trying to use run time linking or normal
9747      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9748      # need to do runtime linking.
9749      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9750	for ld_flag in $LDFLAGS; do
9751	  case $ld_flag in
9752	  *-brtl*)
9753	    aix_use_runtimelinking=yes
9754	    break
9755	    ;;
9756	  esac
9757	done
9758      esac
9759
9760      exp_sym_flag='-bexport'
9761      no_entry_flag='-bnoentry'
9762    fi
9763
9764    # When large executables or shared objects are built, AIX ld can
9765    # have problems creating the table of contents.  If linking a library
9766    # or program results in "error TOC overflow" add -mminimal-toc to
9767    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9768    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9769
9770    archive_cmds_CXX=''
9771    hardcode_direct_CXX=yes
9772    hardcode_libdir_separator_CXX=':'
9773    link_all_deplibs_CXX=yes
9774
9775    if test "$GXX" = yes; then
9776      case $host_os in aix4.012|aix4.012.*)
9777      # We only want to do this on AIX 4.2 and lower, the check
9778      # below for broken collect2 doesn't work under 4.3+
9779	collect2name=`${CC} -print-prog-name=collect2`
9780	if test -f "$collect2name" && \
9781	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9782	then
9783	  # We have reworked collect2
9784	  hardcode_direct_CXX=yes
9785	else
9786	  # We have old collect2
9787	  hardcode_direct_CXX=unsupported
9788	  # It fails to find uninstalled libraries when the uninstalled
9789	  # path is not listed in the libpath.  Setting hardcode_minus_L
9790	  # to unsupported forces relinking
9791	  hardcode_minus_L_CXX=yes
9792	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9793	  hardcode_libdir_separator_CXX=
9794	fi
9795      esac
9796      shared_flag='-shared'
9797    else
9798      # not using gcc
9799      if test "$host_cpu" = ia64; then
9800	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9801	# chokes on -Wl,-G. The following line is correct:
9802	shared_flag='-G'
9803      else
9804	if test "$aix_use_runtimelinking" = yes; then
9805	  shared_flag='${wl}-G'
9806	else
9807	  shared_flag='${wl}-bM:SRE'
9808	fi
9809      fi
9810    fi
9811
9812    # It seems that -bexpall does not export symbols beginning with
9813    # underscore (_), so it is better to generate a list of symbols to export.
9814    always_export_symbols_CXX=yes
9815    if test "$aix_use_runtimelinking" = yes; then
9816      # Warning - without using the other runtime loading flags (-brtl),
9817      # -berok will link without error, but may produce a broken library.
9818      allow_undefined_flag_CXX='-berok'
9819      # Determine the default libpath from the value encoded in an empty executable.
9820      cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h.  */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h.  */
9826
9827int
9828main ()
9829{
9830
9831  ;
9832  return 0;
9833}
9834_ACEOF
9835rm -f conftest.$ac_objext conftest$ac_exeext
9836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9837  (eval $ac_link) 2>conftest.er1
9838  ac_status=$?
9839  grep -v '^ *+' conftest.er1 >conftest.err
9840  rm -f conftest.er1
9841  cat conftest.err >&5
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); } &&
9844	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
9845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846  (eval $ac_try) 2>&5
9847  ac_status=$?
9848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849  (exit $ac_status); }; } &&
9850	 { ac_try='test -s conftest$ac_exeext'
9851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852  (eval $ac_try) 2>&5
9853  ac_status=$?
9854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855  (exit $ac_status); }; }; then
9856
9857aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9858}'`
9859# Check for a 64-bit object if we didn't find anything.
9860if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9861}'`; fi
9862else
9863  echo "$as_me: failed program was:" >&5
9864sed 's/^/| /' conftest.$ac_ext >&5
9865
9866fi
9867rm -f conftest.err conftest.$ac_objext \
9868      conftest$ac_exeext conftest.$ac_ext
9869if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9870
9871      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9872
9873      archive_expsym_cmds_CXX="\$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"
9874     else
9875      if test "$host_cpu" = ia64; then
9876	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9877	allow_undefined_flag_CXX="-z nodefs"
9878	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9879      else
9880	# Determine the default libpath from the value encoded in an empty executable.
9881	cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h.  */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h.  */
9887
9888int
9889main ()
9890{
9891
9892  ;
9893  return 0;
9894}
9895_ACEOF
9896rm -f conftest.$ac_objext conftest$ac_exeext
9897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898  (eval $ac_link) 2>conftest.er1
9899  ac_status=$?
9900  grep -v '^ *+' conftest.er1 >conftest.err
9901  rm -f conftest.er1
9902  cat conftest.err >&5
9903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904  (exit $ac_status); } &&
9905	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
9906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907  (eval $ac_try) 2>&5
9908  ac_status=$?
9909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910  (exit $ac_status); }; } &&
9911	 { ac_try='test -s conftest$ac_exeext'
9912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913  (eval $ac_try) 2>&5
9914  ac_status=$?
9915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916  (exit $ac_status); }; }; then
9917
9918aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9919}'`
9920# Check for a 64-bit object if we didn't find anything.
9921if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9922}'`; fi
9923else
9924  echo "$as_me: failed program was:" >&5
9925sed 's/^/| /' conftest.$ac_ext >&5
9926
9927fi
9928rm -f conftest.err conftest.$ac_objext \
9929      conftest$ac_exeext conftest.$ac_ext
9930if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9931
9932	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9933	# Warning - without using the other run time loading flags,
9934	# -berok will link without error, but may produce a broken library.
9935	no_undefined_flag_CXX=' ${wl}-bernotok'
9936	allow_undefined_flag_CXX=' ${wl}-berok'
9937	# -bexpall does not export symbols beginning with underscore (_)
9938	always_export_symbols_CXX=yes
9939	# Exported symbols can be pulled into shared objects from archives
9940	whole_archive_flag_spec_CXX=' '
9941	archive_cmds_need_lc_CXX=yes
9942	# This is similar to how AIX traditionally builds it's shared libraries.
9943	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9944      fi
9945    fi
9946    ;;
9947  chorus*)
9948    case $cc_basename in
9949      *)
9950	# FIXME: insert proper C++ library support
9951	ld_shlibs_CXX=no
9952	;;
9953    esac
9954    ;;
9955
9956  cygwin* | mingw* | pw32*)
9957    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9958    # as there is no search path for DLLs.
9959    hardcode_libdir_flag_spec_CXX='-L$libdir'
9960    allow_undefined_flag_CXX=unsupported
9961    always_export_symbols_CXX=no
9962    enable_shared_with_static_runtimes_CXX=yes
9963
9964    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9965      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9966      # If the export-symbols file already is a .def file (1st line
9967      # is EXPORTS), use it as is; otherwise, prepend...
9968      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9969	cp $export_symbols $output_objdir/$soname.def;
9970      else
9971	echo EXPORTS > $output_objdir/$soname.def;
9972	cat $export_symbols >> $output_objdir/$soname.def;
9973      fi~
9974      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9975    else
9976      ld_shlibs_CXX=no
9977    fi
9978  ;;
9979
9980  darwin* | rhapsody*)
9981  if test "$GXX" = yes; then
9982    archive_cmds_need_lc_CXX=no
9983    case "$host_os" in
9984    rhapsody* | darwin1.[012])
9985      allow_undefined_flag_CXX='-undefined suppress'
9986      ;;
9987    *) # Darwin 1.3 on
9988      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9989      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9990      else
9991        case ${MACOSX_DEPLOYMENT_TARGET} in
9992          10.[012])
9993            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9994            ;;
9995          10.*)
9996            allow_undefined_flag_CXX='-undefined dynamic_lookup'
9997            ;;
9998        esac
9999      fi
10000      ;;
10001    esac
10002    lt_int_apple_cc_single_mod=no
10003    output_verbose_link_cmd='echo'
10004    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10005      lt_int_apple_cc_single_mod=yes
10006    fi
10007    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10008      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10009    else
10010      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10011    fi
10012    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10013
10014    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10015    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10016      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10017    else
10018      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10019    fi
10020    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10021    hardcode_direct_CXX=no
10022    hardcode_automatic_CXX=yes
10023    hardcode_shlibpath_var_CXX=unsupported
10024    whole_archive_flag_spec_CXX='-all_load $convenience'
10025    link_all_deplibs_CXX=yes
10026  else
10027    ld_shlibs_CXX=no
10028  fi
10029    ;;
10030
10031  dgux*)
10032    case $cc_basename in
10033      ec++)
10034	# FIXME: insert proper C++ library support
10035	ld_shlibs_CXX=no
10036	;;
10037      ghcx)
10038	# Green Hills C++ Compiler
10039	# FIXME: insert proper C++ library support
10040	ld_shlibs_CXX=no
10041	;;
10042      *)
10043	# FIXME: insert proper C++ library support
10044	ld_shlibs_CXX=no
10045	;;
10046    esac
10047    ;;
10048  freebsd12*)
10049    # C++ shared libraries reported to be fairly broken before switch to ELF
10050    ld_shlibs_CXX=no
10051    ;;
10052  freebsd-elf*)
10053    archive_cmds_need_lc_CXX=no
10054    ;;
10055  freebsd* | kfreebsd*-gnu)
10056    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10057    # conventions
10058    ld_shlibs_CXX=yes
10059    ;;
10060  gnu*)
10061    ;;
10062  hpux9*)
10063    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10064    hardcode_libdir_separator_CXX=:
10065    export_dynamic_flag_spec_CXX='${wl}-E'
10066    hardcode_direct_CXX=yes
10067    hardcode_minus_L_CXX=yes # Not in the search PATH,
10068				# but as the default
10069				# location of the library.
10070
10071    case $cc_basename in
10072    CC)
10073      # FIXME: insert proper C++ library support
10074      ld_shlibs_CXX=no
10075      ;;
10076    aCC)
10077      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10078      # Commands to make compiler produce verbose output that lists
10079      # what "hidden" libraries, object files and flags are used when
10080      # linking a shared library.
10081      #
10082      # There doesn't appear to be a way to prevent this compiler from
10083      # explicitly linking system object files so we need to strip them
10084      # from the output so that they don't get included in the library
10085      # dependencies.
10086      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10087      ;;
10088    *)
10089      if test "$GXX" = yes; then
10090        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10091      else
10092        # FIXME: insert proper C++ library support
10093        ld_shlibs_CXX=no
10094      fi
10095      ;;
10096    esac
10097    ;;
10098  hpux10*|hpux11*)
10099    if test $with_gnu_ld = no; then
10100      case "$host_cpu" in
10101      hppa*64*)
10102	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10103	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10104	hardcode_libdir_separator_CXX=:
10105        ;;
10106      ia64*)
10107	hardcode_libdir_flag_spec_CXX='-L$libdir'
10108        ;;
10109      *)
10110	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10111	hardcode_libdir_separator_CXX=:
10112	export_dynamic_flag_spec_CXX='${wl}-E'
10113        ;;
10114      esac
10115    fi
10116    case "$host_cpu" in
10117    hppa*64*)
10118      hardcode_direct_CXX=no
10119      hardcode_shlibpath_var_CXX=no
10120      ;;
10121    ia64*)
10122      hardcode_direct_CXX=no
10123      hardcode_shlibpath_var_CXX=no
10124      hardcode_minus_L_CXX=yes # Not in the search PATH,
10125					      # but as the default
10126					      # location of the library.
10127      ;;
10128    *)
10129      hardcode_direct_CXX=yes
10130      hardcode_minus_L_CXX=yes # Not in the search PATH,
10131					      # but as the default
10132					      # location of the library.
10133      ;;
10134    esac
10135
10136    case $cc_basename in
10137      CC)
10138	# FIXME: insert proper C++ library support
10139	ld_shlibs_CXX=no
10140	;;
10141      aCC)
10142	case "$host_cpu" in
10143	hppa*64*|ia64*)
10144	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10145	  ;;
10146	*)
10147	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10148	  ;;
10149	esac
10150	# Commands to make compiler produce verbose output that lists
10151	# what "hidden" libraries, object files and flags are used when
10152	# linking a shared library.
10153	#
10154	# There doesn't appear to be a way to prevent this compiler from
10155	# explicitly linking system object files so we need to strip them
10156	# from the output so that they don't get included in the library
10157	# dependencies.
10158	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10159	;;
10160      *)
10161	if test "$GXX" = yes; then
10162	  if test $with_gnu_ld = no; then
10163	    case "$host_cpu" in
10164	    ia64*|hppa*64*)
10165	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10166	      ;;
10167	    *)
10168	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10169	      ;;
10170	    esac
10171	  fi
10172	else
10173	  # FIXME: insert proper C++ library support
10174	  ld_shlibs_CXX=no
10175	fi
10176	;;
10177    esac
10178    ;;
10179  irix5* | irix6*)
10180    case $cc_basename in
10181      CC)
10182	# SGI C++
10183	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10184
10185	# Archives containing C++ object files must be created using
10186	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10187	# necessary to make sure instantiated templates are included
10188	# in the archive.
10189	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10190	;;
10191      *)
10192	if test "$GXX" = yes; then
10193	  if test "$with_gnu_ld" = no; then
10194	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10195	  else
10196	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10197	  fi
10198	fi
10199	link_all_deplibs_CXX=yes
10200	;;
10201    esac
10202    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10203    hardcode_libdir_separator_CXX=:
10204    ;;
10205  linux*)
10206    case $cc_basename in
10207      KCC)
10208	# Kuck and Associates, Inc. (KAI) C++ Compiler
10209
10210	# KCC will only create a shared library if the output file
10211	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10212	# to its proper name (with version) after linking.
10213	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10214	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10215	# Commands to make compiler produce verbose output that lists
10216	# what "hidden" libraries, object files and flags are used when
10217	# linking a shared library.
10218	#
10219	# There doesn't appear to be a way to prevent this compiler from
10220	# explicitly linking system object files so we need to strip them
10221	# from the output so that they don't get included in the library
10222	# dependencies.
10223	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10224
10225	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10226	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10227
10228	# Archives containing C++ object files must be created using
10229	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10230	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10231	;;
10232      icpc)
10233	# Intel C++
10234	with_gnu_ld=yes
10235	archive_cmds_need_lc_CXX=no
10236	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10237	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10238	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10239	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10240	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10241	;;
10242      cxx)
10243	# Compaq C++
10244	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10246
10247	runpath_var=LD_RUN_PATH
10248	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10249	hardcode_libdir_separator_CXX=:
10250
10251	# Commands to make compiler produce verbose output that lists
10252	# what "hidden" libraries, object files and flags are used when
10253	# linking a shared library.
10254	#
10255	# There doesn't appear to be a way to prevent this compiler from
10256	# explicitly linking system object files so we need to strip them
10257	# from the output so that they don't get included in the library
10258	# dependencies.
10259	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10260	;;
10261    esac
10262    ;;
10263  lynxos*)
10264    # FIXME: insert proper C++ library support
10265    ld_shlibs_CXX=no
10266    ;;
10267  m88k*)
10268    # FIXME: insert proper C++ library support
10269    ld_shlibs_CXX=no
10270    ;;
10271  mvs*)
10272    case $cc_basename in
10273      cxx)
10274	# FIXME: insert proper C++ library support
10275	ld_shlibs_CXX=no
10276	;;
10277      *)
10278	# FIXME: insert proper C++ library support
10279	ld_shlibs_CXX=no
10280	;;
10281    esac
10282    ;;
10283  netbsd*)
10284    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10285      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10286      wlarc=
10287      hardcode_libdir_flag_spec_CXX='-R$libdir'
10288      hardcode_direct_CXX=yes
10289      hardcode_shlibpath_var_CXX=no
10290    fi
10291    # Workaround some broken pre-1.5 toolchains
10292    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10293    ;;
10294  osf3*)
10295    case $cc_basename in
10296      KCC)
10297	# Kuck and Associates, Inc. (KAI) C++ Compiler
10298
10299	# KCC will only create a shared library if the output file
10300	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10301	# to its proper name (with version) after linking.
10302	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10303
10304	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10305	hardcode_libdir_separator_CXX=:
10306
10307	# Archives containing C++ object files must be created using
10308	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10309	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10310
10311	;;
10312      RCC)
10313	# Rational C++ 2.4.1
10314	# FIXME: insert proper C++ library support
10315	ld_shlibs_CXX=no
10316	;;
10317      cxx)
10318	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10319	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10320
10321	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10322	hardcode_libdir_separator_CXX=:
10323
10324	# Commands to make compiler produce verbose output that lists
10325	# what "hidden" libraries, object files and flags are used when
10326	# linking a shared library.
10327	#
10328	# There doesn't appear to be a way to prevent this compiler from
10329	# explicitly linking system object files so we need to strip them
10330	# from the output so that they don't get included in the library
10331	# dependencies.
10332	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10333	;;
10334      *)
10335	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10336	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10337	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10338
10339	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10340	  hardcode_libdir_separator_CXX=:
10341
10342	  # Commands to make compiler produce verbose output that lists
10343	  # what "hidden" libraries, object files and flags are used when
10344	  # linking a shared library.
10345	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10346
10347	else
10348	  # FIXME: insert proper C++ library support
10349	  ld_shlibs_CXX=no
10350	fi
10351	;;
10352    esac
10353    ;;
10354  osf4* | osf5*)
10355    case $cc_basename in
10356      KCC)
10357	# Kuck and Associates, Inc. (KAI) C++ Compiler
10358
10359	# KCC will only create a shared library if the output file
10360	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10361	# to its proper name (with version) after linking.
10362	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10363
10364	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10365	hardcode_libdir_separator_CXX=:
10366
10367	# Archives containing C++ object files must be created using
10368	# the KAI C++ compiler.
10369	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10370	;;
10371      RCC)
10372	# Rational C++ 2.4.1
10373	# FIXME: insert proper C++ library support
10374	ld_shlibs_CXX=no
10375	;;
10376      cxx)
10377	allow_undefined_flag_CXX=' -expect_unresolved \*'
10378	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10379	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10380	  echo "-hidden">> $lib.exp~
10381	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
10382	  $rm $lib.exp'
10383
10384	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10385	hardcode_libdir_separator_CXX=:
10386
10387	# Commands to make compiler produce verbose output that lists
10388	# what "hidden" libraries, object files and flags are used when
10389	# linking a shared library.
10390	#
10391	# There doesn't appear to be a way to prevent this compiler from
10392	# explicitly linking system object files so we need to strip them
10393	# from the output so that they don't get included in the library
10394	# dependencies.
10395	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10396	;;
10397      *)
10398	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10399	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10400	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10401
10402	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10403	  hardcode_libdir_separator_CXX=:
10404
10405	  # Commands to make compiler produce verbose output that lists
10406	  # what "hidden" libraries, object files and flags are used when
10407	  # linking a shared library.
10408	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10409
10410	else
10411	  # FIXME: insert proper C++ library support
10412	  ld_shlibs_CXX=no
10413	fi
10414	;;
10415    esac
10416    ;;
10417  psos*)
10418    # FIXME: insert proper C++ library support
10419    ld_shlibs_CXX=no
10420    ;;
10421  sco*)
10422    archive_cmds_need_lc_CXX=no
10423    case $cc_basename in
10424      CC)
10425	# FIXME: insert proper C++ library support
10426	ld_shlibs_CXX=no
10427	;;
10428      *)
10429	# FIXME: insert proper C++ library support
10430	ld_shlibs_CXX=no
10431	;;
10432    esac
10433    ;;
10434  sunos4*)
10435    case $cc_basename in
10436      CC)
10437	# Sun C++ 4.x
10438	# FIXME: insert proper C++ library support
10439	ld_shlibs_CXX=no
10440	;;
10441      lcc)
10442	# Lucid
10443	# FIXME: insert proper C++ library support
10444	ld_shlibs_CXX=no
10445	;;
10446      *)
10447	# FIXME: insert proper C++ library support
10448	ld_shlibs_CXX=no
10449	;;
10450    esac
10451    ;;
10452  solaris*)
10453    case $cc_basename in
10454      CC)
10455	# Sun C++ 4.2, 5.x and Centerline C++
10456	no_undefined_flag_CXX=' -zdefs'
10457	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10458	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10459	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10460
10461	hardcode_libdir_flag_spec_CXX='-R$libdir'
10462	hardcode_shlibpath_var_CXX=no
10463	case $host_os in
10464	  solaris2.0-5 | solaris2.0-5.*) ;;
10465	  *)
10466	    # The C++ compiler is used as linker so we must use $wl
10467	    # flag to pass the commands to the underlying system
10468	    # linker.
10469	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10470	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10471	    ;;
10472	esac
10473	link_all_deplibs_CXX=yes
10474
10475	# Commands to make compiler produce verbose output that lists
10476	# what "hidden" libraries, object files and flags are used when
10477	# linking a shared library.
10478	#
10479	# There doesn't appear to be a way to prevent this compiler from
10480	# explicitly linking system object files so we need to strip them
10481	# from the output so that they don't get included in the library
10482	# dependencies.
10483	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10484
10485	# Archives containing C++ object files must be created using
10486	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10487	# necessary to make sure instantiated templates are included
10488	# in the archive.
10489	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10490	;;
10491      gcx)
10492	# Green Hills C++ Compiler
10493	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10494
10495	# The C++ compiler must be used to create the archive.
10496	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10497	;;
10498      *)
10499	# GNU C++ compiler with Solaris linker
10500	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10501	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10502	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10503	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10504	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10505		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10506
10507	    # Commands to make compiler produce verbose output that lists
10508	    # what "hidden" libraries, object files and flags are used when
10509	    # linking a shared library.
10510	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10511	  else
10512	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10513	    # platform.
10514	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10515	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10516		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10517
10518	    # Commands to make compiler produce verbose output that lists
10519	    # what "hidden" libraries, object files and flags are used when
10520	    # linking a shared library.
10521	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10522	  fi
10523
10524	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10525	fi
10526	;;
10527    esac
10528    ;;
10529  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10530    archive_cmds_need_lc_CXX=no
10531    ;;
10532  tandem*)
10533    case $cc_basename in
10534      NCC)
10535	# NonStop-UX NCC 3.20
10536	# FIXME: insert proper C++ library support
10537	ld_shlibs_CXX=no
10538	;;
10539      *)
10540	# FIXME: insert proper C++ library support
10541	ld_shlibs_CXX=no
10542	;;
10543    esac
10544    ;;
10545  vxworks*)
10546    # FIXME: insert proper C++ library support
10547    ld_shlibs_CXX=no
10548    ;;
10549  *)
10550    # FIXME: insert proper C++ library support
10551    ld_shlibs_CXX=no
10552    ;;
10553esac
10554echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10555echo "${ECHO_T}$ld_shlibs_CXX" >&6
10556test "$ld_shlibs_CXX" = no && can_build_shared=no
10557
10558GCC_CXX="$GXX"
10559LD_CXX="$LD"
10560
10561
10562cat > conftest.$ac_ext <<EOF
10563class Foo
10564{
10565public:
10566  Foo (void) { a = 0; }
10567private:
10568  int a;
10569};
10570EOF
10571
10572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573  (eval $ac_compile) 2>&5
10574  ac_status=$?
10575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576  (exit $ac_status); }; then
10577  # Parse the compiler output and extract the necessary
10578  # objects, libraries and library flags.
10579
10580  # Sentinel used to keep track of whether or not we are before
10581  # the conftest object file.
10582  pre_test_object_deps_done=no
10583
10584  # The `*' in the case matches for architectures that use `case' in
10585  # $output_verbose_cmd can trigger glob expansion during the loop
10586  # eval without this substitution.
10587  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10588
10589  for p in `eval $output_verbose_link_cmd`; do
10590    case $p in
10591
10592    -L* | -R* | -l*)
10593       # Some compilers place space between "-{L,R}" and the path.
10594       # Remove the space.
10595       if test $p = "-L" \
10596	  || test $p = "-R"; then
10597	 prev=$p
10598	 continue
10599       else
10600	 prev=
10601       fi
10602
10603       if test "$pre_test_object_deps_done" = no; then
10604	 case $p in
10605	 -L* | -R*)
10606	   # Internal compiler library paths should come after those
10607	   # provided the user.  The postdeps already come after the
10608	   # user supplied libs so there is no need to process them.
10609	   if test -z "$compiler_lib_search_path_CXX"; then
10610	     compiler_lib_search_path_CXX="${prev}${p}"
10611	   else
10612	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10613	   fi
10614	   ;;
10615	 # The "-l" case would never come before the object being
10616	 # linked, so don't bother handling this case.
10617	 esac
10618       else
10619	 if test -z "$postdeps_CXX"; then
10620	   postdeps_CXX="${prev}${p}"
10621	 else
10622	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10623	 fi
10624       fi
10625       ;;
10626
10627    *.$objext)
10628       # This assumes that the test object file only shows up
10629       # once in the compiler output.
10630       if test "$p" = "conftest.$objext"; then
10631	 pre_test_object_deps_done=yes
10632	 continue
10633       fi
10634
10635       if test "$pre_test_object_deps_done" = no; then
10636	 if test -z "$predep_objects_CXX"; then
10637	   predep_objects_CXX="$p"
10638	 else
10639	   predep_objects_CXX="$predep_objects_CXX $p"
10640	 fi
10641       else
10642	 if test -z "$postdep_objects_CXX"; then
10643	   postdep_objects_CXX="$p"
10644	 else
10645	   postdep_objects_CXX="$postdep_objects_CXX $p"
10646	 fi
10647       fi
10648       ;;
10649
10650    *) ;; # Ignore the rest.
10651
10652    esac
10653  done
10654
10655  # Clean up.
10656  rm -f a.out a.exe
10657else
10658  echo "libtool.m4: error: problem compiling CXX test program"
10659fi
10660
10661$rm -f confest.$objext
10662
10663case " $postdeps_CXX " in
10664*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10665esac
10666
10667lt_prog_compiler_wl_CXX=
10668lt_prog_compiler_pic_CXX=
10669lt_prog_compiler_static_CXX=
10670
10671echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10672echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10673
10674  # C++ specific cases for pic, static, wl, etc.
10675  if test "$GXX" = yes; then
10676    lt_prog_compiler_wl_CXX='-Wl,'
10677    lt_prog_compiler_static_CXX='-static'
10678
10679    case $host_os in
10680    aix*)
10681      # All AIX code is PIC.
10682      if test "$host_cpu" = ia64; then
10683	# AIX 5 now supports IA64 processor
10684	lt_prog_compiler_static_CXX='-Bstatic'
10685      fi
10686      ;;
10687    amigaos*)
10688      # FIXME: we need at least 68020 code to build shared libraries, but
10689      # adding the `-m68020' flag to GCC prevents building anything better,
10690      # like `-m68040'.
10691      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10692      ;;
10693    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10694      # PIC is the default for these OSes.
10695      ;;
10696    mingw* | os2* | pw32*)
10697      # This hack is so that the source file can tell whether it is being
10698      # built for inclusion in a dll (and should export symbols for example).
10699      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10700      ;;
10701    darwin* | rhapsody*)
10702      # PIC is the default on this platform
10703      # Common symbols not allowed in MH_DYLIB files
10704      lt_prog_compiler_pic_CXX='-fno-common'
10705      ;;
10706    *djgpp*)
10707      # DJGPP does not support shared libraries at all
10708      lt_prog_compiler_pic_CXX=
10709      ;;
10710    sysv4*MP*)
10711      if test -d /usr/nec; then
10712	lt_prog_compiler_pic_CXX=-Kconform_pic
10713      fi
10714      ;;
10715    hpux*)
10716      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10717      # not for PA HP-UX.
10718      case "$host_cpu" in
10719      hppa*64*|ia64*)
10720	;;
10721      *)
10722	lt_prog_compiler_pic_CXX='-fPIC'
10723	;;
10724      esac
10725      ;;
10726    *)
10727      lt_prog_compiler_pic_CXX='-fPIC'
10728      ;;
10729    esac
10730  else
10731    case $host_os in
10732      aix4* | aix5*)
10733	# All AIX code is PIC.
10734	if test "$host_cpu" = ia64; then
10735	  # AIX 5 now supports IA64 processor
10736	  lt_prog_compiler_static_CXX='-Bstatic'
10737	else
10738	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10739	fi
10740	;;
10741      chorus*)
10742	case $cc_basename in
10743	cxch68)
10744	  # Green Hills C++ Compiler
10745	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10746	  ;;
10747	esac
10748	;;
10749      dgux*)
10750	case $cc_basename in
10751	  ec++)
10752	    lt_prog_compiler_pic_CXX='-KPIC'
10753	    ;;
10754	  ghcx)
10755	    # Green Hills C++ Compiler
10756	    lt_prog_compiler_pic_CXX='-pic'
10757	    ;;
10758	  *)
10759	    ;;
10760	esac
10761	;;
10762      freebsd* | kfreebsd*-gnu)
10763	# FreeBSD uses GNU C++
10764	;;
10765      hpux9* | hpux10* | hpux11*)
10766	case $cc_basename in
10767	  CC)
10768	    lt_prog_compiler_wl_CXX='-Wl,'
10769	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10770	    if test "$host_cpu" != ia64; then
10771	      lt_prog_compiler_pic_CXX='+Z'
10772	    fi
10773	    ;;
10774	  aCC)
10775	    lt_prog_compiler_wl_CXX='-Wl,'
10776	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10777	    case "$host_cpu" in
10778	    hppa*64*|ia64*)
10779	      # +Z the default
10780	      ;;
10781	    *)
10782	      lt_prog_compiler_pic_CXX='+Z'
10783	      ;;
10784	    esac
10785	    ;;
10786	  *)
10787	    ;;
10788	esac
10789	;;
10790      irix5* | irix6* | nonstopux*)
10791	case $cc_basename in
10792	  CC)
10793	    lt_prog_compiler_wl_CXX='-Wl,'
10794	    lt_prog_compiler_static_CXX='-non_shared'
10795	    # CC pic flag -KPIC is the default.
10796	    ;;
10797	  *)
10798	    ;;
10799	esac
10800	;;
10801      linux*)
10802	case $cc_basename in
10803	  KCC)
10804	    # KAI C++ Compiler
10805	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10806	    lt_prog_compiler_pic_CXX='-fPIC'
10807	    ;;
10808	  icpc)
10809	    # Intel C++
10810	    lt_prog_compiler_wl_CXX='-Wl,'
10811	    lt_prog_compiler_pic_CXX='-KPIC'
10812	    lt_prog_compiler_static_CXX='-static'
10813	    ;;
10814	  cxx)
10815	    # Compaq C++
10816	    # Make sure the PIC flag is empty.  It appears that all Alpha
10817	    # Linux and Compaq Tru64 Unix objects are PIC.
10818	    lt_prog_compiler_pic_CXX=
10819	    lt_prog_compiler_static_CXX='-non_shared'
10820	    ;;
10821	  *)
10822	    ;;
10823	esac
10824	;;
10825      lynxos*)
10826	;;
10827      m88k*)
10828	;;
10829      mvs*)
10830	case $cc_basename in
10831	  cxx)
10832	    lt_prog_compiler_pic_CXX='-W c,exportall'
10833	    ;;
10834	  *)
10835	    ;;
10836	esac
10837	;;
10838      netbsd*)
10839	;;
10840      osf3* | osf4* | osf5*)
10841	case $cc_basename in
10842	  KCC)
10843	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10844	    ;;
10845	  RCC)
10846	    # Rational C++ 2.4.1
10847	    lt_prog_compiler_pic_CXX='-pic'
10848	    ;;
10849	  cxx)
10850	    # Digital/Compaq C++
10851	    lt_prog_compiler_wl_CXX='-Wl,'
10852	    # Make sure the PIC flag is empty.  It appears that all Alpha
10853	    # Linux and Compaq Tru64 Unix objects are PIC.
10854	    lt_prog_compiler_pic_CXX=
10855	    lt_prog_compiler_static_CXX='-non_shared'
10856	    ;;
10857	  *)
10858	    ;;
10859	esac
10860	;;
10861      psos*)
10862	;;
10863      sco*)
10864	case $cc_basename in
10865	  CC)
10866	    lt_prog_compiler_pic_CXX='-fPIC'
10867	    ;;
10868	  *)
10869	    ;;
10870	esac
10871	;;
10872      solaris*)
10873	case $cc_basename in
10874	  CC)
10875	    # Sun C++ 4.2, 5.x and Centerline C++
10876	    lt_prog_compiler_pic_CXX='-KPIC'
10877	    lt_prog_compiler_static_CXX='-Bstatic'
10878	    lt_prog_compiler_wl_CXX='-Qoption ld '
10879	    ;;
10880	  gcx)
10881	    # Green Hills C++ Compiler
10882	    lt_prog_compiler_pic_CXX='-PIC'
10883	    ;;
10884	  *)
10885	    ;;
10886	esac
10887	;;
10888      sunos4*)
10889	case $cc_basename in
10890	  CC)
10891	    # Sun C++ 4.x
10892	    lt_prog_compiler_pic_CXX='-pic'
10893	    lt_prog_compiler_static_CXX='-Bstatic'
10894	    ;;
10895	  lcc)
10896	    # Lucid
10897	    lt_prog_compiler_pic_CXX='-pic'
10898	    ;;
10899	  *)
10900	    ;;
10901	esac
10902	;;
10903      tandem*)
10904	case $cc_basename in
10905	  NCC)
10906	    # NonStop-UX NCC 3.20
10907	    lt_prog_compiler_pic_CXX='-KPIC'
10908	    ;;
10909	  *)
10910	    ;;
10911	esac
10912	;;
10913      unixware*)
10914	;;
10915      vxworks*)
10916	;;
10917      *)
10918	lt_prog_compiler_can_build_shared_CXX=no
10919	;;
10920    esac
10921  fi
10922
10923echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10924echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10925
10926#
10927# Check to make sure the PIC flag actually works.
10928#
10929if test -n "$lt_prog_compiler_pic_CXX"; then
10930
10931echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10932echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10933if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10934  echo $ECHO_N "(cached) $ECHO_C" >&6
10935else
10936  lt_prog_compiler_pic_works_CXX=no
10937  ac_outfile=conftest.$ac_objext
10938   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10939   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10940   # Insert the option either (1) after the last *FLAGS variable, or
10941   # (2) before a word containing "conftest.", or (3) at the end.
10942   # Note that $ac_compile itself does not contain backslashes and begins
10943   # with a dollar sign (not a hyphen), so the echo should work correctly.
10944   # The option is referenced via a variable to avoid confusing sed.
10945   lt_compile=`echo "$ac_compile" | $SED \
10946   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10947   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10948   -e 's:$: $lt_compiler_flag:'`
10949   (eval echo "\"\$as_me:10949: $lt_compile\"" >&5)
10950   (eval "$lt_compile" 2>conftest.err)
10951   ac_status=$?
10952   cat conftest.err >&5
10953   echo "$as_me:10953: \$? = $ac_status" >&5
10954   if (exit $ac_status) && test -s "$ac_outfile"; then
10955     # The compiler can only warn and ignore the option if not recognized
10956     # So say no if there are warnings
10957     if test ! -s conftest.err; then
10958       lt_prog_compiler_pic_works_CXX=yes
10959     fi
10960   fi
10961   $rm conftest*
10962
10963fi
10964echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10965echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10966
10967if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10968    case $lt_prog_compiler_pic_CXX in
10969     "" | " "*) ;;
10970     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10971     esac
10972else
10973    lt_prog_compiler_pic_CXX=
10974     lt_prog_compiler_can_build_shared_CXX=no
10975fi
10976
10977fi
10978case "$host_os" in
10979  # For platforms which do not support PIC, -DPIC is meaningless:
10980  *djgpp*)
10981    lt_prog_compiler_pic_CXX=
10982    ;;
10983  *)
10984    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10985    ;;
10986esac
10987
10988echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10989echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10990if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10991  echo $ECHO_N "(cached) $ECHO_C" >&6
10992else
10993  lt_cv_prog_compiler_c_o_CXX=no
10994   $rm -r conftest 2>/dev/null
10995   mkdir conftest
10996   cd conftest
10997   mkdir out
10998   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10999
11000   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11001   # that will create temporary files in the current directory regardless of
11002   # the output directory.  Thus, making CWD read-only will cause this test
11003   # to fail, enabling locking or at least warning the user not to do parallel
11004   # builds.
11005   chmod -w .
11006
11007   lt_compiler_flag="-o out/conftest2.$ac_objext"
11008   # Insert the option either (1) after the last *FLAGS variable, or
11009   # (2) before a word containing "conftest.", or (3) at the end.
11010   # Note that $ac_compile itself does not contain backslashes and begins
11011   # with a dollar sign (not a hyphen), so the echo should work correctly.
11012   lt_compile=`echo "$ac_compile" | $SED \
11013   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11014   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11015   -e 's:$: $lt_compiler_flag:'`
11016   (eval echo "\"\$as_me:11016: $lt_compile\"" >&5)
11017   (eval "$lt_compile" 2>out/conftest.err)
11018   ac_status=$?
11019   cat out/conftest.err >&5
11020   echo "$as_me:11020: \$? = $ac_status" >&5
11021   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11022   then
11023     # The compiler can only warn and ignore the option if not recognized
11024     # So say no if there are warnings
11025     if test ! -s out/conftest.err; then
11026       lt_cv_prog_compiler_c_o_CXX=yes
11027     fi
11028   fi
11029   chmod u+w .
11030   $rm conftest*
11031   # SGI C++ compiler will create directory out/ii_files/ for
11032   # template instantiation
11033   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11034   $rm out/* && rmdir out
11035   cd ..
11036   rmdir conftest
11037   $rm conftest*
11038
11039fi
11040echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11041echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11042
11043
11044hard_links="nottested"
11045if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11046  # do not overwrite the value of need_locks provided by the user
11047  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11048echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11049  hard_links=yes
11050  $rm conftest*
11051  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11052  touch conftest.a
11053  ln conftest.a conftest.b 2>&5 || hard_links=no
11054  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11055  echo "$as_me:$LINENO: result: $hard_links" >&5
11056echo "${ECHO_T}$hard_links" >&6
11057  if test "$hard_links" = no; then
11058    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11059echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11060    need_locks=warn
11061  fi
11062else
11063  need_locks=no
11064fi
11065
11066echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11067echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11068
11069  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11070  case $host_os in
11071  aix4* | aix5*)
11072    # If we're using GNU nm, then we don't want the "-C" option.
11073    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11074    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11075      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11076    else
11077      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11078    fi
11079    ;;
11080  pw32*)
11081    export_symbols_cmds_CXX="$ltdll_cmds"
11082  ;;
11083  cygwin* | mingw*)
11084    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11085  ;;
11086  *)
11087    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11088  ;;
11089  esac
11090
11091echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11092echo "${ECHO_T}$ld_shlibs_CXX" >&6
11093test "$ld_shlibs_CXX" = no && can_build_shared=no
11094
11095variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11096if test "$GCC" = yes; then
11097  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11098fi
11099
11100#
11101# Do we need to explicitly link libc?
11102#
11103case "x$archive_cmds_need_lc_CXX" in
11104x|xyes)
11105  # Assume -lc should be added
11106  archive_cmds_need_lc_CXX=yes
11107
11108  if test "$enable_shared" = yes && test "$GCC" = yes; then
11109    case $archive_cmds_CXX in
11110    *'~'*)
11111      # FIXME: we may have to deal with multi-command sequences.
11112      ;;
11113    '$CC '*)
11114      # Test whether the compiler implicitly links with -lc since on some
11115      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11116      # to ld, don't add -lc before -lgcc.
11117      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11118echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11119      $rm conftest*
11120      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11121
11122      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123  (eval $ac_compile) 2>&5
11124  ac_status=$?
11125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126  (exit $ac_status); } 2>conftest.err; then
11127        soname=conftest
11128        lib=conftest
11129        libobjs=conftest.$ac_objext
11130        deplibs=
11131        wl=$lt_prog_compiler_wl_CXX
11132        compiler_flags=-v
11133        linker_flags=-v
11134        verstring=
11135        output_objdir=.
11136        libname=conftest
11137        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11138        allow_undefined_flag_CXX=
11139        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11140  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11141  ac_status=$?
11142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143  (exit $ac_status); }
11144        then
11145	  archive_cmds_need_lc_CXX=no
11146        else
11147	  archive_cmds_need_lc_CXX=yes
11148        fi
11149        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11150      else
11151        cat conftest.err 1>&5
11152      fi
11153      $rm conftest*
11154      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11155echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11156      ;;
11157    esac
11158  fi
11159  ;;
11160esac
11161
11162echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11163echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11164library_names_spec=
11165libname_spec='lib$name'
11166soname_spec=
11167shrext=".so"
11168postinstall_cmds=
11169postuninstall_cmds=
11170finish_cmds=
11171finish_eval=
11172shlibpath_var=
11173shlibpath_overrides_runpath=unknown
11174version_type=none
11175dynamic_linker="$host_os ld.so"
11176sys_lib_dlsearch_path_spec="/lib /usr/lib"
11177if test "$GCC" = yes; then
11178  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11179  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11180    # if the path contains ";" then we assume it to be the separator
11181    # otherwise default to the standard path separator (i.e. ":") - it is
11182    # assumed that no part of a normal pathname contains ";" but that should
11183    # okay in the real world where ";" in dirpaths is itself problematic.
11184    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11185  else
11186    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11187  fi
11188else
11189  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11190fi
11191need_lib_prefix=unknown
11192hardcode_into_libs=no
11193
11194# when you set need_version to no, make sure it does not cause -set_version
11195# flags to be left without arguments
11196need_version=unknown
11197
11198case $host_os in
11199aix3*)
11200  version_type=linux
11201  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11202  shlibpath_var=LIBPATH
11203
11204  # AIX 3 has no versioning support, so we append a major version to the name.
11205  soname_spec='${libname}${release}${shared_ext}$major'
11206  ;;
11207
11208aix4* | aix5*)
11209  version_type=linux
11210  need_lib_prefix=no
11211  need_version=no
11212  hardcode_into_libs=yes
11213  if test "$host_cpu" = ia64; then
11214    # AIX 5 supports IA64
11215    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11216    shlibpath_var=LD_LIBRARY_PATH
11217  else
11218    # With GCC up to 2.95.x, collect2 would create an import file
11219    # for dependence libraries.  The import file would start with
11220    # the line `#! .'.  This would cause the generated library to
11221    # depend on `.', always an invalid library.  This was fixed in
11222    # development snapshots of GCC prior to 3.0.
11223    case $host_os in
11224      aix4 | aix4.[01] | aix4.[01].*)
11225      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11226	   echo ' yes '
11227	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11228	:
11229      else
11230	can_build_shared=no
11231      fi
11232      ;;
11233    esac
11234    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11235    # soname into executable. Probably we can add versioning support to
11236    # collect2, so additional links can be useful in future.
11237    if test "$aix_use_runtimelinking" = yes; then
11238      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11239      # instead of lib<name>.a to let people know that these are not
11240      # typical AIX shared libraries.
11241      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11242    else
11243      # We preserve .a as extension for shared libraries through AIX4.2
11244      # and later when we are not doing run time linking.
11245      library_names_spec='${libname}${release}.a $libname.a'
11246      soname_spec='${libname}${release}${shared_ext}$major'
11247    fi
11248    shlibpath_var=LIBPATH
11249  fi
11250  ;;
11251
11252amigaos*)
11253  library_names_spec='$libname.ixlibrary $libname.a'
11254  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11255  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'
11256  ;;
11257
11258beos*)
11259  library_names_spec='${libname}${shared_ext}'
11260  dynamic_linker="$host_os ld.so"
11261  shlibpath_var=LIBRARY_PATH
11262  ;;
11263
11264bsdi4*)
11265  version_type=linux
11266  need_version=no
11267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268  soname_spec='${libname}${release}${shared_ext}$major'
11269  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11270  shlibpath_var=LD_LIBRARY_PATH
11271  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11272  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11273  # the default ld.so.conf also contains /usr/contrib/lib and
11274  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11275  # libtool to hard-code these into programs
11276  ;;
11277
11278cygwin* | mingw* | pw32*)
11279  version_type=windows
11280  shrext=".dll"
11281  need_version=no
11282  need_lib_prefix=no
11283
11284  case $GCC,$host_os in
11285  yes,cygwin* | yes,mingw* | yes,pw32*)
11286    library_names_spec='$libname.dll.a'
11287    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11288    postinstall_cmds='base_file=`basename \${file}`~
11289      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11290      dldir=$destdir/`dirname \$dlpath`~
11291      test -d \$dldir || mkdir -p \$dldir~
11292      $install_prog $dir/$dlname \$dldir/$dlname'
11293    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11294      dlpath=$dir/\$dldll~
11295       $rm \$dlpath'
11296    shlibpath_overrides_runpath=yes
11297
11298    case $host_os in
11299    cygwin*)
11300      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11301      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11302      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11303      ;;
11304    mingw*)
11305      # MinGW DLLs use traditional 'lib' prefix
11306      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11307      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11308      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11309        # It is most probably a Windows format PATH printed by
11310        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11311        # path with ; separators, and with drive letters. We can handle the
11312        # drive letters (cygwin fileutils understands them), so leave them,
11313        # especially as we might pass files found there to a mingw objdump,
11314        # which wouldn't understand a cygwinified path. Ahh.
11315        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11316      else
11317        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11318      fi
11319      ;;
11320    pw32*)
11321      # pw32 DLLs use 'pw' prefix rather than 'lib'
11322      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11323      ;;
11324    esac
11325    ;;
11326
11327  *)
11328    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11329    ;;
11330  esac
11331  dynamic_linker='Win32 ld.exe'
11332  # FIXME: first we should search . and the directory the executable is in
11333  shlibpath_var=PATH
11334  ;;
11335
11336darwin* | rhapsody*)
11337  dynamic_linker="$host_os dyld"
11338  version_type=darwin
11339  need_lib_prefix=no
11340  need_version=no
11341  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11342  soname_spec='${libname}${release}${major}$shared_ext'
11343  shlibpath_overrides_runpath=yes
11344  shlibpath_var=DYLD_LIBRARY_PATH
11345  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11346  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11347  if test "$GCC" = yes; then
11348    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11349  else
11350    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11351  fi
11352  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11353  ;;
11354
11355dgux*)
11356  version_type=linux
11357  need_lib_prefix=no
11358  need_version=no
11359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11360  soname_spec='${libname}${release}${shared_ext}$major'
11361  shlibpath_var=LD_LIBRARY_PATH
11362  ;;
11363
11364freebsd1*)
11365  dynamic_linker=no
11366  ;;
11367
11368kfreebsd*-gnu)
11369  version_type=linux
11370  need_lib_prefix=no
11371  need_version=no
11372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11373  soname_spec='${libname}${release}${shared_ext}$major'
11374  shlibpath_var=LD_LIBRARY_PATH
11375  shlibpath_overrides_runpath=no
11376  hardcode_into_libs=yes
11377  dynamic_linker='GNU ld.so'
11378  ;;
11379
11380freebsd*)
11381  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11382  version_type=freebsd-$objformat
11383  case $version_type in
11384    freebsd-elf*)
11385      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11386      need_version=no
11387      need_lib_prefix=no
11388      ;;
11389    freebsd-*)
11390      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11391      need_version=yes
11392      ;;
11393  esac
11394  shlibpath_var=LD_LIBRARY_PATH
11395  case $host_os in
11396  freebsd2*)
11397    shlibpath_overrides_runpath=yes
11398    ;;
11399  freebsd3.01* | freebsdelf3.01*)
11400    shlibpath_overrides_runpath=yes
11401    hardcode_into_libs=yes
11402    ;;
11403  *) # from 3.2 on
11404    shlibpath_overrides_runpath=no
11405    hardcode_into_libs=yes
11406    ;;
11407  esac
11408  ;;
11409
11410gnu*)
11411  version_type=linux
11412  need_lib_prefix=no
11413  need_version=no
11414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11415  soname_spec='${libname}${release}${shared_ext}$major'
11416  shlibpath_var=LD_LIBRARY_PATH
11417  hardcode_into_libs=yes
11418  ;;
11419
11420hpux9* | hpux10* | hpux11*)
11421  # Give a soname corresponding to the major version so that dld.sl refuses to
11422  # link against other versions.
11423  version_type=sunos
11424  need_lib_prefix=no
11425  need_version=no
11426  case "$host_cpu" in
11427  ia64*)
11428    shrext='.so'
11429    hardcode_into_libs=yes
11430    dynamic_linker="$host_os dld.so"
11431    shlibpath_var=LD_LIBRARY_PATH
11432    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434    soname_spec='${libname}${release}${shared_ext}$major'
11435    if test "X$HPUX_IA64_MODE" = X32; then
11436      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11437    else
11438      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11439    fi
11440    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11441    ;;
11442   hppa*64*)
11443     shrext='.sl'
11444     hardcode_into_libs=yes
11445     dynamic_linker="$host_os dld.sl"
11446     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11447     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449     soname_spec='${libname}${release}${shared_ext}$major'
11450     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11451     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11452     ;;
11453   *)
11454    shrext='.sl'
11455    dynamic_linker="$host_os dld.sl"
11456    shlibpath_var=SHLIB_PATH
11457    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11458    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459    soname_spec='${libname}${release}${shared_ext}$major'
11460    ;;
11461  esac
11462  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11463  postinstall_cmds='chmod 555 $lib'
11464  ;;
11465
11466irix5* | irix6* | nonstopux*)
11467  case $host_os in
11468    nonstopux*) version_type=nonstopux ;;
11469    *)
11470	if test "$lt_cv_prog_gnu_ld" = yes; then
11471		version_type=linux
11472	else
11473		version_type=irix
11474	fi ;;
11475  esac
11476  need_lib_prefix=no
11477  need_version=no
11478  soname_spec='${libname}${release}${shared_ext}$major'
11479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11480  case $host_os in
11481  irix5* | nonstopux*)
11482    libsuff= shlibsuff=
11483    ;;
11484  *)
11485    case $LD in # libtool.m4 will add one of these switches to LD
11486    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11487      libsuff= shlibsuff= libmagic=32-bit;;
11488    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11489      libsuff=32 shlibsuff=N32 libmagic=N32;;
11490    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11491      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11492    *) libsuff= shlibsuff= libmagic=never-match;;
11493    esac
11494    ;;
11495  esac
11496  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11497  shlibpath_overrides_runpath=no
11498  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11499  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11500  hardcode_into_libs=yes
11501  ;;
11502
11503# No shared lib support for Linux oldld, aout, or coff.
11504linux*oldld* | linux*aout* | linux*coff*)
11505  dynamic_linker=no
11506  ;;
11507
11508# This must be Linux ELF.
11509linux*)
11510  version_type=linux
11511  need_lib_prefix=no
11512  need_version=no
11513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514  soname_spec='${libname}${release}${shared_ext}$major'
11515  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11516  shlibpath_var=LD_LIBRARY_PATH
11517  shlibpath_overrides_runpath=no
11518  # This implies no fast_install, which is unacceptable.
11519  # Some rework will be needed to allow for fast_install
11520  # before this can be enabled.
11521  hardcode_into_libs=yes
11522
11523  # Append ld.so.conf contents to the search path
11524  if test -f /etc/ld.so.conf; then
11525    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11526    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11527  fi
11528
11529  # We used to test for /lib/ld.so.1 and disable shared libraries on
11530  # powerpc, because MkLinux only supported shared libraries with the
11531  # GNU dynamic linker.  Since this was broken with cross compilers,
11532  # most powerpc-linux boxes support dynamic linking these days and
11533  # people can always --disable-shared, the test was removed, and we
11534  # assume the GNU/Linux dynamic linker is in use.
11535  dynamic_linker='GNU/Linux ld.so'
11536  ;;
11537
11538knetbsd*-gnu)
11539  version_type=linux
11540  need_lib_prefix=no
11541  need_version=no
11542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11543  soname_spec='${libname}${release}${shared_ext}$major'
11544  shlibpath_var=LD_LIBRARY_PATH
11545  shlibpath_overrides_runpath=no
11546  hardcode_into_libs=yes
11547  dynamic_linker='GNU ld.so'
11548  ;;
11549
11550netbsd*)
11551  version_type=sunos
11552  need_lib_prefix=no
11553  need_version=no
11554  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11555    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11556    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11557    dynamic_linker='NetBSD (a.out) ld.so'
11558  else
11559    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11560    soname_spec='${libname}${release}${shared_ext}$major'
11561    dynamic_linker='NetBSD ld.elf_so'
11562  fi
11563  shlibpath_var=LD_LIBRARY_PATH
11564  shlibpath_overrides_runpath=yes
11565  hardcode_into_libs=yes
11566  ;;
11567
11568newsos6)
11569  version_type=linux
11570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571  shlibpath_var=LD_LIBRARY_PATH
11572  shlibpath_overrides_runpath=yes
11573  ;;
11574
11575nto-qnx*)
11576  version_type=linux
11577  need_lib_prefix=no
11578  need_version=no
11579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580  soname_spec='${libname}${release}${shared_ext}$major'
11581  shlibpath_var=LD_LIBRARY_PATH
11582  shlibpath_overrides_runpath=yes
11583  ;;
11584
11585openbsd*)
11586  version_type=sunos
11587  need_lib_prefix=no
11588  need_version=yes
11589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11590  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11591  shlibpath_var=LD_LIBRARY_PATH
11592  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11593    case $host_os in
11594      openbsd2.[89] | openbsd2.[89].*)
11595	shlibpath_overrides_runpath=no
11596	;;
11597      *)
11598	shlibpath_overrides_runpath=yes
11599	;;
11600      esac
11601  else
11602    shlibpath_overrides_runpath=yes
11603  fi
11604  ;;
11605
11606os2*)
11607  libname_spec='$name'
11608  shrext=".dll"
11609  need_lib_prefix=no
11610  library_names_spec='$libname${shared_ext} $libname.a'
11611  dynamic_linker='OS/2 ld.exe'
11612  shlibpath_var=LIBPATH
11613  ;;
11614
11615osf3* | osf4* | osf5*)
11616  version_type=osf
11617  need_lib_prefix=no
11618  need_version=no
11619  soname_spec='${libname}${release}${shared_ext}$major'
11620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621  shlibpath_var=LD_LIBRARY_PATH
11622  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11623  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11624  ;;
11625
11626sco3.2v5*)
11627  version_type=osf
11628  soname_spec='${libname}${release}${shared_ext}$major'
11629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630  shlibpath_var=LD_LIBRARY_PATH
11631  ;;
11632
11633solaris*)
11634  version_type=linux
11635  need_lib_prefix=no
11636  need_version=no
11637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638  soname_spec='${libname}${release}${shared_ext}$major'
11639  shlibpath_var=LD_LIBRARY_PATH
11640  shlibpath_overrides_runpath=yes
11641  hardcode_into_libs=yes
11642  # ldd complains unless libraries are executable
11643  postinstall_cmds='chmod +x $lib'
11644  ;;
11645
11646sunos4*)
11647  version_type=sunos
11648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11649  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11650  shlibpath_var=LD_LIBRARY_PATH
11651  shlibpath_overrides_runpath=yes
11652  if test "$with_gnu_ld" = yes; then
11653    need_lib_prefix=no
11654  fi
11655  need_version=yes
11656  ;;
11657
11658sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11659  version_type=linux
11660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11661  soname_spec='${libname}${release}${shared_ext}$major'
11662  shlibpath_var=LD_LIBRARY_PATH
11663  case $host_vendor in
11664    sni)
11665      shlibpath_overrides_runpath=no
11666      need_lib_prefix=no
11667      export_dynamic_flag_spec='${wl}-Blargedynsym'
11668      runpath_var=LD_RUN_PATH
11669      ;;
11670    siemens)
11671      need_lib_prefix=no
11672      ;;
11673    motorola)
11674      need_lib_prefix=no
11675      need_version=no
11676      shlibpath_overrides_runpath=no
11677      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11678      ;;
11679  esac
11680  ;;
11681
11682sysv4*MP*)
11683  if test -d /usr/nec ;then
11684    version_type=linux
11685    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11686    soname_spec='$libname${shared_ext}.$major'
11687    shlibpath_var=LD_LIBRARY_PATH
11688  fi
11689  ;;
11690
11691uts4*)
11692  version_type=linux
11693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694  soname_spec='${libname}${release}${shared_ext}$major'
11695  shlibpath_var=LD_LIBRARY_PATH
11696  ;;
11697
11698*)
11699  dynamic_linker=no
11700  ;;
11701esac
11702echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11703echo "${ECHO_T}$dynamic_linker" >&6
11704test "$dynamic_linker" = no && can_build_shared=no
11705
11706echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11707echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11708hardcode_action_CXX=
11709if test -n "$hardcode_libdir_flag_spec_CXX" || \
11710   test -n "$runpath_var CXX" || \
11711   test "X$hardcode_automatic_CXX"="Xyes" ; then
11712
11713  # We can hardcode non-existant directories.
11714  if test "$hardcode_direct_CXX" != no &&
11715     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11716     # have to relink, otherwise we might link with an installed library
11717     # when we should be linking with a yet-to-be-installed one
11718     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11719     test "$hardcode_minus_L_CXX" != no; then
11720    # Linking always hardcodes the temporary library directory.
11721    hardcode_action_CXX=relink
11722  else
11723    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11724    hardcode_action_CXX=immediate
11725  fi
11726else
11727  # We cannot hardcode anything, or else we can only hardcode existing
11728  # directories.
11729  hardcode_action_CXX=unsupported
11730fi
11731echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11732echo "${ECHO_T}$hardcode_action_CXX" >&6
11733
11734if test "$hardcode_action_CXX" = relink; then
11735  # Fast installation is not supported
11736  enable_fast_install=no
11737elif test "$shlibpath_overrides_runpath" = yes ||
11738     test "$enable_shared" = no; then
11739  # Fast installation is not necessary
11740  enable_fast_install=needless
11741fi
11742
11743striplib=
11744old_striplib=
11745echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11746echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11747if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11748  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11749  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11750  echo "$as_me:$LINENO: result: yes" >&5
11751echo "${ECHO_T}yes" >&6
11752else
11753# FIXME - insert some real tests, host_os isn't really good enough
11754  case $host_os in
11755   darwin*)
11756       if test -n "$STRIP" ; then
11757         striplib="$STRIP -x"
11758         echo "$as_me:$LINENO: result: yes" >&5
11759echo "${ECHO_T}yes" >&6
11760       else
11761  echo "$as_me:$LINENO: result: no" >&5
11762echo "${ECHO_T}no" >&6
11763fi
11764       ;;
11765   *)
11766  echo "$as_me:$LINENO: result: no" >&5
11767echo "${ECHO_T}no" >&6
11768    ;;
11769  esac
11770fi
11771
11772if test "x$enable_dlopen" != xyes; then
11773  enable_dlopen=unknown
11774  enable_dlopen_self=unknown
11775  enable_dlopen_self_static=unknown
11776else
11777  lt_cv_dlopen=no
11778  lt_cv_dlopen_libs=
11779
11780  case $host_os in
11781  beos*)
11782    lt_cv_dlopen="load_add_on"
11783    lt_cv_dlopen_libs=
11784    lt_cv_dlopen_self=yes
11785    ;;
11786
11787  mingw* | pw32*)
11788    lt_cv_dlopen="LoadLibrary"
11789    lt_cv_dlopen_libs=
11790   ;;
11791
11792  cygwin*)
11793    lt_cv_dlopen="dlopen"
11794    lt_cv_dlopen_libs=
11795   ;;
11796
11797  darwin*)
11798  # if libdl is installed we need to link against it
11799    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11800echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11801if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11802  echo $ECHO_N "(cached) $ECHO_C" >&6
11803else
11804  ac_check_lib_save_LIBS=$LIBS
11805LIBS="-ldl  $LIBS"
11806cat >conftest.$ac_ext <<_ACEOF
11807/* confdefs.h.  */
11808_ACEOF
11809cat confdefs.h >>conftest.$ac_ext
11810cat >>conftest.$ac_ext <<_ACEOF
11811/* end confdefs.h.  */
11812
11813/* Override any gcc2 internal prototype to avoid an error.  */
11814#ifdef __cplusplus
11815extern "C"
11816#endif
11817/* We use char because int might match the return type of a gcc2
11818   builtin and then its argument prototype would still apply.  */
11819char dlopen ();
11820int
11821main ()
11822{
11823dlopen ();
11824  ;
11825  return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext conftest$ac_exeext
11829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11830  (eval $ac_link) 2>conftest.er1
11831  ac_status=$?
11832  grep -v '^ *+' conftest.er1 >conftest.err
11833  rm -f conftest.er1
11834  cat conftest.err >&5
11835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836  (exit $ac_status); } &&
11837	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839  (eval $ac_try) 2>&5
11840  ac_status=$?
11841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842  (exit $ac_status); }; } &&
11843	 { ac_try='test -s conftest$ac_exeext'
11844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845  (eval $ac_try) 2>&5
11846  ac_status=$?
11847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848  (exit $ac_status); }; }; then
11849  ac_cv_lib_dl_dlopen=yes
11850else
11851  echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
11853
11854ac_cv_lib_dl_dlopen=no
11855fi
11856rm -f conftest.err conftest.$ac_objext \
11857      conftest$ac_exeext conftest.$ac_ext
11858LIBS=$ac_check_lib_save_LIBS
11859fi
11860echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11861echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11862if test $ac_cv_lib_dl_dlopen = yes; then
11863  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11864else
11865
11866    lt_cv_dlopen="dyld"
11867    lt_cv_dlopen_libs=
11868    lt_cv_dlopen_self=yes
11869
11870fi
11871
11872   ;;
11873
11874  *)
11875    echo "$as_me:$LINENO: checking for shl_load" >&5
11876echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11877if test "${ac_cv_func_shl_load+set}" = set; then
11878  echo $ECHO_N "(cached) $ECHO_C" >&6
11879else
11880  cat >conftest.$ac_ext <<_ACEOF
11881/* confdefs.h.  */
11882_ACEOF
11883cat confdefs.h >>conftest.$ac_ext
11884cat >>conftest.$ac_ext <<_ACEOF
11885/* end confdefs.h.  */
11886/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11887   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11888#define shl_load innocuous_shl_load
11889
11890/* System header to define __stub macros and hopefully few prototypes,
11891    which can conflict with char shl_load (); below.
11892    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11893    <limits.h> exists even on freestanding compilers.  */
11894
11895#ifdef __STDC__
11896# include <limits.h>
11897#else
11898# include <assert.h>
11899#endif
11900
11901#undef shl_load
11902
11903/* Override any gcc2 internal prototype to avoid an error.  */
11904#ifdef __cplusplus
11905extern "C"
11906{
11907#endif
11908/* We use char because int might match the return type of a gcc2
11909   builtin and then its argument prototype would still apply.  */
11910char shl_load ();
11911/* The GNU C library defines this for functions which it implements
11912    to always fail with ENOSYS.  Some functions are actually named
11913    something starting with __ and the normal name is an alias.  */
11914#if defined (__stub_shl_load) || defined (__stub___shl_load)
11915choke me
11916#else
11917char (*f) () = shl_load;
11918#endif
11919#ifdef __cplusplus
11920}
11921#endif
11922
11923int
11924main ()
11925{
11926return f != shl_load;
11927  ;
11928  return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext conftest$ac_exeext
11932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11933  (eval $ac_link) 2>conftest.er1
11934  ac_status=$?
11935  grep -v '^ *+' conftest.er1 >conftest.err
11936  rm -f conftest.er1
11937  cat conftest.err >&5
11938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939  (exit $ac_status); } &&
11940	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942  (eval $ac_try) 2>&5
11943  ac_status=$?
11944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945  (exit $ac_status); }; } &&
11946	 { ac_try='test -s conftest$ac_exeext'
11947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948  (eval $ac_try) 2>&5
11949  ac_status=$?
11950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951  (exit $ac_status); }; }; then
11952  ac_cv_func_shl_load=yes
11953else
11954  echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957ac_cv_func_shl_load=no
11958fi
11959rm -f conftest.err conftest.$ac_objext \
11960      conftest$ac_exeext conftest.$ac_ext
11961fi
11962echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11963echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11964if test $ac_cv_func_shl_load = yes; then
11965  lt_cv_dlopen="shl_load"
11966else
11967  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11968echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11969if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11970  echo $ECHO_N "(cached) $ECHO_C" >&6
11971else
11972  ac_check_lib_save_LIBS=$LIBS
11973LIBS="-ldld  $LIBS"
11974cat >conftest.$ac_ext <<_ACEOF
11975/* confdefs.h.  */
11976_ACEOF
11977cat confdefs.h >>conftest.$ac_ext
11978cat >>conftest.$ac_ext <<_ACEOF
11979/* end confdefs.h.  */
11980
11981/* Override any gcc2 internal prototype to avoid an error.  */
11982#ifdef __cplusplus
11983extern "C"
11984#endif
11985/* We use char because int might match the return type of a gcc2
11986   builtin and then its argument prototype would still apply.  */
11987char shl_load ();
11988int
11989main ()
11990{
11991shl_load ();
11992  ;
11993  return 0;
11994}
11995_ACEOF
11996rm -f conftest.$ac_objext conftest$ac_exeext
11997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998  (eval $ac_link) 2>conftest.er1
11999  ac_status=$?
12000  grep -v '^ *+' conftest.er1 >conftest.err
12001  rm -f conftest.er1
12002  cat conftest.err >&5
12003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004  (exit $ac_status); } &&
12005	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007  (eval $ac_try) 2>&5
12008  ac_status=$?
12009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010  (exit $ac_status); }; } &&
12011	 { ac_try='test -s conftest$ac_exeext'
12012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013  (eval $ac_try) 2>&5
12014  ac_status=$?
12015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016  (exit $ac_status); }; }; then
12017  ac_cv_lib_dld_shl_load=yes
12018else
12019  echo "$as_me: failed program was:" >&5
12020sed 's/^/| /' conftest.$ac_ext >&5
12021
12022ac_cv_lib_dld_shl_load=no
12023fi
12024rm -f conftest.err conftest.$ac_objext \
12025      conftest$ac_exeext conftest.$ac_ext
12026LIBS=$ac_check_lib_save_LIBS
12027fi
12028echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12029echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12030if test $ac_cv_lib_dld_shl_load = yes; then
12031  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12032else
12033  echo "$as_me:$LINENO: checking for dlopen" >&5
12034echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12035if test "${ac_cv_func_dlopen+set}" = set; then
12036  echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038  cat >conftest.$ac_ext <<_ACEOF
12039/* confdefs.h.  */
12040_ACEOF
12041cat confdefs.h >>conftest.$ac_ext
12042cat >>conftest.$ac_ext <<_ACEOF
12043/* end confdefs.h.  */
12044/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12045   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12046#define dlopen innocuous_dlopen
12047
12048/* System header to define __stub macros and hopefully few prototypes,
12049    which can conflict with char dlopen (); below.
12050    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12051    <limits.h> exists even on freestanding compilers.  */
12052
12053#ifdef __STDC__
12054# include <limits.h>
12055#else
12056# include <assert.h>
12057#endif
12058
12059#undef dlopen
12060
12061/* Override any gcc2 internal prototype to avoid an error.  */
12062#ifdef __cplusplus
12063extern "C"
12064{
12065#endif
12066/* We use char because int might match the return type of a gcc2
12067   builtin and then its argument prototype would still apply.  */
12068char dlopen ();
12069/* The GNU C library defines this for functions which it implements
12070    to always fail with ENOSYS.  Some functions are actually named
12071    something starting with __ and the normal name is an alias.  */
12072#if defined (__stub_dlopen) || defined (__stub___dlopen)
12073choke me
12074#else
12075char (*f) () = dlopen;
12076#endif
12077#ifdef __cplusplus
12078}
12079#endif
12080
12081int
12082main ()
12083{
12084return f != dlopen;
12085  ;
12086  return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext conftest$ac_exeext
12090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091  (eval $ac_link) 2>conftest.er1
12092  ac_status=$?
12093  grep -v '^ *+' conftest.er1 >conftest.err
12094  rm -f conftest.er1
12095  cat conftest.err >&5
12096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097  (exit $ac_status); } &&
12098	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100  (eval $ac_try) 2>&5
12101  ac_status=$?
12102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103  (exit $ac_status); }; } &&
12104	 { ac_try='test -s conftest$ac_exeext'
12105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106  (eval $ac_try) 2>&5
12107  ac_status=$?
12108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109  (exit $ac_status); }; }; then
12110  ac_cv_func_dlopen=yes
12111else
12112  echo "$as_me: failed program was:" >&5
12113sed 's/^/| /' conftest.$ac_ext >&5
12114
12115ac_cv_func_dlopen=no
12116fi
12117rm -f conftest.err conftest.$ac_objext \
12118      conftest$ac_exeext conftest.$ac_ext
12119fi
12120echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12121echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12122if test $ac_cv_func_dlopen = yes; then
12123  lt_cv_dlopen="dlopen"
12124else
12125  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12126echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12127if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12128  echo $ECHO_N "(cached) $ECHO_C" >&6
12129else
12130  ac_check_lib_save_LIBS=$LIBS
12131LIBS="-ldl  $LIBS"
12132cat >conftest.$ac_ext <<_ACEOF
12133/* confdefs.h.  */
12134_ACEOF
12135cat confdefs.h >>conftest.$ac_ext
12136cat >>conftest.$ac_ext <<_ACEOF
12137/* end confdefs.h.  */
12138
12139/* Override any gcc2 internal prototype to avoid an error.  */
12140#ifdef __cplusplus
12141extern "C"
12142#endif
12143/* We use char because int might match the return type of a gcc2
12144   builtin and then its argument prototype would still apply.  */
12145char dlopen ();
12146int
12147main ()
12148{
12149dlopen ();
12150  ;
12151  return 0;
12152}
12153_ACEOF
12154rm -f conftest.$ac_objext conftest$ac_exeext
12155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156  (eval $ac_link) 2>conftest.er1
12157  ac_status=$?
12158  grep -v '^ *+' conftest.er1 >conftest.err
12159  rm -f conftest.er1
12160  cat conftest.err >&5
12161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162  (exit $ac_status); } &&
12163	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165  (eval $ac_try) 2>&5
12166  ac_status=$?
12167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168  (exit $ac_status); }; } &&
12169	 { ac_try='test -s conftest$ac_exeext'
12170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171  (eval $ac_try) 2>&5
12172  ac_status=$?
12173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174  (exit $ac_status); }; }; then
12175  ac_cv_lib_dl_dlopen=yes
12176else
12177  echo "$as_me: failed program was:" >&5
12178sed 's/^/| /' conftest.$ac_ext >&5
12179
12180ac_cv_lib_dl_dlopen=no
12181fi
12182rm -f conftest.err conftest.$ac_objext \
12183      conftest$ac_exeext conftest.$ac_ext
12184LIBS=$ac_check_lib_save_LIBS
12185fi
12186echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12187echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12188if test $ac_cv_lib_dl_dlopen = yes; then
12189  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12190else
12191  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12192echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12193if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12194  echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196  ac_check_lib_save_LIBS=$LIBS
12197LIBS="-lsvld  $LIBS"
12198cat >conftest.$ac_ext <<_ACEOF
12199/* confdefs.h.  */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h.  */
12204
12205/* Override any gcc2 internal prototype to avoid an error.  */
12206#ifdef __cplusplus
12207extern "C"
12208#endif
12209/* We use char because int might match the return type of a gcc2
12210   builtin and then its argument prototype would still apply.  */
12211char dlopen ();
12212int
12213main ()
12214{
12215dlopen ();
12216  ;
12217  return 0;
12218}
12219_ACEOF
12220rm -f conftest.$ac_objext conftest$ac_exeext
12221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222  (eval $ac_link) 2>conftest.er1
12223  ac_status=$?
12224  grep -v '^ *+' conftest.er1 >conftest.err
12225  rm -f conftest.er1
12226  cat conftest.err >&5
12227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228  (exit $ac_status); } &&
12229	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231  (eval $ac_try) 2>&5
12232  ac_status=$?
12233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234  (exit $ac_status); }; } &&
12235	 { ac_try='test -s conftest$ac_exeext'
12236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237  (eval $ac_try) 2>&5
12238  ac_status=$?
12239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240  (exit $ac_status); }; }; then
12241  ac_cv_lib_svld_dlopen=yes
12242else
12243  echo "$as_me: failed program was:" >&5
12244sed 's/^/| /' conftest.$ac_ext >&5
12245
12246ac_cv_lib_svld_dlopen=no
12247fi
12248rm -f conftest.err conftest.$ac_objext \
12249      conftest$ac_exeext conftest.$ac_ext
12250LIBS=$ac_check_lib_save_LIBS
12251fi
12252echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12253echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12254if test $ac_cv_lib_svld_dlopen = yes; then
12255  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12256else
12257  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12258echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12259if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12260  echo $ECHO_N "(cached) $ECHO_C" >&6
12261else
12262  ac_check_lib_save_LIBS=$LIBS
12263LIBS="-ldld  $LIBS"
12264cat >conftest.$ac_ext <<_ACEOF
12265/* confdefs.h.  */
12266_ACEOF
12267cat confdefs.h >>conftest.$ac_ext
12268cat >>conftest.$ac_ext <<_ACEOF
12269/* end confdefs.h.  */
12270
12271/* Override any gcc2 internal prototype to avoid an error.  */
12272#ifdef __cplusplus
12273extern "C"
12274#endif
12275/* We use char because int might match the return type of a gcc2
12276   builtin and then its argument prototype would still apply.  */
12277char dld_link ();
12278int
12279main ()
12280{
12281dld_link ();
12282  ;
12283  return 0;
12284}
12285_ACEOF
12286rm -f conftest.$ac_objext conftest$ac_exeext
12287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288  (eval $ac_link) 2>conftest.er1
12289  ac_status=$?
12290  grep -v '^ *+' conftest.er1 >conftest.err
12291  rm -f conftest.er1
12292  cat conftest.err >&5
12293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294  (exit $ac_status); } &&
12295	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297  (eval $ac_try) 2>&5
12298  ac_status=$?
12299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300  (exit $ac_status); }; } &&
12301	 { ac_try='test -s conftest$ac_exeext'
12302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303  (eval $ac_try) 2>&5
12304  ac_status=$?
12305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306  (exit $ac_status); }; }; then
12307  ac_cv_lib_dld_dld_link=yes
12308else
12309  echo "$as_me: failed program was:" >&5
12310sed 's/^/| /' conftest.$ac_ext >&5
12311
12312ac_cv_lib_dld_dld_link=no
12313fi
12314rm -f conftest.err conftest.$ac_objext \
12315      conftest$ac_exeext conftest.$ac_ext
12316LIBS=$ac_check_lib_save_LIBS
12317fi
12318echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12319echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12320if test $ac_cv_lib_dld_dld_link = yes; then
12321  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12322fi
12323
12324
12325fi
12326
12327
12328fi
12329
12330
12331fi
12332
12333
12334fi
12335
12336
12337fi
12338
12339    ;;
12340  esac
12341
12342  if test "x$lt_cv_dlopen" != xno; then
12343    enable_dlopen=yes
12344  else
12345    enable_dlopen=no
12346  fi
12347
12348  case $lt_cv_dlopen in
12349  dlopen)
12350    save_CPPFLAGS="$CPPFLAGS"
12351    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12352
12353    save_LDFLAGS="$LDFLAGS"
12354    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12355
12356    save_LIBS="$LIBS"
12357    LIBS="$lt_cv_dlopen_libs $LIBS"
12358
12359    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12360echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12361if test "${lt_cv_dlopen_self+set}" = set; then
12362  echo $ECHO_N "(cached) $ECHO_C" >&6
12363else
12364  	  if test "$cross_compiling" = yes; then :
12365  lt_cv_dlopen_self=cross
12366else
12367  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12368  lt_status=$lt_dlunknown
12369  cat > conftest.$ac_ext <<EOF
12370#line 12370 "configure"
12371#include "confdefs.h"
12372
12373#if HAVE_DLFCN_H
12374#include <dlfcn.h>
12375#endif
12376
12377#include <stdio.h>
12378
12379#ifdef RTLD_GLOBAL
12380#  define LT_DLGLOBAL		RTLD_GLOBAL
12381#else
12382#  ifdef DL_GLOBAL
12383#    define LT_DLGLOBAL		DL_GLOBAL
12384#  else
12385#    define LT_DLGLOBAL		0
12386#  endif
12387#endif
12388
12389/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12390   find out it does not work in some platform. */
12391#ifndef LT_DLLAZY_OR_NOW
12392#  ifdef RTLD_LAZY
12393#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12394#  else
12395#    ifdef DL_LAZY
12396#      define LT_DLLAZY_OR_NOW		DL_LAZY
12397#    else
12398#      ifdef RTLD_NOW
12399#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12400#      else
12401#        ifdef DL_NOW
12402#          define LT_DLLAZY_OR_NOW	DL_NOW
12403#        else
12404#          define LT_DLLAZY_OR_NOW	0
12405#        endif
12406#      endif
12407#    endif
12408#  endif
12409#endif
12410
12411#ifdef __cplusplus
12412extern "C" void exit (int);
12413#endif
12414
12415void fnord() { int i=42;}
12416int main ()
12417{
12418  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12419  int status = $lt_dlunknown;
12420
12421  if (self)
12422    {
12423      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12424      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12425      /* dlclose (self); */
12426    }
12427
12428    exit (status);
12429}
12430EOF
12431  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432  (eval $ac_link) 2>&5
12433  ac_status=$?
12434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12436    (./conftest; exit; ) 2>/dev/null
12437    lt_status=$?
12438    case x$lt_status in
12439      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12440      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12441      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12442    esac
12443  else :
12444    # compilation failed
12445    lt_cv_dlopen_self=no
12446  fi
12447fi
12448rm -fr conftest*
12449
12450
12451fi
12452echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12453echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12454
12455    if test "x$lt_cv_dlopen_self" = xyes; then
12456      LDFLAGS="$LDFLAGS $link_static_flag"
12457      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12458echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12459if test "${lt_cv_dlopen_self_static+set}" = set; then
12460  echo $ECHO_N "(cached) $ECHO_C" >&6
12461else
12462  	  if test "$cross_compiling" = yes; then :
12463  lt_cv_dlopen_self_static=cross
12464else
12465  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12466  lt_status=$lt_dlunknown
12467  cat > conftest.$ac_ext <<EOF
12468#line 12468 "configure"
12469#include "confdefs.h"
12470
12471#if HAVE_DLFCN_H
12472#include <dlfcn.h>
12473#endif
12474
12475#include <stdio.h>
12476
12477#ifdef RTLD_GLOBAL
12478#  define LT_DLGLOBAL		RTLD_GLOBAL
12479#else
12480#  ifdef DL_GLOBAL
12481#    define LT_DLGLOBAL		DL_GLOBAL
12482#  else
12483#    define LT_DLGLOBAL		0
12484#  endif
12485#endif
12486
12487/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12488   find out it does not work in some platform. */
12489#ifndef LT_DLLAZY_OR_NOW
12490#  ifdef RTLD_LAZY
12491#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12492#  else
12493#    ifdef DL_LAZY
12494#      define LT_DLLAZY_OR_NOW		DL_LAZY
12495#    else
12496#      ifdef RTLD_NOW
12497#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12498#      else
12499#        ifdef DL_NOW
12500#          define LT_DLLAZY_OR_NOW	DL_NOW
12501#        else
12502#          define LT_DLLAZY_OR_NOW	0
12503#        endif
12504#      endif
12505#    endif
12506#  endif
12507#endif
12508
12509#ifdef __cplusplus
12510extern "C" void exit (int);
12511#endif
12512
12513void fnord() { int i=42;}
12514int main ()
12515{
12516  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12517  int status = $lt_dlunknown;
12518
12519  if (self)
12520    {
12521      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12522      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12523      /* dlclose (self); */
12524    }
12525
12526    exit (status);
12527}
12528EOF
12529  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530  (eval $ac_link) 2>&5
12531  ac_status=$?
12532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12534    (./conftest; exit; ) 2>/dev/null
12535    lt_status=$?
12536    case x$lt_status in
12537      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12538      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12539      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12540    esac
12541  else :
12542    # compilation failed
12543    lt_cv_dlopen_self_static=no
12544  fi
12545fi
12546rm -fr conftest*
12547
12548
12549fi
12550echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12551echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12552    fi
12553
12554    CPPFLAGS="$save_CPPFLAGS"
12555    LDFLAGS="$save_LDFLAGS"
12556    LIBS="$save_LIBS"
12557    ;;
12558  esac
12559
12560  case $lt_cv_dlopen_self in
12561  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12562  *) enable_dlopen_self=unknown ;;
12563  esac
12564
12565  case $lt_cv_dlopen_self_static in
12566  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12567  *) enable_dlopen_self_static=unknown ;;
12568  esac
12569fi
12570
12571
12572# The else clause should only fire when bootstrapping the
12573# libtool distribution, otherwise you forgot to ship ltmain.sh
12574# with your package, and you will get complaints that there are
12575# no rules to generate ltmain.sh.
12576if test -f "$ltmain"; then
12577  # See if we are running on zsh, and set the options which allow our commands through
12578  # without removal of \ escapes.
12579  if test -n "${ZSH_VERSION+set}" ; then
12580    setopt NO_GLOB_SUBST
12581  fi
12582  # Now quote all the things that may contain metacharacters while being
12583  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12584  # variables and quote the copies for generation of the libtool script.
12585  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12586    SED SHELL STRIP \
12587    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12588    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12589    deplibs_check_method reload_flag reload_cmds need_locks \
12590    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12591    lt_cv_sys_global_symbol_to_c_name_address \
12592    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12593    old_postinstall_cmds old_postuninstall_cmds \
12594    compiler_CXX \
12595    CC_CXX \
12596    LD_CXX \
12597    lt_prog_compiler_wl_CXX \
12598    lt_prog_compiler_pic_CXX \
12599    lt_prog_compiler_static_CXX \
12600    lt_prog_compiler_no_builtin_flag_CXX \
12601    export_dynamic_flag_spec_CXX \
12602    thread_safe_flag_spec_CXX \
12603    whole_archive_flag_spec_CXX \
12604    enable_shared_with_static_runtimes_CXX \
12605    old_archive_cmds_CXX \
12606    old_archive_from_new_cmds_CXX \
12607    predep_objects_CXX \
12608    postdep_objects_CXX \
12609    predeps_CXX \
12610    postdeps_CXX \
12611    compiler_lib_search_path_CXX \
12612    archive_cmds_CXX \
12613    archive_expsym_cmds_CXX \
12614    postinstall_cmds_CXX \
12615    postuninstall_cmds_CXX \
12616    old_archive_from_expsyms_cmds_CXX \
12617    allow_undefined_flag_CXX \
12618    no_undefined_flag_CXX \
12619    export_symbols_cmds_CXX \
12620    hardcode_libdir_flag_spec_CXX \
12621    hardcode_libdir_flag_spec_ld_CXX \
12622    hardcode_libdir_separator_CXX \
12623    hardcode_automatic_CXX \
12624    module_cmds_CXX \
12625    module_expsym_cmds_CXX \
12626    lt_cv_prog_compiler_c_o_CXX \
12627    exclude_expsyms_CXX \
12628    include_expsyms_CXX; do
12629
12630    case $var in
12631    old_archive_cmds_CXX | \
12632    old_archive_from_new_cmds_CXX | \
12633    archive_cmds_CXX | \
12634    archive_expsym_cmds_CXX | \
12635    module_cmds_CXX | \
12636    module_expsym_cmds_CXX | \
12637    old_archive_from_expsyms_cmds_CXX | \
12638    export_symbols_cmds_CXX | \
12639    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12640    postinstall_cmds | postuninstall_cmds | \
12641    old_postinstall_cmds | old_postuninstall_cmds | \
12642    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12643      # Double-quote double-evaled strings.
12644      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12645      ;;
12646    *)
12647      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12648      ;;
12649    esac
12650  done
12651
12652  case $lt_echo in
12653  *'\$0 --fallback-echo"')
12654    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12655    ;;
12656  esac
12657
12658cfgfile="$ofile"
12659
12660  cat <<__EOF__ >> "$cfgfile"
12661# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12662
12663# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12664
12665# Shell to use when invoking shell scripts.
12666SHELL=$lt_SHELL
12667
12668# Whether or not to build shared libraries.
12669build_libtool_libs=$enable_shared
12670
12671# Whether or not to build static libraries.
12672build_old_libs=$enable_static
12673
12674# Whether or not to add -lc for building shared libraries.
12675build_libtool_need_lc=$archive_cmds_need_lc_CXX
12676
12677# Whether or not to disallow shared libs when runtime libs are static
12678allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12679
12680# Whether or not to optimize for fast installation.
12681fast_install=$enable_fast_install
12682
12683# The host system.
12684host_alias=$host_alias
12685host=$host
12686
12687# An echo program that does not interpret backslashes.
12688echo=$lt_echo
12689
12690# The archiver.
12691AR=$lt_AR
12692AR_FLAGS=$lt_AR_FLAGS
12693
12694# A C compiler.
12695LTCC=$lt_LTCC
12696
12697# A language-specific compiler.
12698CC=$lt_compiler_CXX
12699
12700# Is the compiler the GNU C compiler?
12701with_gcc=$GCC_CXX
12702
12703# An ERE matcher.
12704EGREP=$lt_EGREP
12705
12706# The linker used to build libraries.
12707LD=$lt_LD_CXX
12708
12709# Whether we need hard or soft links.
12710LN_S=$lt_LN_S
12711
12712# A BSD-compatible nm program.
12713NM=$lt_NM
12714
12715# A symbol stripping program
12716STRIP=$lt_STRIP
12717
12718# Used to examine libraries when file_magic_cmd begins "file"
12719MAGIC_CMD=$MAGIC_CMD
12720
12721# Used on cygwin: DLL creation program.
12722DLLTOOL="$DLLTOOL"
12723
12724# Used on cygwin: object dumper.
12725OBJDUMP="$OBJDUMP"
12726
12727# Used on cygwin: assembler.
12728AS="$AS"
12729
12730# The name of the directory that contains temporary libtool files.
12731objdir=$objdir
12732
12733# How to create reloadable object files.
12734reload_flag=$lt_reload_flag
12735reload_cmds=$lt_reload_cmds
12736
12737# How to pass a linker flag through the compiler.
12738wl=$lt_lt_prog_compiler_wl_CXX
12739
12740# Object file suffix (normally "o").
12741objext="$ac_objext"
12742
12743# Old archive suffix (normally "a").
12744libext="$libext"
12745
12746# Shared library suffix (normally ".so").
12747shrext='$shrext'
12748
12749# Executable file suffix (normally "").
12750exeext="$exeext"
12751
12752# Additional compiler flags for building library objects.
12753pic_flag=$lt_lt_prog_compiler_pic_CXX
12754pic_mode=$pic_mode
12755
12756# What is the maximum length of a command?
12757max_cmd_len=$lt_cv_sys_max_cmd_len
12758
12759# Does compiler simultaneously support -c and -o options?
12760compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12761
12762# Must we lock files when doing compilation ?
12763need_locks=$lt_need_locks
12764
12765# Do we need the lib prefix for modules?
12766need_lib_prefix=$need_lib_prefix
12767
12768# Do we need a version for libraries?
12769need_version=$need_version
12770
12771# Whether dlopen is supported.
12772dlopen_support=$enable_dlopen
12773
12774# Whether dlopen of programs is supported.
12775dlopen_self=$enable_dlopen_self
12776
12777# Whether dlopen of statically linked programs is supported.
12778dlopen_self_static=$enable_dlopen_self_static
12779
12780# Compiler flag to prevent dynamic linking.
12781link_static_flag=$lt_lt_prog_compiler_static_CXX
12782
12783# Compiler flag to turn off builtin functions.
12784no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12785
12786# Compiler flag to allow reflexive dlopens.
12787export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12788
12789# Compiler flag to generate shared objects directly from archives.
12790whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12791
12792# Compiler flag to generate thread-safe objects.
12793thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12794
12795# Library versioning type.
12796version_type=$version_type
12797
12798# Format of library name prefix.
12799libname_spec=$lt_libname_spec
12800
12801# List of archive names.  First name is the real one, the rest are links.
12802# The last name is the one that the linker finds with -lNAME.
12803library_names_spec=$lt_library_names_spec
12804
12805# The coded name of the library, if different from the real name.
12806soname_spec=$lt_soname_spec
12807
12808# Commands used to build and install an old-style archive.
12809RANLIB=$lt_RANLIB
12810old_archive_cmds=$lt_old_archive_cmds_CXX
12811old_postinstall_cmds=$lt_old_postinstall_cmds
12812old_postuninstall_cmds=$lt_old_postuninstall_cmds
12813
12814# Create an old-style archive from a shared archive.
12815old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12816
12817# Create a temporary old-style archive to link instead of a shared archive.
12818old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12819
12820# Commands used to build and install a shared archive.
12821archive_cmds=$lt_archive_cmds_CXX
12822archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12823postinstall_cmds=$lt_postinstall_cmds
12824postuninstall_cmds=$lt_postuninstall_cmds
12825
12826# Commands used to build a loadable module (assumed same as above if empty)
12827module_cmds=$lt_module_cmds_CXX
12828module_expsym_cmds=$lt_module_expsym_cmds_CXX
12829
12830# Commands to strip libraries.
12831old_striplib=$lt_old_striplib
12832striplib=$lt_striplib
12833
12834# Dependencies to place before the objects being linked to create a
12835# shared library.
12836predep_objects=$lt_predep_objects_CXX
12837
12838# Dependencies to place after the objects being linked to create a
12839# shared library.
12840postdep_objects=$lt_postdep_objects_CXX
12841
12842# Dependencies to place before the objects being linked to create a
12843# shared library.
12844predeps=$lt_predeps_CXX
12845
12846# Dependencies to place after the objects being linked to create a
12847# shared library.
12848postdeps=$lt_postdeps_CXX
12849
12850# The library search path used internally by the compiler when linking
12851# a shared library.
12852compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12853
12854# Method to check whether dependent libraries are shared objects.
12855deplibs_check_method=$lt_deplibs_check_method
12856
12857# Command to use when deplibs_check_method == file_magic.
12858file_magic_cmd=$lt_file_magic_cmd
12859
12860# Flag that allows shared libraries with undefined symbols to be built.
12861allow_undefined_flag=$lt_allow_undefined_flag_CXX
12862
12863# Flag that forces no undefined symbols.
12864no_undefined_flag=$lt_no_undefined_flag_CXX
12865
12866# Commands used to finish a libtool library installation in a directory.
12867finish_cmds=$lt_finish_cmds
12868
12869# Same as above, but a single script fragment to be evaled but not shown.
12870finish_eval=$lt_finish_eval
12871
12872# Take the output of nm and produce a listing of raw symbols and C names.
12873global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12874
12875# Transform the output of nm in a proper C declaration
12876global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12877
12878# Transform the output of nm in a C name address pair
12879global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12880
12881# This is the shared library runtime path variable.
12882runpath_var=$runpath_var
12883
12884# This is the shared library path variable.
12885shlibpath_var=$shlibpath_var
12886
12887# Is shlibpath searched before the hard-coded library search path?
12888shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12889
12890# How to hardcode a shared library path into an executable.
12891hardcode_action=$hardcode_action_CXX
12892
12893# Whether we should hardcode library paths into libraries.
12894hardcode_into_libs=$hardcode_into_libs
12895
12896# Flag to hardcode \$libdir into a binary during linking.
12897# This must work even if \$libdir does not exist.
12898hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12899
12900# If ld is used when linking, flag to hardcode \$libdir into
12901# a binary during linking. This must work even if \$libdir does
12902# not exist.
12903hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12904
12905# Whether we need a single -rpath flag with a separated argument.
12906hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12907
12908# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12909# resulting binary.
12910hardcode_direct=$hardcode_direct_CXX
12911
12912# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12913# resulting binary.
12914hardcode_minus_L=$hardcode_minus_L_CXX
12915
12916# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12917# the resulting binary.
12918hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12919
12920# Set to yes if building a shared library automatically hardcodes DIR into the library
12921# and all subsequent libraries and executables linked against it.
12922hardcode_automatic=$hardcode_automatic_CXX
12923
12924# Variables whose values should be saved in libtool wrapper scripts and
12925# restored at relink time.
12926variables_saved_for_relink="$variables_saved_for_relink"
12927
12928# Whether libtool must link a program against all its dependency libraries.
12929link_all_deplibs=$link_all_deplibs_CXX
12930
12931# Compile-time system search path for libraries
12932sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12933
12934# Run-time system search path for libraries
12935sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12936
12937# Fix the shell variable \$srcfile for the compiler.
12938fix_srcfile_path="$fix_srcfile_path_CXX"
12939
12940# Set to yes if exported symbols are required.
12941always_export_symbols=$always_export_symbols_CXX
12942
12943# The commands to list exported symbols.
12944export_symbols_cmds=$lt_export_symbols_cmds_CXX
12945
12946# The commands to extract the exported symbol list from a shared archive.
12947extract_expsyms_cmds=$lt_extract_expsyms_cmds
12948
12949# Symbols that should not be listed in the preloaded symbols.
12950exclude_expsyms=$lt_exclude_expsyms_CXX
12951
12952# Symbols that must always be exported.
12953include_expsyms=$lt_include_expsyms_CXX
12954
12955# ### END LIBTOOL TAG CONFIG: $tagname
12956
12957__EOF__
12958
12959
12960else
12961  # If there is no Makefile yet, we rely on a make rule to execute
12962  # `config.status --recheck' to rerun these tests and create the
12963  # libtool script then.
12964  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12965  if test -f "$ltmain_in"; then
12966    test -f Makefile && make "$ltmain"
12967  fi
12968fi
12969
12970
12971ac_ext=c
12972ac_cpp='$CPP $CPPFLAGS'
12973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12975ac_compiler_gnu=$ac_cv_c_compiler_gnu
12976
12977CC=$lt_save_CC
12978LDCXX=$LD
12979LD=$lt_save_LD
12980GCC=$lt_save_GCC
12981with_gnu_ldcxx=$with_gnu_ld
12982with_gnu_ld=$lt_save_with_gnu_ld
12983lt_cv_path_LDCXX=$lt_cv_path_LD
12984lt_cv_path_LD=$lt_save_path_LD
12985lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12986lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12987
12988	else
12989	  tagname=""
12990	fi
12991	;;
12992
12993      F77)
12994	if test -n "$F77" && test "X$F77" != "Xno"; then
12995
12996ac_ext=f
12997ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12998ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12999ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13000
13001
13002archive_cmds_need_lc_F77=no
13003allow_undefined_flag_F77=
13004always_export_symbols_F77=no
13005archive_expsym_cmds_F77=
13006export_dynamic_flag_spec_F77=
13007hardcode_direct_F77=no
13008hardcode_libdir_flag_spec_F77=
13009hardcode_libdir_flag_spec_ld_F77=
13010hardcode_libdir_separator_F77=
13011hardcode_minus_L_F77=no
13012hardcode_automatic_F77=no
13013module_cmds_F77=
13014module_expsym_cmds_F77=
13015link_all_deplibs_F77=unknown
13016old_archive_cmds_F77=$old_archive_cmds
13017no_undefined_flag_F77=
13018whole_archive_flag_spec_F77=
13019enable_shared_with_static_runtimes_F77=no
13020
13021# Source file extension for f77 test sources.
13022ac_ext=f
13023
13024# Object file extension for compiled f77 test sources.
13025objext=o
13026objext_F77=$objext
13027
13028# Code to be used in simple compile tests
13029lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13030
13031# Code to be used in simple link tests
13032lt_simple_link_test_code="      program t\n      end\n"
13033
13034# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13035
13036# If no C compiler was specified, use CC.
13037LTCC=${LTCC-"$CC"}
13038
13039# Allow CC to be a program name with arguments.
13040compiler=$CC
13041
13042
13043# Allow CC to be a program name with arguments.
13044lt_save_CC="$CC"
13045CC=${F77-"f77"}
13046compiler=$CC
13047compiler_F77=$CC
13048cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13049
13050echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13051echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13052echo "$as_me:$LINENO: result: $can_build_shared" >&5
13053echo "${ECHO_T}$can_build_shared" >&6
13054
13055echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13056echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13057test "$can_build_shared" = "no" && enable_shared=no
13058
13059# On AIX, shared libraries and static libraries use the same namespace, and
13060# are all built from PIC.
13061case "$host_os" in
13062aix3*)
13063  test "$enable_shared" = yes && enable_static=no
13064  if test -n "$RANLIB"; then
13065    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13066    postinstall_cmds='$RANLIB $lib'
13067  fi
13068  ;;
13069aix4*)
13070  test "$enable_shared" = yes && enable_static=no
13071  ;;
13072esac
13073echo "$as_me:$LINENO: result: $enable_shared" >&5
13074echo "${ECHO_T}$enable_shared" >&6
13075
13076echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13077echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13078# Make sure either enable_shared or enable_static is yes.
13079test "$enable_shared" = yes || enable_static=yes
13080echo "$as_me:$LINENO: result: $enable_static" >&5
13081echo "${ECHO_T}$enable_static" >&6
13082
13083test "$ld_shlibs_F77" = no && can_build_shared=no
13084
13085GCC_F77="$G77"
13086LD_F77="$LD"
13087
13088lt_prog_compiler_wl_F77=
13089lt_prog_compiler_pic_F77=
13090lt_prog_compiler_static_F77=
13091
13092echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13093echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13094
13095  if test "$GCC" = yes; then
13096    lt_prog_compiler_wl_F77='-Wl,'
13097    lt_prog_compiler_static_F77='-static'
13098
13099    case $host_os in
13100      aix*)
13101      # All AIX code is PIC.
13102      if test "$host_cpu" = ia64; then
13103	# AIX 5 now supports IA64 processor
13104	lt_prog_compiler_static_F77='-Bstatic'
13105      fi
13106      ;;
13107
13108    amigaos*)
13109      # FIXME: we need at least 68020 code to build shared libraries, but
13110      # adding the `-m68020' flag to GCC prevents building anything better,
13111      # like `-m68040'.
13112      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13113      ;;
13114
13115    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13116      # PIC is the default for these OSes.
13117      ;;
13118
13119    mingw* | pw32* | os2*)
13120      # This hack is so that the source file can tell whether it is being
13121      # built for inclusion in a dll (and should export symbols for example).
13122      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13123      ;;
13124
13125    darwin* | rhapsody*)
13126      # PIC is the default on this platform
13127      # Common symbols not allowed in MH_DYLIB files
13128      lt_prog_compiler_pic_F77='-fno-common'
13129      ;;
13130
13131    msdosdjgpp*)
13132      # Just because we use GCC doesn't mean we suddenly get shared libraries
13133      # on systems that don't support them.
13134      lt_prog_compiler_can_build_shared_F77=no
13135      enable_shared=no
13136      ;;
13137
13138    sysv4*MP*)
13139      if test -d /usr/nec; then
13140	lt_prog_compiler_pic_F77=-Kconform_pic
13141      fi
13142      ;;
13143
13144    hpux*)
13145      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13146      # not for PA HP-UX.
13147      case "$host_cpu" in
13148      hppa*64*|ia64*)
13149	# +Z the default
13150	;;
13151      *)
13152	lt_prog_compiler_pic_F77='-fPIC'
13153	;;
13154      esac
13155      ;;
13156
13157    *)
13158      lt_prog_compiler_pic_F77='-fPIC'
13159      ;;
13160    esac
13161  else
13162    # PORTME Check for flag to pass linker flags through the system compiler.
13163    case $host_os in
13164    aix*)
13165      lt_prog_compiler_wl_F77='-Wl,'
13166      if test "$host_cpu" = ia64; then
13167	# AIX 5 now supports IA64 processor
13168	lt_prog_compiler_static_F77='-Bstatic'
13169      else
13170	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13171      fi
13172      ;;
13173
13174    mingw* | pw32* | os2*)
13175      # This hack is so that the source file can tell whether it is being
13176      # built for inclusion in a dll (and should export symbols for example).
13177      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13178      ;;
13179
13180    hpux9* | hpux10* | hpux11*)
13181      lt_prog_compiler_wl_F77='-Wl,'
13182      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13183      # not for PA HP-UX.
13184      case "$host_cpu" in
13185      hppa*64*|ia64*)
13186	# +Z the default
13187	;;
13188      *)
13189	lt_prog_compiler_pic_F77='+Z'
13190	;;
13191      esac
13192      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13193      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13194      ;;
13195
13196    irix5* | irix6* | nonstopux*)
13197      lt_prog_compiler_wl_F77='-Wl,'
13198      # PIC (with -KPIC) is the default.
13199      lt_prog_compiler_static_F77='-non_shared'
13200      ;;
13201
13202    newsos6)
13203      lt_prog_compiler_pic_F77='-KPIC'
13204      lt_prog_compiler_static_F77='-Bstatic'
13205      ;;
13206
13207    linux*)
13208      case $CC in
13209      icc* | ecc*)
13210	lt_prog_compiler_wl_F77='-Wl,'
13211	lt_prog_compiler_pic_F77='-KPIC'
13212	lt_prog_compiler_static_F77='-static'
13213        ;;
13214      ccc*)
13215        lt_prog_compiler_wl_F77='-Wl,'
13216        # All Alpha code is PIC.
13217        lt_prog_compiler_static_F77='-non_shared'
13218        ;;
13219      esac
13220      ;;
13221
13222    osf3* | osf4* | osf5*)
13223      lt_prog_compiler_wl_F77='-Wl,'
13224      # All OSF/1 code is PIC.
13225      lt_prog_compiler_static_F77='-non_shared'
13226      ;;
13227
13228    sco3.2v5*)
13229      lt_prog_compiler_pic_F77='-Kpic'
13230      lt_prog_compiler_static_F77='-dn'
13231      ;;
13232
13233    solaris*)
13234      lt_prog_compiler_wl_F77='-Wl,'
13235      lt_prog_compiler_pic_F77='-KPIC'
13236      lt_prog_compiler_static_F77='-Bstatic'
13237      ;;
13238
13239    sunos4*)
13240      lt_prog_compiler_wl_F77='-Qoption ld '
13241      lt_prog_compiler_pic_F77='-PIC'
13242      lt_prog_compiler_static_F77='-Bstatic'
13243      ;;
13244
13245    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13246      lt_prog_compiler_wl_F77='-Wl,'
13247      lt_prog_compiler_pic_F77='-KPIC'
13248      lt_prog_compiler_static_F77='-Bstatic'
13249      ;;
13250
13251    sysv4*MP*)
13252      if test -d /usr/nec ;then
13253	lt_prog_compiler_pic_F77='-Kconform_pic'
13254	lt_prog_compiler_static_F77='-Bstatic'
13255      fi
13256      ;;
13257
13258    uts4*)
13259      lt_prog_compiler_pic_F77='-pic'
13260      lt_prog_compiler_static_F77='-Bstatic'
13261      ;;
13262
13263    *)
13264      lt_prog_compiler_can_build_shared_F77=no
13265      ;;
13266    esac
13267  fi
13268
13269echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13270echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13271
13272#
13273# Check to make sure the PIC flag actually works.
13274#
13275if test -n "$lt_prog_compiler_pic_F77"; then
13276
13277echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13278echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13279if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13280  echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282  lt_prog_compiler_pic_works_F77=no
13283  ac_outfile=conftest.$ac_objext
13284   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13285   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13286   # Insert the option either (1) after the last *FLAGS variable, or
13287   # (2) before a word containing "conftest.", or (3) at the end.
13288   # Note that $ac_compile itself does not contain backslashes and begins
13289   # with a dollar sign (not a hyphen), so the echo should work correctly.
13290   # The option is referenced via a variable to avoid confusing sed.
13291   lt_compile=`echo "$ac_compile" | $SED \
13292   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13293   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13294   -e 's:$: $lt_compiler_flag:'`
13295   (eval echo "\"\$as_me:13295: $lt_compile\"" >&5)
13296   (eval "$lt_compile" 2>conftest.err)
13297   ac_status=$?
13298   cat conftest.err >&5
13299   echo "$as_me:13299: \$? = $ac_status" >&5
13300   if (exit $ac_status) && test -s "$ac_outfile"; then
13301     # The compiler can only warn and ignore the option if not recognized
13302     # So say no if there are warnings
13303     if test ! -s conftest.err; then
13304       lt_prog_compiler_pic_works_F77=yes
13305     fi
13306   fi
13307   $rm conftest*
13308
13309fi
13310echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13311echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13312
13313if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13314    case $lt_prog_compiler_pic_F77 in
13315     "" | " "*) ;;
13316     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13317     esac
13318else
13319    lt_prog_compiler_pic_F77=
13320     lt_prog_compiler_can_build_shared_F77=no
13321fi
13322
13323fi
13324case "$host_os" in
13325  # For platforms which do not support PIC, -DPIC is meaningless:
13326  *djgpp*)
13327    lt_prog_compiler_pic_F77=
13328    ;;
13329  *)
13330    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13331    ;;
13332esac
13333
13334echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13335echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13336if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13337  echo $ECHO_N "(cached) $ECHO_C" >&6
13338else
13339  lt_cv_prog_compiler_c_o_F77=no
13340   $rm -r conftest 2>/dev/null
13341   mkdir conftest
13342   cd conftest
13343   mkdir out
13344   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13345
13346   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13347   # that will create temporary files in the current directory regardless of
13348   # the output directory.  Thus, making CWD read-only will cause this test
13349   # to fail, enabling locking or at least warning the user not to do parallel
13350   # builds.
13351   chmod -w .
13352
13353   lt_compiler_flag="-o out/conftest2.$ac_objext"
13354   # Insert the option either (1) after the last *FLAGS variable, or
13355   # (2) before a word containing "conftest.", or (3) at the end.
13356   # Note that $ac_compile itself does not contain backslashes and begins
13357   # with a dollar sign (not a hyphen), so the echo should work correctly.
13358   lt_compile=`echo "$ac_compile" | $SED \
13359   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13360   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13361   -e 's:$: $lt_compiler_flag:'`
13362   (eval echo "\"\$as_me:13362: $lt_compile\"" >&5)
13363   (eval "$lt_compile" 2>out/conftest.err)
13364   ac_status=$?
13365   cat out/conftest.err >&5
13366   echo "$as_me:13366: \$? = $ac_status" >&5
13367   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13368   then
13369     # The compiler can only warn and ignore the option if not recognized
13370     # So say no if there are warnings
13371     if test ! -s out/conftest.err; then
13372       lt_cv_prog_compiler_c_o_F77=yes
13373     fi
13374   fi
13375   chmod u+w .
13376   $rm conftest*
13377   # SGI C++ compiler will create directory out/ii_files/ for
13378   # template instantiation
13379   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13380   $rm out/* && rmdir out
13381   cd ..
13382   rmdir conftest
13383   $rm conftest*
13384
13385fi
13386echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13387echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13388
13389
13390hard_links="nottested"
13391if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13392  # do not overwrite the value of need_locks provided by the user
13393  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13394echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13395  hard_links=yes
13396  $rm conftest*
13397  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13398  touch conftest.a
13399  ln conftest.a conftest.b 2>&5 || hard_links=no
13400  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13401  echo "$as_me:$LINENO: result: $hard_links" >&5
13402echo "${ECHO_T}$hard_links" >&6
13403  if test "$hard_links" = no; then
13404    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13405echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13406    need_locks=warn
13407  fi
13408else
13409  need_locks=no
13410fi
13411
13412echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13413echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13414
13415  runpath_var=
13416  allow_undefined_flag_F77=
13417  enable_shared_with_static_runtimes_F77=no
13418  archive_cmds_F77=
13419  archive_expsym_cmds_F77=
13420  old_archive_From_new_cmds_F77=
13421  old_archive_from_expsyms_cmds_F77=
13422  export_dynamic_flag_spec_F77=
13423  whole_archive_flag_spec_F77=
13424  thread_safe_flag_spec_F77=
13425  hardcode_libdir_flag_spec_F77=
13426  hardcode_libdir_flag_spec_ld_F77=
13427  hardcode_libdir_separator_F77=
13428  hardcode_direct_F77=no
13429  hardcode_minus_L_F77=no
13430  hardcode_shlibpath_var_F77=unsupported
13431  link_all_deplibs_F77=unknown
13432  hardcode_automatic_F77=no
13433  module_cmds_F77=
13434  module_expsym_cmds_F77=
13435  always_export_symbols_F77=no
13436  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13437  # include_expsyms should be a list of space-separated symbols to be *always*
13438  # included in the symbol list
13439  include_expsyms_F77=
13440  # exclude_expsyms can be an extended regexp of symbols to exclude
13441  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13442  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13443  # as well as any symbol that contains `d'.
13444  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13445  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13446  # platforms (ab)use it in PIC code, but their linkers get confused if
13447  # the symbol is explicitly referenced.  Since portable code cannot
13448  # rely on this symbol name, it's probably fine to never include it in
13449  # preloaded symbol tables.
13450  extract_expsyms_cmds=
13451
13452  case $host_os in
13453  cygwin* | mingw* | pw32*)
13454    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13455    # When not using gcc, we currently assume that we are using
13456    # Microsoft Visual C++.
13457    if test "$GCC" != yes; then
13458      with_gnu_ld=no
13459    fi
13460    ;;
13461  openbsd*)
13462    with_gnu_ld=no
13463    ;;
13464  esac
13465
13466  ld_shlibs_F77=yes
13467  if test "$with_gnu_ld" = yes; then
13468    # If archive_cmds runs LD, not CC, wlarc should be empty
13469    wlarc='${wl}'
13470
13471    # See if GNU ld supports shared libraries.
13472    case $host_os in
13473    aix3* | aix4* | aix5*)
13474      # On AIX/PPC, the GNU linker is very broken
13475      if test "$host_cpu" != ia64; then
13476	ld_shlibs_F77=no
13477	cat <<EOF 1>&2
13478
13479*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13480*** to be unable to reliably create shared libraries on AIX.
13481*** Therefore, libtool is disabling shared libraries support.  If you
13482*** really care for shared libraries, you may want to modify your PATH
13483*** so that a non-GNU linker is found, and then restart.
13484
13485EOF
13486      fi
13487      ;;
13488
13489    amigaos*)
13490      archive_cmds_F77='$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)'
13491      hardcode_libdir_flag_spec_F77='-L$libdir'
13492      hardcode_minus_L_F77=yes
13493
13494      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13495      # that the semantics of dynamic libraries on AmigaOS, at least up
13496      # to version 4, is to share data among multiple programs linked
13497      # with the same dynamic library.  Since this doesn't match the
13498      # behavior of shared libraries on other platforms, we can't use
13499      # them.
13500      ld_shlibs_F77=no
13501      ;;
13502
13503    beos*)
13504      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13505	allow_undefined_flag_F77=unsupported
13506	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13507	# support --undefined.  This deserves some investigation.  FIXME
13508	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13509      else
13510	ld_shlibs_F77=no
13511      fi
13512      ;;
13513
13514    cygwin* | mingw* | pw32*)
13515      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13516      # as there is no search path for DLLs.
13517      hardcode_libdir_flag_spec_F77='-L$libdir'
13518      allow_undefined_flag_F77=unsupported
13519      always_export_symbols_F77=no
13520      enable_shared_with_static_runtimes_F77=yes
13521      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13522
13523      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13524        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13525	# If the export-symbols file already is a .def file (1st line
13526	# is EXPORTS), use it as is; otherwise, prepend...
13527	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13528	  cp $export_symbols $output_objdir/$soname.def;
13529	else
13530	  echo EXPORTS > $output_objdir/$soname.def;
13531	  cat $export_symbols >> $output_objdir/$soname.def;
13532	fi~
13533	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13534      else
13535	ld_shlibs=no
13536      fi
13537      ;;
13538
13539    netbsd*)
13540      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13541	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13542	wlarc=
13543      else
13544	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13545	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13546      fi
13547      ;;
13548
13549    solaris* | sysv5*)
13550      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13551	ld_shlibs_F77=no
13552	cat <<EOF 1>&2
13553
13554*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13555*** create shared libraries on Solaris systems.  Therefore, libtool
13556*** is disabling shared libraries support.  We urge you to upgrade GNU
13557*** binutils to release 2.9.1 or newer.  Another option is to modify
13558*** your PATH or compiler configuration so that the native linker is
13559*** used, and then restart.
13560
13561EOF
13562      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13563	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13564	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13565      else
13566	ld_shlibs_F77=no
13567      fi
13568      ;;
13569
13570    sunos4*)
13571      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13572      wlarc=
13573      hardcode_direct_F77=yes
13574      hardcode_shlibpath_var_F77=no
13575      ;;
13576
13577  linux*)
13578    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13579        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13580	archive_cmds_F77="$tmp_archive_cmds"
13581      supports_anon_versioning=no
13582      case `$LD -v 2>/dev/null` in
13583        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13584        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13585        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13586        *\ 2.11.*) ;; # other 2.11 versions
13587        *) supports_anon_versioning=yes ;;
13588      esac
13589      if test $supports_anon_versioning = yes; then
13590        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13591cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13592$echo "local: *; };" >> $output_objdir/$libname.ver~
13593        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13594      else
13595        archive_expsym_cmds_F77="$tmp_archive_cmds"
13596      fi
13597    else
13598      ld_shlibs_F77=no
13599    fi
13600    ;;
13601
13602    *)
13603      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13604	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13605	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13606      else
13607	ld_shlibs_F77=no
13608      fi
13609      ;;
13610    esac
13611
13612    if test "$ld_shlibs_F77" = yes; then
13613      runpath_var=LD_RUN_PATH
13614      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13615      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13616      # ancient GNU ld didn't support --whole-archive et. al.
13617      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13618 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13619      else
13620  	whole_archive_flag_spec_F77=
13621      fi
13622    fi
13623  else
13624    # PORTME fill in a description of your system's linker (not GNU ld)
13625    case $host_os in
13626    aix3*)
13627      allow_undefined_flag_F77=unsupported
13628      always_export_symbols_F77=yes
13629      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13630      # Note: this linker hardcodes the directories in LIBPATH if there
13631      # are no directories specified by -L.
13632      hardcode_minus_L_F77=yes
13633      if test "$GCC" = yes && test -z "$link_static_flag"; then
13634	# Neither direct hardcoding nor static linking is supported with a
13635	# broken collect2.
13636	hardcode_direct_F77=unsupported
13637      fi
13638      ;;
13639
13640    aix4* | aix5*)
13641      if test "$host_cpu" = ia64; then
13642	# On IA64, the linker does run time linking by default, so we don't
13643	# have to do anything special.
13644	aix_use_runtimelinking=no
13645	exp_sym_flag='-Bexport'
13646	no_entry_flag=""
13647      else
13648	# If we're using GNU nm, then we don't want the "-C" option.
13649	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13650	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13651	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13652	else
13653	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13654	fi
13655	aix_use_runtimelinking=no
13656
13657	# Test if we are trying to use run time linking or normal
13658	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13659	# need to do runtime linking.
13660	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13661	  for ld_flag in $LDFLAGS; do
13662  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13663  	    aix_use_runtimelinking=yes
13664  	    break
13665  	  fi
13666	  done
13667	esac
13668
13669	exp_sym_flag='-bexport'
13670	no_entry_flag='-bnoentry'
13671      fi
13672
13673      # When large executables or shared objects are built, AIX ld can
13674      # have problems creating the table of contents.  If linking a library
13675      # or program results in "error TOC overflow" add -mminimal-toc to
13676      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13677      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13678
13679      archive_cmds_F77=''
13680      hardcode_direct_F77=yes
13681      hardcode_libdir_separator_F77=':'
13682      link_all_deplibs_F77=yes
13683
13684      if test "$GCC" = yes; then
13685	case $host_os in aix4.012|aix4.012.*)
13686	# We only want to do this on AIX 4.2 and lower, the check
13687	# below for broken collect2 doesn't work under 4.3+
13688	  collect2name=`${CC} -print-prog-name=collect2`
13689	  if test -f "$collect2name" && \
13690  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13691	  then
13692  	  # We have reworked collect2
13693  	  hardcode_direct_F77=yes
13694	  else
13695  	  # We have old collect2
13696  	  hardcode_direct_F77=unsupported
13697  	  # It fails to find uninstalled libraries when the uninstalled
13698  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13699  	  # to unsupported forces relinking
13700  	  hardcode_minus_L_F77=yes
13701  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13702  	  hardcode_libdir_separator_F77=
13703	  fi
13704	esac
13705	shared_flag='-shared'
13706      else
13707	# not using gcc
13708	if test "$host_cpu" = ia64; then
13709  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13710  	# chokes on -Wl,-G. The following line is correct:
13711	  shared_flag='-G'
13712	else
13713  	if test "$aix_use_runtimelinking" = yes; then
13714	    shared_flag='${wl}-G'
13715	  else
13716	    shared_flag='${wl}-bM:SRE'
13717  	fi
13718	fi
13719      fi
13720
13721      # It seems that -bexpall does not export symbols beginning with
13722      # underscore (_), so it is better to generate a list of symbols to export.
13723      always_export_symbols_F77=yes
13724      if test "$aix_use_runtimelinking" = yes; then
13725	# Warning - without using the other runtime loading flags (-brtl),
13726	# -berok will link without error, but may produce a broken library.
13727	allow_undefined_flag_F77='-berok'
13728       # Determine the default libpath from the value encoded in an empty executable.
13729       cat >conftest.$ac_ext <<_ACEOF
13730      program main
13731
13732      end
13733_ACEOF
13734rm -f conftest.$ac_objext conftest$ac_exeext
13735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736  (eval $ac_link) 2>conftest.er1
13737  ac_status=$?
13738  grep -v '^ *+' conftest.er1 >conftest.err
13739  rm -f conftest.er1
13740  cat conftest.err >&5
13741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742  (exit $ac_status); } &&
13743	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745  (eval $ac_try) 2>&5
13746  ac_status=$?
13747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748  (exit $ac_status); }; } &&
13749	 { ac_try='test -s conftest$ac_exeext'
13750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751  (eval $ac_try) 2>&5
13752  ac_status=$?
13753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754  (exit $ac_status); }; }; then
13755
13756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13757}'`
13758# Check for a 64-bit object if we didn't find anything.
13759if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13760}'`; fi
13761else
13762  echo "$as_me: failed program was:" >&5
13763sed 's/^/| /' conftest.$ac_ext >&5
13764
13765fi
13766rm -f conftest.err conftest.$ac_objext \
13767      conftest$ac_exeext conftest.$ac_ext
13768if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13769
13770       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13771	archive_expsym_cmds_F77="\$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"
13772       else
13773	if test "$host_cpu" = ia64; then
13774	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13775	  allow_undefined_flag_F77="-z nodefs"
13776	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13777	else
13778	 # Determine the default libpath from the value encoded in an empty executable.
13779	 cat >conftest.$ac_ext <<_ACEOF
13780      program main
13781
13782      end
13783_ACEOF
13784rm -f conftest.$ac_objext conftest$ac_exeext
13785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13786  (eval $ac_link) 2>conftest.er1
13787  ac_status=$?
13788  grep -v '^ *+' conftest.er1 >conftest.err
13789  rm -f conftest.er1
13790  cat conftest.err >&5
13791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792  (exit $ac_status); } &&
13793	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795  (eval $ac_try) 2>&5
13796  ac_status=$?
13797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798  (exit $ac_status); }; } &&
13799	 { ac_try='test -s conftest$ac_exeext'
13800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801  (eval $ac_try) 2>&5
13802  ac_status=$?
13803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804  (exit $ac_status); }; }; then
13805
13806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13807}'`
13808# Check for a 64-bit object if we didn't find anything.
13809if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13810}'`; fi
13811else
13812  echo "$as_me: failed program was:" >&5
13813sed 's/^/| /' conftest.$ac_ext >&5
13814
13815fi
13816rm -f conftest.err conftest.$ac_objext \
13817      conftest$ac_exeext conftest.$ac_ext
13818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13819
13820	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13821	  # Warning - without using the other run time loading flags,
13822	  # -berok will link without error, but may produce a broken library.
13823	  no_undefined_flag_F77=' ${wl}-bernotok'
13824	  allow_undefined_flag_F77=' ${wl}-berok'
13825	  # -bexpall does not export symbols beginning with underscore (_)
13826	  always_export_symbols_F77=yes
13827	  # Exported symbols can be pulled into shared objects from archives
13828	  whole_archive_flag_spec_F77=' '
13829	  archive_cmds_need_lc_F77=yes
13830	  # This is similar to how AIX traditionally builds it's shared libraries.
13831	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13832	fi
13833      fi
13834      ;;
13835
13836    amigaos*)
13837      archive_cmds_F77='$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)'
13838      hardcode_libdir_flag_spec_F77='-L$libdir'
13839      hardcode_minus_L_F77=yes
13840      # see comment about different semantics on the GNU ld section
13841      ld_shlibs_F77=no
13842      ;;
13843
13844    bsdi4*)
13845      export_dynamic_flag_spec_F77=-rdynamic
13846      ;;
13847
13848    cygwin* | mingw* | pw32*)
13849      # When not using gcc, we currently assume that we are using
13850      # Microsoft Visual C++.
13851      # hardcode_libdir_flag_spec is actually meaningless, as there is
13852      # no search path for DLLs.
13853      hardcode_libdir_flag_spec_F77=' '
13854      allow_undefined_flag_F77=unsupported
13855      # Tell ltmain to make .lib files, not .a files.
13856      libext=lib
13857      # Tell ltmain to make .dll files, not .so files.
13858      shrext=".dll"
13859      # FIXME: Setting linknames here is a bad hack.
13860      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13861      # The linker will automatically build a .lib file if we build a DLL.
13862      old_archive_From_new_cmds_F77='true'
13863      # FIXME: Should let the user specify the lib program.
13864      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13865      fix_srcfile_path='`cygpath -w "$srcfile"`'
13866      enable_shared_with_static_runtimes_F77=yes
13867      ;;
13868
13869    darwin* | rhapsody*)
13870    if test "$GXX" = yes ; then
13871      archive_cmds_need_lc_F77=no
13872      case "$host_os" in
13873      rhapsody* | darwin1.[012])
13874	allow_undefined_flag_F77='-undefined suppress'
13875	;;
13876      *) # Darwin 1.3 on
13877      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13878      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13879      else
13880        case ${MACOSX_DEPLOYMENT_TARGET} in
13881          10.[012])
13882            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13883            ;;
13884          10.*)
13885            allow_undefined_flag_F77='-undefined dynamic_lookup'
13886            ;;
13887        esac
13888      fi
13889	;;
13890      esac
13891    	lt_int_apple_cc_single_mod=no
13892    	output_verbose_link_cmd='echo'
13893    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13894    	  lt_int_apple_cc_single_mod=yes
13895    	fi
13896    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13897    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13898    	else
13899        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13900      fi
13901      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13902      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13903        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13904          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13905        else
13906          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13907        fi
13908          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13909      hardcode_direct_F77=no
13910      hardcode_automatic_F77=yes
13911      hardcode_shlibpath_var_F77=unsupported
13912      whole_archive_flag_spec_F77='-all_load $convenience'
13913      link_all_deplibs_F77=yes
13914    else
13915      ld_shlibs_F77=no
13916    fi
13917      ;;
13918
13919    dgux*)
13920      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13921      hardcode_libdir_flag_spec_F77='-L$libdir'
13922      hardcode_shlibpath_var_F77=no
13923      ;;
13924
13925    freebsd1*)
13926      ld_shlibs_F77=no
13927      ;;
13928
13929    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13930    # support.  Future versions do this automatically, but an explicit c++rt0.o
13931    # does not break anything, and helps significantly (at the cost of a little
13932    # extra space).
13933    freebsd2.2*)
13934      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13935      hardcode_libdir_flag_spec_F77='-R$libdir'
13936      hardcode_direct_F77=yes
13937      hardcode_shlibpath_var_F77=no
13938      ;;
13939
13940    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13941    freebsd2*)
13942      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13943      hardcode_direct_F77=yes
13944      hardcode_minus_L_F77=yes
13945      hardcode_shlibpath_var_F77=no
13946      ;;
13947
13948    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13949    freebsd* | kfreebsd*-gnu)
13950      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13951      hardcode_libdir_flag_spec_F77='-R$libdir'
13952      hardcode_direct_F77=yes
13953      hardcode_shlibpath_var_F77=no
13954      ;;
13955
13956    hpux9*)
13957      if test "$GCC" = yes; then
13958	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13959      else
13960	archive_cmds_F77='$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'
13961      fi
13962      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13963      hardcode_libdir_separator_F77=:
13964      hardcode_direct_F77=yes
13965
13966      # hardcode_minus_L: Not really in the search PATH,
13967      # but as the default location of the library.
13968      hardcode_minus_L_F77=yes
13969      export_dynamic_flag_spec_F77='${wl}-E'
13970      ;;
13971
13972    hpux10* | hpux11*)
13973      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13974	case "$host_cpu" in
13975	hppa*64*|ia64*)
13976	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13977	  ;;
13978	*)
13979	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13980	  ;;
13981	esac
13982      else
13983	case "$host_cpu" in
13984	hppa*64*|ia64*)
13985	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13986	  ;;
13987	*)
13988	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13989	  ;;
13990	esac
13991      fi
13992      if test "$with_gnu_ld" = no; then
13993	case "$host_cpu" in
13994	hppa*64*)
13995	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13996	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13997	  hardcode_libdir_separator_F77=:
13998	  hardcode_direct_F77=no
13999	  hardcode_shlibpath_var_F77=no
14000	  ;;
14001	ia64*)
14002	  hardcode_libdir_flag_spec_F77='-L$libdir'
14003	  hardcode_direct_F77=no
14004	  hardcode_shlibpath_var_F77=no
14005
14006	  # hardcode_minus_L: Not really in the search PATH,
14007	  # but as the default location of the library.
14008	  hardcode_minus_L_F77=yes
14009	  ;;
14010	*)
14011	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14012	  hardcode_libdir_separator_F77=:
14013	  hardcode_direct_F77=yes
14014	  export_dynamic_flag_spec_F77='${wl}-E'
14015
14016	  # hardcode_minus_L: Not really in the search PATH,
14017	  # but as the default location of the library.
14018	  hardcode_minus_L_F77=yes
14019	  ;;
14020	esac
14021      fi
14022      ;;
14023
14024    irix5* | irix6* | nonstopux*)
14025      if test "$GCC" = yes; then
14026	archive_cmds_F77='$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'
14027      else
14028	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14029	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14030      fi
14031      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14032      hardcode_libdir_separator_F77=:
14033      link_all_deplibs_F77=yes
14034      ;;
14035
14036    netbsd*)
14037      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14038	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14039      else
14040	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14041      fi
14042      hardcode_libdir_flag_spec_F77='-R$libdir'
14043      hardcode_direct_F77=yes
14044      hardcode_shlibpath_var_F77=no
14045      ;;
14046
14047    newsos6)
14048      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14049      hardcode_direct_F77=yes
14050      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14051      hardcode_libdir_separator_F77=:
14052      hardcode_shlibpath_var_F77=no
14053      ;;
14054
14055    openbsd*)
14056      hardcode_direct_F77=yes
14057      hardcode_shlibpath_var_F77=no
14058      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14059	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14060	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14061	export_dynamic_flag_spec_F77='${wl}-E'
14062      else
14063       case $host_os in
14064	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14065	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14066	   hardcode_libdir_flag_spec_F77='-R$libdir'
14067	   ;;
14068	 *)
14069	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14070	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14071	   ;;
14072       esac
14073      fi
14074      ;;
14075
14076    os2*)
14077      hardcode_libdir_flag_spec_F77='-L$libdir'
14078      hardcode_minus_L_F77=yes
14079      allow_undefined_flag_F77=unsupported
14080      archive_cmds_F77='$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'
14081      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14082      ;;
14083
14084    osf3*)
14085      if test "$GCC" = yes; then
14086	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14087	archive_cmds_F77='$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'
14088      else
14089	allow_undefined_flag_F77=' -expect_unresolved \*'
14090	archive_cmds_F77='$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'
14091      fi
14092      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14093      hardcode_libdir_separator_F77=:
14094      ;;
14095
14096    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14097      if test "$GCC" = yes; then
14098	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14099	archive_cmds_F77='$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'
14100	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14101      else
14102	allow_undefined_flag_F77=' -expect_unresolved \*'
14103	archive_cmds_F77='$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'
14104	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14105	$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'
14106
14107	# Both c and cxx compiler support -rpath directly
14108	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14109      fi
14110      hardcode_libdir_separator_F77=:
14111      ;;
14112
14113    sco3.2v5*)
14114      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14115      hardcode_shlibpath_var_F77=no
14116      export_dynamic_flag_spec_F77='${wl}-Bexport'
14117      runpath_var=LD_RUN_PATH
14118      hardcode_runpath_var=yes
14119      ;;
14120
14121    solaris*)
14122      no_undefined_flag_F77=' -z text'
14123      if test "$GCC" = yes; then
14124	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14125	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14126	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14127      else
14128	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14129	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14130  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14131      fi
14132      hardcode_libdir_flag_spec_F77='-R$libdir'
14133      hardcode_shlibpath_var_F77=no
14134      case $host_os in
14135      solaris2.[0-5] | solaris2.[0-5].*) ;;
14136      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14137	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14138      esac
14139      link_all_deplibs_F77=yes
14140      ;;
14141
14142    sunos4*)
14143      if test "x$host_vendor" = xsequent; then
14144	# Use $CC to link under sequent, because it throws in some extra .o
14145	# files that make .init and .fini sections work.
14146	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14147      else
14148	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14149      fi
14150      hardcode_libdir_flag_spec_F77='-L$libdir'
14151      hardcode_direct_F77=yes
14152      hardcode_minus_L_F77=yes
14153      hardcode_shlibpath_var_F77=no
14154      ;;
14155
14156    sysv4)
14157      case $host_vendor in
14158	sni)
14159	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14160	  hardcode_direct_F77=yes # is this really true???
14161	;;
14162	siemens)
14163	  ## LD is ld it makes a PLAMLIB
14164	  ## CC just makes a GrossModule.
14165	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14166	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14167	  hardcode_direct_F77=no
14168        ;;
14169	motorola)
14170	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14171	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14172	;;
14173      esac
14174      runpath_var='LD_RUN_PATH'
14175      hardcode_shlibpath_var_F77=no
14176      ;;
14177
14178    sysv4.3*)
14179      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14180      hardcode_shlibpath_var_F77=no
14181      export_dynamic_flag_spec_F77='-Bexport'
14182      ;;
14183
14184    sysv4*MP*)
14185      if test -d /usr/nec; then
14186	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14187	hardcode_shlibpath_var_F77=no
14188	runpath_var=LD_RUN_PATH
14189	hardcode_runpath_var=yes
14190	ld_shlibs_F77=yes
14191      fi
14192      ;;
14193
14194    sysv4.2uw2*)
14195      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14196      hardcode_direct_F77=yes
14197      hardcode_minus_L_F77=no
14198      hardcode_shlibpath_var_F77=no
14199      hardcode_runpath_var=yes
14200      runpath_var=LD_RUN_PATH
14201      ;;
14202
14203   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14204      no_undefined_flag_F77='${wl}-z ${wl}text'
14205      if test "$GCC" = yes; then
14206	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14207      else
14208	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14209      fi
14210      runpath_var='LD_RUN_PATH'
14211      hardcode_shlibpath_var_F77=no
14212      ;;
14213
14214    sysv5*)
14215      no_undefined_flag_F77=' -z text'
14216      # $CC -shared without GNU ld will not create a library from C++
14217      # object files and a static libstdc++, better avoid it by now
14218      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14219      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14220  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14221      hardcode_libdir_flag_spec_F77=
14222      hardcode_shlibpath_var_F77=no
14223      runpath_var='LD_RUN_PATH'
14224      ;;
14225
14226    uts4*)
14227      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14228      hardcode_libdir_flag_spec_F77='-L$libdir'
14229      hardcode_shlibpath_var_F77=no
14230      ;;
14231
14232    *)
14233      ld_shlibs_F77=no
14234      ;;
14235    esac
14236  fi
14237
14238echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14239echo "${ECHO_T}$ld_shlibs_F77" >&6
14240test "$ld_shlibs_F77" = no && can_build_shared=no
14241
14242variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14243if test "$GCC" = yes; then
14244  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14245fi
14246
14247#
14248# Do we need to explicitly link libc?
14249#
14250case "x$archive_cmds_need_lc_F77" in
14251x|xyes)
14252  # Assume -lc should be added
14253  archive_cmds_need_lc_F77=yes
14254
14255  if test "$enable_shared" = yes && test "$GCC" = yes; then
14256    case $archive_cmds_F77 in
14257    *'~'*)
14258      # FIXME: we may have to deal with multi-command sequences.
14259      ;;
14260    '$CC '*)
14261      # Test whether the compiler implicitly links with -lc since on some
14262      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14263      # to ld, don't add -lc before -lgcc.
14264      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14265echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14266      $rm conftest*
14267      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14268
14269      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270  (eval $ac_compile) 2>&5
14271  ac_status=$?
14272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273  (exit $ac_status); } 2>conftest.err; then
14274        soname=conftest
14275        lib=conftest
14276        libobjs=conftest.$ac_objext
14277        deplibs=
14278        wl=$lt_prog_compiler_wl_F77
14279        compiler_flags=-v
14280        linker_flags=-v
14281        verstring=
14282        output_objdir=.
14283        libname=conftest
14284        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14285        allow_undefined_flag_F77=
14286        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14287  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14288  ac_status=$?
14289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290  (exit $ac_status); }
14291        then
14292	  archive_cmds_need_lc_F77=no
14293        else
14294	  archive_cmds_need_lc_F77=yes
14295        fi
14296        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14297      else
14298        cat conftest.err 1>&5
14299      fi
14300      $rm conftest*
14301      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14302echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14303      ;;
14304    esac
14305  fi
14306  ;;
14307esac
14308
14309echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14310echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14311library_names_spec=
14312libname_spec='lib$name'
14313soname_spec=
14314shrext=".so"
14315postinstall_cmds=
14316postuninstall_cmds=
14317finish_cmds=
14318finish_eval=
14319shlibpath_var=
14320shlibpath_overrides_runpath=unknown
14321version_type=none
14322dynamic_linker="$host_os ld.so"
14323sys_lib_dlsearch_path_spec="/lib /usr/lib"
14324if test "$GCC" = yes; then
14325  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14326  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14327    # if the path contains ";" then we assume it to be the separator
14328    # otherwise default to the standard path separator (i.e. ":") - it is
14329    # assumed that no part of a normal pathname contains ";" but that should
14330    # okay in the real world where ";" in dirpaths is itself problematic.
14331    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14332  else
14333    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14334  fi
14335else
14336  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14337fi
14338need_lib_prefix=unknown
14339hardcode_into_libs=no
14340
14341# when you set need_version to no, make sure it does not cause -set_version
14342# flags to be left without arguments
14343need_version=unknown
14344
14345case $host_os in
14346aix3*)
14347  version_type=linux
14348  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14349  shlibpath_var=LIBPATH
14350
14351  # AIX 3 has no versioning support, so we append a major version to the name.
14352  soname_spec='${libname}${release}${shared_ext}$major'
14353  ;;
14354
14355aix4* | aix5*)
14356  version_type=linux
14357  need_lib_prefix=no
14358  need_version=no
14359  hardcode_into_libs=yes
14360  if test "$host_cpu" = ia64; then
14361    # AIX 5 supports IA64
14362    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14363    shlibpath_var=LD_LIBRARY_PATH
14364  else
14365    # With GCC up to 2.95.x, collect2 would create an import file
14366    # for dependence libraries.  The import file would start with
14367    # the line `#! .'.  This would cause the generated library to
14368    # depend on `.', always an invalid library.  This was fixed in
14369    # development snapshots of GCC prior to 3.0.
14370    case $host_os in
14371      aix4 | aix4.[01] | aix4.[01].*)
14372      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14373	   echo ' yes '
14374	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14375	:
14376      else
14377	can_build_shared=no
14378      fi
14379      ;;
14380    esac
14381    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14382    # soname into executable. Probably we can add versioning support to
14383    # collect2, so additional links can be useful in future.
14384    if test "$aix_use_runtimelinking" = yes; then
14385      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14386      # instead of lib<name>.a to let people know that these are not
14387      # typical AIX shared libraries.
14388      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389    else
14390      # We preserve .a as extension for shared libraries through AIX4.2
14391      # and later when we are not doing run time linking.
14392      library_names_spec='${libname}${release}.a $libname.a'
14393      soname_spec='${libname}${release}${shared_ext}$major'
14394    fi
14395    shlibpath_var=LIBPATH
14396  fi
14397  ;;
14398
14399amigaos*)
14400  library_names_spec='$libname.ixlibrary $libname.a'
14401  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14402  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'
14403  ;;
14404
14405beos*)
14406  library_names_spec='${libname}${shared_ext}'
14407  dynamic_linker="$host_os ld.so"
14408  shlibpath_var=LIBRARY_PATH
14409  ;;
14410
14411bsdi4*)
14412  version_type=linux
14413  need_version=no
14414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14415  soname_spec='${libname}${release}${shared_ext}$major'
14416  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14417  shlibpath_var=LD_LIBRARY_PATH
14418  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14419  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14420  # the default ld.so.conf also contains /usr/contrib/lib and
14421  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14422  # libtool to hard-code these into programs
14423  ;;
14424
14425cygwin* | mingw* | pw32*)
14426  version_type=windows
14427  shrext=".dll"
14428  need_version=no
14429  need_lib_prefix=no
14430
14431  case $GCC,$host_os in
14432  yes,cygwin* | yes,mingw* | yes,pw32*)
14433    library_names_spec='$libname.dll.a'
14434    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14435    postinstall_cmds='base_file=`basename \${file}`~
14436      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14437      dldir=$destdir/`dirname \$dlpath`~
14438      test -d \$dldir || mkdir -p \$dldir~
14439      $install_prog $dir/$dlname \$dldir/$dlname'
14440    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14441      dlpath=$dir/\$dldll~
14442       $rm \$dlpath'
14443    shlibpath_overrides_runpath=yes
14444
14445    case $host_os in
14446    cygwin*)
14447      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14448      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14449      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14450      ;;
14451    mingw*)
14452      # MinGW DLLs use traditional 'lib' prefix
14453      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14454      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14455      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14456        # It is most probably a Windows format PATH printed by
14457        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14458        # path with ; separators, and with drive letters. We can handle the
14459        # drive letters (cygwin fileutils understands them), so leave them,
14460        # especially as we might pass files found there to a mingw objdump,
14461        # which wouldn't understand a cygwinified path. Ahh.
14462        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14463      else
14464        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14465      fi
14466      ;;
14467    pw32*)
14468      # pw32 DLLs use 'pw' prefix rather than 'lib'
14469      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14470      ;;
14471    esac
14472    ;;
14473
14474  *)
14475    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14476    ;;
14477  esac
14478  dynamic_linker='Win32 ld.exe'
14479  # FIXME: first we should search . and the directory the executable is in
14480  shlibpath_var=PATH
14481  ;;
14482
14483darwin* | rhapsody*)
14484  dynamic_linker="$host_os dyld"
14485  version_type=darwin
14486  need_lib_prefix=no
14487  need_version=no
14488  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14489  soname_spec='${libname}${release}${major}$shared_ext'
14490  shlibpath_overrides_runpath=yes
14491  shlibpath_var=DYLD_LIBRARY_PATH
14492  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14493  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14494  if test "$GCC" = yes; then
14495    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14496  else
14497    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14498  fi
14499  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14500  ;;
14501
14502dgux*)
14503  version_type=linux
14504  need_lib_prefix=no
14505  need_version=no
14506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14507  soname_spec='${libname}${release}${shared_ext}$major'
14508  shlibpath_var=LD_LIBRARY_PATH
14509  ;;
14510
14511freebsd1*)
14512  dynamic_linker=no
14513  ;;
14514
14515kfreebsd*-gnu)
14516  version_type=linux
14517  need_lib_prefix=no
14518  need_version=no
14519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14520  soname_spec='${libname}${release}${shared_ext}$major'
14521  shlibpath_var=LD_LIBRARY_PATH
14522  shlibpath_overrides_runpath=no
14523  hardcode_into_libs=yes
14524  dynamic_linker='GNU ld.so'
14525  ;;
14526
14527freebsd*)
14528  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14529  version_type=freebsd-$objformat
14530  case $version_type in
14531    freebsd-elf*)
14532      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14533      need_version=no
14534      need_lib_prefix=no
14535      ;;
14536    freebsd-*)
14537      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14538      need_version=yes
14539      ;;
14540  esac
14541  shlibpath_var=LD_LIBRARY_PATH
14542  case $host_os in
14543  freebsd2*)
14544    shlibpath_overrides_runpath=yes
14545    ;;
14546  freebsd3.01* | freebsdelf3.01*)
14547    shlibpath_overrides_runpath=yes
14548    hardcode_into_libs=yes
14549    ;;
14550  *) # from 3.2 on
14551    shlibpath_overrides_runpath=no
14552    hardcode_into_libs=yes
14553    ;;
14554  esac
14555  ;;
14556
14557gnu*)
14558  version_type=linux
14559  need_lib_prefix=no
14560  need_version=no
14561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14562  soname_spec='${libname}${release}${shared_ext}$major'
14563  shlibpath_var=LD_LIBRARY_PATH
14564  hardcode_into_libs=yes
14565  ;;
14566
14567hpux9* | hpux10* | hpux11*)
14568  # Give a soname corresponding to the major version so that dld.sl refuses to
14569  # link against other versions.
14570  version_type=sunos
14571  need_lib_prefix=no
14572  need_version=no
14573  case "$host_cpu" in
14574  ia64*)
14575    shrext='.so'
14576    hardcode_into_libs=yes
14577    dynamic_linker="$host_os dld.so"
14578    shlibpath_var=LD_LIBRARY_PATH
14579    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14580    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581    soname_spec='${libname}${release}${shared_ext}$major'
14582    if test "X$HPUX_IA64_MODE" = X32; then
14583      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14584    else
14585      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14586    fi
14587    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14588    ;;
14589   hppa*64*)
14590     shrext='.sl'
14591     hardcode_into_libs=yes
14592     dynamic_linker="$host_os dld.sl"
14593     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14594     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596     soname_spec='${libname}${release}${shared_ext}$major'
14597     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14598     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14599     ;;
14600   *)
14601    shrext='.sl'
14602    dynamic_linker="$host_os dld.sl"
14603    shlibpath_var=SHLIB_PATH
14604    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14605    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606    soname_spec='${libname}${release}${shared_ext}$major'
14607    ;;
14608  esac
14609  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14610  postinstall_cmds='chmod 555 $lib'
14611  ;;
14612
14613irix5* | irix6* | nonstopux*)
14614  case $host_os in
14615    nonstopux*) version_type=nonstopux ;;
14616    *)
14617	if test "$lt_cv_prog_gnu_ld" = yes; then
14618		version_type=linux
14619	else
14620		version_type=irix
14621	fi ;;
14622  esac
14623  need_lib_prefix=no
14624  need_version=no
14625  soname_spec='${libname}${release}${shared_ext}$major'
14626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14627  case $host_os in
14628  irix5* | nonstopux*)
14629    libsuff= shlibsuff=
14630    ;;
14631  *)
14632    case $LD in # libtool.m4 will add one of these switches to LD
14633    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14634      libsuff= shlibsuff= libmagic=32-bit;;
14635    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14636      libsuff=32 shlibsuff=N32 libmagic=N32;;
14637    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14638      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14639    *) libsuff= shlibsuff= libmagic=never-match;;
14640    esac
14641    ;;
14642  esac
14643  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14644  shlibpath_overrides_runpath=no
14645  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14646  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14647  hardcode_into_libs=yes
14648  ;;
14649
14650# No shared lib support for Linux oldld, aout, or coff.
14651linux*oldld* | linux*aout* | linux*coff*)
14652  dynamic_linker=no
14653  ;;
14654
14655# This must be Linux ELF.
14656linux*)
14657  version_type=linux
14658  need_lib_prefix=no
14659  need_version=no
14660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661  soname_spec='${libname}${release}${shared_ext}$major'
14662  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14663  shlibpath_var=LD_LIBRARY_PATH
14664  shlibpath_overrides_runpath=no
14665  # This implies no fast_install, which is unacceptable.
14666  # Some rework will be needed to allow for fast_install
14667  # before this can be enabled.
14668  hardcode_into_libs=yes
14669
14670  # Append ld.so.conf contents to the search path
14671  if test -f /etc/ld.so.conf; then
14672    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14673    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14674  fi
14675
14676  # We used to test for /lib/ld.so.1 and disable shared libraries on
14677  # powerpc, because MkLinux only supported shared libraries with the
14678  # GNU dynamic linker.  Since this was broken with cross compilers,
14679  # most powerpc-linux boxes support dynamic linking these days and
14680  # people can always --disable-shared, the test was removed, and we
14681  # assume the GNU/Linux dynamic linker is in use.
14682  dynamic_linker='GNU/Linux ld.so'
14683  ;;
14684
14685knetbsd*-gnu)
14686  version_type=linux
14687  need_lib_prefix=no
14688  need_version=no
14689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14690  soname_spec='${libname}${release}${shared_ext}$major'
14691  shlibpath_var=LD_LIBRARY_PATH
14692  shlibpath_overrides_runpath=no
14693  hardcode_into_libs=yes
14694  dynamic_linker='GNU ld.so'
14695  ;;
14696
14697netbsd*)
14698  version_type=sunos
14699  need_lib_prefix=no
14700  need_version=no
14701  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14702    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14703    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14704    dynamic_linker='NetBSD (a.out) ld.so'
14705  else
14706    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14707    soname_spec='${libname}${release}${shared_ext}$major'
14708    dynamic_linker='NetBSD ld.elf_so'
14709  fi
14710  shlibpath_var=LD_LIBRARY_PATH
14711  shlibpath_overrides_runpath=yes
14712  hardcode_into_libs=yes
14713  ;;
14714
14715newsos6)
14716  version_type=linux
14717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718  shlibpath_var=LD_LIBRARY_PATH
14719  shlibpath_overrides_runpath=yes
14720  ;;
14721
14722nto-qnx*)
14723  version_type=linux
14724  need_lib_prefix=no
14725  need_version=no
14726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727  soname_spec='${libname}${release}${shared_ext}$major'
14728  shlibpath_var=LD_LIBRARY_PATH
14729  shlibpath_overrides_runpath=yes
14730  ;;
14731
14732openbsd*)
14733  version_type=sunos
14734  need_lib_prefix=no
14735  need_version=yes
14736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14737  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14738  shlibpath_var=LD_LIBRARY_PATH
14739  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14740    case $host_os in
14741      openbsd2.[89] | openbsd2.[89].*)
14742	shlibpath_overrides_runpath=no
14743	;;
14744      *)
14745	shlibpath_overrides_runpath=yes
14746	;;
14747      esac
14748  else
14749    shlibpath_overrides_runpath=yes
14750  fi
14751  ;;
14752
14753os2*)
14754  libname_spec='$name'
14755  shrext=".dll"
14756  need_lib_prefix=no
14757  library_names_spec='$libname${shared_ext} $libname.a'
14758  dynamic_linker='OS/2 ld.exe'
14759  shlibpath_var=LIBPATH
14760  ;;
14761
14762osf3* | osf4* | osf5*)
14763  version_type=osf
14764  need_lib_prefix=no
14765  need_version=no
14766  soname_spec='${libname}${release}${shared_ext}$major'
14767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768  shlibpath_var=LD_LIBRARY_PATH
14769  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14770  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14771  ;;
14772
14773sco3.2v5*)
14774  version_type=osf
14775  soname_spec='${libname}${release}${shared_ext}$major'
14776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777  shlibpath_var=LD_LIBRARY_PATH
14778  ;;
14779
14780solaris*)
14781  version_type=linux
14782  need_lib_prefix=no
14783  need_version=no
14784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785  soname_spec='${libname}${release}${shared_ext}$major'
14786  shlibpath_var=LD_LIBRARY_PATH
14787  shlibpath_overrides_runpath=yes
14788  hardcode_into_libs=yes
14789  # ldd complains unless libraries are executable
14790  postinstall_cmds='chmod +x $lib'
14791  ;;
14792
14793sunos4*)
14794  version_type=sunos
14795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14796  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14797  shlibpath_var=LD_LIBRARY_PATH
14798  shlibpath_overrides_runpath=yes
14799  if test "$with_gnu_ld" = yes; then
14800    need_lib_prefix=no
14801  fi
14802  need_version=yes
14803  ;;
14804
14805sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14806  version_type=linux
14807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14808  soname_spec='${libname}${release}${shared_ext}$major'
14809  shlibpath_var=LD_LIBRARY_PATH
14810  case $host_vendor in
14811    sni)
14812      shlibpath_overrides_runpath=no
14813      need_lib_prefix=no
14814      export_dynamic_flag_spec='${wl}-Blargedynsym'
14815      runpath_var=LD_RUN_PATH
14816      ;;
14817    siemens)
14818      need_lib_prefix=no
14819      ;;
14820    motorola)
14821      need_lib_prefix=no
14822      need_version=no
14823      shlibpath_overrides_runpath=no
14824      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14825      ;;
14826  esac
14827  ;;
14828
14829sysv4*MP*)
14830  if test -d /usr/nec ;then
14831    version_type=linux
14832    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14833    soname_spec='$libname${shared_ext}.$major'
14834    shlibpath_var=LD_LIBRARY_PATH
14835  fi
14836  ;;
14837
14838uts4*)
14839  version_type=linux
14840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841  soname_spec='${libname}${release}${shared_ext}$major'
14842  shlibpath_var=LD_LIBRARY_PATH
14843  ;;
14844
14845*)
14846  dynamic_linker=no
14847  ;;
14848esac
14849echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14850echo "${ECHO_T}$dynamic_linker" >&6
14851test "$dynamic_linker" = no && can_build_shared=no
14852
14853echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14854echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14855hardcode_action_F77=
14856if test -n "$hardcode_libdir_flag_spec_F77" || \
14857   test -n "$runpath_var F77" || \
14858   test "X$hardcode_automatic_F77"="Xyes" ; then
14859
14860  # We can hardcode non-existant directories.
14861  if test "$hardcode_direct_F77" != no &&
14862     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14863     # have to relink, otherwise we might link with an installed library
14864     # when we should be linking with a yet-to-be-installed one
14865     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14866     test "$hardcode_minus_L_F77" != no; then
14867    # Linking always hardcodes the temporary library directory.
14868    hardcode_action_F77=relink
14869  else
14870    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14871    hardcode_action_F77=immediate
14872  fi
14873else
14874  # We cannot hardcode anything, or else we can only hardcode existing
14875  # directories.
14876  hardcode_action_F77=unsupported
14877fi
14878echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14879echo "${ECHO_T}$hardcode_action_F77" >&6
14880
14881if test "$hardcode_action_F77" = relink; then
14882  # Fast installation is not supported
14883  enable_fast_install=no
14884elif test "$shlibpath_overrides_runpath" = yes ||
14885     test "$enable_shared" = no; then
14886  # Fast installation is not necessary
14887  enable_fast_install=needless
14888fi
14889
14890striplib=
14891old_striplib=
14892echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14893echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14894if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14895  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14896  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14897  echo "$as_me:$LINENO: result: yes" >&5
14898echo "${ECHO_T}yes" >&6
14899else
14900# FIXME - insert some real tests, host_os isn't really good enough
14901  case $host_os in
14902   darwin*)
14903       if test -n "$STRIP" ; then
14904         striplib="$STRIP -x"
14905         echo "$as_me:$LINENO: result: yes" >&5
14906echo "${ECHO_T}yes" >&6
14907       else
14908  echo "$as_me:$LINENO: result: no" >&5
14909echo "${ECHO_T}no" >&6
14910fi
14911       ;;
14912   *)
14913  echo "$as_me:$LINENO: result: no" >&5
14914echo "${ECHO_T}no" >&6
14915    ;;
14916  esac
14917fi
14918
14919
14920
14921# The else clause should only fire when bootstrapping the
14922# libtool distribution, otherwise you forgot to ship ltmain.sh
14923# with your package, and you will get complaints that there are
14924# no rules to generate ltmain.sh.
14925if test -f "$ltmain"; then
14926  # See if we are running on zsh, and set the options which allow our commands through
14927  # without removal of \ escapes.
14928  if test -n "${ZSH_VERSION+set}" ; then
14929    setopt NO_GLOB_SUBST
14930  fi
14931  # Now quote all the things that may contain metacharacters while being
14932  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14933  # variables and quote the copies for generation of the libtool script.
14934  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14935    SED SHELL STRIP \
14936    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14937    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14938    deplibs_check_method reload_flag reload_cmds need_locks \
14939    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14940    lt_cv_sys_global_symbol_to_c_name_address \
14941    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14942    old_postinstall_cmds old_postuninstall_cmds \
14943    compiler_F77 \
14944    CC_F77 \
14945    LD_F77 \
14946    lt_prog_compiler_wl_F77 \
14947    lt_prog_compiler_pic_F77 \
14948    lt_prog_compiler_static_F77 \
14949    lt_prog_compiler_no_builtin_flag_F77 \
14950    export_dynamic_flag_spec_F77 \
14951    thread_safe_flag_spec_F77 \
14952    whole_archive_flag_spec_F77 \
14953    enable_shared_with_static_runtimes_F77 \
14954    old_archive_cmds_F77 \
14955    old_archive_from_new_cmds_F77 \
14956    predep_objects_F77 \
14957    postdep_objects_F77 \
14958    predeps_F77 \
14959    postdeps_F77 \
14960    compiler_lib_search_path_F77 \
14961    archive_cmds_F77 \
14962    archive_expsym_cmds_F77 \
14963    postinstall_cmds_F77 \
14964    postuninstall_cmds_F77 \
14965    old_archive_from_expsyms_cmds_F77 \
14966    allow_undefined_flag_F77 \
14967    no_undefined_flag_F77 \
14968    export_symbols_cmds_F77 \
14969    hardcode_libdir_flag_spec_F77 \
14970    hardcode_libdir_flag_spec_ld_F77 \
14971    hardcode_libdir_separator_F77 \
14972    hardcode_automatic_F77 \
14973    module_cmds_F77 \
14974    module_expsym_cmds_F77 \
14975    lt_cv_prog_compiler_c_o_F77 \
14976    exclude_expsyms_F77 \
14977    include_expsyms_F77; do
14978
14979    case $var in
14980    old_archive_cmds_F77 | \
14981    old_archive_from_new_cmds_F77 | \
14982    archive_cmds_F77 | \
14983    archive_expsym_cmds_F77 | \
14984    module_cmds_F77 | \
14985    module_expsym_cmds_F77 | \
14986    old_archive_from_expsyms_cmds_F77 | \
14987    export_symbols_cmds_F77 | \
14988    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14989    postinstall_cmds | postuninstall_cmds | \
14990    old_postinstall_cmds | old_postuninstall_cmds | \
14991    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14992      # Double-quote double-evaled strings.
14993      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14994      ;;
14995    *)
14996      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14997      ;;
14998    esac
14999  done
15000
15001  case $lt_echo in
15002  *'\$0 --fallback-echo"')
15003    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15004    ;;
15005  esac
15006
15007cfgfile="$ofile"
15008
15009  cat <<__EOF__ >> "$cfgfile"
15010# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15011
15012# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15013
15014# Shell to use when invoking shell scripts.
15015SHELL=$lt_SHELL
15016
15017# Whether or not to build shared libraries.
15018build_libtool_libs=$enable_shared
15019
15020# Whether or not to build static libraries.
15021build_old_libs=$enable_static
15022
15023# Whether or not to add -lc for building shared libraries.
15024build_libtool_need_lc=$archive_cmds_need_lc_F77
15025
15026# Whether or not to disallow shared libs when runtime libs are static
15027allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15028
15029# Whether or not to optimize for fast installation.
15030fast_install=$enable_fast_install
15031
15032# The host system.
15033host_alias=$host_alias
15034host=$host
15035
15036# An echo program that does not interpret backslashes.
15037echo=$lt_echo
15038
15039# The archiver.
15040AR=$lt_AR
15041AR_FLAGS=$lt_AR_FLAGS
15042
15043# A C compiler.
15044LTCC=$lt_LTCC
15045
15046# A language-specific compiler.
15047CC=$lt_compiler_F77
15048
15049# Is the compiler the GNU C compiler?
15050with_gcc=$GCC_F77
15051
15052# An ERE matcher.
15053EGREP=$lt_EGREP
15054
15055# The linker used to build libraries.
15056LD=$lt_LD_F77
15057
15058# Whether we need hard or soft links.
15059LN_S=$lt_LN_S
15060
15061# A BSD-compatible nm program.
15062NM=$lt_NM
15063
15064# A symbol stripping program
15065STRIP=$lt_STRIP
15066
15067# Used to examine libraries when file_magic_cmd begins "file"
15068MAGIC_CMD=$MAGIC_CMD
15069
15070# Used on cygwin: DLL creation program.
15071DLLTOOL="$DLLTOOL"
15072
15073# Used on cygwin: object dumper.
15074OBJDUMP="$OBJDUMP"
15075
15076# Used on cygwin: assembler.
15077AS="$AS"
15078
15079# The name of the directory that contains temporary libtool files.
15080objdir=$objdir
15081
15082# How to create reloadable object files.
15083reload_flag=$lt_reload_flag
15084reload_cmds=$lt_reload_cmds
15085
15086# How to pass a linker flag through the compiler.
15087wl=$lt_lt_prog_compiler_wl_F77
15088
15089# Object file suffix (normally "o").
15090objext="$ac_objext"
15091
15092# Old archive suffix (normally "a").
15093libext="$libext"
15094
15095# Shared library suffix (normally ".so").
15096shrext='$shrext'
15097
15098# Executable file suffix (normally "").
15099exeext="$exeext"
15100
15101# Additional compiler flags for building library objects.
15102pic_flag=$lt_lt_prog_compiler_pic_F77
15103pic_mode=$pic_mode
15104
15105# What is the maximum length of a command?
15106max_cmd_len=$lt_cv_sys_max_cmd_len
15107
15108# Does compiler simultaneously support -c and -o options?
15109compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15110
15111# Must we lock files when doing compilation ?
15112need_locks=$lt_need_locks
15113
15114# Do we need the lib prefix for modules?
15115need_lib_prefix=$need_lib_prefix
15116
15117# Do we need a version for libraries?
15118need_version=$need_version
15119
15120# Whether dlopen is supported.
15121dlopen_support=$enable_dlopen
15122
15123# Whether dlopen of programs is supported.
15124dlopen_self=$enable_dlopen_self
15125
15126# Whether dlopen of statically linked programs is supported.
15127dlopen_self_static=$enable_dlopen_self_static
15128
15129# Compiler flag to prevent dynamic linking.
15130link_static_flag=$lt_lt_prog_compiler_static_F77
15131
15132# Compiler flag to turn off builtin functions.
15133no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15134
15135# Compiler flag to allow reflexive dlopens.
15136export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15137
15138# Compiler flag to generate shared objects directly from archives.
15139whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15140
15141# Compiler flag to generate thread-safe objects.
15142thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15143
15144# Library versioning type.
15145version_type=$version_type
15146
15147# Format of library name prefix.
15148libname_spec=$lt_libname_spec
15149
15150# List of archive names.  First name is the real one, the rest are links.
15151# The last name is the one that the linker finds with -lNAME.
15152library_names_spec=$lt_library_names_spec
15153
15154# The coded name of the library, if different from the real name.
15155soname_spec=$lt_soname_spec
15156
15157# Commands used to build and install an old-style archive.
15158RANLIB=$lt_RANLIB
15159old_archive_cmds=$lt_old_archive_cmds_F77
15160old_postinstall_cmds=$lt_old_postinstall_cmds
15161old_postuninstall_cmds=$lt_old_postuninstall_cmds
15162
15163# Create an old-style archive from a shared archive.
15164old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15165
15166# Create a temporary old-style archive to link instead of a shared archive.
15167old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15168
15169# Commands used to build and install a shared archive.
15170archive_cmds=$lt_archive_cmds_F77
15171archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15172postinstall_cmds=$lt_postinstall_cmds
15173postuninstall_cmds=$lt_postuninstall_cmds
15174
15175# Commands used to build a loadable module (assumed same as above if empty)
15176module_cmds=$lt_module_cmds_F77
15177module_expsym_cmds=$lt_module_expsym_cmds_F77
15178
15179# Commands to strip libraries.
15180old_striplib=$lt_old_striplib
15181striplib=$lt_striplib
15182
15183# Dependencies to place before the objects being linked to create a
15184# shared library.
15185predep_objects=$lt_predep_objects_F77
15186
15187# Dependencies to place after the objects being linked to create a
15188# shared library.
15189postdep_objects=$lt_postdep_objects_F77
15190
15191# Dependencies to place before the objects being linked to create a
15192# shared library.
15193predeps=$lt_predeps_F77
15194
15195# Dependencies to place after the objects being linked to create a
15196# shared library.
15197postdeps=$lt_postdeps_F77
15198
15199# The library search path used internally by the compiler when linking
15200# a shared library.
15201compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15202
15203# Method to check whether dependent libraries are shared objects.
15204deplibs_check_method=$lt_deplibs_check_method
15205
15206# Command to use when deplibs_check_method == file_magic.
15207file_magic_cmd=$lt_file_magic_cmd
15208
15209# Flag that allows shared libraries with undefined symbols to be built.
15210allow_undefined_flag=$lt_allow_undefined_flag_F77
15211
15212# Flag that forces no undefined symbols.
15213no_undefined_flag=$lt_no_undefined_flag_F77
15214
15215# Commands used to finish a libtool library installation in a directory.
15216finish_cmds=$lt_finish_cmds
15217
15218# Same as above, but a single script fragment to be evaled but not shown.
15219finish_eval=$lt_finish_eval
15220
15221# Take the output of nm and produce a listing of raw symbols and C names.
15222global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15223
15224# Transform the output of nm in a proper C declaration
15225global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15226
15227# Transform the output of nm in a C name address pair
15228global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15229
15230# This is the shared library runtime path variable.
15231runpath_var=$runpath_var
15232
15233# This is the shared library path variable.
15234shlibpath_var=$shlibpath_var
15235
15236# Is shlibpath searched before the hard-coded library search path?
15237shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15238
15239# How to hardcode a shared library path into an executable.
15240hardcode_action=$hardcode_action_F77
15241
15242# Whether we should hardcode library paths into libraries.
15243hardcode_into_libs=$hardcode_into_libs
15244
15245# Flag to hardcode \$libdir into a binary during linking.
15246# This must work even if \$libdir does not exist.
15247hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15248
15249# If ld is used when linking, flag to hardcode \$libdir into
15250# a binary during linking. This must work even if \$libdir does
15251# not exist.
15252hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15253
15254# Whether we need a single -rpath flag with a separated argument.
15255hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15256
15257# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15258# resulting binary.
15259hardcode_direct=$hardcode_direct_F77
15260
15261# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15262# resulting binary.
15263hardcode_minus_L=$hardcode_minus_L_F77
15264
15265# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15266# the resulting binary.
15267hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15268
15269# Set to yes if building a shared library automatically hardcodes DIR into the library
15270# and all subsequent libraries and executables linked against it.
15271hardcode_automatic=$hardcode_automatic_F77
15272
15273# Variables whose values should be saved in libtool wrapper scripts and
15274# restored at relink time.
15275variables_saved_for_relink="$variables_saved_for_relink"
15276
15277# Whether libtool must link a program against all its dependency libraries.
15278link_all_deplibs=$link_all_deplibs_F77
15279
15280# Compile-time system search path for libraries
15281sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15282
15283# Run-time system search path for libraries
15284sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15285
15286# Fix the shell variable \$srcfile for the compiler.
15287fix_srcfile_path="$fix_srcfile_path_F77"
15288
15289# Set to yes if exported symbols are required.
15290always_export_symbols=$always_export_symbols_F77
15291
15292# The commands to list exported symbols.
15293export_symbols_cmds=$lt_export_symbols_cmds_F77
15294
15295# The commands to extract the exported symbol list from a shared archive.
15296extract_expsyms_cmds=$lt_extract_expsyms_cmds
15297
15298# Symbols that should not be listed in the preloaded symbols.
15299exclude_expsyms=$lt_exclude_expsyms_F77
15300
15301# Symbols that must always be exported.
15302include_expsyms=$lt_include_expsyms_F77
15303
15304# ### END LIBTOOL TAG CONFIG: $tagname
15305
15306__EOF__
15307
15308
15309else
15310  # If there is no Makefile yet, we rely on a make rule to execute
15311  # `config.status --recheck' to rerun these tests and create the
15312  # libtool script then.
15313  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15314  if test -f "$ltmain_in"; then
15315    test -f Makefile && make "$ltmain"
15316  fi
15317fi
15318
15319
15320ac_ext=c
15321ac_cpp='$CPP $CPPFLAGS'
15322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325
15326CC="$lt_save_CC"
15327
15328	else
15329	  tagname=""
15330	fi
15331	;;
15332
15333      GCJ)
15334	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15335
15336
15337
15338# Source file extension for Java test sources.
15339ac_ext=java
15340
15341# Object file extension for compiled Java test sources.
15342objext=o
15343objext_GCJ=$objext
15344
15345# Code to be used in simple compile tests
15346lt_simple_compile_test_code="class foo {}\n"
15347
15348# Code to be used in simple link tests
15349lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15350
15351# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15352
15353# If no C compiler was specified, use CC.
15354LTCC=${LTCC-"$CC"}
15355
15356# Allow CC to be a program name with arguments.
15357compiler=$CC
15358
15359
15360# Allow CC to be a program name with arguments.
15361lt_save_CC="$CC"
15362CC=${GCJ-"gcj"}
15363compiler=$CC
15364compiler_GCJ=$CC
15365
15366# GCJ did not exist at the time GCC didn't implicitly link libc in.
15367archive_cmds_need_lc_GCJ=no
15368
15369
15370lt_prog_compiler_no_builtin_flag_GCJ=
15371
15372if test "$GCC" = yes; then
15373  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15374
15375
15376echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15377echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15378if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15379  echo $ECHO_N "(cached) $ECHO_C" >&6
15380else
15381  lt_cv_prog_compiler_rtti_exceptions=no
15382  ac_outfile=conftest.$ac_objext
15383   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15384   lt_compiler_flag="-fno-rtti -fno-exceptions"
15385   # Insert the option either (1) after the last *FLAGS variable, or
15386   # (2) before a word containing "conftest.", or (3) at the end.
15387   # Note that $ac_compile itself does not contain backslashes and begins
15388   # with a dollar sign (not a hyphen), so the echo should work correctly.
15389   # The option is referenced via a variable to avoid confusing sed.
15390   lt_compile=`echo "$ac_compile" | $SED \
15391   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15392   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15393   -e 's:$: $lt_compiler_flag:'`
15394   (eval echo "\"\$as_me:15394: $lt_compile\"" >&5)
15395   (eval "$lt_compile" 2>conftest.err)
15396   ac_status=$?
15397   cat conftest.err >&5
15398   echo "$as_me:15398: \$? = $ac_status" >&5
15399   if (exit $ac_status) && test -s "$ac_outfile"; then
15400     # The compiler can only warn and ignore the option if not recognized
15401     # So say no if there are warnings
15402     if test ! -s conftest.err; then
15403       lt_cv_prog_compiler_rtti_exceptions=yes
15404     fi
15405   fi
15406   $rm conftest*
15407
15408fi
15409echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15410echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15411
15412if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15413    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15414else
15415    :
15416fi
15417
15418fi
15419
15420lt_prog_compiler_wl_GCJ=
15421lt_prog_compiler_pic_GCJ=
15422lt_prog_compiler_static_GCJ=
15423
15424echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15425echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15426
15427  if test "$GCC" = yes; then
15428    lt_prog_compiler_wl_GCJ='-Wl,'
15429    lt_prog_compiler_static_GCJ='-static'
15430
15431    case $host_os in
15432      aix*)
15433      # All AIX code is PIC.
15434      if test "$host_cpu" = ia64; then
15435	# AIX 5 now supports IA64 processor
15436	lt_prog_compiler_static_GCJ='-Bstatic'
15437      fi
15438      ;;
15439
15440    amigaos*)
15441      # FIXME: we need at least 68020 code to build shared libraries, but
15442      # adding the `-m68020' flag to GCC prevents building anything better,
15443      # like `-m68040'.
15444      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15445      ;;
15446
15447    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15448      # PIC is the default for these OSes.
15449      ;;
15450
15451    mingw* | pw32* | os2*)
15452      # This hack is so that the source file can tell whether it is being
15453      # built for inclusion in a dll (and should export symbols for example).
15454      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15455      ;;
15456
15457    darwin* | rhapsody*)
15458      # PIC is the default on this platform
15459      # Common symbols not allowed in MH_DYLIB files
15460      lt_prog_compiler_pic_GCJ='-fno-common'
15461      ;;
15462
15463    msdosdjgpp*)
15464      # Just because we use GCC doesn't mean we suddenly get shared libraries
15465      # on systems that don't support them.
15466      lt_prog_compiler_can_build_shared_GCJ=no
15467      enable_shared=no
15468      ;;
15469
15470    sysv4*MP*)
15471      if test -d /usr/nec; then
15472	lt_prog_compiler_pic_GCJ=-Kconform_pic
15473      fi
15474      ;;
15475
15476    hpux*)
15477      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15478      # not for PA HP-UX.
15479      case "$host_cpu" in
15480      hppa*64*|ia64*)
15481	# +Z the default
15482	;;
15483      *)
15484	lt_prog_compiler_pic_GCJ='-fPIC'
15485	;;
15486      esac
15487      ;;
15488
15489    *)
15490      lt_prog_compiler_pic_GCJ='-fPIC'
15491      ;;
15492    esac
15493  else
15494    # PORTME Check for flag to pass linker flags through the system compiler.
15495    case $host_os in
15496    aix*)
15497      lt_prog_compiler_wl_GCJ='-Wl,'
15498      if test "$host_cpu" = ia64; then
15499	# AIX 5 now supports IA64 processor
15500	lt_prog_compiler_static_GCJ='-Bstatic'
15501      else
15502	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15503      fi
15504      ;;
15505
15506    mingw* | pw32* | os2*)
15507      # This hack is so that the source file can tell whether it is being
15508      # built for inclusion in a dll (and should export symbols for example).
15509      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15510      ;;
15511
15512    hpux9* | hpux10* | hpux11*)
15513      lt_prog_compiler_wl_GCJ='-Wl,'
15514      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15515      # not for PA HP-UX.
15516      case "$host_cpu" in
15517      hppa*64*|ia64*)
15518	# +Z the default
15519	;;
15520      *)
15521	lt_prog_compiler_pic_GCJ='+Z'
15522	;;
15523      esac
15524      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15525      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15526      ;;
15527
15528    irix5* | irix6* | nonstopux*)
15529      lt_prog_compiler_wl_GCJ='-Wl,'
15530      # PIC (with -KPIC) is the default.
15531      lt_prog_compiler_static_GCJ='-non_shared'
15532      ;;
15533
15534    newsos6)
15535      lt_prog_compiler_pic_GCJ='-KPIC'
15536      lt_prog_compiler_static_GCJ='-Bstatic'
15537      ;;
15538
15539    linux*)
15540      case $CC in
15541      icc* | ecc*)
15542	lt_prog_compiler_wl_GCJ='-Wl,'
15543	lt_prog_compiler_pic_GCJ='-KPIC'
15544	lt_prog_compiler_static_GCJ='-static'
15545        ;;
15546      ccc*)
15547        lt_prog_compiler_wl_GCJ='-Wl,'
15548        # All Alpha code is PIC.
15549        lt_prog_compiler_static_GCJ='-non_shared'
15550        ;;
15551      esac
15552      ;;
15553
15554    osf3* | osf4* | osf5*)
15555      lt_prog_compiler_wl_GCJ='-Wl,'
15556      # All OSF/1 code is PIC.
15557      lt_prog_compiler_static_GCJ='-non_shared'
15558      ;;
15559
15560    sco3.2v5*)
15561      lt_prog_compiler_pic_GCJ='-Kpic'
15562      lt_prog_compiler_static_GCJ='-dn'
15563      ;;
15564
15565    solaris*)
15566      lt_prog_compiler_wl_GCJ='-Wl,'
15567      lt_prog_compiler_pic_GCJ='-KPIC'
15568      lt_prog_compiler_static_GCJ='-Bstatic'
15569      ;;
15570
15571    sunos4*)
15572      lt_prog_compiler_wl_GCJ='-Qoption ld '
15573      lt_prog_compiler_pic_GCJ='-PIC'
15574      lt_prog_compiler_static_GCJ='-Bstatic'
15575      ;;
15576
15577    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15578      lt_prog_compiler_wl_GCJ='-Wl,'
15579      lt_prog_compiler_pic_GCJ='-KPIC'
15580      lt_prog_compiler_static_GCJ='-Bstatic'
15581      ;;
15582
15583    sysv4*MP*)
15584      if test -d /usr/nec ;then
15585	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15586	lt_prog_compiler_static_GCJ='-Bstatic'
15587      fi
15588      ;;
15589
15590    uts4*)
15591      lt_prog_compiler_pic_GCJ='-pic'
15592      lt_prog_compiler_static_GCJ='-Bstatic'
15593      ;;
15594
15595    *)
15596      lt_prog_compiler_can_build_shared_GCJ=no
15597      ;;
15598    esac
15599  fi
15600
15601echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15602echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15603
15604#
15605# Check to make sure the PIC flag actually works.
15606#
15607if test -n "$lt_prog_compiler_pic_GCJ"; then
15608
15609echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15610echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15611if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15612  echo $ECHO_N "(cached) $ECHO_C" >&6
15613else
15614  lt_prog_compiler_pic_works_GCJ=no
15615  ac_outfile=conftest.$ac_objext
15616   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15617   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15618   # Insert the option either (1) after the last *FLAGS variable, or
15619   # (2) before a word containing "conftest.", or (3) at the end.
15620   # Note that $ac_compile itself does not contain backslashes and begins
15621   # with a dollar sign (not a hyphen), so the echo should work correctly.
15622   # The option is referenced via a variable to avoid confusing sed.
15623   lt_compile=`echo "$ac_compile" | $SED \
15624   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15625   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15626   -e 's:$: $lt_compiler_flag:'`
15627   (eval echo "\"\$as_me:15627: $lt_compile\"" >&5)
15628   (eval "$lt_compile" 2>conftest.err)
15629   ac_status=$?
15630   cat conftest.err >&5
15631   echo "$as_me:15631: \$? = $ac_status" >&5
15632   if (exit $ac_status) && test -s "$ac_outfile"; then
15633     # The compiler can only warn and ignore the option if not recognized
15634     # So say no if there are warnings
15635     if test ! -s conftest.err; then
15636       lt_prog_compiler_pic_works_GCJ=yes
15637     fi
15638   fi
15639   $rm conftest*
15640
15641fi
15642echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15643echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15644
15645if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15646    case $lt_prog_compiler_pic_GCJ in
15647     "" | " "*) ;;
15648     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15649     esac
15650else
15651    lt_prog_compiler_pic_GCJ=
15652     lt_prog_compiler_can_build_shared_GCJ=no
15653fi
15654
15655fi
15656case "$host_os" in
15657  # For platforms which do not support PIC, -DPIC is meaningless:
15658  *djgpp*)
15659    lt_prog_compiler_pic_GCJ=
15660    ;;
15661  *)
15662    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15663    ;;
15664esac
15665
15666echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15667echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15668if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15669  echo $ECHO_N "(cached) $ECHO_C" >&6
15670else
15671  lt_cv_prog_compiler_c_o_GCJ=no
15672   $rm -r conftest 2>/dev/null
15673   mkdir conftest
15674   cd conftest
15675   mkdir out
15676   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15677
15678   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15679   # that will create temporary files in the current directory regardless of
15680   # the output directory.  Thus, making CWD read-only will cause this test
15681   # to fail, enabling locking or at least warning the user not to do parallel
15682   # builds.
15683   chmod -w .
15684
15685   lt_compiler_flag="-o out/conftest2.$ac_objext"
15686   # Insert the option either (1) after the last *FLAGS variable, or
15687   # (2) before a word containing "conftest.", or (3) at the end.
15688   # Note that $ac_compile itself does not contain backslashes and begins
15689   # with a dollar sign (not a hyphen), so the echo should work correctly.
15690   lt_compile=`echo "$ac_compile" | $SED \
15691   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15692   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15693   -e 's:$: $lt_compiler_flag:'`
15694   (eval echo "\"\$as_me:15694: $lt_compile\"" >&5)
15695   (eval "$lt_compile" 2>out/conftest.err)
15696   ac_status=$?
15697   cat out/conftest.err >&5
15698   echo "$as_me:15698: \$? = $ac_status" >&5
15699   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15700   then
15701     # The compiler can only warn and ignore the option if not recognized
15702     # So say no if there are warnings
15703     if test ! -s out/conftest.err; then
15704       lt_cv_prog_compiler_c_o_GCJ=yes
15705     fi
15706   fi
15707   chmod u+w .
15708   $rm conftest*
15709   # SGI C++ compiler will create directory out/ii_files/ for
15710   # template instantiation
15711   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15712   $rm out/* && rmdir out
15713   cd ..
15714   rmdir conftest
15715   $rm conftest*
15716
15717fi
15718echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15719echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15720
15721
15722hard_links="nottested"
15723if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15724  # do not overwrite the value of need_locks provided by the user
15725  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15726echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15727  hard_links=yes
15728  $rm conftest*
15729  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15730  touch conftest.a
15731  ln conftest.a conftest.b 2>&5 || hard_links=no
15732  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15733  echo "$as_me:$LINENO: result: $hard_links" >&5
15734echo "${ECHO_T}$hard_links" >&6
15735  if test "$hard_links" = no; then
15736    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15737echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15738    need_locks=warn
15739  fi
15740else
15741  need_locks=no
15742fi
15743
15744echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15745echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15746
15747  runpath_var=
15748  allow_undefined_flag_GCJ=
15749  enable_shared_with_static_runtimes_GCJ=no
15750  archive_cmds_GCJ=
15751  archive_expsym_cmds_GCJ=
15752  old_archive_From_new_cmds_GCJ=
15753  old_archive_from_expsyms_cmds_GCJ=
15754  export_dynamic_flag_spec_GCJ=
15755  whole_archive_flag_spec_GCJ=
15756  thread_safe_flag_spec_GCJ=
15757  hardcode_libdir_flag_spec_GCJ=
15758  hardcode_libdir_flag_spec_ld_GCJ=
15759  hardcode_libdir_separator_GCJ=
15760  hardcode_direct_GCJ=no
15761  hardcode_minus_L_GCJ=no
15762  hardcode_shlibpath_var_GCJ=unsupported
15763  link_all_deplibs_GCJ=unknown
15764  hardcode_automatic_GCJ=no
15765  module_cmds_GCJ=
15766  module_expsym_cmds_GCJ=
15767  always_export_symbols_GCJ=no
15768  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15769  # include_expsyms should be a list of space-separated symbols to be *always*
15770  # included in the symbol list
15771  include_expsyms_GCJ=
15772  # exclude_expsyms can be an extended regexp of symbols to exclude
15773  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15774  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15775  # as well as any symbol that contains `d'.
15776  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15777  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15778  # platforms (ab)use it in PIC code, but their linkers get confused if
15779  # the symbol is explicitly referenced.  Since portable code cannot
15780  # rely on this symbol name, it's probably fine to never include it in
15781  # preloaded symbol tables.
15782  extract_expsyms_cmds=
15783
15784  case $host_os in
15785  cygwin* | mingw* | pw32*)
15786    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15787    # When not using gcc, we currently assume that we are using
15788    # Microsoft Visual C++.
15789    if test "$GCC" != yes; then
15790      with_gnu_ld=no
15791    fi
15792    ;;
15793  openbsd*)
15794    with_gnu_ld=no
15795    ;;
15796  esac
15797
15798  ld_shlibs_GCJ=yes
15799  if test "$with_gnu_ld" = yes; then
15800    # If archive_cmds runs LD, not CC, wlarc should be empty
15801    wlarc='${wl}'
15802
15803    # See if GNU ld supports shared libraries.
15804    case $host_os in
15805    aix3* | aix4* | aix5*)
15806      # On AIX/PPC, the GNU linker is very broken
15807      if test "$host_cpu" != ia64; then
15808	ld_shlibs_GCJ=no
15809	cat <<EOF 1>&2
15810
15811*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15812*** to be unable to reliably create shared libraries on AIX.
15813*** Therefore, libtool is disabling shared libraries support.  If you
15814*** really care for shared libraries, you may want to modify your PATH
15815*** so that a non-GNU linker is found, and then restart.
15816
15817EOF
15818      fi
15819      ;;
15820
15821    amigaos*)
15822      archive_cmds_GCJ='$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)'
15823      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15824      hardcode_minus_L_GCJ=yes
15825
15826      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15827      # that the semantics of dynamic libraries on AmigaOS, at least up
15828      # to version 4, is to share data among multiple programs linked
15829      # with the same dynamic library.  Since this doesn't match the
15830      # behavior of shared libraries on other platforms, we can't use
15831      # them.
15832      ld_shlibs_GCJ=no
15833      ;;
15834
15835    beos*)
15836      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15837	allow_undefined_flag_GCJ=unsupported
15838	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15839	# support --undefined.  This deserves some investigation.  FIXME
15840	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15841      else
15842	ld_shlibs_GCJ=no
15843      fi
15844      ;;
15845
15846    cygwin* | mingw* | pw32*)
15847      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15848      # as there is no search path for DLLs.
15849      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15850      allow_undefined_flag_GCJ=unsupported
15851      always_export_symbols_GCJ=no
15852      enable_shared_with_static_runtimes_GCJ=yes
15853      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15854
15855      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15856        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15857	# If the export-symbols file already is a .def file (1st line
15858	# is EXPORTS), use it as is; otherwise, prepend...
15859	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15860	  cp $export_symbols $output_objdir/$soname.def;
15861	else
15862	  echo EXPORTS > $output_objdir/$soname.def;
15863	  cat $export_symbols >> $output_objdir/$soname.def;
15864	fi~
15865	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15866      else
15867	ld_shlibs=no
15868      fi
15869      ;;
15870
15871    netbsd*)
15872      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15873	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15874	wlarc=
15875      else
15876	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15877	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15878      fi
15879      ;;
15880
15881    solaris* | sysv5*)
15882      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15883	ld_shlibs_GCJ=no
15884	cat <<EOF 1>&2
15885
15886*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15887*** create shared libraries on Solaris systems.  Therefore, libtool
15888*** is disabling shared libraries support.  We urge you to upgrade GNU
15889*** binutils to release 2.9.1 or newer.  Another option is to modify
15890*** your PATH or compiler configuration so that the native linker is
15891*** used, and then restart.
15892
15893EOF
15894      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15895	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15896	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15897      else
15898	ld_shlibs_GCJ=no
15899      fi
15900      ;;
15901
15902    sunos4*)
15903      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15904      wlarc=
15905      hardcode_direct_GCJ=yes
15906      hardcode_shlibpath_var_GCJ=no
15907      ;;
15908
15909  linux*)
15910    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15911        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15912	archive_cmds_GCJ="$tmp_archive_cmds"
15913      supports_anon_versioning=no
15914      case `$LD -v 2>/dev/null` in
15915        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15916        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15917        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15918        *\ 2.11.*) ;; # other 2.11 versions
15919        *) supports_anon_versioning=yes ;;
15920      esac
15921      if test $supports_anon_versioning = yes; then
15922        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15923cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15924$echo "local: *; };" >> $output_objdir/$libname.ver~
15925        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15926      else
15927        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15928      fi
15929    else
15930      ld_shlibs_GCJ=no
15931    fi
15932    ;;
15933
15934    *)
15935      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15936	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15937	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15938      else
15939	ld_shlibs_GCJ=no
15940      fi
15941      ;;
15942    esac
15943
15944    if test "$ld_shlibs_GCJ" = yes; then
15945      runpath_var=LD_RUN_PATH
15946      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15947      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15948      # ancient GNU ld didn't support --whole-archive et. al.
15949      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15950 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15951      else
15952  	whole_archive_flag_spec_GCJ=
15953      fi
15954    fi
15955  else
15956    # PORTME fill in a description of your system's linker (not GNU ld)
15957    case $host_os in
15958    aix3*)
15959      allow_undefined_flag_GCJ=unsupported
15960      always_export_symbols_GCJ=yes
15961      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15962      # Note: this linker hardcodes the directories in LIBPATH if there
15963      # are no directories specified by -L.
15964      hardcode_minus_L_GCJ=yes
15965      if test "$GCC" = yes && test -z "$link_static_flag"; then
15966	# Neither direct hardcoding nor static linking is supported with a
15967	# broken collect2.
15968	hardcode_direct_GCJ=unsupported
15969      fi
15970      ;;
15971
15972    aix4* | aix5*)
15973      if test "$host_cpu" = ia64; then
15974	# On IA64, the linker does run time linking by default, so we don't
15975	# have to do anything special.
15976	aix_use_runtimelinking=no
15977	exp_sym_flag='-Bexport'
15978	no_entry_flag=""
15979      else
15980	# If we're using GNU nm, then we don't want the "-C" option.
15981	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15982	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15983	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15984	else
15985	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15986	fi
15987	aix_use_runtimelinking=no
15988
15989	# Test if we are trying to use run time linking or normal
15990	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15991	# need to do runtime linking.
15992	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15993	  for ld_flag in $LDFLAGS; do
15994  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15995  	    aix_use_runtimelinking=yes
15996  	    break
15997  	  fi
15998	  done
15999	esac
16000
16001	exp_sym_flag='-bexport'
16002	no_entry_flag='-bnoentry'
16003      fi
16004
16005      # When large executables or shared objects are built, AIX ld can
16006      # have problems creating the table of contents.  If linking a library
16007      # or program results in "error TOC overflow" add -mminimal-toc to
16008      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16009      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16010
16011      archive_cmds_GCJ=''
16012      hardcode_direct_GCJ=yes
16013      hardcode_libdir_separator_GCJ=':'
16014      link_all_deplibs_GCJ=yes
16015
16016      if test "$GCC" = yes; then
16017	case $host_os in aix4.012|aix4.012.*)
16018	# We only want to do this on AIX 4.2 and lower, the check
16019	# below for broken collect2 doesn't work under 4.3+
16020	  collect2name=`${CC} -print-prog-name=collect2`
16021	  if test -f "$collect2name" && \
16022  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16023	  then
16024  	  # We have reworked collect2
16025  	  hardcode_direct_GCJ=yes
16026	  else
16027  	  # We have old collect2
16028  	  hardcode_direct_GCJ=unsupported
16029  	  # It fails to find uninstalled libraries when the uninstalled
16030  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16031  	  # to unsupported forces relinking
16032  	  hardcode_minus_L_GCJ=yes
16033  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16034  	  hardcode_libdir_separator_GCJ=
16035	  fi
16036	esac
16037	shared_flag='-shared'
16038      else
16039	# not using gcc
16040	if test "$host_cpu" = ia64; then
16041  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16042  	# chokes on -Wl,-G. The following line is correct:
16043	  shared_flag='-G'
16044	else
16045  	if test "$aix_use_runtimelinking" = yes; then
16046	    shared_flag='${wl}-G'
16047	  else
16048	    shared_flag='${wl}-bM:SRE'
16049  	fi
16050	fi
16051      fi
16052
16053      # It seems that -bexpall does not export symbols beginning with
16054      # underscore (_), so it is better to generate a list of symbols to export.
16055      always_export_symbols_GCJ=yes
16056      if test "$aix_use_runtimelinking" = yes; then
16057	# Warning - without using the other runtime loading flags (-brtl),
16058	# -berok will link without error, but may produce a broken library.
16059	allow_undefined_flag_GCJ='-berok'
16060       # Determine the default libpath from the value encoded in an empty executable.
16061       cat >conftest.$ac_ext <<_ACEOF
16062/* confdefs.h.  */
16063_ACEOF
16064cat confdefs.h >>conftest.$ac_ext
16065cat >>conftest.$ac_ext <<_ACEOF
16066/* end confdefs.h.  */
16067
16068int
16069main ()
16070{
16071
16072  ;
16073  return 0;
16074}
16075_ACEOF
16076rm -f conftest.$ac_objext conftest$ac_exeext
16077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16078  (eval $ac_link) 2>conftest.er1
16079  ac_status=$?
16080  grep -v '^ *+' conftest.er1 >conftest.err
16081  rm -f conftest.er1
16082  cat conftest.err >&5
16083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084  (exit $ac_status); } &&
16085	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087  (eval $ac_try) 2>&5
16088  ac_status=$?
16089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090  (exit $ac_status); }; } &&
16091	 { ac_try='test -s conftest$ac_exeext'
16092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093  (eval $ac_try) 2>&5
16094  ac_status=$?
16095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096  (exit $ac_status); }; }; then
16097
16098aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16099}'`
16100# Check for a 64-bit object if we didn't find anything.
16101if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16102}'`; fi
16103else
16104  echo "$as_me: failed program was:" >&5
16105sed 's/^/| /' conftest.$ac_ext >&5
16106
16107fi
16108rm -f conftest.err conftest.$ac_objext \
16109      conftest$ac_exeext conftest.$ac_ext
16110if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16111
16112       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16113	archive_expsym_cmds_GCJ="\$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"
16114       else
16115	if test "$host_cpu" = ia64; then
16116	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16117	  allow_undefined_flag_GCJ="-z nodefs"
16118	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16119	else
16120	 # Determine the default libpath from the value encoded in an empty executable.
16121	 cat >conftest.$ac_ext <<_ACEOF
16122/* confdefs.h.  */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
16126/* end confdefs.h.  */
16127
16128int
16129main ()
16130{
16131
16132  ;
16133  return 0;
16134}
16135_ACEOF
16136rm -f conftest.$ac_objext conftest$ac_exeext
16137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16138  (eval $ac_link) 2>conftest.er1
16139  ac_status=$?
16140  grep -v '^ *+' conftest.er1 >conftest.err
16141  rm -f conftest.er1
16142  cat conftest.err >&5
16143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144  (exit $ac_status); } &&
16145	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147  (eval $ac_try) 2>&5
16148  ac_status=$?
16149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150  (exit $ac_status); }; } &&
16151	 { ac_try='test -s conftest$ac_exeext'
16152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153  (eval $ac_try) 2>&5
16154  ac_status=$?
16155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156  (exit $ac_status); }; }; then
16157
16158aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16159}'`
16160# Check for a 64-bit object if we didn't find anything.
16161if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16162}'`; fi
16163else
16164  echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
16167fi
16168rm -f conftest.err conftest.$ac_objext \
16169      conftest$ac_exeext conftest.$ac_ext
16170if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16171
16172	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16173	  # Warning - without using the other run time loading flags,
16174	  # -berok will link without error, but may produce a broken library.
16175	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16176	  allow_undefined_flag_GCJ=' ${wl}-berok'
16177	  # -bexpall does not export symbols beginning with underscore (_)
16178	  always_export_symbols_GCJ=yes
16179	  # Exported symbols can be pulled into shared objects from archives
16180	  whole_archive_flag_spec_GCJ=' '
16181	  archive_cmds_need_lc_GCJ=yes
16182	  # This is similar to how AIX traditionally builds it's shared libraries.
16183	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16184	fi
16185      fi
16186      ;;
16187
16188    amigaos*)
16189      archive_cmds_GCJ='$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)'
16190      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16191      hardcode_minus_L_GCJ=yes
16192      # see comment about different semantics on the GNU ld section
16193      ld_shlibs_GCJ=no
16194      ;;
16195
16196    bsdi4*)
16197      export_dynamic_flag_spec_GCJ=-rdynamic
16198      ;;
16199
16200    cygwin* | mingw* | pw32*)
16201      # When not using gcc, we currently assume that we are using
16202      # Microsoft Visual C++.
16203      # hardcode_libdir_flag_spec is actually meaningless, as there is
16204      # no search path for DLLs.
16205      hardcode_libdir_flag_spec_GCJ=' '
16206      allow_undefined_flag_GCJ=unsupported
16207      # Tell ltmain to make .lib files, not .a files.
16208      libext=lib
16209      # Tell ltmain to make .dll files, not .so files.
16210      shrext=".dll"
16211      # FIXME: Setting linknames here is a bad hack.
16212      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16213      # The linker will automatically build a .lib file if we build a DLL.
16214      old_archive_From_new_cmds_GCJ='true'
16215      # FIXME: Should let the user specify the lib program.
16216      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16217      fix_srcfile_path='`cygpath -w "$srcfile"`'
16218      enable_shared_with_static_runtimes_GCJ=yes
16219      ;;
16220
16221    darwin* | rhapsody*)
16222    if test "$GXX" = yes ; then
16223      archive_cmds_need_lc_GCJ=no
16224      case "$host_os" in
16225      rhapsody* | darwin1.[012])
16226	allow_undefined_flag_GCJ='-undefined suppress'
16227	;;
16228      *) # Darwin 1.3 on
16229      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16230      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16231      else
16232        case ${MACOSX_DEPLOYMENT_TARGET} in
16233          10.[012])
16234            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16235            ;;
16236          10.*)
16237            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16238            ;;
16239        esac
16240      fi
16241	;;
16242      esac
16243    	lt_int_apple_cc_single_mod=no
16244    	output_verbose_link_cmd='echo'
16245    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16246    	  lt_int_apple_cc_single_mod=yes
16247    	fi
16248    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16249    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16250    	else
16251        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16252      fi
16253      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16254      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16255        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16256          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16257        else
16258          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16259        fi
16260          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16261      hardcode_direct_GCJ=no
16262      hardcode_automatic_GCJ=yes
16263      hardcode_shlibpath_var_GCJ=unsupported
16264      whole_archive_flag_spec_GCJ='-all_load $convenience'
16265      link_all_deplibs_GCJ=yes
16266    else
16267      ld_shlibs_GCJ=no
16268    fi
16269      ;;
16270
16271    dgux*)
16272      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16273      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16274      hardcode_shlibpath_var_GCJ=no
16275      ;;
16276
16277    freebsd1*)
16278      ld_shlibs_GCJ=no
16279      ;;
16280
16281    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16282    # support.  Future versions do this automatically, but an explicit c++rt0.o
16283    # does not break anything, and helps significantly (at the cost of a little
16284    # extra space).
16285    freebsd2.2*)
16286      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16287      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16288      hardcode_direct_GCJ=yes
16289      hardcode_shlibpath_var_GCJ=no
16290      ;;
16291
16292    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16293    freebsd2*)
16294      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16295      hardcode_direct_GCJ=yes
16296      hardcode_minus_L_GCJ=yes
16297      hardcode_shlibpath_var_GCJ=no
16298      ;;
16299
16300    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16301    freebsd* | kfreebsd*-gnu)
16302      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16303      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16304      hardcode_direct_GCJ=yes
16305      hardcode_shlibpath_var_GCJ=no
16306      ;;
16307
16308    hpux9*)
16309      if test "$GCC" = yes; then
16310	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16311      else
16312	archive_cmds_GCJ='$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'
16313      fi
16314      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16315      hardcode_libdir_separator_GCJ=:
16316      hardcode_direct_GCJ=yes
16317
16318      # hardcode_minus_L: Not really in the search PATH,
16319      # but as the default location of the library.
16320      hardcode_minus_L_GCJ=yes
16321      export_dynamic_flag_spec_GCJ='${wl}-E'
16322      ;;
16323
16324    hpux10* | hpux11*)
16325      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16326	case "$host_cpu" in
16327	hppa*64*|ia64*)
16328	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16329	  ;;
16330	*)
16331	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16332	  ;;
16333	esac
16334      else
16335	case "$host_cpu" in
16336	hppa*64*|ia64*)
16337	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16338	  ;;
16339	*)
16340	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16341	  ;;
16342	esac
16343      fi
16344      if test "$with_gnu_ld" = no; then
16345	case "$host_cpu" in
16346	hppa*64*)
16347	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16348	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16349	  hardcode_libdir_separator_GCJ=:
16350	  hardcode_direct_GCJ=no
16351	  hardcode_shlibpath_var_GCJ=no
16352	  ;;
16353	ia64*)
16354	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16355	  hardcode_direct_GCJ=no
16356	  hardcode_shlibpath_var_GCJ=no
16357
16358	  # hardcode_minus_L: Not really in the search PATH,
16359	  # but as the default location of the library.
16360	  hardcode_minus_L_GCJ=yes
16361	  ;;
16362	*)
16363	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16364	  hardcode_libdir_separator_GCJ=:
16365	  hardcode_direct_GCJ=yes
16366	  export_dynamic_flag_spec_GCJ='${wl}-E'
16367
16368	  # hardcode_minus_L: Not really in the search PATH,
16369	  # but as the default location of the library.
16370	  hardcode_minus_L_GCJ=yes
16371	  ;;
16372	esac
16373      fi
16374      ;;
16375
16376    irix5* | irix6* | nonstopux*)
16377      if test "$GCC" = yes; then
16378	archive_cmds_GCJ='$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'
16379      else
16380	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16381	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16382      fi
16383      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16384      hardcode_libdir_separator_GCJ=:
16385      link_all_deplibs_GCJ=yes
16386      ;;
16387
16388    netbsd*)
16389      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16390	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16391      else
16392	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16393      fi
16394      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16395      hardcode_direct_GCJ=yes
16396      hardcode_shlibpath_var_GCJ=no
16397      ;;
16398
16399    newsos6)
16400      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16401      hardcode_direct_GCJ=yes
16402      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16403      hardcode_libdir_separator_GCJ=:
16404      hardcode_shlibpath_var_GCJ=no
16405      ;;
16406
16407    openbsd*)
16408      hardcode_direct_GCJ=yes
16409      hardcode_shlibpath_var_GCJ=no
16410      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16411	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16412	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16413	export_dynamic_flag_spec_GCJ='${wl}-E'
16414      else
16415       case $host_os in
16416	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16417	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16418	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16419	   ;;
16420	 *)
16421	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16422	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16423	   ;;
16424       esac
16425      fi
16426      ;;
16427
16428    os2*)
16429      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16430      hardcode_minus_L_GCJ=yes
16431      allow_undefined_flag_GCJ=unsupported
16432      archive_cmds_GCJ='$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'
16433      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16434      ;;
16435
16436    osf3*)
16437      if test "$GCC" = yes; then
16438	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16439	archive_cmds_GCJ='$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'
16440      else
16441	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16442	archive_cmds_GCJ='$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'
16443      fi
16444      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16445      hardcode_libdir_separator_GCJ=:
16446      ;;
16447
16448    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16449      if test "$GCC" = yes; then
16450	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16451	archive_cmds_GCJ='$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'
16452	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16453      else
16454	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16455	archive_cmds_GCJ='$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'
16456	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16457	$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'
16458
16459	# Both c and cxx compiler support -rpath directly
16460	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16461      fi
16462      hardcode_libdir_separator_GCJ=:
16463      ;;
16464
16465    sco3.2v5*)
16466      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16467      hardcode_shlibpath_var_GCJ=no
16468      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16469      runpath_var=LD_RUN_PATH
16470      hardcode_runpath_var=yes
16471      ;;
16472
16473    solaris*)
16474      no_undefined_flag_GCJ=' -z text'
16475      if test "$GCC" = yes; then
16476	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16477	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16478	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16479      else
16480	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16481	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16482  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16483      fi
16484      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16485      hardcode_shlibpath_var_GCJ=no
16486      case $host_os in
16487      solaris2.[0-5] | solaris2.[0-5].*) ;;
16488      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16489	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16490      esac
16491      link_all_deplibs_GCJ=yes
16492      ;;
16493
16494    sunos4*)
16495      if test "x$host_vendor" = xsequent; then
16496	# Use $CC to link under sequent, because it throws in some extra .o
16497	# files that make .init and .fini sections work.
16498	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16499      else
16500	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16501      fi
16502      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16503      hardcode_direct_GCJ=yes
16504      hardcode_minus_L_GCJ=yes
16505      hardcode_shlibpath_var_GCJ=no
16506      ;;
16507
16508    sysv4)
16509      case $host_vendor in
16510	sni)
16511	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512	  hardcode_direct_GCJ=yes # is this really true???
16513	;;
16514	siemens)
16515	  ## LD is ld it makes a PLAMLIB
16516	  ## CC just makes a GrossModule.
16517	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16518	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16519	  hardcode_direct_GCJ=no
16520        ;;
16521	motorola)
16522	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16524	;;
16525      esac
16526      runpath_var='LD_RUN_PATH'
16527      hardcode_shlibpath_var_GCJ=no
16528      ;;
16529
16530    sysv4.3*)
16531      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16532      hardcode_shlibpath_var_GCJ=no
16533      export_dynamic_flag_spec_GCJ='-Bexport'
16534      ;;
16535
16536    sysv4*MP*)
16537      if test -d /usr/nec; then
16538	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16539	hardcode_shlibpath_var_GCJ=no
16540	runpath_var=LD_RUN_PATH
16541	hardcode_runpath_var=yes
16542	ld_shlibs_GCJ=yes
16543      fi
16544      ;;
16545
16546    sysv4.2uw2*)
16547      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16548      hardcode_direct_GCJ=yes
16549      hardcode_minus_L_GCJ=no
16550      hardcode_shlibpath_var_GCJ=no
16551      hardcode_runpath_var=yes
16552      runpath_var=LD_RUN_PATH
16553      ;;
16554
16555   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16556      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16557      if test "$GCC" = yes; then
16558	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16559      else
16560	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16561      fi
16562      runpath_var='LD_RUN_PATH'
16563      hardcode_shlibpath_var_GCJ=no
16564      ;;
16565
16566    sysv5*)
16567      no_undefined_flag_GCJ=' -z text'
16568      # $CC -shared without GNU ld will not create a library from C++
16569      # object files and a static libstdc++, better avoid it by now
16570      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16571      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16572  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16573      hardcode_libdir_flag_spec_GCJ=
16574      hardcode_shlibpath_var_GCJ=no
16575      runpath_var='LD_RUN_PATH'
16576      ;;
16577
16578    uts4*)
16579      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16580      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16581      hardcode_shlibpath_var_GCJ=no
16582      ;;
16583
16584    *)
16585      ld_shlibs_GCJ=no
16586      ;;
16587    esac
16588  fi
16589
16590echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16591echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16592test "$ld_shlibs_GCJ" = no && can_build_shared=no
16593
16594variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16595if test "$GCC" = yes; then
16596  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16597fi
16598
16599#
16600# Do we need to explicitly link libc?
16601#
16602case "x$archive_cmds_need_lc_GCJ" in
16603x|xyes)
16604  # Assume -lc should be added
16605  archive_cmds_need_lc_GCJ=yes
16606
16607  if test "$enable_shared" = yes && test "$GCC" = yes; then
16608    case $archive_cmds_GCJ in
16609    *'~'*)
16610      # FIXME: we may have to deal with multi-command sequences.
16611      ;;
16612    '$CC '*)
16613      # Test whether the compiler implicitly links with -lc since on some
16614      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16615      # to ld, don't add -lc before -lgcc.
16616      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16617echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16618      $rm conftest*
16619      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16620
16621      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16622  (eval $ac_compile) 2>&5
16623  ac_status=$?
16624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625  (exit $ac_status); } 2>conftest.err; then
16626        soname=conftest
16627        lib=conftest
16628        libobjs=conftest.$ac_objext
16629        deplibs=
16630        wl=$lt_prog_compiler_wl_GCJ
16631        compiler_flags=-v
16632        linker_flags=-v
16633        verstring=
16634        output_objdir=.
16635        libname=conftest
16636        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16637        allow_undefined_flag_GCJ=
16638        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16639  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16640  ac_status=$?
16641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642  (exit $ac_status); }
16643        then
16644	  archive_cmds_need_lc_GCJ=no
16645        else
16646	  archive_cmds_need_lc_GCJ=yes
16647        fi
16648        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16649      else
16650        cat conftest.err 1>&5
16651      fi
16652      $rm conftest*
16653      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16654echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16655      ;;
16656    esac
16657  fi
16658  ;;
16659esac
16660
16661echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16662echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16663library_names_spec=
16664libname_spec='lib$name'
16665soname_spec=
16666shrext=".so"
16667postinstall_cmds=
16668postuninstall_cmds=
16669finish_cmds=
16670finish_eval=
16671shlibpath_var=
16672shlibpath_overrides_runpath=unknown
16673version_type=none
16674dynamic_linker="$host_os ld.so"
16675sys_lib_dlsearch_path_spec="/lib /usr/lib"
16676if test "$GCC" = yes; then
16677  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16678  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16679    # if the path contains ";" then we assume it to be the separator
16680    # otherwise default to the standard path separator (i.e. ":") - it is
16681    # assumed that no part of a normal pathname contains ";" but that should
16682    # okay in the real world where ";" in dirpaths is itself problematic.
16683    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16684  else
16685    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16686  fi
16687else
16688  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16689fi
16690need_lib_prefix=unknown
16691hardcode_into_libs=no
16692
16693# when you set need_version to no, make sure it does not cause -set_version
16694# flags to be left without arguments
16695need_version=unknown
16696
16697case $host_os in
16698aix3*)
16699  version_type=linux
16700  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16701  shlibpath_var=LIBPATH
16702
16703  # AIX 3 has no versioning support, so we append a major version to the name.
16704  soname_spec='${libname}${release}${shared_ext}$major'
16705  ;;
16706
16707aix4* | aix5*)
16708  version_type=linux
16709  need_lib_prefix=no
16710  need_version=no
16711  hardcode_into_libs=yes
16712  if test "$host_cpu" = ia64; then
16713    # AIX 5 supports IA64
16714    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16715    shlibpath_var=LD_LIBRARY_PATH
16716  else
16717    # With GCC up to 2.95.x, collect2 would create an import file
16718    # for dependence libraries.  The import file would start with
16719    # the line `#! .'.  This would cause the generated library to
16720    # depend on `.', always an invalid library.  This was fixed in
16721    # development snapshots of GCC prior to 3.0.
16722    case $host_os in
16723      aix4 | aix4.[01] | aix4.[01].*)
16724      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16725	   echo ' yes '
16726	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16727	:
16728      else
16729	can_build_shared=no
16730      fi
16731      ;;
16732    esac
16733    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16734    # soname into executable. Probably we can add versioning support to
16735    # collect2, so additional links can be useful in future.
16736    if test "$aix_use_runtimelinking" = yes; then
16737      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16738      # instead of lib<name>.a to let people know that these are not
16739      # typical AIX shared libraries.
16740      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741    else
16742      # We preserve .a as extension for shared libraries through AIX4.2
16743      # and later when we are not doing run time linking.
16744      library_names_spec='${libname}${release}.a $libname.a'
16745      soname_spec='${libname}${release}${shared_ext}$major'
16746    fi
16747    shlibpath_var=LIBPATH
16748  fi
16749  ;;
16750
16751amigaos*)
16752  library_names_spec='$libname.ixlibrary $libname.a'
16753  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16754  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'
16755  ;;
16756
16757beos*)
16758  library_names_spec='${libname}${shared_ext}'
16759  dynamic_linker="$host_os ld.so"
16760  shlibpath_var=LIBRARY_PATH
16761  ;;
16762
16763bsdi4*)
16764  version_type=linux
16765  need_version=no
16766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767  soname_spec='${libname}${release}${shared_ext}$major'
16768  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16769  shlibpath_var=LD_LIBRARY_PATH
16770  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16771  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16772  # the default ld.so.conf also contains /usr/contrib/lib and
16773  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16774  # libtool to hard-code these into programs
16775  ;;
16776
16777cygwin* | mingw* | pw32*)
16778  version_type=windows
16779  shrext=".dll"
16780  need_version=no
16781  need_lib_prefix=no
16782
16783  case $GCC,$host_os in
16784  yes,cygwin* | yes,mingw* | yes,pw32*)
16785    library_names_spec='$libname.dll.a'
16786    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16787    postinstall_cmds='base_file=`basename \${file}`~
16788      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16789      dldir=$destdir/`dirname \$dlpath`~
16790      test -d \$dldir || mkdir -p \$dldir~
16791      $install_prog $dir/$dlname \$dldir/$dlname'
16792    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16793      dlpath=$dir/\$dldll~
16794       $rm \$dlpath'
16795    shlibpath_overrides_runpath=yes
16796
16797    case $host_os in
16798    cygwin*)
16799      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16800      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16801      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16802      ;;
16803    mingw*)
16804      # MinGW DLLs use traditional 'lib' prefix
16805      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16806      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16807      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16808        # It is most probably a Windows format PATH printed by
16809        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16810        # path with ; separators, and with drive letters. We can handle the
16811        # drive letters (cygwin fileutils understands them), so leave them,
16812        # especially as we might pass files found there to a mingw objdump,
16813        # which wouldn't understand a cygwinified path. Ahh.
16814        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16815      else
16816        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16817      fi
16818      ;;
16819    pw32*)
16820      # pw32 DLLs use 'pw' prefix rather than 'lib'
16821      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16822      ;;
16823    esac
16824    ;;
16825
16826  *)
16827    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16828    ;;
16829  esac
16830  dynamic_linker='Win32 ld.exe'
16831  # FIXME: first we should search . and the directory the executable is in
16832  shlibpath_var=PATH
16833  ;;
16834
16835darwin* | rhapsody*)
16836  dynamic_linker="$host_os dyld"
16837  version_type=darwin
16838  need_lib_prefix=no
16839  need_version=no
16840  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16841  soname_spec='${libname}${release}${major}$shared_ext'
16842  shlibpath_overrides_runpath=yes
16843  shlibpath_var=DYLD_LIBRARY_PATH
16844  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16845  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16846  if test "$GCC" = yes; then
16847    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16848  else
16849    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16850  fi
16851  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16852  ;;
16853
16854dgux*)
16855  version_type=linux
16856  need_lib_prefix=no
16857  need_version=no
16858  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16859  soname_spec='${libname}${release}${shared_ext}$major'
16860  shlibpath_var=LD_LIBRARY_PATH
16861  ;;
16862
16863freebsd1*)
16864  dynamic_linker=no
16865  ;;
16866
16867kfreebsd*-gnu)
16868  version_type=linux
16869  need_lib_prefix=no
16870  need_version=no
16871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16872  soname_spec='${libname}${release}${shared_ext}$major'
16873  shlibpath_var=LD_LIBRARY_PATH
16874  shlibpath_overrides_runpath=no
16875  hardcode_into_libs=yes
16876  dynamic_linker='GNU ld.so'
16877  ;;
16878
16879freebsd*)
16880  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16881  version_type=freebsd-$objformat
16882  case $version_type in
16883    freebsd-elf*)
16884      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16885      need_version=no
16886      need_lib_prefix=no
16887      ;;
16888    freebsd-*)
16889      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16890      need_version=yes
16891      ;;
16892  esac
16893  shlibpath_var=LD_LIBRARY_PATH
16894  case $host_os in
16895  freebsd2*)
16896    shlibpath_overrides_runpath=yes
16897    ;;
16898  freebsd3.01* | freebsdelf3.01*)
16899    shlibpath_overrides_runpath=yes
16900    hardcode_into_libs=yes
16901    ;;
16902  *) # from 3.2 on
16903    shlibpath_overrides_runpath=no
16904    hardcode_into_libs=yes
16905    ;;
16906  esac
16907  ;;
16908
16909gnu*)
16910  version_type=linux
16911  need_lib_prefix=no
16912  need_version=no
16913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16914  soname_spec='${libname}${release}${shared_ext}$major'
16915  shlibpath_var=LD_LIBRARY_PATH
16916  hardcode_into_libs=yes
16917  ;;
16918
16919hpux9* | hpux10* | hpux11*)
16920  # Give a soname corresponding to the major version so that dld.sl refuses to
16921  # link against other versions.
16922  version_type=sunos
16923  need_lib_prefix=no
16924  need_version=no
16925  case "$host_cpu" in
16926  ia64*)
16927    shrext='.so'
16928    hardcode_into_libs=yes
16929    dynamic_linker="$host_os dld.so"
16930    shlibpath_var=LD_LIBRARY_PATH
16931    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16932    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16933    soname_spec='${libname}${release}${shared_ext}$major'
16934    if test "X$HPUX_IA64_MODE" = X32; then
16935      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16936    else
16937      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16938    fi
16939    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16940    ;;
16941   hppa*64*)
16942     shrext='.sl'
16943     hardcode_into_libs=yes
16944     dynamic_linker="$host_os dld.sl"
16945     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948     soname_spec='${libname}${release}${shared_ext}$major'
16949     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16950     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16951     ;;
16952   *)
16953    shrext='.sl'
16954    dynamic_linker="$host_os dld.sl"
16955    shlibpath_var=SHLIB_PATH
16956    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16957    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16958    soname_spec='${libname}${release}${shared_ext}$major'
16959    ;;
16960  esac
16961  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16962  postinstall_cmds='chmod 555 $lib'
16963  ;;
16964
16965irix5* | irix6* | nonstopux*)
16966  case $host_os in
16967    nonstopux*) version_type=nonstopux ;;
16968    *)
16969	if test "$lt_cv_prog_gnu_ld" = yes; then
16970		version_type=linux
16971	else
16972		version_type=irix
16973	fi ;;
16974  esac
16975  need_lib_prefix=no
16976  need_version=no
16977  soname_spec='${libname}${release}${shared_ext}$major'
16978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16979  case $host_os in
16980  irix5* | nonstopux*)
16981    libsuff= shlibsuff=
16982    ;;
16983  *)
16984    case $LD in # libtool.m4 will add one of these switches to LD
16985    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16986      libsuff= shlibsuff= libmagic=32-bit;;
16987    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16988      libsuff=32 shlibsuff=N32 libmagic=N32;;
16989    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16990      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16991    *) libsuff= shlibsuff= libmagic=never-match;;
16992    esac
16993    ;;
16994  esac
16995  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16996  shlibpath_overrides_runpath=no
16997  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16998  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16999  hardcode_into_libs=yes
17000  ;;
17001
17002# No shared lib support for Linux oldld, aout, or coff.
17003linux*oldld* | linux*aout* | linux*coff*)
17004  dynamic_linker=no
17005  ;;
17006
17007# This must be Linux ELF.
17008linux*)
17009  version_type=linux
17010  need_lib_prefix=no
17011  need_version=no
17012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013  soname_spec='${libname}${release}${shared_ext}$major'
17014  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17015  shlibpath_var=LD_LIBRARY_PATH
17016  shlibpath_overrides_runpath=no
17017  # This implies no fast_install, which is unacceptable.
17018  # Some rework will be needed to allow for fast_install
17019  # before this can be enabled.
17020  hardcode_into_libs=yes
17021
17022  # Append ld.so.conf contents to the search path
17023  if test -f /etc/ld.so.conf; then
17024    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17025    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17026  fi
17027
17028  # We used to test for /lib/ld.so.1 and disable shared libraries on
17029  # powerpc, because MkLinux only supported shared libraries with the
17030  # GNU dynamic linker.  Since this was broken with cross compilers,
17031  # most powerpc-linux boxes support dynamic linking these days and
17032  # people can always --disable-shared, the test was removed, and we
17033  # assume the GNU/Linux dynamic linker is in use.
17034  dynamic_linker='GNU/Linux ld.so'
17035  ;;
17036
17037knetbsd*-gnu)
17038  version_type=linux
17039  need_lib_prefix=no
17040  need_version=no
17041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17042  soname_spec='${libname}${release}${shared_ext}$major'
17043  shlibpath_var=LD_LIBRARY_PATH
17044  shlibpath_overrides_runpath=no
17045  hardcode_into_libs=yes
17046  dynamic_linker='GNU ld.so'
17047  ;;
17048
17049netbsd*)
17050  version_type=sunos
17051  need_lib_prefix=no
17052  need_version=no
17053  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17054    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17055    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17056    dynamic_linker='NetBSD (a.out) ld.so'
17057  else
17058    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17059    soname_spec='${libname}${release}${shared_ext}$major'
17060    dynamic_linker='NetBSD ld.elf_so'
17061  fi
17062  shlibpath_var=LD_LIBRARY_PATH
17063  shlibpath_overrides_runpath=yes
17064  hardcode_into_libs=yes
17065  ;;
17066
17067newsos6)
17068  version_type=linux
17069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17070  shlibpath_var=LD_LIBRARY_PATH
17071  shlibpath_overrides_runpath=yes
17072  ;;
17073
17074nto-qnx*)
17075  version_type=linux
17076  need_lib_prefix=no
17077  need_version=no
17078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17079  soname_spec='${libname}${release}${shared_ext}$major'
17080  shlibpath_var=LD_LIBRARY_PATH
17081  shlibpath_overrides_runpath=yes
17082  ;;
17083
17084openbsd*)
17085  version_type=sunos
17086  need_lib_prefix=no
17087  need_version=yes
17088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17089  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17090  shlibpath_var=LD_LIBRARY_PATH
17091  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17092    case $host_os in
17093      openbsd2.[89] | openbsd2.[89].*)
17094	shlibpath_overrides_runpath=no
17095	;;
17096      *)
17097	shlibpath_overrides_runpath=yes
17098	;;
17099      esac
17100  else
17101    shlibpath_overrides_runpath=yes
17102  fi
17103  ;;
17104
17105os2*)
17106  libname_spec='$name'
17107  shrext=".dll"
17108  need_lib_prefix=no
17109  library_names_spec='$libname${shared_ext} $libname.a'
17110  dynamic_linker='OS/2 ld.exe'
17111  shlibpath_var=LIBPATH
17112  ;;
17113
17114osf3* | osf4* | osf5*)
17115  version_type=osf
17116  need_lib_prefix=no
17117  need_version=no
17118  soname_spec='${libname}${release}${shared_ext}$major'
17119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120  shlibpath_var=LD_LIBRARY_PATH
17121  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17122  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17123  ;;
17124
17125sco3.2v5*)
17126  version_type=osf
17127  soname_spec='${libname}${release}${shared_ext}$major'
17128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129  shlibpath_var=LD_LIBRARY_PATH
17130  ;;
17131
17132solaris*)
17133  version_type=linux
17134  need_lib_prefix=no
17135  need_version=no
17136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17137  soname_spec='${libname}${release}${shared_ext}$major'
17138  shlibpath_var=LD_LIBRARY_PATH
17139  shlibpath_overrides_runpath=yes
17140  hardcode_into_libs=yes
17141  # ldd complains unless libraries are executable
17142  postinstall_cmds='chmod +x $lib'
17143  ;;
17144
17145sunos4*)
17146  version_type=sunos
17147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17148  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17149  shlibpath_var=LD_LIBRARY_PATH
17150  shlibpath_overrides_runpath=yes
17151  if test "$with_gnu_ld" = yes; then
17152    need_lib_prefix=no
17153  fi
17154  need_version=yes
17155  ;;
17156
17157sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17158  version_type=linux
17159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17160  soname_spec='${libname}${release}${shared_ext}$major'
17161  shlibpath_var=LD_LIBRARY_PATH
17162  case $host_vendor in
17163    sni)
17164      shlibpath_overrides_runpath=no
17165      need_lib_prefix=no
17166      export_dynamic_flag_spec='${wl}-Blargedynsym'
17167      runpath_var=LD_RUN_PATH
17168      ;;
17169    siemens)
17170      need_lib_prefix=no
17171      ;;
17172    motorola)
17173      need_lib_prefix=no
17174      need_version=no
17175      shlibpath_overrides_runpath=no
17176      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17177      ;;
17178  esac
17179  ;;
17180
17181sysv4*MP*)
17182  if test -d /usr/nec ;then
17183    version_type=linux
17184    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17185    soname_spec='$libname${shared_ext}.$major'
17186    shlibpath_var=LD_LIBRARY_PATH
17187  fi
17188  ;;
17189
17190uts4*)
17191  version_type=linux
17192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193  soname_spec='${libname}${release}${shared_ext}$major'
17194  shlibpath_var=LD_LIBRARY_PATH
17195  ;;
17196
17197*)
17198  dynamic_linker=no
17199  ;;
17200esac
17201echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17202echo "${ECHO_T}$dynamic_linker" >&6
17203test "$dynamic_linker" = no && can_build_shared=no
17204
17205echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17206echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17207hardcode_action_GCJ=
17208if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17209   test -n "$runpath_var GCJ" || \
17210   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17211
17212  # We can hardcode non-existant directories.
17213  if test "$hardcode_direct_GCJ" != no &&
17214     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17215     # have to relink, otherwise we might link with an installed library
17216     # when we should be linking with a yet-to-be-installed one
17217     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17218     test "$hardcode_minus_L_GCJ" != no; then
17219    # Linking always hardcodes the temporary library directory.
17220    hardcode_action_GCJ=relink
17221  else
17222    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17223    hardcode_action_GCJ=immediate
17224  fi
17225else
17226  # We cannot hardcode anything, or else we can only hardcode existing
17227  # directories.
17228  hardcode_action_GCJ=unsupported
17229fi
17230echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17231echo "${ECHO_T}$hardcode_action_GCJ" >&6
17232
17233if test "$hardcode_action_GCJ" = relink; then
17234  # Fast installation is not supported
17235  enable_fast_install=no
17236elif test "$shlibpath_overrides_runpath" = yes ||
17237     test "$enable_shared" = no; then
17238  # Fast installation is not necessary
17239  enable_fast_install=needless
17240fi
17241
17242striplib=
17243old_striplib=
17244echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17245echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17246if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17247  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17248  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17249  echo "$as_me:$LINENO: result: yes" >&5
17250echo "${ECHO_T}yes" >&6
17251else
17252# FIXME - insert some real tests, host_os isn't really good enough
17253  case $host_os in
17254   darwin*)
17255       if test -n "$STRIP" ; then
17256         striplib="$STRIP -x"
17257         echo "$as_me:$LINENO: result: yes" >&5
17258echo "${ECHO_T}yes" >&6
17259       else
17260  echo "$as_me:$LINENO: result: no" >&5
17261echo "${ECHO_T}no" >&6
17262fi
17263       ;;
17264   *)
17265  echo "$as_me:$LINENO: result: no" >&5
17266echo "${ECHO_T}no" >&6
17267    ;;
17268  esac
17269fi
17270
17271if test "x$enable_dlopen" != xyes; then
17272  enable_dlopen=unknown
17273  enable_dlopen_self=unknown
17274  enable_dlopen_self_static=unknown
17275else
17276  lt_cv_dlopen=no
17277  lt_cv_dlopen_libs=
17278
17279  case $host_os in
17280  beos*)
17281    lt_cv_dlopen="load_add_on"
17282    lt_cv_dlopen_libs=
17283    lt_cv_dlopen_self=yes
17284    ;;
17285
17286  mingw* | pw32*)
17287    lt_cv_dlopen="LoadLibrary"
17288    lt_cv_dlopen_libs=
17289   ;;
17290
17291  cygwin*)
17292    lt_cv_dlopen="dlopen"
17293    lt_cv_dlopen_libs=
17294   ;;
17295
17296  darwin*)
17297  # if libdl is installed we need to link against it
17298    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17299echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17300if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17301  echo $ECHO_N "(cached) $ECHO_C" >&6
17302else
17303  ac_check_lib_save_LIBS=$LIBS
17304LIBS="-ldl  $LIBS"
17305cat >conftest.$ac_ext <<_ACEOF
17306/* confdefs.h.  */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h.  */
17311
17312/* Override any gcc2 internal prototype to avoid an error.  */
17313#ifdef __cplusplus
17314extern "C"
17315#endif
17316/* We use char because int might match the return type of a gcc2
17317   builtin and then its argument prototype would still apply.  */
17318char dlopen ();
17319int
17320main ()
17321{
17322dlopen ();
17323  ;
17324  return 0;
17325}
17326_ACEOF
17327rm -f conftest.$ac_objext conftest$ac_exeext
17328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17329  (eval $ac_link) 2>conftest.er1
17330  ac_status=$?
17331  grep -v '^ *+' conftest.er1 >conftest.err
17332  rm -f conftest.er1
17333  cat conftest.err >&5
17334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335  (exit $ac_status); } &&
17336	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338  (eval $ac_try) 2>&5
17339  ac_status=$?
17340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341  (exit $ac_status); }; } &&
17342	 { ac_try='test -s conftest$ac_exeext'
17343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344  (eval $ac_try) 2>&5
17345  ac_status=$?
17346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347  (exit $ac_status); }; }; then
17348  ac_cv_lib_dl_dlopen=yes
17349else
17350  echo "$as_me: failed program was:" >&5
17351sed 's/^/| /' conftest.$ac_ext >&5
17352
17353ac_cv_lib_dl_dlopen=no
17354fi
17355rm -f conftest.err conftest.$ac_objext \
17356      conftest$ac_exeext conftest.$ac_ext
17357LIBS=$ac_check_lib_save_LIBS
17358fi
17359echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17360echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17361if test $ac_cv_lib_dl_dlopen = yes; then
17362  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17363else
17364
17365    lt_cv_dlopen="dyld"
17366    lt_cv_dlopen_libs=
17367    lt_cv_dlopen_self=yes
17368
17369fi
17370
17371   ;;
17372
17373  *)
17374    echo "$as_me:$LINENO: checking for shl_load" >&5
17375echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17376if test "${ac_cv_func_shl_load+set}" = set; then
17377  echo $ECHO_N "(cached) $ECHO_C" >&6
17378else
17379  cat >conftest.$ac_ext <<_ACEOF
17380/* confdefs.h.  */
17381_ACEOF
17382cat confdefs.h >>conftest.$ac_ext
17383cat >>conftest.$ac_ext <<_ACEOF
17384/* end confdefs.h.  */
17385/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17386   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17387#define shl_load innocuous_shl_load
17388
17389/* System header to define __stub macros and hopefully few prototypes,
17390    which can conflict with char shl_load (); below.
17391    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17392    <limits.h> exists even on freestanding compilers.  */
17393
17394#ifdef __STDC__
17395# include <limits.h>
17396#else
17397# include <assert.h>
17398#endif
17399
17400#undef shl_load
17401
17402/* Override any gcc2 internal prototype to avoid an error.  */
17403#ifdef __cplusplus
17404extern "C"
17405{
17406#endif
17407/* We use char because int might match the return type of a gcc2
17408   builtin and then its argument prototype would still apply.  */
17409char shl_load ();
17410/* The GNU C library defines this for functions which it implements
17411    to always fail with ENOSYS.  Some functions are actually named
17412    something starting with __ and the normal name is an alias.  */
17413#if defined (__stub_shl_load) || defined (__stub___shl_load)
17414choke me
17415#else
17416char (*f) () = shl_load;
17417#endif
17418#ifdef __cplusplus
17419}
17420#endif
17421
17422int
17423main ()
17424{
17425return f != shl_load;
17426  ;
17427  return 0;
17428}
17429_ACEOF
17430rm -f conftest.$ac_objext conftest$ac_exeext
17431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17432  (eval $ac_link) 2>conftest.er1
17433  ac_status=$?
17434  grep -v '^ *+' conftest.er1 >conftest.err
17435  rm -f conftest.er1
17436  cat conftest.err >&5
17437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438  (exit $ac_status); } &&
17439	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441  (eval $ac_try) 2>&5
17442  ac_status=$?
17443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444  (exit $ac_status); }; } &&
17445	 { ac_try='test -s conftest$ac_exeext'
17446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447  (eval $ac_try) 2>&5
17448  ac_status=$?
17449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450  (exit $ac_status); }; }; then
17451  ac_cv_func_shl_load=yes
17452else
17453  echo "$as_me: failed program was:" >&5
17454sed 's/^/| /' conftest.$ac_ext >&5
17455
17456ac_cv_func_shl_load=no
17457fi
17458rm -f conftest.err conftest.$ac_objext \
17459      conftest$ac_exeext conftest.$ac_ext
17460fi
17461echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17462echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17463if test $ac_cv_func_shl_load = yes; then
17464  lt_cv_dlopen="shl_load"
17465else
17466  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17467echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17468if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17469  echo $ECHO_N "(cached) $ECHO_C" >&6
17470else
17471  ac_check_lib_save_LIBS=$LIBS
17472LIBS="-ldld  $LIBS"
17473cat >conftest.$ac_ext <<_ACEOF
17474/* confdefs.h.  */
17475_ACEOF
17476cat confdefs.h >>conftest.$ac_ext
17477cat >>conftest.$ac_ext <<_ACEOF
17478/* end confdefs.h.  */
17479
17480/* Override any gcc2 internal prototype to avoid an error.  */
17481#ifdef __cplusplus
17482extern "C"
17483#endif
17484/* We use char because int might match the return type of a gcc2
17485   builtin and then its argument prototype would still apply.  */
17486char shl_load ();
17487int
17488main ()
17489{
17490shl_load ();
17491  ;
17492  return 0;
17493}
17494_ACEOF
17495rm -f conftest.$ac_objext conftest$ac_exeext
17496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17497  (eval $ac_link) 2>conftest.er1
17498  ac_status=$?
17499  grep -v '^ *+' conftest.er1 >conftest.err
17500  rm -f conftest.er1
17501  cat conftest.err >&5
17502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503  (exit $ac_status); } &&
17504	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506  (eval $ac_try) 2>&5
17507  ac_status=$?
17508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509  (exit $ac_status); }; } &&
17510	 { ac_try='test -s conftest$ac_exeext'
17511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512  (eval $ac_try) 2>&5
17513  ac_status=$?
17514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515  (exit $ac_status); }; }; then
17516  ac_cv_lib_dld_shl_load=yes
17517else
17518  echo "$as_me: failed program was:" >&5
17519sed 's/^/| /' conftest.$ac_ext >&5
17520
17521ac_cv_lib_dld_shl_load=no
17522fi
17523rm -f conftest.err conftest.$ac_objext \
17524      conftest$ac_exeext conftest.$ac_ext
17525LIBS=$ac_check_lib_save_LIBS
17526fi
17527echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17528echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17529if test $ac_cv_lib_dld_shl_load = yes; then
17530  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17531else
17532  echo "$as_me:$LINENO: checking for dlopen" >&5
17533echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17534if test "${ac_cv_func_dlopen+set}" = set; then
17535  echo $ECHO_N "(cached) $ECHO_C" >&6
17536else
17537  cat >conftest.$ac_ext <<_ACEOF
17538/* confdefs.h.  */
17539_ACEOF
17540cat confdefs.h >>conftest.$ac_ext
17541cat >>conftest.$ac_ext <<_ACEOF
17542/* end confdefs.h.  */
17543/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17544   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17545#define dlopen innocuous_dlopen
17546
17547/* System header to define __stub macros and hopefully few prototypes,
17548    which can conflict with char dlopen (); below.
17549    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17550    <limits.h> exists even on freestanding compilers.  */
17551
17552#ifdef __STDC__
17553# include <limits.h>
17554#else
17555# include <assert.h>
17556#endif
17557
17558#undef dlopen
17559
17560/* Override any gcc2 internal prototype to avoid an error.  */
17561#ifdef __cplusplus
17562extern "C"
17563{
17564#endif
17565/* We use char because int might match the return type of a gcc2
17566   builtin and then its argument prototype would still apply.  */
17567char dlopen ();
17568/* The GNU C library defines this for functions which it implements
17569    to always fail with ENOSYS.  Some functions are actually named
17570    something starting with __ and the normal name is an alias.  */
17571#if defined (__stub_dlopen) || defined (__stub___dlopen)
17572choke me
17573#else
17574char (*f) () = dlopen;
17575#endif
17576#ifdef __cplusplus
17577}
17578#endif
17579
17580int
17581main ()
17582{
17583return f != dlopen;
17584  ;
17585  return 0;
17586}
17587_ACEOF
17588rm -f conftest.$ac_objext conftest$ac_exeext
17589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17590  (eval $ac_link) 2>conftest.er1
17591  ac_status=$?
17592  grep -v '^ *+' conftest.er1 >conftest.err
17593  rm -f conftest.er1
17594  cat conftest.err >&5
17595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596  (exit $ac_status); } &&
17597	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599  (eval $ac_try) 2>&5
17600  ac_status=$?
17601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602  (exit $ac_status); }; } &&
17603	 { ac_try='test -s conftest$ac_exeext'
17604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605  (eval $ac_try) 2>&5
17606  ac_status=$?
17607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608  (exit $ac_status); }; }; then
17609  ac_cv_func_dlopen=yes
17610else
17611  echo "$as_me: failed program was:" >&5
17612sed 's/^/| /' conftest.$ac_ext >&5
17613
17614ac_cv_func_dlopen=no
17615fi
17616rm -f conftest.err conftest.$ac_objext \
17617      conftest$ac_exeext conftest.$ac_ext
17618fi
17619echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17620echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17621if test $ac_cv_func_dlopen = yes; then
17622  lt_cv_dlopen="dlopen"
17623else
17624  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17625echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17626if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17627  echo $ECHO_N "(cached) $ECHO_C" >&6
17628else
17629  ac_check_lib_save_LIBS=$LIBS
17630LIBS="-ldl  $LIBS"
17631cat >conftest.$ac_ext <<_ACEOF
17632/* confdefs.h.  */
17633_ACEOF
17634cat confdefs.h >>conftest.$ac_ext
17635cat >>conftest.$ac_ext <<_ACEOF
17636/* end confdefs.h.  */
17637
17638/* Override any gcc2 internal prototype to avoid an error.  */
17639#ifdef __cplusplus
17640extern "C"
17641#endif
17642/* We use char because int might match the return type of a gcc2
17643   builtin and then its argument prototype would still apply.  */
17644char dlopen ();
17645int
17646main ()
17647{
17648dlopen ();
17649  ;
17650  return 0;
17651}
17652_ACEOF
17653rm -f conftest.$ac_objext conftest$ac_exeext
17654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655  (eval $ac_link) 2>conftest.er1
17656  ac_status=$?
17657  grep -v '^ *+' conftest.er1 >conftest.err
17658  rm -f conftest.er1
17659  cat conftest.err >&5
17660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661  (exit $ac_status); } &&
17662	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664  (eval $ac_try) 2>&5
17665  ac_status=$?
17666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667  (exit $ac_status); }; } &&
17668	 { ac_try='test -s conftest$ac_exeext'
17669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670  (eval $ac_try) 2>&5
17671  ac_status=$?
17672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673  (exit $ac_status); }; }; then
17674  ac_cv_lib_dl_dlopen=yes
17675else
17676  echo "$as_me: failed program was:" >&5
17677sed 's/^/| /' conftest.$ac_ext >&5
17678
17679ac_cv_lib_dl_dlopen=no
17680fi
17681rm -f conftest.err conftest.$ac_objext \
17682      conftest$ac_exeext conftest.$ac_ext
17683LIBS=$ac_check_lib_save_LIBS
17684fi
17685echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17686echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17687if test $ac_cv_lib_dl_dlopen = yes; then
17688  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17689else
17690  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17691echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17692if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17693  echo $ECHO_N "(cached) $ECHO_C" >&6
17694else
17695  ac_check_lib_save_LIBS=$LIBS
17696LIBS="-lsvld  $LIBS"
17697cat >conftest.$ac_ext <<_ACEOF
17698/* confdefs.h.  */
17699_ACEOF
17700cat confdefs.h >>conftest.$ac_ext
17701cat >>conftest.$ac_ext <<_ACEOF
17702/* end confdefs.h.  */
17703
17704/* Override any gcc2 internal prototype to avoid an error.  */
17705#ifdef __cplusplus
17706extern "C"
17707#endif
17708/* We use char because int might match the return type of a gcc2
17709   builtin and then its argument prototype would still apply.  */
17710char dlopen ();
17711int
17712main ()
17713{
17714dlopen ();
17715  ;
17716  return 0;
17717}
17718_ACEOF
17719rm -f conftest.$ac_objext conftest$ac_exeext
17720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17721  (eval $ac_link) 2>conftest.er1
17722  ac_status=$?
17723  grep -v '^ *+' conftest.er1 >conftest.err
17724  rm -f conftest.er1
17725  cat conftest.err >&5
17726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727  (exit $ac_status); } &&
17728	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730  (eval $ac_try) 2>&5
17731  ac_status=$?
17732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733  (exit $ac_status); }; } &&
17734	 { ac_try='test -s conftest$ac_exeext'
17735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736  (eval $ac_try) 2>&5
17737  ac_status=$?
17738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739  (exit $ac_status); }; }; then
17740  ac_cv_lib_svld_dlopen=yes
17741else
17742  echo "$as_me: failed program was:" >&5
17743sed 's/^/| /' conftest.$ac_ext >&5
17744
17745ac_cv_lib_svld_dlopen=no
17746fi
17747rm -f conftest.err conftest.$ac_objext \
17748      conftest$ac_exeext conftest.$ac_ext
17749LIBS=$ac_check_lib_save_LIBS
17750fi
17751echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17752echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17753if test $ac_cv_lib_svld_dlopen = yes; then
17754  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17755else
17756  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17757echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17758if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17759  echo $ECHO_N "(cached) $ECHO_C" >&6
17760else
17761  ac_check_lib_save_LIBS=$LIBS
17762LIBS="-ldld  $LIBS"
17763cat >conftest.$ac_ext <<_ACEOF
17764/* confdefs.h.  */
17765_ACEOF
17766cat confdefs.h >>conftest.$ac_ext
17767cat >>conftest.$ac_ext <<_ACEOF
17768/* end confdefs.h.  */
17769
17770/* Override any gcc2 internal prototype to avoid an error.  */
17771#ifdef __cplusplus
17772extern "C"
17773#endif
17774/* We use char because int might match the return type of a gcc2
17775   builtin and then its argument prototype would still apply.  */
17776char dld_link ();
17777int
17778main ()
17779{
17780dld_link ();
17781  ;
17782  return 0;
17783}
17784_ACEOF
17785rm -f conftest.$ac_objext conftest$ac_exeext
17786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17787  (eval $ac_link) 2>conftest.er1
17788  ac_status=$?
17789  grep -v '^ *+' conftest.er1 >conftest.err
17790  rm -f conftest.er1
17791  cat conftest.err >&5
17792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793  (exit $ac_status); } &&
17794	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796  (eval $ac_try) 2>&5
17797  ac_status=$?
17798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799  (exit $ac_status); }; } &&
17800	 { ac_try='test -s conftest$ac_exeext'
17801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802  (eval $ac_try) 2>&5
17803  ac_status=$?
17804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805  (exit $ac_status); }; }; then
17806  ac_cv_lib_dld_dld_link=yes
17807else
17808  echo "$as_me: failed program was:" >&5
17809sed 's/^/| /' conftest.$ac_ext >&5
17810
17811ac_cv_lib_dld_dld_link=no
17812fi
17813rm -f conftest.err conftest.$ac_objext \
17814      conftest$ac_exeext conftest.$ac_ext
17815LIBS=$ac_check_lib_save_LIBS
17816fi
17817echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17818echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17819if test $ac_cv_lib_dld_dld_link = yes; then
17820  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17821fi
17822
17823
17824fi
17825
17826
17827fi
17828
17829
17830fi
17831
17832
17833fi
17834
17835
17836fi
17837
17838    ;;
17839  esac
17840
17841  if test "x$lt_cv_dlopen" != xno; then
17842    enable_dlopen=yes
17843  else
17844    enable_dlopen=no
17845  fi
17846
17847  case $lt_cv_dlopen in
17848  dlopen)
17849    save_CPPFLAGS="$CPPFLAGS"
17850    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17851
17852    save_LDFLAGS="$LDFLAGS"
17853    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17854
17855    save_LIBS="$LIBS"
17856    LIBS="$lt_cv_dlopen_libs $LIBS"
17857
17858    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17859echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17860if test "${lt_cv_dlopen_self+set}" = set; then
17861  echo $ECHO_N "(cached) $ECHO_C" >&6
17862else
17863  	  if test "$cross_compiling" = yes; then :
17864  lt_cv_dlopen_self=cross
17865else
17866  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17867  lt_status=$lt_dlunknown
17868  cat > conftest.$ac_ext <<EOF
17869#line 17869 "configure"
17870#include "confdefs.h"
17871
17872#if HAVE_DLFCN_H
17873#include <dlfcn.h>
17874#endif
17875
17876#include <stdio.h>
17877
17878#ifdef RTLD_GLOBAL
17879#  define LT_DLGLOBAL		RTLD_GLOBAL
17880#else
17881#  ifdef DL_GLOBAL
17882#    define LT_DLGLOBAL		DL_GLOBAL
17883#  else
17884#    define LT_DLGLOBAL		0
17885#  endif
17886#endif
17887
17888/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17889   find out it does not work in some platform. */
17890#ifndef LT_DLLAZY_OR_NOW
17891#  ifdef RTLD_LAZY
17892#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17893#  else
17894#    ifdef DL_LAZY
17895#      define LT_DLLAZY_OR_NOW		DL_LAZY
17896#    else
17897#      ifdef RTLD_NOW
17898#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17899#      else
17900#        ifdef DL_NOW
17901#          define LT_DLLAZY_OR_NOW	DL_NOW
17902#        else
17903#          define LT_DLLAZY_OR_NOW	0
17904#        endif
17905#      endif
17906#    endif
17907#  endif
17908#endif
17909
17910#ifdef __cplusplus
17911extern "C" void exit (int);
17912#endif
17913
17914void fnord() { int i=42;}
17915int main ()
17916{
17917  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17918  int status = $lt_dlunknown;
17919
17920  if (self)
17921    {
17922      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17923      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17924      /* dlclose (self); */
17925    }
17926
17927    exit (status);
17928}
17929EOF
17930  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931  (eval $ac_link) 2>&5
17932  ac_status=$?
17933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17935    (./conftest; exit; ) 2>/dev/null
17936    lt_status=$?
17937    case x$lt_status in
17938      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17939      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17940      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17941    esac
17942  else :
17943    # compilation failed
17944    lt_cv_dlopen_self=no
17945  fi
17946fi
17947rm -fr conftest*
17948
17949
17950fi
17951echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17952echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17953
17954    if test "x$lt_cv_dlopen_self" = xyes; then
17955      LDFLAGS="$LDFLAGS $link_static_flag"
17956      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17957echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17958if test "${lt_cv_dlopen_self_static+set}" = set; then
17959  echo $ECHO_N "(cached) $ECHO_C" >&6
17960else
17961  	  if test "$cross_compiling" = yes; then :
17962  lt_cv_dlopen_self_static=cross
17963else
17964  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17965  lt_status=$lt_dlunknown
17966  cat > conftest.$ac_ext <<EOF
17967#line 17967 "configure"
17968#include "confdefs.h"
17969
17970#if HAVE_DLFCN_H
17971#include <dlfcn.h>
17972#endif
17973
17974#include <stdio.h>
17975
17976#ifdef RTLD_GLOBAL
17977#  define LT_DLGLOBAL		RTLD_GLOBAL
17978#else
17979#  ifdef DL_GLOBAL
17980#    define LT_DLGLOBAL		DL_GLOBAL
17981#  else
17982#    define LT_DLGLOBAL		0
17983#  endif
17984#endif
17985
17986/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17987   find out it does not work in some platform. */
17988#ifndef LT_DLLAZY_OR_NOW
17989#  ifdef RTLD_LAZY
17990#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17991#  else
17992#    ifdef DL_LAZY
17993#      define LT_DLLAZY_OR_NOW		DL_LAZY
17994#    else
17995#      ifdef RTLD_NOW
17996#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17997#      else
17998#        ifdef DL_NOW
17999#          define LT_DLLAZY_OR_NOW	DL_NOW
18000#        else
18001#          define LT_DLLAZY_OR_NOW	0
18002#        endif
18003#      endif
18004#    endif
18005#  endif
18006#endif
18007
18008#ifdef __cplusplus
18009extern "C" void exit (int);
18010#endif
18011
18012void fnord() { int i=42;}
18013int main ()
18014{
18015  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18016  int status = $lt_dlunknown;
18017
18018  if (self)
18019    {
18020      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18021      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18022      /* dlclose (self); */
18023    }
18024
18025    exit (status);
18026}
18027EOF
18028  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18029  (eval $ac_link) 2>&5
18030  ac_status=$?
18031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18033    (./conftest; exit; ) 2>/dev/null
18034    lt_status=$?
18035    case x$lt_status in
18036      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18037      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18038      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18039    esac
18040  else :
18041    # compilation failed
18042    lt_cv_dlopen_self_static=no
18043  fi
18044fi
18045rm -fr conftest*
18046
18047
18048fi
18049echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18050echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18051    fi
18052
18053    CPPFLAGS="$save_CPPFLAGS"
18054    LDFLAGS="$save_LDFLAGS"
18055    LIBS="$save_LIBS"
18056    ;;
18057  esac
18058
18059  case $lt_cv_dlopen_self in
18060  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18061  *) enable_dlopen_self=unknown ;;
18062  esac
18063
18064  case $lt_cv_dlopen_self_static in
18065  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18066  *) enable_dlopen_self_static=unknown ;;
18067  esac
18068fi
18069
18070
18071# The else clause should only fire when bootstrapping the
18072# libtool distribution, otherwise you forgot to ship ltmain.sh
18073# with your package, and you will get complaints that there are
18074# no rules to generate ltmain.sh.
18075if test -f "$ltmain"; then
18076  # See if we are running on zsh, and set the options which allow our commands through
18077  # without removal of \ escapes.
18078  if test -n "${ZSH_VERSION+set}" ; then
18079    setopt NO_GLOB_SUBST
18080  fi
18081  # Now quote all the things that may contain metacharacters while being
18082  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18083  # variables and quote the copies for generation of the libtool script.
18084  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18085    SED SHELL STRIP \
18086    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18087    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18088    deplibs_check_method reload_flag reload_cmds need_locks \
18089    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18090    lt_cv_sys_global_symbol_to_c_name_address \
18091    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18092    old_postinstall_cmds old_postuninstall_cmds \
18093    compiler_GCJ \
18094    CC_GCJ \
18095    LD_GCJ \
18096    lt_prog_compiler_wl_GCJ \
18097    lt_prog_compiler_pic_GCJ \
18098    lt_prog_compiler_static_GCJ \
18099    lt_prog_compiler_no_builtin_flag_GCJ \
18100    export_dynamic_flag_spec_GCJ \
18101    thread_safe_flag_spec_GCJ \
18102    whole_archive_flag_spec_GCJ \
18103    enable_shared_with_static_runtimes_GCJ \
18104    old_archive_cmds_GCJ \
18105    old_archive_from_new_cmds_GCJ \
18106    predep_objects_GCJ \
18107    postdep_objects_GCJ \
18108    predeps_GCJ \
18109    postdeps_GCJ \
18110    compiler_lib_search_path_GCJ \
18111    archive_cmds_GCJ \
18112    archive_expsym_cmds_GCJ \
18113    postinstall_cmds_GCJ \
18114    postuninstall_cmds_GCJ \
18115    old_archive_from_expsyms_cmds_GCJ \
18116    allow_undefined_flag_GCJ \
18117    no_undefined_flag_GCJ \
18118    export_symbols_cmds_GCJ \
18119    hardcode_libdir_flag_spec_GCJ \
18120    hardcode_libdir_flag_spec_ld_GCJ \
18121    hardcode_libdir_separator_GCJ \
18122    hardcode_automatic_GCJ \
18123    module_cmds_GCJ \
18124    module_expsym_cmds_GCJ \
18125    lt_cv_prog_compiler_c_o_GCJ \
18126    exclude_expsyms_GCJ \
18127    include_expsyms_GCJ; do
18128
18129    case $var in
18130    old_archive_cmds_GCJ | \
18131    old_archive_from_new_cmds_GCJ | \
18132    archive_cmds_GCJ | \
18133    archive_expsym_cmds_GCJ | \
18134    module_cmds_GCJ | \
18135    module_expsym_cmds_GCJ | \
18136    old_archive_from_expsyms_cmds_GCJ | \
18137    export_symbols_cmds_GCJ | \
18138    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18139    postinstall_cmds | postuninstall_cmds | \
18140    old_postinstall_cmds | old_postuninstall_cmds | \
18141    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18142      # Double-quote double-evaled strings.
18143      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18144      ;;
18145    *)
18146      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18147      ;;
18148    esac
18149  done
18150
18151  case $lt_echo in
18152  *'\$0 --fallback-echo"')
18153    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18154    ;;
18155  esac
18156
18157cfgfile="$ofile"
18158
18159  cat <<__EOF__ >> "$cfgfile"
18160# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18161
18162# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18163
18164# Shell to use when invoking shell scripts.
18165SHELL=$lt_SHELL
18166
18167# Whether or not to build shared libraries.
18168build_libtool_libs=$enable_shared
18169
18170# Whether or not to build static libraries.
18171build_old_libs=$enable_static
18172
18173# Whether or not to add -lc for building shared libraries.
18174build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18175
18176# Whether or not to disallow shared libs when runtime libs are static
18177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18178
18179# Whether or not to optimize for fast installation.
18180fast_install=$enable_fast_install
18181
18182# The host system.
18183host_alias=$host_alias
18184host=$host
18185
18186# An echo program that does not interpret backslashes.
18187echo=$lt_echo
18188
18189# The archiver.
18190AR=$lt_AR
18191AR_FLAGS=$lt_AR_FLAGS
18192
18193# A C compiler.
18194LTCC=$lt_LTCC
18195
18196# A language-specific compiler.
18197CC=$lt_compiler_GCJ
18198
18199# Is the compiler the GNU C compiler?
18200with_gcc=$GCC_GCJ
18201
18202# An ERE matcher.
18203EGREP=$lt_EGREP
18204
18205# The linker used to build libraries.
18206LD=$lt_LD_GCJ
18207
18208# Whether we need hard or soft links.
18209LN_S=$lt_LN_S
18210
18211# A BSD-compatible nm program.
18212NM=$lt_NM
18213
18214# A symbol stripping program
18215STRIP=$lt_STRIP
18216
18217# Used to examine libraries when file_magic_cmd begins "file"
18218MAGIC_CMD=$MAGIC_CMD
18219
18220# Used on cygwin: DLL creation program.
18221DLLTOOL="$DLLTOOL"
18222
18223# Used on cygwin: object dumper.
18224OBJDUMP="$OBJDUMP"
18225
18226# Used on cygwin: assembler.
18227AS="$AS"
18228
18229# The name of the directory that contains temporary libtool files.
18230objdir=$objdir
18231
18232# How to create reloadable object files.
18233reload_flag=$lt_reload_flag
18234reload_cmds=$lt_reload_cmds
18235
18236# How to pass a linker flag through the compiler.
18237wl=$lt_lt_prog_compiler_wl_GCJ
18238
18239# Object file suffix (normally "o").
18240objext="$ac_objext"
18241
18242# Old archive suffix (normally "a").
18243libext="$libext"
18244
18245# Shared library suffix (normally ".so").
18246shrext='$shrext'
18247
18248# Executable file suffix (normally "").
18249exeext="$exeext"
18250
18251# Additional compiler flags for building library objects.
18252pic_flag=$lt_lt_prog_compiler_pic_GCJ
18253pic_mode=$pic_mode
18254
18255# What is the maximum length of a command?
18256max_cmd_len=$lt_cv_sys_max_cmd_len
18257
18258# Does compiler simultaneously support -c and -o options?
18259compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18260
18261# Must we lock files when doing compilation ?
18262need_locks=$lt_need_locks
18263
18264# Do we need the lib prefix for modules?
18265need_lib_prefix=$need_lib_prefix
18266
18267# Do we need a version for libraries?
18268need_version=$need_version
18269
18270# Whether dlopen is supported.
18271dlopen_support=$enable_dlopen
18272
18273# Whether dlopen of programs is supported.
18274dlopen_self=$enable_dlopen_self
18275
18276# Whether dlopen of statically linked programs is supported.
18277dlopen_self_static=$enable_dlopen_self_static
18278
18279# Compiler flag to prevent dynamic linking.
18280link_static_flag=$lt_lt_prog_compiler_static_GCJ
18281
18282# Compiler flag to turn off builtin functions.
18283no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18284
18285# Compiler flag to allow reflexive dlopens.
18286export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18287
18288# Compiler flag to generate shared objects directly from archives.
18289whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18290
18291# Compiler flag to generate thread-safe objects.
18292thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18293
18294# Library versioning type.
18295version_type=$version_type
18296
18297# Format of library name prefix.
18298libname_spec=$lt_libname_spec
18299
18300# List of archive names.  First name is the real one, the rest are links.
18301# The last name is the one that the linker finds with -lNAME.
18302library_names_spec=$lt_library_names_spec
18303
18304# The coded name of the library, if different from the real name.
18305soname_spec=$lt_soname_spec
18306
18307# Commands used to build and install an old-style archive.
18308RANLIB=$lt_RANLIB
18309old_archive_cmds=$lt_old_archive_cmds_GCJ
18310old_postinstall_cmds=$lt_old_postinstall_cmds
18311old_postuninstall_cmds=$lt_old_postuninstall_cmds
18312
18313# Create an old-style archive from a shared archive.
18314old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18315
18316# Create a temporary old-style archive to link instead of a shared archive.
18317old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18318
18319# Commands used to build and install a shared archive.
18320archive_cmds=$lt_archive_cmds_GCJ
18321archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18322postinstall_cmds=$lt_postinstall_cmds
18323postuninstall_cmds=$lt_postuninstall_cmds
18324
18325# Commands used to build a loadable module (assumed same as above if empty)
18326module_cmds=$lt_module_cmds_GCJ
18327module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18328
18329# Commands to strip libraries.
18330old_striplib=$lt_old_striplib
18331striplib=$lt_striplib
18332
18333# Dependencies to place before the objects being linked to create a
18334# shared library.
18335predep_objects=$lt_predep_objects_GCJ
18336
18337# Dependencies to place after the objects being linked to create a
18338# shared library.
18339postdep_objects=$lt_postdep_objects_GCJ
18340
18341# Dependencies to place before the objects being linked to create a
18342# shared library.
18343predeps=$lt_predeps_GCJ
18344
18345# Dependencies to place after the objects being linked to create a
18346# shared library.
18347postdeps=$lt_postdeps_GCJ
18348
18349# The library search path used internally by the compiler when linking
18350# a shared library.
18351compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18352
18353# Method to check whether dependent libraries are shared objects.
18354deplibs_check_method=$lt_deplibs_check_method
18355
18356# Command to use when deplibs_check_method == file_magic.
18357file_magic_cmd=$lt_file_magic_cmd
18358
18359# Flag that allows shared libraries with undefined symbols to be built.
18360allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18361
18362# Flag that forces no undefined symbols.
18363no_undefined_flag=$lt_no_undefined_flag_GCJ
18364
18365# Commands used to finish a libtool library installation in a directory.
18366finish_cmds=$lt_finish_cmds
18367
18368# Same as above, but a single script fragment to be evaled but not shown.
18369finish_eval=$lt_finish_eval
18370
18371# Take the output of nm and produce a listing of raw symbols and C names.
18372global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18373
18374# Transform the output of nm in a proper C declaration
18375global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18376
18377# Transform the output of nm in a C name address pair
18378global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18379
18380# This is the shared library runtime path variable.
18381runpath_var=$runpath_var
18382
18383# This is the shared library path variable.
18384shlibpath_var=$shlibpath_var
18385
18386# Is shlibpath searched before the hard-coded library search path?
18387shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18388
18389# How to hardcode a shared library path into an executable.
18390hardcode_action=$hardcode_action_GCJ
18391
18392# Whether we should hardcode library paths into libraries.
18393hardcode_into_libs=$hardcode_into_libs
18394
18395# Flag to hardcode \$libdir into a binary during linking.
18396# This must work even if \$libdir does not exist.
18397hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18398
18399# If ld is used when linking, flag to hardcode \$libdir into
18400# a binary during linking. This must work even if \$libdir does
18401# not exist.
18402hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18403
18404# Whether we need a single -rpath flag with a separated argument.
18405hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18406
18407# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18408# resulting binary.
18409hardcode_direct=$hardcode_direct_GCJ
18410
18411# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18412# resulting binary.
18413hardcode_minus_L=$hardcode_minus_L_GCJ
18414
18415# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18416# the resulting binary.
18417hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18418
18419# Set to yes if building a shared library automatically hardcodes DIR into the library
18420# and all subsequent libraries and executables linked against it.
18421hardcode_automatic=$hardcode_automatic_GCJ
18422
18423# Variables whose values should be saved in libtool wrapper scripts and
18424# restored at relink time.
18425variables_saved_for_relink="$variables_saved_for_relink"
18426
18427# Whether libtool must link a program against all its dependency libraries.
18428link_all_deplibs=$link_all_deplibs_GCJ
18429
18430# Compile-time system search path for libraries
18431sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18432
18433# Run-time system search path for libraries
18434sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18435
18436# Fix the shell variable \$srcfile for the compiler.
18437fix_srcfile_path="$fix_srcfile_path_GCJ"
18438
18439# Set to yes if exported symbols are required.
18440always_export_symbols=$always_export_symbols_GCJ
18441
18442# The commands to list exported symbols.
18443export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18444
18445# The commands to extract the exported symbol list from a shared archive.
18446extract_expsyms_cmds=$lt_extract_expsyms_cmds
18447
18448# Symbols that should not be listed in the preloaded symbols.
18449exclude_expsyms=$lt_exclude_expsyms_GCJ
18450
18451# Symbols that must always be exported.
18452include_expsyms=$lt_include_expsyms_GCJ
18453
18454# ### END LIBTOOL TAG CONFIG: $tagname
18455
18456__EOF__
18457
18458
18459else
18460  # If there is no Makefile yet, we rely on a make rule to execute
18461  # `config.status --recheck' to rerun these tests and create the
18462  # libtool script then.
18463  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18464  if test -f "$ltmain_in"; then
18465    test -f Makefile && make "$ltmain"
18466  fi
18467fi
18468
18469
18470ac_ext=c
18471ac_cpp='$CPP $CPPFLAGS'
18472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18474ac_compiler_gnu=$ac_cv_c_compiler_gnu
18475
18476CC="$lt_save_CC"
18477
18478	else
18479	  tagname=""
18480	fi
18481	;;
18482
18483      RC)
18484
18485
18486
18487# Source file extension for RC test sources.
18488ac_ext=rc
18489
18490# Object file extension for compiled RC test sources.
18491objext=o
18492objext_RC=$objext
18493
18494# Code to be used in simple compile tests
18495lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18496
18497# Code to be used in simple link tests
18498lt_simple_link_test_code="$lt_simple_compile_test_code"
18499
18500# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18501
18502# If no C compiler was specified, use CC.
18503LTCC=${LTCC-"$CC"}
18504
18505# Allow CC to be a program name with arguments.
18506compiler=$CC
18507
18508
18509# Allow CC to be a program name with arguments.
18510lt_save_CC="$CC"
18511CC=${RC-"windres"}
18512compiler=$CC
18513compiler_RC=$CC
18514lt_cv_prog_compiler_c_o_RC=yes
18515
18516# The else clause should only fire when bootstrapping the
18517# libtool distribution, otherwise you forgot to ship ltmain.sh
18518# with your package, and you will get complaints that there are
18519# no rules to generate ltmain.sh.
18520if test -f "$ltmain"; then
18521  # See if we are running on zsh, and set the options which allow our commands through
18522  # without removal of \ escapes.
18523  if test -n "${ZSH_VERSION+set}" ; then
18524    setopt NO_GLOB_SUBST
18525  fi
18526  # Now quote all the things that may contain metacharacters while being
18527  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18528  # variables and quote the copies for generation of the libtool script.
18529  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18530    SED SHELL STRIP \
18531    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18532    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18533    deplibs_check_method reload_flag reload_cmds need_locks \
18534    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18535    lt_cv_sys_global_symbol_to_c_name_address \
18536    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18537    old_postinstall_cmds old_postuninstall_cmds \
18538    compiler_RC \
18539    CC_RC \
18540    LD_RC \
18541    lt_prog_compiler_wl_RC \
18542    lt_prog_compiler_pic_RC \
18543    lt_prog_compiler_static_RC \
18544    lt_prog_compiler_no_builtin_flag_RC \
18545    export_dynamic_flag_spec_RC \
18546    thread_safe_flag_spec_RC \
18547    whole_archive_flag_spec_RC \
18548    enable_shared_with_static_runtimes_RC \
18549    old_archive_cmds_RC \
18550    old_archive_from_new_cmds_RC \
18551    predep_objects_RC \
18552    postdep_objects_RC \
18553    predeps_RC \
18554    postdeps_RC \
18555    compiler_lib_search_path_RC \
18556    archive_cmds_RC \
18557    archive_expsym_cmds_RC \
18558    postinstall_cmds_RC \
18559    postuninstall_cmds_RC \
18560    old_archive_from_expsyms_cmds_RC \
18561    allow_undefined_flag_RC \
18562    no_undefined_flag_RC \
18563    export_symbols_cmds_RC \
18564    hardcode_libdir_flag_spec_RC \
18565    hardcode_libdir_flag_spec_ld_RC \
18566    hardcode_libdir_separator_RC \
18567    hardcode_automatic_RC \
18568    module_cmds_RC \
18569    module_expsym_cmds_RC \
18570    lt_cv_prog_compiler_c_o_RC \
18571    exclude_expsyms_RC \
18572    include_expsyms_RC; do
18573
18574    case $var in
18575    old_archive_cmds_RC | \
18576    old_archive_from_new_cmds_RC | \
18577    archive_cmds_RC | \
18578    archive_expsym_cmds_RC | \
18579    module_cmds_RC | \
18580    module_expsym_cmds_RC | \
18581    old_archive_from_expsyms_cmds_RC | \
18582    export_symbols_cmds_RC | \
18583    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18584    postinstall_cmds | postuninstall_cmds | \
18585    old_postinstall_cmds | old_postuninstall_cmds | \
18586    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18587      # Double-quote double-evaled strings.
18588      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18589      ;;
18590    *)
18591      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18592      ;;
18593    esac
18594  done
18595
18596  case $lt_echo in
18597  *'\$0 --fallback-echo"')
18598    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18599    ;;
18600  esac
18601
18602cfgfile="$ofile"
18603
18604  cat <<__EOF__ >> "$cfgfile"
18605# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18606
18607# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18608
18609# Shell to use when invoking shell scripts.
18610SHELL=$lt_SHELL
18611
18612# Whether or not to build shared libraries.
18613build_libtool_libs=$enable_shared
18614
18615# Whether or not to build static libraries.
18616build_old_libs=$enable_static
18617
18618# Whether or not to add -lc for building shared libraries.
18619build_libtool_need_lc=$archive_cmds_need_lc_RC
18620
18621# Whether or not to disallow shared libs when runtime libs are static
18622allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18623
18624# Whether or not to optimize for fast installation.
18625fast_install=$enable_fast_install
18626
18627# The host system.
18628host_alias=$host_alias
18629host=$host
18630
18631# An echo program that does not interpret backslashes.
18632echo=$lt_echo
18633
18634# The archiver.
18635AR=$lt_AR
18636AR_FLAGS=$lt_AR_FLAGS
18637
18638# A C compiler.
18639LTCC=$lt_LTCC
18640
18641# A language-specific compiler.
18642CC=$lt_compiler_RC
18643
18644# Is the compiler the GNU C compiler?
18645with_gcc=$GCC_RC
18646
18647# An ERE matcher.
18648EGREP=$lt_EGREP
18649
18650# The linker used to build libraries.
18651LD=$lt_LD_RC
18652
18653# Whether we need hard or soft links.
18654LN_S=$lt_LN_S
18655
18656# A BSD-compatible nm program.
18657NM=$lt_NM
18658
18659# A symbol stripping program
18660STRIP=$lt_STRIP
18661
18662# Used to examine libraries when file_magic_cmd begins "file"
18663MAGIC_CMD=$MAGIC_CMD
18664
18665# Used on cygwin: DLL creation program.
18666DLLTOOL="$DLLTOOL"
18667
18668# Used on cygwin: object dumper.
18669OBJDUMP="$OBJDUMP"
18670
18671# Used on cygwin: assembler.
18672AS="$AS"
18673
18674# The name of the directory that contains temporary libtool files.
18675objdir=$objdir
18676
18677# How to create reloadable object files.
18678reload_flag=$lt_reload_flag
18679reload_cmds=$lt_reload_cmds
18680
18681# How to pass a linker flag through the compiler.
18682wl=$lt_lt_prog_compiler_wl_RC
18683
18684# Object file suffix (normally "o").
18685objext="$ac_objext"
18686
18687# Old archive suffix (normally "a").
18688libext="$libext"
18689
18690# Shared library suffix (normally ".so").
18691shrext='$shrext'
18692
18693# Executable file suffix (normally "").
18694exeext="$exeext"
18695
18696# Additional compiler flags for building library objects.
18697pic_flag=$lt_lt_prog_compiler_pic_RC
18698pic_mode=$pic_mode
18699
18700# What is the maximum length of a command?
18701max_cmd_len=$lt_cv_sys_max_cmd_len
18702
18703# Does compiler simultaneously support -c and -o options?
18704compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18705
18706# Must we lock files when doing compilation ?
18707need_locks=$lt_need_locks
18708
18709# Do we need the lib prefix for modules?
18710need_lib_prefix=$need_lib_prefix
18711
18712# Do we need a version for libraries?
18713need_version=$need_version
18714
18715# Whether dlopen is supported.
18716dlopen_support=$enable_dlopen
18717
18718# Whether dlopen of programs is supported.
18719dlopen_self=$enable_dlopen_self
18720
18721# Whether dlopen of statically linked programs is supported.
18722dlopen_self_static=$enable_dlopen_self_static
18723
18724# Compiler flag to prevent dynamic linking.
18725link_static_flag=$lt_lt_prog_compiler_static_RC
18726
18727# Compiler flag to turn off builtin functions.
18728no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18729
18730# Compiler flag to allow reflexive dlopens.
18731export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18732
18733# Compiler flag to generate shared objects directly from archives.
18734whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18735
18736# Compiler flag to generate thread-safe objects.
18737thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18738
18739# Library versioning type.
18740version_type=$version_type
18741
18742# Format of library name prefix.
18743libname_spec=$lt_libname_spec
18744
18745# List of archive names.  First name is the real one, the rest are links.
18746# The last name is the one that the linker finds with -lNAME.
18747library_names_spec=$lt_library_names_spec
18748
18749# The coded name of the library, if different from the real name.
18750soname_spec=$lt_soname_spec
18751
18752# Commands used to build and install an old-style archive.
18753RANLIB=$lt_RANLIB
18754old_archive_cmds=$lt_old_archive_cmds_RC
18755old_postinstall_cmds=$lt_old_postinstall_cmds
18756old_postuninstall_cmds=$lt_old_postuninstall_cmds
18757
18758# Create an old-style archive from a shared archive.
18759old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18760
18761# Create a temporary old-style archive to link instead of a shared archive.
18762old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18763
18764# Commands used to build and install a shared archive.
18765archive_cmds=$lt_archive_cmds_RC
18766archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18767postinstall_cmds=$lt_postinstall_cmds
18768postuninstall_cmds=$lt_postuninstall_cmds
18769
18770# Commands used to build a loadable module (assumed same as above if empty)
18771module_cmds=$lt_module_cmds_RC
18772module_expsym_cmds=$lt_module_expsym_cmds_RC
18773
18774# Commands to strip libraries.
18775old_striplib=$lt_old_striplib
18776striplib=$lt_striplib
18777
18778# Dependencies to place before the objects being linked to create a
18779# shared library.
18780predep_objects=$lt_predep_objects_RC
18781
18782# Dependencies to place after the objects being linked to create a
18783# shared library.
18784postdep_objects=$lt_postdep_objects_RC
18785
18786# Dependencies to place before the objects being linked to create a
18787# shared library.
18788predeps=$lt_predeps_RC
18789
18790# Dependencies to place after the objects being linked to create a
18791# shared library.
18792postdeps=$lt_postdeps_RC
18793
18794# The library search path used internally by the compiler when linking
18795# a shared library.
18796compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18797
18798# Method to check whether dependent libraries are shared objects.
18799deplibs_check_method=$lt_deplibs_check_method
18800
18801# Command to use when deplibs_check_method == file_magic.
18802file_magic_cmd=$lt_file_magic_cmd
18803
18804# Flag that allows shared libraries with undefined symbols to be built.
18805allow_undefined_flag=$lt_allow_undefined_flag_RC
18806
18807# Flag that forces no undefined symbols.
18808no_undefined_flag=$lt_no_undefined_flag_RC
18809
18810# Commands used to finish a libtool library installation in a directory.
18811finish_cmds=$lt_finish_cmds
18812
18813# Same as above, but a single script fragment to be evaled but not shown.
18814finish_eval=$lt_finish_eval
18815
18816# Take the output of nm and produce a listing of raw symbols and C names.
18817global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18818
18819# Transform the output of nm in a proper C declaration
18820global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18821
18822# Transform the output of nm in a C name address pair
18823global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18824
18825# This is the shared library runtime path variable.
18826runpath_var=$runpath_var
18827
18828# This is the shared library path variable.
18829shlibpath_var=$shlibpath_var
18830
18831# Is shlibpath searched before the hard-coded library search path?
18832shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18833
18834# How to hardcode a shared library path into an executable.
18835hardcode_action=$hardcode_action_RC
18836
18837# Whether we should hardcode library paths into libraries.
18838hardcode_into_libs=$hardcode_into_libs
18839
18840# Flag to hardcode \$libdir into a binary during linking.
18841# This must work even if \$libdir does not exist.
18842hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18843
18844# If ld is used when linking, flag to hardcode \$libdir into
18845# a binary during linking. This must work even if \$libdir does
18846# not exist.
18847hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18848
18849# Whether we need a single -rpath flag with a separated argument.
18850hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18851
18852# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18853# resulting binary.
18854hardcode_direct=$hardcode_direct_RC
18855
18856# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18857# resulting binary.
18858hardcode_minus_L=$hardcode_minus_L_RC
18859
18860# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18861# the resulting binary.
18862hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18863
18864# Set to yes if building a shared library automatically hardcodes DIR into the library
18865# and all subsequent libraries and executables linked against it.
18866hardcode_automatic=$hardcode_automatic_RC
18867
18868# Variables whose values should be saved in libtool wrapper scripts and
18869# restored at relink time.
18870variables_saved_for_relink="$variables_saved_for_relink"
18871
18872# Whether libtool must link a program against all its dependency libraries.
18873link_all_deplibs=$link_all_deplibs_RC
18874
18875# Compile-time system search path for libraries
18876sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18877
18878# Run-time system search path for libraries
18879sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18880
18881# Fix the shell variable \$srcfile for the compiler.
18882fix_srcfile_path="$fix_srcfile_path_RC"
18883
18884# Set to yes if exported symbols are required.
18885always_export_symbols=$always_export_symbols_RC
18886
18887# The commands to list exported symbols.
18888export_symbols_cmds=$lt_export_symbols_cmds_RC
18889
18890# The commands to extract the exported symbol list from a shared archive.
18891extract_expsyms_cmds=$lt_extract_expsyms_cmds
18892
18893# Symbols that should not be listed in the preloaded symbols.
18894exclude_expsyms=$lt_exclude_expsyms_RC
18895
18896# Symbols that must always be exported.
18897include_expsyms=$lt_include_expsyms_RC
18898
18899# ### END LIBTOOL TAG CONFIG: $tagname
18900
18901__EOF__
18902
18903
18904else
18905  # If there is no Makefile yet, we rely on a make rule to execute
18906  # `config.status --recheck' to rerun these tests and create the
18907  # libtool script then.
18908  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18909  if test -f "$ltmain_in"; then
18910    test -f Makefile && make "$ltmain"
18911  fi
18912fi
18913
18914
18915ac_ext=c
18916ac_cpp='$CPP $CPPFLAGS'
18917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18919ac_compiler_gnu=$ac_cv_c_compiler_gnu
18920
18921CC="$lt_save_CC"
18922
18923	;;
18924
18925      *)
18926	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18927echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18928   { (exit 1); exit 1; }; }
18929	;;
18930      esac
18931
18932      # Append the new tag name to the list of available tags.
18933      if test -n "$tagname" ; then
18934      available_tags="$available_tags $tagname"
18935    fi
18936    fi
18937  done
18938  IFS="$lt_save_ifs"
18939
18940  # Now substitute the updated list of available tags.
18941  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18942    mv "${ofile}T" "$ofile"
18943    chmod +x "$ofile"
18944  else
18945    rm -f "${ofile}T"
18946    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18947echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18948   { (exit 1); exit 1; }; }
18949  fi
18950fi
18951
18952
18953
18954# This can be used to rebuild libtool when needed
18955LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18956
18957# Always use our own libtool.
18958LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18959
18960# Prevent multiple expansion
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982# Checks for libraries.
18983
18984# Checks for header files.
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994for ac_header in sys/types.h sys/select.h sys/time.h fcntl.h netdb.h netinet/in.h sys/socket.h syslog.h unistd.h
18995do
18996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18997if eval "test \"\${$as_ac_Header+set}\" = set"; then
18998  echo "$as_me:$LINENO: checking for $ac_header" >&5
18999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19000if eval "test \"\${$as_ac_Header+set}\" = set"; then
19001  echo $ECHO_N "(cached) $ECHO_C" >&6
19002fi
19003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19005else
19006  # Is the header compilable?
19007echo "$as_me:$LINENO: checking $ac_header usability" >&5
19008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19009cat >conftest.$ac_ext <<_ACEOF
19010/* confdefs.h.  */
19011_ACEOF
19012cat confdefs.h >>conftest.$ac_ext
19013cat >>conftest.$ac_ext <<_ACEOF
19014/* end confdefs.h.  */
19015$ac_includes_default
19016#include <$ac_header>
19017_ACEOF
19018rm -f conftest.$ac_objext
19019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19020  (eval $ac_compile) 2>conftest.er1
19021  ac_status=$?
19022  grep -v '^ *+' conftest.er1 >conftest.err
19023  rm -f conftest.er1
19024  cat conftest.err >&5
19025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026  (exit $ac_status); } &&
19027	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029  (eval $ac_try) 2>&5
19030  ac_status=$?
19031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032  (exit $ac_status); }; } &&
19033	 { ac_try='test -s conftest.$ac_objext'
19034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035  (eval $ac_try) 2>&5
19036  ac_status=$?
19037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038  (exit $ac_status); }; }; then
19039  ac_header_compiler=yes
19040else
19041  echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
19043
19044ac_header_compiler=no
19045fi
19046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19047echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19048echo "${ECHO_T}$ac_header_compiler" >&6
19049
19050# Is the header present?
19051echo "$as_me:$LINENO: checking $ac_header presence" >&5
19052echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19053cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h.  */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h.  */
19059#include <$ac_header>
19060_ACEOF
19061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19062  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19063  ac_status=$?
19064  grep -v '^ *+' conftest.er1 >conftest.err
19065  rm -f conftest.er1
19066  cat conftest.err >&5
19067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068  (exit $ac_status); } >/dev/null; then
19069  if test -s conftest.err; then
19070    ac_cpp_err=$ac_c_preproc_warn_flag
19071    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19072  else
19073    ac_cpp_err=
19074  fi
19075else
19076  ac_cpp_err=yes
19077fi
19078if test -z "$ac_cpp_err"; then
19079  ac_header_preproc=yes
19080else
19081  echo "$as_me: failed program was:" >&5
19082sed 's/^/| /' conftest.$ac_ext >&5
19083
19084  ac_header_preproc=no
19085fi
19086rm -f conftest.err conftest.$ac_ext
19087echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19088echo "${ECHO_T}$ac_header_preproc" >&6
19089
19090# So?  What about this header?
19091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19092  yes:no: )
19093    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19094echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19095    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19096echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19097    ac_header_preproc=yes
19098    ;;
19099  no:yes:* )
19100    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19101echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19102    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19103echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19104    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19105echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19106    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19107echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19108    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19110    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19111echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19112    (
19113      cat <<\_ASBOX
19114## -------------------------------------- ##
19115## Report this to rdenis@simphalempin.com ##
19116## -------------------------------------- ##
19117_ASBOX
19118    ) |
19119      sed "s/^/$as_me: WARNING:     /" >&2
19120    ;;
19121esac
19122echo "$as_me:$LINENO: checking for $ac_header" >&5
19123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19124if eval "test \"\${$as_ac_Header+set}\" = set"; then
19125  echo $ECHO_N "(cached) $ECHO_C" >&6
19126else
19127  eval "$as_ac_Header=\$ac_header_preproc"
19128fi
19129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19131
19132fi
19133if test `eval echo '${'$as_ac_Header'}'` = yes; then
19134  cat >>confdefs.h <<_ACEOF
19135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19136_ACEOF
19137
19138fi
19139
19140done
19141
19142
19143# Checks for typedefs, structures, and compiler characteristics.
19144echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19145echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19146if test "${ac_cv_c_const+set}" = set; then
19147  echo $ECHO_N "(cached) $ECHO_C" >&6
19148else
19149  cat >conftest.$ac_ext <<_ACEOF
19150/* confdefs.h.  */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
19154/* end confdefs.h.  */
19155
19156int
19157main ()
19158{
19159/* FIXME: Include the comments suggested by Paul. */
19160#ifndef __cplusplus
19161  /* Ultrix mips cc rejects this.  */
19162  typedef int charset[2];
19163  const charset x;
19164  /* SunOS 4.1.1 cc rejects this.  */
19165  char const *const *ccp;
19166  char **p;
19167  /* NEC SVR4.0.2 mips cc rejects this.  */
19168  struct point {int x, y;};
19169  static struct point const zero = {0,0};
19170  /* AIX XL C 1.02.0.0 rejects this.
19171     It does not let you subtract one const X* pointer from another in
19172     an arm of an if-expression whose if-part is not a constant
19173     expression */
19174  const char *g = "string";
19175  ccp = &g + (g ? g-g : 0);
19176  /* HPUX 7.0 cc rejects these. */
19177  ++ccp;
19178  p = (char**) ccp;
19179  ccp = (char const *const *) p;
19180  { /* SCO 3.2v4 cc rejects this.  */
19181    char *t;
19182    char const *s = 0 ? (char *) 0 : (char const *) 0;
19183
19184    *t++ = 0;
19185  }
19186  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19187    int x[] = {25, 17};
19188    const int *foo = &x[0];
19189    ++foo;
19190  }
19191  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19192    typedef const int *iptr;
19193    iptr p = 0;
19194    ++p;
19195  }
19196  { /* AIX XL C 1.02.0.0 rejects this saying
19197       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19198    struct s { int j; const int *ap[3]; };
19199    struct s *b; b->j = 5;
19200  }
19201  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19202    const int foo = 10;
19203  }
19204#endif
19205
19206  ;
19207  return 0;
19208}
19209_ACEOF
19210rm -f conftest.$ac_objext
19211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19212  (eval $ac_compile) 2>conftest.er1
19213  ac_status=$?
19214  grep -v '^ *+' conftest.er1 >conftest.err
19215  rm -f conftest.er1
19216  cat conftest.err >&5
19217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218  (exit $ac_status); } &&
19219	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221  (eval $ac_try) 2>&5
19222  ac_status=$?
19223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224  (exit $ac_status); }; } &&
19225	 { ac_try='test -s conftest.$ac_objext'
19226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227  (eval $ac_try) 2>&5
19228  ac_status=$?
19229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230  (exit $ac_status); }; }; then
19231  ac_cv_c_const=yes
19232else
19233  echo "$as_me: failed program was:" >&5
19234sed 's/^/| /' conftest.$ac_ext >&5
19235
19236ac_cv_c_const=no
19237fi
19238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19239fi
19240echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19241echo "${ECHO_T}$ac_cv_c_const" >&6
19242if test $ac_cv_c_const = no; then
19243
19244cat >>confdefs.h <<\_ACEOF
19245#define const
19246_ACEOF
19247
19248fi
19249
19250echo "$as_me:$LINENO: checking for size_t" >&5
19251echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19252if test "${ac_cv_type_size_t+set}" = set; then
19253  echo $ECHO_N "(cached) $ECHO_C" >&6
19254else
19255  cat >conftest.$ac_ext <<_ACEOF
19256/* confdefs.h.  */
19257_ACEOF
19258cat confdefs.h >>conftest.$ac_ext
19259cat >>conftest.$ac_ext <<_ACEOF
19260/* end confdefs.h.  */
19261$ac_includes_default
19262int
19263main ()
19264{
19265if ((size_t *) 0)
19266  return 0;
19267if (sizeof (size_t))
19268  return 0;
19269  ;
19270  return 0;
19271}
19272_ACEOF
19273rm -f conftest.$ac_objext
19274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275  (eval $ac_compile) 2>conftest.er1
19276  ac_status=$?
19277  grep -v '^ *+' conftest.er1 >conftest.err
19278  rm -f conftest.er1
19279  cat conftest.err >&5
19280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281  (exit $ac_status); } &&
19282	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284  (eval $ac_try) 2>&5
19285  ac_status=$?
19286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287  (exit $ac_status); }; } &&
19288	 { ac_try='test -s conftest.$ac_objext'
19289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290  (eval $ac_try) 2>&5
19291  ac_status=$?
19292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293  (exit $ac_status); }; }; then
19294  ac_cv_type_size_t=yes
19295else
19296  echo "$as_me: failed program was:" >&5
19297sed 's/^/| /' conftest.$ac_ext >&5
19298
19299ac_cv_type_size_t=no
19300fi
19301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19302fi
19303echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19304echo "${ECHO_T}$ac_cv_type_size_t" >&6
19305if test $ac_cv_type_size_t = yes; then
19306  :
19307else
19308
19309cat >>confdefs.h <<_ACEOF
19310#define size_t unsigned
19311_ACEOF
19312
19313fi
19314
19315
19316
19317echo "$as_me:$LINENO: checking if struct sockaddr has a sa_len member" >&5
19318echo $ECHO_N "checking if struct sockaddr has a sa_len member... $ECHO_C" >&6
19319if test "${rdc_cv_struct_sockaddr_len+set}" = set; then
19320  echo $ECHO_N "(cached) $ECHO_C" >&6
19321else
19322  cat >conftest.$ac_ext <<_ACEOF
19323/* confdefs.h.  */
19324_ACEOF
19325cat confdefs.h >>conftest.$ac_ext
19326cat >>conftest.$ac_ext <<_ACEOF
19327/* end confdefs.h.  */
19328#if HAVE_SYS_TYPES_H
19329# include <sys/types.h>
19330#endif
19331#if HAVE_SYS_SOCKET_H
19332# include <sys/socket.h>
19333#endif
19334int
19335main ()
19336{
19337struct sockaddr addr; addr.sa_len = 0;
19338  ;
19339  return 0;
19340}
19341_ACEOF
19342rm -f conftest.$ac_objext
19343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19344  (eval $ac_compile) 2>conftest.er1
19345  ac_status=$?
19346  grep -v '^ *+' conftest.er1 >conftest.err
19347  rm -f conftest.er1
19348  cat conftest.err >&5
19349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350  (exit $ac_status); } &&
19351	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353  (eval $ac_try) 2>&5
19354  ac_status=$?
19355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356  (exit $ac_status); }; } &&
19357	 { ac_try='test -s conftest.$ac_objext'
19358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359  (eval $ac_try) 2>&5
19360  ac_status=$?
19361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362  (exit $ac_status); }; }; then
19363  rdc_cv_struct_sockaddr_len=yes
19364else
19365  echo "$as_me: failed program was:" >&5
19366sed 's/^/| /' conftest.$ac_ext >&5
19367
19368rdc_cv_struct_sockaddr_len=no
19369fi
19370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19371fi
19372echo "$as_me:$LINENO: result: $rdc_cv_struct_sockaddr_len" >&5
19373echo "${ECHO_T}$rdc_cv_struct_sockaddr_len" >&6
19374if test $rdc_cv_struct_sockaddr_len = yes; then
19375  cat >>confdefs.h <<\_ACEOF
19376#define HAVE_SA_LEN 1
19377_ACEOF
19378
19379fi
19380
19381
19382
19383
19384
19385echo "$as_me:$LINENO: checking for struct sockaddr_storage in sys/socket.h" >&5
19386echo $ECHO_N "checking for struct sockaddr_storage in sys/socket.h... $ECHO_C" >&6
19387if test "${rdc_cv_struct_sockaddr_storage+set}" = set; then
19388  echo $ECHO_N "(cached) $ECHO_C" >&6
19389else
19390  cat >conftest.$ac_ext <<_ACEOF
19391/* confdefs.h.  */
19392_ACEOF
19393cat confdefs.h >>conftest.$ac_ext
19394cat >>conftest.$ac_ext <<_ACEOF
19395/* end confdefs.h.  */
19396#include <sys/types.h>
19397#if HAVE_SYS_SOCKET_H
19398# include <sys/socket.h>
19399#endif
19400int
19401main ()
19402{
19403struct sockaddr_storage addr;
19404  ;
19405  return 0;
19406}
19407_ACEOF
19408rm -f conftest.$ac_objext
19409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19410  (eval $ac_compile) 2>conftest.er1
19411  ac_status=$?
19412  grep -v '^ *+' conftest.er1 >conftest.err
19413  rm -f conftest.er1
19414  cat conftest.err >&5
19415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416  (exit $ac_status); } &&
19417	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419  (eval $ac_try) 2>&5
19420  ac_status=$?
19421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422  (exit $ac_status); }; } &&
19423	 { ac_try='test -s conftest.$ac_objext'
19424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425  (eval $ac_try) 2>&5
19426  ac_status=$?
19427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428  (exit $ac_status); }; }; then
19429  rdc_cv_struct_sockaddr_storage=yes
19430else
19431  echo "$as_me: failed program was:" >&5
19432sed 's/^/| /' conftest.$ac_ext >&5
19433
19434rdc_cv_struct_sockaddr_storage=no
19435fi
19436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19437fi
19438echo "$as_me:$LINENO: result: $rdc_cv_struct_sockaddr_storage" >&5
19439echo "${ECHO_T}$rdc_cv_struct_sockaddr_storage" >&6
19440if test $rdc_cv_struct_sockaddr_storage = no; then
19441  cat >>confdefs.h <<\_ACEOF
19442#define sockaddr_storage sockaddr
19443_ACEOF
19444
19445  cat >>confdefs.h <<\_ACEOF
19446#define ss_family sa_family
19447_ACEOF
19448
19449fi
19450
19451
19452# Checks for library functions.
19453echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19454echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19455if test "${ac_cv_type_signal+set}" = set; then
19456  echo $ECHO_N "(cached) $ECHO_C" >&6
19457else
19458  cat >conftest.$ac_ext <<_ACEOF
19459/* confdefs.h.  */
19460_ACEOF
19461cat confdefs.h >>conftest.$ac_ext
19462cat >>conftest.$ac_ext <<_ACEOF
19463/* end confdefs.h.  */
19464#include <sys/types.h>
19465#include <signal.h>
19466#ifdef signal
19467# undef signal
19468#endif
19469#ifdef __cplusplus
19470extern "C" void (*signal (int, void (*)(int)))(int);
19471#else
19472void (*signal ()) ();
19473#endif
19474
19475int
19476main ()
19477{
19478int i;
19479  ;
19480  return 0;
19481}
19482_ACEOF
19483rm -f conftest.$ac_objext
19484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19485  (eval $ac_compile) 2>conftest.er1
19486  ac_status=$?
19487  grep -v '^ *+' conftest.er1 >conftest.err
19488  rm -f conftest.er1
19489  cat conftest.err >&5
19490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491  (exit $ac_status); } &&
19492	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494  (eval $ac_try) 2>&5
19495  ac_status=$?
19496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497  (exit $ac_status); }; } &&
19498	 { ac_try='test -s conftest.$ac_objext'
19499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500  (eval $ac_try) 2>&5
19501  ac_status=$?
19502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503  (exit $ac_status); }; }; then
19504  ac_cv_type_signal=void
19505else
19506  echo "$as_me: failed program was:" >&5
19507sed 's/^/| /' conftest.$ac_ext >&5
19508
19509ac_cv_type_signal=int
19510fi
19511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19512fi
19513echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19514echo "${ECHO_T}$ac_cv_type_signal" >&6
19515
19516cat >>confdefs.h <<_ACEOF
19517#define RETSIGTYPE $ac_cv_type_signal
19518_ACEOF
19519
19520
19521echo "$as_me:$LINENO: checking for library containing socket" >&5
19522echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
19523if test "${ac_cv_search_socket+set}" = set; then
19524  echo $ECHO_N "(cached) $ECHO_C" >&6
19525else
19526  ac_func_search_save_LIBS=$LIBS
19527ac_cv_search_socket=no
19528cat >conftest.$ac_ext <<_ACEOF
19529/* confdefs.h.  */
19530_ACEOF
19531cat confdefs.h >>conftest.$ac_ext
19532cat >>conftest.$ac_ext <<_ACEOF
19533/* end confdefs.h.  */
19534
19535/* Override any gcc2 internal prototype to avoid an error.  */
19536#ifdef __cplusplus
19537extern "C"
19538#endif
19539/* We use char because int might match the return type of a gcc2
19540   builtin and then its argument prototype would still apply.  */
19541char socket ();
19542int
19543main ()
19544{
19545socket ();
19546  ;
19547  return 0;
19548}
19549_ACEOF
19550rm -f conftest.$ac_objext conftest$ac_exeext
19551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19552  (eval $ac_link) 2>conftest.er1
19553  ac_status=$?
19554  grep -v '^ *+' conftest.er1 >conftest.err
19555  rm -f conftest.er1
19556  cat conftest.err >&5
19557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558  (exit $ac_status); } &&
19559	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561  (eval $ac_try) 2>&5
19562  ac_status=$?
19563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564  (exit $ac_status); }; } &&
19565	 { ac_try='test -s conftest$ac_exeext'
19566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567  (eval $ac_try) 2>&5
19568  ac_status=$?
19569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570  (exit $ac_status); }; }; then
19571  ac_cv_search_socket="none required"
19572else
19573  echo "$as_me: failed program was:" >&5
19574sed 's/^/| /' conftest.$ac_ext >&5
19575
19576fi
19577rm -f conftest.err conftest.$ac_objext \
19578      conftest$ac_exeext conftest.$ac_ext
19579if test "$ac_cv_search_socket" = no; then
19580  for ac_lib in socket; do
19581    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19582    cat >conftest.$ac_ext <<_ACEOF
19583/* confdefs.h.  */
19584_ACEOF
19585cat confdefs.h >>conftest.$ac_ext
19586cat >>conftest.$ac_ext <<_ACEOF
19587/* end confdefs.h.  */
19588
19589/* Override any gcc2 internal prototype to avoid an error.  */
19590#ifdef __cplusplus
19591extern "C"
19592#endif
19593/* We use char because int might match the return type of a gcc2
19594   builtin and then its argument prototype would still apply.  */
19595char socket ();
19596int
19597main ()
19598{
19599socket ();
19600  ;
19601  return 0;
19602}
19603_ACEOF
19604rm -f conftest.$ac_objext conftest$ac_exeext
19605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19606  (eval $ac_link) 2>conftest.er1
19607  ac_status=$?
19608  grep -v '^ *+' conftest.er1 >conftest.err
19609  rm -f conftest.er1
19610  cat conftest.err >&5
19611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612  (exit $ac_status); } &&
19613	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615  (eval $ac_try) 2>&5
19616  ac_status=$?
19617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618  (exit $ac_status); }; } &&
19619	 { ac_try='test -s conftest$ac_exeext'
19620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621  (eval $ac_try) 2>&5
19622  ac_status=$?
19623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624  (exit $ac_status); }; }; then
19625  ac_cv_search_socket="-l$ac_lib"
19626break
19627else
19628  echo "$as_me: failed program was:" >&5
19629sed 's/^/| /' conftest.$ac_ext >&5
19630
19631fi
19632rm -f conftest.err conftest.$ac_objext \
19633      conftest$ac_exeext conftest.$ac_ext
19634  done
19635fi
19636LIBS=$ac_func_search_save_LIBS
19637fi
19638echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
19639echo "${ECHO_T}$ac_cv_search_socket" >&6
19640if test "$ac_cv_search_socket" != no; then
19641  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
19642
19643fi
19644
19645
19646
19647
19648
19649
19650# Check whether --enable-debug or --disable-debug was given.
19651if test "${enable_debug+set}" = set; then
19652  enableval="$enable_debug"
19653  case "${enableval}" in
19654		yes) debug=true ;;
19655		no) debug=false ;;
19656		*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
19657echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
19658   { (exit 1); exit 1; }; } ;;
19659	       esac
19660else
19661  debug=false
19662fi;
19663if test x$debug = xtrue; then
19664	cat >>confdefs.h <<\_ACEOF
19665#define DEBUG 1
19666_ACEOF
19667
19668fi
19669
19670# Check whether --enable-testers or --disable-testers was given.
19671if test "${enable_testers+set}" = set; then
19672  enableval="$enable_testers"
19673  case "${enableval}" in
19674		yes) testers=true ;;
19675		no) testers=false ;;
19676		*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-testers" >&5
19677echo "$as_me: error: bad value ${enableval} for --enable-testers" >&2;}
19678   { (exit 1); exit 1; }; } ;;
19679	       esac
19680else
19681  testers=false
19682fi;
19683if test x$testers = xtrue; then
19684
19685
19686echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
19687echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
19688if test "${rdc_cv_type_socklen_t+set}" = set; then
19689  echo $ECHO_N "(cached) $ECHO_C" >&6
19690else
19691  cat >conftest.$ac_ext <<_ACEOF
19692/* confdefs.h.  */
19693_ACEOF
19694cat confdefs.h >>conftest.$ac_ext
19695cat >>conftest.$ac_ext <<_ACEOF
19696/* end confdefs.h.  */
19697#include <sys/types.h>
19698#if HAVE_SYS_SOCKET_H
19699# include <sys/socket.h>
19700#endif
19701int
19702main ()
19703{
19704socklen_t len;
19705  ;
19706  return 0;
19707}
19708_ACEOF
19709rm -f conftest.$ac_objext
19710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19711  (eval $ac_compile) 2>conftest.er1
19712  ac_status=$?
19713  grep -v '^ *+' conftest.er1 >conftest.err
19714  rm -f conftest.er1
19715  cat conftest.err >&5
19716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717  (exit $ac_status); } &&
19718	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720  (eval $ac_try) 2>&5
19721  ac_status=$?
19722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723  (exit $ac_status); }; } &&
19724	 { ac_try='test -s conftest.$ac_objext'
19725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726  (eval $ac_try) 2>&5
19727  ac_status=$?
19728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729  (exit $ac_status); }; }; then
19730  rdc_cv_type_socklen_t=yes
19731else
19732  echo "$as_me: failed program was:" >&5
19733sed 's/^/| /' conftest.$ac_ext >&5
19734
19735rdc_cv_type_socklen_t=no
19736fi
19737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19738
19739fi
19740echo "$as_me:$LINENO: result: $rdc_cv_type_socklen_t" >&5
19741echo "${ECHO_T}$rdc_cv_type_socklen_t" >&6
19742if test $rdc_cv_type_socklen_t = no; then
19743  cat >>confdefs.h <<\_ACEOF
19744#define socklen_t int
19745_ACEOF
19746
19747fi
19748
19749
19750
19751
19752for ac_func in getaddrinfo getnameinfo gai_strerror
19753do
19754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19755echo "$as_me:$LINENO: checking for $ac_func" >&5
19756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19757if eval "test \"\${$as_ac_var+set}\" = set"; then
19758  echo $ECHO_N "(cached) $ECHO_C" >&6
19759else
19760  cat >conftest.$ac_ext <<_ACEOF
19761/* confdefs.h.  */
19762_ACEOF
19763cat confdefs.h >>conftest.$ac_ext
19764cat >>conftest.$ac_ext <<_ACEOF
19765/* end confdefs.h.  */
19766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19767   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19768#define $ac_func innocuous_$ac_func
19769
19770/* System header to define __stub macros and hopefully few prototypes,
19771    which can conflict with char $ac_func (); below.
19772    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19773    <limits.h> exists even on freestanding compilers.  */
19774
19775#ifdef __STDC__
19776# include <limits.h>
19777#else
19778# include <assert.h>
19779#endif
19780
19781#undef $ac_func
19782
19783/* Override any gcc2 internal prototype to avoid an error.  */
19784#ifdef __cplusplus
19785extern "C"
19786{
19787#endif
19788/* We use char because int might match the return type of a gcc2
19789   builtin and then its argument prototype would still apply.  */
19790char $ac_func ();
19791/* The GNU C library defines this for functions which it implements
19792    to always fail with ENOSYS.  Some functions are actually named
19793    something starting with __ and the normal name is an alias.  */
19794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19795choke me
19796#else
19797char (*f) () = $ac_func;
19798#endif
19799#ifdef __cplusplus
19800}
19801#endif
19802
19803int
19804main ()
19805{
19806return f != $ac_func;
19807  ;
19808  return 0;
19809}
19810_ACEOF
19811rm -f conftest.$ac_objext conftest$ac_exeext
19812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19813  (eval $ac_link) 2>conftest.er1
19814  ac_status=$?
19815  grep -v '^ *+' conftest.er1 >conftest.err
19816  rm -f conftest.er1
19817  cat conftest.err >&5
19818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819  (exit $ac_status); } &&
19820	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822  (eval $ac_try) 2>&5
19823  ac_status=$?
19824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825  (exit $ac_status); }; } &&
19826	 { ac_try='test -s conftest$ac_exeext'
19827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828  (eval $ac_try) 2>&5
19829  ac_status=$?
19830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831  (exit $ac_status); }; }; then
19832  eval "$as_ac_var=yes"
19833else
19834  echo "$as_me: failed program was:" >&5
19835sed 's/^/| /' conftest.$ac_ext >&5
19836
19837eval "$as_ac_var=no"
19838fi
19839rm -f conftest.err conftest.$ac_objext \
19840      conftest$ac_exeext conftest.$ac_ext
19841fi
19842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19843echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19844if test `eval echo '${'$as_ac_var'}'` = yes; then
19845  cat >>confdefs.h <<_ACEOF
19846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19847_ACEOF
19848 gai_support=yes
19849else
19850  gai_support=no
19851fi
19852done
19853
19854if test $gai_support = no; then
19855
19856
19857for ac_header in arpa/inet.h netinet/in.h
19858do
19859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19860if eval "test \"\${$as_ac_Header+set}\" = set"; then
19861  echo "$as_me:$LINENO: checking for $ac_header" >&5
19862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19863if eval "test \"\${$as_ac_Header+set}\" = set"; then
19864  echo $ECHO_N "(cached) $ECHO_C" >&6
19865fi
19866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19868else
19869  # Is the header compilable?
19870echo "$as_me:$LINENO: checking $ac_header usability" >&5
19871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19872cat >conftest.$ac_ext <<_ACEOF
19873/* confdefs.h.  */
19874_ACEOF
19875cat confdefs.h >>conftest.$ac_ext
19876cat >>conftest.$ac_ext <<_ACEOF
19877/* end confdefs.h.  */
19878$ac_includes_default
19879#include <$ac_header>
19880_ACEOF
19881rm -f conftest.$ac_objext
19882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19883  (eval $ac_compile) 2>conftest.er1
19884  ac_status=$?
19885  grep -v '^ *+' conftest.er1 >conftest.err
19886  rm -f conftest.er1
19887  cat conftest.err >&5
19888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889  (exit $ac_status); } &&
19890	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892  (eval $ac_try) 2>&5
19893  ac_status=$?
19894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895  (exit $ac_status); }; } &&
19896	 { ac_try='test -s conftest.$ac_objext'
19897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898  (eval $ac_try) 2>&5
19899  ac_status=$?
19900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901  (exit $ac_status); }; }; then
19902  ac_header_compiler=yes
19903else
19904  echo "$as_me: failed program was:" >&5
19905sed 's/^/| /' conftest.$ac_ext >&5
19906
19907ac_header_compiler=no
19908fi
19909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19910echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19911echo "${ECHO_T}$ac_header_compiler" >&6
19912
19913# Is the header present?
19914echo "$as_me:$LINENO: checking $ac_header presence" >&5
19915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19916cat >conftest.$ac_ext <<_ACEOF
19917/* confdefs.h.  */
19918_ACEOF
19919cat confdefs.h >>conftest.$ac_ext
19920cat >>conftest.$ac_ext <<_ACEOF
19921/* end confdefs.h.  */
19922#include <$ac_header>
19923_ACEOF
19924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19925  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19926  ac_status=$?
19927  grep -v '^ *+' conftest.er1 >conftest.err
19928  rm -f conftest.er1
19929  cat conftest.err >&5
19930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931  (exit $ac_status); } >/dev/null; then
19932  if test -s conftest.err; then
19933    ac_cpp_err=$ac_c_preproc_warn_flag
19934    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19935  else
19936    ac_cpp_err=
19937  fi
19938else
19939  ac_cpp_err=yes
19940fi
19941if test -z "$ac_cpp_err"; then
19942  ac_header_preproc=yes
19943else
19944  echo "$as_me: failed program was:" >&5
19945sed 's/^/| /' conftest.$ac_ext >&5
19946
19947  ac_header_preproc=no
19948fi
19949rm -f conftest.err conftest.$ac_ext
19950echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19951echo "${ECHO_T}$ac_header_preproc" >&6
19952
19953# So?  What about this header?
19954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19955  yes:no: )
19956    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19957echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19958    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19959echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19960    ac_header_preproc=yes
19961    ;;
19962  no:yes:* )
19963    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19964echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19965    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19966echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19967    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19968echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19969    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19970echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19971    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19973    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19974echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19975    (
19976      cat <<\_ASBOX
19977## -------------------------------------- ##
19978## Report this to rdenis@simphalempin.com ##
19979## -------------------------------------- ##
19980_ASBOX
19981    ) |
19982      sed "s/^/$as_me: WARNING:     /" >&2
19983    ;;
19984esac
19985echo "$as_me:$LINENO: checking for $ac_header" >&5
19986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19987if eval "test \"\${$as_ac_Header+set}\" = set"; then
19988  echo $ECHO_N "(cached) $ECHO_C" >&6
19989else
19990  eval "$as_ac_Header=\$ac_header_preproc"
19991fi
19992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19994
19995fi
19996if test `eval echo '${'$as_ac_Header'}'` = yes; then
19997  cat >>confdefs.h <<_ACEOF
19998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19999_ACEOF
20000
20001fi
20002
20003done
20004
20005  echo "$as_me:$LINENO: checking for library containing gethostbyaddr" >&5
20006echo $ECHO_N "checking for library containing gethostbyaddr... $ECHO_C" >&6
20007if test "${ac_cv_search_gethostbyaddr+set}" = set; then
20008  echo $ECHO_N "(cached) $ECHO_C" >&6
20009else
20010  ac_func_search_save_LIBS=$LIBS
20011ac_cv_search_gethostbyaddr=no
20012cat >conftest.$ac_ext <<_ACEOF
20013/* confdefs.h.  */
20014_ACEOF
20015cat confdefs.h >>conftest.$ac_ext
20016cat >>conftest.$ac_ext <<_ACEOF
20017/* end confdefs.h.  */
20018
20019/* Override any gcc2 internal prototype to avoid an error.  */
20020#ifdef __cplusplus
20021extern "C"
20022#endif
20023/* We use char because int might match the return type of a gcc2
20024   builtin and then its argument prototype would still apply.  */
20025char gethostbyaddr ();
20026int
20027main ()
20028{
20029gethostbyaddr ();
20030  ;
20031  return 0;
20032}
20033_ACEOF
20034rm -f conftest.$ac_objext conftest$ac_exeext
20035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20036  (eval $ac_link) 2>conftest.er1
20037  ac_status=$?
20038  grep -v '^ *+' conftest.er1 >conftest.err
20039  rm -f conftest.er1
20040  cat conftest.err >&5
20041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042  (exit $ac_status); } &&
20043	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045  (eval $ac_try) 2>&5
20046  ac_status=$?
20047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048  (exit $ac_status); }; } &&
20049	 { ac_try='test -s conftest$ac_exeext'
20050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051  (eval $ac_try) 2>&5
20052  ac_status=$?
20053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054  (exit $ac_status); }; }; then
20055  ac_cv_search_gethostbyaddr="none required"
20056else
20057  echo "$as_me: failed program was:" >&5
20058sed 's/^/| /' conftest.$ac_ext >&5
20059
20060fi
20061rm -f conftest.err conftest.$ac_objext \
20062      conftest$ac_exeext conftest.$ac_ext
20063if test "$ac_cv_search_gethostbyaddr" = no; then
20064  for ac_lib in resolv; do
20065    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20066    cat >conftest.$ac_ext <<_ACEOF
20067/* confdefs.h.  */
20068_ACEOF
20069cat confdefs.h >>conftest.$ac_ext
20070cat >>conftest.$ac_ext <<_ACEOF
20071/* end confdefs.h.  */
20072
20073/* Override any gcc2 internal prototype to avoid an error.  */
20074#ifdef __cplusplus
20075extern "C"
20076#endif
20077/* We use char because int might match the return type of a gcc2
20078   builtin and then its argument prototype would still apply.  */
20079char gethostbyaddr ();
20080int
20081main ()
20082{
20083gethostbyaddr ();
20084  ;
20085  return 0;
20086}
20087_ACEOF
20088rm -f conftest.$ac_objext conftest$ac_exeext
20089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20090  (eval $ac_link) 2>conftest.er1
20091  ac_status=$?
20092  grep -v '^ *+' conftest.er1 >conftest.err
20093  rm -f conftest.er1
20094  cat conftest.err >&5
20095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096  (exit $ac_status); } &&
20097	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099  (eval $ac_try) 2>&5
20100  ac_status=$?
20101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102  (exit $ac_status); }; } &&
20103	 { ac_try='test -s conftest$ac_exeext'
20104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105  (eval $ac_try) 2>&5
20106  ac_status=$?
20107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108  (exit $ac_status); }; }; then
20109  ac_cv_search_gethostbyaddr="-l$ac_lib"
20110break
20111else
20112  echo "$as_me: failed program was:" >&5
20113sed 's/^/| /' conftest.$ac_ext >&5
20114
20115fi
20116rm -f conftest.err conftest.$ac_objext \
20117      conftest$ac_exeext conftest.$ac_ext
20118  done
20119fi
20120LIBS=$ac_func_search_save_LIBS
20121fi
20122echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyaddr" >&5
20123echo "${ECHO_T}$ac_cv_search_gethostbyaddr" >&6
20124if test "$ac_cv_search_gethostbyaddr" != no; then
20125  test "$ac_cv_search_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_gethostbyaddr $LIBS"
20126
20127fi
20128
20129  case $LIBOBJS in
20130    "getaddrinfo.$ac_objext"   | \
20131  *" getaddrinfo.$ac_objext"   | \
20132    "getaddrinfo.$ac_objext "* | \
20133  *" getaddrinfo.$ac_objext "* ) ;;
20134  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
20135esac
20136
20137fi
20138
20139fi
20140
20141
20142if test x$testers = xtrue; then
20143  TESTERS_TRUE=
20144  TESTERS_FALSE='#'
20145else
20146  TESTERS_TRUE='#'
20147  TESTERS_FALSE=
20148fi
20149
20150
20151          ac_config_files="$ac_config_files Makefile"
20152
20153cat >confcache <<\_ACEOF
20154# This file is a shell script that caches the results of configure
20155# tests run on this system so they can be shared between configure
20156# scripts and configure runs, see configure's option --config-cache.
20157# It is not useful on other systems.  If it contains results you don't
20158# want to keep, you may remove or edit it.
20159#
20160# config.status only pays attention to the cache file if you give it
20161# the --recheck option to rerun configure.
20162#
20163# `ac_cv_env_foo' variables (set or unset) will be overridden when
20164# loading this file, other *unset* `ac_cv_foo' will be assigned the
20165# following values.
20166
20167_ACEOF
20168
20169# The following way of writing the cache mishandles newlines in values,
20170# but we know of no workaround that is simple, portable, and efficient.
20171# So, don't put newlines in cache variables' values.
20172# Ultrix sh set writes to stderr and can't be redirected directly,
20173# and sets the high bit in the cache file unless we assign to the vars.
20174{
20175  (set) 2>&1 |
20176    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20177    *ac_space=\ *)
20178      # `set' does not quote correctly, so add quotes (double-quote
20179      # substitution turns \\\\ into \\, and sed turns \\ into \).
20180      sed -n \
20181	"s/'/'\\\\''/g;
20182	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20183      ;;
20184    *)
20185      # `set' quotes correctly as required by POSIX, so do not add quotes.
20186      sed -n \
20187	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20188      ;;
20189    esac;
20190} |
20191  sed '
20192     t clear
20193     : clear
20194     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20195     t end
20196     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20197     : end' >>confcache
20198if diff $cache_file confcache >/dev/null 2>&1; then :; else
20199  if test -w $cache_file; then
20200    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20201    cat confcache >$cache_file
20202  else
20203    echo "not updating unwritable cache $cache_file"
20204  fi
20205fi
20206rm -f confcache
20207
20208test "x$prefix" = xNONE && prefix=$ac_default_prefix
20209# Let make expand exec_prefix.
20210test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20211
20212# VPATH may cause trouble with some makes, so we remove $(srcdir),
20213# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20214# trailing colons and then remove the whole line if VPATH becomes empty
20215# (actually we leave an empty line to preserve line numbers).
20216if test "x$srcdir" = x.; then
20217  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20218s/:*\$(srcdir):*/:/;
20219s/:*\${srcdir}:*/:/;
20220s/:*@srcdir@:*/:/;
20221s/^\([^=]*=[	 ]*\):*/\1/;
20222s/:*$//;
20223s/^[^=]*=[	 ]*$//;
20224}'
20225fi
20226
20227DEFS=-DHAVE_CONFIG_H
20228
20229ac_libobjs=
20230ac_ltlibobjs=
20231for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20232  # 1. Remove the extension, and $U if already installed.
20233  ac_i=`echo "$ac_i" |
20234	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20235  # 2. Add them.
20236  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20237  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20238done
20239LIBOBJS=$ac_libobjs
20240
20241LTLIBOBJS=$ac_ltlibobjs
20242
20243
20244if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20245  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20246Usually this means the macro was only invoked conditionally." >&5
20247echo "$as_me: error: conditional \"AMDEP\" was never defined.
20248Usually this means the macro was only invoked conditionally." >&2;}
20249   { (exit 1); exit 1; }; }
20250fi
20251if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20252  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20253Usually this means the macro was only invoked conditionally." >&5
20254echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20255Usually this means the macro was only invoked conditionally." >&2;}
20256   { (exit 1); exit 1; }; }
20257fi
20258if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20259  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20260Usually this means the macro was only invoked conditionally." >&5
20261echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20262Usually this means the macro was only invoked conditionally." >&2;}
20263   { (exit 1); exit 1; }; }
20264fi
20265if test -z "${TESTERS_TRUE}" && test -z "${TESTERS_FALSE}"; then
20266  { { echo "$as_me:$LINENO: error: conditional \"TESTERS\" was never defined.
20267Usually this means the macro was only invoked conditionally." >&5
20268echo "$as_me: error: conditional \"TESTERS\" was never defined.
20269Usually this means the macro was only invoked conditionally." >&2;}
20270   { (exit 1); exit 1; }; }
20271fi
20272
20273: ${CONFIG_STATUS=./config.status}
20274ac_clean_files_save=$ac_clean_files
20275ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20276{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20277echo "$as_me: creating $CONFIG_STATUS" >&6;}
20278cat >$CONFIG_STATUS <<_ACEOF
20279#! $SHELL
20280# Generated by $as_me.
20281# Run this file to recreate the current configuration.
20282# Compiler output produced by configure, useful for debugging
20283# configure, is in config.log if it exists.
20284
20285debug=false
20286ac_cs_recheck=false
20287ac_cs_silent=false
20288SHELL=\${CONFIG_SHELL-$SHELL}
20289_ACEOF
20290
20291cat >>$CONFIG_STATUS <<\_ACEOF
20292## --------------------- ##
20293## M4sh Initialization.  ##
20294## --------------------- ##
20295
20296# Be Bourne compatible
20297if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20298  emulate sh
20299  NULLCMD=:
20300  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20301  # is contrary to our usage.  Disable this feature.
20302  alias -g '${1+"$@"}'='"$@"'
20303elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20304  set -o posix
20305fi
20306DUALCASE=1; export DUALCASE # for MKS sh
20307
20308# Support unset when possible.
20309if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20310  as_unset=unset
20311else
20312  as_unset=false
20313fi
20314
20315
20316# Work around bugs in pre-3.0 UWIN ksh.
20317$as_unset ENV MAIL MAILPATH
20318PS1='$ '
20319PS2='> '
20320PS4='+ '
20321
20322# NLS nuisances.
20323for as_var in \
20324  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20325  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20326  LC_TELEPHONE LC_TIME
20327do
20328  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20329    eval $as_var=C; export $as_var
20330  else
20331    $as_unset $as_var
20332  fi
20333done
20334
20335# Required to use basename.
20336if expr a : '\(a\)' >/dev/null 2>&1; then
20337  as_expr=expr
20338else
20339  as_expr=false
20340fi
20341
20342if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20343  as_basename=basename
20344else
20345  as_basename=false
20346fi
20347
20348
20349# Name of the executable.
20350as_me=`$as_basename "$0" ||
20351$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20352	 X"$0" : 'X\(//\)$' \| \
20353	 X"$0" : 'X\(/\)$' \| \
20354	 .     : '\(.\)' 2>/dev/null ||
20355echo X/"$0" |
20356    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20357  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20358  	  /^X\/\(\/\).*/{ s//\1/; q; }
20359  	  s/.*/./; q'`
20360
20361
20362# PATH needs CR, and LINENO needs CR and PATH.
20363# Avoid depending upon Character Ranges.
20364as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20365as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20366as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20367as_cr_digits='0123456789'
20368as_cr_alnum=$as_cr_Letters$as_cr_digits
20369
20370# The user is always right.
20371if test "${PATH_SEPARATOR+set}" != set; then
20372  echo "#! /bin/sh" >conf$$.sh
20373  echo  "exit 0"   >>conf$$.sh
20374  chmod +x conf$$.sh
20375  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20376    PATH_SEPARATOR=';'
20377  else
20378    PATH_SEPARATOR=:
20379  fi
20380  rm -f conf$$.sh
20381fi
20382
20383
20384  as_lineno_1=$LINENO
20385  as_lineno_2=$LINENO
20386  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20387  test "x$as_lineno_1" != "x$as_lineno_2" &&
20388  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20389  # Find who we are.  Look in the path if we contain no path at all
20390  # relative or not.
20391  case $0 in
20392    *[\\/]* ) as_myself=$0 ;;
20393    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20394for as_dir in $PATH
20395do
20396  IFS=$as_save_IFS
20397  test -z "$as_dir" && as_dir=.
20398  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20399done
20400
20401       ;;
20402  esac
20403  # We did not find ourselves, most probably we were run as `sh COMMAND'
20404  # in which case we are not to be found in the path.
20405  if test "x$as_myself" = x; then
20406    as_myself=$0
20407  fi
20408  if test ! -f "$as_myself"; then
20409    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20410echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20411   { (exit 1); exit 1; }; }
20412  fi
20413  case $CONFIG_SHELL in
20414  '')
20415    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20416for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20417do
20418  IFS=$as_save_IFS
20419  test -z "$as_dir" && as_dir=.
20420  for as_base in sh bash ksh sh5; do
20421	 case $as_dir in
20422	 /*)
20423	   if ("$as_dir/$as_base" -c '
20424  as_lineno_1=$LINENO
20425  as_lineno_2=$LINENO
20426  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20427  test "x$as_lineno_1" != "x$as_lineno_2" &&
20428  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20429	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20430	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20431	     CONFIG_SHELL=$as_dir/$as_base
20432	     export CONFIG_SHELL
20433	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20434	   fi;;
20435	 esac
20436       done
20437done
20438;;
20439  esac
20440
20441  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20442  # uniformly replaced by the line number.  The first 'sed' inserts a
20443  # line-number line before each line; the second 'sed' does the real
20444  # work.  The second script uses 'N' to pair each line-number line
20445  # with the numbered line, and appends trailing '-' during
20446  # substitution so that $LINENO is not a special case at line end.
20447  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20448  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20449  sed '=' <$as_myself |
20450    sed '
20451      N
20452      s,$,-,
20453      : loop
20454      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20455      t loop
20456      s,-$,,
20457      s,^['$as_cr_digits']*\n,,
20458    ' >$as_me.lineno &&
20459  chmod +x $as_me.lineno ||
20460    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20461echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20462   { (exit 1); exit 1; }; }
20463
20464  # Don't try to exec as it changes $[0], causing all sort of problems
20465  # (the dirname of $[0] is not the place where we might find the
20466  # original and so on.  Autoconf is especially sensible to this).
20467  . ./$as_me.lineno
20468  # Exit status is that of the last command.
20469  exit
20470}
20471
20472
20473case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20474  *c*,-n*) ECHO_N= ECHO_C='
20475' ECHO_T='	' ;;
20476  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20477  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20478esac
20479
20480if expr a : '\(a\)' >/dev/null 2>&1; then
20481  as_expr=expr
20482else
20483  as_expr=false
20484fi
20485
20486rm -f conf$$ conf$$.exe conf$$.file
20487echo >conf$$.file
20488if ln -s conf$$.file conf$$ 2>/dev/null; then
20489  # We could just check for DJGPP; but this test a) works b) is more generic
20490  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20491  if test -f conf$$.exe; then
20492    # Don't use ln at all; we don't have any links
20493    as_ln_s='cp -p'
20494  else
20495    as_ln_s='ln -s'
20496  fi
20497elif ln conf$$.file conf$$ 2>/dev/null; then
20498  as_ln_s=ln
20499else
20500  as_ln_s='cp -p'
20501fi
20502rm -f conf$$ conf$$.exe conf$$.file
20503
20504if mkdir -p . 2>/dev/null; then
20505  as_mkdir_p=:
20506else
20507  test -d ./-p && rmdir ./-p
20508  as_mkdir_p=false
20509fi
20510
20511as_executable_p="test -f"
20512
20513# Sed expression to map a string onto a valid CPP name.
20514as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20515
20516# Sed expression to map a string onto a valid variable name.
20517as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20518
20519
20520# IFS
20521# We need space, tab and new line, in precisely that order.
20522as_nl='
20523'
20524IFS=" 	$as_nl"
20525
20526# CDPATH.
20527$as_unset CDPATH
20528
20529exec 6>&1
20530
20531# Open the log real soon, to keep \$[0] and so on meaningful, and to
20532# report actual input values of CONFIG_FILES etc. instead of their
20533# values after options handling.  Logging --version etc. is OK.
20534exec 5>>config.log
20535{
20536  echo
20537  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20538## Running $as_me. ##
20539_ASBOX
20540} >&5
20541cat >&5 <<_CSEOF
20542
20543This file was extended by libident $as_me 0.32, which was
20544generated by GNU Autoconf 2.59.  Invocation command line was
20545
20546  CONFIG_FILES    = $CONFIG_FILES
20547  CONFIG_HEADERS  = $CONFIG_HEADERS
20548  CONFIG_LINKS    = $CONFIG_LINKS
20549  CONFIG_COMMANDS = $CONFIG_COMMANDS
20550  $ $0 $@
20551
20552_CSEOF
20553echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20554echo >&5
20555_ACEOF
20556
20557# Files that config.status was made for.
20558if test -n "$ac_config_files"; then
20559  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20560fi
20561
20562if test -n "$ac_config_headers"; then
20563  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20564fi
20565
20566if test -n "$ac_config_links"; then
20567  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20568fi
20569
20570if test -n "$ac_config_commands"; then
20571  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20572fi
20573
20574cat >>$CONFIG_STATUS <<\_ACEOF
20575
20576ac_cs_usage="\
20577\`$as_me' instantiates files from templates according to the
20578current configuration.
20579
20580Usage: $0 [OPTIONS] [FILE]...
20581
20582  -h, --help       print this help, then exit
20583  -V, --version    print version number, then exit
20584  -q, --quiet      do not print progress messages
20585  -d, --debug      don't remove temporary files
20586      --recheck    update $as_me by reconfiguring in the same conditions
20587  --file=FILE[:TEMPLATE]
20588		   instantiate the configuration file FILE
20589  --header=FILE[:TEMPLATE]
20590		   instantiate the configuration header FILE
20591
20592Configuration files:
20593$config_files
20594
20595Configuration headers:
20596$config_headers
20597
20598Configuration commands:
20599$config_commands
20600
20601Report bugs to <bug-autoconf@gnu.org>."
20602_ACEOF
20603
20604cat >>$CONFIG_STATUS <<_ACEOF
20605ac_cs_version="\\
20606libident config.status 0.32
20607configured by $0, generated by GNU Autoconf 2.59,
20608  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20609
20610Copyright (C) 2003 Free Software Foundation, Inc.
20611This config.status script is free software; the Free Software Foundation
20612gives unlimited permission to copy, distribute and modify it."
20613srcdir=$srcdir
20614INSTALL="$INSTALL"
20615_ACEOF
20616
20617cat >>$CONFIG_STATUS <<\_ACEOF
20618# If no file are specified by the user, then we need to provide default
20619# value.  By we need to know if files were specified by the user.
20620ac_need_defaults=:
20621while test $# != 0
20622do
20623  case $1 in
20624  --*=*)
20625    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20626    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20627    ac_shift=:
20628    ;;
20629  -*)
20630    ac_option=$1
20631    ac_optarg=$2
20632    ac_shift=shift
20633    ;;
20634  *) # This is not an option, so the user has probably given explicit
20635     # arguments.
20636     ac_option=$1
20637     ac_need_defaults=false;;
20638  esac
20639
20640  case $ac_option in
20641  # Handling of the options.
20642_ACEOF
20643cat >>$CONFIG_STATUS <<\_ACEOF
20644  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20645    ac_cs_recheck=: ;;
20646  --version | --vers* | -V )
20647    echo "$ac_cs_version"; exit 0 ;;
20648  --he | --h)
20649    # Conflict between --help and --header
20650    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20651Try \`$0 --help' for more information." >&5
20652echo "$as_me: error: ambiguous option: $1
20653Try \`$0 --help' for more information." >&2;}
20654   { (exit 1); exit 1; }; };;
20655  --help | --hel | -h )
20656    echo "$ac_cs_usage"; exit 0 ;;
20657  --debug | --d* | -d )
20658    debug=: ;;
20659  --file | --fil | --fi | --f )
20660    $ac_shift
20661    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20662    ac_need_defaults=false;;
20663  --header | --heade | --head | --hea )
20664    $ac_shift
20665    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20666    ac_need_defaults=false;;
20667  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20668  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20669    ac_cs_silent=: ;;
20670
20671  # This is an error.
20672  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20673Try \`$0 --help' for more information." >&5
20674echo "$as_me: error: unrecognized option: $1
20675Try \`$0 --help' for more information." >&2;}
20676   { (exit 1); exit 1; }; } ;;
20677
20678  *) ac_config_targets="$ac_config_targets $1" ;;
20679
20680  esac
20681  shift
20682done
20683
20684ac_configure_extra_args=
20685
20686if $ac_cs_silent; then
20687  exec 6>/dev/null
20688  ac_configure_extra_args="$ac_configure_extra_args --silent"
20689fi
20690
20691_ACEOF
20692cat >>$CONFIG_STATUS <<_ACEOF
20693if \$ac_cs_recheck; then
20694  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20695  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20696fi
20697
20698_ACEOF
20699
20700cat >>$CONFIG_STATUS <<_ACEOF
20701#
20702# INIT-COMMANDS section.
20703#
20704
20705AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20706
20707_ACEOF
20708
20709
20710
20711cat >>$CONFIG_STATUS <<\_ACEOF
20712for ac_config_target in $ac_config_targets
20713do
20714  case "$ac_config_target" in
20715  # Handling of arguments.
20716  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20717  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20718  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20719  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20720echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20721   { (exit 1); exit 1; }; };;
20722  esac
20723done
20724
20725# If the user did not use the arguments to specify the items to instantiate,
20726# then the envvar interface is used.  Set only those that are not.
20727# We use the long form for the default assignment because of an extremely
20728# bizarre bug on SunOS 4.1.3.
20729if $ac_need_defaults; then
20730  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20731  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20732  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20733fi
20734
20735# Have a temporary directory for convenience.  Make it in the build tree
20736# simply because there is no reason to put it here, and in addition,
20737# creating and moving files from /tmp can sometimes cause problems.
20738# Create a temporary directory, and hook for its removal unless debugging.
20739$debug ||
20740{
20741  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20742  trap '{ (exit 1); exit 1; }' 1 2 13 15
20743}
20744
20745# Create a (secure) tmp directory for tmp files.
20746
20747{
20748  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20749  test -n "$tmp" && test -d "$tmp"
20750}  ||
20751{
20752  tmp=./confstat$$-$RANDOM
20753  (umask 077 && mkdir $tmp)
20754} ||
20755{
20756   echo "$me: cannot create a temporary directory in ." >&2
20757   { (exit 1); exit 1; }
20758}
20759
20760_ACEOF
20761
20762cat >>$CONFIG_STATUS <<_ACEOF
20763
20764#
20765# CONFIG_FILES section.
20766#
20767
20768# No need to generate the scripts if there are no CONFIG_FILES.
20769# This happens for instance when ./config.status config.h
20770if test -n "\$CONFIG_FILES"; then
20771  # Protect against being on the right side of a sed subst in config.status.
20772  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20773   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20774s,@SHELL@,$SHELL,;t t
20775s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20776s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20777s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20778s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20779s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20780s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20781s,@exec_prefix@,$exec_prefix,;t t
20782s,@prefix@,$prefix,;t t
20783s,@program_transform_name@,$program_transform_name,;t t
20784s,@bindir@,$bindir,;t t
20785s,@sbindir@,$sbindir,;t t
20786s,@libexecdir@,$libexecdir,;t t
20787s,@datadir@,$datadir,;t t
20788s,@sysconfdir@,$sysconfdir,;t t
20789s,@sharedstatedir@,$sharedstatedir,;t t
20790s,@localstatedir@,$localstatedir,;t t
20791s,@libdir@,$libdir,;t t
20792s,@includedir@,$includedir,;t t
20793s,@oldincludedir@,$oldincludedir,;t t
20794s,@infodir@,$infodir,;t t
20795s,@mandir@,$mandir,;t t
20796s,@build_alias@,$build_alias,;t t
20797s,@host_alias@,$host_alias,;t t
20798s,@target_alias@,$target_alias,;t t
20799s,@DEFS@,$DEFS,;t t
20800s,@ECHO_C@,$ECHO_C,;t t
20801s,@ECHO_N@,$ECHO_N,;t t
20802s,@ECHO_T@,$ECHO_T,;t t
20803s,@LIBS@,$LIBS,;t t
20804s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20805s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20806s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20807s,@CYGPATH_W@,$CYGPATH_W,;t t
20808s,@PACKAGE@,$PACKAGE,;t t
20809s,@VERSION@,$VERSION,;t t
20810s,@ACLOCAL@,$ACLOCAL,;t t
20811s,@AUTOCONF@,$AUTOCONF,;t t
20812s,@AUTOMAKE@,$AUTOMAKE,;t t
20813s,@AUTOHEADER@,$AUTOHEADER,;t t
20814s,@MAKEINFO@,$MAKEINFO,;t t
20815s,@AMTAR@,$AMTAR,;t t
20816s,@install_sh@,$install_sh,;t t
20817s,@STRIP@,$STRIP,;t t
20818s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20819s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20820s,@AWK@,$AWK,;t t
20821s,@SET_MAKE@,$SET_MAKE,;t t
20822s,@am__leading_dot@,$am__leading_dot,;t t
20823s,@CC@,$CC,;t t
20824s,@CFLAGS@,$CFLAGS,;t t
20825s,@LDFLAGS@,$LDFLAGS,;t t
20826s,@CPPFLAGS@,$CPPFLAGS,;t t
20827s,@ac_ct_CC@,$ac_ct_CC,;t t
20828s,@EXEEXT@,$EXEEXT,;t t
20829s,@OBJEXT@,$OBJEXT,;t t
20830s,@DEPDIR@,$DEPDIR,;t t
20831s,@am__include@,$am__include,;t t
20832s,@am__quote@,$am__quote,;t t
20833s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20834s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20835s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20836s,@CCDEPMODE@,$CCDEPMODE,;t t
20837s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20838s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20839s,@build@,$build,;t t
20840s,@build_cpu@,$build_cpu,;t t
20841s,@build_vendor@,$build_vendor,;t t
20842s,@build_os@,$build_os,;t t
20843s,@host@,$host,;t t
20844s,@host_cpu@,$host_cpu,;t t
20845s,@host_vendor@,$host_vendor,;t t
20846s,@host_os@,$host_os,;t t
20847s,@EGREP@,$EGREP,;t t
20848s,@LN_S@,$LN_S,;t t
20849s,@ECHO@,$ECHO,;t t
20850s,@AR@,$AR,;t t
20851s,@ac_ct_AR@,$ac_ct_AR,;t t
20852s,@RANLIB@,$RANLIB,;t t
20853s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20854s,@CPP@,$CPP,;t t
20855s,@CXX@,$CXX,;t t
20856s,@CXXFLAGS@,$CXXFLAGS,;t t
20857s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20858s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20859s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20860s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20861s,@CXXCPP@,$CXXCPP,;t t
20862s,@F77@,$F77,;t t
20863s,@FFLAGS@,$FFLAGS,;t t
20864s,@ac_ct_F77@,$ac_ct_F77,;t t
20865s,@LIBTOOL@,$LIBTOOL,;t t
20866s,@LIBOBJS@,$LIBOBJS,;t t
20867s,@TESTERS_TRUE@,$TESTERS_TRUE,;t t
20868s,@TESTERS_FALSE@,$TESTERS_FALSE,;t t
20869s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20870CEOF
20871
20872_ACEOF
20873
20874  cat >>$CONFIG_STATUS <<\_ACEOF
20875  # Split the substitutions into bite-sized pieces for seds with
20876  # small command number limits, like on Digital OSF/1 and HP-UX.
20877  ac_max_sed_lines=48
20878  ac_sed_frag=1 # Number of current file.
20879  ac_beg=1 # First line for current file.
20880  ac_end=$ac_max_sed_lines # Line after last line for current file.
20881  ac_more_lines=:
20882  ac_sed_cmds=
20883  while $ac_more_lines; do
20884    if test $ac_beg -gt 1; then
20885      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20886    else
20887      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20888    fi
20889    if test ! -s $tmp/subs.frag; then
20890      ac_more_lines=false
20891    else
20892      # The purpose of the label and of the branching condition is to
20893      # speed up the sed processing (if there are no `@' at all, there
20894      # is no need to browse any of the substitutions).
20895      # These are the two extra sed commands mentioned above.
20896      (echo ':t
20897  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20898      if test -z "$ac_sed_cmds"; then
20899	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20900      else
20901	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20902      fi
20903      ac_sed_frag=`expr $ac_sed_frag + 1`
20904      ac_beg=$ac_end
20905      ac_end=`expr $ac_end + $ac_max_sed_lines`
20906    fi
20907  done
20908  if test -z "$ac_sed_cmds"; then
20909    ac_sed_cmds=cat
20910  fi
20911fi # test -n "$CONFIG_FILES"
20912
20913_ACEOF
20914cat >>$CONFIG_STATUS <<\_ACEOF
20915for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20916  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20917  case $ac_file in
20918  - | *:- | *:-:* ) # input from stdin
20919	cat >$tmp/stdin
20920	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20921	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20922  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20923	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20924  * )   ac_file_in=$ac_file.in ;;
20925  esac
20926
20927  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20928  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20929$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20930	 X"$ac_file" : 'X\(//\)[^/]' \| \
20931	 X"$ac_file" : 'X\(//\)$' \| \
20932	 X"$ac_file" : 'X\(/\)' \| \
20933	 .     : '\(.\)' 2>/dev/null ||
20934echo X"$ac_file" |
20935    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20936  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20937  	  /^X\(\/\/\)$/{ s//\1/; q; }
20938  	  /^X\(\/\).*/{ s//\1/; q; }
20939  	  s/.*/./; q'`
20940  { if $as_mkdir_p; then
20941    mkdir -p "$ac_dir"
20942  else
20943    as_dir="$ac_dir"
20944    as_dirs=
20945    while test ! -d "$as_dir"; do
20946      as_dirs="$as_dir $as_dirs"
20947      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20948$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20949	 X"$as_dir" : 'X\(//\)[^/]' \| \
20950	 X"$as_dir" : 'X\(//\)$' \| \
20951	 X"$as_dir" : 'X\(/\)' \| \
20952	 .     : '\(.\)' 2>/dev/null ||
20953echo X"$as_dir" |
20954    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20955  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20956  	  /^X\(\/\/\)$/{ s//\1/; q; }
20957  	  /^X\(\/\).*/{ s//\1/; q; }
20958  	  s/.*/./; q'`
20959    done
20960    test ! -n "$as_dirs" || mkdir $as_dirs
20961  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20962echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20963   { (exit 1); exit 1; }; }; }
20964
20965  ac_builddir=.
20966
20967if test "$ac_dir" != .; then
20968  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20969  # A "../" for each directory in $ac_dir_suffix.
20970  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20971else
20972  ac_dir_suffix= ac_top_builddir=
20973fi
20974
20975case $srcdir in
20976  .)  # No --srcdir option.  We are building in place.
20977    ac_srcdir=.
20978    if test -z "$ac_top_builddir"; then
20979       ac_top_srcdir=.
20980    else
20981       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20982    fi ;;
20983  [\\/]* | ?:[\\/]* )  # Absolute path.
20984    ac_srcdir=$srcdir$ac_dir_suffix;
20985    ac_top_srcdir=$srcdir ;;
20986  *) # Relative path.
20987    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20988    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20989esac
20990
20991# Do not use `cd foo && pwd` to compute absolute paths, because
20992# the directories may not exist.
20993case `pwd` in
20994.) ac_abs_builddir="$ac_dir";;
20995*)
20996  case "$ac_dir" in
20997  .) ac_abs_builddir=`pwd`;;
20998  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20999  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21000  esac;;
21001esac
21002case $ac_abs_builddir in
21003.) ac_abs_top_builddir=${ac_top_builddir}.;;
21004*)
21005  case ${ac_top_builddir}. in
21006  .) ac_abs_top_builddir=$ac_abs_builddir;;
21007  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21008  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21009  esac;;
21010esac
21011case $ac_abs_builddir in
21012.) ac_abs_srcdir=$ac_srcdir;;
21013*)
21014  case $ac_srcdir in
21015  .) ac_abs_srcdir=$ac_abs_builddir;;
21016  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21017  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21018  esac;;
21019esac
21020case $ac_abs_builddir in
21021.) ac_abs_top_srcdir=$ac_top_srcdir;;
21022*)
21023  case $ac_top_srcdir in
21024  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21025  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21026  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21027  esac;;
21028esac
21029
21030
21031  case $INSTALL in
21032  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21033  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21034  esac
21035
21036  # Let's still pretend it is `configure' which instantiates (i.e., don't
21037  # use $as_me), people would be surprised to read:
21038  #    /* config.h.  Generated by config.status.  */
21039  if test x"$ac_file" = x-; then
21040    configure_input=
21041  else
21042    configure_input="$ac_file.  "
21043  fi
21044  configure_input=$configure_input"Generated from `echo $ac_file_in |
21045				     sed 's,.*/,,'` by configure."
21046
21047  # First look for the input files in the build tree, otherwise in the
21048  # src tree.
21049  ac_file_inputs=`IFS=:
21050    for f in $ac_file_in; do
21051      case $f in
21052      -) echo $tmp/stdin ;;
21053      [\\/$]*)
21054	 # Absolute (can't be DOS-style, as IFS=:)
21055	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21056echo "$as_me: error: cannot find input file: $f" >&2;}
21057   { (exit 1); exit 1; }; }
21058	 echo "$f";;
21059      *) # Relative
21060	 if test -f "$f"; then
21061	   # Build tree
21062	   echo "$f"
21063	 elif test -f "$srcdir/$f"; then
21064	   # Source tree
21065	   echo "$srcdir/$f"
21066	 else
21067	   # /dev/null tree
21068	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21069echo "$as_me: error: cannot find input file: $f" >&2;}
21070   { (exit 1); exit 1; }; }
21071	 fi;;
21072      esac
21073    done` || { (exit 1); exit 1; }
21074
21075  if test x"$ac_file" != x-; then
21076    { echo "$as_me:$LINENO: creating $ac_file" >&5
21077echo "$as_me: creating $ac_file" >&6;}
21078    rm -f "$ac_file"
21079  fi
21080_ACEOF
21081cat >>$CONFIG_STATUS <<_ACEOF
21082  sed "$ac_vpsub
21083$extrasub
21084_ACEOF
21085cat >>$CONFIG_STATUS <<\_ACEOF
21086:t
21087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21088s,@configure_input@,$configure_input,;t t
21089s,@srcdir@,$ac_srcdir,;t t
21090s,@abs_srcdir@,$ac_abs_srcdir,;t t
21091s,@top_srcdir@,$ac_top_srcdir,;t t
21092s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21093s,@builddir@,$ac_builddir,;t t
21094s,@abs_builddir@,$ac_abs_builddir,;t t
21095s,@top_builddir@,$ac_top_builddir,;t t
21096s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21097s,@INSTALL@,$ac_INSTALL,;t t
21098" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21099  rm -f $tmp/stdin
21100  if test x"$ac_file" != x-; then
21101    mv $tmp/out $ac_file
21102  else
21103    cat $tmp/out
21104    rm -f $tmp/out
21105  fi
21106
21107done
21108_ACEOF
21109cat >>$CONFIG_STATUS <<\_ACEOF
21110
21111#
21112# CONFIG_HEADER section.
21113#
21114
21115# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21116# NAME is the cpp macro being defined and VALUE is the value it is being given.
21117#
21118# ac_d sets the value in "#define NAME VALUE" lines.
21119ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21120ac_dB='[	 ].*$,\1#\2'
21121ac_dC=' '
21122ac_dD=',;t'
21123# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21124ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21125ac_uB='$,\1#\2define\3'
21126ac_uC=' '
21127ac_uD=',;t'
21128
21129for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21130  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21131  case $ac_file in
21132  - | *:- | *:-:* ) # input from stdin
21133	cat >$tmp/stdin
21134	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21135	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21136  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21137	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21138  * )   ac_file_in=$ac_file.in ;;
21139  esac
21140
21141  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21142echo "$as_me: creating $ac_file" >&6;}
21143
21144  # First look for the input files in the build tree, otherwise in the
21145  # src tree.
21146  ac_file_inputs=`IFS=:
21147    for f in $ac_file_in; do
21148      case $f in
21149      -) echo $tmp/stdin ;;
21150      [\\/$]*)
21151	 # Absolute (can't be DOS-style, as IFS=:)
21152	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21153echo "$as_me: error: cannot find input file: $f" >&2;}
21154   { (exit 1); exit 1; }; }
21155	 # Do quote $f, to prevent DOS paths from being IFS'd.
21156	 echo "$f";;
21157      *) # Relative
21158	 if test -f "$f"; then
21159	   # Build tree
21160	   echo "$f"
21161	 elif test -f "$srcdir/$f"; then
21162	   # Source tree
21163	   echo "$srcdir/$f"
21164	 else
21165	   # /dev/null tree
21166	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21167echo "$as_me: error: cannot find input file: $f" >&2;}
21168   { (exit 1); exit 1; }; }
21169	 fi;;
21170      esac
21171    done` || { (exit 1); exit 1; }
21172  # Remove the trailing spaces.
21173  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21174
21175_ACEOF
21176
21177# Transform confdefs.h into two sed scripts, `conftest.defines' and
21178# `conftest.undefs', that substitutes the proper values into
21179# config.h.in to produce config.h.  The first handles `#define'
21180# templates, and the second `#undef' templates.
21181# And first: Protect against being on the right side of a sed subst in
21182# config.status.  Protect against being in an unquoted here document
21183# in config.status.
21184rm -f conftest.defines conftest.undefs
21185# Using a here document instead of a string reduces the quoting nightmare.
21186# Putting comments in sed scripts is not portable.
21187#
21188# `end' is used to avoid that the second main sed command (meant for
21189# 0-ary CPP macros) applies to n-ary macro definitions.
21190# See the Autoconf documentation for `clear'.
21191cat >confdef2sed.sed <<\_ACEOF
21192s/[\\&,]/\\&/g
21193s,[\\$`],\\&,g
21194t clear
21195: clear
21196s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21197t end
21198s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21199: end
21200_ACEOF
21201# If some macros were called several times there might be several times
21202# the same #defines, which is useless.  Nevertheless, we may not want to
21203# sort them, since we want the *last* AC-DEFINE to be honored.
21204uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21205sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21206rm -f confdef2sed.sed
21207
21208# This sed command replaces #undef with comments.  This is necessary, for
21209# example, in the case of _POSIX_SOURCE, which is predefined and required
21210# on some systems where configure will not decide to define it.
21211cat >>conftest.undefs <<\_ACEOF
21212s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21213_ACEOF
21214
21215# Break up conftest.defines because some shells have a limit on the size
21216# of here documents, and old seds have small limits too (100 cmds).
21217echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21218echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21219echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21220echo '  :' >>$CONFIG_STATUS
21221rm -f conftest.tail
21222while grep . conftest.defines >/dev/null
21223do
21224  # Write a limited-size here document to $tmp/defines.sed.
21225  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21226  # Speed up: don't consider the non `#define' lines.
21227  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21228  # Work around the forget-to-reset-the-flag bug.
21229  echo 't clr' >>$CONFIG_STATUS
21230  echo ': clr' >>$CONFIG_STATUS
21231  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21232  echo 'CEOF
21233  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21234  rm -f $tmp/in
21235  mv $tmp/out $tmp/in
21236' >>$CONFIG_STATUS
21237  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21238  rm -f conftest.defines
21239  mv conftest.tail conftest.defines
21240done
21241rm -f conftest.defines
21242echo '  fi # grep' >>$CONFIG_STATUS
21243echo >>$CONFIG_STATUS
21244
21245# Break up conftest.undefs because some shells have a limit on the size
21246# of here documents, and old seds have small limits too (100 cmds).
21247echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21248rm -f conftest.tail
21249while grep . conftest.undefs >/dev/null
21250do
21251  # Write a limited-size here document to $tmp/undefs.sed.
21252  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21253  # Speed up: don't consider the non `#undef'
21254  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21255  # Work around the forget-to-reset-the-flag bug.
21256  echo 't clr' >>$CONFIG_STATUS
21257  echo ': clr' >>$CONFIG_STATUS
21258  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21259  echo 'CEOF
21260  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21261  rm -f $tmp/in
21262  mv $tmp/out $tmp/in
21263' >>$CONFIG_STATUS
21264  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21265  rm -f conftest.undefs
21266  mv conftest.tail conftest.undefs
21267done
21268rm -f conftest.undefs
21269
21270cat >>$CONFIG_STATUS <<\_ACEOF
21271  # Let's still pretend it is `configure' which instantiates (i.e., don't
21272  # use $as_me), people would be surprised to read:
21273  #    /* config.h.  Generated by config.status.  */
21274  if test x"$ac_file" = x-; then
21275    echo "/* Generated by configure.  */" >$tmp/config.h
21276  else
21277    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21278  fi
21279  cat $tmp/in >>$tmp/config.h
21280  rm -f $tmp/in
21281  if test x"$ac_file" != x-; then
21282    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21283      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21284echo "$as_me: $ac_file is unchanged" >&6;}
21285    else
21286      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21287$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21288	 X"$ac_file" : 'X\(//\)[^/]' \| \
21289	 X"$ac_file" : 'X\(//\)$' \| \
21290	 X"$ac_file" : 'X\(/\)' \| \
21291	 .     : '\(.\)' 2>/dev/null ||
21292echo X"$ac_file" |
21293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21294  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21295  	  /^X\(\/\/\)$/{ s//\1/; q; }
21296  	  /^X\(\/\).*/{ s//\1/; q; }
21297  	  s/.*/./; q'`
21298      { if $as_mkdir_p; then
21299    mkdir -p "$ac_dir"
21300  else
21301    as_dir="$ac_dir"
21302    as_dirs=
21303    while test ! -d "$as_dir"; do
21304      as_dirs="$as_dir $as_dirs"
21305      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21307	 X"$as_dir" : 'X\(//\)[^/]' \| \
21308	 X"$as_dir" : 'X\(//\)$' \| \
21309	 X"$as_dir" : 'X\(/\)' \| \
21310	 .     : '\(.\)' 2>/dev/null ||
21311echo X"$as_dir" |
21312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21313  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21314  	  /^X\(\/\/\)$/{ s//\1/; q; }
21315  	  /^X\(\/\).*/{ s//\1/; q; }
21316  	  s/.*/./; q'`
21317    done
21318    test ! -n "$as_dirs" || mkdir $as_dirs
21319  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21320echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21321   { (exit 1); exit 1; }; }; }
21322
21323      rm -f $ac_file
21324      mv $tmp/config.h $ac_file
21325    fi
21326  else
21327    cat $tmp/config.h
21328    rm -f $tmp/config.h
21329  fi
21330# Compute $ac_file's index in $config_headers.
21331_am_stamp_count=1
21332for _am_header in $config_headers :; do
21333  case $_am_header in
21334    $ac_file | $ac_file:* )
21335      break ;;
21336    * )
21337      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21338  esac
21339done
21340echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21341$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21342	 X$ac_file : 'X\(//\)[^/]' \| \
21343	 X$ac_file : 'X\(//\)$' \| \
21344	 X$ac_file : 'X\(/\)' \| \
21345	 .     : '\(.\)' 2>/dev/null ||
21346echo X$ac_file |
21347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21348  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21349  	  /^X\(\/\/\)$/{ s//\1/; q; }
21350  	  /^X\(\/\).*/{ s//\1/; q; }
21351  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21352done
21353_ACEOF
21354cat >>$CONFIG_STATUS <<\_ACEOF
21355
21356#
21357# CONFIG_COMMANDS section.
21358#
21359for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21360  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21361  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21362  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21363$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21364	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21365	 X"$ac_dest" : 'X\(//\)$' \| \
21366	 X"$ac_dest" : 'X\(/\)' \| \
21367	 .     : '\(.\)' 2>/dev/null ||
21368echo X"$ac_dest" |
21369    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21370  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21371  	  /^X\(\/\/\)$/{ s//\1/; q; }
21372  	  /^X\(\/\).*/{ s//\1/; q; }
21373  	  s/.*/./; q'`
21374  { if $as_mkdir_p; then
21375    mkdir -p "$ac_dir"
21376  else
21377    as_dir="$ac_dir"
21378    as_dirs=
21379    while test ! -d "$as_dir"; do
21380      as_dirs="$as_dir $as_dirs"
21381      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21382$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21383	 X"$as_dir" : 'X\(//\)[^/]' \| \
21384	 X"$as_dir" : 'X\(//\)$' \| \
21385	 X"$as_dir" : 'X\(/\)' \| \
21386	 .     : '\(.\)' 2>/dev/null ||
21387echo X"$as_dir" |
21388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21389  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21390  	  /^X\(\/\/\)$/{ s//\1/; q; }
21391  	  /^X\(\/\).*/{ s//\1/; q; }
21392  	  s/.*/./; q'`
21393    done
21394    test ! -n "$as_dirs" || mkdir $as_dirs
21395  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21396echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21397   { (exit 1); exit 1; }; }; }
21398
21399  ac_builddir=.
21400
21401if test "$ac_dir" != .; then
21402  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21403  # A "../" for each directory in $ac_dir_suffix.
21404  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21405else
21406  ac_dir_suffix= ac_top_builddir=
21407fi
21408
21409case $srcdir in
21410  .)  # No --srcdir option.  We are building in place.
21411    ac_srcdir=.
21412    if test -z "$ac_top_builddir"; then
21413       ac_top_srcdir=.
21414    else
21415       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21416    fi ;;
21417  [\\/]* | ?:[\\/]* )  # Absolute path.
21418    ac_srcdir=$srcdir$ac_dir_suffix;
21419    ac_top_srcdir=$srcdir ;;
21420  *) # Relative path.
21421    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21422    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21423esac
21424
21425# Do not use `cd foo && pwd` to compute absolute paths, because
21426# the directories may not exist.
21427case `pwd` in
21428.) ac_abs_builddir="$ac_dir";;
21429*)
21430  case "$ac_dir" in
21431  .) ac_abs_builddir=`pwd`;;
21432  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21433  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21434  esac;;
21435esac
21436case $ac_abs_builddir in
21437.) ac_abs_top_builddir=${ac_top_builddir}.;;
21438*)
21439  case ${ac_top_builddir}. in
21440  .) ac_abs_top_builddir=$ac_abs_builddir;;
21441  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21442  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21443  esac;;
21444esac
21445case $ac_abs_builddir in
21446.) ac_abs_srcdir=$ac_srcdir;;
21447*)
21448  case $ac_srcdir in
21449  .) ac_abs_srcdir=$ac_abs_builddir;;
21450  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21451  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21452  esac;;
21453esac
21454case $ac_abs_builddir in
21455.) ac_abs_top_srcdir=$ac_top_srcdir;;
21456*)
21457  case $ac_top_srcdir in
21458  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21459  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21460  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21461  esac;;
21462esac
21463
21464
21465  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21466echo "$as_me: executing $ac_dest commands" >&6;}
21467  case $ac_dest in
21468    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21469  # Strip MF so we end up with the name of the file.
21470  mf=`echo "$mf" | sed -e 's/:.*$//'`
21471  # Check whether this is an Automake generated Makefile or not.
21472  # We used to match only the files named `Makefile.in', but
21473  # some people rename them; so instead we look at the file content.
21474  # Grep'ing the first line is not enough: some people post-process
21475  # each Makefile.in and add a new line on top of each file to say so.
21476  # So let's grep whole file.
21477  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21478    dirpart=`(dirname "$mf") 2>/dev/null ||
21479$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21480	 X"$mf" : 'X\(//\)[^/]' \| \
21481	 X"$mf" : 'X\(//\)$' \| \
21482	 X"$mf" : 'X\(/\)' \| \
21483	 .     : '\(.\)' 2>/dev/null ||
21484echo X"$mf" |
21485    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21486  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21487  	  /^X\(\/\/\)$/{ s//\1/; q; }
21488  	  /^X\(\/\).*/{ s//\1/; q; }
21489  	  s/.*/./; q'`
21490  else
21491    continue
21492  fi
21493  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21494  # Extract the definition of DEP_FILES from the Makefile without
21495  # running `make'.
21496  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21497  test -z "$DEPDIR" && continue
21498  # When using ansi2knr, U may be empty or an underscore; expand it
21499  U=`sed -n -e '/^U = / s///p' < "$mf"`
21500  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21501  # We invoke sed twice because it is the simplest approach to
21502  # changing $(DEPDIR) to its actual value in the expansion.
21503  for file in `sed -n -e '
21504    /^DEP_FILES = .*\\\\$/ {
21505      s/^DEP_FILES = //
21506      :loop
21507	s/\\\\$//
21508	p
21509	n
21510	/\\\\$/ b loop
21511      p
21512    }
21513    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21514       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21515    # Make sure the directory exists.
21516    test -f "$dirpart/$file" && continue
21517    fdir=`(dirname "$file") 2>/dev/null ||
21518$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21519	 X"$file" : 'X\(//\)[^/]' \| \
21520	 X"$file" : 'X\(//\)$' \| \
21521	 X"$file" : 'X\(/\)' \| \
21522	 .     : '\(.\)' 2>/dev/null ||
21523echo X"$file" |
21524    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21525  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21526  	  /^X\(\/\/\)$/{ s//\1/; q; }
21527  	  /^X\(\/\).*/{ s//\1/; q; }
21528  	  s/.*/./; q'`
21529    { if $as_mkdir_p; then
21530    mkdir -p $dirpart/$fdir
21531  else
21532    as_dir=$dirpart/$fdir
21533    as_dirs=
21534    while test ! -d "$as_dir"; do
21535      as_dirs="$as_dir $as_dirs"
21536      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21537$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21538	 X"$as_dir" : 'X\(//\)[^/]' \| \
21539	 X"$as_dir" : 'X\(//\)$' \| \
21540	 X"$as_dir" : 'X\(/\)' \| \
21541	 .     : '\(.\)' 2>/dev/null ||
21542echo X"$as_dir" |
21543    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21544  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21545  	  /^X\(\/\/\)$/{ s//\1/; q; }
21546  	  /^X\(\/\).*/{ s//\1/; q; }
21547  	  s/.*/./; q'`
21548    done
21549    test ! -n "$as_dirs" || mkdir $as_dirs
21550  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21551echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21552   { (exit 1); exit 1; }; }; }
21553
21554    # echo "creating $dirpart/$file"
21555    echo '# dummy' > "$dirpart/$file"
21556  done
21557done
21558 ;;
21559  esac
21560done
21561_ACEOF
21562
21563cat >>$CONFIG_STATUS <<\_ACEOF
21564
21565{ (exit 0); exit 0; }
21566_ACEOF
21567chmod +x $CONFIG_STATUS
21568ac_clean_files=$ac_clean_files_save
21569
21570
21571# configure is writing to config.log, and then calls config.status.
21572# config.status does its own redirection, appending to config.log.
21573# Unfortunately, on DOS this fails, as config.log is still kept open
21574# by configure, so config.status won't be able to write to it; its
21575# output is simply discarded.  So we exec the FD to /dev/null,
21576# effectively closing config.log, so it can be properly (re)opened and
21577# appended to by config.status.  When coming back to configure, we
21578# need to make the FD available again.
21579if test "$no_create" != yes; then
21580  ac_cs_success=:
21581  ac_config_status_args=
21582  test "$silent" = yes &&
21583    ac_config_status_args="$ac_config_status_args --quiet"
21584  exec 5>/dev/null
21585  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21586  exec 5>>config.log
21587  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21588  # would make configure fail if this is the last instruction.
21589  $ac_cs_success || { (exit 1); exit 1; }
21590fi
21591
21592