1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libpng 1.2.12.
4#
5# Report bugs to <png-mng-implement@lists.sourceforge.net>.
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.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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='libpng'
425PACKAGE_TARNAME='libpng'
426PACKAGE_VERSION='1.2.12'
427PACKAGE_STRING='libpng 1.2.12'
428PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
429
430ac_unique_file="pngget.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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CPP SED ac_ct_SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS POW_LIB LIBPNG_DEFINES HAVE_LD_VERSION_SCRIPT_TRUE HAVE_LD_VERSION_SCRIPT_FALSE PNGLIB_VERSION PNGLIB_MAJOR PNGLIB_MINOR pkgconfigdir binconfigs compatlib 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 libpng 1.2.12 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 libpng 1.2.12:";;
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  --enable-maintainer-mode  enable make rules and dependencies not useful
1031			  (and sometimes confusing) to the casual installer
1032  --disable-dependency-tracking  speeds up one-time build
1033  --enable-dependency-tracking   do not reject slow dependency extractors
1034  --enable-shared[=PKGS]
1035                          build shared libraries [default=yes]
1036  --enable-static[=PKGS]
1037                          build static libraries [default=yes]
1038  --enable-fast-install[=PKGS]
1039                          optimize for fast installation [default=yes]
1040  --disable-libtool-lock  avoid locking (might break parallel builds)
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  --with-pkgconfigdir     Use the specified pkgconfig dir (default is
1051                          libdir/pkgconfig)
1052  --with-binconfigs       Generate shell libpng-config scripts as well as
1053                          pkg-config data [default=yes]
1054  --with-libpng-compat    Generate the obsolete libpng.so library
1055                          [default=yes]
1056
1057Some influential environment variables:
1058  CC          C compiler command
1059  CFLAGS      C compiler flags
1060  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1061              nonstandard directory <lib dir>
1062  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063              headers in a nonstandard directory <include dir>
1064  CPP         C preprocessor
1065  CXX         C++ compiler command
1066  CXXFLAGS    C++ compiler flags
1067  CXXCPP      C++ preprocessor
1068  F77         Fortran 77 compiler command
1069  FFLAGS      Fortran 77 compiler flags
1070
1071Use these variables to override the choices made by `configure' or to help
1072it to find libraries and programs with nonstandard names/locations.
1073
1074Report bugs to <png-mng-implement@lists.sourceforge.net>.
1075_ACEOF
1076fi
1077
1078if test "$ac_init_help" = "recursive"; then
1079  # If there are subdirs, report their specific --help.
1080  ac_popdir=`pwd`
1081  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082    test -d $ac_dir || continue
1083    ac_builddir=.
1084
1085if test "$ac_dir" != .; then
1086  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087  # A "../" for each directory in $ac_dir_suffix.
1088  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089else
1090  ac_dir_suffix= ac_top_builddir=
1091fi
1092
1093case $srcdir in
1094  .)  # No --srcdir option.  We are building in place.
1095    ac_srcdir=.
1096    if test -z "$ac_top_builddir"; then
1097       ac_top_srcdir=.
1098    else
1099       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100    fi ;;
1101  [\\/]* | ?:[\\/]* )  # Absolute path.
1102    ac_srcdir=$srcdir$ac_dir_suffix;
1103    ac_top_srcdir=$srcdir ;;
1104  *) # Relative path.
1105    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107esac
1108
1109# Do not use `cd foo && pwd` to compute absolute paths, because
1110# the directories may not exist.
1111case `pwd` in
1112.) ac_abs_builddir="$ac_dir";;
1113*)
1114  case "$ac_dir" in
1115  .) ac_abs_builddir=`pwd`;;
1116  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118  esac;;
1119esac
1120case $ac_abs_builddir in
1121.) ac_abs_top_builddir=${ac_top_builddir}.;;
1122*)
1123  case ${ac_top_builddir}. in
1124  .) ac_abs_top_builddir=$ac_abs_builddir;;
1125  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127  esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_srcdir=$ac_srcdir;;
1131*)
1132  case $ac_srcdir in
1133  .) ac_abs_srcdir=$ac_abs_builddir;;
1134  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136  esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_top_srcdir=$ac_top_srcdir;;
1140*)
1141  case $ac_top_srcdir in
1142  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1143  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145  esac;;
1146esac
1147
1148    cd $ac_dir
1149    # Check for guested configure; otherwise get Cygnus style configure.
1150    if test -f $ac_srcdir/configure.gnu; then
1151      echo
1152      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1153    elif test -f $ac_srcdir/configure; then
1154      echo
1155      $SHELL $ac_srcdir/configure  --help=recursive
1156    elif test -f $ac_srcdir/configure.ac ||
1157	   test -f $ac_srcdir/configure.in; then
1158      echo
1159      $ac_configure --help
1160    else
1161      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162    fi
1163    cd $ac_popdir
1164  done
1165fi
1166
1167test -n "$ac_init_help" && exit 0
1168if $ac_init_version; then
1169  cat <<\_ACEOF
1170libpng configure 1.2.12
1171generated by GNU Autoconf 2.59
1172
1173Copyright (C) 2003 Free Software Foundation, Inc.
1174This configure script is free software; the Free Software Foundation
1175gives unlimited permission to copy, distribute and modify it.
1176_ACEOF
1177  exit 0
1178fi
1179exec 5>config.log
1180cat >&5 <<_ACEOF
1181This file contains any messages produced by compilers while
1182running configure, to aid debugging if configure makes a mistake.
1183
1184It was created by libpng $as_me 1.2.12, which was
1185generated by GNU Autoconf 2.59.  Invocation command line was
1186
1187  $ $0 $@
1188
1189_ACEOF
1190{
1191cat <<_ASUNAME
1192## --------- ##
1193## Platform. ##
1194## --------- ##
1195
1196hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1197uname -m = `(uname -m) 2>/dev/null || echo unknown`
1198uname -r = `(uname -r) 2>/dev/null || echo unknown`
1199uname -s = `(uname -s) 2>/dev/null || echo unknown`
1200uname -v = `(uname -v) 2>/dev/null || echo unknown`
1201
1202/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1203/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1204
1205/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1206/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1207/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1208hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1209/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1210/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1211/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1212
1213_ASUNAME
1214
1215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216for as_dir in $PATH
1217do
1218  IFS=$as_save_IFS
1219  test -z "$as_dir" && as_dir=.
1220  echo "PATH: $as_dir"
1221done
1222
1223} >&5
1224
1225cat >&5 <<_ACEOF
1226
1227
1228## ----------- ##
1229## Core tests. ##
1230## ----------- ##
1231
1232_ACEOF
1233
1234
1235# Keep a trace of the command line.
1236# Strip out --no-create and --no-recursion so they do not pile up.
1237# Strip out --silent because we don't want to record it for future runs.
1238# Also quote any args containing shell meta-characters.
1239# Make two passes to allow for proper duplicate-argument suppression.
1240ac_configure_args=
1241ac_configure_args0=
1242ac_configure_args1=
1243ac_sep=
1244ac_must_keep_next=false
1245for ac_pass in 1 2
1246do
1247  for ac_arg
1248  do
1249    case $ac_arg in
1250    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1251    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252    | -silent | --silent | --silen | --sile | --sil)
1253      continue ;;
1254    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256    esac
1257    case $ac_pass in
1258    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1259    2)
1260      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1261      if test $ac_must_keep_next = true; then
1262	ac_must_keep_next=false # Got value, back to normal.
1263      else
1264	case $ac_arg in
1265	  *=* | --config-cache | -C | -disable-* | --disable-* \
1266	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1267	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1268	  | -with-* | --with-* | -without-* | --without-* | --x)
1269	    case "$ac_configure_args0 " in
1270	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271	    esac
1272	    ;;
1273	  -* ) ac_must_keep_next=true ;;
1274	esac
1275      fi
1276      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1277      # Get rid of the leading space.
1278      ac_sep=" "
1279      ;;
1280    esac
1281  done
1282done
1283$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1284$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1285
1286# When interrupted or exit'd, cleanup temporary files, and complete
1287# config.log.  We remove comments because anyway the quotes in there
1288# would cause problems or look ugly.
1289# WARNING: Be sure not to use single quotes in there, as some shells,
1290# such as our DU 5.0 friend, will then `close' the trap.
1291trap 'exit_status=$?
1292  # Save into config.log some information that might help in debugging.
1293  {
1294    echo
1295
1296    cat <<\_ASBOX
1297## ---------------- ##
1298## Cache variables. ##
1299## ---------------- ##
1300_ASBOX
1301    echo
1302    # The following way of writing the cache mishandles newlines in values,
1303{
1304  (set) 2>&1 |
1305    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306    *ac_space=\ *)
1307      sed -n \
1308	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1309	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310      ;;
1311    *)
1312      sed -n \
1313	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1314      ;;
1315    esac;
1316}
1317    echo
1318
1319    cat <<\_ASBOX
1320## ----------------- ##
1321## Output variables. ##
1322## ----------------- ##
1323_ASBOX
1324    echo
1325    for ac_var in $ac_subst_vars
1326    do
1327      eval ac_val=$`echo $ac_var`
1328      echo "$ac_var='"'"'$ac_val'"'"'"
1329    done | sort
1330    echo
1331
1332    if test -n "$ac_subst_files"; then
1333      cat <<\_ASBOX
1334## ------------- ##
1335## Output files. ##
1336## ------------- ##
1337_ASBOX
1338      echo
1339      for ac_var in $ac_subst_files
1340      do
1341	eval ac_val=$`echo $ac_var`
1342	echo "$ac_var='"'"'$ac_val'"'"'"
1343      done | sort
1344      echo
1345    fi
1346
1347    if test -s confdefs.h; then
1348      cat <<\_ASBOX
1349## ----------- ##
1350## confdefs.h. ##
1351## ----------- ##
1352_ASBOX
1353      echo
1354      sed "/^$/d" confdefs.h | sort
1355      echo
1356    fi
1357    test "$ac_signal" != 0 &&
1358      echo "$as_me: caught signal $ac_signal"
1359    echo "$as_me: exit $exit_status"
1360  } >&5
1361  rm -f core *.core &&
1362  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363    exit $exit_status
1364     ' 0
1365for ac_signal in 1 2 13 15; do
1366  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367done
1368ac_signal=0
1369
1370# confdefs.h avoids OS command line length limits that DEFS can exceed.
1371rm -rf conftest* confdefs.h
1372# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373echo >confdefs.h
1374
1375# Predefined preprocessor variables.
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_NAME "$PACKAGE_NAME"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_VERSION "$PACKAGE_VERSION"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_STRING "$PACKAGE_STRING"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399_ACEOF
1400
1401
1402# Let the site file select an alternate cache file if it wants to.
1403# Prefer explicitly selected file to automatically selected ones.
1404if test -z "$CONFIG_SITE"; then
1405  if test "x$prefix" != xNONE; then
1406    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1407  else
1408    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409  fi
1410fi
1411for ac_site_file in $CONFIG_SITE; do
1412  if test -r "$ac_site_file"; then
1413    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1414echo "$as_me: loading site script $ac_site_file" >&6;}
1415    sed 's/^/| /' "$ac_site_file" >&5
1416    . "$ac_site_file"
1417  fi
1418done
1419
1420if test -r "$cache_file"; then
1421  # Some versions of bash will fail to source /dev/null (special
1422  # files actually), so we avoid doing that.
1423  if test -f "$cache_file"; then
1424    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1425echo "$as_me: loading cache $cache_file" >&6;}
1426    case $cache_file in
1427      [\\/]* | ?:[\\/]* ) . $cache_file;;
1428      *)                      . ./$cache_file;;
1429    esac
1430  fi
1431else
1432  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1433echo "$as_me: creating cache $cache_file" >&6;}
1434  >$cache_file
1435fi
1436
1437# Check that the precious variables saved in the cache have kept the same
1438# value.
1439ac_cache_corrupted=false
1440for ac_var in `(set) 2>&1 |
1441	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1442  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1443  eval ac_new_set=\$ac_env_${ac_var}_set
1444  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1445  eval ac_new_val="\$ac_env_${ac_var}_value"
1446  case $ac_old_set,$ac_new_set in
1447    set,)
1448      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1450      ac_cache_corrupted=: ;;
1451    ,set)
1452      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1453echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1454      ac_cache_corrupted=: ;;
1455    ,);;
1456    *)
1457      if test "x$ac_old_val" != "x$ac_new_val"; then
1458	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1459echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1460	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1461echo "$as_me:   former value:  $ac_old_val" >&2;}
1462	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1463echo "$as_me:   current value: $ac_new_val" >&2;}
1464	ac_cache_corrupted=:
1465      fi;;
1466  esac
1467  # Pass precious variables to config.status.
1468  if test "$ac_new_set" = set; then
1469    case $ac_new_val in
1470    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1471      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1472    *) ac_arg=$ac_var=$ac_new_val ;;
1473    esac
1474    case " $ac_configure_args " in
1475      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1476      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477    esac
1478  fi
1479done
1480if $ac_cache_corrupted; then
1481  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1482echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1483  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1484echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1485   { (exit 1); exit 1; }; }
1486fi
1487
1488ac_ext=c
1489ac_cpp='$CPP $CPPFLAGS'
1490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1492ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520am__api_version="1.9"
1521ac_aux_dir=
1522for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1523  if test -f $ac_dir/install-sh; then
1524    ac_aux_dir=$ac_dir
1525    ac_install_sh="$ac_aux_dir/install-sh -c"
1526    break
1527  elif test -f $ac_dir/install.sh; then
1528    ac_aux_dir=$ac_dir
1529    ac_install_sh="$ac_aux_dir/install.sh -c"
1530    break
1531  elif test -f $ac_dir/shtool; then
1532    ac_aux_dir=$ac_dir
1533    ac_install_sh="$ac_aux_dir/shtool install -c"
1534    break
1535  fi
1536done
1537if test -z "$ac_aux_dir"; then
1538  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1539echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1540   { (exit 1); exit 1; }; }
1541fi
1542ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1543ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1544ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545
1546# Find a good install program.  We prefer a C program (faster),
1547# so one script is as good as another.  But avoid the broken or
1548# incompatible versions:
1549# SysV /etc/install, /usr/sbin/install
1550# SunOS /usr/etc/install
1551# IRIX /sbin/install
1552# AIX /bin/install
1553# AmigaOS /C/install, which installs bootblocks on floppy discs
1554# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1555# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1556# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1557# OS/2's system install, which has a completely different semantic
1558# ./install, which can be erroneously created by make from ./install.sh.
1559echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1560echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1561if test -z "$INSTALL"; then
1562if test "${ac_cv_path_install+set}" = set; then
1563  echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566for as_dir in $PATH
1567do
1568  IFS=$as_save_IFS
1569  test -z "$as_dir" && as_dir=.
1570  # Account for people who put trailing slashes in PATH elements.
1571case $as_dir/ in
1572  ./ | .// | /cC/* | \
1573  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1574  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1575  /usr/ucb/* ) ;;
1576  *)
1577    # OSF1 and SCO ODT 3.0 have their own names for install.
1578    # Don't use installbsd from OSF since it installs stuff as root
1579    # by default.
1580    for ac_prog in ginstall scoinst install; do
1581      for ac_exec_ext in '' $ac_executable_extensions; do
1582	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1583	  if test $ac_prog = install &&
1584	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585	    # AIX install.  It has an incompatible calling convention.
1586	    :
1587	  elif test $ac_prog = install &&
1588	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1589	    # program-specific install script used by HP pwplus--don't use.
1590	    :
1591	  else
1592	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1593	    break 3
1594	  fi
1595	fi
1596      done
1597    done
1598    ;;
1599esac
1600done
1601
1602
1603fi
1604  if test "${ac_cv_path_install+set}" = set; then
1605    INSTALL=$ac_cv_path_install
1606  else
1607    # As a last resort, use the slow shell script.  We don't cache a
1608    # path for INSTALL within a source directory, because that will
1609    # break other packages using the cache if that directory is
1610    # removed, or if the path is relative.
1611    INSTALL=$ac_install_sh
1612  fi
1613fi
1614echo "$as_me:$LINENO: result: $INSTALL" >&5
1615echo "${ECHO_T}$INSTALL" >&6
1616
1617# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1618# It thinks the first close brace ends the variable substitution.
1619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620
1621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622
1623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624
1625echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1626echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627# Just in case
1628sleep 1
1629echo timestamp > conftest.file
1630# Do `set' in a subshell so we don't clobber the current shell's
1631# arguments.  Must try -L first in case configure is actually a
1632# symlink; some systems play weird games with the mod time of symlinks
1633# (eg FreeBSD returns the mod time of the symlink's containing
1634# directory).
1635if (
1636   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1637   if test "$*" = "X"; then
1638      # -L didn't work.
1639      set X `ls -t $srcdir/configure conftest.file`
1640   fi
1641   rm -f conftest.file
1642   if test "$*" != "X $srcdir/configure conftest.file" \
1643      && test "$*" != "X conftest.file $srcdir/configure"; then
1644
1645      # If neither matched, then we have a broken ls.  This can happen
1646      # if, for instance, CONFIG_SHELL is bash and it inherits a
1647      # broken ls alias from the environment.  This has actually
1648      # happened.  Such a system could not be considered "sane".
1649      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1650alias in your environment" >&5
1651echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1652alias in your environment" >&2;}
1653   { (exit 1); exit 1; }; }
1654   fi
1655
1656   test "$2" = conftest.file
1657   )
1658then
1659   # Ok.
1660   :
1661else
1662   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1663Check your system clock" >&5
1664echo "$as_me: error: newly created file is older than distributed files!
1665Check your system clock" >&2;}
1666   { (exit 1); exit 1; }; }
1667fi
1668echo "$as_me:$LINENO: result: yes" >&5
1669echo "${ECHO_T}yes" >&6
1670test "$program_prefix" != NONE &&
1671  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1672# Use a double $ so make ignores it.
1673test "$program_suffix" != NONE &&
1674  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1675# Double any \ or $.  echo might interpret backslashes.
1676# By default was `s,x,x', remove it if useless.
1677cat <<\_ACEOF >conftest.sed
1678s/[\\$]/&&/g;s/;s,x,x,$//
1679_ACEOF
1680program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681rm conftest.sed
1682
1683# expand $ac_aux_dir to an absolute path
1684am_aux_dir=`cd $ac_aux_dir && pwd`
1685
1686test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1687# Use eval to expand $SHELL
1688if eval "$MISSING --run true"; then
1689  am_missing_run="$MISSING --run "
1690else
1691  am_missing_run=
1692  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1693echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694fi
1695
1696if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1697  # We used to keeping the `.' as first argument, in order to
1698  # allow $(mkdir_p) to be used without argument.  As in
1699  #   $(mkdir_p) $(somedir)
1700  # where $(somedir) is conditionally defined.  However this is wrong
1701  # for two reasons:
1702  #  1. if the package is installed by a user who cannot write `.'
1703  #     make install will fail,
1704  #  2. the above comment should most certainly read
1705  #     $(mkdir_p) $(DESTDIR)$(somedir)
1706  #     so it does not work when $(somedir) is undefined and
1707  #     $(DESTDIR) is not.
1708  #  To support the latter case, we have to write
1709  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1710  #  so the `.' trick is pointless.
1711  mkdir_p='mkdir -p --'
1712else
1713  # On NextStep and OpenStep, the `mkdir' command does not
1714  # recognize any option.  It will interpret all options as
1715  # directories to create, and then abort because `.' already
1716  # exists.
1717  for d in ./-p ./--version;
1718  do
1719    test -d $d && rmdir $d
1720  done
1721  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1722  if test -f "$ac_aux_dir/mkinstalldirs"; then
1723    mkdir_p='$(mkinstalldirs)'
1724  else
1725    mkdir_p='$(install_sh) -d'
1726  fi
1727fi
1728
1729for ac_prog in gawk mawk nawk awk
1730do
1731  # Extract the first word of "$ac_prog", so it can be a program name with args.
1732set dummy $ac_prog; ac_word=$2
1733echo "$as_me:$LINENO: checking for $ac_word" >&5
1734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735if test "${ac_cv_prog_AWK+set}" = set; then
1736  echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738  if test -n "$AWK"; then
1739  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1740else
1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742for as_dir in $PATH
1743do
1744  IFS=$as_save_IFS
1745  test -z "$as_dir" && as_dir=.
1746  for ac_exec_ext in '' $ac_executable_extensions; do
1747  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748    ac_cv_prog_AWK="$ac_prog"
1749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750    break 2
1751  fi
1752done
1753done
1754
1755fi
1756fi
1757AWK=$ac_cv_prog_AWK
1758if test -n "$AWK"; then
1759  echo "$as_me:$LINENO: result: $AWK" >&5
1760echo "${ECHO_T}$AWK" >&6
1761else
1762  echo "$as_me:$LINENO: result: no" >&5
1763echo "${ECHO_T}no" >&6
1764fi
1765
1766  test -n "$AWK" && break
1767done
1768
1769echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1770echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1771set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1772if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  cat >conftest.make <<\_ACEOF
1776all:
1777	@echo 'ac_maketemp="$(MAKE)"'
1778_ACEOF
1779# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1780eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1781if test -n "$ac_maketemp"; then
1782  eval ac_cv_prog_make_${ac_make}_set=yes
1783else
1784  eval ac_cv_prog_make_${ac_make}_set=no
1785fi
1786rm -f conftest.make
1787fi
1788if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1789  echo "$as_me:$LINENO: result: yes" >&5
1790echo "${ECHO_T}yes" >&6
1791  SET_MAKE=
1792else
1793  echo "$as_me:$LINENO: result: no" >&5
1794echo "${ECHO_T}no" >&6
1795  SET_MAKE="MAKE=${MAKE-make}"
1796fi
1797
1798rm -rf .tst 2>/dev/null
1799mkdir .tst 2>/dev/null
1800if test -d .tst; then
1801  am__leading_dot=.
1802else
1803  am__leading_dot=_
1804fi
1805rmdir .tst 2>/dev/null
1806
1807# test to see if srcdir already configured
1808if test "`cd $srcdir && pwd`" != "`pwd`" &&
1809   test -f $srcdir/config.status; then
1810  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1811echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1812   { (exit 1); exit 1; }; }
1813fi
1814
1815# test whether we have cygpath
1816if test -z "$CYGPATH_W"; then
1817  if (cygpath --version) >/dev/null 2>/dev/null; then
1818    CYGPATH_W='cygpath -w'
1819  else
1820    CYGPATH_W=echo
1821  fi
1822fi
1823
1824
1825# Define the identity of the package.
1826 PACKAGE='libpng'
1827 VERSION='1.2.12'
1828
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE "$PACKAGE"
1832_ACEOF
1833
1834
1835cat >>confdefs.h <<_ACEOF
1836#define VERSION "$VERSION"
1837_ACEOF
1838
1839# Some tools Automake needs.
1840
1841ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842
1843
1844AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845
1846
1847AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848
1849
1850AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851
1852
1853MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1854
1855install_sh=${install_sh-"$am_aux_dir/install-sh"}
1856
1857# Installed binaries are usually stripped using `strip' when the user
1858# run `make install-strip'.  However `strip' might not be the right
1859# tool to use in cross-compilation environments, therefore Automake
1860# will honor the `STRIP' environment variable to overrule this program.
1861if test "$cross_compiling" != no; then
1862  if test -n "$ac_tool_prefix"; then
1863  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1864set dummy ${ac_tool_prefix}strip; ac_word=$2
1865echo "$as_me:$LINENO: checking for $ac_word" >&5
1866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867if test "${ac_cv_prog_STRIP+set}" = set; then
1868  echo $ECHO_N "(cached) $ECHO_C" >&6
1869else
1870  if test -n "$STRIP"; then
1871  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1872else
1873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874for as_dir in $PATH
1875do
1876  IFS=$as_save_IFS
1877  test -z "$as_dir" && as_dir=.
1878  for ac_exec_ext in '' $ac_executable_extensions; do
1879  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882    break 2
1883  fi
1884done
1885done
1886
1887fi
1888fi
1889STRIP=$ac_cv_prog_STRIP
1890if test -n "$STRIP"; then
1891  echo "$as_me:$LINENO: result: $STRIP" >&5
1892echo "${ECHO_T}$STRIP" >&6
1893else
1894  echo "$as_me:$LINENO: result: no" >&5
1895echo "${ECHO_T}no" >&6
1896fi
1897
1898fi
1899if test -z "$ac_cv_prog_STRIP"; then
1900  ac_ct_STRIP=$STRIP
1901  # Extract the first word of "strip", so it can be a program name with args.
1902set dummy strip; ac_word=$2
1903echo "$as_me:$LINENO: checking for $ac_word" >&5
1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1906  echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908  if test -n "$ac_ct_STRIP"; then
1909  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1910else
1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912for as_dir in $PATH
1913do
1914  IFS=$as_save_IFS
1915  test -z "$as_dir" && as_dir=.
1916  for ac_exec_ext in '' $ac_executable_extensions; do
1917  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918    ac_cv_prog_ac_ct_STRIP="strip"
1919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920    break 2
1921  fi
1922done
1923done
1924
1925  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1926fi
1927fi
1928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1929if test -n "$ac_ct_STRIP"; then
1930  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1931echo "${ECHO_T}$ac_ct_STRIP" >&6
1932else
1933  echo "$as_me:$LINENO: result: no" >&5
1934echo "${ECHO_T}no" >&6
1935fi
1936
1937  STRIP=$ac_ct_STRIP
1938else
1939  STRIP="$ac_cv_prog_STRIP"
1940fi
1941
1942fi
1943INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1944
1945# We need awk for the "check" target.  The system "awk" is bad on
1946# some platforms.
1947# Always define AMTAR for backward compatibility.
1948
1949AMTAR=${AMTAR-"${am_missing_run}tar"}
1950
1951am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1952
1953
1954
1955
1956
1957echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1958echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1959    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1960if test "${enable_maintainer_mode+set}" = set; then
1961  enableval="$enable_maintainer_mode"
1962  USE_MAINTAINER_MODE=$enableval
1963else
1964  USE_MAINTAINER_MODE=no
1965fi;
1966  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1967echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1968
1969
1970if test $USE_MAINTAINER_MODE = yes; then
1971  MAINTAINER_MODE_TRUE=
1972  MAINTAINER_MODE_FALSE='#'
1973else
1974  MAINTAINER_MODE_TRUE='#'
1975  MAINTAINER_MODE_FALSE=
1976fi
1977
1978  MAINT=$MAINTAINER_MODE_TRUE
1979
1980
1981
1982PNGLIB_VERSION=1.2.12
1983PNGLIB_MAJOR=12
1984PNGLIB_MINOR=12
1985
1986
1987
1988          ac_config_headers="$ac_config_headers config.h"
1989
1990
1991# Checks for programs.
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997if test -n "$ac_tool_prefix"; then
1998  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1999set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002if test "${ac_cv_prog_CC+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005  if test -n "$CC"; then
2006  ac_cv_prog_CC="$CC" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011  IFS=$as_save_IFS
2012  test -z "$as_dir" && as_dir=.
2013  for ac_exec_ext in '' $ac_executable_extensions; do
2014  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017    break 2
2018  fi
2019done
2020done
2021
2022fi
2023fi
2024CC=$ac_cv_prog_CC
2025if test -n "$CC"; then
2026  echo "$as_me:$LINENO: result: $CC" >&5
2027echo "${ECHO_T}$CC" >&6
2028else
2029  echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6
2031fi
2032
2033fi
2034if test -z "$ac_cv_prog_CC"; then
2035  ac_ct_CC=$CC
2036  # Extract the first word of "gcc", so it can be a program name with args.
2037set dummy gcc; ac_word=$2
2038echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041  echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043  if test -n "$ac_ct_CC"; then
2044  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045else
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049  IFS=$as_save_IFS
2050  test -z "$as_dir" && as_dir=.
2051  for ac_exec_ext in '' $ac_executable_extensions; do
2052  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053    ac_cv_prog_ac_ct_CC="gcc"
2054    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055    break 2
2056  fi
2057done
2058done
2059
2060fi
2061fi
2062ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063if test -n "$ac_ct_CC"; then
2064  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065echo "${ECHO_T}$ac_ct_CC" >&6
2066else
2067  echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6
2069fi
2070
2071  CC=$ac_ct_CC
2072else
2073  CC="$ac_cv_prog_CC"
2074fi
2075
2076if test -z "$CC"; then
2077  if test -n "$ac_tool_prefix"; then
2078  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2079set dummy ${ac_tool_prefix}cc; ac_word=$2
2080echo "$as_me:$LINENO: checking for $ac_word" >&5
2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082if test "${ac_cv_prog_CC+set}" = set; then
2083  echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085  if test -n "$CC"; then
2086  ac_cv_prog_CC="$CC" # Let the user override the test.
2087else
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091  IFS=$as_save_IFS
2092  test -z "$as_dir" && as_dir=.
2093  for ac_exec_ext in '' $ac_executable_extensions; do
2094  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095    ac_cv_prog_CC="${ac_tool_prefix}cc"
2096    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097    break 2
2098  fi
2099done
2100done
2101
2102fi
2103fi
2104CC=$ac_cv_prog_CC
2105if test -n "$CC"; then
2106  echo "$as_me:$LINENO: result: $CC" >&5
2107echo "${ECHO_T}$CC" >&6
2108else
2109  echo "$as_me:$LINENO: result: no" >&5
2110echo "${ECHO_T}no" >&6
2111fi
2112
2113fi
2114if test -z "$ac_cv_prog_CC"; then
2115  ac_ct_CC=$CC
2116  # Extract the first word of "cc", so it can be a program name with args.
2117set dummy cc; ac_word=$2
2118echo "$as_me:$LINENO: checking for $ac_word" >&5
2119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121  echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123  if test -n "$ac_ct_CC"; then
2124  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125else
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129  IFS=$as_save_IFS
2130  test -z "$as_dir" && as_dir=.
2131  for ac_exec_ext in '' $ac_executable_extensions; do
2132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133    ac_cv_prog_ac_ct_CC="cc"
2134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135    break 2
2136  fi
2137done
2138done
2139
2140fi
2141fi
2142ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143if test -n "$ac_ct_CC"; then
2144  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145echo "${ECHO_T}$ac_ct_CC" >&6
2146else
2147  echo "$as_me:$LINENO: result: no" >&5
2148echo "${ECHO_T}no" >&6
2149fi
2150
2151  CC=$ac_ct_CC
2152else
2153  CC="$ac_cv_prog_CC"
2154fi
2155
2156fi
2157if test -z "$CC"; then
2158  # Extract the first word of "cc", so it can be a program name with args.
2159set dummy cc; ac_word=$2
2160echo "$as_me:$LINENO: checking for $ac_word" >&5
2161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162if test "${ac_cv_prog_CC+set}" = set; then
2163  echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165  if test -n "$CC"; then
2166  ac_cv_prog_CC="$CC" # Let the user override the test.
2167else
2168  ac_prog_rejected=no
2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170for as_dir in $PATH
2171do
2172  IFS=$as_save_IFS
2173  test -z "$as_dir" && as_dir=.
2174  for ac_exec_ext in '' $ac_executable_extensions; do
2175  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2177       ac_prog_rejected=yes
2178       continue
2179     fi
2180    ac_cv_prog_CC="cc"
2181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182    break 2
2183  fi
2184done
2185done
2186
2187if test $ac_prog_rejected = yes; then
2188  # We found a bogon in the path, so make sure we never use it.
2189  set dummy $ac_cv_prog_CC
2190  shift
2191  if test $# != 0; then
2192    # We chose a different compiler from the bogus one.
2193    # However, it has the same basename, so the bogon will be chosen
2194    # first if we set CC to just the basename; use the full file name.
2195    shift
2196    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2197  fi
2198fi
2199fi
2200fi
2201CC=$ac_cv_prog_CC
2202if test -n "$CC"; then
2203  echo "$as_me:$LINENO: result: $CC" >&5
2204echo "${ECHO_T}$CC" >&6
2205else
2206  echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6
2208fi
2209
2210fi
2211if test -z "$CC"; then
2212  if test -n "$ac_tool_prefix"; then
2213  for ac_prog in cl
2214  do
2215    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2217echo "$as_me:$LINENO: checking for $ac_word" >&5
2218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219if test "${ac_cv_prog_CC+set}" = set; then
2220  echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222  if test -n "$CC"; then
2223  ac_cv_prog_CC="$CC" # Let the user override the test.
2224else
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228  IFS=$as_save_IFS
2229  test -z "$as_dir" && as_dir=.
2230  for ac_exec_ext in '' $ac_executable_extensions; do
2231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234    break 2
2235  fi
2236done
2237done
2238
2239fi
2240fi
2241CC=$ac_cv_prog_CC
2242if test -n "$CC"; then
2243  echo "$as_me:$LINENO: result: $CC" >&5
2244echo "${ECHO_T}$CC" >&6
2245else
2246  echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6
2248fi
2249
2250    test -n "$CC" && break
2251  done
2252fi
2253if test -z "$CC"; then
2254  ac_ct_CC=$CC
2255  for ac_prog in cl
2256do
2257  # Extract the first word of "$ac_prog", so it can be a program name with args.
2258set dummy $ac_prog; ac_word=$2
2259echo "$as_me:$LINENO: checking for $ac_word" >&5
2260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262  echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
2264  if test -n "$ac_ct_CC"; then
2265  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266else
2267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268for as_dir in $PATH
2269do
2270  IFS=$as_save_IFS
2271  test -z "$as_dir" && as_dir=.
2272  for ac_exec_ext in '' $ac_executable_extensions; do
2273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274    ac_cv_prog_ac_ct_CC="$ac_prog"
2275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276    break 2
2277  fi
2278done
2279done
2280
2281fi
2282fi
2283ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284if test -n "$ac_ct_CC"; then
2285  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2286echo "${ECHO_T}$ac_ct_CC" >&6
2287else
2288  echo "$as_me:$LINENO: result: no" >&5
2289echo "${ECHO_T}no" >&6
2290fi
2291
2292  test -n "$ac_ct_CC" && break
2293done
2294
2295  CC=$ac_ct_CC
2296fi
2297
2298fi
2299
2300
2301test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2302See \`config.log' for more details." >&5
2303echo "$as_me: error: no acceptable C compiler found in \$PATH
2304See \`config.log' for more details." >&2;}
2305   { (exit 1); exit 1; }; }
2306
2307# Provide some information about the compiler.
2308echo "$as_me:$LINENO:" \
2309     "checking for C compiler version" >&5
2310ac_compiler=`set X $ac_compile; echo $2`
2311{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2312  (eval $ac_compiler --version </dev/null >&5) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }
2316{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2317  (eval $ac_compiler -v </dev/null >&5) 2>&5
2318  ac_status=$?
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); }
2321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2322  (eval $ac_compiler -V </dev/null >&5) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }
2326
2327cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h.  */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h.  */
2333
2334int
2335main ()
2336{
2337
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342ac_clean_files_save=$ac_clean_files
2343ac_clean_files="$ac_clean_files a.out a.exe b.out"
2344# Try to create an executable without -o first, disregard a.out.
2345# It will help us diagnose broken compilers, and finding out an intuition
2346# of exeext.
2347echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2348echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2349ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2350if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2351  (eval $ac_link_default) 2>&5
2352  ac_status=$?
2353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354  (exit $ac_status); }; then
2355  # Find the output, starting from the most likely.  This scheme is
2356# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2357# resort.
2358
2359# Be careful to initialize this variable, since it used to be cached.
2360# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2361ac_cv_exeext=
2362# b.out is created by i960 compilers.
2363for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2364do
2365  test -f "$ac_file" || continue
2366  case $ac_file in
2367    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2368	;;
2369    conftest.$ac_ext )
2370	# This is the source file.
2371	;;
2372    [ab].out )
2373	# We found the default executable, but exeext='' is most
2374	# certainly right.
2375	break;;
2376    *.* )
2377	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378	# FIXME: I believe we export ac_cv_exeext for Libtool,
2379	# but it would be cool to find out if it's true.  Does anybody
2380	# maintain Libtool? --akim.
2381	export ac_cv_exeext
2382	break;;
2383    * )
2384	break;;
2385  esac
2386done
2387else
2388  echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2392See \`config.log' for more details." >&5
2393echo "$as_me: error: C compiler cannot create executables
2394See \`config.log' for more details." >&2;}
2395   { (exit 77); exit 77; }; }
2396fi
2397
2398ac_exeext=$ac_cv_exeext
2399echo "$as_me:$LINENO: result: $ac_file" >&5
2400echo "${ECHO_T}$ac_file" >&6
2401
2402# Check the compiler produces executables we can run.  If not, either
2403# the compiler is broken, or we cross compile.
2404echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2405echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2406# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2407# If not cross compiling, check that we can run a simple program.
2408if test "$cross_compiling" != yes; then
2409  if { ac_try='./$ac_file'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; }; then
2415    cross_compiling=no
2416  else
2417    if test "$cross_compiling" = maybe; then
2418	cross_compiling=yes
2419    else
2420	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421If you meant to cross compile, use \`--host'.
2422See \`config.log' for more details." >&5
2423echo "$as_me: error: cannot run C compiled programs.
2424If you meant to cross compile, use \`--host'.
2425See \`config.log' for more details." >&2;}
2426   { (exit 1); exit 1; }; }
2427    fi
2428  fi
2429fi
2430echo "$as_me:$LINENO: result: yes" >&5
2431echo "${ECHO_T}yes" >&6
2432
2433rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434ac_clean_files=$ac_clean_files_save
2435# Check the compiler produces executables we can run.  If not, either
2436# the compiler is broken, or we cross compile.
2437echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2439echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440echo "${ECHO_T}$cross_compiling" >&6
2441
2442echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445  (eval $ac_link) 2>&5
2446  ac_status=$?
2447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448  (exit $ac_status); }; then
2449  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2450# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2451# work properly (i.e., refer to `conftest.exe'), while it won't with
2452# `rm'.
2453for ac_file in conftest.exe conftest conftest.*; do
2454  test -f "$ac_file" || continue
2455  case $ac_file in
2456    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2457    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2458	  export ac_cv_exeext
2459	  break;;
2460    * ) break;;
2461  esac
2462done
2463else
2464  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2465See \`config.log' for more details." >&5
2466echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2467See \`config.log' for more details." >&2;}
2468   { (exit 1); exit 1; }; }
2469fi
2470
2471rm -f conftest$ac_cv_exeext
2472echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2473echo "${ECHO_T}$ac_cv_exeext" >&6
2474
2475rm -f conftest.$ac_ext
2476EXEEXT=$ac_cv_exeext
2477ac_exeext=$EXEEXT
2478echo "$as_me:$LINENO: checking for suffix of object files" >&5
2479echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2480if test "${ac_cv_objext+set}" = set; then
2481  echo $ECHO_N "(cached) $ECHO_C" >&6
2482else
2483  cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h.  */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h.  */
2489
2490int
2491main ()
2492{
2493
2494  ;
2495  return 0;
2496}
2497_ACEOF
2498rm -f conftest.o conftest.obj
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500  (eval $ac_compile) 2>&5
2501  ac_status=$?
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); }; then
2504  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2505  case $ac_file in
2506    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2507    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2508       break;;
2509  esac
2510done
2511else
2512  echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2516See \`config.log' for more details." >&5
2517echo "$as_me: error: cannot compute suffix of object files: cannot compile
2518See \`config.log' for more details." >&2;}
2519   { (exit 1); exit 1; }; }
2520fi
2521
2522rm -f conftest.$ac_cv_objext conftest.$ac_ext
2523fi
2524echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2525echo "${ECHO_T}$ac_cv_objext" >&6
2526OBJEXT=$ac_cv_objext
2527ac_objext=$OBJEXT
2528echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2529echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2530if test "${ac_cv_c_compiler_gnu+set}" = set; then
2531  echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533  cat >conftest.$ac_ext <<_ACEOF
2534/* confdefs.h.  */
2535_ACEOF
2536cat confdefs.h >>conftest.$ac_ext
2537cat >>conftest.$ac_ext <<_ACEOF
2538/* end confdefs.h.  */
2539
2540int
2541main ()
2542{
2543#ifndef __GNUC__
2544       choke me
2545#endif
2546
2547  ;
2548  return 0;
2549}
2550_ACEOF
2551rm -f conftest.$ac_objext
2552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553  (eval $ac_compile) 2>conftest.er1
2554  ac_status=$?
2555  grep -v '^ *+' conftest.er1 >conftest.err
2556  rm -f conftest.er1
2557  cat conftest.err >&5
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); } &&
2560	 { ac_try='test -z "$ac_c_werror_flag"
2561			 || test ! -s conftest.err'
2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563  (eval $ac_try) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; } &&
2567	 { ac_try='test -s conftest.$ac_objext'
2568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569  (eval $ac_try) 2>&5
2570  ac_status=$?
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); }; }; then
2573  ac_compiler_gnu=yes
2574else
2575  echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578ac_compiler_gnu=no
2579fi
2580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2581ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582
2583fi
2584echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2586GCC=`test $ac_compiler_gnu = yes && echo yes`
2587ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS
2589CFLAGS="-g"
2590echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2592if test "${ac_cv_prog_cc_g+set}" = set; then
2593  echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595  cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h.  */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h.  */
2601
2602int
2603main ()
2604{
2605
2606  ;
2607  return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612  (eval $ac_compile) 2>conftest.er1
2613  ac_status=$?
2614  grep -v '^ *+' conftest.er1 >conftest.err
2615  rm -f conftest.er1
2616  cat conftest.err >&5
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); } &&
2619	 { ac_try='test -z "$ac_c_werror_flag"
2620			 || test ! -s conftest.err'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; } &&
2626	 { ac_try='test -s conftest.$ac_objext'
2627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628  (eval $ac_try) 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); }; }; then
2632  ac_cv_prog_cc_g=yes
2633else
2634  echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637ac_cv_prog_cc_g=no
2638fi
2639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2640fi
2641echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2642echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2643if test "$ac_test_CFLAGS" = set; then
2644  CFLAGS=$ac_save_CFLAGS
2645elif test $ac_cv_prog_cc_g = yes; then
2646  if test "$GCC" = yes; then
2647    CFLAGS="-g -O2"
2648  else
2649    CFLAGS="-g"
2650  fi
2651else
2652  if test "$GCC" = yes; then
2653    CFLAGS="-O2"
2654  else
2655    CFLAGS=
2656  fi
2657fi
2658echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2659echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2660if test "${ac_cv_prog_cc_stdc+set}" = set; then
2661  echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
2663  ac_cv_prog_cc_stdc=no
2664ac_save_CC=$CC
2665cat >conftest.$ac_ext <<_ACEOF
2666/* confdefs.h.  */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h.  */
2671#include <stdarg.h>
2672#include <stdio.h>
2673#include <sys/types.h>
2674#include <sys/stat.h>
2675/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2676struct buf { int x; };
2677FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678static char *e (p, i)
2679     char **p;
2680     int i;
2681{
2682  return p[i];
2683}
2684static char *f (char * (*g) (char **, int), char **p, ...)
2685{
2686  char *s;
2687  va_list v;
2688  va_start (v,p);
2689  s = g (p, va_arg (v,int));
2690  va_end (v);
2691  return s;
2692}
2693
2694/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2695   function prototypes and stuff, but not '\xHH' hex character constants.
2696   These don't provoke an error unfortunately, instead are silently treated
2697   as 'x'.  The following induces an error, until -std1 is added to get
2698   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2699   array size at least.  It's necessary to write '\x00'==0 to get something
2700   that's true only with -std1.  */
2701int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2702
2703int test (int i, double x);
2704struct s1 {int (*f) (int a);};
2705struct s2 {int (*f) (double a);};
2706int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2707int argc;
2708char **argv;
2709int
2710main ()
2711{
2712return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2713  ;
2714  return 0;
2715}
2716_ACEOF
2717# Don't try gcc -ansi; that turns off useful extensions and
2718# breaks some systems' header files.
2719# AIX			-qlanglvl=ansi
2720# Ultrix and OSF/1	-std1
2721# HP-UX 10.20 and later	-Ae
2722# HP-UX older versions	-Aa -D_HPUX_SOURCE
2723# SVR4			-Xc -D__EXTENSIONS__
2724for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725do
2726  CC="$ac_save_CC $ac_arg"
2727  rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729  (eval $ac_compile) 2>conftest.er1
2730  ac_status=$?
2731  grep -v '^ *+' conftest.er1 >conftest.err
2732  rm -f conftest.er1
2733  cat conftest.err >&5
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); } &&
2736	 { ac_try='test -z "$ac_c_werror_flag"
2737			 || test ! -s conftest.err'
2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739  (eval $ac_try) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); }; } &&
2743	 { ac_try='test -s conftest.$ac_objext'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; }; then
2749  ac_cv_prog_cc_stdc=$ac_arg
2750break
2751else
2752  echo "$as_me: failed program was:" >&5
2753sed 's/^/| /' conftest.$ac_ext >&5
2754
2755fi
2756rm -f conftest.err conftest.$ac_objext
2757done
2758rm -f conftest.$ac_ext conftest.$ac_objext
2759CC=$ac_save_CC
2760
2761fi
2762
2763case "x$ac_cv_prog_cc_stdc" in
2764  x|xno)
2765    echo "$as_me:$LINENO: result: none needed" >&5
2766echo "${ECHO_T}none needed" >&6 ;;
2767  *)
2768    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2769echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2770    CC="$CC $ac_cv_prog_cc_stdc" ;;
2771esac
2772
2773# Some people use a C++ compiler to compile C.  Since we use `exit',
2774# in C++ we need to declare it.  In case someone uses the same compiler
2775# for both compiling C and C++ we need to have the C++ compiler decide
2776# the declaration of exit, since it's the most demanding environment.
2777cat >conftest.$ac_ext <<_ACEOF
2778#ifndef __cplusplus
2779  choke me
2780#endif
2781_ACEOF
2782rm -f conftest.$ac_objext
2783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784  (eval $ac_compile) 2>conftest.er1
2785  ac_status=$?
2786  grep -v '^ *+' conftest.er1 >conftest.err
2787  rm -f conftest.er1
2788  cat conftest.err >&5
2789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790  (exit $ac_status); } &&
2791	 { ac_try='test -z "$ac_c_werror_flag"
2792			 || test ! -s conftest.err'
2793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794  (eval $ac_try) 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); }; } &&
2798	 { ac_try='test -s conftest.$ac_objext'
2799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800  (eval $ac_try) 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; }; then
2804  for ac_declaration in \
2805   '' \
2806   'extern "C" void std::exit (int) throw (); using std::exit;' \
2807   'extern "C" void std::exit (int); using std::exit;' \
2808   'extern "C" void exit (int) throw ();' \
2809   'extern "C" void exit (int);' \
2810   'void exit (int);'
2811do
2812  cat >conftest.$ac_ext <<_ACEOF
2813/* confdefs.h.  */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h.  */
2818$ac_declaration
2819#include <stdlib.h>
2820int
2821main ()
2822{
2823exit (42);
2824  ;
2825  return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext
2829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830  (eval $ac_compile) 2>conftest.er1
2831  ac_status=$?
2832  grep -v '^ *+' conftest.er1 >conftest.err
2833  rm -f conftest.er1
2834  cat conftest.err >&5
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); } &&
2837	 { ac_try='test -z "$ac_c_werror_flag"
2838			 || test ! -s conftest.err'
2839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840  (eval $ac_try) 2>&5
2841  ac_status=$?
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); }; } &&
2844	 { ac_try='test -s conftest.$ac_objext'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; }; then
2850  :
2851else
2852  echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855continue
2856fi
2857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858  cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h.  */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h.  */
2864$ac_declaration
2865int
2866main ()
2867{
2868exit (42);
2869  ;
2870  return 0;
2871}
2872_ACEOF
2873rm -f conftest.$ac_objext
2874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875  (eval $ac_compile) 2>conftest.er1
2876  ac_status=$?
2877  grep -v '^ *+' conftest.er1 >conftest.err
2878  rm -f conftest.er1
2879  cat conftest.err >&5
2880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881  (exit $ac_status); } &&
2882	 { ac_try='test -z "$ac_c_werror_flag"
2883			 || test ! -s conftest.err'
2884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885  (eval $ac_try) 2>&5
2886  ac_status=$?
2887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888  (exit $ac_status); }; } &&
2889	 { ac_try='test -s conftest.$ac_objext'
2890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891  (eval $ac_try) 2>&5
2892  ac_status=$?
2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); }; }; then
2895  break
2896else
2897  echo "$as_me: failed program was:" >&5
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
2900fi
2901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902done
2903rm -f conftest*
2904if test -n "$ac_declaration"; then
2905  echo '#ifdef __cplusplus' >>confdefs.h
2906  echo $ac_declaration      >>confdefs.h
2907  echo '#endif'             >>confdefs.h
2908fi
2909
2910else
2911  echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914fi
2915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916ac_ext=c
2917ac_cpp='$CPP $CPPFLAGS'
2918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921DEPDIR="${am__leading_dot}deps"
2922
2923          ac_config_commands="$ac_config_commands depfiles"
2924
2925
2926am_make=${MAKE-make}
2927cat > confinc << 'END'
2928am__doit:
2929	@echo done
2930.PHONY: am__doit
2931END
2932# If we don't find an include directive, just comment out the code.
2933echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2934echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2935am__include="#"
2936am__quote=
2937_am_result=none
2938# First try GNU make style include.
2939echo "include confinc" > confmf
2940# We grep out `Entering directory' and `Leaving directory'
2941# messages which can occur if `w' ends up in MAKEFLAGS.
2942# In particular we don't look at `^make:' because GNU make might
2943# be invoked under some other name (usually "gmake"), in which
2944# case it prints its new name instead of `make'.
2945if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2946   am__include=include
2947   am__quote=
2948   _am_result=GNU
2949fi
2950# Now try BSD make style include.
2951if test "$am__include" = "#"; then
2952   echo '.include "confinc"' > confmf
2953   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2954      am__include=.include
2955      am__quote="\""
2956      _am_result=BSD
2957   fi
2958fi
2959
2960
2961echo "$as_me:$LINENO: result: $_am_result" >&5
2962echo "${ECHO_T}$_am_result" >&6
2963rm -f confinc confmf
2964
2965# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2966if test "${enable_dependency_tracking+set}" = set; then
2967  enableval="$enable_dependency_tracking"
2968
2969fi;
2970if test "x$enable_dependency_tracking" != xno; then
2971  am_depcomp="$ac_aux_dir/depcomp"
2972  AMDEPBACKSLASH='\'
2973fi
2974
2975
2976if test "x$enable_dependency_tracking" != xno; then
2977  AMDEP_TRUE=
2978  AMDEP_FALSE='#'
2979else
2980  AMDEP_TRUE='#'
2981  AMDEP_FALSE=
2982fi
2983
2984
2985
2986
2987depcc="$CC"   am_compiler_list=
2988
2989echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2990echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2991if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2992  echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2995  # We make a subdir and do the tests there.  Otherwise we can end up
2996  # making bogus files that we don't know about and never remove.  For
2997  # instance it was reported that on HP-UX the gcc test will end up
2998  # making a dummy file named `D' -- because `-MD' means `put the output
2999  # in D'.
3000  mkdir conftest.dir
3001  # Copy depcomp to subdir because otherwise we won't find it if we're
3002  # using a relative directory.
3003  cp "$am_depcomp" conftest.dir
3004  cd conftest.dir
3005  # We will build objects and dependencies in a subdirectory because
3006  # it helps to detect inapplicable dependency modes.  For instance
3007  # both Tru64's cc and ICC support -MD to output dependencies as a
3008  # side effect of compilation, but ICC will put the dependencies in
3009  # the current directory while Tru64 will put them in the object
3010  # directory.
3011  mkdir sub
3012
3013  am_cv_CC_dependencies_compiler_type=none
3014  if test "$am_compiler_list" = ""; then
3015     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3016  fi
3017  for depmode in $am_compiler_list; do
3018    # Setup a source with many dependencies, because some compilers
3019    # like to wrap large dependency lists on column 80 (with \), and
3020    # we should not choose a depcomp mode which is confused by this.
3021    #
3022    # We need to recreate these files for each test, as the compiler may
3023    # overwrite some of them when testing with obscure command lines.
3024    # This happens at least with the AIX C compiler.
3025    : > sub/conftest.c
3026    for i in 1 2 3 4 5 6; do
3027      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3028      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3029      # Solaris 8's {/usr,}/bin/sh.
3030      touch sub/conftst$i.h
3031    done
3032    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3033
3034    case $depmode in
3035    nosideeffect)
3036      # after this tag, mechanisms are not by side-effect, so they'll
3037      # only be used when explicitly requested
3038      if test "x$enable_dependency_tracking" = xyes; then
3039	continue
3040      else
3041	break
3042      fi
3043      ;;
3044    none) break ;;
3045    esac
3046    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3047    # mode.  It turns out that the SunPro C++ compiler does not properly
3048    # handle `-M -o', and we need to detect this.
3049    if depmode=$depmode \
3050       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3051       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3052       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3053         >/dev/null 2>conftest.err &&
3054       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3055       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3056       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3057      # icc doesn't choke on unknown options, it will just issue warnings
3058      # or remarks (even with -Werror).  So we grep stderr for any message
3059      # that says an option was ignored or not supported.
3060      # When given -MP, icc 7.0 and 7.1 complain thusly:
3061      #   icc: Command line warning: ignoring option '-M'; no argument required
3062      # The diagnosis changed in icc 8.0:
3063      #   icc: Command line remark: option '-MP' not supported
3064      if (grep 'ignoring option' conftest.err ||
3065          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3066        am_cv_CC_dependencies_compiler_type=$depmode
3067        break
3068      fi
3069    fi
3070  done
3071
3072  cd ..
3073  rm -rf conftest.dir
3074else
3075  am_cv_CC_dependencies_compiler_type=none
3076fi
3077
3078fi
3079echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3080echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3081CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3082
3083
3084
3085if
3086  test "x$enable_dependency_tracking" != xno \
3087  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3088  am__fastdepCC_TRUE=
3089  am__fastdepCC_FALSE='#'
3090else
3091  am__fastdepCC_TRUE='#'
3092  am__fastdepCC_FALSE=
3093fi
3094
3095
3096echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3097echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3098if test "${lt_cv_path_SED+set}" = set; then
3099  echo $ECHO_N "(cached) $ECHO_C" >&6
3100else
3101  # Loop through the user's path and test for sed and gsed.
3102# Then use that list of sed's as ones to test for truncation.
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106  IFS=$as_save_IFS
3107  test -z "$as_dir" && as_dir=.
3108  for lt_ac_prog in sed gsed; do
3109    for ac_exec_ext in '' $ac_executable_extensions; do
3110      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3111        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3112      fi
3113    done
3114  done
3115done
3116lt_ac_max=0
3117lt_ac_count=0
3118# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3119# along with /bin/sed that truncates output.
3120for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3121  test ! -f $lt_ac_sed && continue
3122  cat /dev/null > conftest.in
3123  lt_ac_count=0
3124  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3125  # Check for GNU sed and select it if it is found.
3126  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3127    lt_cv_path_SED=$lt_ac_sed
3128    break
3129  fi
3130  while true; do
3131    cat conftest.in conftest.in >conftest.tmp
3132    mv conftest.tmp conftest.in
3133    cp conftest.in conftest.nl
3134    echo >>conftest.nl
3135    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3136    cmp -s conftest.out conftest.nl || break
3137    # 10000 chars as input seems more than enough
3138    test $lt_ac_count -gt 10 && break
3139    lt_ac_count=`expr $lt_ac_count + 1`
3140    if test $lt_ac_count -gt $lt_ac_max; then
3141      lt_ac_max=$lt_ac_count
3142      lt_cv_path_SED=$lt_ac_sed
3143    fi
3144  done
3145done
3146
3147fi
3148
3149SED=$lt_cv_path_SED
3150echo "$as_me:$LINENO: result: $SED" >&5
3151echo "${ECHO_T}$SED" >&6
3152
3153# Make sure we can run config.sub.
3154$ac_config_sub sun4 >/dev/null 2>&1 ||
3155  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3156echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3157   { (exit 1); exit 1; }; }
3158
3159echo "$as_me:$LINENO: checking build system type" >&5
3160echo $ECHO_N "checking build system type... $ECHO_C" >&6
3161if test "${ac_cv_build+set}" = set; then
3162  echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164  ac_cv_build_alias=$build_alias
3165test -z "$ac_cv_build_alias" &&
3166  ac_cv_build_alias=`$ac_config_guess`
3167test -z "$ac_cv_build_alias" &&
3168  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3169echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3170   { (exit 1); exit 1; }; }
3171ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3172  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3173echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3174   { (exit 1); exit 1; }; }
3175
3176fi
3177echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3178echo "${ECHO_T}$ac_cv_build" >&6
3179build=$ac_cv_build
3180build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3181build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3182build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3183
3184
3185echo "$as_me:$LINENO: checking host system type" >&5
3186echo $ECHO_N "checking host system type... $ECHO_C" >&6
3187if test "${ac_cv_host+set}" = set; then
3188  echo $ECHO_N "(cached) $ECHO_C" >&6
3189else
3190  ac_cv_host_alias=$host_alias
3191test -z "$ac_cv_host_alias" &&
3192  ac_cv_host_alias=$ac_cv_build_alias
3193ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3194  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3195echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3196   { (exit 1); exit 1; }; }
3197
3198fi
3199echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3200echo "${ECHO_T}$ac_cv_host" >&6
3201host=$ac_cv_host
3202host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3203host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3204host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3205
3206
3207echo "$as_me:$LINENO: checking for egrep" >&5
3208echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3209if test "${ac_cv_prog_egrep+set}" = set; then
3210  echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3213    then ac_cv_prog_egrep='grep -E'
3214    else ac_cv_prog_egrep='egrep'
3215    fi
3216fi
3217echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3218echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3219 EGREP=$ac_cv_prog_egrep
3220
3221
3222
3223# Check whether --with-gnu-ld or --without-gnu-ld was given.
3224if test "${with_gnu_ld+set}" = set; then
3225  withval="$with_gnu_ld"
3226  test "$withval" = no || with_gnu_ld=yes
3227else
3228  with_gnu_ld=no
3229fi;
3230ac_prog=ld
3231if test "$GCC" = yes; then
3232  # Check if gcc -print-prog-name=ld gives a path.
3233  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3234echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3235  case $host in
3236  *-*-mingw*)
3237    # gcc leaves a trailing carriage return which upsets mingw
3238    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3239  *)
3240    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3241  esac
3242  case $ac_prog in
3243    # Accept absolute paths.
3244    [\\/]* | ?:[\\/]*)
3245      re_direlt='/[^/][^/]*/\.\./'
3246      # Canonicalize the pathname of ld
3247      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3248      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3249	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3250      done
3251      test -z "$LD" && LD="$ac_prog"
3252      ;;
3253  "")
3254    # If it fails, then pretend we aren't using GCC.
3255    ac_prog=ld
3256    ;;
3257  *)
3258    # If it is relative, then search for the first ld in PATH.
3259    with_gnu_ld=unknown
3260    ;;
3261  esac
3262elif test "$with_gnu_ld" = yes; then
3263  echo "$as_me:$LINENO: checking for GNU ld" >&5
3264echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3265else
3266  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3267echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3268fi
3269if test "${lt_cv_path_LD+set}" = set; then
3270  echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272  if test -z "$LD"; then
3273  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3274  for ac_dir in $PATH; do
3275    IFS="$lt_save_ifs"
3276    test -z "$ac_dir" && ac_dir=.
3277    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3278      lt_cv_path_LD="$ac_dir/$ac_prog"
3279      # Check to see if the program is GNU ld.  I'd rather use --version,
3280      # but apparently some variants of GNU ld only accept -v.
3281      # Break only if it was the GNU/non-GNU ld that we prefer.
3282      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3283      *GNU* | *'with BFD'*)
3284	test "$with_gnu_ld" != no && break
3285	;;
3286      *)
3287	test "$with_gnu_ld" != yes && break
3288	;;
3289      esac
3290    fi
3291  done
3292  IFS="$lt_save_ifs"
3293else
3294  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3295fi
3296fi
3297
3298LD="$lt_cv_path_LD"
3299if test -n "$LD"; then
3300  echo "$as_me:$LINENO: result: $LD" >&5
3301echo "${ECHO_T}$LD" >&6
3302else
3303  echo "$as_me:$LINENO: result: no" >&5
3304echo "${ECHO_T}no" >&6
3305fi
3306test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3307echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3308   { (exit 1); exit 1; }; }
3309echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3310echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3311if test "${lt_cv_prog_gnu_ld+set}" = set; then
3312  echo $ECHO_N "(cached) $ECHO_C" >&6
3313else
3314  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3315case `$LD -v 2>&1 </dev/null` in
3316*GNU* | *'with BFD'*)
3317  lt_cv_prog_gnu_ld=yes
3318  ;;
3319*)
3320  lt_cv_prog_gnu_ld=no
3321  ;;
3322esac
3323fi
3324echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3325echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3326with_gnu_ld=$lt_cv_prog_gnu_ld
3327
3328
3329ac_ext=c
3330ac_cpp='$CPP $CPPFLAGS'
3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3335echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3336# On Suns, sometimes $CPP names a directory.
3337if test -n "$CPP" && test -d "$CPP"; then
3338  CPP=
3339fi
3340if test -z "$CPP"; then
3341  if test "${ac_cv_prog_CPP+set}" = set; then
3342  echo $ECHO_N "(cached) $ECHO_C" >&6
3343else
3344      # Double quotes because CPP needs to be expanded
3345    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3346    do
3347      ac_preproc_ok=false
3348for ac_c_preproc_warn_flag in '' yes
3349do
3350  # Use a header file that comes with gcc, so configuring glibc
3351  # with a fresh cross-compiler works.
3352  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353  # <limits.h> exists even on freestanding compilers.
3354  # On the NeXT, cc -E runs the code through the compiler's parser,
3355  # not just through cpp. "Syntax error" is here to catch this case.
3356  cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h.  */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h.  */
3362#ifdef __STDC__
3363# include <limits.h>
3364#else
3365# include <assert.h>
3366#endif
3367		     Syntax error
3368_ACEOF
3369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3370  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3371  ac_status=$?
3372  grep -v '^ *+' conftest.er1 >conftest.err
3373  rm -f conftest.er1
3374  cat conftest.err >&5
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); } >/dev/null; then
3377  if test -s conftest.err; then
3378    ac_cpp_err=$ac_c_preproc_warn_flag
3379    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380  else
3381    ac_cpp_err=
3382  fi
3383else
3384  ac_cpp_err=yes
3385fi
3386if test -z "$ac_cpp_err"; then
3387  :
3388else
3389  echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392  # Broken: fails on valid input.
3393continue
3394fi
3395rm -f conftest.err conftest.$ac_ext
3396
3397  # OK, works on sane cases.  Now check whether non-existent headers
3398  # can be detected and how.
3399  cat >conftest.$ac_ext <<_ACEOF
3400/* confdefs.h.  */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h.  */
3405#include <ac_nonexistent.h>
3406_ACEOF
3407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3409  ac_status=$?
3410  grep -v '^ *+' conftest.er1 >conftest.err
3411  rm -f conftest.er1
3412  cat conftest.err >&5
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); } >/dev/null; then
3415  if test -s conftest.err; then
3416    ac_cpp_err=$ac_c_preproc_warn_flag
3417    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418  else
3419    ac_cpp_err=
3420  fi
3421else
3422  ac_cpp_err=yes
3423fi
3424if test -z "$ac_cpp_err"; then
3425  # Broken: success on invalid input.
3426continue
3427else
3428  echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431  # Passes both tests.
3432ac_preproc_ok=:
3433break
3434fi
3435rm -f conftest.err conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then
3441  break
3442fi
3443
3444    done
3445    ac_cv_prog_CPP=$CPP
3446
3447fi
3448  CPP=$ac_cv_prog_CPP
3449else
3450  ac_cv_prog_CPP=$CPP
3451fi
3452echo "$as_me:$LINENO: result: $CPP" >&5
3453echo "${ECHO_T}$CPP" >&6
3454ac_preproc_ok=false
3455for ac_c_preproc_warn_flag in '' yes
3456do
3457  # Use a header file that comes with gcc, so configuring glibc
3458  # with a fresh cross-compiler works.
3459  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3460  # <limits.h> exists even on freestanding compilers.
3461  # On the NeXT, cc -E runs the code through the compiler's parser,
3462  # not just through cpp. "Syntax error" is here to catch this case.
3463  cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h.  */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h.  */
3469#ifdef __STDC__
3470# include <limits.h>
3471#else
3472# include <assert.h>
3473#endif
3474		     Syntax error
3475_ACEOF
3476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3477  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3478  ac_status=$?
3479  grep -v '^ *+' conftest.er1 >conftest.err
3480  rm -f conftest.er1
3481  cat conftest.err >&5
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); } >/dev/null; then
3484  if test -s conftest.err; then
3485    ac_cpp_err=$ac_c_preproc_warn_flag
3486    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487  else
3488    ac_cpp_err=
3489  fi
3490else
3491  ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
3494  :
3495else
3496  echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
3499  # Broken: fails on valid input.
3500continue
3501fi
3502rm -f conftest.err conftest.$ac_ext
3503
3504  # OK, works on sane cases.  Now check whether non-existent headers
3505  # can be detected and how.
3506  cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h.  */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h.  */
3512#include <ac_nonexistent.h>
3513_ACEOF
3514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3515  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3516  ac_status=$?
3517  grep -v '^ *+' conftest.er1 >conftest.err
3518  rm -f conftest.er1
3519  cat conftest.err >&5
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); } >/dev/null; then
3522  if test -s conftest.err; then
3523    ac_cpp_err=$ac_c_preproc_warn_flag
3524    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3525  else
3526    ac_cpp_err=
3527  fi
3528else
3529  ac_cpp_err=yes
3530fi
3531if test -z "$ac_cpp_err"; then
3532  # Broken: success on invalid input.
3533continue
3534else
3535  echo "$as_me: failed program was:" >&5
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
3538  # Passes both tests.
3539ac_preproc_ok=:
3540break
3541fi
3542rm -f conftest.err conftest.$ac_ext
3543
3544done
3545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546rm -f conftest.err conftest.$ac_ext
3547if $ac_preproc_ok; then
3548  :
3549else
3550  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3551See \`config.log' for more details." >&5
3552echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3553See \`config.log' for more details." >&2;}
3554   { (exit 1); exit 1; }; }
3555fi
3556
3557ac_ext=c
3558ac_cpp='$CPP $CPPFLAGS'
3559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562
3563if test -n "$ac_tool_prefix"; then
3564  # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
3565set dummy ${ac_tool_prefix}sed; ac_word=$2
3566echo "$as_me:$LINENO: checking for $ac_word" >&5
3567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3568if test "${ac_cv_prog_SED+set}" = set; then
3569  echo $ECHO_N "(cached) $ECHO_C" >&6
3570else
3571  if test -n "$SED"; then
3572  ac_cv_prog_SED="$SED" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577  IFS=$as_save_IFS
3578  test -z "$as_dir" && as_dir=.
3579  for ac_exec_ext in '' $ac_executable_extensions; do
3580  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581    ac_cv_prog_SED="${ac_tool_prefix}sed"
3582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583    break 2
3584  fi
3585done
3586done
3587
3588fi
3589fi
3590SED=$ac_cv_prog_SED
3591if test -n "$SED"; then
3592  echo "$as_me:$LINENO: result: $SED" >&5
3593echo "${ECHO_T}$SED" >&6
3594else
3595  echo "$as_me:$LINENO: result: no" >&5
3596echo "${ECHO_T}no" >&6
3597fi
3598
3599fi
3600if test -z "$ac_cv_prog_SED"; then
3601  ac_ct_SED=$SED
3602  # Extract the first word of "sed", so it can be a program name with args.
3603set dummy sed; ac_word=$2
3604echo "$as_me:$LINENO: checking for $ac_word" >&5
3605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606if test "${ac_cv_prog_ac_ct_SED+set}" = set; then
3607  echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609  if test -n "$ac_ct_SED"; then
3610  ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
3611else
3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615  IFS=$as_save_IFS
3616  test -z "$as_dir" && as_dir=.
3617  for ac_exec_ext in '' $ac_executable_extensions; do
3618  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619    ac_cv_prog_ac_ct_SED="sed"
3620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621    break 2
3622  fi
3623done
3624done
3625
3626  test -z "$ac_cv_prog_ac_ct_SED" && ac_cv_prog_ac_ct_SED=":"
3627fi
3628fi
3629ac_ct_SED=$ac_cv_prog_ac_ct_SED
3630if test -n "$ac_ct_SED"; then
3631  echo "$as_me:$LINENO: result: $ac_ct_SED" >&5
3632echo "${ECHO_T}$ac_ct_SED" >&6
3633else
3634  echo "$as_me:$LINENO: result: no" >&5
3635echo "${ECHO_T}no" >&6
3636fi
3637
3638  SED=$ac_ct_SED
3639else
3640  SED="$ac_cv_prog_SED"
3641fi
3642
3643# Find a good install program.  We prefer a C program (faster),
3644# so one script is as good as another.  But avoid the broken or
3645# incompatible versions:
3646# SysV /etc/install, /usr/sbin/install
3647# SunOS /usr/etc/install
3648# IRIX /sbin/install
3649# AIX /bin/install
3650# AmigaOS /C/install, which installs bootblocks on floppy discs
3651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3652# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3654# OS/2's system install, which has a completely different semantic
3655# ./install, which can be erroneously created by make from ./install.sh.
3656echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3657echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3658if test -z "$INSTALL"; then
3659if test "${ac_cv_path_install+set}" = set; then
3660  echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
3662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665  IFS=$as_save_IFS
3666  test -z "$as_dir" && as_dir=.
3667  # Account for people who put trailing slashes in PATH elements.
3668case $as_dir/ in
3669  ./ | .// | /cC/* | \
3670  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3671  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3672  /usr/ucb/* ) ;;
3673  *)
3674    # OSF1 and SCO ODT 3.0 have their own names for install.
3675    # Don't use installbsd from OSF since it installs stuff as root
3676    # by default.
3677    for ac_prog in ginstall scoinst install; do
3678      for ac_exec_ext in '' $ac_executable_extensions; do
3679	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3680	  if test $ac_prog = install &&
3681	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3682	    # AIX install.  It has an incompatible calling convention.
3683	    :
3684	  elif test $ac_prog = install &&
3685	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686	    # program-specific install script used by HP pwplus--don't use.
3687	    :
3688	  else
3689	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3690	    break 3
3691	  fi
3692	fi
3693      done
3694    done
3695    ;;
3696esac
3697done
3698
3699
3700fi
3701  if test "${ac_cv_path_install+set}" = set; then
3702    INSTALL=$ac_cv_path_install
3703  else
3704    # As a last resort, use the slow shell script.  We don't cache a
3705    # path for INSTALL within a source directory, because that will
3706    # break other packages using the cache if that directory is
3707    # removed, or if the path is relative.
3708    INSTALL=$ac_install_sh
3709  fi
3710fi
3711echo "$as_me:$LINENO: result: $INSTALL" >&5
3712echo "${ECHO_T}$INSTALL" >&6
3713
3714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3715# It thinks the first close brace ends the variable substitution.
3716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3717
3718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3719
3720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3721
3722echo "$as_me:$LINENO: checking whether ln -s works" >&5
3723echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3724LN_S=$as_ln_s
3725if test "$LN_S" = "ln -s"; then
3726  echo "$as_me:$LINENO: result: yes" >&5
3727echo "${ECHO_T}yes" >&6
3728else
3729  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3730echo "${ECHO_T}no, using $LN_S" >&6
3731fi
3732
3733echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3734echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3735set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3736if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3737  echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739  cat >conftest.make <<\_ACEOF
3740all:
3741	@echo 'ac_maketemp="$(MAKE)"'
3742_ACEOF
3743# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3744eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3745if test -n "$ac_maketemp"; then
3746  eval ac_cv_prog_make_${ac_make}_set=yes
3747else
3748  eval ac_cv_prog_make_${ac_make}_set=no
3749fi
3750rm -f conftest.make
3751fi
3752if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3753  echo "$as_me:$LINENO: result: yes" >&5
3754echo "${ECHO_T}yes" >&6
3755  SET_MAKE=
3756else
3757  echo "$as_me:$LINENO: result: no" >&5
3758echo "${ECHO_T}no" >&6
3759  SET_MAKE="MAKE=${MAKE-make}"
3760fi
3761
3762# Check whether --enable-shared or --disable-shared was given.
3763if test "${enable_shared+set}" = set; then
3764  enableval="$enable_shared"
3765  p=${PACKAGE-default}
3766    case $enableval in
3767    yes) enable_shared=yes ;;
3768    no) enable_shared=no ;;
3769    *)
3770      enable_shared=no
3771      # Look at the argument we got.  We use all the common list separators.
3772      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3773      for pkg in $enableval; do
3774	IFS="$lt_save_ifs"
3775	if test "X$pkg" = "X$p"; then
3776	  enable_shared=yes
3777	fi
3778      done
3779      IFS="$lt_save_ifs"
3780      ;;
3781    esac
3782else
3783  enable_shared=yes
3784fi;
3785
3786# Check whether --enable-static or --disable-static was given.
3787if test "${enable_static+set}" = set; then
3788  enableval="$enable_static"
3789  p=${PACKAGE-default}
3790    case $enableval in
3791    yes) enable_static=yes ;;
3792    no) enable_static=no ;;
3793    *)
3794     enable_static=no
3795      # Look at the argument we got.  We use all the common list separators.
3796      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3797      for pkg in $enableval; do
3798	IFS="$lt_save_ifs"
3799	if test "X$pkg" = "X$p"; then
3800	  enable_static=yes
3801	fi
3802      done
3803      IFS="$lt_save_ifs"
3804      ;;
3805    esac
3806else
3807  enable_static=yes
3808fi;
3809
3810# Check whether --enable-fast-install or --disable-fast-install was given.
3811if test "${enable_fast_install+set}" = set; then
3812  enableval="$enable_fast_install"
3813  p=${PACKAGE-default}
3814    case $enableval in
3815    yes) enable_fast_install=yes ;;
3816    no) enable_fast_install=no ;;
3817    *)
3818      enable_fast_install=no
3819      # Look at the argument we got.  We use all the common list separators.
3820      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3821      for pkg in $enableval; do
3822	IFS="$lt_save_ifs"
3823	if test "X$pkg" = "X$p"; then
3824	  enable_fast_install=yes
3825	fi
3826      done
3827      IFS="$lt_save_ifs"
3828      ;;
3829    esac
3830else
3831  enable_fast_install=yes
3832fi;
3833
3834echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3835echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3836if test "${lt_cv_ld_reload_flag+set}" = set; then
3837  echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839  lt_cv_ld_reload_flag='-r'
3840fi
3841echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3842echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3843reload_flag=$lt_cv_ld_reload_flag
3844case $reload_flag in
3845"" | " "*) ;;
3846*) reload_flag=" $reload_flag" ;;
3847esac
3848reload_cmds='$LD$reload_flag -o $output$reload_objs'
3849case $host_os in
3850  darwin*)
3851    if test "$GCC" = yes; then
3852      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3853    else
3854      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3855    fi
3856    ;;
3857esac
3858
3859echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3860echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3861if test "${lt_cv_path_NM+set}" = set; then
3862  echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864  if test -n "$NM"; then
3865  # Let the user override the test.
3866  lt_cv_path_NM="$NM"
3867else
3868  lt_nm_to_check="${ac_tool_prefix}nm"
3869  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3870    lt_nm_to_check="$lt_nm_to_check nm"
3871  fi
3872  for lt_tmp_nm in $lt_nm_to_check; do
3873    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3874    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3875      IFS="$lt_save_ifs"
3876      test -z "$ac_dir" && ac_dir=.
3877      tmp_nm="$ac_dir/$lt_tmp_nm"
3878      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3879	# Check to see if the nm accepts a BSD-compat flag.
3880	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3881	#   nm: unknown option "B" ignored
3882	# Tru64's nm complains that /dev/null is an invalid object file
3883	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3884	*/dev/null* | *'Invalid file or object type'*)
3885	  lt_cv_path_NM="$tmp_nm -B"
3886	  break
3887	  ;;
3888	*)
3889	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3890	  */dev/null*)
3891	    lt_cv_path_NM="$tmp_nm -p"
3892	    break
3893	    ;;
3894	  *)
3895	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3896	    continue # so that we can try to find one that supports BSD flags
3897	    ;;
3898	  esac
3899	  ;;
3900	esac
3901      fi
3902    done
3903    IFS="$lt_save_ifs"
3904  done
3905  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3906fi
3907fi
3908echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3909echo "${ECHO_T}$lt_cv_path_NM" >&6
3910NM="$lt_cv_path_NM"
3911
3912echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3913echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3914if test "${lt_cv_deplibs_check_method+set}" = set; then
3915  echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917  lt_cv_file_magic_cmd='$MAGIC_CMD'
3918lt_cv_file_magic_test_file=
3919lt_cv_deplibs_check_method='unknown'
3920# Need to set the preceding variable on all platforms that support
3921# interlibrary dependencies.
3922# 'none' -- dependencies not supported.
3923# `unknown' -- same as none, but documents that we really don't know.
3924# 'pass_all' -- all dependencies passed with no checks.
3925# 'test_compile' -- check by making test program.
3926# 'file_magic [[regex]]' -- check by looking for files in library path
3927# which responds to the $file_magic_cmd with a given extended regex.
3928# If you have `file' or equivalent on your system and you're not sure
3929# whether `pass_all' will *always* work, you probably want this one.
3930
3931case $host_os in
3932aix4* | aix5*)
3933  lt_cv_deplibs_check_method=pass_all
3934  ;;
3935
3936beos*)
3937  lt_cv_deplibs_check_method=pass_all
3938  ;;
3939
3940bsdi[45]*)
3941  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3942  lt_cv_file_magic_cmd='/usr/bin/file -L'
3943  lt_cv_file_magic_test_file=/shlib/libc.so
3944  ;;
3945
3946cygwin*)
3947  # func_win32_libid is a shell function defined in ltmain.sh
3948  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3949  lt_cv_file_magic_cmd='func_win32_libid'
3950  ;;
3951
3952mingw* | pw32*)
3953  # Base MSYS/MinGW do not provide the 'file' command needed by
3954  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3955  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3956  lt_cv_file_magic_cmd='$OBJDUMP -f'
3957  ;;
3958
3959darwin* | rhapsody*)
3960  lt_cv_deplibs_check_method=pass_all
3961  ;;
3962
3963freebsd* | kfreebsd*-gnu | dragonfly*)
3964  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3965    case $host_cpu in
3966    i*86 )
3967      # Not sure whether the presence of OpenBSD here was a mistake.
3968      # Let's accept both of them until this is cleared up.
3969      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3970      lt_cv_file_magic_cmd=/usr/bin/file
3971      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3972      ;;
3973    esac
3974  else
3975    lt_cv_deplibs_check_method=pass_all
3976  fi
3977  ;;
3978
3979gnu*)
3980  lt_cv_deplibs_check_method=pass_all
3981  ;;
3982
3983hpux10.20* | hpux11*)
3984  lt_cv_file_magic_cmd=/usr/bin/file
3985  case $host_cpu in
3986  ia64*)
3987    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3988    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3989    ;;
3990  hppa*64*)
3991    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]'
3992    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3993    ;;
3994  *)
3995    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3996    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3997    ;;
3998  esac
3999  ;;
4000
4001interix3*)
4002  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4003  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4004  ;;
4005
4006irix5* | irix6* | nonstopux*)
4007  case $LD in
4008  *-32|*"-32 ") libmagic=32-bit;;
4009  *-n32|*"-n32 ") libmagic=N32;;
4010  *-64|*"-64 ") libmagic=64-bit;;
4011  *) libmagic=never-match;;
4012  esac
4013  lt_cv_deplibs_check_method=pass_all
4014  ;;
4015
4016# This must be Linux ELF.
4017linux*)
4018  lt_cv_deplibs_check_method=pass_all
4019  ;;
4020
4021netbsd*)
4022  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4023    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4024  else
4025    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4026  fi
4027  ;;
4028
4029newos6*)
4030  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4031  lt_cv_file_magic_cmd=/usr/bin/file
4032  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4033  ;;
4034
4035nto-qnx*)
4036  lt_cv_deplibs_check_method=unknown
4037  ;;
4038
4039openbsd*)
4040  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4041    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4042  else
4043    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4044  fi
4045  ;;
4046
4047osf3* | osf4* | osf5*)
4048  lt_cv_deplibs_check_method=pass_all
4049  ;;
4050
4051solaris*)
4052  lt_cv_deplibs_check_method=pass_all
4053  ;;
4054
4055sysv4 | sysv4.3*)
4056  case $host_vendor in
4057  motorola)
4058    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]'
4059    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4060    ;;
4061  ncr)
4062    lt_cv_deplibs_check_method=pass_all
4063    ;;
4064  sequent)
4065    lt_cv_file_magic_cmd='/bin/file'
4066    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4067    ;;
4068  sni)
4069    lt_cv_file_magic_cmd='/bin/file'
4070    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4071    lt_cv_file_magic_test_file=/lib/libc.so
4072    ;;
4073  siemens)
4074    lt_cv_deplibs_check_method=pass_all
4075    ;;
4076  pc)
4077    lt_cv_deplibs_check_method=pass_all
4078    ;;
4079  esac
4080  ;;
4081
4082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4083  lt_cv_deplibs_check_method=pass_all
4084  ;;
4085esac
4086
4087fi
4088echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4089echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4090file_magic_cmd=$lt_cv_file_magic_cmd
4091deplibs_check_method=$lt_cv_deplibs_check_method
4092test -z "$deplibs_check_method" && deplibs_check_method=unknown
4093
4094
4095
4096
4097# If no C compiler was specified, use CC.
4098LTCC=${LTCC-"$CC"}
4099
4100# If no C compiler flags were specified, use CFLAGS.
4101LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4102
4103# Allow CC to be a program name with arguments.
4104compiler=$CC
4105
4106
4107# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4108if test "${enable_libtool_lock+set}" = set; then
4109  enableval="$enable_libtool_lock"
4110
4111fi;
4112test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4113
4114# Some flags need to be propagated to the compiler or linker for good
4115# libtool support.
4116case $host in
4117ia64-*-hpux*)
4118  # Find out which ABI we are using.
4119  echo 'int i;' > conftest.$ac_ext
4120  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121  (eval $ac_compile) 2>&5
4122  ac_status=$?
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); }; then
4125    case `/usr/bin/file conftest.$ac_objext` in
4126    *ELF-32*)
4127      HPUX_IA64_MODE="32"
4128      ;;
4129    *ELF-64*)
4130      HPUX_IA64_MODE="64"
4131      ;;
4132    esac
4133  fi
4134  rm -rf conftest*
4135  ;;
4136*-*-irix6*)
4137  # Find out which ABI we are using.
4138  echo '#line 4138 "configure"' > conftest.$ac_ext
4139  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140  (eval $ac_compile) 2>&5
4141  ac_status=$?
4142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143  (exit $ac_status); }; then
4144   if test "$lt_cv_prog_gnu_ld" = yes; then
4145    case `/usr/bin/file conftest.$ac_objext` in
4146    *32-bit*)
4147      LD="${LD-ld} -melf32bsmip"
4148      ;;
4149    *N32*)
4150      LD="${LD-ld} -melf32bmipn32"
4151      ;;
4152    *64-bit*)
4153      LD="${LD-ld} -melf64bmip"
4154      ;;
4155    esac
4156   else
4157    case `/usr/bin/file conftest.$ac_objext` in
4158    *32-bit*)
4159      LD="${LD-ld} -32"
4160      ;;
4161    *N32*)
4162      LD="${LD-ld} -n32"
4163      ;;
4164    *64-bit*)
4165      LD="${LD-ld} -64"
4166      ;;
4167    esac
4168   fi
4169  fi
4170  rm -rf conftest*
4171  ;;
4172
4173x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4174  # Find out which ABI we are using.
4175  echo 'int i;' > conftest.$ac_ext
4176  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177  (eval $ac_compile) 2>&5
4178  ac_status=$?
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); }; then
4181    case `/usr/bin/file conftest.o` in
4182    *32-bit*)
4183      case $host in
4184        x86_64-*linux*)
4185          LD="${LD-ld} -m elf_i386"
4186          ;;
4187        ppc64-*linux*|powerpc64-*linux*)
4188          LD="${LD-ld} -m elf32ppclinux"
4189          ;;
4190        s390x-*linux*)
4191          LD="${LD-ld} -m elf_s390"
4192          ;;
4193        sparc64-*linux*)
4194          LD="${LD-ld} -m elf32_sparc"
4195          ;;
4196      esac
4197      ;;
4198    *64-bit*)
4199      case $host in
4200        x86_64-*linux*)
4201          LD="${LD-ld} -m elf_x86_64"
4202          ;;
4203        ppc*-*linux*|powerpc*-*linux*)
4204          LD="${LD-ld} -m elf64ppc"
4205          ;;
4206        s390*-*linux*)
4207          LD="${LD-ld} -m elf64_s390"
4208          ;;
4209        sparc*-*linux*)
4210          LD="${LD-ld} -m elf64_sparc"
4211          ;;
4212      esac
4213      ;;
4214    esac
4215  fi
4216  rm -rf conftest*
4217  ;;
4218
4219*-*-sco3.2v5*)
4220  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4221  SAVE_CFLAGS="$CFLAGS"
4222  CFLAGS="$CFLAGS -belf"
4223  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4224echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4225if test "${lt_cv_cc_needs_belf+set}" = set; then
4226  echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228  ac_ext=c
4229ac_cpp='$CPP $CPPFLAGS'
4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
4234     cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h.  */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h.  */
4240
4241int
4242main ()
4243{
4244
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext conftest$ac_exeext
4250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251  (eval $ac_link) 2>conftest.er1
4252  ac_status=$?
4253  grep -v '^ *+' conftest.er1 >conftest.err
4254  rm -f conftest.er1
4255  cat conftest.err >&5
4256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257  (exit $ac_status); } &&
4258	 { ac_try='test -z "$ac_c_werror_flag"
4259			 || test ! -s conftest.err'
4260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261  (eval $ac_try) 2>&5
4262  ac_status=$?
4263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264  (exit $ac_status); }; } &&
4265	 { ac_try='test -s conftest$ac_exeext'
4266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267  (eval $ac_try) 2>&5
4268  ac_status=$?
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); }; }; then
4271  lt_cv_cc_needs_belf=yes
4272else
4273  echo "$as_me: failed program was:" >&5
4274sed 's/^/| /' conftest.$ac_ext >&5
4275
4276lt_cv_cc_needs_belf=no
4277fi
4278rm -f conftest.err conftest.$ac_objext \
4279      conftest$ac_exeext conftest.$ac_ext
4280     ac_ext=c
4281ac_cpp='$CPP $CPPFLAGS'
4282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285
4286fi
4287echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4288echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4289  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4290    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4291    CFLAGS="$SAVE_CFLAGS"
4292  fi
4293  ;;
4294sparc*-*solaris*)
4295  # Find out which ABI we are using.
4296  echo 'int i;' > conftest.$ac_ext
4297  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298  (eval $ac_compile) 2>&5
4299  ac_status=$?
4300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301  (exit $ac_status); }; then
4302    case `/usr/bin/file conftest.o` in
4303    *64-bit*)
4304      case $lt_cv_prog_gnu_ld in
4305      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4306      *)    LD="${LD-ld} -64" ;;
4307      esac
4308      ;;
4309    esac
4310  fi
4311  rm -rf conftest*
4312  ;;
4313
4314
4315esac
4316
4317need_locks="$enable_libtool_lock"
4318
4319
4320
4321echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4322echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4323if test "${ac_cv_header_stdc+set}" = set; then
4324  echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
4326  cat >conftest.$ac_ext <<_ACEOF
4327/* confdefs.h.  */
4328_ACEOF
4329cat confdefs.h >>conftest.$ac_ext
4330cat >>conftest.$ac_ext <<_ACEOF
4331/* end confdefs.h.  */
4332#include <stdlib.h>
4333#include <stdarg.h>
4334#include <string.h>
4335#include <float.h>
4336
4337int
4338main ()
4339{
4340
4341  ;
4342  return 0;
4343}
4344_ACEOF
4345rm -f conftest.$ac_objext
4346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4347  (eval $ac_compile) 2>conftest.er1
4348  ac_status=$?
4349  grep -v '^ *+' conftest.er1 >conftest.err
4350  rm -f conftest.er1
4351  cat conftest.err >&5
4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353  (exit $ac_status); } &&
4354	 { ac_try='test -z "$ac_c_werror_flag"
4355			 || test ! -s conftest.err'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; } &&
4361	 { ac_try='test -s conftest.$ac_objext'
4362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363  (eval $ac_try) 2>&5
4364  ac_status=$?
4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); }; }; then
4367  ac_cv_header_stdc=yes
4368else
4369  echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372ac_cv_header_stdc=no
4373fi
4374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4375
4376if test $ac_cv_header_stdc = yes; then
4377  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4378  cat >conftest.$ac_ext <<_ACEOF
4379/* confdefs.h.  */
4380_ACEOF
4381cat confdefs.h >>conftest.$ac_ext
4382cat >>conftest.$ac_ext <<_ACEOF
4383/* end confdefs.h.  */
4384#include <string.h>
4385
4386_ACEOF
4387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4388  $EGREP "memchr" >/dev/null 2>&1; then
4389  :
4390else
4391  ac_cv_header_stdc=no
4392fi
4393rm -f conftest*
4394
4395fi
4396
4397if test $ac_cv_header_stdc = yes; then
4398  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4399  cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h.  */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h.  */
4405#include <stdlib.h>
4406
4407_ACEOF
4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409  $EGREP "free" >/dev/null 2>&1; then
4410  :
4411else
4412  ac_cv_header_stdc=no
4413fi
4414rm -f conftest*
4415
4416fi
4417
4418if test $ac_cv_header_stdc = yes; then
4419  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4420  if test "$cross_compiling" = yes; then
4421  :
4422else
4423  cat >conftest.$ac_ext <<_ACEOF
4424/* confdefs.h.  */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h.  */
4429#include <ctype.h>
4430#if ((' ' & 0x0FF) == 0x020)
4431# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4432# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4433#else
4434# define ISLOWER(c) \
4435		   (('a' <= (c) && (c) <= 'i') \
4436		     || ('j' <= (c) && (c) <= 'r') \
4437		     || ('s' <= (c) && (c) <= 'z'))
4438# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4439#endif
4440
4441#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4442int
4443main ()
4444{
4445  int i;
4446  for (i = 0; i < 256; i++)
4447    if (XOR (islower (i), ISLOWER (i))
4448	|| toupper (i) != TOUPPER (i))
4449      exit(2);
4450  exit (0);
4451}
4452_ACEOF
4453rm -f conftest$ac_exeext
4454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455  (eval $ac_link) 2>&5
4456  ac_status=$?
4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460  (eval $ac_try) 2>&5
4461  ac_status=$?
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); }; }; then
4464  :
4465else
4466  echo "$as_me: program exited with status $ac_status" >&5
4467echo "$as_me: failed program was:" >&5
4468sed 's/^/| /' conftest.$ac_ext >&5
4469
4470( exit $ac_status )
4471ac_cv_header_stdc=no
4472fi
4473rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4474fi
4475fi
4476fi
4477echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4478echo "${ECHO_T}$ac_cv_header_stdc" >&6
4479if test $ac_cv_header_stdc = yes; then
4480
4481cat >>confdefs.h <<\_ACEOF
4482#define STDC_HEADERS 1
4483_ACEOF
4484
4485fi
4486
4487# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4498		  inttypes.h stdint.h unistd.h
4499do
4500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4501echo "$as_me:$LINENO: checking for $ac_header" >&5
4502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4503if eval "test \"\${$as_ac_Header+set}\" = set"; then
4504  echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506  cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h.  */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h.  */
4512$ac_includes_default
4513
4514#include <$ac_header>
4515_ACEOF
4516rm -f conftest.$ac_objext
4517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518  (eval $ac_compile) 2>conftest.er1
4519  ac_status=$?
4520  grep -v '^ *+' conftest.er1 >conftest.err
4521  rm -f conftest.er1
4522  cat conftest.err >&5
4523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524  (exit $ac_status); } &&
4525	 { ac_try='test -z "$ac_c_werror_flag"
4526			 || test ! -s conftest.err'
4527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528  (eval $ac_try) 2>&5
4529  ac_status=$?
4530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531  (exit $ac_status); }; } &&
4532	 { ac_try='test -s conftest.$ac_objext'
4533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534  (eval $ac_try) 2>&5
4535  ac_status=$?
4536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537  (exit $ac_status); }; }; then
4538  eval "$as_ac_Header=yes"
4539else
4540  echo "$as_me: failed program was:" >&5
4541sed 's/^/| /' conftest.$ac_ext >&5
4542
4543eval "$as_ac_Header=no"
4544fi
4545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546fi
4547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4549if test `eval echo '${'$as_ac_Header'}'` = yes; then
4550  cat >>confdefs.h <<_ACEOF
4551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4552_ACEOF
4553
4554fi
4555
4556done
4557
4558
4559
4560for ac_header in dlfcn.h
4561do
4562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4563if eval "test \"\${$as_ac_Header+set}\" = set"; then
4564  echo "$as_me:$LINENO: checking for $ac_header" >&5
4565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4566if eval "test \"\${$as_ac_Header+set}\" = set"; then
4567  echo $ECHO_N "(cached) $ECHO_C" >&6
4568fi
4569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4571else
4572  # Is the header compilable?
4573echo "$as_me:$LINENO: checking $ac_header usability" >&5
4574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4575cat >conftest.$ac_ext <<_ACEOF
4576/* confdefs.h.  */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h.  */
4581$ac_includes_default
4582#include <$ac_header>
4583_ACEOF
4584rm -f conftest.$ac_objext
4585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586  (eval $ac_compile) 2>conftest.er1
4587  ac_status=$?
4588  grep -v '^ *+' conftest.er1 >conftest.err
4589  rm -f conftest.er1
4590  cat conftest.err >&5
4591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592  (exit $ac_status); } &&
4593	 { ac_try='test -z "$ac_c_werror_flag"
4594			 || 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_header_compiler=yes
4607else
4608  echo "$as_me: failed program was:" >&5
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
4611ac_header_compiler=no
4612fi
4613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4615echo "${ECHO_T}$ac_header_compiler" >&6
4616
4617# Is the header present?
4618echo "$as_me:$LINENO: checking $ac_header presence" >&5
4619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4620cat >conftest.$ac_ext <<_ACEOF
4621/* confdefs.h.  */
4622_ACEOF
4623cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h.  */
4626#include <$ac_header>
4627_ACEOF
4628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4629  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4630  ac_status=$?
4631  grep -v '^ *+' conftest.er1 >conftest.err
4632  rm -f conftest.er1
4633  cat conftest.err >&5
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); } >/dev/null; then
4636  if test -s conftest.err; then
4637    ac_cpp_err=$ac_c_preproc_warn_flag
4638    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4639  else
4640    ac_cpp_err=
4641  fi
4642else
4643  ac_cpp_err=yes
4644fi
4645if test -z "$ac_cpp_err"; then
4646  ac_header_preproc=yes
4647else
4648  echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651  ac_header_preproc=no
4652fi
4653rm -f conftest.err conftest.$ac_ext
4654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4655echo "${ECHO_T}$ac_header_preproc" >&6
4656
4657# So?  What about this header?
4658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4659  yes:no: )
4660    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4662    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4664    ac_header_preproc=yes
4665    ;;
4666  no:yes:* )
4667    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4669    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4670echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4671    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4673    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4674echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4675    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4677    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4679    (
4680      cat <<\_ASBOX
4681## ------------------------------------------------------ ##
4682## Report this to png-mng-implement@lists.sourceforge.net ##
4683## ------------------------------------------------------ ##
4684_ASBOX
4685    ) |
4686      sed "s/^/$as_me: WARNING:     /" >&2
4687    ;;
4688esac
4689echo "$as_me:$LINENO: checking for $ac_header" >&5
4690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4691if eval "test \"\${$as_ac_Header+set}\" = set"; then
4692  echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
4694  eval "$as_ac_Header=\$ac_header_preproc"
4695fi
4696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4698
4699fi
4700if test `eval echo '${'$as_ac_Header'}'` = yes; then
4701  cat >>confdefs.h <<_ACEOF
4702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4703_ACEOF
4704
4705fi
4706
4707done
4708
4709ac_ext=cc
4710ac_cpp='$CXXCPP $CPPFLAGS'
4711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4714if test -n "$ac_tool_prefix"; then
4715  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4716  do
4717    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4719echo "$as_me:$LINENO: checking for $ac_word" >&5
4720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4721if test "${ac_cv_prog_CXX+set}" = set; then
4722  echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724  if test -n "$CXX"; then
4725  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4726else
4727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730  IFS=$as_save_IFS
4731  test -z "$as_dir" && as_dir=.
4732  for ac_exec_ext in '' $ac_executable_extensions; do
4733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736    break 2
4737  fi
4738done
4739done
4740
4741fi
4742fi
4743CXX=$ac_cv_prog_CXX
4744if test -n "$CXX"; then
4745  echo "$as_me:$LINENO: result: $CXX" >&5
4746echo "${ECHO_T}$CXX" >&6
4747else
4748  echo "$as_me:$LINENO: result: no" >&5
4749echo "${ECHO_T}no" >&6
4750fi
4751
4752    test -n "$CXX" && break
4753  done
4754fi
4755if test -z "$CXX"; then
4756  ac_ct_CXX=$CXX
4757  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4758do
4759  # Extract the first word of "$ac_prog", so it can be a program name with args.
4760set dummy $ac_prog; ac_word=$2
4761echo "$as_me:$LINENO: checking for $ac_word" >&5
4762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4764  echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766  if test -n "$ac_ct_CXX"; then
4767  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772  IFS=$as_save_IFS
4773  test -z "$as_dir" && as_dir=.
4774  for ac_exec_ext in '' $ac_executable_extensions; do
4775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776    ac_cv_prog_ac_ct_CXX="$ac_prog"
4777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778    break 2
4779  fi
4780done
4781done
4782
4783fi
4784fi
4785ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4786if test -n "$ac_ct_CXX"; then
4787  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4788echo "${ECHO_T}$ac_ct_CXX" >&6
4789else
4790  echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6
4792fi
4793
4794  test -n "$ac_ct_CXX" && break
4795done
4796test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4797
4798  CXX=$ac_ct_CXX
4799fi
4800
4801
4802# Provide some information about the compiler.
4803echo "$as_me:$LINENO:" \
4804     "checking for C++ compiler version" >&5
4805ac_compiler=`set X $ac_compile; echo $2`
4806{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4807  (eval $ac_compiler --version </dev/null >&5) 2>&5
4808  ac_status=$?
4809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810  (exit $ac_status); }
4811{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4812  (eval $ac_compiler -v </dev/null >&5) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); }
4816{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4817  (eval $ac_compiler -V </dev/null >&5) 2>&5
4818  ac_status=$?
4819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820  (exit $ac_status); }
4821
4822echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4823echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4824if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4825  echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827  cat >conftest.$ac_ext <<_ACEOF
4828/* confdefs.h.  */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h.  */
4833
4834int
4835main ()
4836{
4837#ifndef __GNUC__
4838       choke me
4839#endif
4840
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845rm -f conftest.$ac_objext
4846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847  (eval $ac_compile) 2>conftest.er1
4848  ac_status=$?
4849  grep -v '^ *+' conftest.er1 >conftest.err
4850  rm -f conftest.er1
4851  cat conftest.err >&5
4852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853  (exit $ac_status); } &&
4854	 { ac_try='test -z "$ac_cxx_werror_flag"
4855			 || test ! -s conftest.err'
4856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857  (eval $ac_try) 2>&5
4858  ac_status=$?
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); }; } &&
4861	 { ac_try='test -s conftest.$ac_objext'
4862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863  (eval $ac_try) 2>&5
4864  ac_status=$?
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); }; }; then
4867  ac_compiler_gnu=yes
4868else
4869  echo "$as_me: failed program was:" >&5
4870sed 's/^/| /' conftest.$ac_ext >&5
4871
4872ac_compiler_gnu=no
4873fi
4874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4875ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4876
4877fi
4878echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4879echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4880GXX=`test $ac_compiler_gnu = yes && echo yes`
4881ac_test_CXXFLAGS=${CXXFLAGS+set}
4882ac_save_CXXFLAGS=$CXXFLAGS
4883CXXFLAGS="-g"
4884echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4885echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4886if test "${ac_cv_prog_cxx_g+set}" = set; then
4887  echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889  cat >conftest.$ac_ext <<_ACEOF
4890/* confdefs.h.  */
4891_ACEOF
4892cat confdefs.h >>conftest.$ac_ext
4893cat >>conftest.$ac_ext <<_ACEOF
4894/* end confdefs.h.  */
4895
4896int
4897main ()
4898{
4899
4900  ;
4901  return 0;
4902}
4903_ACEOF
4904rm -f conftest.$ac_objext
4905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906  (eval $ac_compile) 2>conftest.er1
4907  ac_status=$?
4908  grep -v '^ *+' conftest.er1 >conftest.err
4909  rm -f conftest.er1
4910  cat conftest.err >&5
4911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912  (exit $ac_status); } &&
4913	 { ac_try='test -z "$ac_cxx_werror_flag"
4914			 || test ! -s conftest.err'
4915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916  (eval $ac_try) 2>&5
4917  ac_status=$?
4918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919  (exit $ac_status); }; } &&
4920	 { ac_try='test -s conftest.$ac_objext'
4921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922  (eval $ac_try) 2>&5
4923  ac_status=$?
4924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925  (exit $ac_status); }; }; then
4926  ac_cv_prog_cxx_g=yes
4927else
4928  echo "$as_me: failed program was:" >&5
4929sed 's/^/| /' conftest.$ac_ext >&5
4930
4931ac_cv_prog_cxx_g=no
4932fi
4933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4934fi
4935echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4936echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4937if test "$ac_test_CXXFLAGS" = set; then
4938  CXXFLAGS=$ac_save_CXXFLAGS
4939elif test $ac_cv_prog_cxx_g = yes; then
4940  if test "$GXX" = yes; then
4941    CXXFLAGS="-g -O2"
4942  else
4943    CXXFLAGS="-g"
4944  fi
4945else
4946  if test "$GXX" = yes; then
4947    CXXFLAGS="-O2"
4948  else
4949    CXXFLAGS=
4950  fi
4951fi
4952for ac_declaration in \
4953   '' \
4954   'extern "C" void std::exit (int) throw (); using std::exit;' \
4955   'extern "C" void std::exit (int); using std::exit;' \
4956   'extern "C" void exit (int) throw ();' \
4957   'extern "C" void exit (int);' \
4958   'void exit (int);'
4959do
4960  cat >conftest.$ac_ext <<_ACEOF
4961/* confdefs.h.  */
4962_ACEOF
4963cat confdefs.h >>conftest.$ac_ext
4964cat >>conftest.$ac_ext <<_ACEOF
4965/* end confdefs.h.  */
4966$ac_declaration
4967#include <stdlib.h>
4968int
4969main ()
4970{
4971exit (42);
4972  ;
4973  return 0;
4974}
4975_ACEOF
4976rm -f conftest.$ac_objext
4977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978  (eval $ac_compile) 2>conftest.er1
4979  ac_status=$?
4980  grep -v '^ *+' conftest.er1 >conftest.err
4981  rm -f conftest.er1
4982  cat conftest.err >&5
4983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984  (exit $ac_status); } &&
4985	 { ac_try='test -z "$ac_cxx_werror_flag"
4986			 || test ! -s conftest.err'
4987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988  (eval $ac_try) 2>&5
4989  ac_status=$?
4990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991  (exit $ac_status); }; } &&
4992	 { ac_try='test -s conftest.$ac_objext'
4993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994  (eval $ac_try) 2>&5
4995  ac_status=$?
4996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997  (exit $ac_status); }; }; then
4998  :
4999else
5000  echo "$as_me: failed program was:" >&5
5001sed 's/^/| /' conftest.$ac_ext >&5
5002
5003continue
5004fi
5005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5006  cat >conftest.$ac_ext <<_ACEOF
5007/* confdefs.h.  */
5008_ACEOF
5009cat confdefs.h >>conftest.$ac_ext
5010cat >>conftest.$ac_ext <<_ACEOF
5011/* end confdefs.h.  */
5012$ac_declaration
5013int
5014main ()
5015{
5016exit (42);
5017  ;
5018  return 0;
5019}
5020_ACEOF
5021rm -f conftest.$ac_objext
5022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023  (eval $ac_compile) 2>conftest.er1
5024  ac_status=$?
5025  grep -v '^ *+' conftest.er1 >conftest.err
5026  rm -f conftest.er1
5027  cat conftest.err >&5
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); } &&
5030	 { ac_try='test -z "$ac_cxx_werror_flag"
5031			 || test ! -s conftest.err'
5032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033  (eval $ac_try) 2>&5
5034  ac_status=$?
5035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036  (exit $ac_status); }; } &&
5037	 { ac_try='test -s conftest.$ac_objext'
5038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039  (eval $ac_try) 2>&5
5040  ac_status=$?
5041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042  (exit $ac_status); }; }; then
5043  break
5044else
5045  echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048fi
5049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5050done
5051rm -f conftest*
5052if test -n "$ac_declaration"; then
5053  echo '#ifdef __cplusplus' >>confdefs.h
5054  echo $ac_declaration      >>confdefs.h
5055  echo '#endif'             >>confdefs.h
5056fi
5057
5058ac_ext=cc
5059ac_cpp='$CXXCPP $CPPFLAGS'
5060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5063
5064depcc="$CXX"  am_compiler_list=
5065
5066echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5067echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5068if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5069  echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5072  # We make a subdir and do the tests there.  Otherwise we can end up
5073  # making bogus files that we don't know about and never remove.  For
5074  # instance it was reported that on HP-UX the gcc test will end up
5075  # making a dummy file named `D' -- because `-MD' means `put the output
5076  # in D'.
5077  mkdir conftest.dir
5078  # Copy depcomp to subdir because otherwise we won't find it if we're
5079  # using a relative directory.
5080  cp "$am_depcomp" conftest.dir
5081  cd conftest.dir
5082  # We will build objects and dependencies in a subdirectory because
5083  # it helps to detect inapplicable dependency modes.  For instance
5084  # both Tru64's cc and ICC support -MD to output dependencies as a
5085  # side effect of compilation, but ICC will put the dependencies in
5086  # the current directory while Tru64 will put them in the object
5087  # directory.
5088  mkdir sub
5089
5090  am_cv_CXX_dependencies_compiler_type=none
5091  if test "$am_compiler_list" = ""; then
5092     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5093  fi
5094  for depmode in $am_compiler_list; do
5095    # Setup a source with many dependencies, because some compilers
5096    # like to wrap large dependency lists on column 80 (with \), and
5097    # we should not choose a depcomp mode which is confused by this.
5098    #
5099    # We need to recreate these files for each test, as the compiler may
5100    # overwrite some of them when testing with obscure command lines.
5101    # This happens at least with the AIX C compiler.
5102    : > sub/conftest.c
5103    for i in 1 2 3 4 5 6; do
5104      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5105      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5106      # Solaris 8's {/usr,}/bin/sh.
5107      touch sub/conftst$i.h
5108    done
5109    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5110
5111    case $depmode in
5112    nosideeffect)
5113      # after this tag, mechanisms are not by side-effect, so they'll
5114      # only be used when explicitly requested
5115      if test "x$enable_dependency_tracking" = xyes; then
5116	continue
5117      else
5118	break
5119      fi
5120      ;;
5121    none) break ;;
5122    esac
5123    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5124    # mode.  It turns out that the SunPro C++ compiler does not properly
5125    # handle `-M -o', and we need to detect this.
5126    if depmode=$depmode \
5127       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5128       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5129       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5130         >/dev/null 2>conftest.err &&
5131       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5132       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5133       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5134      # icc doesn't choke on unknown options, it will just issue warnings
5135      # or remarks (even with -Werror).  So we grep stderr for any message
5136      # that says an option was ignored or not supported.
5137      # When given -MP, icc 7.0 and 7.1 complain thusly:
5138      #   icc: Command line warning: ignoring option '-M'; no argument required
5139      # The diagnosis changed in icc 8.0:
5140      #   icc: Command line remark: option '-MP' not supported
5141      if (grep 'ignoring option' conftest.err ||
5142          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5143        am_cv_CXX_dependencies_compiler_type=$depmode
5144        break
5145      fi
5146    fi
5147  done
5148
5149  cd ..
5150  rm -rf conftest.dir
5151else
5152  am_cv_CXX_dependencies_compiler_type=none
5153fi
5154
5155fi
5156echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5157echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5158CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5159
5160
5161
5162if
5163  test "x$enable_dependency_tracking" != xno \
5164  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5165  am__fastdepCXX_TRUE=
5166  am__fastdepCXX_FALSE='#'
5167else
5168  am__fastdepCXX_TRUE='#'
5169  am__fastdepCXX_FALSE=
5170fi
5171
5172
5173
5174
5175if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5176    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5177    (test "X$CXX" != "Xg++"))) ; then
5178  ac_ext=cc
5179ac_cpp='$CXXCPP $CPPFLAGS'
5180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5183echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5184echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5185if test -z "$CXXCPP"; then
5186  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5187  echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189      # Double quotes because CXXCPP needs to be expanded
5190    for CXXCPP in "$CXX -E" "/lib/cpp"
5191    do
5192      ac_preproc_ok=false
5193for ac_cxx_preproc_warn_flag in '' yes
5194do
5195  # Use a header file that comes with gcc, so configuring glibc
5196  # with a fresh cross-compiler works.
5197  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198  # <limits.h> exists even on freestanding compilers.
5199  # On the NeXT, cc -E runs the code through the compiler's parser,
5200  # not just through cpp. "Syntax error" is here to catch this case.
5201  cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h.  */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h.  */
5207#ifdef __STDC__
5208# include <limits.h>
5209#else
5210# include <assert.h>
5211#endif
5212		     Syntax error
5213_ACEOF
5214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5215  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5216  ac_status=$?
5217  grep -v '^ *+' conftest.er1 >conftest.err
5218  rm -f conftest.er1
5219  cat conftest.err >&5
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); } >/dev/null; then
5222  if test -s conftest.err; then
5223    ac_cpp_err=$ac_cxx_preproc_warn_flag
5224    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5225  else
5226    ac_cpp_err=
5227  fi
5228else
5229  ac_cpp_err=yes
5230fi
5231if test -z "$ac_cpp_err"; then
5232  :
5233else
5234  echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
5237  # Broken: fails on valid input.
5238continue
5239fi
5240rm -f conftest.err conftest.$ac_ext
5241
5242  # OK, works on sane cases.  Now check whether non-existent headers
5243  # can be detected and how.
5244  cat >conftest.$ac_ext <<_ACEOF
5245/* confdefs.h.  */
5246_ACEOF
5247cat confdefs.h >>conftest.$ac_ext
5248cat >>conftest.$ac_ext <<_ACEOF
5249/* end confdefs.h.  */
5250#include <ac_nonexistent.h>
5251_ACEOF
5252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5254  ac_status=$?
5255  grep -v '^ *+' conftest.er1 >conftest.err
5256  rm -f conftest.er1
5257  cat conftest.err >&5
5258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259  (exit $ac_status); } >/dev/null; then
5260  if test -s conftest.err; then
5261    ac_cpp_err=$ac_cxx_preproc_warn_flag
5262    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5263  else
5264    ac_cpp_err=
5265  fi
5266else
5267  ac_cpp_err=yes
5268fi
5269if test -z "$ac_cpp_err"; then
5270  # Broken: success on invalid input.
5271continue
5272else
5273  echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276  # Passes both tests.
5277ac_preproc_ok=:
5278break
5279fi
5280rm -f conftest.err conftest.$ac_ext
5281
5282done
5283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5284rm -f conftest.err conftest.$ac_ext
5285if $ac_preproc_ok; then
5286  break
5287fi
5288
5289    done
5290    ac_cv_prog_CXXCPP=$CXXCPP
5291
5292fi
5293  CXXCPP=$ac_cv_prog_CXXCPP
5294else
5295  ac_cv_prog_CXXCPP=$CXXCPP
5296fi
5297echo "$as_me:$LINENO: result: $CXXCPP" >&5
5298echo "${ECHO_T}$CXXCPP" >&6
5299ac_preproc_ok=false
5300for ac_cxx_preproc_warn_flag in '' yes
5301do
5302  # Use a header file that comes with gcc, so configuring glibc
5303  # with a fresh cross-compiler works.
5304  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5305  # <limits.h> exists even on freestanding compilers.
5306  # On the NeXT, cc -E runs the code through the compiler's parser,
5307  # not just through cpp. "Syntax error" is here to catch this case.
5308  cat >conftest.$ac_ext <<_ACEOF
5309/* confdefs.h.  */
5310_ACEOF
5311cat confdefs.h >>conftest.$ac_ext
5312cat >>conftest.$ac_ext <<_ACEOF
5313/* end confdefs.h.  */
5314#ifdef __STDC__
5315# include <limits.h>
5316#else
5317# include <assert.h>
5318#endif
5319		     Syntax error
5320_ACEOF
5321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5322  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5323  ac_status=$?
5324  grep -v '^ *+' conftest.er1 >conftest.err
5325  rm -f conftest.er1
5326  cat conftest.err >&5
5327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328  (exit $ac_status); } >/dev/null; then
5329  if test -s conftest.err; then
5330    ac_cpp_err=$ac_cxx_preproc_warn_flag
5331    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5332  else
5333    ac_cpp_err=
5334  fi
5335else
5336  ac_cpp_err=yes
5337fi
5338if test -z "$ac_cpp_err"; then
5339  :
5340else
5341  echo "$as_me: failed program was:" >&5
5342sed 's/^/| /' conftest.$ac_ext >&5
5343
5344  # Broken: fails on valid input.
5345continue
5346fi
5347rm -f conftest.err conftest.$ac_ext
5348
5349  # OK, works on sane cases.  Now check whether non-existent headers
5350  # can be detected and how.
5351  cat >conftest.$ac_ext <<_ACEOF
5352/* confdefs.h.  */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h.  */
5357#include <ac_nonexistent.h>
5358_ACEOF
5359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5360  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5361  ac_status=$?
5362  grep -v '^ *+' conftest.er1 >conftest.err
5363  rm -f conftest.er1
5364  cat conftest.err >&5
5365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366  (exit $ac_status); } >/dev/null; then
5367  if test -s conftest.err; then
5368    ac_cpp_err=$ac_cxx_preproc_warn_flag
5369    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5370  else
5371    ac_cpp_err=
5372  fi
5373else
5374  ac_cpp_err=yes
5375fi
5376if test -z "$ac_cpp_err"; then
5377  # Broken: success on invalid input.
5378continue
5379else
5380  echo "$as_me: failed program was:" >&5
5381sed 's/^/| /' conftest.$ac_ext >&5
5382
5383  # Passes both tests.
5384ac_preproc_ok=:
5385break
5386fi
5387rm -f conftest.err conftest.$ac_ext
5388
5389done
5390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5391rm -f conftest.err conftest.$ac_ext
5392if $ac_preproc_ok; then
5393  :
5394else
5395  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5396See \`config.log' for more details." >&5
5397echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5398See \`config.log' for more details." >&2;}
5399   { (exit 1); exit 1; }; }
5400fi
5401
5402ac_ext=cc
5403ac_cpp='$CXXCPP $CPPFLAGS'
5404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5407
5408fi
5409
5410
5411ac_ext=f
5412ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5413ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5415if test -n "$ac_tool_prefix"; then
5416  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5417  do
5418    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5420echo "$as_me:$LINENO: checking for $ac_word" >&5
5421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422if test "${ac_cv_prog_F77+set}" = set; then
5423  echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425  if test -n "$F77"; then
5426  ac_cv_prog_F77="$F77" # Let the user override the test.
5427else
5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431  IFS=$as_save_IFS
5432  test -z "$as_dir" && as_dir=.
5433  for ac_exec_ext in '' $ac_executable_extensions; do
5434  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5436    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437    break 2
5438  fi
5439done
5440done
5441
5442fi
5443fi
5444F77=$ac_cv_prog_F77
5445if test -n "$F77"; then
5446  echo "$as_me:$LINENO: result: $F77" >&5
5447echo "${ECHO_T}$F77" >&6
5448else
5449  echo "$as_me:$LINENO: result: no" >&5
5450echo "${ECHO_T}no" >&6
5451fi
5452
5453    test -n "$F77" && break
5454  done
5455fi
5456if test -z "$F77"; then
5457  ac_ct_F77=$F77
5458  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5459do
5460  # Extract the first word of "$ac_prog", so it can be a program name with args.
5461set dummy $ac_prog; ac_word=$2
5462echo "$as_me:$LINENO: checking for $ac_word" >&5
5463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5465  echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467  if test -n "$ac_ct_F77"; then
5468  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473  IFS=$as_save_IFS
5474  test -z "$as_dir" && as_dir=.
5475  for ac_exec_ext in '' $ac_executable_extensions; do
5476  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477    ac_cv_prog_ac_ct_F77="$ac_prog"
5478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479    break 2
5480  fi
5481done
5482done
5483
5484fi
5485fi
5486ac_ct_F77=$ac_cv_prog_ac_ct_F77
5487if test -n "$ac_ct_F77"; then
5488  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5489echo "${ECHO_T}$ac_ct_F77" >&6
5490else
5491  echo "$as_me:$LINENO: result: no" >&5
5492echo "${ECHO_T}no" >&6
5493fi
5494
5495  test -n "$ac_ct_F77" && break
5496done
5497
5498  F77=$ac_ct_F77
5499fi
5500
5501
5502# Provide some information about the compiler.
5503echo "$as_me:5503:" \
5504     "checking for Fortran 77 compiler version" >&5
5505ac_compiler=`set X $ac_compile; echo $2`
5506{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5507  (eval $ac_compiler --version </dev/null >&5) 2>&5
5508  ac_status=$?
5509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510  (exit $ac_status); }
5511{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5512  (eval $ac_compiler -v </dev/null >&5) 2>&5
5513  ac_status=$?
5514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); }
5516{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5517  (eval $ac_compiler -V </dev/null >&5) 2>&5
5518  ac_status=$?
5519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); }
5521rm -f a.out
5522
5523# If we don't use `.F' as extension, the preprocessor is not run on the
5524# input file.  (Note that this only needs to work for GNU compilers.)
5525ac_save_ext=$ac_ext
5526ac_ext=F
5527echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5528echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5529if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5530  echo $ECHO_N "(cached) $ECHO_C" >&6
5531else
5532  cat >conftest.$ac_ext <<_ACEOF
5533      program main
5534#ifndef __GNUC__
5535       choke me
5536#endif
5537
5538      end
5539_ACEOF
5540rm -f conftest.$ac_objext
5541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542  (eval $ac_compile) 2>conftest.er1
5543  ac_status=$?
5544  grep -v '^ *+' conftest.er1 >conftest.err
5545  rm -f conftest.er1
5546  cat conftest.err >&5
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); } &&
5549	 { ac_try='test -z "$ac_f77_werror_flag"
5550			 || test ! -s conftest.err'
5551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552  (eval $ac_try) 2>&5
5553  ac_status=$?
5554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); }; } &&
5556	 { ac_try='test -s conftest.$ac_objext'
5557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558  (eval $ac_try) 2>&5
5559  ac_status=$?
5560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561  (exit $ac_status); }; }; then
5562  ac_compiler_gnu=yes
5563else
5564  echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
5566
5567ac_compiler_gnu=no
5568fi
5569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5570ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5571
5572fi
5573echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5574echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5575ac_ext=$ac_save_ext
5576ac_test_FFLAGS=${FFLAGS+set}
5577ac_save_FFLAGS=$FFLAGS
5578FFLAGS=
5579echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5580echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5581if test "${ac_cv_prog_f77_g+set}" = set; then
5582  echo $ECHO_N "(cached) $ECHO_C" >&6
5583else
5584  FFLAGS=-g
5585cat >conftest.$ac_ext <<_ACEOF
5586      program main
5587
5588      end
5589_ACEOF
5590rm -f conftest.$ac_objext
5591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592  (eval $ac_compile) 2>conftest.er1
5593  ac_status=$?
5594  grep -v '^ *+' conftest.er1 >conftest.err
5595  rm -f conftest.er1
5596  cat conftest.err >&5
5597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598  (exit $ac_status); } &&
5599	 { ac_try='test -z "$ac_f77_werror_flag"
5600			 || test ! -s conftest.err'
5601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602  (eval $ac_try) 2>&5
5603  ac_status=$?
5604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605  (exit $ac_status); }; } &&
5606	 { ac_try='test -s conftest.$ac_objext'
5607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608  (eval $ac_try) 2>&5
5609  ac_status=$?
5610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611  (exit $ac_status); }; }; then
5612  ac_cv_prog_f77_g=yes
5613else
5614  echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617ac_cv_prog_f77_g=no
5618fi
5619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5620
5621fi
5622echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5623echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5624if test "$ac_test_FFLAGS" = set; then
5625  FFLAGS=$ac_save_FFLAGS
5626elif test $ac_cv_prog_f77_g = yes; then
5627  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5628    FFLAGS="-g -O2"
5629  else
5630    FFLAGS="-g"
5631  fi
5632else
5633  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5634    FFLAGS="-O2"
5635  else
5636    FFLAGS=
5637  fi
5638fi
5639
5640G77=`test $ac_compiler_gnu = yes && echo yes`
5641ac_ext=c
5642ac_cpp='$CPP $CPPFLAGS'
5643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646
5647
5648
5649# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5650
5651# find the maximum length of command line arguments
5652echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5653echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5654if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5655  echo $ECHO_N "(cached) $ECHO_C" >&6
5656else
5657    i=0
5658  teststring="ABCD"
5659
5660  case $build_os in
5661  msdosdjgpp*)
5662    # On DJGPP, this test can blow up pretty badly due to problems in libc
5663    # (any single argument exceeding 2000 bytes causes a buffer overrun
5664    # during glob expansion).  Even if it were fixed, the result of this
5665    # check would be larger than it should be.
5666    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5667    ;;
5668
5669  gnu*)
5670    # Under GNU Hurd, this test is not required because there is
5671    # no limit to the length of command line arguments.
5672    # Libtool will interpret -1 as no limit whatsoever
5673    lt_cv_sys_max_cmd_len=-1;
5674    ;;
5675
5676  cygwin* | mingw*)
5677    # On Win9x/ME, this test blows up -- it succeeds, but takes
5678    # about 5 minutes as the teststring grows exponentially.
5679    # Worse, since 9x/ME are not pre-emptively multitasking,
5680    # you end up with a "frozen" computer, even though with patience
5681    # the test eventually succeeds (with a max line length of 256k).
5682    # Instead, let's just punt: use the minimum linelength reported by
5683    # all of the supported platforms: 8192 (on NT/2K/XP).
5684    lt_cv_sys_max_cmd_len=8192;
5685    ;;
5686
5687  amigaos*)
5688    # On AmigaOS with pdksh, this test takes hours, literally.
5689    # So we just punt and use a minimum line length of 8192.
5690    lt_cv_sys_max_cmd_len=8192;
5691    ;;
5692
5693  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5694    # This has been around since 386BSD, at least.  Likely further.
5695    if test -x /sbin/sysctl; then
5696      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5697    elif test -x /usr/sbin/sysctl; then
5698      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5699    else
5700      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5701    fi
5702    # And add a safety zone
5703    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5704    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5705    ;;
5706
5707  interix*)
5708    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5709    lt_cv_sys_max_cmd_len=196608
5710    ;;
5711
5712  osf*)
5713    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5714    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5715    # nice to cause kernel panics so lets avoid the loop below.
5716    # First set a reasonable default.
5717    lt_cv_sys_max_cmd_len=16384
5718    #
5719    if test -x /sbin/sysconfig; then
5720      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5721        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5722      esac
5723    fi
5724    ;;
5725  sco3.2v5*)
5726    lt_cv_sys_max_cmd_len=102400
5727    ;;
5728  sysv5* | sco5v6* | sysv4.2uw2*)
5729    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5730    if test -n "$kargmax"; then
5731      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5732    else
5733      lt_cv_sys_max_cmd_len=32768
5734    fi
5735    ;;
5736  *)
5737    # If test is not a shell built-in, we'll probably end up computing a
5738    # maximum length that is only half of the actual maximum length, but
5739    # we can't tell.
5740    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5741    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5742	       = "XX$teststring") >/dev/null 2>&1 &&
5743	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5744	    lt_cv_sys_max_cmd_len=$new_result &&
5745	    test $i != 17 # 1/2 MB should be enough
5746    do
5747      i=`expr $i + 1`
5748      teststring=$teststring$teststring
5749    done
5750    teststring=
5751    # Add a significant safety factor because C++ compilers can tack on massive
5752    # amounts of additional arguments before passing them to the linker.
5753    # It appears as though 1/2 is a usable value.
5754    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5755    ;;
5756  esac
5757
5758fi
5759
5760if test -n $lt_cv_sys_max_cmd_len ; then
5761  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5762echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5763else
5764  echo "$as_me:$LINENO: result: none" >&5
5765echo "${ECHO_T}none" >&6
5766fi
5767
5768
5769
5770
5771# Check for command to grab the raw symbol name followed by C symbol from nm.
5772echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5773echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5774if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5775  echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777
5778# These are sane defaults that work on at least a few old systems.
5779# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5780
5781# Character class describing NM global symbol codes.
5782symcode='[BCDEGRST]'
5783
5784# Regexp to match symbols that can be accessed directly from C.
5785sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5786
5787# Transform an extracted symbol line into a proper C declaration
5788lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5789
5790# Transform an extracted symbol line into symbol name and symbol address
5791lt_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'"
5792
5793# Define system-specific variables.
5794case $host_os in
5795aix*)
5796  symcode='[BCDT]'
5797  ;;
5798cygwin* | mingw* | pw32*)
5799  symcode='[ABCDGISTW]'
5800  ;;
5801hpux*) # Its linker distinguishes data from code symbols
5802  if test "$host_cpu" = ia64; then
5803    symcode='[ABCDEGRST]'
5804  fi
5805  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5806  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'"
5807  ;;
5808linux*)
5809  if test "$host_cpu" = ia64; then
5810    symcode='[ABCDGIRSTW]'
5811    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5812    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'"
5813  fi
5814  ;;
5815irix* | nonstopux*)
5816  symcode='[BCDEGRST]'
5817  ;;
5818osf*)
5819  symcode='[BCDEGQRST]'
5820  ;;
5821solaris*)
5822  symcode='[BDRT]'
5823  ;;
5824sco3.2v5*)
5825  symcode='[DT]'
5826  ;;
5827sysv4.2uw2*)
5828  symcode='[DT]'
5829  ;;
5830sysv5* | sco5v6* | unixware* | OpenUNIX*)
5831  symcode='[ABDT]'
5832  ;;
5833sysv4)
5834  symcode='[DFNSTU]'
5835  ;;
5836esac
5837
5838# Handle CRLF in mingw tool chain
5839opt_cr=
5840case $build_os in
5841mingw*)
5842  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5843  ;;
5844esac
5845
5846# If we're using GNU nm, then use its standard symbol codes.
5847case `$NM -V 2>&1` in
5848*GNU* | *'with BFD'*)
5849  symcode='[ABCDGIRSTW]' ;;
5850esac
5851
5852# Try without a prefix undercore, then with it.
5853for ac_symprfx in "" "_"; do
5854
5855  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5856  symxfrm="\\1 $ac_symprfx\\2 \\2"
5857
5858  # Write the raw and C identifiers.
5859  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5860
5861  # Check to see that the pipe works correctly.
5862  pipe_works=no
5863
5864  rm -f conftest*
5865  cat > conftest.$ac_ext <<EOF
5866#ifdef __cplusplus
5867extern "C" {
5868#endif
5869char nm_test_var;
5870void nm_test_func(){}
5871#ifdef __cplusplus
5872}
5873#endif
5874int main(){nm_test_var='a';nm_test_func();return(0);}
5875EOF
5876
5877  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878  (eval $ac_compile) 2>&5
5879  ac_status=$?
5880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881  (exit $ac_status); }; then
5882    # Now try to grab the symbols.
5883    nlist=conftest.nm
5884    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5885  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5886  ac_status=$?
5887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888  (exit $ac_status); } && test -s "$nlist"; then
5889      # Try sorting and uniquifying the output.
5890      if sort "$nlist" | uniq > "$nlist"T; then
5891	mv -f "$nlist"T "$nlist"
5892      else
5893	rm -f "$nlist"T
5894      fi
5895
5896      # Make sure that we snagged all the symbols we need.
5897      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5898	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5899	  cat <<EOF > conftest.$ac_ext
5900#ifdef __cplusplus
5901extern "C" {
5902#endif
5903
5904EOF
5905	  # Now generate the symbol file.
5906	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5907
5908	  cat <<EOF >> conftest.$ac_ext
5909#if defined (__STDC__) && __STDC__
5910# define lt_ptr_t void *
5911#else
5912# define lt_ptr_t char *
5913# define const
5914#endif
5915
5916/* The mapping between symbol names and symbols. */
5917const struct {
5918  const char *name;
5919  lt_ptr_t address;
5920}
5921lt_preloaded_symbols[] =
5922{
5923EOF
5924	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5925	  cat <<\EOF >> conftest.$ac_ext
5926  {0, (lt_ptr_t) 0}
5927};
5928
5929#ifdef __cplusplus
5930}
5931#endif
5932EOF
5933	  # Now try linking the two files.
5934	  mv conftest.$ac_objext conftstm.$ac_objext
5935	  lt_save_LIBS="$LIBS"
5936	  lt_save_CFLAGS="$CFLAGS"
5937	  LIBS="conftstm.$ac_objext"
5938	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5939	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5940  (eval $ac_link) 2>&5
5941  ac_status=$?
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5944	    pipe_works=yes
5945	  fi
5946	  LIBS="$lt_save_LIBS"
5947	  CFLAGS="$lt_save_CFLAGS"
5948	else
5949	  echo "cannot find nm_test_func in $nlist" >&5
5950	fi
5951      else
5952	echo "cannot find nm_test_var in $nlist" >&5
5953      fi
5954    else
5955      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5956    fi
5957  else
5958    echo "$progname: failed program was:" >&5
5959    cat conftest.$ac_ext >&5
5960  fi
5961  rm -f conftest* conftst*
5962
5963  # Do not use the global_symbol_pipe unless it works.
5964  if test "$pipe_works" = yes; then
5965    break
5966  else
5967    lt_cv_sys_global_symbol_pipe=
5968  fi
5969done
5970
5971fi
5972
5973if test -z "$lt_cv_sys_global_symbol_pipe"; then
5974  lt_cv_sys_global_symbol_to_cdecl=
5975fi
5976if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5977  echo "$as_me:$LINENO: result: failed" >&5
5978echo "${ECHO_T}failed" >&6
5979else
5980  echo "$as_me:$LINENO: result: ok" >&5
5981echo "${ECHO_T}ok" >&6
5982fi
5983
5984echo "$as_me:$LINENO: checking for objdir" >&5
5985echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5986if test "${lt_cv_objdir+set}" = set; then
5987  echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
5989  rm -f .libs 2>/dev/null
5990mkdir .libs 2>/dev/null
5991if test -d .libs; then
5992  lt_cv_objdir=.libs
5993else
5994  # MS-DOS does not allow filenames that begin with a dot.
5995  lt_cv_objdir=_libs
5996fi
5997rmdir .libs 2>/dev/null
5998fi
5999echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6000echo "${ECHO_T}$lt_cv_objdir" >&6
6001objdir=$lt_cv_objdir
6002
6003
6004
6005
6006
6007case $host_os in
6008aix3*)
6009  # AIX sometimes has problems with the GCC collect2 program.  For some
6010  # reason, if we set the COLLECT_NAMES environment variable, the problems
6011  # vanish in a puff of smoke.
6012  if test "X${COLLECT_NAMES+set}" != Xset; then
6013    COLLECT_NAMES=
6014    export COLLECT_NAMES
6015  fi
6016  ;;
6017esac
6018
6019# Sed substitution that helps us do robust quoting.  It backslashifies
6020# metacharacters that are still active within double-quoted strings.
6021Xsed='sed -e 1s/^X//'
6022sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6023
6024# Same as above, but do not quote variable references.
6025double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6026
6027# Sed substitution to delay expansion of an escaped shell variable in a
6028# double_quote_subst'ed string.
6029delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6030
6031# Sed substitution to avoid accidental globbing in evaled expressions
6032no_glob_subst='s/\*/\\\*/g'
6033
6034# Constants:
6035rm="rm -f"
6036
6037# Global variables:
6038default_ofile=libtool
6039can_build_shared=yes
6040
6041# All known linkers require a `.a' archive for static linking (except MSVC,
6042# which needs '.lib').
6043libext=a
6044ltmain="$ac_aux_dir/ltmain.sh"
6045ofile="$default_ofile"
6046with_gnu_ld="$lt_cv_prog_gnu_ld"
6047
6048if test -n "$ac_tool_prefix"; then
6049  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6050set dummy ${ac_tool_prefix}ar; ac_word=$2
6051echo "$as_me:$LINENO: checking for $ac_word" >&5
6052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053if test "${ac_cv_prog_AR+set}" = set; then
6054  echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056  if test -n "$AR"; then
6057  ac_cv_prog_AR="$AR" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064  for ac_exec_ext in '' $ac_executable_extensions; do
6065  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066    ac_cv_prog_AR="${ac_tool_prefix}ar"
6067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071done
6072
6073fi
6074fi
6075AR=$ac_cv_prog_AR
6076if test -n "$AR"; then
6077  echo "$as_me:$LINENO: result: $AR" >&5
6078echo "${ECHO_T}$AR" >&6
6079else
6080  echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
6082fi
6083
6084fi
6085if test -z "$ac_cv_prog_AR"; then
6086  ac_ct_AR=$AR
6087  # Extract the first word of "ar", so it can be a program name with args.
6088set dummy ar; ac_word=$2
6089echo "$as_me:$LINENO: checking for $ac_word" >&5
6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6091if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6092  echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094  if test -n "$ac_ct_AR"; then
6095  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100  IFS=$as_save_IFS
6101  test -z "$as_dir" && as_dir=.
6102  for ac_exec_ext in '' $ac_executable_extensions; do
6103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104    ac_cv_prog_ac_ct_AR="ar"
6105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106    break 2
6107  fi
6108done
6109done
6110
6111  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6112fi
6113fi
6114ac_ct_AR=$ac_cv_prog_ac_ct_AR
6115if test -n "$ac_ct_AR"; then
6116  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6117echo "${ECHO_T}$ac_ct_AR" >&6
6118else
6119  echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6
6121fi
6122
6123  AR=$ac_ct_AR
6124else
6125  AR="$ac_cv_prog_AR"
6126fi
6127
6128if test -n "$ac_tool_prefix"; then
6129  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6130set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6131echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6133if test "${ac_cv_prog_RANLIB+set}" = set; then
6134  echo $ECHO_N "(cached) $ECHO_C" >&6
6135else
6136  if test -n "$RANLIB"; then
6137  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142  IFS=$as_save_IFS
6143  test -z "$as_dir" && as_dir=.
6144  for ac_exec_ext in '' $ac_executable_extensions; do
6145  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148    break 2
6149  fi
6150done
6151done
6152
6153fi
6154fi
6155RANLIB=$ac_cv_prog_RANLIB
6156if test -n "$RANLIB"; then
6157  echo "$as_me:$LINENO: result: $RANLIB" >&5
6158echo "${ECHO_T}$RANLIB" >&6
6159else
6160  echo "$as_me:$LINENO: result: no" >&5
6161echo "${ECHO_T}no" >&6
6162fi
6163
6164fi
6165if test -z "$ac_cv_prog_RANLIB"; then
6166  ac_ct_RANLIB=$RANLIB
6167  # Extract the first word of "ranlib", so it can be a program name with args.
6168set dummy ranlib; ac_word=$2
6169echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6171if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6172  echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174  if test -n "$ac_ct_RANLIB"; then
6175  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180  IFS=$as_save_IFS
6181  test -z "$as_dir" && as_dir=.
6182  for ac_exec_ext in '' $ac_executable_extensions; do
6183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184    ac_cv_prog_ac_ct_RANLIB="ranlib"
6185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186    break 2
6187  fi
6188done
6189done
6190
6191  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6192fi
6193fi
6194ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195if test -n "$ac_ct_RANLIB"; then
6196  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6197echo "${ECHO_T}$ac_ct_RANLIB" >&6
6198else
6199  echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6
6201fi
6202
6203  RANLIB=$ac_ct_RANLIB
6204else
6205  RANLIB="$ac_cv_prog_RANLIB"
6206fi
6207
6208if test -n "$ac_tool_prefix"; then
6209  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6210set dummy ${ac_tool_prefix}strip; ac_word=$2
6211echo "$as_me:$LINENO: checking for $ac_word" >&5
6212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6213if test "${ac_cv_prog_STRIP+set}" = set; then
6214  echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216  if test -n "$STRIP"; then
6217  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222  IFS=$as_save_IFS
6223  test -z "$as_dir" && as_dir=.
6224  for ac_exec_ext in '' $ac_executable_extensions; do
6225  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228    break 2
6229  fi
6230done
6231done
6232
6233fi
6234fi
6235STRIP=$ac_cv_prog_STRIP
6236if test -n "$STRIP"; then
6237  echo "$as_me:$LINENO: result: $STRIP" >&5
6238echo "${ECHO_T}$STRIP" >&6
6239else
6240  echo "$as_me:$LINENO: result: no" >&5
6241echo "${ECHO_T}no" >&6
6242fi
6243
6244fi
6245if test -z "$ac_cv_prog_STRIP"; then
6246  ac_ct_STRIP=$STRIP
6247  # Extract the first word of "strip", so it can be a program name with args.
6248set dummy strip; ac_word=$2
6249echo "$as_me:$LINENO: checking for $ac_word" >&5
6250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6251if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6252  echo $ECHO_N "(cached) $ECHO_C" >&6
6253else
6254  if test -n "$ac_ct_STRIP"; then
6255  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6256else
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260  IFS=$as_save_IFS
6261  test -z "$as_dir" && as_dir=.
6262  for ac_exec_ext in '' $ac_executable_extensions; do
6263  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264    ac_cv_prog_ac_ct_STRIP="strip"
6265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266    break 2
6267  fi
6268done
6269done
6270
6271  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6272fi
6273fi
6274ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6275if test -n "$ac_ct_STRIP"; then
6276  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6277echo "${ECHO_T}$ac_ct_STRIP" >&6
6278else
6279  echo "$as_me:$LINENO: result: no" >&5
6280echo "${ECHO_T}no" >&6
6281fi
6282
6283  STRIP=$ac_ct_STRIP
6284else
6285  STRIP="$ac_cv_prog_STRIP"
6286fi
6287
6288
6289old_CC="$CC"
6290old_CFLAGS="$CFLAGS"
6291
6292# Set sane defaults for various variables
6293test -z "$AR" && AR=ar
6294test -z "$AR_FLAGS" && AR_FLAGS=cru
6295test -z "$AS" && AS=as
6296test -z "$CC" && CC=cc
6297test -z "$LTCC" && LTCC=$CC
6298test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6299test -z "$DLLTOOL" && DLLTOOL=dlltool
6300test -z "$LD" && LD=ld
6301test -z "$LN_S" && LN_S="ln -s"
6302test -z "$MAGIC_CMD" && MAGIC_CMD=file
6303test -z "$NM" && NM=nm
6304test -z "$SED" && SED=sed
6305test -z "$OBJDUMP" && OBJDUMP=objdump
6306test -z "$RANLIB" && RANLIB=:
6307test -z "$STRIP" && STRIP=:
6308test -z "$ac_objext" && ac_objext=o
6309
6310# Determine commands to create old-style static archives.
6311old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6312old_postinstall_cmds='chmod 644 $oldlib'
6313old_postuninstall_cmds=
6314
6315if test -n "$RANLIB"; then
6316  case $host_os in
6317  openbsd*)
6318    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6319    ;;
6320  *)
6321    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6322    ;;
6323  esac
6324  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6325fi
6326
6327for cc_temp in $compiler""; do
6328  case $cc_temp in
6329    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6330    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6331    \-*) ;;
6332    *) break;;
6333  esac
6334done
6335cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6336
6337
6338# Only perform the check for file, if the check method requires it
6339case $deplibs_check_method in
6340file_magic*)
6341  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6342    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6343echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6344if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6345  echo $ECHO_N "(cached) $ECHO_C" >&6
6346else
6347  case $MAGIC_CMD in
6348[\\/*] |  ?:[\\/]*)
6349  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6350  ;;
6351*)
6352  lt_save_MAGIC_CMD="$MAGIC_CMD"
6353  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6354  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6355  for ac_dir in $ac_dummy; do
6356    IFS="$lt_save_ifs"
6357    test -z "$ac_dir" && ac_dir=.
6358    if test -f $ac_dir/${ac_tool_prefix}file; then
6359      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6360      if test -n "$file_magic_test_file"; then
6361	case $deplibs_check_method in
6362	"file_magic "*)
6363	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6364	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6365	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6366	    $EGREP "$file_magic_regex" > /dev/null; then
6367	    :
6368	  else
6369	    cat <<EOF 1>&2
6370
6371*** Warning: the command libtool uses to detect shared libraries,
6372*** $file_magic_cmd, produces output that libtool cannot recognize.
6373*** The result is that libtool may fail to recognize shared libraries
6374*** as such.  This will affect the creation of libtool libraries that
6375*** depend on shared libraries, but programs linked with such libtool
6376*** libraries will work regardless of this problem.  Nevertheless, you
6377*** may want to report the problem to your system manager and/or to
6378*** bug-libtool@gnu.org
6379
6380EOF
6381	  fi ;;
6382	esac
6383      fi
6384      break
6385    fi
6386  done
6387  IFS="$lt_save_ifs"
6388  MAGIC_CMD="$lt_save_MAGIC_CMD"
6389  ;;
6390esac
6391fi
6392
6393MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6394if test -n "$MAGIC_CMD"; then
6395  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6396echo "${ECHO_T}$MAGIC_CMD" >&6
6397else
6398  echo "$as_me:$LINENO: result: no" >&5
6399echo "${ECHO_T}no" >&6
6400fi
6401
6402if test -z "$lt_cv_path_MAGIC_CMD"; then
6403  if test -n "$ac_tool_prefix"; then
6404    echo "$as_me:$LINENO: checking for file" >&5
6405echo $ECHO_N "checking for file... $ECHO_C" >&6
6406if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6407  echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
6409  case $MAGIC_CMD in
6410[\\/*] |  ?:[\\/]*)
6411  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6412  ;;
6413*)
6414  lt_save_MAGIC_CMD="$MAGIC_CMD"
6415  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6416  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6417  for ac_dir in $ac_dummy; do
6418    IFS="$lt_save_ifs"
6419    test -z "$ac_dir" && ac_dir=.
6420    if test -f $ac_dir/file; then
6421      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6422      if test -n "$file_magic_test_file"; then
6423	case $deplibs_check_method in
6424	"file_magic "*)
6425	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6426	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6427	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6428	    $EGREP "$file_magic_regex" > /dev/null; then
6429	    :
6430	  else
6431	    cat <<EOF 1>&2
6432
6433*** Warning: the command libtool uses to detect shared libraries,
6434*** $file_magic_cmd, produces output that libtool cannot recognize.
6435*** The result is that libtool may fail to recognize shared libraries
6436*** as such.  This will affect the creation of libtool libraries that
6437*** depend on shared libraries, but programs linked with such libtool
6438*** libraries will work regardless of this problem.  Nevertheless, you
6439*** may want to report the problem to your system manager and/or to
6440*** bug-libtool@gnu.org
6441
6442EOF
6443	  fi ;;
6444	esac
6445      fi
6446      break
6447    fi
6448  done
6449  IFS="$lt_save_ifs"
6450  MAGIC_CMD="$lt_save_MAGIC_CMD"
6451  ;;
6452esac
6453fi
6454
6455MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6456if test -n "$MAGIC_CMD"; then
6457  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6458echo "${ECHO_T}$MAGIC_CMD" >&6
6459else
6460  echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6
6462fi
6463
6464  else
6465    MAGIC_CMD=:
6466  fi
6467fi
6468
6469  fi
6470  ;;
6471esac
6472
6473enable_dlopen=no
6474enable_win32_dll=no
6475
6476# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6477if test "${enable_libtool_lock+set}" = set; then
6478  enableval="$enable_libtool_lock"
6479
6480fi;
6481test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6482
6483
6484# Check whether --with-pic or --without-pic was given.
6485if test "${with_pic+set}" = set; then
6486  withval="$with_pic"
6487  pic_mode="$withval"
6488else
6489  pic_mode=default
6490fi;
6491test -z "$pic_mode" && pic_mode=default
6492
6493# Use C for the default configuration in the libtool script
6494tagname=
6495lt_save_CC="$CC"
6496ac_ext=c
6497ac_cpp='$CPP $CPPFLAGS'
6498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501
6502
6503# Source file extension for C test sources.
6504ac_ext=c
6505
6506# Object file extension for compiled C test sources.
6507objext=o
6508objext=$objext
6509
6510# Code to be used in simple compile tests
6511lt_simple_compile_test_code="int some_variable = 0;\n"
6512
6513# Code to be used in simple link tests
6514lt_simple_link_test_code='int main(){return(0);}\n'
6515
6516
6517# If no C compiler was specified, use CC.
6518LTCC=${LTCC-"$CC"}
6519
6520# If no C compiler flags were specified, use CFLAGS.
6521LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6522
6523# Allow CC to be a program name with arguments.
6524compiler=$CC
6525
6526
6527# save warnings/boilerplate of simple test code
6528ac_outfile=conftest.$ac_objext
6529printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6530eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6531_lt_compiler_boilerplate=`cat conftest.err`
6532$rm conftest*
6533
6534ac_outfile=conftest.$ac_objext
6535printf "$lt_simple_link_test_code" >conftest.$ac_ext
6536eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6537_lt_linker_boilerplate=`cat conftest.err`
6538$rm conftest*
6539
6540
6541
6542lt_prog_compiler_no_builtin_flag=
6543
6544if test "$GCC" = yes; then
6545  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6546
6547
6548echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6549echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6550if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6551  echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553  lt_cv_prog_compiler_rtti_exceptions=no
6554  ac_outfile=conftest.$ac_objext
6555   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6556   lt_compiler_flag="-fno-rtti -fno-exceptions"
6557   # Insert the option either (1) after the last *FLAGS variable, or
6558   # (2) before a word containing "conftest.", or (3) at the end.
6559   # Note that $ac_compile itself does not contain backslashes and begins
6560   # with a dollar sign (not a hyphen), so the echo should work correctly.
6561   # The option is referenced via a variable to avoid confusing sed.
6562   lt_compile=`echo "$ac_compile" | $SED \
6563   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6565   -e 's:$: $lt_compiler_flag:'`
6566   (eval echo "\"\$as_me:6566: $lt_compile\"" >&5)
6567   (eval "$lt_compile" 2>conftest.err)
6568   ac_status=$?
6569   cat conftest.err >&5
6570   echo "$as_me:6570: \$? = $ac_status" >&5
6571   if (exit $ac_status) && test -s "$ac_outfile"; then
6572     # The compiler can only warn and ignore the option if not recognized
6573     # So say no if there are warnings other than the usual output.
6574     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6575     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6576     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6577       lt_cv_prog_compiler_rtti_exceptions=yes
6578     fi
6579   fi
6580   $rm conftest*
6581
6582fi
6583echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6584echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6585
6586if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6587    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6588else
6589    :
6590fi
6591
6592fi
6593
6594lt_prog_compiler_wl=
6595lt_prog_compiler_pic=
6596lt_prog_compiler_static=
6597
6598echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6599echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6600
6601  if test "$GCC" = yes; then
6602    lt_prog_compiler_wl='-Wl,'
6603    lt_prog_compiler_static='-static'
6604
6605    case $host_os in
6606      aix*)
6607      # All AIX code is PIC.
6608      if test "$host_cpu" = ia64; then
6609	# AIX 5 now supports IA64 processor
6610	lt_prog_compiler_static='-Bstatic'
6611      fi
6612      ;;
6613
6614    amigaos*)
6615      # FIXME: we need at least 68020 code to build shared libraries, but
6616      # adding the `-m68020' flag to GCC prevents building anything better,
6617      # like `-m68040'.
6618      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6619      ;;
6620
6621    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6622      # PIC is the default for these OSes.
6623      ;;
6624
6625    mingw* | pw32* | os2*)
6626      # This hack is so that the source file can tell whether it is being
6627      # built for inclusion in a dll (and should export symbols for example).
6628      lt_prog_compiler_pic='-DDLL_EXPORT'
6629      ;;
6630
6631    darwin* | rhapsody*)
6632      # PIC is the default on this platform
6633      # Common symbols not allowed in MH_DYLIB files
6634      lt_prog_compiler_pic='-fno-common'
6635      ;;
6636
6637    interix3*)
6638      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6639      # Instead, we relocate shared libraries at runtime.
6640      ;;
6641
6642    msdosdjgpp*)
6643      # Just because we use GCC doesn't mean we suddenly get shared libraries
6644      # on systems that don't support them.
6645      lt_prog_compiler_can_build_shared=no
6646      enable_shared=no
6647      ;;
6648
6649    sysv4*MP*)
6650      if test -d /usr/nec; then
6651	lt_prog_compiler_pic=-Kconform_pic
6652      fi
6653      ;;
6654
6655    hpux*)
6656      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6657      # not for PA HP-UX.
6658      case $host_cpu in
6659      hppa*64*|ia64*)
6660	# +Z the default
6661	;;
6662      *)
6663	lt_prog_compiler_pic='-fPIC'
6664	;;
6665      esac
6666      ;;
6667
6668    *)
6669      lt_prog_compiler_pic='-fPIC'
6670      ;;
6671    esac
6672  else
6673    # PORTME Check for flag to pass linker flags through the system compiler.
6674    case $host_os in
6675    aix*)
6676      lt_prog_compiler_wl='-Wl,'
6677      if test "$host_cpu" = ia64; then
6678	# AIX 5 now supports IA64 processor
6679	lt_prog_compiler_static='-Bstatic'
6680      else
6681	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6682      fi
6683      ;;
6684      darwin*)
6685        # PIC is the default on this platform
6686        # Common symbols not allowed in MH_DYLIB files
6687       case $cc_basename in
6688         xlc*)
6689         lt_prog_compiler_pic='-qnocommon'
6690         lt_prog_compiler_wl='-Wl,'
6691         ;;
6692       esac
6693       ;;
6694
6695    mingw* | pw32* | os2*)
6696      # This hack is so that the source file can tell whether it is being
6697      # built for inclusion in a dll (and should export symbols for example).
6698      lt_prog_compiler_pic='-DDLL_EXPORT'
6699      ;;
6700
6701    hpux9* | hpux10* | hpux11*)
6702      lt_prog_compiler_wl='-Wl,'
6703      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6704      # not for PA HP-UX.
6705      case $host_cpu in
6706      hppa*64*|ia64*)
6707	# +Z the default
6708	;;
6709      *)
6710	lt_prog_compiler_pic='+Z'
6711	;;
6712      esac
6713      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6714      lt_prog_compiler_static='${wl}-a ${wl}archive'
6715      ;;
6716
6717    irix5* | irix6* | nonstopux*)
6718      lt_prog_compiler_wl='-Wl,'
6719      # PIC (with -KPIC) is the default.
6720      lt_prog_compiler_static='-non_shared'
6721      ;;
6722
6723    newsos6)
6724      lt_prog_compiler_pic='-KPIC'
6725      lt_prog_compiler_static='-Bstatic'
6726      ;;
6727
6728    linux*)
6729      case $cc_basename in
6730      icc* | ecc*)
6731	lt_prog_compiler_wl='-Wl,'
6732	lt_prog_compiler_pic='-KPIC'
6733	lt_prog_compiler_static='-static'
6734        ;;
6735      pgcc* | pgf77* | pgf90* | pgf95*)
6736        # Portland Group compilers (*not* the Pentium gcc compiler,
6737	# which looks to be a dead project)
6738	lt_prog_compiler_wl='-Wl,'
6739	lt_prog_compiler_pic='-fpic'
6740	lt_prog_compiler_static='-Bstatic'
6741        ;;
6742      ccc*)
6743        lt_prog_compiler_wl='-Wl,'
6744        # All Alpha code is PIC.
6745        lt_prog_compiler_static='-non_shared'
6746        ;;
6747      esac
6748      ;;
6749
6750    osf3* | osf4* | osf5*)
6751      lt_prog_compiler_wl='-Wl,'
6752      # All OSF/1 code is PIC.
6753      lt_prog_compiler_static='-non_shared'
6754      ;;
6755
6756    solaris*)
6757      lt_prog_compiler_pic='-KPIC'
6758      lt_prog_compiler_static='-Bstatic'
6759      case $cc_basename in
6760      f77* | f90* | f95*)
6761	lt_prog_compiler_wl='-Qoption ld ';;
6762      *)
6763	lt_prog_compiler_wl='-Wl,';;
6764      esac
6765      ;;
6766
6767    sunos4*)
6768      lt_prog_compiler_wl='-Qoption ld '
6769      lt_prog_compiler_pic='-PIC'
6770      lt_prog_compiler_static='-Bstatic'
6771      ;;
6772
6773    sysv4 | sysv4.2uw2* | sysv4.3*)
6774      lt_prog_compiler_wl='-Wl,'
6775      lt_prog_compiler_pic='-KPIC'
6776      lt_prog_compiler_static='-Bstatic'
6777      ;;
6778
6779    sysv4*MP*)
6780      if test -d /usr/nec ;then
6781	lt_prog_compiler_pic='-Kconform_pic'
6782	lt_prog_compiler_static='-Bstatic'
6783      fi
6784      ;;
6785
6786    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6787      lt_prog_compiler_wl='-Wl,'
6788      lt_prog_compiler_pic='-KPIC'
6789      lt_prog_compiler_static='-Bstatic'
6790      ;;
6791
6792    unicos*)
6793      lt_prog_compiler_wl='-Wl,'
6794      lt_prog_compiler_can_build_shared=no
6795      ;;
6796
6797    uts4*)
6798      lt_prog_compiler_pic='-pic'
6799      lt_prog_compiler_static='-Bstatic'
6800      ;;
6801
6802    *)
6803      lt_prog_compiler_can_build_shared=no
6804      ;;
6805    esac
6806  fi
6807
6808echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6809echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6810
6811#
6812# Check to make sure the PIC flag actually works.
6813#
6814if test -n "$lt_prog_compiler_pic"; then
6815
6816echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6817echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6818if test "${lt_prog_compiler_pic_works+set}" = set; then
6819  echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821  lt_prog_compiler_pic_works=no
6822  ac_outfile=conftest.$ac_objext
6823   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6824   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6825   # Insert the option either (1) after the last *FLAGS variable, or
6826   # (2) before a word containing "conftest.", or (3) at the end.
6827   # Note that $ac_compile itself does not contain backslashes and begins
6828   # with a dollar sign (not a hyphen), so the echo should work correctly.
6829   # The option is referenced via a variable to avoid confusing sed.
6830   lt_compile=`echo "$ac_compile" | $SED \
6831   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6832   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6833   -e 's:$: $lt_compiler_flag:'`
6834   (eval echo "\"\$as_me:6834: $lt_compile\"" >&5)
6835   (eval "$lt_compile" 2>conftest.err)
6836   ac_status=$?
6837   cat conftest.err >&5
6838   echo "$as_me:6838: \$? = $ac_status" >&5
6839   if (exit $ac_status) && test -s "$ac_outfile"; then
6840     # The compiler can only warn and ignore the option if not recognized
6841     # So say no if there are warnings other than the usual output.
6842     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6843     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6844     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6845       lt_prog_compiler_pic_works=yes
6846     fi
6847   fi
6848   $rm conftest*
6849
6850fi
6851echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6852echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6853
6854if test x"$lt_prog_compiler_pic_works" = xyes; then
6855    case $lt_prog_compiler_pic in
6856     "" | " "*) ;;
6857     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6858     esac
6859else
6860    lt_prog_compiler_pic=
6861     lt_prog_compiler_can_build_shared=no
6862fi
6863
6864fi
6865case $host_os in
6866  # For platforms which do not support PIC, -DPIC is meaningless:
6867  *djgpp*)
6868    lt_prog_compiler_pic=
6869    ;;
6870  *)
6871    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6872    ;;
6873esac
6874
6875#
6876# Check to make sure the static flag actually works.
6877#
6878wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6879echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6880echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6881if test "${lt_prog_compiler_static_works+set}" = set; then
6882  echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884  lt_prog_compiler_static_works=no
6885   save_LDFLAGS="$LDFLAGS"
6886   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6887   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6888   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6889     # The linker can only warn and ignore the option if not recognized
6890     # So say no if there are warnings
6891     if test -s conftest.err; then
6892       # Append any errors to the config.log.
6893       cat conftest.err 1>&5
6894       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6895       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6896       if diff conftest.exp conftest.er2 >/dev/null; then
6897         lt_prog_compiler_static_works=yes
6898       fi
6899     else
6900       lt_prog_compiler_static_works=yes
6901     fi
6902   fi
6903   $rm conftest*
6904   LDFLAGS="$save_LDFLAGS"
6905
6906fi
6907echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6908echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6909
6910if test x"$lt_prog_compiler_static_works" = xyes; then
6911    :
6912else
6913    lt_prog_compiler_static=
6914fi
6915
6916
6917echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6918echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6919if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6920  echo $ECHO_N "(cached) $ECHO_C" >&6
6921else
6922  lt_cv_prog_compiler_c_o=no
6923   $rm -r conftest 2>/dev/null
6924   mkdir conftest
6925   cd conftest
6926   mkdir out
6927   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6928
6929   lt_compiler_flag="-o out/conftest2.$ac_objext"
6930   # Insert the option either (1) after the last *FLAGS variable, or
6931   # (2) before a word containing "conftest.", or (3) at the end.
6932   # Note that $ac_compile itself does not contain backslashes and begins
6933   # with a dollar sign (not a hyphen), so the echo should work correctly.
6934   lt_compile=`echo "$ac_compile" | $SED \
6935   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6936   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6937   -e 's:$: $lt_compiler_flag:'`
6938   (eval echo "\"\$as_me:6938: $lt_compile\"" >&5)
6939   (eval "$lt_compile" 2>out/conftest.err)
6940   ac_status=$?
6941   cat out/conftest.err >&5
6942   echo "$as_me:6942: \$? = $ac_status" >&5
6943   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6944   then
6945     # The compiler can only warn and ignore the option if not recognized
6946     # So say no if there are warnings
6947     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6948     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6949     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6950       lt_cv_prog_compiler_c_o=yes
6951     fi
6952   fi
6953   chmod u+w . 2>&5
6954   $rm conftest*
6955   # SGI C++ compiler will create directory out/ii_files/ for
6956   # template instantiation
6957   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6958   $rm out/* && rmdir out
6959   cd ..
6960   rmdir conftest
6961   $rm conftest*
6962
6963fi
6964echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6965echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6966
6967
6968hard_links="nottested"
6969if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6970  # do not overwrite the value of need_locks provided by the user
6971  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6972echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6973  hard_links=yes
6974  $rm conftest*
6975  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6976  touch conftest.a
6977  ln conftest.a conftest.b 2>&5 || hard_links=no
6978  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6979  echo "$as_me:$LINENO: result: $hard_links" >&5
6980echo "${ECHO_T}$hard_links" >&6
6981  if test "$hard_links" = no; then
6982    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6983echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6984    need_locks=warn
6985  fi
6986else
6987  need_locks=no
6988fi
6989
6990echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6991echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6992
6993  runpath_var=
6994  allow_undefined_flag=
6995  enable_shared_with_static_runtimes=no
6996  archive_cmds=
6997  archive_expsym_cmds=
6998  old_archive_From_new_cmds=
6999  old_archive_from_expsyms_cmds=
7000  export_dynamic_flag_spec=
7001  whole_archive_flag_spec=
7002  thread_safe_flag_spec=
7003  hardcode_libdir_flag_spec=
7004  hardcode_libdir_flag_spec_ld=
7005  hardcode_libdir_separator=
7006  hardcode_direct=no
7007  hardcode_minus_L=no
7008  hardcode_shlibpath_var=unsupported
7009  link_all_deplibs=unknown
7010  hardcode_automatic=no
7011  module_cmds=
7012  module_expsym_cmds=
7013  always_export_symbols=no
7014  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7015  # include_expsyms should be a list of space-separated symbols to be *always*
7016  # included in the symbol list
7017  include_expsyms=
7018  # exclude_expsyms can be an extended regexp of symbols to exclude
7019  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7020  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7021  # as well as any symbol that contains `d'.
7022  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7023  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7024  # platforms (ab)use it in PIC code, but their linkers get confused if
7025  # the symbol is explicitly referenced.  Since portable code cannot
7026  # rely on this symbol name, it's probably fine to never include it in
7027  # preloaded symbol tables.
7028  extract_expsyms_cmds=
7029  # Just being paranoid about ensuring that cc_basename is set.
7030  for cc_temp in $compiler""; do
7031  case $cc_temp in
7032    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7033    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7034    \-*) ;;
7035    *) break;;
7036  esac
7037done
7038cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7039
7040  case $host_os in
7041  cygwin* | mingw* | pw32*)
7042    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7043    # When not using gcc, we currently assume that we are using
7044    # Microsoft Visual C++.
7045    if test "$GCC" != yes; then
7046      with_gnu_ld=no
7047    fi
7048    ;;
7049  interix*)
7050    # we just hope/assume this is gcc and not c89 (= MSVC++)
7051    with_gnu_ld=yes
7052    ;;
7053  openbsd*)
7054    with_gnu_ld=no
7055    ;;
7056  esac
7057
7058  ld_shlibs=yes
7059  if test "$with_gnu_ld" = yes; then
7060    # If archive_cmds runs LD, not CC, wlarc should be empty
7061    wlarc='${wl}'
7062
7063    # Set some defaults for GNU ld with shared library support. These
7064    # are reset later if shared libraries are not supported. Putting them
7065    # here allows them to be overridden if necessary.
7066    runpath_var=LD_RUN_PATH
7067    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7068    export_dynamic_flag_spec='${wl}--export-dynamic'
7069    # ancient GNU ld didn't support --whole-archive et. al.
7070    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7071	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7072      else
7073  	whole_archive_flag_spec=
7074    fi
7075    supports_anon_versioning=no
7076    case `$LD -v 2>/dev/null` in
7077      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7078      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7079      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7080      *\ 2.11.*) ;; # other 2.11 versions
7081      *) supports_anon_versioning=yes ;;
7082    esac
7083
7084    # See if GNU ld supports shared libraries.
7085    case $host_os in
7086    aix3* | aix4* | aix5*)
7087      # On AIX/PPC, the GNU linker is very broken
7088      if test "$host_cpu" != ia64; then
7089	ld_shlibs=no
7090	cat <<EOF 1>&2
7091
7092*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7093*** to be unable to reliably create shared libraries on AIX.
7094*** Therefore, libtool is disabling shared libraries support.  If you
7095*** really care for shared libraries, you may want to modify your PATH
7096*** so that a non-GNU linker is found, and then restart.
7097
7098EOF
7099      fi
7100      ;;
7101
7102    amigaos*)
7103      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)'
7104      hardcode_libdir_flag_spec='-L$libdir'
7105      hardcode_minus_L=yes
7106
7107      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7108      # that the semantics of dynamic libraries on AmigaOS, at least up
7109      # to version 4, is to share data among multiple programs linked
7110      # with the same dynamic library.  Since this doesn't match the
7111      # behavior of shared libraries on other platforms, we can't use
7112      # them.
7113      ld_shlibs=no
7114      ;;
7115
7116    beos*)
7117      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7118	allow_undefined_flag=unsupported
7119	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7120	# support --undefined.  This deserves some investigation.  FIXME
7121	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7122      else
7123	ld_shlibs=no
7124      fi
7125      ;;
7126
7127    cygwin* | mingw* | pw32*)
7128      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7129      # as there is no search path for DLLs.
7130      hardcode_libdir_flag_spec='-L$libdir'
7131      allow_undefined_flag=unsupported
7132      always_export_symbols=no
7133      enable_shared_with_static_runtimes=yes
7134      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7135
7136      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7137        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7138	# If the export-symbols file already is a .def file (1st line
7139	# is EXPORTS), use it as is; otherwise, prepend...
7140	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7141	  cp $export_symbols $output_objdir/$soname.def;
7142	else
7143	  echo EXPORTS > $output_objdir/$soname.def;
7144	  cat $export_symbols >> $output_objdir/$soname.def;
7145	fi~
7146	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7147      else
7148	ld_shlibs=no
7149      fi
7150      ;;
7151
7152    interix3*)
7153      hardcode_direct=no
7154      hardcode_shlibpath_var=no
7155      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7156      export_dynamic_flag_spec='${wl}-E'
7157      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7158      # Instead, shared libraries are loaded at an image base (0x10000000 by
7159      # default) and relocated if they conflict, which is a slow very memory
7160      # consuming and fragmenting process.  To avoid this, we pick a random,
7161      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7162      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7163      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7164      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7165      ;;
7166
7167    linux*)
7168      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7169	tmp_addflag=
7170	case $cc_basename,$host_cpu in
7171	pgcc*)				# Portland Group C compiler
7172	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7173	  tmp_addflag=' $pic_flag'
7174	  ;;
7175	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7176	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7177	  tmp_addflag=' $pic_flag -Mnomain' ;;
7178	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7179	  tmp_addflag=' -i_dynamic' ;;
7180	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7181	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7182	ifc* | ifort*)			# Intel Fortran compiler
7183	  tmp_addflag=' -nofor_main' ;;
7184	esac
7185	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7186
7187	if test $supports_anon_versioning = yes; then
7188	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7189  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7190  $echo "local: *; };" >> $output_objdir/$libname.ver~
7191	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7192	fi
7193      else
7194	ld_shlibs=no
7195      fi
7196      ;;
7197
7198    netbsd*)
7199      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7200	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7201	wlarc=
7202      else
7203	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7204	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7205      fi
7206      ;;
7207
7208    solaris*)
7209      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7210	ld_shlibs=no
7211	cat <<EOF 1>&2
7212
7213*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7214*** create shared libraries on Solaris systems.  Therefore, libtool
7215*** is disabling shared libraries support.  We urge you to upgrade GNU
7216*** binutils to release 2.9.1 or newer.  Another option is to modify
7217*** your PATH or compiler configuration so that the native linker is
7218*** used, and then restart.
7219
7220EOF
7221      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7222	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7223	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7224      else
7225	ld_shlibs=no
7226      fi
7227      ;;
7228
7229    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7230      case `$LD -v 2>&1` in
7231        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7232	ld_shlibs=no
7233	cat <<_LT_EOF 1>&2
7234
7235*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7236*** reliably create shared libraries on SCO systems.  Therefore, libtool
7237*** is disabling shared libraries support.  We urge you to upgrade GNU
7238*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7239*** your PATH or compiler configuration so that the native linker is
7240*** used, and then restart.
7241
7242_LT_EOF
7243	;;
7244	*)
7245	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7246	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7247	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7248	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7249	  else
7250	    ld_shlibs=no
7251	  fi
7252	;;
7253      esac
7254      ;;
7255
7256    sunos4*)
7257      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7258      wlarc=
7259      hardcode_direct=yes
7260      hardcode_shlibpath_var=no
7261      ;;
7262
7263    *)
7264      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7265	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7266	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7267      else
7268	ld_shlibs=no
7269      fi
7270      ;;
7271    esac
7272
7273    if test "$ld_shlibs" = no; then
7274      runpath_var=
7275      hardcode_libdir_flag_spec=
7276      export_dynamic_flag_spec=
7277      whole_archive_flag_spec=
7278    fi
7279  else
7280    # PORTME fill in a description of your system's linker (not GNU ld)
7281    case $host_os in
7282    aix3*)
7283      allow_undefined_flag=unsupported
7284      always_export_symbols=yes
7285      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'
7286      # Note: this linker hardcodes the directories in LIBPATH if there
7287      # are no directories specified by -L.
7288      hardcode_minus_L=yes
7289      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7290	# Neither direct hardcoding nor static linking is supported with a
7291	# broken collect2.
7292	hardcode_direct=unsupported
7293      fi
7294      ;;
7295
7296    aix4* | aix5*)
7297      if test "$host_cpu" = ia64; then
7298	# On IA64, the linker does run time linking by default, so we don't
7299	# have to do anything special.
7300	aix_use_runtimelinking=no
7301	exp_sym_flag='-Bexport'
7302	no_entry_flag=""
7303      else
7304	# If we're using GNU nm, then we don't want the "-C" option.
7305	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7306	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7307	  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'
7308	else
7309	  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'
7310	fi
7311	aix_use_runtimelinking=no
7312
7313	# Test if we are trying to use run time linking or normal
7314	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7315	# need to do runtime linking.
7316	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7317	  for ld_flag in $LDFLAGS; do
7318  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7319  	    aix_use_runtimelinking=yes
7320  	    break
7321  	  fi
7322	  done
7323	  ;;
7324	esac
7325
7326	exp_sym_flag='-bexport'
7327	no_entry_flag='-bnoentry'
7328      fi
7329
7330      # When large executables or shared objects are built, AIX ld can
7331      # have problems creating the table of contents.  If linking a library
7332      # or program results in "error TOC overflow" add -mminimal-toc to
7333      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7334      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7335
7336      archive_cmds=''
7337      hardcode_direct=yes
7338      hardcode_libdir_separator=':'
7339      link_all_deplibs=yes
7340
7341      if test "$GCC" = yes; then
7342	case $host_os in aix4.[012]|aix4.[012].*)
7343	# We only want to do this on AIX 4.2 and lower, the check
7344	# below for broken collect2 doesn't work under 4.3+
7345	  collect2name=`${CC} -print-prog-name=collect2`
7346	  if test -f "$collect2name" && \
7347  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7348	  then
7349  	  # We have reworked collect2
7350  	  hardcode_direct=yes
7351	  else
7352  	  # We have old collect2
7353  	  hardcode_direct=unsupported
7354  	  # It fails to find uninstalled libraries when the uninstalled
7355  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7356  	  # to unsupported forces relinking
7357  	  hardcode_minus_L=yes
7358  	  hardcode_libdir_flag_spec='-L$libdir'
7359  	  hardcode_libdir_separator=
7360	  fi
7361	  ;;
7362	esac
7363	shared_flag='-shared'
7364	if test "$aix_use_runtimelinking" = yes; then
7365	  shared_flag="$shared_flag "'${wl}-G'
7366	fi
7367      else
7368	# not using gcc
7369	if test "$host_cpu" = ia64; then
7370  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7371  	# chokes on -Wl,-G. The following line is correct:
7372	  shared_flag='-G'
7373	else
7374	  if test "$aix_use_runtimelinking" = yes; then
7375	    shared_flag='${wl}-G'
7376	  else
7377	    shared_flag='${wl}-bM:SRE'
7378	  fi
7379	fi
7380      fi
7381
7382      # It seems that -bexpall does not export symbols beginning with
7383      # underscore (_), so it is better to generate a list of symbols to export.
7384      always_export_symbols=yes
7385      if test "$aix_use_runtimelinking" = yes; then
7386	# Warning - without using the other runtime loading flags (-brtl),
7387	# -berok will link without error, but may produce a broken library.
7388	allow_undefined_flag='-berok'
7389       # Determine the default libpath from the value encoded in an empty executable.
7390       cat >conftest.$ac_ext <<_ACEOF
7391/* confdefs.h.  */
7392_ACEOF
7393cat confdefs.h >>conftest.$ac_ext
7394cat >>conftest.$ac_ext <<_ACEOF
7395/* end confdefs.h.  */
7396
7397int
7398main ()
7399{
7400
7401  ;
7402  return 0;
7403}
7404_ACEOF
7405rm -f conftest.$ac_objext conftest$ac_exeext
7406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407  (eval $ac_link) 2>conftest.er1
7408  ac_status=$?
7409  grep -v '^ *+' conftest.er1 >conftest.err
7410  rm -f conftest.er1
7411  cat conftest.err >&5
7412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413  (exit $ac_status); } &&
7414	 { ac_try='test -z "$ac_c_werror_flag"
7415			 || test ! -s conftest.err'
7416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417  (eval $ac_try) 2>&5
7418  ac_status=$?
7419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420  (exit $ac_status); }; } &&
7421	 { ac_try='test -s conftest$ac_exeext'
7422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423  (eval $ac_try) 2>&5
7424  ac_status=$?
7425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426  (exit $ac_status); }; }; then
7427
7428aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7429}'`
7430# Check for a 64-bit object if we didn't find anything.
7431if 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; }
7432}'`; fi
7433else
7434  echo "$as_me: failed program was:" >&5
7435sed 's/^/| /' conftest.$ac_ext >&5
7436
7437fi
7438rm -f conftest.err conftest.$ac_objext \
7439      conftest$ac_exeext conftest.$ac_ext
7440if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7441
7442       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7443	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7444       else
7445	if test "$host_cpu" = ia64; then
7446	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7447	  allow_undefined_flag="-z nodefs"
7448	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7449	else
7450	 # Determine the default libpath from the value encoded in an empty executable.
7451	 cat >conftest.$ac_ext <<_ACEOF
7452/* confdefs.h.  */
7453_ACEOF
7454cat confdefs.h >>conftest.$ac_ext
7455cat >>conftest.$ac_ext <<_ACEOF
7456/* end confdefs.h.  */
7457
7458int
7459main ()
7460{
7461
7462  ;
7463  return 0;
7464}
7465_ACEOF
7466rm -f conftest.$ac_objext conftest$ac_exeext
7467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468  (eval $ac_link) 2>conftest.er1
7469  ac_status=$?
7470  grep -v '^ *+' conftest.er1 >conftest.err
7471  rm -f conftest.er1
7472  cat conftest.err >&5
7473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474  (exit $ac_status); } &&
7475	 { ac_try='test -z "$ac_c_werror_flag"
7476			 || test ! -s conftest.err'
7477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478  (eval $ac_try) 2>&5
7479  ac_status=$?
7480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481  (exit $ac_status); }; } &&
7482	 { ac_try='test -s conftest$ac_exeext'
7483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484  (eval $ac_try) 2>&5
7485  ac_status=$?
7486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487  (exit $ac_status); }; }; then
7488
7489aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7490}'`
7491# Check for a 64-bit object if we didn't find anything.
7492if 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; }
7493}'`; fi
7494else
7495  echo "$as_me: failed program was:" >&5
7496sed 's/^/| /' conftest.$ac_ext >&5
7497
7498fi
7499rm -f conftest.err conftest.$ac_objext \
7500      conftest$ac_exeext conftest.$ac_ext
7501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7502
7503	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7504	  # Warning - without using the other run time loading flags,
7505	  # -berok will link without error, but may produce a broken library.
7506	  no_undefined_flag=' ${wl}-bernotok'
7507	  allow_undefined_flag=' ${wl}-berok'
7508	  # Exported symbols can be pulled into shared objects from archives
7509	  whole_archive_flag_spec='$convenience'
7510	  archive_cmds_need_lc=yes
7511	  # This is similar to how AIX traditionally builds its shared libraries.
7512	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7513	fi
7514      fi
7515      ;;
7516
7517    amigaos*)
7518      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)'
7519      hardcode_libdir_flag_spec='-L$libdir'
7520      hardcode_minus_L=yes
7521      # see comment about different semantics on the GNU ld section
7522      ld_shlibs=no
7523      ;;
7524
7525    bsdi[45]*)
7526      export_dynamic_flag_spec=-rdynamic
7527      ;;
7528
7529    cygwin* | mingw* | pw32*)
7530      # When not using gcc, we currently assume that we are using
7531      # Microsoft Visual C++.
7532      # hardcode_libdir_flag_spec is actually meaningless, as there is
7533      # no search path for DLLs.
7534      hardcode_libdir_flag_spec=' '
7535      allow_undefined_flag=unsupported
7536      # Tell ltmain to make .lib files, not .a files.
7537      libext=lib
7538      # Tell ltmain to make .dll files, not .so files.
7539      shrext_cmds=".dll"
7540      # FIXME: Setting linknames here is a bad hack.
7541      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7542      # The linker will automatically build a .lib file if we build a DLL.
7543      old_archive_From_new_cmds='true'
7544      # FIXME: Should let the user specify the lib program.
7545      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7546      fix_srcfile_path='`cygpath -w "$srcfile"`'
7547      enable_shared_with_static_runtimes=yes
7548      ;;
7549
7550    darwin* | rhapsody*)
7551      case $host_os in
7552        rhapsody* | darwin1.[012])
7553         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7554         ;;
7555       *) # Darwin 1.3 on
7556         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7557           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7558         else
7559           case ${MACOSX_DEPLOYMENT_TARGET} in
7560             10.[012])
7561               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7562               ;;
7563             10.*)
7564               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7565               ;;
7566           esac
7567         fi
7568         ;;
7569      esac
7570      archive_cmds_need_lc=no
7571      hardcode_direct=no
7572      hardcode_automatic=yes
7573      hardcode_shlibpath_var=unsupported
7574      whole_archive_flag_spec=''
7575      link_all_deplibs=yes
7576    if test "$GCC" = yes ; then
7577    	output_verbose_link_cmd='echo'
7578        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7579      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7580      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7581      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}'
7582      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}'
7583    else
7584      case $cc_basename in
7585        xlc*)
7586         output_verbose_link_cmd='echo'
7587         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7588         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7589          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7590         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7591          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}'
7592          ;;
7593       *)
7594         ld_shlibs=no
7595          ;;
7596      esac
7597    fi
7598      ;;
7599
7600    dgux*)
7601      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7602      hardcode_libdir_flag_spec='-L$libdir'
7603      hardcode_shlibpath_var=no
7604      ;;
7605
7606    freebsd1*)
7607      ld_shlibs=no
7608      ;;
7609
7610    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7611    # support.  Future versions do this automatically, but an explicit c++rt0.o
7612    # does not break anything, and helps significantly (at the cost of a little
7613    # extra space).
7614    freebsd2.2*)
7615      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7616      hardcode_libdir_flag_spec='-R$libdir'
7617      hardcode_direct=yes
7618      hardcode_shlibpath_var=no
7619      ;;
7620
7621    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7622    freebsd2*)
7623      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7624      hardcode_direct=yes
7625      hardcode_minus_L=yes
7626      hardcode_shlibpath_var=no
7627      ;;
7628
7629    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7630    freebsd* | kfreebsd*-gnu | dragonfly*)
7631      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7632      hardcode_libdir_flag_spec='-R$libdir'
7633      hardcode_direct=yes
7634      hardcode_shlibpath_var=no
7635      ;;
7636
7637    hpux9*)
7638      if test "$GCC" = yes; then
7639	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'
7640      else
7641	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'
7642      fi
7643      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7644      hardcode_libdir_separator=:
7645      hardcode_direct=yes
7646
7647      # hardcode_minus_L: Not really in the search PATH,
7648      # but as the default location of the library.
7649      hardcode_minus_L=yes
7650      export_dynamic_flag_spec='${wl}-E'
7651      ;;
7652
7653    hpux10*)
7654      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7655	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7656      else
7657	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7658      fi
7659      if test "$with_gnu_ld" = no; then
7660	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7661	hardcode_libdir_separator=:
7662
7663	hardcode_direct=yes
7664	export_dynamic_flag_spec='${wl}-E'
7665
7666	# hardcode_minus_L: Not really in the search PATH,
7667	# but as the default location of the library.
7668	hardcode_minus_L=yes
7669      fi
7670      ;;
7671
7672    hpux11*)
7673      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7674	case $host_cpu in
7675	hppa*64*)
7676	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7677	  ;;
7678	ia64*)
7679	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7680	  ;;
7681	*)
7682	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7683	  ;;
7684	esac
7685      else
7686	case $host_cpu in
7687	hppa*64*)
7688	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7689	  ;;
7690	ia64*)
7691	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7692	  ;;
7693	*)
7694	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7695	  ;;
7696	esac
7697      fi
7698      if test "$with_gnu_ld" = no; then
7699	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7700	hardcode_libdir_separator=:
7701
7702	case $host_cpu in
7703	hppa*64*|ia64*)
7704	  hardcode_libdir_flag_spec_ld='+b $libdir'
7705	  hardcode_direct=no
7706	  hardcode_shlibpath_var=no
7707	  ;;
7708	*)
7709	  hardcode_direct=yes
7710	  export_dynamic_flag_spec='${wl}-E'
7711
7712	  # hardcode_minus_L: Not really in the search PATH,
7713	  # but as the default location of the library.
7714	  hardcode_minus_L=yes
7715	  ;;
7716	esac
7717      fi
7718      ;;
7719
7720    irix5* | irix6* | nonstopux*)
7721      if test "$GCC" = yes; then
7722	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'
7723      else
7724	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'
7725	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7726      fi
7727      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7728      hardcode_libdir_separator=:
7729      link_all_deplibs=yes
7730      ;;
7731
7732    netbsd*)
7733      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7734	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7735      else
7736	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7737      fi
7738      hardcode_libdir_flag_spec='-R$libdir'
7739      hardcode_direct=yes
7740      hardcode_shlibpath_var=no
7741      ;;
7742
7743    newsos6)
7744      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7745      hardcode_direct=yes
7746      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7747      hardcode_libdir_separator=:
7748      hardcode_shlibpath_var=no
7749      ;;
7750
7751    openbsd*)
7752      hardcode_direct=yes
7753      hardcode_shlibpath_var=no
7754      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7755	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7756	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7757	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7758	export_dynamic_flag_spec='${wl}-E'
7759      else
7760       case $host_os in
7761	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7762	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7763	   hardcode_libdir_flag_spec='-R$libdir'
7764	   ;;
7765	 *)
7766	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7767	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7768	   ;;
7769       esac
7770      fi
7771      ;;
7772
7773    os2*)
7774      hardcode_libdir_flag_spec='-L$libdir'
7775      hardcode_minus_L=yes
7776      allow_undefined_flag=unsupported
7777      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'
7778      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7779      ;;
7780
7781    osf3*)
7782      if test "$GCC" = yes; then
7783	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7784	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'
7785      else
7786	allow_undefined_flag=' -expect_unresolved \*'
7787	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'
7788      fi
7789      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7790      hardcode_libdir_separator=:
7791      ;;
7792
7793    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7794      if test "$GCC" = yes; then
7795	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7796	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'
7797	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7798      else
7799	allow_undefined_flag=' -expect_unresolved \*'
7800	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'
7801	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7802	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7803
7804	# Both c and cxx compiler support -rpath directly
7805	hardcode_libdir_flag_spec='-rpath $libdir'
7806      fi
7807      hardcode_libdir_separator=:
7808      ;;
7809
7810    solaris*)
7811      no_undefined_flag=' -z text'
7812      if test "$GCC" = yes; then
7813	wlarc='${wl}'
7814	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7815	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7816	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7817      else
7818	wlarc=''
7819	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7820	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7821  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7822      fi
7823      hardcode_libdir_flag_spec='-R$libdir'
7824      hardcode_shlibpath_var=no
7825      case $host_os in
7826      solaris2.[0-5] | solaris2.[0-5].*) ;;
7827      *)
7828 	# The compiler driver will combine linker options so we
7829 	# cannot just pass the convience library names through
7830 	# without $wl, iff we do not link with $LD.
7831 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7832 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7833 	case $wlarc in
7834 	'')
7835 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7836 	*)
7837 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7838 	esac ;;
7839      esac
7840      link_all_deplibs=yes
7841      ;;
7842
7843    sunos4*)
7844      if test "x$host_vendor" = xsequent; then
7845	# Use $CC to link under sequent, because it throws in some extra .o
7846	# files that make .init and .fini sections work.
7847	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7848      else
7849	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7850      fi
7851      hardcode_libdir_flag_spec='-L$libdir'
7852      hardcode_direct=yes
7853      hardcode_minus_L=yes
7854      hardcode_shlibpath_var=no
7855      ;;
7856
7857    sysv4)
7858      case $host_vendor in
7859	sni)
7860	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7861	  hardcode_direct=yes # is this really true???
7862	;;
7863	siemens)
7864	  ## LD is ld it makes a PLAMLIB
7865	  ## CC just makes a GrossModule.
7866	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7867	  reload_cmds='$CC -r -o $output$reload_objs'
7868	  hardcode_direct=no
7869        ;;
7870	motorola)
7871	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7872	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7873	;;
7874      esac
7875      runpath_var='LD_RUN_PATH'
7876      hardcode_shlibpath_var=no
7877      ;;
7878
7879    sysv4.3*)
7880      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7881      hardcode_shlibpath_var=no
7882      export_dynamic_flag_spec='-Bexport'
7883      ;;
7884
7885    sysv4*MP*)
7886      if test -d /usr/nec; then
7887	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888	hardcode_shlibpath_var=no
7889	runpath_var=LD_RUN_PATH
7890	hardcode_runpath_var=yes
7891	ld_shlibs=yes
7892      fi
7893      ;;
7894
7895    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7896      no_undefined_flag='${wl}-z,text'
7897      archive_cmds_need_lc=no
7898      hardcode_shlibpath_var=no
7899      runpath_var='LD_RUN_PATH'
7900
7901      if test "$GCC" = yes; then
7902	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7903	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7904      else
7905	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7906	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7907      fi
7908      ;;
7909
7910    sysv5* | sco3.2v5* | sco5v6*)
7911      # Note: We can NOT use -z defs as we might desire, because we do not
7912      # link with -lc, and that would cause any symbols used from libc to
7913      # always be unresolved, which means just about no library would
7914      # ever link correctly.  If we're not using GNU ld we use -z text
7915      # though, which does catch some bad symbols but isn't as heavy-handed
7916      # as -z defs.
7917      no_undefined_flag='${wl}-z,text'
7918      allow_undefined_flag='${wl}-z,nodefs'
7919      archive_cmds_need_lc=no
7920      hardcode_shlibpath_var=no
7921      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7922      hardcode_libdir_separator=':'
7923      link_all_deplibs=yes
7924      export_dynamic_flag_spec='${wl}-Bexport'
7925      runpath_var='LD_RUN_PATH'
7926
7927      if test "$GCC" = yes; then
7928	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7929	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7930      else
7931	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7932	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7933      fi
7934      ;;
7935
7936    uts4*)
7937      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7938      hardcode_libdir_flag_spec='-L$libdir'
7939      hardcode_shlibpath_var=no
7940      ;;
7941
7942    *)
7943      ld_shlibs=no
7944      ;;
7945    esac
7946  fi
7947
7948echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7949echo "${ECHO_T}$ld_shlibs" >&6
7950test "$ld_shlibs" = no && can_build_shared=no
7951
7952#
7953# Do we need to explicitly link libc?
7954#
7955case "x$archive_cmds_need_lc" in
7956x|xyes)
7957  # Assume -lc should be added
7958  archive_cmds_need_lc=yes
7959
7960  if test "$enable_shared" = yes && test "$GCC" = yes; then
7961    case $archive_cmds in
7962    *'~'*)
7963      # FIXME: we may have to deal with multi-command sequences.
7964      ;;
7965    '$CC '*)
7966      # Test whether the compiler implicitly links with -lc since on some
7967      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7968      # to ld, don't add -lc before -lgcc.
7969      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7970echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7971      $rm conftest*
7972      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7973
7974      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7975  (eval $ac_compile) 2>&5
7976  ac_status=$?
7977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978  (exit $ac_status); } 2>conftest.err; then
7979        soname=conftest
7980        lib=conftest
7981        libobjs=conftest.$ac_objext
7982        deplibs=
7983        wl=$lt_prog_compiler_wl
7984	pic_flag=$lt_prog_compiler_pic
7985        compiler_flags=-v
7986        linker_flags=-v
7987        verstring=
7988        output_objdir=.
7989        libname=conftest
7990        lt_save_allow_undefined_flag=$allow_undefined_flag
7991        allow_undefined_flag=
7992        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7993  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7994  ac_status=$?
7995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996  (exit $ac_status); }
7997        then
7998	  archive_cmds_need_lc=no
7999        else
8000	  archive_cmds_need_lc=yes
8001        fi
8002        allow_undefined_flag=$lt_save_allow_undefined_flag
8003      else
8004        cat conftest.err 1>&5
8005      fi
8006      $rm conftest*
8007      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8008echo "${ECHO_T}$archive_cmds_need_lc" >&6
8009      ;;
8010    esac
8011  fi
8012  ;;
8013esac
8014
8015echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8016echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8017library_names_spec=
8018libname_spec='lib$name'
8019soname_spec=
8020shrext_cmds=".so"
8021postinstall_cmds=
8022postuninstall_cmds=
8023finish_cmds=
8024finish_eval=
8025shlibpath_var=
8026shlibpath_overrides_runpath=unknown
8027version_type=none
8028dynamic_linker="$host_os ld.so"
8029sys_lib_dlsearch_path_spec="/lib /usr/lib"
8030if test "$GCC" = yes; then
8031  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8032  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8033    # if the path contains ";" then we assume it to be the separator
8034    # otherwise default to the standard path separator (i.e. ":") - it is
8035    # assumed that no part of a normal pathname contains ";" but that should
8036    # okay in the real world where ";" in dirpaths is itself problematic.
8037    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8038  else
8039    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8040  fi
8041else
8042  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8043fi
8044need_lib_prefix=unknown
8045hardcode_into_libs=no
8046
8047# when you set need_version to no, make sure it does not cause -set_version
8048# flags to be left without arguments
8049need_version=unknown
8050
8051case $host_os in
8052aix3*)
8053  version_type=linux
8054  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8055  shlibpath_var=LIBPATH
8056
8057  # AIX 3 has no versioning support, so we append a major version to the name.
8058  soname_spec='${libname}${release}${shared_ext}$major'
8059  ;;
8060
8061aix4* | aix5*)
8062  version_type=linux
8063  need_lib_prefix=no
8064  need_version=no
8065  hardcode_into_libs=yes
8066  if test "$host_cpu" = ia64; then
8067    # AIX 5 supports IA64
8068    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8069    shlibpath_var=LD_LIBRARY_PATH
8070  else
8071    # With GCC up to 2.95.x, collect2 would create an import file
8072    # for dependence libraries.  The import file would start with
8073    # the line `#! .'.  This would cause the generated library to
8074    # depend on `.', always an invalid library.  This was fixed in
8075    # development snapshots of GCC prior to 3.0.
8076    case $host_os in
8077      aix4 | aix4.[01] | aix4.[01].*)
8078      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8079	   echo ' yes '
8080	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8081	:
8082      else
8083	can_build_shared=no
8084      fi
8085      ;;
8086    esac
8087    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8088    # soname into executable. Probably we can add versioning support to
8089    # collect2, so additional links can be useful in future.
8090    if test "$aix_use_runtimelinking" = yes; then
8091      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8092      # instead of lib<name>.a to let people know that these are not
8093      # typical AIX shared libraries.
8094      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095    else
8096      # We preserve .a as extension for shared libraries through AIX4.2
8097      # and later when we are not doing run time linking.
8098      library_names_spec='${libname}${release}.a $libname.a'
8099      soname_spec='${libname}${release}${shared_ext}$major'
8100    fi
8101    shlibpath_var=LIBPATH
8102  fi
8103  ;;
8104
8105amigaos*)
8106  library_names_spec='$libname.ixlibrary $libname.a'
8107  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8108  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'
8109  ;;
8110
8111beos*)
8112  library_names_spec='${libname}${shared_ext}'
8113  dynamic_linker="$host_os ld.so"
8114  shlibpath_var=LIBRARY_PATH
8115  ;;
8116
8117bsdi[45]*)
8118  version_type=linux
8119  need_version=no
8120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8121  soname_spec='${libname}${release}${shared_ext}$major'
8122  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8123  shlibpath_var=LD_LIBRARY_PATH
8124  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8125  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8126  # the default ld.so.conf also contains /usr/contrib/lib and
8127  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8128  # libtool to hard-code these into programs
8129  ;;
8130
8131cygwin* | mingw* | pw32*)
8132  version_type=windows
8133  shrext_cmds=".dll"
8134  need_version=no
8135  need_lib_prefix=no
8136
8137  case $GCC,$host_os in
8138  yes,cygwin* | yes,mingw* | yes,pw32*)
8139    library_names_spec='$libname.dll.a'
8140    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8141    postinstall_cmds='base_file=`basename \${file}`~
8142      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8143      dldir=$destdir/`dirname \$dlpath`~
8144      test -d \$dldir || mkdir -p \$dldir~
8145      $install_prog $dir/$dlname \$dldir/$dlname~
8146      chmod a+x \$dldir/$dlname'
8147    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8148      dlpath=$dir/\$dldll~
8149       $rm \$dlpath'
8150    shlibpath_overrides_runpath=yes
8151
8152    case $host_os in
8153    cygwin*)
8154      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8155      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8156      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8157      ;;
8158    mingw*)
8159      # MinGW DLLs use traditional 'lib' prefix
8160      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8161      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8162      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8163        # It is most probably a Windows format PATH printed by
8164        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8165        # path with ; separators, and with drive letters. We can handle the
8166        # drive letters (cygwin fileutils understands them), so leave them,
8167        # especially as we might pass files found there to a mingw objdump,
8168        # which wouldn't understand a cygwinified path. Ahh.
8169        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8170      else
8171        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8172      fi
8173      ;;
8174    pw32*)
8175      # pw32 DLLs use 'pw' prefix rather than 'lib'
8176      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8177      ;;
8178    esac
8179    ;;
8180
8181  *)
8182    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8183    ;;
8184  esac
8185  dynamic_linker='Win32 ld.exe'
8186  # FIXME: first we should search . and the directory the executable is in
8187  shlibpath_var=PATH
8188  ;;
8189
8190darwin* | rhapsody*)
8191  dynamic_linker="$host_os dyld"
8192  version_type=darwin
8193  need_lib_prefix=no
8194  need_version=no
8195  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8196  soname_spec='${libname}${release}${major}$shared_ext'
8197  shlibpath_overrides_runpath=yes
8198  shlibpath_var=DYLD_LIBRARY_PATH
8199  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8200  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8201  if test "$GCC" = yes; then
8202    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"`
8203  else
8204    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8205  fi
8206  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8207  ;;
8208
8209dgux*)
8210  version_type=linux
8211  need_lib_prefix=no
8212  need_version=no
8213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8214  soname_spec='${libname}${release}${shared_ext}$major'
8215  shlibpath_var=LD_LIBRARY_PATH
8216  ;;
8217
8218freebsd1*)
8219  dynamic_linker=no
8220  ;;
8221
8222kfreebsd*-gnu)
8223  version_type=linux
8224  need_lib_prefix=no
8225  need_version=no
8226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8227  soname_spec='${libname}${release}${shared_ext}$major'
8228  shlibpath_var=LD_LIBRARY_PATH
8229  shlibpath_overrides_runpath=no
8230  hardcode_into_libs=yes
8231  dynamic_linker='GNU ld.so'
8232  ;;
8233
8234freebsd* | dragonfly*)
8235  # DragonFly does not have aout.  When/if they implement a new
8236  # versioning mechanism, adjust this.
8237  if test -x /usr/bin/objformat; then
8238    objformat=`/usr/bin/objformat`
8239  else
8240    case $host_os in
8241    freebsd[123]*) objformat=aout ;;
8242    *) objformat=elf ;;
8243    esac
8244  fi
8245  version_type=freebsd-$objformat
8246  case $version_type in
8247    freebsd-elf*)
8248      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8249      need_version=no
8250      need_lib_prefix=no
8251      ;;
8252    freebsd-*)
8253      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8254      need_version=yes
8255      ;;
8256  esac
8257  shlibpath_var=LD_LIBRARY_PATH
8258  case $host_os in
8259  freebsd2*)
8260    shlibpath_overrides_runpath=yes
8261    ;;
8262  freebsd3.[01]* | freebsdelf3.[01]*)
8263    shlibpath_overrides_runpath=yes
8264    hardcode_into_libs=yes
8265    ;;
8266  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8267  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8268    shlibpath_overrides_runpath=no
8269    hardcode_into_libs=yes
8270    ;;
8271  freebsd*) # from 4.6 on
8272    shlibpath_overrides_runpath=yes
8273    hardcode_into_libs=yes
8274    ;;
8275  esac
8276  ;;
8277
8278gnu*)
8279  version_type=linux
8280  need_lib_prefix=no
8281  need_version=no
8282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8283  soname_spec='${libname}${release}${shared_ext}$major'
8284  shlibpath_var=LD_LIBRARY_PATH
8285  hardcode_into_libs=yes
8286  ;;
8287
8288hpux9* | hpux10* | hpux11*)
8289  # Give a soname corresponding to the major version so that dld.sl refuses to
8290  # link against other versions.
8291  version_type=sunos
8292  need_lib_prefix=no
8293  need_version=no
8294  case $host_cpu in
8295  ia64*)
8296    shrext_cmds='.so'
8297    hardcode_into_libs=yes
8298    dynamic_linker="$host_os dld.so"
8299    shlibpath_var=LD_LIBRARY_PATH
8300    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8301    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8302    soname_spec='${libname}${release}${shared_ext}$major'
8303    if test "X$HPUX_IA64_MODE" = X32; then
8304      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8305    else
8306      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8307    fi
8308    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8309    ;;
8310   hppa*64*)
8311     shrext_cmds='.sl'
8312     hardcode_into_libs=yes
8313     dynamic_linker="$host_os dld.sl"
8314     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8315     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8317     soname_spec='${libname}${release}${shared_ext}$major'
8318     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8320     ;;
8321   *)
8322    shrext_cmds='.sl'
8323    dynamic_linker="$host_os dld.sl"
8324    shlibpath_var=SHLIB_PATH
8325    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8326    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8327    soname_spec='${libname}${release}${shared_ext}$major'
8328    ;;
8329  esac
8330  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8331  postinstall_cmds='chmod 555 $lib'
8332  ;;
8333
8334interix3*)
8335  version_type=linux
8336  need_lib_prefix=no
8337  need_version=no
8338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8339  soname_spec='${libname}${release}${shared_ext}$major'
8340  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8341  shlibpath_var=LD_LIBRARY_PATH
8342  shlibpath_overrides_runpath=no
8343  hardcode_into_libs=yes
8344  ;;
8345
8346irix5* | irix6* | nonstopux*)
8347  case $host_os in
8348    nonstopux*) version_type=nonstopux ;;
8349    *)
8350	if test "$lt_cv_prog_gnu_ld" = yes; then
8351		version_type=linux
8352	else
8353		version_type=irix
8354	fi ;;
8355  esac
8356  need_lib_prefix=no
8357  need_version=no
8358  soname_spec='${libname}${release}${shared_ext}$major'
8359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8360  case $host_os in
8361  irix5* | nonstopux*)
8362    libsuff= shlibsuff=
8363    ;;
8364  *)
8365    case $LD in # libtool.m4 will add one of these switches to LD
8366    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8367      libsuff= shlibsuff= libmagic=32-bit;;
8368    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8369      libsuff=32 shlibsuff=N32 libmagic=N32;;
8370    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8371      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8372    *) libsuff= shlibsuff= libmagic=never-match;;
8373    esac
8374    ;;
8375  esac
8376  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8377  shlibpath_overrides_runpath=no
8378  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8379  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8380  hardcode_into_libs=yes
8381  ;;
8382
8383# No shared lib support for Linux oldld, aout, or coff.
8384linux*oldld* | linux*aout* | linux*coff*)
8385  dynamic_linker=no
8386  ;;
8387
8388# This must be Linux ELF.
8389linux*)
8390  version_type=linux
8391  need_lib_prefix=no
8392  need_version=no
8393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8394  soname_spec='${libname}${release}${shared_ext}$major'
8395  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8396  shlibpath_var=LD_LIBRARY_PATH
8397  shlibpath_overrides_runpath=no
8398  # This implies no fast_install, which is unacceptable.
8399  # Some rework will be needed to allow for fast_install
8400  # before this can be enabled.
8401  hardcode_into_libs=yes
8402
8403  # Append ld.so.conf contents to the search path
8404  if test -f /etc/ld.so.conf; then
8405    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8406    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8407  fi
8408
8409  # We used to test for /lib/ld.so.1 and disable shared libraries on
8410  # powerpc, because MkLinux only supported shared libraries with the
8411  # GNU dynamic linker.  Since this was broken with cross compilers,
8412  # most powerpc-linux boxes support dynamic linking these days and
8413  # people can always --disable-shared, the test was removed, and we
8414  # assume the GNU/Linux dynamic linker is in use.
8415  dynamic_linker='GNU/Linux ld.so'
8416  ;;
8417
8418knetbsd*-gnu)
8419  version_type=linux
8420  need_lib_prefix=no
8421  need_version=no
8422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8423  soname_spec='${libname}${release}${shared_ext}$major'
8424  shlibpath_var=LD_LIBRARY_PATH
8425  shlibpath_overrides_runpath=no
8426  hardcode_into_libs=yes
8427  dynamic_linker='GNU ld.so'
8428  ;;
8429
8430netbsd*)
8431  version_type=sunos
8432  need_lib_prefix=no
8433  need_version=no
8434  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8435    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8436    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8437    dynamic_linker='NetBSD (a.out) ld.so'
8438  else
8439    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8440    soname_spec='${libname}${release}${shared_ext}$major'
8441    dynamic_linker='NetBSD ld.elf_so'
8442  fi
8443  shlibpath_var=LD_LIBRARY_PATH
8444  shlibpath_overrides_runpath=yes
8445  hardcode_into_libs=yes
8446  ;;
8447
8448newsos6)
8449  version_type=linux
8450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8451  shlibpath_var=LD_LIBRARY_PATH
8452  shlibpath_overrides_runpath=yes
8453  ;;
8454
8455nto-qnx*)
8456  version_type=linux
8457  need_lib_prefix=no
8458  need_version=no
8459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8460  soname_spec='${libname}${release}${shared_ext}$major'
8461  shlibpath_var=LD_LIBRARY_PATH
8462  shlibpath_overrides_runpath=yes
8463  ;;
8464
8465openbsd*)
8466  version_type=sunos
8467  sys_lib_dlsearch_path_spec="/usr/lib"
8468  need_lib_prefix=no
8469  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8470  case $host_os in
8471    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8472    *)                         need_version=no  ;;
8473  esac
8474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8475  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8476  shlibpath_var=LD_LIBRARY_PATH
8477  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8478    case $host_os in
8479      openbsd2.[89] | openbsd2.[89].*)
8480	shlibpath_overrides_runpath=no
8481	;;
8482      *)
8483	shlibpath_overrides_runpath=yes
8484	;;
8485      esac
8486  else
8487    shlibpath_overrides_runpath=yes
8488  fi
8489  ;;
8490
8491os2*)
8492  libname_spec='$name'
8493  shrext_cmds=".dll"
8494  need_lib_prefix=no
8495  library_names_spec='$libname${shared_ext} $libname.a'
8496  dynamic_linker='OS/2 ld.exe'
8497  shlibpath_var=LIBPATH
8498  ;;
8499
8500osf3* | osf4* | osf5*)
8501  version_type=osf
8502  need_lib_prefix=no
8503  need_version=no
8504  soname_spec='${libname}${release}${shared_ext}$major'
8505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8506  shlibpath_var=LD_LIBRARY_PATH
8507  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8508  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8509  ;;
8510
8511solaris*)
8512  version_type=linux
8513  need_lib_prefix=no
8514  need_version=no
8515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8516  soname_spec='${libname}${release}${shared_ext}$major'
8517  shlibpath_var=LD_LIBRARY_PATH
8518  shlibpath_overrides_runpath=yes
8519  hardcode_into_libs=yes
8520  # ldd complains unless libraries are executable
8521  postinstall_cmds='chmod +x $lib'
8522  ;;
8523
8524sunos4*)
8525  version_type=sunos
8526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8527  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8528  shlibpath_var=LD_LIBRARY_PATH
8529  shlibpath_overrides_runpath=yes
8530  if test "$with_gnu_ld" = yes; then
8531    need_lib_prefix=no
8532  fi
8533  need_version=yes
8534  ;;
8535
8536sysv4 | sysv4.3*)
8537  version_type=linux
8538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8539  soname_spec='${libname}${release}${shared_ext}$major'
8540  shlibpath_var=LD_LIBRARY_PATH
8541  case $host_vendor in
8542    sni)
8543      shlibpath_overrides_runpath=no
8544      need_lib_prefix=no
8545      export_dynamic_flag_spec='${wl}-Blargedynsym'
8546      runpath_var=LD_RUN_PATH
8547      ;;
8548    siemens)
8549      need_lib_prefix=no
8550      ;;
8551    motorola)
8552      need_lib_prefix=no
8553      need_version=no
8554      shlibpath_overrides_runpath=no
8555      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8556      ;;
8557  esac
8558  ;;
8559
8560sysv4*MP*)
8561  if test -d /usr/nec ;then
8562    version_type=linux
8563    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8564    soname_spec='$libname${shared_ext}.$major'
8565    shlibpath_var=LD_LIBRARY_PATH
8566  fi
8567  ;;
8568
8569sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8570  version_type=freebsd-elf
8571  need_lib_prefix=no
8572  need_version=no
8573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8574  soname_spec='${libname}${release}${shared_ext}$major'
8575  shlibpath_var=LD_LIBRARY_PATH
8576  hardcode_into_libs=yes
8577  if test "$with_gnu_ld" = yes; then
8578    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8579    shlibpath_overrides_runpath=no
8580  else
8581    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8582    shlibpath_overrides_runpath=yes
8583    case $host_os in
8584      sco3.2v5*)
8585        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8586	;;
8587    esac
8588  fi
8589  sys_lib_dlsearch_path_spec='/usr/lib'
8590  ;;
8591
8592uts4*)
8593  version_type=linux
8594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595  soname_spec='${libname}${release}${shared_ext}$major'
8596  shlibpath_var=LD_LIBRARY_PATH
8597  ;;
8598
8599*)
8600  dynamic_linker=no
8601  ;;
8602esac
8603echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8604echo "${ECHO_T}$dynamic_linker" >&6
8605test "$dynamic_linker" = no && can_build_shared=no
8606
8607variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8608if test "$GCC" = yes; then
8609  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8610fi
8611
8612echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8613echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8614hardcode_action=
8615if test -n "$hardcode_libdir_flag_spec" || \
8616   test -n "$runpath_var" || \
8617   test "X$hardcode_automatic" = "Xyes" ; then
8618
8619  # We can hardcode non-existant directories.
8620  if test "$hardcode_direct" != no &&
8621     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8622     # have to relink, otherwise we might link with an installed library
8623     # when we should be linking with a yet-to-be-installed one
8624     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8625     test "$hardcode_minus_L" != no; then
8626    # Linking always hardcodes the temporary library directory.
8627    hardcode_action=relink
8628  else
8629    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8630    hardcode_action=immediate
8631  fi
8632else
8633  # We cannot hardcode anything, or else we can only hardcode existing
8634  # directories.
8635  hardcode_action=unsupported
8636fi
8637echo "$as_me:$LINENO: result: $hardcode_action" >&5
8638echo "${ECHO_T}$hardcode_action" >&6
8639
8640if test "$hardcode_action" = relink; then
8641  # Fast installation is not supported
8642  enable_fast_install=no
8643elif test "$shlibpath_overrides_runpath" = yes ||
8644     test "$enable_shared" = no; then
8645  # Fast installation is not necessary
8646  enable_fast_install=needless
8647fi
8648
8649striplib=
8650old_striplib=
8651echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8652echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8653if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8654  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8655  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8656  echo "$as_me:$LINENO: result: yes" >&5
8657echo "${ECHO_T}yes" >&6
8658else
8659# FIXME - insert some real tests, host_os isn't really good enough
8660  case $host_os in
8661   darwin*)
8662       if test -n "$STRIP" ; then
8663         striplib="$STRIP -x"
8664         echo "$as_me:$LINENO: result: yes" >&5
8665echo "${ECHO_T}yes" >&6
8666       else
8667  echo "$as_me:$LINENO: result: no" >&5
8668echo "${ECHO_T}no" >&6
8669fi
8670       ;;
8671   *)
8672  echo "$as_me:$LINENO: result: no" >&5
8673echo "${ECHO_T}no" >&6
8674    ;;
8675  esac
8676fi
8677
8678if test "x$enable_dlopen" != xyes; then
8679  enable_dlopen=unknown
8680  enable_dlopen_self=unknown
8681  enable_dlopen_self_static=unknown
8682else
8683  lt_cv_dlopen=no
8684  lt_cv_dlopen_libs=
8685
8686  case $host_os in
8687  beos*)
8688    lt_cv_dlopen="load_add_on"
8689    lt_cv_dlopen_libs=
8690    lt_cv_dlopen_self=yes
8691    ;;
8692
8693  mingw* | pw32*)
8694    lt_cv_dlopen="LoadLibrary"
8695    lt_cv_dlopen_libs=
8696   ;;
8697
8698  cygwin*)
8699    lt_cv_dlopen="dlopen"
8700    lt_cv_dlopen_libs=
8701   ;;
8702
8703  darwin*)
8704  # if libdl is installed we need to link against it
8705    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8706echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8707if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8708  echo $ECHO_N "(cached) $ECHO_C" >&6
8709else
8710  ac_check_lib_save_LIBS=$LIBS
8711LIBS="-ldl  $LIBS"
8712cat >conftest.$ac_ext <<_ACEOF
8713/* confdefs.h.  */
8714_ACEOF
8715cat confdefs.h >>conftest.$ac_ext
8716cat >>conftest.$ac_ext <<_ACEOF
8717/* end confdefs.h.  */
8718
8719/* Override any gcc2 internal prototype to avoid an error.  */
8720#ifdef __cplusplus
8721extern "C"
8722#endif
8723/* We use char because int might match the return type of a gcc2
8724   builtin and then its argument prototype would still apply.  */
8725char dlopen ();
8726int
8727main ()
8728{
8729dlopen ();
8730  ;
8731  return 0;
8732}
8733_ACEOF
8734rm -f conftest.$ac_objext conftest$ac_exeext
8735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8736  (eval $ac_link) 2>conftest.er1
8737  ac_status=$?
8738  grep -v '^ *+' conftest.er1 >conftest.err
8739  rm -f conftest.er1
8740  cat conftest.err >&5
8741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742  (exit $ac_status); } &&
8743	 { ac_try='test -z "$ac_c_werror_flag"
8744			 || test ! -s conftest.err'
8745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746  (eval $ac_try) 2>&5
8747  ac_status=$?
8748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749  (exit $ac_status); }; } &&
8750	 { ac_try='test -s conftest$ac_exeext'
8751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752  (eval $ac_try) 2>&5
8753  ac_status=$?
8754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755  (exit $ac_status); }; }; then
8756  ac_cv_lib_dl_dlopen=yes
8757else
8758  echo "$as_me: failed program was:" >&5
8759sed 's/^/| /' conftest.$ac_ext >&5
8760
8761ac_cv_lib_dl_dlopen=no
8762fi
8763rm -f conftest.err conftest.$ac_objext \
8764      conftest$ac_exeext conftest.$ac_ext
8765LIBS=$ac_check_lib_save_LIBS
8766fi
8767echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8768echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8769if test $ac_cv_lib_dl_dlopen = yes; then
8770  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8771else
8772
8773    lt_cv_dlopen="dyld"
8774    lt_cv_dlopen_libs=
8775    lt_cv_dlopen_self=yes
8776
8777fi
8778
8779   ;;
8780
8781  *)
8782    echo "$as_me:$LINENO: checking for shl_load" >&5
8783echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8784if test "${ac_cv_func_shl_load+set}" = set; then
8785  echo $ECHO_N "(cached) $ECHO_C" >&6
8786else
8787  cat >conftest.$ac_ext <<_ACEOF
8788/* confdefs.h.  */
8789_ACEOF
8790cat confdefs.h >>conftest.$ac_ext
8791cat >>conftest.$ac_ext <<_ACEOF
8792/* end confdefs.h.  */
8793/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8794   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8795#define shl_load innocuous_shl_load
8796
8797/* System header to define __stub macros and hopefully few prototypes,
8798    which can conflict with char shl_load (); below.
8799    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800    <limits.h> exists even on freestanding compilers.  */
8801
8802#ifdef __STDC__
8803# include <limits.h>
8804#else
8805# include <assert.h>
8806#endif
8807
8808#undef shl_load
8809
8810/* Override any gcc2 internal prototype to avoid an error.  */
8811#ifdef __cplusplus
8812extern "C"
8813{
8814#endif
8815/* We use char because int might match the return type of a gcc2
8816   builtin and then its argument prototype would still apply.  */
8817char shl_load ();
8818/* The GNU C library defines this for functions which it implements
8819    to always fail with ENOSYS.  Some functions are actually named
8820    something starting with __ and the normal name is an alias.  */
8821#if defined (__stub_shl_load) || defined (__stub___shl_load)
8822choke me
8823#else
8824char (*f) () = shl_load;
8825#endif
8826#ifdef __cplusplus
8827}
8828#endif
8829
8830int
8831main ()
8832{
8833return f != shl_load;
8834  ;
8835  return 0;
8836}
8837_ACEOF
8838rm -f conftest.$ac_objext conftest$ac_exeext
8839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840  (eval $ac_link) 2>conftest.er1
8841  ac_status=$?
8842  grep -v '^ *+' conftest.er1 >conftest.err
8843  rm -f conftest.er1
8844  cat conftest.err >&5
8845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846  (exit $ac_status); } &&
8847	 { ac_try='test -z "$ac_c_werror_flag"
8848			 || test ! -s conftest.err'
8849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850  (eval $ac_try) 2>&5
8851  ac_status=$?
8852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853  (exit $ac_status); }; } &&
8854	 { ac_try='test -s conftest$ac_exeext'
8855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856  (eval $ac_try) 2>&5
8857  ac_status=$?
8858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859  (exit $ac_status); }; }; then
8860  ac_cv_func_shl_load=yes
8861else
8862  echo "$as_me: failed program was:" >&5
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
8865ac_cv_func_shl_load=no
8866fi
8867rm -f conftest.err conftest.$ac_objext \
8868      conftest$ac_exeext conftest.$ac_ext
8869fi
8870echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8871echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8872if test $ac_cv_func_shl_load = yes; then
8873  lt_cv_dlopen="shl_load"
8874else
8875  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8876echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8877if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8878  echo $ECHO_N "(cached) $ECHO_C" >&6
8879else
8880  ac_check_lib_save_LIBS=$LIBS
8881LIBS="-ldld  $LIBS"
8882cat >conftest.$ac_ext <<_ACEOF
8883/* confdefs.h.  */
8884_ACEOF
8885cat confdefs.h >>conftest.$ac_ext
8886cat >>conftest.$ac_ext <<_ACEOF
8887/* end confdefs.h.  */
8888
8889/* Override any gcc2 internal prototype to avoid an error.  */
8890#ifdef __cplusplus
8891extern "C"
8892#endif
8893/* We use char because int might match the return type of a gcc2
8894   builtin and then its argument prototype would still apply.  */
8895char shl_load ();
8896int
8897main ()
8898{
8899shl_load ();
8900  ;
8901  return 0;
8902}
8903_ACEOF
8904rm -f conftest.$ac_objext conftest$ac_exeext
8905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906  (eval $ac_link) 2>conftest.er1
8907  ac_status=$?
8908  grep -v '^ *+' conftest.er1 >conftest.err
8909  rm -f conftest.er1
8910  cat conftest.err >&5
8911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912  (exit $ac_status); } &&
8913	 { ac_try='test -z "$ac_c_werror_flag"
8914			 || test ! -s conftest.err'
8915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916  (eval $ac_try) 2>&5
8917  ac_status=$?
8918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919  (exit $ac_status); }; } &&
8920	 { ac_try='test -s conftest$ac_exeext'
8921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922  (eval $ac_try) 2>&5
8923  ac_status=$?
8924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925  (exit $ac_status); }; }; then
8926  ac_cv_lib_dld_shl_load=yes
8927else
8928  echo "$as_me: failed program was:" >&5
8929sed 's/^/| /' conftest.$ac_ext >&5
8930
8931ac_cv_lib_dld_shl_load=no
8932fi
8933rm -f conftest.err conftest.$ac_objext \
8934      conftest$ac_exeext conftest.$ac_ext
8935LIBS=$ac_check_lib_save_LIBS
8936fi
8937echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8938echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8939if test $ac_cv_lib_dld_shl_load = yes; then
8940  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8941else
8942  echo "$as_me:$LINENO: checking for dlopen" >&5
8943echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8944if test "${ac_cv_func_dlopen+set}" = set; then
8945  echo $ECHO_N "(cached) $ECHO_C" >&6
8946else
8947  cat >conftest.$ac_ext <<_ACEOF
8948/* confdefs.h.  */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
8952/* end confdefs.h.  */
8953/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8954   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8955#define dlopen innocuous_dlopen
8956
8957/* System header to define __stub macros and hopefully few prototypes,
8958    which can conflict with char dlopen (); below.
8959    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8960    <limits.h> exists even on freestanding compilers.  */
8961
8962#ifdef __STDC__
8963# include <limits.h>
8964#else
8965# include <assert.h>
8966#endif
8967
8968#undef dlopen
8969
8970/* Override any gcc2 internal prototype to avoid an error.  */
8971#ifdef __cplusplus
8972extern "C"
8973{
8974#endif
8975/* We use char because int might match the return type of a gcc2
8976   builtin and then its argument prototype would still apply.  */
8977char dlopen ();
8978/* The GNU C library defines this for functions which it implements
8979    to always fail with ENOSYS.  Some functions are actually named
8980    something starting with __ and the normal name is an alias.  */
8981#if defined (__stub_dlopen) || defined (__stub___dlopen)
8982choke me
8983#else
8984char (*f) () = dlopen;
8985#endif
8986#ifdef __cplusplus
8987}
8988#endif
8989
8990int
8991main ()
8992{
8993return f != dlopen;
8994  ;
8995  return 0;
8996}
8997_ACEOF
8998rm -f conftest.$ac_objext conftest$ac_exeext
8999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000  (eval $ac_link) 2>conftest.er1
9001  ac_status=$?
9002  grep -v '^ *+' conftest.er1 >conftest.err
9003  rm -f conftest.er1
9004  cat conftest.err >&5
9005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006  (exit $ac_status); } &&
9007	 { ac_try='test -z "$ac_c_werror_flag"
9008			 || test ! -s conftest.err'
9009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010  (eval $ac_try) 2>&5
9011  ac_status=$?
9012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013  (exit $ac_status); }; } &&
9014	 { ac_try='test -s conftest$ac_exeext'
9015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016  (eval $ac_try) 2>&5
9017  ac_status=$?
9018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019  (exit $ac_status); }; }; then
9020  ac_cv_func_dlopen=yes
9021else
9022  echo "$as_me: failed program was:" >&5
9023sed 's/^/| /' conftest.$ac_ext >&5
9024
9025ac_cv_func_dlopen=no
9026fi
9027rm -f conftest.err conftest.$ac_objext \
9028      conftest$ac_exeext conftest.$ac_ext
9029fi
9030echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9031echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9032if test $ac_cv_func_dlopen = yes; then
9033  lt_cv_dlopen="dlopen"
9034else
9035  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9036echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9037if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9038  echo $ECHO_N "(cached) $ECHO_C" >&6
9039else
9040  ac_check_lib_save_LIBS=$LIBS
9041LIBS="-ldl  $LIBS"
9042cat >conftest.$ac_ext <<_ACEOF
9043/* confdefs.h.  */
9044_ACEOF
9045cat confdefs.h >>conftest.$ac_ext
9046cat >>conftest.$ac_ext <<_ACEOF
9047/* end confdefs.h.  */
9048
9049/* Override any gcc2 internal prototype to avoid an error.  */
9050#ifdef __cplusplus
9051extern "C"
9052#endif
9053/* We use char because int might match the return type of a gcc2
9054   builtin and then its argument prototype would still apply.  */
9055char dlopen ();
9056int
9057main ()
9058{
9059dlopen ();
9060  ;
9061  return 0;
9062}
9063_ACEOF
9064rm -f conftest.$ac_objext conftest$ac_exeext
9065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066  (eval $ac_link) 2>conftest.er1
9067  ac_status=$?
9068  grep -v '^ *+' conftest.er1 >conftest.err
9069  rm -f conftest.er1
9070  cat conftest.err >&5
9071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072  (exit $ac_status); } &&
9073	 { ac_try='test -z "$ac_c_werror_flag"
9074			 || test ! -s conftest.err'
9075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076  (eval $ac_try) 2>&5
9077  ac_status=$?
9078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079  (exit $ac_status); }; } &&
9080	 { ac_try='test -s conftest$ac_exeext'
9081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082  (eval $ac_try) 2>&5
9083  ac_status=$?
9084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085  (exit $ac_status); }; }; then
9086  ac_cv_lib_dl_dlopen=yes
9087else
9088  echo "$as_me: failed program was:" >&5
9089sed 's/^/| /' conftest.$ac_ext >&5
9090
9091ac_cv_lib_dl_dlopen=no
9092fi
9093rm -f conftest.err conftest.$ac_objext \
9094      conftest$ac_exeext conftest.$ac_ext
9095LIBS=$ac_check_lib_save_LIBS
9096fi
9097echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9098echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9099if test $ac_cv_lib_dl_dlopen = yes; then
9100  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9101else
9102  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9103echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9104if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9105  echo $ECHO_N "(cached) $ECHO_C" >&6
9106else
9107  ac_check_lib_save_LIBS=$LIBS
9108LIBS="-lsvld  $LIBS"
9109cat >conftest.$ac_ext <<_ACEOF
9110/* confdefs.h.  */
9111_ACEOF
9112cat confdefs.h >>conftest.$ac_ext
9113cat >>conftest.$ac_ext <<_ACEOF
9114/* end confdefs.h.  */
9115
9116/* Override any gcc2 internal prototype to avoid an error.  */
9117#ifdef __cplusplus
9118extern "C"
9119#endif
9120/* We use char because int might match the return type of a gcc2
9121   builtin and then its argument prototype would still apply.  */
9122char dlopen ();
9123int
9124main ()
9125{
9126dlopen ();
9127  ;
9128  return 0;
9129}
9130_ACEOF
9131rm -f conftest.$ac_objext conftest$ac_exeext
9132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9133  (eval $ac_link) 2>conftest.er1
9134  ac_status=$?
9135  grep -v '^ *+' conftest.er1 >conftest.err
9136  rm -f conftest.er1
9137  cat conftest.err >&5
9138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139  (exit $ac_status); } &&
9140	 { ac_try='test -z "$ac_c_werror_flag"
9141			 || test ! -s conftest.err'
9142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143  (eval $ac_try) 2>&5
9144  ac_status=$?
9145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); }; } &&
9147	 { ac_try='test -s conftest$ac_exeext'
9148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149  (eval $ac_try) 2>&5
9150  ac_status=$?
9151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152  (exit $ac_status); }; }; then
9153  ac_cv_lib_svld_dlopen=yes
9154else
9155  echo "$as_me: failed program was:" >&5
9156sed 's/^/| /' conftest.$ac_ext >&5
9157
9158ac_cv_lib_svld_dlopen=no
9159fi
9160rm -f conftest.err conftest.$ac_objext \
9161      conftest$ac_exeext conftest.$ac_ext
9162LIBS=$ac_check_lib_save_LIBS
9163fi
9164echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9165echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9166if test $ac_cv_lib_svld_dlopen = yes; then
9167  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9168else
9169  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9170echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9171if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9172  echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
9174  ac_check_lib_save_LIBS=$LIBS
9175LIBS="-ldld  $LIBS"
9176cat >conftest.$ac_ext <<_ACEOF
9177/* confdefs.h.  */
9178_ACEOF
9179cat confdefs.h >>conftest.$ac_ext
9180cat >>conftest.$ac_ext <<_ACEOF
9181/* end confdefs.h.  */
9182
9183/* Override any gcc2 internal prototype to avoid an error.  */
9184#ifdef __cplusplus
9185extern "C"
9186#endif
9187/* We use char because int might match the return type of a gcc2
9188   builtin and then its argument prototype would still apply.  */
9189char dld_link ();
9190int
9191main ()
9192{
9193dld_link ();
9194  ;
9195  return 0;
9196}
9197_ACEOF
9198rm -f conftest.$ac_objext conftest$ac_exeext
9199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200  (eval $ac_link) 2>conftest.er1
9201  ac_status=$?
9202  grep -v '^ *+' conftest.er1 >conftest.err
9203  rm -f conftest.er1
9204  cat conftest.err >&5
9205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206  (exit $ac_status); } &&
9207	 { ac_try='test -z "$ac_c_werror_flag"
9208			 || test ! -s conftest.err'
9209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210  (eval $ac_try) 2>&5
9211  ac_status=$?
9212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213  (exit $ac_status); }; } &&
9214	 { ac_try='test -s conftest$ac_exeext'
9215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216  (eval $ac_try) 2>&5
9217  ac_status=$?
9218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219  (exit $ac_status); }; }; then
9220  ac_cv_lib_dld_dld_link=yes
9221else
9222  echo "$as_me: failed program was:" >&5
9223sed 's/^/| /' conftest.$ac_ext >&5
9224
9225ac_cv_lib_dld_dld_link=no
9226fi
9227rm -f conftest.err conftest.$ac_objext \
9228      conftest$ac_exeext conftest.$ac_ext
9229LIBS=$ac_check_lib_save_LIBS
9230fi
9231echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9232echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9233if test $ac_cv_lib_dld_dld_link = yes; then
9234  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9235fi
9236
9237
9238fi
9239
9240
9241fi
9242
9243
9244fi
9245
9246
9247fi
9248
9249
9250fi
9251
9252    ;;
9253  esac
9254
9255  if test "x$lt_cv_dlopen" != xno; then
9256    enable_dlopen=yes
9257  else
9258    enable_dlopen=no
9259  fi
9260
9261  case $lt_cv_dlopen in
9262  dlopen)
9263    save_CPPFLAGS="$CPPFLAGS"
9264    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9265
9266    save_LDFLAGS="$LDFLAGS"
9267    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9268
9269    save_LIBS="$LIBS"
9270    LIBS="$lt_cv_dlopen_libs $LIBS"
9271
9272    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9273echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9274if test "${lt_cv_dlopen_self+set}" = set; then
9275  echo $ECHO_N "(cached) $ECHO_C" >&6
9276else
9277  	  if test "$cross_compiling" = yes; then :
9278  lt_cv_dlopen_self=cross
9279else
9280  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9281  lt_status=$lt_dlunknown
9282  cat > conftest.$ac_ext <<EOF
9283#line 9283 "configure"
9284#include "confdefs.h"
9285
9286#if HAVE_DLFCN_H
9287#include <dlfcn.h>
9288#endif
9289
9290#include <stdio.h>
9291
9292#ifdef RTLD_GLOBAL
9293#  define LT_DLGLOBAL		RTLD_GLOBAL
9294#else
9295#  ifdef DL_GLOBAL
9296#    define LT_DLGLOBAL		DL_GLOBAL
9297#  else
9298#    define LT_DLGLOBAL		0
9299#  endif
9300#endif
9301
9302/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9303   find out it does not work in some platform. */
9304#ifndef LT_DLLAZY_OR_NOW
9305#  ifdef RTLD_LAZY
9306#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9307#  else
9308#    ifdef DL_LAZY
9309#      define LT_DLLAZY_OR_NOW		DL_LAZY
9310#    else
9311#      ifdef RTLD_NOW
9312#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9313#      else
9314#        ifdef DL_NOW
9315#          define LT_DLLAZY_OR_NOW	DL_NOW
9316#        else
9317#          define LT_DLLAZY_OR_NOW	0
9318#        endif
9319#      endif
9320#    endif
9321#  endif
9322#endif
9323
9324#ifdef __cplusplus
9325extern "C" void exit (int);
9326#endif
9327
9328void fnord() { int i=42;}
9329int main ()
9330{
9331  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9332  int status = $lt_dlunknown;
9333
9334  if (self)
9335    {
9336      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9337      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9338      /* dlclose (self); */
9339    }
9340  else
9341    puts (dlerror ());
9342
9343    exit (status);
9344}
9345EOF
9346  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347  (eval $ac_link) 2>&5
9348  ac_status=$?
9349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9351    (./conftest; exit; ) >&5 2>/dev/null
9352    lt_status=$?
9353    case x$lt_status in
9354      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9355      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9356      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9357    esac
9358  else :
9359    # compilation failed
9360    lt_cv_dlopen_self=no
9361  fi
9362fi
9363rm -fr conftest*
9364
9365
9366fi
9367echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9368echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9369
9370    if test "x$lt_cv_dlopen_self" = xyes; then
9371      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9372      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9373echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9374if test "${lt_cv_dlopen_self_static+set}" = set; then
9375  echo $ECHO_N "(cached) $ECHO_C" >&6
9376else
9377  	  if test "$cross_compiling" = yes; then :
9378  lt_cv_dlopen_self_static=cross
9379else
9380  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9381  lt_status=$lt_dlunknown
9382  cat > conftest.$ac_ext <<EOF
9383#line 9383 "configure"
9384#include "confdefs.h"
9385
9386#if HAVE_DLFCN_H
9387#include <dlfcn.h>
9388#endif
9389
9390#include <stdio.h>
9391
9392#ifdef RTLD_GLOBAL
9393#  define LT_DLGLOBAL		RTLD_GLOBAL
9394#else
9395#  ifdef DL_GLOBAL
9396#    define LT_DLGLOBAL		DL_GLOBAL
9397#  else
9398#    define LT_DLGLOBAL		0
9399#  endif
9400#endif
9401
9402/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9403   find out it does not work in some platform. */
9404#ifndef LT_DLLAZY_OR_NOW
9405#  ifdef RTLD_LAZY
9406#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9407#  else
9408#    ifdef DL_LAZY
9409#      define LT_DLLAZY_OR_NOW		DL_LAZY
9410#    else
9411#      ifdef RTLD_NOW
9412#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9413#      else
9414#        ifdef DL_NOW
9415#          define LT_DLLAZY_OR_NOW	DL_NOW
9416#        else
9417#          define LT_DLLAZY_OR_NOW	0
9418#        endif
9419#      endif
9420#    endif
9421#  endif
9422#endif
9423
9424#ifdef __cplusplus
9425extern "C" void exit (int);
9426#endif
9427
9428void fnord() { int i=42;}
9429int main ()
9430{
9431  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9432  int status = $lt_dlunknown;
9433
9434  if (self)
9435    {
9436      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9437      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9438      /* dlclose (self); */
9439    }
9440  else
9441    puts (dlerror ());
9442
9443    exit (status);
9444}
9445EOF
9446  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447  (eval $ac_link) 2>&5
9448  ac_status=$?
9449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9451    (./conftest; exit; ) >&5 2>/dev/null
9452    lt_status=$?
9453    case x$lt_status in
9454      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9455      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9456      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9457    esac
9458  else :
9459    # compilation failed
9460    lt_cv_dlopen_self_static=no
9461  fi
9462fi
9463rm -fr conftest*
9464
9465
9466fi
9467echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9468echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9469    fi
9470
9471    CPPFLAGS="$save_CPPFLAGS"
9472    LDFLAGS="$save_LDFLAGS"
9473    LIBS="$save_LIBS"
9474    ;;
9475  esac
9476
9477  case $lt_cv_dlopen_self in
9478  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9479  *) enable_dlopen_self=unknown ;;
9480  esac
9481
9482  case $lt_cv_dlopen_self_static in
9483  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9484  *) enable_dlopen_self_static=unknown ;;
9485  esac
9486fi
9487
9488
9489# Report which library types will actually be built
9490echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9491echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9492echo "$as_me:$LINENO: result: $can_build_shared" >&5
9493echo "${ECHO_T}$can_build_shared" >&6
9494
9495echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9496echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9497test "$can_build_shared" = "no" && enable_shared=no
9498
9499# On AIX, shared libraries and static libraries use the same namespace, and
9500# are all built from PIC.
9501case $host_os in
9502aix3*)
9503  test "$enable_shared" = yes && enable_static=no
9504  if test -n "$RANLIB"; then
9505    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9506    postinstall_cmds='$RANLIB $lib'
9507  fi
9508  ;;
9509
9510aix4* | aix5*)
9511  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9512    test "$enable_shared" = yes && enable_static=no
9513  fi
9514    ;;
9515esac
9516echo "$as_me:$LINENO: result: $enable_shared" >&5
9517echo "${ECHO_T}$enable_shared" >&6
9518
9519echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9520echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9521# Make sure either enable_shared or enable_static is yes.
9522test "$enable_shared" = yes || enable_static=yes
9523echo "$as_me:$LINENO: result: $enable_static" >&5
9524echo "${ECHO_T}$enable_static" >&6
9525
9526# The else clause should only fire when bootstrapping the
9527# libtool distribution, otherwise you forgot to ship ltmain.sh
9528# with your package, and you will get complaints that there are
9529# no rules to generate ltmain.sh.
9530if test -f "$ltmain"; then
9531  # See if we are running on zsh, and set the options which allow our commands through
9532  # without removal of \ escapes.
9533  if test -n "${ZSH_VERSION+set}" ; then
9534    setopt NO_GLOB_SUBST
9535  fi
9536  # Now quote all the things that may contain metacharacters while being
9537  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9538  # variables and quote the copies for generation of the libtool script.
9539  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9540    SED SHELL STRIP \
9541    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9542    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9543    deplibs_check_method reload_flag reload_cmds need_locks \
9544    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9545    lt_cv_sys_global_symbol_to_c_name_address \
9546    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9547    old_postinstall_cmds old_postuninstall_cmds \
9548    compiler \
9549    CC \
9550    LD \
9551    lt_prog_compiler_wl \
9552    lt_prog_compiler_pic \
9553    lt_prog_compiler_static \
9554    lt_prog_compiler_no_builtin_flag \
9555    export_dynamic_flag_spec \
9556    thread_safe_flag_spec \
9557    whole_archive_flag_spec \
9558    enable_shared_with_static_runtimes \
9559    old_archive_cmds \
9560    old_archive_from_new_cmds \
9561    predep_objects \
9562    postdep_objects \
9563    predeps \
9564    postdeps \
9565    compiler_lib_search_path \
9566    archive_cmds \
9567    archive_expsym_cmds \
9568    postinstall_cmds \
9569    postuninstall_cmds \
9570    old_archive_from_expsyms_cmds \
9571    allow_undefined_flag \
9572    no_undefined_flag \
9573    export_symbols_cmds \
9574    hardcode_libdir_flag_spec \
9575    hardcode_libdir_flag_spec_ld \
9576    hardcode_libdir_separator \
9577    hardcode_automatic \
9578    module_cmds \
9579    module_expsym_cmds \
9580    lt_cv_prog_compiler_c_o \
9581    exclude_expsyms \
9582    include_expsyms; do
9583
9584    case $var in
9585    old_archive_cmds | \
9586    old_archive_from_new_cmds | \
9587    archive_cmds | \
9588    archive_expsym_cmds | \
9589    module_cmds | \
9590    module_expsym_cmds | \
9591    old_archive_from_expsyms_cmds | \
9592    export_symbols_cmds | \
9593    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9594    postinstall_cmds | postuninstall_cmds | \
9595    old_postinstall_cmds | old_postuninstall_cmds | \
9596    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9597      # Double-quote double-evaled strings.
9598      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9599      ;;
9600    *)
9601      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9602      ;;
9603    esac
9604  done
9605
9606  case $lt_echo in
9607  *'\$0 --fallback-echo"')
9608    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9609    ;;
9610  esac
9611
9612cfgfile="${ofile}T"
9613  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9614  $rm -f "$cfgfile"
9615  { echo "$as_me:$LINENO: creating $ofile" >&5
9616echo "$as_me: creating $ofile" >&6;}
9617
9618  cat <<__EOF__ >> "$cfgfile"
9619#! $SHELL
9620
9621# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9622# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9623# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9624#
9625# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9626# Free Software Foundation, Inc.
9627#
9628# This file is part of GNU Libtool:
9629# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9630#
9631# This program is free software; you can redistribute it and/or modify
9632# it under the terms of the GNU General Public License as published by
9633# the Free Software Foundation; either version 2 of the License, or
9634# (at your option) any later version.
9635#
9636# This program is distributed in the hope that it will be useful, but
9637# WITHOUT ANY WARRANTY; without even the implied warranty of
9638# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9639# General Public License for more details.
9640#
9641# You should have received a copy of the GNU General Public License
9642# along with this program; if not, write to the Free Software
9643# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9644#
9645# As a special exception to the GNU General Public License, if you
9646# distribute this file as part of a program that contains a
9647# configuration script generated by Autoconf, you may include it under
9648# the same distribution terms that you use for the rest of that program.
9649
9650# A sed program that does not truncate output.
9651SED=$lt_SED
9652
9653# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9654Xsed="$SED -e 1s/^X//"
9655
9656# The HP-UX ksh and POSIX shell print the target directory to stdout
9657# if CDPATH is set.
9658(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9659
9660# The names of the tagged configurations supported by this script.
9661available_tags=
9662
9663# ### BEGIN LIBTOOL CONFIG
9664
9665# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9666
9667# Shell to use when invoking shell scripts.
9668SHELL=$lt_SHELL
9669
9670# Whether or not to build shared libraries.
9671build_libtool_libs=$enable_shared
9672
9673# Whether or not to build static libraries.
9674build_old_libs=$enable_static
9675
9676# Whether or not to add -lc for building shared libraries.
9677build_libtool_need_lc=$archive_cmds_need_lc
9678
9679# Whether or not to disallow shared libs when runtime libs are static
9680allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9681
9682# Whether or not to optimize for fast installation.
9683fast_install=$enable_fast_install
9684
9685# The host system.
9686host_alias=$host_alias
9687host=$host
9688host_os=$host_os
9689
9690# The build system.
9691build_alias=$build_alias
9692build=$build
9693build_os=$build_os
9694
9695# An echo program that does not interpret backslashes.
9696echo=$lt_echo
9697
9698# The archiver.
9699AR=$lt_AR
9700AR_FLAGS=$lt_AR_FLAGS
9701
9702# A C compiler.
9703LTCC=$lt_LTCC
9704
9705# LTCC compiler flags.
9706LTCFLAGS=$lt_LTCFLAGS
9707
9708# A language-specific compiler.
9709CC=$lt_compiler
9710
9711# Is the compiler the GNU C compiler?
9712with_gcc=$GCC
9713
9714# An ERE matcher.
9715EGREP=$lt_EGREP
9716
9717# The linker used to build libraries.
9718LD=$lt_LD
9719
9720# Whether we need hard or soft links.
9721LN_S=$lt_LN_S
9722
9723# A BSD-compatible nm program.
9724NM=$lt_NM
9725
9726# A symbol stripping program
9727STRIP=$lt_STRIP
9728
9729# Used to examine libraries when file_magic_cmd begins "file"
9730MAGIC_CMD=$MAGIC_CMD
9731
9732# Used on cygwin: DLL creation program.
9733DLLTOOL="$DLLTOOL"
9734
9735# Used on cygwin: object dumper.
9736OBJDUMP="$OBJDUMP"
9737
9738# Used on cygwin: assembler.
9739AS="$AS"
9740
9741# The name of the directory that contains temporary libtool files.
9742objdir=$objdir
9743
9744# How to create reloadable object files.
9745reload_flag=$lt_reload_flag
9746reload_cmds=$lt_reload_cmds
9747
9748# How to pass a linker flag through the compiler.
9749wl=$lt_lt_prog_compiler_wl
9750
9751# Object file suffix (normally "o").
9752objext="$ac_objext"
9753
9754# Old archive suffix (normally "a").
9755libext="$libext"
9756
9757# Shared library suffix (normally ".so").
9758shrext_cmds='$shrext_cmds'
9759
9760# Executable file suffix (normally "").
9761exeext="$exeext"
9762
9763# Additional compiler flags for building library objects.
9764pic_flag=$lt_lt_prog_compiler_pic
9765pic_mode=$pic_mode
9766
9767# What is the maximum length of a command?
9768max_cmd_len=$lt_cv_sys_max_cmd_len
9769
9770# Does compiler simultaneously support -c and -o options?
9771compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9772
9773# Must we lock files when doing compilation?
9774need_locks=$lt_need_locks
9775
9776# Do we need the lib prefix for modules?
9777need_lib_prefix=$need_lib_prefix
9778
9779# Do we need a version for libraries?
9780need_version=$need_version
9781
9782# Whether dlopen is supported.
9783dlopen_support=$enable_dlopen
9784
9785# Whether dlopen of programs is supported.
9786dlopen_self=$enable_dlopen_self
9787
9788# Whether dlopen of statically linked programs is supported.
9789dlopen_self_static=$enable_dlopen_self_static
9790
9791# Compiler flag to prevent dynamic linking.
9792link_static_flag=$lt_lt_prog_compiler_static
9793
9794# Compiler flag to turn off builtin functions.
9795no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9796
9797# Compiler flag to allow reflexive dlopens.
9798export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9799
9800# Compiler flag to generate shared objects directly from archives.
9801whole_archive_flag_spec=$lt_whole_archive_flag_spec
9802
9803# Compiler flag to generate thread-safe objects.
9804thread_safe_flag_spec=$lt_thread_safe_flag_spec
9805
9806# Library versioning type.
9807version_type=$version_type
9808
9809# Format of library name prefix.
9810libname_spec=$lt_libname_spec
9811
9812# List of archive names.  First name is the real one, the rest are links.
9813# The last name is the one that the linker finds with -lNAME.
9814library_names_spec=$lt_library_names_spec
9815
9816# The coded name of the library, if different from the real name.
9817soname_spec=$lt_soname_spec
9818
9819# Commands used to build and install an old-style archive.
9820RANLIB=$lt_RANLIB
9821old_archive_cmds=$lt_old_archive_cmds
9822old_postinstall_cmds=$lt_old_postinstall_cmds
9823old_postuninstall_cmds=$lt_old_postuninstall_cmds
9824
9825# Create an old-style archive from a shared archive.
9826old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9827
9828# Create a temporary old-style archive to link instead of a shared archive.
9829old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9830
9831# Commands used to build and install a shared archive.
9832archive_cmds=$lt_archive_cmds
9833archive_expsym_cmds=$lt_archive_expsym_cmds
9834postinstall_cmds=$lt_postinstall_cmds
9835postuninstall_cmds=$lt_postuninstall_cmds
9836
9837# Commands used to build a loadable module (assumed same as above if empty)
9838module_cmds=$lt_module_cmds
9839module_expsym_cmds=$lt_module_expsym_cmds
9840
9841# Commands to strip libraries.
9842old_striplib=$lt_old_striplib
9843striplib=$lt_striplib
9844
9845# Dependencies to place before the objects being linked to create a
9846# shared library.
9847predep_objects=$lt_predep_objects
9848
9849# Dependencies to place after the objects being linked to create a
9850# shared library.
9851postdep_objects=$lt_postdep_objects
9852
9853# Dependencies to place before the objects being linked to create a
9854# shared library.
9855predeps=$lt_predeps
9856
9857# Dependencies to place after the objects being linked to create a
9858# shared library.
9859postdeps=$lt_postdeps
9860
9861# The library search path used internally by the compiler when linking
9862# a shared library.
9863compiler_lib_search_path=$lt_compiler_lib_search_path
9864
9865# Method to check whether dependent libraries are shared objects.
9866deplibs_check_method=$lt_deplibs_check_method
9867
9868# Command to use when deplibs_check_method == file_magic.
9869file_magic_cmd=$lt_file_magic_cmd
9870
9871# Flag that allows shared libraries with undefined symbols to be built.
9872allow_undefined_flag=$lt_allow_undefined_flag
9873
9874# Flag that forces no undefined symbols.
9875no_undefined_flag=$lt_no_undefined_flag
9876
9877# Commands used to finish a libtool library installation in a directory.
9878finish_cmds=$lt_finish_cmds
9879
9880# Same as above, but a single script fragment to be evaled but not shown.
9881finish_eval=$lt_finish_eval
9882
9883# Take the output of nm and produce a listing of raw symbols and C names.
9884global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9885
9886# Transform the output of nm in a proper C declaration
9887global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9888
9889# Transform the output of nm in a C name address pair
9890global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9891
9892# This is the shared library runtime path variable.
9893runpath_var=$runpath_var
9894
9895# This is the shared library path variable.
9896shlibpath_var=$shlibpath_var
9897
9898# Is shlibpath searched before the hard-coded library search path?
9899shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9900
9901# How to hardcode a shared library path into an executable.
9902hardcode_action=$hardcode_action
9903
9904# Whether we should hardcode library paths into libraries.
9905hardcode_into_libs=$hardcode_into_libs
9906
9907# Flag to hardcode \$libdir into a binary during linking.
9908# This must work even if \$libdir does not exist.
9909hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9910
9911# If ld is used when linking, flag to hardcode \$libdir into
9912# a binary during linking. This must work even if \$libdir does
9913# not exist.
9914hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9915
9916# Whether we need a single -rpath flag with a separated argument.
9917hardcode_libdir_separator=$lt_hardcode_libdir_separator
9918
9919# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9920# resulting binary.
9921hardcode_direct=$hardcode_direct
9922
9923# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9924# resulting binary.
9925hardcode_minus_L=$hardcode_minus_L
9926
9927# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9928# the resulting binary.
9929hardcode_shlibpath_var=$hardcode_shlibpath_var
9930
9931# Set to yes if building a shared library automatically hardcodes DIR into the library
9932# and all subsequent libraries and executables linked against it.
9933hardcode_automatic=$hardcode_automatic
9934
9935# Variables whose values should be saved in libtool wrapper scripts and
9936# restored at relink time.
9937variables_saved_for_relink="$variables_saved_for_relink"
9938
9939# Whether libtool must link a program against all its dependency libraries.
9940link_all_deplibs=$link_all_deplibs
9941
9942# Compile-time system search path for libraries
9943sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9944
9945# Run-time system search path for libraries
9946sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9947
9948# Fix the shell variable \$srcfile for the compiler.
9949fix_srcfile_path="$fix_srcfile_path"
9950
9951# Set to yes if exported symbols are required.
9952always_export_symbols=$always_export_symbols
9953
9954# The commands to list exported symbols.
9955export_symbols_cmds=$lt_export_symbols_cmds
9956
9957# The commands to extract the exported symbol list from a shared archive.
9958extract_expsyms_cmds=$lt_extract_expsyms_cmds
9959
9960# Symbols that should not be listed in the preloaded symbols.
9961exclude_expsyms=$lt_exclude_expsyms
9962
9963# Symbols that must always be exported.
9964include_expsyms=$lt_include_expsyms
9965
9966# ### END LIBTOOL CONFIG
9967
9968__EOF__
9969
9970
9971  case $host_os in
9972  aix3*)
9973    cat <<\EOF >> "$cfgfile"
9974
9975# AIX sometimes has problems with the GCC collect2 program.  For some
9976# reason, if we set the COLLECT_NAMES environment variable, the problems
9977# vanish in a puff of smoke.
9978if test "X${COLLECT_NAMES+set}" != Xset; then
9979  COLLECT_NAMES=
9980  export COLLECT_NAMES
9981fi
9982EOF
9983    ;;
9984  esac
9985
9986  # We use sed instead of cat because bash on DJGPP gets confused if
9987  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9988  # text mode, it properly converts lines to CR/LF.  This bash problem
9989  # is reportedly fixed, but why not run on old versions too?
9990  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9991
9992  mv -f "$cfgfile" "$ofile" || \
9993    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9994  chmod +x "$ofile"
9995
9996else
9997  # If there is no Makefile yet, we rely on a make rule to execute
9998  # `config.status --recheck' to rerun these tests and create the
9999  # libtool script then.
10000  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10001  if test -f "$ltmain_in"; then
10002    test -f Makefile && make "$ltmain"
10003  fi
10004fi
10005
10006
10007ac_ext=c
10008ac_cpp='$CPP $CPPFLAGS'
10009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10011ac_compiler_gnu=$ac_cv_c_compiler_gnu
10012
10013CC="$lt_save_CC"
10014
10015
10016# Check whether --with-tags or --without-tags was given.
10017if test "${with_tags+set}" = set; then
10018  withval="$with_tags"
10019  tagnames="$withval"
10020fi;
10021
10022if test -f "$ltmain" && test -n "$tagnames"; then
10023  if test ! -f "${ofile}"; then
10024    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10025echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10026  fi
10027
10028  if test -z "$LTCC"; then
10029    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10030    if test -z "$LTCC"; then
10031      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10032echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10033    else
10034      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10035echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10036    fi
10037  fi
10038  if test -z "$LTCFLAGS"; then
10039    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10040  fi
10041
10042  # Extract list of available tagged configurations in $ofile.
10043  # Note that this assumes the entire list is on one line.
10044  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10045
10046  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10047  for tagname in $tagnames; do
10048    IFS="$lt_save_ifs"
10049    # Check whether tagname contains only valid characters
10050    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10051    "") ;;
10052    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10053echo "$as_me: error: invalid tag name: $tagname" >&2;}
10054   { (exit 1); exit 1; }; }
10055	;;
10056    esac
10057
10058    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10059    then
10060      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10061echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10062   { (exit 1); exit 1; }; }
10063    fi
10064
10065    # Update the list of available tags.
10066    if test -n "$tagname"; then
10067      echo appending configuration tag \"$tagname\" to $ofile
10068
10069      case $tagname in
10070      CXX)
10071	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10072	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10073	    (test "X$CXX" != "Xg++"))) ; then
10074	  ac_ext=cc
10075ac_cpp='$CXXCPP $CPPFLAGS'
10076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10079
10080
10081
10082
10083archive_cmds_need_lc_CXX=no
10084allow_undefined_flag_CXX=
10085always_export_symbols_CXX=no
10086archive_expsym_cmds_CXX=
10087export_dynamic_flag_spec_CXX=
10088hardcode_direct_CXX=no
10089hardcode_libdir_flag_spec_CXX=
10090hardcode_libdir_flag_spec_ld_CXX=
10091hardcode_libdir_separator_CXX=
10092hardcode_minus_L_CXX=no
10093hardcode_shlibpath_var_CXX=unsupported
10094hardcode_automatic_CXX=no
10095module_cmds_CXX=
10096module_expsym_cmds_CXX=
10097link_all_deplibs_CXX=unknown
10098old_archive_cmds_CXX=$old_archive_cmds
10099no_undefined_flag_CXX=
10100whole_archive_flag_spec_CXX=
10101enable_shared_with_static_runtimes_CXX=no
10102
10103# Dependencies to place before and after the object being linked:
10104predep_objects_CXX=
10105postdep_objects_CXX=
10106predeps_CXX=
10107postdeps_CXX=
10108compiler_lib_search_path_CXX=
10109
10110# Source file extension for C++ test sources.
10111ac_ext=cpp
10112
10113# Object file extension for compiled C++ test sources.
10114objext=o
10115objext_CXX=$objext
10116
10117# Code to be used in simple compile tests
10118lt_simple_compile_test_code="int some_variable = 0;\n"
10119
10120# Code to be used in simple link tests
10121lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10122
10123# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10124
10125# If no C compiler was specified, use CC.
10126LTCC=${LTCC-"$CC"}
10127
10128# If no C compiler flags were specified, use CFLAGS.
10129LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10130
10131# Allow CC to be a program name with arguments.
10132compiler=$CC
10133
10134
10135# save warnings/boilerplate of simple test code
10136ac_outfile=conftest.$ac_objext
10137printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10138eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10139_lt_compiler_boilerplate=`cat conftest.err`
10140$rm conftest*
10141
10142ac_outfile=conftest.$ac_objext
10143printf "$lt_simple_link_test_code" >conftest.$ac_ext
10144eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10145_lt_linker_boilerplate=`cat conftest.err`
10146$rm conftest*
10147
10148
10149# Allow CC to be a program name with arguments.
10150lt_save_CC=$CC
10151lt_save_LD=$LD
10152lt_save_GCC=$GCC
10153GCC=$GXX
10154lt_save_with_gnu_ld=$with_gnu_ld
10155lt_save_path_LD=$lt_cv_path_LD
10156if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10157  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10158else
10159  $as_unset lt_cv_prog_gnu_ld
10160fi
10161if test -n "${lt_cv_path_LDCXX+set}"; then
10162  lt_cv_path_LD=$lt_cv_path_LDCXX
10163else
10164  $as_unset lt_cv_path_LD
10165fi
10166test -z "${LDCXX+set}" || LD=$LDCXX
10167CC=${CXX-"c++"}
10168compiler=$CC
10169compiler_CXX=$CC
10170for cc_temp in $compiler""; do
10171  case $cc_temp in
10172    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10173    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10174    \-*) ;;
10175    *) break;;
10176  esac
10177done
10178cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10179
10180
10181# We don't want -fno-exception wen compiling C++ code, so set the
10182# no_builtin_flag separately
10183if test "$GXX" = yes; then
10184  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10185else
10186  lt_prog_compiler_no_builtin_flag_CXX=
10187fi
10188
10189if test "$GXX" = yes; then
10190  # Set up default GNU C++ configuration
10191
10192
10193# Check whether --with-gnu-ld or --without-gnu-ld was given.
10194if test "${with_gnu_ld+set}" = set; then
10195  withval="$with_gnu_ld"
10196  test "$withval" = no || with_gnu_ld=yes
10197else
10198  with_gnu_ld=no
10199fi;
10200ac_prog=ld
10201if test "$GCC" = yes; then
10202  # Check if gcc -print-prog-name=ld gives a path.
10203  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10204echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10205  case $host in
10206  *-*-mingw*)
10207    # gcc leaves a trailing carriage return which upsets mingw
10208    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10209  *)
10210    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10211  esac
10212  case $ac_prog in
10213    # Accept absolute paths.
10214    [\\/]* | ?:[\\/]*)
10215      re_direlt='/[^/][^/]*/\.\./'
10216      # Canonicalize the pathname of ld
10217      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10218      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10219	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10220      done
10221      test -z "$LD" && LD="$ac_prog"
10222      ;;
10223  "")
10224    # If it fails, then pretend we aren't using GCC.
10225    ac_prog=ld
10226    ;;
10227  *)
10228    # If it is relative, then search for the first ld in PATH.
10229    with_gnu_ld=unknown
10230    ;;
10231  esac
10232elif test "$with_gnu_ld" = yes; then
10233  echo "$as_me:$LINENO: checking for GNU ld" >&5
10234echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10235else
10236  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10237echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10238fi
10239if test "${lt_cv_path_LD+set}" = set; then
10240  echo $ECHO_N "(cached) $ECHO_C" >&6
10241else
10242  if test -z "$LD"; then
10243  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10244  for ac_dir in $PATH; do
10245    IFS="$lt_save_ifs"
10246    test -z "$ac_dir" && ac_dir=.
10247    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10248      lt_cv_path_LD="$ac_dir/$ac_prog"
10249      # Check to see if the program is GNU ld.  I'd rather use --version,
10250      # but apparently some variants of GNU ld only accept -v.
10251      # Break only if it was the GNU/non-GNU ld that we prefer.
10252      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10253      *GNU* | *'with BFD'*)
10254	test "$with_gnu_ld" != no && break
10255	;;
10256      *)
10257	test "$with_gnu_ld" != yes && break
10258	;;
10259      esac
10260    fi
10261  done
10262  IFS="$lt_save_ifs"
10263else
10264  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10265fi
10266fi
10267
10268LD="$lt_cv_path_LD"
10269if test -n "$LD"; then
10270  echo "$as_me:$LINENO: result: $LD" >&5
10271echo "${ECHO_T}$LD" >&6
10272else
10273  echo "$as_me:$LINENO: result: no" >&5
10274echo "${ECHO_T}no" >&6
10275fi
10276test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10277echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10278   { (exit 1); exit 1; }; }
10279echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10280echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10281if test "${lt_cv_prog_gnu_ld+set}" = set; then
10282  echo $ECHO_N "(cached) $ECHO_C" >&6
10283else
10284  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10285case `$LD -v 2>&1 </dev/null` in
10286*GNU* | *'with BFD'*)
10287  lt_cv_prog_gnu_ld=yes
10288  ;;
10289*)
10290  lt_cv_prog_gnu_ld=no
10291  ;;
10292esac
10293fi
10294echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10295echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10296with_gnu_ld=$lt_cv_prog_gnu_ld
10297
10298
10299
10300  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10301  # archiving commands below assume that GNU ld is being used.
10302  if test "$with_gnu_ld" = yes; then
10303    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10304    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'
10305
10306    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10307    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10308
10309    # If archive_cmds runs LD, not CC, wlarc should be empty
10310    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10311    #     investigate it a little bit more. (MM)
10312    wlarc='${wl}'
10313
10314    # ancient GNU ld didn't support --whole-archive et. al.
10315    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10316	grep 'no-whole-archive' > /dev/null; then
10317      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10318    else
10319      whole_archive_flag_spec_CXX=
10320    fi
10321  else
10322    with_gnu_ld=no
10323    wlarc=
10324
10325    # A generic and very simple default shared library creation
10326    # command for GNU C++ for the case where it uses the native
10327    # linker, instead of GNU ld.  If possible, this setting should
10328    # overridden to take advantage of the native linker features on
10329    # the platform it is being used on.
10330    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10331  fi
10332
10333  # Commands to make compiler produce verbose output that lists
10334  # what "hidden" libraries, object files and flags are used when
10335  # linking a shared library.
10336  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10337
10338else
10339  GXX=no
10340  with_gnu_ld=no
10341  wlarc=
10342fi
10343
10344# PORTME: fill in a description of your system's C++ link characteristics
10345echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10346echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10347ld_shlibs_CXX=yes
10348case $host_os in
10349  aix3*)
10350    # FIXME: insert proper C++ library support
10351    ld_shlibs_CXX=no
10352    ;;
10353  aix4* | aix5*)
10354    if test "$host_cpu" = ia64; then
10355      # On IA64, the linker does run time linking by default, so we don't
10356      # have to do anything special.
10357      aix_use_runtimelinking=no
10358      exp_sym_flag='-Bexport'
10359      no_entry_flag=""
10360    else
10361      aix_use_runtimelinking=no
10362
10363      # Test if we are trying to use run time linking or normal
10364      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10365      # need to do runtime linking.
10366      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10367	for ld_flag in $LDFLAGS; do
10368	  case $ld_flag in
10369	  *-brtl*)
10370	    aix_use_runtimelinking=yes
10371	    break
10372	    ;;
10373	  esac
10374	done
10375	;;
10376      esac
10377
10378      exp_sym_flag='-bexport'
10379      no_entry_flag='-bnoentry'
10380    fi
10381
10382    # When large executables or shared objects are built, AIX ld can
10383    # have problems creating the table of contents.  If linking a library
10384    # or program results in "error TOC overflow" add -mminimal-toc to
10385    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10386    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10387
10388    archive_cmds_CXX=''
10389    hardcode_direct_CXX=yes
10390    hardcode_libdir_separator_CXX=':'
10391    link_all_deplibs_CXX=yes
10392
10393    if test "$GXX" = yes; then
10394      case $host_os in aix4.[012]|aix4.[012].*)
10395      # We only want to do this on AIX 4.2 and lower, the check
10396      # below for broken collect2 doesn't work under 4.3+
10397	collect2name=`${CC} -print-prog-name=collect2`
10398	if test -f "$collect2name" && \
10399	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10400	then
10401	  # We have reworked collect2
10402	  hardcode_direct_CXX=yes
10403	else
10404	  # We have old collect2
10405	  hardcode_direct_CXX=unsupported
10406	  # It fails to find uninstalled libraries when the uninstalled
10407	  # path is not listed in the libpath.  Setting hardcode_minus_L
10408	  # to unsupported forces relinking
10409	  hardcode_minus_L_CXX=yes
10410	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10411	  hardcode_libdir_separator_CXX=
10412	fi
10413	;;
10414      esac
10415      shared_flag='-shared'
10416      if test "$aix_use_runtimelinking" = yes; then
10417	shared_flag="$shared_flag "'${wl}-G'
10418      fi
10419    else
10420      # not using gcc
10421      if test "$host_cpu" = ia64; then
10422	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10423	# chokes on -Wl,-G. The following line is correct:
10424	shared_flag='-G'
10425      else
10426	if test "$aix_use_runtimelinking" = yes; then
10427	  shared_flag='${wl}-G'
10428	else
10429	  shared_flag='${wl}-bM:SRE'
10430	fi
10431      fi
10432    fi
10433
10434    # It seems that -bexpall does not export symbols beginning with
10435    # underscore (_), so it is better to generate a list of symbols to export.
10436    always_export_symbols_CXX=yes
10437    if test "$aix_use_runtimelinking" = yes; then
10438      # Warning - without using the other runtime loading flags (-brtl),
10439      # -berok will link without error, but may produce a broken library.
10440      allow_undefined_flag_CXX='-berok'
10441      # Determine the default libpath from the value encoded in an empty executable.
10442      cat >conftest.$ac_ext <<_ACEOF
10443/* confdefs.h.  */
10444_ACEOF
10445cat confdefs.h >>conftest.$ac_ext
10446cat >>conftest.$ac_ext <<_ACEOF
10447/* end confdefs.h.  */
10448
10449int
10450main ()
10451{
10452
10453  ;
10454  return 0;
10455}
10456_ACEOF
10457rm -f conftest.$ac_objext conftest$ac_exeext
10458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10459  (eval $ac_link) 2>conftest.er1
10460  ac_status=$?
10461  grep -v '^ *+' conftest.er1 >conftest.err
10462  rm -f conftest.er1
10463  cat conftest.err >&5
10464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465  (exit $ac_status); } &&
10466	 { ac_try='test -z "$ac_cxx_werror_flag"
10467			 || test ! -s conftest.err'
10468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469  (eval $ac_try) 2>&5
10470  ac_status=$?
10471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472  (exit $ac_status); }; } &&
10473	 { ac_try='test -s conftest$ac_exeext'
10474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475  (eval $ac_try) 2>&5
10476  ac_status=$?
10477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478  (exit $ac_status); }; }; then
10479
10480aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10481}'`
10482# Check for a 64-bit object if we didn't find anything.
10483if 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; }
10484}'`; fi
10485else
10486  echo "$as_me: failed program was:" >&5
10487sed 's/^/| /' conftest.$ac_ext >&5
10488
10489fi
10490rm -f conftest.err conftest.$ac_objext \
10491      conftest$ac_exeext conftest.$ac_ext
10492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10493
10494      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10495
10496      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10497     else
10498      if test "$host_cpu" = ia64; then
10499	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10500	allow_undefined_flag_CXX="-z nodefs"
10501	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10502      else
10503	# Determine the default libpath from the value encoded in an empty executable.
10504	cat >conftest.$ac_ext <<_ACEOF
10505/* confdefs.h.  */
10506_ACEOF
10507cat confdefs.h >>conftest.$ac_ext
10508cat >>conftest.$ac_ext <<_ACEOF
10509/* end confdefs.h.  */
10510
10511int
10512main ()
10513{
10514
10515  ;
10516  return 0;
10517}
10518_ACEOF
10519rm -f conftest.$ac_objext conftest$ac_exeext
10520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10521  (eval $ac_link) 2>conftest.er1
10522  ac_status=$?
10523  grep -v '^ *+' conftest.er1 >conftest.err
10524  rm -f conftest.er1
10525  cat conftest.err >&5
10526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527  (exit $ac_status); } &&
10528	 { ac_try='test -z "$ac_cxx_werror_flag"
10529			 || test ! -s conftest.err'
10530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531  (eval $ac_try) 2>&5
10532  ac_status=$?
10533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534  (exit $ac_status); }; } &&
10535	 { ac_try='test -s conftest$ac_exeext'
10536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537  (eval $ac_try) 2>&5
10538  ac_status=$?
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); }; }; then
10541
10542aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10543}'`
10544# Check for a 64-bit object if we didn't find anything.
10545if 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; }
10546}'`; fi
10547else
10548  echo "$as_me: failed program was:" >&5
10549sed 's/^/| /' conftest.$ac_ext >&5
10550
10551fi
10552rm -f conftest.err conftest.$ac_objext \
10553      conftest$ac_exeext conftest.$ac_ext
10554if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10555
10556	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10557	# Warning - without using the other run time loading flags,
10558	# -berok will link without error, but may produce a broken library.
10559	no_undefined_flag_CXX=' ${wl}-bernotok'
10560	allow_undefined_flag_CXX=' ${wl}-berok'
10561	# Exported symbols can be pulled into shared objects from archives
10562	whole_archive_flag_spec_CXX='$convenience'
10563	archive_cmds_need_lc_CXX=yes
10564	# This is similar to how AIX traditionally builds its shared libraries.
10565	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10566      fi
10567    fi
10568    ;;
10569
10570  beos*)
10571    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10572      allow_undefined_flag_CXX=unsupported
10573      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10574      # support --undefined.  This deserves some investigation.  FIXME
10575      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10576    else
10577      ld_shlibs_CXX=no
10578    fi
10579    ;;
10580
10581  chorus*)
10582    case $cc_basename in
10583      *)
10584	# FIXME: insert proper C++ library support
10585	ld_shlibs_CXX=no
10586	;;
10587    esac
10588    ;;
10589
10590  cygwin* | mingw* | pw32*)
10591    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10592    # as there is no search path for DLLs.
10593    hardcode_libdir_flag_spec_CXX='-L$libdir'
10594    allow_undefined_flag_CXX=unsupported
10595    always_export_symbols_CXX=no
10596    enable_shared_with_static_runtimes_CXX=yes
10597
10598    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10599      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10600      # If the export-symbols file already is a .def file (1st line
10601      # is EXPORTS), use it as is; otherwise, prepend...
10602      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10603	cp $export_symbols $output_objdir/$soname.def;
10604      else
10605	echo EXPORTS > $output_objdir/$soname.def;
10606	cat $export_symbols >> $output_objdir/$soname.def;
10607      fi~
10608      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10609    else
10610      ld_shlibs_CXX=no
10611    fi
10612  ;;
10613      darwin* | rhapsody*)
10614        case $host_os in
10615        rhapsody* | darwin1.[012])
10616         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10617         ;;
10618       *) # Darwin 1.3 on
10619         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10620           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10621         else
10622           case ${MACOSX_DEPLOYMENT_TARGET} in
10623             10.[012])
10624               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10625               ;;
10626             10.*)
10627               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10628               ;;
10629           esac
10630         fi
10631         ;;
10632        esac
10633      archive_cmds_need_lc_CXX=no
10634      hardcode_direct_CXX=no
10635      hardcode_automatic_CXX=yes
10636      hardcode_shlibpath_var_CXX=unsupported
10637      whole_archive_flag_spec_CXX=''
10638      link_all_deplibs_CXX=yes
10639
10640    if test "$GXX" = yes ; then
10641      lt_int_apple_cc_single_mod=no
10642      output_verbose_link_cmd='echo'
10643      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10644       lt_int_apple_cc_single_mod=yes
10645      fi
10646      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10647       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10648      else
10649          archive_cmds_CXX='$CC -r -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'
10650        fi
10651        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10652        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10653          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10654            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}'
10655          else
10656            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10657          fi
10658            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}'
10659      else
10660      case $cc_basename in
10661        xlc*)
10662         output_verbose_link_cmd='echo'
10663          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10664          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10665          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10666          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10667          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}'
10668          ;;
10669       *)
10670         ld_shlibs_CXX=no
10671          ;;
10672      esac
10673      fi
10674        ;;
10675
10676  dgux*)
10677    case $cc_basename in
10678      ec++*)
10679	# FIXME: insert proper C++ library support
10680	ld_shlibs_CXX=no
10681	;;
10682      ghcx*)
10683	# Green Hills C++ Compiler
10684	# FIXME: insert proper C++ library support
10685	ld_shlibs_CXX=no
10686	;;
10687      *)
10688	# FIXME: insert proper C++ library support
10689	ld_shlibs_CXX=no
10690	;;
10691    esac
10692    ;;
10693  freebsd[12]*)
10694    # C++ shared libraries reported to be fairly broken before switch to ELF
10695    ld_shlibs_CXX=no
10696    ;;
10697  freebsd-elf*)
10698    archive_cmds_need_lc_CXX=no
10699    ;;
10700  freebsd* | kfreebsd*-gnu | dragonfly*)
10701    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10702    # conventions
10703    ld_shlibs_CXX=yes
10704    ;;
10705  gnu*)
10706    ;;
10707  hpux9*)
10708    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10709    hardcode_libdir_separator_CXX=:
10710    export_dynamic_flag_spec_CXX='${wl}-E'
10711    hardcode_direct_CXX=yes
10712    hardcode_minus_L_CXX=yes # Not in the search PATH,
10713				# but as the default
10714				# location of the library.
10715
10716    case $cc_basename in
10717    CC*)
10718      # FIXME: insert proper C++ library support
10719      ld_shlibs_CXX=no
10720      ;;
10721    aCC*)
10722      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'
10723      # Commands to make compiler produce verbose output that lists
10724      # what "hidden" libraries, object files and flags are used when
10725      # linking a shared library.
10726      #
10727      # There doesn't appear to be a way to prevent this compiler from
10728      # explicitly linking system object files so we need to strip them
10729      # from the output so that they don't get included in the library
10730      # dependencies.
10731      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'
10732      ;;
10733    *)
10734      if test "$GXX" = yes; then
10735        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'
10736      else
10737        # FIXME: insert proper C++ library support
10738        ld_shlibs_CXX=no
10739      fi
10740      ;;
10741    esac
10742    ;;
10743  hpux10*|hpux11*)
10744    if test $with_gnu_ld = no; then
10745      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10746      hardcode_libdir_separator_CXX=:
10747
10748      case $host_cpu in
10749      hppa*64*|ia64*)
10750	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10751        ;;
10752      *)
10753	export_dynamic_flag_spec_CXX='${wl}-E'
10754        ;;
10755      esac
10756    fi
10757    case $host_cpu in
10758    hppa*64*|ia64*)
10759      hardcode_direct_CXX=no
10760      hardcode_shlibpath_var_CXX=no
10761      ;;
10762    *)
10763      hardcode_direct_CXX=yes
10764      hardcode_minus_L_CXX=yes # Not in the search PATH,
10765					      # but as the default
10766					      # location of the library.
10767      ;;
10768    esac
10769
10770    case $cc_basename in
10771      CC*)
10772	# FIXME: insert proper C++ library support
10773	ld_shlibs_CXX=no
10774	;;
10775      aCC*)
10776	case $host_cpu in
10777	hppa*64*)
10778	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10779	  ;;
10780	ia64*)
10781	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10782	  ;;
10783	*)
10784	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10785	  ;;
10786	esac
10787	# Commands to make compiler produce verbose output that lists
10788	# what "hidden" libraries, object files and flags are used when
10789	# linking a shared library.
10790	#
10791	# There doesn't appear to be a way to prevent this compiler from
10792	# explicitly linking system object files so we need to strip them
10793	# from the output so that they don't get included in the library
10794	# dependencies.
10795	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'
10796	;;
10797      *)
10798	if test "$GXX" = yes; then
10799	  if test $with_gnu_ld = no; then
10800	    case $host_cpu in
10801	    hppa*64*)
10802	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10803	      ;;
10804	    ia64*)
10805	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10806	      ;;
10807	    *)
10808	      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'
10809	      ;;
10810	    esac
10811	  fi
10812	else
10813	  # FIXME: insert proper C++ library support
10814	  ld_shlibs_CXX=no
10815	fi
10816	;;
10817    esac
10818    ;;
10819  interix3*)
10820    hardcode_direct_CXX=no
10821    hardcode_shlibpath_var_CXX=no
10822    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10823    export_dynamic_flag_spec_CXX='${wl}-E'
10824    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10825    # Instead, shared libraries are loaded at an image base (0x10000000 by
10826    # default) and relocated if they conflict, which is a slow very memory
10827    # consuming and fragmenting process.  To avoid this, we pick a random,
10828    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10829    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10830    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10831    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10832    ;;
10833  irix5* | irix6*)
10834    case $cc_basename in
10835      CC*)
10836	# SGI C++
10837	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 ${output_objdir}/so_locations -o $lib'
10838
10839	# Archives containing C++ object files must be created using
10840	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10841	# necessary to make sure instantiated templates are included
10842	# in the archive.
10843	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10844	;;
10845      *)
10846	if test "$GXX" = yes; then
10847	  if test "$with_gnu_ld" = no; then
10848	    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}${output_objdir}/so_locations -o $lib'
10849	  else
10850	    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'
10851	  fi
10852	fi
10853	link_all_deplibs_CXX=yes
10854	;;
10855    esac
10856    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10857    hardcode_libdir_separator_CXX=:
10858    ;;
10859  linux*)
10860    case $cc_basename in
10861      KCC*)
10862	# Kuck and Associates, Inc. (KAI) C++ Compiler
10863
10864	# KCC will only create a shared library if the output file
10865	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10866	# to its proper name (with version) after linking.
10867	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'
10868	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'
10869	# Commands to make compiler produce verbose output that lists
10870	# what "hidden" libraries, object files and flags are used when
10871	# linking a shared library.
10872	#
10873	# There doesn't appear to be a way to prevent this compiler from
10874	# explicitly linking system object files so we need to strip them
10875	# from the output so that they don't get included in the library
10876	# dependencies.
10877	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'
10878
10879	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10880	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10881
10882	# Archives containing C++ object files must be created using
10883	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10884	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10885	;;
10886      icpc*)
10887	# Intel C++
10888	with_gnu_ld=yes
10889	# version 8.0 and above of icpc choke on multiply defined symbols
10890	# if we add $predep_objects and $postdep_objects, however 7.1 and
10891	# earlier do not add the objects themselves.
10892	case `$CC -V 2>&1` in
10893	*"Version 7."*)
10894  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10895  	  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'
10896	  ;;
10897	*)  # Version 8.0 or newer
10898	  tmp_idyn=
10899	  case $host_cpu in
10900	    ia64*) tmp_idyn=' -i_dynamic';;
10901	  esac
10902  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10903	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10904	  ;;
10905	esac
10906	archive_cmds_need_lc_CXX=no
10907	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10908	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10909	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10910	;;
10911      pgCC*)
10912        # Portland Group C++ compiler
10913	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10914  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10915
10916	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10917	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10918	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10919        ;;
10920      cxx*)
10921	# Compaq C++
10922	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10923	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'
10924
10925	runpath_var=LD_RUN_PATH
10926	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10927	hardcode_libdir_separator_CXX=:
10928
10929	# Commands to make compiler produce verbose output that lists
10930	# what "hidden" libraries, object files and flags are used when
10931	# linking a shared library.
10932	#
10933	# There doesn't appear to be a way to prevent this compiler from
10934	# explicitly linking system object files so we need to strip them
10935	# from the output so that they don't get included in the library
10936	# dependencies.
10937	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'
10938	;;
10939    esac
10940    ;;
10941  lynxos*)
10942    # FIXME: insert proper C++ library support
10943    ld_shlibs_CXX=no
10944    ;;
10945  m88k*)
10946    # FIXME: insert proper C++ library support
10947    ld_shlibs_CXX=no
10948    ;;
10949  mvs*)
10950    case $cc_basename in
10951      cxx*)
10952	# FIXME: insert proper C++ library support
10953	ld_shlibs_CXX=no
10954	;;
10955      *)
10956	# FIXME: insert proper C++ library support
10957	ld_shlibs_CXX=no
10958	;;
10959    esac
10960    ;;
10961  netbsd*)
10962    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10963      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10964      wlarc=
10965      hardcode_libdir_flag_spec_CXX='-R$libdir'
10966      hardcode_direct_CXX=yes
10967      hardcode_shlibpath_var_CXX=no
10968    fi
10969    # Workaround some broken pre-1.5 toolchains
10970    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10971    ;;
10972  openbsd2*)
10973    # C++ shared libraries are fairly broken
10974    ld_shlibs_CXX=no
10975    ;;
10976  openbsd*)
10977    hardcode_direct_CXX=yes
10978    hardcode_shlibpath_var_CXX=no
10979    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10980    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10981    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10982      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10983      export_dynamic_flag_spec_CXX='${wl}-E'
10984      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10985    fi
10986    output_verbose_link_cmd='echo'
10987    ;;
10988  osf3*)
10989    case $cc_basename in
10990      KCC*)
10991	# Kuck and Associates, Inc. (KAI) C++ Compiler
10992
10993	# KCC will only create a shared library if the output file
10994	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10995	# to its proper name (with version) after linking.
10996	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'
10997
10998	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10999	hardcode_libdir_separator_CXX=:
11000
11001	# Archives containing C++ object files must be created using
11002	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11003	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11004
11005	;;
11006      RCC*)
11007	# Rational C++ 2.4.1
11008	# FIXME: insert proper C++ library support
11009	ld_shlibs_CXX=no
11010	;;
11011      cxx*)
11012	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11013	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 ${output_objdir}/so_locations -o $lib'
11014
11015	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11016	hardcode_libdir_separator_CXX=:
11017
11018	# Commands to make compiler produce verbose output that lists
11019	# what "hidden" libraries, object files and flags are used when
11020	# linking a shared library.
11021	#
11022	# There doesn't appear to be a way to prevent this compiler from
11023	# explicitly linking system object files so we need to strip them
11024	# from the output so that they don't get included in the library
11025	# dependencies.
11026	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'
11027	;;
11028      *)
11029	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11030	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11031	  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}${output_objdir}/so_locations -o $lib'
11032
11033	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11034	  hardcode_libdir_separator_CXX=:
11035
11036	  # Commands to make compiler produce verbose output that lists
11037	  # what "hidden" libraries, object files and flags are used when
11038	  # linking a shared library.
11039	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11040
11041	else
11042	  # FIXME: insert proper C++ library support
11043	  ld_shlibs_CXX=no
11044	fi
11045	;;
11046    esac
11047    ;;
11048  osf4* | osf5*)
11049    case $cc_basename in
11050      KCC*)
11051	# Kuck and Associates, Inc. (KAI) C++ Compiler
11052
11053	# KCC will only create a shared library if the output file
11054	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11055	# to its proper name (with version) after linking.
11056	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'
11057
11058	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11059	hardcode_libdir_separator_CXX=:
11060
11061	# Archives containing C++ object files must be created using
11062	# the KAI C++ compiler.
11063	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11064	;;
11065      RCC*)
11066	# Rational C++ 2.4.1
11067	# FIXME: insert proper C++ library support
11068	ld_shlibs_CXX=no
11069	;;
11070      cxx*)
11071	allow_undefined_flag_CXX=' -expect_unresolved \*'
11072	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 ${output_objdir}/so_locations -o $lib'
11073	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11074	  echo "-hidden">> $lib.exp~
11075	  $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 ${output_objdir}/so_locations -o $lib~
11076	  $rm $lib.exp'
11077
11078	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11079	hardcode_libdir_separator_CXX=:
11080
11081	# Commands to make compiler produce verbose output that lists
11082	# what "hidden" libraries, object files and flags are used when
11083	# linking a shared library.
11084	#
11085	# There doesn't appear to be a way to prevent this compiler from
11086	# explicitly linking system object files so we need to strip them
11087	# from the output so that they don't get included in the library
11088	# dependencies.
11089	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'
11090	;;
11091      *)
11092	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11093	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11094	 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}${output_objdir}/so_locations -o $lib'
11095
11096	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11097	  hardcode_libdir_separator_CXX=:
11098
11099	  # Commands to make compiler produce verbose output that lists
11100	  # what "hidden" libraries, object files and flags are used when
11101	  # linking a shared library.
11102	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11103
11104	else
11105	  # FIXME: insert proper C++ library support
11106	  ld_shlibs_CXX=no
11107	fi
11108	;;
11109    esac
11110    ;;
11111  psos*)
11112    # FIXME: insert proper C++ library support
11113    ld_shlibs_CXX=no
11114    ;;
11115  sunos4*)
11116    case $cc_basename in
11117      CC*)
11118	# Sun C++ 4.x
11119	# FIXME: insert proper C++ library support
11120	ld_shlibs_CXX=no
11121	;;
11122      lcc*)
11123	# Lucid
11124	# FIXME: insert proper C++ library support
11125	ld_shlibs_CXX=no
11126	;;
11127      *)
11128	# FIXME: insert proper C++ library support
11129	ld_shlibs_CXX=no
11130	;;
11131    esac
11132    ;;
11133  solaris*)
11134    case $cc_basename in
11135      CC*)
11136	# Sun C++ 4.2, 5.x and Centerline C++
11137        archive_cmds_need_lc_CXX=yes
11138	no_undefined_flag_CXX=' -zdefs'
11139	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11140	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11141	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11142
11143	hardcode_libdir_flag_spec_CXX='-R$libdir'
11144	hardcode_shlibpath_var_CXX=no
11145	case $host_os in
11146	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11147	  *)
11148	    # The C++ compiler is used as linker so we must use $wl
11149	    # flag to pass the commands to the underlying system
11150	    # linker. We must also pass each convience library through
11151	    # to the system linker between allextract/defaultextract.
11152	    # The C++ compiler will combine linker options so we
11153	    # cannot just pass the convience library names through
11154	    # without $wl.
11155	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11156	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11157	    ;;
11158	esac
11159	link_all_deplibs_CXX=yes
11160
11161	output_verbose_link_cmd='echo'
11162
11163	# Archives containing C++ object files must be created using
11164	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11165	# necessary to make sure instantiated templates are included
11166	# in the archive.
11167	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11168	;;
11169      gcx*)
11170	# Green Hills C++ Compiler
11171	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11172
11173	# The C++ compiler must be used to create the archive.
11174	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11175	;;
11176      *)
11177	# GNU C++ compiler with Solaris linker
11178	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11179	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11180	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11181	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11182	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11183		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11184
11185	    # Commands to make compiler produce verbose output that lists
11186	    # what "hidden" libraries, object files and flags are used when
11187	    # linking a shared library.
11188	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11189	  else
11190	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11191	    # platform.
11192	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11193	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11194		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11195
11196	    # Commands to make compiler produce verbose output that lists
11197	    # what "hidden" libraries, object files and flags are used when
11198	    # linking a shared library.
11199	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11200	  fi
11201
11202	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11203	fi
11204	;;
11205    esac
11206    ;;
11207  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11208    no_undefined_flag_CXX='${wl}-z,text'
11209    archive_cmds_need_lc_CXX=no
11210    hardcode_shlibpath_var_CXX=no
11211    runpath_var='LD_RUN_PATH'
11212
11213    case $cc_basename in
11214      CC*)
11215	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11216	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11217	;;
11218      *)
11219	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11220	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11221	;;
11222    esac
11223    ;;
11224  sysv5* | sco3.2v5* | sco5v6*)
11225    # Note: We can NOT use -z defs as we might desire, because we do not
11226    # link with -lc, and that would cause any symbols used from libc to
11227    # always be unresolved, which means just about no library would
11228    # ever link correctly.  If we're not using GNU ld we use -z text
11229    # though, which does catch some bad symbols but isn't as heavy-handed
11230    # as -z defs.
11231    # For security reasons, it is highly recommended that you always
11232    # use absolute paths for naming shared libraries, and exclude the
11233    # DT_RUNPATH tag from executables and libraries.  But doing so
11234    # requires that you compile everything twice, which is a pain.
11235    # So that behaviour is only enabled if SCOABSPATH is set to a
11236    # non-empty value in the environment.  Most likely only useful for
11237    # creating official distributions of packages.
11238    # This is a hack until libtool officially supports absolute path
11239    # names for shared libraries.
11240    no_undefined_flag_CXX='${wl}-z,text'
11241    allow_undefined_flag_CXX='${wl}-z,nodefs'
11242    archive_cmds_need_lc_CXX=no
11243    hardcode_shlibpath_var_CXX=no
11244    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11245    hardcode_libdir_separator_CXX=':'
11246    link_all_deplibs_CXX=yes
11247    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11248    runpath_var='LD_RUN_PATH'
11249
11250    case $cc_basename in
11251      CC*)
11252	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11253	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11254	;;
11255      *)
11256	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11257	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11258	;;
11259    esac
11260    ;;
11261  tandem*)
11262    case $cc_basename in
11263      NCC*)
11264	# NonStop-UX NCC 3.20
11265	# FIXME: insert proper C++ library support
11266	ld_shlibs_CXX=no
11267	;;
11268      *)
11269	# FIXME: insert proper C++ library support
11270	ld_shlibs_CXX=no
11271	;;
11272    esac
11273    ;;
11274  vxworks*)
11275    # FIXME: insert proper C++ library support
11276    ld_shlibs_CXX=no
11277    ;;
11278  *)
11279    # FIXME: insert proper C++ library support
11280    ld_shlibs_CXX=no
11281    ;;
11282esac
11283echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11284echo "${ECHO_T}$ld_shlibs_CXX" >&6
11285test "$ld_shlibs_CXX" = no && can_build_shared=no
11286
11287GCC_CXX="$GXX"
11288LD_CXX="$LD"
11289
11290
11291cat > conftest.$ac_ext <<EOF
11292class Foo
11293{
11294public:
11295  Foo (void) { a = 0; }
11296private:
11297  int a;
11298};
11299EOF
11300
11301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11302  (eval $ac_compile) 2>&5
11303  ac_status=$?
11304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305  (exit $ac_status); }; then
11306  # Parse the compiler output and extract the necessary
11307  # objects, libraries and library flags.
11308
11309  # Sentinel used to keep track of whether or not we are before
11310  # the conftest object file.
11311  pre_test_object_deps_done=no
11312
11313  # The `*' in the case matches for architectures that use `case' in
11314  # $output_verbose_cmd can trigger glob expansion during the loop
11315  # eval without this substitution.
11316  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11317
11318  for p in `eval $output_verbose_link_cmd`; do
11319    case $p in
11320
11321    -L* | -R* | -l*)
11322       # Some compilers place space between "-{L,R}" and the path.
11323       # Remove the space.
11324       if test $p = "-L" \
11325	  || test $p = "-R"; then
11326	 prev=$p
11327	 continue
11328       else
11329	 prev=
11330       fi
11331
11332       if test "$pre_test_object_deps_done" = no; then
11333	 case $p in
11334	 -L* | -R*)
11335	   # Internal compiler library paths should come after those
11336	   # provided the user.  The postdeps already come after the
11337	   # user supplied libs so there is no need to process them.
11338	   if test -z "$compiler_lib_search_path_CXX"; then
11339	     compiler_lib_search_path_CXX="${prev}${p}"
11340	   else
11341	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11342	   fi
11343	   ;;
11344	 # The "-l" case would never come before the object being
11345	 # linked, so don't bother handling this case.
11346	 esac
11347       else
11348	 if test -z "$postdeps_CXX"; then
11349	   postdeps_CXX="${prev}${p}"
11350	 else
11351	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11352	 fi
11353       fi
11354       ;;
11355
11356    *.$objext)
11357       # This assumes that the test object file only shows up
11358       # once in the compiler output.
11359       if test "$p" = "conftest.$objext"; then
11360	 pre_test_object_deps_done=yes
11361	 continue
11362       fi
11363
11364       if test "$pre_test_object_deps_done" = no; then
11365	 if test -z "$predep_objects_CXX"; then
11366	   predep_objects_CXX="$p"
11367	 else
11368	   predep_objects_CXX="$predep_objects_CXX $p"
11369	 fi
11370       else
11371	 if test -z "$postdep_objects_CXX"; then
11372	   postdep_objects_CXX="$p"
11373	 else
11374	   postdep_objects_CXX="$postdep_objects_CXX $p"
11375	 fi
11376       fi
11377       ;;
11378
11379    *) ;; # Ignore the rest.
11380
11381    esac
11382  done
11383
11384  # Clean up.
11385  rm -f a.out a.exe
11386else
11387  echo "libtool.m4: error: problem compiling CXX test program"
11388fi
11389
11390$rm -f confest.$objext
11391
11392# PORTME: override above test on systems where it is broken
11393case $host_os in
11394interix3*)
11395  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11396  # hack all around it, let's just trust "g++" to DTRT.
11397  predep_objects_CXX=
11398  postdep_objects_CXX=
11399  postdeps_CXX=
11400  ;;
11401
11402solaris*)
11403  case $cc_basename in
11404  CC*)
11405    # Adding this requires a known-good setup of shared libraries for
11406    # Sun compiler versions before 5.6, else PIC objects from an old
11407    # archive will be linked into the output, leading to subtle bugs.
11408    postdeps_CXX='-lCstd -lCrun'
11409    ;;
11410  esac
11411  ;;
11412esac
11413
11414
11415case " $postdeps_CXX " in
11416*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11417esac
11418
11419lt_prog_compiler_wl_CXX=
11420lt_prog_compiler_pic_CXX=
11421lt_prog_compiler_static_CXX=
11422
11423echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11424echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11425
11426  # C++ specific cases for pic, static, wl, etc.
11427  if test "$GXX" = yes; then
11428    lt_prog_compiler_wl_CXX='-Wl,'
11429    lt_prog_compiler_static_CXX='-static'
11430
11431    case $host_os in
11432    aix*)
11433      # All AIX code is PIC.
11434      if test "$host_cpu" = ia64; then
11435	# AIX 5 now supports IA64 processor
11436	lt_prog_compiler_static_CXX='-Bstatic'
11437      fi
11438      ;;
11439    amigaos*)
11440      # FIXME: we need at least 68020 code to build shared libraries, but
11441      # adding the `-m68020' flag to GCC prevents building anything better,
11442      # like `-m68040'.
11443      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11444      ;;
11445    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11446      # PIC is the default for these OSes.
11447      ;;
11448    mingw* | os2* | pw32*)
11449      # This hack is so that the source file can tell whether it is being
11450      # built for inclusion in a dll (and should export symbols for example).
11451      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11452      ;;
11453    darwin* | rhapsody*)
11454      # PIC is the default on this platform
11455      # Common symbols not allowed in MH_DYLIB files
11456      lt_prog_compiler_pic_CXX='-fno-common'
11457      ;;
11458    *djgpp*)
11459      # DJGPP does not support shared libraries at all
11460      lt_prog_compiler_pic_CXX=
11461      ;;
11462    interix3*)
11463      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11464      # Instead, we relocate shared libraries at runtime.
11465      ;;
11466    sysv4*MP*)
11467      if test -d /usr/nec; then
11468	lt_prog_compiler_pic_CXX=-Kconform_pic
11469      fi
11470      ;;
11471    hpux*)
11472      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11473      # not for PA HP-UX.
11474      case $host_cpu in
11475      hppa*64*|ia64*)
11476	;;
11477      *)
11478	lt_prog_compiler_pic_CXX='-fPIC'
11479	;;
11480      esac
11481      ;;
11482    *)
11483      lt_prog_compiler_pic_CXX='-fPIC'
11484      ;;
11485    esac
11486  else
11487    case $host_os in
11488      aix4* | aix5*)
11489	# All AIX code is PIC.
11490	if test "$host_cpu" = ia64; then
11491	  # AIX 5 now supports IA64 processor
11492	  lt_prog_compiler_static_CXX='-Bstatic'
11493	else
11494	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11495	fi
11496	;;
11497      chorus*)
11498	case $cc_basename in
11499	cxch68*)
11500	  # Green Hills C++ Compiler
11501	  # _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"
11502	  ;;
11503	esac
11504	;;
11505       darwin*)
11506         # PIC is the default on this platform
11507         # Common symbols not allowed in MH_DYLIB files
11508         case $cc_basename in
11509           xlc*)
11510           lt_prog_compiler_pic_CXX='-qnocommon'
11511           lt_prog_compiler_wl_CXX='-Wl,'
11512           ;;
11513         esac
11514       ;;
11515      dgux*)
11516	case $cc_basename in
11517	  ec++*)
11518	    lt_prog_compiler_pic_CXX='-KPIC'
11519	    ;;
11520	  ghcx*)
11521	    # Green Hills C++ Compiler
11522	    lt_prog_compiler_pic_CXX='-pic'
11523	    ;;
11524	  *)
11525	    ;;
11526	esac
11527	;;
11528      freebsd* | kfreebsd*-gnu | dragonfly*)
11529	# FreeBSD uses GNU C++
11530	;;
11531      hpux9* | hpux10* | hpux11*)
11532	case $cc_basename in
11533	  CC*)
11534	    lt_prog_compiler_wl_CXX='-Wl,'
11535	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11536	    if test "$host_cpu" != ia64; then
11537	      lt_prog_compiler_pic_CXX='+Z'
11538	    fi
11539	    ;;
11540	  aCC*)
11541	    lt_prog_compiler_wl_CXX='-Wl,'
11542	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11543	    case $host_cpu in
11544	    hppa*64*|ia64*)
11545	      # +Z the default
11546	      ;;
11547	    *)
11548	      lt_prog_compiler_pic_CXX='+Z'
11549	      ;;
11550	    esac
11551	    ;;
11552	  *)
11553	    ;;
11554	esac
11555	;;
11556      interix*)
11557	# This is c89, which is MS Visual C++ (no shared libs)
11558	# Anyone wants to do a port?
11559	;;
11560      irix5* | irix6* | nonstopux*)
11561	case $cc_basename in
11562	  CC*)
11563	    lt_prog_compiler_wl_CXX='-Wl,'
11564	    lt_prog_compiler_static_CXX='-non_shared'
11565	    # CC pic flag -KPIC is the default.
11566	    ;;
11567	  *)
11568	    ;;
11569	esac
11570	;;
11571      linux*)
11572	case $cc_basename in
11573	  KCC*)
11574	    # KAI C++ Compiler
11575	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11576	    lt_prog_compiler_pic_CXX='-fPIC'
11577	    ;;
11578	  icpc* | ecpc*)
11579	    # Intel C++
11580	    lt_prog_compiler_wl_CXX='-Wl,'
11581	    lt_prog_compiler_pic_CXX='-KPIC'
11582	    lt_prog_compiler_static_CXX='-static'
11583	    ;;
11584	  pgCC*)
11585	    # Portland Group C++ compiler.
11586	    lt_prog_compiler_wl_CXX='-Wl,'
11587	    lt_prog_compiler_pic_CXX='-fpic'
11588	    lt_prog_compiler_static_CXX='-Bstatic'
11589	    ;;
11590	  cxx*)
11591	    # Compaq C++
11592	    # Make sure the PIC flag is empty.  It appears that all Alpha
11593	    # Linux and Compaq Tru64 Unix objects are PIC.
11594	    lt_prog_compiler_pic_CXX=
11595	    lt_prog_compiler_static_CXX='-non_shared'
11596	    ;;
11597	  *)
11598	    ;;
11599	esac
11600	;;
11601      lynxos*)
11602	;;
11603      m88k*)
11604	;;
11605      mvs*)
11606	case $cc_basename in
11607	  cxx*)
11608	    lt_prog_compiler_pic_CXX='-W c,exportall'
11609	    ;;
11610	  *)
11611	    ;;
11612	esac
11613	;;
11614      netbsd*)
11615	;;
11616      osf3* | osf4* | osf5*)
11617	case $cc_basename in
11618	  KCC*)
11619	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11620	    ;;
11621	  RCC*)
11622	    # Rational C++ 2.4.1
11623	    lt_prog_compiler_pic_CXX='-pic'
11624	    ;;
11625	  cxx*)
11626	    # Digital/Compaq C++
11627	    lt_prog_compiler_wl_CXX='-Wl,'
11628	    # Make sure the PIC flag is empty.  It appears that all Alpha
11629	    # Linux and Compaq Tru64 Unix objects are PIC.
11630	    lt_prog_compiler_pic_CXX=
11631	    lt_prog_compiler_static_CXX='-non_shared'
11632	    ;;
11633	  *)
11634	    ;;
11635	esac
11636	;;
11637      psos*)
11638	;;
11639      solaris*)
11640	case $cc_basename in
11641	  CC*)
11642	    # Sun C++ 4.2, 5.x and Centerline C++
11643	    lt_prog_compiler_pic_CXX='-KPIC'
11644	    lt_prog_compiler_static_CXX='-Bstatic'
11645	    lt_prog_compiler_wl_CXX='-Qoption ld '
11646	    ;;
11647	  gcx*)
11648	    # Green Hills C++ Compiler
11649	    lt_prog_compiler_pic_CXX='-PIC'
11650	    ;;
11651	  *)
11652	    ;;
11653	esac
11654	;;
11655      sunos4*)
11656	case $cc_basename in
11657	  CC*)
11658	    # Sun C++ 4.x
11659	    lt_prog_compiler_pic_CXX='-pic'
11660	    lt_prog_compiler_static_CXX='-Bstatic'
11661	    ;;
11662	  lcc*)
11663	    # Lucid
11664	    lt_prog_compiler_pic_CXX='-pic'
11665	    ;;
11666	  *)
11667	    ;;
11668	esac
11669	;;
11670      tandem*)
11671	case $cc_basename in
11672	  NCC*)
11673	    # NonStop-UX NCC 3.20
11674	    lt_prog_compiler_pic_CXX='-KPIC'
11675	    ;;
11676	  *)
11677	    ;;
11678	esac
11679	;;
11680      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11681	case $cc_basename in
11682	  CC*)
11683	    lt_prog_compiler_wl_CXX='-Wl,'
11684	    lt_prog_compiler_pic_CXX='-KPIC'
11685	    lt_prog_compiler_static_CXX='-Bstatic'
11686	    ;;
11687	esac
11688	;;
11689      vxworks*)
11690	;;
11691      *)
11692	lt_prog_compiler_can_build_shared_CXX=no
11693	;;
11694    esac
11695  fi
11696
11697echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11698echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11699
11700#
11701# Check to make sure the PIC flag actually works.
11702#
11703if test -n "$lt_prog_compiler_pic_CXX"; then
11704
11705echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11706echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11707if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11708  echo $ECHO_N "(cached) $ECHO_C" >&6
11709else
11710  lt_prog_compiler_pic_works_CXX=no
11711  ac_outfile=conftest.$ac_objext
11712   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11713   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11714   # Insert the option either (1) after the last *FLAGS variable, or
11715   # (2) before a word containing "conftest.", or (3) at the end.
11716   # Note that $ac_compile itself does not contain backslashes and begins
11717   # with a dollar sign (not a hyphen), so the echo should work correctly.
11718   # The option is referenced via a variable to avoid confusing sed.
11719   lt_compile=`echo "$ac_compile" | $SED \
11720   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11721   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11722   -e 's:$: $lt_compiler_flag:'`
11723   (eval echo "\"\$as_me:11723: $lt_compile\"" >&5)
11724   (eval "$lt_compile" 2>conftest.err)
11725   ac_status=$?
11726   cat conftest.err >&5
11727   echo "$as_me:11727: \$? = $ac_status" >&5
11728   if (exit $ac_status) && test -s "$ac_outfile"; then
11729     # The compiler can only warn and ignore the option if not recognized
11730     # So say no if there are warnings other than the usual output.
11731     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11732     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11733     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11734       lt_prog_compiler_pic_works_CXX=yes
11735     fi
11736   fi
11737   $rm conftest*
11738
11739fi
11740echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11741echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11742
11743if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11744    case $lt_prog_compiler_pic_CXX in
11745     "" | " "*) ;;
11746     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11747     esac
11748else
11749    lt_prog_compiler_pic_CXX=
11750     lt_prog_compiler_can_build_shared_CXX=no
11751fi
11752
11753fi
11754case $host_os in
11755  # For platforms which do not support PIC, -DPIC is meaningless:
11756  *djgpp*)
11757    lt_prog_compiler_pic_CXX=
11758    ;;
11759  *)
11760    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11761    ;;
11762esac
11763
11764#
11765# Check to make sure the static flag actually works.
11766#
11767wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11768echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11769echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11770if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11771  echo $ECHO_N "(cached) $ECHO_C" >&6
11772else
11773  lt_prog_compiler_static_works_CXX=no
11774   save_LDFLAGS="$LDFLAGS"
11775   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11776   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11777   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11778     # The linker can only warn and ignore the option if not recognized
11779     # So say no if there are warnings
11780     if test -s conftest.err; then
11781       # Append any errors to the config.log.
11782       cat conftest.err 1>&5
11783       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11784       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11785       if diff conftest.exp conftest.er2 >/dev/null; then
11786         lt_prog_compiler_static_works_CXX=yes
11787       fi
11788     else
11789       lt_prog_compiler_static_works_CXX=yes
11790     fi
11791   fi
11792   $rm conftest*
11793   LDFLAGS="$save_LDFLAGS"
11794
11795fi
11796echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11797echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11798
11799if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11800    :
11801else
11802    lt_prog_compiler_static_CXX=
11803fi
11804
11805
11806echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11807echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11808if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11809  echo $ECHO_N "(cached) $ECHO_C" >&6
11810else
11811  lt_cv_prog_compiler_c_o_CXX=no
11812   $rm -r conftest 2>/dev/null
11813   mkdir conftest
11814   cd conftest
11815   mkdir out
11816   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11817
11818   lt_compiler_flag="-o out/conftest2.$ac_objext"
11819   # Insert the option either (1) after the last *FLAGS variable, or
11820   # (2) before a word containing "conftest.", or (3) at the end.
11821   # Note that $ac_compile itself does not contain backslashes and begins
11822   # with a dollar sign (not a hyphen), so the echo should work correctly.
11823   lt_compile=`echo "$ac_compile" | $SED \
11824   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11825   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11826   -e 's:$: $lt_compiler_flag:'`
11827   (eval echo "\"\$as_me:11827: $lt_compile\"" >&5)
11828   (eval "$lt_compile" 2>out/conftest.err)
11829   ac_status=$?
11830   cat out/conftest.err >&5
11831   echo "$as_me:11831: \$? = $ac_status" >&5
11832   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11833   then
11834     # The compiler can only warn and ignore the option if not recognized
11835     # So say no if there are warnings
11836     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11837     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11838     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11839       lt_cv_prog_compiler_c_o_CXX=yes
11840     fi
11841   fi
11842   chmod u+w . 2>&5
11843   $rm conftest*
11844   # SGI C++ compiler will create directory out/ii_files/ for
11845   # template instantiation
11846   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11847   $rm out/* && rmdir out
11848   cd ..
11849   rmdir conftest
11850   $rm conftest*
11851
11852fi
11853echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11854echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11855
11856
11857hard_links="nottested"
11858if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11859  # do not overwrite the value of need_locks provided by the user
11860  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11861echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11862  hard_links=yes
11863  $rm conftest*
11864  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11865  touch conftest.a
11866  ln conftest.a conftest.b 2>&5 || hard_links=no
11867  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11868  echo "$as_me:$LINENO: result: $hard_links" >&5
11869echo "${ECHO_T}$hard_links" >&6
11870  if test "$hard_links" = no; then
11871    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11872echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11873    need_locks=warn
11874  fi
11875else
11876  need_locks=no
11877fi
11878
11879echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11880echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11881
11882  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11883  case $host_os in
11884  aix4* | aix5*)
11885    # If we're using GNU nm, then we don't want the "-C" option.
11886    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11887    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11888      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'
11889    else
11890      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'
11891    fi
11892    ;;
11893  pw32*)
11894    export_symbols_cmds_CXX="$ltdll_cmds"
11895  ;;
11896  cygwin* | mingw*)
11897    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11898  ;;
11899  *)
11900    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11901  ;;
11902  esac
11903
11904echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11905echo "${ECHO_T}$ld_shlibs_CXX" >&6
11906test "$ld_shlibs_CXX" = no && can_build_shared=no
11907
11908#
11909# Do we need to explicitly link libc?
11910#
11911case "x$archive_cmds_need_lc_CXX" in
11912x|xyes)
11913  # Assume -lc should be added
11914  archive_cmds_need_lc_CXX=yes
11915
11916  if test "$enable_shared" = yes && test "$GCC" = yes; then
11917    case $archive_cmds_CXX in
11918    *'~'*)
11919      # FIXME: we may have to deal with multi-command sequences.
11920      ;;
11921    '$CC '*)
11922      # Test whether the compiler implicitly links with -lc since on some
11923      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11924      # to ld, don't add -lc before -lgcc.
11925      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11926echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11927      $rm conftest*
11928      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11929
11930      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11931  (eval $ac_compile) 2>&5
11932  ac_status=$?
11933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934  (exit $ac_status); } 2>conftest.err; then
11935        soname=conftest
11936        lib=conftest
11937        libobjs=conftest.$ac_objext
11938        deplibs=
11939        wl=$lt_prog_compiler_wl_CXX
11940	pic_flag=$lt_prog_compiler_pic_CXX
11941        compiler_flags=-v
11942        linker_flags=-v
11943        verstring=
11944        output_objdir=.
11945        libname=conftest
11946        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11947        allow_undefined_flag_CXX=
11948        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11949  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11950  ac_status=$?
11951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952  (exit $ac_status); }
11953        then
11954	  archive_cmds_need_lc_CXX=no
11955        else
11956	  archive_cmds_need_lc_CXX=yes
11957        fi
11958        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11959      else
11960        cat conftest.err 1>&5
11961      fi
11962      $rm conftest*
11963      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11964echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11965      ;;
11966    esac
11967  fi
11968  ;;
11969esac
11970
11971echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11972echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11973library_names_spec=
11974libname_spec='lib$name'
11975soname_spec=
11976shrext_cmds=".so"
11977postinstall_cmds=
11978postuninstall_cmds=
11979finish_cmds=
11980finish_eval=
11981shlibpath_var=
11982shlibpath_overrides_runpath=unknown
11983version_type=none
11984dynamic_linker="$host_os ld.so"
11985sys_lib_dlsearch_path_spec="/lib /usr/lib"
11986if test "$GCC" = yes; then
11987  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11988  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11989    # if the path contains ";" then we assume it to be the separator
11990    # otherwise default to the standard path separator (i.e. ":") - it is
11991    # assumed that no part of a normal pathname contains ";" but that should
11992    # okay in the real world where ";" in dirpaths is itself problematic.
11993    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11994  else
11995    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11996  fi
11997else
11998  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11999fi
12000need_lib_prefix=unknown
12001hardcode_into_libs=no
12002
12003# when you set need_version to no, make sure it does not cause -set_version
12004# flags to be left without arguments
12005need_version=unknown
12006
12007case $host_os in
12008aix3*)
12009  version_type=linux
12010  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12011  shlibpath_var=LIBPATH
12012
12013  # AIX 3 has no versioning support, so we append a major version to the name.
12014  soname_spec='${libname}${release}${shared_ext}$major'
12015  ;;
12016
12017aix4* | aix5*)
12018  version_type=linux
12019  need_lib_prefix=no
12020  need_version=no
12021  hardcode_into_libs=yes
12022  if test "$host_cpu" = ia64; then
12023    # AIX 5 supports IA64
12024    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12025    shlibpath_var=LD_LIBRARY_PATH
12026  else
12027    # With GCC up to 2.95.x, collect2 would create an import file
12028    # for dependence libraries.  The import file would start with
12029    # the line `#! .'.  This would cause the generated library to
12030    # depend on `.', always an invalid library.  This was fixed in
12031    # development snapshots of GCC prior to 3.0.
12032    case $host_os in
12033      aix4 | aix4.[01] | aix4.[01].*)
12034      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12035	   echo ' yes '
12036	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12037	:
12038      else
12039	can_build_shared=no
12040      fi
12041      ;;
12042    esac
12043    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12044    # soname into executable. Probably we can add versioning support to
12045    # collect2, so additional links can be useful in future.
12046    if test "$aix_use_runtimelinking" = yes; then
12047      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12048      # instead of lib<name>.a to let people know that these are not
12049      # typical AIX shared libraries.
12050      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051    else
12052      # We preserve .a as extension for shared libraries through AIX4.2
12053      # and later when we are not doing run time linking.
12054      library_names_spec='${libname}${release}.a $libname.a'
12055      soname_spec='${libname}${release}${shared_ext}$major'
12056    fi
12057    shlibpath_var=LIBPATH
12058  fi
12059  ;;
12060
12061amigaos*)
12062  library_names_spec='$libname.ixlibrary $libname.a'
12063  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12064  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'
12065  ;;
12066
12067beos*)
12068  library_names_spec='${libname}${shared_ext}'
12069  dynamic_linker="$host_os ld.so"
12070  shlibpath_var=LIBRARY_PATH
12071  ;;
12072
12073bsdi[45]*)
12074  version_type=linux
12075  need_version=no
12076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077  soname_spec='${libname}${release}${shared_ext}$major'
12078  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12079  shlibpath_var=LD_LIBRARY_PATH
12080  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12081  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12082  # the default ld.so.conf also contains /usr/contrib/lib and
12083  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12084  # libtool to hard-code these into programs
12085  ;;
12086
12087cygwin* | mingw* | pw32*)
12088  version_type=windows
12089  shrext_cmds=".dll"
12090  need_version=no
12091  need_lib_prefix=no
12092
12093  case $GCC,$host_os in
12094  yes,cygwin* | yes,mingw* | yes,pw32*)
12095    library_names_spec='$libname.dll.a'
12096    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12097    postinstall_cmds='base_file=`basename \${file}`~
12098      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12099      dldir=$destdir/`dirname \$dlpath`~
12100      test -d \$dldir || mkdir -p \$dldir~
12101      $install_prog $dir/$dlname \$dldir/$dlname~
12102      chmod a+x \$dldir/$dlname'
12103    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12104      dlpath=$dir/\$dldll~
12105       $rm \$dlpath'
12106    shlibpath_overrides_runpath=yes
12107
12108    case $host_os in
12109    cygwin*)
12110      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12111      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12112      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12113      ;;
12114    mingw*)
12115      # MinGW DLLs use traditional 'lib' prefix
12116      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12117      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12118      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12119        # It is most probably a Windows format PATH printed by
12120        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12121        # path with ; separators, and with drive letters. We can handle the
12122        # drive letters (cygwin fileutils understands them), so leave them,
12123        # especially as we might pass files found there to a mingw objdump,
12124        # which wouldn't understand a cygwinified path. Ahh.
12125        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12126      else
12127        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12128      fi
12129      ;;
12130    pw32*)
12131      # pw32 DLLs use 'pw' prefix rather than 'lib'
12132      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12133      ;;
12134    esac
12135    ;;
12136
12137  *)
12138    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12139    ;;
12140  esac
12141  dynamic_linker='Win32 ld.exe'
12142  # FIXME: first we should search . and the directory the executable is in
12143  shlibpath_var=PATH
12144  ;;
12145
12146darwin* | rhapsody*)
12147  dynamic_linker="$host_os dyld"
12148  version_type=darwin
12149  need_lib_prefix=no
12150  need_version=no
12151  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12152  soname_spec='${libname}${release}${major}$shared_ext'
12153  shlibpath_overrides_runpath=yes
12154  shlibpath_var=DYLD_LIBRARY_PATH
12155  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12156  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12157  if test "$GCC" = yes; then
12158    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"`
12159  else
12160    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12161  fi
12162  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12163  ;;
12164
12165dgux*)
12166  version_type=linux
12167  need_lib_prefix=no
12168  need_version=no
12169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12170  soname_spec='${libname}${release}${shared_ext}$major'
12171  shlibpath_var=LD_LIBRARY_PATH
12172  ;;
12173
12174freebsd1*)
12175  dynamic_linker=no
12176  ;;
12177
12178kfreebsd*-gnu)
12179  version_type=linux
12180  need_lib_prefix=no
12181  need_version=no
12182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12183  soname_spec='${libname}${release}${shared_ext}$major'
12184  shlibpath_var=LD_LIBRARY_PATH
12185  shlibpath_overrides_runpath=no
12186  hardcode_into_libs=yes
12187  dynamic_linker='GNU ld.so'
12188  ;;
12189
12190freebsd* | dragonfly*)
12191  # DragonFly does not have aout.  When/if they implement a new
12192  # versioning mechanism, adjust this.
12193  if test -x /usr/bin/objformat; then
12194    objformat=`/usr/bin/objformat`
12195  else
12196    case $host_os in
12197    freebsd[123]*) objformat=aout ;;
12198    *) objformat=elf ;;
12199    esac
12200  fi
12201  version_type=freebsd-$objformat
12202  case $version_type in
12203    freebsd-elf*)
12204      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12205      need_version=no
12206      need_lib_prefix=no
12207      ;;
12208    freebsd-*)
12209      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12210      need_version=yes
12211      ;;
12212  esac
12213  shlibpath_var=LD_LIBRARY_PATH
12214  case $host_os in
12215  freebsd2*)
12216    shlibpath_overrides_runpath=yes
12217    ;;
12218  freebsd3.[01]* | freebsdelf3.[01]*)
12219    shlibpath_overrides_runpath=yes
12220    hardcode_into_libs=yes
12221    ;;
12222  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12223  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12224    shlibpath_overrides_runpath=no
12225    hardcode_into_libs=yes
12226    ;;
12227  freebsd*) # from 4.6 on
12228    shlibpath_overrides_runpath=yes
12229    hardcode_into_libs=yes
12230    ;;
12231  esac
12232  ;;
12233
12234gnu*)
12235  version_type=linux
12236  need_lib_prefix=no
12237  need_version=no
12238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12239  soname_spec='${libname}${release}${shared_ext}$major'
12240  shlibpath_var=LD_LIBRARY_PATH
12241  hardcode_into_libs=yes
12242  ;;
12243
12244hpux9* | hpux10* | hpux11*)
12245  # Give a soname corresponding to the major version so that dld.sl refuses to
12246  # link against other versions.
12247  version_type=sunos
12248  need_lib_prefix=no
12249  need_version=no
12250  case $host_cpu in
12251  ia64*)
12252    shrext_cmds='.so'
12253    hardcode_into_libs=yes
12254    dynamic_linker="$host_os dld.so"
12255    shlibpath_var=LD_LIBRARY_PATH
12256    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12257    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12258    soname_spec='${libname}${release}${shared_ext}$major'
12259    if test "X$HPUX_IA64_MODE" = X32; then
12260      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12261    else
12262      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12263    fi
12264    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12265    ;;
12266   hppa*64*)
12267     shrext_cmds='.sl'
12268     hardcode_into_libs=yes
12269     dynamic_linker="$host_os dld.sl"
12270     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12271     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273     soname_spec='${libname}${release}${shared_ext}$major'
12274     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12275     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12276     ;;
12277   *)
12278    shrext_cmds='.sl'
12279    dynamic_linker="$host_os dld.sl"
12280    shlibpath_var=SHLIB_PATH
12281    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12282    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283    soname_spec='${libname}${release}${shared_ext}$major'
12284    ;;
12285  esac
12286  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12287  postinstall_cmds='chmod 555 $lib'
12288  ;;
12289
12290interix3*)
12291  version_type=linux
12292  need_lib_prefix=no
12293  need_version=no
12294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12295  soname_spec='${libname}${release}${shared_ext}$major'
12296  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12297  shlibpath_var=LD_LIBRARY_PATH
12298  shlibpath_overrides_runpath=no
12299  hardcode_into_libs=yes
12300  ;;
12301
12302irix5* | irix6* | nonstopux*)
12303  case $host_os in
12304    nonstopux*) version_type=nonstopux ;;
12305    *)
12306	if test "$lt_cv_prog_gnu_ld" = yes; then
12307		version_type=linux
12308	else
12309		version_type=irix
12310	fi ;;
12311  esac
12312  need_lib_prefix=no
12313  need_version=no
12314  soname_spec='${libname}${release}${shared_ext}$major'
12315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12316  case $host_os in
12317  irix5* | nonstopux*)
12318    libsuff= shlibsuff=
12319    ;;
12320  *)
12321    case $LD in # libtool.m4 will add one of these switches to LD
12322    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12323      libsuff= shlibsuff= libmagic=32-bit;;
12324    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12325      libsuff=32 shlibsuff=N32 libmagic=N32;;
12326    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12327      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12328    *) libsuff= shlibsuff= libmagic=never-match;;
12329    esac
12330    ;;
12331  esac
12332  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12333  shlibpath_overrides_runpath=no
12334  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12335  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12336  hardcode_into_libs=yes
12337  ;;
12338
12339# No shared lib support for Linux oldld, aout, or coff.
12340linux*oldld* | linux*aout* | linux*coff*)
12341  dynamic_linker=no
12342  ;;
12343
12344# This must be Linux ELF.
12345linux*)
12346  version_type=linux
12347  need_lib_prefix=no
12348  need_version=no
12349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12350  soname_spec='${libname}${release}${shared_ext}$major'
12351  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12352  shlibpath_var=LD_LIBRARY_PATH
12353  shlibpath_overrides_runpath=no
12354  # This implies no fast_install, which is unacceptable.
12355  # Some rework will be needed to allow for fast_install
12356  # before this can be enabled.
12357  hardcode_into_libs=yes
12358
12359  # Append ld.so.conf contents to the search path
12360  if test -f /etc/ld.so.conf; then
12361    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12362    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12363  fi
12364
12365  # We used to test for /lib/ld.so.1 and disable shared libraries on
12366  # powerpc, because MkLinux only supported shared libraries with the
12367  # GNU dynamic linker.  Since this was broken with cross compilers,
12368  # most powerpc-linux boxes support dynamic linking these days and
12369  # people can always --disable-shared, the test was removed, and we
12370  # assume the GNU/Linux dynamic linker is in use.
12371  dynamic_linker='GNU/Linux ld.so'
12372  ;;
12373
12374knetbsd*-gnu)
12375  version_type=linux
12376  need_lib_prefix=no
12377  need_version=no
12378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12379  soname_spec='${libname}${release}${shared_ext}$major'
12380  shlibpath_var=LD_LIBRARY_PATH
12381  shlibpath_overrides_runpath=no
12382  hardcode_into_libs=yes
12383  dynamic_linker='GNU ld.so'
12384  ;;
12385
12386netbsd*)
12387  version_type=sunos
12388  need_lib_prefix=no
12389  need_version=no
12390  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12391    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12392    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12393    dynamic_linker='NetBSD (a.out) ld.so'
12394  else
12395    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12396    soname_spec='${libname}${release}${shared_ext}$major'
12397    dynamic_linker='NetBSD ld.elf_so'
12398  fi
12399  shlibpath_var=LD_LIBRARY_PATH
12400  shlibpath_overrides_runpath=yes
12401  hardcode_into_libs=yes
12402  ;;
12403
12404newsos6)
12405  version_type=linux
12406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12407  shlibpath_var=LD_LIBRARY_PATH
12408  shlibpath_overrides_runpath=yes
12409  ;;
12410
12411nto-qnx*)
12412  version_type=linux
12413  need_lib_prefix=no
12414  need_version=no
12415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12416  soname_spec='${libname}${release}${shared_ext}$major'
12417  shlibpath_var=LD_LIBRARY_PATH
12418  shlibpath_overrides_runpath=yes
12419  ;;
12420
12421openbsd*)
12422  version_type=sunos
12423  sys_lib_dlsearch_path_spec="/usr/lib"
12424  need_lib_prefix=no
12425  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12426  case $host_os in
12427    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12428    *)                         need_version=no  ;;
12429  esac
12430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12431  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12432  shlibpath_var=LD_LIBRARY_PATH
12433  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12434    case $host_os in
12435      openbsd2.[89] | openbsd2.[89].*)
12436	shlibpath_overrides_runpath=no
12437	;;
12438      *)
12439	shlibpath_overrides_runpath=yes
12440	;;
12441      esac
12442  else
12443    shlibpath_overrides_runpath=yes
12444  fi
12445  ;;
12446
12447os2*)
12448  libname_spec='$name'
12449  shrext_cmds=".dll"
12450  need_lib_prefix=no
12451  library_names_spec='$libname${shared_ext} $libname.a'
12452  dynamic_linker='OS/2 ld.exe'
12453  shlibpath_var=LIBPATH
12454  ;;
12455
12456osf3* | osf4* | osf5*)
12457  version_type=osf
12458  need_lib_prefix=no
12459  need_version=no
12460  soname_spec='${libname}${release}${shared_ext}$major'
12461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12462  shlibpath_var=LD_LIBRARY_PATH
12463  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12464  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12465  ;;
12466
12467solaris*)
12468  version_type=linux
12469  need_lib_prefix=no
12470  need_version=no
12471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12472  soname_spec='${libname}${release}${shared_ext}$major'
12473  shlibpath_var=LD_LIBRARY_PATH
12474  shlibpath_overrides_runpath=yes
12475  hardcode_into_libs=yes
12476  # ldd complains unless libraries are executable
12477  postinstall_cmds='chmod +x $lib'
12478  ;;
12479
12480sunos4*)
12481  version_type=sunos
12482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12483  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12484  shlibpath_var=LD_LIBRARY_PATH
12485  shlibpath_overrides_runpath=yes
12486  if test "$with_gnu_ld" = yes; then
12487    need_lib_prefix=no
12488  fi
12489  need_version=yes
12490  ;;
12491
12492sysv4 | sysv4.3*)
12493  version_type=linux
12494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12495  soname_spec='${libname}${release}${shared_ext}$major'
12496  shlibpath_var=LD_LIBRARY_PATH
12497  case $host_vendor in
12498    sni)
12499      shlibpath_overrides_runpath=no
12500      need_lib_prefix=no
12501      export_dynamic_flag_spec='${wl}-Blargedynsym'
12502      runpath_var=LD_RUN_PATH
12503      ;;
12504    siemens)
12505      need_lib_prefix=no
12506      ;;
12507    motorola)
12508      need_lib_prefix=no
12509      need_version=no
12510      shlibpath_overrides_runpath=no
12511      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12512      ;;
12513  esac
12514  ;;
12515
12516sysv4*MP*)
12517  if test -d /usr/nec ;then
12518    version_type=linux
12519    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12520    soname_spec='$libname${shared_ext}.$major'
12521    shlibpath_var=LD_LIBRARY_PATH
12522  fi
12523  ;;
12524
12525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12526  version_type=freebsd-elf
12527  need_lib_prefix=no
12528  need_version=no
12529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12530  soname_spec='${libname}${release}${shared_ext}$major'
12531  shlibpath_var=LD_LIBRARY_PATH
12532  hardcode_into_libs=yes
12533  if test "$with_gnu_ld" = yes; then
12534    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12535    shlibpath_overrides_runpath=no
12536  else
12537    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12538    shlibpath_overrides_runpath=yes
12539    case $host_os in
12540      sco3.2v5*)
12541        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12542	;;
12543    esac
12544  fi
12545  sys_lib_dlsearch_path_spec='/usr/lib'
12546  ;;
12547
12548uts4*)
12549  version_type=linux
12550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12551  soname_spec='${libname}${release}${shared_ext}$major'
12552  shlibpath_var=LD_LIBRARY_PATH
12553  ;;
12554
12555*)
12556  dynamic_linker=no
12557  ;;
12558esac
12559echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12560echo "${ECHO_T}$dynamic_linker" >&6
12561test "$dynamic_linker" = no && can_build_shared=no
12562
12563variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12564if test "$GCC" = yes; then
12565  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12566fi
12567
12568echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12569echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12570hardcode_action_CXX=
12571if test -n "$hardcode_libdir_flag_spec_CXX" || \
12572   test -n "$runpath_var_CXX" || \
12573   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12574
12575  # We can hardcode non-existant directories.
12576  if test "$hardcode_direct_CXX" != no &&
12577     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12578     # have to relink, otherwise we might link with an installed library
12579     # when we should be linking with a yet-to-be-installed one
12580     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12581     test "$hardcode_minus_L_CXX" != no; then
12582    # Linking always hardcodes the temporary library directory.
12583    hardcode_action_CXX=relink
12584  else
12585    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12586    hardcode_action_CXX=immediate
12587  fi
12588else
12589  # We cannot hardcode anything, or else we can only hardcode existing
12590  # directories.
12591  hardcode_action_CXX=unsupported
12592fi
12593echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12594echo "${ECHO_T}$hardcode_action_CXX" >&6
12595
12596if test "$hardcode_action_CXX" = relink; then
12597  # Fast installation is not supported
12598  enable_fast_install=no
12599elif test "$shlibpath_overrides_runpath" = yes ||
12600     test "$enable_shared" = no; then
12601  # Fast installation is not necessary
12602  enable_fast_install=needless
12603fi
12604
12605
12606# The else clause should only fire when bootstrapping the
12607# libtool distribution, otherwise you forgot to ship ltmain.sh
12608# with your package, and you will get complaints that there are
12609# no rules to generate ltmain.sh.
12610if test -f "$ltmain"; then
12611  # See if we are running on zsh, and set the options which allow our commands through
12612  # without removal of \ escapes.
12613  if test -n "${ZSH_VERSION+set}" ; then
12614    setopt NO_GLOB_SUBST
12615  fi
12616  # Now quote all the things that may contain metacharacters while being
12617  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12618  # variables and quote the copies for generation of the libtool script.
12619  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12620    SED SHELL STRIP \
12621    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12622    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12623    deplibs_check_method reload_flag reload_cmds need_locks \
12624    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12625    lt_cv_sys_global_symbol_to_c_name_address \
12626    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12627    old_postinstall_cmds old_postuninstall_cmds \
12628    compiler_CXX \
12629    CC_CXX \
12630    LD_CXX \
12631    lt_prog_compiler_wl_CXX \
12632    lt_prog_compiler_pic_CXX \
12633    lt_prog_compiler_static_CXX \
12634    lt_prog_compiler_no_builtin_flag_CXX \
12635    export_dynamic_flag_spec_CXX \
12636    thread_safe_flag_spec_CXX \
12637    whole_archive_flag_spec_CXX \
12638    enable_shared_with_static_runtimes_CXX \
12639    old_archive_cmds_CXX \
12640    old_archive_from_new_cmds_CXX \
12641    predep_objects_CXX \
12642    postdep_objects_CXX \
12643    predeps_CXX \
12644    postdeps_CXX \
12645    compiler_lib_search_path_CXX \
12646    archive_cmds_CXX \
12647    archive_expsym_cmds_CXX \
12648    postinstall_cmds_CXX \
12649    postuninstall_cmds_CXX \
12650    old_archive_from_expsyms_cmds_CXX \
12651    allow_undefined_flag_CXX \
12652    no_undefined_flag_CXX \
12653    export_symbols_cmds_CXX \
12654    hardcode_libdir_flag_spec_CXX \
12655    hardcode_libdir_flag_spec_ld_CXX \
12656    hardcode_libdir_separator_CXX \
12657    hardcode_automatic_CXX \
12658    module_cmds_CXX \
12659    module_expsym_cmds_CXX \
12660    lt_cv_prog_compiler_c_o_CXX \
12661    exclude_expsyms_CXX \
12662    include_expsyms_CXX; do
12663
12664    case $var in
12665    old_archive_cmds_CXX | \
12666    old_archive_from_new_cmds_CXX | \
12667    archive_cmds_CXX | \
12668    archive_expsym_cmds_CXX | \
12669    module_cmds_CXX | \
12670    module_expsym_cmds_CXX | \
12671    old_archive_from_expsyms_cmds_CXX | \
12672    export_symbols_cmds_CXX | \
12673    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12674    postinstall_cmds | postuninstall_cmds | \
12675    old_postinstall_cmds | old_postuninstall_cmds | \
12676    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12677      # Double-quote double-evaled strings.
12678      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12679      ;;
12680    *)
12681      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12682      ;;
12683    esac
12684  done
12685
12686  case $lt_echo in
12687  *'\$0 --fallback-echo"')
12688    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12689    ;;
12690  esac
12691
12692cfgfile="$ofile"
12693
12694  cat <<__EOF__ >> "$cfgfile"
12695# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12696
12697# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12698
12699# Shell to use when invoking shell scripts.
12700SHELL=$lt_SHELL
12701
12702# Whether or not to build shared libraries.
12703build_libtool_libs=$enable_shared
12704
12705# Whether or not to build static libraries.
12706build_old_libs=$enable_static
12707
12708# Whether or not to add -lc for building shared libraries.
12709build_libtool_need_lc=$archive_cmds_need_lc_CXX
12710
12711# Whether or not to disallow shared libs when runtime libs are static
12712allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12713
12714# Whether or not to optimize for fast installation.
12715fast_install=$enable_fast_install
12716
12717# The host system.
12718host_alias=$host_alias
12719host=$host
12720host_os=$host_os
12721
12722# The build system.
12723build_alias=$build_alias
12724build=$build
12725build_os=$build_os
12726
12727# An echo program that does not interpret backslashes.
12728echo=$lt_echo
12729
12730# The archiver.
12731AR=$lt_AR
12732AR_FLAGS=$lt_AR_FLAGS
12733
12734# A C compiler.
12735LTCC=$lt_LTCC
12736
12737# LTCC compiler flags.
12738LTCFLAGS=$lt_LTCFLAGS
12739
12740# A language-specific compiler.
12741CC=$lt_compiler_CXX
12742
12743# Is the compiler the GNU C compiler?
12744with_gcc=$GCC_CXX
12745
12746# An ERE matcher.
12747EGREP=$lt_EGREP
12748
12749# The linker used to build libraries.
12750LD=$lt_LD_CXX
12751
12752# Whether we need hard or soft links.
12753LN_S=$lt_LN_S
12754
12755# A BSD-compatible nm program.
12756NM=$lt_NM
12757
12758# A symbol stripping program
12759STRIP=$lt_STRIP
12760
12761# Used to examine libraries when file_magic_cmd begins "file"
12762MAGIC_CMD=$MAGIC_CMD
12763
12764# Used on cygwin: DLL creation program.
12765DLLTOOL="$DLLTOOL"
12766
12767# Used on cygwin: object dumper.
12768OBJDUMP="$OBJDUMP"
12769
12770# Used on cygwin: assembler.
12771AS="$AS"
12772
12773# The name of the directory that contains temporary libtool files.
12774objdir=$objdir
12775
12776# How to create reloadable object files.
12777reload_flag=$lt_reload_flag
12778reload_cmds=$lt_reload_cmds
12779
12780# How to pass a linker flag through the compiler.
12781wl=$lt_lt_prog_compiler_wl_CXX
12782
12783# Object file suffix (normally "o").
12784objext="$ac_objext"
12785
12786# Old archive suffix (normally "a").
12787libext="$libext"
12788
12789# Shared library suffix (normally ".so").
12790shrext_cmds='$shrext_cmds'
12791
12792# Executable file suffix (normally "").
12793exeext="$exeext"
12794
12795# Additional compiler flags for building library objects.
12796pic_flag=$lt_lt_prog_compiler_pic_CXX
12797pic_mode=$pic_mode
12798
12799# What is the maximum length of a command?
12800max_cmd_len=$lt_cv_sys_max_cmd_len
12801
12802# Does compiler simultaneously support -c and -o options?
12803compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12804
12805# Must we lock files when doing compilation?
12806need_locks=$lt_need_locks
12807
12808# Do we need the lib prefix for modules?
12809need_lib_prefix=$need_lib_prefix
12810
12811# Do we need a version for libraries?
12812need_version=$need_version
12813
12814# Whether dlopen is supported.
12815dlopen_support=$enable_dlopen
12816
12817# Whether dlopen of programs is supported.
12818dlopen_self=$enable_dlopen_self
12819
12820# Whether dlopen of statically linked programs is supported.
12821dlopen_self_static=$enable_dlopen_self_static
12822
12823# Compiler flag to prevent dynamic linking.
12824link_static_flag=$lt_lt_prog_compiler_static_CXX
12825
12826# Compiler flag to turn off builtin functions.
12827no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12828
12829# Compiler flag to allow reflexive dlopens.
12830export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12831
12832# Compiler flag to generate shared objects directly from archives.
12833whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12834
12835# Compiler flag to generate thread-safe objects.
12836thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12837
12838# Library versioning type.
12839version_type=$version_type
12840
12841# Format of library name prefix.
12842libname_spec=$lt_libname_spec
12843
12844# List of archive names.  First name is the real one, the rest are links.
12845# The last name is the one that the linker finds with -lNAME.
12846library_names_spec=$lt_library_names_spec
12847
12848# The coded name of the library, if different from the real name.
12849soname_spec=$lt_soname_spec
12850
12851# Commands used to build and install an old-style archive.
12852RANLIB=$lt_RANLIB
12853old_archive_cmds=$lt_old_archive_cmds_CXX
12854old_postinstall_cmds=$lt_old_postinstall_cmds
12855old_postuninstall_cmds=$lt_old_postuninstall_cmds
12856
12857# Create an old-style archive from a shared archive.
12858old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12859
12860# Create a temporary old-style archive to link instead of a shared archive.
12861old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12862
12863# Commands used to build and install a shared archive.
12864archive_cmds=$lt_archive_cmds_CXX
12865archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12866postinstall_cmds=$lt_postinstall_cmds
12867postuninstall_cmds=$lt_postuninstall_cmds
12868
12869# Commands used to build a loadable module (assumed same as above if empty)
12870module_cmds=$lt_module_cmds_CXX
12871module_expsym_cmds=$lt_module_expsym_cmds_CXX
12872
12873# Commands to strip libraries.
12874old_striplib=$lt_old_striplib
12875striplib=$lt_striplib
12876
12877# Dependencies to place before the objects being linked to create a
12878# shared library.
12879predep_objects=$lt_predep_objects_CXX
12880
12881# Dependencies to place after the objects being linked to create a
12882# shared library.
12883postdep_objects=$lt_postdep_objects_CXX
12884
12885# Dependencies to place before the objects being linked to create a
12886# shared library.
12887predeps=$lt_predeps_CXX
12888
12889# Dependencies to place after the objects being linked to create a
12890# shared library.
12891postdeps=$lt_postdeps_CXX
12892
12893# The library search path used internally by the compiler when linking
12894# a shared library.
12895compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12896
12897# Method to check whether dependent libraries are shared objects.
12898deplibs_check_method=$lt_deplibs_check_method
12899
12900# Command to use when deplibs_check_method == file_magic.
12901file_magic_cmd=$lt_file_magic_cmd
12902
12903# Flag that allows shared libraries with undefined symbols to be built.
12904allow_undefined_flag=$lt_allow_undefined_flag_CXX
12905
12906# Flag that forces no undefined symbols.
12907no_undefined_flag=$lt_no_undefined_flag_CXX
12908
12909# Commands used to finish a libtool library installation in a directory.
12910finish_cmds=$lt_finish_cmds
12911
12912# Same as above, but a single script fragment to be evaled but not shown.
12913finish_eval=$lt_finish_eval
12914
12915# Take the output of nm and produce a listing of raw symbols and C names.
12916global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12917
12918# Transform the output of nm in a proper C declaration
12919global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12920
12921# Transform the output of nm in a C name address pair
12922global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12923
12924# This is the shared library runtime path variable.
12925runpath_var=$runpath_var
12926
12927# This is the shared library path variable.
12928shlibpath_var=$shlibpath_var
12929
12930# Is shlibpath searched before the hard-coded library search path?
12931shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12932
12933# How to hardcode a shared library path into an executable.
12934hardcode_action=$hardcode_action_CXX
12935
12936# Whether we should hardcode library paths into libraries.
12937hardcode_into_libs=$hardcode_into_libs
12938
12939# Flag to hardcode \$libdir into a binary during linking.
12940# This must work even if \$libdir does not exist.
12941hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12942
12943# If ld is used when linking, flag to hardcode \$libdir into
12944# a binary during linking. This must work even if \$libdir does
12945# not exist.
12946hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12947
12948# Whether we need a single -rpath flag with a separated argument.
12949hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12950
12951# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12952# resulting binary.
12953hardcode_direct=$hardcode_direct_CXX
12954
12955# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12956# resulting binary.
12957hardcode_minus_L=$hardcode_minus_L_CXX
12958
12959# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12960# the resulting binary.
12961hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12962
12963# Set to yes if building a shared library automatically hardcodes DIR into the library
12964# and all subsequent libraries and executables linked against it.
12965hardcode_automatic=$hardcode_automatic_CXX
12966
12967# Variables whose values should be saved in libtool wrapper scripts and
12968# restored at relink time.
12969variables_saved_for_relink="$variables_saved_for_relink"
12970
12971# Whether libtool must link a program against all its dependency libraries.
12972link_all_deplibs=$link_all_deplibs_CXX
12973
12974# Compile-time system search path for libraries
12975sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12976
12977# Run-time system search path for libraries
12978sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12979
12980# Fix the shell variable \$srcfile for the compiler.
12981fix_srcfile_path="$fix_srcfile_path_CXX"
12982
12983# Set to yes if exported symbols are required.
12984always_export_symbols=$always_export_symbols_CXX
12985
12986# The commands to list exported symbols.
12987export_symbols_cmds=$lt_export_symbols_cmds_CXX
12988
12989# The commands to extract the exported symbol list from a shared archive.
12990extract_expsyms_cmds=$lt_extract_expsyms_cmds
12991
12992# Symbols that should not be listed in the preloaded symbols.
12993exclude_expsyms=$lt_exclude_expsyms_CXX
12994
12995# Symbols that must always be exported.
12996include_expsyms=$lt_include_expsyms_CXX
12997
12998# ### END LIBTOOL TAG CONFIG: $tagname
12999
13000__EOF__
13001
13002
13003else
13004  # If there is no Makefile yet, we rely on a make rule to execute
13005  # `config.status --recheck' to rerun these tests and create the
13006  # libtool script then.
13007  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13008  if test -f "$ltmain_in"; then
13009    test -f Makefile && make "$ltmain"
13010  fi
13011fi
13012
13013
13014ac_ext=c
13015ac_cpp='$CPP $CPPFLAGS'
13016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13018ac_compiler_gnu=$ac_cv_c_compiler_gnu
13019
13020CC=$lt_save_CC
13021LDCXX=$LD
13022LD=$lt_save_LD
13023GCC=$lt_save_GCC
13024with_gnu_ldcxx=$with_gnu_ld
13025with_gnu_ld=$lt_save_with_gnu_ld
13026lt_cv_path_LDCXX=$lt_cv_path_LD
13027lt_cv_path_LD=$lt_save_path_LD
13028lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13029lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13030
13031	else
13032	  tagname=""
13033	fi
13034	;;
13035
13036      F77)
13037	if test -n "$F77" && test "X$F77" != "Xno"; then
13038
13039ac_ext=f
13040ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13041ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13042ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13043
13044
13045archive_cmds_need_lc_F77=no
13046allow_undefined_flag_F77=
13047always_export_symbols_F77=no
13048archive_expsym_cmds_F77=
13049export_dynamic_flag_spec_F77=
13050hardcode_direct_F77=no
13051hardcode_libdir_flag_spec_F77=
13052hardcode_libdir_flag_spec_ld_F77=
13053hardcode_libdir_separator_F77=
13054hardcode_minus_L_F77=no
13055hardcode_automatic_F77=no
13056module_cmds_F77=
13057module_expsym_cmds_F77=
13058link_all_deplibs_F77=unknown
13059old_archive_cmds_F77=$old_archive_cmds
13060no_undefined_flag_F77=
13061whole_archive_flag_spec_F77=
13062enable_shared_with_static_runtimes_F77=no
13063
13064# Source file extension for f77 test sources.
13065ac_ext=f
13066
13067# Object file extension for compiled f77 test sources.
13068objext=o
13069objext_F77=$objext
13070
13071# Code to be used in simple compile tests
13072lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13073
13074# Code to be used in simple link tests
13075lt_simple_link_test_code="      program t\n      end\n"
13076
13077# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13078
13079# If no C compiler was specified, use CC.
13080LTCC=${LTCC-"$CC"}
13081
13082# If no C compiler flags were specified, use CFLAGS.
13083LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13084
13085# Allow CC to be a program name with arguments.
13086compiler=$CC
13087
13088
13089# save warnings/boilerplate of simple test code
13090ac_outfile=conftest.$ac_objext
13091printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13092eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13093_lt_compiler_boilerplate=`cat conftest.err`
13094$rm conftest*
13095
13096ac_outfile=conftest.$ac_objext
13097printf "$lt_simple_link_test_code" >conftest.$ac_ext
13098eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13099_lt_linker_boilerplate=`cat conftest.err`
13100$rm conftest*
13101
13102
13103# Allow CC to be a program name with arguments.
13104lt_save_CC="$CC"
13105CC=${F77-"f77"}
13106compiler=$CC
13107compiler_F77=$CC
13108for cc_temp in $compiler""; do
13109  case $cc_temp in
13110    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13111    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13112    \-*) ;;
13113    *) break;;
13114  esac
13115done
13116cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13117
13118
13119echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13120echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13121echo "$as_me:$LINENO: result: $can_build_shared" >&5
13122echo "${ECHO_T}$can_build_shared" >&6
13123
13124echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13125echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13126test "$can_build_shared" = "no" && enable_shared=no
13127
13128# On AIX, shared libraries and static libraries use the same namespace, and
13129# are all built from PIC.
13130case $host_os in
13131aix3*)
13132  test "$enable_shared" = yes && enable_static=no
13133  if test -n "$RANLIB"; then
13134    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13135    postinstall_cmds='$RANLIB $lib'
13136  fi
13137  ;;
13138aix4* | aix5*)
13139  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13140    test "$enable_shared" = yes && enable_static=no
13141  fi
13142  ;;
13143esac
13144echo "$as_me:$LINENO: result: $enable_shared" >&5
13145echo "${ECHO_T}$enable_shared" >&6
13146
13147echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13148echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13149# Make sure either enable_shared or enable_static is yes.
13150test "$enable_shared" = yes || enable_static=yes
13151echo "$as_me:$LINENO: result: $enable_static" >&5
13152echo "${ECHO_T}$enable_static" >&6
13153
13154GCC_F77="$G77"
13155LD_F77="$LD"
13156
13157lt_prog_compiler_wl_F77=
13158lt_prog_compiler_pic_F77=
13159lt_prog_compiler_static_F77=
13160
13161echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13162echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13163
13164  if test "$GCC" = yes; then
13165    lt_prog_compiler_wl_F77='-Wl,'
13166    lt_prog_compiler_static_F77='-static'
13167
13168    case $host_os in
13169      aix*)
13170      # All AIX code is PIC.
13171      if test "$host_cpu" = ia64; then
13172	# AIX 5 now supports IA64 processor
13173	lt_prog_compiler_static_F77='-Bstatic'
13174      fi
13175      ;;
13176
13177    amigaos*)
13178      # FIXME: we need at least 68020 code to build shared libraries, but
13179      # adding the `-m68020' flag to GCC prevents building anything better,
13180      # like `-m68040'.
13181      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13182      ;;
13183
13184    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13185      # PIC is the default for these OSes.
13186      ;;
13187
13188    mingw* | pw32* | os2*)
13189      # This hack is so that the source file can tell whether it is being
13190      # built for inclusion in a dll (and should export symbols for example).
13191      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13192      ;;
13193
13194    darwin* | rhapsody*)
13195      # PIC is the default on this platform
13196      # Common symbols not allowed in MH_DYLIB files
13197      lt_prog_compiler_pic_F77='-fno-common'
13198      ;;
13199
13200    interix3*)
13201      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13202      # Instead, we relocate shared libraries at runtime.
13203      ;;
13204
13205    msdosdjgpp*)
13206      # Just because we use GCC doesn't mean we suddenly get shared libraries
13207      # on systems that don't support them.
13208      lt_prog_compiler_can_build_shared_F77=no
13209      enable_shared=no
13210      ;;
13211
13212    sysv4*MP*)
13213      if test -d /usr/nec; then
13214	lt_prog_compiler_pic_F77=-Kconform_pic
13215      fi
13216      ;;
13217
13218    hpux*)
13219      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13220      # not for PA HP-UX.
13221      case $host_cpu in
13222      hppa*64*|ia64*)
13223	# +Z the default
13224	;;
13225      *)
13226	lt_prog_compiler_pic_F77='-fPIC'
13227	;;
13228      esac
13229      ;;
13230
13231    *)
13232      lt_prog_compiler_pic_F77='-fPIC'
13233      ;;
13234    esac
13235  else
13236    # PORTME Check for flag to pass linker flags through the system compiler.
13237    case $host_os in
13238    aix*)
13239      lt_prog_compiler_wl_F77='-Wl,'
13240      if test "$host_cpu" = ia64; then
13241	# AIX 5 now supports IA64 processor
13242	lt_prog_compiler_static_F77='-Bstatic'
13243      else
13244	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13245      fi
13246      ;;
13247      darwin*)
13248        # PIC is the default on this platform
13249        # Common symbols not allowed in MH_DYLIB files
13250       case $cc_basename in
13251         xlc*)
13252         lt_prog_compiler_pic_F77='-qnocommon'
13253         lt_prog_compiler_wl_F77='-Wl,'
13254         ;;
13255       esac
13256       ;;
13257
13258    mingw* | pw32* | os2*)
13259      # This hack is so that the source file can tell whether it is being
13260      # built for inclusion in a dll (and should export symbols for example).
13261      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13262      ;;
13263
13264    hpux9* | hpux10* | hpux11*)
13265      lt_prog_compiler_wl_F77='-Wl,'
13266      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13267      # not for PA HP-UX.
13268      case $host_cpu in
13269      hppa*64*|ia64*)
13270	# +Z the default
13271	;;
13272      *)
13273	lt_prog_compiler_pic_F77='+Z'
13274	;;
13275      esac
13276      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13277      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13278      ;;
13279
13280    irix5* | irix6* | nonstopux*)
13281      lt_prog_compiler_wl_F77='-Wl,'
13282      # PIC (with -KPIC) is the default.
13283      lt_prog_compiler_static_F77='-non_shared'
13284      ;;
13285
13286    newsos6)
13287      lt_prog_compiler_pic_F77='-KPIC'
13288      lt_prog_compiler_static_F77='-Bstatic'
13289      ;;
13290
13291    linux*)
13292      case $cc_basename in
13293      icc* | ecc*)
13294	lt_prog_compiler_wl_F77='-Wl,'
13295	lt_prog_compiler_pic_F77='-KPIC'
13296	lt_prog_compiler_static_F77='-static'
13297        ;;
13298      pgcc* | pgf77* | pgf90* | pgf95*)
13299        # Portland Group compilers (*not* the Pentium gcc compiler,
13300	# which looks to be a dead project)
13301	lt_prog_compiler_wl_F77='-Wl,'
13302	lt_prog_compiler_pic_F77='-fpic'
13303	lt_prog_compiler_static_F77='-Bstatic'
13304        ;;
13305      ccc*)
13306        lt_prog_compiler_wl_F77='-Wl,'
13307        # All Alpha code is PIC.
13308        lt_prog_compiler_static_F77='-non_shared'
13309        ;;
13310      esac
13311      ;;
13312
13313    osf3* | osf4* | osf5*)
13314      lt_prog_compiler_wl_F77='-Wl,'
13315      # All OSF/1 code is PIC.
13316      lt_prog_compiler_static_F77='-non_shared'
13317      ;;
13318
13319    solaris*)
13320      lt_prog_compiler_pic_F77='-KPIC'
13321      lt_prog_compiler_static_F77='-Bstatic'
13322      case $cc_basename in
13323      f77* | f90* | f95*)
13324	lt_prog_compiler_wl_F77='-Qoption ld ';;
13325      *)
13326	lt_prog_compiler_wl_F77='-Wl,';;
13327      esac
13328      ;;
13329
13330    sunos4*)
13331      lt_prog_compiler_wl_F77='-Qoption ld '
13332      lt_prog_compiler_pic_F77='-PIC'
13333      lt_prog_compiler_static_F77='-Bstatic'
13334      ;;
13335
13336    sysv4 | sysv4.2uw2* | sysv4.3*)
13337      lt_prog_compiler_wl_F77='-Wl,'
13338      lt_prog_compiler_pic_F77='-KPIC'
13339      lt_prog_compiler_static_F77='-Bstatic'
13340      ;;
13341
13342    sysv4*MP*)
13343      if test -d /usr/nec ;then
13344	lt_prog_compiler_pic_F77='-Kconform_pic'
13345	lt_prog_compiler_static_F77='-Bstatic'
13346      fi
13347      ;;
13348
13349    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13350      lt_prog_compiler_wl_F77='-Wl,'
13351      lt_prog_compiler_pic_F77='-KPIC'
13352      lt_prog_compiler_static_F77='-Bstatic'
13353      ;;
13354
13355    unicos*)
13356      lt_prog_compiler_wl_F77='-Wl,'
13357      lt_prog_compiler_can_build_shared_F77=no
13358      ;;
13359
13360    uts4*)
13361      lt_prog_compiler_pic_F77='-pic'
13362      lt_prog_compiler_static_F77='-Bstatic'
13363      ;;
13364
13365    *)
13366      lt_prog_compiler_can_build_shared_F77=no
13367      ;;
13368    esac
13369  fi
13370
13371echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13372echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13373
13374#
13375# Check to make sure the PIC flag actually works.
13376#
13377if test -n "$lt_prog_compiler_pic_F77"; then
13378
13379echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13380echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13381if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13382  echo $ECHO_N "(cached) $ECHO_C" >&6
13383else
13384  lt_prog_compiler_pic_works_F77=no
13385  ac_outfile=conftest.$ac_objext
13386   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13387   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13388   # Insert the option either (1) after the last *FLAGS variable, or
13389   # (2) before a word containing "conftest.", or (3) at the end.
13390   # Note that $ac_compile itself does not contain backslashes and begins
13391   # with a dollar sign (not a hyphen), so the echo should work correctly.
13392   # The option is referenced via a variable to avoid confusing sed.
13393   lt_compile=`echo "$ac_compile" | $SED \
13394   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13395   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13396   -e 's:$: $lt_compiler_flag:'`
13397   (eval echo "\"\$as_me:13397: $lt_compile\"" >&5)
13398   (eval "$lt_compile" 2>conftest.err)
13399   ac_status=$?
13400   cat conftest.err >&5
13401   echo "$as_me:13401: \$? = $ac_status" >&5
13402   if (exit $ac_status) && test -s "$ac_outfile"; then
13403     # The compiler can only warn and ignore the option if not recognized
13404     # So say no if there are warnings other than the usual output.
13405     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13406     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13407     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13408       lt_prog_compiler_pic_works_F77=yes
13409     fi
13410   fi
13411   $rm conftest*
13412
13413fi
13414echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13415echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13416
13417if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13418    case $lt_prog_compiler_pic_F77 in
13419     "" | " "*) ;;
13420     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13421     esac
13422else
13423    lt_prog_compiler_pic_F77=
13424     lt_prog_compiler_can_build_shared_F77=no
13425fi
13426
13427fi
13428case $host_os in
13429  # For platforms which do not support PIC, -DPIC is meaningless:
13430  *djgpp*)
13431    lt_prog_compiler_pic_F77=
13432    ;;
13433  *)
13434    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13435    ;;
13436esac
13437
13438#
13439# Check to make sure the static flag actually works.
13440#
13441wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13442echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13443echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13444if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13445  echo $ECHO_N "(cached) $ECHO_C" >&6
13446else
13447  lt_prog_compiler_static_works_F77=no
13448   save_LDFLAGS="$LDFLAGS"
13449   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13450   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13451   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13452     # The linker can only warn and ignore the option if not recognized
13453     # So say no if there are warnings
13454     if test -s conftest.err; then
13455       # Append any errors to the config.log.
13456       cat conftest.err 1>&5
13457       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13458       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13459       if diff conftest.exp conftest.er2 >/dev/null; then
13460         lt_prog_compiler_static_works_F77=yes
13461       fi
13462     else
13463       lt_prog_compiler_static_works_F77=yes
13464     fi
13465   fi
13466   $rm conftest*
13467   LDFLAGS="$save_LDFLAGS"
13468
13469fi
13470echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13471echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13472
13473if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13474    :
13475else
13476    lt_prog_compiler_static_F77=
13477fi
13478
13479
13480echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13481echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13482if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13483  echo $ECHO_N "(cached) $ECHO_C" >&6
13484else
13485  lt_cv_prog_compiler_c_o_F77=no
13486   $rm -r conftest 2>/dev/null
13487   mkdir conftest
13488   cd conftest
13489   mkdir out
13490   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13491
13492   lt_compiler_flag="-o out/conftest2.$ac_objext"
13493   # Insert the option either (1) after the last *FLAGS variable, or
13494   # (2) before a word containing "conftest.", or (3) at the end.
13495   # Note that $ac_compile itself does not contain backslashes and begins
13496   # with a dollar sign (not a hyphen), so the echo should work correctly.
13497   lt_compile=`echo "$ac_compile" | $SED \
13498   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13499   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13500   -e 's:$: $lt_compiler_flag:'`
13501   (eval echo "\"\$as_me:13501: $lt_compile\"" >&5)
13502   (eval "$lt_compile" 2>out/conftest.err)
13503   ac_status=$?
13504   cat out/conftest.err >&5
13505   echo "$as_me:13505: \$? = $ac_status" >&5
13506   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13507   then
13508     # The compiler can only warn and ignore the option if not recognized
13509     # So say no if there are warnings
13510     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13511     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13512     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13513       lt_cv_prog_compiler_c_o_F77=yes
13514     fi
13515   fi
13516   chmod u+w . 2>&5
13517   $rm conftest*
13518   # SGI C++ compiler will create directory out/ii_files/ for
13519   # template instantiation
13520   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13521   $rm out/* && rmdir out
13522   cd ..
13523   rmdir conftest
13524   $rm conftest*
13525
13526fi
13527echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13528echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13529
13530
13531hard_links="nottested"
13532if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13533  # do not overwrite the value of need_locks provided by the user
13534  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13535echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13536  hard_links=yes
13537  $rm conftest*
13538  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13539  touch conftest.a
13540  ln conftest.a conftest.b 2>&5 || hard_links=no
13541  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13542  echo "$as_me:$LINENO: result: $hard_links" >&5
13543echo "${ECHO_T}$hard_links" >&6
13544  if test "$hard_links" = no; then
13545    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13546echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13547    need_locks=warn
13548  fi
13549else
13550  need_locks=no
13551fi
13552
13553echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13554echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13555
13556  runpath_var=
13557  allow_undefined_flag_F77=
13558  enable_shared_with_static_runtimes_F77=no
13559  archive_cmds_F77=
13560  archive_expsym_cmds_F77=
13561  old_archive_From_new_cmds_F77=
13562  old_archive_from_expsyms_cmds_F77=
13563  export_dynamic_flag_spec_F77=
13564  whole_archive_flag_spec_F77=
13565  thread_safe_flag_spec_F77=
13566  hardcode_libdir_flag_spec_F77=
13567  hardcode_libdir_flag_spec_ld_F77=
13568  hardcode_libdir_separator_F77=
13569  hardcode_direct_F77=no
13570  hardcode_minus_L_F77=no
13571  hardcode_shlibpath_var_F77=unsupported
13572  link_all_deplibs_F77=unknown
13573  hardcode_automatic_F77=no
13574  module_cmds_F77=
13575  module_expsym_cmds_F77=
13576  always_export_symbols_F77=no
13577  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13578  # include_expsyms should be a list of space-separated symbols to be *always*
13579  # included in the symbol list
13580  include_expsyms_F77=
13581  # exclude_expsyms can be an extended regexp of symbols to exclude
13582  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13583  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13584  # as well as any symbol that contains `d'.
13585  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13586  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13587  # platforms (ab)use it in PIC code, but their linkers get confused if
13588  # the symbol is explicitly referenced.  Since portable code cannot
13589  # rely on this symbol name, it's probably fine to never include it in
13590  # preloaded symbol tables.
13591  extract_expsyms_cmds=
13592  # Just being paranoid about ensuring that cc_basename is set.
13593  for cc_temp in $compiler""; do
13594  case $cc_temp in
13595    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13596    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13597    \-*) ;;
13598    *) break;;
13599  esac
13600done
13601cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13602
13603  case $host_os in
13604  cygwin* | mingw* | pw32*)
13605    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13606    # When not using gcc, we currently assume that we are using
13607    # Microsoft Visual C++.
13608    if test "$GCC" != yes; then
13609      with_gnu_ld=no
13610    fi
13611    ;;
13612  interix*)
13613    # we just hope/assume this is gcc and not c89 (= MSVC++)
13614    with_gnu_ld=yes
13615    ;;
13616  openbsd*)
13617    with_gnu_ld=no
13618    ;;
13619  esac
13620
13621  ld_shlibs_F77=yes
13622  if test "$with_gnu_ld" = yes; then
13623    # If archive_cmds runs LD, not CC, wlarc should be empty
13624    wlarc='${wl}'
13625
13626    # Set some defaults for GNU ld with shared library support. These
13627    # are reset later if shared libraries are not supported. Putting them
13628    # here allows them to be overridden if necessary.
13629    runpath_var=LD_RUN_PATH
13630    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13631    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13632    # ancient GNU ld didn't support --whole-archive et. al.
13633    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13634	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13635      else
13636  	whole_archive_flag_spec_F77=
13637    fi
13638    supports_anon_versioning=no
13639    case `$LD -v 2>/dev/null` in
13640      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13641      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13642      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13643      *\ 2.11.*) ;; # other 2.11 versions
13644      *) supports_anon_versioning=yes ;;
13645    esac
13646
13647    # See if GNU ld supports shared libraries.
13648    case $host_os in
13649    aix3* | aix4* | aix5*)
13650      # On AIX/PPC, the GNU linker is very broken
13651      if test "$host_cpu" != ia64; then
13652	ld_shlibs_F77=no
13653	cat <<EOF 1>&2
13654
13655*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13656*** to be unable to reliably create shared libraries on AIX.
13657*** Therefore, libtool is disabling shared libraries support.  If you
13658*** really care for shared libraries, you may want to modify your PATH
13659*** so that a non-GNU linker is found, and then restart.
13660
13661EOF
13662      fi
13663      ;;
13664
13665    amigaos*)
13666      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)'
13667      hardcode_libdir_flag_spec_F77='-L$libdir'
13668      hardcode_minus_L_F77=yes
13669
13670      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13671      # that the semantics of dynamic libraries on AmigaOS, at least up
13672      # to version 4, is to share data among multiple programs linked
13673      # with the same dynamic library.  Since this doesn't match the
13674      # behavior of shared libraries on other platforms, we can't use
13675      # them.
13676      ld_shlibs_F77=no
13677      ;;
13678
13679    beos*)
13680      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13681	allow_undefined_flag_F77=unsupported
13682	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13683	# support --undefined.  This deserves some investigation.  FIXME
13684	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13685      else
13686	ld_shlibs_F77=no
13687      fi
13688      ;;
13689
13690    cygwin* | mingw* | pw32*)
13691      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13692      # as there is no search path for DLLs.
13693      hardcode_libdir_flag_spec_F77='-L$libdir'
13694      allow_undefined_flag_F77=unsupported
13695      always_export_symbols_F77=no
13696      enable_shared_with_static_runtimes_F77=yes
13697      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13698
13699      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13700        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13701	# If the export-symbols file already is a .def file (1st line
13702	# is EXPORTS), use it as is; otherwise, prepend...
13703	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13704	  cp $export_symbols $output_objdir/$soname.def;
13705	else
13706	  echo EXPORTS > $output_objdir/$soname.def;
13707	  cat $export_symbols >> $output_objdir/$soname.def;
13708	fi~
13709	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13710      else
13711	ld_shlibs_F77=no
13712      fi
13713      ;;
13714
13715    interix3*)
13716      hardcode_direct_F77=no
13717      hardcode_shlibpath_var_F77=no
13718      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13719      export_dynamic_flag_spec_F77='${wl}-E'
13720      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13721      # Instead, shared libraries are loaded at an image base (0x10000000 by
13722      # default) and relocated if they conflict, which is a slow very memory
13723      # consuming and fragmenting process.  To avoid this, we pick a random,
13724      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13725      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13726      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13727      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13728      ;;
13729
13730    linux*)
13731      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13732	tmp_addflag=
13733	case $cc_basename,$host_cpu in
13734	pgcc*)				# Portland Group C compiler
13735	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13736	  tmp_addflag=' $pic_flag'
13737	  ;;
13738	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13739	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13740	  tmp_addflag=' $pic_flag -Mnomain' ;;
13741	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13742	  tmp_addflag=' -i_dynamic' ;;
13743	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13744	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13745	ifc* | ifort*)			# Intel Fortran compiler
13746	  tmp_addflag=' -nofor_main' ;;
13747	esac
13748	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13749
13750	if test $supports_anon_versioning = yes; then
13751	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13752  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13753  $echo "local: *; };" >> $output_objdir/$libname.ver~
13754	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13755	fi
13756      else
13757	ld_shlibs_F77=no
13758      fi
13759      ;;
13760
13761    netbsd*)
13762      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13763	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13764	wlarc=
13765      else
13766	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13767	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13768      fi
13769      ;;
13770
13771    solaris*)
13772      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13773	ld_shlibs_F77=no
13774	cat <<EOF 1>&2
13775
13776*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13777*** create shared libraries on Solaris systems.  Therefore, libtool
13778*** is disabling shared libraries support.  We urge you to upgrade GNU
13779*** binutils to release 2.9.1 or newer.  Another option is to modify
13780*** your PATH or compiler configuration so that the native linker is
13781*** used, and then restart.
13782
13783EOF
13784      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13785	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13786	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13787      else
13788	ld_shlibs_F77=no
13789      fi
13790      ;;
13791
13792    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13793      case `$LD -v 2>&1` in
13794        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13795	ld_shlibs_F77=no
13796	cat <<_LT_EOF 1>&2
13797
13798*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13799*** reliably create shared libraries on SCO systems.  Therefore, libtool
13800*** is disabling shared libraries support.  We urge you to upgrade GNU
13801*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13802*** your PATH or compiler configuration so that the native linker is
13803*** used, and then restart.
13804
13805_LT_EOF
13806	;;
13807	*)
13808	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13809	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13810	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13811	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13812	  else
13813	    ld_shlibs_F77=no
13814	  fi
13815	;;
13816      esac
13817      ;;
13818
13819    sunos4*)
13820      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13821      wlarc=
13822      hardcode_direct_F77=yes
13823      hardcode_shlibpath_var_F77=no
13824      ;;
13825
13826    *)
13827      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13828	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13829	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13830      else
13831	ld_shlibs_F77=no
13832      fi
13833      ;;
13834    esac
13835
13836    if test "$ld_shlibs_F77" = no; then
13837      runpath_var=
13838      hardcode_libdir_flag_spec_F77=
13839      export_dynamic_flag_spec_F77=
13840      whole_archive_flag_spec_F77=
13841    fi
13842  else
13843    # PORTME fill in a description of your system's linker (not GNU ld)
13844    case $host_os in
13845    aix3*)
13846      allow_undefined_flag_F77=unsupported
13847      always_export_symbols_F77=yes
13848      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'
13849      # Note: this linker hardcodes the directories in LIBPATH if there
13850      # are no directories specified by -L.
13851      hardcode_minus_L_F77=yes
13852      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13853	# Neither direct hardcoding nor static linking is supported with a
13854	# broken collect2.
13855	hardcode_direct_F77=unsupported
13856      fi
13857      ;;
13858
13859    aix4* | aix5*)
13860      if test "$host_cpu" = ia64; then
13861	# On IA64, the linker does run time linking by default, so we don't
13862	# have to do anything special.
13863	aix_use_runtimelinking=no
13864	exp_sym_flag='-Bexport'
13865	no_entry_flag=""
13866      else
13867	# If we're using GNU nm, then we don't want the "-C" option.
13868	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13869	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13870	  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'
13871	else
13872	  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'
13873	fi
13874	aix_use_runtimelinking=no
13875
13876	# Test if we are trying to use run time linking or normal
13877	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13878	# need to do runtime linking.
13879	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13880	  for ld_flag in $LDFLAGS; do
13881  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13882  	    aix_use_runtimelinking=yes
13883  	    break
13884  	  fi
13885	  done
13886	  ;;
13887	esac
13888
13889	exp_sym_flag='-bexport'
13890	no_entry_flag='-bnoentry'
13891      fi
13892
13893      # When large executables or shared objects are built, AIX ld can
13894      # have problems creating the table of contents.  If linking a library
13895      # or program results in "error TOC overflow" add -mminimal-toc to
13896      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13897      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13898
13899      archive_cmds_F77=''
13900      hardcode_direct_F77=yes
13901      hardcode_libdir_separator_F77=':'
13902      link_all_deplibs_F77=yes
13903
13904      if test "$GCC" = yes; then
13905	case $host_os in aix4.[012]|aix4.[012].*)
13906	# We only want to do this on AIX 4.2 and lower, the check
13907	# below for broken collect2 doesn't work under 4.3+
13908	  collect2name=`${CC} -print-prog-name=collect2`
13909	  if test -f "$collect2name" && \
13910  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13911	  then
13912  	  # We have reworked collect2
13913  	  hardcode_direct_F77=yes
13914	  else
13915  	  # We have old collect2
13916  	  hardcode_direct_F77=unsupported
13917  	  # It fails to find uninstalled libraries when the uninstalled
13918  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13919  	  # to unsupported forces relinking
13920  	  hardcode_minus_L_F77=yes
13921  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13922  	  hardcode_libdir_separator_F77=
13923	  fi
13924	  ;;
13925	esac
13926	shared_flag='-shared'
13927	if test "$aix_use_runtimelinking" = yes; then
13928	  shared_flag="$shared_flag "'${wl}-G'
13929	fi
13930      else
13931	# not using gcc
13932	if test "$host_cpu" = ia64; then
13933  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13934  	# chokes on -Wl,-G. The following line is correct:
13935	  shared_flag='-G'
13936	else
13937	  if test "$aix_use_runtimelinking" = yes; then
13938	    shared_flag='${wl}-G'
13939	  else
13940	    shared_flag='${wl}-bM:SRE'
13941	  fi
13942	fi
13943      fi
13944
13945      # It seems that -bexpall does not export symbols beginning with
13946      # underscore (_), so it is better to generate a list of symbols to export.
13947      always_export_symbols_F77=yes
13948      if test "$aix_use_runtimelinking" = yes; then
13949	# Warning - without using the other runtime loading flags (-brtl),
13950	# -berok will link without error, but may produce a broken library.
13951	allow_undefined_flag_F77='-berok'
13952       # Determine the default libpath from the value encoded in an empty executable.
13953       cat >conftest.$ac_ext <<_ACEOF
13954      program main
13955
13956      end
13957_ACEOF
13958rm -f conftest.$ac_objext conftest$ac_exeext
13959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13960  (eval $ac_link) 2>conftest.er1
13961  ac_status=$?
13962  grep -v '^ *+' conftest.er1 >conftest.err
13963  rm -f conftest.er1
13964  cat conftest.err >&5
13965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966  (exit $ac_status); } &&
13967	 { ac_try='test -z "$ac_f77_werror_flag"
13968			 || test ! -s conftest.err'
13969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970  (eval $ac_try) 2>&5
13971  ac_status=$?
13972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973  (exit $ac_status); }; } &&
13974	 { ac_try='test -s conftest$ac_exeext'
13975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976  (eval $ac_try) 2>&5
13977  ac_status=$?
13978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979  (exit $ac_status); }; }; then
13980
13981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13982}'`
13983# Check for a 64-bit object if we didn't find anything.
13984if 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; }
13985}'`; fi
13986else
13987  echo "$as_me: failed program was:" >&5
13988sed 's/^/| /' conftest.$ac_ext >&5
13989
13990fi
13991rm -f conftest.err conftest.$ac_objext \
13992      conftest$ac_exeext conftest.$ac_ext
13993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13994
13995       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13996	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13997       else
13998	if test "$host_cpu" = ia64; then
13999	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14000	  allow_undefined_flag_F77="-z nodefs"
14001	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14002	else
14003	 # Determine the default libpath from the value encoded in an empty executable.
14004	 cat >conftest.$ac_ext <<_ACEOF
14005      program main
14006
14007      end
14008_ACEOF
14009rm -f conftest.$ac_objext conftest$ac_exeext
14010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011  (eval $ac_link) 2>conftest.er1
14012  ac_status=$?
14013  grep -v '^ *+' conftest.er1 >conftest.err
14014  rm -f conftest.er1
14015  cat conftest.err >&5
14016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017  (exit $ac_status); } &&
14018	 { ac_try='test -z "$ac_f77_werror_flag"
14019			 || test ! -s conftest.err'
14020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021  (eval $ac_try) 2>&5
14022  ac_status=$?
14023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024  (exit $ac_status); }; } &&
14025	 { ac_try='test -s conftest$ac_exeext'
14026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027  (eval $ac_try) 2>&5
14028  ac_status=$?
14029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030  (exit $ac_status); }; }; then
14031
14032aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14033}'`
14034# Check for a 64-bit object if we didn't find anything.
14035if 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; }
14036}'`; fi
14037else
14038  echo "$as_me: failed program was:" >&5
14039sed 's/^/| /' conftest.$ac_ext >&5
14040
14041fi
14042rm -f conftest.err conftest.$ac_objext \
14043      conftest$ac_exeext conftest.$ac_ext
14044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14045
14046	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14047	  # Warning - without using the other run time loading flags,
14048	  # -berok will link without error, but may produce a broken library.
14049	  no_undefined_flag_F77=' ${wl}-bernotok'
14050	  allow_undefined_flag_F77=' ${wl}-berok'
14051	  # Exported symbols can be pulled into shared objects from archives
14052	  whole_archive_flag_spec_F77='$convenience'
14053	  archive_cmds_need_lc_F77=yes
14054	  # This is similar to how AIX traditionally builds its shared libraries.
14055	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14056	fi
14057      fi
14058      ;;
14059
14060    amigaos*)
14061      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)'
14062      hardcode_libdir_flag_spec_F77='-L$libdir'
14063      hardcode_minus_L_F77=yes
14064      # see comment about different semantics on the GNU ld section
14065      ld_shlibs_F77=no
14066      ;;
14067
14068    bsdi[45]*)
14069      export_dynamic_flag_spec_F77=-rdynamic
14070      ;;
14071
14072    cygwin* | mingw* | pw32*)
14073      # When not using gcc, we currently assume that we are using
14074      # Microsoft Visual C++.
14075      # hardcode_libdir_flag_spec is actually meaningless, as there is
14076      # no search path for DLLs.
14077      hardcode_libdir_flag_spec_F77=' '
14078      allow_undefined_flag_F77=unsupported
14079      # Tell ltmain to make .lib files, not .a files.
14080      libext=lib
14081      # Tell ltmain to make .dll files, not .so files.
14082      shrext_cmds=".dll"
14083      # FIXME: Setting linknames here is a bad hack.
14084      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14085      # The linker will automatically build a .lib file if we build a DLL.
14086      old_archive_From_new_cmds_F77='true'
14087      # FIXME: Should let the user specify the lib program.
14088      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14089      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14090      enable_shared_with_static_runtimes_F77=yes
14091      ;;
14092
14093    darwin* | rhapsody*)
14094      case $host_os in
14095        rhapsody* | darwin1.[012])
14096         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14097         ;;
14098       *) # Darwin 1.3 on
14099         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14100           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14101         else
14102           case ${MACOSX_DEPLOYMENT_TARGET} in
14103             10.[012])
14104               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14105               ;;
14106             10.*)
14107               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14108               ;;
14109           esac
14110         fi
14111         ;;
14112      esac
14113      archive_cmds_need_lc_F77=no
14114      hardcode_direct_F77=no
14115      hardcode_automatic_F77=yes
14116      hardcode_shlibpath_var_F77=unsupported
14117      whole_archive_flag_spec_F77=''
14118      link_all_deplibs_F77=yes
14119    if test "$GCC" = yes ; then
14120    	output_verbose_link_cmd='echo'
14121        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14122      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14123      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14124      archive_expsym_cmds_F77='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}'
14125      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}'
14126    else
14127      case $cc_basename in
14128        xlc*)
14129         output_verbose_link_cmd='echo'
14130         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14131         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14132          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14133         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14134          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}'
14135          ;;
14136       *)
14137         ld_shlibs_F77=no
14138          ;;
14139      esac
14140    fi
14141      ;;
14142
14143    dgux*)
14144      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145      hardcode_libdir_flag_spec_F77='-L$libdir'
14146      hardcode_shlibpath_var_F77=no
14147      ;;
14148
14149    freebsd1*)
14150      ld_shlibs_F77=no
14151      ;;
14152
14153    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14154    # support.  Future versions do this automatically, but an explicit c++rt0.o
14155    # does not break anything, and helps significantly (at the cost of a little
14156    # extra space).
14157    freebsd2.2*)
14158      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14159      hardcode_libdir_flag_spec_F77='-R$libdir'
14160      hardcode_direct_F77=yes
14161      hardcode_shlibpath_var_F77=no
14162      ;;
14163
14164    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14165    freebsd2*)
14166      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14167      hardcode_direct_F77=yes
14168      hardcode_minus_L_F77=yes
14169      hardcode_shlibpath_var_F77=no
14170      ;;
14171
14172    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14173    freebsd* | kfreebsd*-gnu | dragonfly*)
14174      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14175      hardcode_libdir_flag_spec_F77='-R$libdir'
14176      hardcode_direct_F77=yes
14177      hardcode_shlibpath_var_F77=no
14178      ;;
14179
14180    hpux9*)
14181      if test "$GCC" = yes; then
14182	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'
14183      else
14184	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'
14185      fi
14186      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14187      hardcode_libdir_separator_F77=:
14188      hardcode_direct_F77=yes
14189
14190      # hardcode_minus_L: Not really in the search PATH,
14191      # but as the default location of the library.
14192      hardcode_minus_L_F77=yes
14193      export_dynamic_flag_spec_F77='${wl}-E'
14194      ;;
14195
14196    hpux10*)
14197      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14198	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14199      else
14200	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14201      fi
14202      if test "$with_gnu_ld" = no; then
14203	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14204	hardcode_libdir_separator_F77=:
14205
14206	hardcode_direct_F77=yes
14207	export_dynamic_flag_spec_F77='${wl}-E'
14208
14209	# hardcode_minus_L: Not really in the search PATH,
14210	# but as the default location of the library.
14211	hardcode_minus_L_F77=yes
14212      fi
14213      ;;
14214
14215    hpux11*)
14216      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14217	case $host_cpu in
14218	hppa*64*)
14219	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14220	  ;;
14221	ia64*)
14222	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14223	  ;;
14224	*)
14225	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14226	  ;;
14227	esac
14228      else
14229	case $host_cpu in
14230	hppa*64*)
14231	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14232	  ;;
14233	ia64*)
14234	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14235	  ;;
14236	*)
14237	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14238	  ;;
14239	esac
14240      fi
14241      if test "$with_gnu_ld" = no; then
14242	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14243	hardcode_libdir_separator_F77=:
14244
14245	case $host_cpu in
14246	hppa*64*|ia64*)
14247	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14248	  hardcode_direct_F77=no
14249	  hardcode_shlibpath_var_F77=no
14250	  ;;
14251	*)
14252	  hardcode_direct_F77=yes
14253	  export_dynamic_flag_spec_F77='${wl}-E'
14254
14255	  # hardcode_minus_L: Not really in the search PATH,
14256	  # but as the default location of the library.
14257	  hardcode_minus_L_F77=yes
14258	  ;;
14259	esac
14260      fi
14261      ;;
14262
14263    irix5* | irix6* | nonstopux*)
14264      if test "$GCC" = yes; then
14265	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'
14266      else
14267	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'
14268	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14269      fi
14270      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14271      hardcode_libdir_separator_F77=:
14272      link_all_deplibs_F77=yes
14273      ;;
14274
14275    netbsd*)
14276      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14277	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14278      else
14279	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14280      fi
14281      hardcode_libdir_flag_spec_F77='-R$libdir'
14282      hardcode_direct_F77=yes
14283      hardcode_shlibpath_var_F77=no
14284      ;;
14285
14286    newsos6)
14287      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288      hardcode_direct_F77=yes
14289      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14290      hardcode_libdir_separator_F77=:
14291      hardcode_shlibpath_var_F77=no
14292      ;;
14293
14294    openbsd*)
14295      hardcode_direct_F77=yes
14296      hardcode_shlibpath_var_F77=no
14297      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14298	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14299	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14300	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14301	export_dynamic_flag_spec_F77='${wl}-E'
14302      else
14303       case $host_os in
14304	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14305	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14306	   hardcode_libdir_flag_spec_F77='-R$libdir'
14307	   ;;
14308	 *)
14309	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14310	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14311	   ;;
14312       esac
14313      fi
14314      ;;
14315
14316    os2*)
14317      hardcode_libdir_flag_spec_F77='-L$libdir'
14318      hardcode_minus_L_F77=yes
14319      allow_undefined_flag_F77=unsupported
14320      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'
14321      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14322      ;;
14323
14324    osf3*)
14325      if test "$GCC" = yes; then
14326	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14327	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'
14328      else
14329	allow_undefined_flag_F77=' -expect_unresolved \*'
14330	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'
14331      fi
14332      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14333      hardcode_libdir_separator_F77=:
14334      ;;
14335
14336    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14337      if test "$GCC" = yes; then
14338	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14339	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'
14340	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14341      else
14342	allow_undefined_flag_F77=' -expect_unresolved \*'
14343	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'
14344	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~
14345	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14346
14347	# Both c and cxx compiler support -rpath directly
14348	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14349      fi
14350      hardcode_libdir_separator_F77=:
14351      ;;
14352
14353    solaris*)
14354      no_undefined_flag_F77=' -z text'
14355      if test "$GCC" = yes; then
14356	wlarc='${wl}'
14357	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14358	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14359	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14360      else
14361	wlarc=''
14362	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14363	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14364  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14365      fi
14366      hardcode_libdir_flag_spec_F77='-R$libdir'
14367      hardcode_shlibpath_var_F77=no
14368      case $host_os in
14369      solaris2.[0-5] | solaris2.[0-5].*) ;;
14370      *)
14371 	# The compiler driver will combine linker options so we
14372 	# cannot just pass the convience library names through
14373 	# without $wl, iff we do not link with $LD.
14374 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14375 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14376 	case $wlarc in
14377 	'')
14378 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14379 	*)
14380 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14381 	esac ;;
14382      esac
14383      link_all_deplibs_F77=yes
14384      ;;
14385
14386    sunos4*)
14387      if test "x$host_vendor" = xsequent; then
14388	# Use $CC to link under sequent, because it throws in some extra .o
14389	# files that make .init and .fini sections work.
14390	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14391      else
14392	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14393      fi
14394      hardcode_libdir_flag_spec_F77='-L$libdir'
14395      hardcode_direct_F77=yes
14396      hardcode_minus_L_F77=yes
14397      hardcode_shlibpath_var_F77=no
14398      ;;
14399
14400    sysv4)
14401      case $host_vendor in
14402	sni)
14403	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14404	  hardcode_direct_F77=yes # is this really true???
14405	;;
14406	siemens)
14407	  ## LD is ld it makes a PLAMLIB
14408	  ## CC just makes a GrossModule.
14409	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14410	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14411	  hardcode_direct_F77=no
14412        ;;
14413	motorola)
14414	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14415	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14416	;;
14417      esac
14418      runpath_var='LD_RUN_PATH'
14419      hardcode_shlibpath_var_F77=no
14420      ;;
14421
14422    sysv4.3*)
14423      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424      hardcode_shlibpath_var_F77=no
14425      export_dynamic_flag_spec_F77='-Bexport'
14426      ;;
14427
14428    sysv4*MP*)
14429      if test -d /usr/nec; then
14430	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14431	hardcode_shlibpath_var_F77=no
14432	runpath_var=LD_RUN_PATH
14433	hardcode_runpath_var=yes
14434	ld_shlibs_F77=yes
14435      fi
14436      ;;
14437
14438    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14439      no_undefined_flag_F77='${wl}-z,text'
14440      archive_cmds_need_lc_F77=no
14441      hardcode_shlibpath_var_F77=no
14442      runpath_var='LD_RUN_PATH'
14443
14444      if test "$GCC" = yes; then
14445	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14446	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14447      else
14448	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14449	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14450      fi
14451      ;;
14452
14453    sysv5* | sco3.2v5* | sco5v6*)
14454      # Note: We can NOT use -z defs as we might desire, because we do not
14455      # link with -lc, and that would cause any symbols used from libc to
14456      # always be unresolved, which means just about no library would
14457      # ever link correctly.  If we're not using GNU ld we use -z text
14458      # though, which does catch some bad symbols but isn't as heavy-handed
14459      # as -z defs.
14460      no_undefined_flag_F77='${wl}-z,text'
14461      allow_undefined_flag_F77='${wl}-z,nodefs'
14462      archive_cmds_need_lc_F77=no
14463      hardcode_shlibpath_var_F77=no
14464      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14465      hardcode_libdir_separator_F77=':'
14466      link_all_deplibs_F77=yes
14467      export_dynamic_flag_spec_F77='${wl}-Bexport'
14468      runpath_var='LD_RUN_PATH'
14469
14470      if test "$GCC" = yes; then
14471	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14472	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14473      else
14474	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14475	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14476      fi
14477      ;;
14478
14479    uts4*)
14480      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481      hardcode_libdir_flag_spec_F77='-L$libdir'
14482      hardcode_shlibpath_var_F77=no
14483      ;;
14484
14485    *)
14486      ld_shlibs_F77=no
14487      ;;
14488    esac
14489  fi
14490
14491echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14492echo "${ECHO_T}$ld_shlibs_F77" >&6
14493test "$ld_shlibs_F77" = no && can_build_shared=no
14494
14495#
14496# Do we need to explicitly link libc?
14497#
14498case "x$archive_cmds_need_lc_F77" in
14499x|xyes)
14500  # Assume -lc should be added
14501  archive_cmds_need_lc_F77=yes
14502
14503  if test "$enable_shared" = yes && test "$GCC" = yes; then
14504    case $archive_cmds_F77 in
14505    *'~'*)
14506      # FIXME: we may have to deal with multi-command sequences.
14507      ;;
14508    '$CC '*)
14509      # Test whether the compiler implicitly links with -lc since on some
14510      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14511      # to ld, don't add -lc before -lgcc.
14512      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14513echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14514      $rm conftest*
14515      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14516
14517      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518  (eval $ac_compile) 2>&5
14519  ac_status=$?
14520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521  (exit $ac_status); } 2>conftest.err; then
14522        soname=conftest
14523        lib=conftest
14524        libobjs=conftest.$ac_objext
14525        deplibs=
14526        wl=$lt_prog_compiler_wl_F77
14527	pic_flag=$lt_prog_compiler_pic_F77
14528        compiler_flags=-v
14529        linker_flags=-v
14530        verstring=
14531        output_objdir=.
14532        libname=conftest
14533        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14534        allow_undefined_flag_F77=
14535        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14536  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14537  ac_status=$?
14538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539  (exit $ac_status); }
14540        then
14541	  archive_cmds_need_lc_F77=no
14542        else
14543	  archive_cmds_need_lc_F77=yes
14544        fi
14545        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14546      else
14547        cat conftest.err 1>&5
14548      fi
14549      $rm conftest*
14550      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14551echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14552      ;;
14553    esac
14554  fi
14555  ;;
14556esac
14557
14558echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14559echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14560library_names_spec=
14561libname_spec='lib$name'
14562soname_spec=
14563shrext_cmds=".so"
14564postinstall_cmds=
14565postuninstall_cmds=
14566finish_cmds=
14567finish_eval=
14568shlibpath_var=
14569shlibpath_overrides_runpath=unknown
14570version_type=none
14571dynamic_linker="$host_os ld.so"
14572sys_lib_dlsearch_path_spec="/lib /usr/lib"
14573if test "$GCC" = yes; then
14574  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14575  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14576    # if the path contains ";" then we assume it to be the separator
14577    # otherwise default to the standard path separator (i.e. ":") - it is
14578    # assumed that no part of a normal pathname contains ";" but that should
14579    # okay in the real world where ";" in dirpaths is itself problematic.
14580    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14581  else
14582    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14583  fi
14584else
14585  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14586fi
14587need_lib_prefix=unknown
14588hardcode_into_libs=no
14589
14590# when you set need_version to no, make sure it does not cause -set_version
14591# flags to be left without arguments
14592need_version=unknown
14593
14594case $host_os in
14595aix3*)
14596  version_type=linux
14597  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14598  shlibpath_var=LIBPATH
14599
14600  # AIX 3 has no versioning support, so we append a major version to the name.
14601  soname_spec='${libname}${release}${shared_ext}$major'
14602  ;;
14603
14604aix4* | aix5*)
14605  version_type=linux
14606  need_lib_prefix=no
14607  need_version=no
14608  hardcode_into_libs=yes
14609  if test "$host_cpu" = ia64; then
14610    # AIX 5 supports IA64
14611    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14612    shlibpath_var=LD_LIBRARY_PATH
14613  else
14614    # With GCC up to 2.95.x, collect2 would create an import file
14615    # for dependence libraries.  The import file would start with
14616    # the line `#! .'.  This would cause the generated library to
14617    # depend on `.', always an invalid library.  This was fixed in
14618    # development snapshots of GCC prior to 3.0.
14619    case $host_os in
14620      aix4 | aix4.[01] | aix4.[01].*)
14621      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14622	   echo ' yes '
14623	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14624	:
14625      else
14626	can_build_shared=no
14627      fi
14628      ;;
14629    esac
14630    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14631    # soname into executable. Probably we can add versioning support to
14632    # collect2, so additional links can be useful in future.
14633    if test "$aix_use_runtimelinking" = yes; then
14634      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14635      # instead of lib<name>.a to let people know that these are not
14636      # typical AIX shared libraries.
14637      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14638    else
14639      # We preserve .a as extension for shared libraries through AIX4.2
14640      # and later when we are not doing run time linking.
14641      library_names_spec='${libname}${release}.a $libname.a'
14642      soname_spec='${libname}${release}${shared_ext}$major'
14643    fi
14644    shlibpath_var=LIBPATH
14645  fi
14646  ;;
14647
14648amigaos*)
14649  library_names_spec='$libname.ixlibrary $libname.a'
14650  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14651  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'
14652  ;;
14653
14654beos*)
14655  library_names_spec='${libname}${shared_ext}'
14656  dynamic_linker="$host_os ld.so"
14657  shlibpath_var=LIBRARY_PATH
14658  ;;
14659
14660bsdi[45]*)
14661  version_type=linux
14662  need_version=no
14663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14664  soname_spec='${libname}${release}${shared_ext}$major'
14665  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14666  shlibpath_var=LD_LIBRARY_PATH
14667  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14668  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14669  # the default ld.so.conf also contains /usr/contrib/lib and
14670  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14671  # libtool to hard-code these into programs
14672  ;;
14673
14674cygwin* | mingw* | pw32*)
14675  version_type=windows
14676  shrext_cmds=".dll"
14677  need_version=no
14678  need_lib_prefix=no
14679
14680  case $GCC,$host_os in
14681  yes,cygwin* | yes,mingw* | yes,pw32*)
14682    library_names_spec='$libname.dll.a'
14683    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14684    postinstall_cmds='base_file=`basename \${file}`~
14685      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14686      dldir=$destdir/`dirname \$dlpath`~
14687      test -d \$dldir || mkdir -p \$dldir~
14688      $install_prog $dir/$dlname \$dldir/$dlname~
14689      chmod a+x \$dldir/$dlname'
14690    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14691      dlpath=$dir/\$dldll~
14692       $rm \$dlpath'
14693    shlibpath_overrides_runpath=yes
14694
14695    case $host_os in
14696    cygwin*)
14697      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14698      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14699      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14700      ;;
14701    mingw*)
14702      # MinGW DLLs use traditional 'lib' prefix
14703      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14704      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14705      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14706        # It is most probably a Windows format PATH printed by
14707        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14708        # path with ; separators, and with drive letters. We can handle the
14709        # drive letters (cygwin fileutils understands them), so leave them,
14710        # especially as we might pass files found there to a mingw objdump,
14711        # which wouldn't understand a cygwinified path. Ahh.
14712        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14713      else
14714        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14715      fi
14716      ;;
14717    pw32*)
14718      # pw32 DLLs use 'pw' prefix rather than 'lib'
14719      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14720      ;;
14721    esac
14722    ;;
14723
14724  *)
14725    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14726    ;;
14727  esac
14728  dynamic_linker='Win32 ld.exe'
14729  # FIXME: first we should search . and the directory the executable is in
14730  shlibpath_var=PATH
14731  ;;
14732
14733darwin* | rhapsody*)
14734  dynamic_linker="$host_os dyld"
14735  version_type=darwin
14736  need_lib_prefix=no
14737  need_version=no
14738  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14739  soname_spec='${libname}${release}${major}$shared_ext'
14740  shlibpath_overrides_runpath=yes
14741  shlibpath_var=DYLD_LIBRARY_PATH
14742  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14743  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14744  if test "$GCC" = yes; then
14745    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"`
14746  else
14747    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14748  fi
14749  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14750  ;;
14751
14752dgux*)
14753  version_type=linux
14754  need_lib_prefix=no
14755  need_version=no
14756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14757  soname_spec='${libname}${release}${shared_ext}$major'
14758  shlibpath_var=LD_LIBRARY_PATH
14759  ;;
14760
14761freebsd1*)
14762  dynamic_linker=no
14763  ;;
14764
14765kfreebsd*-gnu)
14766  version_type=linux
14767  need_lib_prefix=no
14768  need_version=no
14769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14770  soname_spec='${libname}${release}${shared_ext}$major'
14771  shlibpath_var=LD_LIBRARY_PATH
14772  shlibpath_overrides_runpath=no
14773  hardcode_into_libs=yes
14774  dynamic_linker='GNU ld.so'
14775  ;;
14776
14777freebsd* | dragonfly*)
14778  # DragonFly does not have aout.  When/if they implement a new
14779  # versioning mechanism, adjust this.
14780  if test -x /usr/bin/objformat; then
14781    objformat=`/usr/bin/objformat`
14782  else
14783    case $host_os in
14784    freebsd[123]*) objformat=aout ;;
14785    *) objformat=elf ;;
14786    esac
14787  fi
14788  version_type=freebsd-$objformat
14789  case $version_type in
14790    freebsd-elf*)
14791      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14792      need_version=no
14793      need_lib_prefix=no
14794      ;;
14795    freebsd-*)
14796      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14797      need_version=yes
14798      ;;
14799  esac
14800  shlibpath_var=LD_LIBRARY_PATH
14801  case $host_os in
14802  freebsd2*)
14803    shlibpath_overrides_runpath=yes
14804    ;;
14805  freebsd3.[01]* | freebsdelf3.[01]*)
14806    shlibpath_overrides_runpath=yes
14807    hardcode_into_libs=yes
14808    ;;
14809  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14810  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14811    shlibpath_overrides_runpath=no
14812    hardcode_into_libs=yes
14813    ;;
14814  freebsd*) # from 4.6 on
14815    shlibpath_overrides_runpath=yes
14816    hardcode_into_libs=yes
14817    ;;
14818  esac
14819  ;;
14820
14821gnu*)
14822  version_type=linux
14823  need_lib_prefix=no
14824  need_version=no
14825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14826  soname_spec='${libname}${release}${shared_ext}$major'
14827  shlibpath_var=LD_LIBRARY_PATH
14828  hardcode_into_libs=yes
14829  ;;
14830
14831hpux9* | hpux10* | hpux11*)
14832  # Give a soname corresponding to the major version so that dld.sl refuses to
14833  # link against other versions.
14834  version_type=sunos
14835  need_lib_prefix=no
14836  need_version=no
14837  case $host_cpu in
14838  ia64*)
14839    shrext_cmds='.so'
14840    hardcode_into_libs=yes
14841    dynamic_linker="$host_os dld.so"
14842    shlibpath_var=LD_LIBRARY_PATH
14843    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14844    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14845    soname_spec='${libname}${release}${shared_ext}$major'
14846    if test "X$HPUX_IA64_MODE" = X32; then
14847      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14848    else
14849      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14850    fi
14851    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14852    ;;
14853   hppa*64*)
14854     shrext_cmds='.sl'
14855     hardcode_into_libs=yes
14856     dynamic_linker="$host_os dld.sl"
14857     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14858     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860     soname_spec='${libname}${release}${shared_ext}$major'
14861     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14862     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14863     ;;
14864   *)
14865    shrext_cmds='.sl'
14866    dynamic_linker="$host_os dld.sl"
14867    shlibpath_var=SHLIB_PATH
14868    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14869    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870    soname_spec='${libname}${release}${shared_ext}$major'
14871    ;;
14872  esac
14873  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14874  postinstall_cmds='chmod 555 $lib'
14875  ;;
14876
14877interix3*)
14878  version_type=linux
14879  need_lib_prefix=no
14880  need_version=no
14881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14882  soname_spec='${libname}${release}${shared_ext}$major'
14883  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14884  shlibpath_var=LD_LIBRARY_PATH
14885  shlibpath_overrides_runpath=no
14886  hardcode_into_libs=yes
14887  ;;
14888
14889irix5* | irix6* | nonstopux*)
14890  case $host_os in
14891    nonstopux*) version_type=nonstopux ;;
14892    *)
14893	if test "$lt_cv_prog_gnu_ld" = yes; then
14894		version_type=linux
14895	else
14896		version_type=irix
14897	fi ;;
14898  esac
14899  need_lib_prefix=no
14900  need_version=no
14901  soname_spec='${libname}${release}${shared_ext}$major'
14902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14903  case $host_os in
14904  irix5* | nonstopux*)
14905    libsuff= shlibsuff=
14906    ;;
14907  *)
14908    case $LD in # libtool.m4 will add one of these switches to LD
14909    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14910      libsuff= shlibsuff= libmagic=32-bit;;
14911    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14912      libsuff=32 shlibsuff=N32 libmagic=N32;;
14913    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14914      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14915    *) libsuff= shlibsuff= libmagic=never-match;;
14916    esac
14917    ;;
14918  esac
14919  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14920  shlibpath_overrides_runpath=no
14921  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14922  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14923  hardcode_into_libs=yes
14924  ;;
14925
14926# No shared lib support for Linux oldld, aout, or coff.
14927linux*oldld* | linux*aout* | linux*coff*)
14928  dynamic_linker=no
14929  ;;
14930
14931# This must be Linux ELF.
14932linux*)
14933  version_type=linux
14934  need_lib_prefix=no
14935  need_version=no
14936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937  soname_spec='${libname}${release}${shared_ext}$major'
14938  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14939  shlibpath_var=LD_LIBRARY_PATH
14940  shlibpath_overrides_runpath=no
14941  # This implies no fast_install, which is unacceptable.
14942  # Some rework will be needed to allow for fast_install
14943  # before this can be enabled.
14944  hardcode_into_libs=yes
14945
14946  # Append ld.so.conf contents to the search path
14947  if test -f /etc/ld.so.conf; then
14948    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14949    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14950  fi
14951
14952  # We used to test for /lib/ld.so.1 and disable shared libraries on
14953  # powerpc, because MkLinux only supported shared libraries with the
14954  # GNU dynamic linker.  Since this was broken with cross compilers,
14955  # most powerpc-linux boxes support dynamic linking these days and
14956  # people can always --disable-shared, the test was removed, and we
14957  # assume the GNU/Linux dynamic linker is in use.
14958  dynamic_linker='GNU/Linux ld.so'
14959  ;;
14960
14961knetbsd*-gnu)
14962  version_type=linux
14963  need_lib_prefix=no
14964  need_version=no
14965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14966  soname_spec='${libname}${release}${shared_ext}$major'
14967  shlibpath_var=LD_LIBRARY_PATH
14968  shlibpath_overrides_runpath=no
14969  hardcode_into_libs=yes
14970  dynamic_linker='GNU ld.so'
14971  ;;
14972
14973netbsd*)
14974  version_type=sunos
14975  need_lib_prefix=no
14976  need_version=no
14977  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14978    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14979    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14980    dynamic_linker='NetBSD (a.out) ld.so'
14981  else
14982    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14983    soname_spec='${libname}${release}${shared_ext}$major'
14984    dynamic_linker='NetBSD ld.elf_so'
14985  fi
14986  shlibpath_var=LD_LIBRARY_PATH
14987  shlibpath_overrides_runpath=yes
14988  hardcode_into_libs=yes
14989  ;;
14990
14991newsos6)
14992  version_type=linux
14993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994  shlibpath_var=LD_LIBRARY_PATH
14995  shlibpath_overrides_runpath=yes
14996  ;;
14997
14998nto-qnx*)
14999  version_type=linux
15000  need_lib_prefix=no
15001  need_version=no
15002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003  soname_spec='${libname}${release}${shared_ext}$major'
15004  shlibpath_var=LD_LIBRARY_PATH
15005  shlibpath_overrides_runpath=yes
15006  ;;
15007
15008openbsd*)
15009  version_type=sunos
15010  sys_lib_dlsearch_path_spec="/usr/lib"
15011  need_lib_prefix=no
15012  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15013  case $host_os in
15014    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15015    *)                         need_version=no  ;;
15016  esac
15017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15018  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15019  shlibpath_var=LD_LIBRARY_PATH
15020  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15021    case $host_os in
15022      openbsd2.[89] | openbsd2.[89].*)
15023	shlibpath_overrides_runpath=no
15024	;;
15025      *)
15026	shlibpath_overrides_runpath=yes
15027	;;
15028      esac
15029  else
15030    shlibpath_overrides_runpath=yes
15031  fi
15032  ;;
15033
15034os2*)
15035  libname_spec='$name'
15036  shrext_cmds=".dll"
15037  need_lib_prefix=no
15038  library_names_spec='$libname${shared_ext} $libname.a'
15039  dynamic_linker='OS/2 ld.exe'
15040  shlibpath_var=LIBPATH
15041  ;;
15042
15043osf3* | osf4* | osf5*)
15044  version_type=osf
15045  need_lib_prefix=no
15046  need_version=no
15047  soname_spec='${libname}${release}${shared_ext}$major'
15048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049  shlibpath_var=LD_LIBRARY_PATH
15050  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15051  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15052  ;;
15053
15054solaris*)
15055  version_type=linux
15056  need_lib_prefix=no
15057  need_version=no
15058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059  soname_spec='${libname}${release}${shared_ext}$major'
15060  shlibpath_var=LD_LIBRARY_PATH
15061  shlibpath_overrides_runpath=yes
15062  hardcode_into_libs=yes
15063  # ldd complains unless libraries are executable
15064  postinstall_cmds='chmod +x $lib'
15065  ;;
15066
15067sunos4*)
15068  version_type=sunos
15069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15070  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15071  shlibpath_var=LD_LIBRARY_PATH
15072  shlibpath_overrides_runpath=yes
15073  if test "$with_gnu_ld" = yes; then
15074    need_lib_prefix=no
15075  fi
15076  need_version=yes
15077  ;;
15078
15079sysv4 | sysv4.3*)
15080  version_type=linux
15081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15082  soname_spec='${libname}${release}${shared_ext}$major'
15083  shlibpath_var=LD_LIBRARY_PATH
15084  case $host_vendor in
15085    sni)
15086      shlibpath_overrides_runpath=no
15087      need_lib_prefix=no
15088      export_dynamic_flag_spec='${wl}-Blargedynsym'
15089      runpath_var=LD_RUN_PATH
15090      ;;
15091    siemens)
15092      need_lib_prefix=no
15093      ;;
15094    motorola)
15095      need_lib_prefix=no
15096      need_version=no
15097      shlibpath_overrides_runpath=no
15098      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15099      ;;
15100  esac
15101  ;;
15102
15103sysv4*MP*)
15104  if test -d /usr/nec ;then
15105    version_type=linux
15106    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15107    soname_spec='$libname${shared_ext}.$major'
15108    shlibpath_var=LD_LIBRARY_PATH
15109  fi
15110  ;;
15111
15112sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15113  version_type=freebsd-elf
15114  need_lib_prefix=no
15115  need_version=no
15116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15117  soname_spec='${libname}${release}${shared_ext}$major'
15118  shlibpath_var=LD_LIBRARY_PATH
15119  hardcode_into_libs=yes
15120  if test "$with_gnu_ld" = yes; then
15121    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15122    shlibpath_overrides_runpath=no
15123  else
15124    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15125    shlibpath_overrides_runpath=yes
15126    case $host_os in
15127      sco3.2v5*)
15128        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15129	;;
15130    esac
15131  fi
15132  sys_lib_dlsearch_path_spec='/usr/lib'
15133  ;;
15134
15135uts4*)
15136  version_type=linux
15137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138  soname_spec='${libname}${release}${shared_ext}$major'
15139  shlibpath_var=LD_LIBRARY_PATH
15140  ;;
15141
15142*)
15143  dynamic_linker=no
15144  ;;
15145esac
15146echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15147echo "${ECHO_T}$dynamic_linker" >&6
15148test "$dynamic_linker" = no && can_build_shared=no
15149
15150variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15151if test "$GCC" = yes; then
15152  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15153fi
15154
15155echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15156echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15157hardcode_action_F77=
15158if test -n "$hardcode_libdir_flag_spec_F77" || \
15159   test -n "$runpath_var_F77" || \
15160   test "X$hardcode_automatic_F77" = "Xyes" ; then
15161
15162  # We can hardcode non-existant directories.
15163  if test "$hardcode_direct_F77" != no &&
15164     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15165     # have to relink, otherwise we might link with an installed library
15166     # when we should be linking with a yet-to-be-installed one
15167     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15168     test "$hardcode_minus_L_F77" != no; then
15169    # Linking always hardcodes the temporary library directory.
15170    hardcode_action_F77=relink
15171  else
15172    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15173    hardcode_action_F77=immediate
15174  fi
15175else
15176  # We cannot hardcode anything, or else we can only hardcode existing
15177  # directories.
15178  hardcode_action_F77=unsupported
15179fi
15180echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15181echo "${ECHO_T}$hardcode_action_F77" >&6
15182
15183if test "$hardcode_action_F77" = relink; then
15184  # Fast installation is not supported
15185  enable_fast_install=no
15186elif test "$shlibpath_overrides_runpath" = yes ||
15187     test "$enable_shared" = no; then
15188  # Fast installation is not necessary
15189  enable_fast_install=needless
15190fi
15191
15192
15193# The else clause should only fire when bootstrapping the
15194# libtool distribution, otherwise you forgot to ship ltmain.sh
15195# with your package, and you will get complaints that there are
15196# no rules to generate ltmain.sh.
15197if test -f "$ltmain"; then
15198  # See if we are running on zsh, and set the options which allow our commands through
15199  # without removal of \ escapes.
15200  if test -n "${ZSH_VERSION+set}" ; then
15201    setopt NO_GLOB_SUBST
15202  fi
15203  # Now quote all the things that may contain metacharacters while being
15204  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15205  # variables and quote the copies for generation of the libtool script.
15206  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15207    SED SHELL STRIP \
15208    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15209    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15210    deplibs_check_method reload_flag reload_cmds need_locks \
15211    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15212    lt_cv_sys_global_symbol_to_c_name_address \
15213    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15214    old_postinstall_cmds old_postuninstall_cmds \
15215    compiler_F77 \
15216    CC_F77 \
15217    LD_F77 \
15218    lt_prog_compiler_wl_F77 \
15219    lt_prog_compiler_pic_F77 \
15220    lt_prog_compiler_static_F77 \
15221    lt_prog_compiler_no_builtin_flag_F77 \
15222    export_dynamic_flag_spec_F77 \
15223    thread_safe_flag_spec_F77 \
15224    whole_archive_flag_spec_F77 \
15225    enable_shared_with_static_runtimes_F77 \
15226    old_archive_cmds_F77 \
15227    old_archive_from_new_cmds_F77 \
15228    predep_objects_F77 \
15229    postdep_objects_F77 \
15230    predeps_F77 \
15231    postdeps_F77 \
15232    compiler_lib_search_path_F77 \
15233    archive_cmds_F77 \
15234    archive_expsym_cmds_F77 \
15235    postinstall_cmds_F77 \
15236    postuninstall_cmds_F77 \
15237    old_archive_from_expsyms_cmds_F77 \
15238    allow_undefined_flag_F77 \
15239    no_undefined_flag_F77 \
15240    export_symbols_cmds_F77 \
15241    hardcode_libdir_flag_spec_F77 \
15242    hardcode_libdir_flag_spec_ld_F77 \
15243    hardcode_libdir_separator_F77 \
15244    hardcode_automatic_F77 \
15245    module_cmds_F77 \
15246    module_expsym_cmds_F77 \
15247    lt_cv_prog_compiler_c_o_F77 \
15248    exclude_expsyms_F77 \
15249    include_expsyms_F77; do
15250
15251    case $var in
15252    old_archive_cmds_F77 | \
15253    old_archive_from_new_cmds_F77 | \
15254    archive_cmds_F77 | \
15255    archive_expsym_cmds_F77 | \
15256    module_cmds_F77 | \
15257    module_expsym_cmds_F77 | \
15258    old_archive_from_expsyms_cmds_F77 | \
15259    export_symbols_cmds_F77 | \
15260    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15261    postinstall_cmds | postuninstall_cmds | \
15262    old_postinstall_cmds | old_postuninstall_cmds | \
15263    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15264      # Double-quote double-evaled strings.
15265      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15266      ;;
15267    *)
15268      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15269      ;;
15270    esac
15271  done
15272
15273  case $lt_echo in
15274  *'\$0 --fallback-echo"')
15275    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15276    ;;
15277  esac
15278
15279cfgfile="$ofile"
15280
15281  cat <<__EOF__ >> "$cfgfile"
15282# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15283
15284# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15285
15286# Shell to use when invoking shell scripts.
15287SHELL=$lt_SHELL
15288
15289# Whether or not to build shared libraries.
15290build_libtool_libs=$enable_shared
15291
15292# Whether or not to build static libraries.
15293build_old_libs=$enable_static
15294
15295# Whether or not to add -lc for building shared libraries.
15296build_libtool_need_lc=$archive_cmds_need_lc_F77
15297
15298# Whether or not to disallow shared libs when runtime libs are static
15299allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15300
15301# Whether or not to optimize for fast installation.
15302fast_install=$enable_fast_install
15303
15304# The host system.
15305host_alias=$host_alias
15306host=$host
15307host_os=$host_os
15308
15309# The build system.
15310build_alias=$build_alias
15311build=$build
15312build_os=$build_os
15313
15314# An echo program that does not interpret backslashes.
15315echo=$lt_echo
15316
15317# The archiver.
15318AR=$lt_AR
15319AR_FLAGS=$lt_AR_FLAGS
15320
15321# A C compiler.
15322LTCC=$lt_LTCC
15323
15324# LTCC compiler flags.
15325LTCFLAGS=$lt_LTCFLAGS
15326
15327# A language-specific compiler.
15328CC=$lt_compiler_F77
15329
15330# Is the compiler the GNU C compiler?
15331with_gcc=$GCC_F77
15332
15333# An ERE matcher.
15334EGREP=$lt_EGREP
15335
15336# The linker used to build libraries.
15337LD=$lt_LD_F77
15338
15339# Whether we need hard or soft links.
15340LN_S=$lt_LN_S
15341
15342# A BSD-compatible nm program.
15343NM=$lt_NM
15344
15345# A symbol stripping program
15346STRIP=$lt_STRIP
15347
15348# Used to examine libraries when file_magic_cmd begins "file"
15349MAGIC_CMD=$MAGIC_CMD
15350
15351# Used on cygwin: DLL creation program.
15352DLLTOOL="$DLLTOOL"
15353
15354# Used on cygwin: object dumper.
15355OBJDUMP="$OBJDUMP"
15356
15357# Used on cygwin: assembler.
15358AS="$AS"
15359
15360# The name of the directory that contains temporary libtool files.
15361objdir=$objdir
15362
15363# How to create reloadable object files.
15364reload_flag=$lt_reload_flag
15365reload_cmds=$lt_reload_cmds
15366
15367# How to pass a linker flag through the compiler.
15368wl=$lt_lt_prog_compiler_wl_F77
15369
15370# Object file suffix (normally "o").
15371objext="$ac_objext"
15372
15373# Old archive suffix (normally "a").
15374libext="$libext"
15375
15376# Shared library suffix (normally ".so").
15377shrext_cmds='$shrext_cmds'
15378
15379# Executable file suffix (normally "").
15380exeext="$exeext"
15381
15382# Additional compiler flags for building library objects.
15383pic_flag=$lt_lt_prog_compiler_pic_F77
15384pic_mode=$pic_mode
15385
15386# What is the maximum length of a command?
15387max_cmd_len=$lt_cv_sys_max_cmd_len
15388
15389# Does compiler simultaneously support -c and -o options?
15390compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15391
15392# Must we lock files when doing compilation?
15393need_locks=$lt_need_locks
15394
15395# Do we need the lib prefix for modules?
15396need_lib_prefix=$need_lib_prefix
15397
15398# Do we need a version for libraries?
15399need_version=$need_version
15400
15401# Whether dlopen is supported.
15402dlopen_support=$enable_dlopen
15403
15404# Whether dlopen of programs is supported.
15405dlopen_self=$enable_dlopen_self
15406
15407# Whether dlopen of statically linked programs is supported.
15408dlopen_self_static=$enable_dlopen_self_static
15409
15410# Compiler flag to prevent dynamic linking.
15411link_static_flag=$lt_lt_prog_compiler_static_F77
15412
15413# Compiler flag to turn off builtin functions.
15414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15415
15416# Compiler flag to allow reflexive dlopens.
15417export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15418
15419# Compiler flag to generate shared objects directly from archives.
15420whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15421
15422# Compiler flag to generate thread-safe objects.
15423thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15424
15425# Library versioning type.
15426version_type=$version_type
15427
15428# Format of library name prefix.
15429libname_spec=$lt_libname_spec
15430
15431# List of archive names.  First name is the real one, the rest are links.
15432# The last name is the one that the linker finds with -lNAME.
15433library_names_spec=$lt_library_names_spec
15434
15435# The coded name of the library, if different from the real name.
15436soname_spec=$lt_soname_spec
15437
15438# Commands used to build and install an old-style archive.
15439RANLIB=$lt_RANLIB
15440old_archive_cmds=$lt_old_archive_cmds_F77
15441old_postinstall_cmds=$lt_old_postinstall_cmds
15442old_postuninstall_cmds=$lt_old_postuninstall_cmds
15443
15444# Create an old-style archive from a shared archive.
15445old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15446
15447# Create a temporary old-style archive to link instead of a shared archive.
15448old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15449
15450# Commands used to build and install a shared archive.
15451archive_cmds=$lt_archive_cmds_F77
15452archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15453postinstall_cmds=$lt_postinstall_cmds
15454postuninstall_cmds=$lt_postuninstall_cmds
15455
15456# Commands used to build a loadable module (assumed same as above if empty)
15457module_cmds=$lt_module_cmds_F77
15458module_expsym_cmds=$lt_module_expsym_cmds_F77
15459
15460# Commands to strip libraries.
15461old_striplib=$lt_old_striplib
15462striplib=$lt_striplib
15463
15464# Dependencies to place before the objects being linked to create a
15465# shared library.
15466predep_objects=$lt_predep_objects_F77
15467
15468# Dependencies to place after the objects being linked to create a
15469# shared library.
15470postdep_objects=$lt_postdep_objects_F77
15471
15472# Dependencies to place before the objects being linked to create a
15473# shared library.
15474predeps=$lt_predeps_F77
15475
15476# Dependencies to place after the objects being linked to create a
15477# shared library.
15478postdeps=$lt_postdeps_F77
15479
15480# The library search path used internally by the compiler when linking
15481# a shared library.
15482compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15483
15484# Method to check whether dependent libraries are shared objects.
15485deplibs_check_method=$lt_deplibs_check_method
15486
15487# Command to use when deplibs_check_method == file_magic.
15488file_magic_cmd=$lt_file_magic_cmd
15489
15490# Flag that allows shared libraries with undefined symbols to be built.
15491allow_undefined_flag=$lt_allow_undefined_flag_F77
15492
15493# Flag that forces no undefined symbols.
15494no_undefined_flag=$lt_no_undefined_flag_F77
15495
15496# Commands used to finish a libtool library installation in a directory.
15497finish_cmds=$lt_finish_cmds
15498
15499# Same as above, but a single script fragment to be evaled but not shown.
15500finish_eval=$lt_finish_eval
15501
15502# Take the output of nm and produce a listing of raw symbols and C names.
15503global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15504
15505# Transform the output of nm in a proper C declaration
15506global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15507
15508# Transform the output of nm in a C name address pair
15509global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15510
15511# This is the shared library runtime path variable.
15512runpath_var=$runpath_var
15513
15514# This is the shared library path variable.
15515shlibpath_var=$shlibpath_var
15516
15517# Is shlibpath searched before the hard-coded library search path?
15518shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15519
15520# How to hardcode a shared library path into an executable.
15521hardcode_action=$hardcode_action_F77
15522
15523# Whether we should hardcode library paths into libraries.
15524hardcode_into_libs=$hardcode_into_libs
15525
15526# Flag to hardcode \$libdir into a binary during linking.
15527# This must work even if \$libdir does not exist.
15528hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15529
15530# If ld is used when linking, flag to hardcode \$libdir into
15531# a binary during linking. This must work even if \$libdir does
15532# not exist.
15533hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15534
15535# Whether we need a single -rpath flag with a separated argument.
15536hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15537
15538# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15539# resulting binary.
15540hardcode_direct=$hardcode_direct_F77
15541
15542# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15543# resulting binary.
15544hardcode_minus_L=$hardcode_minus_L_F77
15545
15546# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15547# the resulting binary.
15548hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15549
15550# Set to yes if building a shared library automatically hardcodes DIR into the library
15551# and all subsequent libraries and executables linked against it.
15552hardcode_automatic=$hardcode_automatic_F77
15553
15554# Variables whose values should be saved in libtool wrapper scripts and
15555# restored at relink time.
15556variables_saved_for_relink="$variables_saved_for_relink"
15557
15558# Whether libtool must link a program against all its dependency libraries.
15559link_all_deplibs=$link_all_deplibs_F77
15560
15561# Compile-time system search path for libraries
15562sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15563
15564# Run-time system search path for libraries
15565sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15566
15567# Fix the shell variable \$srcfile for the compiler.
15568fix_srcfile_path="$fix_srcfile_path_F77"
15569
15570# Set to yes if exported symbols are required.
15571always_export_symbols=$always_export_symbols_F77
15572
15573# The commands to list exported symbols.
15574export_symbols_cmds=$lt_export_symbols_cmds_F77
15575
15576# The commands to extract the exported symbol list from a shared archive.
15577extract_expsyms_cmds=$lt_extract_expsyms_cmds
15578
15579# Symbols that should not be listed in the preloaded symbols.
15580exclude_expsyms=$lt_exclude_expsyms_F77
15581
15582# Symbols that must always be exported.
15583include_expsyms=$lt_include_expsyms_F77
15584
15585# ### END LIBTOOL TAG CONFIG: $tagname
15586
15587__EOF__
15588
15589
15590else
15591  # If there is no Makefile yet, we rely on a make rule to execute
15592  # `config.status --recheck' to rerun these tests and create the
15593  # libtool script then.
15594  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15595  if test -f "$ltmain_in"; then
15596    test -f Makefile && make "$ltmain"
15597  fi
15598fi
15599
15600
15601ac_ext=c
15602ac_cpp='$CPP $CPPFLAGS'
15603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15605ac_compiler_gnu=$ac_cv_c_compiler_gnu
15606
15607CC="$lt_save_CC"
15608
15609	else
15610	  tagname=""
15611	fi
15612	;;
15613
15614      GCJ)
15615	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15616
15617
15618
15619# Source file extension for Java test sources.
15620ac_ext=java
15621
15622# Object file extension for compiled Java test sources.
15623objext=o
15624objext_GCJ=$objext
15625
15626# Code to be used in simple compile tests
15627lt_simple_compile_test_code="class foo {}\n"
15628
15629# Code to be used in simple link tests
15630lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15631
15632# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15633
15634# If no C compiler was specified, use CC.
15635LTCC=${LTCC-"$CC"}
15636
15637# If no C compiler flags were specified, use CFLAGS.
15638LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15639
15640# Allow CC to be a program name with arguments.
15641compiler=$CC
15642
15643
15644# save warnings/boilerplate of simple test code
15645ac_outfile=conftest.$ac_objext
15646printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15647eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15648_lt_compiler_boilerplate=`cat conftest.err`
15649$rm conftest*
15650
15651ac_outfile=conftest.$ac_objext
15652printf "$lt_simple_link_test_code" >conftest.$ac_ext
15653eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15654_lt_linker_boilerplate=`cat conftest.err`
15655$rm conftest*
15656
15657
15658# Allow CC to be a program name with arguments.
15659lt_save_CC="$CC"
15660CC=${GCJ-"gcj"}
15661compiler=$CC
15662compiler_GCJ=$CC
15663for cc_temp in $compiler""; do
15664  case $cc_temp in
15665    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15666    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15667    \-*) ;;
15668    *) break;;
15669  esac
15670done
15671cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15672
15673
15674# GCJ did not exist at the time GCC didn't implicitly link libc in.
15675archive_cmds_need_lc_GCJ=no
15676
15677old_archive_cmds_GCJ=$old_archive_cmds
15678
15679
15680lt_prog_compiler_no_builtin_flag_GCJ=
15681
15682if test "$GCC" = yes; then
15683  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15684
15685
15686echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15687echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15688if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15689  echo $ECHO_N "(cached) $ECHO_C" >&6
15690else
15691  lt_cv_prog_compiler_rtti_exceptions=no
15692  ac_outfile=conftest.$ac_objext
15693   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15694   lt_compiler_flag="-fno-rtti -fno-exceptions"
15695   # Insert the option either (1) after the last *FLAGS variable, or
15696   # (2) before a word containing "conftest.", or (3) at the end.
15697   # Note that $ac_compile itself does not contain backslashes and begins
15698   # with a dollar sign (not a hyphen), so the echo should work correctly.
15699   # The option is referenced via a variable to avoid confusing sed.
15700   lt_compile=`echo "$ac_compile" | $SED \
15701   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15702   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15703   -e 's:$: $lt_compiler_flag:'`
15704   (eval echo "\"\$as_me:15704: $lt_compile\"" >&5)
15705   (eval "$lt_compile" 2>conftest.err)
15706   ac_status=$?
15707   cat conftest.err >&5
15708   echo "$as_me:15708: \$? = $ac_status" >&5
15709   if (exit $ac_status) && test -s "$ac_outfile"; then
15710     # The compiler can only warn and ignore the option if not recognized
15711     # So say no if there are warnings other than the usual output.
15712     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15713     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15714     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15715       lt_cv_prog_compiler_rtti_exceptions=yes
15716     fi
15717   fi
15718   $rm conftest*
15719
15720fi
15721echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15722echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15723
15724if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15725    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15726else
15727    :
15728fi
15729
15730fi
15731
15732lt_prog_compiler_wl_GCJ=
15733lt_prog_compiler_pic_GCJ=
15734lt_prog_compiler_static_GCJ=
15735
15736echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15737echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15738
15739  if test "$GCC" = yes; then
15740    lt_prog_compiler_wl_GCJ='-Wl,'
15741    lt_prog_compiler_static_GCJ='-static'
15742
15743    case $host_os in
15744      aix*)
15745      # All AIX code is PIC.
15746      if test "$host_cpu" = ia64; then
15747	# AIX 5 now supports IA64 processor
15748	lt_prog_compiler_static_GCJ='-Bstatic'
15749      fi
15750      ;;
15751
15752    amigaos*)
15753      # FIXME: we need at least 68020 code to build shared libraries, but
15754      # adding the `-m68020' flag to GCC prevents building anything better,
15755      # like `-m68040'.
15756      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15757      ;;
15758
15759    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15760      # PIC is the default for these OSes.
15761      ;;
15762
15763    mingw* | pw32* | os2*)
15764      # This hack is so that the source file can tell whether it is being
15765      # built for inclusion in a dll (and should export symbols for example).
15766      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15767      ;;
15768
15769    darwin* | rhapsody*)
15770      # PIC is the default on this platform
15771      # Common symbols not allowed in MH_DYLIB files
15772      lt_prog_compiler_pic_GCJ='-fno-common'
15773      ;;
15774
15775    interix3*)
15776      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15777      # Instead, we relocate shared libraries at runtime.
15778      ;;
15779
15780    msdosdjgpp*)
15781      # Just because we use GCC doesn't mean we suddenly get shared libraries
15782      # on systems that don't support them.
15783      lt_prog_compiler_can_build_shared_GCJ=no
15784      enable_shared=no
15785      ;;
15786
15787    sysv4*MP*)
15788      if test -d /usr/nec; then
15789	lt_prog_compiler_pic_GCJ=-Kconform_pic
15790      fi
15791      ;;
15792
15793    hpux*)
15794      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15795      # not for PA HP-UX.
15796      case $host_cpu in
15797      hppa*64*|ia64*)
15798	# +Z the default
15799	;;
15800      *)
15801	lt_prog_compiler_pic_GCJ='-fPIC'
15802	;;
15803      esac
15804      ;;
15805
15806    *)
15807      lt_prog_compiler_pic_GCJ='-fPIC'
15808      ;;
15809    esac
15810  else
15811    # PORTME Check for flag to pass linker flags through the system compiler.
15812    case $host_os in
15813    aix*)
15814      lt_prog_compiler_wl_GCJ='-Wl,'
15815      if test "$host_cpu" = ia64; then
15816	# AIX 5 now supports IA64 processor
15817	lt_prog_compiler_static_GCJ='-Bstatic'
15818      else
15819	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15820      fi
15821      ;;
15822      darwin*)
15823        # PIC is the default on this platform
15824        # Common symbols not allowed in MH_DYLIB files
15825       case $cc_basename in
15826         xlc*)
15827         lt_prog_compiler_pic_GCJ='-qnocommon'
15828         lt_prog_compiler_wl_GCJ='-Wl,'
15829         ;;
15830       esac
15831       ;;
15832
15833    mingw* | pw32* | os2*)
15834      # This hack is so that the source file can tell whether it is being
15835      # built for inclusion in a dll (and should export symbols for example).
15836      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15837      ;;
15838
15839    hpux9* | hpux10* | hpux11*)
15840      lt_prog_compiler_wl_GCJ='-Wl,'
15841      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15842      # not for PA HP-UX.
15843      case $host_cpu in
15844      hppa*64*|ia64*)
15845	# +Z the default
15846	;;
15847      *)
15848	lt_prog_compiler_pic_GCJ='+Z'
15849	;;
15850      esac
15851      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15852      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15853      ;;
15854
15855    irix5* | irix6* | nonstopux*)
15856      lt_prog_compiler_wl_GCJ='-Wl,'
15857      # PIC (with -KPIC) is the default.
15858      lt_prog_compiler_static_GCJ='-non_shared'
15859      ;;
15860
15861    newsos6)
15862      lt_prog_compiler_pic_GCJ='-KPIC'
15863      lt_prog_compiler_static_GCJ='-Bstatic'
15864      ;;
15865
15866    linux*)
15867      case $cc_basename in
15868      icc* | ecc*)
15869	lt_prog_compiler_wl_GCJ='-Wl,'
15870	lt_prog_compiler_pic_GCJ='-KPIC'
15871	lt_prog_compiler_static_GCJ='-static'
15872        ;;
15873      pgcc* | pgf77* | pgf90* | pgf95*)
15874        # Portland Group compilers (*not* the Pentium gcc compiler,
15875	# which looks to be a dead project)
15876	lt_prog_compiler_wl_GCJ='-Wl,'
15877	lt_prog_compiler_pic_GCJ='-fpic'
15878	lt_prog_compiler_static_GCJ='-Bstatic'
15879        ;;
15880      ccc*)
15881        lt_prog_compiler_wl_GCJ='-Wl,'
15882        # All Alpha code is PIC.
15883        lt_prog_compiler_static_GCJ='-non_shared'
15884        ;;
15885      esac
15886      ;;
15887
15888    osf3* | osf4* | osf5*)
15889      lt_prog_compiler_wl_GCJ='-Wl,'
15890      # All OSF/1 code is PIC.
15891      lt_prog_compiler_static_GCJ='-non_shared'
15892      ;;
15893
15894    solaris*)
15895      lt_prog_compiler_pic_GCJ='-KPIC'
15896      lt_prog_compiler_static_GCJ='-Bstatic'
15897      case $cc_basename in
15898      f77* | f90* | f95*)
15899	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15900      *)
15901	lt_prog_compiler_wl_GCJ='-Wl,';;
15902      esac
15903      ;;
15904
15905    sunos4*)
15906      lt_prog_compiler_wl_GCJ='-Qoption ld '
15907      lt_prog_compiler_pic_GCJ='-PIC'
15908      lt_prog_compiler_static_GCJ='-Bstatic'
15909      ;;
15910
15911    sysv4 | sysv4.2uw2* | sysv4.3*)
15912      lt_prog_compiler_wl_GCJ='-Wl,'
15913      lt_prog_compiler_pic_GCJ='-KPIC'
15914      lt_prog_compiler_static_GCJ='-Bstatic'
15915      ;;
15916
15917    sysv4*MP*)
15918      if test -d /usr/nec ;then
15919	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15920	lt_prog_compiler_static_GCJ='-Bstatic'
15921      fi
15922      ;;
15923
15924    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15925      lt_prog_compiler_wl_GCJ='-Wl,'
15926      lt_prog_compiler_pic_GCJ='-KPIC'
15927      lt_prog_compiler_static_GCJ='-Bstatic'
15928      ;;
15929
15930    unicos*)
15931      lt_prog_compiler_wl_GCJ='-Wl,'
15932      lt_prog_compiler_can_build_shared_GCJ=no
15933      ;;
15934
15935    uts4*)
15936      lt_prog_compiler_pic_GCJ='-pic'
15937      lt_prog_compiler_static_GCJ='-Bstatic'
15938      ;;
15939
15940    *)
15941      lt_prog_compiler_can_build_shared_GCJ=no
15942      ;;
15943    esac
15944  fi
15945
15946echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15947echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15948
15949#
15950# Check to make sure the PIC flag actually works.
15951#
15952if test -n "$lt_prog_compiler_pic_GCJ"; then
15953
15954echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15955echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15956if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15957  echo $ECHO_N "(cached) $ECHO_C" >&6
15958else
15959  lt_prog_compiler_pic_works_GCJ=no
15960  ac_outfile=conftest.$ac_objext
15961   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15962   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15963   # Insert the option either (1) after the last *FLAGS variable, or
15964   # (2) before a word containing "conftest.", or (3) at the end.
15965   # Note that $ac_compile itself does not contain backslashes and begins
15966   # with a dollar sign (not a hyphen), so the echo should work correctly.
15967   # The option is referenced via a variable to avoid confusing sed.
15968   lt_compile=`echo "$ac_compile" | $SED \
15969   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15970   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15971   -e 's:$: $lt_compiler_flag:'`
15972   (eval echo "\"\$as_me:15972: $lt_compile\"" >&5)
15973   (eval "$lt_compile" 2>conftest.err)
15974   ac_status=$?
15975   cat conftest.err >&5
15976   echo "$as_me:15976: \$? = $ac_status" >&5
15977   if (exit $ac_status) && test -s "$ac_outfile"; then
15978     # The compiler can only warn and ignore the option if not recognized
15979     # So say no if there are warnings other than the usual output.
15980     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15981     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15982     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15983       lt_prog_compiler_pic_works_GCJ=yes
15984     fi
15985   fi
15986   $rm conftest*
15987
15988fi
15989echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15990echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15991
15992if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15993    case $lt_prog_compiler_pic_GCJ in
15994     "" | " "*) ;;
15995     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15996     esac
15997else
15998    lt_prog_compiler_pic_GCJ=
15999     lt_prog_compiler_can_build_shared_GCJ=no
16000fi
16001
16002fi
16003case $host_os in
16004  # For platforms which do not support PIC, -DPIC is meaningless:
16005  *djgpp*)
16006    lt_prog_compiler_pic_GCJ=
16007    ;;
16008  *)
16009    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16010    ;;
16011esac
16012
16013#
16014# Check to make sure the static flag actually works.
16015#
16016wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16017echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16018echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16019if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16020  echo $ECHO_N "(cached) $ECHO_C" >&6
16021else
16022  lt_prog_compiler_static_works_GCJ=no
16023   save_LDFLAGS="$LDFLAGS"
16024   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16025   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16026   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16027     # The linker can only warn and ignore the option if not recognized
16028     # So say no if there are warnings
16029     if test -s conftest.err; then
16030       # Append any errors to the config.log.
16031       cat conftest.err 1>&5
16032       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16033       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16034       if diff conftest.exp conftest.er2 >/dev/null; then
16035         lt_prog_compiler_static_works_GCJ=yes
16036       fi
16037     else
16038       lt_prog_compiler_static_works_GCJ=yes
16039     fi
16040   fi
16041   $rm conftest*
16042   LDFLAGS="$save_LDFLAGS"
16043
16044fi
16045echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16046echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16047
16048if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16049    :
16050else
16051    lt_prog_compiler_static_GCJ=
16052fi
16053
16054
16055echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16056echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16057if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16058  echo $ECHO_N "(cached) $ECHO_C" >&6
16059else
16060  lt_cv_prog_compiler_c_o_GCJ=no
16061   $rm -r conftest 2>/dev/null
16062   mkdir conftest
16063   cd conftest
16064   mkdir out
16065   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16066
16067   lt_compiler_flag="-o out/conftest2.$ac_objext"
16068   # Insert the option either (1) after the last *FLAGS variable, or
16069   # (2) before a word containing "conftest.", or (3) at the end.
16070   # Note that $ac_compile itself does not contain backslashes and begins
16071   # with a dollar sign (not a hyphen), so the echo should work correctly.
16072   lt_compile=`echo "$ac_compile" | $SED \
16073   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16074   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16075   -e 's:$: $lt_compiler_flag:'`
16076   (eval echo "\"\$as_me:16076: $lt_compile\"" >&5)
16077   (eval "$lt_compile" 2>out/conftest.err)
16078   ac_status=$?
16079   cat out/conftest.err >&5
16080   echo "$as_me:16080: \$? = $ac_status" >&5
16081   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16082   then
16083     # The compiler can only warn and ignore the option if not recognized
16084     # So say no if there are warnings
16085     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16086     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16087     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16088       lt_cv_prog_compiler_c_o_GCJ=yes
16089     fi
16090   fi
16091   chmod u+w . 2>&5
16092   $rm conftest*
16093   # SGI C++ compiler will create directory out/ii_files/ for
16094   # template instantiation
16095   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16096   $rm out/* && rmdir out
16097   cd ..
16098   rmdir conftest
16099   $rm conftest*
16100
16101fi
16102echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16103echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16104
16105
16106hard_links="nottested"
16107if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16108  # do not overwrite the value of need_locks provided by the user
16109  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16110echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16111  hard_links=yes
16112  $rm conftest*
16113  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16114  touch conftest.a
16115  ln conftest.a conftest.b 2>&5 || hard_links=no
16116  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16117  echo "$as_me:$LINENO: result: $hard_links" >&5
16118echo "${ECHO_T}$hard_links" >&6
16119  if test "$hard_links" = no; then
16120    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16121echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16122    need_locks=warn
16123  fi
16124else
16125  need_locks=no
16126fi
16127
16128echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16129echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16130
16131  runpath_var=
16132  allow_undefined_flag_GCJ=
16133  enable_shared_with_static_runtimes_GCJ=no
16134  archive_cmds_GCJ=
16135  archive_expsym_cmds_GCJ=
16136  old_archive_From_new_cmds_GCJ=
16137  old_archive_from_expsyms_cmds_GCJ=
16138  export_dynamic_flag_spec_GCJ=
16139  whole_archive_flag_spec_GCJ=
16140  thread_safe_flag_spec_GCJ=
16141  hardcode_libdir_flag_spec_GCJ=
16142  hardcode_libdir_flag_spec_ld_GCJ=
16143  hardcode_libdir_separator_GCJ=
16144  hardcode_direct_GCJ=no
16145  hardcode_minus_L_GCJ=no
16146  hardcode_shlibpath_var_GCJ=unsupported
16147  link_all_deplibs_GCJ=unknown
16148  hardcode_automatic_GCJ=no
16149  module_cmds_GCJ=
16150  module_expsym_cmds_GCJ=
16151  always_export_symbols_GCJ=no
16152  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16153  # include_expsyms should be a list of space-separated symbols to be *always*
16154  # included in the symbol list
16155  include_expsyms_GCJ=
16156  # exclude_expsyms can be an extended regexp of symbols to exclude
16157  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16158  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16159  # as well as any symbol that contains `d'.
16160  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16161  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16162  # platforms (ab)use it in PIC code, but their linkers get confused if
16163  # the symbol is explicitly referenced.  Since portable code cannot
16164  # rely on this symbol name, it's probably fine to never include it in
16165  # preloaded symbol tables.
16166  extract_expsyms_cmds=
16167  # Just being paranoid about ensuring that cc_basename is set.
16168  for cc_temp in $compiler""; do
16169  case $cc_temp in
16170    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16171    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16172    \-*) ;;
16173    *) break;;
16174  esac
16175done
16176cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16177
16178  case $host_os in
16179  cygwin* | mingw* | pw32*)
16180    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16181    # When not using gcc, we currently assume that we are using
16182    # Microsoft Visual C++.
16183    if test "$GCC" != yes; then
16184      with_gnu_ld=no
16185    fi
16186    ;;
16187  interix*)
16188    # we just hope/assume this is gcc and not c89 (= MSVC++)
16189    with_gnu_ld=yes
16190    ;;
16191  openbsd*)
16192    with_gnu_ld=no
16193    ;;
16194  esac
16195
16196  ld_shlibs_GCJ=yes
16197  if test "$with_gnu_ld" = yes; then
16198    # If archive_cmds runs LD, not CC, wlarc should be empty
16199    wlarc='${wl}'
16200
16201    # Set some defaults for GNU ld with shared library support. These
16202    # are reset later if shared libraries are not supported. Putting them
16203    # here allows them to be overridden if necessary.
16204    runpath_var=LD_RUN_PATH
16205    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16206    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16207    # ancient GNU ld didn't support --whole-archive et. al.
16208    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16209	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16210      else
16211  	whole_archive_flag_spec_GCJ=
16212    fi
16213    supports_anon_versioning=no
16214    case `$LD -v 2>/dev/null` in
16215      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16216      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16217      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16218      *\ 2.11.*) ;; # other 2.11 versions
16219      *) supports_anon_versioning=yes ;;
16220    esac
16221
16222    # See if GNU ld supports shared libraries.
16223    case $host_os in
16224    aix3* | aix4* | aix5*)
16225      # On AIX/PPC, the GNU linker is very broken
16226      if test "$host_cpu" != ia64; then
16227	ld_shlibs_GCJ=no
16228	cat <<EOF 1>&2
16229
16230*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16231*** to be unable to reliably create shared libraries on AIX.
16232*** Therefore, libtool is disabling shared libraries support.  If you
16233*** really care for shared libraries, you may want to modify your PATH
16234*** so that a non-GNU linker is found, and then restart.
16235
16236EOF
16237      fi
16238      ;;
16239
16240    amigaos*)
16241      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)'
16242      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16243      hardcode_minus_L_GCJ=yes
16244
16245      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16246      # that the semantics of dynamic libraries on AmigaOS, at least up
16247      # to version 4, is to share data among multiple programs linked
16248      # with the same dynamic library.  Since this doesn't match the
16249      # behavior of shared libraries on other platforms, we can't use
16250      # them.
16251      ld_shlibs_GCJ=no
16252      ;;
16253
16254    beos*)
16255      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16256	allow_undefined_flag_GCJ=unsupported
16257	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16258	# support --undefined.  This deserves some investigation.  FIXME
16259	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16260      else
16261	ld_shlibs_GCJ=no
16262      fi
16263      ;;
16264
16265    cygwin* | mingw* | pw32*)
16266      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16267      # as there is no search path for DLLs.
16268      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16269      allow_undefined_flag_GCJ=unsupported
16270      always_export_symbols_GCJ=no
16271      enable_shared_with_static_runtimes_GCJ=yes
16272      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16273
16274      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16275        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16276	# If the export-symbols file already is a .def file (1st line
16277	# is EXPORTS), use it as is; otherwise, prepend...
16278	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16279	  cp $export_symbols $output_objdir/$soname.def;
16280	else
16281	  echo EXPORTS > $output_objdir/$soname.def;
16282	  cat $export_symbols >> $output_objdir/$soname.def;
16283	fi~
16284	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16285      else
16286	ld_shlibs_GCJ=no
16287      fi
16288      ;;
16289
16290    interix3*)
16291      hardcode_direct_GCJ=no
16292      hardcode_shlibpath_var_GCJ=no
16293      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16294      export_dynamic_flag_spec_GCJ='${wl}-E'
16295      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16296      # Instead, shared libraries are loaded at an image base (0x10000000 by
16297      # default) and relocated if they conflict, which is a slow very memory
16298      # consuming and fragmenting process.  To avoid this, we pick a random,
16299      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16300      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16301      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16302      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16303      ;;
16304
16305    linux*)
16306      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16307	tmp_addflag=
16308	case $cc_basename,$host_cpu in
16309	pgcc*)				# Portland Group C compiler
16310	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16311	  tmp_addflag=' $pic_flag'
16312	  ;;
16313	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16314	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16315	  tmp_addflag=' $pic_flag -Mnomain' ;;
16316	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16317	  tmp_addflag=' -i_dynamic' ;;
16318	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16319	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16320	ifc* | ifort*)			# Intel Fortran compiler
16321	  tmp_addflag=' -nofor_main' ;;
16322	esac
16323	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16324
16325	if test $supports_anon_versioning = yes; then
16326	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16327  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16328  $echo "local: *; };" >> $output_objdir/$libname.ver~
16329	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16330	fi
16331      else
16332	ld_shlibs_GCJ=no
16333      fi
16334      ;;
16335
16336    netbsd*)
16337      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16338	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16339	wlarc=
16340      else
16341	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16342	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16343      fi
16344      ;;
16345
16346    solaris*)
16347      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16348	ld_shlibs_GCJ=no
16349	cat <<EOF 1>&2
16350
16351*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16352*** create shared libraries on Solaris systems.  Therefore, libtool
16353*** is disabling shared libraries support.  We urge you to upgrade GNU
16354*** binutils to release 2.9.1 or newer.  Another option is to modify
16355*** your PATH or compiler configuration so that the native linker is
16356*** used, and then restart.
16357
16358EOF
16359      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16360	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16361	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16362      else
16363	ld_shlibs_GCJ=no
16364      fi
16365      ;;
16366
16367    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16368      case `$LD -v 2>&1` in
16369        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16370	ld_shlibs_GCJ=no
16371	cat <<_LT_EOF 1>&2
16372
16373*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16374*** reliably create shared libraries on SCO systems.  Therefore, libtool
16375*** is disabling shared libraries support.  We urge you to upgrade GNU
16376*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16377*** your PATH or compiler configuration so that the native linker is
16378*** used, and then restart.
16379
16380_LT_EOF
16381	;;
16382	*)
16383	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16384	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16385	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16386	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16387	  else
16388	    ld_shlibs_GCJ=no
16389	  fi
16390	;;
16391      esac
16392      ;;
16393
16394    sunos4*)
16395      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16396      wlarc=
16397      hardcode_direct_GCJ=yes
16398      hardcode_shlibpath_var_GCJ=no
16399      ;;
16400
16401    *)
16402      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16403	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16404	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16405      else
16406	ld_shlibs_GCJ=no
16407      fi
16408      ;;
16409    esac
16410
16411    if test "$ld_shlibs_GCJ" = no; then
16412      runpath_var=
16413      hardcode_libdir_flag_spec_GCJ=
16414      export_dynamic_flag_spec_GCJ=
16415      whole_archive_flag_spec_GCJ=
16416    fi
16417  else
16418    # PORTME fill in a description of your system's linker (not GNU ld)
16419    case $host_os in
16420    aix3*)
16421      allow_undefined_flag_GCJ=unsupported
16422      always_export_symbols_GCJ=yes
16423      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'
16424      # Note: this linker hardcodes the directories in LIBPATH if there
16425      # are no directories specified by -L.
16426      hardcode_minus_L_GCJ=yes
16427      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16428	# Neither direct hardcoding nor static linking is supported with a
16429	# broken collect2.
16430	hardcode_direct_GCJ=unsupported
16431      fi
16432      ;;
16433
16434    aix4* | aix5*)
16435      if test "$host_cpu" = ia64; then
16436	# On IA64, the linker does run time linking by default, so we don't
16437	# have to do anything special.
16438	aix_use_runtimelinking=no
16439	exp_sym_flag='-Bexport'
16440	no_entry_flag=""
16441      else
16442	# If we're using GNU nm, then we don't want the "-C" option.
16443	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16444	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16445	  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'
16446	else
16447	  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'
16448	fi
16449	aix_use_runtimelinking=no
16450
16451	# Test if we are trying to use run time linking or normal
16452	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16453	# need to do runtime linking.
16454	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16455	  for ld_flag in $LDFLAGS; do
16456  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16457  	    aix_use_runtimelinking=yes
16458  	    break
16459  	  fi
16460	  done
16461	  ;;
16462	esac
16463
16464	exp_sym_flag='-bexport'
16465	no_entry_flag='-bnoentry'
16466      fi
16467
16468      # When large executables or shared objects are built, AIX ld can
16469      # have problems creating the table of contents.  If linking a library
16470      # or program results in "error TOC overflow" add -mminimal-toc to
16471      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16472      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16473
16474      archive_cmds_GCJ=''
16475      hardcode_direct_GCJ=yes
16476      hardcode_libdir_separator_GCJ=':'
16477      link_all_deplibs_GCJ=yes
16478
16479      if test "$GCC" = yes; then
16480	case $host_os in aix4.[012]|aix4.[012].*)
16481	# We only want to do this on AIX 4.2 and lower, the check
16482	# below for broken collect2 doesn't work under 4.3+
16483	  collect2name=`${CC} -print-prog-name=collect2`
16484	  if test -f "$collect2name" && \
16485  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16486	  then
16487  	  # We have reworked collect2
16488  	  hardcode_direct_GCJ=yes
16489	  else
16490  	  # We have old collect2
16491  	  hardcode_direct_GCJ=unsupported
16492  	  # It fails to find uninstalled libraries when the uninstalled
16493  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16494  	  # to unsupported forces relinking
16495  	  hardcode_minus_L_GCJ=yes
16496  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16497  	  hardcode_libdir_separator_GCJ=
16498	  fi
16499	  ;;
16500	esac
16501	shared_flag='-shared'
16502	if test "$aix_use_runtimelinking" = yes; then
16503	  shared_flag="$shared_flag "'${wl}-G'
16504	fi
16505      else
16506	# not using gcc
16507	if test "$host_cpu" = ia64; then
16508  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16509  	# chokes on -Wl,-G. The following line is correct:
16510	  shared_flag='-G'
16511	else
16512	  if test "$aix_use_runtimelinking" = yes; then
16513	    shared_flag='${wl}-G'
16514	  else
16515	    shared_flag='${wl}-bM:SRE'
16516	  fi
16517	fi
16518      fi
16519
16520      # It seems that -bexpall does not export symbols beginning with
16521      # underscore (_), so it is better to generate a list of symbols to export.
16522      always_export_symbols_GCJ=yes
16523      if test "$aix_use_runtimelinking" = yes; then
16524	# Warning - without using the other runtime loading flags (-brtl),
16525	# -berok will link without error, but may produce a broken library.
16526	allow_undefined_flag_GCJ='-berok'
16527       # Determine the default libpath from the value encoded in an empty executable.
16528       cat >conftest.$ac_ext <<_ACEOF
16529/* confdefs.h.  */
16530_ACEOF
16531cat confdefs.h >>conftest.$ac_ext
16532cat >>conftest.$ac_ext <<_ACEOF
16533/* end confdefs.h.  */
16534
16535int
16536main ()
16537{
16538
16539  ;
16540  return 0;
16541}
16542_ACEOF
16543rm -f conftest.$ac_objext conftest$ac_exeext
16544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16545  (eval $ac_link) 2>conftest.er1
16546  ac_status=$?
16547  grep -v '^ *+' conftest.er1 >conftest.err
16548  rm -f conftest.er1
16549  cat conftest.err >&5
16550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551  (exit $ac_status); } &&
16552	 { ac_try='test -z "$ac_c_werror_flag"
16553			 || test ! -s conftest.err'
16554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555  (eval $ac_try) 2>&5
16556  ac_status=$?
16557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558  (exit $ac_status); }; } &&
16559	 { ac_try='test -s conftest$ac_exeext'
16560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561  (eval $ac_try) 2>&5
16562  ac_status=$?
16563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564  (exit $ac_status); }; }; then
16565
16566aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16567}'`
16568# Check for a 64-bit object if we didn't find anything.
16569if 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; }
16570}'`; fi
16571else
16572  echo "$as_me: failed program was:" >&5
16573sed 's/^/| /' conftest.$ac_ext >&5
16574
16575fi
16576rm -f conftest.err conftest.$ac_objext \
16577      conftest$ac_exeext conftest.$ac_ext
16578if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16579
16580       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16581	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16582       else
16583	if test "$host_cpu" = ia64; then
16584	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16585	  allow_undefined_flag_GCJ="-z nodefs"
16586	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16587	else
16588	 # Determine the default libpath from the value encoded in an empty executable.
16589	 cat >conftest.$ac_ext <<_ACEOF
16590/* confdefs.h.  */
16591_ACEOF
16592cat confdefs.h >>conftest.$ac_ext
16593cat >>conftest.$ac_ext <<_ACEOF
16594/* end confdefs.h.  */
16595
16596int
16597main ()
16598{
16599
16600  ;
16601  return 0;
16602}
16603_ACEOF
16604rm -f conftest.$ac_objext conftest$ac_exeext
16605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606  (eval $ac_link) 2>conftest.er1
16607  ac_status=$?
16608  grep -v '^ *+' conftest.er1 >conftest.err
16609  rm -f conftest.er1
16610  cat conftest.err >&5
16611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612  (exit $ac_status); } &&
16613	 { ac_try='test -z "$ac_c_werror_flag"
16614			 || test ! -s conftest.err'
16615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616  (eval $ac_try) 2>&5
16617  ac_status=$?
16618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619  (exit $ac_status); }; } &&
16620	 { ac_try='test -s conftest$ac_exeext'
16621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622  (eval $ac_try) 2>&5
16623  ac_status=$?
16624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625  (exit $ac_status); }; }; then
16626
16627aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16628}'`
16629# Check for a 64-bit object if we didn't find anything.
16630if 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; }
16631}'`; fi
16632else
16633  echo "$as_me: failed program was:" >&5
16634sed 's/^/| /' conftest.$ac_ext >&5
16635
16636fi
16637rm -f conftest.err conftest.$ac_objext \
16638      conftest$ac_exeext conftest.$ac_ext
16639if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16640
16641	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16642	  # Warning - without using the other run time loading flags,
16643	  # -berok will link without error, but may produce a broken library.
16644	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16645	  allow_undefined_flag_GCJ=' ${wl}-berok'
16646	  # Exported symbols can be pulled into shared objects from archives
16647	  whole_archive_flag_spec_GCJ='$convenience'
16648	  archive_cmds_need_lc_GCJ=yes
16649	  # This is similar to how AIX traditionally builds its shared libraries.
16650	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16651	fi
16652      fi
16653      ;;
16654
16655    amigaos*)
16656      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)'
16657      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16658      hardcode_minus_L_GCJ=yes
16659      # see comment about different semantics on the GNU ld section
16660      ld_shlibs_GCJ=no
16661      ;;
16662
16663    bsdi[45]*)
16664      export_dynamic_flag_spec_GCJ=-rdynamic
16665      ;;
16666
16667    cygwin* | mingw* | pw32*)
16668      # When not using gcc, we currently assume that we are using
16669      # Microsoft Visual C++.
16670      # hardcode_libdir_flag_spec is actually meaningless, as there is
16671      # no search path for DLLs.
16672      hardcode_libdir_flag_spec_GCJ=' '
16673      allow_undefined_flag_GCJ=unsupported
16674      # Tell ltmain to make .lib files, not .a files.
16675      libext=lib
16676      # Tell ltmain to make .dll files, not .so files.
16677      shrext_cmds=".dll"
16678      # FIXME: Setting linknames here is a bad hack.
16679      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16680      # The linker will automatically build a .lib file if we build a DLL.
16681      old_archive_From_new_cmds_GCJ='true'
16682      # FIXME: Should let the user specify the lib program.
16683      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16684      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16685      enable_shared_with_static_runtimes_GCJ=yes
16686      ;;
16687
16688    darwin* | rhapsody*)
16689      case $host_os in
16690        rhapsody* | darwin1.[012])
16691         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16692         ;;
16693       *) # Darwin 1.3 on
16694         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16695           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16696         else
16697           case ${MACOSX_DEPLOYMENT_TARGET} in
16698             10.[012])
16699               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16700               ;;
16701             10.*)
16702               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16703               ;;
16704           esac
16705         fi
16706         ;;
16707      esac
16708      archive_cmds_need_lc_GCJ=no
16709      hardcode_direct_GCJ=no
16710      hardcode_automatic_GCJ=yes
16711      hardcode_shlibpath_var_GCJ=unsupported
16712      whole_archive_flag_spec_GCJ=''
16713      link_all_deplibs_GCJ=yes
16714    if test "$GCC" = yes ; then
16715    	output_verbose_link_cmd='echo'
16716        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16717      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16718      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16719      archive_expsym_cmds_GCJ='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}'
16720      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}'
16721    else
16722      case $cc_basename in
16723        xlc*)
16724         output_verbose_link_cmd='echo'
16725         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16726         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16727          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16728         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16729          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}'
16730          ;;
16731       *)
16732         ld_shlibs_GCJ=no
16733          ;;
16734      esac
16735    fi
16736      ;;
16737
16738    dgux*)
16739      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16740      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16741      hardcode_shlibpath_var_GCJ=no
16742      ;;
16743
16744    freebsd1*)
16745      ld_shlibs_GCJ=no
16746      ;;
16747
16748    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16749    # support.  Future versions do this automatically, but an explicit c++rt0.o
16750    # does not break anything, and helps significantly (at the cost of a little
16751    # extra space).
16752    freebsd2.2*)
16753      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16754      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16755      hardcode_direct_GCJ=yes
16756      hardcode_shlibpath_var_GCJ=no
16757      ;;
16758
16759    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16760    freebsd2*)
16761      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16762      hardcode_direct_GCJ=yes
16763      hardcode_minus_L_GCJ=yes
16764      hardcode_shlibpath_var_GCJ=no
16765      ;;
16766
16767    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16768    freebsd* | kfreebsd*-gnu | dragonfly*)
16769      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16770      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16771      hardcode_direct_GCJ=yes
16772      hardcode_shlibpath_var_GCJ=no
16773      ;;
16774
16775    hpux9*)
16776      if test "$GCC" = yes; then
16777	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'
16778      else
16779	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'
16780      fi
16781      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16782      hardcode_libdir_separator_GCJ=:
16783      hardcode_direct_GCJ=yes
16784
16785      # hardcode_minus_L: Not really in the search PATH,
16786      # but as the default location of the library.
16787      hardcode_minus_L_GCJ=yes
16788      export_dynamic_flag_spec_GCJ='${wl}-E'
16789      ;;
16790
16791    hpux10*)
16792      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16793	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16794      else
16795	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16796      fi
16797      if test "$with_gnu_ld" = no; then
16798	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16799	hardcode_libdir_separator_GCJ=:
16800
16801	hardcode_direct_GCJ=yes
16802	export_dynamic_flag_spec_GCJ='${wl}-E'
16803
16804	# hardcode_minus_L: Not really in the search PATH,
16805	# but as the default location of the library.
16806	hardcode_minus_L_GCJ=yes
16807      fi
16808      ;;
16809
16810    hpux11*)
16811      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16812	case $host_cpu in
16813	hppa*64*)
16814	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16815	  ;;
16816	ia64*)
16817	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16818	  ;;
16819	*)
16820	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16821	  ;;
16822	esac
16823      else
16824	case $host_cpu in
16825	hppa*64*)
16826	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16827	  ;;
16828	ia64*)
16829	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16830	  ;;
16831	*)
16832	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16833	  ;;
16834	esac
16835      fi
16836      if test "$with_gnu_ld" = no; then
16837	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16838	hardcode_libdir_separator_GCJ=:
16839
16840	case $host_cpu in
16841	hppa*64*|ia64*)
16842	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16843	  hardcode_direct_GCJ=no
16844	  hardcode_shlibpath_var_GCJ=no
16845	  ;;
16846	*)
16847	  hardcode_direct_GCJ=yes
16848	  export_dynamic_flag_spec_GCJ='${wl}-E'
16849
16850	  # hardcode_minus_L: Not really in the search PATH,
16851	  # but as the default location of the library.
16852	  hardcode_minus_L_GCJ=yes
16853	  ;;
16854	esac
16855      fi
16856      ;;
16857
16858    irix5* | irix6* | nonstopux*)
16859      if test "$GCC" = yes; then
16860	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'
16861      else
16862	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'
16863	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16864      fi
16865      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16866      hardcode_libdir_separator_GCJ=:
16867      link_all_deplibs_GCJ=yes
16868      ;;
16869
16870    netbsd*)
16871      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16872	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16873      else
16874	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16875      fi
16876      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16877      hardcode_direct_GCJ=yes
16878      hardcode_shlibpath_var_GCJ=no
16879      ;;
16880
16881    newsos6)
16882      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16883      hardcode_direct_GCJ=yes
16884      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16885      hardcode_libdir_separator_GCJ=:
16886      hardcode_shlibpath_var_GCJ=no
16887      ;;
16888
16889    openbsd*)
16890      hardcode_direct_GCJ=yes
16891      hardcode_shlibpath_var_GCJ=no
16892      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16893	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16894	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16895	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16896	export_dynamic_flag_spec_GCJ='${wl}-E'
16897      else
16898       case $host_os in
16899	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16900	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16901	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16902	   ;;
16903	 *)
16904	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16905	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16906	   ;;
16907       esac
16908      fi
16909      ;;
16910
16911    os2*)
16912      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16913      hardcode_minus_L_GCJ=yes
16914      allow_undefined_flag_GCJ=unsupported
16915      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'
16916      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16917      ;;
16918
16919    osf3*)
16920      if test "$GCC" = yes; then
16921	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16922	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'
16923      else
16924	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16925	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'
16926      fi
16927      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16928      hardcode_libdir_separator_GCJ=:
16929      ;;
16930
16931    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16932      if test "$GCC" = yes; then
16933	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16934	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'
16935	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16936      else
16937	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16938	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'
16939	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~
16940	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16941
16942	# Both c and cxx compiler support -rpath directly
16943	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16944      fi
16945      hardcode_libdir_separator_GCJ=:
16946      ;;
16947
16948    solaris*)
16949      no_undefined_flag_GCJ=' -z text'
16950      if test "$GCC" = yes; then
16951	wlarc='${wl}'
16952	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16953	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16954	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16955      else
16956	wlarc=''
16957	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16959  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16960      fi
16961      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16962      hardcode_shlibpath_var_GCJ=no
16963      case $host_os in
16964      solaris2.[0-5] | solaris2.[0-5].*) ;;
16965      *)
16966 	# The compiler driver will combine linker options so we
16967 	# cannot just pass the convience library names through
16968 	# without $wl, iff we do not link with $LD.
16969 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16970 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16971 	case $wlarc in
16972 	'')
16973 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16974 	*)
16975 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16976 	esac ;;
16977      esac
16978      link_all_deplibs_GCJ=yes
16979      ;;
16980
16981    sunos4*)
16982      if test "x$host_vendor" = xsequent; then
16983	# Use $CC to link under sequent, because it throws in some extra .o
16984	# files that make .init and .fini sections work.
16985	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16986      else
16987	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16988      fi
16989      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16990      hardcode_direct_GCJ=yes
16991      hardcode_minus_L_GCJ=yes
16992      hardcode_shlibpath_var_GCJ=no
16993      ;;
16994
16995    sysv4)
16996      case $host_vendor in
16997	sni)
16998	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16999	  hardcode_direct_GCJ=yes # is this really true???
17000	;;
17001	siemens)
17002	  ## LD is ld it makes a PLAMLIB
17003	  ## CC just makes a GrossModule.
17004	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17005	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17006	  hardcode_direct_GCJ=no
17007        ;;
17008	motorola)
17009	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17010	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17011	;;
17012      esac
17013      runpath_var='LD_RUN_PATH'
17014      hardcode_shlibpath_var_GCJ=no
17015      ;;
17016
17017    sysv4.3*)
17018      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17019      hardcode_shlibpath_var_GCJ=no
17020      export_dynamic_flag_spec_GCJ='-Bexport'
17021      ;;
17022
17023    sysv4*MP*)
17024      if test -d /usr/nec; then
17025	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026	hardcode_shlibpath_var_GCJ=no
17027	runpath_var=LD_RUN_PATH
17028	hardcode_runpath_var=yes
17029	ld_shlibs_GCJ=yes
17030      fi
17031      ;;
17032
17033    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17034      no_undefined_flag_GCJ='${wl}-z,text'
17035      archive_cmds_need_lc_GCJ=no
17036      hardcode_shlibpath_var_GCJ=no
17037      runpath_var='LD_RUN_PATH'
17038
17039      if test "$GCC" = yes; then
17040	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17041	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17042      else
17043	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17044	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17045      fi
17046      ;;
17047
17048    sysv5* | sco3.2v5* | sco5v6*)
17049      # Note: We can NOT use -z defs as we might desire, because we do not
17050      # link with -lc, and that would cause any symbols used from libc to
17051      # always be unresolved, which means just about no library would
17052      # ever link correctly.  If we're not using GNU ld we use -z text
17053      # though, which does catch some bad symbols but isn't as heavy-handed
17054      # as -z defs.
17055      no_undefined_flag_GCJ='${wl}-z,text'
17056      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17057      archive_cmds_need_lc_GCJ=no
17058      hardcode_shlibpath_var_GCJ=no
17059      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17060      hardcode_libdir_separator_GCJ=':'
17061      link_all_deplibs_GCJ=yes
17062      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17063      runpath_var='LD_RUN_PATH'
17064
17065      if test "$GCC" = yes; then
17066	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17067	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17068      else
17069	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17070	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17071      fi
17072      ;;
17073
17074    uts4*)
17075      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17076      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17077      hardcode_shlibpath_var_GCJ=no
17078      ;;
17079
17080    *)
17081      ld_shlibs_GCJ=no
17082      ;;
17083    esac
17084  fi
17085
17086echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17087echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17088test "$ld_shlibs_GCJ" = no && can_build_shared=no
17089
17090#
17091# Do we need to explicitly link libc?
17092#
17093case "x$archive_cmds_need_lc_GCJ" in
17094x|xyes)
17095  # Assume -lc should be added
17096  archive_cmds_need_lc_GCJ=yes
17097
17098  if test "$enable_shared" = yes && test "$GCC" = yes; then
17099    case $archive_cmds_GCJ in
17100    *'~'*)
17101      # FIXME: we may have to deal with multi-command sequences.
17102      ;;
17103    '$CC '*)
17104      # Test whether the compiler implicitly links with -lc since on some
17105      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17106      # to ld, don't add -lc before -lgcc.
17107      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17108echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17109      $rm conftest*
17110      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17111
17112      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17113  (eval $ac_compile) 2>&5
17114  ac_status=$?
17115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116  (exit $ac_status); } 2>conftest.err; then
17117        soname=conftest
17118        lib=conftest
17119        libobjs=conftest.$ac_objext
17120        deplibs=
17121        wl=$lt_prog_compiler_wl_GCJ
17122	pic_flag=$lt_prog_compiler_pic_GCJ
17123        compiler_flags=-v
17124        linker_flags=-v
17125        verstring=
17126        output_objdir=.
17127        libname=conftest
17128        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17129        allow_undefined_flag_GCJ=
17130        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17131  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17132  ac_status=$?
17133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134  (exit $ac_status); }
17135        then
17136	  archive_cmds_need_lc_GCJ=no
17137        else
17138	  archive_cmds_need_lc_GCJ=yes
17139        fi
17140        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17141      else
17142        cat conftest.err 1>&5
17143      fi
17144      $rm conftest*
17145      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17146echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17147      ;;
17148    esac
17149  fi
17150  ;;
17151esac
17152
17153echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17154echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17155library_names_spec=
17156libname_spec='lib$name'
17157soname_spec=
17158shrext_cmds=".so"
17159postinstall_cmds=
17160postuninstall_cmds=
17161finish_cmds=
17162finish_eval=
17163shlibpath_var=
17164shlibpath_overrides_runpath=unknown
17165version_type=none
17166dynamic_linker="$host_os ld.so"
17167sys_lib_dlsearch_path_spec="/lib /usr/lib"
17168if test "$GCC" = yes; then
17169  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17170  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17171    # if the path contains ";" then we assume it to be the separator
17172    # otherwise default to the standard path separator (i.e. ":") - it is
17173    # assumed that no part of a normal pathname contains ";" but that should
17174    # okay in the real world where ";" in dirpaths is itself problematic.
17175    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17176  else
17177    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17178  fi
17179else
17180  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17181fi
17182need_lib_prefix=unknown
17183hardcode_into_libs=no
17184
17185# when you set need_version to no, make sure it does not cause -set_version
17186# flags to be left without arguments
17187need_version=unknown
17188
17189case $host_os in
17190aix3*)
17191  version_type=linux
17192  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17193  shlibpath_var=LIBPATH
17194
17195  # AIX 3 has no versioning support, so we append a major version to the name.
17196  soname_spec='${libname}${release}${shared_ext}$major'
17197  ;;
17198
17199aix4* | aix5*)
17200  version_type=linux
17201  need_lib_prefix=no
17202  need_version=no
17203  hardcode_into_libs=yes
17204  if test "$host_cpu" = ia64; then
17205    # AIX 5 supports IA64
17206    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17207    shlibpath_var=LD_LIBRARY_PATH
17208  else
17209    # With GCC up to 2.95.x, collect2 would create an import file
17210    # for dependence libraries.  The import file would start with
17211    # the line `#! .'.  This would cause the generated library to
17212    # depend on `.', always an invalid library.  This was fixed in
17213    # development snapshots of GCC prior to 3.0.
17214    case $host_os in
17215      aix4 | aix4.[01] | aix4.[01].*)
17216      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17217	   echo ' yes '
17218	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17219	:
17220      else
17221	can_build_shared=no
17222      fi
17223      ;;
17224    esac
17225    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17226    # soname into executable. Probably we can add versioning support to
17227    # collect2, so additional links can be useful in future.
17228    if test "$aix_use_runtimelinking" = yes; then
17229      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17230      # instead of lib<name>.a to let people know that these are not
17231      # typical AIX shared libraries.
17232      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233    else
17234      # We preserve .a as extension for shared libraries through AIX4.2
17235      # and later when we are not doing run time linking.
17236      library_names_spec='${libname}${release}.a $libname.a'
17237      soname_spec='${libname}${release}${shared_ext}$major'
17238    fi
17239    shlibpath_var=LIBPATH
17240  fi
17241  ;;
17242
17243amigaos*)
17244  library_names_spec='$libname.ixlibrary $libname.a'
17245  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17246  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'
17247  ;;
17248
17249beos*)
17250  library_names_spec='${libname}${shared_ext}'
17251  dynamic_linker="$host_os ld.so"
17252  shlibpath_var=LIBRARY_PATH
17253  ;;
17254
17255bsdi[45]*)
17256  version_type=linux
17257  need_version=no
17258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17259  soname_spec='${libname}${release}${shared_ext}$major'
17260  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17261  shlibpath_var=LD_LIBRARY_PATH
17262  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17263  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17264  # the default ld.so.conf also contains /usr/contrib/lib and
17265  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17266  # libtool to hard-code these into programs
17267  ;;
17268
17269cygwin* | mingw* | pw32*)
17270  version_type=windows
17271  shrext_cmds=".dll"
17272  need_version=no
17273  need_lib_prefix=no
17274
17275  case $GCC,$host_os in
17276  yes,cygwin* | yes,mingw* | yes,pw32*)
17277    library_names_spec='$libname.dll.a'
17278    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17279    postinstall_cmds='base_file=`basename \${file}`~
17280      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17281      dldir=$destdir/`dirname \$dlpath`~
17282      test -d \$dldir || mkdir -p \$dldir~
17283      $install_prog $dir/$dlname \$dldir/$dlname~
17284      chmod a+x \$dldir/$dlname'
17285    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17286      dlpath=$dir/\$dldll~
17287       $rm \$dlpath'
17288    shlibpath_overrides_runpath=yes
17289
17290    case $host_os in
17291    cygwin*)
17292      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17293      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17294      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17295      ;;
17296    mingw*)
17297      # MinGW DLLs use traditional 'lib' prefix
17298      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17299      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17300      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17301        # It is most probably a Windows format PATH printed by
17302        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17303        # path with ; separators, and with drive letters. We can handle the
17304        # drive letters (cygwin fileutils understands them), so leave them,
17305        # especially as we might pass files found there to a mingw objdump,
17306        # which wouldn't understand a cygwinified path. Ahh.
17307        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17308      else
17309        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17310      fi
17311      ;;
17312    pw32*)
17313      # pw32 DLLs use 'pw' prefix rather than 'lib'
17314      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17315      ;;
17316    esac
17317    ;;
17318
17319  *)
17320    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17321    ;;
17322  esac
17323  dynamic_linker='Win32 ld.exe'
17324  # FIXME: first we should search . and the directory the executable is in
17325  shlibpath_var=PATH
17326  ;;
17327
17328darwin* | rhapsody*)
17329  dynamic_linker="$host_os dyld"
17330  version_type=darwin
17331  need_lib_prefix=no
17332  need_version=no
17333  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17334  soname_spec='${libname}${release}${major}$shared_ext'
17335  shlibpath_overrides_runpath=yes
17336  shlibpath_var=DYLD_LIBRARY_PATH
17337  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17338  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17339  if test "$GCC" = yes; then
17340    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"`
17341  else
17342    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17343  fi
17344  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17345  ;;
17346
17347dgux*)
17348  version_type=linux
17349  need_lib_prefix=no
17350  need_version=no
17351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17352  soname_spec='${libname}${release}${shared_ext}$major'
17353  shlibpath_var=LD_LIBRARY_PATH
17354  ;;
17355
17356freebsd1*)
17357  dynamic_linker=no
17358  ;;
17359
17360kfreebsd*-gnu)
17361  version_type=linux
17362  need_lib_prefix=no
17363  need_version=no
17364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17365  soname_spec='${libname}${release}${shared_ext}$major'
17366  shlibpath_var=LD_LIBRARY_PATH
17367  shlibpath_overrides_runpath=no
17368  hardcode_into_libs=yes
17369  dynamic_linker='GNU ld.so'
17370  ;;
17371
17372freebsd* | dragonfly*)
17373  # DragonFly does not have aout.  When/if they implement a new
17374  # versioning mechanism, adjust this.
17375  if test -x /usr/bin/objformat; then
17376    objformat=`/usr/bin/objformat`
17377  else
17378    case $host_os in
17379    freebsd[123]*) objformat=aout ;;
17380    *) objformat=elf ;;
17381    esac
17382  fi
17383  version_type=freebsd-$objformat
17384  case $version_type in
17385    freebsd-elf*)
17386      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17387      need_version=no
17388      need_lib_prefix=no
17389      ;;
17390    freebsd-*)
17391      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17392      need_version=yes
17393      ;;
17394  esac
17395  shlibpath_var=LD_LIBRARY_PATH
17396  case $host_os in
17397  freebsd2*)
17398    shlibpath_overrides_runpath=yes
17399    ;;
17400  freebsd3.[01]* | freebsdelf3.[01]*)
17401    shlibpath_overrides_runpath=yes
17402    hardcode_into_libs=yes
17403    ;;
17404  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17405  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17406    shlibpath_overrides_runpath=no
17407    hardcode_into_libs=yes
17408    ;;
17409  freebsd*) # from 4.6 on
17410    shlibpath_overrides_runpath=yes
17411    hardcode_into_libs=yes
17412    ;;
17413  esac
17414  ;;
17415
17416gnu*)
17417  version_type=linux
17418  need_lib_prefix=no
17419  need_version=no
17420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17421  soname_spec='${libname}${release}${shared_ext}$major'
17422  shlibpath_var=LD_LIBRARY_PATH
17423  hardcode_into_libs=yes
17424  ;;
17425
17426hpux9* | hpux10* | hpux11*)
17427  # Give a soname corresponding to the major version so that dld.sl refuses to
17428  # link against other versions.
17429  version_type=sunos
17430  need_lib_prefix=no
17431  need_version=no
17432  case $host_cpu in
17433  ia64*)
17434    shrext_cmds='.so'
17435    hardcode_into_libs=yes
17436    dynamic_linker="$host_os dld.so"
17437    shlibpath_var=LD_LIBRARY_PATH
17438    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17439    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17440    soname_spec='${libname}${release}${shared_ext}$major'
17441    if test "X$HPUX_IA64_MODE" = X32; then
17442      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17443    else
17444      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17445    fi
17446    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17447    ;;
17448   hppa*64*)
17449     shrext_cmds='.sl'
17450     hardcode_into_libs=yes
17451     dynamic_linker="$host_os dld.sl"
17452     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17453     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455     soname_spec='${libname}${release}${shared_ext}$major'
17456     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17457     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17458     ;;
17459   *)
17460    shrext_cmds='.sl'
17461    dynamic_linker="$host_os dld.sl"
17462    shlibpath_var=SHLIB_PATH
17463    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17464    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465    soname_spec='${libname}${release}${shared_ext}$major'
17466    ;;
17467  esac
17468  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17469  postinstall_cmds='chmod 555 $lib'
17470  ;;
17471
17472interix3*)
17473  version_type=linux
17474  need_lib_prefix=no
17475  need_version=no
17476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17477  soname_spec='${libname}${release}${shared_ext}$major'
17478  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17479  shlibpath_var=LD_LIBRARY_PATH
17480  shlibpath_overrides_runpath=no
17481  hardcode_into_libs=yes
17482  ;;
17483
17484irix5* | irix6* | nonstopux*)
17485  case $host_os in
17486    nonstopux*) version_type=nonstopux ;;
17487    *)
17488	if test "$lt_cv_prog_gnu_ld" = yes; then
17489		version_type=linux
17490	else
17491		version_type=irix
17492	fi ;;
17493  esac
17494  need_lib_prefix=no
17495  need_version=no
17496  soname_spec='${libname}${release}${shared_ext}$major'
17497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17498  case $host_os in
17499  irix5* | nonstopux*)
17500    libsuff= shlibsuff=
17501    ;;
17502  *)
17503    case $LD in # libtool.m4 will add one of these switches to LD
17504    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17505      libsuff= shlibsuff= libmagic=32-bit;;
17506    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17507      libsuff=32 shlibsuff=N32 libmagic=N32;;
17508    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17509      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17510    *) libsuff= shlibsuff= libmagic=never-match;;
17511    esac
17512    ;;
17513  esac
17514  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17515  shlibpath_overrides_runpath=no
17516  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17517  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17518  hardcode_into_libs=yes
17519  ;;
17520
17521# No shared lib support for Linux oldld, aout, or coff.
17522linux*oldld* | linux*aout* | linux*coff*)
17523  dynamic_linker=no
17524  ;;
17525
17526# This must be Linux ELF.
17527linux*)
17528  version_type=linux
17529  need_lib_prefix=no
17530  need_version=no
17531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17532  soname_spec='${libname}${release}${shared_ext}$major'
17533  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17534  shlibpath_var=LD_LIBRARY_PATH
17535  shlibpath_overrides_runpath=no
17536  # This implies no fast_install, which is unacceptable.
17537  # Some rework will be needed to allow for fast_install
17538  # before this can be enabled.
17539  hardcode_into_libs=yes
17540
17541  # Append ld.so.conf contents to the search path
17542  if test -f /etc/ld.so.conf; then
17543    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17544    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17545  fi
17546
17547  # We used to test for /lib/ld.so.1 and disable shared libraries on
17548  # powerpc, because MkLinux only supported shared libraries with the
17549  # GNU dynamic linker.  Since this was broken with cross compilers,
17550  # most powerpc-linux boxes support dynamic linking these days and
17551  # people can always --disable-shared, the test was removed, and we
17552  # assume the GNU/Linux dynamic linker is in use.
17553  dynamic_linker='GNU/Linux ld.so'
17554  ;;
17555
17556knetbsd*-gnu)
17557  version_type=linux
17558  need_lib_prefix=no
17559  need_version=no
17560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17561  soname_spec='${libname}${release}${shared_ext}$major'
17562  shlibpath_var=LD_LIBRARY_PATH
17563  shlibpath_overrides_runpath=no
17564  hardcode_into_libs=yes
17565  dynamic_linker='GNU ld.so'
17566  ;;
17567
17568netbsd*)
17569  version_type=sunos
17570  need_lib_prefix=no
17571  need_version=no
17572  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17573    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17574    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17575    dynamic_linker='NetBSD (a.out) ld.so'
17576  else
17577    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17578    soname_spec='${libname}${release}${shared_ext}$major'
17579    dynamic_linker='NetBSD ld.elf_so'
17580  fi
17581  shlibpath_var=LD_LIBRARY_PATH
17582  shlibpath_overrides_runpath=yes
17583  hardcode_into_libs=yes
17584  ;;
17585
17586newsos6)
17587  version_type=linux
17588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17589  shlibpath_var=LD_LIBRARY_PATH
17590  shlibpath_overrides_runpath=yes
17591  ;;
17592
17593nto-qnx*)
17594  version_type=linux
17595  need_lib_prefix=no
17596  need_version=no
17597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17598  soname_spec='${libname}${release}${shared_ext}$major'
17599  shlibpath_var=LD_LIBRARY_PATH
17600  shlibpath_overrides_runpath=yes
17601  ;;
17602
17603openbsd*)
17604  version_type=sunos
17605  sys_lib_dlsearch_path_spec="/usr/lib"
17606  need_lib_prefix=no
17607  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17608  case $host_os in
17609    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17610    *)                         need_version=no  ;;
17611  esac
17612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17613  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17614  shlibpath_var=LD_LIBRARY_PATH
17615  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17616    case $host_os in
17617      openbsd2.[89] | openbsd2.[89].*)
17618	shlibpath_overrides_runpath=no
17619	;;
17620      *)
17621	shlibpath_overrides_runpath=yes
17622	;;
17623      esac
17624  else
17625    shlibpath_overrides_runpath=yes
17626  fi
17627  ;;
17628
17629os2*)
17630  libname_spec='$name'
17631  shrext_cmds=".dll"
17632  need_lib_prefix=no
17633  library_names_spec='$libname${shared_ext} $libname.a'
17634  dynamic_linker='OS/2 ld.exe'
17635  shlibpath_var=LIBPATH
17636  ;;
17637
17638osf3* | osf4* | osf5*)
17639  version_type=osf
17640  need_lib_prefix=no
17641  need_version=no
17642  soname_spec='${libname}${release}${shared_ext}$major'
17643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644  shlibpath_var=LD_LIBRARY_PATH
17645  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17646  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17647  ;;
17648
17649solaris*)
17650  version_type=linux
17651  need_lib_prefix=no
17652  need_version=no
17653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17654  soname_spec='${libname}${release}${shared_ext}$major'
17655  shlibpath_var=LD_LIBRARY_PATH
17656  shlibpath_overrides_runpath=yes
17657  hardcode_into_libs=yes
17658  # ldd complains unless libraries are executable
17659  postinstall_cmds='chmod +x $lib'
17660  ;;
17661
17662sunos4*)
17663  version_type=sunos
17664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17665  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17666  shlibpath_var=LD_LIBRARY_PATH
17667  shlibpath_overrides_runpath=yes
17668  if test "$with_gnu_ld" = yes; then
17669    need_lib_prefix=no
17670  fi
17671  need_version=yes
17672  ;;
17673
17674sysv4 | sysv4.3*)
17675  version_type=linux
17676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17677  soname_spec='${libname}${release}${shared_ext}$major'
17678  shlibpath_var=LD_LIBRARY_PATH
17679  case $host_vendor in
17680    sni)
17681      shlibpath_overrides_runpath=no
17682      need_lib_prefix=no
17683      export_dynamic_flag_spec='${wl}-Blargedynsym'
17684      runpath_var=LD_RUN_PATH
17685      ;;
17686    siemens)
17687      need_lib_prefix=no
17688      ;;
17689    motorola)
17690      need_lib_prefix=no
17691      need_version=no
17692      shlibpath_overrides_runpath=no
17693      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17694      ;;
17695  esac
17696  ;;
17697
17698sysv4*MP*)
17699  if test -d /usr/nec ;then
17700    version_type=linux
17701    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17702    soname_spec='$libname${shared_ext}.$major'
17703    shlibpath_var=LD_LIBRARY_PATH
17704  fi
17705  ;;
17706
17707sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17708  version_type=freebsd-elf
17709  need_lib_prefix=no
17710  need_version=no
17711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17712  soname_spec='${libname}${release}${shared_ext}$major'
17713  shlibpath_var=LD_LIBRARY_PATH
17714  hardcode_into_libs=yes
17715  if test "$with_gnu_ld" = yes; then
17716    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17717    shlibpath_overrides_runpath=no
17718  else
17719    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17720    shlibpath_overrides_runpath=yes
17721    case $host_os in
17722      sco3.2v5*)
17723        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17724	;;
17725    esac
17726  fi
17727  sys_lib_dlsearch_path_spec='/usr/lib'
17728  ;;
17729
17730uts4*)
17731  version_type=linux
17732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17733  soname_spec='${libname}${release}${shared_ext}$major'
17734  shlibpath_var=LD_LIBRARY_PATH
17735  ;;
17736
17737*)
17738  dynamic_linker=no
17739  ;;
17740esac
17741echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17742echo "${ECHO_T}$dynamic_linker" >&6
17743test "$dynamic_linker" = no && can_build_shared=no
17744
17745variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17746if test "$GCC" = yes; then
17747  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17748fi
17749
17750echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17751echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17752hardcode_action_GCJ=
17753if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17754   test -n "$runpath_var_GCJ" || \
17755   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17756
17757  # We can hardcode non-existant directories.
17758  if test "$hardcode_direct_GCJ" != no &&
17759     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17760     # have to relink, otherwise we might link with an installed library
17761     # when we should be linking with a yet-to-be-installed one
17762     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17763     test "$hardcode_minus_L_GCJ" != no; then
17764    # Linking always hardcodes the temporary library directory.
17765    hardcode_action_GCJ=relink
17766  else
17767    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17768    hardcode_action_GCJ=immediate
17769  fi
17770else
17771  # We cannot hardcode anything, or else we can only hardcode existing
17772  # directories.
17773  hardcode_action_GCJ=unsupported
17774fi
17775echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17776echo "${ECHO_T}$hardcode_action_GCJ" >&6
17777
17778if test "$hardcode_action_GCJ" = relink; then
17779  # Fast installation is not supported
17780  enable_fast_install=no
17781elif test "$shlibpath_overrides_runpath" = yes ||
17782     test "$enable_shared" = no; then
17783  # Fast installation is not necessary
17784  enable_fast_install=needless
17785fi
17786
17787
17788# The else clause should only fire when bootstrapping the
17789# libtool distribution, otherwise you forgot to ship ltmain.sh
17790# with your package, and you will get complaints that there are
17791# no rules to generate ltmain.sh.
17792if test -f "$ltmain"; then
17793  # See if we are running on zsh, and set the options which allow our commands through
17794  # without removal of \ escapes.
17795  if test -n "${ZSH_VERSION+set}" ; then
17796    setopt NO_GLOB_SUBST
17797  fi
17798  # Now quote all the things that may contain metacharacters while being
17799  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17800  # variables and quote the copies for generation of the libtool script.
17801  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17802    SED SHELL STRIP \
17803    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17804    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17805    deplibs_check_method reload_flag reload_cmds need_locks \
17806    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17807    lt_cv_sys_global_symbol_to_c_name_address \
17808    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17809    old_postinstall_cmds old_postuninstall_cmds \
17810    compiler_GCJ \
17811    CC_GCJ \
17812    LD_GCJ \
17813    lt_prog_compiler_wl_GCJ \
17814    lt_prog_compiler_pic_GCJ \
17815    lt_prog_compiler_static_GCJ \
17816    lt_prog_compiler_no_builtin_flag_GCJ \
17817    export_dynamic_flag_spec_GCJ \
17818    thread_safe_flag_spec_GCJ \
17819    whole_archive_flag_spec_GCJ \
17820    enable_shared_with_static_runtimes_GCJ \
17821    old_archive_cmds_GCJ \
17822    old_archive_from_new_cmds_GCJ \
17823    predep_objects_GCJ \
17824    postdep_objects_GCJ \
17825    predeps_GCJ \
17826    postdeps_GCJ \
17827    compiler_lib_search_path_GCJ \
17828    archive_cmds_GCJ \
17829    archive_expsym_cmds_GCJ \
17830    postinstall_cmds_GCJ \
17831    postuninstall_cmds_GCJ \
17832    old_archive_from_expsyms_cmds_GCJ \
17833    allow_undefined_flag_GCJ \
17834    no_undefined_flag_GCJ \
17835    export_symbols_cmds_GCJ \
17836    hardcode_libdir_flag_spec_GCJ \
17837    hardcode_libdir_flag_spec_ld_GCJ \
17838    hardcode_libdir_separator_GCJ \
17839    hardcode_automatic_GCJ \
17840    module_cmds_GCJ \
17841    module_expsym_cmds_GCJ \
17842    lt_cv_prog_compiler_c_o_GCJ \
17843    exclude_expsyms_GCJ \
17844    include_expsyms_GCJ; do
17845
17846    case $var in
17847    old_archive_cmds_GCJ | \
17848    old_archive_from_new_cmds_GCJ | \
17849    archive_cmds_GCJ | \
17850    archive_expsym_cmds_GCJ | \
17851    module_cmds_GCJ | \
17852    module_expsym_cmds_GCJ | \
17853    old_archive_from_expsyms_cmds_GCJ | \
17854    export_symbols_cmds_GCJ | \
17855    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17856    postinstall_cmds | postuninstall_cmds | \
17857    old_postinstall_cmds | old_postuninstall_cmds | \
17858    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17859      # Double-quote double-evaled strings.
17860      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17861      ;;
17862    *)
17863      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17864      ;;
17865    esac
17866  done
17867
17868  case $lt_echo in
17869  *'\$0 --fallback-echo"')
17870    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17871    ;;
17872  esac
17873
17874cfgfile="$ofile"
17875
17876  cat <<__EOF__ >> "$cfgfile"
17877# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17878
17879# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17880
17881# Shell to use when invoking shell scripts.
17882SHELL=$lt_SHELL
17883
17884# Whether or not to build shared libraries.
17885build_libtool_libs=$enable_shared
17886
17887# Whether or not to build static libraries.
17888build_old_libs=$enable_static
17889
17890# Whether or not to add -lc for building shared libraries.
17891build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17892
17893# Whether or not to disallow shared libs when runtime libs are static
17894allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17895
17896# Whether or not to optimize for fast installation.
17897fast_install=$enable_fast_install
17898
17899# The host system.
17900host_alias=$host_alias
17901host=$host
17902host_os=$host_os
17903
17904# The build system.
17905build_alias=$build_alias
17906build=$build
17907build_os=$build_os
17908
17909# An echo program that does not interpret backslashes.
17910echo=$lt_echo
17911
17912# The archiver.
17913AR=$lt_AR
17914AR_FLAGS=$lt_AR_FLAGS
17915
17916# A C compiler.
17917LTCC=$lt_LTCC
17918
17919# LTCC compiler flags.
17920LTCFLAGS=$lt_LTCFLAGS
17921
17922# A language-specific compiler.
17923CC=$lt_compiler_GCJ
17924
17925# Is the compiler the GNU C compiler?
17926with_gcc=$GCC_GCJ
17927
17928# An ERE matcher.
17929EGREP=$lt_EGREP
17930
17931# The linker used to build libraries.
17932LD=$lt_LD_GCJ
17933
17934# Whether we need hard or soft links.
17935LN_S=$lt_LN_S
17936
17937# A BSD-compatible nm program.
17938NM=$lt_NM
17939
17940# A symbol stripping program
17941STRIP=$lt_STRIP
17942
17943# Used to examine libraries when file_magic_cmd begins "file"
17944MAGIC_CMD=$MAGIC_CMD
17945
17946# Used on cygwin: DLL creation program.
17947DLLTOOL="$DLLTOOL"
17948
17949# Used on cygwin: object dumper.
17950OBJDUMP="$OBJDUMP"
17951
17952# Used on cygwin: assembler.
17953AS="$AS"
17954
17955# The name of the directory that contains temporary libtool files.
17956objdir=$objdir
17957
17958# How to create reloadable object files.
17959reload_flag=$lt_reload_flag
17960reload_cmds=$lt_reload_cmds
17961
17962# How to pass a linker flag through the compiler.
17963wl=$lt_lt_prog_compiler_wl_GCJ
17964
17965# Object file suffix (normally "o").
17966objext="$ac_objext"
17967
17968# Old archive suffix (normally "a").
17969libext="$libext"
17970
17971# Shared library suffix (normally ".so").
17972shrext_cmds='$shrext_cmds'
17973
17974# Executable file suffix (normally "").
17975exeext="$exeext"
17976
17977# Additional compiler flags for building library objects.
17978pic_flag=$lt_lt_prog_compiler_pic_GCJ
17979pic_mode=$pic_mode
17980
17981# What is the maximum length of a command?
17982max_cmd_len=$lt_cv_sys_max_cmd_len
17983
17984# Does compiler simultaneously support -c and -o options?
17985compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17986
17987# Must we lock files when doing compilation?
17988need_locks=$lt_need_locks
17989
17990# Do we need the lib prefix for modules?
17991need_lib_prefix=$need_lib_prefix
17992
17993# Do we need a version for libraries?
17994need_version=$need_version
17995
17996# Whether dlopen is supported.
17997dlopen_support=$enable_dlopen
17998
17999# Whether dlopen of programs is supported.
18000dlopen_self=$enable_dlopen_self
18001
18002# Whether dlopen of statically linked programs is supported.
18003dlopen_self_static=$enable_dlopen_self_static
18004
18005# Compiler flag to prevent dynamic linking.
18006link_static_flag=$lt_lt_prog_compiler_static_GCJ
18007
18008# Compiler flag to turn off builtin functions.
18009no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18010
18011# Compiler flag to allow reflexive dlopens.
18012export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18013
18014# Compiler flag to generate shared objects directly from archives.
18015whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18016
18017# Compiler flag to generate thread-safe objects.
18018thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18019
18020# Library versioning type.
18021version_type=$version_type
18022
18023# Format of library name prefix.
18024libname_spec=$lt_libname_spec
18025
18026# List of archive names.  First name is the real one, the rest are links.
18027# The last name is the one that the linker finds with -lNAME.
18028library_names_spec=$lt_library_names_spec
18029
18030# The coded name of the library, if different from the real name.
18031soname_spec=$lt_soname_spec
18032
18033# Commands used to build and install an old-style archive.
18034RANLIB=$lt_RANLIB
18035old_archive_cmds=$lt_old_archive_cmds_GCJ
18036old_postinstall_cmds=$lt_old_postinstall_cmds
18037old_postuninstall_cmds=$lt_old_postuninstall_cmds
18038
18039# Create an old-style archive from a shared archive.
18040old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18041
18042# Create a temporary old-style archive to link instead of a shared archive.
18043old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18044
18045# Commands used to build and install a shared archive.
18046archive_cmds=$lt_archive_cmds_GCJ
18047archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18048postinstall_cmds=$lt_postinstall_cmds
18049postuninstall_cmds=$lt_postuninstall_cmds
18050
18051# Commands used to build a loadable module (assumed same as above if empty)
18052module_cmds=$lt_module_cmds_GCJ
18053module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18054
18055# Commands to strip libraries.
18056old_striplib=$lt_old_striplib
18057striplib=$lt_striplib
18058
18059# Dependencies to place before the objects being linked to create a
18060# shared library.
18061predep_objects=$lt_predep_objects_GCJ
18062
18063# Dependencies to place after the objects being linked to create a
18064# shared library.
18065postdep_objects=$lt_postdep_objects_GCJ
18066
18067# Dependencies to place before the objects being linked to create a
18068# shared library.
18069predeps=$lt_predeps_GCJ
18070
18071# Dependencies to place after the objects being linked to create a
18072# shared library.
18073postdeps=$lt_postdeps_GCJ
18074
18075# The library search path used internally by the compiler when linking
18076# a shared library.
18077compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18078
18079# Method to check whether dependent libraries are shared objects.
18080deplibs_check_method=$lt_deplibs_check_method
18081
18082# Command to use when deplibs_check_method == file_magic.
18083file_magic_cmd=$lt_file_magic_cmd
18084
18085# Flag that allows shared libraries with undefined symbols to be built.
18086allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18087
18088# Flag that forces no undefined symbols.
18089no_undefined_flag=$lt_no_undefined_flag_GCJ
18090
18091# Commands used to finish a libtool library installation in a directory.
18092finish_cmds=$lt_finish_cmds
18093
18094# Same as above, but a single script fragment to be evaled but not shown.
18095finish_eval=$lt_finish_eval
18096
18097# Take the output of nm and produce a listing of raw symbols and C names.
18098global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18099
18100# Transform the output of nm in a proper C declaration
18101global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18102
18103# Transform the output of nm in a C name address pair
18104global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18105
18106# This is the shared library runtime path variable.
18107runpath_var=$runpath_var
18108
18109# This is the shared library path variable.
18110shlibpath_var=$shlibpath_var
18111
18112# Is shlibpath searched before the hard-coded library search path?
18113shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18114
18115# How to hardcode a shared library path into an executable.
18116hardcode_action=$hardcode_action_GCJ
18117
18118# Whether we should hardcode library paths into libraries.
18119hardcode_into_libs=$hardcode_into_libs
18120
18121# Flag to hardcode \$libdir into a binary during linking.
18122# This must work even if \$libdir does not exist.
18123hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18124
18125# If ld is used when linking, flag to hardcode \$libdir into
18126# a binary during linking. This must work even if \$libdir does
18127# not exist.
18128hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18129
18130# Whether we need a single -rpath flag with a separated argument.
18131hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18132
18133# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18134# resulting binary.
18135hardcode_direct=$hardcode_direct_GCJ
18136
18137# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18138# resulting binary.
18139hardcode_minus_L=$hardcode_minus_L_GCJ
18140
18141# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18142# the resulting binary.
18143hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18144
18145# Set to yes if building a shared library automatically hardcodes DIR into the library
18146# and all subsequent libraries and executables linked against it.
18147hardcode_automatic=$hardcode_automatic_GCJ
18148
18149# Variables whose values should be saved in libtool wrapper scripts and
18150# restored at relink time.
18151variables_saved_for_relink="$variables_saved_for_relink"
18152
18153# Whether libtool must link a program against all its dependency libraries.
18154link_all_deplibs=$link_all_deplibs_GCJ
18155
18156# Compile-time system search path for libraries
18157sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18158
18159# Run-time system search path for libraries
18160sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18161
18162# Fix the shell variable \$srcfile for the compiler.
18163fix_srcfile_path="$fix_srcfile_path_GCJ"
18164
18165# Set to yes if exported symbols are required.
18166always_export_symbols=$always_export_symbols_GCJ
18167
18168# The commands to list exported symbols.
18169export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18170
18171# The commands to extract the exported symbol list from a shared archive.
18172extract_expsyms_cmds=$lt_extract_expsyms_cmds
18173
18174# Symbols that should not be listed in the preloaded symbols.
18175exclude_expsyms=$lt_exclude_expsyms_GCJ
18176
18177# Symbols that must always be exported.
18178include_expsyms=$lt_include_expsyms_GCJ
18179
18180# ### END LIBTOOL TAG CONFIG: $tagname
18181
18182__EOF__
18183
18184
18185else
18186  # If there is no Makefile yet, we rely on a make rule to execute
18187  # `config.status --recheck' to rerun these tests and create the
18188  # libtool script then.
18189  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18190  if test -f "$ltmain_in"; then
18191    test -f Makefile && make "$ltmain"
18192  fi
18193fi
18194
18195
18196ac_ext=c
18197ac_cpp='$CPP $CPPFLAGS'
18198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18200ac_compiler_gnu=$ac_cv_c_compiler_gnu
18201
18202CC="$lt_save_CC"
18203
18204	else
18205	  tagname=""
18206	fi
18207	;;
18208
18209      RC)
18210
18211
18212
18213# Source file extension for RC test sources.
18214ac_ext=rc
18215
18216# Object file extension for compiled RC test sources.
18217objext=o
18218objext_RC=$objext
18219
18220# Code to be used in simple compile tests
18221lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18222
18223# Code to be used in simple link tests
18224lt_simple_link_test_code="$lt_simple_compile_test_code"
18225
18226# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18227
18228# If no C compiler was specified, use CC.
18229LTCC=${LTCC-"$CC"}
18230
18231# If no C compiler flags were specified, use CFLAGS.
18232LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18233
18234# Allow CC to be a program name with arguments.
18235compiler=$CC
18236
18237
18238# save warnings/boilerplate of simple test code
18239ac_outfile=conftest.$ac_objext
18240printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18241eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18242_lt_compiler_boilerplate=`cat conftest.err`
18243$rm conftest*
18244
18245ac_outfile=conftest.$ac_objext
18246printf "$lt_simple_link_test_code" >conftest.$ac_ext
18247eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18248_lt_linker_boilerplate=`cat conftest.err`
18249$rm conftest*
18250
18251
18252# Allow CC to be a program name with arguments.
18253lt_save_CC="$CC"
18254CC=${RC-"windres"}
18255compiler=$CC
18256compiler_RC=$CC
18257for cc_temp in $compiler""; do
18258  case $cc_temp in
18259    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18260    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18261    \-*) ;;
18262    *) break;;
18263  esac
18264done
18265cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18266
18267lt_cv_prog_compiler_c_o_RC=yes
18268
18269# The else clause should only fire when bootstrapping the
18270# libtool distribution, otherwise you forgot to ship ltmain.sh
18271# with your package, and you will get complaints that there are
18272# no rules to generate ltmain.sh.
18273if test -f "$ltmain"; then
18274  # See if we are running on zsh, and set the options which allow our commands through
18275  # without removal of \ escapes.
18276  if test -n "${ZSH_VERSION+set}" ; then
18277    setopt NO_GLOB_SUBST
18278  fi
18279  # Now quote all the things that may contain metacharacters while being
18280  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18281  # variables and quote the copies for generation of the libtool script.
18282  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18283    SED SHELL STRIP \
18284    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18285    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18286    deplibs_check_method reload_flag reload_cmds need_locks \
18287    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18288    lt_cv_sys_global_symbol_to_c_name_address \
18289    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18290    old_postinstall_cmds old_postuninstall_cmds \
18291    compiler_RC \
18292    CC_RC \
18293    LD_RC \
18294    lt_prog_compiler_wl_RC \
18295    lt_prog_compiler_pic_RC \
18296    lt_prog_compiler_static_RC \
18297    lt_prog_compiler_no_builtin_flag_RC \
18298    export_dynamic_flag_spec_RC \
18299    thread_safe_flag_spec_RC \
18300    whole_archive_flag_spec_RC \
18301    enable_shared_with_static_runtimes_RC \
18302    old_archive_cmds_RC \
18303    old_archive_from_new_cmds_RC \
18304    predep_objects_RC \
18305    postdep_objects_RC \
18306    predeps_RC \
18307    postdeps_RC \
18308    compiler_lib_search_path_RC \
18309    archive_cmds_RC \
18310    archive_expsym_cmds_RC \
18311    postinstall_cmds_RC \
18312    postuninstall_cmds_RC \
18313    old_archive_from_expsyms_cmds_RC \
18314    allow_undefined_flag_RC \
18315    no_undefined_flag_RC \
18316    export_symbols_cmds_RC \
18317    hardcode_libdir_flag_spec_RC \
18318    hardcode_libdir_flag_spec_ld_RC \
18319    hardcode_libdir_separator_RC \
18320    hardcode_automatic_RC \
18321    module_cmds_RC \
18322    module_expsym_cmds_RC \
18323    lt_cv_prog_compiler_c_o_RC \
18324    exclude_expsyms_RC \
18325    include_expsyms_RC; do
18326
18327    case $var in
18328    old_archive_cmds_RC | \
18329    old_archive_from_new_cmds_RC | \
18330    archive_cmds_RC | \
18331    archive_expsym_cmds_RC | \
18332    module_cmds_RC | \
18333    module_expsym_cmds_RC | \
18334    old_archive_from_expsyms_cmds_RC | \
18335    export_symbols_cmds_RC | \
18336    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18337    postinstall_cmds | postuninstall_cmds | \
18338    old_postinstall_cmds | old_postuninstall_cmds | \
18339    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18340      # Double-quote double-evaled strings.
18341      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18342      ;;
18343    *)
18344      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18345      ;;
18346    esac
18347  done
18348
18349  case $lt_echo in
18350  *'\$0 --fallback-echo"')
18351    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18352    ;;
18353  esac
18354
18355cfgfile="$ofile"
18356
18357  cat <<__EOF__ >> "$cfgfile"
18358# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18359
18360# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18361
18362# Shell to use when invoking shell scripts.
18363SHELL=$lt_SHELL
18364
18365# Whether or not to build shared libraries.
18366build_libtool_libs=$enable_shared
18367
18368# Whether or not to build static libraries.
18369build_old_libs=$enable_static
18370
18371# Whether or not to add -lc for building shared libraries.
18372build_libtool_need_lc=$archive_cmds_need_lc_RC
18373
18374# Whether or not to disallow shared libs when runtime libs are static
18375allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18376
18377# Whether or not to optimize for fast installation.
18378fast_install=$enable_fast_install
18379
18380# The host system.
18381host_alias=$host_alias
18382host=$host
18383host_os=$host_os
18384
18385# The build system.
18386build_alias=$build_alias
18387build=$build
18388build_os=$build_os
18389
18390# An echo program that does not interpret backslashes.
18391echo=$lt_echo
18392
18393# The archiver.
18394AR=$lt_AR
18395AR_FLAGS=$lt_AR_FLAGS
18396
18397# A C compiler.
18398LTCC=$lt_LTCC
18399
18400# LTCC compiler flags.
18401LTCFLAGS=$lt_LTCFLAGS
18402
18403# A language-specific compiler.
18404CC=$lt_compiler_RC
18405
18406# Is the compiler the GNU C compiler?
18407with_gcc=$GCC_RC
18408
18409# An ERE matcher.
18410EGREP=$lt_EGREP
18411
18412# The linker used to build libraries.
18413LD=$lt_LD_RC
18414
18415# Whether we need hard or soft links.
18416LN_S=$lt_LN_S
18417
18418# A BSD-compatible nm program.
18419NM=$lt_NM
18420
18421# A symbol stripping program
18422STRIP=$lt_STRIP
18423
18424# Used to examine libraries when file_magic_cmd begins "file"
18425MAGIC_CMD=$MAGIC_CMD
18426
18427# Used on cygwin: DLL creation program.
18428DLLTOOL="$DLLTOOL"
18429
18430# Used on cygwin: object dumper.
18431OBJDUMP="$OBJDUMP"
18432
18433# Used on cygwin: assembler.
18434AS="$AS"
18435
18436# The name of the directory that contains temporary libtool files.
18437objdir=$objdir
18438
18439# How to create reloadable object files.
18440reload_flag=$lt_reload_flag
18441reload_cmds=$lt_reload_cmds
18442
18443# How to pass a linker flag through the compiler.
18444wl=$lt_lt_prog_compiler_wl_RC
18445
18446# Object file suffix (normally "o").
18447objext="$ac_objext"
18448
18449# Old archive suffix (normally "a").
18450libext="$libext"
18451
18452# Shared library suffix (normally ".so").
18453shrext_cmds='$shrext_cmds'
18454
18455# Executable file suffix (normally "").
18456exeext="$exeext"
18457
18458# Additional compiler flags for building library objects.
18459pic_flag=$lt_lt_prog_compiler_pic_RC
18460pic_mode=$pic_mode
18461
18462# What is the maximum length of a command?
18463max_cmd_len=$lt_cv_sys_max_cmd_len
18464
18465# Does compiler simultaneously support -c and -o options?
18466compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18467
18468# Must we lock files when doing compilation?
18469need_locks=$lt_need_locks
18470
18471# Do we need the lib prefix for modules?
18472need_lib_prefix=$need_lib_prefix
18473
18474# Do we need a version for libraries?
18475need_version=$need_version
18476
18477# Whether dlopen is supported.
18478dlopen_support=$enable_dlopen
18479
18480# Whether dlopen of programs is supported.
18481dlopen_self=$enable_dlopen_self
18482
18483# Whether dlopen of statically linked programs is supported.
18484dlopen_self_static=$enable_dlopen_self_static
18485
18486# Compiler flag to prevent dynamic linking.
18487link_static_flag=$lt_lt_prog_compiler_static_RC
18488
18489# Compiler flag to turn off builtin functions.
18490no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18491
18492# Compiler flag to allow reflexive dlopens.
18493export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18494
18495# Compiler flag to generate shared objects directly from archives.
18496whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18497
18498# Compiler flag to generate thread-safe objects.
18499thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18500
18501# Library versioning type.
18502version_type=$version_type
18503
18504# Format of library name prefix.
18505libname_spec=$lt_libname_spec
18506
18507# List of archive names.  First name is the real one, the rest are links.
18508# The last name is the one that the linker finds with -lNAME.
18509library_names_spec=$lt_library_names_spec
18510
18511# The coded name of the library, if different from the real name.
18512soname_spec=$lt_soname_spec
18513
18514# Commands used to build and install an old-style archive.
18515RANLIB=$lt_RANLIB
18516old_archive_cmds=$lt_old_archive_cmds_RC
18517old_postinstall_cmds=$lt_old_postinstall_cmds
18518old_postuninstall_cmds=$lt_old_postuninstall_cmds
18519
18520# Create an old-style archive from a shared archive.
18521old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18522
18523# Create a temporary old-style archive to link instead of a shared archive.
18524old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18525
18526# Commands used to build and install a shared archive.
18527archive_cmds=$lt_archive_cmds_RC
18528archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18529postinstall_cmds=$lt_postinstall_cmds
18530postuninstall_cmds=$lt_postuninstall_cmds
18531
18532# Commands used to build a loadable module (assumed same as above if empty)
18533module_cmds=$lt_module_cmds_RC
18534module_expsym_cmds=$lt_module_expsym_cmds_RC
18535
18536# Commands to strip libraries.
18537old_striplib=$lt_old_striplib
18538striplib=$lt_striplib
18539
18540# Dependencies to place before the objects being linked to create a
18541# shared library.
18542predep_objects=$lt_predep_objects_RC
18543
18544# Dependencies to place after the objects being linked to create a
18545# shared library.
18546postdep_objects=$lt_postdep_objects_RC
18547
18548# Dependencies to place before the objects being linked to create a
18549# shared library.
18550predeps=$lt_predeps_RC
18551
18552# Dependencies to place after the objects being linked to create a
18553# shared library.
18554postdeps=$lt_postdeps_RC
18555
18556# The library search path used internally by the compiler when linking
18557# a shared library.
18558compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18559
18560# Method to check whether dependent libraries are shared objects.
18561deplibs_check_method=$lt_deplibs_check_method
18562
18563# Command to use when deplibs_check_method == file_magic.
18564file_magic_cmd=$lt_file_magic_cmd
18565
18566# Flag that allows shared libraries with undefined symbols to be built.
18567allow_undefined_flag=$lt_allow_undefined_flag_RC
18568
18569# Flag that forces no undefined symbols.
18570no_undefined_flag=$lt_no_undefined_flag_RC
18571
18572# Commands used to finish a libtool library installation in a directory.
18573finish_cmds=$lt_finish_cmds
18574
18575# Same as above, but a single script fragment to be evaled but not shown.
18576finish_eval=$lt_finish_eval
18577
18578# Take the output of nm and produce a listing of raw symbols and C names.
18579global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18580
18581# Transform the output of nm in a proper C declaration
18582global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18583
18584# Transform the output of nm in a C name address pair
18585global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18586
18587# This is the shared library runtime path variable.
18588runpath_var=$runpath_var
18589
18590# This is the shared library path variable.
18591shlibpath_var=$shlibpath_var
18592
18593# Is shlibpath searched before the hard-coded library search path?
18594shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18595
18596# How to hardcode a shared library path into an executable.
18597hardcode_action=$hardcode_action_RC
18598
18599# Whether we should hardcode library paths into libraries.
18600hardcode_into_libs=$hardcode_into_libs
18601
18602# Flag to hardcode \$libdir into a binary during linking.
18603# This must work even if \$libdir does not exist.
18604hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18605
18606# If ld is used when linking, flag to hardcode \$libdir into
18607# a binary during linking. This must work even if \$libdir does
18608# not exist.
18609hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18610
18611# Whether we need a single -rpath flag with a separated argument.
18612hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18613
18614# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18615# resulting binary.
18616hardcode_direct=$hardcode_direct_RC
18617
18618# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18619# resulting binary.
18620hardcode_minus_L=$hardcode_minus_L_RC
18621
18622# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18623# the resulting binary.
18624hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18625
18626# Set to yes if building a shared library automatically hardcodes DIR into the library
18627# and all subsequent libraries and executables linked against it.
18628hardcode_automatic=$hardcode_automatic_RC
18629
18630# Variables whose values should be saved in libtool wrapper scripts and
18631# restored at relink time.
18632variables_saved_for_relink="$variables_saved_for_relink"
18633
18634# Whether libtool must link a program against all its dependency libraries.
18635link_all_deplibs=$link_all_deplibs_RC
18636
18637# Compile-time system search path for libraries
18638sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18639
18640# Run-time system search path for libraries
18641sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18642
18643# Fix the shell variable \$srcfile for the compiler.
18644fix_srcfile_path="$fix_srcfile_path_RC"
18645
18646# Set to yes if exported symbols are required.
18647always_export_symbols=$always_export_symbols_RC
18648
18649# The commands to list exported symbols.
18650export_symbols_cmds=$lt_export_symbols_cmds_RC
18651
18652# The commands to extract the exported symbol list from a shared archive.
18653extract_expsyms_cmds=$lt_extract_expsyms_cmds
18654
18655# Symbols that should not be listed in the preloaded symbols.
18656exclude_expsyms=$lt_exclude_expsyms_RC
18657
18658# Symbols that must always be exported.
18659include_expsyms=$lt_include_expsyms_RC
18660
18661# ### END LIBTOOL TAG CONFIG: $tagname
18662
18663__EOF__
18664
18665
18666else
18667  # If there is no Makefile yet, we rely on a make rule to execute
18668  # `config.status --recheck' to rerun these tests and create the
18669  # libtool script then.
18670  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18671  if test -f "$ltmain_in"; then
18672    test -f Makefile && make "$ltmain"
18673  fi
18674fi
18675
18676
18677ac_ext=c
18678ac_cpp='$CPP $CPPFLAGS'
18679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18681ac_compiler_gnu=$ac_cv_c_compiler_gnu
18682
18683CC="$lt_save_CC"
18684
18685	;;
18686
18687      *)
18688	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18689echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18690   { (exit 1); exit 1; }; }
18691	;;
18692      esac
18693
18694      # Append the new tag name to the list of available tags.
18695      if test -n "$tagname" ; then
18696      available_tags="$available_tags $tagname"
18697    fi
18698    fi
18699  done
18700  IFS="$lt_save_ifs"
18701
18702  # Now substitute the updated list of available tags.
18703  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18704    mv "${ofile}T" "$ofile"
18705    chmod +x "$ofile"
18706  else
18707    rm -f "${ofile}T"
18708    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18709echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18710   { (exit 1); exit 1; }; }
18711  fi
18712fi
18713
18714
18715
18716# This can be used to rebuild libtool when needed
18717LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18718
18719# Always use our own libtool.
18720LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18721
18722# Prevent multiple expansion
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744# Checks for header files.
18745echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18746echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18747if test "${ac_cv_header_stdc+set}" = set; then
18748  echo $ECHO_N "(cached) $ECHO_C" >&6
18749else
18750  cat >conftest.$ac_ext <<_ACEOF
18751/* confdefs.h.  */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h.  */
18756#include <stdlib.h>
18757#include <stdarg.h>
18758#include <string.h>
18759#include <float.h>
18760
18761int
18762main ()
18763{
18764
18765  ;
18766  return 0;
18767}
18768_ACEOF
18769rm -f conftest.$ac_objext
18770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18771  (eval $ac_compile) 2>conftest.er1
18772  ac_status=$?
18773  grep -v '^ *+' conftest.er1 >conftest.err
18774  rm -f conftest.er1
18775  cat conftest.err >&5
18776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777  (exit $ac_status); } &&
18778	 { ac_try='test -z "$ac_c_werror_flag"
18779			 || test ! -s conftest.err'
18780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781  (eval $ac_try) 2>&5
18782  ac_status=$?
18783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784  (exit $ac_status); }; } &&
18785	 { ac_try='test -s conftest.$ac_objext'
18786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787  (eval $ac_try) 2>&5
18788  ac_status=$?
18789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790  (exit $ac_status); }; }; then
18791  ac_cv_header_stdc=yes
18792else
18793  echo "$as_me: failed program was:" >&5
18794sed 's/^/| /' conftest.$ac_ext >&5
18795
18796ac_cv_header_stdc=no
18797fi
18798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18799
18800if test $ac_cv_header_stdc = yes; then
18801  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18802  cat >conftest.$ac_ext <<_ACEOF
18803/* confdefs.h.  */
18804_ACEOF
18805cat confdefs.h >>conftest.$ac_ext
18806cat >>conftest.$ac_ext <<_ACEOF
18807/* end confdefs.h.  */
18808#include <string.h>
18809
18810_ACEOF
18811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18812  $EGREP "memchr" >/dev/null 2>&1; then
18813  :
18814else
18815  ac_cv_header_stdc=no
18816fi
18817rm -f conftest*
18818
18819fi
18820
18821if test $ac_cv_header_stdc = yes; then
18822  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18823  cat >conftest.$ac_ext <<_ACEOF
18824/* confdefs.h.  */
18825_ACEOF
18826cat confdefs.h >>conftest.$ac_ext
18827cat >>conftest.$ac_ext <<_ACEOF
18828/* end confdefs.h.  */
18829#include <stdlib.h>
18830
18831_ACEOF
18832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18833  $EGREP "free" >/dev/null 2>&1; then
18834  :
18835else
18836  ac_cv_header_stdc=no
18837fi
18838rm -f conftest*
18839
18840fi
18841
18842if test $ac_cv_header_stdc = yes; then
18843  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18844  if test "$cross_compiling" = yes; then
18845  :
18846else
18847  cat >conftest.$ac_ext <<_ACEOF
18848/* confdefs.h.  */
18849_ACEOF
18850cat confdefs.h >>conftest.$ac_ext
18851cat >>conftest.$ac_ext <<_ACEOF
18852/* end confdefs.h.  */
18853#include <ctype.h>
18854#if ((' ' & 0x0FF) == 0x020)
18855# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18856# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18857#else
18858# define ISLOWER(c) \
18859		   (('a' <= (c) && (c) <= 'i') \
18860		     || ('j' <= (c) && (c) <= 'r') \
18861		     || ('s' <= (c) && (c) <= 'z'))
18862# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18863#endif
18864
18865#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18866int
18867main ()
18868{
18869  int i;
18870  for (i = 0; i < 256; i++)
18871    if (XOR (islower (i), ISLOWER (i))
18872	|| toupper (i) != TOUPPER (i))
18873      exit(2);
18874  exit (0);
18875}
18876_ACEOF
18877rm -f conftest$ac_exeext
18878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18879  (eval $ac_link) 2>&5
18880  ac_status=$?
18881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884  (eval $ac_try) 2>&5
18885  ac_status=$?
18886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887  (exit $ac_status); }; }; then
18888  :
18889else
18890  echo "$as_me: program exited with status $ac_status" >&5
18891echo "$as_me: failed program was:" >&5
18892sed 's/^/| /' conftest.$ac_ext >&5
18893
18894( exit $ac_status )
18895ac_cv_header_stdc=no
18896fi
18897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18898fi
18899fi
18900fi
18901echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18902echo "${ECHO_T}$ac_cv_header_stdc" >&6
18903if test $ac_cv_header_stdc = yes; then
18904
18905cat >>confdefs.h <<\_ACEOF
18906#define STDC_HEADERS 1
18907_ACEOF
18908
18909fi
18910
18911
18912
18913
18914
18915for ac_header in malloc.h stdlib.h string.h strings.h
18916do
18917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18918if eval "test \"\${$as_ac_Header+set}\" = set"; then
18919  echo "$as_me:$LINENO: checking for $ac_header" >&5
18920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18921if eval "test \"\${$as_ac_Header+set}\" = set"; then
18922  echo $ECHO_N "(cached) $ECHO_C" >&6
18923fi
18924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18926else
18927  # Is the header compilable?
18928echo "$as_me:$LINENO: checking $ac_header usability" >&5
18929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18930cat >conftest.$ac_ext <<_ACEOF
18931/* confdefs.h.  */
18932_ACEOF
18933cat confdefs.h >>conftest.$ac_ext
18934cat >>conftest.$ac_ext <<_ACEOF
18935/* end confdefs.h.  */
18936$ac_includes_default
18937#include <$ac_header>
18938_ACEOF
18939rm -f conftest.$ac_objext
18940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18941  (eval $ac_compile) 2>conftest.er1
18942  ac_status=$?
18943  grep -v '^ *+' conftest.er1 >conftest.err
18944  rm -f conftest.er1
18945  cat conftest.err >&5
18946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947  (exit $ac_status); } &&
18948	 { ac_try='test -z "$ac_c_werror_flag"
18949			 || test ! -s conftest.err'
18950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951  (eval $ac_try) 2>&5
18952  ac_status=$?
18953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954  (exit $ac_status); }; } &&
18955	 { ac_try='test -s conftest.$ac_objext'
18956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957  (eval $ac_try) 2>&5
18958  ac_status=$?
18959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960  (exit $ac_status); }; }; then
18961  ac_header_compiler=yes
18962else
18963  echo "$as_me: failed program was:" >&5
18964sed 's/^/| /' conftest.$ac_ext >&5
18965
18966ac_header_compiler=no
18967fi
18968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18970echo "${ECHO_T}$ac_header_compiler" >&6
18971
18972# Is the header present?
18973echo "$as_me:$LINENO: checking $ac_header presence" >&5
18974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18975cat >conftest.$ac_ext <<_ACEOF
18976/* confdefs.h.  */
18977_ACEOF
18978cat confdefs.h >>conftest.$ac_ext
18979cat >>conftest.$ac_ext <<_ACEOF
18980/* end confdefs.h.  */
18981#include <$ac_header>
18982_ACEOF
18983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18984  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18985  ac_status=$?
18986  grep -v '^ *+' conftest.er1 >conftest.err
18987  rm -f conftest.er1
18988  cat conftest.err >&5
18989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990  (exit $ac_status); } >/dev/null; then
18991  if test -s conftest.err; then
18992    ac_cpp_err=$ac_c_preproc_warn_flag
18993    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18994  else
18995    ac_cpp_err=
18996  fi
18997else
18998  ac_cpp_err=yes
18999fi
19000if test -z "$ac_cpp_err"; then
19001  ac_header_preproc=yes
19002else
19003  echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006  ac_header_preproc=no
19007fi
19008rm -f conftest.err conftest.$ac_ext
19009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19010echo "${ECHO_T}$ac_header_preproc" >&6
19011
19012# So?  What about this header?
19013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19014  yes:no: )
19015    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19017    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19019    ac_header_preproc=yes
19020    ;;
19021  no:yes:* )
19022    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19024    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19025echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19026    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19028    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19029echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19030    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19032    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19034    (
19035      cat <<\_ASBOX
19036## ------------------------------------------------------ ##
19037## Report this to png-mng-implement@lists.sourceforge.net ##
19038## ------------------------------------------------------ ##
19039_ASBOX
19040    ) |
19041      sed "s/^/$as_me: WARNING:     /" >&2
19042    ;;
19043esac
19044echo "$as_me:$LINENO: checking for $ac_header" >&5
19045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19046if eval "test \"\${$as_ac_Header+set}\" = set"; then
19047  echo $ECHO_N "(cached) $ECHO_C" >&6
19048else
19049  eval "$as_ac_Header=\$ac_header_preproc"
19050fi
19051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19053
19054fi
19055if test `eval echo '${'$as_ac_Header'}'` = yes; then
19056  cat >>confdefs.h <<_ACEOF
19057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19058_ACEOF
19059
19060fi
19061
19062done
19063
19064
19065# Checks for typedefs, structures, and compiler characteristics.
19066echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19067echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19068if test "${ac_cv_c_const+set}" = set; then
19069  echo $ECHO_N "(cached) $ECHO_C" >&6
19070else
19071  cat >conftest.$ac_ext <<_ACEOF
19072/* confdefs.h.  */
19073_ACEOF
19074cat confdefs.h >>conftest.$ac_ext
19075cat >>conftest.$ac_ext <<_ACEOF
19076/* end confdefs.h.  */
19077
19078int
19079main ()
19080{
19081/* FIXME: Include the comments suggested by Paul. */
19082#ifndef __cplusplus
19083  /* Ultrix mips cc rejects this.  */
19084  typedef int charset[2];
19085  const charset x;
19086  /* SunOS 4.1.1 cc rejects this.  */
19087  char const *const *ccp;
19088  char **p;
19089  /* NEC SVR4.0.2 mips cc rejects this.  */
19090  struct point {int x, y;};
19091  static struct point const zero = {0,0};
19092  /* AIX XL C 1.02.0.0 rejects this.
19093     It does not let you subtract one const X* pointer from another in
19094     an arm of an if-expression whose if-part is not a constant
19095     expression */
19096  const char *g = "string";
19097  ccp = &g + (g ? g-g : 0);
19098  /* HPUX 7.0 cc rejects these. */
19099  ++ccp;
19100  p = (char**) ccp;
19101  ccp = (char const *const *) p;
19102  { /* SCO 3.2v4 cc rejects this.  */
19103    char *t;
19104    char const *s = 0 ? (char *) 0 : (char const *) 0;
19105
19106    *t++ = 0;
19107  }
19108  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19109    int x[] = {25, 17};
19110    const int *foo = &x[0];
19111    ++foo;
19112  }
19113  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19114    typedef const int *iptr;
19115    iptr p = 0;
19116    ++p;
19117  }
19118  { /* AIX XL C 1.02.0.0 rejects this saying
19119       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19120    struct s { int j; const int *ap[3]; };
19121    struct s *b; b->j = 5;
19122  }
19123  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19124    const int foo = 10;
19125  }
19126#endif
19127
19128  ;
19129  return 0;
19130}
19131_ACEOF
19132rm -f conftest.$ac_objext
19133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19134  (eval $ac_compile) 2>conftest.er1
19135  ac_status=$?
19136  grep -v '^ *+' conftest.er1 >conftest.err
19137  rm -f conftest.er1
19138  cat conftest.err >&5
19139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140  (exit $ac_status); } &&
19141	 { ac_try='test -z "$ac_c_werror_flag"
19142			 || test ! -s conftest.err'
19143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144  (eval $ac_try) 2>&5
19145  ac_status=$?
19146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147  (exit $ac_status); }; } &&
19148	 { ac_try='test -s conftest.$ac_objext'
19149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150  (eval $ac_try) 2>&5
19151  ac_status=$?
19152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153  (exit $ac_status); }; }; then
19154  ac_cv_c_const=yes
19155else
19156  echo "$as_me: failed program was:" >&5
19157sed 's/^/| /' conftest.$ac_ext >&5
19158
19159ac_cv_c_const=no
19160fi
19161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19162fi
19163echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19164echo "${ECHO_T}$ac_cv_c_const" >&6
19165if test $ac_cv_c_const = no; then
19166
19167cat >>confdefs.h <<\_ACEOF
19168#define const
19169_ACEOF
19170
19171fi
19172
19173echo "$as_me:$LINENO: checking for size_t" >&5
19174echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19175if test "${ac_cv_type_size_t+set}" = set; then
19176  echo $ECHO_N "(cached) $ECHO_C" >&6
19177else
19178  cat >conftest.$ac_ext <<_ACEOF
19179/* confdefs.h.  */
19180_ACEOF
19181cat confdefs.h >>conftest.$ac_ext
19182cat >>conftest.$ac_ext <<_ACEOF
19183/* end confdefs.h.  */
19184$ac_includes_default
19185int
19186main ()
19187{
19188if ((size_t *) 0)
19189  return 0;
19190if (sizeof (size_t))
19191  return 0;
19192  ;
19193  return 0;
19194}
19195_ACEOF
19196rm -f conftest.$ac_objext
19197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198  (eval $ac_compile) 2>conftest.er1
19199  ac_status=$?
19200  grep -v '^ *+' conftest.er1 >conftest.err
19201  rm -f conftest.er1
19202  cat conftest.err >&5
19203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204  (exit $ac_status); } &&
19205	 { ac_try='test -z "$ac_c_werror_flag"
19206			 || test ! -s conftest.err'
19207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208  (eval $ac_try) 2>&5
19209  ac_status=$?
19210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211  (exit $ac_status); }; } &&
19212	 { ac_try='test -s conftest.$ac_objext'
19213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214  (eval $ac_try) 2>&5
19215  ac_status=$?
19216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217  (exit $ac_status); }; }; then
19218  ac_cv_type_size_t=yes
19219else
19220  echo "$as_me: failed program was:" >&5
19221sed 's/^/| /' conftest.$ac_ext >&5
19222
19223ac_cv_type_size_t=no
19224fi
19225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19226fi
19227echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19228echo "${ECHO_T}$ac_cv_type_size_t" >&6
19229if test $ac_cv_type_size_t = yes; then
19230  :
19231else
19232
19233cat >>confdefs.h <<_ACEOF
19234#define size_t unsigned
19235_ACEOF
19236
19237fi
19238
19239echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19240echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19241if test "${ac_cv_struct_tm+set}" = set; then
19242  echo $ECHO_N "(cached) $ECHO_C" >&6
19243else
19244  cat >conftest.$ac_ext <<_ACEOF
19245/* confdefs.h.  */
19246_ACEOF
19247cat confdefs.h >>conftest.$ac_ext
19248cat >>conftest.$ac_ext <<_ACEOF
19249/* end confdefs.h.  */
19250#include <sys/types.h>
19251#include <time.h>
19252
19253int
19254main ()
19255{
19256struct tm *tp; tp->tm_sec;
19257  ;
19258  return 0;
19259}
19260_ACEOF
19261rm -f conftest.$ac_objext
19262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19263  (eval $ac_compile) 2>conftest.er1
19264  ac_status=$?
19265  grep -v '^ *+' conftest.er1 >conftest.err
19266  rm -f conftest.er1
19267  cat conftest.err >&5
19268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269  (exit $ac_status); } &&
19270	 { ac_try='test -z "$ac_c_werror_flag"
19271			 || test ! -s conftest.err'
19272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273  (eval $ac_try) 2>&5
19274  ac_status=$?
19275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276  (exit $ac_status); }; } &&
19277	 { ac_try='test -s conftest.$ac_objext'
19278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279  (eval $ac_try) 2>&5
19280  ac_status=$?
19281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282  (exit $ac_status); }; }; then
19283  ac_cv_struct_tm=time.h
19284else
19285  echo "$as_me: failed program was:" >&5
19286sed 's/^/| /' conftest.$ac_ext >&5
19287
19288ac_cv_struct_tm=sys/time.h
19289fi
19290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19291fi
19292echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19293echo "${ECHO_T}$ac_cv_struct_tm" >&6
19294if test $ac_cv_struct_tm = sys/time.h; then
19295
19296cat >>confdefs.h <<\_ACEOF
19297#define TM_IN_SYS_TIME 1
19298_ACEOF
19299
19300fi
19301
19302
19303# Checks for library functions.
19304
19305for ac_header in stdlib.h
19306do
19307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19308if eval "test \"\${$as_ac_Header+set}\" = set"; then
19309  echo "$as_me:$LINENO: checking for $ac_header" >&5
19310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19311if eval "test \"\${$as_ac_Header+set}\" = set"; then
19312  echo $ECHO_N "(cached) $ECHO_C" >&6
19313fi
19314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19316else
19317  # Is the header compilable?
19318echo "$as_me:$LINENO: checking $ac_header usability" >&5
19319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19320cat >conftest.$ac_ext <<_ACEOF
19321/* confdefs.h.  */
19322_ACEOF
19323cat confdefs.h >>conftest.$ac_ext
19324cat >>conftest.$ac_ext <<_ACEOF
19325/* end confdefs.h.  */
19326$ac_includes_default
19327#include <$ac_header>
19328_ACEOF
19329rm -f conftest.$ac_objext
19330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19331  (eval $ac_compile) 2>conftest.er1
19332  ac_status=$?
19333  grep -v '^ *+' conftest.er1 >conftest.err
19334  rm -f conftest.er1
19335  cat conftest.err >&5
19336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337  (exit $ac_status); } &&
19338	 { ac_try='test -z "$ac_c_werror_flag"
19339			 || test ! -s conftest.err'
19340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341  (eval $ac_try) 2>&5
19342  ac_status=$?
19343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344  (exit $ac_status); }; } &&
19345	 { ac_try='test -s conftest.$ac_objext'
19346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347  (eval $ac_try) 2>&5
19348  ac_status=$?
19349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350  (exit $ac_status); }; }; then
19351  ac_header_compiler=yes
19352else
19353  echo "$as_me: failed program was:" >&5
19354sed 's/^/| /' conftest.$ac_ext >&5
19355
19356ac_header_compiler=no
19357fi
19358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19360echo "${ECHO_T}$ac_header_compiler" >&6
19361
19362# Is the header present?
19363echo "$as_me:$LINENO: checking $ac_header presence" >&5
19364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19365cat >conftest.$ac_ext <<_ACEOF
19366/* confdefs.h.  */
19367_ACEOF
19368cat confdefs.h >>conftest.$ac_ext
19369cat >>conftest.$ac_ext <<_ACEOF
19370/* end confdefs.h.  */
19371#include <$ac_header>
19372_ACEOF
19373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19374  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19375  ac_status=$?
19376  grep -v '^ *+' conftest.er1 >conftest.err
19377  rm -f conftest.er1
19378  cat conftest.err >&5
19379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380  (exit $ac_status); } >/dev/null; then
19381  if test -s conftest.err; then
19382    ac_cpp_err=$ac_c_preproc_warn_flag
19383    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19384  else
19385    ac_cpp_err=
19386  fi
19387else
19388  ac_cpp_err=yes
19389fi
19390if test -z "$ac_cpp_err"; then
19391  ac_header_preproc=yes
19392else
19393  echo "$as_me: failed program was:" >&5
19394sed 's/^/| /' conftest.$ac_ext >&5
19395
19396  ac_header_preproc=no
19397fi
19398rm -f conftest.err conftest.$ac_ext
19399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19400echo "${ECHO_T}$ac_header_preproc" >&6
19401
19402# So?  What about this header?
19403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19404  yes:no: )
19405    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19407    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19409    ac_header_preproc=yes
19410    ;;
19411  no:yes:* )
19412    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19414    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19415echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19416    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19418    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19419echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19420    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19422    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19424    (
19425      cat <<\_ASBOX
19426## ------------------------------------------------------ ##
19427## Report this to png-mng-implement@lists.sourceforge.net ##
19428## ------------------------------------------------------ ##
19429_ASBOX
19430    ) |
19431      sed "s/^/$as_me: WARNING:     /" >&2
19432    ;;
19433esac
19434echo "$as_me:$LINENO: checking for $ac_header" >&5
19435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19436if eval "test \"\${$as_ac_Header+set}\" = set"; then
19437  echo $ECHO_N "(cached) $ECHO_C" >&6
19438else
19439  eval "$as_ac_Header=\$ac_header_preproc"
19440fi
19441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19443
19444fi
19445if test `eval echo '${'$as_ac_Header'}'` = yes; then
19446  cat >>confdefs.h <<_ACEOF
19447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19448_ACEOF
19449
19450fi
19451
19452done
19453
19454echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19455echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19456if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19457  echo $ECHO_N "(cached) $ECHO_C" >&6
19458else
19459  if test "$cross_compiling" = yes; then
19460  ac_cv_func_malloc_0_nonnull=no
19461else
19462  cat >conftest.$ac_ext <<_ACEOF
19463/* confdefs.h.  */
19464_ACEOF
19465cat confdefs.h >>conftest.$ac_ext
19466cat >>conftest.$ac_ext <<_ACEOF
19467/* end confdefs.h.  */
19468#if STDC_HEADERS || HAVE_STDLIB_H
19469# include <stdlib.h>
19470#else
19471char *malloc ();
19472#endif
19473
19474int
19475main ()
19476{
19477exit (malloc (0) ? 0 : 1);
19478  ;
19479  return 0;
19480}
19481_ACEOF
19482rm -f conftest$ac_exeext
19483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19484  (eval $ac_link) 2>&5
19485  ac_status=$?
19486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489  (eval $ac_try) 2>&5
19490  ac_status=$?
19491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492  (exit $ac_status); }; }; then
19493  ac_cv_func_malloc_0_nonnull=yes
19494else
19495  echo "$as_me: program exited with status $ac_status" >&5
19496echo "$as_me: failed program was:" >&5
19497sed 's/^/| /' conftest.$ac_ext >&5
19498
19499( exit $ac_status )
19500ac_cv_func_malloc_0_nonnull=no
19501fi
19502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19503fi
19504fi
19505echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19506echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19507if test $ac_cv_func_malloc_0_nonnull = yes; then
19508
19509cat >>confdefs.h <<\_ACEOF
19510#define HAVE_MALLOC 1
19511_ACEOF
19512
19513else
19514  cat >>confdefs.h <<\_ACEOF
19515#define HAVE_MALLOC 0
19516_ACEOF
19517
19518   case $LIBOBJS in
19519    "malloc.$ac_objext"   | \
19520  *" malloc.$ac_objext"   | \
19521    "malloc.$ac_objext "* | \
19522  *" malloc.$ac_objext "* ) ;;
19523  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
19524esac
19525
19526
19527cat >>confdefs.h <<\_ACEOF
19528#define malloc rpl_malloc
19529_ACEOF
19530
19531fi
19532
19533
19534
19535echo "$as_me:$LINENO: checking for working strtod" >&5
19536echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
19537if test "${ac_cv_func_strtod+set}" = set; then
19538  echo $ECHO_N "(cached) $ECHO_C" >&6
19539else
19540  if test "$cross_compiling" = yes; then
19541  ac_cv_func_strtod=no
19542else
19543  cat >conftest.$ac_ext <<_ACEOF
19544/* confdefs.h.  */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h.  */
19549
19550double strtod ();
19551int
19552main()
19553{
19554  {
19555    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
19556    char *string = " +69";
19557    char *term;
19558    double value;
19559    value = strtod (string, &term);
19560    if (value != 69 || term != (string + 4))
19561      exit (1);
19562  }
19563
19564  {
19565    /* Under Solaris 2.4, strtod returns the wrong value for the
19566       terminating character under some conditions.  */
19567    char *string = "NaN";
19568    char *term;
19569    strtod (string, &term);
19570    if (term != string && *(term - 1) == 0)
19571      exit (1);
19572  }
19573  exit (0);
19574}
19575
19576_ACEOF
19577rm -f conftest$ac_exeext
19578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19579  (eval $ac_link) 2>&5
19580  ac_status=$?
19581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584  (eval $ac_try) 2>&5
19585  ac_status=$?
19586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587  (exit $ac_status); }; }; then
19588  ac_cv_func_strtod=yes
19589else
19590  echo "$as_me: program exited with status $ac_status" >&5
19591echo "$as_me: failed program was:" >&5
19592sed 's/^/| /' conftest.$ac_ext >&5
19593
19594( exit $ac_status )
19595ac_cv_func_strtod=no
19596fi
19597rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19598fi
19599fi
19600echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
19601echo "${ECHO_T}$ac_cv_func_strtod" >&6
19602if test $ac_cv_func_strtod = no; then
19603  case $LIBOBJS in
19604    "strtod.$ac_objext"   | \
19605  *" strtod.$ac_objext"   | \
19606    "strtod.$ac_objext "* | \
19607  *" strtod.$ac_objext "* ) ;;
19608  *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
19609esac
19610
19611echo "$as_me:$LINENO: checking for pow" >&5
19612echo $ECHO_N "checking for pow... $ECHO_C" >&6
19613if test "${ac_cv_func_pow+set}" = set; then
19614  echo $ECHO_N "(cached) $ECHO_C" >&6
19615else
19616  cat >conftest.$ac_ext <<_ACEOF
19617/* confdefs.h.  */
19618_ACEOF
19619cat confdefs.h >>conftest.$ac_ext
19620cat >>conftest.$ac_ext <<_ACEOF
19621/* end confdefs.h.  */
19622/* Define pow to an innocuous variant, in case <limits.h> declares pow.
19623   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19624#define pow innocuous_pow
19625
19626/* System header to define __stub macros and hopefully few prototypes,
19627    which can conflict with char pow (); below.
19628    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19629    <limits.h> exists even on freestanding compilers.  */
19630
19631#ifdef __STDC__
19632# include <limits.h>
19633#else
19634# include <assert.h>
19635#endif
19636
19637#undef pow
19638
19639/* Override any gcc2 internal prototype to avoid an error.  */
19640#ifdef __cplusplus
19641extern "C"
19642{
19643#endif
19644/* We use char because int might match the return type of a gcc2
19645   builtin and then its argument prototype would still apply.  */
19646char pow ();
19647/* The GNU C library defines this for functions which it implements
19648    to always fail with ENOSYS.  Some functions are actually named
19649    something starting with __ and the normal name is an alias.  */
19650#if defined (__stub_pow) || defined (__stub___pow)
19651choke me
19652#else
19653char (*f) () = pow;
19654#endif
19655#ifdef __cplusplus
19656}
19657#endif
19658
19659int
19660main ()
19661{
19662return f != pow;
19663  ;
19664  return 0;
19665}
19666_ACEOF
19667rm -f conftest.$ac_objext conftest$ac_exeext
19668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19669  (eval $ac_link) 2>conftest.er1
19670  ac_status=$?
19671  grep -v '^ *+' conftest.er1 >conftest.err
19672  rm -f conftest.er1
19673  cat conftest.err >&5
19674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675  (exit $ac_status); } &&
19676	 { ac_try='test -z "$ac_c_werror_flag"
19677			 || test ! -s conftest.err'
19678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679  (eval $ac_try) 2>&5
19680  ac_status=$?
19681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682  (exit $ac_status); }; } &&
19683	 { ac_try='test -s conftest$ac_exeext'
19684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685  (eval $ac_try) 2>&5
19686  ac_status=$?
19687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688  (exit $ac_status); }; }; then
19689  ac_cv_func_pow=yes
19690else
19691  echo "$as_me: failed program was:" >&5
19692sed 's/^/| /' conftest.$ac_ext >&5
19693
19694ac_cv_func_pow=no
19695fi
19696rm -f conftest.err conftest.$ac_objext \
19697      conftest$ac_exeext conftest.$ac_ext
19698fi
19699echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
19700echo "${ECHO_T}$ac_cv_func_pow" >&6
19701
19702if test $ac_cv_func_pow = no; then
19703  echo "$as_me:$LINENO: checking for pow in -lm" >&5
19704echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
19705if test "${ac_cv_lib_m_pow+set}" = set; then
19706  echo $ECHO_N "(cached) $ECHO_C" >&6
19707else
19708  ac_check_lib_save_LIBS=$LIBS
19709LIBS="-lm  $LIBS"
19710cat >conftest.$ac_ext <<_ACEOF
19711/* confdefs.h.  */
19712_ACEOF
19713cat confdefs.h >>conftest.$ac_ext
19714cat >>conftest.$ac_ext <<_ACEOF
19715/* end confdefs.h.  */
19716
19717/* Override any gcc2 internal prototype to avoid an error.  */
19718#ifdef __cplusplus
19719extern "C"
19720#endif
19721/* We use char because int might match the return type of a gcc2
19722   builtin and then its argument prototype would still apply.  */
19723char pow ();
19724int
19725main ()
19726{
19727pow ();
19728  ;
19729  return 0;
19730}
19731_ACEOF
19732rm -f conftest.$ac_objext conftest$ac_exeext
19733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19734  (eval $ac_link) 2>conftest.er1
19735  ac_status=$?
19736  grep -v '^ *+' conftest.er1 >conftest.err
19737  rm -f conftest.er1
19738  cat conftest.err >&5
19739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740  (exit $ac_status); } &&
19741	 { ac_try='test -z "$ac_c_werror_flag"
19742			 || test ! -s conftest.err'
19743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744  (eval $ac_try) 2>&5
19745  ac_status=$?
19746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747  (exit $ac_status); }; } &&
19748	 { ac_try='test -s conftest$ac_exeext'
19749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750  (eval $ac_try) 2>&5
19751  ac_status=$?
19752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753  (exit $ac_status); }; }; then
19754  ac_cv_lib_m_pow=yes
19755else
19756  echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759ac_cv_lib_m_pow=no
19760fi
19761rm -f conftest.err conftest.$ac_objext \
19762      conftest$ac_exeext conftest.$ac_ext
19763LIBS=$ac_check_lib_save_LIBS
19764fi
19765echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
19766echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
19767if test $ac_cv_lib_m_pow = yes; then
19768  POW_LIB=-lm
19769else
19770  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
19771echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
19772fi
19773
19774fi
19775
19776fi
19777
19778
19779for ac_func in memset
19780do
19781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19782echo "$as_me:$LINENO: checking for $ac_func" >&5
19783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19784if eval "test \"\${$as_ac_var+set}\" = set"; then
19785  echo $ECHO_N "(cached) $ECHO_C" >&6
19786else
19787  cat >conftest.$ac_ext <<_ACEOF
19788/* confdefs.h.  */
19789_ACEOF
19790cat confdefs.h >>conftest.$ac_ext
19791cat >>conftest.$ac_ext <<_ACEOF
19792/* end confdefs.h.  */
19793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19794   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19795#define $ac_func innocuous_$ac_func
19796
19797/* System header to define __stub macros and hopefully few prototypes,
19798    which can conflict with char $ac_func (); below.
19799    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19800    <limits.h> exists even on freestanding compilers.  */
19801
19802#ifdef __STDC__
19803# include <limits.h>
19804#else
19805# include <assert.h>
19806#endif
19807
19808#undef $ac_func
19809
19810/* Override any gcc2 internal prototype to avoid an error.  */
19811#ifdef __cplusplus
19812extern "C"
19813{
19814#endif
19815/* We use char because int might match the return type of a gcc2
19816   builtin and then its argument prototype would still apply.  */
19817char $ac_func ();
19818/* The GNU C library defines this for functions which it implements
19819    to always fail with ENOSYS.  Some functions are actually named
19820    something starting with __ and the normal name is an alias.  */
19821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19822choke me
19823#else
19824char (*f) () = $ac_func;
19825#endif
19826#ifdef __cplusplus
19827}
19828#endif
19829
19830int
19831main ()
19832{
19833return f != $ac_func;
19834  ;
19835  return 0;
19836}
19837_ACEOF
19838rm -f conftest.$ac_objext conftest$ac_exeext
19839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19840  (eval $ac_link) 2>conftest.er1
19841  ac_status=$?
19842  grep -v '^ *+' conftest.er1 >conftest.err
19843  rm -f conftest.er1
19844  cat conftest.err >&5
19845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846  (exit $ac_status); } &&
19847	 { ac_try='test -z "$ac_c_werror_flag"
19848			 || test ! -s conftest.err'
19849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850  (eval $ac_try) 2>&5
19851  ac_status=$?
19852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853  (exit $ac_status); }; } &&
19854	 { ac_try='test -s conftest$ac_exeext'
19855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856  (eval $ac_try) 2>&5
19857  ac_status=$?
19858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859  (exit $ac_status); }; }; then
19860  eval "$as_ac_var=yes"
19861else
19862  echo "$as_me: failed program was:" >&5
19863sed 's/^/| /' conftest.$ac_ext >&5
19864
19865eval "$as_ac_var=no"
19866fi
19867rm -f conftest.err conftest.$ac_objext \
19868      conftest$ac_exeext conftest.$ac_ext
19869fi
19870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19871echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19872if test `eval echo '${'$as_ac_var'}'` = yes; then
19873  cat >>confdefs.h <<_ACEOF
19874#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19875_ACEOF
19876
19877else
19878  { { echo "$as_me:$LINENO: error: memset not found in libc" >&5
19879echo "$as_me: error: memset not found in libc" >&2;}
19880   { (exit 1); exit 1; }; }
19881fi
19882done
19883
19884
19885for ac_func in pow
19886do
19887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19888echo "$as_me:$LINENO: checking for $ac_func" >&5
19889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19890if eval "test \"\${$as_ac_var+set}\" = set"; then
19891  echo $ECHO_N "(cached) $ECHO_C" >&6
19892else
19893  cat >conftest.$ac_ext <<_ACEOF
19894/* confdefs.h.  */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
19898/* end confdefs.h.  */
19899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19900   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19901#define $ac_func innocuous_$ac_func
19902
19903/* System header to define __stub macros and hopefully few prototypes,
19904    which can conflict with char $ac_func (); below.
19905    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19906    <limits.h> exists even on freestanding compilers.  */
19907
19908#ifdef __STDC__
19909# include <limits.h>
19910#else
19911# include <assert.h>
19912#endif
19913
19914#undef $ac_func
19915
19916/* Override any gcc2 internal prototype to avoid an error.  */
19917#ifdef __cplusplus
19918extern "C"
19919{
19920#endif
19921/* We use char because int might match the return type of a gcc2
19922   builtin and then its argument prototype would still apply.  */
19923char $ac_func ();
19924/* The GNU C library defines this for functions which it implements
19925    to always fail with ENOSYS.  Some functions are actually named
19926    something starting with __ and the normal name is an alias.  */
19927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19928choke me
19929#else
19930char (*f) () = $ac_func;
19931#endif
19932#ifdef __cplusplus
19933}
19934#endif
19935
19936int
19937main ()
19938{
19939return f != $ac_func;
19940  ;
19941  return 0;
19942}
19943_ACEOF
19944rm -f conftest.$ac_objext conftest$ac_exeext
19945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19946  (eval $ac_link) 2>conftest.er1
19947  ac_status=$?
19948  grep -v '^ *+' conftest.er1 >conftest.err
19949  rm -f conftest.er1
19950  cat conftest.err >&5
19951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952  (exit $ac_status); } &&
19953	 { ac_try='test -z "$ac_c_werror_flag"
19954			 || test ! -s conftest.err'
19955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956  (eval $ac_try) 2>&5
19957  ac_status=$?
19958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959  (exit $ac_status); }; } &&
19960	 { ac_try='test -s conftest$ac_exeext'
19961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962  (eval $ac_try) 2>&5
19963  ac_status=$?
19964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965  (exit $ac_status); }; }; then
19966  eval "$as_ac_var=yes"
19967else
19968  echo "$as_me: failed program was:" >&5
19969sed 's/^/| /' conftest.$ac_ext >&5
19970
19971eval "$as_ac_var=no"
19972fi
19973rm -f conftest.err conftest.$ac_objext \
19974      conftest$ac_exeext conftest.$ac_ext
19975fi
19976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19978if test `eval echo '${'$as_ac_var'}'` = yes; then
19979  cat >>confdefs.h <<_ACEOF
19980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19981_ACEOF
19982
19983else
19984
19985echo "$as_me:$LINENO: checking for pow in -lm" >&5
19986echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
19987if test "${ac_cv_lib_m_pow+set}" = set; then
19988  echo $ECHO_N "(cached) $ECHO_C" >&6
19989else
19990  ac_check_lib_save_LIBS=$LIBS
19991LIBS="-lm  $LIBS"
19992cat >conftest.$ac_ext <<_ACEOF
19993/* confdefs.h.  */
19994_ACEOF
19995cat confdefs.h >>conftest.$ac_ext
19996cat >>conftest.$ac_ext <<_ACEOF
19997/* end confdefs.h.  */
19998
19999/* Override any gcc2 internal prototype to avoid an error.  */
20000#ifdef __cplusplus
20001extern "C"
20002#endif
20003/* We use char because int might match the return type of a gcc2
20004   builtin and then its argument prototype would still apply.  */
20005char pow ();
20006int
20007main ()
20008{
20009pow ();
20010  ;
20011  return 0;
20012}
20013_ACEOF
20014rm -f conftest.$ac_objext conftest$ac_exeext
20015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20016  (eval $ac_link) 2>conftest.er1
20017  ac_status=$?
20018  grep -v '^ *+' conftest.er1 >conftest.err
20019  rm -f conftest.er1
20020  cat conftest.err >&5
20021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022  (exit $ac_status); } &&
20023	 { ac_try='test -z "$ac_c_werror_flag"
20024			 || test ! -s conftest.err'
20025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026  (eval $ac_try) 2>&5
20027  ac_status=$?
20028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029  (exit $ac_status); }; } &&
20030	 { ac_try='test -s conftest$ac_exeext'
20031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032  (eval $ac_try) 2>&5
20033  ac_status=$?
20034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035  (exit $ac_status); }; }; then
20036  ac_cv_lib_m_pow=yes
20037else
20038  echo "$as_me: failed program was:" >&5
20039sed 's/^/| /' conftest.$ac_ext >&5
20040
20041ac_cv_lib_m_pow=no
20042fi
20043rm -f conftest.err conftest.$ac_objext \
20044      conftest$ac_exeext conftest.$ac_ext
20045LIBS=$ac_check_lib_save_LIBS
20046fi
20047echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20048echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
20049if test $ac_cv_lib_m_pow = yes; then
20050  cat >>confdefs.h <<_ACEOF
20051#define HAVE_LIBM 1
20052_ACEOF
20053
20054  LIBS="-lm $LIBS"
20055
20056else
20057  { { echo "$as_me:$LINENO: error: cannot find pow" >&5
20058echo "$as_me: error: cannot find pow" >&2;}
20059   { (exit 1); exit 1; }; }
20060fi
20061
20062fi
20063done
20064
20065
20066echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
20067echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
20068if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
20069  echo $ECHO_N "(cached) $ECHO_C" >&6
20070else
20071  ac_check_lib_save_LIBS=$LIBS
20072LIBS="-lz  $LIBS"
20073cat >conftest.$ac_ext <<_ACEOF
20074/* confdefs.h.  */
20075_ACEOF
20076cat confdefs.h >>conftest.$ac_ext
20077cat >>conftest.$ac_ext <<_ACEOF
20078/* end confdefs.h.  */
20079
20080/* Override any gcc2 internal prototype to avoid an error.  */
20081#ifdef __cplusplus
20082extern "C"
20083#endif
20084/* We use char because int might match the return type of a gcc2
20085   builtin and then its argument prototype would still apply.  */
20086char zlibVersion ();
20087int
20088main ()
20089{
20090zlibVersion ();
20091  ;
20092  return 0;
20093}
20094_ACEOF
20095rm -f conftest.$ac_objext conftest$ac_exeext
20096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20097  (eval $ac_link) 2>conftest.er1
20098  ac_status=$?
20099  grep -v '^ *+' conftest.er1 >conftest.err
20100  rm -f conftest.er1
20101  cat conftest.err >&5
20102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103  (exit $ac_status); } &&
20104	 { ac_try='test -z "$ac_c_werror_flag"
20105			 || test ! -s conftest.err'
20106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107  (eval $ac_try) 2>&5
20108  ac_status=$?
20109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110  (exit $ac_status); }; } &&
20111	 { ac_try='test -s conftest$ac_exeext'
20112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113  (eval $ac_try) 2>&5
20114  ac_status=$?
20115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116  (exit $ac_status); }; }; then
20117  ac_cv_lib_z_zlibVersion=yes
20118else
20119  echo "$as_me: failed program was:" >&5
20120sed 's/^/| /' conftest.$ac_ext >&5
20121
20122ac_cv_lib_z_zlibVersion=no
20123fi
20124rm -f conftest.err conftest.$ac_objext \
20125      conftest$ac_exeext conftest.$ac_ext
20126LIBS=$ac_check_lib_save_LIBS
20127fi
20128echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
20129echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
20130if test $ac_cv_lib_z_zlibVersion = yes; then
20131  cat >>confdefs.h <<_ACEOF
20132#define HAVE_LIBZ 1
20133_ACEOF
20134
20135  LIBS="-lz $LIBS"
20136
20137else
20138  { { echo "$as_me:$LINENO: error: zlib not installed" >&5
20139echo "$as_me: error: zlib not installed" >&2;}
20140   { (exit 1); exit 1; }; }
20141fi
20142
20143
20144echo "$as_me:$LINENO: checking if assembler code in pnggccrd.c can be compiled" >&5
20145echo $ECHO_N "checking if assembler code in pnggccrd.c can be compiled... $ECHO_C" >&6
20146cat >conftest.$ac_ext <<_ACEOF
20147/* confdefs.h.  */
20148_ACEOF
20149cat confdefs.h >>conftest.$ac_ext
20150cat >>conftest.$ac_ext <<_ACEOF
20151/* end confdefs.h.  */
20152#include "pnggccrd.c"
20153int
20154main ()
20155{
20156return 0;
20157  ;
20158  return 0;
20159}
20160_ACEOF
20161rm -f conftest.$ac_objext
20162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163  (eval $ac_compile) 2>conftest.er1
20164  ac_status=$?
20165  grep -v '^ *+' conftest.er1 >conftest.err
20166  rm -f conftest.er1
20167  cat conftest.err >&5
20168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169  (exit $ac_status); } &&
20170	 { ac_try='test -z "$ac_c_werror_flag"
20171			 || test ! -s conftest.err'
20172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173  (eval $ac_try) 2>&5
20174  ac_status=$?
20175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176  (exit $ac_status); }; } &&
20177	 { ac_try='test -s conftest.$ac_objext'
20178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179  (eval $ac_try) 2>&5
20180  ac_status=$?
20181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182  (exit $ac_status); }; }; then
20183  LIBPNG_DEFINES=
20184else
20185  echo "$as_me: failed program was:" >&5
20186sed 's/^/| /' conftest.$ac_ext >&5
20187
20188LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG\ -DPNG_NO_ASSEMBLER_CODE
20189fi
20190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20191if test "$LIBPNG_DEFINES"; then
20192    echo "$as_me:$LINENO: result: no" >&5
20193echo "${ECHO_T}no" >&6
20194else
20195    echo "$as_me:$LINENO: result: yes" >&5
20196echo "${ECHO_T}yes" >&6
20197    LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
20198fi
20199
20200
20201echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
20202echo $ECHO_N "checking if libraries can be versioned... $ECHO_C" >&6
20203GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
20204if test "$GLD"; then
20205    have_ld_version_script=yes
20206    echo "$as_me:$LINENO: result: yes" >&5
20207echo "${ECHO_T}yes" >&6
20208else
20209    have_ld_version_script=no
20210    echo "$as_me:$LINENO: result: no" >&5
20211echo "${ECHO_T}no" >&6
20212    { echo "$as_me:$LINENO: WARNING: *** You have not enabled versioned symbols." >&5
20213echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
20214fi
20215
20216
20217if test "$have_ld_version_script" = "yes"; then
20218  HAVE_LD_VERSION_SCRIPT_TRUE=
20219  HAVE_LD_VERSION_SCRIPT_FALSE='#'
20220else
20221  HAVE_LD_VERSION_SCRIPT_TRUE='#'
20222  HAVE_LD_VERSION_SCRIPT_FALSE=
20223fi
20224
20225
20226# Substitutions for .in files
20227
20228
20229
20230
20231# Additional arguments (and substitutions)
20232# Allow the pkg-config directory to be set
20233
20234# Check whether --with-pkgconfigdir or --without-pkgconfigdir was given.
20235if test "${with_pkgconfigdir+set}" = set; then
20236  withval="$with_pkgconfigdir"
20237  pkgconfigdir=${withval}
20238else
20239  pkgconfigdir='${libdir}/pkgconfig'
20240fi;
20241
20242
20243{ echo "$as_me:$LINENO: pkgconfig directory is ${pkgconfigdir}" >&5
20244echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
20245
20246# Make the *-config binary config scripts optional
20247
20248# Check whether --with-binconfigs or --without-binconfigs was given.
20249if test "${with_binconfigs+set}" = set; then
20250  withval="$with_binconfigs"
20251  if test "${withval}" = no; then
20252		binconfigs=
20253		{ echo "$as_me:$LINENO: libpng-config scripts will not be built" >&5
20254echo "$as_me: libpng-config scripts will not be built" >&6;}
20255	else
20256		binconfigs='${binconfigs}'
20257	fi
20258else
20259  binconfigs='${binconfigs}'
20260fi;
20261
20262
20263# Allow the old version number library, libpng.so, to be removed from
20264# the build
20265
20266# Check whether --with-libpng-compat or --without-libpng-compat was given.
20267if test "${with_libpng_compat+set}" = set; then
20268  withval="$with_libpng_compat"
20269  if test "${withval}" = no; then
20270		compatlib=
20271		{ echo "$as_me:$LINENO: libpng.so will not be built" >&5
20272echo "$as_me: libpng.so will not be built" >&6;}
20273	else
20274		compatlib=libpng.la
20275	fi
20276else
20277  compatlib=libpng.la
20278fi;
20279
20280
20281# Config files, substituting as above
20282                    ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc.in"
20283
20284          ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
20285
20286
20287cat >confcache <<\_ACEOF
20288# This file is a shell script that caches the results of configure
20289# tests run on this system so they can be shared between configure
20290# scripts and configure runs, see configure's option --config-cache.
20291# It is not useful on other systems.  If it contains results you don't
20292# want to keep, you may remove or edit it.
20293#
20294# config.status only pays attention to the cache file if you give it
20295# the --recheck option to rerun configure.
20296#
20297# `ac_cv_env_foo' variables (set or unset) will be overridden when
20298# loading this file, other *unset* `ac_cv_foo' will be assigned the
20299# following values.
20300
20301_ACEOF
20302
20303# The following way of writing the cache mishandles newlines in values,
20304# but we know of no workaround that is simple, portable, and efficient.
20305# So, don't put newlines in cache variables' values.
20306# Ultrix sh set writes to stderr and can't be redirected directly,
20307# and sets the high bit in the cache file unless we assign to the vars.
20308{
20309  (set) 2>&1 |
20310    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20311    *ac_space=\ *)
20312      # `set' does not quote correctly, so add quotes (double-quote
20313      # substitution turns \\\\ into \\, and sed turns \\ into \).
20314      sed -n \
20315	"s/'/'\\\\''/g;
20316	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20317      ;;
20318    *)
20319      # `set' quotes correctly as required by POSIX, so do not add quotes.
20320      sed -n \
20321	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20322      ;;
20323    esac;
20324} |
20325  sed '
20326     t clear
20327     : clear
20328     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20329     t end
20330     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20331     : end' >>confcache
20332if diff $cache_file confcache >/dev/null 2>&1; then :; else
20333  if test -w $cache_file; then
20334    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20335    cat confcache >$cache_file
20336  else
20337    echo "not updating unwritable cache $cache_file"
20338  fi
20339fi
20340rm -f confcache
20341
20342test "x$prefix" = xNONE && prefix=$ac_default_prefix
20343# Let make expand exec_prefix.
20344test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20345
20346# VPATH may cause trouble with some makes, so we remove $(srcdir),
20347# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20348# trailing colons and then remove the whole line if VPATH becomes empty
20349# (actually we leave an empty line to preserve line numbers).
20350if test "x$srcdir" = x.; then
20351  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20352s/:*\$(srcdir):*/:/;
20353s/:*\${srcdir}:*/:/;
20354s/:*@srcdir@:*/:/;
20355s/^\([^=]*=[	 ]*\):*/\1/;
20356s/:*$//;
20357s/^[^=]*=[	 ]*$//;
20358}'
20359fi
20360
20361DEFS=-DHAVE_CONFIG_H
20362
20363ac_libobjs=
20364ac_ltlibobjs=
20365for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20366  # 1. Remove the extension, and $U if already installed.
20367  ac_i=`echo "$ac_i" |
20368	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20369  # 2. Add them.
20370  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20371  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20372done
20373LIBOBJS=$ac_libobjs
20374
20375LTLIBOBJS=$ac_ltlibobjs
20376
20377
20378if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20379  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20380Usually this means the macro was only invoked conditionally." >&5
20381echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20382Usually this means the macro was only invoked conditionally." >&2;}
20383   { (exit 1); exit 1; }; }
20384fi
20385if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20386  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20387Usually this means the macro was only invoked conditionally." >&5
20388echo "$as_me: error: conditional \"AMDEP\" was never defined.
20389Usually this means the macro was only invoked conditionally." >&2;}
20390   { (exit 1); exit 1; }; }
20391fi
20392if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20393  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20394Usually this means the macro was only invoked conditionally." >&5
20395echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20396Usually this means the macro was only invoked conditionally." >&2;}
20397   { (exit 1); exit 1; }; }
20398fi
20399if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20400  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20401Usually this means the macro was only invoked conditionally." >&5
20402echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20403Usually this means the macro was only invoked conditionally." >&2;}
20404   { (exit 1); exit 1; }; }
20405fi
20406if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20407  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20408Usually this means the macro was only invoked conditionally." >&5
20409echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20410Usually this means the macro was only invoked conditionally." >&2;}
20411   { (exit 1); exit 1; }; }
20412fi
20413
20414: ${CONFIG_STATUS=./config.status}
20415ac_clean_files_save=$ac_clean_files
20416ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20417{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20418echo "$as_me: creating $CONFIG_STATUS" >&6;}
20419cat >$CONFIG_STATUS <<_ACEOF
20420#! $SHELL
20421# Generated by $as_me.
20422# Run this file to recreate the current configuration.
20423# Compiler output produced by configure, useful for debugging
20424# configure, is in config.log if it exists.
20425
20426debug=false
20427ac_cs_recheck=false
20428ac_cs_silent=false
20429SHELL=\${CONFIG_SHELL-$SHELL}
20430_ACEOF
20431
20432cat >>$CONFIG_STATUS <<\_ACEOF
20433## --------------------- ##
20434## M4sh Initialization.  ##
20435## --------------------- ##
20436
20437# Be Bourne compatible
20438if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20439  emulate sh
20440  NULLCMD=:
20441  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20442  # is contrary to our usage.  Disable this feature.
20443  alias -g '${1+"$@"}'='"$@"'
20444elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20445  set -o posix
20446fi
20447DUALCASE=1; export DUALCASE # for MKS sh
20448
20449# Support unset when possible.
20450if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20451  as_unset=unset
20452else
20453  as_unset=false
20454fi
20455
20456
20457# Work around bugs in pre-3.0 UWIN ksh.
20458$as_unset ENV MAIL MAILPATH
20459PS1='$ '
20460PS2='> '
20461PS4='+ '
20462
20463# NLS nuisances.
20464for as_var in \
20465  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20466  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20467  LC_TELEPHONE LC_TIME
20468do
20469  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20470    eval $as_var=C; export $as_var
20471  else
20472    $as_unset $as_var
20473  fi
20474done
20475
20476# Required to use basename.
20477if expr a : '\(a\)' >/dev/null 2>&1; then
20478  as_expr=expr
20479else
20480  as_expr=false
20481fi
20482
20483if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20484  as_basename=basename
20485else
20486  as_basename=false
20487fi
20488
20489
20490# Name of the executable.
20491as_me=`$as_basename "$0" ||
20492$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20493	 X"$0" : 'X\(//\)$' \| \
20494	 X"$0" : 'X\(/\)$' \| \
20495	 .     : '\(.\)' 2>/dev/null ||
20496echo X/"$0" |
20497    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20498  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20499  	  /^X\/\(\/\).*/{ s//\1/; q; }
20500  	  s/.*/./; q'`
20501
20502
20503# PATH needs CR, and LINENO needs CR and PATH.
20504# Avoid depending upon Character Ranges.
20505as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20506as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20507as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20508as_cr_digits='0123456789'
20509as_cr_alnum=$as_cr_Letters$as_cr_digits
20510
20511# The user is always right.
20512if test "${PATH_SEPARATOR+set}" != set; then
20513  echo "#! /bin/sh" >conf$$.sh
20514  echo  "exit 0"   >>conf$$.sh
20515  chmod +x conf$$.sh
20516  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20517    PATH_SEPARATOR=';'
20518  else
20519    PATH_SEPARATOR=:
20520  fi
20521  rm -f conf$$.sh
20522fi
20523
20524
20525  as_lineno_1=$LINENO
20526  as_lineno_2=$LINENO
20527  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20528  test "x$as_lineno_1" != "x$as_lineno_2" &&
20529  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20530  # Find who we are.  Look in the path if we contain no path at all
20531  # relative or not.
20532  case $0 in
20533    *[\\/]* ) as_myself=$0 ;;
20534    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20535for as_dir in $PATH
20536do
20537  IFS=$as_save_IFS
20538  test -z "$as_dir" && as_dir=.
20539  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20540done
20541
20542       ;;
20543  esac
20544  # We did not find ourselves, most probably we were run as `sh COMMAND'
20545  # in which case we are not to be found in the path.
20546  if test "x$as_myself" = x; then
20547    as_myself=$0
20548  fi
20549  if test ! -f "$as_myself"; then
20550    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20551echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20552   { (exit 1); exit 1; }; }
20553  fi
20554  case $CONFIG_SHELL in
20555  '')
20556    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20557for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20558do
20559  IFS=$as_save_IFS
20560  test -z "$as_dir" && as_dir=.
20561  for as_base in sh bash ksh sh5; do
20562	 case $as_dir in
20563	 /*)
20564	   if ("$as_dir/$as_base" -c '
20565  as_lineno_1=$LINENO
20566  as_lineno_2=$LINENO
20567  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20568  test "x$as_lineno_1" != "x$as_lineno_2" &&
20569  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20570	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20571	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20572	     CONFIG_SHELL=$as_dir/$as_base
20573	     export CONFIG_SHELL
20574	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20575	   fi;;
20576	 esac
20577       done
20578done
20579;;
20580  esac
20581
20582  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20583  # uniformly replaced by the line number.  The first 'sed' inserts a
20584  # line-number line before each line; the second 'sed' does the real
20585  # work.  The second script uses 'N' to pair each line-number line
20586  # with the numbered line, and appends trailing '-' during
20587  # substitution so that $LINENO is not a special case at line end.
20588  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20589  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20590  sed '=' <$as_myself |
20591    sed '
20592      N
20593      s,$,-,
20594      : loop
20595      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20596      t loop
20597      s,-$,,
20598      s,^['$as_cr_digits']*\n,,
20599    ' >$as_me.lineno &&
20600  chmod +x $as_me.lineno ||
20601    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20602echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20603   { (exit 1); exit 1; }; }
20604
20605  # Don't try to exec as it changes $[0], causing all sort of problems
20606  # (the dirname of $[0] is not the place where we might find the
20607  # original and so on.  Autoconf is especially sensible to this).
20608  . ./$as_me.lineno
20609  # Exit status is that of the last command.
20610  exit
20611}
20612
20613
20614case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20615  *c*,-n*) ECHO_N= ECHO_C='
20616' ECHO_T='	' ;;
20617  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20618  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20619esac
20620
20621if expr a : '\(a\)' >/dev/null 2>&1; then
20622  as_expr=expr
20623else
20624  as_expr=false
20625fi
20626
20627rm -f conf$$ conf$$.exe conf$$.file
20628echo >conf$$.file
20629if ln -s conf$$.file conf$$ 2>/dev/null; then
20630  # We could just check for DJGPP; but this test a) works b) is more generic
20631  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20632  if test -f conf$$.exe; then
20633    # Don't use ln at all; we don't have any links
20634    as_ln_s='cp -p'
20635  else
20636    as_ln_s='ln -s'
20637  fi
20638elif ln conf$$.file conf$$ 2>/dev/null; then
20639  as_ln_s=ln
20640else
20641  as_ln_s='cp -p'
20642fi
20643rm -f conf$$ conf$$.exe conf$$.file
20644
20645if mkdir -p . 2>/dev/null; then
20646  as_mkdir_p=:
20647else
20648  test -d ./-p && rmdir ./-p
20649  as_mkdir_p=false
20650fi
20651
20652as_executable_p="test -f"
20653
20654# Sed expression to map a string onto a valid CPP name.
20655as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20656
20657# Sed expression to map a string onto a valid variable name.
20658as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20659
20660
20661# IFS
20662# We need space, tab and new line, in precisely that order.
20663as_nl='
20664'
20665IFS=" 	$as_nl"
20666
20667# CDPATH.
20668$as_unset CDPATH
20669
20670exec 6>&1
20671
20672# Open the log real soon, to keep \$[0] and so on meaningful, and to
20673# report actual input values of CONFIG_FILES etc. instead of their
20674# values after options handling.  Logging --version etc. is OK.
20675exec 5>>config.log
20676{
20677  echo
20678  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20679## Running $as_me. ##
20680_ASBOX
20681} >&5
20682cat >&5 <<_CSEOF
20683
20684This file was extended by libpng $as_me 1.2.12, which was
20685generated by GNU Autoconf 2.59.  Invocation command line was
20686
20687  CONFIG_FILES    = $CONFIG_FILES
20688  CONFIG_HEADERS  = $CONFIG_HEADERS
20689  CONFIG_LINKS    = $CONFIG_LINKS
20690  CONFIG_COMMANDS = $CONFIG_COMMANDS
20691  $ $0 $@
20692
20693_CSEOF
20694echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20695echo >&5
20696_ACEOF
20697
20698# Files that config.status was made for.
20699if test -n "$ac_config_files"; then
20700  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20701fi
20702
20703if test -n "$ac_config_headers"; then
20704  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20705fi
20706
20707if test -n "$ac_config_links"; then
20708  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20709fi
20710
20711if test -n "$ac_config_commands"; then
20712  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20713fi
20714
20715cat >>$CONFIG_STATUS <<\_ACEOF
20716
20717ac_cs_usage="\
20718\`$as_me' instantiates files from templates according to the
20719current configuration.
20720
20721Usage: $0 [OPTIONS] [FILE]...
20722
20723  -h, --help       print this help, then exit
20724  -V, --version    print version number, then exit
20725  -q, --quiet      do not print progress messages
20726  -d, --debug      don't remove temporary files
20727      --recheck    update $as_me by reconfiguring in the same conditions
20728  --file=FILE[:TEMPLATE]
20729		   instantiate the configuration file FILE
20730  --header=FILE[:TEMPLATE]
20731		   instantiate the configuration header FILE
20732
20733Configuration files:
20734$config_files
20735
20736Configuration headers:
20737$config_headers
20738
20739Configuration commands:
20740$config_commands
20741
20742Report bugs to <bug-autoconf@gnu.org>."
20743_ACEOF
20744
20745cat >>$CONFIG_STATUS <<_ACEOF
20746ac_cs_version="\\
20747libpng config.status 1.2.12
20748configured by $0, generated by GNU Autoconf 2.59,
20749  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20750
20751Copyright (C) 2003 Free Software Foundation, Inc.
20752This config.status script is free software; the Free Software Foundation
20753gives unlimited permission to copy, distribute and modify it."
20754srcdir=$srcdir
20755INSTALL="$INSTALL"
20756_ACEOF
20757
20758cat >>$CONFIG_STATUS <<\_ACEOF
20759# If no file are specified by the user, then we need to provide default
20760# value.  By we need to know if files were specified by the user.
20761ac_need_defaults=:
20762while test $# != 0
20763do
20764  case $1 in
20765  --*=*)
20766    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20767    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20768    ac_shift=:
20769    ;;
20770  -*)
20771    ac_option=$1
20772    ac_optarg=$2
20773    ac_shift=shift
20774    ;;
20775  *) # This is not an option, so the user has probably given explicit
20776     # arguments.
20777     ac_option=$1
20778     ac_need_defaults=false;;
20779  esac
20780
20781  case $ac_option in
20782  # Handling of the options.
20783_ACEOF
20784cat >>$CONFIG_STATUS <<\_ACEOF
20785  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20786    ac_cs_recheck=: ;;
20787  --version | --vers* | -V )
20788    echo "$ac_cs_version"; exit 0 ;;
20789  --he | --h)
20790    # Conflict between --help and --header
20791    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20792Try \`$0 --help' for more information." >&5
20793echo "$as_me: error: ambiguous option: $1
20794Try \`$0 --help' for more information." >&2;}
20795   { (exit 1); exit 1; }; };;
20796  --help | --hel | -h )
20797    echo "$ac_cs_usage"; exit 0 ;;
20798  --debug | --d* | -d )
20799    debug=: ;;
20800  --file | --fil | --fi | --f )
20801    $ac_shift
20802    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20803    ac_need_defaults=false;;
20804  --header | --heade | --head | --hea )
20805    $ac_shift
20806    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20807    ac_need_defaults=false;;
20808  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20809  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20810    ac_cs_silent=: ;;
20811
20812  # This is an error.
20813  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20814Try \`$0 --help' for more information." >&5
20815echo "$as_me: error: unrecognized option: $1
20816Try \`$0 --help' for more information." >&2;}
20817   { (exit 1); exit 1; }; } ;;
20818
20819  *) ac_config_targets="$ac_config_targets $1" ;;
20820
20821  esac
20822  shift
20823done
20824
20825ac_configure_extra_args=
20826
20827if $ac_cs_silent; then
20828  exec 6>/dev/null
20829  ac_configure_extra_args="$ac_configure_extra_args --silent"
20830fi
20831
20832_ACEOF
20833cat >>$CONFIG_STATUS <<_ACEOF
20834if \$ac_cs_recheck; then
20835  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20836  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20837fi
20838
20839_ACEOF
20840
20841cat >>$CONFIG_STATUS <<_ACEOF
20842#
20843# INIT-COMMANDS section.
20844#
20845
20846AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20847
20848_ACEOF
20849
20850
20851
20852cat >>$CONFIG_STATUS <<\_ACEOF
20853for ac_config_target in $ac_config_targets
20854do
20855  case "$ac_config_target" in
20856  # Handling of arguments.
20857  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20858  "libpng.pc" ) CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc.in" ;;
20859  "libpng-config" ) CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
20860  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20861  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20862  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20863echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20864   { (exit 1); exit 1; }; };;
20865  esac
20866done
20867
20868# If the user did not use the arguments to specify the items to instantiate,
20869# then the envvar interface is used.  Set only those that are not.
20870# We use the long form for the default assignment because of an extremely
20871# bizarre bug on SunOS 4.1.3.
20872if $ac_need_defaults; then
20873  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20874  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20875  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20876fi
20877
20878# Have a temporary directory for convenience.  Make it in the build tree
20879# simply because there is no reason to put it here, and in addition,
20880# creating and moving files from /tmp can sometimes cause problems.
20881# Create a temporary directory, and hook for its removal unless debugging.
20882$debug ||
20883{
20884  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20885  trap '{ (exit 1); exit 1; }' 1 2 13 15
20886}
20887
20888# Create a (secure) tmp directory for tmp files.
20889
20890{
20891  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20892  test -n "$tmp" && test -d "$tmp"
20893}  ||
20894{
20895  tmp=./confstat$$-$RANDOM
20896  (umask 077 && mkdir $tmp)
20897} ||
20898{
20899   echo "$me: cannot create a temporary directory in ." >&2
20900   { (exit 1); exit 1; }
20901}
20902
20903_ACEOF
20904
20905cat >>$CONFIG_STATUS <<_ACEOF
20906
20907#
20908# CONFIG_FILES section.
20909#
20910
20911# No need to generate the scripts if there are no CONFIG_FILES.
20912# This happens for instance when ./config.status config.h
20913if test -n "\$CONFIG_FILES"; then
20914  # Protect against being on the right side of a sed subst in config.status.
20915  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20916   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20917s,@SHELL@,$SHELL,;t t
20918s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20919s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20920s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20921s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20922s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20923s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20924s,@exec_prefix@,$exec_prefix,;t t
20925s,@prefix@,$prefix,;t t
20926s,@program_transform_name@,$program_transform_name,;t t
20927s,@bindir@,$bindir,;t t
20928s,@sbindir@,$sbindir,;t t
20929s,@libexecdir@,$libexecdir,;t t
20930s,@datadir@,$datadir,;t t
20931s,@sysconfdir@,$sysconfdir,;t t
20932s,@sharedstatedir@,$sharedstatedir,;t t
20933s,@localstatedir@,$localstatedir,;t t
20934s,@libdir@,$libdir,;t t
20935s,@includedir@,$includedir,;t t
20936s,@oldincludedir@,$oldincludedir,;t t
20937s,@infodir@,$infodir,;t t
20938s,@mandir@,$mandir,;t t
20939s,@build_alias@,$build_alias,;t t
20940s,@host_alias@,$host_alias,;t t
20941s,@target_alias@,$target_alias,;t t
20942s,@DEFS@,$DEFS,;t t
20943s,@ECHO_C@,$ECHO_C,;t t
20944s,@ECHO_N@,$ECHO_N,;t t
20945s,@ECHO_T@,$ECHO_T,;t t
20946s,@LIBS@,$LIBS,;t t
20947s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20948s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20949s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20950s,@CYGPATH_W@,$CYGPATH_W,;t t
20951s,@PACKAGE@,$PACKAGE,;t t
20952s,@VERSION@,$VERSION,;t t
20953s,@ACLOCAL@,$ACLOCAL,;t t
20954s,@AUTOCONF@,$AUTOCONF,;t t
20955s,@AUTOMAKE@,$AUTOMAKE,;t t
20956s,@AUTOHEADER@,$AUTOHEADER,;t t
20957s,@MAKEINFO@,$MAKEINFO,;t t
20958s,@install_sh@,$install_sh,;t t
20959s,@STRIP@,$STRIP,;t t
20960s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20961s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20962s,@mkdir_p@,$mkdir_p,;t t
20963s,@AWK@,$AWK,;t t
20964s,@SET_MAKE@,$SET_MAKE,;t t
20965s,@am__leading_dot@,$am__leading_dot,;t t
20966s,@AMTAR@,$AMTAR,;t t
20967s,@am__tar@,$am__tar,;t t
20968s,@am__untar@,$am__untar,;t t
20969s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20970s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20971s,@MAINT@,$MAINT,;t t
20972s,@CC@,$CC,;t t
20973s,@CFLAGS@,$CFLAGS,;t t
20974s,@LDFLAGS@,$LDFLAGS,;t t
20975s,@CPPFLAGS@,$CPPFLAGS,;t t
20976s,@ac_ct_CC@,$ac_ct_CC,;t t
20977s,@EXEEXT@,$EXEEXT,;t t
20978s,@OBJEXT@,$OBJEXT,;t t
20979s,@DEPDIR@,$DEPDIR,;t t
20980s,@am__include@,$am__include,;t t
20981s,@am__quote@,$am__quote,;t t
20982s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20983s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20984s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20985s,@CCDEPMODE@,$CCDEPMODE,;t t
20986s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20987s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20988s,@build@,$build,;t t
20989s,@build_cpu@,$build_cpu,;t t
20990s,@build_vendor@,$build_vendor,;t t
20991s,@build_os@,$build_os,;t t
20992s,@host@,$host,;t t
20993s,@host_cpu@,$host_cpu,;t t
20994s,@host_vendor@,$host_vendor,;t t
20995s,@host_os@,$host_os,;t t
20996s,@EGREP@,$EGREP,;t t
20997s,@CPP@,$CPP,;t t
20998s,@SED@,$SED,;t t
20999s,@ac_ct_SED@,$ac_ct_SED,;t t
21000s,@LN_S@,$LN_S,;t t
21001s,@ECHO@,$ECHO,;t t
21002s,@AR@,$AR,;t t
21003s,@ac_ct_AR@,$ac_ct_AR,;t t
21004s,@RANLIB@,$RANLIB,;t t
21005s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21006s,@CXX@,$CXX,;t t
21007s,@CXXFLAGS@,$CXXFLAGS,;t t
21008s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21009s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21010s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21011s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21012s,@CXXCPP@,$CXXCPP,;t t
21013s,@F77@,$F77,;t t
21014s,@FFLAGS@,$FFLAGS,;t t
21015s,@ac_ct_F77@,$ac_ct_F77,;t t
21016s,@LIBTOOL@,$LIBTOOL,;t t
21017s,@LIBOBJS@,$LIBOBJS,;t t
21018s,@POW_LIB@,$POW_LIB,;t t
21019s,@LIBPNG_DEFINES@,$LIBPNG_DEFINES,;t t
21020s,@HAVE_LD_VERSION_SCRIPT_TRUE@,$HAVE_LD_VERSION_SCRIPT_TRUE,;t t
21021s,@HAVE_LD_VERSION_SCRIPT_FALSE@,$HAVE_LD_VERSION_SCRIPT_FALSE,;t t
21022s,@PNGLIB_VERSION@,$PNGLIB_VERSION,;t t
21023s,@PNGLIB_MAJOR@,$PNGLIB_MAJOR,;t t
21024s,@PNGLIB_MINOR@,$PNGLIB_MINOR,;t t
21025s,@pkgconfigdir@,$pkgconfigdir,;t t
21026s,@binconfigs@,$binconfigs,;t t
21027s,@compatlib@,$compatlib,;t t
21028s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21029CEOF
21030
21031_ACEOF
21032
21033  cat >>$CONFIG_STATUS <<\_ACEOF
21034  # Split the substitutions into bite-sized pieces for seds with
21035  # small command number limits, like on Digital OSF/1 and HP-UX.
21036  ac_max_sed_lines=48
21037  ac_sed_frag=1 # Number of current file.
21038  ac_beg=1 # First line for current file.
21039  ac_end=$ac_max_sed_lines # Line after last line for current file.
21040  ac_more_lines=:
21041  ac_sed_cmds=
21042  while $ac_more_lines; do
21043    if test $ac_beg -gt 1; then
21044      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21045    else
21046      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21047    fi
21048    if test ! -s $tmp/subs.frag; then
21049      ac_more_lines=false
21050    else
21051      # The purpose of the label and of the branching condition is to
21052      # speed up the sed processing (if there are no `@' at all, there
21053      # is no need to browse any of the substitutions).
21054      # These are the two extra sed commands mentioned above.
21055      (echo ':t
21056  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21057      if test -z "$ac_sed_cmds"; then
21058	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21059      else
21060	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21061      fi
21062      ac_sed_frag=`expr $ac_sed_frag + 1`
21063      ac_beg=$ac_end
21064      ac_end=`expr $ac_end + $ac_max_sed_lines`
21065    fi
21066  done
21067  if test -z "$ac_sed_cmds"; then
21068    ac_sed_cmds=cat
21069  fi
21070fi # test -n "$CONFIG_FILES"
21071
21072_ACEOF
21073cat >>$CONFIG_STATUS <<\_ACEOF
21074for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21075  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21076  case $ac_file in
21077  - | *:- | *:-:* ) # input from stdin
21078	cat >$tmp/stdin
21079	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21080	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21081  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21082	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21083  * )   ac_file_in=$ac_file.in ;;
21084  esac
21085
21086  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21087  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21088$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21089	 X"$ac_file" : 'X\(//\)[^/]' \| \
21090	 X"$ac_file" : 'X\(//\)$' \| \
21091	 X"$ac_file" : 'X\(/\)' \| \
21092	 .     : '\(.\)' 2>/dev/null ||
21093echo X"$ac_file" |
21094    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21095  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21096  	  /^X\(\/\/\)$/{ s//\1/; q; }
21097  	  /^X\(\/\).*/{ s//\1/; q; }
21098  	  s/.*/./; q'`
21099  { if $as_mkdir_p; then
21100    mkdir -p "$ac_dir"
21101  else
21102    as_dir="$ac_dir"
21103    as_dirs=
21104    while test ! -d "$as_dir"; do
21105      as_dirs="$as_dir $as_dirs"
21106      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21108	 X"$as_dir" : 'X\(//\)[^/]' \| \
21109	 X"$as_dir" : 'X\(//\)$' \| \
21110	 X"$as_dir" : 'X\(/\)' \| \
21111	 .     : '\(.\)' 2>/dev/null ||
21112echo X"$as_dir" |
21113    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21114  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21115  	  /^X\(\/\/\)$/{ s//\1/; q; }
21116  	  /^X\(\/\).*/{ s//\1/; q; }
21117  	  s/.*/./; q'`
21118    done
21119    test ! -n "$as_dirs" || mkdir $as_dirs
21120  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21121echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21122   { (exit 1); exit 1; }; }; }
21123
21124  ac_builddir=.
21125
21126if test "$ac_dir" != .; then
21127  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21128  # A "../" for each directory in $ac_dir_suffix.
21129  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21130else
21131  ac_dir_suffix= ac_top_builddir=
21132fi
21133
21134case $srcdir in
21135  .)  # No --srcdir option.  We are building in place.
21136    ac_srcdir=.
21137    if test -z "$ac_top_builddir"; then
21138       ac_top_srcdir=.
21139    else
21140       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21141    fi ;;
21142  [\\/]* | ?:[\\/]* )  # Absolute path.
21143    ac_srcdir=$srcdir$ac_dir_suffix;
21144    ac_top_srcdir=$srcdir ;;
21145  *) # Relative path.
21146    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21147    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21148esac
21149
21150# Do not use `cd foo && pwd` to compute absolute paths, because
21151# the directories may not exist.
21152case `pwd` in
21153.) ac_abs_builddir="$ac_dir";;
21154*)
21155  case "$ac_dir" in
21156  .) ac_abs_builddir=`pwd`;;
21157  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21158  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21159  esac;;
21160esac
21161case $ac_abs_builddir in
21162.) ac_abs_top_builddir=${ac_top_builddir}.;;
21163*)
21164  case ${ac_top_builddir}. in
21165  .) ac_abs_top_builddir=$ac_abs_builddir;;
21166  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21167  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21168  esac;;
21169esac
21170case $ac_abs_builddir in
21171.) ac_abs_srcdir=$ac_srcdir;;
21172*)
21173  case $ac_srcdir in
21174  .) ac_abs_srcdir=$ac_abs_builddir;;
21175  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21176  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21177  esac;;
21178esac
21179case $ac_abs_builddir in
21180.) ac_abs_top_srcdir=$ac_top_srcdir;;
21181*)
21182  case $ac_top_srcdir in
21183  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21184  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21185  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21186  esac;;
21187esac
21188
21189
21190  case $INSTALL in
21191  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21192  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21193  esac
21194
21195  if test x"$ac_file" != x-; then
21196    { echo "$as_me:$LINENO: creating $ac_file" >&5
21197echo "$as_me: creating $ac_file" >&6;}
21198    rm -f "$ac_file"
21199  fi
21200  # Let's still pretend it is `configure' which instantiates (i.e., don't
21201  # use $as_me), people would be surprised to read:
21202  #    /* config.h.  Generated by config.status.  */
21203  if test x"$ac_file" = x-; then
21204    configure_input=
21205  else
21206    configure_input="$ac_file.  "
21207  fi
21208  configure_input=$configure_input"Generated from `echo $ac_file_in |
21209				     sed 's,.*/,,'` by configure."
21210
21211  # First look for the input files in the build tree, otherwise in the
21212  # src tree.
21213  ac_file_inputs=`IFS=:
21214    for f in $ac_file_in; do
21215      case $f in
21216      -) echo $tmp/stdin ;;
21217      [\\/$]*)
21218	 # Absolute (can't be DOS-style, as IFS=:)
21219	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21220echo "$as_me: error: cannot find input file: $f" >&2;}
21221   { (exit 1); exit 1; }; }
21222	 echo "$f";;
21223      *) # Relative
21224	 if test -f "$f"; then
21225	   # Build tree
21226	   echo "$f"
21227	 elif test -f "$srcdir/$f"; then
21228	   # Source tree
21229	   echo "$srcdir/$f"
21230	 else
21231	   # /dev/null tree
21232	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21233echo "$as_me: error: cannot find input file: $f" >&2;}
21234   { (exit 1); exit 1; }; }
21235	 fi;;
21236      esac
21237    done` || { (exit 1); exit 1; }
21238_ACEOF
21239cat >>$CONFIG_STATUS <<_ACEOF
21240  sed "$ac_vpsub
21241$extrasub
21242_ACEOF
21243cat >>$CONFIG_STATUS <<\_ACEOF
21244:t
21245/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21246s,@configure_input@,$configure_input,;t t
21247s,@srcdir@,$ac_srcdir,;t t
21248s,@abs_srcdir@,$ac_abs_srcdir,;t t
21249s,@top_srcdir@,$ac_top_srcdir,;t t
21250s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21251s,@builddir@,$ac_builddir,;t t
21252s,@abs_builddir@,$ac_abs_builddir,;t t
21253s,@top_builddir@,$ac_top_builddir,;t t
21254s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21255s,@INSTALL@,$ac_INSTALL,;t t
21256" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21257  rm -f $tmp/stdin
21258  if test x"$ac_file" != x-; then
21259    mv $tmp/out $ac_file
21260  else
21261    cat $tmp/out
21262    rm -f $tmp/out
21263  fi
21264
21265  # Run the commands associated with the file.
21266  case $ac_file in
21267    libpng-config ) chmod +x libpng-config ;;
21268  esac
21269done
21270_ACEOF
21271cat >>$CONFIG_STATUS <<\_ACEOF
21272
21273#
21274# CONFIG_HEADER section.
21275#
21276
21277# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21278# NAME is the cpp macro being defined and VALUE is the value it is being given.
21279#
21280# ac_d sets the value in "#define NAME VALUE" lines.
21281ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21282ac_dB='[	 ].*$,\1#\2'
21283ac_dC=' '
21284ac_dD=',;t'
21285# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21286ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21287ac_uB='$,\1#\2define\3'
21288ac_uC=' '
21289ac_uD=',;t'
21290
21291for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21292  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21293  case $ac_file in
21294  - | *:- | *:-:* ) # input from stdin
21295	cat >$tmp/stdin
21296	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21297	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21298  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21299	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21300  * )   ac_file_in=$ac_file.in ;;
21301  esac
21302
21303  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21304echo "$as_me: creating $ac_file" >&6;}
21305
21306  # First look for the input files in the build tree, otherwise in the
21307  # src tree.
21308  ac_file_inputs=`IFS=:
21309    for f in $ac_file_in; do
21310      case $f in
21311      -) echo $tmp/stdin ;;
21312      [\\/$]*)
21313	 # Absolute (can't be DOS-style, as IFS=:)
21314	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21315echo "$as_me: error: cannot find input file: $f" >&2;}
21316   { (exit 1); exit 1; }; }
21317	 # Do quote $f, to prevent DOS paths from being IFS'd.
21318	 echo "$f";;
21319      *) # Relative
21320	 if test -f "$f"; then
21321	   # Build tree
21322	   echo "$f"
21323	 elif test -f "$srcdir/$f"; then
21324	   # Source tree
21325	   echo "$srcdir/$f"
21326	 else
21327	   # /dev/null tree
21328	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21329echo "$as_me: error: cannot find input file: $f" >&2;}
21330   { (exit 1); exit 1; }; }
21331	 fi;;
21332      esac
21333    done` || { (exit 1); exit 1; }
21334  # Remove the trailing spaces.
21335  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21336
21337_ACEOF
21338
21339# Transform confdefs.h into two sed scripts, `conftest.defines' and
21340# `conftest.undefs', that substitutes the proper values into
21341# config.h.in to produce config.h.  The first handles `#define'
21342# templates, and the second `#undef' templates.
21343# And first: Protect against being on the right side of a sed subst in
21344# config.status.  Protect against being in an unquoted here document
21345# in config.status.
21346rm -f conftest.defines conftest.undefs
21347# Using a here document instead of a string reduces the quoting nightmare.
21348# Putting comments in sed scripts is not portable.
21349#
21350# `end' is used to avoid that the second main sed command (meant for
21351# 0-ary CPP macros) applies to n-ary macro definitions.
21352# See the Autoconf documentation for `clear'.
21353cat >confdef2sed.sed <<\_ACEOF
21354s/[\\&,]/\\&/g
21355s,[\\$`],\\&,g
21356t clear
21357: clear
21358s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21359t end
21360s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21361: end
21362_ACEOF
21363# If some macros were called several times there might be several times
21364# the same #defines, which is useless.  Nevertheless, we may not want to
21365# sort them, since we want the *last* AC-DEFINE to be honored.
21366uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21367sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21368rm -f confdef2sed.sed
21369
21370# This sed command replaces #undef with comments.  This is necessary, for
21371# example, in the case of _POSIX_SOURCE, which is predefined and required
21372# on some systems where configure will not decide to define it.
21373cat >>conftest.undefs <<\_ACEOF
21374s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21375_ACEOF
21376
21377# Break up conftest.defines because some shells have a limit on the size
21378# of here documents, and old seds have small limits too (100 cmds).
21379echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21380echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21381echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21382echo '  :' >>$CONFIG_STATUS
21383rm -f conftest.tail
21384while grep . conftest.defines >/dev/null
21385do
21386  # Write a limited-size here document to $tmp/defines.sed.
21387  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21388  # Speed up: don't consider the non `#define' lines.
21389  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21390  # Work around the forget-to-reset-the-flag bug.
21391  echo 't clr' >>$CONFIG_STATUS
21392  echo ': clr' >>$CONFIG_STATUS
21393  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21394  echo 'CEOF
21395  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21396  rm -f $tmp/in
21397  mv $tmp/out $tmp/in
21398' >>$CONFIG_STATUS
21399  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21400  rm -f conftest.defines
21401  mv conftest.tail conftest.defines
21402done
21403rm -f conftest.defines
21404echo '  fi # grep' >>$CONFIG_STATUS
21405echo >>$CONFIG_STATUS
21406
21407# Break up conftest.undefs because some shells have a limit on the size
21408# of here documents, and old seds have small limits too (100 cmds).
21409echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21410rm -f conftest.tail
21411while grep . conftest.undefs >/dev/null
21412do
21413  # Write a limited-size here document to $tmp/undefs.sed.
21414  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21415  # Speed up: don't consider the non `#undef'
21416  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21417  # Work around the forget-to-reset-the-flag bug.
21418  echo 't clr' >>$CONFIG_STATUS
21419  echo ': clr' >>$CONFIG_STATUS
21420  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21421  echo 'CEOF
21422  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21423  rm -f $tmp/in
21424  mv $tmp/out $tmp/in
21425' >>$CONFIG_STATUS
21426  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21427  rm -f conftest.undefs
21428  mv conftest.tail conftest.undefs
21429done
21430rm -f conftest.undefs
21431
21432cat >>$CONFIG_STATUS <<\_ACEOF
21433  # Let's still pretend it is `configure' which instantiates (i.e., don't
21434  # use $as_me), people would be surprised to read:
21435  #    /* config.h.  Generated by config.status.  */
21436  if test x"$ac_file" = x-; then
21437    echo "/* Generated by configure.  */" >$tmp/config.h
21438  else
21439    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21440  fi
21441  cat $tmp/in >>$tmp/config.h
21442  rm -f $tmp/in
21443  if test x"$ac_file" != x-; then
21444    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21445      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21446echo "$as_me: $ac_file is unchanged" >&6;}
21447    else
21448      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21449$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21450	 X"$ac_file" : 'X\(//\)[^/]' \| \
21451	 X"$ac_file" : 'X\(//\)$' \| \
21452	 X"$ac_file" : 'X\(/\)' \| \
21453	 .     : '\(.\)' 2>/dev/null ||
21454echo X"$ac_file" |
21455    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21456  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21457  	  /^X\(\/\/\)$/{ s//\1/; q; }
21458  	  /^X\(\/\).*/{ s//\1/; q; }
21459  	  s/.*/./; q'`
21460      { if $as_mkdir_p; then
21461    mkdir -p "$ac_dir"
21462  else
21463    as_dir="$ac_dir"
21464    as_dirs=
21465    while test ! -d "$as_dir"; do
21466      as_dirs="$as_dir $as_dirs"
21467      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21469	 X"$as_dir" : 'X\(//\)[^/]' \| \
21470	 X"$as_dir" : 'X\(//\)$' \| \
21471	 X"$as_dir" : 'X\(/\)' \| \
21472	 .     : '\(.\)' 2>/dev/null ||
21473echo X"$as_dir" |
21474    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21475  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21476  	  /^X\(\/\/\)$/{ s//\1/; q; }
21477  	  /^X\(\/\).*/{ s//\1/; q; }
21478  	  s/.*/./; q'`
21479    done
21480    test ! -n "$as_dirs" || mkdir $as_dirs
21481  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21482echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21483   { (exit 1); exit 1; }; }; }
21484
21485      rm -f $ac_file
21486      mv $tmp/config.h $ac_file
21487    fi
21488  else
21489    cat $tmp/config.h
21490    rm -f $tmp/config.h
21491  fi
21492# Compute $ac_file's index in $config_headers.
21493_am_stamp_count=1
21494for _am_header in $config_headers :; do
21495  case $_am_header in
21496    $ac_file | $ac_file:* )
21497      break ;;
21498    * )
21499      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21500  esac
21501done
21502echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21503$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21504	 X$ac_file : 'X\(//\)[^/]' \| \
21505	 X$ac_file : 'X\(//\)$' \| \
21506	 X$ac_file : 'X\(/\)' \| \
21507	 .     : '\(.\)' 2>/dev/null ||
21508echo X$ac_file |
21509    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21510  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21511  	  /^X\(\/\/\)$/{ s//\1/; q; }
21512  	  /^X\(\/\).*/{ s//\1/; q; }
21513  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21514done
21515_ACEOF
21516cat >>$CONFIG_STATUS <<\_ACEOF
21517
21518#
21519# CONFIG_COMMANDS section.
21520#
21521for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21522  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21523  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21524  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21525$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21526	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21527	 X"$ac_dest" : 'X\(//\)$' \| \
21528	 X"$ac_dest" : 'X\(/\)' \| \
21529	 .     : '\(.\)' 2>/dev/null ||
21530echo X"$ac_dest" |
21531    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21532  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21533  	  /^X\(\/\/\)$/{ s//\1/; q; }
21534  	  /^X\(\/\).*/{ s//\1/; q; }
21535  	  s/.*/./; q'`
21536  { if $as_mkdir_p; then
21537    mkdir -p "$ac_dir"
21538  else
21539    as_dir="$ac_dir"
21540    as_dirs=
21541    while test ! -d "$as_dir"; do
21542      as_dirs="$as_dir $as_dirs"
21543      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21544$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21545	 X"$as_dir" : 'X\(//\)[^/]' \| \
21546	 X"$as_dir" : 'X\(//\)$' \| \
21547	 X"$as_dir" : 'X\(/\)' \| \
21548	 .     : '\(.\)' 2>/dev/null ||
21549echo X"$as_dir" |
21550    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21551  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21552  	  /^X\(\/\/\)$/{ s//\1/; q; }
21553  	  /^X\(\/\).*/{ s//\1/; q; }
21554  	  s/.*/./; q'`
21555    done
21556    test ! -n "$as_dirs" || mkdir $as_dirs
21557  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21558echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21559   { (exit 1); exit 1; }; }; }
21560
21561  ac_builddir=.
21562
21563if test "$ac_dir" != .; then
21564  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21565  # A "../" for each directory in $ac_dir_suffix.
21566  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21567else
21568  ac_dir_suffix= ac_top_builddir=
21569fi
21570
21571case $srcdir in
21572  .)  # No --srcdir option.  We are building in place.
21573    ac_srcdir=.
21574    if test -z "$ac_top_builddir"; then
21575       ac_top_srcdir=.
21576    else
21577       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21578    fi ;;
21579  [\\/]* | ?:[\\/]* )  # Absolute path.
21580    ac_srcdir=$srcdir$ac_dir_suffix;
21581    ac_top_srcdir=$srcdir ;;
21582  *) # Relative path.
21583    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21584    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21585esac
21586
21587# Do not use `cd foo && pwd` to compute absolute paths, because
21588# the directories may not exist.
21589case `pwd` in
21590.) ac_abs_builddir="$ac_dir";;
21591*)
21592  case "$ac_dir" in
21593  .) ac_abs_builddir=`pwd`;;
21594  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21595  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21596  esac;;
21597esac
21598case $ac_abs_builddir in
21599.) ac_abs_top_builddir=${ac_top_builddir}.;;
21600*)
21601  case ${ac_top_builddir}. in
21602  .) ac_abs_top_builddir=$ac_abs_builddir;;
21603  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21604  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21605  esac;;
21606esac
21607case $ac_abs_builddir in
21608.) ac_abs_srcdir=$ac_srcdir;;
21609*)
21610  case $ac_srcdir in
21611  .) ac_abs_srcdir=$ac_abs_builddir;;
21612  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21613  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21614  esac;;
21615esac
21616case $ac_abs_builddir in
21617.) ac_abs_top_srcdir=$ac_top_srcdir;;
21618*)
21619  case $ac_top_srcdir in
21620  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21621  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21622  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21623  esac;;
21624esac
21625
21626
21627  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21628echo "$as_me: executing $ac_dest commands" >&6;}
21629  case $ac_dest in
21630    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21631  # Strip MF so we end up with the name of the file.
21632  mf=`echo "$mf" | sed -e 's/:.*$//'`
21633  # Check whether this is an Automake generated Makefile or not.
21634  # We used to match only the files named `Makefile.in', but
21635  # some people rename them; so instead we look at the file content.
21636  # Grep'ing the first line is not enough: some people post-process
21637  # each Makefile.in and add a new line on top of each file to say so.
21638  # So let's grep whole file.
21639  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21640    dirpart=`(dirname "$mf") 2>/dev/null ||
21641$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21642	 X"$mf" : 'X\(//\)[^/]' \| \
21643	 X"$mf" : 'X\(//\)$' \| \
21644	 X"$mf" : 'X\(/\)' \| \
21645	 .     : '\(.\)' 2>/dev/null ||
21646echo X"$mf" |
21647    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21648  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21649  	  /^X\(\/\/\)$/{ s//\1/; q; }
21650  	  /^X\(\/\).*/{ s//\1/; q; }
21651  	  s/.*/./; q'`
21652  else
21653    continue
21654  fi
21655  # Extract the definition of DEPDIR, am__include, and am__quote
21656  # from the Makefile without running `make'.
21657  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21658  test -z "$DEPDIR" && continue
21659  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21660  test -z "am__include" && continue
21661  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21662  # When using ansi2knr, U may be empty or an underscore; expand it
21663  U=`sed -n 's/^U = //p' < "$mf"`
21664  # Find all dependency output files, they are included files with
21665  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21666  # simplest approach to changing $(DEPDIR) to its actual value in the
21667  # expansion.
21668  for file in `sed -n "
21669    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21670       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21671    # Make sure the directory exists.
21672    test -f "$dirpart/$file" && continue
21673    fdir=`(dirname "$file") 2>/dev/null ||
21674$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21675	 X"$file" : 'X\(//\)[^/]' \| \
21676	 X"$file" : 'X\(//\)$' \| \
21677	 X"$file" : 'X\(/\)' \| \
21678	 .     : '\(.\)' 2>/dev/null ||
21679echo X"$file" |
21680    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21681  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21682  	  /^X\(\/\/\)$/{ s//\1/; q; }
21683  	  /^X\(\/\).*/{ s//\1/; q; }
21684  	  s/.*/./; q'`
21685    { if $as_mkdir_p; then
21686    mkdir -p $dirpart/$fdir
21687  else
21688    as_dir=$dirpart/$fdir
21689    as_dirs=
21690    while test ! -d "$as_dir"; do
21691      as_dirs="$as_dir $as_dirs"
21692      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21694	 X"$as_dir" : 'X\(//\)[^/]' \| \
21695	 X"$as_dir" : 'X\(//\)$' \| \
21696	 X"$as_dir" : 'X\(/\)' \| \
21697	 .     : '\(.\)' 2>/dev/null ||
21698echo X"$as_dir" |
21699    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21700  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21701  	  /^X\(\/\/\)$/{ s//\1/; q; }
21702  	  /^X\(\/\).*/{ s//\1/; q; }
21703  	  s/.*/./; q'`
21704    done
21705    test ! -n "$as_dirs" || mkdir $as_dirs
21706  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21707echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21708   { (exit 1); exit 1; }; }; }
21709
21710    # echo "creating $dirpart/$file"
21711    echo '# dummy' > "$dirpart/$file"
21712  done
21713done
21714 ;;
21715  esac
21716done
21717_ACEOF
21718
21719cat >>$CONFIG_STATUS <<\_ACEOF
21720
21721{ (exit 0); exit 0; }
21722_ACEOF
21723chmod +x $CONFIG_STATUS
21724ac_clean_files=$ac_clean_files_save
21725
21726
21727# configure is writing to config.log, and then calls config.status.
21728# config.status does its own redirection, appending to config.log.
21729# Unfortunately, on DOS this fails, as config.log is still kept open
21730# by configure, so config.status won't be able to write to it; its
21731# output is simply discarded.  So we exec the FD to /dev/null,
21732# effectively closing config.log, so it can be properly (re)opened and
21733# appended to by config.status.  When coming back to configure, we
21734# need to make the FD available again.
21735if test "$no_create" != yes; then
21736  ac_cs_success=:
21737  ac_config_status_args=
21738  test "$silent" = yes &&
21739    ac_config_status_args="$ac_config_status_args --quiet"
21740  exec 5>/dev/null
21741  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21742  exec 5>>config.log
21743  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21744  # would make configure fail if this is the last instruction.
21745  $ac_cs_success || { (exit 1); exit 1; }
21746fi
21747
21748