1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="src/gts.h"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443#  include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448#  include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459#  include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_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 GTS_MAJOR_VERSION GTS_MINOR_VERSION GTS_MICRO_VERSION GTS_VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HAS_NETPBM_TRUE HAS_NETPBM_FALSE PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS GLIB_CONFIG glib_cflags glib_libs glib_thread_cflags glib_thread_libs glib_module_cflags glib_module_libs GLIB_DEPLIBS LIBOBJS LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510  # If the previous option needs an argument, assign it.
511  if test -n "$ac_prev"; then
512    eval "$ac_prev=\$ac_option"
513    ac_prev=
514    continue
515  fi
516
517  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519  # Accept the important Cygnus configure options, so we can diagnose typos.
520
521  case $ac_option in
522
523  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524    ac_prev=bindir ;;
525  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526    bindir=$ac_optarg ;;
527
528  -build | --build | --buil | --bui | --bu)
529    ac_prev=build_alias ;;
530  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531    build_alias=$ac_optarg ;;
532
533  -cache-file | --cache-file | --cache-fil | --cache-fi \
534  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535    ac_prev=cache_file ;;
536  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538    cache_file=$ac_optarg ;;
539
540  --config-cache | -C)
541    cache_file=config.cache ;;
542
543  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544    ac_prev=datadir ;;
545  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546  | --da=*)
547    datadir=$ac_optarg ;;
548
549  -disable-* | --disable-*)
550    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554   { (exit 1); exit 1; }; }
555    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556    eval "enable_$ac_feature=no" ;;
557
558  -enable-* | --enable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    case $ac_option in
566      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567      *) ac_optarg=yes ;;
568    esac
569    eval "enable_$ac_feature='$ac_optarg'" ;;
570
571  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573  | --exec | --exe | --ex)
574    ac_prev=exec_prefix ;;
575  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577  | --exec=* | --exe=* | --ex=*)
578    exec_prefix=$ac_optarg ;;
579
580  -gas | --gas | --ga | --g)
581    # Obsolete; use --with-gas.
582    with_gas=yes ;;
583
584  -help | --help | --hel | --he | -h)
585    ac_init_help=long ;;
586  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587    ac_init_help=recursive ;;
588  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589    ac_init_help=short ;;
590
591  -host | --host | --hos | --ho)
592    ac_prev=host_alias ;;
593  -host=* | --host=* | --hos=* | --ho=*)
594    host_alias=$ac_optarg ;;
595
596  -includedir | --includedir | --includedi | --included | --include \
597  | --includ | --inclu | --incl | --inc)
598    ac_prev=includedir ;;
599  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600  | --includ=* | --inclu=* | --incl=* | --inc=*)
601    includedir=$ac_optarg ;;
602
603  -infodir | --infodir | --infodi | --infod | --info | --inf)
604    ac_prev=infodir ;;
605  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606    infodir=$ac_optarg ;;
607
608  -libdir | --libdir | --libdi | --libd)
609    ac_prev=libdir ;;
610  -libdir=* | --libdir=* | --libdi=* | --libd=*)
611    libdir=$ac_optarg ;;
612
613  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614  | --libexe | --libex | --libe)
615    ac_prev=libexecdir ;;
616  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617  | --libexe=* | --libex=* | --libe=*)
618    libexecdir=$ac_optarg ;;
619
620  -localstatedir | --localstatedir | --localstatedi | --localstated \
621  | --localstate | --localstat | --localsta | --localst \
622  | --locals | --local | --loca | --loc | --lo)
623    ac_prev=localstatedir ;;
624  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627    localstatedir=$ac_optarg ;;
628
629  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630    ac_prev=mandir ;;
631  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632    mandir=$ac_optarg ;;
633
634  -nfp | --nfp | --nf)
635    # Obsolete; use --without-fp.
636    with_fp=no ;;
637
638  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639  | --no-cr | --no-c | -n)
640    no_create=yes ;;
641
642  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644    no_recursion=yes ;;
645
646  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648  | --oldin | --oldi | --old | --ol | --o)
649    ac_prev=oldincludedir ;;
650  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653    oldincludedir=$ac_optarg ;;
654
655  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656    ac_prev=prefix ;;
657  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658    prefix=$ac_optarg ;;
659
660  -program-prefix | --program-prefix | --program-prefi | --program-pref \
661  | --program-pre | --program-pr | --program-p)
662    ac_prev=program_prefix ;;
663  -program-prefix=* | --program-prefix=* | --program-prefi=* \
664  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665    program_prefix=$ac_optarg ;;
666
667  -program-suffix | --program-suffix | --program-suffi | --program-suff \
668  | --program-suf | --program-su | --program-s)
669    ac_prev=program_suffix ;;
670  -program-suffix=* | --program-suffix=* | --program-suffi=* \
671  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672    program_suffix=$ac_optarg ;;
673
674  -program-transform-name | --program-transform-name \
675  | --program-transform-nam | --program-transform-na \
676  | --program-transform-n | --program-transform- \
677  | --program-transform | --program-transfor \
678  | --program-transfo | --program-transf \
679  | --program-trans | --program-tran \
680  | --progr-tra | --program-tr | --program-t)
681    ac_prev=program_transform_name ;;
682  -program-transform-name=* | --program-transform-name=* \
683  | --program-transform-nam=* | --program-transform-na=* \
684  | --program-transform-n=* | --program-transform-=* \
685  | --program-transform=* | --program-transfor=* \
686  | --program-transfo=* | --program-transf=* \
687  | --program-trans=* | --program-tran=* \
688  | --progr-tra=* | --program-tr=* | --program-t=*)
689    program_transform_name=$ac_optarg ;;
690
691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692  | -silent | --silent | --silen | --sile | --sil)
693    silent=yes ;;
694
695  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696    ac_prev=sbindir ;;
697  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698  | --sbi=* | --sb=*)
699    sbindir=$ac_optarg ;;
700
701  -sharedstatedir | --sharedstatedir | --sharedstatedi \
702  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703  | --sharedst | --shareds | --shared | --share | --shar \
704  | --sha | --sh)
705    ac_prev=sharedstatedir ;;
706  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709  | --sha=* | --sh=*)
710    sharedstatedir=$ac_optarg ;;
711
712  -site | --site | --sit)
713    ac_prev=site ;;
714  -site=* | --site=* | --sit=*)
715    site=$ac_optarg ;;
716
717  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718    ac_prev=srcdir ;;
719  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720    srcdir=$ac_optarg ;;
721
722  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723  | --syscon | --sysco | --sysc | --sys | --sy)
724    ac_prev=sysconfdir ;;
725  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727    sysconfdir=$ac_optarg ;;
728
729  -target | --target | --targe | --targ | --tar | --ta | --t)
730    ac_prev=target_alias ;;
731  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732    target_alias=$ac_optarg ;;
733
734  -v | -verbose | --verbose | --verbos | --verbo | --verb)
735    verbose=yes ;;
736
737  -version | --version | --versio | --versi | --vers | -V)
738    ac_init_version=: ;;
739
740  -with-* | --with-*)
741    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742    # Reject names that are not valid shell variable names.
743    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744      { echo "$as_me: error: invalid package name: $ac_package" >&2
745   { (exit 1); exit 1; }; }
746    ac_package=`echo $ac_package| sed 's/-/_/g'`
747    case $ac_option in
748      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749      *) ac_optarg=yes ;;
750    esac
751    eval "with_$ac_package='$ac_optarg'" ;;
752
753  -without-* | --without-*)
754    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package | sed 's/-/_/g'`
760    eval "with_$ac_package=no" ;;
761
762  --x)
763    # Obsolete; use --with-x.
764    with_x=yes ;;
765
766  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767  | --x-incl | --x-inc | --x-in | --x-i)
768    ac_prev=x_includes ;;
769  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771    x_includes=$ac_optarg ;;
772
773  -x-libraries | --x-libraries | --x-librarie | --x-librari \
774  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775    ac_prev=x_libraries ;;
776  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778    x_libraries=$ac_optarg ;;
779
780  -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782   { (exit 1); exit 1; }; }
783    ;;
784
785  *=*)
786    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787    # Reject names that are not valid shell variable names.
788    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790   { (exit 1); exit 1; }; }
791    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792    eval "$ac_envvar='$ac_optarg'"
793    export $ac_envvar ;;
794
795  *)
796    # FIXME: should be removed in autoconf 3.0.
797    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801    ;;
802
803  esac
804done
805
806if test -n "$ac_prev"; then
807  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808  { echo "$as_me: error: missing argument to $ac_option" >&2
809   { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815  eval ac_val=$`echo $ac_var`
816  case $ac_val in
817    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819   { (exit 1); exit 1; }; };;
820  esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825	      localstatedir libdir includedir oldincludedir infodir mandir
826do
827  eval ac_val=$`echo $ac_var`
828  case $ac_val in
829    [\\/$]* | ?:[\\/]* ) ;;
830    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831   { (exit 1); exit 1; }; };;
832  esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844  if test "x$build_alias" = x; then
845    cross_compiling=maybe
846    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847    If a cross compiler is detected then cross compile mode will be used." >&2
848  elif test "x$build_alias" != "x$host_alias"; then
849    cross_compiling=yes
850  fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861  ac_srcdir_defaulted=yes
862  # Try the directory containing this script, then its parent.
863  ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865	 X"$0" : 'X\(//\)[^/]' \| \
866	 X"$0" : 'X\(//\)$' \| \
867	 X"$0" : 'X\(/\)' \| \
868	 .     : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872  	  /^X\(\/\/\)$/{ s//\1/; q; }
873  	  /^X\(\/\).*/{ s//\1/; q; }
874  	  s/.*/./; q'`
875  srcdir=$ac_confdir
876  if test ! -r $srcdir/$ac_unique_file; then
877    srcdir=..
878  fi
879else
880  ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883  if test "$ac_srcdir_defaulted" = yes; then
884    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885   { (exit 1); exit 1; }; }
886  else
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888   { (exit 1); exit 1; }; }
889  fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893   { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952  # Omit some internal or obsolete options to make the list less imposing.
953  # This message is too long to be a string in the A/UX 3.1 sh.
954  cat <<_ACEOF
955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965  -h, --help              display this help and exit
966      --help=short        display options specific to this package
967      --help=recursive    display the short help of all the included packages
968  -V, --version           display version information and exit
969  -q, --quiet, --silent   do not print \`checking...' messages
970      --cache-file=FILE   cache test results in FILE [disabled]
971  -C, --config-cache      alias for \`--cache-file=config.cache'
972  -n, --no-create         do not create output files
973      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977  cat <<_ACEOF
978Installation directories:
979  --prefix=PREFIX         install architecture-independent files in PREFIX
980			  [$ac_default_prefix]
981  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982			  [PREFIX]
983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992  --bindir=DIR           user executables [EPREFIX/bin]
993  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994  --libexecdir=DIR       program executables [EPREFIX/libexec]
995  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999  --libdir=DIR           object code libraries [EPREFIX/lib]
1000  --includedir=DIR       C header files [PREFIX/include]
1001  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002  --infodir=DIR          info documentation [PREFIX/info]
1003  --mandir=DIR           man documentation [PREFIX/man]
1004_ACEOF
1005
1006  cat <<\_ACEOF
1007
1008Program names:
1009  --program-prefix=PREFIX            prepend PREFIX to installed program names
1010  --program-suffix=SUFFIX            append SUFFIX to installed program names
1011  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013System types:
1014  --build=BUILD     configure for building on BUILD [guessed]
1015  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021  cat <<\_ACEOF
1022
1023Optional Features:
1024  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026  --enable-shared[=PKGS]
1027                          build shared libraries [default=yes]
1028  --enable-static[=PKGS]
1029                          build static libraries [default=yes]
1030  --enable-fast-install[=PKGS]
1031                          optimize for fast installation [default=yes]
1032  --disable-dependency-tracking  speeds up one-time build
1033  --enable-dependency-tracking   do not reject slow dependency extractors
1034  --disable-libtool-lock  avoid locking (might break parallel builds)
1035  --enable-maintainer-mode  enable make rules and dependencies not useful
1036			  (and sometimes confusing) to the casual installer
1037  --disable-glibtest      do not try to compile and run a test GLIB program
1038  --disable-glibtest       Do not try to compile and run a test GLIB program
1039
1040Optional Packages:
1041  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044  --with-pic              try to use only PIC/non-PIC objects [default=use
1045                          both]
1046  --with-tags[=TAGS]
1047                          include additional configurations [automatic]
1048  --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)
1049  --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
1050
1051Some influential environment variables:
1052  CC          C compiler command
1053  CFLAGS      C compiler flags
1054  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055              nonstandard directory <lib dir>
1056  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057              headers in a nonstandard directory <include dir>
1058  CPP         C preprocessor
1059  CXX         C++ compiler command
1060  CXXFLAGS    C++ compiler flags
1061  CXXCPP      C++ preprocessor
1062  F77         Fortran 77 compiler command
1063  FFLAGS      Fortran 77 compiler flags
1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068_ACEOF
1069fi
1070
1071if test "$ac_init_help" = "recursive"; then
1072  # If there are subdirs, report their specific --help.
1073  ac_popdir=`pwd`
1074  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075    test -d $ac_dir || continue
1076    ac_builddir=.
1077
1078if test "$ac_dir" != .; then
1079  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080  # A "../" for each directory in $ac_dir_suffix.
1081  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082else
1083  ac_dir_suffix= ac_top_builddir=
1084fi
1085
1086case $srcdir in
1087  .)  # No --srcdir option.  We are building in place.
1088    ac_srcdir=.
1089    if test -z "$ac_top_builddir"; then
1090       ac_top_srcdir=.
1091    else
1092       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093    fi ;;
1094  [\\/]* | ?:[\\/]* )  # Absolute path.
1095    ac_srcdir=$srcdir$ac_dir_suffix;
1096    ac_top_srcdir=$srcdir ;;
1097  *) # Relative path.
1098    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100esac
1101
1102# Do not use `cd foo && pwd` to compute absolute paths, because
1103# the directories may not exist.
1104case `pwd` in
1105.) ac_abs_builddir="$ac_dir";;
1106*)
1107  case "$ac_dir" in
1108  .) ac_abs_builddir=`pwd`;;
1109  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111  esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115*)
1116  case ${ac_top_builddir}. in
1117  .) ac_abs_top_builddir=$ac_abs_builddir;;
1118  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120  esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_srcdir=$ac_srcdir;;
1124*)
1125  case $ac_srcdir in
1126  .) ac_abs_srcdir=$ac_abs_builddir;;
1127  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129  esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133*)
1134  case $ac_top_srcdir in
1135  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138  esac;;
1139esac
1140
1141    cd $ac_dir
1142    # Check for guested configure; otherwise get Cygnus style configure.
1143    if test -f $ac_srcdir/configure.gnu; then
1144      echo
1145      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146    elif test -f $ac_srcdir/configure; then
1147      echo
1148      $SHELL $ac_srcdir/configure  --help=recursive
1149    elif test -f $ac_srcdir/configure.ac ||
1150	   test -f $ac_srcdir/configure.in; then
1151      echo
1152      $ac_configure --help
1153    else
1154      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155    fi
1156    cd "$ac_popdir"
1157  done
1158fi
1159
1160test -n "$ac_init_help" && exit 0
1161if $ac_init_version; then
1162  cat <<\_ACEOF
1163
1164Copyright (C) 2003 Free Software Foundation, Inc.
1165This configure script is free software; the Free Software Foundation
1166gives unlimited permission to copy, distribute and modify it.
1167_ACEOF
1168  exit 0
1169fi
1170exec 5>config.log
1171cat >&5 <<_ACEOF
1172This file contains any messages produced by compilers while
1173running configure, to aid debugging if configure makes a mistake.
1174
1175It was created by $as_me, which was
1176generated by GNU Autoconf 2.59.  Invocation command line was
1177
1178  $ $0 $@
1179
1180_ACEOF
1181{
1182cat <<_ASUNAME
1183## --------- ##
1184## Platform. ##
1185## --------- ##
1186
1187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1195
1196/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1197/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1200/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1201/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1202/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1203
1204_ASUNAME
1205
1206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207for as_dir in $PATH
1208do
1209  IFS=$as_save_IFS
1210  test -z "$as_dir" && as_dir=.
1211  echo "PATH: $as_dir"
1212done
1213
1214} >&5
1215
1216cat >&5 <<_ACEOF
1217
1218
1219## ----------- ##
1220## Core tests. ##
1221## ----------- ##
1222
1223_ACEOF
1224
1225
1226# Keep a trace of the command line.
1227# Strip out --no-create and --no-recursion so they do not pile up.
1228# Strip out --silent because we don't want to record it for future runs.
1229# Also quote any args containing shell meta-characters.
1230# Make two passes to allow for proper duplicate-argument suppression.
1231ac_configure_args=
1232ac_configure_args0=
1233ac_configure_args1=
1234ac_sep=
1235ac_must_keep_next=false
1236for ac_pass in 1 2
1237do
1238  for ac_arg
1239  do
1240    case $ac_arg in
1241    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243    | -silent | --silent | --silen | --sile | --sil)
1244      continue ;;
1245    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247    esac
1248    case $ac_pass in
1249    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250    2)
1251      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252      if test $ac_must_keep_next = true; then
1253	ac_must_keep_next=false # Got value, back to normal.
1254      else
1255	case $ac_arg in
1256	  *=* | --config-cache | -C | -disable-* | --disable-* \
1257	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259	  | -with-* | --with-* | -without-* | --without-* | --x)
1260	    case "$ac_configure_args0 " in
1261	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262	    esac
1263	    ;;
1264	  -* ) ac_must_keep_next=true ;;
1265	esac
1266      fi
1267      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268      # Get rid of the leading space.
1269      ac_sep=" "
1270      ;;
1271    esac
1272  done
1273done
1274$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
1277# When interrupted or exit'd, cleanup temporary files, and complete
1278# config.log.  We remove comments because anyway the quotes in there
1279# would cause problems or look ugly.
1280# WARNING: Be sure not to use single quotes in there, as some shells,
1281# such as our DU 5.0 friend, will then `close' the trap.
1282trap 'exit_status=$?
1283  # Save into config.log some information that might help in debugging.
1284  {
1285    echo
1286
1287    cat <<\_ASBOX
1288## ---------------- ##
1289## Cache variables. ##
1290## ---------------- ##
1291_ASBOX
1292    echo
1293    # The following way of writing the cache mishandles newlines in values,
1294{
1295  (set) 2>&1 |
1296    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297    *ac_space=\ *)
1298      sed -n \
1299	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301      ;;
1302    *)
1303      sed -n \
1304	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305      ;;
1306    esac;
1307}
1308    echo
1309
1310    cat <<\_ASBOX
1311## ----------------- ##
1312## Output variables. ##
1313## ----------------- ##
1314_ASBOX
1315    echo
1316    for ac_var in $ac_subst_vars
1317    do
1318      eval ac_val=$`echo $ac_var`
1319      echo "$ac_var='"'"'$ac_val'"'"'"
1320    done | sort
1321    echo
1322
1323    if test -n "$ac_subst_files"; then
1324      cat <<\_ASBOX
1325## ------------- ##
1326## Output files. ##
1327## ------------- ##
1328_ASBOX
1329      echo
1330      for ac_var in $ac_subst_files
1331      do
1332	eval ac_val=$`echo $ac_var`
1333	echo "$ac_var='"'"'$ac_val'"'"'"
1334      done | sort
1335      echo
1336    fi
1337
1338    if test -s confdefs.h; then
1339      cat <<\_ASBOX
1340## ----------- ##
1341## confdefs.h. ##
1342## ----------- ##
1343_ASBOX
1344      echo
1345      sed "/^$/d" confdefs.h | sort
1346      echo
1347    fi
1348    test "$ac_signal" != 0 &&
1349      echo "$as_me: caught signal $ac_signal"
1350    echo "$as_me: exit $exit_status"
1351  } >&5
1352  rm -f core *.core &&
1353  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354    exit $exit_status
1355     ' 0
1356for ac_signal in 1 2 13 15; do
1357  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358done
1359ac_signal=0
1360
1361# confdefs.h avoids OS command line length limits that DEFS can exceed.
1362rm -rf conftest* confdefs.h
1363# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364echo >confdefs.h
1365
1366# Predefined preprocessor variables.
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_NAME "$PACKAGE_NAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_VERSION "$PACKAGE_VERSION"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_STRING "$PACKAGE_STRING"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390_ACEOF
1391
1392
1393# Let the site file select an alternate cache file if it wants to.
1394# Prefer explicitly selected file to automatically selected ones.
1395if test -z "$CONFIG_SITE"; then
1396  if test "x$prefix" != xNONE; then
1397    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398  else
1399    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400  fi
1401fi
1402for ac_site_file in $CONFIG_SITE; do
1403  if test -r "$ac_site_file"; then
1404    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405echo "$as_me: loading site script $ac_site_file" >&6;}
1406    sed 's/^/| /' "$ac_site_file" >&5
1407    . "$ac_site_file"
1408  fi
1409done
1410
1411if test -r "$cache_file"; then
1412  # Some versions of bash will fail to source /dev/null (special
1413  # files actually), so we avoid doing that.
1414  if test -f "$cache_file"; then
1415    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416echo "$as_me: loading cache $cache_file" >&6;}
1417    case $cache_file in
1418      [\\/]* | ?:[\\/]* ) . $cache_file;;
1419      *)                      . ./$cache_file;;
1420    esac
1421  fi
1422else
1423  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424echo "$as_me: creating cache $cache_file" >&6;}
1425  >$cache_file
1426fi
1427
1428# Check that the precious variables saved in the cache have kept the same
1429# value.
1430ac_cache_corrupted=false
1431for ac_var in `(set) 2>&1 |
1432	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434  eval ac_new_set=\$ac_env_${ac_var}_set
1435  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436  eval ac_new_val="\$ac_env_${ac_var}_value"
1437  case $ac_old_set,$ac_new_set in
1438    set,)
1439      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441      ac_cache_corrupted=: ;;
1442    ,set)
1443      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445      ac_cache_corrupted=: ;;
1446    ,);;
1447    *)
1448      if test "x$ac_old_val" != "x$ac_new_val"; then
1449	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1452echo "$as_me:   former value:  $ac_old_val" >&2;}
1453	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1454echo "$as_me:   current value: $ac_new_val" >&2;}
1455	ac_cache_corrupted=:
1456      fi;;
1457  esac
1458  # Pass precious variables to config.status.
1459  if test "$ac_new_set" = set; then
1460    case $ac_new_val in
1461    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463    *) ac_arg=$ac_var=$ac_new_val ;;
1464    esac
1465    case " $ac_configure_args " in
1466      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1467      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468    esac
1469  fi
1470done
1471if $ac_cache_corrupted; then
1472  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476   { (exit 1); exit 1; }; }
1477fi
1478
1479ac_ext=c
1480ac_cpp='$CPP $CPPFLAGS'
1481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505#AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
1506# Making releases:
1507#   GTS_MICRO_VERSION += 1;
1508#   GTS_INTERFACE_AGE += 1;
1509#   GTS_BINARY_AGE += 1;
1510# if any functions have been added, set GTS_INTERFACE_AGE to 0.
1511# if backwards compatibility has been broken,
1512# set GTS_BINARY_AGE and GTS_INTERFACE_AGE to 0.
1513#
1514GTS_MAJOR_VERSION=0
1515GTS_MINOR_VERSION=7
1516GTS_MICRO_VERSION=6
1517GTS_INTERFACE_AGE=1
1518GTS_BINARY_AGE=1
1519GTS_VERSION=$GTS_MAJOR_VERSION.$GTS_MINOR_VERSION.$GTS_MICRO_VERSION
1520#AC_DIVERT_POP()dnl
1521
1522
1523
1524
1525
1526
1527# libtool versioning
1528LT_RELEASE=$GTS_MAJOR_VERSION.$GTS_MINOR_VERSION
1529LT_CURRENT=`expr $GTS_MICRO_VERSION - $GTS_INTERFACE_AGE`
1530LT_REVISION=$GTS_INTERFACE_AGE
1531LT_AGE=`expr $GTS_BINARY_AGE - $GTS_INTERFACE_AGE`
1532
1533
1534
1535
1536
1537# For automake.
1538VERSION=$GTS_VERSION
1539PACKAGE=gts
1540
1541am__api_version="1.8"
1542ac_aux_dir=
1543for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1544  if test -f $ac_dir/install-sh; then
1545    ac_aux_dir=$ac_dir
1546    ac_install_sh="$ac_aux_dir/install-sh -c"
1547    break
1548  elif test -f $ac_dir/install.sh; then
1549    ac_aux_dir=$ac_dir
1550    ac_install_sh="$ac_aux_dir/install.sh -c"
1551    break
1552  elif test -f $ac_dir/shtool; then
1553    ac_aux_dir=$ac_dir
1554    ac_install_sh="$ac_aux_dir/shtool install -c"
1555    break
1556  fi
1557done
1558if test -z "$ac_aux_dir"; then
1559  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1560echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1561   { (exit 1); exit 1; }; }
1562fi
1563ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567# Find a good install program.  We prefer a C program (faster),
1568# so one script is as good as another.  But avoid the broken or
1569# incompatible versions:
1570# SysV /etc/install, /usr/sbin/install
1571# SunOS /usr/etc/install
1572# IRIX /sbin/install
1573# AIX /bin/install
1574# AmigaOS /C/install, which installs bootblocks on floppy discs
1575# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1576# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1577# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1578# OS/2's system install, which has a completely different semantic
1579# ./install, which can be erroneously created by make from ./install.sh.
1580echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582if test -z "$INSTALL"; then
1583if test "${ac_cv_path_install+set}" = set; then
1584  echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587for as_dir in $PATH
1588do
1589  IFS=$as_save_IFS
1590  test -z "$as_dir" && as_dir=.
1591  # Account for people who put trailing slashes in PATH elements.
1592case $as_dir/ in
1593  ./ | .// | /cC/* | \
1594  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1596  /usr/ucb/* ) ;;
1597  *)
1598    # OSF1 and SCO ODT 3.0 have their own names for install.
1599    # Don't use installbsd from OSF since it installs stuff as root
1600    # by default.
1601    for ac_prog in ginstall scoinst install; do
1602      for ac_exec_ext in '' $ac_executable_extensions; do
1603	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1604	  if test $ac_prog = install &&
1605	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606	    # AIX install.  It has an incompatible calling convention.
1607	    :
1608	  elif test $ac_prog = install &&
1609	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610	    # program-specific install script used by HP pwplus--don't use.
1611	    :
1612	  else
1613	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1614	    break 3
1615	  fi
1616	fi
1617      done
1618    done
1619    ;;
1620esac
1621done
1622
1623
1624fi
1625  if test "${ac_cv_path_install+set}" = set; then
1626    INSTALL=$ac_cv_path_install
1627  else
1628    # As a last resort, use the slow shell script.  We don't cache a
1629    # path for INSTALL within a source directory, because that will
1630    # break other packages using the cache if that directory is
1631    # removed, or if the path is relative.
1632    INSTALL=$ac_install_sh
1633  fi
1634fi
1635echo "$as_me:$LINENO: result: $INSTALL" >&5
1636echo "${ECHO_T}$INSTALL" >&6
1637
1638# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1639# It thinks the first close brace ends the variable substitution.
1640test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1641
1642test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1643
1644test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1645
1646echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1647echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1648# Just in case
1649sleep 1
1650echo timestamp > conftest.file
1651# Do `set' in a subshell so we don't clobber the current shell's
1652# arguments.  Must try -L first in case configure is actually a
1653# symlink; some systems play weird games with the mod time of symlinks
1654# (eg FreeBSD returns the mod time of the symlink's containing
1655# directory).
1656if (
1657   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1658   if test "$*" = "X"; then
1659      # -L didn't work.
1660      set X `ls -t $srcdir/configure conftest.file`
1661   fi
1662   rm -f conftest.file
1663   if test "$*" != "X $srcdir/configure conftest.file" \
1664      && test "$*" != "X conftest.file $srcdir/configure"; then
1665
1666      # If neither matched, then we have a broken ls.  This can happen
1667      # if, for instance, CONFIG_SHELL is bash and it inherits a
1668      # broken ls alias from the environment.  This has actually
1669      # happened.  Such a system could not be considered "sane".
1670      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1671alias in your environment" >&5
1672echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1673alias in your environment" >&2;}
1674   { (exit 1); exit 1; }; }
1675   fi
1676
1677   test "$2" = conftest.file
1678   )
1679then
1680   # Ok.
1681   :
1682else
1683   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1684Check your system clock" >&5
1685echo "$as_me: error: newly created file is older than distributed files!
1686Check your system clock" >&2;}
1687   { (exit 1); exit 1; }; }
1688fi
1689echo "$as_me:$LINENO: result: yes" >&5
1690echo "${ECHO_T}yes" >&6
1691test "$program_prefix" != NONE &&
1692  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1693# Use a double $ so make ignores it.
1694test "$program_suffix" != NONE &&
1695  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1696# Double any \ or $.  echo might interpret backslashes.
1697# By default was `s,x,x', remove it if useless.
1698cat <<\_ACEOF >conftest.sed
1699s/[\\$]/&&/g;s/;s,x,x,$//
1700_ACEOF
1701program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1702rm conftest.sed
1703
1704# expand $ac_aux_dir to an absolute path
1705am_aux_dir=`cd $ac_aux_dir && pwd`
1706
1707test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708# Use eval to expand $SHELL
1709if eval "$MISSING --run true"; then
1710  am_missing_run="$MISSING --run "
1711else
1712  am_missing_run=
1713  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715fi
1716
1717if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1718  # Keeping the `.' argument allows $(mkdir_p) to be used without
1719  # argument.  Indeed, we sometimes output rules like
1720  #   $(mkdir_p) $(somedir)
1721  # where $(somedir) is conditionally defined.
1722  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1723  # expensive solution, as it forces Make to start a sub-shell.)
1724  mkdir_p='mkdir -p -- .'
1725else
1726  # On NextStep and OpenStep, the `mkdir' command does not
1727  # recognize any option.  It will interpret all options as
1728  # directories to create, and then abort because `.' already
1729  # exists.
1730  for d in ./-p ./--version;
1731  do
1732    test -d $d && rmdir $d
1733  done
1734  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1735  if test -f "$ac_aux_dir/mkinstalldirs"; then
1736    mkdir_p='$(mkinstalldirs)'
1737  else
1738    mkdir_p='$(install_sh) -d'
1739  fi
1740fi
1741
1742for ac_prog in gawk mawk nawk awk
1743do
1744  # Extract the first word of "$ac_prog", so it can be a program name with args.
1745set dummy $ac_prog; ac_word=$2
1746echo "$as_me:$LINENO: checking for $ac_word" >&5
1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748if test "${ac_cv_prog_AWK+set}" = set; then
1749  echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751  if test -n "$AWK"; then
1752  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1753else
1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755for as_dir in $PATH
1756do
1757  IFS=$as_save_IFS
1758  test -z "$as_dir" && as_dir=.
1759  for ac_exec_ext in '' $ac_executable_extensions; do
1760  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761    ac_cv_prog_AWK="$ac_prog"
1762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763    break 2
1764  fi
1765done
1766done
1767
1768fi
1769fi
1770AWK=$ac_cv_prog_AWK
1771if test -n "$AWK"; then
1772  echo "$as_me:$LINENO: result: $AWK" >&5
1773echo "${ECHO_T}$AWK" >&6
1774else
1775  echo "$as_me:$LINENO: result: no" >&5
1776echo "${ECHO_T}no" >&6
1777fi
1778
1779  test -n "$AWK" && break
1780done
1781
1782echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1783echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1784set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1785if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1786  echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788  cat >conftest.make <<\_ACEOF
1789all:
1790	@echo 'ac_maketemp="$(MAKE)"'
1791_ACEOF
1792# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1793eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1794if test -n "$ac_maketemp"; then
1795  eval ac_cv_prog_make_${ac_make}_set=yes
1796else
1797  eval ac_cv_prog_make_${ac_make}_set=no
1798fi
1799rm -f conftest.make
1800fi
1801if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1802  echo "$as_me:$LINENO: result: yes" >&5
1803echo "${ECHO_T}yes" >&6
1804  SET_MAKE=
1805else
1806  echo "$as_me:$LINENO: result: no" >&5
1807echo "${ECHO_T}no" >&6
1808  SET_MAKE="MAKE=${MAKE-make}"
1809fi
1810
1811rm -rf .tst 2>/dev/null
1812mkdir .tst 2>/dev/null
1813if test -d .tst; then
1814  am__leading_dot=.
1815else
1816  am__leading_dot=_
1817fi
1818rmdir .tst 2>/dev/null
1819
1820# test to see if srcdir already configured
1821if test "`cd $srcdir && pwd`" != "`pwd`" &&
1822   test -f $srcdir/config.status; then
1823  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1824echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1825   { (exit 1); exit 1; }; }
1826fi
1827
1828# test whether we have cygpath
1829if test -z "$CYGPATH_W"; then
1830  if (cygpath --version) >/dev/null 2>/dev/null; then
1831    CYGPATH_W='cygpath -w'
1832  else
1833    CYGPATH_W=echo
1834  fi
1835fi
1836
1837
1838# Define the identity of the package.
1839 PACKAGE=$PACKAGE
1840 VERSION=$VERSION
1841
1842
1843# Some tools Automake needs.
1844
1845ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1846
1847
1848AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1849
1850
1851AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1852
1853
1854AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1855
1856
1857MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1858
1859
1860AMTAR=${AMTAR-"${am_missing_run}tar"}
1861
1862install_sh=${install_sh-"$am_aux_dir/install-sh"}
1863
1864# Installed binaries are usually stripped using `strip' when the user
1865# run `make install-strip'.  However `strip' might not be the right
1866# tool to use in cross-compilation environments, therefore Automake
1867# will honor the `STRIP' environment variable to overrule this program.
1868if test "$cross_compiling" != no; then
1869  if test -n "$ac_tool_prefix"; then
1870  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1871set dummy ${ac_tool_prefix}strip; ac_word=$2
1872echo "$as_me:$LINENO: checking for $ac_word" >&5
1873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874if test "${ac_cv_prog_STRIP+set}" = set; then
1875  echo $ECHO_N "(cached) $ECHO_C" >&6
1876else
1877  if test -n "$STRIP"; then
1878  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1879else
1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881for as_dir in $PATH
1882do
1883  IFS=$as_save_IFS
1884  test -z "$as_dir" && as_dir=.
1885  for ac_exec_ext in '' $ac_executable_extensions; do
1886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889    break 2
1890  fi
1891done
1892done
1893
1894fi
1895fi
1896STRIP=$ac_cv_prog_STRIP
1897if test -n "$STRIP"; then
1898  echo "$as_me:$LINENO: result: $STRIP" >&5
1899echo "${ECHO_T}$STRIP" >&6
1900else
1901  echo "$as_me:$LINENO: result: no" >&5
1902echo "${ECHO_T}no" >&6
1903fi
1904
1905fi
1906if test -z "$ac_cv_prog_STRIP"; then
1907  ac_ct_STRIP=$STRIP
1908  # Extract the first word of "strip", so it can be a program name with args.
1909set dummy strip; ac_word=$2
1910echo "$as_me:$LINENO: checking for $ac_word" >&5
1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1913  echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915  if test -n "$ac_ct_STRIP"; then
1916  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1917else
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921  IFS=$as_save_IFS
1922  test -z "$as_dir" && as_dir=.
1923  for ac_exec_ext in '' $ac_executable_extensions; do
1924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925    ac_cv_prog_ac_ct_STRIP="strip"
1926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927    break 2
1928  fi
1929done
1930done
1931
1932  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1933fi
1934fi
1935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1936if test -n "$ac_ct_STRIP"; then
1937  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1938echo "${ECHO_T}$ac_ct_STRIP" >&6
1939else
1940  echo "$as_me:$LINENO: result: no" >&5
1941echo "${ECHO_T}no" >&6
1942fi
1943
1944  STRIP=$ac_ct_STRIP
1945else
1946  STRIP="$ac_cv_prog_STRIP"
1947fi
1948
1949fi
1950INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1951
1952# We need awk for the "check" target.  The system "awk" is bad on
1953# some platforms.
1954
1955
1956
1957
1958# Specify a configuration file
1959          ac_config_headers="$ac_config_headers config.h"
1960
1961
1962
1963cat >>confdefs.h <<_ACEOF
1964#define GTS_MAJOR_VERSION $GTS_MAJOR_VERSION
1965_ACEOF
1966
1967
1968cat >>confdefs.h <<_ACEOF
1969#define GTS_MINOR_VERSION $GTS_MINOR_VERSION
1970_ACEOF
1971
1972
1973cat >>confdefs.h <<_ACEOF
1974#define GTS_MICRO_VERSION $GTS_MICRO_VERSION
1975_ACEOF
1976
1977
1978cat >>confdefs.h <<_ACEOF
1979#define GTS_INTERFACE_AGE $GTS_INTERFACE_AGE
1980_ACEOF
1981
1982
1983cat >>confdefs.h <<_ACEOF
1984#define GTS_BINARY_AGE $GTS_BINARY_AGE
1985_ACEOF
1986
1987
1988# Check whether --enable-shared or --disable-shared was given.
1989if test "${enable_shared+set}" = set; then
1990  enableval="$enable_shared"
1991  p=${PACKAGE-default}
1992    case $enableval in
1993    yes) enable_shared=yes ;;
1994    no) enable_shared=no ;;
1995    *)
1996      enable_shared=no
1997      # Look at the argument we got.  We use all the common list separators.
1998      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1999      for pkg in $enableval; do
2000	IFS="$lt_save_ifs"
2001	if test "X$pkg" = "X$p"; then
2002	  enable_shared=yes
2003	fi
2004      done
2005      IFS="$lt_save_ifs"
2006      ;;
2007    esac
2008else
2009  enable_shared=yes
2010fi;
2011
2012# Check whether --enable-static or --disable-static was given.
2013if test "${enable_static+set}" = set; then
2014  enableval="$enable_static"
2015  p=${PACKAGE-default}
2016    case $enableval in
2017    yes) enable_static=yes ;;
2018    no) enable_static=no ;;
2019    *)
2020     enable_static=no
2021      # Look at the argument we got.  We use all the common list separators.
2022      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2023      for pkg in $enableval; do
2024	IFS="$lt_save_ifs"
2025	if test "X$pkg" = "X$p"; then
2026	  enable_static=yes
2027	fi
2028      done
2029      IFS="$lt_save_ifs"
2030      ;;
2031    esac
2032else
2033  enable_static=yes
2034fi;
2035
2036# Check whether --enable-fast-install or --disable-fast-install was given.
2037if test "${enable_fast_install+set}" = set; then
2038  enableval="$enable_fast_install"
2039  p=${PACKAGE-default}
2040    case $enableval in
2041    yes) enable_fast_install=yes ;;
2042    no) enable_fast_install=no ;;
2043    *)
2044      enable_fast_install=no
2045      # Look at the argument we got.  We use all the common list separators.
2046      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2047      for pkg in $enableval; do
2048	IFS="$lt_save_ifs"
2049	if test "X$pkg" = "X$p"; then
2050	  enable_fast_install=yes
2051	fi
2052      done
2053      IFS="$lt_save_ifs"
2054      ;;
2055    esac
2056else
2057  enable_fast_install=yes
2058fi;
2059
2060# Make sure we can run config.sub.
2061$ac_config_sub sun4 >/dev/null 2>&1 ||
2062  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2063echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2064   { (exit 1); exit 1; }; }
2065
2066echo "$as_me:$LINENO: checking build system type" >&5
2067echo $ECHO_N "checking build system type... $ECHO_C" >&6
2068if test "${ac_cv_build+set}" = set; then
2069  echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071  ac_cv_build_alias=$build_alias
2072test -z "$ac_cv_build_alias" &&
2073  ac_cv_build_alias=`$ac_config_guess`
2074test -z "$ac_cv_build_alias" &&
2075  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077   { (exit 1); exit 1; }; }
2078ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2079  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2080echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2081   { (exit 1); exit 1; }; }
2082
2083fi
2084echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085echo "${ECHO_T}$ac_cv_build" >&6
2086build=$ac_cv_build
2087build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2088build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2089build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2090
2091
2092echo "$as_me:$LINENO: checking host system type" >&5
2093echo $ECHO_N "checking host system type... $ECHO_C" >&6
2094if test "${ac_cv_host+set}" = set; then
2095  echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097  ac_cv_host_alias=$host_alias
2098test -z "$ac_cv_host_alias" &&
2099  ac_cv_host_alias=$ac_cv_build_alias
2100ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2101  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2102echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2103   { (exit 1); exit 1; }; }
2104
2105fi
2106echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107echo "${ECHO_T}$ac_cv_host" >&6
2108host=$ac_cv_host
2109host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2110host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2111host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2112
2113
2114DEPDIR="${am__leading_dot}deps"
2115
2116          ac_config_commands="$ac_config_commands depfiles"
2117
2118
2119am_make=${MAKE-make}
2120cat > confinc << 'END'
2121am__doit:
2122	@echo done
2123.PHONY: am__doit
2124END
2125# If we don't find an include directive, just comment out the code.
2126echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2127echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2128am__include="#"
2129am__quote=
2130_am_result=none
2131# First try GNU make style include.
2132echo "include confinc" > confmf
2133# We grep out `Entering directory' and `Leaving directory'
2134# messages which can occur if `w' ends up in MAKEFLAGS.
2135# In particular we don't look at `^make:' because GNU make might
2136# be invoked under some other name (usually "gmake"), in which
2137# case it prints its new name instead of `make'.
2138if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2139   am__include=include
2140   am__quote=
2141   _am_result=GNU
2142fi
2143# Now try BSD make style include.
2144if test "$am__include" = "#"; then
2145   echo '.include "confinc"' > confmf
2146   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2147      am__include=.include
2148      am__quote="\""
2149      _am_result=BSD
2150   fi
2151fi
2152
2153
2154echo "$as_me:$LINENO: result: $_am_result" >&5
2155echo "${ECHO_T}$_am_result" >&6
2156rm -f confinc confmf
2157
2158# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2159if test "${enable_dependency_tracking+set}" = set; then
2160  enableval="$enable_dependency_tracking"
2161
2162fi;
2163if test "x$enable_dependency_tracking" != xno; then
2164  am_depcomp="$ac_aux_dir/depcomp"
2165  AMDEPBACKSLASH='\'
2166fi
2167
2168
2169if test "x$enable_dependency_tracking" != xno; then
2170  AMDEP_TRUE=
2171  AMDEP_FALSE='#'
2172else
2173  AMDEP_TRUE='#'
2174  AMDEP_FALSE=
2175fi
2176
2177
2178
2179ac_ext=c
2180ac_cpp='$CPP $CPPFLAGS'
2181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184if test -n "$ac_tool_prefix"; then
2185  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2186set dummy ${ac_tool_prefix}gcc; ac_word=$2
2187echo "$as_me:$LINENO: checking for $ac_word" >&5
2188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189if test "${ac_cv_prog_CC+set}" = set; then
2190  echo $ECHO_N "(cached) $ECHO_C" >&6
2191else
2192  if test -n "$CC"; then
2193  ac_cv_prog_CC="$CC" # Let the user override the test.
2194else
2195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196for as_dir in $PATH
2197do
2198  IFS=$as_save_IFS
2199  test -z "$as_dir" && as_dir=.
2200  for ac_exec_ext in '' $ac_executable_extensions; do
2201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204    break 2
2205  fi
2206done
2207done
2208
2209fi
2210fi
2211CC=$ac_cv_prog_CC
2212if test -n "$CC"; then
2213  echo "$as_me:$LINENO: result: $CC" >&5
2214echo "${ECHO_T}$CC" >&6
2215else
2216  echo "$as_me:$LINENO: result: no" >&5
2217echo "${ECHO_T}no" >&6
2218fi
2219
2220fi
2221if test -z "$ac_cv_prog_CC"; then
2222  ac_ct_CC=$CC
2223  # Extract the first word of "gcc", so it can be a program name with args.
2224set dummy gcc; ac_word=$2
2225echo "$as_me:$LINENO: checking for $ac_word" >&5
2226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2228  echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230  if test -n "$ac_ct_CC"; then
2231  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2232else
2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234for as_dir in $PATH
2235do
2236  IFS=$as_save_IFS
2237  test -z "$as_dir" && as_dir=.
2238  for ac_exec_ext in '' $ac_executable_extensions; do
2239  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240    ac_cv_prog_ac_ct_CC="gcc"
2241    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242    break 2
2243  fi
2244done
2245done
2246
2247fi
2248fi
2249ac_ct_CC=$ac_cv_prog_ac_ct_CC
2250if test -n "$ac_ct_CC"; then
2251  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2252echo "${ECHO_T}$ac_ct_CC" >&6
2253else
2254  echo "$as_me:$LINENO: result: no" >&5
2255echo "${ECHO_T}no" >&6
2256fi
2257
2258  CC=$ac_ct_CC
2259else
2260  CC="$ac_cv_prog_CC"
2261fi
2262
2263if test -z "$CC"; then
2264  if test -n "$ac_tool_prefix"; then
2265  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2266set dummy ${ac_tool_prefix}cc; ac_word=$2
2267echo "$as_me:$LINENO: checking for $ac_word" >&5
2268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269if test "${ac_cv_prog_CC+set}" = set; then
2270  echo $ECHO_N "(cached) $ECHO_C" >&6
2271else
2272  if test -n "$CC"; then
2273  ac_cv_prog_CC="$CC" # Let the user override the test.
2274else
2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278  IFS=$as_save_IFS
2279  test -z "$as_dir" && as_dir=.
2280  for ac_exec_ext in '' $ac_executable_extensions; do
2281  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282    ac_cv_prog_CC="${ac_tool_prefix}cc"
2283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284    break 2
2285  fi
2286done
2287done
2288
2289fi
2290fi
2291CC=$ac_cv_prog_CC
2292if test -n "$CC"; then
2293  echo "$as_me:$LINENO: result: $CC" >&5
2294echo "${ECHO_T}$CC" >&6
2295else
2296  echo "$as_me:$LINENO: result: no" >&5
2297echo "${ECHO_T}no" >&6
2298fi
2299
2300fi
2301if test -z "$ac_cv_prog_CC"; then
2302  ac_ct_CC=$CC
2303  # Extract the first word of "cc", so it can be a program name with args.
2304set dummy cc; ac_word=$2
2305echo "$as_me:$LINENO: checking for $ac_word" >&5
2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2308  echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310  if test -n "$ac_ct_CC"; then
2311  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2312else
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316  IFS=$as_save_IFS
2317  test -z "$as_dir" && as_dir=.
2318  for ac_exec_ext in '' $ac_executable_extensions; do
2319  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2320    ac_cv_prog_ac_ct_CC="cc"
2321    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322    break 2
2323  fi
2324done
2325done
2326
2327fi
2328fi
2329ac_ct_CC=$ac_cv_prog_ac_ct_CC
2330if test -n "$ac_ct_CC"; then
2331  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2332echo "${ECHO_T}$ac_ct_CC" >&6
2333else
2334  echo "$as_me:$LINENO: result: no" >&5
2335echo "${ECHO_T}no" >&6
2336fi
2337
2338  CC=$ac_ct_CC
2339else
2340  CC="$ac_cv_prog_CC"
2341fi
2342
2343fi
2344if test -z "$CC"; then
2345  # Extract the first word of "cc", so it can be a program name with args.
2346set dummy cc; ac_word=$2
2347echo "$as_me:$LINENO: checking for $ac_word" >&5
2348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349if test "${ac_cv_prog_CC+set}" = set; then
2350  echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352  if test -n "$CC"; then
2353  ac_cv_prog_CC="$CC" # Let the user override the test.
2354else
2355  ac_prog_rejected=no
2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357for as_dir in $PATH
2358do
2359  IFS=$as_save_IFS
2360  test -z "$as_dir" && as_dir=.
2361  for ac_exec_ext in '' $ac_executable_extensions; do
2362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2364       ac_prog_rejected=yes
2365       continue
2366     fi
2367    ac_cv_prog_CC="cc"
2368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369    break 2
2370  fi
2371done
2372done
2373
2374if test $ac_prog_rejected = yes; then
2375  # We found a bogon in the path, so make sure we never use it.
2376  set dummy $ac_cv_prog_CC
2377  shift
2378  if test $# != 0; then
2379    # We chose a different compiler from the bogus one.
2380    # However, it has the same basename, so the bogon will be chosen
2381    # first if we set CC to just the basename; use the full file name.
2382    shift
2383    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2384  fi
2385fi
2386fi
2387fi
2388CC=$ac_cv_prog_CC
2389if test -n "$CC"; then
2390  echo "$as_me:$LINENO: result: $CC" >&5
2391echo "${ECHO_T}$CC" >&6
2392else
2393  echo "$as_me:$LINENO: result: no" >&5
2394echo "${ECHO_T}no" >&6
2395fi
2396
2397fi
2398if test -z "$CC"; then
2399  if test -n "$ac_tool_prefix"; then
2400  for ac_prog in cl
2401  do
2402    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2404echo "$as_me:$LINENO: checking for $ac_word" >&5
2405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2406if test "${ac_cv_prog_CC+set}" = set; then
2407  echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409  if test -n "$CC"; then
2410  ac_cv_prog_CC="$CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415  IFS=$as_save_IFS
2416  test -z "$as_dir" && as_dir=.
2417  for ac_exec_ext in '' $ac_executable_extensions; do
2418  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2419    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421    break 2
2422  fi
2423done
2424done
2425
2426fi
2427fi
2428CC=$ac_cv_prog_CC
2429if test -n "$CC"; then
2430  echo "$as_me:$LINENO: result: $CC" >&5
2431echo "${ECHO_T}$CC" >&6
2432else
2433  echo "$as_me:$LINENO: result: no" >&5
2434echo "${ECHO_T}no" >&6
2435fi
2436
2437    test -n "$CC" && break
2438  done
2439fi
2440if test -z "$CC"; then
2441  ac_ct_CC=$CC
2442  for ac_prog in cl
2443do
2444  # Extract the first word of "$ac_prog", so it can be a program name with args.
2445set dummy $ac_prog; ac_word=$2
2446echo "$as_me:$LINENO: checking for $ac_word" >&5
2447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449  echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451  if test -n "$ac_ct_CC"; then
2452  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457  IFS=$as_save_IFS
2458  test -z "$as_dir" && as_dir=.
2459  for ac_exec_ext in '' $ac_executable_extensions; do
2460  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461    ac_cv_prog_ac_ct_CC="$ac_prog"
2462    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463    break 2
2464  fi
2465done
2466done
2467
2468fi
2469fi
2470ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471if test -n "$ac_ct_CC"; then
2472  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473echo "${ECHO_T}$ac_ct_CC" >&6
2474else
2475  echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6
2477fi
2478
2479  test -n "$ac_ct_CC" && break
2480done
2481
2482  CC=$ac_ct_CC
2483fi
2484
2485fi
2486
2487
2488test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2489See \`config.log' for more details." >&5
2490echo "$as_me: error: no acceptable C compiler found in \$PATH
2491See \`config.log' for more details." >&2;}
2492   { (exit 1); exit 1; }; }
2493
2494# Provide some information about the compiler.
2495echo "$as_me:$LINENO:" \
2496     "checking for C compiler version" >&5
2497ac_compiler=`set X $ac_compile; echo $2`
2498{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2499  (eval $ac_compiler --version </dev/null >&5) 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }
2503{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2504  (eval $ac_compiler -v </dev/null >&5) 2>&5
2505  ac_status=$?
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); }
2508{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2509  (eval $ac_compiler -V </dev/null >&5) 2>&5
2510  ac_status=$?
2511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512  (exit $ac_status); }
2513
2514cat >conftest.$ac_ext <<_ACEOF
2515/* confdefs.h.  */
2516_ACEOF
2517cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF
2519/* end confdefs.h.  */
2520
2521int
2522main ()
2523{
2524
2525  ;
2526  return 0;
2527}
2528_ACEOF
2529ac_clean_files_save=$ac_clean_files
2530ac_clean_files="$ac_clean_files a.out a.exe b.out"
2531# Try to create an executable without -o first, disregard a.out.
2532# It will help us diagnose broken compilers, and finding out an intuition
2533# of exeext.
2534echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2535echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2536ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2537if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2538  (eval $ac_link_default) 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }; then
2542  # Find the output, starting from the most likely.  This scheme is
2543# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2544# resort.
2545
2546# Be careful to initialize this variable, since it used to be cached.
2547# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2548ac_cv_exeext=
2549# b.out is created by i960 compilers.
2550for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2551do
2552  test -f "$ac_file" || continue
2553  case $ac_file in
2554    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2555	;;
2556    conftest.$ac_ext )
2557	# This is the source file.
2558	;;
2559    [ab].out )
2560	# We found the default executable, but exeext='' is most
2561	# certainly right.
2562	break;;
2563    *.* )
2564	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2565	# FIXME: I believe we export ac_cv_exeext for Libtool,
2566	# but it would be cool to find out if it's true.  Does anybody
2567	# maintain Libtool? --akim.
2568	export ac_cv_exeext
2569	break;;
2570    * )
2571	break;;
2572  esac
2573done
2574else
2575  echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2579See \`config.log' for more details." >&5
2580echo "$as_me: error: C compiler cannot create executables
2581See \`config.log' for more details." >&2;}
2582   { (exit 77); exit 77; }; }
2583fi
2584
2585ac_exeext=$ac_cv_exeext
2586echo "$as_me:$LINENO: result: $ac_file" >&5
2587echo "${ECHO_T}$ac_file" >&6
2588
2589# Check the compiler produces executables we can run.  If not, either
2590# the compiler is broken, or we cross compile.
2591echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2592echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2593# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2594# If not cross compiling, check that we can run a simple program.
2595if test "$cross_compiling" != yes; then
2596  if { ac_try='./$ac_file'
2597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598  (eval $ac_try) 2>&5
2599  ac_status=$?
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); }; }; then
2602    cross_compiling=no
2603  else
2604    if test "$cross_compiling" = maybe; then
2605	cross_compiling=yes
2606    else
2607	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2608If you meant to cross compile, use \`--host'.
2609See \`config.log' for more details." >&5
2610echo "$as_me: error: cannot run C compiled programs.
2611If you meant to cross compile, use \`--host'.
2612See \`config.log' for more details." >&2;}
2613   { (exit 1); exit 1; }; }
2614    fi
2615  fi
2616fi
2617echo "$as_me:$LINENO: result: yes" >&5
2618echo "${ECHO_T}yes" >&6
2619
2620rm -f a.out a.exe conftest$ac_cv_exeext b.out
2621ac_clean_files=$ac_clean_files_save
2622# Check the compiler produces executables we can run.  If not, either
2623# the compiler is broken, or we cross compile.
2624echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2625echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2626echo "$as_me:$LINENO: result: $cross_compiling" >&5
2627echo "${ECHO_T}$cross_compiling" >&6
2628
2629echo "$as_me:$LINENO: checking for suffix of executables" >&5
2630echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2632  (eval $ac_link) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; then
2636  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2637# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2638# work properly (i.e., refer to `conftest.exe'), while it won't with
2639# `rm'.
2640for ac_file in conftest.exe conftest conftest.*; do
2641  test -f "$ac_file" || continue
2642  case $ac_file in
2643    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2644    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645	  export ac_cv_exeext
2646	  break;;
2647    * ) break;;
2648  esac
2649done
2650else
2651  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2652See \`config.log' for more details." >&5
2653echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2654See \`config.log' for more details." >&2;}
2655   { (exit 1); exit 1; }; }
2656fi
2657
2658rm -f conftest$ac_cv_exeext
2659echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2660echo "${ECHO_T}$ac_cv_exeext" >&6
2661
2662rm -f conftest.$ac_ext
2663EXEEXT=$ac_cv_exeext
2664ac_exeext=$EXEEXT
2665echo "$as_me:$LINENO: checking for suffix of object files" >&5
2666echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2667if test "${ac_cv_objext+set}" = set; then
2668  echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670  cat >conftest.$ac_ext <<_ACEOF
2671/* confdefs.h.  */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h.  */
2676
2677int
2678main ()
2679{
2680
2681  ;
2682  return 0;
2683}
2684_ACEOF
2685rm -f conftest.o conftest.obj
2686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687  (eval $ac_compile) 2>&5
2688  ac_status=$?
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); }; then
2691  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2692  case $ac_file in
2693    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2694    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2695       break;;
2696  esac
2697done
2698else
2699  echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2703See \`config.log' for more details." >&5
2704echo "$as_me: error: cannot compute suffix of object files: cannot compile
2705See \`config.log' for more details." >&2;}
2706   { (exit 1); exit 1; }; }
2707fi
2708
2709rm -f conftest.$ac_cv_objext conftest.$ac_ext
2710fi
2711echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2712echo "${ECHO_T}$ac_cv_objext" >&6
2713OBJEXT=$ac_cv_objext
2714ac_objext=$OBJEXT
2715echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2716echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2717if test "${ac_cv_c_compiler_gnu+set}" = set; then
2718  echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720  cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726
2727int
2728main ()
2729{
2730#ifndef __GNUC__
2731       choke me
2732#endif
2733
2734  ;
2735  return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext
2739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740  (eval $ac_compile) 2>conftest.er1
2741  ac_status=$?
2742  grep -v '^ *+' conftest.er1 >conftest.err
2743  rm -f conftest.er1
2744  cat conftest.err >&5
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); } &&
2747	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); }; } &&
2753	 { ac_try='test -s conftest.$ac_objext'
2754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755  (eval $ac_try) 2>&5
2756  ac_status=$?
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); }; }; then
2759  ac_compiler_gnu=yes
2760else
2761  echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764ac_compiler_gnu=no
2765fi
2766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767ac_cv_c_compiler_gnu=$ac_compiler_gnu
2768
2769fi
2770echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2771echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2772GCC=`test $ac_compiler_gnu = yes && echo yes`
2773ac_test_CFLAGS=${CFLAGS+set}
2774ac_save_CFLAGS=$CFLAGS
2775CFLAGS="-g"
2776echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2777echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2778if test "${ac_cv_prog_cc_g+set}" = set; then
2779  echo $ECHO_N "(cached) $ECHO_C" >&6
2780else
2781  cat >conftest.$ac_ext <<_ACEOF
2782/* confdefs.h.  */
2783_ACEOF
2784cat confdefs.h >>conftest.$ac_ext
2785cat >>conftest.$ac_ext <<_ACEOF
2786/* end confdefs.h.  */
2787
2788int
2789main ()
2790{
2791
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796rm -f conftest.$ac_objext
2797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798  (eval $ac_compile) 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } &&
2805	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807  (eval $ac_try) 2>&5
2808  ac_status=$?
2809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810  (exit $ac_status); }; } &&
2811	 { ac_try='test -s conftest.$ac_objext'
2812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813  (eval $ac_try) 2>&5
2814  ac_status=$?
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); }; }; then
2817  ac_cv_prog_cc_g=yes
2818else
2819  echo "$as_me: failed program was:" >&5
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822ac_cv_prog_cc_g=no
2823fi
2824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2825fi
2826echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2827echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2828if test "$ac_test_CFLAGS" = set; then
2829  CFLAGS=$ac_save_CFLAGS
2830elif test $ac_cv_prog_cc_g = yes; then
2831  if test "$GCC" = yes; then
2832    CFLAGS="-g -O2"
2833  else
2834    CFLAGS="-g"
2835  fi
2836else
2837  if test "$GCC" = yes; then
2838    CFLAGS="-O2"
2839  else
2840    CFLAGS=
2841  fi
2842fi
2843echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2844echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2845if test "${ac_cv_prog_cc_stdc+set}" = set; then
2846  echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848  ac_cv_prog_cc_stdc=no
2849ac_save_CC=$CC
2850cat >conftest.$ac_ext <<_ACEOF
2851/* confdefs.h.  */
2852_ACEOF
2853cat confdefs.h >>conftest.$ac_ext
2854cat >>conftest.$ac_ext <<_ACEOF
2855/* end confdefs.h.  */
2856#include <stdarg.h>
2857#include <stdio.h>
2858#include <sys/types.h>
2859#include <sys/stat.h>
2860/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2861struct buf { int x; };
2862FILE * (*rcsopen) (struct buf *, struct stat *, int);
2863static char *e (p, i)
2864     char **p;
2865     int i;
2866{
2867  return p[i];
2868}
2869static char *f (char * (*g) (char **, int), char **p, ...)
2870{
2871  char *s;
2872  va_list v;
2873  va_start (v,p);
2874  s = g (p, va_arg (v,int));
2875  va_end (v);
2876  return s;
2877}
2878
2879/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2880   function prototypes and stuff, but not '\xHH' hex character constants.
2881   These don't provoke an error unfortunately, instead are silently treated
2882   as 'x'.  The following induces an error, until -std1 is added to get
2883   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2884   array size at least.  It's necessary to write '\x00'==0 to get something
2885   that's true only with -std1.  */
2886int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2887
2888int test (int i, double x);
2889struct s1 {int (*f) (int a);};
2890struct s2 {int (*f) (double a);};
2891int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2892int argc;
2893char **argv;
2894int
2895main ()
2896{
2897return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2898  ;
2899  return 0;
2900}
2901_ACEOF
2902# Don't try gcc -ansi; that turns off useful extensions and
2903# breaks some systems' header files.
2904# AIX			-qlanglvl=ansi
2905# Ultrix and OSF/1	-std1
2906# HP-UX 10.20 and later	-Ae
2907# HP-UX older versions	-Aa -D_HPUX_SOURCE
2908# SVR4			-Xc -D__EXTENSIONS__
2909for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2910do
2911  CC="$ac_save_CC $ac_arg"
2912  rm -f conftest.$ac_objext
2913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914  (eval $ac_compile) 2>conftest.er1
2915  ac_status=$?
2916  grep -v '^ *+' conftest.er1 >conftest.err
2917  rm -f conftest.er1
2918  cat conftest.err >&5
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); } &&
2921	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; } &&
2927	 { ac_try='test -s conftest.$ac_objext'
2928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929  (eval $ac_try) 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; }; then
2933  ac_cv_prog_cc_stdc=$ac_arg
2934break
2935else
2936  echo "$as_me: failed program was:" >&5
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
2939fi
2940rm -f conftest.err conftest.$ac_objext
2941done
2942rm -f conftest.$ac_ext conftest.$ac_objext
2943CC=$ac_save_CC
2944
2945fi
2946
2947case "x$ac_cv_prog_cc_stdc" in
2948  x|xno)
2949    echo "$as_me:$LINENO: result: none needed" >&5
2950echo "${ECHO_T}none needed" >&6 ;;
2951  *)
2952    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2953echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2954    CC="$CC $ac_cv_prog_cc_stdc" ;;
2955esac
2956
2957# Some people use a C++ compiler to compile C.  Since we use `exit',
2958# in C++ we need to declare it.  In case someone uses the same compiler
2959# for both compiling C and C++ we need to have the C++ compiler decide
2960# the declaration of exit, since it's the most demanding environment.
2961cat >conftest.$ac_ext <<_ACEOF
2962#ifndef __cplusplus
2963  choke me
2964#endif
2965_ACEOF
2966rm -f conftest.$ac_objext
2967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2968  (eval $ac_compile) 2>conftest.er1
2969  ac_status=$?
2970  grep -v '^ *+' conftest.er1 >conftest.err
2971  rm -f conftest.er1
2972  cat conftest.err >&5
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); } &&
2975	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977  (eval $ac_try) 2>&5
2978  ac_status=$?
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }; } &&
2981	 { ac_try='test -s conftest.$ac_objext'
2982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983  (eval $ac_try) 2>&5
2984  ac_status=$?
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); }; }; then
2987  for ac_declaration in \
2988   '' \
2989   'extern "C" void std::exit (int) throw (); using std::exit;' \
2990   'extern "C" void std::exit (int); using std::exit;' \
2991   'extern "C" void exit (int) throw ();' \
2992   'extern "C" void exit (int);' \
2993   'void exit (int);'
2994do
2995  cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h.  */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h.  */
3001$ac_declaration
3002#include <stdlib.h>
3003int
3004main ()
3005{
3006exit (42);
3007  ;
3008  return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013  (eval $ac_compile) 2>conftest.er1
3014  ac_status=$?
3015  grep -v '^ *+' conftest.er1 >conftest.err
3016  rm -f conftest.er1
3017  cat conftest.err >&5
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); } &&
3020	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022  (eval $ac_try) 2>&5
3023  ac_status=$?
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }; } &&
3026	 { ac_try='test -s conftest.$ac_objext'
3027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028  (eval $ac_try) 2>&5
3029  ac_status=$?
3030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031  (exit $ac_status); }; }; then
3032  :
3033else
3034  echo "$as_me: failed program was:" >&5
3035sed 's/^/| /' conftest.$ac_ext >&5
3036
3037continue
3038fi
3039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3040  cat >conftest.$ac_ext <<_ACEOF
3041/* confdefs.h.  */
3042_ACEOF
3043cat confdefs.h >>conftest.$ac_ext
3044cat >>conftest.$ac_ext <<_ACEOF
3045/* end confdefs.h.  */
3046$ac_declaration
3047int
3048main ()
3049{
3050exit (42);
3051  ;
3052  return 0;
3053}
3054_ACEOF
3055rm -f conftest.$ac_objext
3056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057  (eval $ac_compile) 2>conftest.er1
3058  ac_status=$?
3059  grep -v '^ *+' conftest.er1 >conftest.err
3060  rm -f conftest.er1
3061  cat conftest.err >&5
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); } &&
3064	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066  (eval $ac_try) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; } &&
3070	 { ac_try='test -s conftest.$ac_objext'
3071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072  (eval $ac_try) 2>&5
3073  ac_status=$?
3074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075  (exit $ac_status); }; }; then
3076  break
3077else
3078  echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081fi
3082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3083done
3084rm -f conftest*
3085if test -n "$ac_declaration"; then
3086  echo '#ifdef __cplusplus' >>confdefs.h
3087  echo $ac_declaration      >>confdefs.h
3088  echo '#endif'             >>confdefs.h
3089fi
3090
3091else
3092  echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095fi
3096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097ac_ext=c
3098ac_cpp='$CPP $CPPFLAGS'
3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102
3103depcc="$CC"   am_compiler_list=
3104
3105echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3106echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3107if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3108  echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3111  # We make a subdir and do the tests there.  Otherwise we can end up
3112  # making bogus files that we don't know about and never remove.  For
3113  # instance it was reported that on HP-UX the gcc test will end up
3114  # making a dummy file named `D' -- because `-MD' means `put the output
3115  # in D'.
3116  mkdir conftest.dir
3117  # Copy depcomp to subdir because otherwise we won't find it if we're
3118  # using a relative directory.
3119  cp "$am_depcomp" conftest.dir
3120  cd conftest.dir
3121  # We will build objects and dependencies in a subdirectory because
3122  # it helps to detect inapplicable dependency modes.  For instance
3123  # both Tru64's cc and ICC support -MD to output dependencies as a
3124  # side effect of compilation, but ICC will put the dependencies in
3125  # the current directory while Tru64 will put them in the object
3126  # directory.
3127  mkdir sub
3128
3129  am_cv_CC_dependencies_compiler_type=none
3130  if test "$am_compiler_list" = ""; then
3131     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3132  fi
3133  for depmode in $am_compiler_list; do
3134    # Setup a source with many dependencies, because some compilers
3135    # like to wrap large dependency lists on column 80 (with \), and
3136    # we should not choose a depcomp mode which is confused by this.
3137    #
3138    # We need to recreate these files for each test, as the compiler may
3139    # overwrite some of them when testing with obscure command lines.
3140    # This happens at least with the AIX C compiler.
3141    : > sub/conftest.c
3142    for i in 1 2 3 4 5 6; do
3143      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3144      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3145      # Solaris 8's {/usr,}/bin/sh.
3146      touch sub/conftst$i.h
3147    done
3148    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3149
3150    case $depmode in
3151    nosideeffect)
3152      # after this tag, mechanisms are not by side-effect, so they'll
3153      # only be used when explicitly requested
3154      if test "x$enable_dependency_tracking" = xyes; then
3155	continue
3156      else
3157	break
3158      fi
3159      ;;
3160    none) break ;;
3161    esac
3162    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3163    # mode.  It turns out that the SunPro C++ compiler does not properly
3164    # handle `-M -o', and we need to detect this.
3165    if depmode=$depmode \
3166       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3167       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3168       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3169         >/dev/null 2>conftest.err &&
3170       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3171       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3172       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3173      # icc doesn't choke on unknown options, it will just issue warnings
3174      # or remarks (even with -Werror).  So we grep stderr for any message
3175      # that says an option was ignored or not supported.
3176      # When given -MP, icc 7.0 and 7.1 complain thusly:
3177      #   icc: Command line warning: ignoring option '-M'; no argument required
3178      # The diagnosis changed in icc 8.0:
3179      #   icc: Command line remark: option '-MP' not supported
3180      if (grep 'ignoring option' conftest.err ||
3181          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3182        am_cv_CC_dependencies_compiler_type=$depmode
3183        break
3184      fi
3185    fi
3186  done
3187
3188  cd ..
3189  rm -rf conftest.dir
3190else
3191  am_cv_CC_dependencies_compiler_type=none
3192fi
3193
3194fi
3195echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3196echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3197CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3198
3199
3200
3201if
3202  test "x$enable_dependency_tracking" != xno \
3203  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3204  am__fastdepCC_TRUE=
3205  am__fastdepCC_FALSE='#'
3206else
3207  am__fastdepCC_TRUE='#'
3208  am__fastdepCC_FALSE=
3209fi
3210
3211
3212echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3213echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3214if test "${lt_cv_path_SED+set}" = set; then
3215  echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217  # Loop through the user's path and test for sed and gsed.
3218# Then use that list of sed's as ones to test for truncation.
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222  IFS=$as_save_IFS
3223  test -z "$as_dir" && as_dir=.
3224  for lt_ac_prog in sed gsed; do
3225    for ac_exec_ext in '' $ac_executable_extensions; do
3226      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3227        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3228      fi
3229    done
3230  done
3231done
3232lt_ac_max=0
3233lt_ac_count=0
3234# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3235# along with /bin/sed that truncates output.
3236for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3237  test ! -f $lt_ac_sed && continue
3238  cat /dev/null > conftest.in
3239  lt_ac_count=0
3240  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3241  # Check for GNU sed and select it if it is found.
3242  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3243    lt_cv_path_SED=$lt_ac_sed
3244    break
3245  fi
3246  while true; do
3247    cat conftest.in conftest.in >conftest.tmp
3248    mv conftest.tmp conftest.in
3249    cp conftest.in conftest.nl
3250    echo >>conftest.nl
3251    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3252    cmp -s conftest.out conftest.nl || break
3253    # 10000 chars as input seems more than enough
3254    test $lt_ac_count -gt 10 && break
3255    lt_ac_count=`expr $lt_ac_count + 1`
3256    if test $lt_ac_count -gt $lt_ac_max; then
3257      lt_ac_max=$lt_ac_count
3258      lt_cv_path_SED=$lt_ac_sed
3259    fi
3260  done
3261done
3262
3263fi
3264
3265SED=$lt_cv_path_SED
3266echo "$as_me:$LINENO: result: $SED" >&5
3267echo "${ECHO_T}$SED" >&6
3268
3269echo "$as_me:$LINENO: checking for egrep" >&5
3270echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3271if test "${ac_cv_prog_egrep+set}" = set; then
3272  echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3275    then ac_cv_prog_egrep='grep -E'
3276    else ac_cv_prog_egrep='egrep'
3277    fi
3278fi
3279echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3280echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3281 EGREP=$ac_cv_prog_egrep
3282
3283
3284
3285# Check whether --with-gnu-ld or --without-gnu-ld was given.
3286if test "${with_gnu_ld+set}" = set; then
3287  withval="$with_gnu_ld"
3288  test "$withval" = no || with_gnu_ld=yes
3289else
3290  with_gnu_ld=no
3291fi;
3292ac_prog=ld
3293if test "$GCC" = yes; then
3294  # Check if gcc -print-prog-name=ld gives a path.
3295  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3296echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3297  case $host in
3298  *-*-mingw*)
3299    # gcc leaves a trailing carriage return which upsets mingw
3300    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3301  *)
3302    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3303  esac
3304  case $ac_prog in
3305    # Accept absolute paths.
3306    [\\/]* | ?:[\\/]*)
3307      re_direlt='/[^/][^/]*/\.\./'
3308      # Canonicalize the pathname of ld
3309      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3310      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3311	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3312      done
3313      test -z "$LD" && LD="$ac_prog"
3314      ;;
3315  "")
3316    # If it fails, then pretend we aren't using GCC.
3317    ac_prog=ld
3318    ;;
3319  *)
3320    # If it is relative, then search for the first ld in PATH.
3321    with_gnu_ld=unknown
3322    ;;
3323  esac
3324elif test "$with_gnu_ld" = yes; then
3325  echo "$as_me:$LINENO: checking for GNU ld" >&5
3326echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3327else
3328  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3329echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3330fi
3331if test "${lt_cv_path_LD+set}" = set; then
3332  echo $ECHO_N "(cached) $ECHO_C" >&6
3333else
3334  if test -z "$LD"; then
3335  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3336  for ac_dir in $PATH; do
3337    IFS="$lt_save_ifs"
3338    test -z "$ac_dir" && ac_dir=.
3339    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3340      lt_cv_path_LD="$ac_dir/$ac_prog"
3341      # Check to see if the program is GNU ld.  I'd rather use --version,
3342      # but apparently some variants of GNU ld only accept -v.
3343      # Break only if it was the GNU/non-GNU ld that we prefer.
3344      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3345      *GNU* | *'with BFD'*)
3346	test "$with_gnu_ld" != no && break
3347	;;
3348      *)
3349	test "$with_gnu_ld" != yes && break
3350	;;
3351      esac
3352    fi
3353  done
3354  IFS="$lt_save_ifs"
3355else
3356  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3357fi
3358fi
3359
3360LD="$lt_cv_path_LD"
3361if test -n "$LD"; then
3362  echo "$as_me:$LINENO: result: $LD" >&5
3363echo "${ECHO_T}$LD" >&6
3364else
3365  echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
3367fi
3368test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3369echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3370   { (exit 1); exit 1; }; }
3371echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3372echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3373if test "${lt_cv_prog_gnu_ld+set}" = set; then
3374  echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3377case `$LD -v 2>&1 </dev/null` in
3378*GNU* | *'with BFD'*)
3379  lt_cv_prog_gnu_ld=yes
3380  ;;
3381*)
3382  lt_cv_prog_gnu_ld=no
3383  ;;
3384esac
3385fi
3386echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3387echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3388with_gnu_ld=$lt_cv_prog_gnu_ld
3389
3390
3391echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3392echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3393if test "${lt_cv_ld_reload_flag+set}" = set; then
3394  echo $ECHO_N "(cached) $ECHO_C" >&6
3395else
3396  lt_cv_ld_reload_flag='-r'
3397fi
3398echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3399echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3400reload_flag=$lt_cv_ld_reload_flag
3401case $reload_flag in
3402"" | " "*) ;;
3403*) reload_flag=" $reload_flag" ;;
3404esac
3405reload_cmds='$LD$reload_flag -o $output$reload_objs'
3406case $host_os in
3407  darwin*)
3408    if test "$GCC" = yes; then
3409      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3410    else
3411      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3412    fi
3413    ;;
3414esac
3415
3416echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3417echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3418if test "${lt_cv_path_NM+set}" = set; then
3419  echo $ECHO_N "(cached) $ECHO_C" >&6
3420else
3421  if test -n "$NM"; then
3422  # Let the user override the test.
3423  lt_cv_path_NM="$NM"
3424else
3425  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3426  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3427    IFS="$lt_save_ifs"
3428    test -z "$ac_dir" && ac_dir=.
3429    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3430    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3431      # Check to see if the nm accepts a BSD-compat flag.
3432      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433      #   nm: unknown option "B" ignored
3434      # Tru64's nm complains that /dev/null is an invalid object file
3435      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3436      */dev/null* | *'Invalid file or object type'*)
3437	lt_cv_path_NM="$tmp_nm -B"
3438	break
3439        ;;
3440      *)
3441	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3442	*/dev/null*)
3443	  lt_cv_path_NM="$tmp_nm -p"
3444	  break
3445	  ;;
3446	*)
3447	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3448	  continue # so that we can try to find one that supports BSD flags
3449	  ;;
3450	esac
3451      esac
3452    fi
3453  done
3454  IFS="$lt_save_ifs"
3455  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3456fi
3457fi
3458echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3459echo "${ECHO_T}$lt_cv_path_NM" >&6
3460NM="$lt_cv_path_NM"
3461
3462echo "$as_me:$LINENO: checking whether ln -s works" >&5
3463echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3464LN_S=$as_ln_s
3465if test "$LN_S" = "ln -s"; then
3466  echo "$as_me:$LINENO: result: yes" >&5
3467echo "${ECHO_T}yes" >&6
3468else
3469  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3470echo "${ECHO_T}no, using $LN_S" >&6
3471fi
3472
3473echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3474echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3475if test "${lt_cv_deplibs_check_method+set}" = set; then
3476  echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
3478  lt_cv_file_magic_cmd='$MAGIC_CMD'
3479lt_cv_file_magic_test_file=
3480lt_cv_deplibs_check_method='unknown'
3481# Need to set the preceding variable on all platforms that support
3482# interlibrary dependencies.
3483# 'none' -- dependencies not supported.
3484# `unknown' -- same as none, but documents that we really don't know.
3485# 'pass_all' -- all dependencies passed with no checks.
3486# 'test_compile' -- check by making test program.
3487# 'file_magic [[regex]]' -- check by looking for files in library path
3488# which responds to the $file_magic_cmd with a given extended regex.
3489# If you have `file' or equivalent on your system and you're not sure
3490# whether `pass_all' will *always* work, you probably want this one.
3491
3492case $host_os in
3493aix4* | aix5*)
3494  lt_cv_deplibs_check_method=pass_all
3495  ;;
3496
3497beos*)
3498  lt_cv_deplibs_check_method=pass_all
3499  ;;
3500
3501bsdi[45]*)
3502  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3503  lt_cv_file_magic_cmd='/usr/bin/file -L'
3504  lt_cv_file_magic_test_file=/shlib/libc.so
3505  ;;
3506
3507cygwin*)
3508  # func_win32_libid is a shell function defined in ltmain.sh
3509  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3510  lt_cv_file_magic_cmd='func_win32_libid'
3511  ;;
3512
3513mingw* | pw32*)
3514  # Base MSYS/MinGW do not provide the 'file' command needed by
3515  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3516  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3517  lt_cv_file_magic_cmd='$OBJDUMP -f'
3518  ;;
3519
3520darwin* | rhapsody*)
3521  lt_cv_deplibs_check_method=pass_all
3522  ;;
3523
3524freebsd* | kfreebsd*-gnu | dragonfly*)
3525  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3526    case $host_cpu in
3527    i*86 )
3528      # Not sure whether the presence of OpenBSD here was a mistake.
3529      # Let's accept both of them until this is cleared up.
3530      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3531      lt_cv_file_magic_cmd=/usr/bin/file
3532      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3533      ;;
3534    esac
3535  else
3536    lt_cv_deplibs_check_method=pass_all
3537  fi
3538  ;;
3539
3540gnu*)
3541  lt_cv_deplibs_check_method=pass_all
3542  ;;
3543
3544hpux10.20* | hpux11*)
3545  lt_cv_file_magic_cmd=/usr/bin/file
3546  case $host_cpu in
3547  ia64*)
3548    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3549    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3550    ;;
3551  hppa*64*)
3552    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]'
3553    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3554    ;;
3555  *)
3556    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3557    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3558    ;;
3559  esac
3560  ;;
3561
3562irix5* | irix6* | nonstopux*)
3563  case $LD in
3564  *-32|*"-32 ") libmagic=32-bit;;
3565  *-n32|*"-n32 ") libmagic=N32;;
3566  *-64|*"-64 ") libmagic=64-bit;;
3567  *) libmagic=never-match;;
3568  esac
3569  lt_cv_deplibs_check_method=pass_all
3570  ;;
3571
3572# This must be Linux ELF.
3573linux*)
3574  lt_cv_deplibs_check_method=pass_all
3575  ;;
3576
3577netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3578  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3579    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3580  else
3581    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3582  fi
3583  ;;
3584
3585newos6*)
3586  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3587  lt_cv_file_magic_cmd=/usr/bin/file
3588  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3589  ;;
3590
3591nto-qnx*)
3592  lt_cv_deplibs_check_method=unknown
3593  ;;
3594
3595openbsd*)
3596  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3597    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3598  else
3599    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3600  fi
3601  ;;
3602
3603osf3* | osf4* | osf5*)
3604  lt_cv_deplibs_check_method=pass_all
3605  ;;
3606
3607sco3.2v5*)
3608  lt_cv_deplibs_check_method=pass_all
3609  ;;
3610
3611solaris*)
3612  lt_cv_deplibs_check_method=pass_all
3613  ;;
3614
3615sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3616  case $host_vendor in
3617  motorola)
3618    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]'
3619    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3620    ;;
3621  ncr)
3622    lt_cv_deplibs_check_method=pass_all
3623    ;;
3624  sequent)
3625    lt_cv_file_magic_cmd='/bin/file'
3626    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3627    ;;
3628  sni)
3629    lt_cv_file_magic_cmd='/bin/file'
3630    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3631    lt_cv_file_magic_test_file=/lib/libc.so
3632    ;;
3633  siemens)
3634    lt_cv_deplibs_check_method=pass_all
3635    ;;
3636  esac
3637  ;;
3638
3639sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3640  lt_cv_deplibs_check_method=pass_all
3641  ;;
3642esac
3643
3644fi
3645echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3646echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3647file_magic_cmd=$lt_cv_file_magic_cmd
3648deplibs_check_method=$lt_cv_deplibs_check_method
3649test -z "$deplibs_check_method" && deplibs_check_method=unknown
3650
3651
3652
3653
3654# If no C compiler was specified, use CC.
3655LTCC=${LTCC-"$CC"}
3656
3657# Allow CC to be a program name with arguments.
3658compiler=$CC
3659
3660
3661# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3662if test "${enable_libtool_lock+set}" = set; then
3663  enableval="$enable_libtool_lock"
3664
3665fi;
3666test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3667
3668# Some flags need to be propagated to the compiler or linker for good
3669# libtool support.
3670case $host in
3671ia64-*-hpux*)
3672  # Find out which ABI we are using.
3673  echo 'int i;' > conftest.$ac_ext
3674  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675  (eval $ac_compile) 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; then
3679    case `/usr/bin/file conftest.$ac_objext` in
3680    *ELF-32*)
3681      HPUX_IA64_MODE="32"
3682      ;;
3683    *ELF-64*)
3684      HPUX_IA64_MODE="64"
3685      ;;
3686    esac
3687  fi
3688  rm -rf conftest*
3689  ;;
3690*-*-irix6*)
3691  # Find out which ABI we are using.
3692  echo '#line 3692 "configure"' > conftest.$ac_ext
3693  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694  (eval $ac_compile) 2>&5
3695  ac_status=$?
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); }; then
3698   if test "$lt_cv_prog_gnu_ld" = yes; then
3699    case `/usr/bin/file conftest.$ac_objext` in
3700    *32-bit*)
3701      LD="${LD-ld} -melf32bsmip"
3702      ;;
3703    *N32*)
3704      LD="${LD-ld} -melf32bmipn32"
3705      ;;
3706    *64-bit*)
3707      LD="${LD-ld} -melf64bmip"
3708      ;;
3709    esac
3710   else
3711    case `/usr/bin/file conftest.$ac_objext` in
3712    *32-bit*)
3713      LD="${LD-ld} -32"
3714      ;;
3715    *N32*)
3716      LD="${LD-ld} -n32"
3717      ;;
3718    *64-bit*)
3719      LD="${LD-ld} -64"
3720      ;;
3721    esac
3722   fi
3723  fi
3724  rm -rf conftest*
3725  ;;
3726
3727x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3728  # Find out which ABI we are using.
3729  echo 'int i;' > conftest.$ac_ext
3730  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731  (eval $ac_compile) 2>&5
3732  ac_status=$?
3733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734  (exit $ac_status); }; then
3735    case `/usr/bin/file conftest.o` in
3736    *32-bit*)
3737      case $host in
3738        x86_64-*linux*)
3739          LD="${LD-ld} -m elf_i386"
3740          ;;
3741        ppc64-*linux*|powerpc64-*linux*)
3742          LD="${LD-ld} -m elf32ppclinux"
3743          ;;
3744        s390x-*linux*)
3745          LD="${LD-ld} -m elf_s390"
3746          ;;
3747        sparc64-*linux*)
3748          LD="${LD-ld} -m elf32_sparc"
3749          ;;
3750      esac
3751      ;;
3752    *64-bit*)
3753      case $host in
3754        x86_64-*linux*)
3755          LD="${LD-ld} -m elf_x86_64"
3756          ;;
3757        ppc*-*linux*|powerpc*-*linux*)
3758          LD="${LD-ld} -m elf64ppc"
3759          ;;
3760        s390*-*linux*)
3761          LD="${LD-ld} -m elf64_s390"
3762          ;;
3763        sparc*-*linux*)
3764          LD="${LD-ld} -m elf64_sparc"
3765          ;;
3766      esac
3767      ;;
3768    esac
3769  fi
3770  rm -rf conftest*
3771  ;;
3772
3773*-*-sco3.2v5*)
3774  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3775  SAVE_CFLAGS="$CFLAGS"
3776  CFLAGS="$CFLAGS -belf"
3777  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3778echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3779if test "${lt_cv_cc_needs_belf+set}" = set; then
3780  echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
3782  ac_ext=c
3783ac_cpp='$CPP $CPPFLAGS'
3784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
3788     cat >conftest.$ac_ext <<_ACEOF
3789/* confdefs.h.  */
3790_ACEOF
3791cat confdefs.h >>conftest.$ac_ext
3792cat >>conftest.$ac_ext <<_ACEOF
3793/* end confdefs.h.  */
3794
3795int
3796main ()
3797{
3798
3799  ;
3800  return 0;
3801}
3802_ACEOF
3803rm -f conftest.$ac_objext conftest$ac_exeext
3804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805  (eval $ac_link) 2>conftest.er1
3806  ac_status=$?
3807  grep -v '^ *+' conftest.er1 >conftest.err
3808  rm -f conftest.er1
3809  cat conftest.err >&5
3810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811  (exit $ac_status); } &&
3812	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814  (eval $ac_try) 2>&5
3815  ac_status=$?
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); }; } &&
3818	 { ac_try='test -s conftest$ac_exeext'
3819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820  (eval $ac_try) 2>&5
3821  ac_status=$?
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); }; }; then
3824  lt_cv_cc_needs_belf=yes
3825else
3826  echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829lt_cv_cc_needs_belf=no
3830fi
3831rm -f conftest.err conftest.$ac_objext \
3832      conftest$ac_exeext conftest.$ac_ext
3833     ac_ext=c
3834ac_cpp='$CPP $CPPFLAGS'
3835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
3839fi
3840echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3841echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3842  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3843    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3844    CFLAGS="$SAVE_CFLAGS"
3845  fi
3846  ;;
3847
3848esac
3849
3850need_locks="$enable_libtool_lock"
3851
3852
3853ac_ext=c
3854ac_cpp='$CPP $CPPFLAGS'
3855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3859echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3860# On Suns, sometimes $CPP names a directory.
3861if test -n "$CPP" && test -d "$CPP"; then
3862  CPP=
3863fi
3864if test -z "$CPP"; then
3865  if test "${ac_cv_prog_CPP+set}" = set; then
3866  echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868      # Double quotes because CPP needs to be expanded
3869    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3870    do
3871      ac_preproc_ok=false
3872for ac_c_preproc_warn_flag in '' yes
3873do
3874  # Use a header file that comes with gcc, so configuring glibc
3875  # with a fresh cross-compiler works.
3876  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877  # <limits.h> exists even on freestanding compilers.
3878  # On the NeXT, cc -E runs the code through the compiler's parser,
3879  # not just through cpp. "Syntax error" is here to catch this case.
3880  cat >conftest.$ac_ext <<_ACEOF
3881/* confdefs.h.  */
3882_ACEOF
3883cat confdefs.h >>conftest.$ac_ext
3884cat >>conftest.$ac_ext <<_ACEOF
3885/* end confdefs.h.  */
3886#ifdef __STDC__
3887# include <limits.h>
3888#else
3889# include <assert.h>
3890#endif
3891		     Syntax error
3892_ACEOF
3893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3894  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3895  ac_status=$?
3896  grep -v '^ *+' conftest.er1 >conftest.err
3897  rm -f conftest.er1
3898  cat conftest.err >&5
3899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900  (exit $ac_status); } >/dev/null; then
3901  if test -s conftest.err; then
3902    ac_cpp_err=$ac_c_preproc_warn_flag
3903    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3904  else
3905    ac_cpp_err=
3906  fi
3907else
3908  ac_cpp_err=yes
3909fi
3910if test -z "$ac_cpp_err"; then
3911  :
3912else
3913  echo "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916  # Broken: fails on valid input.
3917continue
3918fi
3919rm -f conftest.err conftest.$ac_ext
3920
3921  # OK, works on sane cases.  Now check whether non-existent headers
3922  # can be detected and how.
3923  cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h.  */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h.  */
3929#include <ac_nonexistent.h>
3930_ACEOF
3931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3932  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3933  ac_status=$?
3934  grep -v '^ *+' conftest.er1 >conftest.err
3935  rm -f conftest.er1
3936  cat conftest.err >&5
3937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938  (exit $ac_status); } >/dev/null; then
3939  if test -s conftest.err; then
3940    ac_cpp_err=$ac_c_preproc_warn_flag
3941    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3942  else
3943    ac_cpp_err=
3944  fi
3945else
3946  ac_cpp_err=yes
3947fi
3948if test -z "$ac_cpp_err"; then
3949  # Broken: success on invalid input.
3950continue
3951else
3952  echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955  # Passes both tests.
3956ac_preproc_ok=:
3957break
3958fi
3959rm -f conftest.err conftest.$ac_ext
3960
3961done
3962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3963rm -f conftest.err conftest.$ac_ext
3964if $ac_preproc_ok; then
3965  break
3966fi
3967
3968    done
3969    ac_cv_prog_CPP=$CPP
3970
3971fi
3972  CPP=$ac_cv_prog_CPP
3973else
3974  ac_cv_prog_CPP=$CPP
3975fi
3976echo "$as_me:$LINENO: result: $CPP" >&5
3977echo "${ECHO_T}$CPP" >&6
3978ac_preproc_ok=false
3979for ac_c_preproc_warn_flag in '' yes
3980do
3981  # Use a header file that comes with gcc, so configuring glibc
3982  # with a fresh cross-compiler works.
3983  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3984  # <limits.h> exists even on freestanding compilers.
3985  # On the NeXT, cc -E runs the code through the compiler's parser,
3986  # not just through cpp. "Syntax error" is here to catch this case.
3987  cat >conftest.$ac_ext <<_ACEOF
3988/* confdefs.h.  */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h.  */
3993#ifdef __STDC__
3994# include <limits.h>
3995#else
3996# include <assert.h>
3997#endif
3998		     Syntax error
3999_ACEOF
4000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4001  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002  ac_status=$?
4003  grep -v '^ *+' conftest.er1 >conftest.err
4004  rm -f conftest.er1
4005  cat conftest.err >&5
4006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007  (exit $ac_status); } >/dev/null; then
4008  if test -s conftest.err; then
4009    ac_cpp_err=$ac_c_preproc_warn_flag
4010    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4011  else
4012    ac_cpp_err=
4013  fi
4014else
4015  ac_cpp_err=yes
4016fi
4017if test -z "$ac_cpp_err"; then
4018  :
4019else
4020  echo "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023  # Broken: fails on valid input.
4024continue
4025fi
4026rm -f conftest.err conftest.$ac_ext
4027
4028  # OK, works on sane cases.  Now check whether non-existent headers
4029  # can be detected and how.
4030  cat >conftest.$ac_ext <<_ACEOF
4031/* confdefs.h.  */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h.  */
4036#include <ac_nonexistent.h>
4037_ACEOF
4038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4040  ac_status=$?
4041  grep -v '^ *+' conftest.er1 >conftest.err
4042  rm -f conftest.er1
4043  cat conftest.err >&5
4044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045  (exit $ac_status); } >/dev/null; then
4046  if test -s conftest.err; then
4047    ac_cpp_err=$ac_c_preproc_warn_flag
4048    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4049  else
4050    ac_cpp_err=
4051  fi
4052else
4053  ac_cpp_err=yes
4054fi
4055if test -z "$ac_cpp_err"; then
4056  # Broken: success on invalid input.
4057continue
4058else
4059  echo "$as_me: failed program was:" >&5
4060sed 's/^/| /' conftest.$ac_ext >&5
4061
4062  # Passes both tests.
4063ac_preproc_ok=:
4064break
4065fi
4066rm -f conftest.err conftest.$ac_ext
4067
4068done
4069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4070rm -f conftest.err conftest.$ac_ext
4071if $ac_preproc_ok; then
4072  :
4073else
4074  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4075See \`config.log' for more details." >&5
4076echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4077See \`config.log' for more details." >&2;}
4078   { (exit 1); exit 1; }; }
4079fi
4080
4081ac_ext=c
4082ac_cpp='$CPP $CPPFLAGS'
4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087
4088echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4089echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4090if test "${ac_cv_header_stdc+set}" = set; then
4091  echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093  cat >conftest.$ac_ext <<_ACEOF
4094/* confdefs.h.  */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h.  */
4099#include <stdlib.h>
4100#include <stdarg.h>
4101#include <string.h>
4102#include <float.h>
4103
4104int
4105main ()
4106{
4107
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext
4113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114  (eval $ac_compile) 2>conftest.er1
4115  ac_status=$?
4116  grep -v '^ *+' conftest.er1 >conftest.err
4117  rm -f conftest.er1
4118  cat conftest.err >&5
4119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120  (exit $ac_status); } &&
4121	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123  (eval $ac_try) 2>&5
4124  ac_status=$?
4125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126  (exit $ac_status); }; } &&
4127	 { ac_try='test -s conftest.$ac_objext'
4128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129  (eval $ac_try) 2>&5
4130  ac_status=$?
4131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132  (exit $ac_status); }; }; then
4133  ac_cv_header_stdc=yes
4134else
4135  echo "$as_me: failed program was:" >&5
4136sed 's/^/| /' conftest.$ac_ext >&5
4137
4138ac_cv_header_stdc=no
4139fi
4140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4141
4142if test $ac_cv_header_stdc = yes; then
4143  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4144  cat >conftest.$ac_ext <<_ACEOF
4145/* confdefs.h.  */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h.  */
4150#include <string.h>
4151
4152_ACEOF
4153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154  $EGREP "memchr" >/dev/null 2>&1; then
4155  :
4156else
4157  ac_cv_header_stdc=no
4158fi
4159rm -f conftest*
4160
4161fi
4162
4163if test $ac_cv_header_stdc = yes; then
4164  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4165  cat >conftest.$ac_ext <<_ACEOF
4166/* confdefs.h.  */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h.  */
4171#include <stdlib.h>
4172
4173_ACEOF
4174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175  $EGREP "free" >/dev/null 2>&1; then
4176  :
4177else
4178  ac_cv_header_stdc=no
4179fi
4180rm -f conftest*
4181
4182fi
4183
4184if test $ac_cv_header_stdc = yes; then
4185  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4186  if test "$cross_compiling" = yes; then
4187  :
4188else
4189  cat >conftest.$ac_ext <<_ACEOF
4190/* confdefs.h.  */
4191_ACEOF
4192cat confdefs.h >>conftest.$ac_ext
4193cat >>conftest.$ac_ext <<_ACEOF
4194/* end confdefs.h.  */
4195#include <ctype.h>
4196#if ((' ' & 0x0FF) == 0x020)
4197# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4198# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4199#else
4200# define ISLOWER(c) \
4201		   (('a' <= (c) && (c) <= 'i') \
4202		     || ('j' <= (c) && (c) <= 'r') \
4203		     || ('s' <= (c) && (c) <= 'z'))
4204# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4205#endif
4206
4207#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4208int
4209main ()
4210{
4211  int i;
4212  for (i = 0; i < 256; i++)
4213    if (XOR (islower (i), ISLOWER (i))
4214	|| toupper (i) != TOUPPER (i))
4215      exit(2);
4216  exit (0);
4217}
4218_ACEOF
4219rm -f conftest$ac_exeext
4220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221  (eval $ac_link) 2>&5
4222  ac_status=$?
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226  (eval $ac_try) 2>&5
4227  ac_status=$?
4228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229  (exit $ac_status); }; }; then
4230  :
4231else
4232  echo "$as_me: program exited with status $ac_status" >&5
4233echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236( exit $ac_status )
4237ac_cv_header_stdc=no
4238fi
4239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4240fi
4241fi
4242fi
4243echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4244echo "${ECHO_T}$ac_cv_header_stdc" >&6
4245if test $ac_cv_header_stdc = yes; then
4246
4247cat >>confdefs.h <<\_ACEOF
4248#define STDC_HEADERS 1
4249_ACEOF
4250
4251fi
4252
4253# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4264		  inttypes.h stdint.h unistd.h
4265do
4266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4267echo "$as_me:$LINENO: checking for $ac_header" >&5
4268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4269if eval "test \"\${$as_ac_Header+set}\" = set"; then
4270  echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272  cat >conftest.$ac_ext <<_ACEOF
4273/* confdefs.h.  */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h.  */
4278$ac_includes_default
4279
4280#include <$ac_header>
4281_ACEOF
4282rm -f conftest.$ac_objext
4283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284  (eval $ac_compile) 2>conftest.er1
4285  ac_status=$?
4286  grep -v '^ *+' conftest.er1 >conftest.err
4287  rm -f conftest.er1
4288  cat conftest.err >&5
4289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290  (exit $ac_status); } &&
4291	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293  (eval $ac_try) 2>&5
4294  ac_status=$?
4295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296  (exit $ac_status); }; } &&
4297	 { ac_try='test -s conftest.$ac_objext'
4298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299  (eval $ac_try) 2>&5
4300  ac_status=$?
4301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302  (exit $ac_status); }; }; then
4303  eval "$as_ac_Header=yes"
4304else
4305  echo "$as_me: failed program was:" >&5
4306sed 's/^/| /' conftest.$ac_ext >&5
4307
4308eval "$as_ac_Header=no"
4309fi
4310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311fi
4312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4314if test `eval echo '${'$as_ac_Header'}'` = yes; then
4315  cat >>confdefs.h <<_ACEOF
4316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317_ACEOF
4318
4319fi
4320
4321done
4322
4323
4324
4325for ac_header in dlfcn.h
4326do
4327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4328if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329  echo "$as_me:$LINENO: checking for $ac_header" >&5
4330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4331if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332  echo $ECHO_N "(cached) $ECHO_C" >&6
4333fi
4334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4336else
4337  # Is the header compilable?
4338echo "$as_me:$LINENO: checking $ac_header usability" >&5
4339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4340cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h.  */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h.  */
4346$ac_includes_default
4347#include <$ac_header>
4348_ACEOF
4349rm -f conftest.$ac_objext
4350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351  (eval $ac_compile) 2>conftest.er1
4352  ac_status=$?
4353  grep -v '^ *+' conftest.er1 >conftest.err
4354  rm -f conftest.er1
4355  cat conftest.err >&5
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); } &&
4358	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360  (eval $ac_try) 2>&5
4361  ac_status=$?
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); }; } &&
4364	 { ac_try='test -s conftest.$ac_objext'
4365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366  (eval $ac_try) 2>&5
4367  ac_status=$?
4368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369  (exit $ac_status); }; }; then
4370  ac_header_compiler=yes
4371else
4372  echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375ac_header_compiler=no
4376fi
4377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4379echo "${ECHO_T}$ac_header_compiler" >&6
4380
4381# Is the header present?
4382echo "$as_me:$LINENO: checking $ac_header presence" >&5
4383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4384cat >conftest.$ac_ext <<_ACEOF
4385/* confdefs.h.  */
4386_ACEOF
4387cat confdefs.h >>conftest.$ac_ext
4388cat >>conftest.$ac_ext <<_ACEOF
4389/* end confdefs.h.  */
4390#include <$ac_header>
4391_ACEOF
4392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4393  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4394  ac_status=$?
4395  grep -v '^ *+' conftest.er1 >conftest.err
4396  rm -f conftest.er1
4397  cat conftest.err >&5
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); } >/dev/null; then
4400  if test -s conftest.err; then
4401    ac_cpp_err=$ac_c_preproc_warn_flag
4402    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4403  else
4404    ac_cpp_err=
4405  fi
4406else
4407  ac_cpp_err=yes
4408fi
4409if test -z "$ac_cpp_err"; then
4410  ac_header_preproc=yes
4411else
4412  echo "$as_me: failed program was:" >&5
4413sed 's/^/| /' conftest.$ac_ext >&5
4414
4415  ac_header_preproc=no
4416fi
4417rm -f conftest.err conftest.$ac_ext
4418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4419echo "${ECHO_T}$ac_header_preproc" >&6
4420
4421# So?  What about this header?
4422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4423  yes:no: )
4424    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4426    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4428    ac_header_preproc=yes
4429    ;;
4430  no:yes:* )
4431    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4433    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4434echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4435    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4437    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4438echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4439    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4441    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4443    (
4444      cat <<\_ASBOX
4445## ------------------------------------------ ##
4446## Report this to the AC_PACKAGE_NAME lists.  ##
4447## ------------------------------------------ ##
4448_ASBOX
4449    ) |
4450      sed "s/^/$as_me: WARNING:     /" >&2
4451    ;;
4452esac
4453echo "$as_me:$LINENO: checking for $ac_header" >&5
4454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4455if eval "test \"\${$as_ac_Header+set}\" = set"; then
4456  echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458  eval "$as_ac_Header=\$ac_header_preproc"
4459fi
4460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462
4463fi
4464if test `eval echo '${'$as_ac_Header'}'` = yes; then
4465  cat >>confdefs.h <<_ACEOF
4466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4467_ACEOF
4468
4469fi
4470
4471done
4472
4473ac_ext=cc
4474ac_cpp='$CXXCPP $CPPFLAGS'
4475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4478if test -n "$ac_tool_prefix"; then
4479  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4480  do
4481    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4483echo "$as_me:$LINENO: checking for $ac_word" >&5
4484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4485if test "${ac_cv_prog_CXX+set}" = set; then
4486  echo $ECHO_N "(cached) $ECHO_C" >&6
4487else
4488  if test -n "$CXX"; then
4489  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4490else
4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH
4493do
4494  IFS=$as_save_IFS
4495  test -z "$as_dir" && as_dir=.
4496  for ac_exec_ext in '' $ac_executable_extensions; do
4497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500    break 2
4501  fi
4502done
4503done
4504
4505fi
4506fi
4507CXX=$ac_cv_prog_CXX
4508if test -n "$CXX"; then
4509  echo "$as_me:$LINENO: result: $CXX" >&5
4510echo "${ECHO_T}$CXX" >&6
4511else
4512  echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6
4514fi
4515
4516    test -n "$CXX" && break
4517  done
4518fi
4519if test -z "$CXX"; then
4520  ac_ct_CXX=$CXX
4521  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4522do
4523  # Extract the first word of "$ac_prog", so it can be a program name with args.
4524set dummy $ac_prog; ac_word=$2
4525echo "$as_me:$LINENO: checking for $ac_word" >&5
4526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4528  echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530  if test -n "$ac_ct_CXX"; then
4531  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4532else
4533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536  IFS=$as_save_IFS
4537  test -z "$as_dir" && as_dir=.
4538  for ac_exec_ext in '' $ac_executable_extensions; do
4539  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540    ac_cv_prog_ac_ct_CXX="$ac_prog"
4541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542    break 2
4543  fi
4544done
4545done
4546
4547fi
4548fi
4549ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4550if test -n "$ac_ct_CXX"; then
4551  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4552echo "${ECHO_T}$ac_ct_CXX" >&6
4553else
4554  echo "$as_me:$LINENO: result: no" >&5
4555echo "${ECHO_T}no" >&6
4556fi
4557
4558  test -n "$ac_ct_CXX" && break
4559done
4560test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4561
4562  CXX=$ac_ct_CXX
4563fi
4564
4565
4566# Provide some information about the compiler.
4567echo "$as_me:$LINENO:" \
4568     "checking for C++ compiler version" >&5
4569ac_compiler=`set X $ac_compile; echo $2`
4570{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4571  (eval $ac_compiler --version </dev/null >&5) 2>&5
4572  ac_status=$?
4573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574  (exit $ac_status); }
4575{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4576  (eval $ac_compiler -v </dev/null >&5) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }
4580{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4581  (eval $ac_compiler -V </dev/null >&5) 2>&5
4582  ac_status=$?
4583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584  (exit $ac_status); }
4585
4586echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4587echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4588if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4589  echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591  cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h.  */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h.  */
4597
4598int
4599main ()
4600{
4601#ifndef __GNUC__
4602       choke me
4603#endif
4604
4605  ;
4606  return 0;
4607}
4608_ACEOF
4609rm -f conftest.$ac_objext
4610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611  (eval $ac_compile) 2>conftest.er1
4612  ac_status=$?
4613  grep -v '^ *+' conftest.er1 >conftest.err
4614  rm -f conftest.er1
4615  cat conftest.err >&5
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); } &&
4618	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620  (eval $ac_try) 2>&5
4621  ac_status=$?
4622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623  (exit $ac_status); }; } &&
4624	 { ac_try='test -s conftest.$ac_objext'
4625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626  (eval $ac_try) 2>&5
4627  ac_status=$?
4628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629  (exit $ac_status); }; }; then
4630  ac_compiler_gnu=yes
4631else
4632  echo "$as_me: failed program was:" >&5
4633sed 's/^/| /' conftest.$ac_ext >&5
4634
4635ac_compiler_gnu=no
4636fi
4637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4638ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4639
4640fi
4641echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4642echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4643GXX=`test $ac_compiler_gnu = yes && echo yes`
4644ac_test_CXXFLAGS=${CXXFLAGS+set}
4645ac_save_CXXFLAGS=$CXXFLAGS
4646CXXFLAGS="-g"
4647echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4648echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4649if test "${ac_cv_prog_cxx_g+set}" = set; then
4650  echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652  cat >conftest.$ac_ext <<_ACEOF
4653/* confdefs.h.  */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h.  */
4658
4659int
4660main ()
4661{
4662
4663  ;
4664  return 0;
4665}
4666_ACEOF
4667rm -f conftest.$ac_objext
4668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669  (eval $ac_compile) 2>conftest.er1
4670  ac_status=$?
4671  grep -v '^ *+' conftest.er1 >conftest.err
4672  rm -f conftest.er1
4673  cat conftest.err >&5
4674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675  (exit $ac_status); } &&
4676	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678  (eval $ac_try) 2>&5
4679  ac_status=$?
4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681  (exit $ac_status); }; } &&
4682	 { ac_try='test -s conftest.$ac_objext'
4683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684  (eval $ac_try) 2>&5
4685  ac_status=$?
4686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687  (exit $ac_status); }; }; then
4688  ac_cv_prog_cxx_g=yes
4689else
4690  echo "$as_me: failed program was:" >&5
4691sed 's/^/| /' conftest.$ac_ext >&5
4692
4693ac_cv_prog_cxx_g=no
4694fi
4695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696fi
4697echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4698echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4699if test "$ac_test_CXXFLAGS" = set; then
4700  CXXFLAGS=$ac_save_CXXFLAGS
4701elif test $ac_cv_prog_cxx_g = yes; then
4702  if test "$GXX" = yes; then
4703    CXXFLAGS="-g -O2"
4704  else
4705    CXXFLAGS="-g"
4706  fi
4707else
4708  if test "$GXX" = yes; then
4709    CXXFLAGS="-O2"
4710  else
4711    CXXFLAGS=
4712  fi
4713fi
4714for ac_declaration in \
4715   '' \
4716   'extern "C" void std::exit (int) throw (); using std::exit;' \
4717   'extern "C" void std::exit (int); using std::exit;' \
4718   'extern "C" void exit (int) throw ();' \
4719   'extern "C" void exit (int);' \
4720   'void exit (int);'
4721do
4722  cat >conftest.$ac_ext <<_ACEOF
4723/* confdefs.h.  */
4724_ACEOF
4725cat confdefs.h >>conftest.$ac_ext
4726cat >>conftest.$ac_ext <<_ACEOF
4727/* end confdefs.h.  */
4728$ac_declaration
4729#include <stdlib.h>
4730int
4731main ()
4732{
4733exit (42);
4734  ;
4735  return 0;
4736}
4737_ACEOF
4738rm -f conftest.$ac_objext
4739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740  (eval $ac_compile) 2>conftest.er1
4741  ac_status=$?
4742  grep -v '^ *+' conftest.er1 >conftest.err
4743  rm -f conftest.er1
4744  cat conftest.err >&5
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); } &&
4747	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749  (eval $ac_try) 2>&5
4750  ac_status=$?
4751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752  (exit $ac_status); }; } &&
4753	 { ac_try='test -s conftest.$ac_objext'
4754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755  (eval $ac_try) 2>&5
4756  ac_status=$?
4757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); }; }; then
4759  :
4760else
4761  echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4763
4764continue
4765fi
4766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767  cat >conftest.$ac_ext <<_ACEOF
4768/* confdefs.h.  */
4769_ACEOF
4770cat confdefs.h >>conftest.$ac_ext
4771cat >>conftest.$ac_ext <<_ACEOF
4772/* end confdefs.h.  */
4773$ac_declaration
4774int
4775main ()
4776{
4777exit (42);
4778  ;
4779  return 0;
4780}
4781_ACEOF
4782rm -f conftest.$ac_objext
4783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784  (eval $ac_compile) 2>conftest.er1
4785  ac_status=$?
4786  grep -v '^ *+' conftest.er1 >conftest.err
4787  rm -f conftest.er1
4788  cat conftest.err >&5
4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); } &&
4791	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793  (eval $ac_try) 2>&5
4794  ac_status=$?
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); }; } &&
4797	 { ac_try='test -s conftest.$ac_objext'
4798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799  (eval $ac_try) 2>&5
4800  ac_status=$?
4801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802  (exit $ac_status); }; }; then
4803  break
4804else
4805  echo "$as_me: failed program was:" >&5
4806sed 's/^/| /' conftest.$ac_ext >&5
4807
4808fi
4809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810done
4811rm -f conftest*
4812if test -n "$ac_declaration"; then
4813  echo '#ifdef __cplusplus' >>confdefs.h
4814  echo $ac_declaration      >>confdefs.h
4815  echo '#endif'             >>confdefs.h
4816fi
4817
4818ac_ext=cc
4819ac_cpp='$CXXCPP $CPPFLAGS'
4820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4823
4824depcc="$CXX"  am_compiler_list=
4825
4826echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4827echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4828if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4829  echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4832  # We make a subdir and do the tests there.  Otherwise we can end up
4833  # making bogus files that we don't know about and never remove.  For
4834  # instance it was reported that on HP-UX the gcc test will end up
4835  # making a dummy file named `D' -- because `-MD' means `put the output
4836  # in D'.
4837  mkdir conftest.dir
4838  # Copy depcomp to subdir because otherwise we won't find it if we're
4839  # using a relative directory.
4840  cp "$am_depcomp" conftest.dir
4841  cd conftest.dir
4842  # We will build objects and dependencies in a subdirectory because
4843  # it helps to detect inapplicable dependency modes.  For instance
4844  # both Tru64's cc and ICC support -MD to output dependencies as a
4845  # side effect of compilation, but ICC will put the dependencies in
4846  # the current directory while Tru64 will put them in the object
4847  # directory.
4848  mkdir sub
4849
4850  am_cv_CXX_dependencies_compiler_type=none
4851  if test "$am_compiler_list" = ""; then
4852     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4853  fi
4854  for depmode in $am_compiler_list; do
4855    # Setup a source with many dependencies, because some compilers
4856    # like to wrap large dependency lists on column 80 (with \), and
4857    # we should not choose a depcomp mode which is confused by this.
4858    #
4859    # We need to recreate these files for each test, as the compiler may
4860    # overwrite some of them when testing with obscure command lines.
4861    # This happens at least with the AIX C compiler.
4862    : > sub/conftest.c
4863    for i in 1 2 3 4 5 6; do
4864      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4865      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4866      # Solaris 8's {/usr,}/bin/sh.
4867      touch sub/conftst$i.h
4868    done
4869    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4870
4871    case $depmode in
4872    nosideeffect)
4873      # after this tag, mechanisms are not by side-effect, so they'll
4874      # only be used when explicitly requested
4875      if test "x$enable_dependency_tracking" = xyes; then
4876	continue
4877      else
4878	break
4879      fi
4880      ;;
4881    none) break ;;
4882    esac
4883    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4884    # mode.  It turns out that the SunPro C++ compiler does not properly
4885    # handle `-M -o', and we need to detect this.
4886    if depmode=$depmode \
4887       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4888       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4889       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4890         >/dev/null 2>conftest.err &&
4891       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4892       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4893       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4894      # icc doesn't choke on unknown options, it will just issue warnings
4895      # or remarks (even with -Werror).  So we grep stderr for any message
4896      # that says an option was ignored or not supported.
4897      # When given -MP, icc 7.0 and 7.1 complain thusly:
4898      #   icc: Command line warning: ignoring option '-M'; no argument required
4899      # The diagnosis changed in icc 8.0:
4900      #   icc: Command line remark: option '-MP' not supported
4901      if (grep 'ignoring option' conftest.err ||
4902          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4903        am_cv_CXX_dependencies_compiler_type=$depmode
4904        break
4905      fi
4906    fi
4907  done
4908
4909  cd ..
4910  rm -rf conftest.dir
4911else
4912  am_cv_CXX_dependencies_compiler_type=none
4913fi
4914
4915fi
4916echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4917echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4918CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4919
4920
4921
4922if
4923  test "x$enable_dependency_tracking" != xno \
4924  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4925  am__fastdepCXX_TRUE=
4926  am__fastdepCXX_FALSE='#'
4927else
4928  am__fastdepCXX_TRUE='#'
4929  am__fastdepCXX_FALSE=
4930fi
4931
4932
4933
4934
4935if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4936    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4937    (test "X$CXX" != "Xg++"))) ; then
4938  ac_ext=cc
4939ac_cpp='$CXXCPP $CPPFLAGS'
4940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4943echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4944echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4945if test -z "$CXXCPP"; then
4946  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4947  echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949      # Double quotes because CXXCPP needs to be expanded
4950    for CXXCPP in "$CXX -E" "/lib/cpp"
4951    do
4952      ac_preproc_ok=false
4953for ac_cxx_preproc_warn_flag in '' yes
4954do
4955  # Use a header file that comes with gcc, so configuring glibc
4956  # with a fresh cross-compiler works.
4957  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4958  # <limits.h> exists even on freestanding compilers.
4959  # On the NeXT, cc -E runs the code through the compiler's parser,
4960  # not just through cpp. "Syntax error" is here to catch this case.
4961  cat >conftest.$ac_ext <<_ACEOF
4962/* confdefs.h.  */
4963_ACEOF
4964cat confdefs.h >>conftest.$ac_ext
4965cat >>conftest.$ac_ext <<_ACEOF
4966/* end confdefs.h.  */
4967#ifdef __STDC__
4968# include <limits.h>
4969#else
4970# include <assert.h>
4971#endif
4972		     Syntax error
4973_ACEOF
4974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4975  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4976  ac_status=$?
4977  grep -v '^ *+' conftest.er1 >conftest.err
4978  rm -f conftest.er1
4979  cat conftest.err >&5
4980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981  (exit $ac_status); } >/dev/null; then
4982  if test -s conftest.err; then
4983    ac_cpp_err=$ac_cxx_preproc_warn_flag
4984    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4985  else
4986    ac_cpp_err=
4987  fi
4988else
4989  ac_cpp_err=yes
4990fi
4991if test -z "$ac_cpp_err"; then
4992  :
4993else
4994  echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
4997  # Broken: fails on valid input.
4998continue
4999fi
5000rm -f conftest.err conftest.$ac_ext
5001
5002  # OK, works on sane cases.  Now check whether non-existent headers
5003  # can be detected and how.
5004  cat >conftest.$ac_ext <<_ACEOF
5005/* confdefs.h.  */
5006_ACEOF
5007cat confdefs.h >>conftest.$ac_ext
5008cat >>conftest.$ac_ext <<_ACEOF
5009/* end confdefs.h.  */
5010#include <ac_nonexistent.h>
5011_ACEOF
5012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5013  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5014  ac_status=$?
5015  grep -v '^ *+' conftest.er1 >conftest.err
5016  rm -f conftest.er1
5017  cat conftest.err >&5
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); } >/dev/null; then
5020  if test -s conftest.err; then
5021    ac_cpp_err=$ac_cxx_preproc_warn_flag
5022    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5023  else
5024    ac_cpp_err=
5025  fi
5026else
5027  ac_cpp_err=yes
5028fi
5029if test -z "$ac_cpp_err"; then
5030  # Broken: success on invalid input.
5031continue
5032else
5033  echo "$as_me: failed program was:" >&5
5034sed 's/^/| /' conftest.$ac_ext >&5
5035
5036  # Passes both tests.
5037ac_preproc_ok=:
5038break
5039fi
5040rm -f conftest.err conftest.$ac_ext
5041
5042done
5043# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5044rm -f conftest.err conftest.$ac_ext
5045if $ac_preproc_ok; then
5046  break
5047fi
5048
5049    done
5050    ac_cv_prog_CXXCPP=$CXXCPP
5051
5052fi
5053  CXXCPP=$ac_cv_prog_CXXCPP
5054else
5055  ac_cv_prog_CXXCPP=$CXXCPP
5056fi
5057echo "$as_me:$LINENO: result: $CXXCPP" >&5
5058echo "${ECHO_T}$CXXCPP" >&6
5059ac_preproc_ok=false
5060for ac_cxx_preproc_warn_flag in '' yes
5061do
5062  # Use a header file that comes with gcc, so configuring glibc
5063  # with a fresh cross-compiler works.
5064  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065  # <limits.h> exists even on freestanding compilers.
5066  # On the NeXT, cc -E runs the code through the compiler's parser,
5067  # not just through cpp. "Syntax error" is here to catch this case.
5068  cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h.  */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h.  */
5074#ifdef __STDC__
5075# include <limits.h>
5076#else
5077# include <assert.h>
5078#endif
5079		     Syntax error
5080_ACEOF
5081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083  ac_status=$?
5084  grep -v '^ *+' conftest.er1 >conftest.err
5085  rm -f conftest.er1
5086  cat conftest.err >&5
5087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088  (exit $ac_status); } >/dev/null; then
5089  if test -s conftest.err; then
5090    ac_cpp_err=$ac_cxx_preproc_warn_flag
5091    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5092  else
5093    ac_cpp_err=
5094  fi
5095else
5096  ac_cpp_err=yes
5097fi
5098if test -z "$ac_cpp_err"; then
5099  :
5100else
5101  echo "$as_me: failed program was:" >&5
5102sed 's/^/| /' conftest.$ac_ext >&5
5103
5104  # Broken: fails on valid input.
5105continue
5106fi
5107rm -f conftest.err conftest.$ac_ext
5108
5109  # OK, works on sane cases.  Now check whether non-existent headers
5110  # can be detected and how.
5111  cat >conftest.$ac_ext <<_ACEOF
5112/* confdefs.h.  */
5113_ACEOF
5114cat confdefs.h >>conftest.$ac_ext
5115cat >>conftest.$ac_ext <<_ACEOF
5116/* end confdefs.h.  */
5117#include <ac_nonexistent.h>
5118_ACEOF
5119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5120  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5121  ac_status=$?
5122  grep -v '^ *+' conftest.er1 >conftest.err
5123  rm -f conftest.er1
5124  cat conftest.err >&5
5125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); } >/dev/null; then
5127  if test -s conftest.err; then
5128    ac_cpp_err=$ac_cxx_preproc_warn_flag
5129    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5130  else
5131    ac_cpp_err=
5132  fi
5133else
5134  ac_cpp_err=yes
5135fi
5136if test -z "$ac_cpp_err"; then
5137  # Broken: success on invalid input.
5138continue
5139else
5140  echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
5143  # Passes both tests.
5144ac_preproc_ok=:
5145break
5146fi
5147rm -f conftest.err conftest.$ac_ext
5148
5149done
5150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151rm -f conftest.err conftest.$ac_ext
5152if $ac_preproc_ok; then
5153  :
5154else
5155  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5156See \`config.log' for more details." >&5
5157echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5158See \`config.log' for more details." >&2;}
5159   { (exit 1); exit 1; }; }
5160fi
5161
5162ac_ext=cc
5163ac_cpp='$CXXCPP $CPPFLAGS'
5164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5167
5168fi
5169
5170
5171ac_ext=f
5172ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5173ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5175if test -n "$ac_tool_prefix"; then
5176  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5177  do
5178    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5180echo "$as_me:$LINENO: checking for $ac_word" >&5
5181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182if test "${ac_cv_prog_F77+set}" = set; then
5183  echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185  if test -n "$F77"; then
5186  ac_cv_prog_F77="$F77" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193  for ac_exec_ext in '' $ac_executable_extensions; do
5194  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200done
5201
5202fi
5203fi
5204F77=$ac_cv_prog_F77
5205if test -n "$F77"; then
5206  echo "$as_me:$LINENO: result: $F77" >&5
5207echo "${ECHO_T}$F77" >&6
5208else
5209  echo "$as_me:$LINENO: result: no" >&5
5210echo "${ECHO_T}no" >&6
5211fi
5212
5213    test -n "$F77" && break
5214  done
5215fi
5216if test -z "$F77"; then
5217  ac_ct_F77=$F77
5218  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5219do
5220  # Extract the first word of "$ac_prog", so it can be a program name with args.
5221set dummy $ac_prog; ac_word=$2
5222echo "$as_me:$LINENO: checking for $ac_word" >&5
5223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5225  echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227  if test -n "$ac_ct_F77"; then
5228  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233  IFS=$as_save_IFS
5234  test -z "$as_dir" && as_dir=.
5235  for ac_exec_ext in '' $ac_executable_extensions; do
5236  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237    ac_cv_prog_ac_ct_F77="$ac_prog"
5238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239    break 2
5240  fi
5241done
5242done
5243
5244fi
5245fi
5246ac_ct_F77=$ac_cv_prog_ac_ct_F77
5247if test -n "$ac_ct_F77"; then
5248  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5249echo "${ECHO_T}$ac_ct_F77" >&6
5250else
5251  echo "$as_me:$LINENO: result: no" >&5
5252echo "${ECHO_T}no" >&6
5253fi
5254
5255  test -n "$ac_ct_F77" && break
5256done
5257
5258  F77=$ac_ct_F77
5259fi
5260
5261
5262# Provide some information about the compiler.
5263echo "$as_me:5263:" \
5264     "checking for Fortran 77 compiler version" >&5
5265ac_compiler=`set X $ac_compile; echo $2`
5266{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5267  (eval $ac_compiler --version </dev/null >&5) 2>&5
5268  ac_status=$?
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); }
5271{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5272  (eval $ac_compiler -v </dev/null >&5) 2>&5
5273  ac_status=$?
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); }
5276{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5277  (eval $ac_compiler -V </dev/null >&5) 2>&5
5278  ac_status=$?
5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); }
5281rm -f a.out
5282
5283# If we don't use `.F' as extension, the preprocessor is not run on the
5284# input file.  (Note that this only needs to work for GNU compilers.)
5285ac_save_ext=$ac_ext
5286ac_ext=F
5287echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5288echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5289if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5290  echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292  cat >conftest.$ac_ext <<_ACEOF
5293      program main
5294#ifndef __GNUC__
5295       choke me
5296#endif
5297
5298      end
5299_ACEOF
5300rm -f conftest.$ac_objext
5301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302  (eval $ac_compile) 2>conftest.er1
5303  ac_status=$?
5304  grep -v '^ *+' conftest.er1 >conftest.err
5305  rm -f conftest.er1
5306  cat conftest.err >&5
5307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308  (exit $ac_status); } &&
5309	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311  (eval $ac_try) 2>&5
5312  ac_status=$?
5313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314  (exit $ac_status); }; } &&
5315	 { ac_try='test -s conftest.$ac_objext'
5316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317  (eval $ac_try) 2>&5
5318  ac_status=$?
5319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320  (exit $ac_status); }; }; then
5321  ac_compiler_gnu=yes
5322else
5323  echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326ac_compiler_gnu=no
5327fi
5328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5330
5331fi
5332echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5333echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5334ac_ext=$ac_save_ext
5335ac_test_FFLAGS=${FFLAGS+set}
5336ac_save_FFLAGS=$FFLAGS
5337FFLAGS=
5338echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5339echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5340if test "${ac_cv_prog_f77_g+set}" = set; then
5341  echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343  FFLAGS=-g
5344cat >conftest.$ac_ext <<_ACEOF
5345      program main
5346
5347      end
5348_ACEOF
5349rm -f conftest.$ac_objext
5350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351  (eval $ac_compile) 2>conftest.er1
5352  ac_status=$?
5353  grep -v '^ *+' conftest.er1 >conftest.err
5354  rm -f conftest.er1
5355  cat conftest.err >&5
5356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357  (exit $ac_status); } &&
5358	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360  (eval $ac_try) 2>&5
5361  ac_status=$?
5362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363  (exit $ac_status); }; } &&
5364	 { ac_try='test -s conftest.$ac_objext'
5365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366  (eval $ac_try) 2>&5
5367  ac_status=$?
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); }; }; then
5370  ac_cv_prog_f77_g=yes
5371else
5372  echo "$as_me: failed program was:" >&5
5373sed 's/^/| /' conftest.$ac_ext >&5
5374
5375ac_cv_prog_f77_g=no
5376fi
5377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5378
5379fi
5380echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5381echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5382if test "$ac_test_FFLAGS" = set; then
5383  FFLAGS=$ac_save_FFLAGS
5384elif test $ac_cv_prog_f77_g = yes; then
5385  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5386    FFLAGS="-g -O2"
5387  else
5388    FFLAGS="-g"
5389  fi
5390else
5391  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5392    FFLAGS="-O2"
5393  else
5394    FFLAGS=
5395  fi
5396fi
5397
5398G77=`test $ac_compiler_gnu = yes && echo yes`
5399ac_ext=c
5400ac_cpp='$CPP $CPPFLAGS'
5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404
5405
5406
5407# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5408
5409# find the maximum length of command line arguments
5410echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5411echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5412if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5413  echo $ECHO_N "(cached) $ECHO_C" >&6
5414else
5415    i=0
5416  teststring="ABCD"
5417
5418  case $build_os in
5419  msdosdjgpp*)
5420    # On DJGPP, this test can blow up pretty badly due to problems in libc
5421    # (any single argument exceeding 2000 bytes causes a buffer overrun
5422    # during glob expansion).  Even if it were fixed, the result of this
5423    # check would be larger than it should be.
5424    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5425    ;;
5426
5427  gnu*)
5428    # Under GNU Hurd, this test is not required because there is
5429    # no limit to the length of command line arguments.
5430    # Libtool will interpret -1 as no limit whatsoever
5431    lt_cv_sys_max_cmd_len=-1;
5432    ;;
5433
5434  cygwin* | mingw*)
5435    # On Win9x/ME, this test blows up -- it succeeds, but takes
5436    # about 5 minutes as the teststring grows exponentially.
5437    # Worse, since 9x/ME are not pre-emptively multitasking,
5438    # you end up with a "frozen" computer, even though with patience
5439    # the test eventually succeeds (with a max line length of 256k).
5440    # Instead, let's just punt: use the minimum linelength reported by
5441    # all of the supported platforms: 8192 (on NT/2K/XP).
5442    lt_cv_sys_max_cmd_len=8192;
5443    ;;
5444
5445  amigaos*)
5446    # On AmigaOS with pdksh, this test takes hours, literally.
5447    # So we just punt and use a minimum line length of 8192.
5448    lt_cv_sys_max_cmd_len=8192;
5449    ;;
5450
5451  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5452    # This has been around since 386BSD, at least.  Likely further.
5453    if test -x /sbin/sysctl; then
5454      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5455    elif test -x /usr/sbin/sysctl; then
5456      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5457    else
5458      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5459    fi
5460    # And add a safety zone
5461    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5462    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5463    ;;
5464  osf*)
5465    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5466    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5467    # nice to cause kernel panics so lets avoid the loop below.
5468    # First set a reasonable default.
5469    lt_cv_sys_max_cmd_len=16384
5470    #
5471    if test -x /sbin/sysconfig; then
5472      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5473        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5474      esac
5475    fi
5476    ;;
5477  *)
5478    # If test is not a shell built-in, we'll probably end up computing a
5479    # maximum length that is only half of the actual maximum length, but
5480    # we can't tell.
5481    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5482    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5483	       = "XX$teststring") >/dev/null 2>&1 &&
5484	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5485	    lt_cv_sys_max_cmd_len=$new_result &&
5486	    test $i != 17 # 1/2 MB should be enough
5487    do
5488      i=`expr $i + 1`
5489      teststring=$teststring$teststring
5490    done
5491    teststring=
5492    # Add a significant safety factor because C++ compilers can tack on massive
5493    # amounts of additional arguments before passing them to the linker.
5494    # It appears as though 1/2 is a usable value.
5495    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5496    ;;
5497  esac
5498
5499fi
5500
5501if test -n $lt_cv_sys_max_cmd_len ; then
5502  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5503echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5504else
5505  echo "$as_me:$LINENO: result: none" >&5
5506echo "${ECHO_T}none" >&6
5507fi
5508
5509
5510
5511
5512# Check for command to grab the raw symbol name followed by C symbol from nm.
5513echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5514echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5515if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5516  echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518
5519# These are sane defaults that work on at least a few old systems.
5520# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5521
5522# Character class describing NM global symbol codes.
5523symcode='[BCDEGRST]'
5524
5525# Regexp to match symbols that can be accessed directly from C.
5526sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5527
5528# Transform an extracted symbol line into a proper C declaration
5529lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5530
5531# Transform an extracted symbol line into symbol name and symbol address
5532lt_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'"
5533
5534# Define system-specific variables.
5535case $host_os in
5536aix*)
5537  symcode='[BCDT]'
5538  ;;
5539cygwin* | mingw* | pw32*)
5540  symcode='[ABCDGISTW]'
5541  ;;
5542hpux*) # Its linker distinguishes data from code symbols
5543  if test "$host_cpu" = ia64; then
5544    symcode='[ABCDEGRST]'
5545  fi
5546  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5547  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'"
5548  ;;
5549linux*)
5550  if test "$host_cpu" = ia64; then
5551    symcode='[ABCDGIRSTW]'
5552    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5553    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'"
5554  fi
5555  ;;
5556irix* | nonstopux*)
5557  symcode='[BCDEGRST]'
5558  ;;
5559osf*)
5560  symcode='[BCDEGQRST]'
5561  ;;
5562solaris* | sysv5*)
5563  symcode='[BDRT]'
5564  ;;
5565sysv4)
5566  symcode='[DFNSTU]'
5567  ;;
5568esac
5569
5570# Handle CRLF in mingw tool chain
5571opt_cr=
5572case $build_os in
5573mingw*)
5574  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5575  ;;
5576esac
5577
5578# If we're using GNU nm, then use its standard symbol codes.
5579case `$NM -V 2>&1` in
5580*GNU* | *'with BFD'*)
5581  symcode='[ABCDGIRSTW]' ;;
5582esac
5583
5584# Try without a prefix undercore, then with it.
5585for ac_symprfx in "" "_"; do
5586
5587  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5588  symxfrm="\\1 $ac_symprfx\\2 \\2"
5589
5590  # Write the raw and C identifiers.
5591  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5592
5593  # Check to see that the pipe works correctly.
5594  pipe_works=no
5595
5596  rm -f conftest*
5597  cat > conftest.$ac_ext <<EOF
5598#ifdef __cplusplus
5599extern "C" {
5600#endif
5601char nm_test_var;
5602void nm_test_func(){}
5603#ifdef __cplusplus
5604}
5605#endif
5606int main(){nm_test_var='a';nm_test_func();return(0);}
5607EOF
5608
5609  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610  (eval $ac_compile) 2>&5
5611  ac_status=$?
5612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613  (exit $ac_status); }; then
5614    # Now try to grab the symbols.
5615    nlist=conftest.nm
5616    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5617  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5618  ac_status=$?
5619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620  (exit $ac_status); } && test -s "$nlist"; then
5621      # Try sorting and uniquifying the output.
5622      if sort "$nlist" | uniq > "$nlist"T; then
5623	mv -f "$nlist"T "$nlist"
5624      else
5625	rm -f "$nlist"T
5626      fi
5627
5628      # Make sure that we snagged all the symbols we need.
5629      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5630	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5631	  cat <<EOF > conftest.$ac_ext
5632#ifdef __cplusplus
5633extern "C" {
5634#endif
5635
5636EOF
5637	  # Now generate the symbol file.
5638	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5639
5640	  cat <<EOF >> conftest.$ac_ext
5641#if defined (__STDC__) && __STDC__
5642# define lt_ptr_t void *
5643#else
5644# define lt_ptr_t char *
5645# define const
5646#endif
5647
5648/* The mapping between symbol names and symbols. */
5649const struct {
5650  const char *name;
5651  lt_ptr_t address;
5652}
5653lt_preloaded_symbols[] =
5654{
5655EOF
5656	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5657	  cat <<\EOF >> conftest.$ac_ext
5658  {0, (lt_ptr_t) 0}
5659};
5660
5661#ifdef __cplusplus
5662}
5663#endif
5664EOF
5665	  # Now try linking the two files.
5666	  mv conftest.$ac_objext conftstm.$ac_objext
5667	  lt_save_LIBS="$LIBS"
5668	  lt_save_CFLAGS="$CFLAGS"
5669	  LIBS="conftstm.$ac_objext"
5670	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5671	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672  (eval $ac_link) 2>&5
5673  ac_status=$?
5674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5676	    pipe_works=yes
5677	  fi
5678	  LIBS="$lt_save_LIBS"
5679	  CFLAGS="$lt_save_CFLAGS"
5680	else
5681	  echo "cannot find nm_test_func in $nlist" >&5
5682	fi
5683      else
5684	echo "cannot find nm_test_var in $nlist" >&5
5685      fi
5686    else
5687      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5688    fi
5689  else
5690    echo "$progname: failed program was:" >&5
5691    cat conftest.$ac_ext >&5
5692  fi
5693  rm -f conftest* conftst*
5694
5695  # Do not use the global_symbol_pipe unless it works.
5696  if test "$pipe_works" = yes; then
5697    break
5698  else
5699    lt_cv_sys_global_symbol_pipe=
5700  fi
5701done
5702
5703fi
5704
5705if test -z "$lt_cv_sys_global_symbol_pipe"; then
5706  lt_cv_sys_global_symbol_to_cdecl=
5707fi
5708if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5709  echo "$as_me:$LINENO: result: failed" >&5
5710echo "${ECHO_T}failed" >&6
5711else
5712  echo "$as_me:$LINENO: result: ok" >&5
5713echo "${ECHO_T}ok" >&6
5714fi
5715
5716echo "$as_me:$LINENO: checking for objdir" >&5
5717echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5718if test "${lt_cv_objdir+set}" = set; then
5719  echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721  rm -f .libs 2>/dev/null
5722mkdir .libs 2>/dev/null
5723if test -d .libs; then
5724  lt_cv_objdir=.libs
5725else
5726  # MS-DOS does not allow filenames that begin with a dot.
5727  lt_cv_objdir=_libs
5728fi
5729rmdir .libs 2>/dev/null
5730fi
5731echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5732echo "${ECHO_T}$lt_cv_objdir" >&6
5733objdir=$lt_cv_objdir
5734
5735
5736
5737
5738
5739case $host_os in
5740aix3*)
5741  # AIX sometimes has problems with the GCC collect2 program.  For some
5742  # reason, if we set the COLLECT_NAMES environment variable, the problems
5743  # vanish in a puff of smoke.
5744  if test "X${COLLECT_NAMES+set}" != Xset; then
5745    COLLECT_NAMES=
5746    export COLLECT_NAMES
5747  fi
5748  ;;
5749esac
5750
5751# Sed substitution that helps us do robust quoting.  It backslashifies
5752# metacharacters that are still active within double-quoted strings.
5753Xsed='sed -e 1s/^X//'
5754sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5755
5756# Same as above, but do not quote variable references.
5757double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5758
5759# Sed substitution to delay expansion of an escaped shell variable in a
5760# double_quote_subst'ed string.
5761delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5762
5763# Sed substitution to avoid accidental globbing in evaled expressions
5764no_glob_subst='s/\*/\\\*/g'
5765
5766# Constants:
5767rm="rm -f"
5768
5769# Global variables:
5770default_ofile=libtool
5771can_build_shared=yes
5772
5773# All known linkers require a `.a' archive for static linking (except MSVC,
5774# which needs '.lib').
5775libext=a
5776ltmain="$ac_aux_dir/ltmain.sh"
5777ofile="$default_ofile"
5778with_gnu_ld="$lt_cv_prog_gnu_ld"
5779
5780if test -n "$ac_tool_prefix"; then
5781  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5782set dummy ${ac_tool_prefix}ar; ac_word=$2
5783echo "$as_me:$LINENO: checking for $ac_word" >&5
5784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5785if test "${ac_cv_prog_AR+set}" = set; then
5786  echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788  if test -n "$AR"; then
5789  ac_cv_prog_AR="$AR" # Let the user override the test.
5790else
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794  IFS=$as_save_IFS
5795  test -z "$as_dir" && as_dir=.
5796  for ac_exec_ext in '' $ac_executable_extensions; do
5797  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798    ac_cv_prog_AR="${ac_tool_prefix}ar"
5799    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800    break 2
5801  fi
5802done
5803done
5804
5805fi
5806fi
5807AR=$ac_cv_prog_AR
5808if test -n "$AR"; then
5809  echo "$as_me:$LINENO: result: $AR" >&5
5810echo "${ECHO_T}$AR" >&6
5811else
5812  echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814fi
5815
5816fi
5817if test -z "$ac_cv_prog_AR"; then
5818  ac_ct_AR=$AR
5819  # Extract the first word of "ar", so it can be a program name with args.
5820set dummy ar; ac_word=$2
5821echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5824  echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826  if test -n "$ac_ct_AR"; then
5827  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832  IFS=$as_save_IFS
5833  test -z "$as_dir" && as_dir=.
5834  for ac_exec_ext in '' $ac_executable_extensions; do
5835  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836    ac_cv_prog_ac_ct_AR="ar"
5837    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841done
5842
5843  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5844fi
5845fi
5846ac_ct_AR=$ac_cv_prog_ac_ct_AR
5847if test -n "$ac_ct_AR"; then
5848  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5849echo "${ECHO_T}$ac_ct_AR" >&6
5850else
5851  echo "$as_me:$LINENO: result: no" >&5
5852echo "${ECHO_T}no" >&6
5853fi
5854
5855  AR=$ac_ct_AR
5856else
5857  AR="$ac_cv_prog_AR"
5858fi
5859
5860if test -n "$ac_tool_prefix"; then
5861  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5862set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5863echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865if test "${ac_cv_prog_RANLIB+set}" = set; then
5866  echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868  if test -n "$RANLIB"; then
5869  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874  IFS=$as_save_IFS
5875  test -z "$as_dir" && as_dir=.
5876  for ac_exec_ext in '' $ac_executable_extensions; do
5877  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880    break 2
5881  fi
5882done
5883done
5884
5885fi
5886fi
5887RANLIB=$ac_cv_prog_RANLIB
5888if test -n "$RANLIB"; then
5889  echo "$as_me:$LINENO: result: $RANLIB" >&5
5890echo "${ECHO_T}$RANLIB" >&6
5891else
5892  echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
5894fi
5895
5896fi
5897if test -z "$ac_cv_prog_RANLIB"; then
5898  ac_ct_RANLIB=$RANLIB
5899  # Extract the first word of "ranlib", so it can be a program name with args.
5900set dummy ranlib; ac_word=$2
5901echo "$as_me:$LINENO: checking for $ac_word" >&5
5902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5904  echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906  if test -n "$ac_ct_RANLIB"; then
5907  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912  IFS=$as_save_IFS
5913  test -z "$as_dir" && as_dir=.
5914  for ac_exec_ext in '' $ac_executable_extensions; do
5915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916    ac_cv_prog_ac_ct_RANLIB="ranlib"
5917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918    break 2
5919  fi
5920done
5921done
5922
5923  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5924fi
5925fi
5926ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5927if test -n "$ac_ct_RANLIB"; then
5928  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5929echo "${ECHO_T}$ac_ct_RANLIB" >&6
5930else
5931  echo "$as_me:$LINENO: result: no" >&5
5932echo "${ECHO_T}no" >&6
5933fi
5934
5935  RANLIB=$ac_ct_RANLIB
5936else
5937  RANLIB="$ac_cv_prog_RANLIB"
5938fi
5939
5940if test -n "$ac_tool_prefix"; then
5941  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5942set dummy ${ac_tool_prefix}strip; ac_word=$2
5943echo "$as_me:$LINENO: checking for $ac_word" >&5
5944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945if test "${ac_cv_prog_STRIP+set}" = set; then
5946  echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948  if test -n "$STRIP"; then
5949  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5950else
5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954  IFS=$as_save_IFS
5955  test -z "$as_dir" && as_dir=.
5956  for ac_exec_ext in '' $ac_executable_extensions; do
5957  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5959    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960    break 2
5961  fi
5962done
5963done
5964
5965fi
5966fi
5967STRIP=$ac_cv_prog_STRIP
5968if test -n "$STRIP"; then
5969  echo "$as_me:$LINENO: result: $STRIP" >&5
5970echo "${ECHO_T}$STRIP" >&6
5971else
5972  echo "$as_me:$LINENO: result: no" >&5
5973echo "${ECHO_T}no" >&6
5974fi
5975
5976fi
5977if test -z "$ac_cv_prog_STRIP"; then
5978  ac_ct_STRIP=$STRIP
5979  # Extract the first word of "strip", so it can be a program name with args.
5980set dummy strip; ac_word=$2
5981echo "$as_me:$LINENO: checking for $ac_word" >&5
5982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5983if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5984  echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986  if test -n "$ac_ct_STRIP"; then
5987  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5988else
5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH
5991do
5992  IFS=$as_save_IFS
5993  test -z "$as_dir" && as_dir=.
5994  for ac_exec_ext in '' $ac_executable_extensions; do
5995  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996    ac_cv_prog_ac_ct_STRIP="strip"
5997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998    break 2
5999  fi
6000done
6001done
6002
6003  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6004fi
6005fi
6006ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6007if test -n "$ac_ct_STRIP"; then
6008  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6009echo "${ECHO_T}$ac_ct_STRIP" >&6
6010else
6011  echo "$as_me:$LINENO: result: no" >&5
6012echo "${ECHO_T}no" >&6
6013fi
6014
6015  STRIP=$ac_ct_STRIP
6016else
6017  STRIP="$ac_cv_prog_STRIP"
6018fi
6019
6020
6021old_CC="$CC"
6022old_CFLAGS="$CFLAGS"
6023
6024# Set sane defaults for various variables
6025test -z "$AR" && AR=ar
6026test -z "$AR_FLAGS" && AR_FLAGS=cru
6027test -z "$AS" && AS=as
6028test -z "$CC" && CC=cc
6029test -z "$LTCC" && LTCC=$CC
6030test -z "$DLLTOOL" && DLLTOOL=dlltool
6031test -z "$LD" && LD=ld
6032test -z "$LN_S" && LN_S="ln -s"
6033test -z "$MAGIC_CMD" && MAGIC_CMD=file
6034test -z "$NM" && NM=nm
6035test -z "$SED" && SED=sed
6036test -z "$OBJDUMP" && OBJDUMP=objdump
6037test -z "$RANLIB" && RANLIB=:
6038test -z "$STRIP" && STRIP=:
6039test -z "$ac_objext" && ac_objext=o
6040
6041# Determine commands to create old-style static archives.
6042old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6043old_postinstall_cmds='chmod 644 $oldlib'
6044old_postuninstall_cmds=
6045
6046if test -n "$RANLIB"; then
6047  case $host_os in
6048  openbsd*)
6049    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6050    ;;
6051  *)
6052    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6053    ;;
6054  esac
6055  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6056fi
6057
6058for cc_temp in $compiler""; do
6059  case $cc_temp in
6060    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6061    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6062    \-*) ;;
6063    *) break;;
6064  esac
6065done
6066cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6067
6068
6069# Only perform the check for file, if the check method requires it
6070case $deplibs_check_method in
6071file_magic*)
6072  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6073    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6074echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6075if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6076  echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078  case $MAGIC_CMD in
6079[\\/*] |  ?:[\\/]*)
6080  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6081  ;;
6082*)
6083  lt_save_MAGIC_CMD="$MAGIC_CMD"
6084  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6085  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6086  for ac_dir in $ac_dummy; do
6087    IFS="$lt_save_ifs"
6088    test -z "$ac_dir" && ac_dir=.
6089    if test -f $ac_dir/${ac_tool_prefix}file; then
6090      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6091      if test -n "$file_magic_test_file"; then
6092	case $deplibs_check_method in
6093	"file_magic "*)
6094	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6095	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6096	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6097	    $EGREP "$file_magic_regex" > /dev/null; then
6098	    :
6099	  else
6100	    cat <<EOF 1>&2
6101
6102*** Warning: the command libtool uses to detect shared libraries,
6103*** $file_magic_cmd, produces output that libtool cannot recognize.
6104*** The result is that libtool may fail to recognize shared libraries
6105*** as such.  This will affect the creation of libtool libraries that
6106*** depend on shared libraries, but programs linked with such libtool
6107*** libraries will work regardless of this problem.  Nevertheless, you
6108*** may want to report the problem to your system manager and/or to
6109*** bug-libtool@gnu.org
6110
6111EOF
6112	  fi ;;
6113	esac
6114      fi
6115      break
6116    fi
6117  done
6118  IFS="$lt_save_ifs"
6119  MAGIC_CMD="$lt_save_MAGIC_CMD"
6120  ;;
6121esac
6122fi
6123
6124MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6125if test -n "$MAGIC_CMD"; then
6126  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6127echo "${ECHO_T}$MAGIC_CMD" >&6
6128else
6129  echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6
6131fi
6132
6133if test -z "$lt_cv_path_MAGIC_CMD"; then
6134  if test -n "$ac_tool_prefix"; then
6135    echo "$as_me:$LINENO: checking for file" >&5
6136echo $ECHO_N "checking for file... $ECHO_C" >&6
6137if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6138  echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
6140  case $MAGIC_CMD in
6141[\\/*] |  ?:[\\/]*)
6142  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6143  ;;
6144*)
6145  lt_save_MAGIC_CMD="$MAGIC_CMD"
6146  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6147  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6148  for ac_dir in $ac_dummy; do
6149    IFS="$lt_save_ifs"
6150    test -z "$ac_dir" && ac_dir=.
6151    if test -f $ac_dir/file; then
6152      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6153      if test -n "$file_magic_test_file"; then
6154	case $deplibs_check_method in
6155	"file_magic "*)
6156	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6157	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6158	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6159	    $EGREP "$file_magic_regex" > /dev/null; then
6160	    :
6161	  else
6162	    cat <<EOF 1>&2
6163
6164*** Warning: the command libtool uses to detect shared libraries,
6165*** $file_magic_cmd, produces output that libtool cannot recognize.
6166*** The result is that libtool may fail to recognize shared libraries
6167*** as such.  This will affect the creation of libtool libraries that
6168*** depend on shared libraries, but programs linked with such libtool
6169*** libraries will work regardless of this problem.  Nevertheless, you
6170*** may want to report the problem to your system manager and/or to
6171*** bug-libtool@gnu.org
6172
6173EOF
6174	  fi ;;
6175	esac
6176      fi
6177      break
6178    fi
6179  done
6180  IFS="$lt_save_ifs"
6181  MAGIC_CMD="$lt_save_MAGIC_CMD"
6182  ;;
6183esac
6184fi
6185
6186MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187if test -n "$MAGIC_CMD"; then
6188  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6189echo "${ECHO_T}$MAGIC_CMD" >&6
6190else
6191  echo "$as_me:$LINENO: result: no" >&5
6192echo "${ECHO_T}no" >&6
6193fi
6194
6195  else
6196    MAGIC_CMD=:
6197  fi
6198fi
6199
6200  fi
6201  ;;
6202esac
6203
6204enable_dlopen=no
6205enable_win32_dll=no
6206
6207# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6208if test "${enable_libtool_lock+set}" = set; then
6209  enableval="$enable_libtool_lock"
6210
6211fi;
6212test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6213
6214
6215# Check whether --with-pic or --without-pic was given.
6216if test "${with_pic+set}" = set; then
6217  withval="$with_pic"
6218  pic_mode="$withval"
6219else
6220  pic_mode=default
6221fi;
6222test -z "$pic_mode" && pic_mode=default
6223
6224# Use C for the default configuration in the libtool script
6225tagname=
6226lt_save_CC="$CC"
6227ac_ext=c
6228ac_cpp='$CPP $CPPFLAGS'
6229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6231ac_compiler_gnu=$ac_cv_c_compiler_gnu
6232
6233
6234# Source file extension for C test sources.
6235ac_ext=c
6236
6237# Object file extension for compiled C test sources.
6238objext=o
6239objext=$objext
6240
6241# Code to be used in simple compile tests
6242lt_simple_compile_test_code="int some_variable = 0;\n"
6243
6244# Code to be used in simple link tests
6245lt_simple_link_test_code='int main(){return(0);}\n'
6246
6247
6248# If no C compiler was specified, use CC.
6249LTCC=${LTCC-"$CC"}
6250
6251# Allow CC to be a program name with arguments.
6252compiler=$CC
6253
6254
6255# save warnings/boilerplate of simple test code
6256ac_outfile=conftest.$ac_objext
6257printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6258eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6259_lt_compiler_boilerplate=`cat conftest.err`
6260$rm conftest*
6261
6262ac_outfile=conftest.$ac_objext
6263printf "$lt_simple_link_test_code" >conftest.$ac_ext
6264eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6265_lt_linker_boilerplate=`cat conftest.err`
6266$rm conftest*
6267
6268
6269#
6270# Check for any special shared library compilation flags.
6271#
6272lt_prog_cc_shlib=
6273if test "$GCC" = no; then
6274  case $host_os in
6275  sco3.2v5*)
6276    lt_prog_cc_shlib='-belf'
6277    ;;
6278  esac
6279fi
6280if test -n "$lt_prog_cc_shlib"; then
6281  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6282echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6283  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6284  else
6285    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6286echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6287    lt_cv_prog_cc_can_build_shared=no
6288  fi
6289fi
6290
6291
6292#
6293# Check to make sure the static flag actually works.
6294#
6295echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6296echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6297if test "${lt_prog_compiler_static_works+set}" = set; then
6298  echo $ECHO_N "(cached) $ECHO_C" >&6
6299else
6300  lt_prog_compiler_static_works=no
6301   save_LDFLAGS="$LDFLAGS"
6302   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6303   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6304   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6305     # The linker can only warn and ignore the option if not recognized
6306     # So say no if there are warnings
6307     if test -s conftest.err; then
6308       # Append any errors to the config.log.
6309       cat conftest.err 1>&5
6310       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6311       $SED '/^$/d' conftest.err >conftest.er2
6312       if diff conftest.exp conftest.er2 >/dev/null; then
6313         lt_prog_compiler_static_works=yes
6314       fi
6315     else
6316       lt_prog_compiler_static_works=yes
6317     fi
6318   fi
6319   $rm conftest*
6320   LDFLAGS="$save_LDFLAGS"
6321
6322fi
6323echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6324echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6325
6326if test x"$lt_prog_compiler_static_works" = xyes; then
6327    :
6328else
6329    lt_prog_compiler_static=
6330fi
6331
6332
6333
6334
6335lt_prog_compiler_no_builtin_flag=
6336
6337if test "$GCC" = yes; then
6338  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6339
6340
6341echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6342echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6343if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6344  echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346  lt_cv_prog_compiler_rtti_exceptions=no
6347  ac_outfile=conftest.$ac_objext
6348   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6349   lt_compiler_flag="-fno-rtti -fno-exceptions"
6350   # Insert the option either (1) after the last *FLAGS variable, or
6351   # (2) before a word containing "conftest.", or (3) at the end.
6352   # Note that $ac_compile itself does not contain backslashes and begins
6353   # with a dollar sign (not a hyphen), so the echo should work correctly.
6354   # The option is referenced via a variable to avoid confusing sed.
6355   lt_compile=`echo "$ac_compile" | $SED \
6356   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6357   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6358   -e 's:$: $lt_compiler_flag:'`
6359   (eval echo "\"\$as_me:6359: $lt_compile\"" >&5)
6360   (eval "$lt_compile" 2>conftest.err)
6361   ac_status=$?
6362   cat conftest.err >&5
6363   echo "$as_me:6363: \$? = $ac_status" >&5
6364   if (exit $ac_status) && test -s "$ac_outfile"; then
6365     # The compiler can only warn and ignore the option if not recognized
6366     # So say no if there are warnings other than the usual output.
6367     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6368     $SED '/^$/d' conftest.err >conftest.er2
6369     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6370       lt_cv_prog_compiler_rtti_exceptions=yes
6371     fi
6372   fi
6373   $rm conftest*
6374
6375fi
6376echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6377echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6378
6379if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6380    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6381else
6382    :
6383fi
6384
6385fi
6386
6387lt_prog_compiler_wl=
6388lt_prog_compiler_pic=
6389lt_prog_compiler_static=
6390
6391echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6392echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6393
6394  if test "$GCC" = yes; then
6395    lt_prog_compiler_wl='-Wl,'
6396    lt_prog_compiler_static='-static'
6397
6398    case $host_os in
6399      aix*)
6400      # All AIX code is PIC.
6401      if test "$host_cpu" = ia64; then
6402	# AIX 5 now supports IA64 processor
6403	lt_prog_compiler_static='-Bstatic'
6404      fi
6405      ;;
6406
6407    amigaos*)
6408      # FIXME: we need at least 68020 code to build shared libraries, but
6409      # adding the `-m68020' flag to GCC prevents building anything better,
6410      # like `-m68040'.
6411      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6412      ;;
6413
6414    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6415      # PIC is the default for these OSes.
6416      ;;
6417
6418    mingw* | pw32* | os2*)
6419      # This hack is so that the source file can tell whether it is being
6420      # built for inclusion in a dll (and should export symbols for example).
6421      lt_prog_compiler_pic='-DDLL_EXPORT'
6422      ;;
6423
6424    darwin* | rhapsody*)
6425      # PIC is the default on this platform
6426      # Common symbols not allowed in MH_DYLIB files
6427      lt_prog_compiler_pic='-fno-common'
6428      ;;
6429
6430    msdosdjgpp*)
6431      # Just because we use GCC doesn't mean we suddenly get shared libraries
6432      # on systems that don't support them.
6433      lt_prog_compiler_can_build_shared=no
6434      enable_shared=no
6435      ;;
6436
6437    sysv4*MP*)
6438      if test -d /usr/nec; then
6439	lt_prog_compiler_pic=-Kconform_pic
6440      fi
6441      ;;
6442
6443    hpux*)
6444      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6445      # not for PA HP-UX.
6446      case $host_cpu in
6447      hppa*64*|ia64*)
6448	# +Z the default
6449	;;
6450      *)
6451	lt_prog_compiler_pic='-fPIC'
6452	;;
6453      esac
6454      ;;
6455
6456    *)
6457      lt_prog_compiler_pic='-fPIC'
6458      ;;
6459    esac
6460  else
6461    # PORTME Check for flag to pass linker flags through the system compiler.
6462    case $host_os in
6463    aix*)
6464      lt_prog_compiler_wl='-Wl,'
6465      if test "$host_cpu" = ia64; then
6466	# AIX 5 now supports IA64 processor
6467	lt_prog_compiler_static='-Bstatic'
6468      else
6469	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6470      fi
6471      ;;
6472      darwin*)
6473        # PIC is the default on this platform
6474        # Common symbols not allowed in MH_DYLIB files
6475       case $cc_basename in
6476         xlc*)
6477         lt_prog_compiler_pic='-qnocommon'
6478         lt_prog_compiler_wl='-Wl,'
6479         ;;
6480       esac
6481       ;;
6482
6483    mingw* | pw32* | os2*)
6484      # This hack is so that the source file can tell whether it is being
6485      # built for inclusion in a dll (and should export symbols for example).
6486      lt_prog_compiler_pic='-DDLL_EXPORT'
6487      ;;
6488
6489    hpux9* | hpux10* | hpux11*)
6490      lt_prog_compiler_wl='-Wl,'
6491      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6492      # not for PA HP-UX.
6493      case $host_cpu in
6494      hppa*64*|ia64*)
6495	# +Z the default
6496	;;
6497      *)
6498	lt_prog_compiler_pic='+Z'
6499	;;
6500      esac
6501      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6502      lt_prog_compiler_static='${wl}-a ${wl}archive'
6503      ;;
6504
6505    irix5* | irix6* | nonstopux*)
6506      lt_prog_compiler_wl='-Wl,'
6507      # PIC (with -KPIC) is the default.
6508      lt_prog_compiler_static='-non_shared'
6509      ;;
6510
6511    newsos6)
6512      lt_prog_compiler_pic='-KPIC'
6513      lt_prog_compiler_static='-Bstatic'
6514      ;;
6515
6516    linux*)
6517      case $cc_basename in
6518      icc* | ecc*)
6519	lt_prog_compiler_wl='-Wl,'
6520	lt_prog_compiler_pic='-KPIC'
6521	lt_prog_compiler_static='-static'
6522        ;;
6523      pgcc* | pgf77* | pgf90* | pgf95*)
6524        # Portland Group compilers (*not* the Pentium gcc compiler,
6525	# which looks to be a dead project)
6526	lt_prog_compiler_wl='-Wl,'
6527	lt_prog_compiler_pic='-fpic'
6528	lt_prog_compiler_static='-Bstatic'
6529        ;;
6530      ccc*)
6531        lt_prog_compiler_wl='-Wl,'
6532        # All Alpha code is PIC.
6533        lt_prog_compiler_static='-non_shared'
6534        ;;
6535      esac
6536      ;;
6537
6538    osf3* | osf4* | osf5*)
6539      lt_prog_compiler_wl='-Wl,'
6540      # All OSF/1 code is PIC.
6541      lt_prog_compiler_static='-non_shared'
6542      ;;
6543
6544    sco3.2v5*)
6545      lt_prog_compiler_pic='-Kpic'
6546      lt_prog_compiler_static='-dn'
6547      ;;
6548
6549    solaris*)
6550      lt_prog_compiler_pic='-KPIC'
6551      lt_prog_compiler_static='-Bstatic'
6552      case $cc_basename in
6553      f77* | f90* | f95*)
6554	lt_prog_compiler_wl='-Qoption ld ';;
6555      *)
6556	lt_prog_compiler_wl='-Wl,';;
6557      esac
6558      ;;
6559
6560    sunos4*)
6561      lt_prog_compiler_wl='-Qoption ld '
6562      lt_prog_compiler_pic='-PIC'
6563      lt_prog_compiler_static='-Bstatic'
6564      ;;
6565
6566    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6567      lt_prog_compiler_wl='-Wl,'
6568      lt_prog_compiler_pic='-KPIC'
6569      lt_prog_compiler_static='-Bstatic'
6570      ;;
6571
6572    sysv4*MP*)
6573      if test -d /usr/nec ;then
6574	lt_prog_compiler_pic='-Kconform_pic'
6575	lt_prog_compiler_static='-Bstatic'
6576      fi
6577      ;;
6578
6579    unicos*)
6580      lt_prog_compiler_wl='-Wl,'
6581      lt_prog_compiler_can_build_shared=no
6582      ;;
6583
6584    uts4*)
6585      lt_prog_compiler_pic='-pic'
6586      lt_prog_compiler_static='-Bstatic'
6587      ;;
6588
6589    *)
6590      lt_prog_compiler_can_build_shared=no
6591      ;;
6592    esac
6593  fi
6594
6595echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6596echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6597
6598#
6599# Check to make sure the PIC flag actually works.
6600#
6601if test -n "$lt_prog_compiler_pic"; then
6602
6603echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6604echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6605if test "${lt_prog_compiler_pic_works+set}" = set; then
6606  echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608  lt_prog_compiler_pic_works=no
6609  ac_outfile=conftest.$ac_objext
6610   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6611   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6612   # Insert the option either (1) after the last *FLAGS variable, or
6613   # (2) before a word containing "conftest.", or (3) at the end.
6614   # Note that $ac_compile itself does not contain backslashes and begins
6615   # with a dollar sign (not a hyphen), so the echo should work correctly.
6616   # The option is referenced via a variable to avoid confusing sed.
6617   lt_compile=`echo "$ac_compile" | $SED \
6618   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6619   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6620   -e 's:$: $lt_compiler_flag:'`
6621   (eval echo "\"\$as_me:6621: $lt_compile\"" >&5)
6622   (eval "$lt_compile" 2>conftest.err)
6623   ac_status=$?
6624   cat conftest.err >&5
6625   echo "$as_me:6625: \$? = $ac_status" >&5
6626   if (exit $ac_status) && test -s "$ac_outfile"; then
6627     # The compiler can only warn and ignore the option if not recognized
6628     # So say no if there are warnings other than the usual output.
6629     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6630     $SED '/^$/d' conftest.err >conftest.er2
6631     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6632       lt_prog_compiler_pic_works=yes
6633     fi
6634   fi
6635   $rm conftest*
6636
6637fi
6638echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6639echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6640
6641if test x"$lt_prog_compiler_pic_works" = xyes; then
6642    case $lt_prog_compiler_pic in
6643     "" | " "*) ;;
6644     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6645     esac
6646else
6647    lt_prog_compiler_pic=
6648     lt_prog_compiler_can_build_shared=no
6649fi
6650
6651fi
6652case $host_os in
6653  # For platforms which do not support PIC, -DPIC is meaningless:
6654  *djgpp*)
6655    lt_prog_compiler_pic=
6656    ;;
6657  *)
6658    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6659    ;;
6660esac
6661
6662echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6663echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6664if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6665  echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667  lt_cv_prog_compiler_c_o=no
6668   $rm -r conftest 2>/dev/null
6669   mkdir conftest
6670   cd conftest
6671   mkdir out
6672   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6673
6674   lt_compiler_flag="-o out/conftest2.$ac_objext"
6675   # Insert the option either (1) after the last *FLAGS variable, or
6676   # (2) before a word containing "conftest.", or (3) at the end.
6677   # Note that $ac_compile itself does not contain backslashes and begins
6678   # with a dollar sign (not a hyphen), so the echo should work correctly.
6679   lt_compile=`echo "$ac_compile" | $SED \
6680   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6681   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6682   -e 's:$: $lt_compiler_flag:'`
6683   (eval echo "\"\$as_me:6683: $lt_compile\"" >&5)
6684   (eval "$lt_compile" 2>out/conftest.err)
6685   ac_status=$?
6686   cat out/conftest.err >&5
6687   echo "$as_me:6687: \$? = $ac_status" >&5
6688   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6689   then
6690     # The compiler can only warn and ignore the option if not recognized
6691     # So say no if there are warnings
6692     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6693     $SED '/^$/d' out/conftest.err >out/conftest.er2
6694     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6695       lt_cv_prog_compiler_c_o=yes
6696     fi
6697   fi
6698   chmod u+w . 2>&5
6699   $rm conftest*
6700   # SGI C++ compiler will create directory out/ii_files/ for
6701   # template instantiation
6702   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6703   $rm out/* && rmdir out
6704   cd ..
6705   rmdir conftest
6706   $rm conftest*
6707
6708fi
6709echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6710echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6711
6712
6713hard_links="nottested"
6714if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6715  # do not overwrite the value of need_locks provided by the user
6716  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6717echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6718  hard_links=yes
6719  $rm conftest*
6720  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6721  touch conftest.a
6722  ln conftest.a conftest.b 2>&5 || hard_links=no
6723  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6724  echo "$as_me:$LINENO: result: $hard_links" >&5
6725echo "${ECHO_T}$hard_links" >&6
6726  if test "$hard_links" = no; then
6727    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6728echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6729    need_locks=warn
6730  fi
6731else
6732  need_locks=no
6733fi
6734
6735echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6736echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6737
6738  runpath_var=
6739  allow_undefined_flag=
6740  enable_shared_with_static_runtimes=no
6741  archive_cmds=
6742  archive_expsym_cmds=
6743  old_archive_From_new_cmds=
6744  old_archive_from_expsyms_cmds=
6745  export_dynamic_flag_spec=
6746  whole_archive_flag_spec=
6747  thread_safe_flag_spec=
6748  hardcode_libdir_flag_spec=
6749  hardcode_libdir_flag_spec_ld=
6750  hardcode_libdir_separator=
6751  hardcode_direct=no
6752  hardcode_minus_L=no
6753  hardcode_shlibpath_var=unsupported
6754  link_all_deplibs=unknown
6755  hardcode_automatic=no
6756  module_cmds=
6757  module_expsym_cmds=
6758  always_export_symbols=no
6759  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6760  # include_expsyms should be a list of space-separated symbols to be *always*
6761  # included in the symbol list
6762  include_expsyms=
6763  # exclude_expsyms can be an extended regexp of symbols to exclude
6764  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6765  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6766  # as well as any symbol that contains `d'.
6767  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6768  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6769  # platforms (ab)use it in PIC code, but their linkers get confused if
6770  # the symbol is explicitly referenced.  Since portable code cannot
6771  # rely on this symbol name, it's probably fine to never include it in
6772  # preloaded symbol tables.
6773  extract_expsyms_cmds=
6774  # Just being paranoid about ensuring that cc_basename is set.
6775  for cc_temp in $compiler""; do
6776  case $cc_temp in
6777    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6778    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6779    \-*) ;;
6780    *) break;;
6781  esac
6782done
6783cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6784
6785  case $host_os in
6786  cygwin* | mingw* | pw32*)
6787    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6788    # When not using gcc, we currently assume that we are using
6789    # Microsoft Visual C++.
6790    if test "$GCC" != yes; then
6791      with_gnu_ld=no
6792    fi
6793    ;;
6794  openbsd*)
6795    with_gnu_ld=no
6796    ;;
6797  esac
6798
6799  ld_shlibs=yes
6800  if test "$with_gnu_ld" = yes; then
6801    # If archive_cmds runs LD, not CC, wlarc should be empty
6802    wlarc='${wl}'
6803
6804    # Set some defaults for GNU ld with shared library support. These
6805    # are reset later if shared libraries are not supported. Putting them
6806    # here allows them to be overridden if necessary.
6807    runpath_var=LD_RUN_PATH
6808    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6809    export_dynamic_flag_spec='${wl}--export-dynamic'
6810    # ancient GNU ld didn't support --whole-archive et. al.
6811    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6812	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6813      else
6814  	whole_archive_flag_spec=
6815    fi
6816    supports_anon_versioning=no
6817    case `$LD -v 2>/dev/null` in
6818      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6819      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6820      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6821      *\ 2.11.*) ;; # other 2.11 versions
6822      *) supports_anon_versioning=yes ;;
6823    esac
6824
6825    # See if GNU ld supports shared libraries.
6826    case $host_os in
6827    aix3* | aix4* | aix5*)
6828      # On AIX/PPC, the GNU linker is very broken
6829      if test "$host_cpu" != ia64; then
6830	ld_shlibs=no
6831	cat <<EOF 1>&2
6832
6833*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6834*** to be unable to reliably create shared libraries on AIX.
6835*** Therefore, libtool is disabling shared libraries support.  If you
6836*** really care for shared libraries, you may want to modify your PATH
6837*** so that a non-GNU linker is found, and then restart.
6838
6839EOF
6840      fi
6841      ;;
6842
6843    amigaos*)
6844      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)'
6845      hardcode_libdir_flag_spec='-L$libdir'
6846      hardcode_minus_L=yes
6847
6848      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6849      # that the semantics of dynamic libraries on AmigaOS, at least up
6850      # to version 4, is to share data among multiple programs linked
6851      # with the same dynamic library.  Since this doesn't match the
6852      # behavior of shared libraries on other platforms, we can't use
6853      # them.
6854      ld_shlibs=no
6855      ;;
6856
6857    beos*)
6858      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6859	allow_undefined_flag=unsupported
6860	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6861	# support --undefined.  This deserves some investigation.  FIXME
6862	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6863      else
6864	ld_shlibs=no
6865      fi
6866      ;;
6867
6868    cygwin* | mingw* | pw32*)
6869      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6870      # as there is no search path for DLLs.
6871      hardcode_libdir_flag_spec='-L$libdir'
6872      allow_undefined_flag=unsupported
6873      always_export_symbols=no
6874      enable_shared_with_static_runtimes=yes
6875      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6876
6877      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6878        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6879	# If the export-symbols file already is a .def file (1st line
6880	# is EXPORTS), use it as is; otherwise, prepend...
6881	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6882	  cp $export_symbols $output_objdir/$soname.def;
6883	else
6884	  echo EXPORTS > $output_objdir/$soname.def;
6885	  cat $export_symbols >> $output_objdir/$soname.def;
6886	fi~
6887	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6888      else
6889	ld_shlibs=no
6890      fi
6891      ;;
6892
6893    linux*)
6894      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6895	tmp_addflag=
6896	case $cc_basename,$host_cpu in
6897	pgcc*)				# Portland Group C compiler
6898	  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'
6899	  tmp_addflag=' $pic_flag'
6900	  ;;
6901	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6902	  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'
6903	  tmp_addflag=' $pic_flag -Mnomain' ;;
6904	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6905	  tmp_addflag=' -i_dynamic' ;;
6906	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6907	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6908	ifc* | ifort*)			# Intel Fortran compiler
6909	  tmp_addflag=' -nofor_main' ;;
6910	esac
6911	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6912
6913	if test $supports_anon_versioning = yes; then
6914	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6915  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6916  $echo "local: *; };" >> $output_objdir/$libname.ver~
6917	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6918	fi
6919	link_all_deplibs=no
6920      else
6921	ld_shlibs=no
6922      fi
6923      ;;
6924
6925    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6926      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6927	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6928	wlarc=
6929      else
6930	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6931	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6932      fi
6933      ;;
6934
6935    solaris* | sysv5*)
6936      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6937	ld_shlibs=no
6938	cat <<EOF 1>&2
6939
6940*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6941*** create shared libraries on Solaris systems.  Therefore, libtool
6942*** is disabling shared libraries support.  We urge you to upgrade GNU
6943*** binutils to release 2.9.1 or newer.  Another option is to modify
6944*** your PATH or compiler configuration so that the native linker is
6945*** used, and then restart.
6946
6947EOF
6948      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6949	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6950	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6951      else
6952	ld_shlibs=no
6953      fi
6954      ;;
6955
6956    sunos4*)
6957      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6958      wlarc=
6959      hardcode_direct=yes
6960      hardcode_shlibpath_var=no
6961      ;;
6962
6963    *)
6964      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6965	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6966	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6967      else
6968	ld_shlibs=no
6969      fi
6970      ;;
6971    esac
6972
6973    if test "$ld_shlibs" = no; then
6974      runpath_var=
6975      hardcode_libdir_flag_spec=
6976      export_dynamic_flag_spec=
6977      whole_archive_flag_spec=
6978    fi
6979  else
6980    # PORTME fill in a description of your system's linker (not GNU ld)
6981    case $host_os in
6982    aix3*)
6983      allow_undefined_flag=unsupported
6984      always_export_symbols=yes
6985      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'
6986      # Note: this linker hardcodes the directories in LIBPATH if there
6987      # are no directories specified by -L.
6988      hardcode_minus_L=yes
6989      if test "$GCC" = yes && test -z "$link_static_flag"; then
6990	# Neither direct hardcoding nor static linking is supported with a
6991	# broken collect2.
6992	hardcode_direct=unsupported
6993      fi
6994      ;;
6995
6996    aix4* | aix5*)
6997      if test "$host_cpu" = ia64; then
6998	# On IA64, the linker does run time linking by default, so we don't
6999	# have to do anything special.
7000	aix_use_runtimelinking=no
7001	exp_sym_flag='-Bexport'
7002	no_entry_flag=""
7003      else
7004	# If we're using GNU nm, then we don't want the "-C" option.
7005	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7006	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7007	  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'
7008	else
7009	  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'
7010	fi
7011	aix_use_runtimelinking=no
7012
7013	# Test if we are trying to use run time linking or normal
7014	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7015	# need to do runtime linking.
7016	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7017	  for ld_flag in $LDFLAGS; do
7018  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7019  	    aix_use_runtimelinking=yes
7020  	    break
7021  	  fi
7022	  done
7023	esac
7024
7025	exp_sym_flag='-bexport'
7026	no_entry_flag='-bnoentry'
7027      fi
7028
7029      # When large executables or shared objects are built, AIX ld can
7030      # have problems creating the table of contents.  If linking a library
7031      # or program results in "error TOC overflow" add -mminimal-toc to
7032      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7033      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7034
7035      archive_cmds=''
7036      hardcode_direct=yes
7037      hardcode_libdir_separator=':'
7038      link_all_deplibs=yes
7039
7040      if test "$GCC" = yes; then
7041	case $host_os in aix4.[012]|aix4.[012].*)
7042	# We only want to do this on AIX 4.2 and lower, the check
7043	# below for broken collect2 doesn't work under 4.3+
7044	  collect2name=`${CC} -print-prog-name=collect2`
7045	  if test -f "$collect2name" && \
7046  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7047	  then
7048  	  # We have reworked collect2
7049  	  hardcode_direct=yes
7050	  else
7051  	  # We have old collect2
7052  	  hardcode_direct=unsupported
7053  	  # It fails to find uninstalled libraries when the uninstalled
7054  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7055  	  # to unsupported forces relinking
7056  	  hardcode_minus_L=yes
7057  	  hardcode_libdir_flag_spec='-L$libdir'
7058  	  hardcode_libdir_separator=
7059	  fi
7060	esac
7061	shared_flag='-shared'
7062	if test "$aix_use_runtimelinking" = yes; then
7063	  shared_flag="$shared_flag "'${wl}-G'
7064	fi
7065      else
7066	# not using gcc
7067	if test "$host_cpu" = ia64; then
7068  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7069  	# chokes on -Wl,-G. The following line is correct:
7070	  shared_flag='-G'
7071	else
7072  	if test "$aix_use_runtimelinking" = yes; then
7073	    shared_flag='${wl}-G'
7074	  else
7075	    shared_flag='${wl}-bM:SRE'
7076  	fi
7077	fi
7078      fi
7079
7080      # It seems that -bexpall does not export symbols beginning with
7081      # underscore (_), so it is better to generate a list of symbols to export.
7082      always_export_symbols=yes
7083      if test "$aix_use_runtimelinking" = yes; then
7084	# Warning - without using the other runtime loading flags (-brtl),
7085	# -berok will link without error, but may produce a broken library.
7086	allow_undefined_flag='-berok'
7087       # Determine the default libpath from the value encoded in an empty executable.
7088       cat >conftest.$ac_ext <<_ACEOF
7089/* confdefs.h.  */
7090_ACEOF
7091cat confdefs.h >>conftest.$ac_ext
7092cat >>conftest.$ac_ext <<_ACEOF
7093/* end confdefs.h.  */
7094
7095int
7096main ()
7097{
7098
7099  ;
7100  return 0;
7101}
7102_ACEOF
7103rm -f conftest.$ac_objext conftest$ac_exeext
7104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7105  (eval $ac_link) 2>conftest.er1
7106  ac_status=$?
7107  grep -v '^ *+' conftest.er1 >conftest.err
7108  rm -f conftest.er1
7109  cat conftest.err >&5
7110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111  (exit $ac_status); } &&
7112	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114  (eval $ac_try) 2>&5
7115  ac_status=$?
7116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117  (exit $ac_status); }; } &&
7118	 { ac_try='test -s conftest$ac_exeext'
7119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120  (eval $ac_try) 2>&5
7121  ac_status=$?
7122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123  (exit $ac_status); }; }; then
7124
7125aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7126}'`
7127# Check for a 64-bit object if we didn't find anything.
7128if 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; }
7129}'`; fi
7130else
7131  echo "$as_me: failed program was:" >&5
7132sed 's/^/| /' conftest.$ac_ext >&5
7133
7134fi
7135rm -f conftest.err conftest.$ac_objext \
7136      conftest$ac_exeext conftest.$ac_ext
7137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7138
7139       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7140	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7141       else
7142	if test "$host_cpu" = ia64; then
7143	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7144	  allow_undefined_flag="-z nodefs"
7145	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7146	else
7147	 # Determine the default libpath from the value encoded in an empty executable.
7148	 cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h.  */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h.  */
7154
7155int
7156main ()
7157{
7158
7159  ;
7160  return 0;
7161}
7162_ACEOF
7163rm -f conftest.$ac_objext conftest$ac_exeext
7164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165  (eval $ac_link) 2>conftest.er1
7166  ac_status=$?
7167  grep -v '^ *+' conftest.er1 >conftest.err
7168  rm -f conftest.er1
7169  cat conftest.err >&5
7170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171  (exit $ac_status); } &&
7172	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174  (eval $ac_try) 2>&5
7175  ac_status=$?
7176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177  (exit $ac_status); }; } &&
7178	 { ac_try='test -s conftest$ac_exeext'
7179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180  (eval $ac_try) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); }; }; then
7184
7185aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7186}'`
7187# Check for a 64-bit object if we didn't find anything.
7188if 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; }
7189}'`; fi
7190else
7191  echo "$as_me: failed program was:" >&5
7192sed 's/^/| /' conftest.$ac_ext >&5
7193
7194fi
7195rm -f conftest.err conftest.$ac_objext \
7196      conftest$ac_exeext conftest.$ac_ext
7197if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7198
7199	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7200	  # Warning - without using the other run time loading flags,
7201	  # -berok will link without error, but may produce a broken library.
7202	  no_undefined_flag=' ${wl}-bernotok'
7203	  allow_undefined_flag=' ${wl}-berok'
7204	  # -bexpall does not export symbols beginning with underscore (_)
7205	  always_export_symbols=yes
7206	  # Exported symbols can be pulled into shared objects from archives
7207	  whole_archive_flag_spec=' '
7208	  archive_cmds_need_lc=yes
7209	  # This is similar to how AIX traditionally builds its shared libraries.
7210	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7211	fi
7212      fi
7213      ;;
7214
7215    amigaos*)
7216      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)'
7217      hardcode_libdir_flag_spec='-L$libdir'
7218      hardcode_minus_L=yes
7219      # see comment about different semantics on the GNU ld section
7220      ld_shlibs=no
7221      ;;
7222
7223    bsdi[45]*)
7224      export_dynamic_flag_spec=-rdynamic
7225      ;;
7226
7227    cygwin* | mingw* | pw32*)
7228      # When not using gcc, we currently assume that we are using
7229      # Microsoft Visual C++.
7230      # hardcode_libdir_flag_spec is actually meaningless, as there is
7231      # no search path for DLLs.
7232      hardcode_libdir_flag_spec=' '
7233      allow_undefined_flag=unsupported
7234      # Tell ltmain to make .lib files, not .a files.
7235      libext=lib
7236      # Tell ltmain to make .dll files, not .so files.
7237      shrext_cmds=".dll"
7238      # FIXME: Setting linknames here is a bad hack.
7239      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7240      # The linker will automatically build a .lib file if we build a DLL.
7241      old_archive_From_new_cmds='true'
7242      # FIXME: Should let the user specify the lib program.
7243      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7244      fix_srcfile_path='`cygpath -w "$srcfile"`'
7245      enable_shared_with_static_runtimes=yes
7246      ;;
7247
7248    darwin* | rhapsody*)
7249      case $host_os in
7250        rhapsody* | darwin1.[012])
7251         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7252         ;;
7253       *) # Darwin 1.3 on
7254         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7255           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7256         else
7257           case ${MACOSX_DEPLOYMENT_TARGET} in
7258             10.[012])
7259               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7260               ;;
7261             10.*)
7262               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7263               ;;
7264           esac
7265         fi
7266         ;;
7267      esac
7268      archive_cmds_need_lc=no
7269      hardcode_direct=no
7270      hardcode_automatic=yes
7271      hardcode_shlibpath_var=unsupported
7272      whole_archive_flag_spec=''
7273      link_all_deplibs=yes
7274    if test "$GCC" = yes ; then
7275    	output_verbose_link_cmd='echo'
7276        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7277      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7278      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7279      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}'
7280      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}'
7281    else
7282      case $cc_basename in
7283        xlc*)
7284         output_verbose_link_cmd='echo'
7285         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7286         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7287          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7288         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}'
7289          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}'
7290          ;;
7291       *)
7292         ld_shlibs=no
7293          ;;
7294      esac
7295    fi
7296      ;;
7297
7298    dgux*)
7299      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7300      hardcode_libdir_flag_spec='-L$libdir'
7301      hardcode_shlibpath_var=no
7302      ;;
7303
7304    freebsd1*)
7305      ld_shlibs=no
7306      ;;
7307
7308    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7309    # support.  Future versions do this automatically, but an explicit c++rt0.o
7310    # does not break anything, and helps significantly (at the cost of a little
7311    # extra space).
7312    freebsd2.2*)
7313      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7314      hardcode_libdir_flag_spec='-R$libdir'
7315      hardcode_direct=yes
7316      hardcode_shlibpath_var=no
7317      ;;
7318
7319    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7320    freebsd2*)
7321      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7322      hardcode_direct=yes
7323      hardcode_minus_L=yes
7324      hardcode_shlibpath_var=no
7325      ;;
7326
7327    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7328    freebsd* | kfreebsd*-gnu | dragonfly*)
7329      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7330      hardcode_libdir_flag_spec='-R$libdir'
7331      hardcode_direct=yes
7332      hardcode_shlibpath_var=no
7333      ;;
7334
7335    hpux9*)
7336      if test "$GCC" = yes; then
7337	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'
7338      else
7339	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'
7340      fi
7341      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7342      hardcode_libdir_separator=:
7343      hardcode_direct=yes
7344
7345      # hardcode_minus_L: Not really in the search PATH,
7346      # but as the default location of the library.
7347      hardcode_minus_L=yes
7348      export_dynamic_flag_spec='${wl}-E'
7349      ;;
7350
7351    hpux10* | hpux11*)
7352      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7353	case $host_cpu in
7354	hppa*64*|ia64*)
7355	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7356	  ;;
7357	*)
7358	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7359	  ;;
7360	esac
7361      else
7362	case $host_cpu in
7363	hppa*64*|ia64*)
7364	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7365	  ;;
7366	*)
7367	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7368	  ;;
7369	esac
7370      fi
7371      if test "$with_gnu_ld" = no; then
7372	case $host_cpu in
7373	hppa*64*)
7374	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7375	  hardcode_libdir_flag_spec_ld='+b $libdir'
7376	  hardcode_libdir_separator=:
7377	  hardcode_direct=no
7378	  hardcode_shlibpath_var=no
7379	  ;;
7380	ia64*)
7381	  hardcode_libdir_flag_spec='-L$libdir'
7382	  hardcode_direct=no
7383	  hardcode_shlibpath_var=no
7384
7385	  # hardcode_minus_L: Not really in the search PATH,
7386	  # but as the default location of the library.
7387	  hardcode_minus_L=yes
7388	  ;;
7389	*)
7390	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7391	  hardcode_libdir_separator=:
7392	  hardcode_direct=yes
7393	  export_dynamic_flag_spec='${wl}-E'
7394
7395	  # hardcode_minus_L: Not really in the search PATH,
7396	  # but as the default location of the library.
7397	  hardcode_minus_L=yes
7398	  ;;
7399	esac
7400      fi
7401      ;;
7402
7403    irix5* | irix6* | nonstopux*)
7404      if test "$GCC" = yes; then
7405	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'
7406      else
7407	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'
7408	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7409      fi
7410      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7411      hardcode_libdir_separator=:
7412      link_all_deplibs=yes
7413      ;;
7414
7415    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7416      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7417	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7418      else
7419	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7420      fi
7421      hardcode_libdir_flag_spec='-R$libdir'
7422      hardcode_direct=yes
7423      hardcode_shlibpath_var=no
7424      ;;
7425
7426    newsos6)
7427      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7428      hardcode_direct=yes
7429      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7430      hardcode_libdir_separator=:
7431      hardcode_shlibpath_var=no
7432      ;;
7433
7434    openbsd*)
7435      hardcode_direct=yes
7436      hardcode_shlibpath_var=no
7437      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7438	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7439	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7440	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7441	export_dynamic_flag_spec='${wl}-E'
7442      else
7443       case $host_os in
7444	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7445	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7446	   hardcode_libdir_flag_spec='-R$libdir'
7447	   ;;
7448	 *)
7449	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7450	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7451	   ;;
7452       esac
7453      fi
7454      ;;
7455
7456    os2*)
7457      hardcode_libdir_flag_spec='-L$libdir'
7458      hardcode_minus_L=yes
7459      allow_undefined_flag=unsupported
7460      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'
7461      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7462      ;;
7463
7464    osf3*)
7465      if test "$GCC" = yes; then
7466	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7467	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'
7468      else
7469	allow_undefined_flag=' -expect_unresolved \*'
7470	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'
7471      fi
7472      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7473      hardcode_libdir_separator=:
7474      ;;
7475
7476    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7477      if test "$GCC" = yes; then
7478	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7479	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'
7480	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7481      else
7482	allow_undefined_flag=' -expect_unresolved \*'
7483	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'
7484	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7485	$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'
7486
7487	# Both c and cxx compiler support -rpath directly
7488	hardcode_libdir_flag_spec='-rpath $libdir'
7489      fi
7490      hardcode_libdir_separator=:
7491      ;;
7492
7493    sco3.2v5*)
7494      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7495      hardcode_shlibpath_var=no
7496      export_dynamic_flag_spec='${wl}-Bexport'
7497      runpath_var=LD_RUN_PATH
7498      hardcode_runpath_var=yes
7499      ;;
7500
7501    solaris*)
7502      no_undefined_flag=' -z text'
7503      if test "$GCC" = yes; then
7504	wlarc='${wl}'
7505	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7506	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7507	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7508      else
7509	wlarc=''
7510	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7511	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7512  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7513      fi
7514      hardcode_libdir_flag_spec='-R$libdir'
7515      hardcode_shlibpath_var=no
7516      case $host_os in
7517      solaris2.[0-5] | solaris2.[0-5].*) ;;
7518      *)
7519 	# The compiler driver will combine linker options so we
7520 	# cannot just pass the convience library names through
7521 	# without $wl, iff we do not link with $LD.
7522 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7523 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7524 	case $wlarc in
7525 	'')
7526 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7527 	*)
7528 	  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' ;;
7529 	esac ;;
7530      esac
7531      link_all_deplibs=yes
7532      ;;
7533
7534    sunos4*)
7535      if test "x$host_vendor" = xsequent; then
7536	# Use $CC to link under sequent, because it throws in some extra .o
7537	# files that make .init and .fini sections work.
7538	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7539      else
7540	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7541      fi
7542      hardcode_libdir_flag_spec='-L$libdir'
7543      hardcode_direct=yes
7544      hardcode_minus_L=yes
7545      hardcode_shlibpath_var=no
7546      ;;
7547
7548    sysv4)
7549      case $host_vendor in
7550	sni)
7551	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7552	  hardcode_direct=yes # is this really true???
7553	;;
7554	siemens)
7555	  ## LD is ld it makes a PLAMLIB
7556	  ## CC just makes a GrossModule.
7557	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7558	  reload_cmds='$CC -r -o $output$reload_objs'
7559	  hardcode_direct=no
7560        ;;
7561	motorola)
7562	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7563	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7564	;;
7565      esac
7566      runpath_var='LD_RUN_PATH'
7567      hardcode_shlibpath_var=no
7568      ;;
7569
7570    sysv4.3*)
7571      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7572      hardcode_shlibpath_var=no
7573      export_dynamic_flag_spec='-Bexport'
7574      ;;
7575
7576    sysv4*MP*)
7577      if test -d /usr/nec; then
7578	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7579	hardcode_shlibpath_var=no
7580	runpath_var=LD_RUN_PATH
7581	hardcode_runpath_var=yes
7582	ld_shlibs=yes
7583      fi
7584      ;;
7585
7586    sysv4.2uw2*)
7587      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7588      hardcode_direct=yes
7589      hardcode_minus_L=no
7590      hardcode_shlibpath_var=no
7591      hardcode_runpath_var=yes
7592      runpath_var=LD_RUN_PATH
7593      ;;
7594
7595   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7596      no_undefined_flag='${wl}-z ${wl}text'
7597      if test "$GCC" = yes; then
7598	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7599      else
7600	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7601      fi
7602      runpath_var='LD_RUN_PATH'
7603      hardcode_shlibpath_var=no
7604      ;;
7605
7606    sysv5*)
7607      no_undefined_flag=' -z text'
7608      # $CC -shared without GNU ld will not create a library from C++
7609      # object files and a static libstdc++, better avoid it by now
7610      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7611      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7612  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7613      hardcode_libdir_flag_spec=
7614      hardcode_shlibpath_var=no
7615      runpath_var='LD_RUN_PATH'
7616      ;;
7617
7618    uts4*)
7619      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7620      hardcode_libdir_flag_spec='-L$libdir'
7621      hardcode_shlibpath_var=no
7622      ;;
7623
7624    *)
7625      ld_shlibs=no
7626      ;;
7627    esac
7628  fi
7629
7630echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7631echo "${ECHO_T}$ld_shlibs" >&6
7632test "$ld_shlibs" = no && can_build_shared=no
7633
7634variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7635if test "$GCC" = yes; then
7636  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7637fi
7638
7639#
7640# Do we need to explicitly link libc?
7641#
7642case "x$archive_cmds_need_lc" in
7643x|xyes)
7644  # Assume -lc should be added
7645  archive_cmds_need_lc=yes
7646
7647  if test "$enable_shared" = yes && test "$GCC" = yes; then
7648    case $archive_cmds in
7649    *'~'*)
7650      # FIXME: we may have to deal with multi-command sequences.
7651      ;;
7652    '$CC '*)
7653      # Test whether the compiler implicitly links with -lc since on some
7654      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7655      # to ld, don't add -lc before -lgcc.
7656      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7657echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7658      $rm conftest*
7659      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7660
7661      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7662  (eval $ac_compile) 2>&5
7663  ac_status=$?
7664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665  (exit $ac_status); } 2>conftest.err; then
7666        soname=conftest
7667        lib=conftest
7668        libobjs=conftest.$ac_objext
7669        deplibs=
7670        wl=$lt_prog_compiler_wl
7671        compiler_flags=-v
7672        linker_flags=-v
7673        verstring=
7674        output_objdir=.
7675        libname=conftest
7676        lt_save_allow_undefined_flag=$allow_undefined_flag
7677        allow_undefined_flag=
7678        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7679  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7680  ac_status=$?
7681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682  (exit $ac_status); }
7683        then
7684	  archive_cmds_need_lc=no
7685        else
7686	  archive_cmds_need_lc=yes
7687        fi
7688        allow_undefined_flag=$lt_save_allow_undefined_flag
7689      else
7690        cat conftest.err 1>&5
7691      fi
7692      $rm conftest*
7693      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7694echo "${ECHO_T}$archive_cmds_need_lc" >&6
7695      ;;
7696    esac
7697  fi
7698  ;;
7699esac
7700
7701echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7702echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7703library_names_spec=
7704libname_spec='lib$name'
7705soname_spec=
7706shrext_cmds=".so"
7707postinstall_cmds=
7708postuninstall_cmds=
7709finish_cmds=
7710finish_eval=
7711shlibpath_var=
7712shlibpath_overrides_runpath=unknown
7713version_type=none
7714dynamic_linker="$host_os ld.so"
7715sys_lib_dlsearch_path_spec="/lib /usr/lib"
7716if test "$GCC" = yes; then
7717  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7718  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7719    # if the path contains ";" then we assume it to be the separator
7720    # otherwise default to the standard path separator (i.e. ":") - it is
7721    # assumed that no part of a normal pathname contains ";" but that should
7722    # okay in the real world where ";" in dirpaths is itself problematic.
7723    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7724  else
7725    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7726  fi
7727else
7728  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7729fi
7730need_lib_prefix=unknown
7731hardcode_into_libs=no
7732
7733# when you set need_version to no, make sure it does not cause -set_version
7734# flags to be left without arguments
7735need_version=unknown
7736
7737case $host_os in
7738aix3*)
7739  version_type=linux
7740  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7741  shlibpath_var=LIBPATH
7742
7743  # AIX 3 has no versioning support, so we append a major version to the name.
7744  soname_spec='${libname}${release}${shared_ext}$major'
7745  ;;
7746
7747aix4* | aix5*)
7748  version_type=linux
7749  need_lib_prefix=no
7750  need_version=no
7751  hardcode_into_libs=yes
7752  if test "$host_cpu" = ia64; then
7753    # AIX 5 supports IA64
7754    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7755    shlibpath_var=LD_LIBRARY_PATH
7756  else
7757    # With GCC up to 2.95.x, collect2 would create an import file
7758    # for dependence libraries.  The import file would start with
7759    # the line `#! .'.  This would cause the generated library to
7760    # depend on `.', always an invalid library.  This was fixed in
7761    # development snapshots of GCC prior to 3.0.
7762    case $host_os in
7763      aix4 | aix4.[01] | aix4.[01].*)
7764      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7765	   echo ' yes '
7766	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7767	:
7768      else
7769	can_build_shared=no
7770      fi
7771      ;;
7772    esac
7773    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7774    # soname into executable. Probably we can add versioning support to
7775    # collect2, so additional links can be useful in future.
7776    if test "$aix_use_runtimelinking" = yes; then
7777      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7778      # instead of lib<name>.a to let people know that these are not
7779      # typical AIX shared libraries.
7780      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7781    else
7782      # We preserve .a as extension for shared libraries through AIX4.2
7783      # and later when we are not doing run time linking.
7784      library_names_spec='${libname}${release}.a $libname.a'
7785      soname_spec='${libname}${release}${shared_ext}$major'
7786    fi
7787    shlibpath_var=LIBPATH
7788  fi
7789  ;;
7790
7791amigaos*)
7792  library_names_spec='$libname.ixlibrary $libname.a'
7793  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7794  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'
7795  ;;
7796
7797beos*)
7798  library_names_spec='${libname}${shared_ext}'
7799  dynamic_linker="$host_os ld.so"
7800  shlibpath_var=LIBRARY_PATH
7801  ;;
7802
7803bsdi[45]*)
7804  version_type=linux
7805  need_version=no
7806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807  soname_spec='${libname}${release}${shared_ext}$major'
7808  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7809  shlibpath_var=LD_LIBRARY_PATH
7810  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7811  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7812  # the default ld.so.conf also contains /usr/contrib/lib and
7813  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7814  # libtool to hard-code these into programs
7815  ;;
7816
7817cygwin* | mingw* | pw32*)
7818  version_type=windows
7819  shrext_cmds=".dll"
7820  need_version=no
7821  need_lib_prefix=no
7822
7823  case $GCC,$host_os in
7824  yes,cygwin* | yes,mingw* | yes,pw32*)
7825    library_names_spec='$libname.dll.a'
7826    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7827    postinstall_cmds='base_file=`basename \${file}`~
7828      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7829      dldir=$destdir/`dirname \$dlpath`~
7830      test -d \$dldir || mkdir -p \$dldir~
7831      $install_prog $dir/$dlname \$dldir/$dlname~
7832      chmod a+x \$dldir/$dlname'
7833    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7834      dlpath=$dir/\$dldll~
7835       $rm \$dlpath'
7836    shlibpath_overrides_runpath=yes
7837
7838    case $host_os in
7839    cygwin*)
7840      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7841      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7842      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7843      ;;
7844    mingw*)
7845      # MinGW DLLs use traditional 'lib' prefix
7846      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7847      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7848      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7849        # It is most probably a Windows format PATH printed by
7850        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7851        # path with ; separators, and with drive letters. We can handle the
7852        # drive letters (cygwin fileutils understands them), so leave them,
7853        # especially as we might pass files found there to a mingw objdump,
7854        # which wouldn't understand a cygwinified path. Ahh.
7855        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7856      else
7857        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7858      fi
7859      ;;
7860    pw32*)
7861      # pw32 DLLs use 'pw' prefix rather than 'lib'
7862      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7863      ;;
7864    esac
7865    ;;
7866
7867  *)
7868    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7869    ;;
7870  esac
7871  dynamic_linker='Win32 ld.exe'
7872  # FIXME: first we should search . and the directory the executable is in
7873  shlibpath_var=PATH
7874  ;;
7875
7876darwin* | rhapsody*)
7877  dynamic_linker="$host_os dyld"
7878  version_type=darwin
7879  need_lib_prefix=no
7880  need_version=no
7881  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7882  soname_spec='${libname}${release}${major}$shared_ext'
7883  shlibpath_overrides_runpath=yes
7884  shlibpath_var=DYLD_LIBRARY_PATH
7885  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7886  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7887  if test "$GCC" = yes; then
7888    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"`
7889  else
7890    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7891  fi
7892  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7893  ;;
7894
7895dgux*)
7896  version_type=linux
7897  need_lib_prefix=no
7898  need_version=no
7899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7900  soname_spec='${libname}${release}${shared_ext}$major'
7901  shlibpath_var=LD_LIBRARY_PATH
7902  ;;
7903
7904freebsd1*)
7905  dynamic_linker=no
7906  ;;
7907
7908kfreebsd*-gnu)
7909  version_type=linux
7910  need_lib_prefix=no
7911  need_version=no
7912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7913  soname_spec='${libname}${release}${shared_ext}$major'
7914  shlibpath_var=LD_LIBRARY_PATH
7915  shlibpath_overrides_runpath=no
7916  hardcode_into_libs=yes
7917  dynamic_linker='GNU ld.so'
7918  ;;
7919
7920freebsd* | dragonfly*)
7921  # DragonFly does not have aout.  When/if they implement a new
7922  # versioning mechanism, adjust this.
7923  if test -x /usr/bin/objformat; then
7924    objformat=`/usr/bin/objformat`
7925  else
7926    case $host_os in
7927    freebsd[123]*) objformat=aout ;;
7928    *) objformat=elf ;;
7929    esac
7930  fi
7931  version_type=freebsd-$objformat
7932  case $version_type in
7933    freebsd-elf*)
7934      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7935      need_version=no
7936      need_lib_prefix=no
7937      ;;
7938    freebsd-*)
7939      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7940      need_version=yes
7941      ;;
7942  esac
7943  shlibpath_var=LD_LIBRARY_PATH
7944  case $host_os in
7945  freebsd2*)
7946    shlibpath_overrides_runpath=yes
7947    ;;
7948  freebsd3.[01]* | freebsdelf3.[01]*)
7949    shlibpath_overrides_runpath=yes
7950    hardcode_into_libs=yes
7951    ;;
7952  *) # from 3.2 on
7953    shlibpath_overrides_runpath=no
7954    hardcode_into_libs=yes
7955    ;;
7956  esac
7957  ;;
7958
7959gnu*)
7960  version_type=linux
7961  need_lib_prefix=no
7962  need_version=no
7963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7964  soname_spec='${libname}${release}${shared_ext}$major'
7965  shlibpath_var=LD_LIBRARY_PATH
7966  hardcode_into_libs=yes
7967  ;;
7968
7969hpux9* | hpux10* | hpux11*)
7970  # Give a soname corresponding to the major version so that dld.sl refuses to
7971  # link against other versions.
7972  version_type=sunos
7973  need_lib_prefix=no
7974  need_version=no
7975  case $host_cpu in
7976  ia64*)
7977    shrext_cmds='.so'
7978    hardcode_into_libs=yes
7979    dynamic_linker="$host_os dld.so"
7980    shlibpath_var=LD_LIBRARY_PATH
7981    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7982    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7983    soname_spec='${libname}${release}${shared_ext}$major'
7984    if test "X$HPUX_IA64_MODE" = X32; then
7985      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7986    else
7987      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7988    fi
7989    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7990    ;;
7991   hppa*64*)
7992     shrext_cmds='.sl'
7993     hardcode_into_libs=yes
7994     dynamic_linker="$host_os dld.sl"
7995     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7996     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998     soname_spec='${libname}${release}${shared_ext}$major'
7999     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8000     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8001     ;;
8002   *)
8003    shrext_cmds='.sl'
8004    dynamic_linker="$host_os dld.sl"
8005    shlibpath_var=SHLIB_PATH
8006    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8007    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008    soname_spec='${libname}${release}${shared_ext}$major'
8009    ;;
8010  esac
8011  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8012  postinstall_cmds='chmod 555 $lib'
8013  ;;
8014
8015irix5* | irix6* | nonstopux*)
8016  case $host_os in
8017    nonstopux*) version_type=nonstopux ;;
8018    *)
8019	if test "$lt_cv_prog_gnu_ld" = yes; then
8020		version_type=linux
8021	else
8022		version_type=irix
8023	fi ;;
8024  esac
8025  need_lib_prefix=no
8026  need_version=no
8027  soname_spec='${libname}${release}${shared_ext}$major'
8028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8029  case $host_os in
8030  irix5* | nonstopux*)
8031    libsuff= shlibsuff=
8032    ;;
8033  *)
8034    case $LD in # libtool.m4 will add one of these switches to LD
8035    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8036      libsuff= shlibsuff= libmagic=32-bit;;
8037    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8038      libsuff=32 shlibsuff=N32 libmagic=N32;;
8039    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8040      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8041    *) libsuff= shlibsuff= libmagic=never-match;;
8042    esac
8043    ;;
8044  esac
8045  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8046  shlibpath_overrides_runpath=no
8047  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8048  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8049  hardcode_into_libs=yes
8050  ;;
8051
8052# No shared lib support for Linux oldld, aout, or coff.
8053linux*oldld* | linux*aout* | linux*coff*)
8054  dynamic_linker=no
8055  ;;
8056
8057# This must be Linux ELF.
8058linux*)
8059  version_type=linux
8060  need_lib_prefix=no
8061  need_version=no
8062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8063  soname_spec='${libname}${release}${shared_ext}$major'
8064  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8065  shlibpath_var=LD_LIBRARY_PATH
8066  shlibpath_overrides_runpath=no
8067  # This implies no fast_install, which is unacceptable.
8068  # Some rework will be needed to allow for fast_install
8069  # before this can be enabled.
8070  hardcode_into_libs=yes
8071
8072  # Append ld.so.conf contents to the search path
8073  if test -f /etc/ld.so.conf; then
8074    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' ' '`
8075    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8076  fi
8077
8078  # We used to test for /lib/ld.so.1 and disable shared libraries on
8079  # powerpc, because MkLinux only supported shared libraries with the
8080  # GNU dynamic linker.  Since this was broken with cross compilers,
8081  # most powerpc-linux boxes support dynamic linking these days and
8082  # people can always --disable-shared, the test was removed, and we
8083  # assume the GNU/Linux dynamic linker is in use.
8084  dynamic_linker='GNU/Linux ld.so'
8085  ;;
8086
8087netbsdelf*-gnu)
8088  version_type=linux
8089  need_lib_prefix=no
8090  need_version=no
8091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8092  soname_spec='${libname}${release}${shared_ext}$major'
8093  shlibpath_var=LD_LIBRARY_PATH
8094  shlibpath_overrides_runpath=no
8095  hardcode_into_libs=yes
8096  dynamic_linker='NetBSD ld.elf_so'
8097  ;;
8098
8099knetbsd*-gnu)
8100  version_type=linux
8101  need_lib_prefix=no
8102  need_version=no
8103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8104  soname_spec='${libname}${release}${shared_ext}$major'
8105  shlibpath_var=LD_LIBRARY_PATH
8106  shlibpath_overrides_runpath=no
8107  hardcode_into_libs=yes
8108  dynamic_linker='GNU ld.so'
8109  ;;
8110
8111netbsd*)
8112  version_type=sunos
8113  need_lib_prefix=no
8114  need_version=no
8115  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8116    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8117    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8118    dynamic_linker='NetBSD (a.out) ld.so'
8119  else
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    dynamic_linker='NetBSD ld.elf_so'
8123  fi
8124  shlibpath_var=LD_LIBRARY_PATH
8125  shlibpath_overrides_runpath=yes
8126  hardcode_into_libs=yes
8127  ;;
8128
8129newsos6)
8130  version_type=linux
8131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8132  shlibpath_var=LD_LIBRARY_PATH
8133  shlibpath_overrides_runpath=yes
8134  ;;
8135
8136nto-qnx*)
8137  version_type=linux
8138  need_lib_prefix=no
8139  need_version=no
8140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8141  soname_spec='${libname}${release}${shared_ext}$major'
8142  shlibpath_var=LD_LIBRARY_PATH
8143  shlibpath_overrides_runpath=yes
8144  ;;
8145
8146openbsd*)
8147  version_type=sunos
8148  need_lib_prefix=no
8149  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8150  case $host_os in
8151    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8152    *)                         need_version=no  ;;
8153  esac
8154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8155  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8156  shlibpath_var=LD_LIBRARY_PATH
8157  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8158    case $host_os in
8159      openbsd2.[89] | openbsd2.[89].*)
8160	shlibpath_overrides_runpath=no
8161	;;
8162      *)
8163	shlibpath_overrides_runpath=yes
8164	;;
8165      esac
8166  else
8167    shlibpath_overrides_runpath=yes
8168  fi
8169  ;;
8170
8171os2*)
8172  libname_spec='$name'
8173  shrext_cmds=".dll"
8174  need_lib_prefix=no
8175  library_names_spec='$libname${shared_ext} $libname.a'
8176  dynamic_linker='OS/2 ld.exe'
8177  shlibpath_var=LIBPATH
8178  ;;
8179
8180osf3* | osf4* | osf5*)
8181  version_type=osf
8182  need_lib_prefix=no
8183  need_version=no
8184  soname_spec='${libname}${release}${shared_ext}$major'
8185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8186  shlibpath_var=LD_LIBRARY_PATH
8187  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8188  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8189  ;;
8190
8191sco3.2v5*)
8192  version_type=osf
8193  soname_spec='${libname}${release}${shared_ext}$major'
8194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8195  shlibpath_var=LD_LIBRARY_PATH
8196  ;;
8197
8198solaris*)
8199  version_type=linux
8200  need_lib_prefix=no
8201  need_version=no
8202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8203  soname_spec='${libname}${release}${shared_ext}$major'
8204  shlibpath_var=LD_LIBRARY_PATH
8205  shlibpath_overrides_runpath=yes
8206  hardcode_into_libs=yes
8207  # ldd complains unless libraries are executable
8208  postinstall_cmds='chmod +x $lib'
8209  ;;
8210
8211sunos4*)
8212  version_type=sunos
8213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8214  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8215  shlibpath_var=LD_LIBRARY_PATH
8216  shlibpath_overrides_runpath=yes
8217  if test "$with_gnu_ld" = yes; then
8218    need_lib_prefix=no
8219  fi
8220  need_version=yes
8221  ;;
8222
8223sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8224  version_type=linux
8225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8226  soname_spec='${libname}${release}${shared_ext}$major'
8227  shlibpath_var=LD_LIBRARY_PATH
8228  case $host_vendor in
8229    sni)
8230      shlibpath_overrides_runpath=no
8231      need_lib_prefix=no
8232      export_dynamic_flag_spec='${wl}-Blargedynsym'
8233      runpath_var=LD_RUN_PATH
8234      ;;
8235    siemens)
8236      need_lib_prefix=no
8237      ;;
8238    motorola)
8239      need_lib_prefix=no
8240      need_version=no
8241      shlibpath_overrides_runpath=no
8242      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8243      ;;
8244  esac
8245  ;;
8246
8247sysv4*MP*)
8248  if test -d /usr/nec ;then
8249    version_type=linux
8250    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8251    soname_spec='$libname${shared_ext}.$major'
8252    shlibpath_var=LD_LIBRARY_PATH
8253  fi
8254  ;;
8255
8256uts4*)
8257  version_type=linux
8258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8259  soname_spec='${libname}${release}${shared_ext}$major'
8260  shlibpath_var=LD_LIBRARY_PATH
8261  ;;
8262
8263*)
8264  dynamic_linker=no
8265  ;;
8266esac
8267echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8268echo "${ECHO_T}$dynamic_linker" >&6
8269test "$dynamic_linker" = no && can_build_shared=no
8270
8271echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8272echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8273hardcode_action=
8274if test -n "$hardcode_libdir_flag_spec" || \
8275   test -n "$runpath_var" || \
8276   test "X$hardcode_automatic" = "Xyes" ; then
8277
8278  # We can hardcode non-existant directories.
8279  if test "$hardcode_direct" != no &&
8280     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8281     # have to relink, otherwise we might link with an installed library
8282     # when we should be linking with a yet-to-be-installed one
8283     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8284     test "$hardcode_minus_L" != no; then
8285    # Linking always hardcodes the temporary library directory.
8286    hardcode_action=relink
8287  else
8288    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8289    hardcode_action=immediate
8290  fi
8291else
8292  # We cannot hardcode anything, or else we can only hardcode existing
8293  # directories.
8294  hardcode_action=unsupported
8295fi
8296echo "$as_me:$LINENO: result: $hardcode_action" >&5
8297echo "${ECHO_T}$hardcode_action" >&6
8298
8299if test "$hardcode_action" = relink; then
8300  # Fast installation is not supported
8301  enable_fast_install=no
8302elif test "$shlibpath_overrides_runpath" = yes ||
8303     test "$enable_shared" = no; then
8304  # Fast installation is not necessary
8305  enable_fast_install=needless
8306fi
8307
8308striplib=
8309old_striplib=
8310echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8311echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8312if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8313  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8314  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8315  echo "$as_me:$LINENO: result: yes" >&5
8316echo "${ECHO_T}yes" >&6
8317else
8318# FIXME - insert some real tests, host_os isn't really good enough
8319  case $host_os in
8320   darwin*)
8321       if test -n "$STRIP" ; then
8322         striplib="$STRIP -x"
8323         echo "$as_me:$LINENO: result: yes" >&5
8324echo "${ECHO_T}yes" >&6
8325       else
8326  echo "$as_me:$LINENO: result: no" >&5
8327echo "${ECHO_T}no" >&6
8328fi
8329       ;;
8330   *)
8331  echo "$as_me:$LINENO: result: no" >&5
8332echo "${ECHO_T}no" >&6
8333    ;;
8334  esac
8335fi
8336
8337if test "x$enable_dlopen" != xyes; then
8338  enable_dlopen=unknown
8339  enable_dlopen_self=unknown
8340  enable_dlopen_self_static=unknown
8341else
8342  lt_cv_dlopen=no
8343  lt_cv_dlopen_libs=
8344
8345  case $host_os in
8346  beos*)
8347    lt_cv_dlopen="load_add_on"
8348    lt_cv_dlopen_libs=
8349    lt_cv_dlopen_self=yes
8350    ;;
8351
8352  mingw* | pw32*)
8353    lt_cv_dlopen="LoadLibrary"
8354    lt_cv_dlopen_libs=
8355   ;;
8356
8357  cygwin*)
8358    lt_cv_dlopen="dlopen"
8359    lt_cv_dlopen_libs=
8360   ;;
8361
8362  darwin*)
8363  # if libdl is installed we need to link against it
8364    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8365echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8366if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8367  echo $ECHO_N "(cached) $ECHO_C" >&6
8368else
8369  ac_check_lib_save_LIBS=$LIBS
8370LIBS="-ldl  $LIBS"
8371cat >conftest.$ac_ext <<_ACEOF
8372/* confdefs.h.  */
8373_ACEOF
8374cat confdefs.h >>conftest.$ac_ext
8375cat >>conftest.$ac_ext <<_ACEOF
8376/* end confdefs.h.  */
8377
8378/* Override any gcc2 internal prototype to avoid an error.  */
8379#ifdef __cplusplus
8380extern "C"
8381#endif
8382/* We use char because int might match the return type of a gcc2
8383   builtin and then its argument prototype would still apply.  */
8384char dlopen ();
8385int
8386main ()
8387{
8388dlopen ();
8389  ;
8390  return 0;
8391}
8392_ACEOF
8393rm -f conftest.$ac_objext conftest$ac_exeext
8394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395  (eval $ac_link) 2>conftest.er1
8396  ac_status=$?
8397  grep -v '^ *+' conftest.er1 >conftest.err
8398  rm -f conftest.er1
8399  cat conftest.err >&5
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); } &&
8402	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404  (eval $ac_try) 2>&5
8405  ac_status=$?
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); }; } &&
8408	 { ac_try='test -s conftest$ac_exeext'
8409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410  (eval $ac_try) 2>&5
8411  ac_status=$?
8412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413  (exit $ac_status); }; }; then
8414  ac_cv_lib_dl_dlopen=yes
8415else
8416  echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419ac_cv_lib_dl_dlopen=no
8420fi
8421rm -f conftest.err conftest.$ac_objext \
8422      conftest$ac_exeext conftest.$ac_ext
8423LIBS=$ac_check_lib_save_LIBS
8424fi
8425echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8426echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8427if test $ac_cv_lib_dl_dlopen = yes; then
8428  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8429else
8430
8431    lt_cv_dlopen="dyld"
8432    lt_cv_dlopen_libs=
8433    lt_cv_dlopen_self=yes
8434
8435fi
8436
8437   ;;
8438
8439  *)
8440    echo "$as_me:$LINENO: checking for shl_load" >&5
8441echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8442if test "${ac_cv_func_shl_load+set}" = set; then
8443  echo $ECHO_N "(cached) $ECHO_C" >&6
8444else
8445  cat >conftest.$ac_ext <<_ACEOF
8446/* confdefs.h.  */
8447_ACEOF
8448cat confdefs.h >>conftest.$ac_ext
8449cat >>conftest.$ac_ext <<_ACEOF
8450/* end confdefs.h.  */
8451/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8452   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8453#define shl_load innocuous_shl_load
8454
8455/* System header to define __stub macros and hopefully few prototypes,
8456    which can conflict with char shl_load (); below.
8457    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8458    <limits.h> exists even on freestanding compilers.  */
8459
8460#ifdef __STDC__
8461# include <limits.h>
8462#else
8463# include <assert.h>
8464#endif
8465
8466#undef shl_load
8467
8468/* Override any gcc2 internal prototype to avoid an error.  */
8469#ifdef __cplusplus
8470extern "C"
8471{
8472#endif
8473/* We use char because int might match the return type of a gcc2
8474   builtin and then its argument prototype would still apply.  */
8475char shl_load ();
8476/* The GNU C library defines this for functions which it implements
8477    to always fail with ENOSYS.  Some functions are actually named
8478    something starting with __ and the normal name is an alias.  */
8479#if defined (__stub_shl_load) || defined (__stub___shl_load)
8480choke me
8481#else
8482char (*f) () = shl_load;
8483#endif
8484#ifdef __cplusplus
8485}
8486#endif
8487
8488int
8489main ()
8490{
8491return f != shl_load;
8492  ;
8493  return 0;
8494}
8495_ACEOF
8496rm -f conftest.$ac_objext conftest$ac_exeext
8497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8498  (eval $ac_link) 2>conftest.er1
8499  ac_status=$?
8500  grep -v '^ *+' conftest.er1 >conftest.err
8501  rm -f conftest.er1
8502  cat conftest.err >&5
8503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504  (exit $ac_status); } &&
8505	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507  (eval $ac_try) 2>&5
8508  ac_status=$?
8509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510  (exit $ac_status); }; } &&
8511	 { ac_try='test -s conftest$ac_exeext'
8512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513  (eval $ac_try) 2>&5
8514  ac_status=$?
8515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516  (exit $ac_status); }; }; then
8517  ac_cv_func_shl_load=yes
8518else
8519  echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
8522ac_cv_func_shl_load=no
8523fi
8524rm -f conftest.err conftest.$ac_objext \
8525      conftest$ac_exeext conftest.$ac_ext
8526fi
8527echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8528echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8529if test $ac_cv_func_shl_load = yes; then
8530  lt_cv_dlopen="shl_load"
8531else
8532  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8533echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8534if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8535  echo $ECHO_N "(cached) $ECHO_C" >&6
8536else
8537  ac_check_lib_save_LIBS=$LIBS
8538LIBS="-ldld  $LIBS"
8539cat >conftest.$ac_ext <<_ACEOF
8540/* confdefs.h.  */
8541_ACEOF
8542cat confdefs.h >>conftest.$ac_ext
8543cat >>conftest.$ac_ext <<_ACEOF
8544/* end confdefs.h.  */
8545
8546/* Override any gcc2 internal prototype to avoid an error.  */
8547#ifdef __cplusplus
8548extern "C"
8549#endif
8550/* We use char because int might match the return type of a gcc2
8551   builtin and then its argument prototype would still apply.  */
8552char shl_load ();
8553int
8554main ()
8555{
8556shl_load ();
8557  ;
8558  return 0;
8559}
8560_ACEOF
8561rm -f conftest.$ac_objext conftest$ac_exeext
8562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8563  (eval $ac_link) 2>conftest.er1
8564  ac_status=$?
8565  grep -v '^ *+' conftest.er1 >conftest.err
8566  rm -f conftest.er1
8567  cat conftest.err >&5
8568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569  (exit $ac_status); } &&
8570	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572  (eval $ac_try) 2>&5
8573  ac_status=$?
8574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575  (exit $ac_status); }; } &&
8576	 { ac_try='test -s conftest$ac_exeext'
8577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578  (eval $ac_try) 2>&5
8579  ac_status=$?
8580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581  (exit $ac_status); }; }; then
8582  ac_cv_lib_dld_shl_load=yes
8583else
8584  echo "$as_me: failed program was:" >&5
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
8587ac_cv_lib_dld_shl_load=no
8588fi
8589rm -f conftest.err conftest.$ac_objext \
8590      conftest$ac_exeext conftest.$ac_ext
8591LIBS=$ac_check_lib_save_LIBS
8592fi
8593echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8594echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8595if test $ac_cv_lib_dld_shl_load = yes; then
8596  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8597else
8598  echo "$as_me:$LINENO: checking for dlopen" >&5
8599echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8600if test "${ac_cv_func_dlopen+set}" = set; then
8601  echo $ECHO_N "(cached) $ECHO_C" >&6
8602else
8603  cat >conftest.$ac_ext <<_ACEOF
8604/* confdefs.h.  */
8605_ACEOF
8606cat confdefs.h >>conftest.$ac_ext
8607cat >>conftest.$ac_ext <<_ACEOF
8608/* end confdefs.h.  */
8609/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8610   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8611#define dlopen innocuous_dlopen
8612
8613/* System header to define __stub macros and hopefully few prototypes,
8614    which can conflict with char dlopen (); below.
8615    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8616    <limits.h> exists even on freestanding compilers.  */
8617
8618#ifdef __STDC__
8619# include <limits.h>
8620#else
8621# include <assert.h>
8622#endif
8623
8624#undef dlopen
8625
8626/* Override any gcc2 internal prototype to avoid an error.  */
8627#ifdef __cplusplus
8628extern "C"
8629{
8630#endif
8631/* We use char because int might match the return type of a gcc2
8632   builtin and then its argument prototype would still apply.  */
8633char dlopen ();
8634/* The GNU C library defines this for functions which it implements
8635    to always fail with ENOSYS.  Some functions are actually named
8636    something starting with __ and the normal name is an alias.  */
8637#if defined (__stub_dlopen) || defined (__stub___dlopen)
8638choke me
8639#else
8640char (*f) () = dlopen;
8641#endif
8642#ifdef __cplusplus
8643}
8644#endif
8645
8646int
8647main ()
8648{
8649return f != dlopen;
8650  ;
8651  return 0;
8652}
8653_ACEOF
8654rm -f conftest.$ac_objext conftest$ac_exeext
8655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8656  (eval $ac_link) 2>conftest.er1
8657  ac_status=$?
8658  grep -v '^ *+' conftest.er1 >conftest.err
8659  rm -f conftest.er1
8660  cat conftest.err >&5
8661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662  (exit $ac_status); } &&
8663	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665  (eval $ac_try) 2>&5
8666  ac_status=$?
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); }; } &&
8669	 { ac_try='test -s conftest$ac_exeext'
8670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671  (eval $ac_try) 2>&5
8672  ac_status=$?
8673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674  (exit $ac_status); }; }; then
8675  ac_cv_func_dlopen=yes
8676else
8677  echo "$as_me: failed program was:" >&5
8678sed 's/^/| /' conftest.$ac_ext >&5
8679
8680ac_cv_func_dlopen=no
8681fi
8682rm -f conftest.err conftest.$ac_objext \
8683      conftest$ac_exeext conftest.$ac_ext
8684fi
8685echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8686echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8687if test $ac_cv_func_dlopen = yes; then
8688  lt_cv_dlopen="dlopen"
8689else
8690  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8691echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8692if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8693  echo $ECHO_N "(cached) $ECHO_C" >&6
8694else
8695  ac_check_lib_save_LIBS=$LIBS
8696LIBS="-ldl  $LIBS"
8697cat >conftest.$ac_ext <<_ACEOF
8698/* confdefs.h.  */
8699_ACEOF
8700cat confdefs.h >>conftest.$ac_ext
8701cat >>conftest.$ac_ext <<_ACEOF
8702/* end confdefs.h.  */
8703
8704/* Override any gcc2 internal prototype to avoid an error.  */
8705#ifdef __cplusplus
8706extern "C"
8707#endif
8708/* We use char because int might match the return type of a gcc2
8709   builtin and then its argument prototype would still apply.  */
8710char dlopen ();
8711int
8712main ()
8713{
8714dlopen ();
8715  ;
8716  return 0;
8717}
8718_ACEOF
8719rm -f conftest.$ac_objext conftest$ac_exeext
8720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8721  (eval $ac_link) 2>conftest.er1
8722  ac_status=$?
8723  grep -v '^ *+' conftest.er1 >conftest.err
8724  rm -f conftest.er1
8725  cat conftest.err >&5
8726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727  (exit $ac_status); } &&
8728	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730  (eval $ac_try) 2>&5
8731  ac_status=$?
8732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733  (exit $ac_status); }; } &&
8734	 { ac_try='test -s conftest$ac_exeext'
8735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736  (eval $ac_try) 2>&5
8737  ac_status=$?
8738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739  (exit $ac_status); }; }; then
8740  ac_cv_lib_dl_dlopen=yes
8741else
8742  echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745ac_cv_lib_dl_dlopen=no
8746fi
8747rm -f conftest.err conftest.$ac_objext \
8748      conftest$ac_exeext conftest.$ac_ext
8749LIBS=$ac_check_lib_save_LIBS
8750fi
8751echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8752echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8753if test $ac_cv_lib_dl_dlopen = yes; then
8754  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8755else
8756  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8757echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8758if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8759  echo $ECHO_N "(cached) $ECHO_C" >&6
8760else
8761  ac_check_lib_save_LIBS=$LIBS
8762LIBS="-lsvld  $LIBS"
8763cat >conftest.$ac_ext <<_ACEOF
8764/* confdefs.h.  */
8765_ACEOF
8766cat confdefs.h >>conftest.$ac_ext
8767cat >>conftest.$ac_ext <<_ACEOF
8768/* end confdefs.h.  */
8769
8770/* Override any gcc2 internal prototype to avoid an error.  */
8771#ifdef __cplusplus
8772extern "C"
8773#endif
8774/* We use char because int might match the return type of a gcc2
8775   builtin and then its argument prototype would still apply.  */
8776char dlopen ();
8777int
8778main ()
8779{
8780dlopen ();
8781  ;
8782  return 0;
8783}
8784_ACEOF
8785rm -f conftest.$ac_objext conftest$ac_exeext
8786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8787  (eval $ac_link) 2>conftest.er1
8788  ac_status=$?
8789  grep -v '^ *+' conftest.er1 >conftest.err
8790  rm -f conftest.er1
8791  cat conftest.err >&5
8792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793  (exit $ac_status); } &&
8794	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796  (eval $ac_try) 2>&5
8797  ac_status=$?
8798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799  (exit $ac_status); }; } &&
8800	 { ac_try='test -s conftest$ac_exeext'
8801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802  (eval $ac_try) 2>&5
8803  ac_status=$?
8804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805  (exit $ac_status); }; }; then
8806  ac_cv_lib_svld_dlopen=yes
8807else
8808  echo "$as_me: failed program was:" >&5
8809sed 's/^/| /' conftest.$ac_ext >&5
8810
8811ac_cv_lib_svld_dlopen=no
8812fi
8813rm -f conftest.err conftest.$ac_objext \
8814      conftest$ac_exeext conftest.$ac_ext
8815LIBS=$ac_check_lib_save_LIBS
8816fi
8817echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8818echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8819if test $ac_cv_lib_svld_dlopen = yes; then
8820  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8821else
8822  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8823echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8824if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8825  echo $ECHO_N "(cached) $ECHO_C" >&6
8826else
8827  ac_check_lib_save_LIBS=$LIBS
8828LIBS="-ldld  $LIBS"
8829cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h.  */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h.  */
8835
8836/* Override any gcc2 internal prototype to avoid an error.  */
8837#ifdef __cplusplus
8838extern "C"
8839#endif
8840/* We use char because int might match the return type of a gcc2
8841   builtin and then its argument prototype would still apply.  */
8842char dld_link ();
8843int
8844main ()
8845{
8846dld_link ();
8847  ;
8848  return 0;
8849}
8850_ACEOF
8851rm -f conftest.$ac_objext conftest$ac_exeext
8852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853  (eval $ac_link) 2>conftest.er1
8854  ac_status=$?
8855  grep -v '^ *+' conftest.er1 >conftest.err
8856  rm -f conftest.er1
8857  cat conftest.err >&5
8858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859  (exit $ac_status); } &&
8860	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862  (eval $ac_try) 2>&5
8863  ac_status=$?
8864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865  (exit $ac_status); }; } &&
8866	 { ac_try='test -s conftest$ac_exeext'
8867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868  (eval $ac_try) 2>&5
8869  ac_status=$?
8870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871  (exit $ac_status); }; }; then
8872  ac_cv_lib_dld_dld_link=yes
8873else
8874  echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877ac_cv_lib_dld_dld_link=no
8878fi
8879rm -f conftest.err conftest.$ac_objext \
8880      conftest$ac_exeext conftest.$ac_ext
8881LIBS=$ac_check_lib_save_LIBS
8882fi
8883echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8884echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8885if test $ac_cv_lib_dld_dld_link = yes; then
8886  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8887fi
8888
8889
8890fi
8891
8892
8893fi
8894
8895
8896fi
8897
8898
8899fi
8900
8901
8902fi
8903
8904    ;;
8905  esac
8906
8907  if test "x$lt_cv_dlopen" != xno; then
8908    enable_dlopen=yes
8909  else
8910    enable_dlopen=no
8911  fi
8912
8913  case $lt_cv_dlopen in
8914  dlopen)
8915    save_CPPFLAGS="$CPPFLAGS"
8916    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8917
8918    save_LDFLAGS="$LDFLAGS"
8919    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8920
8921    save_LIBS="$LIBS"
8922    LIBS="$lt_cv_dlopen_libs $LIBS"
8923
8924    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8925echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8926if test "${lt_cv_dlopen_self+set}" = set; then
8927  echo $ECHO_N "(cached) $ECHO_C" >&6
8928else
8929  	  if test "$cross_compiling" = yes; then :
8930  lt_cv_dlopen_self=cross
8931else
8932  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8933  lt_status=$lt_dlunknown
8934  cat > conftest.$ac_ext <<EOF
8935#line 8935 "configure"
8936#include "confdefs.h"
8937
8938#if HAVE_DLFCN_H
8939#include <dlfcn.h>
8940#endif
8941
8942#include <stdio.h>
8943
8944#ifdef RTLD_GLOBAL
8945#  define LT_DLGLOBAL		RTLD_GLOBAL
8946#else
8947#  ifdef DL_GLOBAL
8948#    define LT_DLGLOBAL		DL_GLOBAL
8949#  else
8950#    define LT_DLGLOBAL		0
8951#  endif
8952#endif
8953
8954/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8955   find out it does not work in some platform. */
8956#ifndef LT_DLLAZY_OR_NOW
8957#  ifdef RTLD_LAZY
8958#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8959#  else
8960#    ifdef DL_LAZY
8961#      define LT_DLLAZY_OR_NOW		DL_LAZY
8962#    else
8963#      ifdef RTLD_NOW
8964#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8965#      else
8966#        ifdef DL_NOW
8967#          define LT_DLLAZY_OR_NOW	DL_NOW
8968#        else
8969#          define LT_DLLAZY_OR_NOW	0
8970#        endif
8971#      endif
8972#    endif
8973#  endif
8974#endif
8975
8976#ifdef __cplusplus
8977extern "C" void exit (int);
8978#endif
8979
8980void fnord() { int i=42;}
8981int main ()
8982{
8983  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8984  int status = $lt_dlunknown;
8985
8986  if (self)
8987    {
8988      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8989      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8990      /* dlclose (self); */
8991    }
8992
8993    exit (status);
8994}
8995EOF
8996  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997  (eval $ac_link) 2>&5
8998  ac_status=$?
8999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9001    (./conftest; exit; ) >&5 2>/dev/null
9002    lt_status=$?
9003    case x$lt_status in
9004      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9005      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9006      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9007    esac
9008  else :
9009    # compilation failed
9010    lt_cv_dlopen_self=no
9011  fi
9012fi
9013rm -fr conftest*
9014
9015
9016fi
9017echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9018echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9019
9020    if test "x$lt_cv_dlopen_self" = xyes; then
9021      LDFLAGS="$LDFLAGS $link_static_flag"
9022      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9023echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9024if test "${lt_cv_dlopen_self_static+set}" = set; then
9025  echo $ECHO_N "(cached) $ECHO_C" >&6
9026else
9027  	  if test "$cross_compiling" = yes; then :
9028  lt_cv_dlopen_self_static=cross
9029else
9030  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9031  lt_status=$lt_dlunknown
9032  cat > conftest.$ac_ext <<EOF
9033#line 9033 "configure"
9034#include "confdefs.h"
9035
9036#if HAVE_DLFCN_H
9037#include <dlfcn.h>
9038#endif
9039
9040#include <stdio.h>
9041
9042#ifdef RTLD_GLOBAL
9043#  define LT_DLGLOBAL		RTLD_GLOBAL
9044#else
9045#  ifdef DL_GLOBAL
9046#    define LT_DLGLOBAL		DL_GLOBAL
9047#  else
9048#    define LT_DLGLOBAL		0
9049#  endif
9050#endif
9051
9052/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9053   find out it does not work in some platform. */
9054#ifndef LT_DLLAZY_OR_NOW
9055#  ifdef RTLD_LAZY
9056#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9057#  else
9058#    ifdef DL_LAZY
9059#      define LT_DLLAZY_OR_NOW		DL_LAZY
9060#    else
9061#      ifdef RTLD_NOW
9062#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9063#      else
9064#        ifdef DL_NOW
9065#          define LT_DLLAZY_OR_NOW	DL_NOW
9066#        else
9067#          define LT_DLLAZY_OR_NOW	0
9068#        endif
9069#      endif
9070#    endif
9071#  endif
9072#endif
9073
9074#ifdef __cplusplus
9075extern "C" void exit (int);
9076#endif
9077
9078void fnord() { int i=42;}
9079int main ()
9080{
9081  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9082  int status = $lt_dlunknown;
9083
9084  if (self)
9085    {
9086      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9087      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9088      /* dlclose (self); */
9089    }
9090
9091    exit (status);
9092}
9093EOF
9094  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9095  (eval $ac_link) 2>&5
9096  ac_status=$?
9097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9099    (./conftest; exit; ) >&5 2>/dev/null
9100    lt_status=$?
9101    case x$lt_status in
9102      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9103      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9104      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9105    esac
9106  else :
9107    # compilation failed
9108    lt_cv_dlopen_self_static=no
9109  fi
9110fi
9111rm -fr conftest*
9112
9113
9114fi
9115echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9116echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9117    fi
9118
9119    CPPFLAGS="$save_CPPFLAGS"
9120    LDFLAGS="$save_LDFLAGS"
9121    LIBS="$save_LIBS"
9122    ;;
9123  esac
9124
9125  case $lt_cv_dlopen_self in
9126  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9127  *) enable_dlopen_self=unknown ;;
9128  esac
9129
9130  case $lt_cv_dlopen_self_static in
9131  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9132  *) enable_dlopen_self_static=unknown ;;
9133  esac
9134fi
9135
9136
9137# Report which librarie types wil actually be built
9138echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9139echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9140echo "$as_me:$LINENO: result: $can_build_shared" >&5
9141echo "${ECHO_T}$can_build_shared" >&6
9142
9143echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9144echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9145test "$can_build_shared" = "no" && enable_shared=no
9146
9147# On AIX, shared libraries and static libraries use the same namespace, and
9148# are all built from PIC.
9149case $host_os in
9150aix3*)
9151  test "$enable_shared" = yes && enable_static=no
9152  if test -n "$RANLIB"; then
9153    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9154    postinstall_cmds='$RANLIB $lib'
9155  fi
9156  ;;
9157
9158aix4* | aix5*)
9159  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9160    test "$enable_shared" = yes && enable_static=no
9161  fi
9162    ;;
9163esac
9164echo "$as_me:$LINENO: result: $enable_shared" >&5
9165echo "${ECHO_T}$enable_shared" >&6
9166
9167echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9168echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9169# Make sure either enable_shared or enable_static is yes.
9170test "$enable_shared" = yes || enable_static=yes
9171echo "$as_me:$LINENO: result: $enable_static" >&5
9172echo "${ECHO_T}$enable_static" >&6
9173
9174# The else clause should only fire when bootstrapping the
9175# libtool distribution, otherwise you forgot to ship ltmain.sh
9176# with your package, and you will get complaints that there are
9177# no rules to generate ltmain.sh.
9178if test -f "$ltmain"; then
9179  # See if we are running on zsh, and set the options which allow our commands through
9180  # without removal of \ escapes.
9181  if test -n "${ZSH_VERSION+set}" ; then
9182    setopt NO_GLOB_SUBST
9183  fi
9184  # Now quote all the things that may contain metacharacters while being
9185  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9186  # variables and quote the copies for generation of the libtool script.
9187  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9188    SED SHELL STRIP \
9189    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9190    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9191    deplibs_check_method reload_flag reload_cmds need_locks \
9192    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9193    lt_cv_sys_global_symbol_to_c_name_address \
9194    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9195    old_postinstall_cmds old_postuninstall_cmds \
9196    compiler \
9197    CC \
9198    LD \
9199    lt_prog_compiler_wl \
9200    lt_prog_compiler_pic \
9201    lt_prog_compiler_static \
9202    lt_prog_compiler_no_builtin_flag \
9203    export_dynamic_flag_spec \
9204    thread_safe_flag_spec \
9205    whole_archive_flag_spec \
9206    enable_shared_with_static_runtimes \
9207    old_archive_cmds \
9208    old_archive_from_new_cmds \
9209    predep_objects \
9210    postdep_objects \
9211    predeps \
9212    postdeps \
9213    compiler_lib_search_path \
9214    archive_cmds \
9215    archive_expsym_cmds \
9216    postinstall_cmds \
9217    postuninstall_cmds \
9218    old_archive_from_expsyms_cmds \
9219    allow_undefined_flag \
9220    no_undefined_flag \
9221    export_symbols_cmds \
9222    hardcode_libdir_flag_spec \
9223    hardcode_libdir_flag_spec_ld \
9224    hardcode_libdir_separator \
9225    hardcode_automatic \
9226    module_cmds \
9227    module_expsym_cmds \
9228    lt_cv_prog_compiler_c_o \
9229    exclude_expsyms \
9230    include_expsyms; do
9231
9232    case $var in
9233    old_archive_cmds | \
9234    old_archive_from_new_cmds | \
9235    archive_cmds | \
9236    archive_expsym_cmds | \
9237    module_cmds | \
9238    module_expsym_cmds | \
9239    old_archive_from_expsyms_cmds | \
9240    export_symbols_cmds | \
9241    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9242    postinstall_cmds | postuninstall_cmds | \
9243    old_postinstall_cmds | old_postuninstall_cmds | \
9244    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9245      # Double-quote double-evaled strings.
9246      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9247      ;;
9248    *)
9249      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9250      ;;
9251    esac
9252  done
9253
9254  case $lt_echo in
9255  *'\$0 --fallback-echo"')
9256    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9257    ;;
9258  esac
9259
9260cfgfile="${ofile}T"
9261  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9262  $rm -f "$cfgfile"
9263  { echo "$as_me:$LINENO: creating $ofile" >&5
9264echo "$as_me: creating $ofile" >&6;}
9265
9266  cat <<__EOF__ >> "$cfgfile"
9267#! $SHELL
9268
9269# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9270# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9271# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9272#
9273# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9274# Free Software Foundation, Inc.
9275#
9276# This file is part of GNU Libtool:
9277# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9278#
9279# This program is free software; you can redistribute it and/or modify
9280# it under the terms of the GNU General Public License as published by
9281# the Free Software Foundation; either version 2 of the License, or
9282# (at your option) any later version.
9283#
9284# This program is distributed in the hope that it will be useful, but
9285# WITHOUT ANY WARRANTY; without even the implied warranty of
9286# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9287# General Public License for more details.
9288#
9289# You should have received a copy of the GNU General Public License
9290# along with this program; if not, write to the Free Software
9291# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9292#
9293# As a special exception to the GNU General Public License, if you
9294# distribute this file as part of a program that contains a
9295# configuration script generated by Autoconf, you may include it under
9296# the same distribution terms that you use for the rest of that program.
9297
9298# A sed program that does not truncate output.
9299SED=$lt_SED
9300
9301# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9302Xsed="$SED -e 1s/^X//"
9303
9304# The HP-UX ksh and POSIX shell print the target directory to stdout
9305# if CDPATH is set.
9306(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9307
9308# The names of the tagged configurations supported by this script.
9309available_tags=
9310
9311# ### BEGIN LIBTOOL CONFIG
9312
9313# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9314
9315# Shell to use when invoking shell scripts.
9316SHELL=$lt_SHELL
9317
9318# Whether or not to build shared libraries.
9319build_libtool_libs=$enable_shared
9320
9321# Whether or not to build static libraries.
9322build_old_libs=$enable_static
9323
9324# Whether or not to add -lc for building shared libraries.
9325build_libtool_need_lc=$archive_cmds_need_lc
9326
9327# Whether or not to disallow shared libs when runtime libs are static
9328allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9329
9330# Whether or not to optimize for fast installation.
9331fast_install=$enable_fast_install
9332
9333# The host system.
9334host_alias=$host_alias
9335host=$host
9336host_os=$host_os
9337
9338# The build system.
9339build_alias=$build_alias
9340build=$build
9341build_os=$build_os
9342
9343# An echo program that does not interpret backslashes.
9344echo=$lt_echo
9345
9346# The archiver.
9347AR=$lt_AR
9348AR_FLAGS=$lt_AR_FLAGS
9349
9350# A C compiler.
9351LTCC=$lt_LTCC
9352
9353# A language-specific compiler.
9354CC=$lt_compiler
9355
9356# Is the compiler the GNU C compiler?
9357with_gcc=$GCC
9358
9359# An ERE matcher.
9360EGREP=$lt_EGREP
9361
9362# The linker used to build libraries.
9363LD=$lt_LD
9364
9365# Whether we need hard or soft links.
9366LN_S=$lt_LN_S
9367
9368# A BSD-compatible nm program.
9369NM=$lt_NM
9370
9371# A symbol stripping program
9372STRIP=$lt_STRIP
9373
9374# Used to examine libraries when file_magic_cmd begins "file"
9375MAGIC_CMD=$MAGIC_CMD
9376
9377# Used on cygwin: DLL creation program.
9378DLLTOOL="$DLLTOOL"
9379
9380# Used on cygwin: object dumper.
9381OBJDUMP="$OBJDUMP"
9382
9383# Used on cygwin: assembler.
9384AS="$AS"
9385
9386# The name of the directory that contains temporary libtool files.
9387objdir=$objdir
9388
9389# How to create reloadable object files.
9390reload_flag=$lt_reload_flag
9391reload_cmds=$lt_reload_cmds
9392
9393# How to pass a linker flag through the compiler.
9394wl=$lt_lt_prog_compiler_wl
9395
9396# Object file suffix (normally "o").
9397objext="$ac_objext"
9398
9399# Old archive suffix (normally "a").
9400libext="$libext"
9401
9402# Shared library suffix (normally ".so").
9403shrext_cmds='$shrext_cmds'
9404
9405# Executable file suffix (normally "").
9406exeext="$exeext"
9407
9408# Additional compiler flags for building library objects.
9409pic_flag=$lt_lt_prog_compiler_pic
9410pic_mode=$pic_mode
9411
9412# What is the maximum length of a command?
9413max_cmd_len=$lt_cv_sys_max_cmd_len
9414
9415# Does compiler simultaneously support -c and -o options?
9416compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9417
9418# Must we lock files when doing compilation?
9419need_locks=$lt_need_locks
9420
9421# Do we need the lib prefix for modules?
9422need_lib_prefix=$need_lib_prefix
9423
9424# Do we need a version for libraries?
9425need_version=$need_version
9426
9427# Whether dlopen is supported.
9428dlopen_support=$enable_dlopen
9429
9430# Whether dlopen of programs is supported.
9431dlopen_self=$enable_dlopen_self
9432
9433# Whether dlopen of statically linked programs is supported.
9434dlopen_self_static=$enable_dlopen_self_static
9435
9436# Compiler flag to prevent dynamic linking.
9437link_static_flag=$lt_lt_prog_compiler_static
9438
9439# Compiler flag to turn off builtin functions.
9440no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9441
9442# Compiler flag to allow reflexive dlopens.
9443export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9444
9445# Compiler flag to generate shared objects directly from archives.
9446whole_archive_flag_spec=$lt_whole_archive_flag_spec
9447
9448# Compiler flag to generate thread-safe objects.
9449thread_safe_flag_spec=$lt_thread_safe_flag_spec
9450
9451# Library versioning type.
9452version_type=$version_type
9453
9454# Format of library name prefix.
9455libname_spec=$lt_libname_spec
9456
9457# List of archive names.  First name is the real one, the rest are links.
9458# The last name is the one that the linker finds with -lNAME.
9459library_names_spec=$lt_library_names_spec
9460
9461# The coded name of the library, if different from the real name.
9462soname_spec=$lt_soname_spec
9463
9464# Commands used to build and install an old-style archive.
9465RANLIB=$lt_RANLIB
9466old_archive_cmds=$lt_old_archive_cmds
9467old_postinstall_cmds=$lt_old_postinstall_cmds
9468old_postuninstall_cmds=$lt_old_postuninstall_cmds
9469
9470# Create an old-style archive from a shared archive.
9471old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9472
9473# Create a temporary old-style archive to link instead of a shared archive.
9474old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9475
9476# Commands used to build and install a shared archive.
9477archive_cmds=$lt_archive_cmds
9478archive_expsym_cmds=$lt_archive_expsym_cmds
9479postinstall_cmds=$lt_postinstall_cmds
9480postuninstall_cmds=$lt_postuninstall_cmds
9481
9482# Commands used to build a loadable module (assumed same as above if empty)
9483module_cmds=$lt_module_cmds
9484module_expsym_cmds=$lt_module_expsym_cmds
9485
9486# Commands to strip libraries.
9487old_striplib=$lt_old_striplib
9488striplib=$lt_striplib
9489
9490# Dependencies to place before the objects being linked to create a
9491# shared library.
9492predep_objects=$lt_predep_objects
9493
9494# Dependencies to place after the objects being linked to create a
9495# shared library.
9496postdep_objects=$lt_postdep_objects
9497
9498# Dependencies to place before the objects being linked to create a
9499# shared library.
9500predeps=$lt_predeps
9501
9502# Dependencies to place after the objects being linked to create a
9503# shared library.
9504postdeps=$lt_postdeps
9505
9506# The library search path used internally by the compiler when linking
9507# a shared library.
9508compiler_lib_search_path=$lt_compiler_lib_search_path
9509
9510# Method to check whether dependent libraries are shared objects.
9511deplibs_check_method=$lt_deplibs_check_method
9512
9513# Command to use when deplibs_check_method == file_magic.
9514file_magic_cmd=$lt_file_magic_cmd
9515
9516# Flag that allows shared libraries with undefined symbols to be built.
9517allow_undefined_flag=$lt_allow_undefined_flag
9518
9519# Flag that forces no undefined symbols.
9520no_undefined_flag=$lt_no_undefined_flag
9521
9522# Commands used to finish a libtool library installation in a directory.
9523finish_cmds=$lt_finish_cmds
9524
9525# Same as above, but a single script fragment to be evaled but not shown.
9526finish_eval=$lt_finish_eval
9527
9528# Take the output of nm and produce a listing of raw symbols and C names.
9529global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9530
9531# Transform the output of nm in a proper C declaration
9532global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9533
9534# Transform the output of nm in a C name address pair
9535global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9536
9537# This is the shared library runtime path variable.
9538runpath_var=$runpath_var
9539
9540# This is the shared library path variable.
9541shlibpath_var=$shlibpath_var
9542
9543# Is shlibpath searched before the hard-coded library search path?
9544shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9545
9546# How to hardcode a shared library path into an executable.
9547hardcode_action=$hardcode_action
9548
9549# Whether we should hardcode library paths into libraries.
9550hardcode_into_libs=$hardcode_into_libs
9551
9552# Flag to hardcode \$libdir into a binary during linking.
9553# This must work even if \$libdir does not exist.
9554hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9555
9556# If ld is used when linking, flag to hardcode \$libdir into
9557# a binary during linking. This must work even if \$libdir does
9558# not exist.
9559hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9560
9561# Whether we need a single -rpath flag with a separated argument.
9562hardcode_libdir_separator=$lt_hardcode_libdir_separator
9563
9564# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9565# resulting binary.
9566hardcode_direct=$hardcode_direct
9567
9568# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9569# resulting binary.
9570hardcode_minus_L=$hardcode_minus_L
9571
9572# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9573# the resulting binary.
9574hardcode_shlibpath_var=$hardcode_shlibpath_var
9575
9576# Set to yes if building a shared library automatically hardcodes DIR into the library
9577# and all subsequent libraries and executables linked against it.
9578hardcode_automatic=$hardcode_automatic
9579
9580# Variables whose values should be saved in libtool wrapper scripts and
9581# restored at relink time.
9582variables_saved_for_relink="$variables_saved_for_relink"
9583
9584# Whether libtool must link a program against all its dependency libraries.
9585link_all_deplibs=$link_all_deplibs
9586
9587# Compile-time system search path for libraries
9588sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9589
9590# Run-time system search path for libraries
9591sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9592
9593# Fix the shell variable \$srcfile for the compiler.
9594fix_srcfile_path="$fix_srcfile_path"
9595
9596# Set to yes if exported symbols are required.
9597always_export_symbols=$always_export_symbols
9598
9599# The commands to list exported symbols.
9600export_symbols_cmds=$lt_export_symbols_cmds
9601
9602# The commands to extract the exported symbol list from a shared archive.
9603extract_expsyms_cmds=$lt_extract_expsyms_cmds
9604
9605# Symbols that should not be listed in the preloaded symbols.
9606exclude_expsyms=$lt_exclude_expsyms
9607
9608# Symbols that must always be exported.
9609include_expsyms=$lt_include_expsyms
9610
9611# ### END LIBTOOL CONFIG
9612
9613__EOF__
9614
9615
9616  case $host_os in
9617  aix3*)
9618    cat <<\EOF >> "$cfgfile"
9619
9620# AIX sometimes has problems with the GCC collect2 program.  For some
9621# reason, if we set the COLLECT_NAMES environment variable, the problems
9622# vanish in a puff of smoke.
9623if test "X${COLLECT_NAMES+set}" != Xset; then
9624  COLLECT_NAMES=
9625  export COLLECT_NAMES
9626fi
9627EOF
9628    ;;
9629  esac
9630
9631  # We use sed instead of cat because bash on DJGPP gets confused if
9632  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9633  # text mode, it properly converts lines to CR/LF.  This bash problem
9634  # is reportedly fixed, but why not run on old versions too?
9635  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9636
9637  mv -f "$cfgfile" "$ofile" || \
9638    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9639  chmod +x "$ofile"
9640
9641else
9642  # If there is no Makefile yet, we rely on a make rule to execute
9643  # `config.status --recheck' to rerun these tests and create the
9644  # libtool script then.
9645  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9646  if test -f "$ltmain_in"; then
9647    test -f Makefile && make "$ltmain"
9648  fi
9649fi
9650
9651
9652ac_ext=c
9653ac_cpp='$CPP $CPPFLAGS'
9654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9656ac_compiler_gnu=$ac_cv_c_compiler_gnu
9657
9658CC="$lt_save_CC"
9659
9660
9661# Check whether --with-tags or --without-tags was given.
9662if test "${with_tags+set}" = set; then
9663  withval="$with_tags"
9664  tagnames="$withval"
9665fi;
9666
9667if test -f "$ltmain" && test -n "$tagnames"; then
9668  if test ! -f "${ofile}"; then
9669    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9670echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9671  fi
9672
9673  if test -z "$LTCC"; then
9674    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9675    if test -z "$LTCC"; then
9676      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9677echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9678    else
9679      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9680echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9681    fi
9682  fi
9683
9684  # Extract list of available tagged configurations in $ofile.
9685  # Note that this assumes the entire list is on one line.
9686  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9687
9688  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9689  for tagname in $tagnames; do
9690    IFS="$lt_save_ifs"
9691    # Check whether tagname contains only valid characters
9692    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9693    "") ;;
9694    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9695echo "$as_me: error: invalid tag name: $tagname" >&2;}
9696   { (exit 1); exit 1; }; }
9697	;;
9698    esac
9699
9700    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9701    then
9702      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9703echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9704   { (exit 1); exit 1; }; }
9705    fi
9706
9707    # Update the list of available tags.
9708    if test -n "$tagname"; then
9709      echo appending configuration tag \"$tagname\" to $ofile
9710
9711      case $tagname in
9712      CXX)
9713	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9714	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9715	    (test "X$CXX" != "Xg++"))) ; then
9716	  ac_ext=cc
9717ac_cpp='$CXXCPP $CPPFLAGS'
9718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9721
9722
9723
9724
9725archive_cmds_need_lc_CXX=no
9726allow_undefined_flag_CXX=
9727always_export_symbols_CXX=no
9728archive_expsym_cmds_CXX=
9729export_dynamic_flag_spec_CXX=
9730hardcode_direct_CXX=no
9731hardcode_libdir_flag_spec_CXX=
9732hardcode_libdir_flag_spec_ld_CXX=
9733hardcode_libdir_separator_CXX=
9734hardcode_minus_L_CXX=no
9735hardcode_automatic_CXX=no
9736module_cmds_CXX=
9737module_expsym_cmds_CXX=
9738link_all_deplibs_CXX=unknown
9739old_archive_cmds_CXX=$old_archive_cmds
9740no_undefined_flag_CXX=
9741whole_archive_flag_spec_CXX=
9742enable_shared_with_static_runtimes_CXX=no
9743
9744# Dependencies to place before and after the object being linked:
9745predep_objects_CXX=
9746postdep_objects_CXX=
9747predeps_CXX=
9748postdeps_CXX=
9749compiler_lib_search_path_CXX=
9750
9751# Source file extension for C++ test sources.
9752ac_ext=cpp
9753
9754# Object file extension for compiled C++ test sources.
9755objext=o
9756objext_CXX=$objext
9757
9758# Code to be used in simple compile tests
9759lt_simple_compile_test_code="int some_variable = 0;\n"
9760
9761# Code to be used in simple link tests
9762lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9763
9764# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9765
9766# If no C compiler was specified, use CC.
9767LTCC=${LTCC-"$CC"}
9768
9769# Allow CC to be a program name with arguments.
9770compiler=$CC
9771
9772
9773# save warnings/boilerplate of simple test code
9774ac_outfile=conftest.$ac_objext
9775printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9776eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9777_lt_compiler_boilerplate=`cat conftest.err`
9778$rm conftest*
9779
9780ac_outfile=conftest.$ac_objext
9781printf "$lt_simple_link_test_code" >conftest.$ac_ext
9782eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9783_lt_linker_boilerplate=`cat conftest.err`
9784$rm conftest*
9785
9786
9787# Allow CC to be a program name with arguments.
9788lt_save_CC=$CC
9789lt_save_LD=$LD
9790lt_save_GCC=$GCC
9791GCC=$GXX
9792lt_save_with_gnu_ld=$with_gnu_ld
9793lt_save_path_LD=$lt_cv_path_LD
9794if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9795  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9796else
9797  unset lt_cv_prog_gnu_ld
9798fi
9799if test -n "${lt_cv_path_LDCXX+set}"; then
9800  lt_cv_path_LD=$lt_cv_path_LDCXX
9801else
9802  unset lt_cv_path_LD
9803fi
9804test -z "${LDCXX+set}" || LD=$LDCXX
9805CC=${CXX-"c++"}
9806compiler=$CC
9807compiler_CXX=$CC
9808for cc_temp in $compiler""; do
9809  case $cc_temp in
9810    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9811    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9812    \-*) ;;
9813    *) break;;
9814  esac
9815done
9816cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9817
9818
9819# We don't want -fno-exception wen compiling C++ code, so set the
9820# no_builtin_flag separately
9821if test "$GXX" = yes; then
9822  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9823else
9824  lt_prog_compiler_no_builtin_flag_CXX=
9825fi
9826
9827if test "$GXX" = yes; then
9828  # Set up default GNU C++ configuration
9829
9830
9831# Check whether --with-gnu-ld or --without-gnu-ld was given.
9832if test "${with_gnu_ld+set}" = set; then
9833  withval="$with_gnu_ld"
9834  test "$withval" = no || with_gnu_ld=yes
9835else
9836  with_gnu_ld=no
9837fi;
9838ac_prog=ld
9839if test "$GCC" = yes; then
9840  # Check if gcc -print-prog-name=ld gives a path.
9841  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9842echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9843  case $host in
9844  *-*-mingw*)
9845    # gcc leaves a trailing carriage return which upsets mingw
9846    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9847  *)
9848    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9849  esac
9850  case $ac_prog in
9851    # Accept absolute paths.
9852    [\\/]* | ?:[\\/]*)
9853      re_direlt='/[^/][^/]*/\.\./'
9854      # Canonicalize the pathname of ld
9855      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9856      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9857	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9858      done
9859      test -z "$LD" && LD="$ac_prog"
9860      ;;
9861  "")
9862    # If it fails, then pretend we aren't using GCC.
9863    ac_prog=ld
9864    ;;
9865  *)
9866    # If it is relative, then search for the first ld in PATH.
9867    with_gnu_ld=unknown
9868    ;;
9869  esac
9870elif test "$with_gnu_ld" = yes; then
9871  echo "$as_me:$LINENO: checking for GNU ld" >&5
9872echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9873else
9874  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9875echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9876fi
9877if test "${lt_cv_path_LD+set}" = set; then
9878  echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
9880  if test -z "$LD"; then
9881  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9882  for ac_dir in $PATH; do
9883    IFS="$lt_save_ifs"
9884    test -z "$ac_dir" && ac_dir=.
9885    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9886      lt_cv_path_LD="$ac_dir/$ac_prog"
9887      # Check to see if the program is GNU ld.  I'd rather use --version,
9888      # but apparently some variants of GNU ld only accept -v.
9889      # Break only if it was the GNU/non-GNU ld that we prefer.
9890      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9891      *GNU* | *'with BFD'*)
9892	test "$with_gnu_ld" != no && break
9893	;;
9894      *)
9895	test "$with_gnu_ld" != yes && break
9896	;;
9897      esac
9898    fi
9899  done
9900  IFS="$lt_save_ifs"
9901else
9902  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9903fi
9904fi
9905
9906LD="$lt_cv_path_LD"
9907if test -n "$LD"; then
9908  echo "$as_me:$LINENO: result: $LD" >&5
9909echo "${ECHO_T}$LD" >&6
9910else
9911  echo "$as_me:$LINENO: result: no" >&5
9912echo "${ECHO_T}no" >&6
9913fi
9914test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9915echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9916   { (exit 1); exit 1; }; }
9917echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9918echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9919if test "${lt_cv_prog_gnu_ld+set}" = set; then
9920  echo $ECHO_N "(cached) $ECHO_C" >&6
9921else
9922  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9923case `$LD -v 2>&1 </dev/null` in
9924*GNU* | *'with BFD'*)
9925  lt_cv_prog_gnu_ld=yes
9926  ;;
9927*)
9928  lt_cv_prog_gnu_ld=no
9929  ;;
9930esac
9931fi
9932echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9933echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9934with_gnu_ld=$lt_cv_prog_gnu_ld
9935
9936
9937
9938  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9939  # archiving commands below assume that GNU ld is being used.
9940  if test "$with_gnu_ld" = yes; then
9941    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9942    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'
9943
9944    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9945    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9946
9947    # If archive_cmds runs LD, not CC, wlarc should be empty
9948    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9949    #     investigate it a little bit more. (MM)
9950    wlarc='${wl}'
9951
9952    # ancient GNU ld didn't support --whole-archive et. al.
9953    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9954	grep 'no-whole-archive' > /dev/null; then
9955      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9956    else
9957      whole_archive_flag_spec_CXX=
9958    fi
9959  else
9960    with_gnu_ld=no
9961    wlarc=
9962
9963    # A generic and very simple default shared library creation
9964    # command for GNU C++ for the case where it uses the native
9965    # linker, instead of GNU ld.  If possible, this setting should
9966    # overridden to take advantage of the native linker features on
9967    # the platform it is being used on.
9968    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9969  fi
9970
9971  # Commands to make compiler produce verbose output that lists
9972  # what "hidden" libraries, object files and flags are used when
9973  # linking a shared library.
9974  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9975
9976else
9977  GXX=no
9978  with_gnu_ld=no
9979  wlarc=
9980fi
9981
9982# PORTME: fill in a description of your system's C++ link characteristics
9983echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9984echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9985ld_shlibs_CXX=yes
9986case $host_os in
9987  aix3*)
9988    # FIXME: insert proper C++ library support
9989    ld_shlibs_CXX=no
9990    ;;
9991  aix4* | aix5*)
9992    if test "$host_cpu" = ia64; then
9993      # On IA64, the linker does run time linking by default, so we don't
9994      # have to do anything special.
9995      aix_use_runtimelinking=no
9996      exp_sym_flag='-Bexport'
9997      no_entry_flag=""
9998    else
9999      aix_use_runtimelinking=no
10000
10001      # Test if we are trying to use run time linking or normal
10002      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10003      # need to do runtime linking.
10004      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10005	for ld_flag in $LDFLAGS; do
10006	  case $ld_flag in
10007	  *-brtl*)
10008	    aix_use_runtimelinking=yes
10009	    break
10010	    ;;
10011	  esac
10012	done
10013      esac
10014
10015      exp_sym_flag='-bexport'
10016      no_entry_flag='-bnoentry'
10017    fi
10018
10019    # When large executables or shared objects are built, AIX ld can
10020    # have problems creating the table of contents.  If linking a library
10021    # or program results in "error TOC overflow" add -mminimal-toc to
10022    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10023    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10024
10025    archive_cmds_CXX=''
10026    hardcode_direct_CXX=yes
10027    hardcode_libdir_separator_CXX=':'
10028    link_all_deplibs_CXX=yes
10029
10030    if test "$GXX" = yes; then
10031      case $host_os in aix4.[012]|aix4.[012].*)
10032      # We only want to do this on AIX 4.2 and lower, the check
10033      # below for broken collect2 doesn't work under 4.3+
10034	collect2name=`${CC} -print-prog-name=collect2`
10035	if test -f "$collect2name" && \
10036	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10037	then
10038	  # We have reworked collect2
10039	  hardcode_direct_CXX=yes
10040	else
10041	  # We have old collect2
10042	  hardcode_direct_CXX=unsupported
10043	  # It fails to find uninstalled libraries when the uninstalled
10044	  # path is not listed in the libpath.  Setting hardcode_minus_L
10045	  # to unsupported forces relinking
10046	  hardcode_minus_L_CXX=yes
10047	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10048	  hardcode_libdir_separator_CXX=
10049	fi
10050      esac
10051      shared_flag='-shared'
10052      if test "$aix_use_runtimelinking" = yes; then
10053	shared_flag="$shared_flag "'${wl}-G'
10054      fi
10055    else
10056      # not using gcc
10057      if test "$host_cpu" = ia64; then
10058	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10059	# chokes on -Wl,-G. The following line is correct:
10060	shared_flag='-G'
10061      else
10062	if test "$aix_use_runtimelinking" = yes; then
10063	  shared_flag='${wl}-G'
10064	else
10065	  shared_flag='${wl}-bM:SRE'
10066	fi
10067      fi
10068    fi
10069
10070    # It seems that -bexpall does not export symbols beginning with
10071    # underscore (_), so it is better to generate a list of symbols to export.
10072    always_export_symbols_CXX=yes
10073    if test "$aix_use_runtimelinking" = yes; then
10074      # Warning - without using the other runtime loading flags (-brtl),
10075      # -berok will link without error, but may produce a broken library.
10076      allow_undefined_flag_CXX='-berok'
10077      # Determine the default libpath from the value encoded in an empty executable.
10078      cat >conftest.$ac_ext <<_ACEOF
10079/* confdefs.h.  */
10080_ACEOF
10081cat confdefs.h >>conftest.$ac_ext
10082cat >>conftest.$ac_ext <<_ACEOF
10083/* end confdefs.h.  */
10084
10085int
10086main ()
10087{
10088
10089  ;
10090  return 0;
10091}
10092_ACEOF
10093rm -f conftest.$ac_objext conftest$ac_exeext
10094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095  (eval $ac_link) 2>conftest.er1
10096  ac_status=$?
10097  grep -v '^ *+' conftest.er1 >conftest.err
10098  rm -f conftest.er1
10099  cat conftest.err >&5
10100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101  (exit $ac_status); } &&
10102	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104  (eval $ac_try) 2>&5
10105  ac_status=$?
10106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107  (exit $ac_status); }; } &&
10108	 { ac_try='test -s conftest$ac_exeext'
10109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110  (eval $ac_try) 2>&5
10111  ac_status=$?
10112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113  (exit $ac_status); }; }; then
10114
10115aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10116}'`
10117# Check for a 64-bit object if we didn't find anything.
10118if 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; }
10119}'`; fi
10120else
10121  echo "$as_me: failed program was:" >&5
10122sed 's/^/| /' conftest.$ac_ext >&5
10123
10124fi
10125rm -f conftest.err conftest.$ac_objext \
10126      conftest$ac_exeext conftest.$ac_ext
10127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10128
10129      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10130
10131      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10132     else
10133      if test "$host_cpu" = ia64; then
10134	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10135	allow_undefined_flag_CXX="-z nodefs"
10136	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10137      else
10138	# Determine the default libpath from the value encoded in an empty executable.
10139	cat >conftest.$ac_ext <<_ACEOF
10140/* confdefs.h.  */
10141_ACEOF
10142cat confdefs.h >>conftest.$ac_ext
10143cat >>conftest.$ac_ext <<_ACEOF
10144/* end confdefs.h.  */
10145
10146int
10147main ()
10148{
10149
10150  ;
10151  return 0;
10152}
10153_ACEOF
10154rm -f conftest.$ac_objext conftest$ac_exeext
10155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10156  (eval $ac_link) 2>conftest.er1
10157  ac_status=$?
10158  grep -v '^ *+' conftest.er1 >conftest.err
10159  rm -f conftest.er1
10160  cat conftest.err >&5
10161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162  (exit $ac_status); } &&
10163	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165  (eval $ac_try) 2>&5
10166  ac_status=$?
10167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); }; } &&
10169	 { ac_try='test -s conftest$ac_exeext'
10170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171  (eval $ac_try) 2>&5
10172  ac_status=$?
10173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174  (exit $ac_status); }; }; then
10175
10176aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10177}'`
10178# Check for a 64-bit object if we didn't find anything.
10179if 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; }
10180}'`; fi
10181else
10182  echo "$as_me: failed program was:" >&5
10183sed 's/^/| /' conftest.$ac_ext >&5
10184
10185fi
10186rm -f conftest.err conftest.$ac_objext \
10187      conftest$ac_exeext conftest.$ac_ext
10188if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10189
10190	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10191	# Warning - without using the other run time loading flags,
10192	# -berok will link without error, but may produce a broken library.
10193	no_undefined_flag_CXX=' ${wl}-bernotok'
10194	allow_undefined_flag_CXX=' ${wl}-berok'
10195	# -bexpall does not export symbols beginning with underscore (_)
10196	always_export_symbols_CXX=yes
10197	# Exported symbols can be pulled into shared objects from archives
10198	whole_archive_flag_spec_CXX=' '
10199	archive_cmds_need_lc_CXX=yes
10200	# This is similar to how AIX traditionally builds its shared libraries.
10201	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10202      fi
10203    fi
10204    ;;
10205  chorus*)
10206    case $cc_basename in
10207      *)
10208	# FIXME: insert proper C++ library support
10209	ld_shlibs_CXX=no
10210	;;
10211    esac
10212    ;;
10213
10214
10215  cygwin* | mingw* | pw32*)
10216    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10217    # as there is no search path for DLLs.
10218    hardcode_libdir_flag_spec_CXX='-L$libdir'
10219    allow_undefined_flag_CXX=unsupported
10220    always_export_symbols_CXX=no
10221    enable_shared_with_static_runtimes_CXX=yes
10222
10223    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10224      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10225      # If the export-symbols file already is a .def file (1st line
10226      # is EXPORTS), use it as is; otherwise, prepend...
10227      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10228	cp $export_symbols $output_objdir/$soname.def;
10229      else
10230	echo EXPORTS > $output_objdir/$soname.def;
10231	cat $export_symbols >> $output_objdir/$soname.def;
10232      fi~
10233      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10234    else
10235      ld_shlibs_CXX=no
10236    fi
10237  ;;
10238      darwin* | rhapsody*)
10239        case $host_os in
10240        rhapsody* | darwin1.[012])
10241         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10242         ;;
10243       *) # Darwin 1.3 on
10244         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10245           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10246         else
10247           case ${MACOSX_DEPLOYMENT_TARGET} in
10248             10.[012])
10249               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10250               ;;
10251             10.*)
10252               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10253               ;;
10254           esac
10255         fi
10256         ;;
10257        esac
10258      archive_cmds_need_lc_CXX=no
10259      hardcode_direct_CXX=no
10260      hardcode_automatic_CXX=yes
10261      hardcode_shlibpath_var_CXX=unsupported
10262      whole_archive_flag_spec_CXX=''
10263      link_all_deplibs_CXX=yes
10264
10265    if test "$GXX" = yes ; then
10266      lt_int_apple_cc_single_mod=no
10267      output_verbose_link_cmd='echo'
10268      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10269       lt_int_apple_cc_single_mod=yes
10270      fi
10271      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10272       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10273      else
10274          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'
10275        fi
10276        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10277        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10278          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10279            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}'
10280          else
10281            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}'
10282          fi
10283            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}'
10284      else
10285      case $cc_basename in
10286        xlc*)
10287         output_verbose_link_cmd='echo'
10288          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'
10289          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10290          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10291          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}'
10292          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}'
10293          ;;
10294       *)
10295         ld_shlibs_CXX=no
10296          ;;
10297      esac
10298      fi
10299        ;;
10300
10301  dgux*)
10302    case $cc_basename in
10303      ec++*)
10304	# FIXME: insert proper C++ library support
10305	ld_shlibs_CXX=no
10306	;;
10307      ghcx*)
10308	# Green Hills C++ Compiler
10309	# FIXME: insert proper C++ library support
10310	ld_shlibs_CXX=no
10311	;;
10312      *)
10313	# FIXME: insert proper C++ library support
10314	ld_shlibs_CXX=no
10315	;;
10316    esac
10317    ;;
10318  freebsd[12]*)
10319    # C++ shared libraries reported to be fairly broken before switch to ELF
10320    ld_shlibs_CXX=no
10321    ;;
10322  freebsd-elf*)
10323    archive_cmds_need_lc_CXX=no
10324    ;;
10325  freebsd* | kfreebsd*-gnu | dragonfly*)
10326    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10327    # conventions
10328    ld_shlibs_CXX=yes
10329    ;;
10330  gnu*)
10331    ;;
10332  hpux9*)
10333    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10334    hardcode_libdir_separator_CXX=:
10335    export_dynamic_flag_spec_CXX='${wl}-E'
10336    hardcode_direct_CXX=yes
10337    hardcode_minus_L_CXX=yes # Not in the search PATH,
10338				# but as the default
10339				# location of the library.
10340
10341    case $cc_basename in
10342    CC*)
10343      # FIXME: insert proper C++ library support
10344      ld_shlibs_CXX=no
10345      ;;
10346    aCC*)
10347      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'
10348      # Commands to make compiler produce verbose output that lists
10349      # what "hidden" libraries, object files and flags are used when
10350      # linking a shared library.
10351      #
10352      # There doesn't appear to be a way to prevent this compiler from
10353      # explicitly linking system object files so we need to strip them
10354      # from the output so that they don't get included in the library
10355      # dependencies.
10356      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'
10357      ;;
10358    *)
10359      if test "$GXX" = yes; then
10360        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'
10361      else
10362        # FIXME: insert proper C++ library support
10363        ld_shlibs_CXX=no
10364      fi
10365      ;;
10366    esac
10367    ;;
10368  hpux10*|hpux11*)
10369    if test $with_gnu_ld = no; then
10370      case $host_cpu in
10371      hppa*64*)
10372	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10373	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10374	hardcode_libdir_separator_CXX=:
10375        ;;
10376      ia64*)
10377	hardcode_libdir_flag_spec_CXX='-L$libdir'
10378        ;;
10379      *)
10380	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10381	hardcode_libdir_separator_CXX=:
10382	export_dynamic_flag_spec_CXX='${wl}-E'
10383        ;;
10384      esac
10385    fi
10386    case $host_cpu in
10387    hppa*64*)
10388      hardcode_direct_CXX=no
10389      hardcode_shlibpath_var_CXX=no
10390      ;;
10391    ia64*)
10392      hardcode_direct_CXX=no
10393      hardcode_shlibpath_var_CXX=no
10394      hardcode_minus_L_CXX=yes # Not in the search PATH,
10395					      # but as the default
10396					      # location of the library.
10397      ;;
10398    *)
10399      hardcode_direct_CXX=yes
10400      hardcode_minus_L_CXX=yes # Not in the search PATH,
10401					      # but as the default
10402					      # location of the library.
10403      ;;
10404    esac
10405
10406    case $cc_basename in
10407      CC*)
10408	# FIXME: insert proper C++ library support
10409	ld_shlibs_CXX=no
10410	;;
10411      aCC*)
10412	case $host_cpu in
10413	hppa*64*|ia64*)
10414	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10415	  ;;
10416	*)
10417	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10418	  ;;
10419	esac
10420	# Commands to make compiler produce verbose output that lists
10421	# what "hidden" libraries, object files and flags are used when
10422	# linking a shared library.
10423	#
10424	# There doesn't appear to be a way to prevent this compiler from
10425	# explicitly linking system object files so we need to strip them
10426	# from the output so that they don't get included in the library
10427	# dependencies.
10428	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'
10429	;;
10430      *)
10431	if test "$GXX" = yes; then
10432	  if test $with_gnu_ld = no; then
10433	    case $host_cpu in
10434	    ia64*|hppa*64*)
10435	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10436	      ;;
10437	    *)
10438	      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'
10439	      ;;
10440	    esac
10441	  fi
10442	else
10443	  # FIXME: insert proper C++ library support
10444	  ld_shlibs_CXX=no
10445	fi
10446	;;
10447    esac
10448    ;;
10449  irix5* | irix6*)
10450    case $cc_basename in
10451      CC*)
10452	# SGI C++
10453	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'
10454
10455	# Archives containing C++ object files must be created using
10456	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10457	# necessary to make sure instantiated templates are included
10458	# in the archive.
10459	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10460	;;
10461      *)
10462	if test "$GXX" = yes; then
10463	  if test "$with_gnu_ld" = no; then
10464	    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'
10465	  else
10466	    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'
10467	  fi
10468	fi
10469	link_all_deplibs_CXX=yes
10470	;;
10471    esac
10472    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10473    hardcode_libdir_separator_CXX=:
10474    ;;
10475  linux*)
10476    case $cc_basename in
10477      KCC*)
10478	# Kuck and Associates, Inc. (KAI) C++ Compiler
10479
10480	# KCC will only create a shared library if the output file
10481	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10482	# to its proper name (with version) after linking.
10483	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'
10484	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'
10485	# Commands to make compiler produce verbose output that lists
10486	# what "hidden" libraries, object files and flags are used when
10487	# linking a shared library.
10488	#
10489	# There doesn't appear to be a way to prevent this compiler from
10490	# explicitly linking system object files so we need to strip them
10491	# from the output so that they don't get included in the library
10492	# dependencies.
10493	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'
10494
10495	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10496	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10497
10498	# Archives containing C++ object files must be created using
10499	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10500	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10501	;;
10502      icpc*)
10503	# Intel C++
10504	with_gnu_ld=yes
10505	# version 8.0 and above of icpc choke on multiply defined symbols
10506	# if we add $predep_objects and $postdep_objects, however 7.1 and
10507	# earlier do not add the objects themselves.
10508	case `$CC -V 2>&1` in
10509	*"Version 7."*)
10510  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10511  	  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'
10512	  ;;
10513	*)  # Version 8.0 or newer
10514	  tmp_idyn=
10515	  case $host_cpu in
10516	    ia64*) tmp_idyn=' -i_dynamic';;
10517	  esac
10518  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10519	  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'
10520	  ;;
10521	esac
10522	archive_cmds_need_lc_CXX=no
10523	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10524	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10525	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10526	;;
10527      pgCC*)
10528        # Portland Group C++ compiler
10529	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10530  	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'
10531
10532	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10533	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10534	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'
10535        ;;
10536      cxx*)
10537	# Compaq C++
10538	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10539	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'
10540
10541	runpath_var=LD_RUN_PATH
10542	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10543	hardcode_libdir_separator_CXX=:
10544
10545	# Commands to make compiler produce verbose output that lists
10546	# what "hidden" libraries, object files and flags are used when
10547	# linking a shared library.
10548	#
10549	# There doesn't appear to be a way to prevent this compiler from
10550	# explicitly linking system object files so we need to strip them
10551	# from the output so that they don't get included in the library
10552	# dependencies.
10553	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'
10554	;;
10555    esac
10556    ;;
10557  lynxos*)
10558    # FIXME: insert proper C++ library support
10559    ld_shlibs_CXX=no
10560    ;;
10561  m88k*)
10562    # FIXME: insert proper C++ library support
10563    ld_shlibs_CXX=no
10564    ;;
10565  mvs*)
10566    case $cc_basename in
10567      cxx*)
10568	# FIXME: insert proper C++ library support
10569	ld_shlibs_CXX=no
10570	;;
10571      *)
10572	# FIXME: insert proper C++ library support
10573	ld_shlibs_CXX=no
10574	;;
10575    esac
10576    ;;
10577  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10578    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10579      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10580      wlarc=
10581      hardcode_libdir_flag_spec_CXX='-R$libdir'
10582      hardcode_direct_CXX=yes
10583      hardcode_shlibpath_var_CXX=no
10584    fi
10585    # Workaround some broken pre-1.5 toolchains
10586    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10587    ;;
10588  openbsd2*)
10589    # C++ shared libraries are fairly broken
10590    ld_shlibs_CXX=no
10591    ;;
10592  openbsd*)
10593    hardcode_direct_CXX=yes
10594    hardcode_shlibpath_var_CXX=no
10595    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10596    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10597    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10598      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10599      export_dynamic_flag_spec_CXX='${wl}-E'
10600      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10601    fi
10602    output_verbose_link_cmd='echo'
10603    ;;
10604  osf3*)
10605    case $cc_basename in
10606      KCC*)
10607	# Kuck and Associates, Inc. (KAI) C++ Compiler
10608
10609	# KCC will only create a shared library if the output file
10610	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10611	# to its proper name (with version) after linking.
10612	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'
10613
10614	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10615	hardcode_libdir_separator_CXX=:
10616
10617	# Archives containing C++ object files must be created using
10618	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10619	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10620
10621	;;
10622      RCC*)
10623	# Rational C++ 2.4.1
10624	# FIXME: insert proper C++ library support
10625	ld_shlibs_CXX=no
10626	;;
10627      cxx*)
10628	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10629	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'
10630
10631	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10632	hardcode_libdir_separator_CXX=:
10633
10634	# Commands to make compiler produce verbose output that lists
10635	# what "hidden" libraries, object files and flags are used when
10636	# linking a shared library.
10637	#
10638	# There doesn't appear to be a way to prevent this compiler from
10639	# explicitly linking system object files so we need to strip them
10640	# from the output so that they don't get included in the library
10641	# dependencies.
10642	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'
10643	;;
10644      *)
10645	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10646	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10647	  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'
10648
10649	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10650	  hardcode_libdir_separator_CXX=:
10651
10652	  # Commands to make compiler produce verbose output that lists
10653	  # what "hidden" libraries, object files and flags are used when
10654	  # linking a shared library.
10655	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10656
10657	else
10658	  # FIXME: insert proper C++ library support
10659	  ld_shlibs_CXX=no
10660	fi
10661	;;
10662    esac
10663    ;;
10664  osf4* | osf5*)
10665    case $cc_basename in
10666      KCC*)
10667	# Kuck and Associates, Inc. (KAI) C++ Compiler
10668
10669	# KCC will only create a shared library if the output file
10670	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10671	# to its proper name (with version) after linking.
10672	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'
10673
10674	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10675	hardcode_libdir_separator_CXX=:
10676
10677	# Archives containing C++ object files must be created using
10678	# the KAI C++ compiler.
10679	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10680	;;
10681      RCC*)
10682	# Rational C++ 2.4.1
10683	# FIXME: insert proper C++ library support
10684	ld_shlibs_CXX=no
10685	;;
10686      cxx*)
10687	allow_undefined_flag_CXX=' -expect_unresolved \*'
10688	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'
10689	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10690	  echo "-hidden">> $lib.exp~
10691	  $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~
10692	  $rm $lib.exp'
10693
10694	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10695	hardcode_libdir_separator_CXX=:
10696
10697	# Commands to make compiler produce verbose output that lists
10698	# what "hidden" libraries, object files and flags are used when
10699	# linking a shared library.
10700	#
10701	# There doesn't appear to be a way to prevent this compiler from
10702	# explicitly linking system object files so we need to strip them
10703	# from the output so that they don't get included in the library
10704	# dependencies.
10705	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'
10706	;;
10707      *)
10708	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10709	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10710	 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'
10711
10712	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10713	  hardcode_libdir_separator_CXX=:
10714
10715	  # Commands to make compiler produce verbose output that lists
10716	  # what "hidden" libraries, object files and flags are used when
10717	  # linking a shared library.
10718	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10719
10720	else
10721	  # FIXME: insert proper C++ library support
10722	  ld_shlibs_CXX=no
10723	fi
10724	;;
10725    esac
10726    ;;
10727  psos*)
10728    # FIXME: insert proper C++ library support
10729    ld_shlibs_CXX=no
10730    ;;
10731  sco*)
10732    archive_cmds_need_lc_CXX=no
10733    case $cc_basename in
10734      CC*)
10735	# FIXME: insert proper C++ library support
10736	ld_shlibs_CXX=no
10737	;;
10738      *)
10739	# FIXME: insert proper C++ library support
10740	ld_shlibs_CXX=no
10741	;;
10742    esac
10743    ;;
10744  sunos4*)
10745    case $cc_basename in
10746      CC*)
10747	# Sun C++ 4.x
10748	# FIXME: insert proper C++ library support
10749	ld_shlibs_CXX=no
10750	;;
10751      lcc*)
10752	# Lucid
10753	# FIXME: insert proper C++ library support
10754	ld_shlibs_CXX=no
10755	;;
10756      *)
10757	# FIXME: insert proper C++ library support
10758	ld_shlibs_CXX=no
10759	;;
10760    esac
10761    ;;
10762  solaris*)
10763    case $cc_basename in
10764      CC*)
10765	# Sun C++ 4.2, 5.x and Centerline C++
10766        archive_cmds_need_lc_CXX=yes
10767	no_undefined_flag_CXX=' -zdefs'
10768	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10769	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10770	$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'
10771
10772	hardcode_libdir_flag_spec_CXX='-R$libdir'
10773	hardcode_shlibpath_var_CXX=no
10774	case $host_os in
10775	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10776	  *)
10777	    # The C++ compiler is used as linker so we must use $wl
10778	    # flag to pass the commands to the underlying system
10779	    # linker. We must also pass each convience library through
10780	    # to the system linker between allextract/defaultextract.
10781	    # The C++ compiler will combine linker options so we
10782	    # cannot just pass the convience library names through
10783	    # without $wl.
10784	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10785	    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'
10786	    ;;
10787	esac
10788	link_all_deplibs_CXX=yes
10789
10790	output_verbose_link_cmd='echo'
10791
10792	# Archives containing C++ object files must be created using
10793	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10794	# necessary to make sure instantiated templates are included
10795	# in the archive.
10796	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10797	;;
10798      gcx*)
10799	# Green Hills C++ Compiler
10800	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10801
10802	# The C++ compiler must be used to create the archive.
10803	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10804	;;
10805      *)
10806	# GNU C++ compiler with Solaris linker
10807	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10808	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10809	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10810	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10811	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10812		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10813
10814	    # Commands to make compiler produce verbose output that lists
10815	    # what "hidden" libraries, object files and flags are used when
10816	    # linking a shared library.
10817	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10818	  else
10819	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10820	    # platform.
10821	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10822	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10823		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10824
10825	    # Commands to make compiler produce verbose output that lists
10826	    # what "hidden" libraries, object files and flags are used when
10827	    # linking a shared library.
10828	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10829	  fi
10830
10831	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10832	fi
10833	;;
10834    esac
10835    ;;
10836  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10837    archive_cmds_need_lc_CXX=no
10838    ;;
10839  tandem*)
10840    case $cc_basename in
10841      NCC*)
10842	# NonStop-UX NCC 3.20
10843	# FIXME: insert proper C++ library support
10844	ld_shlibs_CXX=no
10845	;;
10846      *)
10847	# FIXME: insert proper C++ library support
10848	ld_shlibs_CXX=no
10849	;;
10850    esac
10851    ;;
10852  vxworks*)
10853    # FIXME: insert proper C++ library support
10854    ld_shlibs_CXX=no
10855    ;;
10856  *)
10857    # FIXME: insert proper C++ library support
10858    ld_shlibs_CXX=no
10859    ;;
10860esac
10861echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10862echo "${ECHO_T}$ld_shlibs_CXX" >&6
10863test "$ld_shlibs_CXX" = no && can_build_shared=no
10864
10865GCC_CXX="$GXX"
10866LD_CXX="$LD"
10867
10868
10869cat > conftest.$ac_ext <<EOF
10870class Foo
10871{
10872public:
10873  Foo (void) { a = 0; }
10874private:
10875  int a;
10876};
10877EOF
10878
10879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880  (eval $ac_compile) 2>&5
10881  ac_status=$?
10882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883  (exit $ac_status); }; then
10884  # Parse the compiler output and extract the necessary
10885  # objects, libraries and library flags.
10886
10887  # Sentinel used to keep track of whether or not we are before
10888  # the conftest object file.
10889  pre_test_object_deps_done=no
10890
10891  # The `*' in the case matches for architectures that use `case' in
10892  # $output_verbose_cmd can trigger glob expansion during the loop
10893  # eval without this substitution.
10894  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10895
10896  for p in `eval $output_verbose_link_cmd`; do
10897    case $p in
10898
10899    -L* | -R* | -l*)
10900       # Some compilers place space between "-{L,R}" and the path.
10901       # Remove the space.
10902       if test $p = "-L" \
10903	  || test $p = "-R"; then
10904	 prev=$p
10905	 continue
10906       else
10907	 prev=
10908       fi
10909
10910       if test "$pre_test_object_deps_done" = no; then
10911	 case $p in
10912	 -L* | -R*)
10913	   # Internal compiler library paths should come after those
10914	   # provided the user.  The postdeps already come after the
10915	   # user supplied libs so there is no need to process them.
10916	   if test -z "$compiler_lib_search_path_CXX"; then
10917	     compiler_lib_search_path_CXX="${prev}${p}"
10918	   else
10919	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10920	   fi
10921	   ;;
10922	 # The "-l" case would never come before the object being
10923	 # linked, so don't bother handling this case.
10924	 esac
10925       else
10926	 if test -z "$postdeps_CXX"; then
10927	   postdeps_CXX="${prev}${p}"
10928	 else
10929	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10930	 fi
10931       fi
10932       ;;
10933
10934    *.$objext)
10935       # This assumes that the test object file only shows up
10936       # once in the compiler output.
10937       if test "$p" = "conftest.$objext"; then
10938	 pre_test_object_deps_done=yes
10939	 continue
10940       fi
10941
10942       if test "$pre_test_object_deps_done" = no; then
10943	 if test -z "$predep_objects_CXX"; then
10944	   predep_objects_CXX="$p"
10945	 else
10946	   predep_objects_CXX="$predep_objects_CXX $p"
10947	 fi
10948       else
10949	 if test -z "$postdep_objects_CXX"; then
10950	   postdep_objects_CXX="$p"
10951	 else
10952	   postdep_objects_CXX="$postdep_objects_CXX $p"
10953	 fi
10954       fi
10955       ;;
10956
10957    *) ;; # Ignore the rest.
10958
10959    esac
10960  done
10961
10962  # Clean up.
10963  rm -f a.out a.exe
10964else
10965  echo "libtool.m4: error: problem compiling CXX test program"
10966fi
10967
10968$rm -f confest.$objext
10969
10970# PORTME: override above test on systems where it is broken
10971case $host_os in
10972solaris*)
10973  case $cc_basename in
10974  CC*)
10975    # Adding this requires a known-good setup of shared libraries for
10976    # Sun compiler versions before 5.6, else PIC objects from an old
10977    # archive will be linked into the output, leading to subtle bugs.
10978    postdeps_CXX='-lCstd -lCrun'
10979    ;;
10980  esac
10981esac
10982
10983
10984case " $postdeps_CXX " in
10985*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10986esac
10987
10988lt_prog_compiler_wl_CXX=
10989lt_prog_compiler_pic_CXX=
10990lt_prog_compiler_static_CXX=
10991
10992echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10993echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10994
10995  # C++ specific cases for pic, static, wl, etc.
10996  if test "$GXX" = yes; then
10997    lt_prog_compiler_wl_CXX='-Wl,'
10998    lt_prog_compiler_static_CXX='-static'
10999
11000    case $host_os in
11001    aix*)
11002      # All AIX code is PIC.
11003      if test "$host_cpu" = ia64; then
11004	# AIX 5 now supports IA64 processor
11005	lt_prog_compiler_static_CXX='-Bstatic'
11006      fi
11007      ;;
11008    amigaos*)
11009      # FIXME: we need at least 68020 code to build shared libraries, but
11010      # adding the `-m68020' flag to GCC prevents building anything better,
11011      # like `-m68040'.
11012      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11013      ;;
11014    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11015      # PIC is the default for these OSes.
11016      ;;
11017    mingw* | os2* | pw32*)
11018      # This hack is so that the source file can tell whether it is being
11019      # built for inclusion in a dll (and should export symbols for example).
11020      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11021      ;;
11022    darwin* | rhapsody*)
11023      # PIC is the default on this platform
11024      # Common symbols not allowed in MH_DYLIB files
11025      lt_prog_compiler_pic_CXX='-fno-common'
11026      ;;
11027    *djgpp*)
11028      # DJGPP does not support shared libraries at all
11029      lt_prog_compiler_pic_CXX=
11030      ;;
11031    sysv4*MP*)
11032      if test -d /usr/nec; then
11033	lt_prog_compiler_pic_CXX=-Kconform_pic
11034      fi
11035      ;;
11036    hpux*)
11037      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11038      # not for PA HP-UX.
11039      case $host_cpu in
11040      hppa*64*|ia64*)
11041	;;
11042      *)
11043	lt_prog_compiler_pic_CXX='-fPIC'
11044	;;
11045      esac
11046      ;;
11047    *)
11048      lt_prog_compiler_pic_CXX='-fPIC'
11049      ;;
11050    esac
11051  else
11052    case $host_os in
11053      aix4* | aix5*)
11054	# All AIX code is PIC.
11055	if test "$host_cpu" = ia64; then
11056	  # AIX 5 now supports IA64 processor
11057	  lt_prog_compiler_static_CXX='-Bstatic'
11058	else
11059	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11060	fi
11061	;;
11062      chorus*)
11063	case $cc_basename in
11064	cxch68*)
11065	  # Green Hills C++ Compiler
11066	  # _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"
11067	  ;;
11068	esac
11069	;;
11070       darwin*)
11071         # PIC is the default on this platform
11072         # Common symbols not allowed in MH_DYLIB files
11073         case $cc_basename in
11074           xlc*)
11075           lt_prog_compiler_pic_CXX='-qnocommon'
11076           lt_prog_compiler_wl_CXX='-Wl,'
11077           ;;
11078         esac
11079       ;;
11080      dgux*)
11081	case $cc_basename in
11082	  ec++*)
11083	    lt_prog_compiler_pic_CXX='-KPIC'
11084	    ;;
11085	  ghcx*)
11086	    # Green Hills C++ Compiler
11087	    lt_prog_compiler_pic_CXX='-pic'
11088	    ;;
11089	  *)
11090	    ;;
11091	esac
11092	;;
11093      freebsd* | kfreebsd*-gnu | dragonfly*)
11094	# FreeBSD uses GNU C++
11095	;;
11096      hpux9* | hpux10* | hpux11*)
11097	case $cc_basename in
11098	  CC*)
11099	    lt_prog_compiler_wl_CXX='-Wl,'
11100	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11101	    if test "$host_cpu" != ia64; then
11102	      lt_prog_compiler_pic_CXX='+Z'
11103	    fi
11104	    ;;
11105	  aCC*)
11106	    lt_prog_compiler_wl_CXX='-Wl,'
11107	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11108	    case $host_cpu in
11109	    hppa*64*|ia64*)
11110	      # +Z the default
11111	      ;;
11112	    *)
11113	      lt_prog_compiler_pic_CXX='+Z'
11114	      ;;
11115	    esac
11116	    ;;
11117	  *)
11118	    ;;
11119	esac
11120	;;
11121      irix5* | irix6* | nonstopux*)
11122	case $cc_basename in
11123	  CC*)
11124	    lt_prog_compiler_wl_CXX='-Wl,'
11125	    lt_prog_compiler_static_CXX='-non_shared'
11126	    # CC pic flag -KPIC is the default.
11127	    ;;
11128	  *)
11129	    ;;
11130	esac
11131	;;
11132      linux*)
11133	case $cc_basename in
11134	  KCC*)
11135	    # KAI C++ Compiler
11136	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11137	    lt_prog_compiler_pic_CXX='-fPIC'
11138	    ;;
11139	  icpc* | ecpc*)
11140	    # Intel C++
11141	    lt_prog_compiler_wl_CXX='-Wl,'
11142	    lt_prog_compiler_pic_CXX='-KPIC'
11143	    lt_prog_compiler_static_CXX='-static'
11144	    ;;
11145	  pgCC*)
11146	    # Portland Group C++ compiler.
11147	    lt_prog_compiler_wl_CXX='-Wl,'
11148	    lt_prog_compiler_pic_CXX='-fpic'
11149	    lt_prog_compiler_static_CXX='-Bstatic'
11150	    ;;
11151	  cxx*)
11152	    # Compaq C++
11153	    # Make sure the PIC flag is empty.  It appears that all Alpha
11154	    # Linux and Compaq Tru64 Unix objects are PIC.
11155	    lt_prog_compiler_pic_CXX=
11156	    lt_prog_compiler_static_CXX='-non_shared'
11157	    ;;
11158	  *)
11159	    ;;
11160	esac
11161	;;
11162      lynxos*)
11163	;;
11164      m88k*)
11165	;;
11166      mvs*)
11167	case $cc_basename in
11168	  cxx*)
11169	    lt_prog_compiler_pic_CXX='-W c,exportall'
11170	    ;;
11171	  *)
11172	    ;;
11173	esac
11174	;;
11175      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11176	;;
11177      osf3* | osf4* | osf5*)
11178	case $cc_basename in
11179	  KCC*)
11180	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11181	    ;;
11182	  RCC*)
11183	    # Rational C++ 2.4.1
11184	    lt_prog_compiler_pic_CXX='-pic'
11185	    ;;
11186	  cxx*)
11187	    # Digital/Compaq C++
11188	    lt_prog_compiler_wl_CXX='-Wl,'
11189	    # Make sure the PIC flag is empty.  It appears that all Alpha
11190	    # Linux and Compaq Tru64 Unix objects are PIC.
11191	    lt_prog_compiler_pic_CXX=
11192	    lt_prog_compiler_static_CXX='-non_shared'
11193	    ;;
11194	  *)
11195	    ;;
11196	esac
11197	;;
11198      psos*)
11199	;;
11200      sco*)
11201	case $cc_basename in
11202	  CC*)
11203	    lt_prog_compiler_pic_CXX='-fPIC'
11204	    ;;
11205	  *)
11206	    ;;
11207	esac
11208	;;
11209      solaris*)
11210	case $cc_basename in
11211	  CC*)
11212	    # Sun C++ 4.2, 5.x and Centerline C++
11213	    lt_prog_compiler_pic_CXX='-KPIC'
11214	    lt_prog_compiler_static_CXX='-Bstatic'
11215	    lt_prog_compiler_wl_CXX='-Qoption ld '
11216	    ;;
11217	  gcx*)
11218	    # Green Hills C++ Compiler
11219	    lt_prog_compiler_pic_CXX='-PIC'
11220	    ;;
11221	  *)
11222	    ;;
11223	esac
11224	;;
11225      sunos4*)
11226	case $cc_basename in
11227	  CC*)
11228	    # Sun C++ 4.x
11229	    lt_prog_compiler_pic_CXX='-pic'
11230	    lt_prog_compiler_static_CXX='-Bstatic'
11231	    ;;
11232	  lcc*)
11233	    # Lucid
11234	    lt_prog_compiler_pic_CXX='-pic'
11235	    ;;
11236	  *)
11237	    ;;
11238	esac
11239	;;
11240      tandem*)
11241	case $cc_basename in
11242	  NCC*)
11243	    # NonStop-UX NCC 3.20
11244	    lt_prog_compiler_pic_CXX='-KPIC'
11245	    ;;
11246	  *)
11247	    ;;
11248	esac
11249	;;
11250      unixware*)
11251	;;
11252      vxworks*)
11253	;;
11254      *)
11255	lt_prog_compiler_can_build_shared_CXX=no
11256	;;
11257    esac
11258  fi
11259
11260echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11261echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11262
11263#
11264# Check to make sure the PIC flag actually works.
11265#
11266if test -n "$lt_prog_compiler_pic_CXX"; then
11267
11268echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11269echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11270if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11271  echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273  lt_prog_compiler_pic_works_CXX=no
11274  ac_outfile=conftest.$ac_objext
11275   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11276   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11277   # Insert the option either (1) after the last *FLAGS variable, or
11278   # (2) before a word containing "conftest.", or (3) at the end.
11279   # Note that $ac_compile itself does not contain backslashes and begins
11280   # with a dollar sign (not a hyphen), so the echo should work correctly.
11281   # The option is referenced via a variable to avoid confusing sed.
11282   lt_compile=`echo "$ac_compile" | $SED \
11283   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11284   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11285   -e 's:$: $lt_compiler_flag:'`
11286   (eval echo "\"\$as_me:11286: $lt_compile\"" >&5)
11287   (eval "$lt_compile" 2>conftest.err)
11288   ac_status=$?
11289   cat conftest.err >&5
11290   echo "$as_me:11290: \$? = $ac_status" >&5
11291   if (exit $ac_status) && test -s "$ac_outfile"; then
11292     # The compiler can only warn and ignore the option if not recognized
11293     # So say no if there are warnings other than the usual output.
11294     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11295     $SED '/^$/d' conftest.err >conftest.er2
11296     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11297       lt_prog_compiler_pic_works_CXX=yes
11298     fi
11299   fi
11300   $rm conftest*
11301
11302fi
11303echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11304echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11305
11306if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11307    case $lt_prog_compiler_pic_CXX in
11308     "" | " "*) ;;
11309     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11310     esac
11311else
11312    lt_prog_compiler_pic_CXX=
11313     lt_prog_compiler_can_build_shared_CXX=no
11314fi
11315
11316fi
11317case $host_os in
11318  # For platforms which do not support PIC, -DPIC is meaningless:
11319  *djgpp*)
11320    lt_prog_compiler_pic_CXX=
11321    ;;
11322  *)
11323    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11324    ;;
11325esac
11326
11327echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11328echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11329if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11330  echo $ECHO_N "(cached) $ECHO_C" >&6
11331else
11332  lt_cv_prog_compiler_c_o_CXX=no
11333   $rm -r conftest 2>/dev/null
11334   mkdir conftest
11335   cd conftest
11336   mkdir out
11337   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11338
11339   lt_compiler_flag="-o out/conftest2.$ac_objext"
11340   # Insert the option either (1) after the last *FLAGS variable, or
11341   # (2) before a word containing "conftest.", or (3) at the end.
11342   # Note that $ac_compile itself does not contain backslashes and begins
11343   # with a dollar sign (not a hyphen), so the echo should work correctly.
11344   lt_compile=`echo "$ac_compile" | $SED \
11345   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11346   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11347   -e 's:$: $lt_compiler_flag:'`
11348   (eval echo "\"\$as_me:11348: $lt_compile\"" >&5)
11349   (eval "$lt_compile" 2>out/conftest.err)
11350   ac_status=$?
11351   cat out/conftest.err >&5
11352   echo "$as_me:11352: \$? = $ac_status" >&5
11353   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11354   then
11355     # The compiler can only warn and ignore the option if not recognized
11356     # So say no if there are warnings
11357     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11358     $SED '/^$/d' out/conftest.err >out/conftest.er2
11359     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11360       lt_cv_prog_compiler_c_o_CXX=yes
11361     fi
11362   fi
11363   chmod u+w . 2>&5
11364   $rm conftest*
11365   # SGI C++ compiler will create directory out/ii_files/ for
11366   # template instantiation
11367   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11368   $rm out/* && rmdir out
11369   cd ..
11370   rmdir conftest
11371   $rm conftest*
11372
11373fi
11374echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11375echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11376
11377
11378hard_links="nottested"
11379if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11380  # do not overwrite the value of need_locks provided by the user
11381  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11382echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11383  hard_links=yes
11384  $rm conftest*
11385  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11386  touch conftest.a
11387  ln conftest.a conftest.b 2>&5 || hard_links=no
11388  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11389  echo "$as_me:$LINENO: result: $hard_links" >&5
11390echo "${ECHO_T}$hard_links" >&6
11391  if test "$hard_links" = no; then
11392    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11393echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11394    need_locks=warn
11395  fi
11396else
11397  need_locks=no
11398fi
11399
11400echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11401echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11402
11403  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11404  case $host_os in
11405  aix4* | aix5*)
11406    # If we're using GNU nm, then we don't want the "-C" option.
11407    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11408    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11409      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'
11410    else
11411      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'
11412    fi
11413    ;;
11414  pw32*)
11415    export_symbols_cmds_CXX="$ltdll_cmds"
11416  ;;
11417  cygwin* | mingw*)
11418    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'
11419  ;;
11420  linux*)
11421    link_all_deplibs_CXX=no
11422  ;;
11423  *)
11424    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11425  ;;
11426  esac
11427
11428echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11429echo "${ECHO_T}$ld_shlibs_CXX" >&6
11430test "$ld_shlibs_CXX" = no && can_build_shared=no
11431
11432variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11433if test "$GCC" = yes; then
11434  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11435fi
11436
11437#
11438# Do we need to explicitly link libc?
11439#
11440case "x$archive_cmds_need_lc_CXX" in
11441x|xyes)
11442  # Assume -lc should be added
11443  archive_cmds_need_lc_CXX=yes
11444
11445  if test "$enable_shared" = yes && test "$GCC" = yes; then
11446    case $archive_cmds_CXX in
11447    *'~'*)
11448      # FIXME: we may have to deal with multi-command sequences.
11449      ;;
11450    '$CC '*)
11451      # Test whether the compiler implicitly links with -lc since on some
11452      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11453      # to ld, don't add -lc before -lgcc.
11454      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11455echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11456      $rm conftest*
11457      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11458
11459      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460  (eval $ac_compile) 2>&5
11461  ac_status=$?
11462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463  (exit $ac_status); } 2>conftest.err; then
11464        soname=conftest
11465        lib=conftest
11466        libobjs=conftest.$ac_objext
11467        deplibs=
11468        wl=$lt_prog_compiler_wl_CXX
11469        compiler_flags=-v
11470        linker_flags=-v
11471        verstring=
11472        output_objdir=.
11473        libname=conftest
11474        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11475        allow_undefined_flag_CXX=
11476        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11477  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11478  ac_status=$?
11479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480  (exit $ac_status); }
11481        then
11482	  archive_cmds_need_lc_CXX=no
11483        else
11484	  archive_cmds_need_lc_CXX=yes
11485        fi
11486        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11487      else
11488        cat conftest.err 1>&5
11489      fi
11490      $rm conftest*
11491      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11492echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11493      ;;
11494    esac
11495  fi
11496  ;;
11497esac
11498
11499echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11500echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11501library_names_spec=
11502libname_spec='lib$name'
11503soname_spec=
11504shrext_cmds=".so"
11505postinstall_cmds=
11506postuninstall_cmds=
11507finish_cmds=
11508finish_eval=
11509shlibpath_var=
11510shlibpath_overrides_runpath=unknown
11511version_type=none
11512dynamic_linker="$host_os ld.so"
11513sys_lib_dlsearch_path_spec="/lib /usr/lib"
11514if test "$GCC" = yes; then
11515  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11516  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11517    # if the path contains ";" then we assume it to be the separator
11518    # otherwise default to the standard path separator (i.e. ":") - it is
11519    # assumed that no part of a normal pathname contains ";" but that should
11520    # okay in the real world where ";" in dirpaths is itself problematic.
11521    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11522  else
11523    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11524  fi
11525else
11526  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11527fi
11528need_lib_prefix=unknown
11529hardcode_into_libs=no
11530
11531# when you set need_version to no, make sure it does not cause -set_version
11532# flags to be left without arguments
11533need_version=unknown
11534
11535case $host_os in
11536aix3*)
11537  version_type=linux
11538  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11539  shlibpath_var=LIBPATH
11540
11541  # AIX 3 has no versioning support, so we append a major version to the name.
11542  soname_spec='${libname}${release}${shared_ext}$major'
11543  ;;
11544
11545aix4* | aix5*)
11546  version_type=linux
11547  need_lib_prefix=no
11548  need_version=no
11549  hardcode_into_libs=yes
11550  if test "$host_cpu" = ia64; then
11551    # AIX 5 supports IA64
11552    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11553    shlibpath_var=LD_LIBRARY_PATH
11554  else
11555    # With GCC up to 2.95.x, collect2 would create an import file
11556    # for dependence libraries.  The import file would start with
11557    # the line `#! .'.  This would cause the generated library to
11558    # depend on `.', always an invalid library.  This was fixed in
11559    # development snapshots of GCC prior to 3.0.
11560    case $host_os in
11561      aix4 | aix4.[01] | aix4.[01].*)
11562      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11563	   echo ' yes '
11564	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11565	:
11566      else
11567	can_build_shared=no
11568      fi
11569      ;;
11570    esac
11571    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11572    # soname into executable. Probably we can add versioning support to
11573    # collect2, so additional links can be useful in future.
11574    if test "$aix_use_runtimelinking" = yes; then
11575      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11576      # instead of lib<name>.a to let people know that these are not
11577      # typical AIX shared libraries.
11578      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579    else
11580      # We preserve .a as extension for shared libraries through AIX4.2
11581      # and later when we are not doing run time linking.
11582      library_names_spec='${libname}${release}.a $libname.a'
11583      soname_spec='${libname}${release}${shared_ext}$major'
11584    fi
11585    shlibpath_var=LIBPATH
11586  fi
11587  ;;
11588
11589amigaos*)
11590  library_names_spec='$libname.ixlibrary $libname.a'
11591  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11592  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'
11593  ;;
11594
11595beos*)
11596  library_names_spec='${libname}${shared_ext}'
11597  dynamic_linker="$host_os ld.so"
11598  shlibpath_var=LIBRARY_PATH
11599  ;;
11600
11601bsdi[45]*)
11602  version_type=linux
11603  need_version=no
11604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605  soname_spec='${libname}${release}${shared_ext}$major'
11606  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11607  shlibpath_var=LD_LIBRARY_PATH
11608  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11609  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11610  # the default ld.so.conf also contains /usr/contrib/lib and
11611  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11612  # libtool to hard-code these into programs
11613  ;;
11614
11615cygwin* | mingw* | pw32*)
11616  version_type=windows
11617  shrext_cmds=".dll"
11618  need_version=no
11619  need_lib_prefix=no
11620
11621  case $GCC,$host_os in
11622  yes,cygwin* | yes,mingw* | yes,pw32*)
11623    library_names_spec='$libname.dll.a'
11624    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11625    postinstall_cmds='base_file=`basename \${file}`~
11626      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11627      dldir=$destdir/`dirname \$dlpath`~
11628      test -d \$dldir || mkdir -p \$dldir~
11629      $install_prog $dir/$dlname \$dldir/$dlname~
11630      chmod a+x \$dldir/$dlname'
11631    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11632      dlpath=$dir/\$dldll~
11633       $rm \$dlpath'
11634    shlibpath_overrides_runpath=yes
11635
11636    case $host_os in
11637    cygwin*)
11638      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11639      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11640      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11641      ;;
11642    mingw*)
11643      # MinGW DLLs use traditional 'lib' prefix
11644      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11645      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11646      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11647        # It is most probably a Windows format PATH printed by
11648        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11649        # path with ; separators, and with drive letters. We can handle the
11650        # drive letters (cygwin fileutils understands them), so leave them,
11651        # especially as we might pass files found there to a mingw objdump,
11652        # which wouldn't understand a cygwinified path. Ahh.
11653        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11654      else
11655        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11656      fi
11657      ;;
11658    pw32*)
11659      # pw32 DLLs use 'pw' prefix rather than 'lib'
11660      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11661      ;;
11662    esac
11663    ;;
11664
11665  *)
11666    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11667    ;;
11668  esac
11669  dynamic_linker='Win32 ld.exe'
11670  # FIXME: first we should search . and the directory the executable is in
11671  shlibpath_var=PATH
11672  ;;
11673
11674darwin* | rhapsody*)
11675  dynamic_linker="$host_os dyld"
11676  version_type=darwin
11677  need_lib_prefix=no
11678  need_version=no
11679  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11680  soname_spec='${libname}${release}${major}$shared_ext'
11681  shlibpath_overrides_runpath=yes
11682  shlibpath_var=DYLD_LIBRARY_PATH
11683  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11684  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11685  if test "$GCC" = yes; then
11686    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"`
11687  else
11688    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11689  fi
11690  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11691  ;;
11692
11693dgux*)
11694  version_type=linux
11695  need_lib_prefix=no
11696  need_version=no
11697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11698  soname_spec='${libname}${release}${shared_ext}$major'
11699  shlibpath_var=LD_LIBRARY_PATH
11700  ;;
11701
11702freebsd1*)
11703  dynamic_linker=no
11704  ;;
11705
11706kfreebsd*-gnu)
11707  version_type=linux
11708  need_lib_prefix=no
11709  need_version=no
11710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11711  soname_spec='${libname}${release}${shared_ext}$major'
11712  shlibpath_var=LD_LIBRARY_PATH
11713  shlibpath_overrides_runpath=no
11714  hardcode_into_libs=yes
11715  dynamic_linker='GNU ld.so'
11716  ;;
11717
11718freebsd* | dragonfly*)
11719  # DragonFly does not have aout.  When/if they implement a new
11720  # versioning mechanism, adjust this.
11721  if test -x /usr/bin/objformat; then
11722    objformat=`/usr/bin/objformat`
11723  else
11724    case $host_os in
11725    freebsd[123]*) objformat=aout ;;
11726    *) objformat=elf ;;
11727    esac
11728  fi
11729  version_type=freebsd-$objformat
11730  case $version_type in
11731    freebsd-elf*)
11732      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11733      need_version=no
11734      need_lib_prefix=no
11735      ;;
11736    freebsd-*)
11737      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11738      need_version=yes
11739      ;;
11740  esac
11741  shlibpath_var=LD_LIBRARY_PATH
11742  case $host_os in
11743  freebsd2*)
11744    shlibpath_overrides_runpath=yes
11745    ;;
11746  freebsd3.[01]* | freebsdelf3.[01]*)
11747    shlibpath_overrides_runpath=yes
11748    hardcode_into_libs=yes
11749    ;;
11750  *) # from 3.2 on
11751    shlibpath_overrides_runpath=no
11752    hardcode_into_libs=yes
11753    ;;
11754  esac
11755  ;;
11756
11757gnu*)
11758  version_type=linux
11759  need_lib_prefix=no
11760  need_version=no
11761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11762  soname_spec='${libname}${release}${shared_ext}$major'
11763  shlibpath_var=LD_LIBRARY_PATH
11764  hardcode_into_libs=yes
11765  ;;
11766
11767hpux9* | hpux10* | hpux11*)
11768  # Give a soname corresponding to the major version so that dld.sl refuses to
11769  # link against other versions.
11770  version_type=sunos
11771  need_lib_prefix=no
11772  need_version=no
11773  case $host_cpu in
11774  ia64*)
11775    shrext_cmds='.so'
11776    hardcode_into_libs=yes
11777    dynamic_linker="$host_os dld.so"
11778    shlibpath_var=LD_LIBRARY_PATH
11779    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781    soname_spec='${libname}${release}${shared_ext}$major'
11782    if test "X$HPUX_IA64_MODE" = X32; then
11783      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11784    else
11785      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11786    fi
11787    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11788    ;;
11789   hppa*64*)
11790     shrext_cmds='.sl'
11791     hardcode_into_libs=yes
11792     dynamic_linker="$host_os dld.sl"
11793     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11794     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796     soname_spec='${libname}${release}${shared_ext}$major'
11797     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11798     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11799     ;;
11800   *)
11801    shrext_cmds='.sl'
11802    dynamic_linker="$host_os dld.sl"
11803    shlibpath_var=SHLIB_PATH
11804    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11805    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806    soname_spec='${libname}${release}${shared_ext}$major'
11807    ;;
11808  esac
11809  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11810  postinstall_cmds='chmod 555 $lib'
11811  ;;
11812
11813irix5* | irix6* | nonstopux*)
11814  case $host_os in
11815    nonstopux*) version_type=nonstopux ;;
11816    *)
11817	if test "$lt_cv_prog_gnu_ld" = yes; then
11818		version_type=linux
11819	else
11820		version_type=irix
11821	fi ;;
11822  esac
11823  need_lib_prefix=no
11824  need_version=no
11825  soname_spec='${libname}${release}${shared_ext}$major'
11826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11827  case $host_os in
11828  irix5* | nonstopux*)
11829    libsuff= shlibsuff=
11830    ;;
11831  *)
11832    case $LD in # libtool.m4 will add one of these switches to LD
11833    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11834      libsuff= shlibsuff= libmagic=32-bit;;
11835    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11836      libsuff=32 shlibsuff=N32 libmagic=N32;;
11837    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11838      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11839    *) libsuff= shlibsuff= libmagic=never-match;;
11840    esac
11841    ;;
11842  esac
11843  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11844  shlibpath_overrides_runpath=no
11845  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11846  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11847  hardcode_into_libs=yes
11848  ;;
11849
11850# No shared lib support for Linux oldld, aout, or coff.
11851linux*oldld* | linux*aout* | linux*coff*)
11852  dynamic_linker=no
11853  ;;
11854
11855# This must be Linux ELF.
11856linux*)
11857  version_type=linux
11858  need_lib_prefix=no
11859  need_version=no
11860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861  soname_spec='${libname}${release}${shared_ext}$major'
11862  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11863  shlibpath_var=LD_LIBRARY_PATH
11864  shlibpath_overrides_runpath=no
11865  # This implies no fast_install, which is unacceptable.
11866  # Some rework will be needed to allow for fast_install
11867  # before this can be enabled.
11868  hardcode_into_libs=yes
11869
11870  # Append ld.so.conf contents to the search path
11871  if test -f /etc/ld.so.conf; then
11872    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' ' '`
11873    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11874  fi
11875
11876  # We used to test for /lib/ld.so.1 and disable shared libraries on
11877  # powerpc, because MkLinux only supported shared libraries with the
11878  # GNU dynamic linker.  Since this was broken with cross compilers,
11879  # most powerpc-linux boxes support dynamic linking these days and
11880  # people can always --disable-shared, the test was removed, and we
11881  # assume the GNU/Linux dynamic linker is in use.
11882  dynamic_linker='GNU/Linux ld.so'
11883  ;;
11884
11885netbsdelf*-gnu)
11886  version_type=linux
11887  need_lib_prefix=no
11888  need_version=no
11889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11890  soname_spec='${libname}${release}${shared_ext}$major'
11891  shlibpath_var=LD_LIBRARY_PATH
11892  shlibpath_overrides_runpath=no
11893  hardcode_into_libs=yes
11894  dynamic_linker='NetBSD ld.elf_so'
11895  ;;
11896
11897knetbsd*-gnu)
11898  version_type=linux
11899  need_lib_prefix=no
11900  need_version=no
11901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11902  soname_spec='${libname}${release}${shared_ext}$major'
11903  shlibpath_var=LD_LIBRARY_PATH
11904  shlibpath_overrides_runpath=no
11905  hardcode_into_libs=yes
11906  dynamic_linker='GNU ld.so'
11907  ;;
11908
11909netbsd*)
11910  version_type=sunos
11911  need_lib_prefix=no
11912  need_version=no
11913  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11915    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11916    dynamic_linker='NetBSD (a.out) ld.so'
11917  else
11918    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11919    soname_spec='${libname}${release}${shared_ext}$major'
11920    dynamic_linker='NetBSD ld.elf_so'
11921  fi
11922  shlibpath_var=LD_LIBRARY_PATH
11923  shlibpath_overrides_runpath=yes
11924  hardcode_into_libs=yes
11925  ;;
11926
11927newsos6)
11928  version_type=linux
11929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930  shlibpath_var=LD_LIBRARY_PATH
11931  shlibpath_overrides_runpath=yes
11932  ;;
11933
11934nto-qnx*)
11935  version_type=linux
11936  need_lib_prefix=no
11937  need_version=no
11938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939  soname_spec='${libname}${release}${shared_ext}$major'
11940  shlibpath_var=LD_LIBRARY_PATH
11941  shlibpath_overrides_runpath=yes
11942  ;;
11943
11944openbsd*)
11945  version_type=sunos
11946  need_lib_prefix=no
11947  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11948  case $host_os in
11949    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11950    *)                         need_version=no  ;;
11951  esac
11952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11953  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11954  shlibpath_var=LD_LIBRARY_PATH
11955  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11956    case $host_os in
11957      openbsd2.[89] | openbsd2.[89].*)
11958	shlibpath_overrides_runpath=no
11959	;;
11960      *)
11961	shlibpath_overrides_runpath=yes
11962	;;
11963      esac
11964  else
11965    shlibpath_overrides_runpath=yes
11966  fi
11967  ;;
11968
11969os2*)
11970  libname_spec='$name'
11971  shrext_cmds=".dll"
11972  need_lib_prefix=no
11973  library_names_spec='$libname${shared_ext} $libname.a'
11974  dynamic_linker='OS/2 ld.exe'
11975  shlibpath_var=LIBPATH
11976  ;;
11977
11978osf3* | osf4* | osf5*)
11979  version_type=osf
11980  need_lib_prefix=no
11981  need_version=no
11982  soname_spec='${libname}${release}${shared_ext}$major'
11983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11984  shlibpath_var=LD_LIBRARY_PATH
11985  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11986  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11987  ;;
11988
11989sco3.2v5*)
11990  version_type=osf
11991  soname_spec='${libname}${release}${shared_ext}$major'
11992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11993  shlibpath_var=LD_LIBRARY_PATH
11994  ;;
11995
11996solaris*)
11997  version_type=linux
11998  need_lib_prefix=no
11999  need_version=no
12000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12001  soname_spec='${libname}${release}${shared_ext}$major'
12002  shlibpath_var=LD_LIBRARY_PATH
12003  shlibpath_overrides_runpath=yes
12004  hardcode_into_libs=yes
12005  # ldd complains unless libraries are executable
12006  postinstall_cmds='chmod +x $lib'
12007  ;;
12008
12009sunos4*)
12010  version_type=sunos
12011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12012  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12013  shlibpath_var=LD_LIBRARY_PATH
12014  shlibpath_overrides_runpath=yes
12015  if test "$with_gnu_ld" = yes; then
12016    need_lib_prefix=no
12017  fi
12018  need_version=yes
12019  ;;
12020
12021sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12022  version_type=linux
12023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12024  soname_spec='${libname}${release}${shared_ext}$major'
12025  shlibpath_var=LD_LIBRARY_PATH
12026  case $host_vendor in
12027    sni)
12028      shlibpath_overrides_runpath=no
12029      need_lib_prefix=no
12030      export_dynamic_flag_spec='${wl}-Blargedynsym'
12031      runpath_var=LD_RUN_PATH
12032      ;;
12033    siemens)
12034      need_lib_prefix=no
12035      ;;
12036    motorola)
12037      need_lib_prefix=no
12038      need_version=no
12039      shlibpath_overrides_runpath=no
12040      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12041      ;;
12042  esac
12043  ;;
12044
12045sysv4*MP*)
12046  if test -d /usr/nec ;then
12047    version_type=linux
12048    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12049    soname_spec='$libname${shared_ext}.$major'
12050    shlibpath_var=LD_LIBRARY_PATH
12051  fi
12052  ;;
12053
12054uts4*)
12055  version_type=linux
12056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057  soname_spec='${libname}${release}${shared_ext}$major'
12058  shlibpath_var=LD_LIBRARY_PATH
12059  ;;
12060
12061*)
12062  dynamic_linker=no
12063  ;;
12064esac
12065echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12066echo "${ECHO_T}$dynamic_linker" >&6
12067test "$dynamic_linker" = no && can_build_shared=no
12068
12069echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12070echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12071hardcode_action_CXX=
12072if test -n "$hardcode_libdir_flag_spec_CXX" || \
12073   test -n "$runpath_var_CXX" || \
12074   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12075
12076  # We can hardcode non-existant directories.
12077  if test "$hardcode_direct_CXX" != no &&
12078     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12079     # have to relink, otherwise we might link with an installed library
12080     # when we should be linking with a yet-to-be-installed one
12081     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12082     test "$hardcode_minus_L_CXX" != no; then
12083    # Linking always hardcodes the temporary library directory.
12084    hardcode_action_CXX=relink
12085  else
12086    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12087    hardcode_action_CXX=immediate
12088  fi
12089else
12090  # We cannot hardcode anything, or else we can only hardcode existing
12091  # directories.
12092  hardcode_action_CXX=unsupported
12093fi
12094echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12095echo "${ECHO_T}$hardcode_action_CXX" >&6
12096
12097if test "$hardcode_action_CXX" = relink; then
12098  # Fast installation is not supported
12099  enable_fast_install=no
12100elif test "$shlibpath_overrides_runpath" = yes ||
12101     test "$enable_shared" = no; then
12102  # Fast installation is not necessary
12103  enable_fast_install=needless
12104fi
12105
12106striplib=
12107old_striplib=
12108echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12109echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12110if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12111  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12112  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12113  echo "$as_me:$LINENO: result: yes" >&5
12114echo "${ECHO_T}yes" >&6
12115else
12116# FIXME - insert some real tests, host_os isn't really good enough
12117  case $host_os in
12118   darwin*)
12119       if test -n "$STRIP" ; then
12120         striplib="$STRIP -x"
12121         echo "$as_me:$LINENO: result: yes" >&5
12122echo "${ECHO_T}yes" >&6
12123       else
12124  echo "$as_me:$LINENO: result: no" >&5
12125echo "${ECHO_T}no" >&6
12126fi
12127       ;;
12128   *)
12129  echo "$as_me:$LINENO: result: no" >&5
12130echo "${ECHO_T}no" >&6
12131    ;;
12132  esac
12133fi
12134
12135if test "x$enable_dlopen" != xyes; then
12136  enable_dlopen=unknown
12137  enable_dlopen_self=unknown
12138  enable_dlopen_self_static=unknown
12139else
12140  lt_cv_dlopen=no
12141  lt_cv_dlopen_libs=
12142
12143  case $host_os in
12144  beos*)
12145    lt_cv_dlopen="load_add_on"
12146    lt_cv_dlopen_libs=
12147    lt_cv_dlopen_self=yes
12148    ;;
12149
12150  mingw* | pw32*)
12151    lt_cv_dlopen="LoadLibrary"
12152    lt_cv_dlopen_libs=
12153   ;;
12154
12155  cygwin*)
12156    lt_cv_dlopen="dlopen"
12157    lt_cv_dlopen_libs=
12158   ;;
12159
12160  darwin*)
12161  # if libdl is installed we need to link against it
12162    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12163echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12164if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12165  echo $ECHO_N "(cached) $ECHO_C" >&6
12166else
12167  ac_check_lib_save_LIBS=$LIBS
12168LIBS="-ldl  $LIBS"
12169cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h.  */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h.  */
12175
12176/* Override any gcc2 internal prototype to avoid an error.  */
12177#ifdef __cplusplus
12178extern "C"
12179#endif
12180/* We use char because int might match the return type of a gcc2
12181   builtin and then its argument prototype would still apply.  */
12182char dlopen ();
12183int
12184main ()
12185{
12186dlopen ();
12187  ;
12188  return 0;
12189}
12190_ACEOF
12191rm -f conftest.$ac_objext conftest$ac_exeext
12192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193  (eval $ac_link) 2>conftest.er1
12194  ac_status=$?
12195  grep -v '^ *+' conftest.er1 >conftest.err
12196  rm -f conftest.er1
12197  cat conftest.err >&5
12198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199  (exit $ac_status); } &&
12200	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202  (eval $ac_try) 2>&5
12203  ac_status=$?
12204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205  (exit $ac_status); }; } &&
12206	 { ac_try='test -s conftest$ac_exeext'
12207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208  (eval $ac_try) 2>&5
12209  ac_status=$?
12210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211  (exit $ac_status); }; }; then
12212  ac_cv_lib_dl_dlopen=yes
12213else
12214  echo "$as_me: failed program was:" >&5
12215sed 's/^/| /' conftest.$ac_ext >&5
12216
12217ac_cv_lib_dl_dlopen=no
12218fi
12219rm -f conftest.err conftest.$ac_objext \
12220      conftest$ac_exeext conftest.$ac_ext
12221LIBS=$ac_check_lib_save_LIBS
12222fi
12223echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12224echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12225if test $ac_cv_lib_dl_dlopen = yes; then
12226  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12227else
12228
12229    lt_cv_dlopen="dyld"
12230    lt_cv_dlopen_libs=
12231    lt_cv_dlopen_self=yes
12232
12233fi
12234
12235   ;;
12236
12237  *)
12238    echo "$as_me:$LINENO: checking for shl_load" >&5
12239echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12240if test "${ac_cv_func_shl_load+set}" = set; then
12241  echo $ECHO_N "(cached) $ECHO_C" >&6
12242else
12243  cat >conftest.$ac_ext <<_ACEOF
12244/* confdefs.h.  */
12245_ACEOF
12246cat confdefs.h >>conftest.$ac_ext
12247cat >>conftest.$ac_ext <<_ACEOF
12248/* end confdefs.h.  */
12249/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12250   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12251#define shl_load innocuous_shl_load
12252
12253/* System header to define __stub macros and hopefully few prototypes,
12254    which can conflict with char shl_load (); below.
12255    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12256    <limits.h> exists even on freestanding compilers.  */
12257
12258#ifdef __STDC__
12259# include <limits.h>
12260#else
12261# include <assert.h>
12262#endif
12263
12264#undef shl_load
12265
12266/* Override any gcc2 internal prototype to avoid an error.  */
12267#ifdef __cplusplus
12268extern "C"
12269{
12270#endif
12271/* We use char because int might match the return type of a gcc2
12272   builtin and then its argument prototype would still apply.  */
12273char shl_load ();
12274/* The GNU C library defines this for functions which it implements
12275    to always fail with ENOSYS.  Some functions are actually named
12276    something starting with __ and the normal name is an alias.  */
12277#if defined (__stub_shl_load) || defined (__stub___shl_load)
12278choke me
12279#else
12280char (*f) () = shl_load;
12281#endif
12282#ifdef __cplusplus
12283}
12284#endif
12285
12286int
12287main ()
12288{
12289return f != shl_load;
12290  ;
12291  return 0;
12292}
12293_ACEOF
12294rm -f conftest.$ac_objext conftest$ac_exeext
12295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12296  (eval $ac_link) 2>conftest.er1
12297  ac_status=$?
12298  grep -v '^ *+' conftest.er1 >conftest.err
12299  rm -f conftest.er1
12300  cat conftest.err >&5
12301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302  (exit $ac_status); } &&
12303	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305  (eval $ac_try) 2>&5
12306  ac_status=$?
12307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308  (exit $ac_status); }; } &&
12309	 { ac_try='test -s conftest$ac_exeext'
12310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311  (eval $ac_try) 2>&5
12312  ac_status=$?
12313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314  (exit $ac_status); }; }; then
12315  ac_cv_func_shl_load=yes
12316else
12317  echo "$as_me: failed program was:" >&5
12318sed 's/^/| /' conftest.$ac_ext >&5
12319
12320ac_cv_func_shl_load=no
12321fi
12322rm -f conftest.err conftest.$ac_objext \
12323      conftest$ac_exeext conftest.$ac_ext
12324fi
12325echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12326echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12327if test $ac_cv_func_shl_load = yes; then
12328  lt_cv_dlopen="shl_load"
12329else
12330  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12331echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12332if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12333  echo $ECHO_N "(cached) $ECHO_C" >&6
12334else
12335  ac_check_lib_save_LIBS=$LIBS
12336LIBS="-ldld  $LIBS"
12337cat >conftest.$ac_ext <<_ACEOF
12338/* confdefs.h.  */
12339_ACEOF
12340cat confdefs.h >>conftest.$ac_ext
12341cat >>conftest.$ac_ext <<_ACEOF
12342/* end confdefs.h.  */
12343
12344/* Override any gcc2 internal prototype to avoid an error.  */
12345#ifdef __cplusplus
12346extern "C"
12347#endif
12348/* We use char because int might match the return type of a gcc2
12349   builtin and then its argument prototype would still apply.  */
12350char shl_load ();
12351int
12352main ()
12353{
12354shl_load ();
12355  ;
12356  return 0;
12357}
12358_ACEOF
12359rm -f conftest.$ac_objext conftest$ac_exeext
12360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12361  (eval $ac_link) 2>conftest.er1
12362  ac_status=$?
12363  grep -v '^ *+' conftest.er1 >conftest.err
12364  rm -f conftest.er1
12365  cat conftest.err >&5
12366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367  (exit $ac_status); } &&
12368	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370  (eval $ac_try) 2>&5
12371  ac_status=$?
12372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373  (exit $ac_status); }; } &&
12374	 { ac_try='test -s conftest$ac_exeext'
12375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376  (eval $ac_try) 2>&5
12377  ac_status=$?
12378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379  (exit $ac_status); }; }; then
12380  ac_cv_lib_dld_shl_load=yes
12381else
12382  echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
12384
12385ac_cv_lib_dld_shl_load=no
12386fi
12387rm -f conftest.err conftest.$ac_objext \
12388      conftest$ac_exeext conftest.$ac_ext
12389LIBS=$ac_check_lib_save_LIBS
12390fi
12391echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12392echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12393if test $ac_cv_lib_dld_shl_load = yes; then
12394  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12395else
12396  echo "$as_me:$LINENO: checking for dlopen" >&5
12397echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12398if test "${ac_cv_func_dlopen+set}" = set; then
12399  echo $ECHO_N "(cached) $ECHO_C" >&6
12400else
12401  cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h.  */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h.  */
12407/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12408   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12409#define dlopen innocuous_dlopen
12410
12411/* System header to define __stub macros and hopefully few prototypes,
12412    which can conflict with char dlopen (); below.
12413    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12414    <limits.h> exists even on freestanding compilers.  */
12415
12416#ifdef __STDC__
12417# include <limits.h>
12418#else
12419# include <assert.h>
12420#endif
12421
12422#undef dlopen
12423
12424/* Override any gcc2 internal prototype to avoid an error.  */
12425#ifdef __cplusplus
12426extern "C"
12427{
12428#endif
12429/* We use char because int might match the return type of a gcc2
12430   builtin and then its argument prototype would still apply.  */
12431char dlopen ();
12432/* The GNU C library defines this for functions which it implements
12433    to always fail with ENOSYS.  Some functions are actually named
12434    something starting with __ and the normal name is an alias.  */
12435#if defined (__stub_dlopen) || defined (__stub___dlopen)
12436choke me
12437#else
12438char (*f) () = dlopen;
12439#endif
12440#ifdef __cplusplus
12441}
12442#endif
12443
12444int
12445main ()
12446{
12447return f != dlopen;
12448  ;
12449  return 0;
12450}
12451_ACEOF
12452rm -f conftest.$ac_objext conftest$ac_exeext
12453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12454  (eval $ac_link) 2>conftest.er1
12455  ac_status=$?
12456  grep -v '^ *+' conftest.er1 >conftest.err
12457  rm -f conftest.er1
12458  cat conftest.err >&5
12459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460  (exit $ac_status); } &&
12461	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463  (eval $ac_try) 2>&5
12464  ac_status=$?
12465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466  (exit $ac_status); }; } &&
12467	 { ac_try='test -s conftest$ac_exeext'
12468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469  (eval $ac_try) 2>&5
12470  ac_status=$?
12471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472  (exit $ac_status); }; }; then
12473  ac_cv_func_dlopen=yes
12474else
12475  echo "$as_me: failed program was:" >&5
12476sed 's/^/| /' conftest.$ac_ext >&5
12477
12478ac_cv_func_dlopen=no
12479fi
12480rm -f conftest.err conftest.$ac_objext \
12481      conftest$ac_exeext conftest.$ac_ext
12482fi
12483echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12484echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12485if test $ac_cv_func_dlopen = yes; then
12486  lt_cv_dlopen="dlopen"
12487else
12488  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12489echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12490if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12491  echo $ECHO_N "(cached) $ECHO_C" >&6
12492else
12493  ac_check_lib_save_LIBS=$LIBS
12494LIBS="-ldl  $LIBS"
12495cat >conftest.$ac_ext <<_ACEOF
12496/* confdefs.h.  */
12497_ACEOF
12498cat confdefs.h >>conftest.$ac_ext
12499cat >>conftest.$ac_ext <<_ACEOF
12500/* end confdefs.h.  */
12501
12502/* Override any gcc2 internal prototype to avoid an error.  */
12503#ifdef __cplusplus
12504extern "C"
12505#endif
12506/* We use char because int might match the return type of a gcc2
12507   builtin and then its argument prototype would still apply.  */
12508char dlopen ();
12509int
12510main ()
12511{
12512dlopen ();
12513  ;
12514  return 0;
12515}
12516_ACEOF
12517rm -f conftest.$ac_objext conftest$ac_exeext
12518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12519  (eval $ac_link) 2>conftest.er1
12520  ac_status=$?
12521  grep -v '^ *+' conftest.er1 >conftest.err
12522  rm -f conftest.er1
12523  cat conftest.err >&5
12524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525  (exit $ac_status); } &&
12526	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528  (eval $ac_try) 2>&5
12529  ac_status=$?
12530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531  (exit $ac_status); }; } &&
12532	 { ac_try='test -s conftest$ac_exeext'
12533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534  (eval $ac_try) 2>&5
12535  ac_status=$?
12536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537  (exit $ac_status); }; }; then
12538  ac_cv_lib_dl_dlopen=yes
12539else
12540  echo "$as_me: failed program was:" >&5
12541sed 's/^/| /' conftest.$ac_ext >&5
12542
12543ac_cv_lib_dl_dlopen=no
12544fi
12545rm -f conftest.err conftest.$ac_objext \
12546      conftest$ac_exeext conftest.$ac_ext
12547LIBS=$ac_check_lib_save_LIBS
12548fi
12549echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12550echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12551if test $ac_cv_lib_dl_dlopen = yes; then
12552  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12553else
12554  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12555echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12556if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12557  echo $ECHO_N "(cached) $ECHO_C" >&6
12558else
12559  ac_check_lib_save_LIBS=$LIBS
12560LIBS="-lsvld  $LIBS"
12561cat >conftest.$ac_ext <<_ACEOF
12562/* confdefs.h.  */
12563_ACEOF
12564cat confdefs.h >>conftest.$ac_ext
12565cat >>conftest.$ac_ext <<_ACEOF
12566/* end confdefs.h.  */
12567
12568/* Override any gcc2 internal prototype to avoid an error.  */
12569#ifdef __cplusplus
12570extern "C"
12571#endif
12572/* We use char because int might match the return type of a gcc2
12573   builtin and then its argument prototype would still apply.  */
12574char dlopen ();
12575int
12576main ()
12577{
12578dlopen ();
12579  ;
12580  return 0;
12581}
12582_ACEOF
12583rm -f conftest.$ac_objext conftest$ac_exeext
12584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12585  (eval $ac_link) 2>conftest.er1
12586  ac_status=$?
12587  grep -v '^ *+' conftest.er1 >conftest.err
12588  rm -f conftest.er1
12589  cat conftest.err >&5
12590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591  (exit $ac_status); } &&
12592	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594  (eval $ac_try) 2>&5
12595  ac_status=$?
12596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597  (exit $ac_status); }; } &&
12598	 { ac_try='test -s conftest$ac_exeext'
12599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600  (eval $ac_try) 2>&5
12601  ac_status=$?
12602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603  (exit $ac_status); }; }; then
12604  ac_cv_lib_svld_dlopen=yes
12605else
12606  echo "$as_me: failed program was:" >&5
12607sed 's/^/| /' conftest.$ac_ext >&5
12608
12609ac_cv_lib_svld_dlopen=no
12610fi
12611rm -f conftest.err conftest.$ac_objext \
12612      conftest$ac_exeext conftest.$ac_ext
12613LIBS=$ac_check_lib_save_LIBS
12614fi
12615echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12616echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12617if test $ac_cv_lib_svld_dlopen = yes; then
12618  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12619else
12620  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12621echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12622if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12623  echo $ECHO_N "(cached) $ECHO_C" >&6
12624else
12625  ac_check_lib_save_LIBS=$LIBS
12626LIBS="-ldld  $LIBS"
12627cat >conftest.$ac_ext <<_ACEOF
12628/* confdefs.h.  */
12629_ACEOF
12630cat confdefs.h >>conftest.$ac_ext
12631cat >>conftest.$ac_ext <<_ACEOF
12632/* end confdefs.h.  */
12633
12634/* Override any gcc2 internal prototype to avoid an error.  */
12635#ifdef __cplusplus
12636extern "C"
12637#endif
12638/* We use char because int might match the return type of a gcc2
12639   builtin and then its argument prototype would still apply.  */
12640char dld_link ();
12641int
12642main ()
12643{
12644dld_link ();
12645  ;
12646  return 0;
12647}
12648_ACEOF
12649rm -f conftest.$ac_objext conftest$ac_exeext
12650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651  (eval $ac_link) 2>conftest.er1
12652  ac_status=$?
12653  grep -v '^ *+' conftest.er1 >conftest.err
12654  rm -f conftest.er1
12655  cat conftest.err >&5
12656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657  (exit $ac_status); } &&
12658	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660  (eval $ac_try) 2>&5
12661  ac_status=$?
12662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663  (exit $ac_status); }; } &&
12664	 { ac_try='test -s conftest$ac_exeext'
12665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666  (eval $ac_try) 2>&5
12667  ac_status=$?
12668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669  (exit $ac_status); }; }; then
12670  ac_cv_lib_dld_dld_link=yes
12671else
12672  echo "$as_me: failed program was:" >&5
12673sed 's/^/| /' conftest.$ac_ext >&5
12674
12675ac_cv_lib_dld_dld_link=no
12676fi
12677rm -f conftest.err conftest.$ac_objext \
12678      conftest$ac_exeext conftest.$ac_ext
12679LIBS=$ac_check_lib_save_LIBS
12680fi
12681echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12682echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12683if test $ac_cv_lib_dld_dld_link = yes; then
12684  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12685fi
12686
12687
12688fi
12689
12690
12691fi
12692
12693
12694fi
12695
12696
12697fi
12698
12699
12700fi
12701
12702    ;;
12703  esac
12704
12705  if test "x$lt_cv_dlopen" != xno; then
12706    enable_dlopen=yes
12707  else
12708    enable_dlopen=no
12709  fi
12710
12711  case $lt_cv_dlopen in
12712  dlopen)
12713    save_CPPFLAGS="$CPPFLAGS"
12714    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12715
12716    save_LDFLAGS="$LDFLAGS"
12717    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12718
12719    save_LIBS="$LIBS"
12720    LIBS="$lt_cv_dlopen_libs $LIBS"
12721
12722    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12723echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12724if test "${lt_cv_dlopen_self+set}" = set; then
12725  echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727  	  if test "$cross_compiling" = yes; then :
12728  lt_cv_dlopen_self=cross
12729else
12730  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12731  lt_status=$lt_dlunknown
12732  cat > conftest.$ac_ext <<EOF
12733#line 12733 "configure"
12734#include "confdefs.h"
12735
12736#if HAVE_DLFCN_H
12737#include <dlfcn.h>
12738#endif
12739
12740#include <stdio.h>
12741
12742#ifdef RTLD_GLOBAL
12743#  define LT_DLGLOBAL		RTLD_GLOBAL
12744#else
12745#  ifdef DL_GLOBAL
12746#    define LT_DLGLOBAL		DL_GLOBAL
12747#  else
12748#    define LT_DLGLOBAL		0
12749#  endif
12750#endif
12751
12752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12753   find out it does not work in some platform. */
12754#ifndef LT_DLLAZY_OR_NOW
12755#  ifdef RTLD_LAZY
12756#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12757#  else
12758#    ifdef DL_LAZY
12759#      define LT_DLLAZY_OR_NOW		DL_LAZY
12760#    else
12761#      ifdef RTLD_NOW
12762#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12763#      else
12764#        ifdef DL_NOW
12765#          define LT_DLLAZY_OR_NOW	DL_NOW
12766#        else
12767#          define LT_DLLAZY_OR_NOW	0
12768#        endif
12769#      endif
12770#    endif
12771#  endif
12772#endif
12773
12774#ifdef __cplusplus
12775extern "C" void exit (int);
12776#endif
12777
12778void fnord() { int i=42;}
12779int main ()
12780{
12781  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12782  int status = $lt_dlunknown;
12783
12784  if (self)
12785    {
12786      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12787      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12788      /* dlclose (self); */
12789    }
12790
12791    exit (status);
12792}
12793EOF
12794  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795  (eval $ac_link) 2>&5
12796  ac_status=$?
12797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12799    (./conftest; exit; ) >&5 2>/dev/null
12800    lt_status=$?
12801    case x$lt_status in
12802      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12803      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12804      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12805    esac
12806  else :
12807    # compilation failed
12808    lt_cv_dlopen_self=no
12809  fi
12810fi
12811rm -fr conftest*
12812
12813
12814fi
12815echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12816echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12817
12818    if test "x$lt_cv_dlopen_self" = xyes; then
12819      LDFLAGS="$LDFLAGS $link_static_flag"
12820      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12821echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12822if test "${lt_cv_dlopen_self_static+set}" = set; then
12823  echo $ECHO_N "(cached) $ECHO_C" >&6
12824else
12825  	  if test "$cross_compiling" = yes; then :
12826  lt_cv_dlopen_self_static=cross
12827else
12828  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12829  lt_status=$lt_dlunknown
12830  cat > conftest.$ac_ext <<EOF
12831#line 12831 "configure"
12832#include "confdefs.h"
12833
12834#if HAVE_DLFCN_H
12835#include <dlfcn.h>
12836#endif
12837
12838#include <stdio.h>
12839
12840#ifdef RTLD_GLOBAL
12841#  define LT_DLGLOBAL		RTLD_GLOBAL
12842#else
12843#  ifdef DL_GLOBAL
12844#    define LT_DLGLOBAL		DL_GLOBAL
12845#  else
12846#    define LT_DLGLOBAL		0
12847#  endif
12848#endif
12849
12850/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12851   find out it does not work in some platform. */
12852#ifndef LT_DLLAZY_OR_NOW
12853#  ifdef RTLD_LAZY
12854#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12855#  else
12856#    ifdef DL_LAZY
12857#      define LT_DLLAZY_OR_NOW		DL_LAZY
12858#    else
12859#      ifdef RTLD_NOW
12860#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12861#      else
12862#        ifdef DL_NOW
12863#          define LT_DLLAZY_OR_NOW	DL_NOW
12864#        else
12865#          define LT_DLLAZY_OR_NOW	0
12866#        endif
12867#      endif
12868#    endif
12869#  endif
12870#endif
12871
12872#ifdef __cplusplus
12873extern "C" void exit (int);
12874#endif
12875
12876void fnord() { int i=42;}
12877int main ()
12878{
12879  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12880  int status = $lt_dlunknown;
12881
12882  if (self)
12883    {
12884      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12885      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12886      /* dlclose (self); */
12887    }
12888
12889    exit (status);
12890}
12891EOF
12892  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12893  (eval $ac_link) 2>&5
12894  ac_status=$?
12895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12897    (./conftest; exit; ) >&5 2>/dev/null
12898    lt_status=$?
12899    case x$lt_status in
12900      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12901      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12902      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12903    esac
12904  else :
12905    # compilation failed
12906    lt_cv_dlopen_self_static=no
12907  fi
12908fi
12909rm -fr conftest*
12910
12911
12912fi
12913echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12914echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12915    fi
12916
12917    CPPFLAGS="$save_CPPFLAGS"
12918    LDFLAGS="$save_LDFLAGS"
12919    LIBS="$save_LIBS"
12920    ;;
12921  esac
12922
12923  case $lt_cv_dlopen_self in
12924  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12925  *) enable_dlopen_self=unknown ;;
12926  esac
12927
12928  case $lt_cv_dlopen_self_static in
12929  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12930  *) enable_dlopen_self_static=unknown ;;
12931  esac
12932fi
12933
12934
12935# The else clause should only fire when bootstrapping the
12936# libtool distribution, otherwise you forgot to ship ltmain.sh
12937# with your package, and you will get complaints that there are
12938# no rules to generate ltmain.sh.
12939if test -f "$ltmain"; then
12940  # See if we are running on zsh, and set the options which allow our commands through
12941  # without removal of \ escapes.
12942  if test -n "${ZSH_VERSION+set}" ; then
12943    setopt NO_GLOB_SUBST
12944  fi
12945  # Now quote all the things that may contain metacharacters while being
12946  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12947  # variables and quote the copies for generation of the libtool script.
12948  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12949    SED SHELL STRIP \
12950    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12951    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12952    deplibs_check_method reload_flag reload_cmds need_locks \
12953    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12954    lt_cv_sys_global_symbol_to_c_name_address \
12955    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12956    old_postinstall_cmds old_postuninstall_cmds \
12957    compiler_CXX \
12958    CC_CXX \
12959    LD_CXX \
12960    lt_prog_compiler_wl_CXX \
12961    lt_prog_compiler_pic_CXX \
12962    lt_prog_compiler_static_CXX \
12963    lt_prog_compiler_no_builtin_flag_CXX \
12964    export_dynamic_flag_spec_CXX \
12965    thread_safe_flag_spec_CXX \
12966    whole_archive_flag_spec_CXX \
12967    enable_shared_with_static_runtimes_CXX \
12968    old_archive_cmds_CXX \
12969    old_archive_from_new_cmds_CXX \
12970    predep_objects_CXX \
12971    postdep_objects_CXX \
12972    predeps_CXX \
12973    postdeps_CXX \
12974    compiler_lib_search_path_CXX \
12975    archive_cmds_CXX \
12976    archive_expsym_cmds_CXX \
12977    postinstall_cmds_CXX \
12978    postuninstall_cmds_CXX \
12979    old_archive_from_expsyms_cmds_CXX \
12980    allow_undefined_flag_CXX \
12981    no_undefined_flag_CXX \
12982    export_symbols_cmds_CXX \
12983    hardcode_libdir_flag_spec_CXX \
12984    hardcode_libdir_flag_spec_ld_CXX \
12985    hardcode_libdir_separator_CXX \
12986    hardcode_automatic_CXX \
12987    module_cmds_CXX \
12988    module_expsym_cmds_CXX \
12989    lt_cv_prog_compiler_c_o_CXX \
12990    exclude_expsyms_CXX \
12991    include_expsyms_CXX; do
12992
12993    case $var in
12994    old_archive_cmds_CXX | \
12995    old_archive_from_new_cmds_CXX | \
12996    archive_cmds_CXX | \
12997    archive_expsym_cmds_CXX | \
12998    module_cmds_CXX | \
12999    module_expsym_cmds_CXX | \
13000    old_archive_from_expsyms_cmds_CXX | \
13001    export_symbols_cmds_CXX | \
13002    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13003    postinstall_cmds | postuninstall_cmds | \
13004    old_postinstall_cmds | old_postuninstall_cmds | \
13005    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13006      # Double-quote double-evaled strings.
13007      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13008      ;;
13009    *)
13010      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13011      ;;
13012    esac
13013  done
13014
13015  case $lt_echo in
13016  *'\$0 --fallback-echo"')
13017    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13018    ;;
13019  esac
13020
13021cfgfile="$ofile"
13022
13023  cat <<__EOF__ >> "$cfgfile"
13024# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13025
13026# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13027
13028# Shell to use when invoking shell scripts.
13029SHELL=$lt_SHELL
13030
13031# Whether or not to build shared libraries.
13032build_libtool_libs=$enable_shared
13033
13034# Whether or not to build static libraries.
13035build_old_libs=$enable_static
13036
13037# Whether or not to add -lc for building shared libraries.
13038build_libtool_need_lc=$archive_cmds_need_lc_CXX
13039
13040# Whether or not to disallow shared libs when runtime libs are static
13041allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13042
13043# Whether or not to optimize for fast installation.
13044fast_install=$enable_fast_install
13045
13046# The host system.
13047host_alias=$host_alias
13048host=$host
13049host_os=$host_os
13050
13051# The build system.
13052build_alias=$build_alias
13053build=$build
13054build_os=$build_os
13055
13056# An echo program that does not interpret backslashes.
13057echo=$lt_echo
13058
13059# The archiver.
13060AR=$lt_AR
13061AR_FLAGS=$lt_AR_FLAGS
13062
13063# A C compiler.
13064LTCC=$lt_LTCC
13065
13066# A language-specific compiler.
13067CC=$lt_compiler_CXX
13068
13069# Is the compiler the GNU C compiler?
13070with_gcc=$GCC_CXX
13071
13072# An ERE matcher.
13073EGREP=$lt_EGREP
13074
13075# The linker used to build libraries.
13076LD=$lt_LD_CXX
13077
13078# Whether we need hard or soft links.
13079LN_S=$lt_LN_S
13080
13081# A BSD-compatible nm program.
13082NM=$lt_NM
13083
13084# A symbol stripping program
13085STRIP=$lt_STRIP
13086
13087# Used to examine libraries when file_magic_cmd begins "file"
13088MAGIC_CMD=$MAGIC_CMD
13089
13090# Used on cygwin: DLL creation program.
13091DLLTOOL="$DLLTOOL"
13092
13093# Used on cygwin: object dumper.
13094OBJDUMP="$OBJDUMP"
13095
13096# Used on cygwin: assembler.
13097AS="$AS"
13098
13099# The name of the directory that contains temporary libtool files.
13100objdir=$objdir
13101
13102# How to create reloadable object files.
13103reload_flag=$lt_reload_flag
13104reload_cmds=$lt_reload_cmds
13105
13106# How to pass a linker flag through the compiler.
13107wl=$lt_lt_prog_compiler_wl_CXX
13108
13109# Object file suffix (normally "o").
13110objext="$ac_objext"
13111
13112# Old archive suffix (normally "a").
13113libext="$libext"
13114
13115# Shared library suffix (normally ".so").
13116shrext_cmds='$shrext_cmds'
13117
13118# Executable file suffix (normally "").
13119exeext="$exeext"
13120
13121# Additional compiler flags for building library objects.
13122pic_flag=$lt_lt_prog_compiler_pic_CXX
13123pic_mode=$pic_mode
13124
13125# What is the maximum length of a command?
13126max_cmd_len=$lt_cv_sys_max_cmd_len
13127
13128# Does compiler simultaneously support -c and -o options?
13129compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13130
13131# Must we lock files when doing compilation?
13132need_locks=$lt_need_locks
13133
13134# Do we need the lib prefix for modules?
13135need_lib_prefix=$need_lib_prefix
13136
13137# Do we need a version for libraries?
13138need_version=$need_version
13139
13140# Whether dlopen is supported.
13141dlopen_support=$enable_dlopen
13142
13143# Whether dlopen of programs is supported.
13144dlopen_self=$enable_dlopen_self
13145
13146# Whether dlopen of statically linked programs is supported.
13147dlopen_self_static=$enable_dlopen_self_static
13148
13149# Compiler flag to prevent dynamic linking.
13150link_static_flag=$lt_lt_prog_compiler_static_CXX
13151
13152# Compiler flag to turn off builtin functions.
13153no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13154
13155# Compiler flag to allow reflexive dlopens.
13156export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13157
13158# Compiler flag to generate shared objects directly from archives.
13159whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13160
13161# Compiler flag to generate thread-safe objects.
13162thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13163
13164# Library versioning type.
13165version_type=$version_type
13166
13167# Format of library name prefix.
13168libname_spec=$lt_libname_spec
13169
13170# List of archive names.  First name is the real one, the rest are links.
13171# The last name is the one that the linker finds with -lNAME.
13172library_names_spec=$lt_library_names_spec
13173
13174# The coded name of the library, if different from the real name.
13175soname_spec=$lt_soname_spec
13176
13177# Commands used to build and install an old-style archive.
13178RANLIB=$lt_RANLIB
13179old_archive_cmds=$lt_old_archive_cmds_CXX
13180old_postinstall_cmds=$lt_old_postinstall_cmds
13181old_postuninstall_cmds=$lt_old_postuninstall_cmds
13182
13183# Create an old-style archive from a shared archive.
13184old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13185
13186# Create a temporary old-style archive to link instead of a shared archive.
13187old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13188
13189# Commands used to build and install a shared archive.
13190archive_cmds=$lt_archive_cmds_CXX
13191archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13192postinstall_cmds=$lt_postinstall_cmds
13193postuninstall_cmds=$lt_postuninstall_cmds
13194
13195# Commands used to build a loadable module (assumed same as above if empty)
13196module_cmds=$lt_module_cmds_CXX
13197module_expsym_cmds=$lt_module_expsym_cmds_CXX
13198
13199# Commands to strip libraries.
13200old_striplib=$lt_old_striplib
13201striplib=$lt_striplib
13202
13203# Dependencies to place before the objects being linked to create a
13204# shared library.
13205predep_objects=$lt_predep_objects_CXX
13206
13207# Dependencies to place after the objects being linked to create a
13208# shared library.
13209postdep_objects=$lt_postdep_objects_CXX
13210
13211# Dependencies to place before the objects being linked to create a
13212# shared library.
13213predeps=$lt_predeps_CXX
13214
13215# Dependencies to place after the objects being linked to create a
13216# shared library.
13217postdeps=$lt_postdeps_CXX
13218
13219# The library search path used internally by the compiler when linking
13220# a shared library.
13221compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13222
13223# Method to check whether dependent libraries are shared objects.
13224deplibs_check_method=$lt_deplibs_check_method
13225
13226# Command to use when deplibs_check_method == file_magic.
13227file_magic_cmd=$lt_file_magic_cmd
13228
13229# Flag that allows shared libraries with undefined symbols to be built.
13230allow_undefined_flag=$lt_allow_undefined_flag_CXX
13231
13232# Flag that forces no undefined symbols.
13233no_undefined_flag=$lt_no_undefined_flag_CXX
13234
13235# Commands used to finish a libtool library installation in a directory.
13236finish_cmds=$lt_finish_cmds
13237
13238# Same as above, but a single script fragment to be evaled but not shown.
13239finish_eval=$lt_finish_eval
13240
13241# Take the output of nm and produce a listing of raw symbols and C names.
13242global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13243
13244# Transform the output of nm in a proper C declaration
13245global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13246
13247# Transform the output of nm in a C name address pair
13248global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13249
13250# This is the shared library runtime path variable.
13251runpath_var=$runpath_var
13252
13253# This is the shared library path variable.
13254shlibpath_var=$shlibpath_var
13255
13256# Is shlibpath searched before the hard-coded library search path?
13257shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13258
13259# How to hardcode a shared library path into an executable.
13260hardcode_action=$hardcode_action_CXX
13261
13262# Whether we should hardcode library paths into libraries.
13263hardcode_into_libs=$hardcode_into_libs
13264
13265# Flag to hardcode \$libdir into a binary during linking.
13266# This must work even if \$libdir does not exist.
13267hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13268
13269# If ld is used when linking, flag to hardcode \$libdir into
13270# a binary during linking. This must work even if \$libdir does
13271# not exist.
13272hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13273
13274# Whether we need a single -rpath flag with a separated argument.
13275hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13276
13277# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13278# resulting binary.
13279hardcode_direct=$hardcode_direct_CXX
13280
13281# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13282# resulting binary.
13283hardcode_minus_L=$hardcode_minus_L_CXX
13284
13285# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13286# the resulting binary.
13287hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13288
13289# Set to yes if building a shared library automatically hardcodes DIR into the library
13290# and all subsequent libraries and executables linked against it.
13291hardcode_automatic=$hardcode_automatic_CXX
13292
13293# Variables whose values should be saved in libtool wrapper scripts and
13294# restored at relink time.
13295variables_saved_for_relink="$variables_saved_for_relink"
13296
13297# Whether libtool must link a program against all its dependency libraries.
13298link_all_deplibs=$link_all_deplibs_CXX
13299
13300# Compile-time system search path for libraries
13301sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13302
13303# Run-time system search path for libraries
13304sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13305
13306# Fix the shell variable \$srcfile for the compiler.
13307fix_srcfile_path="$fix_srcfile_path_CXX"
13308
13309# Set to yes if exported symbols are required.
13310always_export_symbols=$always_export_symbols_CXX
13311
13312# The commands to list exported symbols.
13313export_symbols_cmds=$lt_export_symbols_cmds_CXX
13314
13315# The commands to extract the exported symbol list from a shared archive.
13316extract_expsyms_cmds=$lt_extract_expsyms_cmds
13317
13318# Symbols that should not be listed in the preloaded symbols.
13319exclude_expsyms=$lt_exclude_expsyms_CXX
13320
13321# Symbols that must always be exported.
13322include_expsyms=$lt_include_expsyms_CXX
13323
13324# ### END LIBTOOL TAG CONFIG: $tagname
13325
13326__EOF__
13327
13328
13329else
13330  # If there is no Makefile yet, we rely on a make rule to execute
13331  # `config.status --recheck' to rerun these tests and create the
13332  # libtool script then.
13333  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13334  if test -f "$ltmain_in"; then
13335    test -f Makefile && make "$ltmain"
13336  fi
13337fi
13338
13339
13340ac_ext=c
13341ac_cpp='$CPP $CPPFLAGS'
13342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13344ac_compiler_gnu=$ac_cv_c_compiler_gnu
13345
13346CC=$lt_save_CC
13347LDCXX=$LD
13348LD=$lt_save_LD
13349GCC=$lt_save_GCC
13350with_gnu_ldcxx=$with_gnu_ld
13351with_gnu_ld=$lt_save_with_gnu_ld
13352lt_cv_path_LDCXX=$lt_cv_path_LD
13353lt_cv_path_LD=$lt_save_path_LD
13354lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13355lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13356
13357	else
13358	  tagname=""
13359	fi
13360	;;
13361
13362      F77)
13363	if test -n "$F77" && test "X$F77" != "Xno"; then
13364
13365ac_ext=f
13366ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13367ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13368ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13369
13370
13371archive_cmds_need_lc_F77=no
13372allow_undefined_flag_F77=
13373always_export_symbols_F77=no
13374archive_expsym_cmds_F77=
13375export_dynamic_flag_spec_F77=
13376hardcode_direct_F77=no
13377hardcode_libdir_flag_spec_F77=
13378hardcode_libdir_flag_spec_ld_F77=
13379hardcode_libdir_separator_F77=
13380hardcode_minus_L_F77=no
13381hardcode_automatic_F77=no
13382module_cmds_F77=
13383module_expsym_cmds_F77=
13384link_all_deplibs_F77=unknown
13385old_archive_cmds_F77=$old_archive_cmds
13386no_undefined_flag_F77=
13387whole_archive_flag_spec_F77=
13388enable_shared_with_static_runtimes_F77=no
13389
13390# Source file extension for f77 test sources.
13391ac_ext=f
13392
13393# Object file extension for compiled f77 test sources.
13394objext=o
13395objext_F77=$objext
13396
13397# Code to be used in simple compile tests
13398lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13399
13400# Code to be used in simple link tests
13401lt_simple_link_test_code="      program t\n      end\n"
13402
13403# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13404
13405# If no C compiler was specified, use CC.
13406LTCC=${LTCC-"$CC"}
13407
13408# Allow CC to be a program name with arguments.
13409compiler=$CC
13410
13411
13412# save warnings/boilerplate of simple test code
13413ac_outfile=conftest.$ac_objext
13414printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13415eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13416_lt_compiler_boilerplate=`cat conftest.err`
13417$rm conftest*
13418
13419ac_outfile=conftest.$ac_objext
13420printf "$lt_simple_link_test_code" >conftest.$ac_ext
13421eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13422_lt_linker_boilerplate=`cat conftest.err`
13423$rm conftest*
13424
13425
13426# Allow CC to be a program name with arguments.
13427lt_save_CC="$CC"
13428CC=${F77-"f77"}
13429compiler=$CC
13430compiler_F77=$CC
13431for cc_temp in $compiler""; do
13432  case $cc_temp in
13433    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13434    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13435    \-*) ;;
13436    *) break;;
13437  esac
13438done
13439cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13440
13441
13442echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13443echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13444echo "$as_me:$LINENO: result: $can_build_shared" >&5
13445echo "${ECHO_T}$can_build_shared" >&6
13446
13447echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13448echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13449test "$can_build_shared" = "no" && enable_shared=no
13450
13451# On AIX, shared libraries and static libraries use the same namespace, and
13452# are all built from PIC.
13453case $host_os in
13454aix3*)
13455  test "$enable_shared" = yes && enable_static=no
13456  if test -n "$RANLIB"; then
13457    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13458    postinstall_cmds='$RANLIB $lib'
13459  fi
13460  ;;
13461aix4* | aix5*)
13462  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13463    test "$enable_shared" = yes && enable_static=no
13464  fi
13465  ;;
13466esac
13467echo "$as_me:$LINENO: result: $enable_shared" >&5
13468echo "${ECHO_T}$enable_shared" >&6
13469
13470echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13471echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13472# Make sure either enable_shared or enable_static is yes.
13473test "$enable_shared" = yes || enable_static=yes
13474echo "$as_me:$LINENO: result: $enable_static" >&5
13475echo "${ECHO_T}$enable_static" >&6
13476
13477test "$ld_shlibs_F77" = no && can_build_shared=no
13478
13479GCC_F77="$G77"
13480LD_F77="$LD"
13481
13482lt_prog_compiler_wl_F77=
13483lt_prog_compiler_pic_F77=
13484lt_prog_compiler_static_F77=
13485
13486echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13487echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13488
13489  if test "$GCC" = yes; then
13490    lt_prog_compiler_wl_F77='-Wl,'
13491    lt_prog_compiler_static_F77='-static'
13492
13493    case $host_os in
13494      aix*)
13495      # All AIX code is PIC.
13496      if test "$host_cpu" = ia64; then
13497	# AIX 5 now supports IA64 processor
13498	lt_prog_compiler_static_F77='-Bstatic'
13499      fi
13500      ;;
13501
13502    amigaos*)
13503      # FIXME: we need at least 68020 code to build shared libraries, but
13504      # adding the `-m68020' flag to GCC prevents building anything better,
13505      # like `-m68040'.
13506      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13507      ;;
13508
13509    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13510      # PIC is the default for these OSes.
13511      ;;
13512
13513    mingw* | pw32* | os2*)
13514      # This hack is so that the source file can tell whether it is being
13515      # built for inclusion in a dll (and should export symbols for example).
13516      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13517      ;;
13518
13519    darwin* | rhapsody*)
13520      # PIC is the default on this platform
13521      # Common symbols not allowed in MH_DYLIB files
13522      lt_prog_compiler_pic_F77='-fno-common'
13523      ;;
13524
13525    msdosdjgpp*)
13526      # Just because we use GCC doesn't mean we suddenly get shared libraries
13527      # on systems that don't support them.
13528      lt_prog_compiler_can_build_shared_F77=no
13529      enable_shared=no
13530      ;;
13531
13532    sysv4*MP*)
13533      if test -d /usr/nec; then
13534	lt_prog_compiler_pic_F77=-Kconform_pic
13535      fi
13536      ;;
13537
13538    hpux*)
13539      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13540      # not for PA HP-UX.
13541      case $host_cpu in
13542      hppa*64*|ia64*)
13543	# +Z the default
13544	;;
13545      *)
13546	lt_prog_compiler_pic_F77='-fPIC'
13547	;;
13548      esac
13549      ;;
13550
13551    *)
13552      lt_prog_compiler_pic_F77='-fPIC'
13553      ;;
13554    esac
13555  else
13556    # PORTME Check for flag to pass linker flags through the system compiler.
13557    case $host_os in
13558    aix*)
13559      lt_prog_compiler_wl_F77='-Wl,'
13560      if test "$host_cpu" = ia64; then
13561	# AIX 5 now supports IA64 processor
13562	lt_prog_compiler_static_F77='-Bstatic'
13563      else
13564	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13565      fi
13566      ;;
13567      darwin*)
13568        # PIC is the default on this platform
13569        # Common symbols not allowed in MH_DYLIB files
13570       case $cc_basename in
13571         xlc*)
13572         lt_prog_compiler_pic_F77='-qnocommon'
13573         lt_prog_compiler_wl_F77='-Wl,'
13574         ;;
13575       esac
13576       ;;
13577
13578    mingw* | pw32* | os2*)
13579      # This hack is so that the source file can tell whether it is being
13580      # built for inclusion in a dll (and should export symbols for example).
13581      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13582      ;;
13583
13584    hpux9* | hpux10* | hpux11*)
13585      lt_prog_compiler_wl_F77='-Wl,'
13586      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13587      # not for PA HP-UX.
13588      case $host_cpu in
13589      hppa*64*|ia64*)
13590	# +Z the default
13591	;;
13592      *)
13593	lt_prog_compiler_pic_F77='+Z'
13594	;;
13595      esac
13596      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13597      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13598      ;;
13599
13600    irix5* | irix6* | nonstopux*)
13601      lt_prog_compiler_wl_F77='-Wl,'
13602      # PIC (with -KPIC) is the default.
13603      lt_prog_compiler_static_F77='-non_shared'
13604      ;;
13605
13606    newsos6)
13607      lt_prog_compiler_pic_F77='-KPIC'
13608      lt_prog_compiler_static_F77='-Bstatic'
13609      ;;
13610
13611    linux*)
13612      case $cc_basename in
13613      icc* | ecc*)
13614	lt_prog_compiler_wl_F77='-Wl,'
13615	lt_prog_compiler_pic_F77='-KPIC'
13616	lt_prog_compiler_static_F77='-static'
13617        ;;
13618      pgcc* | pgf77* | pgf90* | pgf95*)
13619        # Portland Group compilers (*not* the Pentium gcc compiler,
13620	# which looks to be a dead project)
13621	lt_prog_compiler_wl_F77='-Wl,'
13622	lt_prog_compiler_pic_F77='-fpic'
13623	lt_prog_compiler_static_F77='-Bstatic'
13624        ;;
13625      ccc*)
13626        lt_prog_compiler_wl_F77='-Wl,'
13627        # All Alpha code is PIC.
13628        lt_prog_compiler_static_F77='-non_shared'
13629        ;;
13630      esac
13631      ;;
13632
13633    osf3* | osf4* | osf5*)
13634      lt_prog_compiler_wl_F77='-Wl,'
13635      # All OSF/1 code is PIC.
13636      lt_prog_compiler_static_F77='-non_shared'
13637      ;;
13638
13639    sco3.2v5*)
13640      lt_prog_compiler_pic_F77='-Kpic'
13641      lt_prog_compiler_static_F77='-dn'
13642      ;;
13643
13644    solaris*)
13645      lt_prog_compiler_pic_F77='-KPIC'
13646      lt_prog_compiler_static_F77='-Bstatic'
13647      case $cc_basename in
13648      f77* | f90* | f95*)
13649	lt_prog_compiler_wl_F77='-Qoption ld ';;
13650      *)
13651	lt_prog_compiler_wl_F77='-Wl,';;
13652      esac
13653      ;;
13654
13655    sunos4*)
13656      lt_prog_compiler_wl_F77='-Qoption ld '
13657      lt_prog_compiler_pic_F77='-PIC'
13658      lt_prog_compiler_static_F77='-Bstatic'
13659      ;;
13660
13661    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13662      lt_prog_compiler_wl_F77='-Wl,'
13663      lt_prog_compiler_pic_F77='-KPIC'
13664      lt_prog_compiler_static_F77='-Bstatic'
13665      ;;
13666
13667    sysv4*MP*)
13668      if test -d /usr/nec ;then
13669	lt_prog_compiler_pic_F77='-Kconform_pic'
13670	lt_prog_compiler_static_F77='-Bstatic'
13671      fi
13672      ;;
13673
13674    unicos*)
13675      lt_prog_compiler_wl_F77='-Wl,'
13676      lt_prog_compiler_can_build_shared_F77=no
13677      ;;
13678
13679    uts4*)
13680      lt_prog_compiler_pic_F77='-pic'
13681      lt_prog_compiler_static_F77='-Bstatic'
13682      ;;
13683
13684    *)
13685      lt_prog_compiler_can_build_shared_F77=no
13686      ;;
13687    esac
13688  fi
13689
13690echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13691echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13692
13693#
13694# Check to make sure the PIC flag actually works.
13695#
13696if test -n "$lt_prog_compiler_pic_F77"; then
13697
13698echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13699echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13700if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13701  echo $ECHO_N "(cached) $ECHO_C" >&6
13702else
13703  lt_prog_compiler_pic_works_F77=no
13704  ac_outfile=conftest.$ac_objext
13705   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13706   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13707   # Insert the option either (1) after the last *FLAGS variable, or
13708   # (2) before a word containing "conftest.", or (3) at the end.
13709   # Note that $ac_compile itself does not contain backslashes and begins
13710   # with a dollar sign (not a hyphen), so the echo should work correctly.
13711   # The option is referenced via a variable to avoid confusing sed.
13712   lt_compile=`echo "$ac_compile" | $SED \
13713   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13714   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13715   -e 's:$: $lt_compiler_flag:'`
13716   (eval echo "\"\$as_me:13716: $lt_compile\"" >&5)
13717   (eval "$lt_compile" 2>conftest.err)
13718   ac_status=$?
13719   cat conftest.err >&5
13720   echo "$as_me:13720: \$? = $ac_status" >&5
13721   if (exit $ac_status) && test -s "$ac_outfile"; then
13722     # The compiler can only warn and ignore the option if not recognized
13723     # So say no if there are warnings other than the usual output.
13724     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13725     $SED '/^$/d' conftest.err >conftest.er2
13726     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13727       lt_prog_compiler_pic_works_F77=yes
13728     fi
13729   fi
13730   $rm conftest*
13731
13732fi
13733echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13734echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13735
13736if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13737    case $lt_prog_compiler_pic_F77 in
13738     "" | " "*) ;;
13739     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13740     esac
13741else
13742    lt_prog_compiler_pic_F77=
13743     lt_prog_compiler_can_build_shared_F77=no
13744fi
13745
13746fi
13747case $host_os in
13748  # For platforms which do not support PIC, -DPIC is meaningless:
13749  *djgpp*)
13750    lt_prog_compiler_pic_F77=
13751    ;;
13752  *)
13753    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13754    ;;
13755esac
13756
13757echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13758echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13759if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13760  echo $ECHO_N "(cached) $ECHO_C" >&6
13761else
13762  lt_cv_prog_compiler_c_o_F77=no
13763   $rm -r conftest 2>/dev/null
13764   mkdir conftest
13765   cd conftest
13766   mkdir out
13767   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13768
13769   lt_compiler_flag="-o out/conftest2.$ac_objext"
13770   # Insert the option either (1) after the last *FLAGS variable, or
13771   # (2) before a word containing "conftest.", or (3) at the end.
13772   # Note that $ac_compile itself does not contain backslashes and begins
13773   # with a dollar sign (not a hyphen), so the echo should work correctly.
13774   lt_compile=`echo "$ac_compile" | $SED \
13775   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13776   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13777   -e 's:$: $lt_compiler_flag:'`
13778   (eval echo "\"\$as_me:13778: $lt_compile\"" >&5)
13779   (eval "$lt_compile" 2>out/conftest.err)
13780   ac_status=$?
13781   cat out/conftest.err >&5
13782   echo "$as_me:13782: \$? = $ac_status" >&5
13783   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13784   then
13785     # The compiler can only warn and ignore the option if not recognized
13786     # So say no if there are warnings
13787     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13788     $SED '/^$/d' out/conftest.err >out/conftest.er2
13789     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13790       lt_cv_prog_compiler_c_o_F77=yes
13791     fi
13792   fi
13793   chmod u+w . 2>&5
13794   $rm conftest*
13795   # SGI C++ compiler will create directory out/ii_files/ for
13796   # template instantiation
13797   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13798   $rm out/* && rmdir out
13799   cd ..
13800   rmdir conftest
13801   $rm conftest*
13802
13803fi
13804echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13805echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13806
13807
13808hard_links="nottested"
13809if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13810  # do not overwrite the value of need_locks provided by the user
13811  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13812echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13813  hard_links=yes
13814  $rm conftest*
13815  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13816  touch conftest.a
13817  ln conftest.a conftest.b 2>&5 || hard_links=no
13818  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13819  echo "$as_me:$LINENO: result: $hard_links" >&5
13820echo "${ECHO_T}$hard_links" >&6
13821  if test "$hard_links" = no; then
13822    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13823echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13824    need_locks=warn
13825  fi
13826else
13827  need_locks=no
13828fi
13829
13830echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13831echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13832
13833  runpath_var=
13834  allow_undefined_flag_F77=
13835  enable_shared_with_static_runtimes_F77=no
13836  archive_cmds_F77=
13837  archive_expsym_cmds_F77=
13838  old_archive_From_new_cmds_F77=
13839  old_archive_from_expsyms_cmds_F77=
13840  export_dynamic_flag_spec_F77=
13841  whole_archive_flag_spec_F77=
13842  thread_safe_flag_spec_F77=
13843  hardcode_libdir_flag_spec_F77=
13844  hardcode_libdir_flag_spec_ld_F77=
13845  hardcode_libdir_separator_F77=
13846  hardcode_direct_F77=no
13847  hardcode_minus_L_F77=no
13848  hardcode_shlibpath_var_F77=unsupported
13849  link_all_deplibs_F77=unknown
13850  hardcode_automatic_F77=no
13851  module_cmds_F77=
13852  module_expsym_cmds_F77=
13853  always_export_symbols_F77=no
13854  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13855  # include_expsyms should be a list of space-separated symbols to be *always*
13856  # included in the symbol list
13857  include_expsyms_F77=
13858  # exclude_expsyms can be an extended regexp of symbols to exclude
13859  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13860  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13861  # as well as any symbol that contains `d'.
13862  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13863  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13864  # platforms (ab)use it in PIC code, but their linkers get confused if
13865  # the symbol is explicitly referenced.  Since portable code cannot
13866  # rely on this symbol name, it's probably fine to never include it in
13867  # preloaded symbol tables.
13868  extract_expsyms_cmds=
13869  # Just being paranoid about ensuring that cc_basename is set.
13870  for cc_temp in $compiler""; do
13871  case $cc_temp in
13872    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13873    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13874    \-*) ;;
13875    *) break;;
13876  esac
13877done
13878cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13879
13880  case $host_os in
13881  cygwin* | mingw* | pw32*)
13882    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13883    # When not using gcc, we currently assume that we are using
13884    # Microsoft Visual C++.
13885    if test "$GCC" != yes; then
13886      with_gnu_ld=no
13887    fi
13888    ;;
13889  openbsd*)
13890    with_gnu_ld=no
13891    ;;
13892  esac
13893
13894  ld_shlibs_F77=yes
13895  if test "$with_gnu_ld" = yes; then
13896    # If archive_cmds runs LD, not CC, wlarc should be empty
13897    wlarc='${wl}'
13898
13899    # Set some defaults for GNU ld with shared library support. These
13900    # are reset later if shared libraries are not supported. Putting them
13901    # here allows them to be overridden if necessary.
13902    runpath_var=LD_RUN_PATH
13903    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13904    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13905    # ancient GNU ld didn't support --whole-archive et. al.
13906    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13907	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13908      else
13909  	whole_archive_flag_spec_F77=
13910    fi
13911    supports_anon_versioning=no
13912    case `$LD -v 2>/dev/null` in
13913      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13914      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13915      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13916      *\ 2.11.*) ;; # other 2.11 versions
13917      *) supports_anon_versioning=yes ;;
13918    esac
13919
13920    # See if GNU ld supports shared libraries.
13921    case $host_os in
13922    aix3* | aix4* | aix5*)
13923      # On AIX/PPC, the GNU linker is very broken
13924      if test "$host_cpu" != ia64; then
13925	ld_shlibs_F77=no
13926	cat <<EOF 1>&2
13927
13928*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13929*** to be unable to reliably create shared libraries on AIX.
13930*** Therefore, libtool is disabling shared libraries support.  If you
13931*** really care for shared libraries, you may want to modify your PATH
13932*** so that a non-GNU linker is found, and then restart.
13933
13934EOF
13935      fi
13936      ;;
13937
13938    amigaos*)
13939      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)'
13940      hardcode_libdir_flag_spec_F77='-L$libdir'
13941      hardcode_minus_L_F77=yes
13942
13943      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13944      # that the semantics of dynamic libraries on AmigaOS, at least up
13945      # to version 4, is to share data among multiple programs linked
13946      # with the same dynamic library.  Since this doesn't match the
13947      # behavior of shared libraries on other platforms, we can't use
13948      # them.
13949      ld_shlibs_F77=no
13950      ;;
13951
13952    beos*)
13953      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13954	allow_undefined_flag_F77=unsupported
13955	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13956	# support --undefined.  This deserves some investigation.  FIXME
13957	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13958      else
13959	ld_shlibs_F77=no
13960      fi
13961      ;;
13962
13963    cygwin* | mingw* | pw32*)
13964      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13965      # as there is no search path for DLLs.
13966      hardcode_libdir_flag_spec_F77='-L$libdir'
13967      allow_undefined_flag_F77=unsupported
13968      always_export_symbols_F77=no
13969      enable_shared_with_static_runtimes_F77=yes
13970      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13971
13972      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13973        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13974	# If the export-symbols file already is a .def file (1st line
13975	# is EXPORTS), use it as is; otherwise, prepend...
13976	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13977	  cp $export_symbols $output_objdir/$soname.def;
13978	else
13979	  echo EXPORTS > $output_objdir/$soname.def;
13980	  cat $export_symbols >> $output_objdir/$soname.def;
13981	fi~
13982	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13983      else
13984	ld_shlibs_F77=no
13985      fi
13986      ;;
13987
13988    linux*)
13989      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13990	tmp_addflag=
13991	case $cc_basename,$host_cpu in
13992	pgcc*)				# Portland Group C compiler
13993	  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'
13994	  tmp_addflag=' $pic_flag'
13995	  ;;
13996	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13997	  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'
13998	  tmp_addflag=' $pic_flag -Mnomain' ;;
13999	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14000	  tmp_addflag=' -i_dynamic' ;;
14001	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14002	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14003	ifc* | ifort*)			# Intel Fortran compiler
14004	  tmp_addflag=' -nofor_main' ;;
14005	esac
14006	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14007
14008	if test $supports_anon_versioning = yes; then
14009	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14010  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14011  $echo "local: *; };" >> $output_objdir/$libname.ver~
14012	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14013	fi
14014	link_all_deplibs_F77=no
14015      else
14016	ld_shlibs_F77=no
14017      fi
14018      ;;
14019
14020    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14021      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14022	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14023	wlarc=
14024      else
14025	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14026	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14027      fi
14028      ;;
14029
14030    solaris* | sysv5*)
14031      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14032	ld_shlibs_F77=no
14033	cat <<EOF 1>&2
14034
14035*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14036*** create shared libraries on Solaris systems.  Therefore, libtool
14037*** is disabling shared libraries support.  We urge you to upgrade GNU
14038*** binutils to release 2.9.1 or newer.  Another option is to modify
14039*** your PATH or compiler configuration so that the native linker is
14040*** used, and then restart.
14041
14042EOF
14043      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14044	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14045	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14046      else
14047	ld_shlibs_F77=no
14048      fi
14049      ;;
14050
14051    sunos4*)
14052      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14053      wlarc=
14054      hardcode_direct_F77=yes
14055      hardcode_shlibpath_var_F77=no
14056      ;;
14057
14058    *)
14059      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14060	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14061	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14062      else
14063	ld_shlibs_F77=no
14064      fi
14065      ;;
14066    esac
14067
14068    if test "$ld_shlibs_F77" = no; then
14069      runpath_var=
14070      hardcode_libdir_flag_spec_F77=
14071      export_dynamic_flag_spec_F77=
14072      whole_archive_flag_spec_F77=
14073    fi
14074  else
14075    # PORTME fill in a description of your system's linker (not GNU ld)
14076    case $host_os in
14077    aix3*)
14078      allow_undefined_flag_F77=unsupported
14079      always_export_symbols_F77=yes
14080      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'
14081      # Note: this linker hardcodes the directories in LIBPATH if there
14082      # are no directories specified by -L.
14083      hardcode_minus_L_F77=yes
14084      if test "$GCC" = yes && test -z "$link_static_flag"; then
14085	# Neither direct hardcoding nor static linking is supported with a
14086	# broken collect2.
14087	hardcode_direct_F77=unsupported
14088      fi
14089      ;;
14090
14091    aix4* | aix5*)
14092      if test "$host_cpu" = ia64; then
14093	# On IA64, the linker does run time linking by default, so we don't
14094	# have to do anything special.
14095	aix_use_runtimelinking=no
14096	exp_sym_flag='-Bexport'
14097	no_entry_flag=""
14098      else
14099	# If we're using GNU nm, then we don't want the "-C" option.
14100	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14101	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14102	  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'
14103	else
14104	  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'
14105	fi
14106	aix_use_runtimelinking=no
14107
14108	# Test if we are trying to use run time linking or normal
14109	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14110	# need to do runtime linking.
14111	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14112	  for ld_flag in $LDFLAGS; do
14113  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14114  	    aix_use_runtimelinking=yes
14115  	    break
14116  	  fi
14117	  done
14118	esac
14119
14120	exp_sym_flag='-bexport'
14121	no_entry_flag='-bnoentry'
14122      fi
14123
14124      # When large executables or shared objects are built, AIX ld can
14125      # have problems creating the table of contents.  If linking a library
14126      # or program results in "error TOC overflow" add -mminimal-toc to
14127      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14128      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14129
14130      archive_cmds_F77=''
14131      hardcode_direct_F77=yes
14132      hardcode_libdir_separator_F77=':'
14133      link_all_deplibs_F77=yes
14134
14135      if test "$GCC" = yes; then
14136	case $host_os in aix4.[012]|aix4.[012].*)
14137	# We only want to do this on AIX 4.2 and lower, the check
14138	# below for broken collect2 doesn't work under 4.3+
14139	  collect2name=`${CC} -print-prog-name=collect2`
14140	  if test -f "$collect2name" && \
14141  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14142	  then
14143  	  # We have reworked collect2
14144  	  hardcode_direct_F77=yes
14145	  else
14146  	  # We have old collect2
14147  	  hardcode_direct_F77=unsupported
14148  	  # It fails to find uninstalled libraries when the uninstalled
14149  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14150  	  # to unsupported forces relinking
14151  	  hardcode_minus_L_F77=yes
14152  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14153  	  hardcode_libdir_separator_F77=
14154	  fi
14155	esac
14156	shared_flag='-shared'
14157	if test "$aix_use_runtimelinking" = yes; then
14158	  shared_flag="$shared_flag "'${wl}-G'
14159	fi
14160      else
14161	# not using gcc
14162	if test "$host_cpu" = ia64; then
14163  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14164  	# chokes on -Wl,-G. The following line is correct:
14165	  shared_flag='-G'
14166	else
14167  	if test "$aix_use_runtimelinking" = yes; then
14168	    shared_flag='${wl}-G'
14169	  else
14170	    shared_flag='${wl}-bM:SRE'
14171  	fi
14172	fi
14173      fi
14174
14175      # It seems that -bexpall does not export symbols beginning with
14176      # underscore (_), so it is better to generate a list of symbols to export.
14177      always_export_symbols_F77=yes
14178      if test "$aix_use_runtimelinking" = yes; then
14179	# Warning - without using the other runtime loading flags (-brtl),
14180	# -berok will link without error, but may produce a broken library.
14181	allow_undefined_flag_F77='-berok'
14182       # Determine the default libpath from the value encoded in an empty executable.
14183       cat >conftest.$ac_ext <<_ACEOF
14184      program main
14185
14186      end
14187_ACEOF
14188rm -f conftest.$ac_objext conftest$ac_exeext
14189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14190  (eval $ac_link) 2>conftest.er1
14191  ac_status=$?
14192  grep -v '^ *+' conftest.er1 >conftest.err
14193  rm -f conftest.er1
14194  cat conftest.err >&5
14195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196  (exit $ac_status); } &&
14197	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
14198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199  (eval $ac_try) 2>&5
14200  ac_status=$?
14201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202  (exit $ac_status); }; } &&
14203	 { ac_try='test -s conftest$ac_exeext'
14204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205  (eval $ac_try) 2>&5
14206  ac_status=$?
14207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208  (exit $ac_status); }; }; then
14209
14210aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14211}'`
14212# Check for a 64-bit object if we didn't find anything.
14213if 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; }
14214}'`; fi
14215else
14216  echo "$as_me: failed program was:" >&5
14217sed 's/^/| /' conftest.$ac_ext >&5
14218
14219fi
14220rm -f conftest.err conftest.$ac_objext \
14221      conftest$ac_exeext conftest.$ac_ext
14222if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14223
14224       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14225	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14226       else
14227	if test "$host_cpu" = ia64; then
14228	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14229	  allow_undefined_flag_F77="-z nodefs"
14230	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14231	else
14232	 # Determine the default libpath from the value encoded in an empty executable.
14233	 cat >conftest.$ac_ext <<_ACEOF
14234      program main
14235
14236      end
14237_ACEOF
14238rm -f conftest.$ac_objext conftest$ac_exeext
14239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14240  (eval $ac_link) 2>conftest.er1
14241  ac_status=$?
14242  grep -v '^ *+' conftest.er1 >conftest.err
14243  rm -f conftest.er1
14244  cat conftest.err >&5
14245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246  (exit $ac_status); } &&
14247	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
14248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249  (eval $ac_try) 2>&5
14250  ac_status=$?
14251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252  (exit $ac_status); }; } &&
14253	 { ac_try='test -s conftest$ac_exeext'
14254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255  (eval $ac_try) 2>&5
14256  ac_status=$?
14257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258  (exit $ac_status); }; }; then
14259
14260aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14261}'`
14262# Check for a 64-bit object if we didn't find anything.
14263if 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; }
14264}'`; fi
14265else
14266  echo "$as_me: failed program was:" >&5
14267sed 's/^/| /' conftest.$ac_ext >&5
14268
14269fi
14270rm -f conftest.err conftest.$ac_objext \
14271      conftest$ac_exeext conftest.$ac_ext
14272if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14273
14274	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14275	  # Warning - without using the other run time loading flags,
14276	  # -berok will link without error, but may produce a broken library.
14277	  no_undefined_flag_F77=' ${wl}-bernotok'
14278	  allow_undefined_flag_F77=' ${wl}-berok'
14279	  # -bexpall does not export symbols beginning with underscore (_)
14280	  always_export_symbols_F77=yes
14281	  # Exported symbols can be pulled into shared objects from archives
14282	  whole_archive_flag_spec_F77=' '
14283	  archive_cmds_need_lc_F77=yes
14284	  # This is similar to how AIX traditionally builds its shared libraries.
14285	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14286	fi
14287      fi
14288      ;;
14289
14290    amigaos*)
14291      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)'
14292      hardcode_libdir_flag_spec_F77='-L$libdir'
14293      hardcode_minus_L_F77=yes
14294      # see comment about different semantics on the GNU ld section
14295      ld_shlibs_F77=no
14296      ;;
14297
14298    bsdi[45]*)
14299      export_dynamic_flag_spec_F77=-rdynamic
14300      ;;
14301
14302    cygwin* | mingw* | pw32*)
14303      # When not using gcc, we currently assume that we are using
14304      # Microsoft Visual C++.
14305      # hardcode_libdir_flag_spec is actually meaningless, as there is
14306      # no search path for DLLs.
14307      hardcode_libdir_flag_spec_F77=' '
14308      allow_undefined_flag_F77=unsupported
14309      # Tell ltmain to make .lib files, not .a files.
14310      libext=lib
14311      # Tell ltmain to make .dll files, not .so files.
14312      shrext_cmds=".dll"
14313      # FIXME: Setting linknames here is a bad hack.
14314      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14315      # The linker will automatically build a .lib file if we build a DLL.
14316      old_archive_From_new_cmds_F77='true'
14317      # FIXME: Should let the user specify the lib program.
14318      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14319      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14320      enable_shared_with_static_runtimes_F77=yes
14321      ;;
14322
14323    darwin* | rhapsody*)
14324      case $host_os in
14325        rhapsody* | darwin1.[012])
14326         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14327         ;;
14328       *) # Darwin 1.3 on
14329         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14330           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14331         else
14332           case ${MACOSX_DEPLOYMENT_TARGET} in
14333             10.[012])
14334               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14335               ;;
14336             10.*)
14337               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14338               ;;
14339           esac
14340         fi
14341         ;;
14342      esac
14343      archive_cmds_need_lc_F77=no
14344      hardcode_direct_F77=no
14345      hardcode_automatic_F77=yes
14346      hardcode_shlibpath_var_F77=unsupported
14347      whole_archive_flag_spec_F77=''
14348      link_all_deplibs_F77=yes
14349    if test "$GCC" = yes ; then
14350    	output_verbose_link_cmd='echo'
14351        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14352      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14353      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14354      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}'
14355      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}'
14356    else
14357      case $cc_basename in
14358        xlc*)
14359         output_verbose_link_cmd='echo'
14360         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14361         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14362          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14363         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}'
14364          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}'
14365          ;;
14366       *)
14367         ld_shlibs_F77=no
14368          ;;
14369      esac
14370    fi
14371      ;;
14372
14373    dgux*)
14374      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14375      hardcode_libdir_flag_spec_F77='-L$libdir'
14376      hardcode_shlibpath_var_F77=no
14377      ;;
14378
14379    freebsd1*)
14380      ld_shlibs_F77=no
14381      ;;
14382
14383    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14384    # support.  Future versions do this automatically, but an explicit c++rt0.o
14385    # does not break anything, and helps significantly (at the cost of a little
14386    # extra space).
14387    freebsd2.2*)
14388      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14389      hardcode_libdir_flag_spec_F77='-R$libdir'
14390      hardcode_direct_F77=yes
14391      hardcode_shlibpath_var_F77=no
14392      ;;
14393
14394    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14395    freebsd2*)
14396      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14397      hardcode_direct_F77=yes
14398      hardcode_minus_L_F77=yes
14399      hardcode_shlibpath_var_F77=no
14400      ;;
14401
14402    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14403    freebsd* | kfreebsd*-gnu | dragonfly*)
14404      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14405      hardcode_libdir_flag_spec_F77='-R$libdir'
14406      hardcode_direct_F77=yes
14407      hardcode_shlibpath_var_F77=no
14408      ;;
14409
14410    hpux9*)
14411      if test "$GCC" = yes; then
14412	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'
14413      else
14414	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'
14415      fi
14416      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14417      hardcode_libdir_separator_F77=:
14418      hardcode_direct_F77=yes
14419
14420      # hardcode_minus_L: Not really in the search PATH,
14421      # but as the default location of the library.
14422      hardcode_minus_L_F77=yes
14423      export_dynamic_flag_spec_F77='${wl}-E'
14424      ;;
14425
14426    hpux10* | hpux11*)
14427      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14428	case $host_cpu in
14429	hppa*64*|ia64*)
14430	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14431	  ;;
14432	*)
14433	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14434	  ;;
14435	esac
14436      else
14437	case $host_cpu in
14438	hppa*64*|ia64*)
14439	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14440	  ;;
14441	*)
14442	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14443	  ;;
14444	esac
14445      fi
14446      if test "$with_gnu_ld" = no; then
14447	case $host_cpu in
14448	hppa*64*)
14449	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14450	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14451	  hardcode_libdir_separator_F77=:
14452	  hardcode_direct_F77=no
14453	  hardcode_shlibpath_var_F77=no
14454	  ;;
14455	ia64*)
14456	  hardcode_libdir_flag_spec_F77='-L$libdir'
14457	  hardcode_direct_F77=no
14458	  hardcode_shlibpath_var_F77=no
14459
14460	  # hardcode_minus_L: Not really in the search PATH,
14461	  # but as the default location of the library.
14462	  hardcode_minus_L_F77=yes
14463	  ;;
14464	*)
14465	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14466	  hardcode_libdir_separator_F77=:
14467	  hardcode_direct_F77=yes
14468	  export_dynamic_flag_spec_F77='${wl}-E'
14469
14470	  # hardcode_minus_L: Not really in the search PATH,
14471	  # but as the default location of the library.
14472	  hardcode_minus_L_F77=yes
14473	  ;;
14474	esac
14475      fi
14476      ;;
14477
14478    irix5* | irix6* | nonstopux*)
14479      if test "$GCC" = yes; then
14480	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'
14481      else
14482	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'
14483	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14484      fi
14485      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14486      hardcode_libdir_separator_F77=:
14487      link_all_deplibs_F77=yes
14488      ;;
14489
14490    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14491      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14492	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14493      else
14494	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14495      fi
14496      hardcode_libdir_flag_spec_F77='-R$libdir'
14497      hardcode_direct_F77=yes
14498      hardcode_shlibpath_var_F77=no
14499      ;;
14500
14501    newsos6)
14502      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14503      hardcode_direct_F77=yes
14504      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14505      hardcode_libdir_separator_F77=:
14506      hardcode_shlibpath_var_F77=no
14507      ;;
14508
14509    openbsd*)
14510      hardcode_direct_F77=yes
14511      hardcode_shlibpath_var_F77=no
14512      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14513	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14514	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14515	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14516	export_dynamic_flag_spec_F77='${wl}-E'
14517      else
14518       case $host_os in
14519	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14520	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14521	   hardcode_libdir_flag_spec_F77='-R$libdir'
14522	   ;;
14523	 *)
14524	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14525	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14526	   ;;
14527       esac
14528      fi
14529      ;;
14530
14531    os2*)
14532      hardcode_libdir_flag_spec_F77='-L$libdir'
14533      hardcode_minus_L_F77=yes
14534      allow_undefined_flag_F77=unsupported
14535      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'
14536      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14537      ;;
14538
14539    osf3*)
14540      if test "$GCC" = yes; then
14541	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14542	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'
14543      else
14544	allow_undefined_flag_F77=' -expect_unresolved \*'
14545	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'
14546      fi
14547      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14548      hardcode_libdir_separator_F77=:
14549      ;;
14550
14551    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14552      if test "$GCC" = yes; then
14553	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14554	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'
14555	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14556      else
14557	allow_undefined_flag_F77=' -expect_unresolved \*'
14558	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'
14559	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~
14560	$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'
14561
14562	# Both c and cxx compiler support -rpath directly
14563	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14564      fi
14565      hardcode_libdir_separator_F77=:
14566      ;;
14567
14568    sco3.2v5*)
14569      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14570      hardcode_shlibpath_var_F77=no
14571      export_dynamic_flag_spec_F77='${wl}-Bexport'
14572      runpath_var=LD_RUN_PATH
14573      hardcode_runpath_var=yes
14574      ;;
14575
14576    solaris*)
14577      no_undefined_flag_F77=' -z text'
14578      if test "$GCC" = yes; then
14579	wlarc='${wl}'
14580	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14581	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14582	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14583      else
14584	wlarc=''
14585	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14587  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14588      fi
14589      hardcode_libdir_flag_spec_F77='-R$libdir'
14590      hardcode_shlibpath_var_F77=no
14591      case $host_os in
14592      solaris2.[0-5] | solaris2.[0-5].*) ;;
14593      *)
14594 	# The compiler driver will combine linker options so we
14595 	# cannot just pass the convience library names through
14596 	# without $wl, iff we do not link with $LD.
14597 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14598 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14599 	case $wlarc in
14600 	'')
14601 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14602 	*)
14603 	  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' ;;
14604 	esac ;;
14605      esac
14606      link_all_deplibs_F77=yes
14607      ;;
14608
14609    sunos4*)
14610      if test "x$host_vendor" = xsequent; then
14611	# Use $CC to link under sequent, because it throws in some extra .o
14612	# files that make .init and .fini sections work.
14613	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14614      else
14615	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14616      fi
14617      hardcode_libdir_flag_spec_F77='-L$libdir'
14618      hardcode_direct_F77=yes
14619      hardcode_minus_L_F77=yes
14620      hardcode_shlibpath_var_F77=no
14621      ;;
14622
14623    sysv4)
14624      case $host_vendor in
14625	sni)
14626	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14627	  hardcode_direct_F77=yes # is this really true???
14628	;;
14629	siemens)
14630	  ## LD is ld it makes a PLAMLIB
14631	  ## CC just makes a GrossModule.
14632	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14633	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14634	  hardcode_direct_F77=no
14635        ;;
14636	motorola)
14637	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14638	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14639	;;
14640      esac
14641      runpath_var='LD_RUN_PATH'
14642      hardcode_shlibpath_var_F77=no
14643      ;;
14644
14645    sysv4.3*)
14646      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14647      hardcode_shlibpath_var_F77=no
14648      export_dynamic_flag_spec_F77='-Bexport'
14649      ;;
14650
14651    sysv4*MP*)
14652      if test -d /usr/nec; then
14653	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14654	hardcode_shlibpath_var_F77=no
14655	runpath_var=LD_RUN_PATH
14656	hardcode_runpath_var=yes
14657	ld_shlibs_F77=yes
14658      fi
14659      ;;
14660
14661    sysv4.2uw2*)
14662      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14663      hardcode_direct_F77=yes
14664      hardcode_minus_L_F77=no
14665      hardcode_shlibpath_var_F77=no
14666      hardcode_runpath_var=yes
14667      runpath_var=LD_RUN_PATH
14668      ;;
14669
14670   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14671      no_undefined_flag_F77='${wl}-z ${wl}text'
14672      if test "$GCC" = yes; then
14673	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14674      else
14675	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14676      fi
14677      runpath_var='LD_RUN_PATH'
14678      hardcode_shlibpath_var_F77=no
14679      ;;
14680
14681    sysv5*)
14682      no_undefined_flag_F77=' -z text'
14683      # $CC -shared without GNU ld will not create a library from C++
14684      # object files and a static libstdc++, better avoid it by now
14685      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14686      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14687  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14688      hardcode_libdir_flag_spec_F77=
14689      hardcode_shlibpath_var_F77=no
14690      runpath_var='LD_RUN_PATH'
14691      ;;
14692
14693    uts4*)
14694      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14695      hardcode_libdir_flag_spec_F77='-L$libdir'
14696      hardcode_shlibpath_var_F77=no
14697      ;;
14698
14699    *)
14700      ld_shlibs_F77=no
14701      ;;
14702    esac
14703  fi
14704
14705echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14706echo "${ECHO_T}$ld_shlibs_F77" >&6
14707test "$ld_shlibs_F77" = no && can_build_shared=no
14708
14709variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14710if test "$GCC" = yes; then
14711  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14712fi
14713
14714#
14715# Do we need to explicitly link libc?
14716#
14717case "x$archive_cmds_need_lc_F77" in
14718x|xyes)
14719  # Assume -lc should be added
14720  archive_cmds_need_lc_F77=yes
14721
14722  if test "$enable_shared" = yes && test "$GCC" = yes; then
14723    case $archive_cmds_F77 in
14724    *'~'*)
14725      # FIXME: we may have to deal with multi-command sequences.
14726      ;;
14727    '$CC '*)
14728      # Test whether the compiler implicitly links with -lc since on some
14729      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14730      # to ld, don't add -lc before -lgcc.
14731      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14732echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14733      $rm conftest*
14734      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14735
14736      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737  (eval $ac_compile) 2>&5
14738  ac_status=$?
14739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740  (exit $ac_status); } 2>conftest.err; then
14741        soname=conftest
14742        lib=conftest
14743        libobjs=conftest.$ac_objext
14744        deplibs=
14745        wl=$lt_prog_compiler_wl_F77
14746        compiler_flags=-v
14747        linker_flags=-v
14748        verstring=
14749        output_objdir=.
14750        libname=conftest
14751        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14752        allow_undefined_flag_F77=
14753        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14754  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14755  ac_status=$?
14756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757  (exit $ac_status); }
14758        then
14759	  archive_cmds_need_lc_F77=no
14760        else
14761	  archive_cmds_need_lc_F77=yes
14762        fi
14763        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14764      else
14765        cat conftest.err 1>&5
14766      fi
14767      $rm conftest*
14768      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14769echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14770      ;;
14771    esac
14772  fi
14773  ;;
14774esac
14775
14776echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14777echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14778library_names_spec=
14779libname_spec='lib$name'
14780soname_spec=
14781shrext_cmds=".so"
14782postinstall_cmds=
14783postuninstall_cmds=
14784finish_cmds=
14785finish_eval=
14786shlibpath_var=
14787shlibpath_overrides_runpath=unknown
14788version_type=none
14789dynamic_linker="$host_os ld.so"
14790sys_lib_dlsearch_path_spec="/lib /usr/lib"
14791if test "$GCC" = yes; then
14792  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14793  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14794    # if the path contains ";" then we assume it to be the separator
14795    # otherwise default to the standard path separator (i.e. ":") - it is
14796    # assumed that no part of a normal pathname contains ";" but that should
14797    # okay in the real world where ";" in dirpaths is itself problematic.
14798    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14799  else
14800    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14801  fi
14802else
14803  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14804fi
14805need_lib_prefix=unknown
14806hardcode_into_libs=no
14807
14808# when you set need_version to no, make sure it does not cause -set_version
14809# flags to be left without arguments
14810need_version=unknown
14811
14812case $host_os in
14813aix3*)
14814  version_type=linux
14815  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14816  shlibpath_var=LIBPATH
14817
14818  # AIX 3 has no versioning support, so we append a major version to the name.
14819  soname_spec='${libname}${release}${shared_ext}$major'
14820  ;;
14821
14822aix4* | aix5*)
14823  version_type=linux
14824  need_lib_prefix=no
14825  need_version=no
14826  hardcode_into_libs=yes
14827  if test "$host_cpu" = ia64; then
14828    # AIX 5 supports IA64
14829    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14830    shlibpath_var=LD_LIBRARY_PATH
14831  else
14832    # With GCC up to 2.95.x, collect2 would create an import file
14833    # for dependence libraries.  The import file would start with
14834    # the line `#! .'.  This would cause the generated library to
14835    # depend on `.', always an invalid library.  This was fixed in
14836    # development snapshots of GCC prior to 3.0.
14837    case $host_os in
14838      aix4 | aix4.[01] | aix4.[01].*)
14839      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14840	   echo ' yes '
14841	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14842	:
14843      else
14844	can_build_shared=no
14845      fi
14846      ;;
14847    esac
14848    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14849    # soname into executable. Probably we can add versioning support to
14850    # collect2, so additional links can be useful in future.
14851    if test "$aix_use_runtimelinking" = yes; then
14852      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14853      # instead of lib<name>.a to let people know that these are not
14854      # typical AIX shared libraries.
14855      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856    else
14857      # We preserve .a as extension for shared libraries through AIX4.2
14858      # and later when we are not doing run time linking.
14859      library_names_spec='${libname}${release}.a $libname.a'
14860      soname_spec='${libname}${release}${shared_ext}$major'
14861    fi
14862    shlibpath_var=LIBPATH
14863  fi
14864  ;;
14865
14866amigaos*)
14867  library_names_spec='$libname.ixlibrary $libname.a'
14868  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14869  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'
14870  ;;
14871
14872beos*)
14873  library_names_spec='${libname}${shared_ext}'
14874  dynamic_linker="$host_os ld.so"
14875  shlibpath_var=LIBRARY_PATH
14876  ;;
14877
14878bsdi[45]*)
14879  version_type=linux
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14884  shlibpath_var=LD_LIBRARY_PATH
14885  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14886  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14887  # the default ld.so.conf also contains /usr/contrib/lib and
14888  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14889  # libtool to hard-code these into programs
14890  ;;
14891
14892cygwin* | mingw* | pw32*)
14893  version_type=windows
14894  shrext_cmds=".dll"
14895  need_version=no
14896  need_lib_prefix=no
14897
14898  case $GCC,$host_os in
14899  yes,cygwin* | yes,mingw* | yes,pw32*)
14900    library_names_spec='$libname.dll.a'
14901    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14902    postinstall_cmds='base_file=`basename \${file}`~
14903      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14904      dldir=$destdir/`dirname \$dlpath`~
14905      test -d \$dldir || mkdir -p \$dldir~
14906      $install_prog $dir/$dlname \$dldir/$dlname~
14907      chmod a+x \$dldir/$dlname'
14908    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14909      dlpath=$dir/\$dldll~
14910       $rm \$dlpath'
14911    shlibpath_overrides_runpath=yes
14912
14913    case $host_os in
14914    cygwin*)
14915      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14916      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14917      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14918      ;;
14919    mingw*)
14920      # MinGW DLLs use traditional 'lib' prefix
14921      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14922      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14923      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14924        # It is most probably a Windows format PATH printed by
14925        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14926        # path with ; separators, and with drive letters. We can handle the
14927        # drive letters (cygwin fileutils understands them), so leave them,
14928        # especially as we might pass files found there to a mingw objdump,
14929        # which wouldn't understand a cygwinified path. Ahh.
14930        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14931      else
14932        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14933      fi
14934      ;;
14935    pw32*)
14936      # pw32 DLLs use 'pw' prefix rather than 'lib'
14937      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14938      ;;
14939    esac
14940    ;;
14941
14942  *)
14943    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14944    ;;
14945  esac
14946  dynamic_linker='Win32 ld.exe'
14947  # FIXME: first we should search . and the directory the executable is in
14948  shlibpath_var=PATH
14949  ;;
14950
14951darwin* | rhapsody*)
14952  dynamic_linker="$host_os dyld"
14953  version_type=darwin
14954  need_lib_prefix=no
14955  need_version=no
14956  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14957  soname_spec='${libname}${release}${major}$shared_ext'
14958  shlibpath_overrides_runpath=yes
14959  shlibpath_var=DYLD_LIBRARY_PATH
14960  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14961  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14962  if test "$GCC" = yes; then
14963    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"`
14964  else
14965    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14966  fi
14967  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14968  ;;
14969
14970dgux*)
14971  version_type=linux
14972  need_lib_prefix=no
14973  need_version=no
14974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14975  soname_spec='${libname}${release}${shared_ext}$major'
14976  shlibpath_var=LD_LIBRARY_PATH
14977  ;;
14978
14979freebsd1*)
14980  dynamic_linker=no
14981  ;;
14982
14983kfreebsd*-gnu)
14984  version_type=linux
14985  need_lib_prefix=no
14986  need_version=no
14987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14988  soname_spec='${libname}${release}${shared_ext}$major'
14989  shlibpath_var=LD_LIBRARY_PATH
14990  shlibpath_overrides_runpath=no
14991  hardcode_into_libs=yes
14992  dynamic_linker='GNU ld.so'
14993  ;;
14994
14995freebsd* | dragonfly*)
14996  # DragonFly does not have aout.  When/if they implement a new
14997  # versioning mechanism, adjust this.
14998  if test -x /usr/bin/objformat; then
14999    objformat=`/usr/bin/objformat`
15000  else
15001    case $host_os in
15002    freebsd[123]*) objformat=aout ;;
15003    *) objformat=elf ;;
15004    esac
15005  fi
15006  version_type=freebsd-$objformat
15007  case $version_type in
15008    freebsd-elf*)
15009      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15010      need_version=no
15011      need_lib_prefix=no
15012      ;;
15013    freebsd-*)
15014      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15015      need_version=yes
15016      ;;
15017  esac
15018  shlibpath_var=LD_LIBRARY_PATH
15019  case $host_os in
15020  freebsd2*)
15021    shlibpath_overrides_runpath=yes
15022    ;;
15023  freebsd3.[01]* | freebsdelf3.[01]*)
15024    shlibpath_overrides_runpath=yes
15025    hardcode_into_libs=yes
15026    ;;
15027  *) # from 3.2 on
15028    shlibpath_overrides_runpath=no
15029    hardcode_into_libs=yes
15030    ;;
15031  esac
15032  ;;
15033
15034gnu*)
15035  version_type=linux
15036  need_lib_prefix=no
15037  need_version=no
15038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15039  soname_spec='${libname}${release}${shared_ext}$major'
15040  shlibpath_var=LD_LIBRARY_PATH
15041  hardcode_into_libs=yes
15042  ;;
15043
15044hpux9* | hpux10* | hpux11*)
15045  # Give a soname corresponding to the major version so that dld.sl refuses to
15046  # link against other versions.
15047  version_type=sunos
15048  need_lib_prefix=no
15049  need_version=no
15050  case $host_cpu in
15051  ia64*)
15052    shrext_cmds='.so'
15053    hardcode_into_libs=yes
15054    dynamic_linker="$host_os dld.so"
15055    shlibpath_var=LD_LIBRARY_PATH
15056    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15057    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058    soname_spec='${libname}${release}${shared_ext}$major'
15059    if test "X$HPUX_IA64_MODE" = X32; then
15060      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15061    else
15062      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15063    fi
15064    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15065    ;;
15066   hppa*64*)
15067     shrext_cmds='.sl'
15068     hardcode_into_libs=yes
15069     dynamic_linker="$host_os dld.sl"
15070     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15071     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15073     soname_spec='${libname}${release}${shared_ext}$major'
15074     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15075     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15076     ;;
15077   *)
15078    shrext_cmds='.sl'
15079    dynamic_linker="$host_os dld.sl"
15080    shlibpath_var=SHLIB_PATH
15081    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15082    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083    soname_spec='${libname}${release}${shared_ext}$major'
15084    ;;
15085  esac
15086  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15087  postinstall_cmds='chmod 555 $lib'
15088  ;;
15089
15090irix5* | irix6* | nonstopux*)
15091  case $host_os in
15092    nonstopux*) version_type=nonstopux ;;
15093    *)
15094	if test "$lt_cv_prog_gnu_ld" = yes; then
15095		version_type=linux
15096	else
15097		version_type=irix
15098	fi ;;
15099  esac
15100  need_lib_prefix=no
15101  need_version=no
15102  soname_spec='${libname}${release}${shared_ext}$major'
15103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15104  case $host_os in
15105  irix5* | nonstopux*)
15106    libsuff= shlibsuff=
15107    ;;
15108  *)
15109    case $LD in # libtool.m4 will add one of these switches to LD
15110    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15111      libsuff= shlibsuff= libmagic=32-bit;;
15112    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15113      libsuff=32 shlibsuff=N32 libmagic=N32;;
15114    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15115      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15116    *) libsuff= shlibsuff= libmagic=never-match;;
15117    esac
15118    ;;
15119  esac
15120  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15121  shlibpath_overrides_runpath=no
15122  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15123  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15124  hardcode_into_libs=yes
15125  ;;
15126
15127# No shared lib support for Linux oldld, aout, or coff.
15128linux*oldld* | linux*aout* | linux*coff*)
15129  dynamic_linker=no
15130  ;;
15131
15132# This must be Linux ELF.
15133linux*)
15134  version_type=linux
15135  need_lib_prefix=no
15136  need_version=no
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15140  shlibpath_var=LD_LIBRARY_PATH
15141  shlibpath_overrides_runpath=no
15142  # This implies no fast_install, which is unacceptable.
15143  # Some rework will be needed to allow for fast_install
15144  # before this can be enabled.
15145  hardcode_into_libs=yes
15146
15147  # Append ld.so.conf contents to the search path
15148  if test -f /etc/ld.so.conf; then
15149    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' ' '`
15150    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15151  fi
15152
15153  # We used to test for /lib/ld.so.1 and disable shared libraries on
15154  # powerpc, because MkLinux only supported shared libraries with the
15155  # GNU dynamic linker.  Since this was broken with cross compilers,
15156  # most powerpc-linux boxes support dynamic linking these days and
15157  # people can always --disable-shared, the test was removed, and we
15158  # assume the GNU/Linux dynamic linker is in use.
15159  dynamic_linker='GNU/Linux ld.so'
15160  ;;
15161
15162netbsdelf*-gnu)
15163  version_type=linux
15164  need_lib_prefix=no
15165  need_version=no
15166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15167  soname_spec='${libname}${release}${shared_ext}$major'
15168  shlibpath_var=LD_LIBRARY_PATH
15169  shlibpath_overrides_runpath=no
15170  hardcode_into_libs=yes
15171  dynamic_linker='NetBSD ld.elf_so'
15172  ;;
15173
15174knetbsd*-gnu)
15175  version_type=linux
15176  need_lib_prefix=no
15177  need_version=no
15178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15179  soname_spec='${libname}${release}${shared_ext}$major'
15180  shlibpath_var=LD_LIBRARY_PATH
15181  shlibpath_overrides_runpath=no
15182  hardcode_into_libs=yes
15183  dynamic_linker='GNU ld.so'
15184  ;;
15185
15186netbsd*)
15187  version_type=sunos
15188  need_lib_prefix=no
15189  need_version=no
15190  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15191    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15192    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15193    dynamic_linker='NetBSD (a.out) ld.so'
15194  else
15195    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15196    soname_spec='${libname}${release}${shared_ext}$major'
15197    dynamic_linker='NetBSD ld.elf_so'
15198  fi
15199  shlibpath_var=LD_LIBRARY_PATH
15200  shlibpath_overrides_runpath=yes
15201  hardcode_into_libs=yes
15202  ;;
15203
15204newsos6)
15205  version_type=linux
15206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15207  shlibpath_var=LD_LIBRARY_PATH
15208  shlibpath_overrides_runpath=yes
15209  ;;
15210
15211nto-qnx*)
15212  version_type=linux
15213  need_lib_prefix=no
15214  need_version=no
15215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216  soname_spec='${libname}${release}${shared_ext}$major'
15217  shlibpath_var=LD_LIBRARY_PATH
15218  shlibpath_overrides_runpath=yes
15219  ;;
15220
15221openbsd*)
15222  version_type=sunos
15223  need_lib_prefix=no
15224  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15225  case $host_os in
15226    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15227    *)                         need_version=no  ;;
15228  esac
15229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15230  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15231  shlibpath_var=LD_LIBRARY_PATH
15232  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15233    case $host_os in
15234      openbsd2.[89] | openbsd2.[89].*)
15235	shlibpath_overrides_runpath=no
15236	;;
15237      *)
15238	shlibpath_overrides_runpath=yes
15239	;;
15240      esac
15241  else
15242    shlibpath_overrides_runpath=yes
15243  fi
15244  ;;
15245
15246os2*)
15247  libname_spec='$name'
15248  shrext_cmds=".dll"
15249  need_lib_prefix=no
15250  library_names_spec='$libname${shared_ext} $libname.a'
15251  dynamic_linker='OS/2 ld.exe'
15252  shlibpath_var=LIBPATH
15253  ;;
15254
15255osf3* | osf4* | osf5*)
15256  version_type=osf
15257  need_lib_prefix=no
15258  need_version=no
15259  soname_spec='${libname}${release}${shared_ext}$major'
15260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261  shlibpath_var=LD_LIBRARY_PATH
15262  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15263  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15264  ;;
15265
15266sco3.2v5*)
15267  version_type=osf
15268  soname_spec='${libname}${release}${shared_ext}$major'
15269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270  shlibpath_var=LD_LIBRARY_PATH
15271  ;;
15272
15273solaris*)
15274  version_type=linux
15275  need_lib_prefix=no
15276  need_version=no
15277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278  soname_spec='${libname}${release}${shared_ext}$major'
15279  shlibpath_var=LD_LIBRARY_PATH
15280  shlibpath_overrides_runpath=yes
15281  hardcode_into_libs=yes
15282  # ldd complains unless libraries are executable
15283  postinstall_cmds='chmod +x $lib'
15284  ;;
15285
15286sunos4*)
15287  version_type=sunos
15288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15289  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15290  shlibpath_var=LD_LIBRARY_PATH
15291  shlibpath_overrides_runpath=yes
15292  if test "$with_gnu_ld" = yes; then
15293    need_lib_prefix=no
15294  fi
15295  need_version=yes
15296  ;;
15297
15298sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15299  version_type=linux
15300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15301  soname_spec='${libname}${release}${shared_ext}$major'
15302  shlibpath_var=LD_LIBRARY_PATH
15303  case $host_vendor in
15304    sni)
15305      shlibpath_overrides_runpath=no
15306      need_lib_prefix=no
15307      export_dynamic_flag_spec='${wl}-Blargedynsym'
15308      runpath_var=LD_RUN_PATH
15309      ;;
15310    siemens)
15311      need_lib_prefix=no
15312      ;;
15313    motorola)
15314      need_lib_prefix=no
15315      need_version=no
15316      shlibpath_overrides_runpath=no
15317      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15318      ;;
15319  esac
15320  ;;
15321
15322sysv4*MP*)
15323  if test -d /usr/nec ;then
15324    version_type=linux
15325    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15326    soname_spec='$libname${shared_ext}.$major'
15327    shlibpath_var=LD_LIBRARY_PATH
15328  fi
15329  ;;
15330
15331uts4*)
15332  version_type=linux
15333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334  soname_spec='${libname}${release}${shared_ext}$major'
15335  shlibpath_var=LD_LIBRARY_PATH
15336  ;;
15337
15338*)
15339  dynamic_linker=no
15340  ;;
15341esac
15342echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15343echo "${ECHO_T}$dynamic_linker" >&6
15344test "$dynamic_linker" = no && can_build_shared=no
15345
15346echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15347echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15348hardcode_action_F77=
15349if test -n "$hardcode_libdir_flag_spec_F77" || \
15350   test -n "$runpath_var_F77" || \
15351   test "X$hardcode_automatic_F77" = "Xyes" ; then
15352
15353  # We can hardcode non-existant directories.
15354  if test "$hardcode_direct_F77" != no &&
15355     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15356     # have to relink, otherwise we might link with an installed library
15357     # when we should be linking with a yet-to-be-installed one
15358     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15359     test "$hardcode_minus_L_F77" != no; then
15360    # Linking always hardcodes the temporary library directory.
15361    hardcode_action_F77=relink
15362  else
15363    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15364    hardcode_action_F77=immediate
15365  fi
15366else
15367  # We cannot hardcode anything, or else we can only hardcode existing
15368  # directories.
15369  hardcode_action_F77=unsupported
15370fi
15371echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15372echo "${ECHO_T}$hardcode_action_F77" >&6
15373
15374if test "$hardcode_action_F77" = relink; then
15375  # Fast installation is not supported
15376  enable_fast_install=no
15377elif test "$shlibpath_overrides_runpath" = yes ||
15378     test "$enable_shared" = no; then
15379  # Fast installation is not necessary
15380  enable_fast_install=needless
15381fi
15382
15383striplib=
15384old_striplib=
15385echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15386echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15387if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15388  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15389  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15390  echo "$as_me:$LINENO: result: yes" >&5
15391echo "${ECHO_T}yes" >&6
15392else
15393# FIXME - insert some real tests, host_os isn't really good enough
15394  case $host_os in
15395   darwin*)
15396       if test -n "$STRIP" ; then
15397         striplib="$STRIP -x"
15398         echo "$as_me:$LINENO: result: yes" >&5
15399echo "${ECHO_T}yes" >&6
15400       else
15401  echo "$as_me:$LINENO: result: no" >&5
15402echo "${ECHO_T}no" >&6
15403fi
15404       ;;
15405   *)
15406  echo "$as_me:$LINENO: result: no" >&5
15407echo "${ECHO_T}no" >&6
15408    ;;
15409  esac
15410fi
15411
15412
15413
15414# The else clause should only fire when bootstrapping the
15415# libtool distribution, otherwise you forgot to ship ltmain.sh
15416# with your package, and you will get complaints that there are
15417# no rules to generate ltmain.sh.
15418if test -f "$ltmain"; then
15419  # See if we are running on zsh, and set the options which allow our commands through
15420  # without removal of \ escapes.
15421  if test -n "${ZSH_VERSION+set}" ; then
15422    setopt NO_GLOB_SUBST
15423  fi
15424  # Now quote all the things that may contain metacharacters while being
15425  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15426  # variables and quote the copies for generation of the libtool script.
15427  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15428    SED SHELL STRIP \
15429    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15430    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15431    deplibs_check_method reload_flag reload_cmds need_locks \
15432    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15433    lt_cv_sys_global_symbol_to_c_name_address \
15434    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15435    old_postinstall_cmds old_postuninstall_cmds \
15436    compiler_F77 \
15437    CC_F77 \
15438    LD_F77 \
15439    lt_prog_compiler_wl_F77 \
15440    lt_prog_compiler_pic_F77 \
15441    lt_prog_compiler_static_F77 \
15442    lt_prog_compiler_no_builtin_flag_F77 \
15443    export_dynamic_flag_spec_F77 \
15444    thread_safe_flag_spec_F77 \
15445    whole_archive_flag_spec_F77 \
15446    enable_shared_with_static_runtimes_F77 \
15447    old_archive_cmds_F77 \
15448    old_archive_from_new_cmds_F77 \
15449    predep_objects_F77 \
15450    postdep_objects_F77 \
15451    predeps_F77 \
15452    postdeps_F77 \
15453    compiler_lib_search_path_F77 \
15454    archive_cmds_F77 \
15455    archive_expsym_cmds_F77 \
15456    postinstall_cmds_F77 \
15457    postuninstall_cmds_F77 \
15458    old_archive_from_expsyms_cmds_F77 \
15459    allow_undefined_flag_F77 \
15460    no_undefined_flag_F77 \
15461    export_symbols_cmds_F77 \
15462    hardcode_libdir_flag_spec_F77 \
15463    hardcode_libdir_flag_spec_ld_F77 \
15464    hardcode_libdir_separator_F77 \
15465    hardcode_automatic_F77 \
15466    module_cmds_F77 \
15467    module_expsym_cmds_F77 \
15468    lt_cv_prog_compiler_c_o_F77 \
15469    exclude_expsyms_F77 \
15470    include_expsyms_F77; do
15471
15472    case $var in
15473    old_archive_cmds_F77 | \
15474    old_archive_from_new_cmds_F77 | \
15475    archive_cmds_F77 | \
15476    archive_expsym_cmds_F77 | \
15477    module_cmds_F77 | \
15478    module_expsym_cmds_F77 | \
15479    old_archive_from_expsyms_cmds_F77 | \
15480    export_symbols_cmds_F77 | \
15481    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15482    postinstall_cmds | postuninstall_cmds | \
15483    old_postinstall_cmds | old_postuninstall_cmds | \
15484    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15485      # Double-quote double-evaled strings.
15486      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15487      ;;
15488    *)
15489      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15490      ;;
15491    esac
15492  done
15493
15494  case $lt_echo in
15495  *'\$0 --fallback-echo"')
15496    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15497    ;;
15498  esac
15499
15500cfgfile="$ofile"
15501
15502  cat <<__EOF__ >> "$cfgfile"
15503# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15504
15505# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15506
15507# Shell to use when invoking shell scripts.
15508SHELL=$lt_SHELL
15509
15510# Whether or not to build shared libraries.
15511build_libtool_libs=$enable_shared
15512
15513# Whether or not to build static libraries.
15514build_old_libs=$enable_static
15515
15516# Whether or not to add -lc for building shared libraries.
15517build_libtool_need_lc=$archive_cmds_need_lc_F77
15518
15519# Whether or not to disallow shared libs when runtime libs are static
15520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15521
15522# Whether or not to optimize for fast installation.
15523fast_install=$enable_fast_install
15524
15525# The host system.
15526host_alias=$host_alias
15527host=$host
15528host_os=$host_os
15529
15530# The build system.
15531build_alias=$build_alias
15532build=$build
15533build_os=$build_os
15534
15535# An echo program that does not interpret backslashes.
15536echo=$lt_echo
15537
15538# The archiver.
15539AR=$lt_AR
15540AR_FLAGS=$lt_AR_FLAGS
15541
15542# A C compiler.
15543LTCC=$lt_LTCC
15544
15545# A language-specific compiler.
15546CC=$lt_compiler_F77
15547
15548# Is the compiler the GNU C compiler?
15549with_gcc=$GCC_F77
15550
15551# An ERE matcher.
15552EGREP=$lt_EGREP
15553
15554# The linker used to build libraries.
15555LD=$lt_LD_F77
15556
15557# Whether we need hard or soft links.
15558LN_S=$lt_LN_S
15559
15560# A BSD-compatible nm program.
15561NM=$lt_NM
15562
15563# A symbol stripping program
15564STRIP=$lt_STRIP
15565
15566# Used to examine libraries when file_magic_cmd begins "file"
15567MAGIC_CMD=$MAGIC_CMD
15568
15569# Used on cygwin: DLL creation program.
15570DLLTOOL="$DLLTOOL"
15571
15572# Used on cygwin: object dumper.
15573OBJDUMP="$OBJDUMP"
15574
15575# Used on cygwin: assembler.
15576AS="$AS"
15577
15578# The name of the directory that contains temporary libtool files.
15579objdir=$objdir
15580
15581# How to create reloadable object files.
15582reload_flag=$lt_reload_flag
15583reload_cmds=$lt_reload_cmds
15584
15585# How to pass a linker flag through the compiler.
15586wl=$lt_lt_prog_compiler_wl_F77
15587
15588# Object file suffix (normally "o").
15589objext="$ac_objext"
15590
15591# Old archive suffix (normally "a").
15592libext="$libext"
15593
15594# Shared library suffix (normally ".so").
15595shrext_cmds='$shrext_cmds'
15596
15597# Executable file suffix (normally "").
15598exeext="$exeext"
15599
15600# Additional compiler flags for building library objects.
15601pic_flag=$lt_lt_prog_compiler_pic_F77
15602pic_mode=$pic_mode
15603
15604# What is the maximum length of a command?
15605max_cmd_len=$lt_cv_sys_max_cmd_len
15606
15607# Does compiler simultaneously support -c and -o options?
15608compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15609
15610# Must we lock files when doing compilation?
15611need_locks=$lt_need_locks
15612
15613# Do we need the lib prefix for modules?
15614need_lib_prefix=$need_lib_prefix
15615
15616# Do we need a version for libraries?
15617need_version=$need_version
15618
15619# Whether dlopen is supported.
15620dlopen_support=$enable_dlopen
15621
15622# Whether dlopen of programs is supported.
15623dlopen_self=$enable_dlopen_self
15624
15625# Whether dlopen of statically linked programs is supported.
15626dlopen_self_static=$enable_dlopen_self_static
15627
15628# Compiler flag to prevent dynamic linking.
15629link_static_flag=$lt_lt_prog_compiler_static_F77
15630
15631# Compiler flag to turn off builtin functions.
15632no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15633
15634# Compiler flag to allow reflexive dlopens.
15635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15636
15637# Compiler flag to generate shared objects directly from archives.
15638whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15639
15640# Compiler flag to generate thread-safe objects.
15641thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15642
15643# Library versioning type.
15644version_type=$version_type
15645
15646# Format of library name prefix.
15647libname_spec=$lt_libname_spec
15648
15649# List of archive names.  First name is the real one, the rest are links.
15650# The last name is the one that the linker finds with -lNAME.
15651library_names_spec=$lt_library_names_spec
15652
15653# The coded name of the library, if different from the real name.
15654soname_spec=$lt_soname_spec
15655
15656# Commands used to build and install an old-style archive.
15657RANLIB=$lt_RANLIB
15658old_archive_cmds=$lt_old_archive_cmds_F77
15659old_postinstall_cmds=$lt_old_postinstall_cmds
15660old_postuninstall_cmds=$lt_old_postuninstall_cmds
15661
15662# Create an old-style archive from a shared archive.
15663old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15664
15665# Create a temporary old-style archive to link instead of a shared archive.
15666old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15667
15668# Commands used to build and install a shared archive.
15669archive_cmds=$lt_archive_cmds_F77
15670archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15671postinstall_cmds=$lt_postinstall_cmds
15672postuninstall_cmds=$lt_postuninstall_cmds
15673
15674# Commands used to build a loadable module (assumed same as above if empty)
15675module_cmds=$lt_module_cmds_F77
15676module_expsym_cmds=$lt_module_expsym_cmds_F77
15677
15678# Commands to strip libraries.
15679old_striplib=$lt_old_striplib
15680striplib=$lt_striplib
15681
15682# Dependencies to place before the objects being linked to create a
15683# shared library.
15684predep_objects=$lt_predep_objects_F77
15685
15686# Dependencies to place after the objects being linked to create a
15687# shared library.
15688postdep_objects=$lt_postdep_objects_F77
15689
15690# Dependencies to place before the objects being linked to create a
15691# shared library.
15692predeps=$lt_predeps_F77
15693
15694# Dependencies to place after the objects being linked to create a
15695# shared library.
15696postdeps=$lt_postdeps_F77
15697
15698# The library search path used internally by the compiler when linking
15699# a shared library.
15700compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15701
15702# Method to check whether dependent libraries are shared objects.
15703deplibs_check_method=$lt_deplibs_check_method
15704
15705# Command to use when deplibs_check_method == file_magic.
15706file_magic_cmd=$lt_file_magic_cmd
15707
15708# Flag that allows shared libraries with undefined symbols to be built.
15709allow_undefined_flag=$lt_allow_undefined_flag_F77
15710
15711# Flag that forces no undefined symbols.
15712no_undefined_flag=$lt_no_undefined_flag_F77
15713
15714# Commands used to finish a libtool library installation in a directory.
15715finish_cmds=$lt_finish_cmds
15716
15717# Same as above, but a single script fragment to be evaled but not shown.
15718finish_eval=$lt_finish_eval
15719
15720# Take the output of nm and produce a listing of raw symbols and C names.
15721global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15722
15723# Transform the output of nm in a proper C declaration
15724global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15725
15726# Transform the output of nm in a C name address pair
15727global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15728
15729# This is the shared library runtime path variable.
15730runpath_var=$runpath_var
15731
15732# This is the shared library path variable.
15733shlibpath_var=$shlibpath_var
15734
15735# Is shlibpath searched before the hard-coded library search path?
15736shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15737
15738# How to hardcode a shared library path into an executable.
15739hardcode_action=$hardcode_action_F77
15740
15741# Whether we should hardcode library paths into libraries.
15742hardcode_into_libs=$hardcode_into_libs
15743
15744# Flag to hardcode \$libdir into a binary during linking.
15745# This must work even if \$libdir does not exist.
15746hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15747
15748# If ld is used when linking, flag to hardcode \$libdir into
15749# a binary during linking. This must work even if \$libdir does
15750# not exist.
15751hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15752
15753# Whether we need a single -rpath flag with a separated argument.
15754hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15755
15756# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15757# resulting binary.
15758hardcode_direct=$hardcode_direct_F77
15759
15760# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15761# resulting binary.
15762hardcode_minus_L=$hardcode_minus_L_F77
15763
15764# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15765# the resulting binary.
15766hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15767
15768# Set to yes if building a shared library automatically hardcodes DIR into the library
15769# and all subsequent libraries and executables linked against it.
15770hardcode_automatic=$hardcode_automatic_F77
15771
15772# Variables whose values should be saved in libtool wrapper scripts and
15773# restored at relink time.
15774variables_saved_for_relink="$variables_saved_for_relink"
15775
15776# Whether libtool must link a program against all its dependency libraries.
15777link_all_deplibs=$link_all_deplibs_F77
15778
15779# Compile-time system search path for libraries
15780sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15781
15782# Run-time system search path for libraries
15783sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15784
15785# Fix the shell variable \$srcfile for the compiler.
15786fix_srcfile_path="$fix_srcfile_path_F77"
15787
15788# Set to yes if exported symbols are required.
15789always_export_symbols=$always_export_symbols_F77
15790
15791# The commands to list exported symbols.
15792export_symbols_cmds=$lt_export_symbols_cmds_F77
15793
15794# The commands to extract the exported symbol list from a shared archive.
15795extract_expsyms_cmds=$lt_extract_expsyms_cmds
15796
15797# Symbols that should not be listed in the preloaded symbols.
15798exclude_expsyms=$lt_exclude_expsyms_F77
15799
15800# Symbols that must always be exported.
15801include_expsyms=$lt_include_expsyms_F77
15802
15803# ### END LIBTOOL TAG CONFIG: $tagname
15804
15805__EOF__
15806
15807
15808else
15809  # If there is no Makefile yet, we rely on a make rule to execute
15810  # `config.status --recheck' to rerun these tests and create the
15811  # libtool script then.
15812  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15813  if test -f "$ltmain_in"; then
15814    test -f Makefile && make "$ltmain"
15815  fi
15816fi
15817
15818
15819ac_ext=c
15820ac_cpp='$CPP $CPPFLAGS'
15821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15823ac_compiler_gnu=$ac_cv_c_compiler_gnu
15824
15825CC="$lt_save_CC"
15826
15827	else
15828	  tagname=""
15829	fi
15830	;;
15831
15832      GCJ)
15833	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15834
15835
15836
15837# Source file extension for Java test sources.
15838ac_ext=java
15839
15840# Object file extension for compiled Java test sources.
15841objext=o
15842objext_GCJ=$objext
15843
15844# Code to be used in simple compile tests
15845lt_simple_compile_test_code="class foo {}\n"
15846
15847# Code to be used in simple link tests
15848lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15849
15850# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15851
15852# If no C compiler was specified, use CC.
15853LTCC=${LTCC-"$CC"}
15854
15855# Allow CC to be a program name with arguments.
15856compiler=$CC
15857
15858
15859# save warnings/boilerplate of simple test code
15860ac_outfile=conftest.$ac_objext
15861printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15862eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15863_lt_compiler_boilerplate=`cat conftest.err`
15864$rm conftest*
15865
15866ac_outfile=conftest.$ac_objext
15867printf "$lt_simple_link_test_code" >conftest.$ac_ext
15868eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15869_lt_linker_boilerplate=`cat conftest.err`
15870$rm conftest*
15871
15872
15873# Allow CC to be a program name with arguments.
15874lt_save_CC="$CC"
15875CC=${GCJ-"gcj"}
15876compiler=$CC
15877compiler_GCJ=$CC
15878for cc_temp in $compiler""; do
15879  case $cc_temp in
15880    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15881    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15882    \-*) ;;
15883    *) break;;
15884  esac
15885done
15886cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15887
15888
15889# GCJ did not exist at the time GCC didn't implicitly link libc in.
15890archive_cmds_need_lc_GCJ=no
15891
15892old_archive_cmds_GCJ=$old_archive_cmds
15893
15894
15895lt_prog_compiler_no_builtin_flag_GCJ=
15896
15897if test "$GCC" = yes; then
15898  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15899
15900
15901echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15902echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15903if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15904  echo $ECHO_N "(cached) $ECHO_C" >&6
15905else
15906  lt_cv_prog_compiler_rtti_exceptions=no
15907  ac_outfile=conftest.$ac_objext
15908   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15909   lt_compiler_flag="-fno-rtti -fno-exceptions"
15910   # Insert the option either (1) after the last *FLAGS variable, or
15911   # (2) before a word containing "conftest.", or (3) at the end.
15912   # Note that $ac_compile itself does not contain backslashes and begins
15913   # with a dollar sign (not a hyphen), so the echo should work correctly.
15914   # The option is referenced via a variable to avoid confusing sed.
15915   lt_compile=`echo "$ac_compile" | $SED \
15916   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15917   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15918   -e 's:$: $lt_compiler_flag:'`
15919   (eval echo "\"\$as_me:15919: $lt_compile\"" >&5)
15920   (eval "$lt_compile" 2>conftest.err)
15921   ac_status=$?
15922   cat conftest.err >&5
15923   echo "$as_me:15923: \$? = $ac_status" >&5
15924   if (exit $ac_status) && test -s "$ac_outfile"; then
15925     # The compiler can only warn and ignore the option if not recognized
15926     # So say no if there are warnings other than the usual output.
15927     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15928     $SED '/^$/d' conftest.err >conftest.er2
15929     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15930       lt_cv_prog_compiler_rtti_exceptions=yes
15931     fi
15932   fi
15933   $rm conftest*
15934
15935fi
15936echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15937echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15938
15939if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15940    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15941else
15942    :
15943fi
15944
15945fi
15946
15947lt_prog_compiler_wl_GCJ=
15948lt_prog_compiler_pic_GCJ=
15949lt_prog_compiler_static_GCJ=
15950
15951echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15952echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15953
15954  if test "$GCC" = yes; then
15955    lt_prog_compiler_wl_GCJ='-Wl,'
15956    lt_prog_compiler_static_GCJ='-static'
15957
15958    case $host_os in
15959      aix*)
15960      # All AIX code is PIC.
15961      if test "$host_cpu" = ia64; then
15962	# AIX 5 now supports IA64 processor
15963	lt_prog_compiler_static_GCJ='-Bstatic'
15964      fi
15965      ;;
15966
15967    amigaos*)
15968      # FIXME: we need at least 68020 code to build shared libraries, but
15969      # adding the `-m68020' flag to GCC prevents building anything better,
15970      # like `-m68040'.
15971      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15972      ;;
15973
15974    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15975      # PIC is the default for these OSes.
15976      ;;
15977
15978    mingw* | pw32* | os2*)
15979      # This hack is so that the source file can tell whether it is being
15980      # built for inclusion in a dll (and should export symbols for example).
15981      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15982      ;;
15983
15984    darwin* | rhapsody*)
15985      # PIC is the default on this platform
15986      # Common symbols not allowed in MH_DYLIB files
15987      lt_prog_compiler_pic_GCJ='-fno-common'
15988      ;;
15989
15990    msdosdjgpp*)
15991      # Just because we use GCC doesn't mean we suddenly get shared libraries
15992      # on systems that don't support them.
15993      lt_prog_compiler_can_build_shared_GCJ=no
15994      enable_shared=no
15995      ;;
15996
15997    sysv4*MP*)
15998      if test -d /usr/nec; then
15999	lt_prog_compiler_pic_GCJ=-Kconform_pic
16000      fi
16001      ;;
16002
16003    hpux*)
16004      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16005      # not for PA HP-UX.
16006      case $host_cpu in
16007      hppa*64*|ia64*)
16008	# +Z the default
16009	;;
16010      *)
16011	lt_prog_compiler_pic_GCJ='-fPIC'
16012	;;
16013      esac
16014      ;;
16015
16016    *)
16017      lt_prog_compiler_pic_GCJ='-fPIC'
16018      ;;
16019    esac
16020  else
16021    # PORTME Check for flag to pass linker flags through the system compiler.
16022    case $host_os in
16023    aix*)
16024      lt_prog_compiler_wl_GCJ='-Wl,'
16025      if test "$host_cpu" = ia64; then
16026	# AIX 5 now supports IA64 processor
16027	lt_prog_compiler_static_GCJ='-Bstatic'
16028      else
16029	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16030      fi
16031      ;;
16032      darwin*)
16033        # PIC is the default on this platform
16034        # Common symbols not allowed in MH_DYLIB files
16035       case $cc_basename in
16036         xlc*)
16037         lt_prog_compiler_pic_GCJ='-qnocommon'
16038         lt_prog_compiler_wl_GCJ='-Wl,'
16039         ;;
16040       esac
16041       ;;
16042
16043    mingw* | pw32* | os2*)
16044      # This hack is so that the source file can tell whether it is being
16045      # built for inclusion in a dll (and should export symbols for example).
16046      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16047      ;;
16048
16049    hpux9* | hpux10* | hpux11*)
16050      lt_prog_compiler_wl_GCJ='-Wl,'
16051      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16052      # not for PA HP-UX.
16053      case $host_cpu in
16054      hppa*64*|ia64*)
16055	# +Z the default
16056	;;
16057      *)
16058	lt_prog_compiler_pic_GCJ='+Z'
16059	;;
16060      esac
16061      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16062      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16063      ;;
16064
16065    irix5* | irix6* | nonstopux*)
16066      lt_prog_compiler_wl_GCJ='-Wl,'
16067      # PIC (with -KPIC) is the default.
16068      lt_prog_compiler_static_GCJ='-non_shared'
16069      ;;
16070
16071    newsos6)
16072      lt_prog_compiler_pic_GCJ='-KPIC'
16073      lt_prog_compiler_static_GCJ='-Bstatic'
16074      ;;
16075
16076    linux*)
16077      case $cc_basename in
16078      icc* | ecc*)
16079	lt_prog_compiler_wl_GCJ='-Wl,'
16080	lt_prog_compiler_pic_GCJ='-KPIC'
16081	lt_prog_compiler_static_GCJ='-static'
16082        ;;
16083      pgcc* | pgf77* | pgf90* | pgf95*)
16084        # Portland Group compilers (*not* the Pentium gcc compiler,
16085	# which looks to be a dead project)
16086	lt_prog_compiler_wl_GCJ='-Wl,'
16087	lt_prog_compiler_pic_GCJ='-fpic'
16088	lt_prog_compiler_static_GCJ='-Bstatic'
16089        ;;
16090      ccc*)
16091        lt_prog_compiler_wl_GCJ='-Wl,'
16092        # All Alpha code is PIC.
16093        lt_prog_compiler_static_GCJ='-non_shared'
16094        ;;
16095      esac
16096      ;;
16097
16098    osf3* | osf4* | osf5*)
16099      lt_prog_compiler_wl_GCJ='-Wl,'
16100      # All OSF/1 code is PIC.
16101      lt_prog_compiler_static_GCJ='-non_shared'
16102      ;;
16103
16104    sco3.2v5*)
16105      lt_prog_compiler_pic_GCJ='-Kpic'
16106      lt_prog_compiler_static_GCJ='-dn'
16107      ;;
16108
16109    solaris*)
16110      lt_prog_compiler_pic_GCJ='-KPIC'
16111      lt_prog_compiler_static_GCJ='-Bstatic'
16112      case $cc_basename in
16113      f77* | f90* | f95*)
16114	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16115      *)
16116	lt_prog_compiler_wl_GCJ='-Wl,';;
16117      esac
16118      ;;
16119
16120    sunos4*)
16121      lt_prog_compiler_wl_GCJ='-Qoption ld '
16122      lt_prog_compiler_pic_GCJ='-PIC'
16123      lt_prog_compiler_static_GCJ='-Bstatic'
16124      ;;
16125
16126    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16127      lt_prog_compiler_wl_GCJ='-Wl,'
16128      lt_prog_compiler_pic_GCJ='-KPIC'
16129      lt_prog_compiler_static_GCJ='-Bstatic'
16130      ;;
16131
16132    sysv4*MP*)
16133      if test -d /usr/nec ;then
16134	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16135	lt_prog_compiler_static_GCJ='-Bstatic'
16136      fi
16137      ;;
16138
16139    unicos*)
16140      lt_prog_compiler_wl_GCJ='-Wl,'
16141      lt_prog_compiler_can_build_shared_GCJ=no
16142      ;;
16143
16144    uts4*)
16145      lt_prog_compiler_pic_GCJ='-pic'
16146      lt_prog_compiler_static_GCJ='-Bstatic'
16147      ;;
16148
16149    *)
16150      lt_prog_compiler_can_build_shared_GCJ=no
16151      ;;
16152    esac
16153  fi
16154
16155echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16156echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16157
16158#
16159# Check to make sure the PIC flag actually works.
16160#
16161if test -n "$lt_prog_compiler_pic_GCJ"; then
16162
16163echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16164echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16165if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16166  echo $ECHO_N "(cached) $ECHO_C" >&6
16167else
16168  lt_prog_compiler_pic_works_GCJ=no
16169  ac_outfile=conftest.$ac_objext
16170   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16171   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16172   # Insert the option either (1) after the last *FLAGS variable, or
16173   # (2) before a word containing "conftest.", or (3) at the end.
16174   # Note that $ac_compile itself does not contain backslashes and begins
16175   # with a dollar sign (not a hyphen), so the echo should work correctly.
16176   # The option is referenced via a variable to avoid confusing sed.
16177   lt_compile=`echo "$ac_compile" | $SED \
16178   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16179   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16180   -e 's:$: $lt_compiler_flag:'`
16181   (eval echo "\"\$as_me:16181: $lt_compile\"" >&5)
16182   (eval "$lt_compile" 2>conftest.err)
16183   ac_status=$?
16184   cat conftest.err >&5
16185   echo "$as_me:16185: \$? = $ac_status" >&5
16186   if (exit $ac_status) && test -s "$ac_outfile"; then
16187     # The compiler can only warn and ignore the option if not recognized
16188     # So say no if there are warnings other than the usual output.
16189     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16190     $SED '/^$/d' conftest.err >conftest.er2
16191     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16192       lt_prog_compiler_pic_works_GCJ=yes
16193     fi
16194   fi
16195   $rm conftest*
16196
16197fi
16198echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16199echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16200
16201if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16202    case $lt_prog_compiler_pic_GCJ in
16203     "" | " "*) ;;
16204     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16205     esac
16206else
16207    lt_prog_compiler_pic_GCJ=
16208     lt_prog_compiler_can_build_shared_GCJ=no
16209fi
16210
16211fi
16212case $host_os in
16213  # For platforms which do not support PIC, -DPIC is meaningless:
16214  *djgpp*)
16215    lt_prog_compiler_pic_GCJ=
16216    ;;
16217  *)
16218    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16219    ;;
16220esac
16221
16222echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16223echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16224if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16225  echo $ECHO_N "(cached) $ECHO_C" >&6
16226else
16227  lt_cv_prog_compiler_c_o_GCJ=no
16228   $rm -r conftest 2>/dev/null
16229   mkdir conftest
16230   cd conftest
16231   mkdir out
16232   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16233
16234   lt_compiler_flag="-o out/conftest2.$ac_objext"
16235   # Insert the option either (1) after the last *FLAGS variable, or
16236   # (2) before a word containing "conftest.", or (3) at the end.
16237   # Note that $ac_compile itself does not contain backslashes and begins
16238   # with a dollar sign (not a hyphen), so the echo should work correctly.
16239   lt_compile=`echo "$ac_compile" | $SED \
16240   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16242   -e 's:$: $lt_compiler_flag:'`
16243   (eval echo "\"\$as_me:16243: $lt_compile\"" >&5)
16244   (eval "$lt_compile" 2>out/conftest.err)
16245   ac_status=$?
16246   cat out/conftest.err >&5
16247   echo "$as_me:16247: \$? = $ac_status" >&5
16248   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16249   then
16250     # The compiler can only warn and ignore the option if not recognized
16251     # So say no if there are warnings
16252     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16253     $SED '/^$/d' out/conftest.err >out/conftest.er2
16254     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16255       lt_cv_prog_compiler_c_o_GCJ=yes
16256     fi
16257   fi
16258   chmod u+w . 2>&5
16259   $rm conftest*
16260   # SGI C++ compiler will create directory out/ii_files/ for
16261   # template instantiation
16262   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16263   $rm out/* && rmdir out
16264   cd ..
16265   rmdir conftest
16266   $rm conftest*
16267
16268fi
16269echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16270echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16271
16272
16273hard_links="nottested"
16274if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16275  # do not overwrite the value of need_locks provided by the user
16276  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16277echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16278  hard_links=yes
16279  $rm conftest*
16280  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16281  touch conftest.a
16282  ln conftest.a conftest.b 2>&5 || hard_links=no
16283  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16284  echo "$as_me:$LINENO: result: $hard_links" >&5
16285echo "${ECHO_T}$hard_links" >&6
16286  if test "$hard_links" = no; then
16287    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16288echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16289    need_locks=warn
16290  fi
16291else
16292  need_locks=no
16293fi
16294
16295echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16296echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16297
16298  runpath_var=
16299  allow_undefined_flag_GCJ=
16300  enable_shared_with_static_runtimes_GCJ=no
16301  archive_cmds_GCJ=
16302  archive_expsym_cmds_GCJ=
16303  old_archive_From_new_cmds_GCJ=
16304  old_archive_from_expsyms_cmds_GCJ=
16305  export_dynamic_flag_spec_GCJ=
16306  whole_archive_flag_spec_GCJ=
16307  thread_safe_flag_spec_GCJ=
16308  hardcode_libdir_flag_spec_GCJ=
16309  hardcode_libdir_flag_spec_ld_GCJ=
16310  hardcode_libdir_separator_GCJ=
16311  hardcode_direct_GCJ=no
16312  hardcode_minus_L_GCJ=no
16313  hardcode_shlibpath_var_GCJ=unsupported
16314  link_all_deplibs_GCJ=unknown
16315  hardcode_automatic_GCJ=no
16316  module_cmds_GCJ=
16317  module_expsym_cmds_GCJ=
16318  always_export_symbols_GCJ=no
16319  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16320  # include_expsyms should be a list of space-separated symbols to be *always*
16321  # included in the symbol list
16322  include_expsyms_GCJ=
16323  # exclude_expsyms can be an extended regexp of symbols to exclude
16324  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16325  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16326  # as well as any symbol that contains `d'.
16327  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16328  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16329  # platforms (ab)use it in PIC code, but their linkers get confused if
16330  # the symbol is explicitly referenced.  Since portable code cannot
16331  # rely on this symbol name, it's probably fine to never include it in
16332  # preloaded symbol tables.
16333  extract_expsyms_cmds=
16334  # Just being paranoid about ensuring that cc_basename is set.
16335  for cc_temp in $compiler""; do
16336  case $cc_temp in
16337    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16338    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16339    \-*) ;;
16340    *) break;;
16341  esac
16342done
16343cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16344
16345  case $host_os in
16346  cygwin* | mingw* | pw32*)
16347    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16348    # When not using gcc, we currently assume that we are using
16349    # Microsoft Visual C++.
16350    if test "$GCC" != yes; then
16351      with_gnu_ld=no
16352    fi
16353    ;;
16354  openbsd*)
16355    with_gnu_ld=no
16356    ;;
16357  esac
16358
16359  ld_shlibs_GCJ=yes
16360  if test "$with_gnu_ld" = yes; then
16361    # If archive_cmds runs LD, not CC, wlarc should be empty
16362    wlarc='${wl}'
16363
16364    # Set some defaults for GNU ld with shared library support. These
16365    # are reset later if shared libraries are not supported. Putting them
16366    # here allows them to be overridden if necessary.
16367    runpath_var=LD_RUN_PATH
16368    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16369    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16370    # ancient GNU ld didn't support --whole-archive et. al.
16371    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16372	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16373      else
16374  	whole_archive_flag_spec_GCJ=
16375    fi
16376    supports_anon_versioning=no
16377    case `$LD -v 2>/dev/null` in
16378      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16379      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16380      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16381      *\ 2.11.*) ;; # other 2.11 versions
16382      *) supports_anon_versioning=yes ;;
16383    esac
16384
16385    # See if GNU ld supports shared libraries.
16386    case $host_os in
16387    aix3* | aix4* | aix5*)
16388      # On AIX/PPC, the GNU linker is very broken
16389      if test "$host_cpu" != ia64; then
16390	ld_shlibs_GCJ=no
16391	cat <<EOF 1>&2
16392
16393*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16394*** to be unable to reliably create shared libraries on AIX.
16395*** Therefore, libtool is disabling shared libraries support.  If you
16396*** really care for shared libraries, you may want to modify your PATH
16397*** so that a non-GNU linker is found, and then restart.
16398
16399EOF
16400      fi
16401      ;;
16402
16403    amigaos*)
16404      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)'
16405      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16406      hardcode_minus_L_GCJ=yes
16407
16408      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16409      # that the semantics of dynamic libraries on AmigaOS, at least up
16410      # to version 4, is to share data among multiple programs linked
16411      # with the same dynamic library.  Since this doesn't match the
16412      # behavior of shared libraries on other platforms, we can't use
16413      # them.
16414      ld_shlibs_GCJ=no
16415      ;;
16416
16417    beos*)
16418      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16419	allow_undefined_flag_GCJ=unsupported
16420	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16421	# support --undefined.  This deserves some investigation.  FIXME
16422	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16423      else
16424	ld_shlibs_GCJ=no
16425      fi
16426      ;;
16427
16428    cygwin* | mingw* | pw32*)
16429      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16430      # as there is no search path for DLLs.
16431      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16432      allow_undefined_flag_GCJ=unsupported
16433      always_export_symbols_GCJ=no
16434      enable_shared_with_static_runtimes_GCJ=yes
16435      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16436
16437      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16438        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16439	# If the export-symbols file already is a .def file (1st line
16440	# is EXPORTS), use it as is; otherwise, prepend...
16441	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16442	  cp $export_symbols $output_objdir/$soname.def;
16443	else
16444	  echo EXPORTS > $output_objdir/$soname.def;
16445	  cat $export_symbols >> $output_objdir/$soname.def;
16446	fi~
16447	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16448      else
16449	ld_shlibs_GCJ=no
16450      fi
16451      ;;
16452
16453    linux*)
16454      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16455	tmp_addflag=
16456	case $cc_basename,$host_cpu in
16457	pgcc*)				# Portland Group C compiler
16458	  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'
16459	  tmp_addflag=' $pic_flag'
16460	  ;;
16461	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16462	  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'
16463	  tmp_addflag=' $pic_flag -Mnomain' ;;
16464	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16465	  tmp_addflag=' -i_dynamic' ;;
16466	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16467	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16468	ifc* | ifort*)			# Intel Fortran compiler
16469	  tmp_addflag=' -nofor_main' ;;
16470	esac
16471	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16472
16473	if test $supports_anon_versioning = yes; then
16474	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16475  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16476  $echo "local: *; };" >> $output_objdir/$libname.ver~
16477	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16478	fi
16479	link_all_deplibs_GCJ=no
16480      else
16481	ld_shlibs_GCJ=no
16482      fi
16483      ;;
16484
16485    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16486      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16487	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16488	wlarc=
16489      else
16490	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16491	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16492      fi
16493      ;;
16494
16495    solaris* | sysv5*)
16496      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16497	ld_shlibs_GCJ=no
16498	cat <<EOF 1>&2
16499
16500*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16501*** create shared libraries on Solaris systems.  Therefore, libtool
16502*** is disabling shared libraries support.  We urge you to upgrade GNU
16503*** binutils to release 2.9.1 or newer.  Another option is to modify
16504*** your PATH or compiler configuration so that the native linker is
16505*** used, and then restart.
16506
16507EOF
16508      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16509	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16510	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16511      else
16512	ld_shlibs_GCJ=no
16513      fi
16514      ;;
16515
16516    sunos4*)
16517      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16518      wlarc=
16519      hardcode_direct_GCJ=yes
16520      hardcode_shlibpath_var_GCJ=no
16521      ;;
16522
16523    *)
16524      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16525	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16526	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16527      else
16528	ld_shlibs_GCJ=no
16529      fi
16530      ;;
16531    esac
16532
16533    if test "$ld_shlibs_GCJ" = no; then
16534      runpath_var=
16535      hardcode_libdir_flag_spec_GCJ=
16536      export_dynamic_flag_spec_GCJ=
16537      whole_archive_flag_spec_GCJ=
16538    fi
16539  else
16540    # PORTME fill in a description of your system's linker (not GNU ld)
16541    case $host_os in
16542    aix3*)
16543      allow_undefined_flag_GCJ=unsupported
16544      always_export_symbols_GCJ=yes
16545      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'
16546      # Note: this linker hardcodes the directories in LIBPATH if there
16547      # are no directories specified by -L.
16548      hardcode_minus_L_GCJ=yes
16549      if test "$GCC" = yes && test -z "$link_static_flag"; then
16550	# Neither direct hardcoding nor static linking is supported with a
16551	# broken collect2.
16552	hardcode_direct_GCJ=unsupported
16553      fi
16554      ;;
16555
16556    aix4* | aix5*)
16557      if test "$host_cpu" = ia64; then
16558	# On IA64, the linker does run time linking by default, so we don't
16559	# have to do anything special.
16560	aix_use_runtimelinking=no
16561	exp_sym_flag='-Bexport'
16562	no_entry_flag=""
16563      else
16564	# If we're using GNU nm, then we don't want the "-C" option.
16565	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16566	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16567	  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'
16568	else
16569	  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'
16570	fi
16571	aix_use_runtimelinking=no
16572
16573	# Test if we are trying to use run time linking or normal
16574	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16575	# need to do runtime linking.
16576	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16577	  for ld_flag in $LDFLAGS; do
16578  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16579  	    aix_use_runtimelinking=yes
16580  	    break
16581  	  fi
16582	  done
16583	esac
16584
16585	exp_sym_flag='-bexport'
16586	no_entry_flag='-bnoentry'
16587      fi
16588
16589      # When large executables or shared objects are built, AIX ld can
16590      # have problems creating the table of contents.  If linking a library
16591      # or program results in "error TOC overflow" add -mminimal-toc to
16592      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16593      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16594
16595      archive_cmds_GCJ=''
16596      hardcode_direct_GCJ=yes
16597      hardcode_libdir_separator_GCJ=':'
16598      link_all_deplibs_GCJ=yes
16599
16600      if test "$GCC" = yes; then
16601	case $host_os in aix4.[012]|aix4.[012].*)
16602	# We only want to do this on AIX 4.2 and lower, the check
16603	# below for broken collect2 doesn't work under 4.3+
16604	  collect2name=`${CC} -print-prog-name=collect2`
16605	  if test -f "$collect2name" && \
16606  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16607	  then
16608  	  # We have reworked collect2
16609  	  hardcode_direct_GCJ=yes
16610	  else
16611  	  # We have old collect2
16612  	  hardcode_direct_GCJ=unsupported
16613  	  # It fails to find uninstalled libraries when the uninstalled
16614  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16615  	  # to unsupported forces relinking
16616  	  hardcode_minus_L_GCJ=yes
16617  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16618  	  hardcode_libdir_separator_GCJ=
16619	  fi
16620	esac
16621	shared_flag='-shared'
16622	if test "$aix_use_runtimelinking" = yes; then
16623	  shared_flag="$shared_flag "'${wl}-G'
16624	fi
16625      else
16626	# not using gcc
16627	if test "$host_cpu" = ia64; then
16628  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16629  	# chokes on -Wl,-G. The following line is correct:
16630	  shared_flag='-G'
16631	else
16632  	if test "$aix_use_runtimelinking" = yes; then
16633	    shared_flag='${wl}-G'
16634	  else
16635	    shared_flag='${wl}-bM:SRE'
16636  	fi
16637	fi
16638      fi
16639
16640      # It seems that -bexpall does not export symbols beginning with
16641      # underscore (_), so it is better to generate a list of symbols to export.
16642      always_export_symbols_GCJ=yes
16643      if test "$aix_use_runtimelinking" = yes; then
16644	# Warning - without using the other runtime loading flags (-brtl),
16645	# -berok will link without error, but may produce a broken library.
16646	allow_undefined_flag_GCJ='-berok'
16647       # Determine the default libpath from the value encoded in an empty executable.
16648       cat >conftest.$ac_ext <<_ACEOF
16649/* confdefs.h.  */
16650_ACEOF
16651cat confdefs.h >>conftest.$ac_ext
16652cat >>conftest.$ac_ext <<_ACEOF
16653/* end confdefs.h.  */
16654
16655int
16656main ()
16657{
16658
16659  ;
16660  return 0;
16661}
16662_ACEOF
16663rm -f conftest.$ac_objext conftest$ac_exeext
16664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16665  (eval $ac_link) 2>conftest.er1
16666  ac_status=$?
16667  grep -v '^ *+' conftest.er1 >conftest.err
16668  rm -f conftest.er1
16669  cat conftest.err >&5
16670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671  (exit $ac_status); } &&
16672	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674  (eval $ac_try) 2>&5
16675  ac_status=$?
16676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677  (exit $ac_status); }; } &&
16678	 { ac_try='test -s conftest$ac_exeext'
16679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680  (eval $ac_try) 2>&5
16681  ac_status=$?
16682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683  (exit $ac_status); }; }; then
16684
16685aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16686}'`
16687# Check for a 64-bit object if we didn't find anything.
16688if 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; }
16689}'`; fi
16690else
16691  echo "$as_me: failed program was:" >&5
16692sed 's/^/| /' conftest.$ac_ext >&5
16693
16694fi
16695rm -f conftest.err conftest.$ac_objext \
16696      conftest$ac_exeext conftest.$ac_ext
16697if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16698
16699       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16700	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16701       else
16702	if test "$host_cpu" = ia64; then
16703	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16704	  allow_undefined_flag_GCJ="-z nodefs"
16705	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16706	else
16707	 # Determine the default libpath from the value encoded in an empty executable.
16708	 cat >conftest.$ac_ext <<_ACEOF
16709/* confdefs.h.  */
16710_ACEOF
16711cat confdefs.h >>conftest.$ac_ext
16712cat >>conftest.$ac_ext <<_ACEOF
16713/* end confdefs.h.  */
16714
16715int
16716main ()
16717{
16718
16719  ;
16720  return 0;
16721}
16722_ACEOF
16723rm -f conftest.$ac_objext conftest$ac_exeext
16724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16725  (eval $ac_link) 2>conftest.er1
16726  ac_status=$?
16727  grep -v '^ *+' conftest.er1 >conftest.err
16728  rm -f conftest.er1
16729  cat conftest.err >&5
16730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731  (exit $ac_status); } &&
16732	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734  (eval $ac_try) 2>&5
16735  ac_status=$?
16736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737  (exit $ac_status); }; } &&
16738	 { ac_try='test -s conftest$ac_exeext'
16739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740  (eval $ac_try) 2>&5
16741  ac_status=$?
16742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743  (exit $ac_status); }; }; then
16744
16745aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16746}'`
16747# Check for a 64-bit object if we didn't find anything.
16748if 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; }
16749}'`; fi
16750else
16751  echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
16754fi
16755rm -f conftest.err conftest.$ac_objext \
16756      conftest$ac_exeext conftest.$ac_ext
16757if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16758
16759	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16760	  # Warning - without using the other run time loading flags,
16761	  # -berok will link without error, but may produce a broken library.
16762	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16763	  allow_undefined_flag_GCJ=' ${wl}-berok'
16764	  # -bexpall does not export symbols beginning with underscore (_)
16765	  always_export_symbols_GCJ=yes
16766	  # Exported symbols can be pulled into shared objects from archives
16767	  whole_archive_flag_spec_GCJ=' '
16768	  archive_cmds_need_lc_GCJ=yes
16769	  # This is similar to how AIX traditionally builds its shared libraries.
16770	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16771	fi
16772      fi
16773      ;;
16774
16775    amigaos*)
16776      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)'
16777      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16778      hardcode_minus_L_GCJ=yes
16779      # see comment about different semantics on the GNU ld section
16780      ld_shlibs_GCJ=no
16781      ;;
16782
16783    bsdi[45]*)
16784      export_dynamic_flag_spec_GCJ=-rdynamic
16785      ;;
16786
16787    cygwin* | mingw* | pw32*)
16788      # When not using gcc, we currently assume that we are using
16789      # Microsoft Visual C++.
16790      # hardcode_libdir_flag_spec is actually meaningless, as there is
16791      # no search path for DLLs.
16792      hardcode_libdir_flag_spec_GCJ=' '
16793      allow_undefined_flag_GCJ=unsupported
16794      # Tell ltmain to make .lib files, not .a files.
16795      libext=lib
16796      # Tell ltmain to make .dll files, not .so files.
16797      shrext_cmds=".dll"
16798      # FIXME: Setting linknames here is a bad hack.
16799      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16800      # The linker will automatically build a .lib file if we build a DLL.
16801      old_archive_From_new_cmds_GCJ='true'
16802      # FIXME: Should let the user specify the lib program.
16803      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16804      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16805      enable_shared_with_static_runtimes_GCJ=yes
16806      ;;
16807
16808    darwin* | rhapsody*)
16809      case $host_os in
16810        rhapsody* | darwin1.[012])
16811         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16812         ;;
16813       *) # Darwin 1.3 on
16814         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16815           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16816         else
16817           case ${MACOSX_DEPLOYMENT_TARGET} in
16818             10.[012])
16819               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16820               ;;
16821             10.*)
16822               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16823               ;;
16824           esac
16825         fi
16826         ;;
16827      esac
16828      archive_cmds_need_lc_GCJ=no
16829      hardcode_direct_GCJ=no
16830      hardcode_automatic_GCJ=yes
16831      hardcode_shlibpath_var_GCJ=unsupported
16832      whole_archive_flag_spec_GCJ=''
16833      link_all_deplibs_GCJ=yes
16834    if test "$GCC" = yes ; then
16835    	output_verbose_link_cmd='echo'
16836        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16837      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16838      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16839      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}'
16840      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}'
16841    else
16842      case $cc_basename in
16843        xlc*)
16844         output_verbose_link_cmd='echo'
16845         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16846         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16847          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16848         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}'
16849          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}'
16850          ;;
16851       *)
16852         ld_shlibs_GCJ=no
16853          ;;
16854      esac
16855    fi
16856      ;;
16857
16858    dgux*)
16859      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16860      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16861      hardcode_shlibpath_var_GCJ=no
16862      ;;
16863
16864    freebsd1*)
16865      ld_shlibs_GCJ=no
16866      ;;
16867
16868    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16869    # support.  Future versions do this automatically, but an explicit c++rt0.o
16870    # does not break anything, and helps significantly (at the cost of a little
16871    # extra space).
16872    freebsd2.2*)
16873      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16874      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16875      hardcode_direct_GCJ=yes
16876      hardcode_shlibpath_var_GCJ=no
16877      ;;
16878
16879    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16880    freebsd2*)
16881      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16882      hardcode_direct_GCJ=yes
16883      hardcode_minus_L_GCJ=yes
16884      hardcode_shlibpath_var_GCJ=no
16885      ;;
16886
16887    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16888    freebsd* | kfreebsd*-gnu | dragonfly*)
16889      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16890      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16891      hardcode_direct_GCJ=yes
16892      hardcode_shlibpath_var_GCJ=no
16893      ;;
16894
16895    hpux9*)
16896      if test "$GCC" = yes; then
16897	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'
16898      else
16899	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'
16900      fi
16901      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16902      hardcode_libdir_separator_GCJ=:
16903      hardcode_direct_GCJ=yes
16904
16905      # hardcode_minus_L: Not really in the search PATH,
16906      # but as the default location of the library.
16907      hardcode_minus_L_GCJ=yes
16908      export_dynamic_flag_spec_GCJ='${wl}-E'
16909      ;;
16910
16911    hpux10* | hpux11*)
16912      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16913	case $host_cpu in
16914	hppa*64*|ia64*)
16915	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16916	  ;;
16917	*)
16918	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16919	  ;;
16920	esac
16921      else
16922	case $host_cpu in
16923	hppa*64*|ia64*)
16924	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16925	  ;;
16926	*)
16927	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16928	  ;;
16929	esac
16930      fi
16931      if test "$with_gnu_ld" = no; then
16932	case $host_cpu in
16933	hppa*64*)
16934	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16935	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16936	  hardcode_libdir_separator_GCJ=:
16937	  hardcode_direct_GCJ=no
16938	  hardcode_shlibpath_var_GCJ=no
16939	  ;;
16940	ia64*)
16941	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16942	  hardcode_direct_GCJ=no
16943	  hardcode_shlibpath_var_GCJ=no
16944
16945	  # hardcode_minus_L: Not really in the search PATH,
16946	  # but as the default location of the library.
16947	  hardcode_minus_L_GCJ=yes
16948	  ;;
16949	*)
16950	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16951	  hardcode_libdir_separator_GCJ=:
16952	  hardcode_direct_GCJ=yes
16953	  export_dynamic_flag_spec_GCJ='${wl}-E'
16954
16955	  # hardcode_minus_L: Not really in the search PATH,
16956	  # but as the default location of the library.
16957	  hardcode_minus_L_GCJ=yes
16958	  ;;
16959	esac
16960      fi
16961      ;;
16962
16963    irix5* | irix6* | nonstopux*)
16964      if test "$GCC" = yes; then
16965	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'
16966      else
16967	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'
16968	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16969      fi
16970      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16971      hardcode_libdir_separator_GCJ=:
16972      link_all_deplibs_GCJ=yes
16973      ;;
16974
16975    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16976      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16977	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16978      else
16979	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16980      fi
16981      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16982      hardcode_direct_GCJ=yes
16983      hardcode_shlibpath_var_GCJ=no
16984      ;;
16985
16986    newsos6)
16987      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16988      hardcode_direct_GCJ=yes
16989      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16990      hardcode_libdir_separator_GCJ=:
16991      hardcode_shlibpath_var_GCJ=no
16992      ;;
16993
16994    openbsd*)
16995      hardcode_direct_GCJ=yes
16996      hardcode_shlibpath_var_GCJ=no
16997      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16998	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16999	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17000	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17001	export_dynamic_flag_spec_GCJ='${wl}-E'
17002      else
17003       case $host_os in
17004	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17005	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17006	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17007	   ;;
17008	 *)
17009	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17010	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17011	   ;;
17012       esac
17013      fi
17014      ;;
17015
17016    os2*)
17017      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17018      hardcode_minus_L_GCJ=yes
17019      allow_undefined_flag_GCJ=unsupported
17020      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'
17021      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17022      ;;
17023
17024    osf3*)
17025      if test "$GCC" = yes; then
17026	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17027	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'
17028      else
17029	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17030	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'
17031      fi
17032      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17033      hardcode_libdir_separator_GCJ=:
17034      ;;
17035
17036    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17037      if test "$GCC" = yes; then
17038	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17039	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'
17040	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17041      else
17042	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17043	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'
17044	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~
17045	$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'
17046
17047	# Both c and cxx compiler support -rpath directly
17048	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17049      fi
17050      hardcode_libdir_separator_GCJ=:
17051      ;;
17052
17053    sco3.2v5*)
17054      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17055      hardcode_shlibpath_var_GCJ=no
17056      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17057      runpath_var=LD_RUN_PATH
17058      hardcode_runpath_var=yes
17059      ;;
17060
17061    solaris*)
17062      no_undefined_flag_GCJ=' -z text'
17063      if test "$GCC" = yes; then
17064	wlarc='${wl}'
17065	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17066	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17067	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17068      else
17069	wlarc=''
17070	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17071	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17072  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17073      fi
17074      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17075      hardcode_shlibpath_var_GCJ=no
17076      case $host_os in
17077      solaris2.[0-5] | solaris2.[0-5].*) ;;
17078      *)
17079 	# The compiler driver will combine linker options so we
17080 	# cannot just pass the convience library names through
17081 	# without $wl, iff we do not link with $LD.
17082 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17083 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17084 	case $wlarc in
17085 	'')
17086 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17087 	*)
17088 	  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' ;;
17089 	esac ;;
17090      esac
17091      link_all_deplibs_GCJ=yes
17092      ;;
17093
17094    sunos4*)
17095      if test "x$host_vendor" = xsequent; then
17096	# Use $CC to link under sequent, because it throws in some extra .o
17097	# files that make .init and .fini sections work.
17098	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17099      else
17100	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17101      fi
17102      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17103      hardcode_direct_GCJ=yes
17104      hardcode_minus_L_GCJ=yes
17105      hardcode_shlibpath_var_GCJ=no
17106      ;;
17107
17108    sysv4)
17109      case $host_vendor in
17110	sni)
17111	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17112	  hardcode_direct_GCJ=yes # is this really true???
17113	;;
17114	siemens)
17115	  ## LD is ld it makes a PLAMLIB
17116	  ## CC just makes a GrossModule.
17117	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17118	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17119	  hardcode_direct_GCJ=no
17120        ;;
17121	motorola)
17122	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17123	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17124	;;
17125      esac
17126      runpath_var='LD_RUN_PATH'
17127      hardcode_shlibpath_var_GCJ=no
17128      ;;
17129
17130    sysv4.3*)
17131      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17132      hardcode_shlibpath_var_GCJ=no
17133      export_dynamic_flag_spec_GCJ='-Bexport'
17134      ;;
17135
17136    sysv4*MP*)
17137      if test -d /usr/nec; then
17138	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17139	hardcode_shlibpath_var_GCJ=no
17140	runpath_var=LD_RUN_PATH
17141	hardcode_runpath_var=yes
17142	ld_shlibs_GCJ=yes
17143      fi
17144      ;;
17145
17146    sysv4.2uw2*)
17147      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17148      hardcode_direct_GCJ=yes
17149      hardcode_minus_L_GCJ=no
17150      hardcode_shlibpath_var_GCJ=no
17151      hardcode_runpath_var=yes
17152      runpath_var=LD_RUN_PATH
17153      ;;
17154
17155   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17156      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17157      if test "$GCC" = yes; then
17158	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17159      else
17160	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17161      fi
17162      runpath_var='LD_RUN_PATH'
17163      hardcode_shlibpath_var_GCJ=no
17164      ;;
17165
17166    sysv5*)
17167      no_undefined_flag_GCJ=' -z text'
17168      # $CC -shared without GNU ld will not create a library from C++
17169      # object files and a static libstdc++, better avoid it by now
17170      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17171      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17172  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17173      hardcode_libdir_flag_spec_GCJ=
17174      hardcode_shlibpath_var_GCJ=no
17175      runpath_var='LD_RUN_PATH'
17176      ;;
17177
17178    uts4*)
17179      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17180      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17181      hardcode_shlibpath_var_GCJ=no
17182      ;;
17183
17184    *)
17185      ld_shlibs_GCJ=no
17186      ;;
17187    esac
17188  fi
17189
17190echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17191echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17192test "$ld_shlibs_GCJ" = no && can_build_shared=no
17193
17194variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17195if test "$GCC" = yes; then
17196  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17197fi
17198
17199#
17200# Do we need to explicitly link libc?
17201#
17202case "x$archive_cmds_need_lc_GCJ" in
17203x|xyes)
17204  # Assume -lc should be added
17205  archive_cmds_need_lc_GCJ=yes
17206
17207  if test "$enable_shared" = yes && test "$GCC" = yes; then
17208    case $archive_cmds_GCJ in
17209    *'~'*)
17210      # FIXME: we may have to deal with multi-command sequences.
17211      ;;
17212    '$CC '*)
17213      # Test whether the compiler implicitly links with -lc since on some
17214      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17215      # to ld, don't add -lc before -lgcc.
17216      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17217echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17218      $rm conftest*
17219      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17220
17221      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17222  (eval $ac_compile) 2>&5
17223  ac_status=$?
17224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225  (exit $ac_status); } 2>conftest.err; then
17226        soname=conftest
17227        lib=conftest
17228        libobjs=conftest.$ac_objext
17229        deplibs=
17230        wl=$lt_prog_compiler_wl_GCJ
17231        compiler_flags=-v
17232        linker_flags=-v
17233        verstring=
17234        output_objdir=.
17235        libname=conftest
17236        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17237        allow_undefined_flag_GCJ=
17238        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17239  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17240  ac_status=$?
17241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242  (exit $ac_status); }
17243        then
17244	  archive_cmds_need_lc_GCJ=no
17245        else
17246	  archive_cmds_need_lc_GCJ=yes
17247        fi
17248        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17249      else
17250        cat conftest.err 1>&5
17251      fi
17252      $rm conftest*
17253      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17254echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17255      ;;
17256    esac
17257  fi
17258  ;;
17259esac
17260
17261echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17262echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17263library_names_spec=
17264libname_spec='lib$name'
17265soname_spec=
17266shrext_cmds=".so"
17267postinstall_cmds=
17268postuninstall_cmds=
17269finish_cmds=
17270finish_eval=
17271shlibpath_var=
17272shlibpath_overrides_runpath=unknown
17273version_type=none
17274dynamic_linker="$host_os ld.so"
17275sys_lib_dlsearch_path_spec="/lib /usr/lib"
17276if test "$GCC" = yes; then
17277  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17278  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17279    # if the path contains ";" then we assume it to be the separator
17280    # otherwise default to the standard path separator (i.e. ":") - it is
17281    # assumed that no part of a normal pathname contains ";" but that should
17282    # okay in the real world where ";" in dirpaths is itself problematic.
17283    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17284  else
17285    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17286  fi
17287else
17288  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17289fi
17290need_lib_prefix=unknown
17291hardcode_into_libs=no
17292
17293# when you set need_version to no, make sure it does not cause -set_version
17294# flags to be left without arguments
17295need_version=unknown
17296
17297case $host_os in
17298aix3*)
17299  version_type=linux
17300  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17301  shlibpath_var=LIBPATH
17302
17303  # AIX 3 has no versioning support, so we append a major version to the name.
17304  soname_spec='${libname}${release}${shared_ext}$major'
17305  ;;
17306
17307aix4* | aix5*)
17308  version_type=linux
17309  need_lib_prefix=no
17310  need_version=no
17311  hardcode_into_libs=yes
17312  if test "$host_cpu" = ia64; then
17313    # AIX 5 supports IA64
17314    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17315    shlibpath_var=LD_LIBRARY_PATH
17316  else
17317    # With GCC up to 2.95.x, collect2 would create an import file
17318    # for dependence libraries.  The import file would start with
17319    # the line `#! .'.  This would cause the generated library to
17320    # depend on `.', always an invalid library.  This was fixed in
17321    # development snapshots of GCC prior to 3.0.
17322    case $host_os in
17323      aix4 | aix4.[01] | aix4.[01].*)
17324      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17325	   echo ' yes '
17326	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17327	:
17328      else
17329	can_build_shared=no
17330      fi
17331      ;;
17332    esac
17333    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17334    # soname into executable. Probably we can add versioning support to
17335    # collect2, so additional links can be useful in future.
17336    if test "$aix_use_runtimelinking" = yes; then
17337      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17338      # instead of lib<name>.a to let people know that these are not
17339      # typical AIX shared libraries.
17340      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341    else
17342      # We preserve .a as extension for shared libraries through AIX4.2
17343      # and later when we are not doing run time linking.
17344      library_names_spec='${libname}${release}.a $libname.a'
17345      soname_spec='${libname}${release}${shared_ext}$major'
17346    fi
17347    shlibpath_var=LIBPATH
17348  fi
17349  ;;
17350
17351amigaos*)
17352  library_names_spec='$libname.ixlibrary $libname.a'
17353  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17354  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'
17355  ;;
17356
17357beos*)
17358  library_names_spec='${libname}${shared_ext}'
17359  dynamic_linker="$host_os ld.so"
17360  shlibpath_var=LIBRARY_PATH
17361  ;;
17362
17363bsdi[45]*)
17364  version_type=linux
17365  need_version=no
17366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17367  soname_spec='${libname}${release}${shared_ext}$major'
17368  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17369  shlibpath_var=LD_LIBRARY_PATH
17370  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17371  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17372  # the default ld.so.conf also contains /usr/contrib/lib and
17373  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17374  # libtool to hard-code these into programs
17375  ;;
17376
17377cygwin* | mingw* | pw32*)
17378  version_type=windows
17379  shrext_cmds=".dll"
17380  need_version=no
17381  need_lib_prefix=no
17382
17383  case $GCC,$host_os in
17384  yes,cygwin* | yes,mingw* | yes,pw32*)
17385    library_names_spec='$libname.dll.a'
17386    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17387    postinstall_cmds='base_file=`basename \${file}`~
17388      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17389      dldir=$destdir/`dirname \$dlpath`~
17390      test -d \$dldir || mkdir -p \$dldir~
17391      $install_prog $dir/$dlname \$dldir/$dlname~
17392      chmod a+x \$dldir/$dlname'
17393    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17394      dlpath=$dir/\$dldll~
17395       $rm \$dlpath'
17396    shlibpath_overrides_runpath=yes
17397
17398    case $host_os in
17399    cygwin*)
17400      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17401      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17402      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17403      ;;
17404    mingw*)
17405      # MinGW DLLs use traditional 'lib' prefix
17406      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17407      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17408      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17409        # It is most probably a Windows format PATH printed by
17410        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17411        # path with ; separators, and with drive letters. We can handle the
17412        # drive letters (cygwin fileutils understands them), so leave them,
17413        # especially as we might pass files found there to a mingw objdump,
17414        # which wouldn't understand a cygwinified path. Ahh.
17415        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17416      else
17417        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17418      fi
17419      ;;
17420    pw32*)
17421      # pw32 DLLs use 'pw' prefix rather than 'lib'
17422      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17423      ;;
17424    esac
17425    ;;
17426
17427  *)
17428    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17429    ;;
17430  esac
17431  dynamic_linker='Win32 ld.exe'
17432  # FIXME: first we should search . and the directory the executable is in
17433  shlibpath_var=PATH
17434  ;;
17435
17436darwin* | rhapsody*)
17437  dynamic_linker="$host_os dyld"
17438  version_type=darwin
17439  need_lib_prefix=no
17440  need_version=no
17441  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17442  soname_spec='${libname}${release}${major}$shared_ext'
17443  shlibpath_overrides_runpath=yes
17444  shlibpath_var=DYLD_LIBRARY_PATH
17445  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17446  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17447  if test "$GCC" = yes; then
17448    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"`
17449  else
17450    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17451  fi
17452  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17453  ;;
17454
17455dgux*)
17456  version_type=linux
17457  need_lib_prefix=no
17458  need_version=no
17459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17460  soname_spec='${libname}${release}${shared_ext}$major'
17461  shlibpath_var=LD_LIBRARY_PATH
17462  ;;
17463
17464freebsd1*)
17465  dynamic_linker=no
17466  ;;
17467
17468kfreebsd*-gnu)
17469  version_type=linux
17470  need_lib_prefix=no
17471  need_version=no
17472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473  soname_spec='${libname}${release}${shared_ext}$major'
17474  shlibpath_var=LD_LIBRARY_PATH
17475  shlibpath_overrides_runpath=no
17476  hardcode_into_libs=yes
17477  dynamic_linker='GNU ld.so'
17478  ;;
17479
17480freebsd* | dragonfly*)
17481  # DragonFly does not have aout.  When/if they implement a new
17482  # versioning mechanism, adjust this.
17483  if test -x /usr/bin/objformat; then
17484    objformat=`/usr/bin/objformat`
17485  else
17486    case $host_os in
17487    freebsd[123]*) objformat=aout ;;
17488    *) objformat=elf ;;
17489    esac
17490  fi
17491  version_type=freebsd-$objformat
17492  case $version_type in
17493    freebsd-elf*)
17494      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17495      need_version=no
17496      need_lib_prefix=no
17497      ;;
17498    freebsd-*)
17499      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17500      need_version=yes
17501      ;;
17502  esac
17503  shlibpath_var=LD_LIBRARY_PATH
17504  case $host_os in
17505  freebsd2*)
17506    shlibpath_overrides_runpath=yes
17507    ;;
17508  freebsd3.[01]* | freebsdelf3.[01]*)
17509    shlibpath_overrides_runpath=yes
17510    hardcode_into_libs=yes
17511    ;;
17512  *) # from 3.2 on
17513    shlibpath_overrides_runpath=no
17514    hardcode_into_libs=yes
17515    ;;
17516  esac
17517  ;;
17518
17519gnu*)
17520  version_type=linux
17521  need_lib_prefix=no
17522  need_version=no
17523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17524  soname_spec='${libname}${release}${shared_ext}$major'
17525  shlibpath_var=LD_LIBRARY_PATH
17526  hardcode_into_libs=yes
17527  ;;
17528
17529hpux9* | hpux10* | hpux11*)
17530  # Give a soname corresponding to the major version so that dld.sl refuses to
17531  # link against other versions.
17532  version_type=sunos
17533  need_lib_prefix=no
17534  need_version=no
17535  case $host_cpu in
17536  ia64*)
17537    shrext_cmds='.so'
17538    hardcode_into_libs=yes
17539    dynamic_linker="$host_os dld.so"
17540    shlibpath_var=LD_LIBRARY_PATH
17541    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17542    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17543    soname_spec='${libname}${release}${shared_ext}$major'
17544    if test "X$HPUX_IA64_MODE" = X32; then
17545      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17546    else
17547      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17548    fi
17549    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17550    ;;
17551   hppa*64*)
17552     shrext_cmds='.sl'
17553     hardcode_into_libs=yes
17554     dynamic_linker="$host_os dld.sl"
17555     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558     soname_spec='${libname}${release}${shared_ext}$major'
17559     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17560     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17561     ;;
17562   *)
17563    shrext_cmds='.sl'
17564    dynamic_linker="$host_os dld.sl"
17565    shlibpath_var=SHLIB_PATH
17566    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17567    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568    soname_spec='${libname}${release}${shared_ext}$major'
17569    ;;
17570  esac
17571  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17572  postinstall_cmds='chmod 555 $lib'
17573  ;;
17574
17575irix5* | irix6* | nonstopux*)
17576  case $host_os in
17577    nonstopux*) version_type=nonstopux ;;
17578    *)
17579	if test "$lt_cv_prog_gnu_ld" = yes; then
17580		version_type=linux
17581	else
17582		version_type=irix
17583	fi ;;
17584  esac
17585  need_lib_prefix=no
17586  need_version=no
17587  soname_spec='${libname}${release}${shared_ext}$major'
17588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17589  case $host_os in
17590  irix5* | nonstopux*)
17591    libsuff= shlibsuff=
17592    ;;
17593  *)
17594    case $LD in # libtool.m4 will add one of these switches to LD
17595    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17596      libsuff= shlibsuff= libmagic=32-bit;;
17597    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17598      libsuff=32 shlibsuff=N32 libmagic=N32;;
17599    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17600      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17601    *) libsuff= shlibsuff= libmagic=never-match;;
17602    esac
17603    ;;
17604  esac
17605  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17606  shlibpath_overrides_runpath=no
17607  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17608  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17609  hardcode_into_libs=yes
17610  ;;
17611
17612# No shared lib support for Linux oldld, aout, or coff.
17613linux*oldld* | linux*aout* | linux*coff*)
17614  dynamic_linker=no
17615  ;;
17616
17617# This must be Linux ELF.
17618linux*)
17619  version_type=linux
17620  need_lib_prefix=no
17621  need_version=no
17622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17623  soname_spec='${libname}${release}${shared_ext}$major'
17624  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17625  shlibpath_var=LD_LIBRARY_PATH
17626  shlibpath_overrides_runpath=no
17627  # This implies no fast_install, which is unacceptable.
17628  # Some rework will be needed to allow for fast_install
17629  # before this can be enabled.
17630  hardcode_into_libs=yes
17631
17632  # Append ld.so.conf contents to the search path
17633  if test -f /etc/ld.so.conf; then
17634    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' ' '`
17635    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17636  fi
17637
17638  # We used to test for /lib/ld.so.1 and disable shared libraries on
17639  # powerpc, because MkLinux only supported shared libraries with the
17640  # GNU dynamic linker.  Since this was broken with cross compilers,
17641  # most powerpc-linux boxes support dynamic linking these days and
17642  # people can always --disable-shared, the test was removed, and we
17643  # assume the GNU/Linux dynamic linker is in use.
17644  dynamic_linker='GNU/Linux ld.so'
17645  ;;
17646
17647netbsdelf*-gnu)
17648  version_type=linux
17649  need_lib_prefix=no
17650  need_version=no
17651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17652  soname_spec='${libname}${release}${shared_ext}$major'
17653  shlibpath_var=LD_LIBRARY_PATH
17654  shlibpath_overrides_runpath=no
17655  hardcode_into_libs=yes
17656  dynamic_linker='NetBSD ld.elf_so'
17657  ;;
17658
17659knetbsd*-gnu)
17660  version_type=linux
17661  need_lib_prefix=no
17662  need_version=no
17663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17664  soname_spec='${libname}${release}${shared_ext}$major'
17665  shlibpath_var=LD_LIBRARY_PATH
17666  shlibpath_overrides_runpath=no
17667  hardcode_into_libs=yes
17668  dynamic_linker='GNU ld.so'
17669  ;;
17670
17671netbsd*)
17672  version_type=sunos
17673  need_lib_prefix=no
17674  need_version=no
17675  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17677    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17678    dynamic_linker='NetBSD (a.out) ld.so'
17679  else
17680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17681    soname_spec='${libname}${release}${shared_ext}$major'
17682    dynamic_linker='NetBSD ld.elf_so'
17683  fi
17684  shlibpath_var=LD_LIBRARY_PATH
17685  shlibpath_overrides_runpath=yes
17686  hardcode_into_libs=yes
17687  ;;
17688
17689newsos6)
17690  version_type=linux
17691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17692  shlibpath_var=LD_LIBRARY_PATH
17693  shlibpath_overrides_runpath=yes
17694  ;;
17695
17696nto-qnx*)
17697  version_type=linux
17698  need_lib_prefix=no
17699  need_version=no
17700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701  soname_spec='${libname}${release}${shared_ext}$major'
17702  shlibpath_var=LD_LIBRARY_PATH
17703  shlibpath_overrides_runpath=yes
17704  ;;
17705
17706openbsd*)
17707  version_type=sunos
17708  need_lib_prefix=no
17709  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17710  case $host_os in
17711    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17712    *)                         need_version=no  ;;
17713  esac
17714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17715  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17716  shlibpath_var=LD_LIBRARY_PATH
17717  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17718    case $host_os in
17719      openbsd2.[89] | openbsd2.[89].*)
17720	shlibpath_overrides_runpath=no
17721	;;
17722      *)
17723	shlibpath_overrides_runpath=yes
17724	;;
17725      esac
17726  else
17727    shlibpath_overrides_runpath=yes
17728  fi
17729  ;;
17730
17731os2*)
17732  libname_spec='$name'
17733  shrext_cmds=".dll"
17734  need_lib_prefix=no
17735  library_names_spec='$libname${shared_ext} $libname.a'
17736  dynamic_linker='OS/2 ld.exe'
17737  shlibpath_var=LIBPATH
17738  ;;
17739
17740osf3* | osf4* | osf5*)
17741  version_type=osf
17742  need_lib_prefix=no
17743  need_version=no
17744  soname_spec='${libname}${release}${shared_ext}$major'
17745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17746  shlibpath_var=LD_LIBRARY_PATH
17747  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17748  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17749  ;;
17750
17751sco3.2v5*)
17752  version_type=osf
17753  soname_spec='${libname}${release}${shared_ext}$major'
17754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17755  shlibpath_var=LD_LIBRARY_PATH
17756  ;;
17757
17758solaris*)
17759  version_type=linux
17760  need_lib_prefix=no
17761  need_version=no
17762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17763  soname_spec='${libname}${release}${shared_ext}$major'
17764  shlibpath_var=LD_LIBRARY_PATH
17765  shlibpath_overrides_runpath=yes
17766  hardcode_into_libs=yes
17767  # ldd complains unless libraries are executable
17768  postinstall_cmds='chmod +x $lib'
17769  ;;
17770
17771sunos4*)
17772  version_type=sunos
17773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17774  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17775  shlibpath_var=LD_LIBRARY_PATH
17776  shlibpath_overrides_runpath=yes
17777  if test "$with_gnu_ld" = yes; then
17778    need_lib_prefix=no
17779  fi
17780  need_version=yes
17781  ;;
17782
17783sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17784  version_type=linux
17785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17786  soname_spec='${libname}${release}${shared_ext}$major'
17787  shlibpath_var=LD_LIBRARY_PATH
17788  case $host_vendor in
17789    sni)
17790      shlibpath_overrides_runpath=no
17791      need_lib_prefix=no
17792      export_dynamic_flag_spec='${wl}-Blargedynsym'
17793      runpath_var=LD_RUN_PATH
17794      ;;
17795    siemens)
17796      need_lib_prefix=no
17797      ;;
17798    motorola)
17799      need_lib_prefix=no
17800      need_version=no
17801      shlibpath_overrides_runpath=no
17802      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17803      ;;
17804  esac
17805  ;;
17806
17807sysv4*MP*)
17808  if test -d /usr/nec ;then
17809    version_type=linux
17810    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17811    soname_spec='$libname${shared_ext}.$major'
17812    shlibpath_var=LD_LIBRARY_PATH
17813  fi
17814  ;;
17815
17816uts4*)
17817  version_type=linux
17818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819  soname_spec='${libname}${release}${shared_ext}$major'
17820  shlibpath_var=LD_LIBRARY_PATH
17821  ;;
17822
17823*)
17824  dynamic_linker=no
17825  ;;
17826esac
17827echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17828echo "${ECHO_T}$dynamic_linker" >&6
17829test "$dynamic_linker" = no && can_build_shared=no
17830
17831echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17832echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17833hardcode_action_GCJ=
17834if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17835   test -n "$runpath_var_GCJ" || \
17836   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17837
17838  # We can hardcode non-existant directories.
17839  if test "$hardcode_direct_GCJ" != no &&
17840     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17841     # have to relink, otherwise we might link with an installed library
17842     # when we should be linking with a yet-to-be-installed one
17843     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17844     test "$hardcode_minus_L_GCJ" != no; then
17845    # Linking always hardcodes the temporary library directory.
17846    hardcode_action_GCJ=relink
17847  else
17848    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17849    hardcode_action_GCJ=immediate
17850  fi
17851else
17852  # We cannot hardcode anything, or else we can only hardcode existing
17853  # directories.
17854  hardcode_action_GCJ=unsupported
17855fi
17856echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17857echo "${ECHO_T}$hardcode_action_GCJ" >&6
17858
17859if test "$hardcode_action_GCJ" = relink; then
17860  # Fast installation is not supported
17861  enable_fast_install=no
17862elif test "$shlibpath_overrides_runpath" = yes ||
17863     test "$enable_shared" = no; then
17864  # Fast installation is not necessary
17865  enable_fast_install=needless
17866fi
17867
17868striplib=
17869old_striplib=
17870echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17871echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17872if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17873  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17874  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17875  echo "$as_me:$LINENO: result: yes" >&5
17876echo "${ECHO_T}yes" >&6
17877else
17878# FIXME - insert some real tests, host_os isn't really good enough
17879  case $host_os in
17880   darwin*)
17881       if test -n "$STRIP" ; then
17882         striplib="$STRIP -x"
17883         echo "$as_me:$LINENO: result: yes" >&5
17884echo "${ECHO_T}yes" >&6
17885       else
17886  echo "$as_me:$LINENO: result: no" >&5
17887echo "${ECHO_T}no" >&6
17888fi
17889       ;;
17890   *)
17891  echo "$as_me:$LINENO: result: no" >&5
17892echo "${ECHO_T}no" >&6
17893    ;;
17894  esac
17895fi
17896
17897if test "x$enable_dlopen" != xyes; then
17898  enable_dlopen=unknown
17899  enable_dlopen_self=unknown
17900  enable_dlopen_self_static=unknown
17901else
17902  lt_cv_dlopen=no
17903  lt_cv_dlopen_libs=
17904
17905  case $host_os in
17906  beos*)
17907    lt_cv_dlopen="load_add_on"
17908    lt_cv_dlopen_libs=
17909    lt_cv_dlopen_self=yes
17910    ;;
17911
17912  mingw* | pw32*)
17913    lt_cv_dlopen="LoadLibrary"
17914    lt_cv_dlopen_libs=
17915   ;;
17916
17917  cygwin*)
17918    lt_cv_dlopen="dlopen"
17919    lt_cv_dlopen_libs=
17920   ;;
17921
17922  darwin*)
17923  # if libdl is installed we need to link against it
17924    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17925echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17926if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17927  echo $ECHO_N "(cached) $ECHO_C" >&6
17928else
17929  ac_check_lib_save_LIBS=$LIBS
17930LIBS="-ldl  $LIBS"
17931cat >conftest.$ac_ext <<_ACEOF
17932/* confdefs.h.  */
17933_ACEOF
17934cat confdefs.h >>conftest.$ac_ext
17935cat >>conftest.$ac_ext <<_ACEOF
17936/* end confdefs.h.  */
17937
17938/* Override any gcc2 internal prototype to avoid an error.  */
17939#ifdef __cplusplus
17940extern "C"
17941#endif
17942/* We use char because int might match the return type of a gcc2
17943   builtin and then its argument prototype would still apply.  */
17944char dlopen ();
17945int
17946main ()
17947{
17948dlopen ();
17949  ;
17950  return 0;
17951}
17952_ACEOF
17953rm -f conftest.$ac_objext conftest$ac_exeext
17954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17955  (eval $ac_link) 2>conftest.er1
17956  ac_status=$?
17957  grep -v '^ *+' conftest.er1 >conftest.err
17958  rm -f conftest.er1
17959  cat conftest.err >&5
17960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961  (exit $ac_status); } &&
17962	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964  (eval $ac_try) 2>&5
17965  ac_status=$?
17966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967  (exit $ac_status); }; } &&
17968	 { ac_try='test -s conftest$ac_exeext'
17969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970  (eval $ac_try) 2>&5
17971  ac_status=$?
17972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973  (exit $ac_status); }; }; then
17974  ac_cv_lib_dl_dlopen=yes
17975else
17976  echo "$as_me: failed program was:" >&5
17977sed 's/^/| /' conftest.$ac_ext >&5
17978
17979ac_cv_lib_dl_dlopen=no
17980fi
17981rm -f conftest.err conftest.$ac_objext \
17982      conftest$ac_exeext conftest.$ac_ext
17983LIBS=$ac_check_lib_save_LIBS
17984fi
17985echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17986echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17987if test $ac_cv_lib_dl_dlopen = yes; then
17988  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17989else
17990
17991    lt_cv_dlopen="dyld"
17992    lt_cv_dlopen_libs=
17993    lt_cv_dlopen_self=yes
17994
17995fi
17996
17997   ;;
17998
17999  *)
18000    echo "$as_me:$LINENO: checking for shl_load" >&5
18001echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18002if test "${ac_cv_func_shl_load+set}" = set; then
18003  echo $ECHO_N "(cached) $ECHO_C" >&6
18004else
18005  cat >conftest.$ac_ext <<_ACEOF
18006/* confdefs.h.  */
18007_ACEOF
18008cat confdefs.h >>conftest.$ac_ext
18009cat >>conftest.$ac_ext <<_ACEOF
18010/* end confdefs.h.  */
18011/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18012   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18013#define shl_load innocuous_shl_load
18014
18015/* System header to define __stub macros and hopefully few prototypes,
18016    which can conflict with char shl_load (); below.
18017    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18018    <limits.h> exists even on freestanding compilers.  */
18019
18020#ifdef __STDC__
18021# include <limits.h>
18022#else
18023# include <assert.h>
18024#endif
18025
18026#undef shl_load
18027
18028/* Override any gcc2 internal prototype to avoid an error.  */
18029#ifdef __cplusplus
18030extern "C"
18031{
18032#endif
18033/* We use char because int might match the return type of a gcc2
18034   builtin and then its argument prototype would still apply.  */
18035char shl_load ();
18036/* The GNU C library defines this for functions which it implements
18037    to always fail with ENOSYS.  Some functions are actually named
18038    something starting with __ and the normal name is an alias.  */
18039#if defined (__stub_shl_load) || defined (__stub___shl_load)
18040choke me
18041#else
18042char (*f) () = shl_load;
18043#endif
18044#ifdef __cplusplus
18045}
18046#endif
18047
18048int
18049main ()
18050{
18051return f != shl_load;
18052  ;
18053  return 0;
18054}
18055_ACEOF
18056rm -f conftest.$ac_objext conftest$ac_exeext
18057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18058  (eval $ac_link) 2>conftest.er1
18059  ac_status=$?
18060  grep -v '^ *+' conftest.er1 >conftest.err
18061  rm -f conftest.er1
18062  cat conftest.err >&5
18063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064  (exit $ac_status); } &&
18065	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067  (eval $ac_try) 2>&5
18068  ac_status=$?
18069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070  (exit $ac_status); }; } &&
18071	 { ac_try='test -s conftest$ac_exeext'
18072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073  (eval $ac_try) 2>&5
18074  ac_status=$?
18075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076  (exit $ac_status); }; }; then
18077  ac_cv_func_shl_load=yes
18078else
18079  echo "$as_me: failed program was:" >&5
18080sed 's/^/| /' conftest.$ac_ext >&5
18081
18082ac_cv_func_shl_load=no
18083fi
18084rm -f conftest.err conftest.$ac_objext \
18085      conftest$ac_exeext conftest.$ac_ext
18086fi
18087echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18088echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18089if test $ac_cv_func_shl_load = yes; then
18090  lt_cv_dlopen="shl_load"
18091else
18092  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18093echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18094if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18095  echo $ECHO_N "(cached) $ECHO_C" >&6
18096else
18097  ac_check_lib_save_LIBS=$LIBS
18098LIBS="-ldld  $LIBS"
18099cat >conftest.$ac_ext <<_ACEOF
18100/* confdefs.h.  */
18101_ACEOF
18102cat confdefs.h >>conftest.$ac_ext
18103cat >>conftest.$ac_ext <<_ACEOF
18104/* end confdefs.h.  */
18105
18106/* Override any gcc2 internal prototype to avoid an error.  */
18107#ifdef __cplusplus
18108extern "C"
18109#endif
18110/* We use char because int might match the return type of a gcc2
18111   builtin and then its argument prototype would still apply.  */
18112char shl_load ();
18113int
18114main ()
18115{
18116shl_load ();
18117  ;
18118  return 0;
18119}
18120_ACEOF
18121rm -f conftest.$ac_objext conftest$ac_exeext
18122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18123  (eval $ac_link) 2>conftest.er1
18124  ac_status=$?
18125  grep -v '^ *+' conftest.er1 >conftest.err
18126  rm -f conftest.er1
18127  cat conftest.err >&5
18128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129  (exit $ac_status); } &&
18130	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132  (eval $ac_try) 2>&5
18133  ac_status=$?
18134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135  (exit $ac_status); }; } &&
18136	 { ac_try='test -s conftest$ac_exeext'
18137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138  (eval $ac_try) 2>&5
18139  ac_status=$?
18140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141  (exit $ac_status); }; }; then
18142  ac_cv_lib_dld_shl_load=yes
18143else
18144  echo "$as_me: failed program was:" >&5
18145sed 's/^/| /' conftest.$ac_ext >&5
18146
18147ac_cv_lib_dld_shl_load=no
18148fi
18149rm -f conftest.err conftest.$ac_objext \
18150      conftest$ac_exeext conftest.$ac_ext
18151LIBS=$ac_check_lib_save_LIBS
18152fi
18153echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18154echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18155if test $ac_cv_lib_dld_shl_load = yes; then
18156  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18157else
18158  echo "$as_me:$LINENO: checking for dlopen" >&5
18159echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18160if test "${ac_cv_func_dlopen+set}" = set; then
18161  echo $ECHO_N "(cached) $ECHO_C" >&6
18162else
18163  cat >conftest.$ac_ext <<_ACEOF
18164/* confdefs.h.  */
18165_ACEOF
18166cat confdefs.h >>conftest.$ac_ext
18167cat >>conftest.$ac_ext <<_ACEOF
18168/* end confdefs.h.  */
18169/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18170   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18171#define dlopen innocuous_dlopen
18172
18173/* System header to define __stub macros and hopefully few prototypes,
18174    which can conflict with char dlopen (); below.
18175    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18176    <limits.h> exists even on freestanding compilers.  */
18177
18178#ifdef __STDC__
18179# include <limits.h>
18180#else
18181# include <assert.h>
18182#endif
18183
18184#undef dlopen
18185
18186/* Override any gcc2 internal prototype to avoid an error.  */
18187#ifdef __cplusplus
18188extern "C"
18189{
18190#endif
18191/* We use char because int might match the return type of a gcc2
18192   builtin and then its argument prototype would still apply.  */
18193char dlopen ();
18194/* The GNU C library defines this for functions which it implements
18195    to always fail with ENOSYS.  Some functions are actually named
18196    something starting with __ and the normal name is an alias.  */
18197#if defined (__stub_dlopen) || defined (__stub___dlopen)
18198choke me
18199#else
18200char (*f) () = dlopen;
18201#endif
18202#ifdef __cplusplus
18203}
18204#endif
18205
18206int
18207main ()
18208{
18209return f != dlopen;
18210  ;
18211  return 0;
18212}
18213_ACEOF
18214rm -f conftest.$ac_objext conftest$ac_exeext
18215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216  (eval $ac_link) 2>conftest.er1
18217  ac_status=$?
18218  grep -v '^ *+' conftest.er1 >conftest.err
18219  rm -f conftest.er1
18220  cat conftest.err >&5
18221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222  (exit $ac_status); } &&
18223	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225  (eval $ac_try) 2>&5
18226  ac_status=$?
18227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228  (exit $ac_status); }; } &&
18229	 { ac_try='test -s conftest$ac_exeext'
18230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231  (eval $ac_try) 2>&5
18232  ac_status=$?
18233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234  (exit $ac_status); }; }; then
18235  ac_cv_func_dlopen=yes
18236else
18237  echo "$as_me: failed program was:" >&5
18238sed 's/^/| /' conftest.$ac_ext >&5
18239
18240ac_cv_func_dlopen=no
18241fi
18242rm -f conftest.err conftest.$ac_objext \
18243      conftest$ac_exeext conftest.$ac_ext
18244fi
18245echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18246echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18247if test $ac_cv_func_dlopen = yes; then
18248  lt_cv_dlopen="dlopen"
18249else
18250  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18251echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18252if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18253  echo $ECHO_N "(cached) $ECHO_C" >&6
18254else
18255  ac_check_lib_save_LIBS=$LIBS
18256LIBS="-ldl  $LIBS"
18257cat >conftest.$ac_ext <<_ACEOF
18258/* confdefs.h.  */
18259_ACEOF
18260cat confdefs.h >>conftest.$ac_ext
18261cat >>conftest.$ac_ext <<_ACEOF
18262/* end confdefs.h.  */
18263
18264/* Override any gcc2 internal prototype to avoid an error.  */
18265#ifdef __cplusplus
18266extern "C"
18267#endif
18268/* We use char because int might match the return type of a gcc2
18269   builtin and then its argument prototype would still apply.  */
18270char dlopen ();
18271int
18272main ()
18273{
18274dlopen ();
18275  ;
18276  return 0;
18277}
18278_ACEOF
18279rm -f conftest.$ac_objext conftest$ac_exeext
18280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18281  (eval $ac_link) 2>conftest.er1
18282  ac_status=$?
18283  grep -v '^ *+' conftest.er1 >conftest.err
18284  rm -f conftest.er1
18285  cat conftest.err >&5
18286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287  (exit $ac_status); } &&
18288	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290  (eval $ac_try) 2>&5
18291  ac_status=$?
18292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293  (exit $ac_status); }; } &&
18294	 { ac_try='test -s conftest$ac_exeext'
18295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296  (eval $ac_try) 2>&5
18297  ac_status=$?
18298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299  (exit $ac_status); }; }; then
18300  ac_cv_lib_dl_dlopen=yes
18301else
18302  echo "$as_me: failed program was:" >&5
18303sed 's/^/| /' conftest.$ac_ext >&5
18304
18305ac_cv_lib_dl_dlopen=no
18306fi
18307rm -f conftest.err conftest.$ac_objext \
18308      conftest$ac_exeext conftest.$ac_ext
18309LIBS=$ac_check_lib_save_LIBS
18310fi
18311echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18312echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18313if test $ac_cv_lib_dl_dlopen = yes; then
18314  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18315else
18316  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18317echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18318if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18319  echo $ECHO_N "(cached) $ECHO_C" >&6
18320else
18321  ac_check_lib_save_LIBS=$LIBS
18322LIBS="-lsvld  $LIBS"
18323cat >conftest.$ac_ext <<_ACEOF
18324/* confdefs.h.  */
18325_ACEOF
18326cat confdefs.h >>conftest.$ac_ext
18327cat >>conftest.$ac_ext <<_ACEOF
18328/* end confdefs.h.  */
18329
18330/* Override any gcc2 internal prototype to avoid an error.  */
18331#ifdef __cplusplus
18332extern "C"
18333#endif
18334/* We use char because int might match the return type of a gcc2
18335   builtin and then its argument prototype would still apply.  */
18336char dlopen ();
18337int
18338main ()
18339{
18340dlopen ();
18341  ;
18342  return 0;
18343}
18344_ACEOF
18345rm -f conftest.$ac_objext conftest$ac_exeext
18346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18347  (eval $ac_link) 2>conftest.er1
18348  ac_status=$?
18349  grep -v '^ *+' conftest.er1 >conftest.err
18350  rm -f conftest.er1
18351  cat conftest.err >&5
18352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353  (exit $ac_status); } &&
18354	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356  (eval $ac_try) 2>&5
18357  ac_status=$?
18358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359  (exit $ac_status); }; } &&
18360	 { ac_try='test -s conftest$ac_exeext'
18361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362  (eval $ac_try) 2>&5
18363  ac_status=$?
18364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365  (exit $ac_status); }; }; then
18366  ac_cv_lib_svld_dlopen=yes
18367else
18368  echo "$as_me: failed program was:" >&5
18369sed 's/^/| /' conftest.$ac_ext >&5
18370
18371ac_cv_lib_svld_dlopen=no
18372fi
18373rm -f conftest.err conftest.$ac_objext \
18374      conftest$ac_exeext conftest.$ac_ext
18375LIBS=$ac_check_lib_save_LIBS
18376fi
18377echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18378echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18379if test $ac_cv_lib_svld_dlopen = yes; then
18380  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18381else
18382  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18383echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18384if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18385  echo $ECHO_N "(cached) $ECHO_C" >&6
18386else
18387  ac_check_lib_save_LIBS=$LIBS
18388LIBS="-ldld  $LIBS"
18389cat >conftest.$ac_ext <<_ACEOF
18390/* confdefs.h.  */
18391_ACEOF
18392cat confdefs.h >>conftest.$ac_ext
18393cat >>conftest.$ac_ext <<_ACEOF
18394/* end confdefs.h.  */
18395
18396/* Override any gcc2 internal prototype to avoid an error.  */
18397#ifdef __cplusplus
18398extern "C"
18399#endif
18400/* We use char because int might match the return type of a gcc2
18401   builtin and then its argument prototype would still apply.  */
18402char dld_link ();
18403int
18404main ()
18405{
18406dld_link ();
18407  ;
18408  return 0;
18409}
18410_ACEOF
18411rm -f conftest.$ac_objext conftest$ac_exeext
18412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18413  (eval $ac_link) 2>conftest.er1
18414  ac_status=$?
18415  grep -v '^ *+' conftest.er1 >conftest.err
18416  rm -f conftest.er1
18417  cat conftest.err >&5
18418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419  (exit $ac_status); } &&
18420	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422  (eval $ac_try) 2>&5
18423  ac_status=$?
18424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425  (exit $ac_status); }; } &&
18426	 { ac_try='test -s conftest$ac_exeext'
18427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428  (eval $ac_try) 2>&5
18429  ac_status=$?
18430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431  (exit $ac_status); }; }; then
18432  ac_cv_lib_dld_dld_link=yes
18433else
18434  echo "$as_me: failed program was:" >&5
18435sed 's/^/| /' conftest.$ac_ext >&5
18436
18437ac_cv_lib_dld_dld_link=no
18438fi
18439rm -f conftest.err conftest.$ac_objext \
18440      conftest$ac_exeext conftest.$ac_ext
18441LIBS=$ac_check_lib_save_LIBS
18442fi
18443echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18444echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18445if test $ac_cv_lib_dld_dld_link = yes; then
18446  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18447fi
18448
18449
18450fi
18451
18452
18453fi
18454
18455
18456fi
18457
18458
18459fi
18460
18461
18462fi
18463
18464    ;;
18465  esac
18466
18467  if test "x$lt_cv_dlopen" != xno; then
18468    enable_dlopen=yes
18469  else
18470    enable_dlopen=no
18471  fi
18472
18473  case $lt_cv_dlopen in
18474  dlopen)
18475    save_CPPFLAGS="$CPPFLAGS"
18476    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18477
18478    save_LDFLAGS="$LDFLAGS"
18479    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18480
18481    save_LIBS="$LIBS"
18482    LIBS="$lt_cv_dlopen_libs $LIBS"
18483
18484    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18485echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18486if test "${lt_cv_dlopen_self+set}" = set; then
18487  echo $ECHO_N "(cached) $ECHO_C" >&6
18488else
18489  	  if test "$cross_compiling" = yes; then :
18490  lt_cv_dlopen_self=cross
18491else
18492  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18493  lt_status=$lt_dlunknown
18494  cat > conftest.$ac_ext <<EOF
18495#line 18495 "configure"
18496#include "confdefs.h"
18497
18498#if HAVE_DLFCN_H
18499#include <dlfcn.h>
18500#endif
18501
18502#include <stdio.h>
18503
18504#ifdef RTLD_GLOBAL
18505#  define LT_DLGLOBAL		RTLD_GLOBAL
18506#else
18507#  ifdef DL_GLOBAL
18508#    define LT_DLGLOBAL		DL_GLOBAL
18509#  else
18510#    define LT_DLGLOBAL		0
18511#  endif
18512#endif
18513
18514/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18515   find out it does not work in some platform. */
18516#ifndef LT_DLLAZY_OR_NOW
18517#  ifdef RTLD_LAZY
18518#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18519#  else
18520#    ifdef DL_LAZY
18521#      define LT_DLLAZY_OR_NOW		DL_LAZY
18522#    else
18523#      ifdef RTLD_NOW
18524#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18525#      else
18526#        ifdef DL_NOW
18527#          define LT_DLLAZY_OR_NOW	DL_NOW
18528#        else
18529#          define LT_DLLAZY_OR_NOW	0
18530#        endif
18531#      endif
18532#    endif
18533#  endif
18534#endif
18535
18536#ifdef __cplusplus
18537extern "C" void exit (int);
18538#endif
18539
18540void fnord() { int i=42;}
18541int main ()
18542{
18543  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18544  int status = $lt_dlunknown;
18545
18546  if (self)
18547    {
18548      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18549      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18550      /* dlclose (self); */
18551    }
18552
18553    exit (status);
18554}
18555EOF
18556  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18557  (eval $ac_link) 2>&5
18558  ac_status=$?
18559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18561    (./conftest; exit; ) >&5 2>/dev/null
18562    lt_status=$?
18563    case x$lt_status in
18564      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18565      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18566      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18567    esac
18568  else :
18569    # compilation failed
18570    lt_cv_dlopen_self=no
18571  fi
18572fi
18573rm -fr conftest*
18574
18575
18576fi
18577echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18578echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18579
18580    if test "x$lt_cv_dlopen_self" = xyes; then
18581      LDFLAGS="$LDFLAGS $link_static_flag"
18582      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18583echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18584if test "${lt_cv_dlopen_self_static+set}" = set; then
18585  echo $ECHO_N "(cached) $ECHO_C" >&6
18586else
18587  	  if test "$cross_compiling" = yes; then :
18588  lt_cv_dlopen_self_static=cross
18589else
18590  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18591  lt_status=$lt_dlunknown
18592  cat > conftest.$ac_ext <<EOF
18593#line 18593 "configure"
18594#include "confdefs.h"
18595
18596#if HAVE_DLFCN_H
18597#include <dlfcn.h>
18598#endif
18599
18600#include <stdio.h>
18601
18602#ifdef RTLD_GLOBAL
18603#  define LT_DLGLOBAL		RTLD_GLOBAL
18604#else
18605#  ifdef DL_GLOBAL
18606#    define LT_DLGLOBAL		DL_GLOBAL
18607#  else
18608#    define LT_DLGLOBAL		0
18609#  endif
18610#endif
18611
18612/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18613   find out it does not work in some platform. */
18614#ifndef LT_DLLAZY_OR_NOW
18615#  ifdef RTLD_LAZY
18616#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18617#  else
18618#    ifdef DL_LAZY
18619#      define LT_DLLAZY_OR_NOW		DL_LAZY
18620#    else
18621#      ifdef RTLD_NOW
18622#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18623#      else
18624#        ifdef DL_NOW
18625#          define LT_DLLAZY_OR_NOW	DL_NOW
18626#        else
18627#          define LT_DLLAZY_OR_NOW	0
18628#        endif
18629#      endif
18630#    endif
18631#  endif
18632#endif
18633
18634#ifdef __cplusplus
18635extern "C" void exit (int);
18636#endif
18637
18638void fnord() { int i=42;}
18639int main ()
18640{
18641  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18642  int status = $lt_dlunknown;
18643
18644  if (self)
18645    {
18646      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18647      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18648      /* dlclose (self); */
18649    }
18650
18651    exit (status);
18652}
18653EOF
18654  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18655  (eval $ac_link) 2>&5
18656  ac_status=$?
18657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18659    (./conftest; exit; ) >&5 2>/dev/null
18660    lt_status=$?
18661    case x$lt_status in
18662      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18663      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18664      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18665    esac
18666  else :
18667    # compilation failed
18668    lt_cv_dlopen_self_static=no
18669  fi
18670fi
18671rm -fr conftest*
18672
18673
18674fi
18675echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18676echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18677    fi
18678
18679    CPPFLAGS="$save_CPPFLAGS"
18680    LDFLAGS="$save_LDFLAGS"
18681    LIBS="$save_LIBS"
18682    ;;
18683  esac
18684
18685  case $lt_cv_dlopen_self in
18686  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18687  *) enable_dlopen_self=unknown ;;
18688  esac
18689
18690  case $lt_cv_dlopen_self_static in
18691  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18692  *) enable_dlopen_self_static=unknown ;;
18693  esac
18694fi
18695
18696
18697# The else clause should only fire when bootstrapping the
18698# libtool distribution, otherwise you forgot to ship ltmain.sh
18699# with your package, and you will get complaints that there are
18700# no rules to generate ltmain.sh.
18701if test -f "$ltmain"; then
18702  # See if we are running on zsh, and set the options which allow our commands through
18703  # without removal of \ escapes.
18704  if test -n "${ZSH_VERSION+set}" ; then
18705    setopt NO_GLOB_SUBST
18706  fi
18707  # Now quote all the things that may contain metacharacters while being
18708  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18709  # variables and quote the copies for generation of the libtool script.
18710  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18711    SED SHELL STRIP \
18712    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18713    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18714    deplibs_check_method reload_flag reload_cmds need_locks \
18715    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18716    lt_cv_sys_global_symbol_to_c_name_address \
18717    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18718    old_postinstall_cmds old_postuninstall_cmds \
18719    compiler_GCJ \
18720    CC_GCJ \
18721    LD_GCJ \
18722    lt_prog_compiler_wl_GCJ \
18723    lt_prog_compiler_pic_GCJ \
18724    lt_prog_compiler_static_GCJ \
18725    lt_prog_compiler_no_builtin_flag_GCJ \
18726    export_dynamic_flag_spec_GCJ \
18727    thread_safe_flag_spec_GCJ \
18728    whole_archive_flag_spec_GCJ \
18729    enable_shared_with_static_runtimes_GCJ \
18730    old_archive_cmds_GCJ \
18731    old_archive_from_new_cmds_GCJ \
18732    predep_objects_GCJ \
18733    postdep_objects_GCJ \
18734    predeps_GCJ \
18735    postdeps_GCJ \
18736    compiler_lib_search_path_GCJ \
18737    archive_cmds_GCJ \
18738    archive_expsym_cmds_GCJ \
18739    postinstall_cmds_GCJ \
18740    postuninstall_cmds_GCJ \
18741    old_archive_from_expsyms_cmds_GCJ \
18742    allow_undefined_flag_GCJ \
18743    no_undefined_flag_GCJ \
18744    export_symbols_cmds_GCJ \
18745    hardcode_libdir_flag_spec_GCJ \
18746    hardcode_libdir_flag_spec_ld_GCJ \
18747    hardcode_libdir_separator_GCJ \
18748    hardcode_automatic_GCJ \
18749    module_cmds_GCJ \
18750    module_expsym_cmds_GCJ \
18751    lt_cv_prog_compiler_c_o_GCJ \
18752    exclude_expsyms_GCJ \
18753    include_expsyms_GCJ; do
18754
18755    case $var in
18756    old_archive_cmds_GCJ | \
18757    old_archive_from_new_cmds_GCJ | \
18758    archive_cmds_GCJ | \
18759    archive_expsym_cmds_GCJ | \
18760    module_cmds_GCJ | \
18761    module_expsym_cmds_GCJ | \
18762    old_archive_from_expsyms_cmds_GCJ | \
18763    export_symbols_cmds_GCJ | \
18764    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18765    postinstall_cmds | postuninstall_cmds | \
18766    old_postinstall_cmds | old_postuninstall_cmds | \
18767    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18768      # Double-quote double-evaled strings.
18769      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18770      ;;
18771    *)
18772      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18773      ;;
18774    esac
18775  done
18776
18777  case $lt_echo in
18778  *'\$0 --fallback-echo"')
18779    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18780    ;;
18781  esac
18782
18783cfgfile="$ofile"
18784
18785  cat <<__EOF__ >> "$cfgfile"
18786# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18787
18788# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18789
18790# Shell to use when invoking shell scripts.
18791SHELL=$lt_SHELL
18792
18793# Whether or not to build shared libraries.
18794build_libtool_libs=$enable_shared
18795
18796# Whether or not to build static libraries.
18797build_old_libs=$enable_static
18798
18799# Whether or not to add -lc for building shared libraries.
18800build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18801
18802# Whether or not to disallow shared libs when runtime libs are static
18803allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18804
18805# Whether or not to optimize for fast installation.
18806fast_install=$enable_fast_install
18807
18808# The host system.
18809host_alias=$host_alias
18810host=$host
18811host_os=$host_os
18812
18813# The build system.
18814build_alias=$build_alias
18815build=$build
18816build_os=$build_os
18817
18818# An echo program that does not interpret backslashes.
18819echo=$lt_echo
18820
18821# The archiver.
18822AR=$lt_AR
18823AR_FLAGS=$lt_AR_FLAGS
18824
18825# A C compiler.
18826LTCC=$lt_LTCC
18827
18828# A language-specific compiler.
18829CC=$lt_compiler_GCJ
18830
18831# Is the compiler the GNU C compiler?
18832with_gcc=$GCC_GCJ
18833
18834# An ERE matcher.
18835EGREP=$lt_EGREP
18836
18837# The linker used to build libraries.
18838LD=$lt_LD_GCJ
18839
18840# Whether we need hard or soft links.
18841LN_S=$lt_LN_S
18842
18843# A BSD-compatible nm program.
18844NM=$lt_NM
18845
18846# A symbol stripping program
18847STRIP=$lt_STRIP
18848
18849# Used to examine libraries when file_magic_cmd begins "file"
18850MAGIC_CMD=$MAGIC_CMD
18851
18852# Used on cygwin: DLL creation program.
18853DLLTOOL="$DLLTOOL"
18854
18855# Used on cygwin: object dumper.
18856OBJDUMP="$OBJDUMP"
18857
18858# Used on cygwin: assembler.
18859AS="$AS"
18860
18861# The name of the directory that contains temporary libtool files.
18862objdir=$objdir
18863
18864# How to create reloadable object files.
18865reload_flag=$lt_reload_flag
18866reload_cmds=$lt_reload_cmds
18867
18868# How to pass a linker flag through the compiler.
18869wl=$lt_lt_prog_compiler_wl_GCJ
18870
18871# Object file suffix (normally "o").
18872objext="$ac_objext"
18873
18874# Old archive suffix (normally "a").
18875libext="$libext"
18876
18877# Shared library suffix (normally ".so").
18878shrext_cmds='$shrext_cmds'
18879
18880# Executable file suffix (normally "").
18881exeext="$exeext"
18882
18883# Additional compiler flags for building library objects.
18884pic_flag=$lt_lt_prog_compiler_pic_GCJ
18885pic_mode=$pic_mode
18886
18887# What is the maximum length of a command?
18888max_cmd_len=$lt_cv_sys_max_cmd_len
18889
18890# Does compiler simultaneously support -c and -o options?
18891compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18892
18893# Must we lock files when doing compilation?
18894need_locks=$lt_need_locks
18895
18896# Do we need the lib prefix for modules?
18897need_lib_prefix=$need_lib_prefix
18898
18899# Do we need a version for libraries?
18900need_version=$need_version
18901
18902# Whether dlopen is supported.
18903dlopen_support=$enable_dlopen
18904
18905# Whether dlopen of programs is supported.
18906dlopen_self=$enable_dlopen_self
18907
18908# Whether dlopen of statically linked programs is supported.
18909dlopen_self_static=$enable_dlopen_self_static
18910
18911# Compiler flag to prevent dynamic linking.
18912link_static_flag=$lt_lt_prog_compiler_static_GCJ
18913
18914# Compiler flag to turn off builtin functions.
18915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18916
18917# Compiler flag to allow reflexive dlopens.
18918export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18919
18920# Compiler flag to generate shared objects directly from archives.
18921whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18922
18923# Compiler flag to generate thread-safe objects.
18924thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18925
18926# Library versioning type.
18927version_type=$version_type
18928
18929# Format of library name prefix.
18930libname_spec=$lt_libname_spec
18931
18932# List of archive names.  First name is the real one, the rest are links.
18933# The last name is the one that the linker finds with -lNAME.
18934library_names_spec=$lt_library_names_spec
18935
18936# The coded name of the library, if different from the real name.
18937soname_spec=$lt_soname_spec
18938
18939# Commands used to build and install an old-style archive.
18940RANLIB=$lt_RANLIB
18941old_archive_cmds=$lt_old_archive_cmds_GCJ
18942old_postinstall_cmds=$lt_old_postinstall_cmds
18943old_postuninstall_cmds=$lt_old_postuninstall_cmds
18944
18945# Create an old-style archive from a shared archive.
18946old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18947
18948# Create a temporary old-style archive to link instead of a shared archive.
18949old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18950
18951# Commands used to build and install a shared archive.
18952archive_cmds=$lt_archive_cmds_GCJ
18953archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18954postinstall_cmds=$lt_postinstall_cmds
18955postuninstall_cmds=$lt_postuninstall_cmds
18956
18957# Commands used to build a loadable module (assumed same as above if empty)
18958module_cmds=$lt_module_cmds_GCJ
18959module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18960
18961# Commands to strip libraries.
18962old_striplib=$lt_old_striplib
18963striplib=$lt_striplib
18964
18965# Dependencies to place before the objects being linked to create a
18966# shared library.
18967predep_objects=$lt_predep_objects_GCJ
18968
18969# Dependencies to place after the objects being linked to create a
18970# shared library.
18971postdep_objects=$lt_postdep_objects_GCJ
18972
18973# Dependencies to place before the objects being linked to create a
18974# shared library.
18975predeps=$lt_predeps_GCJ
18976
18977# Dependencies to place after the objects being linked to create a
18978# shared library.
18979postdeps=$lt_postdeps_GCJ
18980
18981# The library search path used internally by the compiler when linking
18982# a shared library.
18983compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18984
18985# Method to check whether dependent libraries are shared objects.
18986deplibs_check_method=$lt_deplibs_check_method
18987
18988# Command to use when deplibs_check_method == file_magic.
18989file_magic_cmd=$lt_file_magic_cmd
18990
18991# Flag that allows shared libraries with undefined symbols to be built.
18992allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18993
18994# Flag that forces no undefined symbols.
18995no_undefined_flag=$lt_no_undefined_flag_GCJ
18996
18997# Commands used to finish a libtool library installation in a directory.
18998finish_cmds=$lt_finish_cmds
18999
19000# Same as above, but a single script fragment to be evaled but not shown.
19001finish_eval=$lt_finish_eval
19002
19003# Take the output of nm and produce a listing of raw symbols and C names.
19004global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19005
19006# Transform the output of nm in a proper C declaration
19007global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19008
19009# Transform the output of nm in a C name address pair
19010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19011
19012# This is the shared library runtime path variable.
19013runpath_var=$runpath_var
19014
19015# This is the shared library path variable.
19016shlibpath_var=$shlibpath_var
19017
19018# Is shlibpath searched before the hard-coded library search path?
19019shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19020
19021# How to hardcode a shared library path into an executable.
19022hardcode_action=$hardcode_action_GCJ
19023
19024# Whether we should hardcode library paths into libraries.
19025hardcode_into_libs=$hardcode_into_libs
19026
19027# Flag to hardcode \$libdir into a binary during linking.
19028# This must work even if \$libdir does not exist.
19029hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19030
19031# If ld is used when linking, flag to hardcode \$libdir into
19032# a binary during linking. This must work even if \$libdir does
19033# not exist.
19034hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19035
19036# Whether we need a single -rpath flag with a separated argument.
19037hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19038
19039# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19040# resulting binary.
19041hardcode_direct=$hardcode_direct_GCJ
19042
19043# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19044# resulting binary.
19045hardcode_minus_L=$hardcode_minus_L_GCJ
19046
19047# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19048# the resulting binary.
19049hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19050
19051# Set to yes if building a shared library automatically hardcodes DIR into the library
19052# and all subsequent libraries and executables linked against it.
19053hardcode_automatic=$hardcode_automatic_GCJ
19054
19055# Variables whose values should be saved in libtool wrapper scripts and
19056# restored at relink time.
19057variables_saved_for_relink="$variables_saved_for_relink"
19058
19059# Whether libtool must link a program against all its dependency libraries.
19060link_all_deplibs=$link_all_deplibs_GCJ
19061
19062# Compile-time system search path for libraries
19063sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19064
19065# Run-time system search path for libraries
19066sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19067
19068# Fix the shell variable \$srcfile for the compiler.
19069fix_srcfile_path="$fix_srcfile_path_GCJ"
19070
19071# Set to yes if exported symbols are required.
19072always_export_symbols=$always_export_symbols_GCJ
19073
19074# The commands to list exported symbols.
19075export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19076
19077# The commands to extract the exported symbol list from a shared archive.
19078extract_expsyms_cmds=$lt_extract_expsyms_cmds
19079
19080# Symbols that should not be listed in the preloaded symbols.
19081exclude_expsyms=$lt_exclude_expsyms_GCJ
19082
19083# Symbols that must always be exported.
19084include_expsyms=$lt_include_expsyms_GCJ
19085
19086# ### END LIBTOOL TAG CONFIG: $tagname
19087
19088__EOF__
19089
19090
19091else
19092  # If there is no Makefile yet, we rely on a make rule to execute
19093  # `config.status --recheck' to rerun these tests and create the
19094  # libtool script then.
19095  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19096  if test -f "$ltmain_in"; then
19097    test -f Makefile && make "$ltmain"
19098  fi
19099fi
19100
19101
19102ac_ext=c
19103ac_cpp='$CPP $CPPFLAGS'
19104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106ac_compiler_gnu=$ac_cv_c_compiler_gnu
19107
19108CC="$lt_save_CC"
19109
19110	else
19111	  tagname=""
19112	fi
19113	;;
19114
19115      RC)
19116
19117
19118
19119# Source file extension for RC test sources.
19120ac_ext=rc
19121
19122# Object file extension for compiled RC test sources.
19123objext=o
19124objext_RC=$objext
19125
19126# Code to be used in simple compile tests
19127lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19128
19129# Code to be used in simple link tests
19130lt_simple_link_test_code="$lt_simple_compile_test_code"
19131
19132# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19133
19134# If no C compiler was specified, use CC.
19135LTCC=${LTCC-"$CC"}
19136
19137# Allow CC to be a program name with arguments.
19138compiler=$CC
19139
19140
19141# save warnings/boilerplate of simple test code
19142ac_outfile=conftest.$ac_objext
19143printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19144eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19145_lt_compiler_boilerplate=`cat conftest.err`
19146$rm conftest*
19147
19148ac_outfile=conftest.$ac_objext
19149printf "$lt_simple_link_test_code" >conftest.$ac_ext
19150eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19151_lt_linker_boilerplate=`cat conftest.err`
19152$rm conftest*
19153
19154
19155# Allow CC to be a program name with arguments.
19156lt_save_CC="$CC"
19157CC=${RC-"windres"}
19158compiler=$CC
19159compiler_RC=$CC
19160for cc_temp in $compiler""; do
19161  case $cc_temp in
19162    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19163    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19164    \-*) ;;
19165    *) break;;
19166  esac
19167done
19168cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19169
19170lt_cv_prog_compiler_c_o_RC=yes
19171
19172# The else clause should only fire when bootstrapping the
19173# libtool distribution, otherwise you forgot to ship ltmain.sh
19174# with your package, and you will get complaints that there are
19175# no rules to generate ltmain.sh.
19176if test -f "$ltmain"; then
19177  # See if we are running on zsh, and set the options which allow our commands through
19178  # without removal of \ escapes.
19179  if test -n "${ZSH_VERSION+set}" ; then
19180    setopt NO_GLOB_SUBST
19181  fi
19182  # Now quote all the things that may contain metacharacters while being
19183  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19184  # variables and quote the copies for generation of the libtool script.
19185  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19186    SED SHELL STRIP \
19187    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19188    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19189    deplibs_check_method reload_flag reload_cmds need_locks \
19190    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19191    lt_cv_sys_global_symbol_to_c_name_address \
19192    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19193    old_postinstall_cmds old_postuninstall_cmds \
19194    compiler_RC \
19195    CC_RC \
19196    LD_RC \
19197    lt_prog_compiler_wl_RC \
19198    lt_prog_compiler_pic_RC \
19199    lt_prog_compiler_static_RC \
19200    lt_prog_compiler_no_builtin_flag_RC \
19201    export_dynamic_flag_spec_RC \
19202    thread_safe_flag_spec_RC \
19203    whole_archive_flag_spec_RC \
19204    enable_shared_with_static_runtimes_RC \
19205    old_archive_cmds_RC \
19206    old_archive_from_new_cmds_RC \
19207    predep_objects_RC \
19208    postdep_objects_RC \
19209    predeps_RC \
19210    postdeps_RC \
19211    compiler_lib_search_path_RC \
19212    archive_cmds_RC \
19213    archive_expsym_cmds_RC \
19214    postinstall_cmds_RC \
19215    postuninstall_cmds_RC \
19216    old_archive_from_expsyms_cmds_RC \
19217    allow_undefined_flag_RC \
19218    no_undefined_flag_RC \
19219    export_symbols_cmds_RC \
19220    hardcode_libdir_flag_spec_RC \
19221    hardcode_libdir_flag_spec_ld_RC \
19222    hardcode_libdir_separator_RC \
19223    hardcode_automatic_RC \
19224    module_cmds_RC \
19225    module_expsym_cmds_RC \
19226    lt_cv_prog_compiler_c_o_RC \
19227    exclude_expsyms_RC \
19228    include_expsyms_RC; do
19229
19230    case $var in
19231    old_archive_cmds_RC | \
19232    old_archive_from_new_cmds_RC | \
19233    archive_cmds_RC | \
19234    archive_expsym_cmds_RC | \
19235    module_cmds_RC | \
19236    module_expsym_cmds_RC | \
19237    old_archive_from_expsyms_cmds_RC | \
19238    export_symbols_cmds_RC | \
19239    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19240    postinstall_cmds | postuninstall_cmds | \
19241    old_postinstall_cmds | old_postuninstall_cmds | \
19242    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19243      # Double-quote double-evaled strings.
19244      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19245      ;;
19246    *)
19247      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19248      ;;
19249    esac
19250  done
19251
19252  case $lt_echo in
19253  *'\$0 --fallback-echo"')
19254    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19255    ;;
19256  esac
19257
19258cfgfile="$ofile"
19259
19260  cat <<__EOF__ >> "$cfgfile"
19261# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19262
19263# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19264
19265# Shell to use when invoking shell scripts.
19266SHELL=$lt_SHELL
19267
19268# Whether or not to build shared libraries.
19269build_libtool_libs=$enable_shared
19270
19271# Whether or not to build static libraries.
19272build_old_libs=$enable_static
19273
19274# Whether or not to add -lc for building shared libraries.
19275build_libtool_need_lc=$archive_cmds_need_lc_RC
19276
19277# Whether or not to disallow shared libs when runtime libs are static
19278allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19279
19280# Whether or not to optimize for fast installation.
19281fast_install=$enable_fast_install
19282
19283# The host system.
19284host_alias=$host_alias
19285host=$host
19286host_os=$host_os
19287
19288# The build system.
19289build_alias=$build_alias
19290build=$build
19291build_os=$build_os
19292
19293# An echo program that does not interpret backslashes.
19294echo=$lt_echo
19295
19296# The archiver.
19297AR=$lt_AR
19298AR_FLAGS=$lt_AR_FLAGS
19299
19300# A C compiler.
19301LTCC=$lt_LTCC
19302
19303# A language-specific compiler.
19304CC=$lt_compiler_RC
19305
19306# Is the compiler the GNU C compiler?
19307with_gcc=$GCC_RC
19308
19309# An ERE matcher.
19310EGREP=$lt_EGREP
19311
19312# The linker used to build libraries.
19313LD=$lt_LD_RC
19314
19315# Whether we need hard or soft links.
19316LN_S=$lt_LN_S
19317
19318# A BSD-compatible nm program.
19319NM=$lt_NM
19320
19321# A symbol stripping program
19322STRIP=$lt_STRIP
19323
19324# Used to examine libraries when file_magic_cmd begins "file"
19325MAGIC_CMD=$MAGIC_CMD
19326
19327# Used on cygwin: DLL creation program.
19328DLLTOOL="$DLLTOOL"
19329
19330# Used on cygwin: object dumper.
19331OBJDUMP="$OBJDUMP"
19332
19333# Used on cygwin: assembler.
19334AS="$AS"
19335
19336# The name of the directory that contains temporary libtool files.
19337objdir=$objdir
19338
19339# How to create reloadable object files.
19340reload_flag=$lt_reload_flag
19341reload_cmds=$lt_reload_cmds
19342
19343# How to pass a linker flag through the compiler.
19344wl=$lt_lt_prog_compiler_wl_RC
19345
19346# Object file suffix (normally "o").
19347objext="$ac_objext"
19348
19349# Old archive suffix (normally "a").
19350libext="$libext"
19351
19352# Shared library suffix (normally ".so").
19353shrext_cmds='$shrext_cmds'
19354
19355# Executable file suffix (normally "").
19356exeext="$exeext"
19357
19358# Additional compiler flags for building library objects.
19359pic_flag=$lt_lt_prog_compiler_pic_RC
19360pic_mode=$pic_mode
19361
19362# What is the maximum length of a command?
19363max_cmd_len=$lt_cv_sys_max_cmd_len
19364
19365# Does compiler simultaneously support -c and -o options?
19366compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19367
19368# Must we lock files when doing compilation?
19369need_locks=$lt_need_locks
19370
19371# Do we need the lib prefix for modules?
19372need_lib_prefix=$need_lib_prefix
19373
19374# Do we need a version for libraries?
19375need_version=$need_version
19376
19377# Whether dlopen is supported.
19378dlopen_support=$enable_dlopen
19379
19380# Whether dlopen of programs is supported.
19381dlopen_self=$enable_dlopen_self
19382
19383# Whether dlopen of statically linked programs is supported.
19384dlopen_self_static=$enable_dlopen_self_static
19385
19386# Compiler flag to prevent dynamic linking.
19387link_static_flag=$lt_lt_prog_compiler_static_RC
19388
19389# Compiler flag to turn off builtin functions.
19390no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19391
19392# Compiler flag to allow reflexive dlopens.
19393export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19394
19395# Compiler flag to generate shared objects directly from archives.
19396whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19397
19398# Compiler flag to generate thread-safe objects.
19399thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19400
19401# Library versioning type.
19402version_type=$version_type
19403
19404# Format of library name prefix.
19405libname_spec=$lt_libname_spec
19406
19407# List of archive names.  First name is the real one, the rest are links.
19408# The last name is the one that the linker finds with -lNAME.
19409library_names_spec=$lt_library_names_spec
19410
19411# The coded name of the library, if different from the real name.
19412soname_spec=$lt_soname_spec
19413
19414# Commands used to build and install an old-style archive.
19415RANLIB=$lt_RANLIB
19416old_archive_cmds=$lt_old_archive_cmds_RC
19417old_postinstall_cmds=$lt_old_postinstall_cmds
19418old_postuninstall_cmds=$lt_old_postuninstall_cmds
19419
19420# Create an old-style archive from a shared archive.
19421old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19422
19423# Create a temporary old-style archive to link instead of a shared archive.
19424old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19425
19426# Commands used to build and install a shared archive.
19427archive_cmds=$lt_archive_cmds_RC
19428archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19429postinstall_cmds=$lt_postinstall_cmds
19430postuninstall_cmds=$lt_postuninstall_cmds
19431
19432# Commands used to build a loadable module (assumed same as above if empty)
19433module_cmds=$lt_module_cmds_RC
19434module_expsym_cmds=$lt_module_expsym_cmds_RC
19435
19436# Commands to strip libraries.
19437old_striplib=$lt_old_striplib
19438striplib=$lt_striplib
19439
19440# Dependencies to place before the objects being linked to create a
19441# shared library.
19442predep_objects=$lt_predep_objects_RC
19443
19444# Dependencies to place after the objects being linked to create a
19445# shared library.
19446postdep_objects=$lt_postdep_objects_RC
19447
19448# Dependencies to place before the objects being linked to create a
19449# shared library.
19450predeps=$lt_predeps_RC
19451
19452# Dependencies to place after the objects being linked to create a
19453# shared library.
19454postdeps=$lt_postdeps_RC
19455
19456# The library search path used internally by the compiler when linking
19457# a shared library.
19458compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19459
19460# Method to check whether dependent libraries are shared objects.
19461deplibs_check_method=$lt_deplibs_check_method
19462
19463# Command to use when deplibs_check_method == file_magic.
19464file_magic_cmd=$lt_file_magic_cmd
19465
19466# Flag that allows shared libraries with undefined symbols to be built.
19467allow_undefined_flag=$lt_allow_undefined_flag_RC
19468
19469# Flag that forces no undefined symbols.
19470no_undefined_flag=$lt_no_undefined_flag_RC
19471
19472# Commands used to finish a libtool library installation in a directory.
19473finish_cmds=$lt_finish_cmds
19474
19475# Same as above, but a single script fragment to be evaled but not shown.
19476finish_eval=$lt_finish_eval
19477
19478# Take the output of nm and produce a listing of raw symbols and C names.
19479global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19480
19481# Transform the output of nm in a proper C declaration
19482global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19483
19484# Transform the output of nm in a C name address pair
19485global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19486
19487# This is the shared library runtime path variable.
19488runpath_var=$runpath_var
19489
19490# This is the shared library path variable.
19491shlibpath_var=$shlibpath_var
19492
19493# Is shlibpath searched before the hard-coded library search path?
19494shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19495
19496# How to hardcode a shared library path into an executable.
19497hardcode_action=$hardcode_action_RC
19498
19499# Whether we should hardcode library paths into libraries.
19500hardcode_into_libs=$hardcode_into_libs
19501
19502# Flag to hardcode \$libdir into a binary during linking.
19503# This must work even if \$libdir does not exist.
19504hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19505
19506# If ld is used when linking, flag to hardcode \$libdir into
19507# a binary during linking. This must work even if \$libdir does
19508# not exist.
19509hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19510
19511# Whether we need a single -rpath flag with a separated argument.
19512hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19513
19514# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19515# resulting binary.
19516hardcode_direct=$hardcode_direct_RC
19517
19518# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19519# resulting binary.
19520hardcode_minus_L=$hardcode_minus_L_RC
19521
19522# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19523# the resulting binary.
19524hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19525
19526# Set to yes if building a shared library automatically hardcodes DIR into the library
19527# and all subsequent libraries and executables linked against it.
19528hardcode_automatic=$hardcode_automatic_RC
19529
19530# Variables whose values should be saved in libtool wrapper scripts and
19531# restored at relink time.
19532variables_saved_for_relink="$variables_saved_for_relink"
19533
19534# Whether libtool must link a program against all its dependency libraries.
19535link_all_deplibs=$link_all_deplibs_RC
19536
19537# Compile-time system search path for libraries
19538sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19539
19540# Run-time system search path for libraries
19541sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19542
19543# Fix the shell variable \$srcfile for the compiler.
19544fix_srcfile_path="$fix_srcfile_path_RC"
19545
19546# Set to yes if exported symbols are required.
19547always_export_symbols=$always_export_symbols_RC
19548
19549# The commands to list exported symbols.
19550export_symbols_cmds=$lt_export_symbols_cmds_RC
19551
19552# The commands to extract the exported symbol list from a shared archive.
19553extract_expsyms_cmds=$lt_extract_expsyms_cmds
19554
19555# Symbols that should not be listed in the preloaded symbols.
19556exclude_expsyms=$lt_exclude_expsyms_RC
19557
19558# Symbols that must always be exported.
19559include_expsyms=$lt_include_expsyms_RC
19560
19561# ### END LIBTOOL TAG CONFIG: $tagname
19562
19563__EOF__
19564
19565
19566else
19567  # If there is no Makefile yet, we rely on a make rule to execute
19568  # `config.status --recheck' to rerun these tests and create the
19569  # libtool script then.
19570  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19571  if test -f "$ltmain_in"; then
19572    test -f Makefile && make "$ltmain"
19573  fi
19574fi
19575
19576
19577ac_ext=c
19578ac_cpp='$CPP $CPPFLAGS'
19579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19581ac_compiler_gnu=$ac_cv_c_compiler_gnu
19582
19583CC="$lt_save_CC"
19584
19585	;;
19586
19587      *)
19588	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19589echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19590   { (exit 1); exit 1; }; }
19591	;;
19592      esac
19593
19594      # Append the new tag name to the list of available tags.
19595      if test -n "$tagname" ; then
19596      available_tags="$available_tags $tagname"
19597    fi
19598    fi
19599  done
19600  IFS="$lt_save_ifs"
19601
19602  # Now substitute the updated list of available tags.
19603  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19604    mv "${ofile}T" "$ofile"
19605    chmod +x "$ofile"
19606  else
19607    rm -f "${ofile}T"
19608    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19609echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19610   { (exit 1); exit 1; }; }
19611  fi
19612fi
19613
19614
19615
19616# This can be used to rebuild libtool when needed
19617LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19618
19619# Always use our own libtool.
19620LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19621
19622# Prevent multiple expansion
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
19645echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
19646    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
19647if test "${enable_maintainer_mode+set}" = set; then
19648  enableval="$enable_maintainer_mode"
19649  USE_MAINTAINER_MODE=$enableval
19650else
19651  USE_MAINTAINER_MODE=no
19652fi;
19653  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
19654echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
19655
19656
19657if test $USE_MAINTAINER_MODE = yes; then
19658  MAINTAINER_MODE_TRUE=
19659  MAINTAINER_MODE_FALSE='#'
19660else
19661  MAINTAINER_MODE_TRUE='#'
19662  MAINTAINER_MODE_FALSE=
19663fi
19664
19665  MAINT=$MAINTAINER_MODE_TRUE
19666
19667
19668
19669ac_ext=c
19670ac_cpp='$CPP $CPPFLAGS'
19671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673ac_compiler_gnu=$ac_cv_c_compiler_gnu
19674if test -n "$ac_tool_prefix"; then
19675  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19676set dummy ${ac_tool_prefix}gcc; ac_word=$2
19677echo "$as_me:$LINENO: checking for $ac_word" >&5
19678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19679if test "${ac_cv_prog_CC+set}" = set; then
19680  echo $ECHO_N "(cached) $ECHO_C" >&6
19681else
19682  if test -n "$CC"; then
19683  ac_cv_prog_CC="$CC" # Let the user override the test.
19684else
19685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19686for as_dir in $PATH
19687do
19688  IFS=$as_save_IFS
19689  test -z "$as_dir" && as_dir=.
19690  for ac_exec_ext in '' $ac_executable_extensions; do
19691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19692    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19694    break 2
19695  fi
19696done
19697done
19698
19699fi
19700fi
19701CC=$ac_cv_prog_CC
19702if test -n "$CC"; then
19703  echo "$as_me:$LINENO: result: $CC" >&5
19704echo "${ECHO_T}$CC" >&6
19705else
19706  echo "$as_me:$LINENO: result: no" >&5
19707echo "${ECHO_T}no" >&6
19708fi
19709
19710fi
19711if test -z "$ac_cv_prog_CC"; then
19712  ac_ct_CC=$CC
19713  # Extract the first word of "gcc", so it can be a program name with args.
19714set dummy gcc; ac_word=$2
19715echo "$as_me:$LINENO: checking for $ac_word" >&5
19716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19717if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19718  echo $ECHO_N "(cached) $ECHO_C" >&6
19719else
19720  if test -n "$ac_ct_CC"; then
19721  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19722else
19723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19724for as_dir in $PATH
19725do
19726  IFS=$as_save_IFS
19727  test -z "$as_dir" && as_dir=.
19728  for ac_exec_ext in '' $ac_executable_extensions; do
19729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19730    ac_cv_prog_ac_ct_CC="gcc"
19731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19732    break 2
19733  fi
19734done
19735done
19736
19737fi
19738fi
19739ac_ct_CC=$ac_cv_prog_ac_ct_CC
19740if test -n "$ac_ct_CC"; then
19741  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19742echo "${ECHO_T}$ac_ct_CC" >&6
19743else
19744  echo "$as_me:$LINENO: result: no" >&5
19745echo "${ECHO_T}no" >&6
19746fi
19747
19748  CC=$ac_ct_CC
19749else
19750  CC="$ac_cv_prog_CC"
19751fi
19752
19753if test -z "$CC"; then
19754  if test -n "$ac_tool_prefix"; then
19755  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19756set dummy ${ac_tool_prefix}cc; ac_word=$2
19757echo "$as_me:$LINENO: checking for $ac_word" >&5
19758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19759if test "${ac_cv_prog_CC+set}" = set; then
19760  echo $ECHO_N "(cached) $ECHO_C" >&6
19761else
19762  if test -n "$CC"; then
19763  ac_cv_prog_CC="$CC" # Let the user override the test.
19764else
19765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19766for as_dir in $PATH
19767do
19768  IFS=$as_save_IFS
19769  test -z "$as_dir" && as_dir=.
19770  for ac_exec_ext in '' $ac_executable_extensions; do
19771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19772    ac_cv_prog_CC="${ac_tool_prefix}cc"
19773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19774    break 2
19775  fi
19776done
19777done
19778
19779fi
19780fi
19781CC=$ac_cv_prog_CC
19782if test -n "$CC"; then
19783  echo "$as_me:$LINENO: result: $CC" >&5
19784echo "${ECHO_T}$CC" >&6
19785else
19786  echo "$as_me:$LINENO: result: no" >&5
19787echo "${ECHO_T}no" >&6
19788fi
19789
19790fi
19791if test -z "$ac_cv_prog_CC"; then
19792  ac_ct_CC=$CC
19793  # Extract the first word of "cc", so it can be a program name with args.
19794set dummy cc; ac_word=$2
19795echo "$as_me:$LINENO: checking for $ac_word" >&5
19796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19798  echo $ECHO_N "(cached) $ECHO_C" >&6
19799else
19800  if test -n "$ac_ct_CC"; then
19801  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19802else
19803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19804for as_dir in $PATH
19805do
19806  IFS=$as_save_IFS
19807  test -z "$as_dir" && as_dir=.
19808  for ac_exec_ext in '' $ac_executable_extensions; do
19809  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19810    ac_cv_prog_ac_ct_CC="cc"
19811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19812    break 2
19813  fi
19814done
19815done
19816
19817fi
19818fi
19819ac_ct_CC=$ac_cv_prog_ac_ct_CC
19820if test -n "$ac_ct_CC"; then
19821  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19822echo "${ECHO_T}$ac_ct_CC" >&6
19823else
19824  echo "$as_me:$LINENO: result: no" >&5
19825echo "${ECHO_T}no" >&6
19826fi
19827
19828  CC=$ac_ct_CC
19829else
19830  CC="$ac_cv_prog_CC"
19831fi
19832
19833fi
19834if test -z "$CC"; then
19835  # Extract the first word of "cc", so it can be a program name with args.
19836set dummy cc; ac_word=$2
19837echo "$as_me:$LINENO: checking for $ac_word" >&5
19838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19839if test "${ac_cv_prog_CC+set}" = set; then
19840  echo $ECHO_N "(cached) $ECHO_C" >&6
19841else
19842  if test -n "$CC"; then
19843  ac_cv_prog_CC="$CC" # Let the user override the test.
19844else
19845  ac_prog_rejected=no
19846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19847for as_dir in $PATH
19848do
19849  IFS=$as_save_IFS
19850  test -z "$as_dir" && as_dir=.
19851  for ac_exec_ext in '' $ac_executable_extensions; do
19852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19853    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19854       ac_prog_rejected=yes
19855       continue
19856     fi
19857    ac_cv_prog_CC="cc"
19858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19859    break 2
19860  fi
19861done
19862done
19863
19864if test $ac_prog_rejected = yes; then
19865  # We found a bogon in the path, so make sure we never use it.
19866  set dummy $ac_cv_prog_CC
19867  shift
19868  if test $# != 0; then
19869    # We chose a different compiler from the bogus one.
19870    # However, it has the same basename, so the bogon will be chosen
19871    # first if we set CC to just the basename; use the full file name.
19872    shift
19873    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19874  fi
19875fi
19876fi
19877fi
19878CC=$ac_cv_prog_CC
19879if test -n "$CC"; then
19880  echo "$as_me:$LINENO: result: $CC" >&5
19881echo "${ECHO_T}$CC" >&6
19882else
19883  echo "$as_me:$LINENO: result: no" >&5
19884echo "${ECHO_T}no" >&6
19885fi
19886
19887fi
19888if test -z "$CC"; then
19889  if test -n "$ac_tool_prefix"; then
19890  for ac_prog in cl
19891  do
19892    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19893set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19894echo "$as_me:$LINENO: checking for $ac_word" >&5
19895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19896if test "${ac_cv_prog_CC+set}" = set; then
19897  echo $ECHO_N "(cached) $ECHO_C" >&6
19898else
19899  if test -n "$CC"; then
19900  ac_cv_prog_CC="$CC" # Let the user override the test.
19901else
19902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19903for as_dir in $PATH
19904do
19905  IFS=$as_save_IFS
19906  test -z "$as_dir" && as_dir=.
19907  for ac_exec_ext in '' $ac_executable_extensions; do
19908  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19909    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19911    break 2
19912  fi
19913done
19914done
19915
19916fi
19917fi
19918CC=$ac_cv_prog_CC
19919if test -n "$CC"; then
19920  echo "$as_me:$LINENO: result: $CC" >&5
19921echo "${ECHO_T}$CC" >&6
19922else
19923  echo "$as_me:$LINENO: result: no" >&5
19924echo "${ECHO_T}no" >&6
19925fi
19926
19927    test -n "$CC" && break
19928  done
19929fi
19930if test -z "$CC"; then
19931  ac_ct_CC=$CC
19932  for ac_prog in cl
19933do
19934  # Extract the first word of "$ac_prog", so it can be a program name with args.
19935set dummy $ac_prog; ac_word=$2
19936echo "$as_me:$LINENO: checking for $ac_word" >&5
19937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19938if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19939  echo $ECHO_N "(cached) $ECHO_C" >&6
19940else
19941  if test -n "$ac_ct_CC"; then
19942  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19943else
19944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19945for as_dir in $PATH
19946do
19947  IFS=$as_save_IFS
19948  test -z "$as_dir" && as_dir=.
19949  for ac_exec_ext in '' $ac_executable_extensions; do
19950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19951    ac_cv_prog_ac_ct_CC="$ac_prog"
19952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19953    break 2
19954  fi
19955done
19956done
19957
19958fi
19959fi
19960ac_ct_CC=$ac_cv_prog_ac_ct_CC
19961if test -n "$ac_ct_CC"; then
19962  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19963echo "${ECHO_T}$ac_ct_CC" >&6
19964else
19965  echo "$as_me:$LINENO: result: no" >&5
19966echo "${ECHO_T}no" >&6
19967fi
19968
19969  test -n "$ac_ct_CC" && break
19970done
19971
19972  CC=$ac_ct_CC
19973fi
19974
19975fi
19976
19977
19978test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19979See \`config.log' for more details." >&5
19980echo "$as_me: error: no acceptable C compiler found in \$PATH
19981See \`config.log' for more details." >&2;}
19982   { (exit 1); exit 1; }; }
19983
19984# Provide some information about the compiler.
19985echo "$as_me:$LINENO:" \
19986     "checking for C compiler version" >&5
19987ac_compiler=`set X $ac_compile; echo $2`
19988{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19989  (eval $ac_compiler --version </dev/null >&5) 2>&5
19990  ac_status=$?
19991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992  (exit $ac_status); }
19993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19994  (eval $ac_compiler -v </dev/null >&5) 2>&5
19995  ac_status=$?
19996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997  (exit $ac_status); }
19998{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19999  (eval $ac_compiler -V </dev/null >&5) 2>&5
20000  ac_status=$?
20001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002  (exit $ac_status); }
20003
20004echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20005echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
20006if test "${ac_cv_c_compiler_gnu+set}" = set; then
20007  echo $ECHO_N "(cached) $ECHO_C" >&6
20008else
20009  cat >conftest.$ac_ext <<_ACEOF
20010/* confdefs.h.  */
20011_ACEOF
20012cat confdefs.h >>conftest.$ac_ext
20013cat >>conftest.$ac_ext <<_ACEOF
20014/* end confdefs.h.  */
20015
20016int
20017main ()
20018{
20019#ifndef __GNUC__
20020       choke me
20021#endif
20022
20023  ;
20024  return 0;
20025}
20026_ACEOF
20027rm -f conftest.$ac_objext
20028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20029  (eval $ac_compile) 2>conftest.er1
20030  ac_status=$?
20031  grep -v '^ *+' conftest.er1 >conftest.err
20032  rm -f conftest.er1
20033  cat conftest.err >&5
20034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035  (exit $ac_status); } &&
20036	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038  (eval $ac_try) 2>&5
20039  ac_status=$?
20040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041  (exit $ac_status); }; } &&
20042	 { ac_try='test -s conftest.$ac_objext'
20043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044  (eval $ac_try) 2>&5
20045  ac_status=$?
20046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047  (exit $ac_status); }; }; then
20048  ac_compiler_gnu=yes
20049else
20050  echo "$as_me: failed program was:" >&5
20051sed 's/^/| /' conftest.$ac_ext >&5
20052
20053ac_compiler_gnu=no
20054fi
20055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20056ac_cv_c_compiler_gnu=$ac_compiler_gnu
20057
20058fi
20059echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20060echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
20061GCC=`test $ac_compiler_gnu = yes && echo yes`
20062ac_test_CFLAGS=${CFLAGS+set}
20063ac_save_CFLAGS=$CFLAGS
20064CFLAGS="-g"
20065echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20066echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
20067if test "${ac_cv_prog_cc_g+set}" = set; then
20068  echo $ECHO_N "(cached) $ECHO_C" >&6
20069else
20070  cat >conftest.$ac_ext <<_ACEOF
20071/* confdefs.h.  */
20072_ACEOF
20073cat confdefs.h >>conftest.$ac_ext
20074cat >>conftest.$ac_ext <<_ACEOF
20075/* end confdefs.h.  */
20076
20077int
20078main ()
20079{
20080
20081  ;
20082  return 0;
20083}
20084_ACEOF
20085rm -f conftest.$ac_objext
20086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20087  (eval $ac_compile) 2>conftest.er1
20088  ac_status=$?
20089  grep -v '^ *+' conftest.er1 >conftest.err
20090  rm -f conftest.er1
20091  cat conftest.err >&5
20092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093  (exit $ac_status); } &&
20094	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096  (eval $ac_try) 2>&5
20097  ac_status=$?
20098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099  (exit $ac_status); }; } &&
20100	 { ac_try='test -s conftest.$ac_objext'
20101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102  (eval $ac_try) 2>&5
20103  ac_status=$?
20104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105  (exit $ac_status); }; }; then
20106  ac_cv_prog_cc_g=yes
20107else
20108  echo "$as_me: failed program was:" >&5
20109sed 's/^/| /' conftest.$ac_ext >&5
20110
20111ac_cv_prog_cc_g=no
20112fi
20113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20114fi
20115echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20116echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
20117if test "$ac_test_CFLAGS" = set; then
20118  CFLAGS=$ac_save_CFLAGS
20119elif test $ac_cv_prog_cc_g = yes; then
20120  if test "$GCC" = yes; then
20121    CFLAGS="-g -O2"
20122  else
20123    CFLAGS="-g"
20124  fi
20125else
20126  if test "$GCC" = yes; then
20127    CFLAGS="-O2"
20128  else
20129    CFLAGS=
20130  fi
20131fi
20132echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
20133echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
20134if test "${ac_cv_prog_cc_stdc+set}" = set; then
20135  echo $ECHO_N "(cached) $ECHO_C" >&6
20136else
20137  ac_cv_prog_cc_stdc=no
20138ac_save_CC=$CC
20139cat >conftest.$ac_ext <<_ACEOF
20140/* confdefs.h.  */
20141_ACEOF
20142cat confdefs.h >>conftest.$ac_ext
20143cat >>conftest.$ac_ext <<_ACEOF
20144/* end confdefs.h.  */
20145#include <stdarg.h>
20146#include <stdio.h>
20147#include <sys/types.h>
20148#include <sys/stat.h>
20149/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20150struct buf { int x; };
20151FILE * (*rcsopen) (struct buf *, struct stat *, int);
20152static char *e (p, i)
20153     char **p;
20154     int i;
20155{
20156  return p[i];
20157}
20158static char *f (char * (*g) (char **, int), char **p, ...)
20159{
20160  char *s;
20161  va_list v;
20162  va_start (v,p);
20163  s = g (p, va_arg (v,int));
20164  va_end (v);
20165  return s;
20166}
20167
20168/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20169   function prototypes and stuff, but not '\xHH' hex character constants.
20170   These don't provoke an error unfortunately, instead are silently treated
20171   as 'x'.  The following induces an error, until -std1 is added to get
20172   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20173   array size at least.  It's necessary to write '\x00'==0 to get something
20174   that's true only with -std1.  */
20175int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20176
20177int test (int i, double x);
20178struct s1 {int (*f) (int a);};
20179struct s2 {int (*f) (double a);};
20180int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20181int argc;
20182char **argv;
20183int
20184main ()
20185{
20186return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20187  ;
20188  return 0;
20189}
20190_ACEOF
20191# Don't try gcc -ansi; that turns off useful extensions and
20192# breaks some systems' header files.
20193# AIX			-qlanglvl=ansi
20194# Ultrix and OSF/1	-std1
20195# HP-UX 10.20 and later	-Ae
20196# HP-UX older versions	-Aa -D_HPUX_SOURCE
20197# SVR4			-Xc -D__EXTENSIONS__
20198for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20199do
20200  CC="$ac_save_CC $ac_arg"
20201  rm -f conftest.$ac_objext
20202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20203  (eval $ac_compile) 2>conftest.er1
20204  ac_status=$?
20205  grep -v '^ *+' conftest.er1 >conftest.err
20206  rm -f conftest.er1
20207  cat conftest.err >&5
20208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209  (exit $ac_status); } &&
20210	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212  (eval $ac_try) 2>&5
20213  ac_status=$?
20214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215  (exit $ac_status); }; } &&
20216	 { ac_try='test -s conftest.$ac_objext'
20217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218  (eval $ac_try) 2>&5
20219  ac_status=$?
20220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221  (exit $ac_status); }; }; then
20222  ac_cv_prog_cc_stdc=$ac_arg
20223break
20224else
20225  echo "$as_me: failed program was:" >&5
20226sed 's/^/| /' conftest.$ac_ext >&5
20227
20228fi
20229rm -f conftest.err conftest.$ac_objext
20230done
20231rm -f conftest.$ac_ext conftest.$ac_objext
20232CC=$ac_save_CC
20233
20234fi
20235
20236case "x$ac_cv_prog_cc_stdc" in
20237  x|xno)
20238    echo "$as_me:$LINENO: result: none needed" >&5
20239echo "${ECHO_T}none needed" >&6 ;;
20240  *)
20241    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
20242echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
20243    CC="$CC $ac_cv_prog_cc_stdc" ;;
20244esac
20245
20246# Some people use a C++ compiler to compile C.  Since we use `exit',
20247# in C++ we need to declare it.  In case someone uses the same compiler
20248# for both compiling C and C++ we need to have the C++ compiler decide
20249# the declaration of exit, since it's the most demanding environment.
20250cat >conftest.$ac_ext <<_ACEOF
20251#ifndef __cplusplus
20252  choke me
20253#endif
20254_ACEOF
20255rm -f conftest.$ac_objext
20256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257  (eval $ac_compile) 2>conftest.er1
20258  ac_status=$?
20259  grep -v '^ *+' conftest.er1 >conftest.err
20260  rm -f conftest.er1
20261  cat conftest.err >&5
20262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263  (exit $ac_status); } &&
20264	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266  (eval $ac_try) 2>&5
20267  ac_status=$?
20268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269  (exit $ac_status); }; } &&
20270	 { ac_try='test -s conftest.$ac_objext'
20271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272  (eval $ac_try) 2>&5
20273  ac_status=$?
20274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275  (exit $ac_status); }; }; then
20276  for ac_declaration in \
20277   '' \
20278   'extern "C" void std::exit (int) throw (); using std::exit;' \
20279   'extern "C" void std::exit (int); using std::exit;' \
20280   'extern "C" void exit (int) throw ();' \
20281   'extern "C" void exit (int);' \
20282   'void exit (int);'
20283do
20284  cat >conftest.$ac_ext <<_ACEOF
20285/* confdefs.h.  */
20286_ACEOF
20287cat confdefs.h >>conftest.$ac_ext
20288cat >>conftest.$ac_ext <<_ACEOF
20289/* end confdefs.h.  */
20290$ac_declaration
20291#include <stdlib.h>
20292int
20293main ()
20294{
20295exit (42);
20296  ;
20297  return 0;
20298}
20299_ACEOF
20300rm -f conftest.$ac_objext
20301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20302  (eval $ac_compile) 2>conftest.er1
20303  ac_status=$?
20304  grep -v '^ *+' conftest.er1 >conftest.err
20305  rm -f conftest.er1
20306  cat conftest.err >&5
20307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308  (exit $ac_status); } &&
20309	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311  (eval $ac_try) 2>&5
20312  ac_status=$?
20313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314  (exit $ac_status); }; } &&
20315	 { ac_try='test -s conftest.$ac_objext'
20316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317  (eval $ac_try) 2>&5
20318  ac_status=$?
20319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320  (exit $ac_status); }; }; then
20321  :
20322else
20323  echo "$as_me: failed program was:" >&5
20324sed 's/^/| /' conftest.$ac_ext >&5
20325
20326continue
20327fi
20328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20329  cat >conftest.$ac_ext <<_ACEOF
20330/* confdefs.h.  */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
20334/* end confdefs.h.  */
20335$ac_declaration
20336int
20337main ()
20338{
20339exit (42);
20340  ;
20341  return 0;
20342}
20343_ACEOF
20344rm -f conftest.$ac_objext
20345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346  (eval $ac_compile) 2>conftest.er1
20347  ac_status=$?
20348  grep -v '^ *+' conftest.er1 >conftest.err
20349  rm -f conftest.er1
20350  cat conftest.err >&5
20351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352  (exit $ac_status); } &&
20353	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355  (eval $ac_try) 2>&5
20356  ac_status=$?
20357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358  (exit $ac_status); }; } &&
20359	 { ac_try='test -s conftest.$ac_objext'
20360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361  (eval $ac_try) 2>&5
20362  ac_status=$?
20363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364  (exit $ac_status); }; }; then
20365  break
20366else
20367  echo "$as_me: failed program was:" >&5
20368sed 's/^/| /' conftest.$ac_ext >&5
20369
20370fi
20371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20372done
20373rm -f conftest*
20374if test -n "$ac_declaration"; then
20375  echo '#ifdef __cplusplus' >>confdefs.h
20376  echo $ac_declaration      >>confdefs.h
20377  echo '#endif'             >>confdefs.h
20378fi
20379
20380else
20381  echo "$as_me: failed program was:" >&5
20382sed 's/^/| /' conftest.$ac_ext >&5
20383
20384fi
20385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20386ac_ext=c
20387ac_cpp='$CPP $CPPFLAGS'
20388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20390ac_compiler_gnu=$ac_cv_c_compiler_gnu
20391
20392depcc="$CC"   am_compiler_list=
20393
20394echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20395echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20396if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20397  echo $ECHO_N "(cached) $ECHO_C" >&6
20398else
20399  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20400  # We make a subdir and do the tests there.  Otherwise we can end up
20401  # making bogus files that we don't know about and never remove.  For
20402  # instance it was reported that on HP-UX the gcc test will end up
20403  # making a dummy file named `D' -- because `-MD' means `put the output
20404  # in D'.
20405  mkdir conftest.dir
20406  # Copy depcomp to subdir because otherwise we won't find it if we're
20407  # using a relative directory.
20408  cp "$am_depcomp" conftest.dir
20409  cd conftest.dir
20410  # We will build objects and dependencies in a subdirectory because
20411  # it helps to detect inapplicable dependency modes.  For instance
20412  # both Tru64's cc and ICC support -MD to output dependencies as a
20413  # side effect of compilation, but ICC will put the dependencies in
20414  # the current directory while Tru64 will put them in the object
20415  # directory.
20416  mkdir sub
20417
20418  am_cv_CC_dependencies_compiler_type=none
20419  if test "$am_compiler_list" = ""; then
20420     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20421  fi
20422  for depmode in $am_compiler_list; do
20423    # Setup a source with many dependencies, because some compilers
20424    # like to wrap large dependency lists on column 80 (with \), and
20425    # we should not choose a depcomp mode which is confused by this.
20426    #
20427    # We need to recreate these files for each test, as the compiler may
20428    # overwrite some of them when testing with obscure command lines.
20429    # This happens at least with the AIX C compiler.
20430    : > sub/conftest.c
20431    for i in 1 2 3 4 5 6; do
20432      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20433      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20434      # Solaris 8's {/usr,}/bin/sh.
20435      touch sub/conftst$i.h
20436    done
20437    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20438
20439    case $depmode in
20440    nosideeffect)
20441      # after this tag, mechanisms are not by side-effect, so they'll
20442      # only be used when explicitly requested
20443      if test "x$enable_dependency_tracking" = xyes; then
20444	continue
20445      else
20446	break
20447      fi
20448      ;;
20449    none) break ;;
20450    esac
20451    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20452    # mode.  It turns out that the SunPro C++ compiler does not properly
20453    # handle `-M -o', and we need to detect this.
20454    if depmode=$depmode \
20455       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20456       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20457       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20458         >/dev/null 2>conftest.err &&
20459       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20460       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20461       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20462      # icc doesn't choke on unknown options, it will just issue warnings
20463      # or remarks (even with -Werror).  So we grep stderr for any message
20464      # that says an option was ignored or not supported.
20465      # When given -MP, icc 7.0 and 7.1 complain thusly:
20466      #   icc: Command line warning: ignoring option '-M'; no argument required
20467      # The diagnosis changed in icc 8.0:
20468      #   icc: Command line remark: option '-MP' not supported
20469      if (grep 'ignoring option' conftest.err ||
20470          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20471        am_cv_CC_dependencies_compiler_type=$depmode
20472        break
20473      fi
20474    fi
20475  done
20476
20477  cd ..
20478  rm -rf conftest.dir
20479else
20480  am_cv_CC_dependencies_compiler_type=none
20481fi
20482
20483fi
20484echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20485echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20486CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20487
20488
20489
20490if
20491  test "x$enable_dependency_tracking" != xno \
20492  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20493  am__fastdepCC_TRUE=
20494  am__fastdepCC_FALSE='#'
20495else
20496  am__fastdepCC_TRUE='#'
20497  am__fastdepCC_FALSE=
20498fi
20499
20500
20501
20502if test x$GCC = xyes ; then
20503  CFLAGS="$CFLAGS -Wall -Werror-implicit-function-declaration -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
20504fi
20505
20506for ac_prog in gawk mawk nawk awk
20507do
20508  # Extract the first word of "$ac_prog", so it can be a program name with args.
20509set dummy $ac_prog; ac_word=$2
20510echo "$as_me:$LINENO: checking for $ac_word" >&5
20511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20512if test "${ac_cv_prog_AWK+set}" = set; then
20513  echo $ECHO_N "(cached) $ECHO_C" >&6
20514else
20515  if test -n "$AWK"; then
20516  ac_cv_prog_AWK="$AWK" # Let the user override the test.
20517else
20518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20519for as_dir in $PATH
20520do
20521  IFS=$as_save_IFS
20522  test -z "$as_dir" && as_dir=.
20523  for ac_exec_ext in '' $ac_executable_extensions; do
20524  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20525    ac_cv_prog_AWK="$ac_prog"
20526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20527    break 2
20528  fi
20529done
20530done
20531
20532fi
20533fi
20534AWK=$ac_cv_prog_AWK
20535if test -n "$AWK"; then
20536  echo "$as_me:$LINENO: result: $AWK" >&5
20537echo "${ECHO_T}$AWK" >&6
20538else
20539  echo "$as_me:$LINENO: result: no" >&5
20540echo "${ECHO_T}no" >&6
20541fi
20542
20543  test -n "$AWK" && break
20544done
20545
20546echo "$as_me:$LINENO: checking for library containing strerror" >&5
20547echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
20548if test "${ac_cv_search_strerror+set}" = set; then
20549  echo $ECHO_N "(cached) $ECHO_C" >&6
20550else
20551  ac_func_search_save_LIBS=$LIBS
20552ac_cv_search_strerror=no
20553cat >conftest.$ac_ext <<_ACEOF
20554/* confdefs.h.  */
20555_ACEOF
20556cat confdefs.h >>conftest.$ac_ext
20557cat >>conftest.$ac_ext <<_ACEOF
20558/* end confdefs.h.  */
20559
20560/* Override any gcc2 internal prototype to avoid an error.  */
20561#ifdef __cplusplus
20562extern "C"
20563#endif
20564/* We use char because int might match the return type of a gcc2
20565   builtin and then its argument prototype would still apply.  */
20566char strerror ();
20567int
20568main ()
20569{
20570strerror ();
20571  ;
20572  return 0;
20573}
20574_ACEOF
20575rm -f conftest.$ac_objext conftest$ac_exeext
20576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20577  (eval $ac_link) 2>conftest.er1
20578  ac_status=$?
20579  grep -v '^ *+' conftest.er1 >conftest.err
20580  rm -f conftest.er1
20581  cat conftest.err >&5
20582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583  (exit $ac_status); } &&
20584	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586  (eval $ac_try) 2>&5
20587  ac_status=$?
20588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589  (exit $ac_status); }; } &&
20590	 { ac_try='test -s conftest$ac_exeext'
20591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592  (eval $ac_try) 2>&5
20593  ac_status=$?
20594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595  (exit $ac_status); }; }; then
20596  ac_cv_search_strerror="none required"
20597else
20598  echo "$as_me: failed program was:" >&5
20599sed 's/^/| /' conftest.$ac_ext >&5
20600
20601fi
20602rm -f conftest.err conftest.$ac_objext \
20603      conftest$ac_exeext conftest.$ac_ext
20604if test "$ac_cv_search_strerror" = no; then
20605  for ac_lib in cposix; do
20606    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20607    cat >conftest.$ac_ext <<_ACEOF
20608/* confdefs.h.  */
20609_ACEOF
20610cat confdefs.h >>conftest.$ac_ext
20611cat >>conftest.$ac_ext <<_ACEOF
20612/* end confdefs.h.  */
20613
20614/* Override any gcc2 internal prototype to avoid an error.  */
20615#ifdef __cplusplus
20616extern "C"
20617#endif
20618/* We use char because int might match the return type of a gcc2
20619   builtin and then its argument prototype would still apply.  */
20620char strerror ();
20621int
20622main ()
20623{
20624strerror ();
20625  ;
20626  return 0;
20627}
20628_ACEOF
20629rm -f conftest.$ac_objext conftest$ac_exeext
20630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20631  (eval $ac_link) 2>conftest.er1
20632  ac_status=$?
20633  grep -v '^ *+' conftest.er1 >conftest.err
20634  rm -f conftest.er1
20635  cat conftest.err >&5
20636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637  (exit $ac_status); } &&
20638	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640  (eval $ac_try) 2>&5
20641  ac_status=$?
20642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643  (exit $ac_status); }; } &&
20644	 { ac_try='test -s conftest$ac_exeext'
20645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646  (eval $ac_try) 2>&5
20647  ac_status=$?
20648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649  (exit $ac_status); }; }; then
20650  ac_cv_search_strerror="-l$ac_lib"
20651break
20652else
20653  echo "$as_me: failed program was:" >&5
20654sed 's/^/| /' conftest.$ac_ext >&5
20655
20656fi
20657rm -f conftest.err conftest.$ac_objext \
20658      conftest$ac_exeext conftest.$ac_ext
20659  done
20660fi
20661LIBS=$ac_func_search_save_LIBS
20662fi
20663echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
20664echo "${ECHO_T}$ac_cv_search_strerror" >&6
20665if test "$ac_cv_search_strerror" != no; then
20666  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
20667
20668fi
20669
20670echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20671echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20672if test "${ac_cv_header_stdc+set}" = set; then
20673  echo $ECHO_N "(cached) $ECHO_C" >&6
20674else
20675  cat >conftest.$ac_ext <<_ACEOF
20676/* confdefs.h.  */
20677_ACEOF
20678cat confdefs.h >>conftest.$ac_ext
20679cat >>conftest.$ac_ext <<_ACEOF
20680/* end confdefs.h.  */
20681#include <stdlib.h>
20682#include <stdarg.h>
20683#include <string.h>
20684#include <float.h>
20685
20686int
20687main ()
20688{
20689
20690  ;
20691  return 0;
20692}
20693_ACEOF
20694rm -f conftest.$ac_objext
20695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20696  (eval $ac_compile) 2>conftest.er1
20697  ac_status=$?
20698  grep -v '^ *+' conftest.er1 >conftest.err
20699  rm -f conftest.er1
20700  cat conftest.err >&5
20701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702  (exit $ac_status); } &&
20703	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705  (eval $ac_try) 2>&5
20706  ac_status=$?
20707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708  (exit $ac_status); }; } &&
20709	 { ac_try='test -s conftest.$ac_objext'
20710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711  (eval $ac_try) 2>&5
20712  ac_status=$?
20713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714  (exit $ac_status); }; }; then
20715  ac_cv_header_stdc=yes
20716else
20717  echo "$as_me: failed program was:" >&5
20718sed 's/^/| /' conftest.$ac_ext >&5
20719
20720ac_cv_header_stdc=no
20721fi
20722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20723
20724if test $ac_cv_header_stdc = yes; then
20725  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20726  cat >conftest.$ac_ext <<_ACEOF
20727/* confdefs.h.  */
20728_ACEOF
20729cat confdefs.h >>conftest.$ac_ext
20730cat >>conftest.$ac_ext <<_ACEOF
20731/* end confdefs.h.  */
20732#include <string.h>
20733
20734_ACEOF
20735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20736  $EGREP "memchr" >/dev/null 2>&1; then
20737  :
20738else
20739  ac_cv_header_stdc=no
20740fi
20741rm -f conftest*
20742
20743fi
20744
20745if test $ac_cv_header_stdc = yes; then
20746  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20747  cat >conftest.$ac_ext <<_ACEOF
20748/* confdefs.h.  */
20749_ACEOF
20750cat confdefs.h >>conftest.$ac_ext
20751cat >>conftest.$ac_ext <<_ACEOF
20752/* end confdefs.h.  */
20753#include <stdlib.h>
20754
20755_ACEOF
20756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20757  $EGREP "free" >/dev/null 2>&1; then
20758  :
20759else
20760  ac_cv_header_stdc=no
20761fi
20762rm -f conftest*
20763
20764fi
20765
20766if test $ac_cv_header_stdc = yes; then
20767  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20768  if test "$cross_compiling" = yes; then
20769  :
20770else
20771  cat >conftest.$ac_ext <<_ACEOF
20772/* confdefs.h.  */
20773_ACEOF
20774cat confdefs.h >>conftest.$ac_ext
20775cat >>conftest.$ac_ext <<_ACEOF
20776/* end confdefs.h.  */
20777#include <ctype.h>
20778#if ((' ' & 0x0FF) == 0x020)
20779# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20780# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20781#else
20782# define ISLOWER(c) \
20783		   (('a' <= (c) && (c) <= 'i') \
20784		     || ('j' <= (c) && (c) <= 'r') \
20785		     || ('s' <= (c) && (c) <= 'z'))
20786# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20787#endif
20788
20789#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20790int
20791main ()
20792{
20793  int i;
20794  for (i = 0; i < 256; i++)
20795    if (XOR (islower (i), ISLOWER (i))
20796	|| toupper (i) != TOUPPER (i))
20797      exit(2);
20798  exit (0);
20799}
20800_ACEOF
20801rm -f conftest$ac_exeext
20802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20803  (eval $ac_link) 2>&5
20804  ac_status=$?
20805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20808  (eval $ac_try) 2>&5
20809  ac_status=$?
20810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811  (exit $ac_status); }; }; then
20812  :
20813else
20814  echo "$as_me: program exited with status $ac_status" >&5
20815echo "$as_me: failed program was:" >&5
20816sed 's/^/| /' conftest.$ac_ext >&5
20817
20818( exit $ac_status )
20819ac_cv_header_stdc=no
20820fi
20821rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20822fi
20823fi
20824fi
20825echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20826echo "${ECHO_T}$ac_cv_header_stdc" >&6
20827if test $ac_cv_header_stdc = yes; then
20828
20829cat >>confdefs.h <<\_ACEOF
20830#define STDC_HEADERS 1
20831_ACEOF
20832
20833fi
20834
20835
20836echo "$as_me:$LINENO: checking for pgm_init in -lnetpbm" >&5
20837echo $ECHO_N "checking for pgm_init in -lnetpbm... $ECHO_C" >&6
20838if test "${ac_cv_lib_netpbm_pgm_init+set}" = set; then
20839  echo $ECHO_N "(cached) $ECHO_C" >&6
20840else
20841  ac_check_lib_save_LIBS=$LIBS
20842LIBS="-lnetpbm  $LIBS"
20843cat >conftest.$ac_ext <<_ACEOF
20844/* confdefs.h.  */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h.  */
20849
20850/* Override any gcc2 internal prototype to avoid an error.  */
20851#ifdef __cplusplus
20852extern "C"
20853#endif
20854/* We use char because int might match the return type of a gcc2
20855   builtin and then its argument prototype would still apply.  */
20856char pgm_init ();
20857int
20858main ()
20859{
20860pgm_init ();
20861  ;
20862  return 0;
20863}
20864_ACEOF
20865rm -f conftest.$ac_objext conftest$ac_exeext
20866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20867  (eval $ac_link) 2>conftest.er1
20868  ac_status=$?
20869  grep -v '^ *+' conftest.er1 >conftest.err
20870  rm -f conftest.er1
20871  cat conftest.err >&5
20872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873  (exit $ac_status); } &&
20874	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876  (eval $ac_try) 2>&5
20877  ac_status=$?
20878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879  (exit $ac_status); }; } &&
20880	 { ac_try='test -s conftest$ac_exeext'
20881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882  (eval $ac_try) 2>&5
20883  ac_status=$?
20884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885  (exit $ac_status); }; }; then
20886  ac_cv_lib_netpbm_pgm_init=yes
20887else
20888  echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
20890
20891ac_cv_lib_netpbm_pgm_init=no
20892fi
20893rm -f conftest.err conftest.$ac_objext \
20894      conftest$ac_exeext conftest.$ac_ext
20895LIBS=$ac_check_lib_save_LIBS
20896fi
20897echo "$as_me:$LINENO: result: $ac_cv_lib_netpbm_pgm_init" >&5
20898echo "${ECHO_T}$ac_cv_lib_netpbm_pgm_init" >&6
20899if test $ac_cv_lib_netpbm_pgm_init = yes; then
20900  netpbm="true"
20901else
20902  { echo "$as_me:$LINENO: WARNING: libnetpbm not found. Some programs will not be available." >&5
20903echo "$as_me: WARNING: libnetpbm not found. Some programs will not be available." >&2;}
20904fi
20905
20906
20907
20908if test x$netpbm = xtrue; then
20909  HAS_NETPBM_TRUE=
20910  HAS_NETPBM_FALSE='#'
20911else
20912  HAS_NETPBM_TRUE='#'
20913  HAS_NETPBM_FALSE=
20914fi
20915
20916
20917# Check whether --enable-glibtest or --disable-glibtest was given.
20918if test "${enable_glibtest+set}" = set; then
20919  enableval="$enable_glibtest"
20920
20921else
20922  enable_glibtest=yes
20923fi;
20924
20925  pkg_config_args=glib-2.0
20926  for module in . gthread gmodule
20927  do
20928      case "$module" in
20929         gmodule)
20930             pkg_config_args="$pkg_config_args gmodule-2.0"
20931         ;;
20932         gmodule-no-export)
20933             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
20934         ;;
20935         gobject)
20936             pkg_config_args="$pkg_config_args gobject-2.0"
20937         ;;
20938         gthread)
20939             pkg_config_args="$pkg_config_args gthread-2.0"
20940         ;;
20941      esac
20942  done
20943
20944  # Extract the first word of "pkg-config", so it can be a program name with args.
20945set dummy pkg-config; ac_word=$2
20946echo "$as_me:$LINENO: checking for $ac_word" >&5
20947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20948if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20949  echo $ECHO_N "(cached) $ECHO_C" >&6
20950else
20951  case $PKG_CONFIG in
20952  [\\/]* | ?:[\\/]*)
20953  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20954  ;;
20955  *)
20956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20957for as_dir in $PATH
20958do
20959  IFS=$as_save_IFS
20960  test -z "$as_dir" && as_dir=.
20961  for ac_exec_ext in '' $ac_executable_extensions; do
20962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20963    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20965    break 2
20966  fi
20967done
20968done
20969
20970  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20971  ;;
20972esac
20973fi
20974PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20975
20976if test -n "$PKG_CONFIG"; then
20977  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20978echo "${ECHO_T}$PKG_CONFIG" >&6
20979else
20980  echo "$as_me:$LINENO: result: no" >&5
20981echo "${ECHO_T}no" >&6
20982fi
20983
20984
20985  no_glib=""
20986
20987  if test x$PKG_CONFIG != xno ; then
20988    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
20989      :
20990    else
20991      echo *** pkg-config too old; version 0.7 or better required.
20992      no_glib=yes
20993      PKG_CONFIG=no
20994    fi
20995  else
20996    no_glib=yes
20997  fi
20998
20999  min_glib_version=2.4.0
21000  echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
21001echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
21002
21003  if test x$PKG_CONFIG != xno ; then
21004    ## don't try to run the test against uninstalled libtool libs
21005    if $PKG_CONFIG --uninstalled $pkg_config_args; then
21006	  echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
21007	  enable_glibtest=no
21008    fi
21009
21010    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
21011	  :
21012    else
21013	  no_glib=yes
21014    fi
21015  fi
21016
21017  if test x"$no_glib" = x ; then
21018    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
21019    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
21020    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
21021
21022    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
21023    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
21024    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
21025           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21026    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
21027           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21028    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
21029           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21030    if test "x$enable_glibtest" = "xyes" ; then
21031      ac_save_CFLAGS="$CFLAGS"
21032      ac_save_LIBS="$LIBS"
21033      CFLAGS="$CFLAGS $GLIB_CFLAGS"
21034      LIBS="$GLIB_LIBS $LIBS"
21035      rm -f conf.glibtest
21036      if test "$cross_compiling" = yes; then
21037  echo $ac_n "cross compiling; assumed OK... $ac_c"
21038else
21039  cat >conftest.$ac_ext <<_ACEOF
21040/* confdefs.h.  */
21041_ACEOF
21042cat confdefs.h >>conftest.$ac_ext
21043cat >>conftest.$ac_ext <<_ACEOF
21044/* end confdefs.h.  */
21045
21046#include <glib.h>
21047#include <stdio.h>
21048#include <stdlib.h>
21049
21050int
21051main ()
21052{
21053  int major, minor, micro;
21054  char *tmp_version;
21055
21056  system ("touch conf.glibtest");
21057
21058  /* HP/UX 9 (%@#!) writes to sscanf strings */
21059  tmp_version = g_strdup("$min_glib_version");
21060  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21061     printf("%s, bad version string\n", "$min_glib_version");
21062     exit(1);
21063   }
21064
21065  if ((glib_major_version != $glib_config_major_version) ||
21066      (glib_minor_version != $glib_config_minor_version) ||
21067      (glib_micro_version != $glib_config_micro_version))
21068    {
21069      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
21070             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
21071             glib_major_version, glib_minor_version, glib_micro_version);
21072      printf ("*** was found! If pkg-config was correct, then it is best\n");
21073      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
21074      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21075      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21076      printf("*** required on your system.\n");
21077      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21078      printf("*** to point to the correct configuration files\n");
21079    }
21080  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
21081	   (glib_minor_version != GLIB_MINOR_VERSION) ||
21082           (glib_micro_version != GLIB_MICRO_VERSION))
21083    {
21084      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
21085	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
21086      printf("*** library (version %d.%d.%d)\n",
21087	     glib_major_version, glib_minor_version, glib_micro_version);
21088    }
21089  else
21090    {
21091      if ((glib_major_version > major) ||
21092        ((glib_major_version == major) && (glib_minor_version > minor)) ||
21093        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
21094      {
21095        return 0;
21096       }
21097     else
21098      {
21099        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
21100               glib_major_version, glib_minor_version, glib_micro_version);
21101        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
21102	       major, minor, micro);
21103        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
21104        printf("***\n");
21105        printf("*** If you have already installed a sufficiently new version, this error\n");
21106        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21107        printf("*** being found. The easiest way to fix this is to remove the old version\n");
21108        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
21109        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21110        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21111        printf("*** so that the correct libraries are found at run-time))\n");
21112      }
21113    }
21114  return 1;
21115}
21116
21117_ACEOF
21118rm -f conftest$ac_exeext
21119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21120  (eval $ac_link) 2>&5
21121  ac_status=$?
21122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125  (eval $ac_try) 2>&5
21126  ac_status=$?
21127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128  (exit $ac_status); }; }; then
21129  :
21130else
21131  echo "$as_me: program exited with status $ac_status" >&5
21132echo "$as_me: failed program was:" >&5
21133sed 's/^/| /' conftest.$ac_ext >&5
21134
21135( exit $ac_status )
21136no_glib=yes
21137fi
21138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21139fi
21140       CFLAGS="$ac_save_CFLAGS"
21141       LIBS="$ac_save_LIBS"
21142     fi
21143  fi
21144  if test "x$no_glib" = x ; then
21145     echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
21146echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
21147     has_glib2=yes
21148  else
21149     echo "$as_me:$LINENO: result: no" >&5
21150echo "${ECHO_T}no" >&6
21151     if test "$PKG_CONFIG" = "no" ; then
21152       echo "*** A new enough version of pkg-config was not found."
21153       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
21154     else
21155       if test -f conf.glibtest ; then
21156        :
21157       else
21158          echo "*** Could not run GLIB test program, checking why..."
21159          ac_save_CFLAGS="$CFLAGS"
21160          ac_save_LIBS="$LIBS"
21161          CFLAGS="$CFLAGS $GLIB_CFLAGS"
21162          LIBS="$LIBS $GLIB_LIBS"
21163          cat >conftest.$ac_ext <<_ACEOF
21164/* confdefs.h.  */
21165_ACEOF
21166cat confdefs.h >>conftest.$ac_ext
21167cat >>conftest.$ac_ext <<_ACEOF
21168/* end confdefs.h.  */
21169
21170#include <glib.h>
21171#include <stdio.h>
21172
21173int
21174main ()
21175{
21176 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
21177  ;
21178  return 0;
21179}
21180_ACEOF
21181rm -f conftest.$ac_objext conftest$ac_exeext
21182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183  (eval $ac_link) 2>conftest.er1
21184  ac_status=$?
21185  grep -v '^ *+' conftest.er1 >conftest.err
21186  rm -f conftest.er1
21187  cat conftest.err >&5
21188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189  (exit $ac_status); } &&
21190	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192  (eval $ac_try) 2>&5
21193  ac_status=$?
21194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195  (exit $ac_status); }; } &&
21196	 { ac_try='test -s conftest$ac_exeext'
21197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198  (eval $ac_try) 2>&5
21199  ac_status=$?
21200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201  (exit $ac_status); }; }; then
21202   echo "*** The test program compiled, but did not run. This usually means"
21203          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
21204          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
21205          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21206          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21207          echo "*** is required on your system"
21208	  echo "***"
21209          echo "*** If you have an old version installed, it is best to remove it, although"
21210          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21211else
21212  echo "$as_me: failed program was:" >&5
21213sed 's/^/| /' conftest.$ac_ext >&5
21214
21215 echo "*** The test program failed to compile or link. See the file config.log for the"
21216          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
21217fi
21218rm -f conftest.err conftest.$ac_objext \
21219      conftest$ac_exeext conftest.$ac_ext
21220          CFLAGS="$ac_save_CFLAGS"
21221          LIBS="$ac_save_LIBS"
21222       fi
21223     fi
21224     GLIB_CFLAGS=""
21225     GLIB_LIBS=""
21226     GLIB_GENMARSHAL=""
21227     GOBJECT_QUERY=""
21228     GLIB_MKENUMS=""
21229     has_glib2=no
21230  fi
21231
21232
21233
21234
21235
21236  rm -f conf.glibtest
21237
21238if test x$has_glib2 = xyes; then
21239  glib_cflags=`$PKG_CONFIG glib-2.0 --cflags`
21240  glib_thread_cflags=`$PKG_CONFIG glib-2.0 --cflags gthread-2.0`
21241  glib_module_cflags=`$PKG_CONFIG glib-2.0 --cflags gmodule-2.0`
21242  glib_libs=`$PKG_CONFIG glib-2.0 --libs`
21243  glib_thread_libs=`$PKG_CONFIG glib-2.0 --libs gthread-2.0`
21244  glib_module_libs=`$PKG_CONFIG glib-2.0 --libs gmodule-2.0`
21245  GLIB_LIBS="$glib_libs"
21246  GLIB_DEPLIBS="$glib_libs"
21247else
21248  if test x$with_glib = xyes ; then
21249    { { echo "$as_me:$LINENO: error:
21250*** Directory must be specified for --with-glib" >&5
21251echo "$as_me: error:
21252*** Directory must be specified for --with-glib" >&2;}
21253   { (exit 1); exit 1; }; }
21254  fi
21255
21256  if test x$with_glib = x ; then
21257    # Look for separately installed glib
21258
21259    GLIB_REQUIRED_VERSION=1.2.8
21260
21261# Check whether --with-glib-prefix or --without-glib-prefix was given.
21262if test "${with_glib_prefix+set}" = set; then
21263  withval="$with_glib_prefix"
21264  glib_config_prefix="$withval"
21265else
21266  glib_config_prefix=""
21267fi;
21268
21269# Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
21270if test "${with_glib_exec_prefix+set}" = set; then
21271  withval="$with_glib_exec_prefix"
21272  glib_config_exec_prefix="$withval"
21273else
21274  glib_config_exec_prefix=""
21275fi;
21276# Check whether --enable-glibtest or --disable-glibtest was given.
21277if test "${enable_glibtest+set}" = set; then
21278  enableval="$enable_glibtest"
21279
21280else
21281  enable_glibtest=yes
21282fi;
21283
21284  if test x$glib_config_exec_prefix != x ; then
21285     glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
21286     if test x${GLIB_CONFIG+set} != xset ; then
21287        GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
21288     fi
21289  fi
21290  if test x$glib_config_prefix != x ; then
21291     glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
21292     if test x${GLIB_CONFIG+set} != xset ; then
21293        GLIB_CONFIG=$glib_config_prefix/bin/glib-config
21294     fi
21295  fi
21296
21297  for module in . gmodule gthread
21298  do
21299      case "$module" in
21300         gmodule)
21301             glib_config_args="$glib_config_args gmodule"
21302         ;;
21303         gthread)
21304             glib_config_args="$glib_config_args gthread"
21305         ;;
21306      esac
21307  done
21308
21309  # Extract the first word of "glib-config", so it can be a program name with args.
21310set dummy glib-config; ac_word=$2
21311echo "$as_me:$LINENO: checking for $ac_word" >&5
21312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21313if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then
21314  echo $ECHO_N "(cached) $ECHO_C" >&6
21315else
21316  case $GLIB_CONFIG in
21317  [\\/]* | ?:[\\/]*)
21318  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
21319  ;;
21320  *)
21321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21322for as_dir in $PATH
21323do
21324  IFS=$as_save_IFS
21325  test -z "$as_dir" && as_dir=.
21326  for ac_exec_ext in '' $ac_executable_extensions; do
21327  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21328    ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21330    break 2
21331  fi
21332done
21333done
21334
21335  test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
21336  ;;
21337esac
21338fi
21339GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG
21340
21341if test -n "$GLIB_CONFIG"; then
21342  echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5
21343echo "${ECHO_T}$GLIB_CONFIG" >&6
21344else
21345  echo "$as_me:$LINENO: result: no" >&5
21346echo "${ECHO_T}no" >&6
21347fi
21348
21349  min_glib_version=$GLIB_REQUIRED_VERSION
21350  echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
21351echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
21352  no_glib=""
21353  if test "$GLIB_CONFIG" = "no" ; then
21354    no_glib=yes
21355  else
21356    GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
21357    GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
21358    glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
21359           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21360    glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
21361           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21362    glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
21363           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21364    if test "x$enable_glibtest" = "xyes" ; then
21365      ac_save_CFLAGS="$CFLAGS"
21366      ac_save_LIBS="$LIBS"
21367      CFLAGS="$CFLAGS $GLIB_CFLAGS"
21368      LIBS="$GLIB_LIBS $LIBS"
21369      rm -f conf.glibtest
21370      if test "$cross_compiling" = yes; then
21371  echo $ac_n "cross compiling; assumed OK... $ac_c"
21372else
21373  cat >conftest.$ac_ext <<_ACEOF
21374/* confdefs.h.  */
21375_ACEOF
21376cat confdefs.h >>conftest.$ac_ext
21377cat >>conftest.$ac_ext <<_ACEOF
21378/* end confdefs.h.  */
21379
21380#include <glib.h>
21381#include <stdio.h>
21382#include <stdlib.h>
21383
21384int
21385main ()
21386{
21387  int major, minor, micro;
21388  char *tmp_version;
21389
21390  system ("touch conf.glibtest");
21391
21392  /* HP/UX 9 (%@#!) writes to sscanf strings */
21393  tmp_version = g_strdup("$min_glib_version");
21394  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21395     printf("%s, bad version string\n", "$min_glib_version");
21396     exit(1);
21397   }
21398
21399  if ((glib_major_version != $glib_config_major_version) ||
21400      (glib_minor_version != $glib_config_minor_version) ||
21401      (glib_micro_version != $glib_config_micro_version))
21402    {
21403      printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
21404             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
21405             glib_major_version, glib_minor_version, glib_micro_version);
21406      printf ("*** was found! If glib-config was correct, then it is best\n");
21407      printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
21408      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21409      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21410      printf("*** required on your system.\n");
21411      printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
21412      printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
21413      printf("*** before re-running configure\n");
21414    }
21415  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
21416	   (glib_minor_version != GLIB_MINOR_VERSION) ||
21417           (glib_micro_version != GLIB_MICRO_VERSION))
21418    {
21419      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
21420	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
21421      printf("*** library (version %d.%d.%d)\n",
21422	     glib_major_version, glib_minor_version, glib_micro_version);
21423    }
21424  else
21425    {
21426      if ((glib_major_version > major) ||
21427        ((glib_major_version == major) && (glib_minor_version > minor)) ||
21428        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
21429      {
21430        return 0;
21431       }
21432     else
21433      {
21434        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
21435               glib_major_version, glib_minor_version, glib_micro_version);
21436        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
21437	       major, minor, micro);
21438        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
21439        printf("***\n");
21440        printf("*** If you have already installed a sufficiently new version, this error\n");
21441        printf("*** probably means that the wrong copy of the glib-config shell script is\n");
21442        printf("*** being found. The easiest way to fix this is to remove the old version\n");
21443        printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
21444        printf("*** correct copy of glib-config. (In this case, you will have to\n");
21445        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21446        printf("*** so that the correct libraries are found at run-time))\n");
21447      }
21448    }
21449  return 1;
21450}
21451
21452_ACEOF
21453rm -f conftest$ac_exeext
21454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21455  (eval $ac_link) 2>&5
21456  ac_status=$?
21457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21460  (eval $ac_try) 2>&5
21461  ac_status=$?
21462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463  (exit $ac_status); }; }; then
21464  :
21465else
21466  echo "$as_me: program exited with status $ac_status" >&5
21467echo "$as_me: failed program was:" >&5
21468sed 's/^/| /' conftest.$ac_ext >&5
21469
21470( exit $ac_status )
21471no_glib=yes
21472fi
21473rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21474fi
21475       CFLAGS="$ac_save_CFLAGS"
21476       LIBS="$ac_save_LIBS"
21477     fi
21478  fi
21479  if test "x$no_glib" = x ; then
21480     echo "$as_me:$LINENO: result: yes" >&5
21481echo "${ECHO_T}yes" >&6
21482     :
21483  else
21484     echo "$as_me:$LINENO: result: no" >&5
21485echo "${ECHO_T}no" >&6
21486     if test "$GLIB_CONFIG" = "no" ; then
21487       echo "*** The glib-config script installed by GLIB could not be found"
21488       echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
21489       echo "*** your path, or set the GLIB_CONFIG environment variable to the"
21490       echo "*** full path to glib-config."
21491     else
21492       if test -f conf.glibtest ; then
21493        :
21494       else
21495          echo "*** Could not run GLIB test program, checking why..."
21496          CFLAGS="$CFLAGS $GLIB_CFLAGS"
21497          LIBS="$LIBS $GLIB_LIBS"
21498          cat >conftest.$ac_ext <<_ACEOF
21499/* confdefs.h.  */
21500_ACEOF
21501cat confdefs.h >>conftest.$ac_ext
21502cat >>conftest.$ac_ext <<_ACEOF
21503/* end confdefs.h.  */
21504
21505#include <glib.h>
21506#include <stdio.h>
21507
21508int
21509main ()
21510{
21511 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
21512  ;
21513  return 0;
21514}
21515_ACEOF
21516rm -f conftest.$ac_objext conftest$ac_exeext
21517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21518  (eval $ac_link) 2>conftest.er1
21519  ac_status=$?
21520  grep -v '^ *+' conftest.er1 >conftest.err
21521  rm -f conftest.er1
21522  cat conftest.err >&5
21523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524  (exit $ac_status); } &&
21525	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527  (eval $ac_try) 2>&5
21528  ac_status=$?
21529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530  (exit $ac_status); }; } &&
21531	 { ac_try='test -s conftest$ac_exeext'
21532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533  (eval $ac_try) 2>&5
21534  ac_status=$?
21535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536  (exit $ac_status); }; }; then
21537   echo "*** The test program compiled, but did not run. This usually means"
21538          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
21539          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
21540          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21541          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21542          echo "*** is required on your system"
21543	  echo "***"
21544          echo "*** If you have an old version installed, it is best to remove it, although"
21545          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21546          echo "***"
21547          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21548          echo "*** came with the system with the command"
21549          echo "***"
21550          echo "***    rpm --erase --nodeps gtk gtk-devel"
21551else
21552  echo "$as_me: failed program was:" >&5
21553sed 's/^/| /' conftest.$ac_ext >&5
21554
21555 echo "*** The test program failed to compile or link. See the file config.log for the"
21556          echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
21557          echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
21558          echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
21559fi
21560rm -f conftest.err conftest.$ac_objext \
21561      conftest$ac_exeext conftest.$ac_ext
21562          CFLAGS="$ac_save_CFLAGS"
21563          LIBS="$ac_save_LIBS"
21564       fi
21565     fi
21566     GLIB_CFLAGS=""
21567     GLIB_LIBS=""
21568     { { echo "$as_me:$LINENO: error:
21569*** GLIB $GLIB_REQUIRED_VERSION or better is required. The latest version of GLIB
21570*** is always available from ftp://ftp.gtk.org/." >&5
21571echo "$as_me: error:
21572*** GLIB $GLIB_REQUIRED_VERSION or better is required. The latest version of GLIB
21573*** is always available from ftp://ftp.gtk.org/." >&2;}
21574   { (exit 1); exit 1; }; }
21575  fi
21576
21577
21578  rm -f conf.glibtest
21579
21580
21581    glib_cflags=`$GLIB_CONFIG --cflags`
21582    glib_thread_cflags=`$GLIB_CONFIG --cflags gthread`
21583    glib_module_cflags=`$GLIB_CONFIG --cflags gmodule`
21584    glib_libs=`$GLIB_CONFIG --libs`
21585    glib_thread_libs=`$GLIB_CONFIG --libs gthread`
21586    glib_module_libs=`$GLIB_CONFIG --libs gmodule`
21587    GLIB_LIBS="$glib_libs"
21588    GLIB_DEPLIBS="$glib_libs"
21589  else
21590    # Use uninstalled glib (assume they got the version right)
21591
21592    GLIB_CONFIG=$with_glib/glib-config
21593    if test -x $GLIB_CONFIG ; then
21594      :
21595    else
21596      { { echo "$as_me:$LINENO: error: GLIB directory ($with_glib) not present or not configured" >&5
21597echo "$as_me: error: GLIB directory ($with_glib) not present or not configured" >&2;}
21598   { (exit 1); exit 1; }; }
21599    fi
21600
21601    # For use in gts-config
21602    glib_cflags=`$GLIB_CONFIG --cflags`
21603    glib_thread_cflags=`$GLIB_CONFIG --cflags gthread`
21604    glib_module_cflags=`$GLIB_CONFIG --cflags gmodule`
21605    glib_libs=`$GLIB_CONFIG --libs`
21606    glib_thread_libs=`$GLIB_CONFIG --libs gthread`
21607    glib_module_libs=`$GLIB_CONFIG --libs gmodule`
21608
21609    glib_release=`$GLIB_CONFIG --version | sed 's%\\.[0-9]*$%%'`
21610
21611    # canonicalize relative paths
21612    case $with_glib in
21613      /*)
21614        glib_dir=$with_glib
21615        ;;
21616      *)
21617        glib_dir="\$(top_builddir)/$with_glib"
21618        ;;
21619    esac
21620
21621    GLIB_CFLAGS="-I$glib_dir -I$glib_dir/gmodule"
21622    GLIB_LIBS="$glib_dir/libglib.la $glib_dir/gmodule.la"
21623    GLIB_DEPLIBS=
21624
21625
21626
21627  fi
21628fi
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638CFLAGS="$CFLAGS $glib_cflags"
21639LDFLAGS="$LDFLAGS $glib_libs"
21640
21641
21642
21643
21644
21645          ac_config_commands="$ac_config_commands default-1"
21646
21647
21648cat >conftest.$ac_ext <<_ACEOF
21649/* confdefs.h.  */
21650_ACEOF
21651cat confdefs.h >>conftest.$ac_ext
21652cat >>conftest.$ac_ext <<_ACEOF
21653/* end confdefs.h.  */
21654
21655int
21656main ()
21657{
21658"{
21659           #warning test
21660	}"
21661  ;
21662  return 0;
21663}
21664_ACEOF
21665rm -f conftest.$ac_objext
21666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21667  (eval $ac_compile) 2>conftest.er1
21668  ac_status=$?
21669  grep -v '^ *+' conftest.er1 >conftest.err
21670  rm -f conftest.er1
21671  cat conftest.err >&5
21672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673  (exit $ac_status); } &&
21674	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676  (eval $ac_try) 2>&5
21677  ac_status=$?
21678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679  (exit $ac_status); }; } &&
21680	 { ac_try='test -s conftest.$ac_objext'
21681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682  (eval $ac_try) 2>&5
21683  ac_status=$?
21684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685  (exit $ac_status); }; }; then
21686
21687cat >>confdefs.h <<\_ACEOF
21688#define CPP_HAS_WARNING 1
21689_ACEOF
21690
21691else
21692  echo "$as_me: failed program was:" >&5
21693sed 's/^/| /' conftest.$ac_ext >&5
21694
21695{ echo "$as_me:$LINENO: WARNING: \"C preprocessor does not support warning directive.\"" >&5
21696echo "$as_me: WARNING: \"C preprocessor does not support warning directive.\"" >&2;}
21697fi
21698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21699
21700
21701
21702for ac_header in fpu_control.h
21703do
21704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21705if eval "test \"\${$as_ac_Header+set}\" = set"; then
21706  echo "$as_me:$LINENO: checking for $ac_header" >&5
21707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21708if eval "test \"\${$as_ac_Header+set}\" = set"; then
21709  echo $ECHO_N "(cached) $ECHO_C" >&6
21710fi
21711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21713else
21714  # Is the header compilable?
21715echo "$as_me:$LINENO: checking $ac_header usability" >&5
21716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21717cat >conftest.$ac_ext <<_ACEOF
21718/* confdefs.h.  */
21719_ACEOF
21720cat confdefs.h >>conftest.$ac_ext
21721cat >>conftest.$ac_ext <<_ACEOF
21722/* end confdefs.h.  */
21723$ac_includes_default
21724#include <$ac_header>
21725_ACEOF
21726rm -f conftest.$ac_objext
21727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21728  (eval $ac_compile) 2>conftest.er1
21729  ac_status=$?
21730  grep -v '^ *+' conftest.er1 >conftest.err
21731  rm -f conftest.er1
21732  cat conftest.err >&5
21733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734  (exit $ac_status); } &&
21735	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737  (eval $ac_try) 2>&5
21738  ac_status=$?
21739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740  (exit $ac_status); }; } &&
21741	 { ac_try='test -s conftest.$ac_objext'
21742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743  (eval $ac_try) 2>&5
21744  ac_status=$?
21745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746  (exit $ac_status); }; }; then
21747  ac_header_compiler=yes
21748else
21749  echo "$as_me: failed program was:" >&5
21750sed 's/^/| /' conftest.$ac_ext >&5
21751
21752ac_header_compiler=no
21753fi
21754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21755echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21756echo "${ECHO_T}$ac_header_compiler" >&6
21757
21758# Is the header present?
21759echo "$as_me:$LINENO: checking $ac_header presence" >&5
21760echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21761cat >conftest.$ac_ext <<_ACEOF
21762/* confdefs.h.  */
21763_ACEOF
21764cat confdefs.h >>conftest.$ac_ext
21765cat >>conftest.$ac_ext <<_ACEOF
21766/* end confdefs.h.  */
21767#include <$ac_header>
21768_ACEOF
21769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21770  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21771  ac_status=$?
21772  grep -v '^ *+' conftest.er1 >conftest.err
21773  rm -f conftest.er1
21774  cat conftest.err >&5
21775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776  (exit $ac_status); } >/dev/null; then
21777  if test -s conftest.err; then
21778    ac_cpp_err=$ac_c_preproc_warn_flag
21779    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21780  else
21781    ac_cpp_err=
21782  fi
21783else
21784  ac_cpp_err=yes
21785fi
21786if test -z "$ac_cpp_err"; then
21787  ac_header_preproc=yes
21788else
21789  echo "$as_me: failed program was:" >&5
21790sed 's/^/| /' conftest.$ac_ext >&5
21791
21792  ac_header_preproc=no
21793fi
21794rm -f conftest.err conftest.$ac_ext
21795echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21796echo "${ECHO_T}$ac_header_preproc" >&6
21797
21798# So?  What about this header?
21799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21800  yes:no: )
21801    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21803    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21805    ac_header_preproc=yes
21806    ;;
21807  no:yes:* )
21808    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21810    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21811echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21812    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21814    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21815echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21816    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21818    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21820    (
21821      cat <<\_ASBOX
21822## ------------------------------------------ ##
21823## Report this to the AC_PACKAGE_NAME lists.  ##
21824## ------------------------------------------ ##
21825_ASBOX
21826    ) |
21827      sed "s/^/$as_me: WARNING:     /" >&2
21828    ;;
21829esac
21830echo "$as_me:$LINENO: checking for $ac_header" >&5
21831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21832if eval "test \"\${$as_ac_Header+set}\" = set"; then
21833  echo $ECHO_N "(cached) $ECHO_C" >&6
21834else
21835  eval "$as_ac_Header=\$ac_header_preproc"
21836fi
21837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21839
21840fi
21841if test `eval echo '${'$as_ac_Header'}'` = yes; then
21842  cat >>confdefs.h <<_ACEOF
21843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21844_ACEOF
21845 cat >>confdefs.h <<\_ACEOF
21846#define HAVE_FPU_CONTROL_H 1
21847_ACEOF
21848
21849fi
21850
21851done
21852
21853
21854for ac_header in floatingpoint.h
21855do
21856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21857if eval "test \"\${$as_ac_Header+set}\" = set"; then
21858  echo "$as_me:$LINENO: checking for $ac_header" >&5
21859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21860if eval "test \"\${$as_ac_Header+set}\" = set"; then
21861  echo $ECHO_N "(cached) $ECHO_C" >&6
21862fi
21863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21865else
21866  # Is the header compilable?
21867echo "$as_me:$LINENO: checking $ac_header usability" >&5
21868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21869cat >conftest.$ac_ext <<_ACEOF
21870/* confdefs.h.  */
21871_ACEOF
21872cat confdefs.h >>conftest.$ac_ext
21873cat >>conftest.$ac_ext <<_ACEOF
21874/* end confdefs.h.  */
21875$ac_includes_default
21876#include <$ac_header>
21877_ACEOF
21878rm -f conftest.$ac_objext
21879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21880  (eval $ac_compile) 2>conftest.er1
21881  ac_status=$?
21882  grep -v '^ *+' conftest.er1 >conftest.err
21883  rm -f conftest.er1
21884  cat conftest.err >&5
21885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886  (exit $ac_status); } &&
21887	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889  (eval $ac_try) 2>&5
21890  ac_status=$?
21891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892  (exit $ac_status); }; } &&
21893	 { ac_try='test -s conftest.$ac_objext'
21894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895  (eval $ac_try) 2>&5
21896  ac_status=$?
21897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898  (exit $ac_status); }; }; then
21899  ac_header_compiler=yes
21900else
21901  echo "$as_me: failed program was:" >&5
21902sed 's/^/| /' conftest.$ac_ext >&5
21903
21904ac_header_compiler=no
21905fi
21906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21908echo "${ECHO_T}$ac_header_compiler" >&6
21909
21910# Is the header present?
21911echo "$as_me:$LINENO: checking $ac_header presence" >&5
21912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21913cat >conftest.$ac_ext <<_ACEOF
21914/* confdefs.h.  */
21915_ACEOF
21916cat confdefs.h >>conftest.$ac_ext
21917cat >>conftest.$ac_ext <<_ACEOF
21918/* end confdefs.h.  */
21919#include <$ac_header>
21920_ACEOF
21921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21922  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21923  ac_status=$?
21924  grep -v '^ *+' conftest.er1 >conftest.err
21925  rm -f conftest.er1
21926  cat conftest.err >&5
21927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928  (exit $ac_status); } >/dev/null; then
21929  if test -s conftest.err; then
21930    ac_cpp_err=$ac_c_preproc_warn_flag
21931    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21932  else
21933    ac_cpp_err=
21934  fi
21935else
21936  ac_cpp_err=yes
21937fi
21938if test -z "$ac_cpp_err"; then
21939  ac_header_preproc=yes
21940else
21941  echo "$as_me: failed program was:" >&5
21942sed 's/^/| /' conftest.$ac_ext >&5
21943
21944  ac_header_preproc=no
21945fi
21946rm -f conftest.err conftest.$ac_ext
21947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21948echo "${ECHO_T}$ac_header_preproc" >&6
21949
21950# So?  What about this header?
21951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21952  yes:no: )
21953    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21955    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21957    ac_header_preproc=yes
21958    ;;
21959  no:yes:* )
21960    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21962    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21963echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21964    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21966    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21967echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21968    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21970    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21972    (
21973      cat <<\_ASBOX
21974## ------------------------------------------ ##
21975## Report this to the AC_PACKAGE_NAME lists.  ##
21976## ------------------------------------------ ##
21977_ASBOX
21978    ) |
21979      sed "s/^/$as_me: WARNING:     /" >&2
21980    ;;
21981esac
21982echo "$as_me:$LINENO: checking for $ac_header" >&5
21983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21984if eval "test \"\${$as_ac_Header+set}\" = set"; then
21985  echo $ECHO_N "(cached) $ECHO_C" >&6
21986else
21987  eval "$as_ac_Header=\$ac_header_preproc"
21988fi
21989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21991
21992fi
21993if test `eval echo '${'$as_ac_Header'}'` = yes; then
21994  cat >>confdefs.h <<_ACEOF
21995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21996_ACEOF
21997 cat >>confdefs.h <<\_ACEOF
21998#define HAVE_FLOATINGPOINT_H 1
21999_ACEOF
22000
22001fi
22002
22003done
22004
22005
22006for ac_header in unistd.h
22007do
22008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22009if eval "test \"\${$as_ac_Header+set}\" = set"; then
22010  echo "$as_me:$LINENO: checking for $ac_header" >&5
22011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22012if eval "test \"\${$as_ac_Header+set}\" = set"; then
22013  echo $ECHO_N "(cached) $ECHO_C" >&6
22014fi
22015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22017else
22018  # Is the header compilable?
22019echo "$as_me:$LINENO: checking $ac_header usability" >&5
22020echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22021cat >conftest.$ac_ext <<_ACEOF
22022/* confdefs.h.  */
22023_ACEOF
22024cat confdefs.h >>conftest.$ac_ext
22025cat >>conftest.$ac_ext <<_ACEOF
22026/* end confdefs.h.  */
22027$ac_includes_default
22028#include <$ac_header>
22029_ACEOF
22030rm -f conftest.$ac_objext
22031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22032  (eval $ac_compile) 2>conftest.er1
22033  ac_status=$?
22034  grep -v '^ *+' conftest.er1 >conftest.err
22035  rm -f conftest.er1
22036  cat conftest.err >&5
22037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038  (exit $ac_status); } &&
22039	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22041  (eval $ac_try) 2>&5
22042  ac_status=$?
22043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044  (exit $ac_status); }; } &&
22045	 { ac_try='test -s conftest.$ac_objext'
22046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047  (eval $ac_try) 2>&5
22048  ac_status=$?
22049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050  (exit $ac_status); }; }; then
22051  ac_header_compiler=yes
22052else
22053  echo "$as_me: failed program was:" >&5
22054sed 's/^/| /' conftest.$ac_ext >&5
22055
22056ac_header_compiler=no
22057fi
22058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22059echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22060echo "${ECHO_T}$ac_header_compiler" >&6
22061
22062# Is the header present?
22063echo "$as_me:$LINENO: checking $ac_header presence" >&5
22064echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22065cat >conftest.$ac_ext <<_ACEOF
22066/* confdefs.h.  */
22067_ACEOF
22068cat confdefs.h >>conftest.$ac_ext
22069cat >>conftest.$ac_ext <<_ACEOF
22070/* end confdefs.h.  */
22071#include <$ac_header>
22072_ACEOF
22073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22074  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22075  ac_status=$?
22076  grep -v '^ *+' conftest.er1 >conftest.err
22077  rm -f conftest.er1
22078  cat conftest.err >&5
22079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080  (exit $ac_status); } >/dev/null; then
22081  if test -s conftest.err; then
22082    ac_cpp_err=$ac_c_preproc_warn_flag
22083    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22084  else
22085    ac_cpp_err=
22086  fi
22087else
22088  ac_cpp_err=yes
22089fi
22090if test -z "$ac_cpp_err"; then
22091  ac_header_preproc=yes
22092else
22093  echo "$as_me: failed program was:" >&5
22094sed 's/^/| /' conftest.$ac_ext >&5
22095
22096  ac_header_preproc=no
22097fi
22098rm -f conftest.err conftest.$ac_ext
22099echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22100echo "${ECHO_T}$ac_header_preproc" >&6
22101
22102# So?  What about this header?
22103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22104  yes:no: )
22105    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22107    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22109    ac_header_preproc=yes
22110    ;;
22111  no:yes:* )
22112    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22114    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22115echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22116    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22118    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22119echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22120    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22122    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22124    (
22125      cat <<\_ASBOX
22126## ------------------------------------------ ##
22127## Report this to the AC_PACKAGE_NAME lists.  ##
22128## ------------------------------------------ ##
22129_ASBOX
22130    ) |
22131      sed "s/^/$as_me: WARNING:     /" >&2
22132    ;;
22133esac
22134echo "$as_me:$LINENO: checking for $ac_header" >&5
22135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22136if eval "test \"\${$as_ac_Header+set}\" = set"; then
22137  echo $ECHO_N "(cached) $ECHO_C" >&6
22138else
22139  eval "$as_ac_Header=\$ac_header_preproc"
22140fi
22141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22143
22144fi
22145if test `eval echo '${'$as_ac_Header'}'` = yes; then
22146  cat >>confdefs.h <<_ACEOF
22147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22148_ACEOF
22149 cat >>confdefs.h <<\_ACEOF
22150#define HAVE_UNISTD_H 1
22151_ACEOF
22152
22153fi
22154
22155done
22156
22157
22158for ac_header in getopt.h
22159do
22160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22161if eval "test \"\${$as_ac_Header+set}\" = set"; then
22162  echo "$as_me:$LINENO: checking for $ac_header" >&5
22163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22164if eval "test \"\${$as_ac_Header+set}\" = set"; then
22165  echo $ECHO_N "(cached) $ECHO_C" >&6
22166fi
22167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22169else
22170  # Is the header compilable?
22171echo "$as_me:$LINENO: checking $ac_header usability" >&5
22172echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22173cat >conftest.$ac_ext <<_ACEOF
22174/* confdefs.h.  */
22175_ACEOF
22176cat confdefs.h >>conftest.$ac_ext
22177cat >>conftest.$ac_ext <<_ACEOF
22178/* end confdefs.h.  */
22179$ac_includes_default
22180#include <$ac_header>
22181_ACEOF
22182rm -f conftest.$ac_objext
22183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22184  (eval $ac_compile) 2>conftest.er1
22185  ac_status=$?
22186  grep -v '^ *+' conftest.er1 >conftest.err
22187  rm -f conftest.er1
22188  cat conftest.err >&5
22189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190  (exit $ac_status); } &&
22191	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193  (eval $ac_try) 2>&5
22194  ac_status=$?
22195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196  (exit $ac_status); }; } &&
22197	 { ac_try='test -s conftest.$ac_objext'
22198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199  (eval $ac_try) 2>&5
22200  ac_status=$?
22201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202  (exit $ac_status); }; }; then
22203  ac_header_compiler=yes
22204else
22205  echo "$as_me: failed program was:" >&5
22206sed 's/^/| /' conftest.$ac_ext >&5
22207
22208ac_header_compiler=no
22209fi
22210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22211echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22212echo "${ECHO_T}$ac_header_compiler" >&6
22213
22214# Is the header present?
22215echo "$as_me:$LINENO: checking $ac_header presence" >&5
22216echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22217cat >conftest.$ac_ext <<_ACEOF
22218/* confdefs.h.  */
22219_ACEOF
22220cat confdefs.h >>conftest.$ac_ext
22221cat >>conftest.$ac_ext <<_ACEOF
22222/* end confdefs.h.  */
22223#include <$ac_header>
22224_ACEOF
22225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22226  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22227  ac_status=$?
22228  grep -v '^ *+' conftest.er1 >conftest.err
22229  rm -f conftest.er1
22230  cat conftest.err >&5
22231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232  (exit $ac_status); } >/dev/null; then
22233  if test -s conftest.err; then
22234    ac_cpp_err=$ac_c_preproc_warn_flag
22235    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22236  else
22237    ac_cpp_err=
22238  fi
22239else
22240  ac_cpp_err=yes
22241fi
22242if test -z "$ac_cpp_err"; then
22243  ac_header_preproc=yes
22244else
22245  echo "$as_me: failed program was:" >&5
22246sed 's/^/| /' conftest.$ac_ext >&5
22247
22248  ac_header_preproc=no
22249fi
22250rm -f conftest.err conftest.$ac_ext
22251echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22252echo "${ECHO_T}$ac_header_preproc" >&6
22253
22254# So?  What about this header?
22255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22256  yes:no: )
22257    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22258echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22259    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22260echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22261    ac_header_preproc=yes
22262    ;;
22263  no:yes:* )
22264    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22265echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22266    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22267echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22268    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22269echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22270    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22271echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22272    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22273echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22274    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22275echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22276    (
22277      cat <<\_ASBOX
22278## ------------------------------------------ ##
22279## Report this to the AC_PACKAGE_NAME lists.  ##
22280## ------------------------------------------ ##
22281_ASBOX
22282    ) |
22283      sed "s/^/$as_me: WARNING:     /" >&2
22284    ;;
22285esac
22286echo "$as_me:$LINENO: checking for $ac_header" >&5
22287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22288if eval "test \"\${$as_ac_Header+set}\" = set"; then
22289  echo $ECHO_N "(cached) $ECHO_C" >&6
22290else
22291  eval "$as_ac_Header=\$ac_header_preproc"
22292fi
22293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22295
22296fi
22297if test `eval echo '${'$as_ac_Header'}'` = yes; then
22298  cat >>confdefs.h <<_ACEOF
22299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22300_ACEOF
22301 cat >>confdefs.h <<\_ACEOF
22302#define HAVE_GETOPT_H 1
22303_ACEOF
22304
22305fi
22306
22307done
22308
22309
22310
22311for ac_func in getopt_long
22312do
22313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22314echo "$as_me:$LINENO: checking for $ac_func" >&5
22315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22316if eval "test \"\${$as_ac_var+set}\" = set"; then
22317  echo $ECHO_N "(cached) $ECHO_C" >&6
22318else
22319  cat >conftest.$ac_ext <<_ACEOF
22320/* confdefs.h.  */
22321_ACEOF
22322cat confdefs.h >>conftest.$ac_ext
22323cat >>conftest.$ac_ext <<_ACEOF
22324/* end confdefs.h.  */
22325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22326   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22327#define $ac_func innocuous_$ac_func
22328
22329/* System header to define __stub macros and hopefully few prototypes,
22330    which can conflict with char $ac_func (); below.
22331    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22332    <limits.h> exists even on freestanding compilers.  */
22333
22334#ifdef __STDC__
22335# include <limits.h>
22336#else
22337# include <assert.h>
22338#endif
22339
22340#undef $ac_func
22341
22342/* Override any gcc2 internal prototype to avoid an error.  */
22343#ifdef __cplusplus
22344extern "C"
22345{
22346#endif
22347/* We use char because int might match the return type of a gcc2
22348   builtin and then its argument prototype would still apply.  */
22349char $ac_func ();
22350/* The GNU C library defines this for functions which it implements
22351    to always fail with ENOSYS.  Some functions are actually named
22352    something starting with __ and the normal name is an alias.  */
22353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22354choke me
22355#else
22356char (*f) () = $ac_func;
22357#endif
22358#ifdef __cplusplus
22359}
22360#endif
22361
22362int
22363main ()
22364{
22365return f != $ac_func;
22366  ;
22367  return 0;
22368}
22369_ACEOF
22370rm -f conftest.$ac_objext conftest$ac_exeext
22371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22372  (eval $ac_link) 2>conftest.er1
22373  ac_status=$?
22374  grep -v '^ *+' conftest.er1 >conftest.err
22375  rm -f conftest.er1
22376  cat conftest.err >&5
22377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378  (exit $ac_status); } &&
22379	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381  (eval $ac_try) 2>&5
22382  ac_status=$?
22383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384  (exit $ac_status); }; } &&
22385	 { ac_try='test -s conftest$ac_exeext'
22386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387  (eval $ac_try) 2>&5
22388  ac_status=$?
22389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390  (exit $ac_status); }; }; then
22391  eval "$as_ac_var=yes"
22392else
22393  echo "$as_me: failed program was:" >&5
22394sed 's/^/| /' conftest.$ac_ext >&5
22395
22396eval "$as_ac_var=no"
22397fi
22398rm -f conftest.err conftest.$ac_objext \
22399      conftest$ac_exeext conftest.$ac_ext
22400fi
22401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22403if test `eval echo '${'$as_ac_var'}'` = yes; then
22404  cat >>confdefs.h <<_ACEOF
22405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22406_ACEOF
22407
22408fi
22409done
22410
22411
22412                                                                                                                        ac_config_files="$ac_config_files Makefile gts.pc gts.spec src/Makefile src/gts-config tools/Makefile doc/Makefile examples/Makefile test/Makefile test/boolean/Makefile test/delaunay/Makefile test/coarsen/Makefile"
22413
22414cat >confcache <<\_ACEOF
22415# This file is a shell script that caches the results of configure
22416# tests run on this system so they can be shared between configure
22417# scripts and configure runs, see configure's option --config-cache.
22418# It is not useful on other systems.  If it contains results you don't
22419# want to keep, you may remove or edit it.
22420#
22421# config.status only pays attention to the cache file if you give it
22422# the --recheck option to rerun configure.
22423#
22424# `ac_cv_env_foo' variables (set or unset) will be overridden when
22425# loading this file, other *unset* `ac_cv_foo' will be assigned the
22426# following values.
22427
22428_ACEOF
22429
22430# The following way of writing the cache mishandles newlines in values,
22431# but we know of no workaround that is simple, portable, and efficient.
22432# So, don't put newlines in cache variables' values.
22433# Ultrix sh set writes to stderr and can't be redirected directly,
22434# and sets the high bit in the cache file unless we assign to the vars.
22435{
22436  (set) 2>&1 |
22437    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22438    *ac_space=\ *)
22439      # `set' does not quote correctly, so add quotes (double-quote
22440      # substitution turns \\\\ into \\, and sed turns \\ into \).
22441      sed -n \
22442	"s/'/'\\\\''/g;
22443	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22444      ;;
22445    *)
22446      # `set' quotes correctly as required by POSIX, so do not add quotes.
22447      sed -n \
22448	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22449      ;;
22450    esac;
22451} |
22452  sed '
22453     t clear
22454     : clear
22455     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22456     t end
22457     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22458     : end' >>confcache
22459if diff $cache_file confcache >/dev/null 2>&1; then :; else
22460  if test -w $cache_file; then
22461    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22462    cat confcache >$cache_file
22463  else
22464    echo "not updating unwritable cache $cache_file"
22465  fi
22466fi
22467rm -f confcache
22468
22469test "x$prefix" = xNONE && prefix=$ac_default_prefix
22470# Let make expand exec_prefix.
22471test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22472
22473# VPATH may cause trouble with some makes, so we remove $(srcdir),
22474# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22475# trailing colons and then remove the whole line if VPATH becomes empty
22476# (actually we leave an empty line to preserve line numbers).
22477if test "x$srcdir" = x.; then
22478  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22479s/:*\$(srcdir):*/:/;
22480s/:*\${srcdir}:*/:/;
22481s/:*@srcdir@:*/:/;
22482s/^\([^=]*=[	 ]*\):*/\1/;
22483s/:*$//;
22484s/^[^=]*=[	 ]*$//;
22485}'
22486fi
22487
22488DEFS=-DHAVE_CONFIG_H
22489
22490ac_libobjs=
22491ac_ltlibobjs=
22492for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22493  # 1. Remove the extension, and $U if already installed.
22494  ac_i=`echo "$ac_i" |
22495	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22496  # 2. Add them.
22497  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22498  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22499done
22500LIBOBJS=$ac_libobjs
22501
22502LTLIBOBJS=$ac_ltlibobjs
22503
22504
22505if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22506  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22507Usually this means the macro was only invoked conditionally." >&5
22508echo "$as_me: error: conditional \"AMDEP\" was never defined.
22509Usually this means the macro was only invoked conditionally." >&2;}
22510   { (exit 1); exit 1; }; }
22511fi
22512if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22513  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22514Usually this means the macro was only invoked conditionally." >&5
22515echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22516Usually this means the macro was only invoked conditionally." >&2;}
22517   { (exit 1); exit 1; }; }
22518fi
22519if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22520  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22521Usually this means the macro was only invoked conditionally." >&5
22522echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22523Usually this means the macro was only invoked conditionally." >&2;}
22524   { (exit 1); exit 1; }; }
22525fi
22526if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22527  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22528Usually this means the macro was only invoked conditionally." >&5
22529echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22530Usually this means the macro was only invoked conditionally." >&2;}
22531   { (exit 1); exit 1; }; }
22532fi
22533if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22534  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22535Usually this means the macro was only invoked conditionally." >&5
22536echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22537Usually this means the macro was only invoked conditionally." >&2;}
22538   { (exit 1); exit 1; }; }
22539fi
22540if test -z "${HAS_NETPBM_TRUE}" && test -z "${HAS_NETPBM_FALSE}"; then
22541  { { echo "$as_me:$LINENO: error: conditional \"HAS_NETPBM\" was never defined.
22542Usually this means the macro was only invoked conditionally." >&5
22543echo "$as_me: error: conditional \"HAS_NETPBM\" was never defined.
22544Usually this means the macro was only invoked conditionally." >&2;}
22545   { (exit 1); exit 1; }; }
22546fi
22547
22548: ${CONFIG_STATUS=./config.status}
22549ac_clean_files_save=$ac_clean_files
22550ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22551{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22552echo "$as_me: creating $CONFIG_STATUS" >&6;}
22553cat >$CONFIG_STATUS <<_ACEOF
22554#! $SHELL
22555# Generated by $as_me.
22556# Run this file to recreate the current configuration.
22557# Compiler output produced by configure, useful for debugging
22558# configure, is in config.log if it exists.
22559
22560debug=false
22561ac_cs_recheck=false
22562ac_cs_silent=false
22563SHELL=\${CONFIG_SHELL-$SHELL}
22564_ACEOF
22565
22566cat >>$CONFIG_STATUS <<\_ACEOF
22567## --------------------- ##
22568## M4sh Initialization.  ##
22569## --------------------- ##
22570
22571# Be Bourne compatible
22572if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22573  emulate sh
22574  NULLCMD=:
22575  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22576  # is contrary to our usage.  Disable this feature.
22577  alias -g '${1+"$@"}'='"$@"'
22578elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22579  set -o posix
22580fi
22581DUALCASE=1; export DUALCASE # for MKS sh
22582
22583# Support unset when possible.
22584if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22585  as_unset=unset
22586else
22587  as_unset=false
22588fi
22589
22590
22591# Work around bugs in pre-3.0 UWIN ksh.
22592$as_unset ENV MAIL MAILPATH
22593PS1='$ '
22594PS2='> '
22595PS4='+ '
22596
22597# NLS nuisances.
22598for as_var in \
22599  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22600  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22601  LC_TELEPHONE LC_TIME
22602do
22603  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22604    eval $as_var=C; export $as_var
22605  else
22606    $as_unset $as_var
22607  fi
22608done
22609
22610# Required to use basename.
22611if expr a : '\(a\)' >/dev/null 2>&1; then
22612  as_expr=expr
22613else
22614  as_expr=false
22615fi
22616
22617if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22618  as_basename=basename
22619else
22620  as_basename=false
22621fi
22622
22623
22624# Name of the executable.
22625as_me=`$as_basename "$0" ||
22626$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22627	 X"$0" : 'X\(//\)$' \| \
22628	 X"$0" : 'X\(/\)$' \| \
22629	 .     : '\(.\)' 2>/dev/null ||
22630echo X/"$0" |
22631    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22632  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22633  	  /^X\/\(\/\).*/{ s//\1/; q; }
22634  	  s/.*/./; q'`
22635
22636
22637# PATH needs CR, and LINENO needs CR and PATH.
22638# Avoid depending upon Character Ranges.
22639as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22640as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22641as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22642as_cr_digits='0123456789'
22643as_cr_alnum=$as_cr_Letters$as_cr_digits
22644
22645# The user is always right.
22646if test "${PATH_SEPARATOR+set}" != set; then
22647  echo "#! /bin/sh" >conf$$.sh
22648  echo  "exit 0"   >>conf$$.sh
22649  chmod +x conf$$.sh
22650  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22651    PATH_SEPARATOR=';'
22652  else
22653    PATH_SEPARATOR=:
22654  fi
22655  rm -f conf$$.sh
22656fi
22657
22658
22659  as_lineno_1=$LINENO
22660  as_lineno_2=$LINENO
22661  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22662  test "x$as_lineno_1" != "x$as_lineno_2" &&
22663  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22664  # Find who we are.  Look in the path if we contain no path at all
22665  # relative or not.
22666  case $0 in
22667    *[\\/]* ) as_myself=$0 ;;
22668    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22669for as_dir in $PATH
22670do
22671  IFS=$as_save_IFS
22672  test -z "$as_dir" && as_dir=.
22673  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22674done
22675
22676       ;;
22677  esac
22678  # We did not find ourselves, most probably we were run as `sh COMMAND'
22679  # in which case we are not to be found in the path.
22680  if test "x$as_myself" = x; then
22681    as_myself=$0
22682  fi
22683  if test ! -f "$as_myself"; then
22684    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22685echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22686   { (exit 1); exit 1; }; }
22687  fi
22688  case $CONFIG_SHELL in
22689  '')
22690    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22691for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22692do
22693  IFS=$as_save_IFS
22694  test -z "$as_dir" && as_dir=.
22695  for as_base in sh bash ksh sh5; do
22696	 case $as_dir in
22697	 /*)
22698	   if ("$as_dir/$as_base" -c '
22699  as_lineno_1=$LINENO
22700  as_lineno_2=$LINENO
22701  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22702  test "x$as_lineno_1" != "x$as_lineno_2" &&
22703  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22704	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22705	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22706	     CONFIG_SHELL=$as_dir/$as_base
22707	     export CONFIG_SHELL
22708	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22709	   fi;;
22710	 esac
22711       done
22712done
22713;;
22714  esac
22715
22716  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22717  # uniformly replaced by the line number.  The first 'sed' inserts a
22718  # line-number line before each line; the second 'sed' does the real
22719  # work.  The second script uses 'N' to pair each line-number line
22720  # with the numbered line, and appends trailing '-' during
22721  # substitution so that $LINENO is not a special case at line end.
22722  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22723  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22724  sed '=' <$as_myself |
22725    sed '
22726      N
22727      s,$,-,
22728      : loop
22729      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22730      t loop
22731      s,-$,,
22732      s,^['$as_cr_digits']*\n,,
22733    ' >$as_me.lineno &&
22734  chmod +x $as_me.lineno ||
22735    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22736echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22737   { (exit 1); exit 1; }; }
22738
22739  # Don't try to exec as it changes $[0], causing all sort of problems
22740  # (the dirname of $[0] is not the place where we might find the
22741  # original and so on.  Autoconf is especially sensible to this).
22742  . ./$as_me.lineno
22743  # Exit status is that of the last command.
22744  exit
22745}
22746
22747
22748case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22749  *c*,-n*) ECHO_N= ECHO_C='
22750' ECHO_T='	' ;;
22751  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22752  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22753esac
22754
22755if expr a : '\(a\)' >/dev/null 2>&1; then
22756  as_expr=expr
22757else
22758  as_expr=false
22759fi
22760
22761rm -f conf$$ conf$$.exe conf$$.file
22762echo >conf$$.file
22763if ln -s conf$$.file conf$$ 2>/dev/null; then
22764  # We could just check for DJGPP; but this test a) works b) is more generic
22765  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22766  if test -f conf$$.exe; then
22767    # Don't use ln at all; we don't have any links
22768    as_ln_s='cp -p'
22769  else
22770    as_ln_s='ln -s'
22771  fi
22772elif ln conf$$.file conf$$ 2>/dev/null; then
22773  as_ln_s=ln
22774else
22775  as_ln_s='cp -p'
22776fi
22777rm -f conf$$ conf$$.exe conf$$.file
22778
22779if mkdir -p . 2>/dev/null; then
22780  as_mkdir_p=:
22781else
22782  test -d ./-p && rmdir ./-p
22783  as_mkdir_p=false
22784fi
22785
22786as_executable_p="test -f"
22787
22788# Sed expression to map a string onto a valid CPP name.
22789as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22790
22791# Sed expression to map a string onto a valid variable name.
22792as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22793
22794
22795# IFS
22796# We need space, tab and new line, in precisely that order.
22797as_nl='
22798'
22799IFS=" 	$as_nl"
22800
22801# CDPATH.
22802$as_unset CDPATH
22803
22804exec 6>&1
22805
22806# Open the log real soon, to keep \$[0] and so on meaningful, and to
22807# report actual input values of CONFIG_FILES etc. instead of their
22808# values after options handling.  Logging --version etc. is OK.
22809exec 5>>config.log
22810{
22811  echo
22812  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22813## Running $as_me. ##
22814_ASBOX
22815} >&5
22816cat >&5 <<_CSEOF
22817
22818This file was extended by $as_me, which was
22819generated by GNU Autoconf 2.59.  Invocation command line was
22820
22821  CONFIG_FILES    = $CONFIG_FILES
22822  CONFIG_HEADERS  = $CONFIG_HEADERS
22823  CONFIG_LINKS    = $CONFIG_LINKS
22824  CONFIG_COMMANDS = $CONFIG_COMMANDS
22825  $ $0 $@
22826
22827_CSEOF
22828echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22829echo >&5
22830_ACEOF
22831
22832# Files that config.status was made for.
22833if test -n "$ac_config_files"; then
22834  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22835fi
22836
22837if test -n "$ac_config_headers"; then
22838  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22839fi
22840
22841if test -n "$ac_config_links"; then
22842  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22843fi
22844
22845if test -n "$ac_config_commands"; then
22846  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22847fi
22848
22849cat >>$CONFIG_STATUS <<\_ACEOF
22850
22851ac_cs_usage="\
22852\`$as_me' instantiates files from templates according to the
22853current configuration.
22854
22855Usage: $0 [OPTIONS] [FILE]...
22856
22857  -h, --help       print this help, then exit
22858  -V, --version    print version number, then exit
22859  -q, --quiet      do not print progress messages
22860  -d, --debug      don't remove temporary files
22861      --recheck    update $as_me by reconfiguring in the same conditions
22862  --file=FILE[:TEMPLATE]
22863		   instantiate the configuration file FILE
22864  --header=FILE[:TEMPLATE]
22865		   instantiate the configuration header FILE
22866
22867Configuration files:
22868$config_files
22869
22870Configuration headers:
22871$config_headers
22872
22873Configuration commands:
22874$config_commands
22875
22876Report bugs to <bug-autoconf@gnu.org>."
22877_ACEOF
22878
22879cat >>$CONFIG_STATUS <<_ACEOF
22880ac_cs_version="\\
22881config.status
22882configured by $0, generated by GNU Autoconf 2.59,
22883  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22884
22885Copyright (C) 2003 Free Software Foundation, Inc.
22886This config.status script is free software; the Free Software Foundation
22887gives unlimited permission to copy, distribute and modify it."
22888srcdir=$srcdir
22889INSTALL="$INSTALL"
22890_ACEOF
22891
22892cat >>$CONFIG_STATUS <<\_ACEOF
22893# If no file are specified by the user, then we need to provide default
22894# value.  By we need to know if files were specified by the user.
22895ac_need_defaults=:
22896while test $# != 0
22897do
22898  case $1 in
22899  --*=*)
22900    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22901    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22902    ac_shift=:
22903    ;;
22904  -*)
22905    ac_option=$1
22906    ac_optarg=$2
22907    ac_shift=shift
22908    ;;
22909  *) # This is not an option, so the user has probably given explicit
22910     # arguments.
22911     ac_option=$1
22912     ac_need_defaults=false;;
22913  esac
22914
22915  case $ac_option in
22916  # Handling of the options.
22917_ACEOF
22918cat >>$CONFIG_STATUS <<\_ACEOF
22919  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22920    ac_cs_recheck=: ;;
22921  --version | --vers* | -V )
22922    echo "$ac_cs_version"; exit 0 ;;
22923  --he | --h)
22924    # Conflict between --help and --header
22925    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22926Try \`$0 --help' for more information." >&5
22927echo "$as_me: error: ambiguous option: $1
22928Try \`$0 --help' for more information." >&2;}
22929   { (exit 1); exit 1; }; };;
22930  --help | --hel | -h )
22931    echo "$ac_cs_usage"; exit 0 ;;
22932  --debug | --d* | -d )
22933    debug=: ;;
22934  --file | --fil | --fi | --f )
22935    $ac_shift
22936    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22937    ac_need_defaults=false;;
22938  --header | --heade | --head | --hea )
22939    $ac_shift
22940    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22941    ac_need_defaults=false;;
22942  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22943  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22944    ac_cs_silent=: ;;
22945
22946  # This is an error.
22947  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22948Try \`$0 --help' for more information." >&5
22949echo "$as_me: error: unrecognized option: $1
22950Try \`$0 --help' for more information." >&2;}
22951   { (exit 1); exit 1; }; } ;;
22952
22953  *) ac_config_targets="$ac_config_targets $1" ;;
22954
22955  esac
22956  shift
22957done
22958
22959ac_configure_extra_args=
22960
22961if $ac_cs_silent; then
22962  exec 6>/dev/null
22963  ac_configure_extra_args="$ac_configure_extra_args --silent"
22964fi
22965
22966_ACEOF
22967cat >>$CONFIG_STATUS <<_ACEOF
22968if \$ac_cs_recheck; then
22969  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22970  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22971fi
22972
22973_ACEOF
22974
22975cat >>$CONFIG_STATUS <<_ACEOF
22976#
22977# INIT-COMMANDS section.
22978#
22979
22980AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22981
22982	gts_defines="
22983#define GTS_MAJOR_VERSION $GTS_MAJOR_VERSION
22984#define GTS_MINOR_VERSION $GTS_MINOR_VERSION
22985#define GTS_MICRO_VERSION $GTS_MICRO_VERSION"
22986	build="$build"
22987
22988
22989_ACEOF
22990
22991
22992
22993cat >>$CONFIG_STATUS <<\_ACEOF
22994for ac_config_target in $ac_config_targets
22995do
22996  case "$ac_config_target" in
22997  # Handling of arguments.
22998  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22999  "gts.pc" ) CONFIG_FILES="$CONFIG_FILES gts.pc" ;;
23000  "gts.spec" ) CONFIG_FILES="$CONFIG_FILES gts.spec" ;;
23001  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23002  "src/gts-config" ) CONFIG_FILES="$CONFIG_FILES src/gts-config" ;;
23003  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23004  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23005  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23006  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23007  "test/boolean/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/boolean/Makefile" ;;
23008  "test/delaunay/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/delaunay/Makefile" ;;
23009  "test/coarsen/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/coarsen/Makefile" ;;
23010  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23011  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23012  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23013  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23014echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23015   { (exit 1); exit 1; }; };;
23016  esac
23017done
23018
23019# If the user did not use the arguments to specify the items to instantiate,
23020# then the envvar interface is used.  Set only those that are not.
23021# We use the long form for the default assignment because of an extremely
23022# bizarre bug on SunOS 4.1.3.
23023if $ac_need_defaults; then
23024  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23025  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23026  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23027fi
23028
23029# Have a temporary directory for convenience.  Make it in the build tree
23030# simply because there is no reason to put it here, and in addition,
23031# creating and moving files from /tmp can sometimes cause problems.
23032# Create a temporary directory, and hook for its removal unless debugging.
23033$debug ||
23034{
23035  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23036  trap '{ (exit 1); exit 1; }' 1 2 13 15
23037}
23038
23039# Create a (secure) tmp directory for tmp files.
23040
23041{
23042  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23043  test -n "$tmp" && test -d "$tmp"
23044}  ||
23045{
23046  tmp=./confstat$$-$RANDOM
23047  (umask 077 && mkdir $tmp)
23048} ||
23049{
23050   echo "$me: cannot create a temporary directory in ." >&2
23051   { (exit 1); exit 1; }
23052}
23053
23054_ACEOF
23055
23056cat >>$CONFIG_STATUS <<_ACEOF
23057
23058#
23059# CONFIG_FILES section.
23060#
23061
23062# No need to generate the scripts if there are no CONFIG_FILES.
23063# This happens for instance when ./config.status config.h
23064if test -n "\$CONFIG_FILES"; then
23065  # Protect against being on the right side of a sed subst in config.status.
23066  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23067   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23068s,@SHELL@,$SHELL,;t t
23069s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23070s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23071s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23072s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23073s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23074s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23075s,@exec_prefix@,$exec_prefix,;t t
23076s,@prefix@,$prefix,;t t
23077s,@program_transform_name@,$program_transform_name,;t t
23078s,@bindir@,$bindir,;t t
23079s,@sbindir@,$sbindir,;t t
23080s,@libexecdir@,$libexecdir,;t t
23081s,@datadir@,$datadir,;t t
23082s,@sysconfdir@,$sysconfdir,;t t
23083s,@sharedstatedir@,$sharedstatedir,;t t
23084s,@localstatedir@,$localstatedir,;t t
23085s,@libdir@,$libdir,;t t
23086s,@includedir@,$includedir,;t t
23087s,@oldincludedir@,$oldincludedir,;t t
23088s,@infodir@,$infodir,;t t
23089s,@mandir@,$mandir,;t t
23090s,@build_alias@,$build_alias,;t t
23091s,@host_alias@,$host_alias,;t t
23092s,@target_alias@,$target_alias,;t t
23093s,@DEFS@,$DEFS,;t t
23094s,@ECHO_C@,$ECHO_C,;t t
23095s,@ECHO_N@,$ECHO_N,;t t
23096s,@ECHO_T@,$ECHO_T,;t t
23097s,@LIBS@,$LIBS,;t t
23098s,@GTS_MAJOR_VERSION@,$GTS_MAJOR_VERSION,;t t
23099s,@GTS_MINOR_VERSION@,$GTS_MINOR_VERSION,;t t
23100s,@GTS_MICRO_VERSION@,$GTS_MICRO_VERSION,;t t
23101s,@GTS_VERSION@,$GTS_VERSION,;t t
23102s,@LT_RELEASE@,$LT_RELEASE,;t t
23103s,@LT_CURRENT@,$LT_CURRENT,;t t
23104s,@LT_REVISION@,$LT_REVISION,;t t
23105s,@LT_AGE@,$LT_AGE,;t t
23106s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23107s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23108s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23109s,@CYGPATH_W@,$CYGPATH_W,;t t
23110s,@PACKAGE@,$PACKAGE,;t t
23111s,@VERSION@,$VERSION,;t t
23112s,@ACLOCAL@,$ACLOCAL,;t t
23113s,@AUTOCONF@,$AUTOCONF,;t t
23114s,@AUTOMAKE@,$AUTOMAKE,;t t
23115s,@AUTOHEADER@,$AUTOHEADER,;t t
23116s,@MAKEINFO@,$MAKEINFO,;t t
23117s,@AMTAR@,$AMTAR,;t t
23118s,@install_sh@,$install_sh,;t t
23119s,@STRIP@,$STRIP,;t t
23120s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23121s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23122s,@mkdir_p@,$mkdir_p,;t t
23123s,@AWK@,$AWK,;t t
23124s,@SET_MAKE@,$SET_MAKE,;t t
23125s,@am__leading_dot@,$am__leading_dot,;t t
23126s,@build@,$build,;t t
23127s,@build_cpu@,$build_cpu,;t t
23128s,@build_vendor@,$build_vendor,;t t
23129s,@build_os@,$build_os,;t t
23130s,@host@,$host,;t t
23131s,@host_cpu@,$host_cpu,;t t
23132s,@host_vendor@,$host_vendor,;t t
23133s,@host_os@,$host_os,;t t
23134s,@CC@,$CC,;t t
23135s,@CFLAGS@,$CFLAGS,;t t
23136s,@LDFLAGS@,$LDFLAGS,;t t
23137s,@CPPFLAGS@,$CPPFLAGS,;t t
23138s,@ac_ct_CC@,$ac_ct_CC,;t t
23139s,@EXEEXT@,$EXEEXT,;t t
23140s,@OBJEXT@,$OBJEXT,;t t
23141s,@DEPDIR@,$DEPDIR,;t t
23142s,@am__include@,$am__include,;t t
23143s,@am__quote@,$am__quote,;t t
23144s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23145s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23146s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23147s,@CCDEPMODE@,$CCDEPMODE,;t t
23148s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23149s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23150s,@EGREP@,$EGREP,;t t
23151s,@LN_S@,$LN_S,;t t
23152s,@ECHO@,$ECHO,;t t
23153s,@AR@,$AR,;t t
23154s,@ac_ct_AR@,$ac_ct_AR,;t t
23155s,@RANLIB@,$RANLIB,;t t
23156s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23157s,@CPP@,$CPP,;t t
23158s,@CXX@,$CXX,;t t
23159s,@CXXFLAGS@,$CXXFLAGS,;t t
23160s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23161s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23162s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23163s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23164s,@CXXCPP@,$CXXCPP,;t t
23165s,@F77@,$F77,;t t
23166s,@FFLAGS@,$FFLAGS,;t t
23167s,@ac_ct_F77@,$ac_ct_F77,;t t
23168s,@LIBTOOL@,$LIBTOOL,;t t
23169s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23170s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23171s,@MAINT@,$MAINT,;t t
23172s,@HAS_NETPBM_TRUE@,$HAS_NETPBM_TRUE,;t t
23173s,@HAS_NETPBM_FALSE@,$HAS_NETPBM_FALSE,;t t
23174s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23175s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
23176s,@GLIB_LIBS@,$GLIB_LIBS,;t t
23177s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
23178s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
23179s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
23180s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t
23181s,@glib_cflags@,$glib_cflags,;t t
23182s,@glib_libs@,$glib_libs,;t t
23183s,@glib_thread_cflags@,$glib_thread_cflags,;t t
23184s,@glib_thread_libs@,$glib_thread_libs,;t t
23185s,@glib_module_cflags@,$glib_module_cflags,;t t
23186s,@glib_module_libs@,$glib_module_libs,;t t
23187s,@GLIB_DEPLIBS@,$GLIB_DEPLIBS,;t t
23188s,@LIBOBJS@,$LIBOBJS,;t t
23189s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23190CEOF
23191
23192_ACEOF
23193
23194  cat >>$CONFIG_STATUS <<\_ACEOF
23195  # Split the substitutions into bite-sized pieces for seds with
23196  # small command number limits, like on Digital OSF/1 and HP-UX.
23197  ac_max_sed_lines=48
23198  ac_sed_frag=1 # Number of current file.
23199  ac_beg=1 # First line for current file.
23200  ac_end=$ac_max_sed_lines # Line after last line for current file.
23201  ac_more_lines=:
23202  ac_sed_cmds=
23203  while $ac_more_lines; do
23204    if test $ac_beg -gt 1; then
23205      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23206    else
23207      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23208    fi
23209    if test ! -s $tmp/subs.frag; then
23210      ac_more_lines=false
23211    else
23212      # The purpose of the label and of the branching condition is to
23213      # speed up the sed processing (if there are no `@' at all, there
23214      # is no need to browse any of the substitutions).
23215      # These are the two extra sed commands mentioned above.
23216      (echo ':t
23217  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23218      if test -z "$ac_sed_cmds"; then
23219	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23220      else
23221	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23222      fi
23223      ac_sed_frag=`expr $ac_sed_frag + 1`
23224      ac_beg=$ac_end
23225      ac_end=`expr $ac_end + $ac_max_sed_lines`
23226    fi
23227  done
23228  if test -z "$ac_sed_cmds"; then
23229    ac_sed_cmds=cat
23230  fi
23231fi # test -n "$CONFIG_FILES"
23232
23233_ACEOF
23234cat >>$CONFIG_STATUS <<\_ACEOF
23235for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23236  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23237  case $ac_file in
23238  - | *:- | *:-:* ) # input from stdin
23239	cat >$tmp/stdin
23240	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23241	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23242  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23243	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23244  * )   ac_file_in=$ac_file.in ;;
23245  esac
23246
23247  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23248  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23249$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23250	 X"$ac_file" : 'X\(//\)[^/]' \| \
23251	 X"$ac_file" : 'X\(//\)$' \| \
23252	 X"$ac_file" : 'X\(/\)' \| \
23253	 .     : '\(.\)' 2>/dev/null ||
23254echo X"$ac_file" |
23255    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23256  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23257  	  /^X\(\/\/\)$/{ s//\1/; q; }
23258  	  /^X\(\/\).*/{ s//\1/; q; }
23259  	  s/.*/./; q'`
23260  { if $as_mkdir_p; then
23261    mkdir -p "$ac_dir"
23262  else
23263    as_dir="$ac_dir"
23264    as_dirs=
23265    while test ! -d "$as_dir"; do
23266      as_dirs="$as_dir $as_dirs"
23267      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23268$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23269	 X"$as_dir" : 'X\(//\)[^/]' \| \
23270	 X"$as_dir" : 'X\(//\)$' \| \
23271	 X"$as_dir" : 'X\(/\)' \| \
23272	 .     : '\(.\)' 2>/dev/null ||
23273echo X"$as_dir" |
23274    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23275  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23276  	  /^X\(\/\/\)$/{ s//\1/; q; }
23277  	  /^X\(\/\).*/{ s//\1/; q; }
23278  	  s/.*/./; q'`
23279    done
23280    test ! -n "$as_dirs" || mkdir $as_dirs
23281  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23282echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23283   { (exit 1); exit 1; }; }; }
23284
23285  ac_builddir=.
23286
23287if test "$ac_dir" != .; then
23288  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23289  # A "../" for each directory in $ac_dir_suffix.
23290  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23291else
23292  ac_dir_suffix= ac_top_builddir=
23293fi
23294
23295case $srcdir in
23296  .)  # No --srcdir option.  We are building in place.
23297    ac_srcdir=.
23298    if test -z "$ac_top_builddir"; then
23299       ac_top_srcdir=.
23300    else
23301       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23302    fi ;;
23303  [\\/]* | ?:[\\/]* )  # Absolute path.
23304    ac_srcdir=$srcdir$ac_dir_suffix;
23305    ac_top_srcdir=$srcdir ;;
23306  *) # Relative path.
23307    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23308    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23309esac
23310
23311# Do not use `cd foo && pwd` to compute absolute paths, because
23312# the directories may not exist.
23313case `pwd` in
23314.) ac_abs_builddir="$ac_dir";;
23315*)
23316  case "$ac_dir" in
23317  .) ac_abs_builddir=`pwd`;;
23318  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23319  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23320  esac;;
23321esac
23322case $ac_abs_builddir in
23323.) ac_abs_top_builddir=${ac_top_builddir}.;;
23324*)
23325  case ${ac_top_builddir}. in
23326  .) ac_abs_top_builddir=$ac_abs_builddir;;
23327  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23328  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23329  esac;;
23330esac
23331case $ac_abs_builddir in
23332.) ac_abs_srcdir=$ac_srcdir;;
23333*)
23334  case $ac_srcdir in
23335  .) ac_abs_srcdir=$ac_abs_builddir;;
23336  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23337  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23338  esac;;
23339esac
23340case $ac_abs_builddir in
23341.) ac_abs_top_srcdir=$ac_top_srcdir;;
23342*)
23343  case $ac_top_srcdir in
23344  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23345  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23346  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23347  esac;;
23348esac
23349
23350
23351  case $INSTALL in
23352  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23353  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23354  esac
23355
23356  # Let's still pretend it is `configure' which instantiates (i.e., don't
23357  # use $as_me), people would be surprised to read:
23358  #    /* config.h.  Generated by config.status.  */
23359  if test x"$ac_file" = x-; then
23360    configure_input=
23361  else
23362    configure_input="$ac_file.  "
23363  fi
23364  configure_input=$configure_input"Generated from `echo $ac_file_in |
23365				     sed 's,.*/,,'` by configure."
23366
23367  # First look for the input files in the build tree, otherwise in the
23368  # src tree.
23369  ac_file_inputs=`IFS=:
23370    for f in $ac_file_in; do
23371      case $f in
23372      -) echo $tmp/stdin ;;
23373      [\\/$]*)
23374	 # Absolute (can't be DOS-style, as IFS=:)
23375	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23376echo "$as_me: error: cannot find input file: $f" >&2;}
23377   { (exit 1); exit 1; }; }
23378	 echo "$f";;
23379      *) # Relative
23380	 if test -f "$f"; then
23381	   # Build tree
23382	   echo "$f"
23383	 elif test -f "$srcdir/$f"; then
23384	   # Source tree
23385	   echo "$srcdir/$f"
23386	 else
23387	   # /dev/null tree
23388	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23389echo "$as_me: error: cannot find input file: $f" >&2;}
23390   { (exit 1); exit 1; }; }
23391	 fi;;
23392      esac
23393    done` || { (exit 1); exit 1; }
23394
23395  if test x"$ac_file" != x-; then
23396    { echo "$as_me:$LINENO: creating $ac_file" >&5
23397echo "$as_me: creating $ac_file" >&6;}
23398    rm -f "$ac_file"
23399  fi
23400_ACEOF
23401cat >>$CONFIG_STATUS <<_ACEOF
23402  sed "$ac_vpsub
23403$extrasub
23404_ACEOF
23405cat >>$CONFIG_STATUS <<\_ACEOF
23406:t
23407/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23408s,@configure_input@,$configure_input,;t t
23409s,@srcdir@,$ac_srcdir,;t t
23410s,@abs_srcdir@,$ac_abs_srcdir,;t t
23411s,@top_srcdir@,$ac_top_srcdir,;t t
23412s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23413s,@builddir@,$ac_builddir,;t t
23414s,@abs_builddir@,$ac_abs_builddir,;t t
23415s,@top_builddir@,$ac_top_builddir,;t t
23416s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23417s,@INSTALL@,$ac_INSTALL,;t t
23418" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23419  rm -f $tmp/stdin
23420  if test x"$ac_file" != x-; then
23421    mv $tmp/out $ac_file
23422  else
23423    cat $tmp/out
23424    rm -f $tmp/out
23425  fi
23426
23427done
23428_ACEOF
23429cat >>$CONFIG_STATUS <<\_ACEOF
23430
23431#
23432# CONFIG_HEADER section.
23433#
23434
23435# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23436# NAME is the cpp macro being defined and VALUE is the value it is being given.
23437#
23438# ac_d sets the value in "#define NAME VALUE" lines.
23439ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
23440ac_dB='[	 ].*$,\1#\2'
23441ac_dC=' '
23442ac_dD=',;t'
23443# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23444ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
23445ac_uB='$,\1#\2define\3'
23446ac_uC=' '
23447ac_uD=',;t'
23448
23449for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23450  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23451  case $ac_file in
23452  - | *:- | *:-:* ) # input from stdin
23453	cat >$tmp/stdin
23454	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23455	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23456  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23457	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23458  * )   ac_file_in=$ac_file.in ;;
23459  esac
23460
23461  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23462echo "$as_me: creating $ac_file" >&6;}
23463
23464  # First look for the input files in the build tree, otherwise in the
23465  # src tree.
23466  ac_file_inputs=`IFS=:
23467    for f in $ac_file_in; do
23468      case $f in
23469      -) echo $tmp/stdin ;;
23470      [\\/$]*)
23471	 # Absolute (can't be DOS-style, as IFS=:)
23472	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23473echo "$as_me: error: cannot find input file: $f" >&2;}
23474   { (exit 1); exit 1; }; }
23475	 # Do quote $f, to prevent DOS paths from being IFS'd.
23476	 echo "$f";;
23477      *) # Relative
23478	 if test -f "$f"; then
23479	   # Build tree
23480	   echo "$f"
23481	 elif test -f "$srcdir/$f"; then
23482	   # Source tree
23483	   echo "$srcdir/$f"
23484	 else
23485	   # /dev/null tree
23486	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23487echo "$as_me: error: cannot find input file: $f" >&2;}
23488   { (exit 1); exit 1; }; }
23489	 fi;;
23490      esac
23491    done` || { (exit 1); exit 1; }
23492  # Remove the trailing spaces.
23493  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
23494
23495_ACEOF
23496
23497# Transform confdefs.h into two sed scripts, `conftest.defines' and
23498# `conftest.undefs', that substitutes the proper values into
23499# config.h.in to produce config.h.  The first handles `#define'
23500# templates, and the second `#undef' templates.
23501# And first: Protect against being on the right side of a sed subst in
23502# config.status.  Protect against being in an unquoted here document
23503# in config.status.
23504rm -f conftest.defines conftest.undefs
23505# Using a here document instead of a string reduces the quoting nightmare.
23506# Putting comments in sed scripts is not portable.
23507#
23508# `end' is used to avoid that the second main sed command (meant for
23509# 0-ary CPP macros) applies to n-ary macro definitions.
23510# See the Autoconf documentation for `clear'.
23511cat >confdef2sed.sed <<\_ACEOF
23512s/[\\&,]/\\&/g
23513s,[\\$`],\\&,g
23514t clear
23515: clear
23516s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23517t end
23518s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23519: end
23520_ACEOF
23521# If some macros were called several times there might be several times
23522# the same #defines, which is useless.  Nevertheless, we may not want to
23523# sort them, since we want the *last* AC-DEFINE to be honored.
23524uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23525sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23526rm -f confdef2sed.sed
23527
23528# This sed command replaces #undef with comments.  This is necessary, for
23529# example, in the case of _POSIX_SOURCE, which is predefined and required
23530# on some systems where configure will not decide to define it.
23531cat >>conftest.undefs <<\_ACEOF
23532s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23533_ACEOF
23534
23535# Break up conftest.defines because some shells have a limit on the size
23536# of here documents, and old seds have small limits too (100 cmds).
23537echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23538echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23539echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23540echo '  :' >>$CONFIG_STATUS
23541rm -f conftest.tail
23542while grep . conftest.defines >/dev/null
23543do
23544  # Write a limited-size here document to $tmp/defines.sed.
23545  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23546  # Speed up: don't consider the non `#define' lines.
23547  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
23548  # Work around the forget-to-reset-the-flag bug.
23549  echo 't clr' >>$CONFIG_STATUS
23550  echo ': clr' >>$CONFIG_STATUS
23551  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23552  echo 'CEOF
23553  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23554  rm -f $tmp/in
23555  mv $tmp/out $tmp/in
23556' >>$CONFIG_STATUS
23557  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23558  rm -f conftest.defines
23559  mv conftest.tail conftest.defines
23560done
23561rm -f conftest.defines
23562echo '  fi # grep' >>$CONFIG_STATUS
23563echo >>$CONFIG_STATUS
23564
23565# Break up conftest.undefs because some shells have a limit on the size
23566# of here documents, and old seds have small limits too (100 cmds).
23567echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23568rm -f conftest.tail
23569while grep . conftest.undefs >/dev/null
23570do
23571  # Write a limited-size here document to $tmp/undefs.sed.
23572  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23573  # Speed up: don't consider the non `#undef'
23574  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
23575  # Work around the forget-to-reset-the-flag bug.
23576  echo 't clr' >>$CONFIG_STATUS
23577  echo ': clr' >>$CONFIG_STATUS
23578  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23579  echo 'CEOF
23580  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23581  rm -f $tmp/in
23582  mv $tmp/out $tmp/in
23583' >>$CONFIG_STATUS
23584  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23585  rm -f conftest.undefs
23586  mv conftest.tail conftest.undefs
23587done
23588rm -f conftest.undefs
23589
23590cat >>$CONFIG_STATUS <<\_ACEOF
23591  # Let's still pretend it is `configure' which instantiates (i.e., don't
23592  # use $as_me), people would be surprised to read:
23593  #    /* config.h.  Generated by config.status.  */
23594  if test x"$ac_file" = x-; then
23595    echo "/* Generated by configure.  */" >$tmp/config.h
23596  else
23597    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23598  fi
23599  cat $tmp/in >>$tmp/config.h
23600  rm -f $tmp/in
23601  if test x"$ac_file" != x-; then
23602    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23603      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23604echo "$as_me: $ac_file is unchanged" >&6;}
23605    else
23606      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23607$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23608	 X"$ac_file" : 'X\(//\)[^/]' \| \
23609	 X"$ac_file" : 'X\(//\)$' \| \
23610	 X"$ac_file" : 'X\(/\)' \| \
23611	 .     : '\(.\)' 2>/dev/null ||
23612echo X"$ac_file" |
23613    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23614  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23615  	  /^X\(\/\/\)$/{ s//\1/; q; }
23616  	  /^X\(\/\).*/{ s//\1/; q; }
23617  	  s/.*/./; q'`
23618      { if $as_mkdir_p; then
23619    mkdir -p "$ac_dir"
23620  else
23621    as_dir="$ac_dir"
23622    as_dirs=
23623    while test ! -d "$as_dir"; do
23624      as_dirs="$as_dir $as_dirs"
23625      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23626$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23627	 X"$as_dir" : 'X\(//\)[^/]' \| \
23628	 X"$as_dir" : 'X\(//\)$' \| \
23629	 X"$as_dir" : 'X\(/\)' \| \
23630	 .     : '\(.\)' 2>/dev/null ||
23631echo X"$as_dir" |
23632    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23633  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23634  	  /^X\(\/\/\)$/{ s//\1/; q; }
23635  	  /^X\(\/\).*/{ s//\1/; q; }
23636  	  s/.*/./; q'`
23637    done
23638    test ! -n "$as_dirs" || mkdir $as_dirs
23639  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23640echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23641   { (exit 1); exit 1; }; }; }
23642
23643      rm -f $ac_file
23644      mv $tmp/config.h $ac_file
23645    fi
23646  else
23647    cat $tmp/config.h
23648    rm -f $tmp/config.h
23649  fi
23650# Compute $ac_file's index in $config_headers.
23651_am_stamp_count=1
23652for _am_header in $config_headers :; do
23653  case $_am_header in
23654    $ac_file | $ac_file:* )
23655      break ;;
23656    * )
23657      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23658  esac
23659done
23660echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23661$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23662	 X$ac_file : 'X\(//\)[^/]' \| \
23663	 X$ac_file : 'X\(//\)$' \| \
23664	 X$ac_file : 'X\(/\)' \| \
23665	 .     : '\(.\)' 2>/dev/null ||
23666echo X$ac_file |
23667    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23668  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23669  	  /^X\(\/\/\)$/{ s//\1/; q; }
23670  	  /^X\(\/\).*/{ s//\1/; q; }
23671  	  s/.*/./; q'`/stamp-h$_am_stamp_count
23672done
23673_ACEOF
23674cat >>$CONFIG_STATUS <<\_ACEOF
23675
23676#
23677# CONFIG_COMMANDS section.
23678#
23679for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23680  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23681  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23682  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23683$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23684	 X"$ac_dest" : 'X\(//\)[^/]' \| \
23685	 X"$ac_dest" : 'X\(//\)$' \| \
23686	 X"$ac_dest" : 'X\(/\)' \| \
23687	 .     : '\(.\)' 2>/dev/null ||
23688echo X"$ac_dest" |
23689    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23690  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23691  	  /^X\(\/\/\)$/{ s//\1/; q; }
23692  	  /^X\(\/\).*/{ s//\1/; q; }
23693  	  s/.*/./; q'`
23694  { if $as_mkdir_p; then
23695    mkdir -p "$ac_dir"
23696  else
23697    as_dir="$ac_dir"
23698    as_dirs=
23699    while test ! -d "$as_dir"; do
23700      as_dirs="$as_dir $as_dirs"
23701      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23702$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23703	 X"$as_dir" : 'X\(//\)[^/]' \| \
23704	 X"$as_dir" : 'X\(//\)$' \| \
23705	 X"$as_dir" : 'X\(/\)' \| \
23706	 .     : '\(.\)' 2>/dev/null ||
23707echo X"$as_dir" |
23708    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23709  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23710  	  /^X\(\/\/\)$/{ s//\1/; q; }
23711  	  /^X\(\/\).*/{ s//\1/; q; }
23712  	  s/.*/./; q'`
23713    done
23714    test ! -n "$as_dirs" || mkdir $as_dirs
23715  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23716echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23717   { (exit 1); exit 1; }; }; }
23718
23719  ac_builddir=.
23720
23721if test "$ac_dir" != .; then
23722  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23723  # A "../" for each directory in $ac_dir_suffix.
23724  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23725else
23726  ac_dir_suffix= ac_top_builddir=
23727fi
23728
23729case $srcdir in
23730  .)  # No --srcdir option.  We are building in place.
23731    ac_srcdir=.
23732    if test -z "$ac_top_builddir"; then
23733       ac_top_srcdir=.
23734    else
23735       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23736    fi ;;
23737  [\\/]* | ?:[\\/]* )  # Absolute path.
23738    ac_srcdir=$srcdir$ac_dir_suffix;
23739    ac_top_srcdir=$srcdir ;;
23740  *) # Relative path.
23741    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23742    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23743esac
23744
23745# Do not use `cd foo && pwd` to compute absolute paths, because
23746# the directories may not exist.
23747case `pwd` in
23748.) ac_abs_builddir="$ac_dir";;
23749*)
23750  case "$ac_dir" in
23751  .) ac_abs_builddir=`pwd`;;
23752  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23753  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23754  esac;;
23755esac
23756case $ac_abs_builddir in
23757.) ac_abs_top_builddir=${ac_top_builddir}.;;
23758*)
23759  case ${ac_top_builddir}. in
23760  .) ac_abs_top_builddir=$ac_abs_builddir;;
23761  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23762  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23763  esac;;
23764esac
23765case $ac_abs_builddir in
23766.) ac_abs_srcdir=$ac_srcdir;;
23767*)
23768  case $ac_srcdir in
23769  .) ac_abs_srcdir=$ac_abs_builddir;;
23770  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23771  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23772  esac;;
23773esac
23774case $ac_abs_builddir in
23775.) ac_abs_top_srcdir=$ac_top_srcdir;;
23776*)
23777  case $ac_top_srcdir in
23778  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23779  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23780  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23781  esac;;
23782esac
23783
23784
23785  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23786echo "$as_me: executing $ac_dest commands" >&6;}
23787  case $ac_dest in
23788    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23789  # Strip MF so we end up with the name of the file.
23790  mf=`echo "$mf" | sed -e 's/:.*$//'`
23791  # Check whether this is an Automake generated Makefile or not.
23792  # We used to match only the files named `Makefile.in', but
23793  # some people rename them; so instead we look at the file content.
23794  # Grep'ing the first line is not enough: some people post-process
23795  # each Makefile.in and add a new line on top of each file to say so.
23796  # So let's grep whole file.
23797  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23798    dirpart=`(dirname "$mf") 2>/dev/null ||
23799$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23800	 X"$mf" : 'X\(//\)[^/]' \| \
23801	 X"$mf" : 'X\(//\)$' \| \
23802	 X"$mf" : 'X\(/\)' \| \
23803	 .     : '\(.\)' 2>/dev/null ||
23804echo X"$mf" |
23805    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23806  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23807  	  /^X\(\/\/\)$/{ s//\1/; q; }
23808  	  /^X\(\/\).*/{ s//\1/; q; }
23809  	  s/.*/./; q'`
23810  else
23811    continue
23812  fi
23813  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23814  # Extract the definition of DEP_FILES from the Makefile without
23815  # running `make'.
23816  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23817  test -z "$DEPDIR" && continue
23818  # When using ansi2knr, U may be empty or an underscore; expand it
23819  U=`sed -n 's/^U = //p' < "$mf"`
23820  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23821  # We invoke sed twice because it is the simplest approach to
23822  # changing $(DEPDIR) to its actual value in the expansion.
23823  for file in `sed -n '
23824    /^DEP_FILES = .*\\\\$/ {
23825      s/^DEP_FILES = //
23826      :loop
23827	s/\\\\$//
23828	p
23829	n
23830	/\\\\$/ b loop
23831      p
23832    }
23833    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23834       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23835    # Make sure the directory exists.
23836    test -f "$dirpart/$file" && continue
23837    fdir=`(dirname "$file") 2>/dev/null ||
23838$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23839	 X"$file" : 'X\(//\)[^/]' \| \
23840	 X"$file" : 'X\(//\)$' \| \
23841	 X"$file" : 'X\(/\)' \| \
23842	 .     : '\(.\)' 2>/dev/null ||
23843echo X"$file" |
23844    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23845  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23846  	  /^X\(\/\/\)$/{ s//\1/; q; }
23847  	  /^X\(\/\).*/{ s//\1/; q; }
23848  	  s/.*/./; q'`
23849    { if $as_mkdir_p; then
23850    mkdir -p $dirpart/$fdir
23851  else
23852    as_dir=$dirpart/$fdir
23853    as_dirs=
23854    while test ! -d "$as_dir"; do
23855      as_dirs="$as_dir $as_dirs"
23856      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23857$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23858	 X"$as_dir" : 'X\(//\)[^/]' \| \
23859	 X"$as_dir" : 'X\(//\)$' \| \
23860	 X"$as_dir" : 'X\(/\)' \| \
23861	 .     : '\(.\)' 2>/dev/null ||
23862echo X"$as_dir" |
23863    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23864  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23865  	  /^X\(\/\/\)$/{ s//\1/; q; }
23866  	  /^X\(\/\).*/{ s//\1/; q; }
23867  	  s/.*/./; q'`
23868    done
23869    test ! -n "$as_dirs" || mkdir $as_dirs
23870  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23871echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23872   { (exit 1); exit 1; }; }; }
23873
23874    # echo "creating $dirpart/$file"
23875    echo '# dummy' > "$dirpart/$file"
23876  done
23877done
23878 ;;
23879    default-1 )
23880	echo creating src/gtsconfig.h
23881	cat >src/gtsconfig.h <<\__EOF
23882/* gtsconfig.h
23883 *
23884 * This is a generated file.  Please modify `configure.in'
23885 */
23886
23887#ifndef GTSCONFIG_H
23888#define GTSCONFIG_H
23889
23890__EOF
23891	case "$build" in
23892	*-cray-unicos*)
23893	  echo "/* CRAY inlining directives */" >> src/gtsconfig.h
23894	  awk '
23895BEGIN {
23896  nc = 10;
23897  nf = 0;
23898}
23899{
23900  if ( == "G_INLINE_FUNC") {
23901    nc = 0;
23902    start = 2;
23903  }
23904  else
23905    start = 1;
23906  for (i = start; i <= NF; i++) {
23907    if (nc == 1) {
23908      if (substr ($i, 1, 1) != "*") {
23909	in_list = 0;
23910	for (j = 0; j < nf && !inlist; j++)
23911	  if ($i == f[j])
23912	    inlist = 1;
23913	if (!inlist)
23914          f[nf++] = $i;
23915	nc = 10;
23916      }
23917    }
23918    else
23919      nc++;
23920  }
23921}
23922END {
23923  if (nf > 0) {
23924    printf ("#pragma _CRI inline %s", f[0]);
23925    for (i = 1; i < nf; i++)
23926      printf (", %s", f[i]);
23927    printf ("\n");
23928  }
23929}
23930' < src/gts.h >> src/gtsconfig.h
23931	;;
23932	esac
23933	cat >>src/gtsconfig.h <<__EOF
23934$gts_defines
23935
23936#endif /* GTSCONFIG_H */
23937__EOF
23938 ;;
23939  esac
23940done
23941_ACEOF
23942
23943cat >>$CONFIG_STATUS <<\_ACEOF
23944
23945{ (exit 0); exit 0; }
23946_ACEOF
23947chmod +x $CONFIG_STATUS
23948ac_clean_files=$ac_clean_files_save
23949
23950
23951# configure is writing to config.log, and then calls config.status.
23952# config.status does its own redirection, appending to config.log.
23953# Unfortunately, on DOS this fails, as config.log is still kept open
23954# by configure, so config.status won't be able to write to it; its
23955# output is simply discarded.  So we exec the FD to /dev/null,
23956# effectively closing config.log, so it can be properly (re)opened and
23957# appended to by config.status.  When coming back to configure, we
23958# need to make the FD available again.
23959if test "$no_create" != yes; then
23960  ac_cs_success=:
23961  ac_config_status_args=
23962  test "$silent" = yes &&
23963    ac_config_status_args="$ac_config_status_args --quiet"
23964  exec 5>/dev/null
23965  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23966  exec 5>>config.log
23967  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23968  # would make configure fail if this is the last instruction.
23969  $ac_cs_success || { (exit 1); exit 1; }
23970fi
23971
23972