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="README"
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 MAJOR_VERSION MINOR_VERSION MICRO_VERSION INTERFACE_AGE BINARY_AGE VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SDL_CONFIG SDL_CFLAGS SDL_LIBS 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_CXX_set=${CXX+set}
924ac_env_CXX_value=$CXX
925ac_cv_env_CXX_set=${CXX+set}
926ac_cv_env_CXX_value=$CXX
927ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928ac_env_CXXFLAGS_value=$CXXFLAGS
929ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931ac_env_CPP_set=${CPP+set}
932ac_env_CPP_value=$CPP
933ac_cv_env_CPP_set=${CPP+set}
934ac_cv_env_CPP_value=$CPP
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  --disable-dependency-tracking  speeds up one-time build
1027  --enable-dependency-tracking   do not reject slow dependency extractors
1028  --enable-shared[=PKGS]
1029                          build shared libraries [default=yes]
1030  --enable-static[=PKGS]
1031                          build static libraries [default=yes]
1032  --enable-fast-install[=PKGS]
1033                          optimize for fast installation [default=yes]
1034  --disable-libtool-lock  avoid locking (might break parallel builds)
1035  --disable-sdltest       Do not try to compile and run a test SDL program
1036
1037Optional Packages:
1038  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1041  --with-pic              try to use only PIC/non-PIC objects [default=use
1042                          both]
1043  --with-tags[=TAGS]
1044                          include additional configurations [automatic]
1045  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1046  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1047
1048Some influential environment variables:
1049  CC          C compiler command
1050  CFLAGS      C compiler flags
1051  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1052              nonstandard directory <lib dir>
1053  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054              headers in a nonstandard directory <include dir>
1055  CXX         C++ compiler command
1056  CXXFLAGS    C++ compiler flags
1057  CPP         C preprocessor
1058  CXXCPP      C++ preprocessor
1059  F77         Fortran 77 compiler command
1060  FFLAGS      Fortran 77 compiler flags
1061
1062Use these variables to override the choices made by `configure' or to help
1063it to find libraries and programs with nonstandard names/locations.
1064
1065_ACEOF
1066fi
1067
1068if test "$ac_init_help" = "recursive"; then
1069  # If there are subdirs, report their specific --help.
1070  ac_popdir=`pwd`
1071  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072    test -d $ac_dir || continue
1073    ac_builddir=.
1074
1075if test "$ac_dir" != .; then
1076  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077  # A "../" for each directory in $ac_dir_suffix.
1078  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079else
1080  ac_dir_suffix= ac_top_builddir=
1081fi
1082
1083case $srcdir in
1084  .)  # No --srcdir option.  We are building in place.
1085    ac_srcdir=.
1086    if test -z "$ac_top_builddir"; then
1087       ac_top_srcdir=.
1088    else
1089       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090    fi ;;
1091  [\\/]* | ?:[\\/]* )  # Absolute path.
1092    ac_srcdir=$srcdir$ac_dir_suffix;
1093    ac_top_srcdir=$srcdir ;;
1094  *) # Relative path.
1095    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097esac
1098
1099# Do not use `cd foo && pwd` to compute absolute paths, because
1100# the directories may not exist.
1101case `pwd` in
1102.) ac_abs_builddir="$ac_dir";;
1103*)
1104  case "$ac_dir" in
1105  .) ac_abs_builddir=`pwd`;;
1106  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1107  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108  esac;;
1109esac
1110case $ac_abs_builddir in
1111.) ac_abs_top_builddir=${ac_top_builddir}.;;
1112*)
1113  case ${ac_top_builddir}. in
1114  .) ac_abs_top_builddir=$ac_abs_builddir;;
1115  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1116  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117  esac;;
1118esac
1119case $ac_abs_builddir in
1120.) ac_abs_srcdir=$ac_srcdir;;
1121*)
1122  case $ac_srcdir in
1123  .) ac_abs_srcdir=$ac_abs_builddir;;
1124  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1125  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126  esac;;
1127esac
1128case $ac_abs_builddir in
1129.) ac_abs_top_srcdir=$ac_top_srcdir;;
1130*)
1131  case $ac_top_srcdir in
1132  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1133  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1134  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1135  esac;;
1136esac
1137
1138    cd $ac_dir
1139    # Check for guested configure; otherwise get Cygnus style configure.
1140    if test -f $ac_srcdir/configure.gnu; then
1141      echo
1142      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1143    elif test -f $ac_srcdir/configure; then
1144      echo
1145      $SHELL $ac_srcdir/configure  --help=recursive
1146    elif test -f $ac_srcdir/configure.ac ||
1147	   test -f $ac_srcdir/configure.in; then
1148      echo
1149      $ac_configure --help
1150    else
1151      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1152    fi
1153    cd $ac_popdir
1154  done
1155fi
1156
1157test -n "$ac_init_help" && exit 0
1158if $ac_init_version; then
1159  cat <<\_ACEOF
1160
1161Copyright (C) 2003 Free Software Foundation, Inc.
1162This configure script is free software; the Free Software Foundation
1163gives unlimited permission to copy, distribute and modify it.
1164_ACEOF
1165  exit 0
1166fi
1167exec 5>config.log
1168cat >&5 <<_ACEOF
1169This file contains any messages produced by compilers while
1170running configure, to aid debugging if configure makes a mistake.
1171
1172It was created by $as_me, which was
1173generated by GNU Autoconf 2.59.  Invocation command line was
1174
1175  $ $0 $@
1176
1177_ACEOF
1178{
1179cat <<_ASUNAME
1180## --------- ##
1181## Platform. ##
1182## --------- ##
1183
1184hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188uname -v = `(uname -v) 2>/dev/null || echo unknown`
1189
1190/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1192
1193/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1194/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1195/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1197/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1198/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1199/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1200
1201_ASUNAME
1202
1203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1204for as_dir in $PATH
1205do
1206  IFS=$as_save_IFS
1207  test -z "$as_dir" && as_dir=.
1208  echo "PATH: $as_dir"
1209done
1210
1211} >&5
1212
1213cat >&5 <<_ACEOF
1214
1215
1216## ----------- ##
1217## Core tests. ##
1218## ----------- ##
1219
1220_ACEOF
1221
1222
1223# Keep a trace of the command line.
1224# Strip out --no-create and --no-recursion so they do not pile up.
1225# Strip out --silent because we don't want to record it for future runs.
1226# Also quote any args containing shell meta-characters.
1227# Make two passes to allow for proper duplicate-argument suppression.
1228ac_configure_args=
1229ac_configure_args0=
1230ac_configure_args1=
1231ac_sep=
1232ac_must_keep_next=false
1233for ac_pass in 1 2
1234do
1235  for ac_arg
1236  do
1237    case $ac_arg in
1238    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240    | -silent | --silent | --silen | --sile | --sil)
1241      continue ;;
1242    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244    esac
1245    case $ac_pass in
1246    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1247    2)
1248      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249      if test $ac_must_keep_next = true; then
1250	ac_must_keep_next=false # Got value, back to normal.
1251      else
1252	case $ac_arg in
1253	  *=* | --config-cache | -C | -disable-* | --disable-* \
1254	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256	  | -with-* | --with-* | -without-* | --without-* | --x)
1257	    case "$ac_configure_args0 " in
1258	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259	    esac
1260	    ;;
1261	  -* ) ac_must_keep_next=true ;;
1262	esac
1263      fi
1264      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265      # Get rid of the leading space.
1266      ac_sep=" "
1267      ;;
1268    esac
1269  done
1270done
1271$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1273
1274# When interrupted or exit'd, cleanup temporary files, and complete
1275# config.log.  We remove comments because anyway the quotes in there
1276# would cause problems or look ugly.
1277# WARNING: Be sure not to use single quotes in there, as some shells,
1278# such as our DU 5.0 friend, will then `close' the trap.
1279trap 'exit_status=$?
1280  # Save into config.log some information that might help in debugging.
1281  {
1282    echo
1283
1284    cat <<\_ASBOX
1285## ---------------- ##
1286## Cache variables. ##
1287## ---------------- ##
1288_ASBOX
1289    echo
1290    # The following way of writing the cache mishandles newlines in values,
1291{
1292  (set) 2>&1 |
1293    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294    *ac_space=\ *)
1295      sed -n \
1296	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298      ;;
1299    *)
1300      sed -n \
1301	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1302      ;;
1303    esac;
1304}
1305    echo
1306
1307    cat <<\_ASBOX
1308## ----------------- ##
1309## Output variables. ##
1310## ----------------- ##
1311_ASBOX
1312    echo
1313    for ac_var in $ac_subst_vars
1314    do
1315      eval ac_val=$`echo $ac_var`
1316      echo "$ac_var='"'"'$ac_val'"'"'"
1317    done | sort
1318    echo
1319
1320    if test -n "$ac_subst_files"; then
1321      cat <<\_ASBOX
1322## ------------- ##
1323## Output files. ##
1324## ------------- ##
1325_ASBOX
1326      echo
1327      for ac_var in $ac_subst_files
1328      do
1329	eval ac_val=$`echo $ac_var`
1330	echo "$ac_var='"'"'$ac_val'"'"'"
1331      done | sort
1332      echo
1333    fi
1334
1335    if test -s confdefs.h; then
1336      cat <<\_ASBOX
1337## ----------- ##
1338## confdefs.h. ##
1339## ----------- ##
1340_ASBOX
1341      echo
1342      sed "/^$/d" confdefs.h | sort
1343      echo
1344    fi
1345    test "$ac_signal" != 0 &&
1346      echo "$as_me: caught signal $ac_signal"
1347    echo "$as_me: exit $exit_status"
1348  } >&5
1349  rm -f core *.core &&
1350  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351    exit $exit_status
1352     ' 0
1353for ac_signal in 1 2 13 15; do
1354  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1355done
1356ac_signal=0
1357
1358# confdefs.h avoids OS command line length limits that DEFS can exceed.
1359rm -rf conftest* confdefs.h
1360# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361echo >confdefs.h
1362
1363# Predefined preprocessor variables.
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_NAME "$PACKAGE_NAME"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_VERSION "$PACKAGE_VERSION"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_STRING "$PACKAGE_STRING"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1387_ACEOF
1388
1389
1390# Let the site file select an alternate cache file if it wants to.
1391# Prefer explicitly selected file to automatically selected ones.
1392if test -z "$CONFIG_SITE"; then
1393  if test "x$prefix" != xNONE; then
1394    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1395  else
1396    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397  fi
1398fi
1399for ac_site_file in $CONFIG_SITE; do
1400  if test -r "$ac_site_file"; then
1401    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402echo "$as_me: loading site script $ac_site_file" >&6;}
1403    sed 's/^/| /' "$ac_site_file" >&5
1404    . "$ac_site_file"
1405  fi
1406done
1407
1408if test -r "$cache_file"; then
1409  # Some versions of bash will fail to source /dev/null (special
1410  # files actually), so we avoid doing that.
1411  if test -f "$cache_file"; then
1412    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413echo "$as_me: loading cache $cache_file" >&6;}
1414    case $cache_file in
1415      [\\/]* | ?:[\\/]* ) . $cache_file;;
1416      *)                      . ./$cache_file;;
1417    esac
1418  fi
1419else
1420  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421echo "$as_me: creating cache $cache_file" >&6;}
1422  >$cache_file
1423fi
1424
1425# Check that the precious variables saved in the cache have kept the same
1426# value.
1427ac_cache_corrupted=false
1428for ac_var in `(set) 2>&1 |
1429	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431  eval ac_new_set=\$ac_env_${ac_var}_set
1432  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433  eval ac_new_val="\$ac_env_${ac_var}_value"
1434  case $ac_old_set,$ac_new_set in
1435    set,)
1436      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438      ac_cache_corrupted=: ;;
1439    ,set)
1440      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442      ac_cache_corrupted=: ;;
1443    ,);;
1444    *)
1445      if test "x$ac_old_val" != "x$ac_new_val"; then
1446	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1449echo "$as_me:   former value:  $ac_old_val" >&2;}
1450	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1451echo "$as_me:   current value: $ac_new_val" >&2;}
1452	ac_cache_corrupted=:
1453      fi;;
1454  esac
1455  # Pass precious variables to config.status.
1456  if test "$ac_new_set" = set; then
1457    case $ac_new_val in
1458    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460    *) ac_arg=$ac_var=$ac_new_val ;;
1461    esac
1462    case " $ac_configure_args " in
1463      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1464      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1465    esac
1466  fi
1467done
1468if $ac_cache_corrupted; then
1469  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473   { (exit 1); exit 1; }; }
1474fi
1475
1476ac_ext=c
1477ac_cpp='$CPP $CPPFLAGS'
1478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502# Making releases:
1503#   MICRO_VERSION += 1;
1504#   INTERFACE_AGE += 1;
1505#   BINARY_AGE += 1;
1506# if any functions have been added, set INTERFACE_AGE to 0.
1507# if backwards compatibility has been broken,
1508# set BINARY_AGE and INTERFACE_AGE to 0.
1509
1510MAJOR_VERSION=1
1511MINOR_VERSION=2
1512MICRO_VERSION=1
1513INTERFACE_AGE=1
1514BINARY_AGE=1
1515VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
1516
1517
1518
1519
1520
1521
1522
1523
1524# libtool versioning
1525LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
1526LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
1527LT_REVISION=$INTERFACE_AGE
1528LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
1529
1530
1531
1532
1533
1534
1535ac_aux_dir=
1536for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1537  if test -f $ac_dir/install-sh; then
1538    ac_aux_dir=$ac_dir
1539    ac_install_sh="$ac_aux_dir/install-sh -c"
1540    break
1541  elif test -f $ac_dir/install.sh; then
1542    ac_aux_dir=$ac_dir
1543    ac_install_sh="$ac_aux_dir/install.sh -c"
1544    break
1545  elif test -f $ac_dir/shtool; then
1546    ac_aux_dir=$ac_dir
1547    ac_install_sh="$ac_aux_dir/shtool install -c"
1548    break
1549  fi
1550done
1551if test -z "$ac_aux_dir"; then
1552  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1554   { (exit 1); exit 1; }; }
1555fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560# Make sure we can run config.sub.
1561$ac_config_sub sun4 >/dev/null 2>&1 ||
1562  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1563echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1564   { (exit 1); exit 1; }; }
1565
1566echo "$as_me:$LINENO: checking build system type" >&5
1567echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568if test "${ac_cv_build+set}" = set; then
1569  echo $ECHO_N "(cached) $ECHO_C" >&6
1570else
1571  ac_cv_build_alias=$build_alias
1572test -z "$ac_cv_build_alias" &&
1573  ac_cv_build_alias=`$ac_config_guess`
1574test -z "$ac_cv_build_alias" &&
1575  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1576echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1577   { (exit 1); exit 1; }; }
1578ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1579  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1580echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1581   { (exit 1); exit 1; }; }
1582
1583fi
1584echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1585echo "${ECHO_T}$ac_cv_build" >&6
1586build=$ac_cv_build
1587build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590
1591
1592echo "$as_me:$LINENO: checking host system type" >&5
1593echo $ECHO_N "checking host system type... $ECHO_C" >&6
1594if test "${ac_cv_host+set}" = set; then
1595  echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597  ac_cv_host_alias=$host_alias
1598test -z "$ac_cv_host_alias" &&
1599  ac_cv_host_alias=$ac_cv_build_alias
1600ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1601  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1602echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1603   { (exit 1); exit 1; }; }
1604
1605fi
1606echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1607echo "${ECHO_T}$ac_cv_host" >&6
1608host=$ac_cv_host
1609host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1610host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1611host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612
1613
1614
1615am__api_version="1.9"
1616# Find a good install program.  We prefer a C program (faster),
1617# so one script is as good as another.  But avoid the broken or
1618# incompatible versions:
1619# SysV /etc/install, /usr/sbin/install
1620# SunOS /usr/etc/install
1621# IRIX /sbin/install
1622# AIX /bin/install
1623# AmigaOS /C/install, which installs bootblocks on floppy discs
1624# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1625# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1626# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1627# OS/2's system install, which has a completely different semantic
1628# ./install, which can be erroneously created by make from ./install.sh.
1629echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1630echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1631if test -z "$INSTALL"; then
1632if test "${ac_cv_path_install+set}" = set; then
1633  echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638  IFS=$as_save_IFS
1639  test -z "$as_dir" && as_dir=.
1640  # Account for people who put trailing slashes in PATH elements.
1641case $as_dir/ in
1642  ./ | .// | /cC/* | \
1643  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1644  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1645  /usr/ucb/* ) ;;
1646  *)
1647    # OSF1 and SCO ODT 3.0 have their own names for install.
1648    # Don't use installbsd from OSF since it installs stuff as root
1649    # by default.
1650    for ac_prog in ginstall scoinst install; do
1651      for ac_exec_ext in '' $ac_executable_extensions; do
1652	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1653	  if test $ac_prog = install &&
1654	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1655	    # AIX install.  It has an incompatible calling convention.
1656	    :
1657	  elif test $ac_prog = install &&
1658	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1659	    # program-specific install script used by HP pwplus--don't use.
1660	    :
1661	  else
1662	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1663	    break 3
1664	  fi
1665	fi
1666      done
1667    done
1668    ;;
1669esac
1670done
1671
1672
1673fi
1674  if test "${ac_cv_path_install+set}" = set; then
1675    INSTALL=$ac_cv_path_install
1676  else
1677    # As a last resort, use the slow shell script.  We don't cache a
1678    # path for INSTALL within a source directory, because that will
1679    # break other packages using the cache if that directory is
1680    # removed, or if the path is relative.
1681    INSTALL=$ac_install_sh
1682  fi
1683fi
1684echo "$as_me:$LINENO: result: $INSTALL" >&5
1685echo "${ECHO_T}$INSTALL" >&6
1686
1687# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1688# It thinks the first close brace ends the variable substitution.
1689test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1690
1691test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1692
1693test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1694
1695echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1696echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1697# Just in case
1698sleep 1
1699echo timestamp > conftest.file
1700# Do `set' in a subshell so we don't clobber the current shell's
1701# arguments.  Must try -L first in case configure is actually a
1702# symlink; some systems play weird games with the mod time of symlinks
1703# (eg FreeBSD returns the mod time of the symlink's containing
1704# directory).
1705if (
1706   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1707   if test "$*" = "X"; then
1708      # -L didn't work.
1709      set X `ls -t $srcdir/configure conftest.file`
1710   fi
1711   rm -f conftest.file
1712   if test "$*" != "X $srcdir/configure conftest.file" \
1713      && test "$*" != "X conftest.file $srcdir/configure"; then
1714
1715      # If neither matched, then we have a broken ls.  This can happen
1716      # if, for instance, CONFIG_SHELL is bash and it inherits a
1717      # broken ls alias from the environment.  This has actually
1718      # happened.  Such a system could not be considered "sane".
1719      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1720alias in your environment" >&5
1721echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1722alias in your environment" >&2;}
1723   { (exit 1); exit 1; }; }
1724   fi
1725
1726   test "$2" = conftest.file
1727   )
1728then
1729   # Ok.
1730   :
1731else
1732   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1733Check your system clock" >&5
1734echo "$as_me: error: newly created file is older than distributed files!
1735Check your system clock" >&2;}
1736   { (exit 1); exit 1; }; }
1737fi
1738echo "$as_me:$LINENO: result: yes" >&5
1739echo "${ECHO_T}yes" >&6
1740test "$program_prefix" != NONE &&
1741  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742# Use a double $ so make ignores it.
1743test "$program_suffix" != NONE &&
1744  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745# Double any \ or $.  echo might interpret backslashes.
1746# By default was `s,x,x', remove it if useless.
1747cat <<\_ACEOF >conftest.sed
1748s/[\\$]/&&/g;s/;s,x,x,$//
1749_ACEOF
1750program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1751rm conftest.sed
1752
1753# expand $ac_aux_dir to an absolute path
1754am_aux_dir=`cd $ac_aux_dir && pwd`
1755
1756test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1757# Use eval to expand $SHELL
1758if eval "$MISSING --run true"; then
1759  am_missing_run="$MISSING --run "
1760else
1761  am_missing_run=
1762  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1763echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1764fi
1765
1766if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1767  # We used to keeping the `.' as first argument, in order to
1768  # allow $(mkdir_p) to be used without argument.  As in
1769  #   $(mkdir_p) $(somedir)
1770  # where $(somedir) is conditionally defined.  However this is wrong
1771  # for two reasons:
1772  #  1. if the package is installed by a user who cannot write `.'
1773  #     make install will fail,
1774  #  2. the above comment should most certainly read
1775  #     $(mkdir_p) $(DESTDIR)$(somedir)
1776  #     so it does not work when $(somedir) is undefined and
1777  #     $(DESTDIR) is not.
1778  #  To support the latter case, we have to write
1779  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1780  #  so the `.' trick is pointless.
1781  mkdir_p='mkdir -p --'
1782else
1783  # On NextStep and OpenStep, the `mkdir' command does not
1784  # recognize any option.  It will interpret all options as
1785  # directories to create, and then abort because `.' already
1786  # exists.
1787  for d in ./-p ./--version;
1788  do
1789    test -d $d && rmdir $d
1790  done
1791  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1792  if test -f "$ac_aux_dir/mkinstalldirs"; then
1793    mkdir_p='$(mkinstalldirs)'
1794  else
1795    mkdir_p='$(install_sh) -d'
1796  fi
1797fi
1798
1799for ac_prog in gawk mawk nawk awk
1800do
1801  # Extract the first word of "$ac_prog", so it can be a program name with args.
1802set dummy $ac_prog; ac_word=$2
1803echo "$as_me:$LINENO: checking for $ac_word" >&5
1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805if test "${ac_cv_prog_AWK+set}" = set; then
1806  echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808  if test -n "$AWK"; then
1809  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
1814  IFS=$as_save_IFS
1815  test -z "$as_dir" && as_dir=.
1816  for ac_exec_ext in '' $ac_executable_extensions; do
1817  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818    ac_cv_prog_AWK="$ac_prog"
1819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820    break 2
1821  fi
1822done
1823done
1824
1825fi
1826fi
1827AWK=$ac_cv_prog_AWK
1828if test -n "$AWK"; then
1829  echo "$as_me:$LINENO: result: $AWK" >&5
1830echo "${ECHO_T}$AWK" >&6
1831else
1832  echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
1836  test -n "$AWK" && break
1837done
1838
1839echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1840echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1841set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1842if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1843  echo $ECHO_N "(cached) $ECHO_C" >&6
1844else
1845  cat >conftest.make <<\_ACEOF
1846all:
1847	@echo 'ac_maketemp="$(MAKE)"'
1848_ACEOF
1849# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1850eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1851if test -n "$ac_maketemp"; then
1852  eval ac_cv_prog_make_${ac_make}_set=yes
1853else
1854  eval ac_cv_prog_make_${ac_make}_set=no
1855fi
1856rm -f conftest.make
1857fi
1858if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1859  echo "$as_me:$LINENO: result: yes" >&5
1860echo "${ECHO_T}yes" >&6
1861  SET_MAKE=
1862else
1863  echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
1865  SET_MAKE="MAKE=${MAKE-make}"
1866fi
1867
1868rm -rf .tst 2>/dev/null
1869mkdir .tst 2>/dev/null
1870if test -d .tst; then
1871  am__leading_dot=.
1872else
1873  am__leading_dot=_
1874fi
1875rmdir .tst 2>/dev/null
1876
1877# test to see if srcdir already configured
1878if test "`cd $srcdir && pwd`" != "`pwd`" &&
1879   test -f $srcdir/config.status; then
1880  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1881echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1882   { (exit 1); exit 1; }; }
1883fi
1884
1885# test whether we have cygpath
1886if test -z "$CYGPATH_W"; then
1887  if (cygpath --version) >/dev/null 2>/dev/null; then
1888    CYGPATH_W='cygpath -w'
1889  else
1890    CYGPATH_W=echo
1891  fi
1892fi
1893
1894
1895# Define the identity of the package.
1896 PACKAGE=GUIlib
1897 VERSION=$VERSION
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE "$PACKAGE"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define VERSION "$VERSION"
1907_ACEOF
1908
1909# Some tools Automake needs.
1910
1911ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1912
1913
1914AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1915
1916
1917AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1918
1919
1920AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1921
1922
1923MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1924
1925install_sh=${install_sh-"$am_aux_dir/install-sh"}
1926
1927# Installed binaries are usually stripped using `strip' when the user
1928# run `make install-strip'.  However `strip' might not be the right
1929# tool to use in cross-compilation environments, therefore Automake
1930# will honor the `STRIP' environment variable to overrule this program.
1931if test "$cross_compiling" != no; then
1932  if test -n "$ac_tool_prefix"; then
1933  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1934set dummy ${ac_tool_prefix}strip; ac_word=$2
1935echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937if test "${ac_cv_prog_STRIP+set}" = set; then
1938  echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940  if test -n "$STRIP"; then
1941  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946  IFS=$as_save_IFS
1947  test -z "$as_dir" && as_dir=.
1948  for ac_exec_ext in '' $ac_executable_extensions; do
1949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952    break 2
1953  fi
1954done
1955done
1956
1957fi
1958fi
1959STRIP=$ac_cv_prog_STRIP
1960if test -n "$STRIP"; then
1961  echo "$as_me:$LINENO: result: $STRIP" >&5
1962echo "${ECHO_T}$STRIP" >&6
1963else
1964  echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968fi
1969if test -z "$ac_cv_prog_STRIP"; then
1970  ac_ct_STRIP=$STRIP
1971  # Extract the first word of "strip", so it can be a program name with args.
1972set dummy strip; ac_word=$2
1973echo "$as_me:$LINENO: checking for $ac_word" >&5
1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1976  echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978  if test -n "$ac_ct_STRIP"; then
1979  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1980else
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984  IFS=$as_save_IFS
1985  test -z "$as_dir" && as_dir=.
1986  for ac_exec_ext in '' $ac_executable_extensions; do
1987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988    ac_cv_prog_ac_ct_STRIP="strip"
1989    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990    break 2
1991  fi
1992done
1993done
1994
1995  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1996fi
1997fi
1998ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1999if test -n "$ac_ct_STRIP"; then
2000  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2001echo "${ECHO_T}$ac_ct_STRIP" >&6
2002else
2003  echo "$as_me:$LINENO: result: no" >&5
2004echo "${ECHO_T}no" >&6
2005fi
2006
2007  STRIP=$ac_ct_STRIP
2008else
2009  STRIP="$ac_cv_prog_STRIP"
2010fi
2011
2012fi
2013INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2014
2015# We need awk for the "check" target.  The system "awk" is bad on
2016# some platforms.
2017# Always define AMTAR for backward compatibility.
2018
2019AMTAR=${AMTAR-"${am_missing_run}tar"}
2020
2021am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2022
2023
2024
2025
2026
2027
2028
2029echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2030echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2031set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2032if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2033  echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035  cat >conftest.make <<\_ACEOF
2036all:
2037	@echo 'ac_maketemp="$(MAKE)"'
2038_ACEOF
2039# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2040eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2041if test -n "$ac_maketemp"; then
2042  eval ac_cv_prog_make_${ac_make}_set=yes
2043else
2044  eval ac_cv_prog_make_${ac_make}_set=no
2045fi
2046rm -f conftest.make
2047fi
2048if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2049  echo "$as_me:$LINENO: result: yes" >&5
2050echo "${ECHO_T}yes" >&6
2051  SET_MAKE=
2052else
2053  echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6
2055  SET_MAKE="MAKE=${MAKE-make}"
2056fi
2057
2058ac_ext=c
2059ac_cpp='$CPP $CPPFLAGS'
2060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063if test -n "$ac_tool_prefix"; then
2064  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2065set dummy ${ac_tool_prefix}gcc; ac_word=$2
2066echo "$as_me:$LINENO: checking for $ac_word" >&5
2067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068if test "${ac_cv_prog_CC+set}" = set; then
2069  echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071  if test -n "$CC"; then
2072  ac_cv_prog_CC="$CC" # Let the user override the test.
2073else
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077  IFS=$as_save_IFS
2078  test -z "$as_dir" && as_dir=.
2079  for ac_exec_ext in '' $ac_executable_extensions; do
2080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083    break 2
2084  fi
2085done
2086done
2087
2088fi
2089fi
2090CC=$ac_cv_prog_CC
2091if test -n "$CC"; then
2092  echo "$as_me:$LINENO: result: $CC" >&5
2093echo "${ECHO_T}$CC" >&6
2094else
2095  echo "$as_me:$LINENO: result: no" >&5
2096echo "${ECHO_T}no" >&6
2097fi
2098
2099fi
2100if test -z "$ac_cv_prog_CC"; then
2101  ac_ct_CC=$CC
2102  # Extract the first word of "gcc", so it can be a program name with args.
2103set dummy gcc; ac_word=$2
2104echo "$as_me:$LINENO: checking for $ac_word" >&5
2105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  if test -n "$ac_ct_CC"; then
2110  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2111else
2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115  IFS=$as_save_IFS
2116  test -z "$as_dir" && as_dir=.
2117  for ac_exec_ext in '' $ac_executable_extensions; do
2118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119    ac_cv_prog_ac_ct_CC="gcc"
2120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121    break 2
2122  fi
2123done
2124done
2125
2126fi
2127fi
2128ac_ct_CC=$ac_cv_prog_ac_ct_CC
2129if test -n "$ac_ct_CC"; then
2130  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2131echo "${ECHO_T}$ac_ct_CC" >&6
2132else
2133  echo "$as_me:$LINENO: result: no" >&5
2134echo "${ECHO_T}no" >&6
2135fi
2136
2137  CC=$ac_ct_CC
2138else
2139  CC="$ac_cv_prog_CC"
2140fi
2141
2142if test -z "$CC"; then
2143  if test -n "$ac_tool_prefix"; then
2144  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2145set dummy ${ac_tool_prefix}cc; ac_word=$2
2146echo "$as_me:$LINENO: checking for $ac_word" >&5
2147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148if test "${ac_cv_prog_CC+set}" = set; then
2149  echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151  if test -n "$CC"; then
2152  ac_cv_prog_CC="$CC" # Let the user override the test.
2153else
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157  IFS=$as_save_IFS
2158  test -z "$as_dir" && as_dir=.
2159  for ac_exec_ext in '' $ac_executable_extensions; do
2160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161    ac_cv_prog_CC="${ac_tool_prefix}cc"
2162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163    break 2
2164  fi
2165done
2166done
2167
2168fi
2169fi
2170CC=$ac_cv_prog_CC
2171if test -n "$CC"; then
2172  echo "$as_me:$LINENO: result: $CC" >&5
2173echo "${ECHO_T}$CC" >&6
2174else
2175  echo "$as_me:$LINENO: result: no" >&5
2176echo "${ECHO_T}no" >&6
2177fi
2178
2179fi
2180if test -z "$ac_cv_prog_CC"; then
2181  ac_ct_CC=$CC
2182  # Extract the first word of "cc", so it can be a program name with args.
2183set dummy cc; ac_word=$2
2184echo "$as_me:$LINENO: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2187  echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189  if test -n "$ac_ct_CC"; then
2190  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191else
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195  IFS=$as_save_IFS
2196  test -z "$as_dir" && as_dir=.
2197  for ac_exec_ext in '' $ac_executable_extensions; do
2198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199    ac_cv_prog_ac_ct_CC="cc"
2200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201    break 2
2202  fi
2203done
2204done
2205
2206fi
2207fi
2208ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209if test -n "$ac_ct_CC"; then
2210  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211echo "${ECHO_T}$ac_ct_CC" >&6
2212else
2213  echo "$as_me:$LINENO: result: no" >&5
2214echo "${ECHO_T}no" >&6
2215fi
2216
2217  CC=$ac_ct_CC
2218else
2219  CC="$ac_cv_prog_CC"
2220fi
2221
2222fi
2223if test -z "$CC"; then
2224  # Extract the first word of "cc", so it can be a program name with args.
2225set dummy cc; ac_word=$2
2226echo "$as_me:$LINENO: checking for $ac_word" >&5
2227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228if test "${ac_cv_prog_CC+set}" = set; then
2229  echo $ECHO_N "(cached) $ECHO_C" >&6
2230else
2231  if test -n "$CC"; then
2232  ac_cv_prog_CC="$CC" # Let the user override the test.
2233else
2234  ac_prog_rejected=no
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238  IFS=$as_save_IFS
2239  test -z "$as_dir" && as_dir=.
2240  for ac_exec_ext in '' $ac_executable_extensions; do
2241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2243       ac_prog_rejected=yes
2244       continue
2245     fi
2246    ac_cv_prog_CC="cc"
2247    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248    break 2
2249  fi
2250done
2251done
2252
2253if test $ac_prog_rejected = yes; then
2254  # We found a bogon in the path, so make sure we never use it.
2255  set dummy $ac_cv_prog_CC
2256  shift
2257  if test $# != 0; then
2258    # We chose a different compiler from the bogus one.
2259    # However, it has the same basename, so the bogon will be chosen
2260    # first if we set CC to just the basename; use the full file name.
2261    shift
2262    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2263  fi
2264fi
2265fi
2266fi
2267CC=$ac_cv_prog_CC
2268if test -n "$CC"; then
2269  echo "$as_me:$LINENO: result: $CC" >&5
2270echo "${ECHO_T}$CC" >&6
2271else
2272  echo "$as_me:$LINENO: result: no" >&5
2273echo "${ECHO_T}no" >&6
2274fi
2275
2276fi
2277if test -z "$CC"; then
2278  if test -n "$ac_tool_prefix"; then
2279  for ac_prog in cl
2280  do
2281    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2283echo "$as_me:$LINENO: checking for $ac_word" >&5
2284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285if test "${ac_cv_prog_CC+set}" = set; then
2286  echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288  if test -n "$CC"; then
2289  ac_cv_prog_CC="$CC" # Let the user override the test.
2290else
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294  IFS=$as_save_IFS
2295  test -z "$as_dir" && as_dir=.
2296  for ac_exec_ext in '' $ac_executable_extensions; do
2297  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300    break 2
2301  fi
2302done
2303done
2304
2305fi
2306fi
2307CC=$ac_cv_prog_CC
2308if test -n "$CC"; then
2309  echo "$as_me:$LINENO: result: $CC" >&5
2310echo "${ECHO_T}$CC" >&6
2311else
2312  echo "$as_me:$LINENO: result: no" >&5
2313echo "${ECHO_T}no" >&6
2314fi
2315
2316    test -n "$CC" && break
2317  done
2318fi
2319if test -z "$CC"; then
2320  ac_ct_CC=$CC
2321  for ac_prog in cl
2322do
2323  # Extract the first word of "$ac_prog", so it can be a program name with args.
2324set dummy $ac_prog; ac_word=$2
2325echo "$as_me:$LINENO: checking for $ac_word" >&5
2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2328  echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330  if test -n "$ac_ct_CC"; then
2331  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336  IFS=$as_save_IFS
2337  test -z "$as_dir" && as_dir=.
2338  for ac_exec_ext in '' $ac_executable_extensions; do
2339  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340    ac_cv_prog_ac_ct_CC="$ac_prog"
2341    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342    break 2
2343  fi
2344done
2345done
2346
2347fi
2348fi
2349ac_ct_CC=$ac_cv_prog_ac_ct_CC
2350if test -n "$ac_ct_CC"; then
2351  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2352echo "${ECHO_T}$ac_ct_CC" >&6
2353else
2354  echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6
2356fi
2357
2358  test -n "$ac_ct_CC" && break
2359done
2360
2361  CC=$ac_ct_CC
2362fi
2363
2364fi
2365
2366
2367test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2368See \`config.log' for more details." >&5
2369echo "$as_me: error: no acceptable C compiler found in \$PATH
2370See \`config.log' for more details." >&2;}
2371   { (exit 1); exit 1; }; }
2372
2373# Provide some information about the compiler.
2374echo "$as_me:$LINENO:" \
2375     "checking for C compiler version" >&5
2376ac_compiler=`set X $ac_compile; echo $2`
2377{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2378  (eval $ac_compiler --version </dev/null >&5) 2>&5
2379  ac_status=$?
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); }
2382{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2383  (eval $ac_compiler -v </dev/null >&5) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }
2387{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2388  (eval $ac_compiler -V </dev/null >&5) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }
2392
2393cat >conftest.$ac_ext <<_ACEOF
2394/* confdefs.h.  */
2395_ACEOF
2396cat confdefs.h >>conftest.$ac_ext
2397cat >>conftest.$ac_ext <<_ACEOF
2398/* end confdefs.h.  */
2399
2400int
2401main ()
2402{
2403
2404  ;
2405  return 0;
2406}
2407_ACEOF
2408ac_clean_files_save=$ac_clean_files
2409ac_clean_files="$ac_clean_files a.out a.exe b.out"
2410# Try to create an executable without -o first, disregard a.out.
2411# It will help us diagnose broken compilers, and finding out an intuition
2412# of exeext.
2413echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2414echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2415ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2416if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2417  (eval $ac_link_default) 2>&5
2418  ac_status=$?
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); }; then
2421  # Find the output, starting from the most likely.  This scheme is
2422# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2423# resort.
2424
2425# Be careful to initialize this variable, since it used to be cached.
2426# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2427ac_cv_exeext=
2428# b.out is created by i960 compilers.
2429for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2430do
2431  test -f "$ac_file" || continue
2432  case $ac_file in
2433    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2434	;;
2435    conftest.$ac_ext )
2436	# This is the source file.
2437	;;
2438    [ab].out )
2439	# We found the default executable, but exeext='' is most
2440	# certainly right.
2441	break;;
2442    *.* )
2443	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444	# FIXME: I believe we export ac_cv_exeext for Libtool,
2445	# but it would be cool to find out if it's true.  Does anybody
2446	# maintain Libtool? --akim.
2447	export ac_cv_exeext
2448	break;;
2449    * )
2450	break;;
2451  esac
2452done
2453else
2454  echo "$as_me: failed program was:" >&5
2455sed 's/^/| /' conftest.$ac_ext >&5
2456
2457{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2458See \`config.log' for more details." >&5
2459echo "$as_me: error: C compiler cannot create executables
2460See \`config.log' for more details." >&2;}
2461   { (exit 77); exit 77; }; }
2462fi
2463
2464ac_exeext=$ac_cv_exeext
2465echo "$as_me:$LINENO: result: $ac_file" >&5
2466echo "${ECHO_T}$ac_file" >&6
2467
2468# Check the compiler produces executables we can run.  If not, either
2469# the compiler is broken, or we cross compile.
2470echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2471echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2472# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2473# If not cross compiling, check that we can run a simple program.
2474if test "$cross_compiling" != yes; then
2475  if { ac_try='./$ac_file'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; }; then
2481    cross_compiling=no
2482  else
2483    if test "$cross_compiling" = maybe; then
2484	cross_compiling=yes
2485    else
2486	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2487If you meant to cross compile, use \`--host'.
2488See \`config.log' for more details." >&5
2489echo "$as_me: error: cannot run C compiled programs.
2490If you meant to cross compile, use \`--host'.
2491See \`config.log' for more details." >&2;}
2492   { (exit 1); exit 1; }; }
2493    fi
2494  fi
2495fi
2496echo "$as_me:$LINENO: result: yes" >&5
2497echo "${ECHO_T}yes" >&6
2498
2499rm -f a.out a.exe conftest$ac_cv_exeext b.out
2500ac_clean_files=$ac_clean_files_save
2501# Check the compiler produces executables we can run.  If not, either
2502# the compiler is broken, or we cross compile.
2503echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2504echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2505echo "$as_me:$LINENO: result: $cross_compiling" >&5
2506echo "${ECHO_T}$cross_compiling" >&6
2507
2508echo "$as_me:$LINENO: checking for suffix of executables" >&5
2509echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2511  (eval $ac_link) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; then
2515  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2516# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2517# work properly (i.e., refer to `conftest.exe'), while it won't with
2518# `rm'.
2519for ac_file in conftest.exe conftest conftest.*; do
2520  test -f "$ac_file" || continue
2521  case $ac_file in
2522    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2523    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524	  export ac_cv_exeext
2525	  break;;
2526    * ) break;;
2527  esac
2528done
2529else
2530  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533See \`config.log' for more details." >&2;}
2534   { (exit 1); exit 1; }; }
2535fi
2536
2537rm -f conftest$ac_cv_exeext
2538echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539echo "${ECHO_T}$ac_cv_exeext" >&6
2540
2541rm -f conftest.$ac_ext
2542EXEEXT=$ac_cv_exeext
2543ac_exeext=$EXEEXT
2544echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546if test "${ac_cv_objext+set}" = set; then
2547  echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549  cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h.  */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h.  */
2555
2556int
2557main ()
2558{
2559
2560  ;
2561  return 0;
2562}
2563_ACEOF
2564rm -f conftest.o conftest.obj
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566  (eval $ac_compile) 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); }; then
2570  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2571  case $ac_file in
2572    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2573    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2574       break;;
2575  esac
2576done
2577else
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2582See \`config.log' for more details." >&5
2583echo "$as_me: error: cannot compute suffix of object files: cannot compile
2584See \`config.log' for more details." >&2;}
2585   { (exit 1); exit 1; }; }
2586fi
2587
2588rm -f conftest.$ac_cv_objext conftest.$ac_ext
2589fi
2590echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2591echo "${ECHO_T}$ac_cv_objext" >&6
2592OBJEXT=$ac_cv_objext
2593ac_objext=$OBJEXT
2594echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2595echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2596if test "${ac_cv_c_compiler_gnu+set}" = set; then
2597  echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599  cat >conftest.$ac_ext <<_ACEOF
2600/* confdefs.h.  */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h.  */
2605
2606int
2607main ()
2608{
2609#ifndef __GNUC__
2610       choke me
2611#endif
2612
2613  ;
2614  return 0;
2615}
2616_ACEOF
2617rm -f conftest.$ac_objext
2618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619  (eval $ac_compile) 2>conftest.er1
2620  ac_status=$?
2621  grep -v '^ *+' conftest.er1 >conftest.err
2622  rm -f conftest.er1
2623  cat conftest.err >&5
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); } &&
2626	 { ac_try='test -z "$ac_c_werror_flag"
2627			 || test ! -s conftest.err'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; } &&
2633	 { ac_try='test -s conftest.$ac_objext'
2634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635  (eval $ac_try) 2>&5
2636  ac_status=$?
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); }; }; then
2639  ac_compiler_gnu=yes
2640else
2641  echo "$as_me: failed program was:" >&5
2642sed 's/^/| /' conftest.$ac_ext >&5
2643
2644ac_compiler_gnu=no
2645fi
2646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647ac_cv_c_compiler_gnu=$ac_compiler_gnu
2648
2649fi
2650echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2651echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2652GCC=`test $ac_compiler_gnu = yes && echo yes`
2653ac_test_CFLAGS=${CFLAGS+set}
2654ac_save_CFLAGS=$CFLAGS
2655CFLAGS="-g"
2656echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2657echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2658if test "${ac_cv_prog_cc_g+set}" = set; then
2659  echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661  cat >conftest.$ac_ext <<_ACEOF
2662/* confdefs.h.  */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h.  */
2667
2668int
2669main ()
2670{
2671
2672  ;
2673  return 0;
2674}
2675_ACEOF
2676rm -f conftest.$ac_objext
2677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678  (eval $ac_compile) 2>conftest.er1
2679  ac_status=$?
2680  grep -v '^ *+' conftest.er1 >conftest.err
2681  rm -f conftest.er1
2682  cat conftest.err >&5
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); } &&
2685	 { ac_try='test -z "$ac_c_werror_flag"
2686			 || test ! -s conftest.err'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; } &&
2692	 { ac_try='test -s conftest.$ac_objext'
2693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694  (eval $ac_try) 2>&5
2695  ac_status=$?
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); }; }; then
2698  ac_cv_prog_cc_g=yes
2699else
2700  echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703ac_cv_prog_cc_g=no
2704fi
2705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706fi
2707echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2708echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2709if test "$ac_test_CFLAGS" = set; then
2710  CFLAGS=$ac_save_CFLAGS
2711elif test $ac_cv_prog_cc_g = yes; then
2712  if test "$GCC" = yes; then
2713    CFLAGS="-g -O2"
2714  else
2715    CFLAGS="-g"
2716  fi
2717else
2718  if test "$GCC" = yes; then
2719    CFLAGS="-O2"
2720  else
2721    CFLAGS=
2722  fi
2723fi
2724echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2725echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2726if test "${ac_cv_prog_cc_stdc+set}" = set; then
2727  echo $ECHO_N "(cached) $ECHO_C" >&6
2728else
2729  ac_cv_prog_cc_stdc=no
2730ac_save_CC=$CC
2731cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h.  */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h.  */
2737#include <stdarg.h>
2738#include <stdio.h>
2739#include <sys/types.h>
2740#include <sys/stat.h>
2741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2742struct buf { int x; };
2743FILE * (*rcsopen) (struct buf *, struct stat *, int);
2744static char *e (p, i)
2745     char **p;
2746     int i;
2747{
2748  return p[i];
2749}
2750static char *f (char * (*g) (char **, int), char **p, ...)
2751{
2752  char *s;
2753  va_list v;
2754  va_start (v,p);
2755  s = g (p, va_arg (v,int));
2756  va_end (v);
2757  return s;
2758}
2759
2760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2761   function prototypes and stuff, but not '\xHH' hex character constants.
2762   These don't provoke an error unfortunately, instead are silently treated
2763   as 'x'.  The following induces an error, until -std1 is added to get
2764   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2765   array size at least.  It's necessary to write '\x00'==0 to get something
2766   that's true only with -std1.  */
2767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2768
2769int test (int i, double x);
2770struct s1 {int (*f) (int a);};
2771struct s2 {int (*f) (double a);};
2772int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773int argc;
2774char **argv;
2775int
2776main ()
2777{
2778return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2779  ;
2780  return 0;
2781}
2782_ACEOF
2783# Don't try gcc -ansi; that turns off useful extensions and
2784# breaks some systems' header files.
2785# AIX			-qlanglvl=ansi
2786# Ultrix and OSF/1	-std1
2787# HP-UX 10.20 and later	-Ae
2788# HP-UX older versions	-Aa -D_HPUX_SOURCE
2789# SVR4			-Xc -D__EXTENSIONS__
2790for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2791do
2792  CC="$ac_save_CC $ac_arg"
2793  rm -f conftest.$ac_objext
2794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795  (eval $ac_compile) 2>conftest.er1
2796  ac_status=$?
2797  grep -v '^ *+' conftest.er1 >conftest.err
2798  rm -f conftest.er1
2799  cat conftest.err >&5
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); } &&
2802	 { ac_try='test -z "$ac_c_werror_flag"
2803			 || test ! -s conftest.err'
2804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805  (eval $ac_try) 2>&5
2806  ac_status=$?
2807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808  (exit $ac_status); }; } &&
2809	 { ac_try='test -s conftest.$ac_objext'
2810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811  (eval $ac_try) 2>&5
2812  ac_status=$?
2813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814  (exit $ac_status); }; }; then
2815  ac_cv_prog_cc_stdc=$ac_arg
2816break
2817else
2818  echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821fi
2822rm -f conftest.err conftest.$ac_objext
2823done
2824rm -f conftest.$ac_ext conftest.$ac_objext
2825CC=$ac_save_CC
2826
2827fi
2828
2829case "x$ac_cv_prog_cc_stdc" in
2830  x|xno)
2831    echo "$as_me:$LINENO: result: none needed" >&5
2832echo "${ECHO_T}none needed" >&6 ;;
2833  *)
2834    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2835echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2836    CC="$CC $ac_cv_prog_cc_stdc" ;;
2837esac
2838
2839# Some people use a C++ compiler to compile C.  Since we use `exit',
2840# in C++ we need to declare it.  In case someone uses the same compiler
2841# for both compiling C and C++ we need to have the C++ compiler decide
2842# the declaration of exit, since it's the most demanding environment.
2843cat >conftest.$ac_ext <<_ACEOF
2844#ifndef __cplusplus
2845  choke me
2846#endif
2847_ACEOF
2848rm -f conftest.$ac_objext
2849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850  (eval $ac_compile) 2>conftest.er1
2851  ac_status=$?
2852  grep -v '^ *+' conftest.er1 >conftest.err
2853  rm -f conftest.er1
2854  cat conftest.err >&5
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); } &&
2857	 { ac_try='test -z "$ac_c_werror_flag"
2858			 || test ! -s conftest.err'
2859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860  (eval $ac_try) 2>&5
2861  ac_status=$?
2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863  (exit $ac_status); }; } &&
2864	 { ac_try='test -s conftest.$ac_objext'
2865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866  (eval $ac_try) 2>&5
2867  ac_status=$?
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); }; }; then
2870  for ac_declaration in \
2871   '' \
2872   'extern "C" void std::exit (int) throw (); using std::exit;' \
2873   'extern "C" void std::exit (int); using std::exit;' \
2874   'extern "C" void exit (int) throw ();' \
2875   'extern "C" void exit (int);' \
2876   'void exit (int);'
2877do
2878  cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884$ac_declaration
2885#include <stdlib.h>
2886int
2887main ()
2888{
2889exit (42);
2890  ;
2891  return 0;
2892}
2893_ACEOF
2894rm -f conftest.$ac_objext
2895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896  (eval $ac_compile) 2>conftest.er1
2897  ac_status=$?
2898  grep -v '^ *+' conftest.er1 >conftest.err
2899  rm -f conftest.er1
2900  cat conftest.err >&5
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); } &&
2903	 { ac_try='test -z "$ac_c_werror_flag"
2904			 || test ! -s conftest.err'
2905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906  (eval $ac_try) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }; } &&
2910	 { ac_try='test -s conftest.$ac_objext'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; }; then
2916  :
2917else
2918  echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921continue
2922fi
2923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924  cat >conftest.$ac_ext <<_ACEOF
2925/* confdefs.h.  */
2926_ACEOF
2927cat confdefs.h >>conftest.$ac_ext
2928cat >>conftest.$ac_ext <<_ACEOF
2929/* end confdefs.h.  */
2930$ac_declaration
2931int
2932main ()
2933{
2934exit (42);
2935  ;
2936  return 0;
2937}
2938_ACEOF
2939rm -f conftest.$ac_objext
2940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941  (eval $ac_compile) 2>conftest.er1
2942  ac_status=$?
2943  grep -v '^ *+' conftest.er1 >conftest.err
2944  rm -f conftest.er1
2945  cat conftest.err >&5
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); } &&
2948	 { ac_try='test -z "$ac_c_werror_flag"
2949			 || test ! -s conftest.err'
2950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951  (eval $ac_try) 2>&5
2952  ac_status=$?
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); }; } &&
2955	 { ac_try='test -s conftest.$ac_objext'
2956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957  (eval $ac_try) 2>&5
2958  ac_status=$?
2959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960  (exit $ac_status); }; }; then
2961  break
2962else
2963  echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966fi
2967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968done
2969rm -f conftest*
2970if test -n "$ac_declaration"; then
2971  echo '#ifdef __cplusplus' >>confdefs.h
2972  echo $ac_declaration      >>confdefs.h
2973  echo '#endif'             >>confdefs.h
2974fi
2975
2976else
2977  echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980fi
2981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2982ac_ext=c
2983ac_cpp='$CPP $CPPFLAGS'
2984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987DEPDIR="${am__leading_dot}deps"
2988
2989          ac_config_commands="$ac_config_commands depfiles"
2990
2991
2992am_make=${MAKE-make}
2993cat > confinc << 'END'
2994am__doit:
2995	@echo done
2996.PHONY: am__doit
2997END
2998# If we don't find an include directive, just comment out the code.
2999echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3000echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3001am__include="#"
3002am__quote=
3003_am_result=none
3004# First try GNU make style include.
3005echo "include confinc" > confmf
3006# We grep out `Entering directory' and `Leaving directory'
3007# messages which can occur if `w' ends up in MAKEFLAGS.
3008# In particular we don't look at `^make:' because GNU make might
3009# be invoked under some other name (usually "gmake"), in which
3010# case it prints its new name instead of `make'.
3011if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3012   am__include=include
3013   am__quote=
3014   _am_result=GNU
3015fi
3016# Now try BSD make style include.
3017if test "$am__include" = "#"; then
3018   echo '.include "confinc"' > confmf
3019   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3020      am__include=.include
3021      am__quote="\""
3022      _am_result=BSD
3023   fi
3024fi
3025
3026
3027echo "$as_me:$LINENO: result: $_am_result" >&5
3028echo "${ECHO_T}$_am_result" >&6
3029rm -f confinc confmf
3030
3031# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3032if test "${enable_dependency_tracking+set}" = set; then
3033  enableval="$enable_dependency_tracking"
3034
3035fi;
3036if test "x$enable_dependency_tracking" != xno; then
3037  am_depcomp="$ac_aux_dir/depcomp"
3038  AMDEPBACKSLASH='\'
3039fi
3040
3041
3042if test "x$enable_dependency_tracking" != xno; then
3043  AMDEP_TRUE=
3044  AMDEP_FALSE='#'
3045else
3046  AMDEP_TRUE='#'
3047  AMDEP_FALSE=
3048fi
3049
3050
3051
3052
3053depcc="$CC"   am_compiler_list=
3054
3055echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3056echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3057if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3058  echo $ECHO_N "(cached) $ECHO_C" >&6
3059else
3060  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3061  # We make a subdir and do the tests there.  Otherwise we can end up
3062  # making bogus files that we don't know about and never remove.  For
3063  # instance it was reported that on HP-UX the gcc test will end up
3064  # making a dummy file named `D' -- because `-MD' means `put the output
3065  # in D'.
3066  mkdir conftest.dir
3067  # Copy depcomp to subdir because otherwise we won't find it if we're
3068  # using a relative directory.
3069  cp "$am_depcomp" conftest.dir
3070  cd conftest.dir
3071  # We will build objects and dependencies in a subdirectory because
3072  # it helps to detect inapplicable dependency modes.  For instance
3073  # both Tru64's cc and ICC support -MD to output dependencies as a
3074  # side effect of compilation, but ICC will put the dependencies in
3075  # the current directory while Tru64 will put them in the object
3076  # directory.
3077  mkdir sub
3078
3079  am_cv_CC_dependencies_compiler_type=none
3080  if test "$am_compiler_list" = ""; then
3081     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3082  fi
3083  for depmode in $am_compiler_list; do
3084    # Setup a source with many dependencies, because some compilers
3085    # like to wrap large dependency lists on column 80 (with \), and
3086    # we should not choose a depcomp mode which is confused by this.
3087    #
3088    # We need to recreate these files for each test, as the compiler may
3089    # overwrite some of them when testing with obscure command lines.
3090    # This happens at least with the AIX C compiler.
3091    : > sub/conftest.c
3092    for i in 1 2 3 4 5 6; do
3093      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3094      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3095      # Solaris 8's {/usr,}/bin/sh.
3096      touch sub/conftst$i.h
3097    done
3098    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3099
3100    case $depmode in
3101    nosideeffect)
3102      # after this tag, mechanisms are not by side-effect, so they'll
3103      # only be used when explicitly requested
3104      if test "x$enable_dependency_tracking" = xyes; then
3105	continue
3106      else
3107	break
3108      fi
3109      ;;
3110    none) break ;;
3111    esac
3112    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3113    # mode.  It turns out that the SunPro C++ compiler does not properly
3114    # handle `-M -o', and we need to detect this.
3115    if depmode=$depmode \
3116       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3117       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3118       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3119         >/dev/null 2>conftest.err &&
3120       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3121       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3122       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3123      # icc doesn't choke on unknown options, it will just issue warnings
3124      # or remarks (even with -Werror).  So we grep stderr for any message
3125      # that says an option was ignored or not supported.
3126      # When given -MP, icc 7.0 and 7.1 complain thusly:
3127      #   icc: Command line warning: ignoring option '-M'; no argument required
3128      # The diagnosis changed in icc 8.0:
3129      #   icc: Command line remark: option '-MP' not supported
3130      if (grep 'ignoring option' conftest.err ||
3131          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3132        am_cv_CC_dependencies_compiler_type=$depmode
3133        break
3134      fi
3135    fi
3136  done
3137
3138  cd ..
3139  rm -rf conftest.dir
3140else
3141  am_cv_CC_dependencies_compiler_type=none
3142fi
3143
3144fi
3145echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3146echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3147CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3148
3149
3150
3151if
3152  test "x$enable_dependency_tracking" != xno \
3153  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3154  am__fastdepCC_TRUE=
3155  am__fastdepCC_FALSE='#'
3156else
3157  am__fastdepCC_TRUE='#'
3158  am__fastdepCC_FALSE=
3159fi
3160
3161
3162ac_ext=cc
3163ac_cpp='$CXXCPP $CPPFLAGS'
3164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3167if test -n "$ac_tool_prefix"; then
3168  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3169  do
3170    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3172echo "$as_me:$LINENO: checking for $ac_word" >&5
3173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174if test "${ac_cv_prog_CXX+set}" = set; then
3175  echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177  if test -n "$CXX"; then
3178  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3179else
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183  IFS=$as_save_IFS
3184  test -z "$as_dir" && as_dir=.
3185  for ac_exec_ext in '' $ac_executable_extensions; do
3186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189    break 2
3190  fi
3191done
3192done
3193
3194fi
3195fi
3196CXX=$ac_cv_prog_CXX
3197if test -n "$CXX"; then
3198  echo "$as_me:$LINENO: result: $CXX" >&5
3199echo "${ECHO_T}$CXX" >&6
3200else
3201  echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203fi
3204
3205    test -n "$CXX" && break
3206  done
3207fi
3208if test -z "$CXX"; then
3209  ac_ct_CXX=$CXX
3210  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3211do
3212  # Extract the first word of "$ac_prog", so it can be a program name with args.
3213set dummy $ac_prog; ac_word=$2
3214echo "$as_me:$LINENO: checking for $ac_word" >&5
3215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3217  echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219  if test -n "$ac_ct_CXX"; then
3220  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3221else
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225  IFS=$as_save_IFS
3226  test -z "$as_dir" && as_dir=.
3227  for ac_exec_ext in '' $ac_executable_extensions; do
3228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229    ac_cv_prog_ac_ct_CXX="$ac_prog"
3230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231    break 2
3232  fi
3233done
3234done
3235
3236fi
3237fi
3238ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3239if test -n "$ac_ct_CXX"; then
3240  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3241echo "${ECHO_T}$ac_ct_CXX" >&6
3242else
3243  echo "$as_me:$LINENO: result: no" >&5
3244echo "${ECHO_T}no" >&6
3245fi
3246
3247  test -n "$ac_ct_CXX" && break
3248done
3249test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3250
3251  CXX=$ac_ct_CXX
3252fi
3253
3254
3255# Provide some information about the compiler.
3256echo "$as_me:$LINENO:" \
3257     "checking for C++ compiler version" >&5
3258ac_compiler=`set X $ac_compile; echo $2`
3259{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3260  (eval $ac_compiler --version </dev/null >&5) 2>&5
3261  ac_status=$?
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); }
3264{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3265  (eval $ac_compiler -v </dev/null >&5) 2>&5
3266  ac_status=$?
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); }
3269{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3270  (eval $ac_compiler -V </dev/null >&5) 2>&5
3271  ac_status=$?
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); }
3274
3275echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3276echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3277if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h.  */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h.  */
3286
3287int
3288main ()
3289{
3290#ifndef __GNUC__
3291       choke me
3292#endif
3293
3294  ;
3295  return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext
3299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3300  (eval $ac_compile) 2>conftest.er1
3301  ac_status=$?
3302  grep -v '^ *+' conftest.er1 >conftest.err
3303  rm -f conftest.er1
3304  cat conftest.err >&5
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); } &&
3307	 { ac_try='test -z "$ac_cxx_werror_flag"
3308			 || test ! -s conftest.err'
3309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310  (eval $ac_try) 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }; } &&
3314	 { ac_try='test -s conftest.$ac_objext'
3315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316  (eval $ac_try) 2>&5
3317  ac_status=$?
3318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319  (exit $ac_status); }; }; then
3320  ac_compiler_gnu=yes
3321else
3322  echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325ac_compiler_gnu=no
3326fi
3327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3328ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3329
3330fi
3331echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3332echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3333GXX=`test $ac_compiler_gnu = yes && echo yes`
3334ac_test_CXXFLAGS=${CXXFLAGS+set}
3335ac_save_CXXFLAGS=$CXXFLAGS
3336CXXFLAGS="-g"
3337echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3338echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3339if test "${ac_cv_prog_cxx_g+set}" = set; then
3340  echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
3342  cat >conftest.$ac_ext <<_ACEOF
3343/* confdefs.h.  */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
3347/* end confdefs.h.  */
3348
3349int
3350main ()
3351{
3352
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357rm -f conftest.$ac_objext
3358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359  (eval $ac_compile) 2>conftest.er1
3360  ac_status=$?
3361  grep -v '^ *+' conftest.er1 >conftest.err
3362  rm -f conftest.er1
3363  cat conftest.err >&5
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); } &&
3366	 { ac_try='test -z "$ac_cxx_werror_flag"
3367			 || test ! -s conftest.err'
3368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369  (eval $ac_try) 2>&5
3370  ac_status=$?
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); }; } &&
3373	 { ac_try='test -s conftest.$ac_objext'
3374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375  (eval $ac_try) 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }; }; then
3379  ac_cv_prog_cxx_g=yes
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384ac_cv_prog_cxx_g=no
3385fi
3386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387fi
3388echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3389echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3390if test "$ac_test_CXXFLAGS" = set; then
3391  CXXFLAGS=$ac_save_CXXFLAGS
3392elif test $ac_cv_prog_cxx_g = yes; then
3393  if test "$GXX" = yes; then
3394    CXXFLAGS="-g -O2"
3395  else
3396    CXXFLAGS="-g"
3397  fi
3398else
3399  if test "$GXX" = yes; then
3400    CXXFLAGS="-O2"
3401  else
3402    CXXFLAGS=
3403  fi
3404fi
3405for ac_declaration in \
3406   '' \
3407   'extern "C" void std::exit (int) throw (); using std::exit;' \
3408   'extern "C" void std::exit (int); using std::exit;' \
3409   'extern "C" void exit (int) throw ();' \
3410   'extern "C" void exit (int);' \
3411   'void exit (int);'
3412do
3413  cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h.  */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h.  */
3419$ac_declaration
3420#include <stdlib.h>
3421int
3422main ()
3423{
3424exit (42);
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429rm -f conftest.$ac_objext
3430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431  (eval $ac_compile) 2>conftest.er1
3432  ac_status=$?
3433  grep -v '^ *+' conftest.er1 >conftest.err
3434  rm -f conftest.er1
3435  cat conftest.err >&5
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); } &&
3438	 { ac_try='test -z "$ac_cxx_werror_flag"
3439			 || test ! -s conftest.err'
3440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441  (eval $ac_try) 2>&5
3442  ac_status=$?
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); }; } &&
3445	 { ac_try='test -s conftest.$ac_objext'
3446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447  (eval $ac_try) 2>&5
3448  ac_status=$?
3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450  (exit $ac_status); }; }; then
3451  :
3452else
3453  echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456continue
3457fi
3458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3459  cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h.  */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h.  */
3465$ac_declaration
3466int
3467main ()
3468{
3469exit (42);
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476  (eval $ac_compile) 2>conftest.er1
3477  ac_status=$?
3478  grep -v '^ *+' conftest.er1 >conftest.err
3479  rm -f conftest.er1
3480  cat conftest.err >&5
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); } &&
3483	 { ac_try='test -z "$ac_cxx_werror_flag"
3484			 || test ! -s conftest.err'
3485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486  (eval $ac_try) 2>&5
3487  ac_status=$?
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); }; } &&
3490	 { ac_try='test -s conftest.$ac_objext'
3491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492  (eval $ac_try) 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); }; }; then
3496  break
3497else
3498  echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501fi
3502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3503done
3504rm -f conftest*
3505if test -n "$ac_declaration"; then
3506  echo '#ifdef __cplusplus' >>confdefs.h
3507  echo $ac_declaration      >>confdefs.h
3508  echo '#endif'             >>confdefs.h
3509fi
3510
3511ac_ext=c
3512ac_cpp='$CPP $CPPFLAGS'
3513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516
3517depcc="$CXX"  am_compiler_list=
3518
3519echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3520echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3521if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3522  echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3525  # We make a subdir and do the tests there.  Otherwise we can end up
3526  # making bogus files that we don't know about and never remove.  For
3527  # instance it was reported that on HP-UX the gcc test will end up
3528  # making a dummy file named `D' -- because `-MD' means `put the output
3529  # in D'.
3530  mkdir conftest.dir
3531  # Copy depcomp to subdir because otherwise we won't find it if we're
3532  # using a relative directory.
3533  cp "$am_depcomp" conftest.dir
3534  cd conftest.dir
3535  # We will build objects and dependencies in a subdirectory because
3536  # it helps to detect inapplicable dependency modes.  For instance
3537  # both Tru64's cc and ICC support -MD to output dependencies as a
3538  # side effect of compilation, but ICC will put the dependencies in
3539  # the current directory while Tru64 will put them in the object
3540  # directory.
3541  mkdir sub
3542
3543  am_cv_CXX_dependencies_compiler_type=none
3544  if test "$am_compiler_list" = ""; then
3545     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3546  fi
3547  for depmode in $am_compiler_list; do
3548    # Setup a source with many dependencies, because some compilers
3549    # like to wrap large dependency lists on column 80 (with \), and
3550    # we should not choose a depcomp mode which is confused by this.
3551    #
3552    # We need to recreate these files for each test, as the compiler may
3553    # overwrite some of them when testing with obscure command lines.
3554    # This happens at least with the AIX C compiler.
3555    : > sub/conftest.c
3556    for i in 1 2 3 4 5 6; do
3557      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3558      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3559      # Solaris 8's {/usr,}/bin/sh.
3560      touch sub/conftst$i.h
3561    done
3562    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3563
3564    case $depmode in
3565    nosideeffect)
3566      # after this tag, mechanisms are not by side-effect, so they'll
3567      # only be used when explicitly requested
3568      if test "x$enable_dependency_tracking" = xyes; then
3569	continue
3570      else
3571	break
3572      fi
3573      ;;
3574    none) break ;;
3575    esac
3576    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3577    # mode.  It turns out that the SunPro C++ compiler does not properly
3578    # handle `-M -o', and we need to detect this.
3579    if depmode=$depmode \
3580       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3581       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3582       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3583         >/dev/null 2>conftest.err &&
3584       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3585       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3586       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3587      # icc doesn't choke on unknown options, it will just issue warnings
3588      # or remarks (even with -Werror).  So we grep stderr for any message
3589      # that says an option was ignored or not supported.
3590      # When given -MP, icc 7.0 and 7.1 complain thusly:
3591      #   icc: Command line warning: ignoring option '-M'; no argument required
3592      # The diagnosis changed in icc 8.0:
3593      #   icc: Command line remark: option '-MP' not supported
3594      if (grep 'ignoring option' conftest.err ||
3595          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3596        am_cv_CXX_dependencies_compiler_type=$depmode
3597        break
3598      fi
3599    fi
3600  done
3601
3602  cd ..
3603  rm -rf conftest.dir
3604else
3605  am_cv_CXX_dependencies_compiler_type=none
3606fi
3607
3608fi
3609echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3610echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3611CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3612
3613
3614
3615if
3616  test "x$enable_dependency_tracking" != xno \
3617  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3618  am__fastdepCXX_TRUE=
3619  am__fastdepCXX_FALSE='#'
3620else
3621  am__fastdepCXX_TRUE='#'
3622  am__fastdepCXX_FALSE=
3623fi
3624
3625
3626# Check whether --enable-shared or --disable-shared was given.
3627if test "${enable_shared+set}" = set; then
3628  enableval="$enable_shared"
3629  p=${PACKAGE-default}
3630    case $enableval in
3631    yes) enable_shared=yes ;;
3632    no) enable_shared=no ;;
3633    *)
3634      enable_shared=no
3635      # Look at the argument we got.  We use all the common list separators.
3636      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3637      for pkg in $enableval; do
3638	IFS="$lt_save_ifs"
3639	if test "X$pkg" = "X$p"; then
3640	  enable_shared=yes
3641	fi
3642      done
3643      IFS="$lt_save_ifs"
3644      ;;
3645    esac
3646else
3647  enable_shared=yes
3648fi;
3649
3650# Check whether --enable-static or --disable-static was given.
3651if test "${enable_static+set}" = set; then
3652  enableval="$enable_static"
3653  p=${PACKAGE-default}
3654    case $enableval in
3655    yes) enable_static=yes ;;
3656    no) enable_static=no ;;
3657    *)
3658     enable_static=no
3659      # Look at the argument we got.  We use all the common list separators.
3660      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3661      for pkg in $enableval; do
3662	IFS="$lt_save_ifs"
3663	if test "X$pkg" = "X$p"; then
3664	  enable_static=yes
3665	fi
3666      done
3667      IFS="$lt_save_ifs"
3668      ;;
3669    esac
3670else
3671  enable_static=yes
3672fi;
3673
3674# Check whether --enable-fast-install or --disable-fast-install was given.
3675if test "${enable_fast_install+set}" = set; then
3676  enableval="$enable_fast_install"
3677  p=${PACKAGE-default}
3678    case $enableval in
3679    yes) enable_fast_install=yes ;;
3680    no) enable_fast_install=no ;;
3681    *)
3682      enable_fast_install=no
3683      # Look at the argument we got.  We use all the common list separators.
3684      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3685      for pkg in $enableval; do
3686	IFS="$lt_save_ifs"
3687	if test "X$pkg" = "X$p"; then
3688	  enable_fast_install=yes
3689	fi
3690      done
3691      IFS="$lt_save_ifs"
3692      ;;
3693    esac
3694else
3695  enable_fast_install=yes
3696fi;
3697
3698echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3699echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3700if test "${lt_cv_path_SED+set}" = set; then
3701  echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
3703  # Loop through the user's path and test for sed and gsed.
3704# Then use that list of sed's as ones to test for truncation.
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708  IFS=$as_save_IFS
3709  test -z "$as_dir" && as_dir=.
3710  for lt_ac_prog in sed gsed; do
3711    for ac_exec_ext in '' $ac_executable_extensions; do
3712      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3713        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3714      fi
3715    done
3716  done
3717done
3718lt_ac_max=0
3719lt_ac_count=0
3720# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3721# along with /bin/sed that truncates output.
3722for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3723  test ! -f $lt_ac_sed && continue
3724  cat /dev/null > conftest.in
3725  lt_ac_count=0
3726  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3727  # Check for GNU sed and select it if it is found.
3728  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3729    lt_cv_path_SED=$lt_ac_sed
3730    break
3731  fi
3732  while true; do
3733    cat conftest.in conftest.in >conftest.tmp
3734    mv conftest.tmp conftest.in
3735    cp conftest.in conftest.nl
3736    echo >>conftest.nl
3737    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3738    cmp -s conftest.out conftest.nl || break
3739    # 10000 chars as input seems more than enough
3740    test $lt_ac_count -gt 10 && break
3741    lt_ac_count=`expr $lt_ac_count + 1`
3742    if test $lt_ac_count -gt $lt_ac_max; then
3743      lt_ac_max=$lt_ac_count
3744      lt_cv_path_SED=$lt_ac_sed
3745    fi
3746  done
3747done
3748
3749fi
3750
3751SED=$lt_cv_path_SED
3752echo "$as_me:$LINENO: result: $SED" >&5
3753echo "${ECHO_T}$SED" >&6
3754
3755echo "$as_me:$LINENO: checking for egrep" >&5
3756echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3757if test "${ac_cv_prog_egrep+set}" = set; then
3758  echo $ECHO_N "(cached) $ECHO_C" >&6
3759else
3760  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3761    then ac_cv_prog_egrep='grep -E'
3762    else ac_cv_prog_egrep='egrep'
3763    fi
3764fi
3765echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3766echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3767 EGREP=$ac_cv_prog_egrep
3768
3769
3770
3771# Check whether --with-gnu-ld or --without-gnu-ld was given.
3772if test "${with_gnu_ld+set}" = set; then
3773  withval="$with_gnu_ld"
3774  test "$withval" = no || with_gnu_ld=yes
3775else
3776  with_gnu_ld=no
3777fi;
3778ac_prog=ld
3779if test "$GCC" = yes; then
3780  # Check if gcc -print-prog-name=ld gives a path.
3781  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3782echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3783  case $host in
3784  *-*-mingw*)
3785    # gcc leaves a trailing carriage return which upsets mingw
3786    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3787  *)
3788    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3789  esac
3790  case $ac_prog in
3791    # Accept absolute paths.
3792    [\\/]* | ?:[\\/]*)
3793      re_direlt='/[^/][^/]*/\.\./'
3794      # Canonicalize the pathname of ld
3795      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3796      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3797	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3798      done
3799      test -z "$LD" && LD="$ac_prog"
3800      ;;
3801  "")
3802    # If it fails, then pretend we aren't using GCC.
3803    ac_prog=ld
3804    ;;
3805  *)
3806    # If it is relative, then search for the first ld in PATH.
3807    with_gnu_ld=unknown
3808    ;;
3809  esac
3810elif test "$with_gnu_ld" = yes; then
3811  echo "$as_me:$LINENO: checking for GNU ld" >&5
3812echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3813else
3814  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3815echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3816fi
3817if test "${lt_cv_path_LD+set}" = set; then
3818  echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820  if test -z "$LD"; then
3821  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3822  for ac_dir in $PATH; do
3823    IFS="$lt_save_ifs"
3824    test -z "$ac_dir" && ac_dir=.
3825    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3826      lt_cv_path_LD="$ac_dir/$ac_prog"
3827      # Check to see if the program is GNU ld.  I'd rather use --version,
3828      # but apparently some variants of GNU ld only accept -v.
3829      # Break only if it was the GNU/non-GNU ld that we prefer.
3830      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3831      *GNU* | *'with BFD'*)
3832	test "$with_gnu_ld" != no && break
3833	;;
3834      *)
3835	test "$with_gnu_ld" != yes && break
3836	;;
3837      esac
3838    fi
3839  done
3840  IFS="$lt_save_ifs"
3841else
3842  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3843fi
3844fi
3845
3846LD="$lt_cv_path_LD"
3847if test -n "$LD"; then
3848  echo "$as_me:$LINENO: result: $LD" >&5
3849echo "${ECHO_T}$LD" >&6
3850else
3851  echo "$as_me:$LINENO: result: no" >&5
3852echo "${ECHO_T}no" >&6
3853fi
3854test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3855echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3856   { (exit 1); exit 1; }; }
3857echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3858echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3859if test "${lt_cv_prog_gnu_ld+set}" = set; then
3860  echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3863case `$LD -v 2>&1 </dev/null` in
3864*GNU* | *'with BFD'*)
3865  lt_cv_prog_gnu_ld=yes
3866  ;;
3867*)
3868  lt_cv_prog_gnu_ld=no
3869  ;;
3870esac
3871fi
3872echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3873echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3874with_gnu_ld=$lt_cv_prog_gnu_ld
3875
3876
3877echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3878echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3879if test "${lt_cv_ld_reload_flag+set}" = set; then
3880  echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882  lt_cv_ld_reload_flag='-r'
3883fi
3884echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3885echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3886reload_flag=$lt_cv_ld_reload_flag
3887case $reload_flag in
3888"" | " "*) ;;
3889*) reload_flag=" $reload_flag" ;;
3890esac
3891reload_cmds='$LD$reload_flag -o $output$reload_objs'
3892case $host_os in
3893  darwin*)
3894    if test "$GCC" = yes; then
3895      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3896    else
3897      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3898    fi
3899    ;;
3900esac
3901
3902echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3903echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3904if test "${lt_cv_path_NM+set}" = set; then
3905  echo $ECHO_N "(cached) $ECHO_C" >&6
3906else
3907  if test -n "$NM"; then
3908  # Let the user override the test.
3909  lt_cv_path_NM="$NM"
3910else
3911  lt_nm_to_check="${ac_tool_prefix}nm"
3912  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3913    lt_nm_to_check="$lt_nm_to_check nm"
3914  fi
3915  for lt_tmp_nm in $lt_nm_to_check; do
3916    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3917    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3918      IFS="$lt_save_ifs"
3919      test -z "$ac_dir" && ac_dir=.
3920      tmp_nm="$ac_dir/$lt_tmp_nm"
3921      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3922	# Check to see if the nm accepts a BSD-compat flag.
3923	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3924	#   nm: unknown option "B" ignored
3925	# Tru64's nm complains that /dev/null is an invalid object file
3926	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3927	*/dev/null* | *'Invalid file or object type'*)
3928	  lt_cv_path_NM="$tmp_nm -B"
3929	  break
3930	  ;;
3931	*)
3932	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3933	  */dev/null*)
3934	    lt_cv_path_NM="$tmp_nm -p"
3935	    break
3936	    ;;
3937	  *)
3938	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3939	    continue # so that we can try to find one that supports BSD flags
3940	    ;;
3941	  esac
3942	  ;;
3943	esac
3944      fi
3945    done
3946    IFS="$lt_save_ifs"
3947  done
3948  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3949fi
3950fi
3951echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3952echo "${ECHO_T}$lt_cv_path_NM" >&6
3953NM="$lt_cv_path_NM"
3954
3955echo "$as_me:$LINENO: checking whether ln -s works" >&5
3956echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3957LN_S=$as_ln_s
3958if test "$LN_S" = "ln -s"; then
3959  echo "$as_me:$LINENO: result: yes" >&5
3960echo "${ECHO_T}yes" >&6
3961else
3962  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3963echo "${ECHO_T}no, using $LN_S" >&6
3964fi
3965
3966echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3967echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3968if test "${lt_cv_deplibs_check_method+set}" = set; then
3969  echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971  lt_cv_file_magic_cmd='$MAGIC_CMD'
3972lt_cv_file_magic_test_file=
3973lt_cv_deplibs_check_method='unknown'
3974# Need to set the preceding variable on all platforms that support
3975# interlibrary dependencies.
3976# 'none' -- dependencies not supported.
3977# `unknown' -- same as none, but documents that we really don't know.
3978# 'pass_all' -- all dependencies passed with no checks.
3979# 'test_compile' -- check by making test program.
3980# 'file_magic [[regex]]' -- check by looking for files in library path
3981# which responds to the $file_magic_cmd with a given extended regex.
3982# If you have `file' or equivalent on your system and you're not sure
3983# whether `pass_all' will *always* work, you probably want this one.
3984
3985case $host_os in
3986aix4* | aix5*)
3987  lt_cv_deplibs_check_method=pass_all
3988  ;;
3989
3990beos*)
3991  lt_cv_deplibs_check_method=pass_all
3992  ;;
3993
3994bsdi[45]*)
3995  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3996  lt_cv_file_magic_cmd='/usr/bin/file -L'
3997  lt_cv_file_magic_test_file=/shlib/libc.so
3998  ;;
3999
4000cygwin*)
4001  # func_win32_libid is a shell function defined in ltmain.sh
4002  #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4003  lt_cv_deplibs_check_method=pass_all
4004  lt_cv_file_magic_cmd='func_win32_libid'
4005  ;;
4006
4007mingw* | pw32*)
4008  # Base MSYS/MinGW do not provide the 'file' command needed by
4009  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4010  #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4011  lt_cv_deplibs_check_method=pass_all
4012  lt_cv_file_magic_cmd='$OBJDUMP -f'
4013  ;;
4014
4015darwin* | rhapsody*)
4016  lt_cv_deplibs_check_method=pass_all
4017  ;;
4018
4019freebsd* | kfreebsd*-gnu | dragonfly*)
4020  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4021    case $host_cpu in
4022    i*86 )
4023      # Not sure whether the presence of OpenBSD here was a mistake.
4024      # Let's accept both of them until this is cleared up.
4025      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4026      lt_cv_file_magic_cmd=/usr/bin/file
4027      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4028      ;;
4029    esac
4030  else
4031    lt_cv_deplibs_check_method=pass_all
4032  fi
4033  ;;
4034
4035gnu*)
4036  lt_cv_deplibs_check_method=pass_all
4037  ;;
4038
4039hpux10.20* | hpux11*)
4040  lt_cv_file_magic_cmd=/usr/bin/file
4041  case $host_cpu in
4042  ia64*)
4043    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4044    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4045    ;;
4046  hppa*64*)
4047    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]'
4048    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4049    ;;
4050  *)
4051    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4052    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4053    ;;
4054  esac
4055  ;;
4056
4057interix3*)
4058  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4059  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4060  ;;
4061
4062irix5* | irix6* | nonstopux*)
4063  case $LD in
4064  *-32|*"-32 ") libmagic=32-bit;;
4065  *-n32|*"-n32 ") libmagic=N32;;
4066  *-64|*"-64 ") libmagic=64-bit;;
4067  *) libmagic=never-match;;
4068  esac
4069  lt_cv_deplibs_check_method=pass_all
4070  ;;
4071
4072# This must be Linux ELF.
4073linux*)
4074  lt_cv_deplibs_check_method=pass_all
4075  ;;
4076
4077netbsd*)
4078  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4079    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4080  else
4081    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4082  fi
4083  ;;
4084
4085newos6*)
4086  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4087  lt_cv_file_magic_cmd=/usr/bin/file
4088  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4089  ;;
4090
4091nto-qnx*)
4092  lt_cv_deplibs_check_method=unknown
4093  ;;
4094
4095openbsd*)
4096  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4097    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4098  else
4099    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4100  fi
4101  ;;
4102
4103osf3* | osf4* | osf5*)
4104  lt_cv_deplibs_check_method=pass_all
4105  ;;
4106
4107solaris*)
4108  lt_cv_deplibs_check_method=pass_all
4109  ;;
4110
4111sysv4 | sysv4.3*)
4112  case $host_vendor in
4113  motorola)
4114    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]'
4115    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4116    ;;
4117  ncr)
4118    lt_cv_deplibs_check_method=pass_all
4119    ;;
4120  sequent)
4121    lt_cv_file_magic_cmd='/bin/file'
4122    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4123    ;;
4124  sni)
4125    lt_cv_file_magic_cmd='/bin/file'
4126    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4127    lt_cv_file_magic_test_file=/lib/libc.so
4128    ;;
4129  siemens)
4130    lt_cv_deplibs_check_method=pass_all
4131    ;;
4132  pc)
4133    lt_cv_deplibs_check_method=pass_all
4134    ;;
4135  esac
4136  ;;
4137
4138sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4139  lt_cv_deplibs_check_method=pass_all
4140  ;;
4141esac
4142
4143fi
4144echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4145echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4146file_magic_cmd=$lt_cv_file_magic_cmd
4147deplibs_check_method=$lt_cv_deplibs_check_method
4148test -z "$deplibs_check_method" && deplibs_check_method=unknown
4149
4150
4151
4152
4153# If no C compiler was specified, use CC.
4154LTCC=${LTCC-"$CC"}
4155
4156# If no C compiler flags were specified, use CFLAGS.
4157LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4158
4159# Allow CC to be a program name with arguments.
4160compiler=$CC
4161
4162
4163# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4164if test "${enable_libtool_lock+set}" = set; then
4165  enableval="$enable_libtool_lock"
4166
4167fi;
4168test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4169
4170# Some flags need to be propagated to the compiler or linker for good
4171# libtool support.
4172case $host in
4173ia64-*-hpux*)
4174  # Find out which ABI we are using.
4175  echo 'int i;' > conftest.$ac_ext
4176  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177  (eval $ac_compile) 2>&5
4178  ac_status=$?
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); }; then
4181    case `/usr/bin/file conftest.$ac_objext` in
4182    *ELF-32*)
4183      HPUX_IA64_MODE="32"
4184      ;;
4185    *ELF-64*)
4186      HPUX_IA64_MODE="64"
4187      ;;
4188    esac
4189  fi
4190  rm -rf conftest*
4191  ;;
4192*-*-irix6*)
4193  # Find out which ABI we are using.
4194  echo '#line 4194 "configure"' > conftest.$ac_ext
4195  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196  (eval $ac_compile) 2>&5
4197  ac_status=$?
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); }; then
4200   if test "$lt_cv_prog_gnu_ld" = yes; then
4201    case `/usr/bin/file conftest.$ac_objext` in
4202    *32-bit*)
4203      LD="${LD-ld} -melf32bsmip"
4204      ;;
4205    *N32*)
4206      LD="${LD-ld} -melf32bmipn32"
4207      ;;
4208    *64-bit*)
4209      LD="${LD-ld} -melf64bmip"
4210      ;;
4211    esac
4212   else
4213    case `/usr/bin/file conftest.$ac_objext` in
4214    *32-bit*)
4215      LD="${LD-ld} -32"
4216      ;;
4217    *N32*)
4218      LD="${LD-ld} -n32"
4219      ;;
4220    *64-bit*)
4221      LD="${LD-ld} -64"
4222      ;;
4223    esac
4224   fi
4225  fi
4226  rm -rf conftest*
4227  ;;
4228
4229x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4230  # Find out which ABI we are using.
4231  echo 'int i;' > conftest.$ac_ext
4232  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233  (eval $ac_compile) 2>&5
4234  ac_status=$?
4235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236  (exit $ac_status); }; then
4237    case `/usr/bin/file conftest.o` in
4238    *32-bit*)
4239      case $host in
4240        x86_64-*linux*)
4241          LD="${LD-ld} -m elf_i386"
4242          ;;
4243        ppc64-*linux*|powerpc64-*linux*)
4244          LD="${LD-ld} -m elf32ppclinux"
4245          ;;
4246        s390x-*linux*)
4247          LD="${LD-ld} -m elf_s390"
4248          ;;
4249        sparc64-*linux*)
4250          LD="${LD-ld} -m elf32_sparc"
4251          ;;
4252      esac
4253      ;;
4254    *64-bit*)
4255      case $host in
4256        x86_64-*linux*)
4257          LD="${LD-ld} -m elf_x86_64"
4258          ;;
4259        ppc*-*linux*|powerpc*-*linux*)
4260          LD="${LD-ld} -m elf64ppc"
4261          ;;
4262        s390*-*linux*)
4263          LD="${LD-ld} -m elf64_s390"
4264          ;;
4265        sparc*-*linux*)
4266          LD="${LD-ld} -m elf64_sparc"
4267          ;;
4268      esac
4269      ;;
4270    esac
4271  fi
4272  rm -rf conftest*
4273  ;;
4274
4275*-*-sco3.2v5*)
4276  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4277  SAVE_CFLAGS="$CFLAGS"
4278  CFLAGS="$CFLAGS -belf"
4279  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4280echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4281if test "${lt_cv_cc_needs_belf+set}" = set; then
4282  echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284  ac_ext=c
4285ac_cpp='$CPP $CPPFLAGS'
4286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290     cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h.  */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h.  */
4296
4297int
4298main ()
4299{
4300
4301  ;
4302  return 0;
4303}
4304_ACEOF
4305rm -f conftest.$ac_objext conftest$ac_exeext
4306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4307  (eval $ac_link) 2>conftest.er1
4308  ac_status=$?
4309  grep -v '^ *+' conftest.er1 >conftest.err
4310  rm -f conftest.er1
4311  cat conftest.err >&5
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); } &&
4314	 { ac_try='test -z "$ac_c_werror_flag"
4315			 || test ! -s conftest.err'
4316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317  (eval $ac_try) 2>&5
4318  ac_status=$?
4319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320  (exit $ac_status); }; } &&
4321	 { ac_try='test -s conftest$ac_exeext'
4322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323  (eval $ac_try) 2>&5
4324  ac_status=$?
4325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326  (exit $ac_status); }; }; then
4327  lt_cv_cc_needs_belf=yes
4328else
4329  echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332lt_cv_cc_needs_belf=no
4333fi
4334rm -f conftest.err conftest.$ac_objext \
4335      conftest$ac_exeext conftest.$ac_ext
4336     ac_ext=c
4337ac_cpp='$CPP $CPPFLAGS'
4338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
4342fi
4343echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4344echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4345  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4346    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4347    CFLAGS="$SAVE_CFLAGS"
4348  fi
4349  ;;
4350sparc*-*solaris*)
4351  # Find out which ABI we are using.
4352  echo 'int i;' > conftest.$ac_ext
4353  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354  (eval $ac_compile) 2>&5
4355  ac_status=$?
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); }; then
4358    case `/usr/bin/file conftest.o` in
4359    *64-bit*)
4360      case $lt_cv_prog_gnu_ld in
4361      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4362      *)    LD="${LD-ld} -64" ;;
4363      esac
4364      ;;
4365    esac
4366  fi
4367  rm -rf conftest*
4368  ;;
4369
4370
4371esac
4372
4373need_locks="$enable_libtool_lock"
4374
4375
4376ac_ext=c
4377ac_cpp='$CPP $CPPFLAGS'
4378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4382echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4383# On Suns, sometimes $CPP names a directory.
4384if test -n "$CPP" && test -d "$CPP"; then
4385  CPP=
4386fi
4387if test -z "$CPP"; then
4388  if test "${ac_cv_prog_CPP+set}" = set; then
4389  echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391      # Double quotes because CPP needs to be expanded
4392    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4393    do
4394      ac_preproc_ok=false
4395for ac_c_preproc_warn_flag in '' yes
4396do
4397  # Use a header file that comes with gcc, so configuring glibc
4398  # with a fresh cross-compiler works.
4399  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4400  # <limits.h> exists even on freestanding compilers.
4401  # On the NeXT, cc -E runs the code through the compiler's parser,
4402  # not just through cpp. "Syntax error" is here to catch this case.
4403  cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h.  */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h.  */
4409#ifdef __STDC__
4410# include <limits.h>
4411#else
4412# include <assert.h>
4413#endif
4414		     Syntax error
4415_ACEOF
4416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4417  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4418  ac_status=$?
4419  grep -v '^ *+' conftest.er1 >conftest.err
4420  rm -f conftest.er1
4421  cat conftest.err >&5
4422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423  (exit $ac_status); } >/dev/null; then
4424  if test -s conftest.err; then
4425    ac_cpp_err=$ac_c_preproc_warn_flag
4426    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4427  else
4428    ac_cpp_err=
4429  fi
4430else
4431  ac_cpp_err=yes
4432fi
4433if test -z "$ac_cpp_err"; then
4434  :
4435else
4436  echo "$as_me: failed program was:" >&5
4437sed 's/^/| /' conftest.$ac_ext >&5
4438
4439  # Broken: fails on valid input.
4440continue
4441fi
4442rm -f conftest.err conftest.$ac_ext
4443
4444  # OK, works on sane cases.  Now check whether non-existent headers
4445  # can be detected and how.
4446  cat >conftest.$ac_ext <<_ACEOF
4447/* confdefs.h.  */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h.  */
4452#include <ac_nonexistent.h>
4453_ACEOF
4454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4456  ac_status=$?
4457  grep -v '^ *+' conftest.er1 >conftest.err
4458  rm -f conftest.er1
4459  cat conftest.err >&5
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } >/dev/null; then
4462  if test -s conftest.err; then
4463    ac_cpp_err=$ac_c_preproc_warn_flag
4464    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4465  else
4466    ac_cpp_err=
4467  fi
4468else
4469  ac_cpp_err=yes
4470fi
4471if test -z "$ac_cpp_err"; then
4472  # Broken: success on invalid input.
4473continue
4474else
4475  echo "$as_me: failed program was:" >&5
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
4478  # Passes both tests.
4479ac_preproc_ok=:
4480break
4481fi
4482rm -f conftest.err conftest.$ac_ext
4483
4484done
4485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4486rm -f conftest.err conftest.$ac_ext
4487if $ac_preproc_ok; then
4488  break
4489fi
4490
4491    done
4492    ac_cv_prog_CPP=$CPP
4493
4494fi
4495  CPP=$ac_cv_prog_CPP
4496else
4497  ac_cv_prog_CPP=$CPP
4498fi
4499echo "$as_me:$LINENO: result: $CPP" >&5
4500echo "${ECHO_T}$CPP" >&6
4501ac_preproc_ok=false
4502for ac_c_preproc_warn_flag in '' yes
4503do
4504  # Use a header file that comes with gcc, so configuring glibc
4505  # with a fresh cross-compiler works.
4506  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4507  # <limits.h> exists even on freestanding compilers.
4508  # On the NeXT, cc -E runs the code through the compiler's parser,
4509  # not just through cpp. "Syntax error" is here to catch this case.
4510  cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h.  */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h.  */
4516#ifdef __STDC__
4517# include <limits.h>
4518#else
4519# include <assert.h>
4520#endif
4521		     Syntax error
4522_ACEOF
4523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4524  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4525  ac_status=$?
4526  grep -v '^ *+' conftest.er1 >conftest.err
4527  rm -f conftest.er1
4528  cat conftest.err >&5
4529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530  (exit $ac_status); } >/dev/null; then
4531  if test -s conftest.err; then
4532    ac_cpp_err=$ac_c_preproc_warn_flag
4533    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4534  else
4535    ac_cpp_err=
4536  fi
4537else
4538  ac_cpp_err=yes
4539fi
4540if test -z "$ac_cpp_err"; then
4541  :
4542else
4543  echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
4545
4546  # Broken: fails on valid input.
4547continue
4548fi
4549rm -f conftest.err conftest.$ac_ext
4550
4551  # OK, works on sane cases.  Now check whether non-existent headers
4552  # can be detected and how.
4553  cat >conftest.$ac_ext <<_ACEOF
4554/* confdefs.h.  */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
4558/* end confdefs.h.  */
4559#include <ac_nonexistent.h>
4560_ACEOF
4561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4562  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4563  ac_status=$?
4564  grep -v '^ *+' conftest.er1 >conftest.err
4565  rm -f conftest.er1
4566  cat conftest.err >&5
4567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568  (exit $ac_status); } >/dev/null; then
4569  if test -s conftest.err; then
4570    ac_cpp_err=$ac_c_preproc_warn_flag
4571    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4572  else
4573    ac_cpp_err=
4574  fi
4575else
4576  ac_cpp_err=yes
4577fi
4578if test -z "$ac_cpp_err"; then
4579  # Broken: success on invalid input.
4580continue
4581else
4582  echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
4584
4585  # Passes both tests.
4586ac_preproc_ok=:
4587break
4588fi
4589rm -f conftest.err conftest.$ac_ext
4590
4591done
4592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4593rm -f conftest.err conftest.$ac_ext
4594if $ac_preproc_ok; then
4595  :
4596else
4597  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4598See \`config.log' for more details." >&5
4599echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4600See \`config.log' for more details." >&2;}
4601   { (exit 1); exit 1; }; }
4602fi
4603
4604ac_ext=c
4605ac_cpp='$CPP $CPPFLAGS'
4606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609
4610
4611echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4612echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4613if test "${ac_cv_header_stdc+set}" = set; then
4614  echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616  cat >conftest.$ac_ext <<_ACEOF
4617/* confdefs.h.  */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h.  */
4622#include <stdlib.h>
4623#include <stdarg.h>
4624#include <string.h>
4625#include <float.h>
4626
4627int
4628main ()
4629{
4630
4631  ;
4632  return 0;
4633}
4634_ACEOF
4635rm -f conftest.$ac_objext
4636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637  (eval $ac_compile) 2>conftest.er1
4638  ac_status=$?
4639  grep -v '^ *+' conftest.er1 >conftest.err
4640  rm -f conftest.er1
4641  cat conftest.err >&5
4642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643  (exit $ac_status); } &&
4644	 { ac_try='test -z "$ac_c_werror_flag"
4645			 || test ! -s conftest.err'
4646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647  (eval $ac_try) 2>&5
4648  ac_status=$?
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); }; } &&
4651	 { ac_try='test -s conftest.$ac_objext'
4652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653  (eval $ac_try) 2>&5
4654  ac_status=$?
4655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656  (exit $ac_status); }; }; then
4657  ac_cv_header_stdc=yes
4658else
4659  echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
4662ac_cv_header_stdc=no
4663fi
4664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665
4666if test $ac_cv_header_stdc = yes; then
4667  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4668  cat >conftest.$ac_ext <<_ACEOF
4669/* confdefs.h.  */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h.  */
4674#include <string.h>
4675
4676_ACEOF
4677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4678  $EGREP "memchr" >/dev/null 2>&1; then
4679  :
4680else
4681  ac_cv_header_stdc=no
4682fi
4683rm -f conftest*
4684
4685fi
4686
4687if test $ac_cv_header_stdc = yes; then
4688  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4689  cat >conftest.$ac_ext <<_ACEOF
4690/* confdefs.h.  */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h.  */
4695#include <stdlib.h>
4696
4697_ACEOF
4698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4699  $EGREP "free" >/dev/null 2>&1; then
4700  :
4701else
4702  ac_cv_header_stdc=no
4703fi
4704rm -f conftest*
4705
4706fi
4707
4708if test $ac_cv_header_stdc = yes; then
4709  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4710  if test "$cross_compiling" = yes; then
4711  :
4712else
4713  cat >conftest.$ac_ext <<_ACEOF
4714/* confdefs.h.  */
4715_ACEOF
4716cat confdefs.h >>conftest.$ac_ext
4717cat >>conftest.$ac_ext <<_ACEOF
4718/* end confdefs.h.  */
4719#include <ctype.h>
4720#if ((' ' & 0x0FF) == 0x020)
4721# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4722# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4723#else
4724# define ISLOWER(c) \
4725		   (('a' <= (c) && (c) <= 'i') \
4726		     || ('j' <= (c) && (c) <= 'r') \
4727		     || ('s' <= (c) && (c) <= 'z'))
4728# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4729#endif
4730
4731#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4732int
4733main ()
4734{
4735  int i;
4736  for (i = 0; i < 256; i++)
4737    if (XOR (islower (i), ISLOWER (i))
4738	|| toupper (i) != TOUPPER (i))
4739      exit(2);
4740  exit (0);
4741}
4742_ACEOF
4743rm -f conftest$ac_exeext
4744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4745  (eval $ac_link) 2>&5
4746  ac_status=$?
4747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750  (eval $ac_try) 2>&5
4751  ac_status=$?
4752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753  (exit $ac_status); }; }; then
4754  :
4755else
4756  echo "$as_me: program exited with status $ac_status" >&5
4757echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760( exit $ac_status )
4761ac_cv_header_stdc=no
4762fi
4763rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4764fi
4765fi
4766fi
4767echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4768echo "${ECHO_T}$ac_cv_header_stdc" >&6
4769if test $ac_cv_header_stdc = yes; then
4770
4771cat >>confdefs.h <<\_ACEOF
4772#define STDC_HEADERS 1
4773_ACEOF
4774
4775fi
4776
4777# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4788		  inttypes.h stdint.h unistd.h
4789do
4790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4791echo "$as_me:$LINENO: checking for $ac_header" >&5
4792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4793if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794  echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796  cat >conftest.$ac_ext <<_ACEOF
4797/* confdefs.h.  */
4798_ACEOF
4799cat confdefs.h >>conftest.$ac_ext
4800cat >>conftest.$ac_ext <<_ACEOF
4801/* end confdefs.h.  */
4802$ac_includes_default
4803
4804#include <$ac_header>
4805_ACEOF
4806rm -f conftest.$ac_objext
4807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808  (eval $ac_compile) 2>conftest.er1
4809  ac_status=$?
4810  grep -v '^ *+' conftest.er1 >conftest.err
4811  rm -f conftest.er1
4812  cat conftest.err >&5
4813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814  (exit $ac_status); } &&
4815	 { ac_try='test -z "$ac_c_werror_flag"
4816			 || test ! -s conftest.err'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; } &&
4822	 { ac_try='test -s conftest.$ac_objext'
4823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824  (eval $ac_try) 2>&5
4825  ac_status=$?
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); }; }; then
4828  eval "$as_ac_Header=yes"
4829else
4830  echo "$as_me: failed program was:" >&5
4831sed 's/^/| /' conftest.$ac_ext >&5
4832
4833eval "$as_ac_Header=no"
4834fi
4835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4836fi
4837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4839if test `eval echo '${'$as_ac_Header'}'` = yes; then
4840  cat >>confdefs.h <<_ACEOF
4841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4842_ACEOF
4843
4844fi
4845
4846done
4847
4848
4849
4850for ac_header in dlfcn.h
4851do
4852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4853if eval "test \"\${$as_ac_Header+set}\" = set"; then
4854  echo "$as_me:$LINENO: checking for $ac_header" >&5
4855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4856if eval "test \"\${$as_ac_Header+set}\" = set"; then
4857  echo $ECHO_N "(cached) $ECHO_C" >&6
4858fi
4859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4861else
4862  # Is the header compilable?
4863echo "$as_me:$LINENO: checking $ac_header usability" >&5
4864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4865cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h.  */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h.  */
4871$ac_includes_default
4872#include <$ac_header>
4873_ACEOF
4874rm -f conftest.$ac_objext
4875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876  (eval $ac_compile) 2>conftest.er1
4877  ac_status=$?
4878  grep -v '^ *+' conftest.er1 >conftest.err
4879  rm -f conftest.er1
4880  cat conftest.err >&5
4881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882  (exit $ac_status); } &&
4883	 { ac_try='test -z "$ac_c_werror_flag"
4884			 || test ! -s conftest.err'
4885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886  (eval $ac_try) 2>&5
4887  ac_status=$?
4888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889  (exit $ac_status); }; } &&
4890	 { ac_try='test -s conftest.$ac_objext'
4891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892  (eval $ac_try) 2>&5
4893  ac_status=$?
4894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895  (exit $ac_status); }; }; then
4896  ac_header_compiler=yes
4897else
4898  echo "$as_me: failed program was:" >&5
4899sed 's/^/| /' conftest.$ac_ext >&5
4900
4901ac_header_compiler=no
4902fi
4903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4905echo "${ECHO_T}$ac_header_compiler" >&6
4906
4907# Is the header present?
4908echo "$as_me:$LINENO: checking $ac_header presence" >&5
4909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4910cat >conftest.$ac_ext <<_ACEOF
4911/* confdefs.h.  */
4912_ACEOF
4913cat confdefs.h >>conftest.$ac_ext
4914cat >>conftest.$ac_ext <<_ACEOF
4915/* end confdefs.h.  */
4916#include <$ac_header>
4917_ACEOF
4918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4919  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4920  ac_status=$?
4921  grep -v '^ *+' conftest.er1 >conftest.err
4922  rm -f conftest.er1
4923  cat conftest.err >&5
4924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925  (exit $ac_status); } >/dev/null; then
4926  if test -s conftest.err; then
4927    ac_cpp_err=$ac_c_preproc_warn_flag
4928    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4929  else
4930    ac_cpp_err=
4931  fi
4932else
4933  ac_cpp_err=yes
4934fi
4935if test -z "$ac_cpp_err"; then
4936  ac_header_preproc=yes
4937else
4938  echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941  ac_header_preproc=no
4942fi
4943rm -f conftest.err conftest.$ac_ext
4944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4945echo "${ECHO_T}$ac_header_preproc" >&6
4946
4947# So?  What about this header?
4948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4949  yes:no: )
4950    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4952    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4953echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4954    ac_header_preproc=yes
4955    ;;
4956  no:yes:* )
4957    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4958echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4959    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4960echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4961    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4962echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4963    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4964echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4965    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4967    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4968echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4969    (
4970      cat <<\_ASBOX
4971## ------------------------------------------ ##
4972## Report this to the AC_PACKAGE_NAME lists.  ##
4973## ------------------------------------------ ##
4974_ASBOX
4975    ) |
4976      sed "s/^/$as_me: WARNING:     /" >&2
4977    ;;
4978esac
4979echo "$as_me:$LINENO: checking for $ac_header" >&5
4980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4981if eval "test \"\${$as_ac_Header+set}\" = set"; then
4982  echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984  eval "$as_ac_Header=\$ac_header_preproc"
4985fi
4986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4988
4989fi
4990if test `eval echo '${'$as_ac_Header'}'` = yes; then
4991  cat >>confdefs.h <<_ACEOF
4992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4993_ACEOF
4994
4995fi
4996
4997done
4998
4999
5000
5001if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5002    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5003    (test "X$CXX" != "Xg++"))) ; then
5004  ac_ext=cc
5005ac_cpp='$CXXCPP $CPPFLAGS'
5006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5009echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5010echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5011if test -z "$CXXCPP"; then
5012  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5013  echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015      # Double quotes because CXXCPP needs to be expanded
5016    for CXXCPP in "$CXX -E" "/lib/cpp"
5017    do
5018      ac_preproc_ok=false
5019for ac_cxx_preproc_warn_flag in '' yes
5020do
5021  # Use a header file that comes with gcc, so configuring glibc
5022  # with a fresh cross-compiler works.
5023  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024  # <limits.h> exists even on freestanding compilers.
5025  # On the NeXT, cc -E runs the code through the compiler's parser,
5026  # not just through cpp. "Syntax error" is here to catch this case.
5027  cat >conftest.$ac_ext <<_ACEOF
5028/* confdefs.h.  */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h.  */
5033#ifdef __STDC__
5034# include <limits.h>
5035#else
5036# include <assert.h>
5037#endif
5038		     Syntax error
5039_ACEOF
5040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5041  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5042  ac_status=$?
5043  grep -v '^ *+' conftest.er1 >conftest.err
5044  rm -f conftest.er1
5045  cat conftest.err >&5
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); } >/dev/null; then
5048  if test -s conftest.err; then
5049    ac_cpp_err=$ac_cxx_preproc_warn_flag
5050    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5051  else
5052    ac_cpp_err=
5053  fi
5054else
5055  ac_cpp_err=yes
5056fi
5057if test -z "$ac_cpp_err"; then
5058  :
5059else
5060  echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063  # Broken: fails on valid input.
5064continue
5065fi
5066rm -f conftest.err conftest.$ac_ext
5067
5068  # OK, works on sane cases.  Now check whether non-existent headers
5069  # can be detected and how.
5070  cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h.  */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h.  */
5076#include <ac_nonexistent.h>
5077_ACEOF
5078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5079  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5080  ac_status=$?
5081  grep -v '^ *+' conftest.er1 >conftest.err
5082  rm -f conftest.er1
5083  cat conftest.err >&5
5084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085  (exit $ac_status); } >/dev/null; then
5086  if test -s conftest.err; then
5087    ac_cpp_err=$ac_cxx_preproc_warn_flag
5088    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5089  else
5090    ac_cpp_err=
5091  fi
5092else
5093  ac_cpp_err=yes
5094fi
5095if test -z "$ac_cpp_err"; then
5096  # Broken: success on invalid input.
5097continue
5098else
5099  echo "$as_me: failed program was:" >&5
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
5102  # Passes both tests.
5103ac_preproc_ok=:
5104break
5105fi
5106rm -f conftest.err conftest.$ac_ext
5107
5108done
5109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110rm -f conftest.err conftest.$ac_ext
5111if $ac_preproc_ok; then
5112  break
5113fi
5114
5115    done
5116    ac_cv_prog_CXXCPP=$CXXCPP
5117
5118fi
5119  CXXCPP=$ac_cv_prog_CXXCPP
5120else
5121  ac_cv_prog_CXXCPP=$CXXCPP
5122fi
5123echo "$as_me:$LINENO: result: $CXXCPP" >&5
5124echo "${ECHO_T}$CXXCPP" >&6
5125ac_preproc_ok=false
5126for ac_cxx_preproc_warn_flag in '' yes
5127do
5128  # Use a header file that comes with gcc, so configuring glibc
5129  # with a fresh cross-compiler works.
5130  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5131  # <limits.h> exists even on freestanding compilers.
5132  # On the NeXT, cc -E runs the code through the compiler's parser,
5133  # not just through cpp. "Syntax error" is here to catch this case.
5134  cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h.  */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h.  */
5140#ifdef __STDC__
5141# include <limits.h>
5142#else
5143# include <assert.h>
5144#endif
5145		     Syntax error
5146_ACEOF
5147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5148  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5149  ac_status=$?
5150  grep -v '^ *+' conftest.er1 >conftest.err
5151  rm -f conftest.er1
5152  cat conftest.err >&5
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); } >/dev/null; then
5155  if test -s conftest.err; then
5156    ac_cpp_err=$ac_cxx_preproc_warn_flag
5157    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5158  else
5159    ac_cpp_err=
5160  fi
5161else
5162  ac_cpp_err=yes
5163fi
5164if test -z "$ac_cpp_err"; then
5165  :
5166else
5167  echo "$as_me: failed program was:" >&5
5168sed 's/^/| /' conftest.$ac_ext >&5
5169
5170  # Broken: fails on valid input.
5171continue
5172fi
5173rm -f conftest.err conftest.$ac_ext
5174
5175  # OK, works on sane cases.  Now check whether non-existent headers
5176  # can be detected and how.
5177  cat >conftest.$ac_ext <<_ACEOF
5178/* confdefs.h.  */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h.  */
5183#include <ac_nonexistent.h>
5184_ACEOF
5185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5186  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5187  ac_status=$?
5188  grep -v '^ *+' conftest.er1 >conftest.err
5189  rm -f conftest.er1
5190  cat conftest.err >&5
5191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); } >/dev/null; then
5193  if test -s conftest.err; then
5194    ac_cpp_err=$ac_cxx_preproc_warn_flag
5195    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5196  else
5197    ac_cpp_err=
5198  fi
5199else
5200  ac_cpp_err=yes
5201fi
5202if test -z "$ac_cpp_err"; then
5203  # Broken: success on invalid input.
5204continue
5205else
5206  echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
5209  # Passes both tests.
5210ac_preproc_ok=:
5211break
5212fi
5213rm -f conftest.err conftest.$ac_ext
5214
5215done
5216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217rm -f conftest.err conftest.$ac_ext
5218if $ac_preproc_ok; then
5219  :
5220else
5221  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5222See \`config.log' for more details." >&5
5223echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5224See \`config.log' for more details." >&2;}
5225   { (exit 1); exit 1; }; }
5226fi
5227
5228ac_ext=cc
5229ac_cpp='$CXXCPP $CPPFLAGS'
5230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5233
5234fi
5235
5236
5237ac_ext=f
5238ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5239ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5241if test -n "$ac_tool_prefix"; then
5242  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5243  do
5244    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5246echo "$as_me:$LINENO: checking for $ac_word" >&5
5247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5248if test "${ac_cv_prog_F77+set}" = set; then
5249  echo $ECHO_N "(cached) $ECHO_C" >&6
5250else
5251  if test -n "$F77"; then
5252  ac_cv_prog_F77="$F77" # Let the user override the test.
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257  IFS=$as_save_IFS
5258  test -z "$as_dir" && as_dir=.
5259  for ac_exec_ext in '' $ac_executable_extensions; do
5260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263    break 2
5264  fi
5265done
5266done
5267
5268fi
5269fi
5270F77=$ac_cv_prog_F77
5271if test -n "$F77"; then
5272  echo "$as_me:$LINENO: result: $F77" >&5
5273echo "${ECHO_T}$F77" >&6
5274else
5275  echo "$as_me:$LINENO: result: no" >&5
5276echo "${ECHO_T}no" >&6
5277fi
5278
5279    test -n "$F77" && break
5280  done
5281fi
5282if test -z "$F77"; then
5283  ac_ct_F77=$F77
5284  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5285do
5286  # Extract the first word of "$ac_prog", so it can be a program name with args.
5287set dummy $ac_prog; ac_word=$2
5288echo "$as_me:$LINENO: checking for $ac_word" >&5
5289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  if test -n "$ac_ct_F77"; then
5294  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5295else
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299  IFS=$as_save_IFS
5300  test -z "$as_dir" && as_dir=.
5301  for ac_exec_ext in '' $ac_executable_extensions; do
5302  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303    ac_cv_prog_ac_ct_F77="$ac_prog"
5304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305    break 2
5306  fi
5307done
5308done
5309
5310fi
5311fi
5312ac_ct_F77=$ac_cv_prog_ac_ct_F77
5313if test -n "$ac_ct_F77"; then
5314  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5315echo "${ECHO_T}$ac_ct_F77" >&6
5316else
5317  echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319fi
5320
5321  test -n "$ac_ct_F77" && break
5322done
5323
5324  F77=$ac_ct_F77
5325fi
5326
5327
5328# Provide some information about the compiler.
5329echo "$as_me:5329:" \
5330     "checking for Fortran 77 compiler version" >&5
5331ac_compiler=`set X $ac_compile; echo $2`
5332{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5333  (eval $ac_compiler --version </dev/null >&5) 2>&5
5334  ac_status=$?
5335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336  (exit $ac_status); }
5337{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5338  (eval $ac_compiler -v </dev/null >&5) 2>&5
5339  ac_status=$?
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); }
5342{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5343  (eval $ac_compiler -V </dev/null >&5) 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); }
5347rm -f a.out
5348
5349# If we don't use `.F' as extension, the preprocessor is not run on the
5350# input file.  (Note that this only needs to work for GNU compilers.)
5351ac_save_ext=$ac_ext
5352ac_ext=F
5353echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5354echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5355if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5356  echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358  cat >conftest.$ac_ext <<_ACEOF
5359      program main
5360#ifndef __GNUC__
5361       choke me
5362#endif
5363
5364      end
5365_ACEOF
5366rm -f conftest.$ac_objext
5367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5368  (eval $ac_compile) 2>conftest.er1
5369  ac_status=$?
5370  grep -v '^ *+' conftest.er1 >conftest.err
5371  rm -f conftest.er1
5372  cat conftest.err >&5
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); } &&
5375	 { ac_try='test -z "$ac_f77_werror_flag"
5376			 || test ! -s conftest.err'
5377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378  (eval $ac_try) 2>&5
5379  ac_status=$?
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); }; } &&
5382	 { ac_try='test -s conftest.$ac_objext'
5383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384  (eval $ac_try) 2>&5
5385  ac_status=$?
5386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387  (exit $ac_status); }; }; then
5388  ac_compiler_gnu=yes
5389else
5390  echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
5393ac_compiler_gnu=no
5394fi
5395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5396ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5397
5398fi
5399echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5400echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5401ac_ext=$ac_save_ext
5402ac_test_FFLAGS=${FFLAGS+set}
5403ac_save_FFLAGS=$FFLAGS
5404FFLAGS=
5405echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5406echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5407if test "${ac_cv_prog_f77_g+set}" = set; then
5408  echo $ECHO_N "(cached) $ECHO_C" >&6
5409else
5410  FFLAGS=-g
5411cat >conftest.$ac_ext <<_ACEOF
5412      program main
5413
5414      end
5415_ACEOF
5416rm -f conftest.$ac_objext
5417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418  (eval $ac_compile) 2>conftest.er1
5419  ac_status=$?
5420  grep -v '^ *+' conftest.er1 >conftest.err
5421  rm -f conftest.er1
5422  cat conftest.err >&5
5423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424  (exit $ac_status); } &&
5425	 { ac_try='test -z "$ac_f77_werror_flag"
5426			 || test ! -s conftest.err'
5427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428  (eval $ac_try) 2>&5
5429  ac_status=$?
5430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431  (exit $ac_status); }; } &&
5432	 { ac_try='test -s conftest.$ac_objext'
5433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434  (eval $ac_try) 2>&5
5435  ac_status=$?
5436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437  (exit $ac_status); }; }; then
5438  ac_cv_prog_f77_g=yes
5439else
5440  echo "$as_me: failed program was:" >&5
5441sed 's/^/| /' conftest.$ac_ext >&5
5442
5443ac_cv_prog_f77_g=no
5444fi
5445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5446
5447fi
5448echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5449echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5450if test "$ac_test_FFLAGS" = set; then
5451  FFLAGS=$ac_save_FFLAGS
5452elif test $ac_cv_prog_f77_g = yes; then
5453  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5454    FFLAGS="-g -O2"
5455  else
5456    FFLAGS="-g"
5457  fi
5458else
5459  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5460    FFLAGS="-O2"
5461  else
5462    FFLAGS=
5463  fi
5464fi
5465
5466G77=`test $ac_compiler_gnu = yes && echo yes`
5467ac_ext=c
5468ac_cpp='$CPP $CPPFLAGS'
5469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472
5473
5474
5475# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5476
5477# find the maximum length of command line arguments
5478echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5479echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5480if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5481  echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483    i=0
5484  teststring="ABCD"
5485
5486  case $build_os in
5487  msdosdjgpp*)
5488    # On DJGPP, this test can blow up pretty badly due to problems in libc
5489    # (any single argument exceeding 2000 bytes causes a buffer overrun
5490    # during glob expansion).  Even if it were fixed, the result of this
5491    # check would be larger than it should be.
5492    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5493    ;;
5494
5495  gnu*)
5496    # Under GNU Hurd, this test is not required because there is
5497    # no limit to the length of command line arguments.
5498    # Libtool will interpret -1 as no limit whatsoever
5499    lt_cv_sys_max_cmd_len=-1;
5500    ;;
5501
5502  cygwin* | mingw*)
5503    # On Win9x/ME, this test blows up -- it succeeds, but takes
5504    # about 5 minutes as the teststring grows exponentially.
5505    # Worse, since 9x/ME are not pre-emptively multitasking,
5506    # you end up with a "frozen" computer, even though with patience
5507    # the test eventually succeeds (with a max line length of 256k).
5508    # Instead, let's just punt: use the minimum linelength reported by
5509    # all of the supported platforms: 8192 (on NT/2K/XP).
5510    lt_cv_sys_max_cmd_len=8192;
5511    ;;
5512
5513  beos*)
5514    # On BeOS, this test takes a really really long time.
5515    # So we just punt and use a minimum line length of 8192.
5516    lt_cv_sys_max_cmd_len=8192;
5517    ;;
5518
5519  amigaos*)
5520    # On AmigaOS with pdksh, this test takes hours, literally.
5521    # So we just punt and use a minimum line length of 8192.
5522    lt_cv_sys_max_cmd_len=8192;
5523    ;;
5524
5525  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5526    # This has been around since 386BSD, at least.  Likely further.
5527    if test -x /sbin/sysctl; then
5528      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5529    elif test -x /usr/sbin/sysctl; then
5530      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5531    else
5532      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5533    fi
5534    # And add a safety zone
5535    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5536    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5537    ;;
5538
5539  interix*)
5540    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5541    lt_cv_sys_max_cmd_len=196608
5542    ;;
5543
5544  osf*)
5545    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5546    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5547    # nice to cause kernel panics so lets avoid the loop below.
5548    # First set a reasonable default.
5549    lt_cv_sys_max_cmd_len=16384
5550    #
5551    if test -x /sbin/sysconfig; then
5552      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5553        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5554      esac
5555    fi
5556    ;;
5557  sco3.2v5*)
5558    lt_cv_sys_max_cmd_len=102400
5559    ;;
5560  sysv5* | sco5v6* | sysv4.2uw2*)
5561    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5562    if test -n "$kargmax"; then
5563      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5564    else
5565      lt_cv_sys_max_cmd_len=32768
5566    fi
5567    ;;
5568  *)
5569    # If test is not a shell built-in, we'll probably end up computing a
5570    # maximum length that is only half of the actual maximum length, but
5571    # we can't tell.
5572    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5573    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5574	       = "XX$teststring") >/dev/null 2>&1 &&
5575	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5576	    lt_cv_sys_max_cmd_len=$new_result &&
5577	    test $i != 17 # 1/2 MB should be enough
5578    do
5579      i=`expr $i + 1`
5580      teststring=$teststring$teststring
5581    done
5582    teststring=
5583    # Add a significant safety factor because C++ compilers can tack on massive
5584    # amounts of additional arguments before passing them to the linker.
5585    # It appears as though 1/2 is a usable value.
5586    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5587    ;;
5588  esac
5589
5590fi
5591
5592if test -n $lt_cv_sys_max_cmd_len ; then
5593  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5594echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5595else
5596  echo "$as_me:$LINENO: result: none" >&5
5597echo "${ECHO_T}none" >&6
5598fi
5599
5600
5601
5602
5603# Check for command to grab the raw symbol name followed by C symbol from nm.
5604echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5605echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5606if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5607  echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609
5610# These are sane defaults that work on at least a few old systems.
5611# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5612
5613# Character class describing NM global symbol codes.
5614symcode='[BCDEGRST]'
5615
5616# Regexp to match symbols that can be accessed directly from C.
5617sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5618
5619# Transform an extracted symbol line into a proper C declaration
5620lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5621
5622# Transform an extracted symbol line into symbol name and symbol address
5623lt_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'"
5624
5625# Define system-specific variables.
5626case $host_os in
5627aix*)
5628  symcode='[BCDT]'
5629  ;;
5630cygwin* | mingw* | pw32*)
5631  symcode='[ABCDGISTW]'
5632  ;;
5633hpux*) # Its linker distinguishes data from code symbols
5634  if test "$host_cpu" = ia64; then
5635    symcode='[ABCDEGRST]'
5636  fi
5637  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5638  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'"
5639  ;;
5640linux*)
5641  if test "$host_cpu" = ia64; then
5642    symcode='[ABCDGIRSTW]'
5643    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5644    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'"
5645  fi
5646  ;;
5647irix* | nonstopux*)
5648  symcode='[BCDEGRST]'
5649  ;;
5650osf*)
5651  symcode='[BCDEGQRST]'
5652  ;;
5653solaris*)
5654  symcode='[BDRT]'
5655  ;;
5656sco3.2v5*)
5657  symcode='[DT]'
5658  ;;
5659sysv4.2uw2*)
5660  symcode='[DT]'
5661  ;;
5662sysv5* | sco5v6* | unixware* | OpenUNIX*)
5663  symcode='[ABDT]'
5664  ;;
5665sysv4)
5666  symcode='[DFNSTU]'
5667  ;;
5668esac
5669
5670# Handle CRLF in mingw tool chain
5671opt_cr=
5672case $build_os in
5673mingw*)
5674  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5675  ;;
5676esac
5677
5678# If we're using GNU nm, then use its standard symbol codes.
5679case `$NM -V 2>&1` in
5680*GNU* | *'with BFD'*)
5681  symcode='[ABCDGIRSTW]' ;;
5682esac
5683
5684# Try without a prefix undercore, then with it.
5685for ac_symprfx in "" "_"; do
5686
5687  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5688  symxfrm="\\1 $ac_symprfx\\2 \\2"
5689
5690  # Write the raw and C identifiers.
5691  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5692
5693  # Check to see that the pipe works correctly.
5694  pipe_works=no
5695
5696  rm -f conftest*
5697  cat > conftest.$ac_ext <<EOF
5698#ifdef __cplusplus
5699extern "C" {
5700#endif
5701char nm_test_var;
5702void nm_test_func(){}
5703#ifdef __cplusplus
5704}
5705#endif
5706int main(){nm_test_var='a';nm_test_func();return(0);}
5707EOF
5708
5709  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710  (eval $ac_compile) 2>&5
5711  ac_status=$?
5712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713  (exit $ac_status); }; then
5714    # Now try to grab the symbols.
5715    nlist=conftest.nm
5716    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5717  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5718  ac_status=$?
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); } && test -s "$nlist"; then
5721      # Try sorting and uniquifying the output.
5722      if sort "$nlist" | uniq > "$nlist"T; then
5723	mv -f "$nlist"T "$nlist"
5724      else
5725	rm -f "$nlist"T
5726      fi
5727
5728      # Make sure that we snagged all the symbols we need.
5729      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5730	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5731	  cat <<EOF > conftest.$ac_ext
5732#ifdef __cplusplus
5733extern "C" {
5734#endif
5735
5736EOF
5737	  # Now generate the symbol file.
5738	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5739
5740	  cat <<EOF >> conftest.$ac_ext
5741#if defined (__STDC__) && __STDC__
5742# define lt_ptr_t void *
5743#else
5744# define lt_ptr_t char *
5745# define const
5746#endif
5747
5748/* The mapping between symbol names and symbols. */
5749const struct {
5750  const char *name;
5751  lt_ptr_t address;
5752}
5753lt_preloaded_symbols[] =
5754{
5755EOF
5756	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5757	  cat <<\EOF >> conftest.$ac_ext
5758  {0, (lt_ptr_t) 0}
5759};
5760
5761#ifdef __cplusplus
5762}
5763#endif
5764EOF
5765	  # Now try linking the two files.
5766	  mv conftest.$ac_objext conftstm.$ac_objext
5767	  lt_save_LIBS="$LIBS"
5768	  lt_save_CFLAGS="$CFLAGS"
5769	  LIBS="conftstm.$ac_objext"
5770	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5771	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5772  (eval $ac_link) 2>&5
5773  ac_status=$?
5774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5776	    pipe_works=yes
5777	  fi
5778	  LIBS="$lt_save_LIBS"
5779	  CFLAGS="$lt_save_CFLAGS"
5780	else
5781	  echo "cannot find nm_test_func in $nlist" >&5
5782	fi
5783      else
5784	echo "cannot find nm_test_var in $nlist" >&5
5785      fi
5786    else
5787      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5788    fi
5789  else
5790    echo "$progname: failed program was:" >&5
5791    cat conftest.$ac_ext >&5
5792  fi
5793  rm -f conftest* conftst*
5794
5795  # Do not use the global_symbol_pipe unless it works.
5796  if test "$pipe_works" = yes; then
5797    break
5798  else
5799    lt_cv_sys_global_symbol_pipe=
5800  fi
5801done
5802
5803fi
5804
5805if test -z "$lt_cv_sys_global_symbol_pipe"; then
5806  lt_cv_sys_global_symbol_to_cdecl=
5807fi
5808if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5809  echo "$as_me:$LINENO: result: failed" >&5
5810echo "${ECHO_T}failed" >&6
5811else
5812  echo "$as_me:$LINENO: result: ok" >&5
5813echo "${ECHO_T}ok" >&6
5814fi
5815
5816echo "$as_me:$LINENO: checking for objdir" >&5
5817echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5818if test "${lt_cv_objdir+set}" = set; then
5819  echo $ECHO_N "(cached) $ECHO_C" >&6
5820else
5821  rm -f .libs 2>/dev/null
5822mkdir .libs 2>/dev/null
5823if test -d .libs; then
5824  lt_cv_objdir=.libs
5825else
5826  # MS-DOS does not allow filenames that begin with a dot.
5827  lt_cv_objdir=_libs
5828fi
5829rmdir .libs 2>/dev/null
5830fi
5831echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5832echo "${ECHO_T}$lt_cv_objdir" >&6
5833objdir=$lt_cv_objdir
5834
5835
5836
5837
5838
5839case $host_os in
5840aix3*)
5841  # AIX sometimes has problems with the GCC collect2 program.  For some
5842  # reason, if we set the COLLECT_NAMES environment variable, the problems
5843  # vanish in a puff of smoke.
5844  if test "X${COLLECT_NAMES+set}" != Xset; then
5845    COLLECT_NAMES=
5846    export COLLECT_NAMES
5847  fi
5848  ;;
5849esac
5850
5851# Sed substitution that helps us do robust quoting.  It backslashifies
5852# metacharacters that are still active within double-quoted strings.
5853Xsed='sed -e 1s/^X//'
5854sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5855
5856# Same as above, but do not quote variable references.
5857double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5858
5859# Sed substitution to delay expansion of an escaped shell variable in a
5860# double_quote_subst'ed string.
5861delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5862
5863# Sed substitution to avoid accidental globbing in evaled expressions
5864no_glob_subst='s/\*/\\\*/g'
5865
5866# Constants:
5867rm="rm -f"
5868
5869# Global variables:
5870default_ofile=libtool
5871can_build_shared=yes
5872
5873# All known linkers require a `.a' archive for static linking (except MSVC,
5874# which needs '.lib').
5875libext=a
5876ltmain="$ac_aux_dir/ltmain.sh"
5877ofile="$default_ofile"
5878with_gnu_ld="$lt_cv_prog_gnu_ld"
5879
5880if test -n "$ac_tool_prefix"; then
5881  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5882set dummy ${ac_tool_prefix}ar; ac_word=$2
5883echo "$as_me:$LINENO: checking for $ac_word" >&5
5884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5885if test "${ac_cv_prog_AR+set}" = set; then
5886  echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888  if test -n "$AR"; then
5889  ac_cv_prog_AR="$AR" # Let the user override the test.
5890else
5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894  IFS=$as_save_IFS
5895  test -z "$as_dir" && as_dir=.
5896  for ac_exec_ext in '' $ac_executable_extensions; do
5897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898    ac_cv_prog_AR="${ac_tool_prefix}ar"
5899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900    break 2
5901  fi
5902done
5903done
5904
5905fi
5906fi
5907AR=$ac_cv_prog_AR
5908if test -n "$AR"; then
5909  echo "$as_me:$LINENO: result: $AR" >&5
5910echo "${ECHO_T}$AR" >&6
5911else
5912  echo "$as_me:$LINENO: result: no" >&5
5913echo "${ECHO_T}no" >&6
5914fi
5915
5916fi
5917if test -z "$ac_cv_prog_AR"; then
5918  ac_ct_AR=$AR
5919  # Extract the first word of "ar", so it can be a program name with args.
5920set dummy ar; ac_word=$2
5921echo "$as_me:$LINENO: checking for $ac_word" >&5
5922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5923if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5924  echo $ECHO_N "(cached) $ECHO_C" >&6
5925else
5926  if test -n "$ac_ct_AR"; then
5927  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932  IFS=$as_save_IFS
5933  test -z "$as_dir" && as_dir=.
5934  for ac_exec_ext in '' $ac_executable_extensions; do
5935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936    ac_cv_prog_ac_ct_AR="ar"
5937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938    break 2
5939  fi
5940done
5941done
5942
5943  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5944fi
5945fi
5946ac_ct_AR=$ac_cv_prog_ac_ct_AR
5947if test -n "$ac_ct_AR"; then
5948  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5949echo "${ECHO_T}$ac_ct_AR" >&6
5950else
5951  echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6
5953fi
5954
5955  AR=$ac_ct_AR
5956else
5957  AR="$ac_cv_prog_AR"
5958fi
5959
5960if test -n "$ac_tool_prefix"; then
5961  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5962set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5963echo "$as_me:$LINENO: checking for $ac_word" >&5
5964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5965if test "${ac_cv_prog_RANLIB+set}" = set; then
5966  echo $ECHO_N "(cached) $ECHO_C" >&6
5967else
5968  if test -n "$RANLIB"; then
5969  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5970else
5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974  IFS=$as_save_IFS
5975  test -z "$as_dir" && as_dir=.
5976  for ac_exec_ext in '' $ac_executable_extensions; do
5977  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5978    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980    break 2
5981  fi
5982done
5983done
5984
5985fi
5986fi
5987RANLIB=$ac_cv_prog_RANLIB
5988if test -n "$RANLIB"; then
5989  echo "$as_me:$LINENO: result: $RANLIB" >&5
5990echo "${ECHO_T}$RANLIB" >&6
5991else
5992  echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6
5994fi
5995
5996fi
5997if test -z "$ac_cv_prog_RANLIB"; then
5998  ac_ct_RANLIB=$RANLIB
5999  # Extract the first word of "ranlib", so it can be a program name with args.
6000set dummy ranlib; ac_word=$2
6001echo "$as_me:$LINENO: checking for $ac_word" >&5
6002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6004  echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006  if test -n "$ac_ct_RANLIB"; then
6007  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014  for ac_exec_ext in '' $ac_executable_extensions; do
6015  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016    ac_cv_prog_ac_ct_RANLIB="ranlib"
6017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018    break 2
6019  fi
6020done
6021done
6022
6023  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6024fi
6025fi
6026ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6027if test -n "$ac_ct_RANLIB"; then
6028  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6029echo "${ECHO_T}$ac_ct_RANLIB" >&6
6030else
6031  echo "$as_me:$LINENO: result: no" >&5
6032echo "${ECHO_T}no" >&6
6033fi
6034
6035  RANLIB=$ac_ct_RANLIB
6036else
6037  RANLIB="$ac_cv_prog_RANLIB"
6038fi
6039
6040if test -n "$ac_tool_prefix"; then
6041  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6042set dummy ${ac_tool_prefix}strip; ac_word=$2
6043echo "$as_me:$LINENO: checking for $ac_word" >&5
6044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6045if test "${ac_cv_prog_STRIP+set}" = set; then
6046  echo $ECHO_N "(cached) $ECHO_C" >&6
6047else
6048  if test -n "$STRIP"; then
6049  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054  IFS=$as_save_IFS
6055  test -z "$as_dir" && as_dir=.
6056  for ac_exec_ext in '' $ac_executable_extensions; do
6057  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060    break 2
6061  fi
6062done
6063done
6064
6065fi
6066fi
6067STRIP=$ac_cv_prog_STRIP
6068if test -n "$STRIP"; then
6069  echo "$as_me:$LINENO: result: $STRIP" >&5
6070echo "${ECHO_T}$STRIP" >&6
6071else
6072  echo "$as_me:$LINENO: result: no" >&5
6073echo "${ECHO_T}no" >&6
6074fi
6075
6076fi
6077if test -z "$ac_cv_prog_STRIP"; then
6078  ac_ct_STRIP=$STRIP
6079  # Extract the first word of "strip", so it can be a program name with args.
6080set dummy strip; ac_word=$2
6081echo "$as_me:$LINENO: checking for $ac_word" >&5
6082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6083if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6084  echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086  if test -n "$ac_ct_STRIP"; then
6087  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092  IFS=$as_save_IFS
6093  test -z "$as_dir" && as_dir=.
6094  for ac_exec_ext in '' $ac_executable_extensions; do
6095  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096    ac_cv_prog_ac_ct_STRIP="strip"
6097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098    break 2
6099  fi
6100done
6101done
6102
6103  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6104fi
6105fi
6106ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6107if test -n "$ac_ct_STRIP"; then
6108  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6109echo "${ECHO_T}$ac_ct_STRIP" >&6
6110else
6111  echo "$as_me:$LINENO: result: no" >&5
6112echo "${ECHO_T}no" >&6
6113fi
6114
6115  STRIP=$ac_ct_STRIP
6116else
6117  STRIP="$ac_cv_prog_STRIP"
6118fi
6119
6120
6121old_CC="$CC"
6122old_CFLAGS="$CFLAGS"
6123
6124# Set sane defaults for various variables
6125test -z "$AR" && AR=ar
6126test -z "$AR_FLAGS" && AR_FLAGS=cru
6127test -z "$AS" && AS=as
6128test -z "$CC" && CC=cc
6129test -z "$LTCC" && LTCC=$CC
6130test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6131test -z "$DLLTOOL" && DLLTOOL=dlltool
6132test -z "$LD" && LD=ld
6133test -z "$LN_S" && LN_S="ln -s"
6134test -z "$MAGIC_CMD" && MAGIC_CMD=file
6135test -z "$NM" && NM=nm
6136test -z "$SED" && SED=sed
6137test -z "$OBJDUMP" && OBJDUMP=objdump
6138test -z "$RANLIB" && RANLIB=:
6139test -z "$STRIP" && STRIP=:
6140test -z "$ac_objext" && ac_objext=o
6141
6142# Determine commands to create old-style static archives.
6143old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6144old_postinstall_cmds='chmod 644 $oldlib'
6145old_postuninstall_cmds=
6146
6147if test -n "$RANLIB"; then
6148  case $host_os in
6149  openbsd*)
6150    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6151    ;;
6152  *)
6153    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6154    ;;
6155  esac
6156  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6157fi
6158
6159for cc_temp in $compiler""; do
6160  case $cc_temp in
6161    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6162    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6163    \-*) ;;
6164    *) break;;
6165  esac
6166done
6167cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6168
6169
6170# Only perform the check for file, if the check method requires it
6171case $deplibs_check_method in
6172file_magic*)
6173  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6174    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6175echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6176if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6177  echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179  case $MAGIC_CMD in
6180[\\/*] |  ?:[\\/]*)
6181  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6182  ;;
6183*)
6184  lt_save_MAGIC_CMD="$MAGIC_CMD"
6185  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6186  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6187  for ac_dir in $ac_dummy; do
6188    IFS="$lt_save_ifs"
6189    test -z "$ac_dir" && ac_dir=.
6190    if test -f $ac_dir/${ac_tool_prefix}file; then
6191      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6192      if test -n "$file_magic_test_file"; then
6193	case $deplibs_check_method in
6194	"file_magic "*)
6195	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6196	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6197	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6198	    $EGREP "$file_magic_regex" > /dev/null; then
6199	    :
6200	  else
6201	    cat <<EOF 1>&2
6202
6203*** Warning: the command libtool uses to detect shared libraries,
6204*** $file_magic_cmd, produces output that libtool cannot recognize.
6205*** The result is that libtool may fail to recognize shared libraries
6206*** as such.  This will affect the creation of libtool libraries that
6207*** depend on shared libraries, but programs linked with such libtool
6208*** libraries will work regardless of this problem.  Nevertheless, you
6209*** may want to report the problem to your system manager and/or to
6210*** bug-libtool@gnu.org
6211
6212EOF
6213	  fi ;;
6214	esac
6215      fi
6216      break
6217    fi
6218  done
6219  IFS="$lt_save_ifs"
6220  MAGIC_CMD="$lt_save_MAGIC_CMD"
6221  ;;
6222esac
6223fi
6224
6225MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6226if test -n "$MAGIC_CMD"; then
6227  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6228echo "${ECHO_T}$MAGIC_CMD" >&6
6229else
6230  echo "$as_me:$LINENO: result: no" >&5
6231echo "${ECHO_T}no" >&6
6232fi
6233
6234if test -z "$lt_cv_path_MAGIC_CMD"; then
6235  if test -n "$ac_tool_prefix"; then
6236    echo "$as_me:$LINENO: checking for file" >&5
6237echo $ECHO_N "checking for file... $ECHO_C" >&6
6238if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6239  echo $ECHO_N "(cached) $ECHO_C" >&6
6240else
6241  case $MAGIC_CMD in
6242[\\/*] |  ?:[\\/]*)
6243  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6244  ;;
6245*)
6246  lt_save_MAGIC_CMD="$MAGIC_CMD"
6247  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6248  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6249  for ac_dir in $ac_dummy; do
6250    IFS="$lt_save_ifs"
6251    test -z "$ac_dir" && ac_dir=.
6252    if test -f $ac_dir/file; then
6253      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6254      if test -n "$file_magic_test_file"; then
6255	case $deplibs_check_method in
6256	"file_magic "*)
6257	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6258	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6259	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6260	    $EGREP "$file_magic_regex" > /dev/null; then
6261	    :
6262	  else
6263	    cat <<EOF 1>&2
6264
6265*** Warning: the command libtool uses to detect shared libraries,
6266*** $file_magic_cmd, produces output that libtool cannot recognize.
6267*** The result is that libtool may fail to recognize shared libraries
6268*** as such.  This will affect the creation of libtool libraries that
6269*** depend on shared libraries, but programs linked with such libtool
6270*** libraries will work regardless of this problem.  Nevertheless, you
6271*** may want to report the problem to your system manager and/or to
6272*** bug-libtool@gnu.org
6273
6274EOF
6275	  fi ;;
6276	esac
6277      fi
6278      break
6279    fi
6280  done
6281  IFS="$lt_save_ifs"
6282  MAGIC_CMD="$lt_save_MAGIC_CMD"
6283  ;;
6284esac
6285fi
6286
6287MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6288if test -n "$MAGIC_CMD"; then
6289  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6290echo "${ECHO_T}$MAGIC_CMD" >&6
6291else
6292  echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6
6294fi
6295
6296  else
6297    MAGIC_CMD=:
6298  fi
6299fi
6300
6301  fi
6302  ;;
6303esac
6304
6305enable_dlopen=no
6306enable_win32_dll=no
6307
6308# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6309if test "${enable_libtool_lock+set}" = set; then
6310  enableval="$enable_libtool_lock"
6311
6312fi;
6313test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6314
6315
6316# Check whether --with-pic or --without-pic was given.
6317if test "${with_pic+set}" = set; then
6318  withval="$with_pic"
6319  pic_mode="$withval"
6320else
6321  pic_mode=default
6322fi;
6323test -z "$pic_mode" && pic_mode=default
6324
6325# Use C for the default configuration in the libtool script
6326tagname=
6327lt_save_CC="$CC"
6328ac_ext=c
6329ac_cpp='$CPP $CPPFLAGS'
6330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333
6334
6335# Source file extension for C test sources.
6336ac_ext=c
6337
6338# Object file extension for compiled C test sources.
6339objext=o
6340objext=$objext
6341
6342# Code to be used in simple compile tests
6343lt_simple_compile_test_code="int some_variable = 0;\n"
6344
6345# Code to be used in simple link tests
6346lt_simple_link_test_code='int main(){return(0);}\n'
6347
6348
6349# If no C compiler was specified, use CC.
6350LTCC=${LTCC-"$CC"}
6351
6352# If no C compiler flags were specified, use CFLAGS.
6353LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6354
6355# Allow CC to be a program name with arguments.
6356compiler=$CC
6357
6358
6359# save warnings/boilerplate of simple test code
6360ac_outfile=conftest.$ac_objext
6361printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6362eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6363_lt_compiler_boilerplate=`cat conftest.err`
6364$rm conftest*
6365
6366ac_outfile=conftest.$ac_objext
6367printf "$lt_simple_link_test_code" >conftest.$ac_ext
6368eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6369_lt_linker_boilerplate=`cat conftest.err`
6370$rm conftest*
6371
6372
6373## CAVEAT EMPTOR:
6374## There is no encapsulation within the following macros, do not change
6375## the running order or otherwise move them around unless you know exactly
6376## what you are doing...
6377
6378lt_prog_compiler_no_builtin_flag=
6379
6380if test "$GCC" = yes; then
6381  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6382
6383
6384echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6385echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6386if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6387  echo $ECHO_N "(cached) $ECHO_C" >&6
6388else
6389  lt_cv_prog_compiler_rtti_exceptions=no
6390  ac_outfile=conftest.$ac_objext
6391   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6392   lt_compiler_flag="-fno-rtti -fno-exceptions"
6393   # Insert the option either (1) after the last *FLAGS variable, or
6394   # (2) before a word containing "conftest.", or (3) at the end.
6395   # Note that $ac_compile itself does not contain backslashes and begins
6396   # with a dollar sign (not a hyphen), so the echo should work correctly.
6397   # The option is referenced via a variable to avoid confusing sed.
6398   lt_compile=`echo "$ac_compile" | $SED \
6399   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6400   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6401   -e 's:$: $lt_compiler_flag:'`
6402   (eval echo "\"\$as_me:6402: $lt_compile\"" >&5)
6403   (eval "$lt_compile" 2>conftest.err)
6404   ac_status=$?
6405   cat conftest.err >&5
6406   echo "$as_me:6406: \$? = $ac_status" >&5
6407   if (exit $ac_status) && test -s "$ac_outfile"; then
6408     # The compiler can only warn and ignore the option if not recognized
6409     # So say no if there are warnings other than the usual output.
6410     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6411     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6412     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6413       lt_cv_prog_compiler_rtti_exceptions=yes
6414     fi
6415   fi
6416   $rm conftest*
6417
6418fi
6419echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6420echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6421
6422if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6423    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6424else
6425    :
6426fi
6427
6428fi
6429
6430lt_prog_compiler_wl=
6431lt_prog_compiler_pic=
6432lt_prog_compiler_static=
6433
6434echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6435echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6436
6437  if test "$GCC" = yes; then
6438    lt_prog_compiler_wl='-Wl,'
6439    lt_prog_compiler_static='-static'
6440
6441    case $host_os in
6442      aix*)
6443      # All AIX code is PIC.
6444      if test "$host_cpu" = ia64; then
6445	# AIX 5 now supports IA64 processor
6446	lt_prog_compiler_static='-Bstatic'
6447      fi
6448      ;;
6449
6450    amigaos*)
6451      # FIXME: we need at least 68020 code to build shared libraries, but
6452      # adding the `-m68020' flag to GCC prevents building anything better,
6453      # like `-m68040'.
6454      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6455      ;;
6456
6457    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6458      # PIC is the default for these OSes.
6459      ;;
6460
6461    mingw* | pw32* | os2*)
6462      # This hack is so that the source file can tell whether it is being
6463      # built for inclusion in a dll (and should export symbols for example).
6464      lt_prog_compiler_pic='-DDLL_EXPORT'
6465      ;;
6466
6467    darwin* | rhapsody*)
6468      # PIC is the default on this platform
6469      # Common symbols not allowed in MH_DYLIB files
6470      lt_prog_compiler_pic='-fno-common'
6471      ;;
6472
6473    interix3*)
6474      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6475      # Instead, we relocate shared libraries at runtime.
6476      ;;
6477
6478    msdosdjgpp*)
6479      # Just because we use GCC doesn't mean we suddenly get shared libraries
6480      # on systems that don't support them.
6481      lt_prog_compiler_can_build_shared=no
6482      enable_shared=no
6483      ;;
6484
6485    sysv4*MP*)
6486      if test -d /usr/nec; then
6487	lt_prog_compiler_pic=-Kconform_pic
6488      fi
6489      ;;
6490
6491    hpux*)
6492      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6493      # not for PA HP-UX.
6494      case $host_cpu in
6495      hppa*64*|ia64*)
6496	# +Z the default
6497	;;
6498      *)
6499	lt_prog_compiler_pic='-fPIC'
6500	;;
6501      esac
6502      ;;
6503
6504    *)
6505      lt_prog_compiler_pic='-fPIC'
6506      ;;
6507    esac
6508  else
6509    # PORTME Check for flag to pass linker flags through the system compiler.
6510    case $host_os in
6511    aix*)
6512      lt_prog_compiler_wl='-Wl,'
6513      if test "$host_cpu" = ia64; then
6514	# AIX 5 now supports IA64 processor
6515	lt_prog_compiler_static='-Bstatic'
6516      else
6517	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6518      fi
6519      ;;
6520      darwin*)
6521        # PIC is the default on this platform
6522        # Common symbols not allowed in MH_DYLIB files
6523       case $cc_basename in
6524         xlc*)
6525         lt_prog_compiler_pic='-qnocommon'
6526         lt_prog_compiler_wl='-Wl,'
6527         ;;
6528       esac
6529       ;;
6530
6531    mingw* | pw32* | os2*)
6532      # This hack is so that the source file can tell whether it is being
6533      # built for inclusion in a dll (and should export symbols for example).
6534      lt_prog_compiler_pic='-DDLL_EXPORT'
6535      ;;
6536
6537    hpux9* | hpux10* | hpux11*)
6538      lt_prog_compiler_wl='-Wl,'
6539      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6540      # not for PA HP-UX.
6541      case $host_cpu in
6542      hppa*64*|ia64*)
6543	# +Z the default
6544	;;
6545      *)
6546	lt_prog_compiler_pic='+Z'
6547	;;
6548      esac
6549      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6550      lt_prog_compiler_static='${wl}-a ${wl}archive'
6551      ;;
6552
6553    irix5* | irix6* | nonstopux*)
6554      lt_prog_compiler_wl='-Wl,'
6555      # PIC (with -KPIC) is the default.
6556      lt_prog_compiler_static='-non_shared'
6557      ;;
6558
6559    newsos6)
6560      lt_prog_compiler_pic='-KPIC'
6561      lt_prog_compiler_static='-Bstatic'
6562      ;;
6563
6564    linux*)
6565      case $cc_basename in
6566      icc* | ecc*)
6567	lt_prog_compiler_wl='-Wl,'
6568	lt_prog_compiler_pic='-KPIC'
6569	lt_prog_compiler_static='-static'
6570        ;;
6571      pgcc* | pgf77* | pgf90* | pgf95*)
6572        # Portland Group compilers (*not* the Pentium gcc compiler,
6573	# which looks to be a dead project)
6574	lt_prog_compiler_wl='-Wl,'
6575	lt_prog_compiler_pic='-fpic'
6576	lt_prog_compiler_static='-Bstatic'
6577        ;;
6578      ccc*)
6579        lt_prog_compiler_wl='-Wl,'
6580        # All Alpha code is PIC.
6581        lt_prog_compiler_static='-non_shared'
6582        ;;
6583      esac
6584      ;;
6585
6586    osf3* | osf4* | osf5*)
6587      lt_prog_compiler_wl='-Wl,'
6588      # All OSF/1 code is PIC.
6589      lt_prog_compiler_static='-non_shared'
6590      ;;
6591
6592    solaris*)
6593      lt_prog_compiler_pic='-KPIC'
6594      lt_prog_compiler_static='-Bstatic'
6595      case $cc_basename in
6596      f77* | f90* | f95*)
6597	lt_prog_compiler_wl='-Qoption ld ';;
6598      *)
6599	lt_prog_compiler_wl='-Wl,';;
6600      esac
6601      ;;
6602
6603    sunos4*)
6604      lt_prog_compiler_wl='-Qoption ld '
6605      lt_prog_compiler_pic='-PIC'
6606      lt_prog_compiler_static='-Bstatic'
6607      ;;
6608
6609    sysv4 | sysv4.2uw2* | sysv4.3*)
6610      lt_prog_compiler_wl='-Wl,'
6611      lt_prog_compiler_pic='-KPIC'
6612      lt_prog_compiler_static='-Bstatic'
6613      ;;
6614
6615    sysv4*MP*)
6616      if test -d /usr/nec ;then
6617	lt_prog_compiler_pic='-Kconform_pic'
6618	lt_prog_compiler_static='-Bstatic'
6619      fi
6620      ;;
6621
6622    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6623      lt_prog_compiler_wl='-Wl,'
6624      lt_prog_compiler_pic='-KPIC'
6625      lt_prog_compiler_static='-Bstatic'
6626      ;;
6627
6628    unicos*)
6629      lt_prog_compiler_wl='-Wl,'
6630      lt_prog_compiler_can_build_shared=no
6631      ;;
6632
6633    uts4*)
6634      lt_prog_compiler_pic='-pic'
6635      lt_prog_compiler_static='-Bstatic'
6636      ;;
6637
6638    *)
6639      lt_prog_compiler_can_build_shared=no
6640      ;;
6641    esac
6642  fi
6643
6644echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6645echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6646
6647#
6648# Check to make sure the PIC flag actually works.
6649#
6650if test -n "$lt_prog_compiler_pic"; then
6651
6652echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6653echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6654if test "${lt_prog_compiler_pic_works+set}" = set; then
6655  echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657  lt_prog_compiler_pic_works=no
6658  ac_outfile=conftest.$ac_objext
6659   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6660   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6661   # Insert the option either (1) after the last *FLAGS variable, or
6662   # (2) before a word containing "conftest.", or (3) at the end.
6663   # Note that $ac_compile itself does not contain backslashes and begins
6664   # with a dollar sign (not a hyphen), so the echo should work correctly.
6665   # The option is referenced via a variable to avoid confusing sed.
6666   lt_compile=`echo "$ac_compile" | $SED \
6667   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6669   -e 's:$: $lt_compiler_flag:'`
6670   (eval echo "\"\$as_me:6670: $lt_compile\"" >&5)
6671   (eval "$lt_compile" 2>conftest.err)
6672   ac_status=$?
6673   cat conftest.err >&5
6674   echo "$as_me:6674: \$? = $ac_status" >&5
6675   if (exit $ac_status) && test -s "$ac_outfile"; then
6676     # The compiler can only warn and ignore the option if not recognized
6677     # So say no if there are warnings other than the usual output.
6678     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6679     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6680     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6681       lt_prog_compiler_pic_works=yes
6682     fi
6683   fi
6684   $rm conftest*
6685
6686fi
6687echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6688echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6689
6690if test x"$lt_prog_compiler_pic_works" = xyes; then
6691    case $lt_prog_compiler_pic in
6692     "" | " "*) ;;
6693     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6694     esac
6695else
6696    lt_prog_compiler_pic=
6697     lt_prog_compiler_can_build_shared=no
6698fi
6699
6700fi
6701case $host_os in
6702  # For platforms which do not support PIC, -DPIC is meaningless:
6703  *djgpp*)
6704    lt_prog_compiler_pic=
6705    ;;
6706  *)
6707    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6708    ;;
6709esac
6710
6711#
6712# Check to make sure the static flag actually works.
6713#
6714wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6715echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6716echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6717if test "${lt_prog_compiler_static_works+set}" = set; then
6718  echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720  lt_prog_compiler_static_works=no
6721   save_LDFLAGS="$LDFLAGS"
6722   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6723   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6724   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6725     # The linker can only warn and ignore the option if not recognized
6726     # So say no if there are warnings
6727     if test -s conftest.err; then
6728       # Append any errors to the config.log.
6729       cat conftest.err 1>&5
6730       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6731       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6732       if diff conftest.exp conftest.er2 >/dev/null; then
6733         lt_prog_compiler_static_works=yes
6734       fi
6735     else
6736       lt_prog_compiler_static_works=yes
6737     fi
6738   fi
6739   $rm conftest*
6740   LDFLAGS="$save_LDFLAGS"
6741
6742fi
6743echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6744echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6745
6746if test x"$lt_prog_compiler_static_works" = xyes; then
6747    :
6748else
6749    lt_prog_compiler_static=
6750fi
6751
6752
6753echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6754echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6755if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6756  echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758  lt_cv_prog_compiler_c_o=no
6759   $rm -r conftest 2>/dev/null
6760   mkdir conftest
6761   cd conftest
6762   mkdir out
6763   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6764
6765   lt_compiler_flag="-o out/conftest2.$ac_objext"
6766   # Insert the option either (1) after the last *FLAGS variable, or
6767   # (2) before a word containing "conftest.", or (3) at the end.
6768   # Note that $ac_compile itself does not contain backslashes and begins
6769   # with a dollar sign (not a hyphen), so the echo should work correctly.
6770   lt_compile=`echo "$ac_compile" | $SED \
6771   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6773   -e 's:$: $lt_compiler_flag:'`
6774   (eval echo "\"\$as_me:6774: $lt_compile\"" >&5)
6775   (eval "$lt_compile" 2>out/conftest.err)
6776   ac_status=$?
6777   cat out/conftest.err >&5
6778   echo "$as_me:6778: \$? = $ac_status" >&5
6779   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6780   then
6781     # The compiler can only warn and ignore the option if not recognized
6782     # So say no if there are warnings
6783     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6784     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6785     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6786       lt_cv_prog_compiler_c_o=yes
6787     fi
6788   fi
6789   chmod u+w . 2>&5
6790   $rm conftest*
6791   # SGI C++ compiler will create directory out/ii_files/ for
6792   # template instantiation
6793   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6794   $rm out/* && rmdir out
6795   cd ..
6796   rmdir conftest
6797   $rm conftest*
6798
6799fi
6800echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6801echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6802
6803
6804hard_links="nottested"
6805if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6806  # do not overwrite the value of need_locks provided by the user
6807  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6808echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6809  hard_links=yes
6810  $rm conftest*
6811  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6812  touch conftest.a
6813  ln conftest.a conftest.b 2>&5 || hard_links=no
6814  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6815  echo "$as_me:$LINENO: result: $hard_links" >&5
6816echo "${ECHO_T}$hard_links" >&6
6817  if test "$hard_links" = no; then
6818    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6819echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6820    need_locks=warn
6821  fi
6822else
6823  need_locks=no
6824fi
6825
6826echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6827echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6828
6829  runpath_var=
6830  allow_undefined_flag=
6831  enable_shared_with_static_runtimes=no
6832  archive_cmds=
6833  archive_expsym_cmds=
6834  old_archive_From_new_cmds=
6835  old_archive_from_expsyms_cmds=
6836  export_dynamic_flag_spec=
6837  whole_archive_flag_spec=
6838  thread_safe_flag_spec=
6839  hardcode_libdir_flag_spec=
6840  hardcode_libdir_flag_spec_ld=
6841  hardcode_libdir_separator=
6842  hardcode_direct=no
6843  hardcode_minus_L=no
6844  hardcode_shlibpath_var=unsupported
6845  link_all_deplibs=unknown
6846  hardcode_automatic=no
6847  module_cmds=
6848  module_expsym_cmds=
6849  always_export_symbols=no
6850  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6851  # include_expsyms should be a list of space-separated symbols to be *always*
6852  # included in the symbol list
6853  include_expsyms=
6854  # exclude_expsyms can be an extended regexp of symbols to exclude
6855  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6856  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6857  # as well as any symbol that contains `d'.
6858  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6859  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6860  # platforms (ab)use it in PIC code, but their linkers get confused if
6861  # the symbol is explicitly referenced.  Since portable code cannot
6862  # rely on this symbol name, it's probably fine to never include it in
6863  # preloaded symbol tables.
6864  extract_expsyms_cmds=
6865  # Just being paranoid about ensuring that cc_basename is set.
6866  for cc_temp in $compiler""; do
6867  case $cc_temp in
6868    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6869    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6870    \-*) ;;
6871    *) break;;
6872  esac
6873done
6874cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6875
6876  case $host_os in
6877  cygwin* | mingw* | pw32*)
6878    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6879    # When not using gcc, we currently assume that we are using
6880    # Microsoft Visual C++.
6881    if test "$GCC" != yes; then
6882      with_gnu_ld=no
6883    fi
6884    ;;
6885  interix*)
6886    # we just hope/assume this is gcc and not c89 (= MSVC++)
6887    with_gnu_ld=yes
6888    ;;
6889  openbsd*)
6890    with_gnu_ld=no
6891    ;;
6892  esac
6893
6894  ld_shlibs=yes
6895  if test "$with_gnu_ld" = yes; then
6896    # If archive_cmds runs LD, not CC, wlarc should be empty
6897    wlarc='${wl}'
6898
6899    # Set some defaults for GNU ld with shared library support. These
6900    # are reset later if shared libraries are not supported. Putting them
6901    # here allows them to be overridden if necessary.
6902    runpath_var=LD_RUN_PATH
6903    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6904    export_dynamic_flag_spec='${wl}--export-dynamic'
6905    # ancient GNU ld didn't support --whole-archive et. al.
6906    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6907	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6908      else
6909  	whole_archive_flag_spec=
6910    fi
6911    supports_anon_versioning=no
6912    case `$LD -v 2>/dev/null` in
6913      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6914      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6915      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6916      *\ 2.11.*) ;; # other 2.11 versions
6917      *) supports_anon_versioning=yes ;;
6918    esac
6919
6920    # See if GNU ld supports shared libraries.
6921    case $host_os in
6922    aix3* | aix4* | aix5*)
6923      # On AIX/PPC, the GNU linker is very broken
6924      if test "$host_cpu" != ia64; then
6925	ld_shlibs=no
6926	cat <<EOF 1>&2
6927
6928*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6929*** to be unable to reliably create shared libraries on AIX.
6930*** Therefore, libtool is disabling shared libraries support.  If you
6931*** really care for shared libraries, you may want to modify your PATH
6932*** so that a non-GNU linker is found, and then restart.
6933
6934EOF
6935      fi
6936      ;;
6937
6938    amigaos*)
6939      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)'
6940      hardcode_libdir_flag_spec='-L$libdir'
6941      hardcode_minus_L=yes
6942
6943      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6944      # that the semantics of dynamic libraries on AmigaOS, at least up
6945      # to version 4, is to share data among multiple programs linked
6946      # with the same dynamic library.  Since this doesn't match the
6947      # behavior of shared libraries on other platforms, we can't use
6948      # them.
6949      ld_shlibs=no
6950      ;;
6951
6952    beos*)
6953      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6954	allow_undefined_flag=unsupported
6955	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6956	# support --undefined.  This deserves some investigation.  FIXME
6957	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6958      else
6959	ld_shlibs=no
6960      fi
6961      ;;
6962
6963    cygwin* | mingw* | pw32*)
6964      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6965      # as there is no search path for DLLs.
6966      hardcode_libdir_flag_spec='-L$libdir'
6967      allow_undefined_flag=unsupported
6968      always_export_symbols=no
6969      enable_shared_with_static_runtimes=yes
6970      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6971
6972      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6973        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6974	# If the export-symbols file already is a .def file (1st line
6975	# is EXPORTS), use it as is; otherwise, prepend...
6976	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6977	  cp $export_symbols $output_objdir/$soname.def;
6978	else
6979	  echo EXPORTS > $output_objdir/$soname.def;
6980	  cat $export_symbols >> $output_objdir/$soname.def;
6981	fi~
6982	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6983      else
6984	ld_shlibs=no
6985      fi
6986      ;;
6987
6988    interix3*)
6989      hardcode_direct=no
6990      hardcode_shlibpath_var=no
6991      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6992      export_dynamic_flag_spec='${wl}-E'
6993      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6994      # Instead, shared libraries are loaded at an image base (0x10000000 by
6995      # default) and relocated if they conflict, which is a slow very memory
6996      # consuming and fragmenting process.  To avoid this, we pick a random,
6997      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6998      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6999      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7000      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7001      ;;
7002
7003    linux*)
7004      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7005	tmp_addflag=
7006	case $cc_basename,$host_cpu in
7007	pgcc*)				# Portland Group C compiler
7008	  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'
7009	  tmp_addflag=' $pic_flag'
7010	  ;;
7011	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7012	  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'
7013	  tmp_addflag=' $pic_flag -Mnomain' ;;
7014	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7015	  tmp_addflag=' -i_dynamic' ;;
7016	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7017	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7018	ifc* | ifort*)			# Intel Fortran compiler
7019	  tmp_addflag=' -nofor_main' ;;
7020	esac
7021	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7022
7023	if test $supports_anon_versioning = yes; then
7024	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7025  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7026  $echo "local: *; };" >> $output_objdir/$libname.ver~
7027	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7028	fi
7029      else
7030	ld_shlibs=no
7031      fi
7032      ;;
7033
7034    netbsd*)
7035      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7036	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7037	wlarc=
7038      else
7039	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7040	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7041      fi
7042      ;;
7043
7044    solaris*)
7045      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7046	ld_shlibs=no
7047	cat <<EOF 1>&2
7048
7049*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7050*** create shared libraries on Solaris systems.  Therefore, libtool
7051*** is disabling shared libraries support.  We urge you to upgrade GNU
7052*** binutils to release 2.9.1 or newer.  Another option is to modify
7053*** your PATH or compiler configuration so that the native linker is
7054*** used, and then restart.
7055
7056EOF
7057      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7058	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7059	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7060      else
7061	ld_shlibs=no
7062      fi
7063      ;;
7064
7065    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7066      case `$LD -v 2>&1` in
7067        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7068	ld_shlibs=no
7069	cat <<_LT_EOF 1>&2
7070
7071*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7072*** reliably create shared libraries on SCO systems.  Therefore, libtool
7073*** is disabling shared libraries support.  We urge you to upgrade GNU
7074*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7075*** your PATH or compiler configuration so that the native linker is
7076*** used, and then restart.
7077
7078_LT_EOF
7079	;;
7080	*)
7081	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7082	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7083	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7084	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7085	  else
7086	    ld_shlibs=no
7087	  fi
7088	;;
7089      esac
7090      ;;
7091
7092    sunos4*)
7093      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7094      wlarc=
7095      hardcode_direct=yes
7096      hardcode_shlibpath_var=no
7097      ;;
7098
7099    *)
7100      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7101	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7102	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7103      else
7104	ld_shlibs=no
7105      fi
7106      ;;
7107    esac
7108
7109    if test "$ld_shlibs" = no; then
7110      runpath_var=
7111      hardcode_libdir_flag_spec=
7112      export_dynamic_flag_spec=
7113      whole_archive_flag_spec=
7114    fi
7115  else
7116    # PORTME fill in a description of your system's linker (not GNU ld)
7117    case $host_os in
7118    aix3*)
7119      allow_undefined_flag=unsupported
7120      always_export_symbols=yes
7121      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'
7122      # Note: this linker hardcodes the directories in LIBPATH if there
7123      # are no directories specified by -L.
7124      hardcode_minus_L=yes
7125      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7126	# Neither direct hardcoding nor static linking is supported with a
7127	# broken collect2.
7128	hardcode_direct=unsupported
7129      fi
7130      ;;
7131
7132    aix4* | aix5*)
7133      if test "$host_cpu" = ia64; then
7134	# On IA64, the linker does run time linking by default, so we don't
7135	# have to do anything special.
7136	aix_use_runtimelinking=no
7137	exp_sym_flag='-Bexport'
7138	no_entry_flag=""
7139      else
7140	# If we're using GNU nm, then we don't want the "-C" option.
7141	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7142	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7143	  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'
7144	else
7145	  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'
7146	fi
7147	aix_use_runtimelinking=no
7148
7149	# Test if we are trying to use run time linking or normal
7150	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7151	# need to do runtime linking.
7152	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7153	  for ld_flag in $LDFLAGS; do
7154  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7155  	    aix_use_runtimelinking=yes
7156  	    break
7157  	  fi
7158	  done
7159	  ;;
7160	esac
7161
7162	exp_sym_flag='-bexport'
7163	no_entry_flag='-bnoentry'
7164      fi
7165
7166      # When large executables or shared objects are built, AIX ld can
7167      # have problems creating the table of contents.  If linking a library
7168      # or program results in "error TOC overflow" add -mminimal-toc to
7169      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7170      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7171
7172      archive_cmds=''
7173      hardcode_direct=yes
7174      hardcode_libdir_separator=':'
7175      link_all_deplibs=yes
7176
7177      if test "$GCC" = yes; then
7178	case $host_os in aix4.[012]|aix4.[012].*)
7179	# We only want to do this on AIX 4.2 and lower, the check
7180	# below for broken collect2 doesn't work under 4.3+
7181	  collect2name=`${CC} -print-prog-name=collect2`
7182	  if test -f "$collect2name" && \
7183  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7184	  then
7185  	  # We have reworked collect2
7186  	  hardcode_direct=yes
7187	  else
7188  	  # We have old collect2
7189  	  hardcode_direct=unsupported
7190  	  # It fails to find uninstalled libraries when the uninstalled
7191  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7192  	  # to unsupported forces relinking
7193  	  hardcode_minus_L=yes
7194  	  hardcode_libdir_flag_spec='-L$libdir'
7195  	  hardcode_libdir_separator=
7196	  fi
7197	  ;;
7198	esac
7199	shared_flag='-shared'
7200	if test "$aix_use_runtimelinking" = yes; then
7201	  shared_flag="$shared_flag "'${wl}-G'
7202	fi
7203      else
7204	# not using gcc
7205	if test "$host_cpu" = ia64; then
7206  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7207  	# chokes on -Wl,-G. The following line is correct:
7208	  shared_flag='-G'
7209	else
7210	  if test "$aix_use_runtimelinking" = yes; then
7211	    shared_flag='${wl}-G'
7212	  else
7213	    shared_flag='${wl}-bM:SRE'
7214	  fi
7215	fi
7216      fi
7217
7218      # It seems that -bexpall does not export symbols beginning with
7219      # underscore (_), so it is better to generate a list of symbols to export.
7220      always_export_symbols=yes
7221      if test "$aix_use_runtimelinking" = yes; then
7222	# Warning - without using the other runtime loading flags (-brtl),
7223	# -berok will link without error, but may produce a broken library.
7224	allow_undefined_flag='-berok'
7225       # Determine the default libpath from the value encoded in an empty executable.
7226       cat >conftest.$ac_ext <<_ACEOF
7227/* confdefs.h.  */
7228_ACEOF
7229cat confdefs.h >>conftest.$ac_ext
7230cat >>conftest.$ac_ext <<_ACEOF
7231/* end confdefs.h.  */
7232
7233int
7234main ()
7235{
7236
7237  ;
7238  return 0;
7239}
7240_ACEOF
7241rm -f conftest.$ac_objext conftest$ac_exeext
7242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7243  (eval $ac_link) 2>conftest.er1
7244  ac_status=$?
7245  grep -v '^ *+' conftest.er1 >conftest.err
7246  rm -f conftest.er1
7247  cat conftest.err >&5
7248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249  (exit $ac_status); } &&
7250	 { ac_try='test -z "$ac_c_werror_flag"
7251			 || test ! -s conftest.err'
7252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253  (eval $ac_try) 2>&5
7254  ac_status=$?
7255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256  (exit $ac_status); }; } &&
7257	 { ac_try='test -s conftest$ac_exeext'
7258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259  (eval $ac_try) 2>&5
7260  ac_status=$?
7261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262  (exit $ac_status); }; }; then
7263
7264aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7265}'`
7266# Check for a 64-bit object if we didn't find anything.
7267if 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; }
7268}'`; fi
7269else
7270  echo "$as_me: failed program was:" >&5
7271sed 's/^/| /' conftest.$ac_ext >&5
7272
7273fi
7274rm -f conftest.err conftest.$ac_objext \
7275      conftest$ac_exeext conftest.$ac_ext
7276if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7277
7278       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7279	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7280       else
7281	if test "$host_cpu" = ia64; then
7282	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7283	  allow_undefined_flag="-z nodefs"
7284	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7285	else
7286	 # Determine the default libpath from the value encoded in an empty executable.
7287	 cat >conftest.$ac_ext <<_ACEOF
7288/* confdefs.h.  */
7289_ACEOF
7290cat confdefs.h >>conftest.$ac_ext
7291cat >>conftest.$ac_ext <<_ACEOF
7292/* end confdefs.h.  */
7293
7294int
7295main ()
7296{
7297
7298  ;
7299  return 0;
7300}
7301_ACEOF
7302rm -f conftest.$ac_objext conftest$ac_exeext
7303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304  (eval $ac_link) 2>conftest.er1
7305  ac_status=$?
7306  grep -v '^ *+' conftest.er1 >conftest.err
7307  rm -f conftest.er1
7308  cat conftest.err >&5
7309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310  (exit $ac_status); } &&
7311	 { ac_try='test -z "$ac_c_werror_flag"
7312			 || test ! -s conftest.err'
7313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314  (eval $ac_try) 2>&5
7315  ac_status=$?
7316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317  (exit $ac_status); }; } &&
7318	 { ac_try='test -s conftest$ac_exeext'
7319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320  (eval $ac_try) 2>&5
7321  ac_status=$?
7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323  (exit $ac_status); }; }; then
7324
7325aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7326}'`
7327# Check for a 64-bit object if we didn't find anything.
7328if 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; }
7329}'`; fi
7330else
7331  echo "$as_me: failed program was:" >&5
7332sed 's/^/| /' conftest.$ac_ext >&5
7333
7334fi
7335rm -f conftest.err conftest.$ac_objext \
7336      conftest$ac_exeext conftest.$ac_ext
7337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7338
7339	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7340	  # Warning - without using the other run time loading flags,
7341	  # -berok will link without error, but may produce a broken library.
7342	  no_undefined_flag=' ${wl}-bernotok'
7343	  allow_undefined_flag=' ${wl}-berok'
7344	  # Exported symbols can be pulled into shared objects from archives
7345	  whole_archive_flag_spec='$convenience'
7346	  archive_cmds_need_lc=yes
7347	  # This is similar to how AIX traditionally builds its shared libraries.
7348	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7349	fi
7350      fi
7351      ;;
7352
7353    amigaos*)
7354      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)'
7355      hardcode_libdir_flag_spec='-L$libdir'
7356      hardcode_minus_L=yes
7357      # see comment about different semantics on the GNU ld section
7358      ld_shlibs=no
7359      ;;
7360
7361    bsdi[45]*)
7362      export_dynamic_flag_spec=-rdynamic
7363      ;;
7364
7365    cygwin* | mingw* | pw32*)
7366      # When not using gcc, we currently assume that we are using
7367      # Microsoft Visual C++.
7368      # hardcode_libdir_flag_spec is actually meaningless, as there is
7369      # no search path for DLLs.
7370      hardcode_libdir_flag_spec=' '
7371      allow_undefined_flag=unsupported
7372      # Tell ltmain to make .lib files, not .a files.
7373      libext=lib
7374      # Tell ltmain to make .dll files, not .so files.
7375      shrext_cmds=".dll"
7376      # FIXME: Setting linknames here is a bad hack.
7377      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7378      # The linker will automatically build a .lib file if we build a DLL.
7379      old_archive_From_new_cmds='true'
7380      # FIXME: Should let the user specify the lib program.
7381      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7382      fix_srcfile_path='`cygpath -w "$srcfile"`'
7383      enable_shared_with_static_runtimes=yes
7384      ;;
7385
7386    darwin* | rhapsody*)
7387      case $host_os in
7388        rhapsody* | darwin1.[012])
7389         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7390         ;;
7391       *) # Darwin 1.3 on
7392         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7393           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7394         else
7395           case ${MACOSX_DEPLOYMENT_TARGET} in
7396             10.[012])
7397               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7398               ;;
7399             10.*)
7400               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7401               ;;
7402           esac
7403         fi
7404         ;;
7405      esac
7406      archive_cmds_need_lc=no
7407      hardcode_direct=no
7408      hardcode_automatic=yes
7409      hardcode_shlibpath_var=unsupported
7410      whole_archive_flag_spec=''
7411      link_all_deplibs=yes
7412    if test "$GCC" = yes ; then
7413    	output_verbose_link_cmd='echo'
7414        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7415      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7416      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7417      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}'
7418      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}'
7419    else
7420      case $cc_basename in
7421        xlc*)
7422         output_verbose_link_cmd='echo'
7423         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7424         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7425          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7426         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}'
7427          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}'
7428          ;;
7429       *)
7430         ld_shlibs=no
7431          ;;
7432      esac
7433    fi
7434      ;;
7435
7436    dgux*)
7437      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7438      hardcode_libdir_flag_spec='-L$libdir'
7439      hardcode_shlibpath_var=no
7440      ;;
7441
7442    freebsd1*)
7443      ld_shlibs=no
7444      ;;
7445
7446    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7447    # support.  Future versions do this automatically, but an explicit c++rt0.o
7448    # does not break anything, and helps significantly (at the cost of a little
7449    # extra space).
7450    freebsd2.2*)
7451      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7452      hardcode_libdir_flag_spec='-R$libdir'
7453      hardcode_direct=yes
7454      hardcode_shlibpath_var=no
7455      ;;
7456
7457    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7458    freebsd2*)
7459      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7460      hardcode_direct=yes
7461      hardcode_minus_L=yes
7462      hardcode_shlibpath_var=no
7463      ;;
7464
7465    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7466    freebsd* | kfreebsd*-gnu | dragonfly*)
7467      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7468      hardcode_libdir_flag_spec='-R$libdir'
7469      hardcode_direct=yes
7470      hardcode_shlibpath_var=no
7471      ;;
7472
7473    hpux9*)
7474      if test "$GCC" = yes; then
7475	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'
7476      else
7477	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'
7478      fi
7479      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7480      hardcode_libdir_separator=:
7481      hardcode_direct=yes
7482
7483      # hardcode_minus_L: Not really in the search PATH,
7484      # but as the default location of the library.
7485      hardcode_minus_L=yes
7486      export_dynamic_flag_spec='${wl}-E'
7487      ;;
7488
7489    hpux10*)
7490      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7491	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7492      else
7493	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7494      fi
7495      if test "$with_gnu_ld" = no; then
7496	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7497	hardcode_libdir_separator=:
7498
7499	hardcode_direct=yes
7500	export_dynamic_flag_spec='${wl}-E'
7501
7502	# hardcode_minus_L: Not really in the search PATH,
7503	# but as the default location of the library.
7504	hardcode_minus_L=yes
7505      fi
7506      ;;
7507
7508    hpux11*)
7509      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7510	case $host_cpu in
7511	hppa*64*)
7512	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7513	  ;;
7514	ia64*)
7515	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7516	  ;;
7517	*)
7518	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7519	  ;;
7520	esac
7521      else
7522	case $host_cpu in
7523	hppa*64*)
7524	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7525	  ;;
7526	ia64*)
7527	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7528	  ;;
7529	*)
7530	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7531	  ;;
7532	esac
7533      fi
7534      if test "$with_gnu_ld" = no; then
7535	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7536	hardcode_libdir_separator=:
7537
7538	case $host_cpu in
7539	hppa*64*|ia64*)
7540	  hardcode_libdir_flag_spec_ld='+b $libdir'
7541	  hardcode_direct=no
7542	  hardcode_shlibpath_var=no
7543	  ;;
7544	*)
7545	  hardcode_direct=yes
7546	  export_dynamic_flag_spec='${wl}-E'
7547
7548	  # hardcode_minus_L: Not really in the search PATH,
7549	  # but as the default location of the library.
7550	  hardcode_minus_L=yes
7551	  ;;
7552	esac
7553      fi
7554      ;;
7555
7556    irix5* | irix6* | nonstopux*)
7557      if test "$GCC" = yes; then
7558	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'
7559      else
7560	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'
7561	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7562      fi
7563      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7564      hardcode_libdir_separator=:
7565      link_all_deplibs=yes
7566      ;;
7567
7568    netbsd*)
7569      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7570	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7571      else
7572	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7573      fi
7574      hardcode_libdir_flag_spec='-R$libdir'
7575      hardcode_direct=yes
7576      hardcode_shlibpath_var=no
7577      ;;
7578
7579    newsos6)
7580      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7581      hardcode_direct=yes
7582      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7583      hardcode_libdir_separator=:
7584      hardcode_shlibpath_var=no
7585      ;;
7586
7587    openbsd*)
7588      hardcode_direct=yes
7589      hardcode_shlibpath_var=no
7590      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7591	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7592	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7593	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7594	export_dynamic_flag_spec='${wl}-E'
7595      else
7596       case $host_os in
7597	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7598	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7599	   hardcode_libdir_flag_spec='-R$libdir'
7600	   ;;
7601	 *)
7602	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7603	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7604	   ;;
7605       esac
7606      fi
7607      ;;
7608
7609    os2*)
7610      hardcode_libdir_flag_spec='-L$libdir'
7611      hardcode_minus_L=yes
7612      allow_undefined_flag=unsupported
7613      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'
7614      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7615      ;;
7616
7617    osf3*)
7618      if test "$GCC" = yes; then
7619	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7620	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'
7621      else
7622	allow_undefined_flag=' -expect_unresolved \*'
7623	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'
7624      fi
7625      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7626      hardcode_libdir_separator=:
7627      ;;
7628
7629    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7630      if test "$GCC" = yes; then
7631	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7632	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'
7633	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7634      else
7635	allow_undefined_flag=' -expect_unresolved \*'
7636	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'
7637	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7638	$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'
7639
7640	# Both c and cxx compiler support -rpath directly
7641	hardcode_libdir_flag_spec='-rpath $libdir'
7642      fi
7643      hardcode_libdir_separator=:
7644      ;;
7645
7646    solaris*)
7647      no_undefined_flag=' -z text'
7648      if test "$GCC" = yes; then
7649	wlarc='${wl}'
7650	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7651	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7652	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7653      else
7654	wlarc=''
7655	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7656	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7657  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7658      fi
7659      hardcode_libdir_flag_spec='-R$libdir'
7660      hardcode_shlibpath_var=no
7661      case $host_os in
7662      solaris2.[0-5] | solaris2.[0-5].*) ;;
7663      *)
7664 	# The compiler driver will combine linker options so we
7665 	# cannot just pass the convience library names through
7666 	# without $wl, iff we do not link with $LD.
7667 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7668 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7669 	case $wlarc in
7670 	'')
7671 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7672 	*)
7673 	  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' ;;
7674 	esac ;;
7675      esac
7676      link_all_deplibs=yes
7677      ;;
7678
7679    sunos4*)
7680      if test "x$host_vendor" = xsequent; then
7681	# Use $CC to link under sequent, because it throws in some extra .o
7682	# files that make .init and .fini sections work.
7683	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7684      else
7685	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7686      fi
7687      hardcode_libdir_flag_spec='-L$libdir'
7688      hardcode_direct=yes
7689      hardcode_minus_L=yes
7690      hardcode_shlibpath_var=no
7691      ;;
7692
7693    sysv4)
7694      case $host_vendor in
7695	sni)
7696	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7697	  hardcode_direct=yes # is this really true???
7698	;;
7699	siemens)
7700	  ## LD is ld it makes a PLAMLIB
7701	  ## CC just makes a GrossModule.
7702	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7703	  reload_cmds='$CC -r -o $output$reload_objs'
7704	  hardcode_direct=no
7705        ;;
7706	motorola)
7707	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7708	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7709	;;
7710      esac
7711      runpath_var='LD_RUN_PATH'
7712      hardcode_shlibpath_var=no
7713      ;;
7714
7715    sysv4.3*)
7716      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7717      hardcode_shlibpath_var=no
7718      export_dynamic_flag_spec='-Bexport'
7719      ;;
7720
7721    sysv4*MP*)
7722      if test -d /usr/nec; then
7723	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7724	hardcode_shlibpath_var=no
7725	runpath_var=LD_RUN_PATH
7726	hardcode_runpath_var=yes
7727	ld_shlibs=yes
7728      fi
7729      ;;
7730
7731    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7732      no_undefined_flag='${wl}-z,text'
7733      archive_cmds_need_lc=no
7734      hardcode_shlibpath_var=no
7735      runpath_var='LD_RUN_PATH'
7736
7737      if test "$GCC" = yes; then
7738	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7739	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7740      else
7741	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7742	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7743      fi
7744      ;;
7745
7746    sysv5* | sco3.2v5* | sco5v6*)
7747      # Note: We can NOT use -z defs as we might desire, because we do not
7748      # link with -lc, and that would cause any symbols used from libc to
7749      # always be unresolved, which means just about no library would
7750      # ever link correctly.  If we're not using GNU ld we use -z text
7751      # though, which does catch some bad symbols but isn't as heavy-handed
7752      # as -z defs.
7753      no_undefined_flag='${wl}-z,text'
7754      allow_undefined_flag='${wl}-z,nodefs'
7755      archive_cmds_need_lc=no
7756      hardcode_shlibpath_var=no
7757      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7758      hardcode_libdir_separator=':'
7759      link_all_deplibs=yes
7760      export_dynamic_flag_spec='${wl}-Bexport'
7761      runpath_var='LD_RUN_PATH'
7762
7763      if test "$GCC" = yes; then
7764	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7765	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7766      else
7767	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7768	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7769      fi
7770      ;;
7771
7772    uts4*)
7773      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7774      hardcode_libdir_flag_spec='-L$libdir'
7775      hardcode_shlibpath_var=no
7776      ;;
7777
7778    *)
7779      ld_shlibs=no
7780      ;;
7781    esac
7782  fi
7783
7784echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7785echo "${ECHO_T}$ld_shlibs" >&6
7786test "$ld_shlibs" = no && can_build_shared=no
7787
7788#
7789# Do we need to explicitly link libc?
7790#
7791case "x$archive_cmds_need_lc" in
7792x|xyes)
7793  # Assume -lc should be added
7794  archive_cmds_need_lc=yes
7795
7796  if test "$enable_shared" = yes && test "$GCC" = yes; then
7797    case $archive_cmds in
7798    *'~'*)
7799      # FIXME: we may have to deal with multi-command sequences.
7800      ;;
7801    '$CC '*)
7802      # Test whether the compiler implicitly links with -lc since on some
7803      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7804      # to ld, don't add -lc before -lgcc.
7805      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7806echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7807      $rm conftest*
7808      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7809
7810      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7811  (eval $ac_compile) 2>&5
7812  ac_status=$?
7813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); } 2>conftest.err; then
7815        soname=conftest
7816        lib=conftest
7817        libobjs=conftest.$ac_objext
7818        deplibs=
7819        wl=$lt_prog_compiler_wl
7820	pic_flag=$lt_prog_compiler_pic
7821        compiler_flags=-v
7822        linker_flags=-v
7823        verstring=
7824        output_objdir=.
7825        libname=conftest
7826        lt_save_allow_undefined_flag=$allow_undefined_flag
7827        allow_undefined_flag=
7828        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7829  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7830  ac_status=$?
7831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832  (exit $ac_status); }
7833        then
7834	  archive_cmds_need_lc=no
7835        else
7836	  archive_cmds_need_lc=yes
7837        fi
7838        allow_undefined_flag=$lt_save_allow_undefined_flag
7839      else
7840        cat conftest.err 1>&5
7841      fi
7842      $rm conftest*
7843      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7844echo "${ECHO_T}$archive_cmds_need_lc" >&6
7845      ;;
7846    esac
7847  fi
7848  ;;
7849esac
7850
7851echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7852echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7853library_names_spec=
7854libname_spec='lib$name'
7855soname_spec=
7856shrext_cmds=".so"
7857postinstall_cmds=
7858postuninstall_cmds=
7859finish_cmds=
7860finish_eval=
7861shlibpath_var=
7862shlibpath_overrides_runpath=unknown
7863version_type=none
7864dynamic_linker="$host_os ld.so"
7865sys_lib_dlsearch_path_spec="/lib /usr/lib"
7866if test "$GCC" = yes; then
7867  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7868  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7869    # if the path contains ";" then we assume it to be the separator
7870    # otherwise default to the standard path separator (i.e. ":") - it is
7871    # assumed that no part of a normal pathname contains ";" but that should
7872    # okay in the real world where ";" in dirpaths is itself problematic.
7873    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7874  else
7875    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7876  fi
7877else
7878  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7879fi
7880need_lib_prefix=unknown
7881hardcode_into_libs=no
7882
7883# when you set need_version to no, make sure it does not cause -set_version
7884# flags to be left without arguments
7885need_version=unknown
7886
7887case $host_os in
7888aix3*)
7889  version_type=linux
7890  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7891  shlibpath_var=LIBPATH
7892
7893  # AIX 3 has no versioning support, so we append a major version to the name.
7894  soname_spec='${libname}${release}${shared_ext}$major'
7895  ;;
7896
7897aix4* | aix5*)
7898  version_type=linux
7899  need_lib_prefix=no
7900  need_version=no
7901  hardcode_into_libs=yes
7902  if test "$host_cpu" = ia64; then
7903    # AIX 5 supports IA64
7904    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7905    shlibpath_var=LD_LIBRARY_PATH
7906  else
7907    # With GCC up to 2.95.x, collect2 would create an import file
7908    # for dependence libraries.  The import file would start with
7909    # the line `#! .'.  This would cause the generated library to
7910    # depend on `.', always an invalid library.  This was fixed in
7911    # development snapshots of GCC prior to 3.0.
7912    case $host_os in
7913      aix4 | aix4.[01] | aix4.[01].*)
7914      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7915	   echo ' yes '
7916	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7917	:
7918      else
7919	can_build_shared=no
7920      fi
7921      ;;
7922    esac
7923    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7924    # soname into executable. Probably we can add versioning support to
7925    # collect2, so additional links can be useful in future.
7926    if test "$aix_use_runtimelinking" = yes; then
7927      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7928      # instead of lib<name>.a to let people know that these are not
7929      # typical AIX shared libraries.
7930      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7931    else
7932      # We preserve .a as extension for shared libraries through AIX4.2
7933      # and later when we are not doing run time linking.
7934      library_names_spec='${libname}${release}.a $libname.a'
7935      soname_spec='${libname}${release}${shared_ext}$major'
7936    fi
7937    shlibpath_var=LIBPATH
7938  fi
7939  ;;
7940
7941amigaos*)
7942  library_names_spec='$libname.ixlibrary $libname.a'
7943  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7944  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'
7945  ;;
7946
7947beos*)
7948  library_names_spec='${libname}${shared_ext}'
7949  dynamic_linker="$host_os ld.so"
7950  shlibpath_var=LIBRARY_PATH
7951  ;;
7952
7953bsdi[45]*)
7954  version_type=linux
7955  need_version=no
7956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7957  soname_spec='${libname}${release}${shared_ext}$major'
7958  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7959  shlibpath_var=LD_LIBRARY_PATH
7960  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7961  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7962  # the default ld.so.conf also contains /usr/contrib/lib and
7963  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7964  # libtool to hard-code these into programs
7965  ;;
7966
7967cygwin* | mingw* | pw32*)
7968  version_type=windows
7969  shrext_cmds=".dll"
7970  need_version=no
7971  need_lib_prefix=no
7972
7973  case $GCC,$host_os in
7974  yes,cygwin* | yes,mingw* | yes,pw32*)
7975    library_names_spec='$libname.dll.a'
7976    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7977    postinstall_cmds='base_file=`basename \${file}`~
7978      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7979      dldir=$destdir/`dirname \$dlpath`~
7980      test -d \$dldir || mkdir -p \$dldir~
7981      $install_prog $dir/$dlname \$dldir/$dlname~
7982      chmod a+x \$dldir/$dlname'
7983    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7984      dlpath=$dir/\$dldll~
7985       $rm \$dlpath'
7986    shlibpath_overrides_runpath=yes
7987
7988    case $host_os in
7989    cygwin*)
7990      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7991      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
7992      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
7993      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7994      ;;
7995    mingw*)
7996      # MinGW DLLs use traditional 'lib' prefix
7997      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
7998      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
7999      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8000      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8001        # It is most probably a Windows format PATH printed by
8002        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8003        # path with ; separators, and with drive letters. We can handle the
8004        # drive letters (cygwin fileutils understands them), so leave them,
8005        # especially as we might pass files found there to a mingw objdump,
8006        # which wouldn't understand a cygwinified path. Ahh.
8007        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8008      else
8009        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8010      fi
8011      ;;
8012    pw32*)
8013      # pw32 DLLs use 'pw' prefix rather than 'lib'
8014      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8015      ;;
8016    esac
8017    ;;
8018
8019  *)
8020    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8021    ;;
8022  esac
8023  dynamic_linker='Win32 ld.exe'
8024  # FIXME: first we should search . and the directory the executable is in
8025  shlibpath_var=PATH
8026  ;;
8027
8028darwin* | rhapsody*)
8029  dynamic_linker="$host_os dyld"
8030  version_type=darwin
8031  need_lib_prefix=no
8032  need_version=no
8033  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8034  soname_spec='${libname}${release}${major}$shared_ext'
8035  shlibpath_overrides_runpath=yes
8036  shlibpath_var=DYLD_LIBRARY_PATH
8037  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8038  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8039  if test "$GCC" = yes; then
8040    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"`
8041  else
8042    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8043  fi
8044  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8045  ;;
8046
8047dgux*)
8048  version_type=linux
8049  need_lib_prefix=no
8050  need_version=no
8051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8052  soname_spec='${libname}${release}${shared_ext}$major'
8053  shlibpath_var=LD_LIBRARY_PATH
8054  ;;
8055
8056freebsd1*)
8057  dynamic_linker=no
8058  ;;
8059
8060kfreebsd*-gnu)
8061  version_type=linux
8062  need_lib_prefix=no
8063  need_version=no
8064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8065  soname_spec='${libname}${release}${shared_ext}$major'
8066  shlibpath_var=LD_LIBRARY_PATH
8067  shlibpath_overrides_runpath=no
8068  hardcode_into_libs=yes
8069  dynamic_linker='GNU ld.so'
8070  ;;
8071
8072freebsd* | dragonfly*)
8073  # DragonFly does not have aout.  When/if they implement a new
8074  # versioning mechanism, adjust this.
8075  if test -x /usr/bin/objformat; then
8076    objformat=`/usr/bin/objformat`
8077  else
8078    case $host_os in
8079    freebsd[123]*) objformat=aout ;;
8080    *) objformat=elf ;;
8081    esac
8082  fi
8083  version_type=freebsd-$objformat
8084  case $version_type in
8085    freebsd-elf*)
8086      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8087      need_version=no
8088      need_lib_prefix=no
8089      ;;
8090    freebsd-*)
8091      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8092      need_version=yes
8093      ;;
8094  esac
8095  shlibpath_var=LD_LIBRARY_PATH
8096  case $host_os in
8097  freebsd2*)
8098    shlibpath_overrides_runpath=yes
8099    ;;
8100  freebsd3.[01]* | freebsdelf3.[01]*)
8101    shlibpath_overrides_runpath=yes
8102    hardcode_into_libs=yes
8103    ;;
8104  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8105  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8106    shlibpath_overrides_runpath=no
8107    hardcode_into_libs=yes
8108    ;;
8109  freebsd*) # from 4.6 on
8110    shlibpath_overrides_runpath=yes
8111    hardcode_into_libs=yes
8112    ;;
8113  esac
8114  ;;
8115
8116gnu*)
8117  version_type=linux
8118  need_lib_prefix=no
8119  need_version=no
8120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8121  soname_spec='${libname}${release}${shared_ext}$major'
8122  shlibpath_var=LD_LIBRARY_PATH
8123  hardcode_into_libs=yes
8124  ;;
8125
8126hpux9* | hpux10* | hpux11*)
8127  # Give a soname corresponding to the major version so that dld.sl refuses to
8128  # link against other versions.
8129  version_type=sunos
8130  need_lib_prefix=no
8131  need_version=no
8132  case $host_cpu in
8133  ia64*)
8134    shrext_cmds='.so'
8135    hardcode_into_libs=yes
8136    dynamic_linker="$host_os dld.so"
8137    shlibpath_var=LD_LIBRARY_PATH
8138    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8139    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8140    soname_spec='${libname}${release}${shared_ext}$major'
8141    if test "X$HPUX_IA64_MODE" = X32; then
8142      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8143    else
8144      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8145    fi
8146    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8147    ;;
8148   hppa*64*)
8149     shrext_cmds='.sl'
8150     hardcode_into_libs=yes
8151     dynamic_linker="$host_os dld.sl"
8152     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8153     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8155     soname_spec='${libname}${release}${shared_ext}$major'
8156     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8157     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8158     ;;
8159   *)
8160    shrext_cmds='.sl'
8161    dynamic_linker="$host_os dld.sl"
8162    shlibpath_var=SHLIB_PATH
8163    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8164    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8165    soname_spec='${libname}${release}${shared_ext}$major'
8166    ;;
8167  esac
8168  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8169  postinstall_cmds='chmod 555 $lib'
8170  ;;
8171
8172interix3*)
8173  version_type=linux
8174  need_lib_prefix=no
8175  need_version=no
8176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8177  soname_spec='${libname}${release}${shared_ext}$major'
8178  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8179  shlibpath_var=LD_LIBRARY_PATH
8180  shlibpath_overrides_runpath=no
8181  hardcode_into_libs=yes
8182  ;;
8183
8184irix5* | irix6* | nonstopux*)
8185  case $host_os in
8186    nonstopux*) version_type=nonstopux ;;
8187    *)
8188	if test "$lt_cv_prog_gnu_ld" = yes; then
8189		version_type=linux
8190	else
8191		version_type=irix
8192	fi ;;
8193  esac
8194  need_lib_prefix=no
8195  need_version=no
8196  soname_spec='${libname}${release}${shared_ext}$major'
8197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8198  case $host_os in
8199  irix5* | nonstopux*)
8200    libsuff= shlibsuff=
8201    ;;
8202  *)
8203    case $LD in # libtool.m4 will add one of these switches to LD
8204    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8205      libsuff= shlibsuff= libmagic=32-bit;;
8206    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8207      libsuff=32 shlibsuff=N32 libmagic=N32;;
8208    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8209      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8210    *) libsuff= shlibsuff= libmagic=never-match;;
8211    esac
8212    ;;
8213  esac
8214  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8215  shlibpath_overrides_runpath=no
8216  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8217  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8218  hardcode_into_libs=yes
8219  ;;
8220
8221# No shared lib support for Linux oldld, aout, or coff.
8222linux*oldld* | linux*aout* | linux*coff*)
8223  dynamic_linker=no
8224  ;;
8225
8226# This must be Linux ELF.
8227linux*)
8228  version_type=linux
8229  need_lib_prefix=no
8230  need_version=no
8231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8232  soname_spec='${libname}${release}${shared_ext}$major'
8233  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8234  shlibpath_var=LD_LIBRARY_PATH
8235  shlibpath_overrides_runpath=no
8236  # This implies no fast_install, which is unacceptable.
8237  # Some rework will be needed to allow for fast_install
8238  # before this can be enabled.
8239  hardcode_into_libs=yes
8240
8241  # Append ld.so.conf contents to the search path
8242  if test -f /etc/ld.so.conf; then
8243    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' ' '`
8244    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8245  fi
8246
8247  # We used to test for /lib/ld.so.1 and disable shared libraries on
8248  # powerpc, because MkLinux only supported shared libraries with the
8249  # GNU dynamic linker.  Since this was broken with cross compilers,
8250  # most powerpc-linux boxes support dynamic linking these days and
8251  # people can always --disable-shared, the test was removed, and we
8252  # assume the GNU/Linux dynamic linker is in use.
8253  dynamic_linker='GNU/Linux ld.so'
8254  ;;
8255
8256knetbsd*-gnu)
8257  version_type=linux
8258  need_lib_prefix=no
8259  need_version=no
8260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8261  soname_spec='${libname}${release}${shared_ext}$major'
8262  shlibpath_var=LD_LIBRARY_PATH
8263  shlibpath_overrides_runpath=no
8264  hardcode_into_libs=yes
8265  dynamic_linker='GNU ld.so'
8266  ;;
8267
8268netbsd*)
8269  version_type=sunos
8270  need_lib_prefix=no
8271  need_version=no
8272  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8273    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8274    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8275    dynamic_linker='NetBSD (a.out) ld.so'
8276  else
8277    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8278    soname_spec='${libname}${release}${shared_ext}$major'
8279    dynamic_linker='NetBSD ld.elf_so'
8280  fi
8281  shlibpath_var=LD_LIBRARY_PATH
8282  shlibpath_overrides_runpath=yes
8283  hardcode_into_libs=yes
8284  ;;
8285
8286newsos6)
8287  version_type=linux
8288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8289  shlibpath_var=LD_LIBRARY_PATH
8290  shlibpath_overrides_runpath=yes
8291  ;;
8292
8293nto-qnx*)
8294  version_type=linux
8295  need_lib_prefix=no
8296  need_version=no
8297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298  soname_spec='${libname}${release}${shared_ext}$major'
8299  shlibpath_var=LD_LIBRARY_PATH
8300  shlibpath_overrides_runpath=yes
8301  ;;
8302
8303openbsd*)
8304  version_type=sunos
8305  sys_lib_dlsearch_path_spec="/usr/lib"
8306  need_lib_prefix=no
8307  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8308  case $host_os in
8309    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8310    *)                         need_version=no  ;;
8311  esac
8312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8313  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8314  shlibpath_var=LD_LIBRARY_PATH
8315  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8316    case $host_os in
8317      openbsd2.[89] | openbsd2.[89].*)
8318	shlibpath_overrides_runpath=no
8319	;;
8320      *)
8321	shlibpath_overrides_runpath=yes
8322	;;
8323      esac
8324  else
8325    shlibpath_overrides_runpath=yes
8326  fi
8327  ;;
8328
8329os2*)
8330  libname_spec='$name'
8331  shrext_cmds=".dll"
8332  need_lib_prefix=no
8333  library_names_spec='$libname${shared_ext} $libname.a'
8334  dynamic_linker='OS/2 ld.exe'
8335  shlibpath_var=LIBPATH
8336  ;;
8337
8338osf3* | osf4* | osf5*)
8339  version_type=osf
8340  need_lib_prefix=no
8341  need_version=no
8342  soname_spec='${libname}${release}${shared_ext}$major'
8343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8344  shlibpath_var=LD_LIBRARY_PATH
8345  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8346  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8347  ;;
8348
8349solaris*)
8350  version_type=linux
8351  need_lib_prefix=no
8352  need_version=no
8353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8354  soname_spec='${libname}${release}${shared_ext}$major'
8355  shlibpath_var=LD_LIBRARY_PATH
8356  shlibpath_overrides_runpath=yes
8357  hardcode_into_libs=yes
8358  # ldd complains unless libraries are executable
8359  postinstall_cmds='chmod +x $lib'
8360  ;;
8361
8362sunos4*)
8363  version_type=sunos
8364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8365  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8366  shlibpath_var=LD_LIBRARY_PATH
8367  shlibpath_overrides_runpath=yes
8368  if test "$with_gnu_ld" = yes; then
8369    need_lib_prefix=no
8370  fi
8371  need_version=yes
8372  ;;
8373
8374sysv4 | sysv4.3*)
8375  version_type=linux
8376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8377  soname_spec='${libname}${release}${shared_ext}$major'
8378  shlibpath_var=LD_LIBRARY_PATH
8379  case $host_vendor in
8380    sni)
8381      shlibpath_overrides_runpath=no
8382      need_lib_prefix=no
8383      export_dynamic_flag_spec='${wl}-Blargedynsym'
8384      runpath_var=LD_RUN_PATH
8385      ;;
8386    siemens)
8387      need_lib_prefix=no
8388      ;;
8389    motorola)
8390      need_lib_prefix=no
8391      need_version=no
8392      shlibpath_overrides_runpath=no
8393      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8394      ;;
8395  esac
8396  ;;
8397
8398sysv4*MP*)
8399  if test -d /usr/nec ;then
8400    version_type=linux
8401    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8402    soname_spec='$libname${shared_ext}.$major'
8403    shlibpath_var=LD_LIBRARY_PATH
8404  fi
8405  ;;
8406
8407sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8408  version_type=freebsd-elf
8409  need_lib_prefix=no
8410  need_version=no
8411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8412  soname_spec='${libname}${release}${shared_ext}$major'
8413  shlibpath_var=LD_LIBRARY_PATH
8414  hardcode_into_libs=yes
8415  if test "$with_gnu_ld" = yes; then
8416    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8417    shlibpath_overrides_runpath=no
8418  else
8419    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8420    shlibpath_overrides_runpath=yes
8421    case $host_os in
8422      sco3.2v5*)
8423        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8424	;;
8425    esac
8426  fi
8427  sys_lib_dlsearch_path_spec='/usr/lib'
8428  ;;
8429
8430uts4*)
8431  version_type=linux
8432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8433  soname_spec='${libname}${release}${shared_ext}$major'
8434  shlibpath_var=LD_LIBRARY_PATH
8435  ;;
8436
8437*)
8438  dynamic_linker=no
8439  ;;
8440esac
8441echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8442echo "${ECHO_T}$dynamic_linker" >&6
8443test "$dynamic_linker" = no && can_build_shared=no
8444
8445variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8446if test "$GCC" = yes; then
8447  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8448fi
8449
8450echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8451echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8452hardcode_action=
8453if test -n "$hardcode_libdir_flag_spec" || \
8454   test -n "$runpath_var" || \
8455   test "X$hardcode_automatic" = "Xyes" ; then
8456
8457  # We can hardcode non-existant directories.
8458  if test "$hardcode_direct" != no &&
8459     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8460     # have to relink, otherwise we might link with an installed library
8461     # when we should be linking with a yet-to-be-installed one
8462     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8463     test "$hardcode_minus_L" != no; then
8464    # Linking always hardcodes the temporary library directory.
8465    hardcode_action=relink
8466  else
8467    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8468    hardcode_action=immediate
8469  fi
8470else
8471  # We cannot hardcode anything, or else we can only hardcode existing
8472  # directories.
8473  hardcode_action=unsupported
8474fi
8475echo "$as_me:$LINENO: result: $hardcode_action" >&5
8476echo "${ECHO_T}$hardcode_action" >&6
8477
8478if test "$hardcode_action" = relink; then
8479  # Fast installation is not supported
8480  enable_fast_install=no
8481elif test "$shlibpath_overrides_runpath" = yes ||
8482     test "$enable_shared" = no; then
8483  # Fast installation is not necessary
8484  enable_fast_install=needless
8485fi
8486
8487striplib=
8488old_striplib=
8489echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8490echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8491if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8492  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8493  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8494  echo "$as_me:$LINENO: result: yes" >&5
8495echo "${ECHO_T}yes" >&6
8496else
8497# FIXME - insert some real tests, host_os isn't really good enough
8498  case $host_os in
8499   darwin*)
8500       if test -n "$STRIP" ; then
8501         striplib="$STRIP -x"
8502         echo "$as_me:$LINENO: result: yes" >&5
8503echo "${ECHO_T}yes" >&6
8504       else
8505  echo "$as_me:$LINENO: result: no" >&5
8506echo "${ECHO_T}no" >&6
8507fi
8508       ;;
8509   *)
8510  echo "$as_me:$LINENO: result: no" >&5
8511echo "${ECHO_T}no" >&6
8512    ;;
8513  esac
8514fi
8515
8516if test "x$enable_dlopen" != xyes; then
8517  enable_dlopen=unknown
8518  enable_dlopen_self=unknown
8519  enable_dlopen_self_static=unknown
8520else
8521  lt_cv_dlopen=no
8522  lt_cv_dlopen_libs=
8523
8524  case $host_os in
8525  beos*)
8526    lt_cv_dlopen="load_add_on"
8527    lt_cv_dlopen_libs=
8528    lt_cv_dlopen_self=yes
8529    ;;
8530
8531  mingw* | pw32*)
8532    lt_cv_dlopen="LoadLibrary"
8533    lt_cv_dlopen_libs=
8534   ;;
8535
8536  cygwin*)
8537    lt_cv_dlopen="dlopen"
8538    lt_cv_dlopen_libs=
8539   ;;
8540
8541  darwin*)
8542  # if libdl is installed we need to link against it
8543    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8544echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8545if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8546  echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548  ac_check_lib_save_LIBS=$LIBS
8549LIBS="-ldl  $LIBS"
8550cat >conftest.$ac_ext <<_ACEOF
8551/* confdefs.h.  */
8552_ACEOF
8553cat confdefs.h >>conftest.$ac_ext
8554cat >>conftest.$ac_ext <<_ACEOF
8555/* end confdefs.h.  */
8556
8557/* Override any gcc2 internal prototype to avoid an error.  */
8558#ifdef __cplusplus
8559extern "C"
8560#endif
8561/* We use char because int might match the return type of a gcc2
8562   builtin and then its argument prototype would still apply.  */
8563char dlopen ();
8564int
8565main ()
8566{
8567dlopen ();
8568  ;
8569  return 0;
8570}
8571_ACEOF
8572rm -f conftest.$ac_objext conftest$ac_exeext
8573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574  (eval $ac_link) 2>conftest.er1
8575  ac_status=$?
8576  grep -v '^ *+' conftest.er1 >conftest.err
8577  rm -f conftest.er1
8578  cat conftest.err >&5
8579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580  (exit $ac_status); } &&
8581	 { ac_try='test -z "$ac_c_werror_flag"
8582			 || test ! -s conftest.err'
8583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584  (eval $ac_try) 2>&5
8585  ac_status=$?
8586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587  (exit $ac_status); }; } &&
8588	 { ac_try='test -s conftest$ac_exeext'
8589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590  (eval $ac_try) 2>&5
8591  ac_status=$?
8592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593  (exit $ac_status); }; }; then
8594  ac_cv_lib_dl_dlopen=yes
8595else
8596  echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8599ac_cv_lib_dl_dlopen=no
8600fi
8601rm -f conftest.err conftest.$ac_objext \
8602      conftest$ac_exeext conftest.$ac_ext
8603LIBS=$ac_check_lib_save_LIBS
8604fi
8605echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8606echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8607if test $ac_cv_lib_dl_dlopen = yes; then
8608  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8609else
8610
8611    lt_cv_dlopen="dyld"
8612    lt_cv_dlopen_libs=
8613    lt_cv_dlopen_self=yes
8614
8615fi
8616
8617   ;;
8618
8619  *)
8620    echo "$as_me:$LINENO: checking for shl_load" >&5
8621echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8622if test "${ac_cv_func_shl_load+set}" = set; then
8623  echo $ECHO_N "(cached) $ECHO_C" >&6
8624else
8625  cat >conftest.$ac_ext <<_ACEOF
8626/* confdefs.h.  */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h.  */
8631/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8632   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8633#define shl_load innocuous_shl_load
8634
8635/* System header to define __stub macros and hopefully few prototypes,
8636    which can conflict with char shl_load (); below.
8637    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8638    <limits.h> exists even on freestanding compilers.  */
8639
8640#ifdef __STDC__
8641# include <limits.h>
8642#else
8643# include <assert.h>
8644#endif
8645
8646#undef shl_load
8647
8648/* Override any gcc2 internal prototype to avoid an error.  */
8649#ifdef __cplusplus
8650extern "C"
8651{
8652#endif
8653/* We use char because int might match the return type of a gcc2
8654   builtin and then its argument prototype would still apply.  */
8655char shl_load ();
8656/* The GNU C library defines this for functions which it implements
8657    to always fail with ENOSYS.  Some functions are actually named
8658    something starting with __ and the normal name is an alias.  */
8659#if defined (__stub_shl_load) || defined (__stub___shl_load)
8660choke me
8661#else
8662char (*f) () = shl_load;
8663#endif
8664#ifdef __cplusplus
8665}
8666#endif
8667
8668int
8669main ()
8670{
8671return f != shl_load;
8672  ;
8673  return 0;
8674}
8675_ACEOF
8676rm -f conftest.$ac_objext conftest$ac_exeext
8677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678  (eval $ac_link) 2>conftest.er1
8679  ac_status=$?
8680  grep -v '^ *+' conftest.er1 >conftest.err
8681  rm -f conftest.er1
8682  cat conftest.err >&5
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); } &&
8685	 { ac_try='test -z "$ac_c_werror_flag"
8686			 || test ! -s conftest.err'
8687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688  (eval $ac_try) 2>&5
8689  ac_status=$?
8690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); }; } &&
8692	 { ac_try='test -s conftest$ac_exeext'
8693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694  (eval $ac_try) 2>&5
8695  ac_status=$?
8696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697  (exit $ac_status); }; }; then
8698  ac_cv_func_shl_load=yes
8699else
8700  echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
8703ac_cv_func_shl_load=no
8704fi
8705rm -f conftest.err conftest.$ac_objext \
8706      conftest$ac_exeext conftest.$ac_ext
8707fi
8708echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8709echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8710if test $ac_cv_func_shl_load = yes; then
8711  lt_cv_dlopen="shl_load"
8712else
8713  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8714echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8715if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8716  echo $ECHO_N "(cached) $ECHO_C" >&6
8717else
8718  ac_check_lib_save_LIBS=$LIBS
8719LIBS="-ldld  $LIBS"
8720cat >conftest.$ac_ext <<_ACEOF
8721/* confdefs.h.  */
8722_ACEOF
8723cat confdefs.h >>conftest.$ac_ext
8724cat >>conftest.$ac_ext <<_ACEOF
8725/* end confdefs.h.  */
8726
8727/* Override any gcc2 internal prototype to avoid an error.  */
8728#ifdef __cplusplus
8729extern "C"
8730#endif
8731/* We use char because int might match the return type of a gcc2
8732   builtin and then its argument prototype would still apply.  */
8733char shl_load ();
8734int
8735main ()
8736{
8737shl_load ();
8738  ;
8739  return 0;
8740}
8741_ACEOF
8742rm -f conftest.$ac_objext conftest$ac_exeext
8743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744  (eval $ac_link) 2>conftest.er1
8745  ac_status=$?
8746  grep -v '^ *+' conftest.er1 >conftest.err
8747  rm -f conftest.er1
8748  cat conftest.err >&5
8749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750  (exit $ac_status); } &&
8751	 { ac_try='test -z "$ac_c_werror_flag"
8752			 || test ! -s conftest.err'
8753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754  (eval $ac_try) 2>&5
8755  ac_status=$?
8756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757  (exit $ac_status); }; } &&
8758	 { ac_try='test -s conftest$ac_exeext'
8759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760  (eval $ac_try) 2>&5
8761  ac_status=$?
8762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763  (exit $ac_status); }; }; then
8764  ac_cv_lib_dld_shl_load=yes
8765else
8766  echo "$as_me: failed program was:" >&5
8767sed 's/^/| /' conftest.$ac_ext >&5
8768
8769ac_cv_lib_dld_shl_load=no
8770fi
8771rm -f conftest.err conftest.$ac_objext \
8772      conftest$ac_exeext conftest.$ac_ext
8773LIBS=$ac_check_lib_save_LIBS
8774fi
8775echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8776echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8777if test $ac_cv_lib_dld_shl_load = yes; then
8778  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8779else
8780  echo "$as_me:$LINENO: checking for dlopen" >&5
8781echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8782if test "${ac_cv_func_dlopen+set}" = set; then
8783  echo $ECHO_N "(cached) $ECHO_C" >&6
8784else
8785  cat >conftest.$ac_ext <<_ACEOF
8786/* confdefs.h.  */
8787_ACEOF
8788cat confdefs.h >>conftest.$ac_ext
8789cat >>conftest.$ac_ext <<_ACEOF
8790/* end confdefs.h.  */
8791/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8792   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8793#define dlopen innocuous_dlopen
8794
8795/* System header to define __stub macros and hopefully few prototypes,
8796    which can conflict with char dlopen (); below.
8797    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8798    <limits.h> exists even on freestanding compilers.  */
8799
8800#ifdef __STDC__
8801# include <limits.h>
8802#else
8803# include <assert.h>
8804#endif
8805
8806#undef dlopen
8807
8808/* Override any gcc2 internal prototype to avoid an error.  */
8809#ifdef __cplusplus
8810extern "C"
8811{
8812#endif
8813/* We use char because int might match the return type of a gcc2
8814   builtin and then its argument prototype would still apply.  */
8815char dlopen ();
8816/* The GNU C library defines this for functions which it implements
8817    to always fail with ENOSYS.  Some functions are actually named
8818    something starting with __ and the normal name is an alias.  */
8819#if defined (__stub_dlopen) || defined (__stub___dlopen)
8820choke me
8821#else
8822char (*f) () = dlopen;
8823#endif
8824#ifdef __cplusplus
8825}
8826#endif
8827
8828int
8829main ()
8830{
8831return f != dlopen;
8832  ;
8833  return 0;
8834}
8835_ACEOF
8836rm -f conftest.$ac_objext conftest$ac_exeext
8837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8838  (eval $ac_link) 2>conftest.er1
8839  ac_status=$?
8840  grep -v '^ *+' conftest.er1 >conftest.err
8841  rm -f conftest.er1
8842  cat conftest.err >&5
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); } &&
8845	 { ac_try='test -z "$ac_c_werror_flag"
8846			 || test ! -s conftest.err'
8847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848  (eval $ac_try) 2>&5
8849  ac_status=$?
8850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851  (exit $ac_status); }; } &&
8852	 { ac_try='test -s conftest$ac_exeext'
8853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854  (eval $ac_try) 2>&5
8855  ac_status=$?
8856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857  (exit $ac_status); }; }; then
8858  ac_cv_func_dlopen=yes
8859else
8860  echo "$as_me: failed program was:" >&5
8861sed 's/^/| /' conftest.$ac_ext >&5
8862
8863ac_cv_func_dlopen=no
8864fi
8865rm -f conftest.err conftest.$ac_objext \
8866      conftest$ac_exeext conftest.$ac_ext
8867fi
8868echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8869echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8870if test $ac_cv_func_dlopen = yes; then
8871  lt_cv_dlopen="dlopen"
8872else
8873  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8874echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8875if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8876  echo $ECHO_N "(cached) $ECHO_C" >&6
8877else
8878  ac_check_lib_save_LIBS=$LIBS
8879LIBS="-ldl  $LIBS"
8880cat >conftest.$ac_ext <<_ACEOF
8881/* confdefs.h.  */
8882_ACEOF
8883cat confdefs.h >>conftest.$ac_ext
8884cat >>conftest.$ac_ext <<_ACEOF
8885/* end confdefs.h.  */
8886
8887/* Override any gcc2 internal prototype to avoid an error.  */
8888#ifdef __cplusplus
8889extern "C"
8890#endif
8891/* We use char because int might match the return type of a gcc2
8892   builtin and then its argument prototype would still apply.  */
8893char dlopen ();
8894int
8895main ()
8896{
8897dlopen ();
8898  ;
8899  return 0;
8900}
8901_ACEOF
8902rm -f conftest.$ac_objext conftest$ac_exeext
8903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904  (eval $ac_link) 2>conftest.er1
8905  ac_status=$?
8906  grep -v '^ *+' conftest.er1 >conftest.err
8907  rm -f conftest.er1
8908  cat conftest.err >&5
8909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910  (exit $ac_status); } &&
8911	 { ac_try='test -z "$ac_c_werror_flag"
8912			 || test ! -s conftest.err'
8913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914  (eval $ac_try) 2>&5
8915  ac_status=$?
8916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917  (exit $ac_status); }; } &&
8918	 { ac_try='test -s conftest$ac_exeext'
8919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920  (eval $ac_try) 2>&5
8921  ac_status=$?
8922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923  (exit $ac_status); }; }; then
8924  ac_cv_lib_dl_dlopen=yes
8925else
8926  echo "$as_me: failed program was:" >&5
8927sed 's/^/| /' conftest.$ac_ext >&5
8928
8929ac_cv_lib_dl_dlopen=no
8930fi
8931rm -f conftest.err conftest.$ac_objext \
8932      conftest$ac_exeext conftest.$ac_ext
8933LIBS=$ac_check_lib_save_LIBS
8934fi
8935echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8936echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8937if test $ac_cv_lib_dl_dlopen = yes; then
8938  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8939else
8940  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8941echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8942if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8943  echo $ECHO_N "(cached) $ECHO_C" >&6
8944else
8945  ac_check_lib_save_LIBS=$LIBS
8946LIBS="-lsvld  $LIBS"
8947cat >conftest.$ac_ext <<_ACEOF
8948/* confdefs.h.  */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
8952/* end confdefs.h.  */
8953
8954/* Override any gcc2 internal prototype to avoid an error.  */
8955#ifdef __cplusplus
8956extern "C"
8957#endif
8958/* We use char because int might match the return type of a gcc2
8959   builtin and then its argument prototype would still apply.  */
8960char dlopen ();
8961int
8962main ()
8963{
8964dlopen ();
8965  ;
8966  return 0;
8967}
8968_ACEOF
8969rm -f conftest.$ac_objext conftest$ac_exeext
8970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8971  (eval $ac_link) 2>conftest.er1
8972  ac_status=$?
8973  grep -v '^ *+' conftest.er1 >conftest.err
8974  rm -f conftest.er1
8975  cat conftest.err >&5
8976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977  (exit $ac_status); } &&
8978	 { ac_try='test -z "$ac_c_werror_flag"
8979			 || test ! -s conftest.err'
8980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981  (eval $ac_try) 2>&5
8982  ac_status=$?
8983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984  (exit $ac_status); }; } &&
8985	 { ac_try='test -s conftest$ac_exeext'
8986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987  (eval $ac_try) 2>&5
8988  ac_status=$?
8989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990  (exit $ac_status); }; }; then
8991  ac_cv_lib_svld_dlopen=yes
8992else
8993  echo "$as_me: failed program was:" >&5
8994sed 's/^/| /' conftest.$ac_ext >&5
8995
8996ac_cv_lib_svld_dlopen=no
8997fi
8998rm -f conftest.err conftest.$ac_objext \
8999      conftest$ac_exeext conftest.$ac_ext
9000LIBS=$ac_check_lib_save_LIBS
9001fi
9002echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9003echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9004if test $ac_cv_lib_svld_dlopen = yes; then
9005  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9006else
9007  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9008echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9009if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9010  echo $ECHO_N "(cached) $ECHO_C" >&6
9011else
9012  ac_check_lib_save_LIBS=$LIBS
9013LIBS="-ldld  $LIBS"
9014cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h.  */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h.  */
9020
9021/* Override any gcc2 internal prototype to avoid an error.  */
9022#ifdef __cplusplus
9023extern "C"
9024#endif
9025/* We use char because int might match the return type of a gcc2
9026   builtin and then its argument prototype would still apply.  */
9027char dld_link ();
9028int
9029main ()
9030{
9031dld_link ();
9032  ;
9033  return 0;
9034}
9035_ACEOF
9036rm -f conftest.$ac_objext conftest$ac_exeext
9037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9038  (eval $ac_link) 2>conftest.er1
9039  ac_status=$?
9040  grep -v '^ *+' conftest.er1 >conftest.err
9041  rm -f conftest.er1
9042  cat conftest.err >&5
9043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044  (exit $ac_status); } &&
9045	 { ac_try='test -z "$ac_c_werror_flag"
9046			 || test ! -s conftest.err'
9047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048  (eval $ac_try) 2>&5
9049  ac_status=$?
9050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051  (exit $ac_status); }; } &&
9052	 { ac_try='test -s conftest$ac_exeext'
9053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054  (eval $ac_try) 2>&5
9055  ac_status=$?
9056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057  (exit $ac_status); }; }; then
9058  ac_cv_lib_dld_dld_link=yes
9059else
9060  echo "$as_me: failed program was:" >&5
9061sed 's/^/| /' conftest.$ac_ext >&5
9062
9063ac_cv_lib_dld_dld_link=no
9064fi
9065rm -f conftest.err conftest.$ac_objext \
9066      conftest$ac_exeext conftest.$ac_ext
9067LIBS=$ac_check_lib_save_LIBS
9068fi
9069echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9070echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9071if test $ac_cv_lib_dld_dld_link = yes; then
9072  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9073fi
9074
9075
9076fi
9077
9078
9079fi
9080
9081
9082fi
9083
9084
9085fi
9086
9087
9088fi
9089
9090    ;;
9091  esac
9092
9093  if test "x$lt_cv_dlopen" != xno; then
9094    enable_dlopen=yes
9095  else
9096    enable_dlopen=no
9097  fi
9098
9099  case $lt_cv_dlopen in
9100  dlopen)
9101    save_CPPFLAGS="$CPPFLAGS"
9102    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9103
9104    save_LDFLAGS="$LDFLAGS"
9105    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9106
9107    save_LIBS="$LIBS"
9108    LIBS="$lt_cv_dlopen_libs $LIBS"
9109
9110    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9111echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9112if test "${lt_cv_dlopen_self+set}" = set; then
9113  echo $ECHO_N "(cached) $ECHO_C" >&6
9114else
9115  	  if test "$cross_compiling" = yes; then :
9116  lt_cv_dlopen_self=cross
9117else
9118  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9119  lt_status=$lt_dlunknown
9120  cat > conftest.$ac_ext <<EOF
9121#line 9121 "configure"
9122#include "confdefs.h"
9123
9124#if HAVE_DLFCN_H
9125#include <dlfcn.h>
9126#endif
9127
9128#include <stdio.h>
9129
9130#ifdef RTLD_GLOBAL
9131#  define LT_DLGLOBAL		RTLD_GLOBAL
9132#else
9133#  ifdef DL_GLOBAL
9134#    define LT_DLGLOBAL		DL_GLOBAL
9135#  else
9136#    define LT_DLGLOBAL		0
9137#  endif
9138#endif
9139
9140/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9141   find out it does not work in some platform. */
9142#ifndef LT_DLLAZY_OR_NOW
9143#  ifdef RTLD_LAZY
9144#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9145#  else
9146#    ifdef DL_LAZY
9147#      define LT_DLLAZY_OR_NOW		DL_LAZY
9148#    else
9149#      ifdef RTLD_NOW
9150#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9151#      else
9152#        ifdef DL_NOW
9153#          define LT_DLLAZY_OR_NOW	DL_NOW
9154#        else
9155#          define LT_DLLAZY_OR_NOW	0
9156#        endif
9157#      endif
9158#    endif
9159#  endif
9160#endif
9161
9162#ifdef __cplusplus
9163extern "C" void exit (int);
9164#endif
9165
9166void fnord() { int i=42;}
9167int main ()
9168{
9169  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9170  int status = $lt_dlunknown;
9171
9172  if (self)
9173    {
9174      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9175      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9176      /* dlclose (self); */
9177    }
9178  else
9179    puts (dlerror ());
9180
9181    exit (status);
9182}
9183EOF
9184  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185  (eval $ac_link) 2>&5
9186  ac_status=$?
9187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9189    (./conftest; exit; ) >&5 2>/dev/null
9190    lt_status=$?
9191    case x$lt_status in
9192      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9193      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9194      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9195    esac
9196  else :
9197    # compilation failed
9198    lt_cv_dlopen_self=no
9199  fi
9200fi
9201rm -fr conftest*
9202
9203
9204fi
9205echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9206echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9207
9208    if test "x$lt_cv_dlopen_self" = xyes; then
9209      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9210      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9211echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9212if test "${lt_cv_dlopen_self_static+set}" = set; then
9213  echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215  	  if test "$cross_compiling" = yes; then :
9216  lt_cv_dlopen_self_static=cross
9217else
9218  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9219  lt_status=$lt_dlunknown
9220  cat > conftest.$ac_ext <<EOF
9221#line 9221 "configure"
9222#include "confdefs.h"
9223
9224#if HAVE_DLFCN_H
9225#include <dlfcn.h>
9226#endif
9227
9228#include <stdio.h>
9229
9230#ifdef RTLD_GLOBAL
9231#  define LT_DLGLOBAL		RTLD_GLOBAL
9232#else
9233#  ifdef DL_GLOBAL
9234#    define LT_DLGLOBAL		DL_GLOBAL
9235#  else
9236#    define LT_DLGLOBAL		0
9237#  endif
9238#endif
9239
9240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9241   find out it does not work in some platform. */
9242#ifndef LT_DLLAZY_OR_NOW
9243#  ifdef RTLD_LAZY
9244#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9245#  else
9246#    ifdef DL_LAZY
9247#      define LT_DLLAZY_OR_NOW		DL_LAZY
9248#    else
9249#      ifdef RTLD_NOW
9250#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9251#      else
9252#        ifdef DL_NOW
9253#          define LT_DLLAZY_OR_NOW	DL_NOW
9254#        else
9255#          define LT_DLLAZY_OR_NOW	0
9256#        endif
9257#      endif
9258#    endif
9259#  endif
9260#endif
9261
9262#ifdef __cplusplus
9263extern "C" void exit (int);
9264#endif
9265
9266void fnord() { int i=42;}
9267int main ()
9268{
9269  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9270  int status = $lt_dlunknown;
9271
9272  if (self)
9273    {
9274      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9275      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9276      /* dlclose (self); */
9277    }
9278  else
9279    puts (dlerror ());
9280
9281    exit (status);
9282}
9283EOF
9284  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9285  (eval $ac_link) 2>&5
9286  ac_status=$?
9287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9289    (./conftest; exit; ) >&5 2>/dev/null
9290    lt_status=$?
9291    case x$lt_status in
9292      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9293      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9294      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9295    esac
9296  else :
9297    # compilation failed
9298    lt_cv_dlopen_self_static=no
9299  fi
9300fi
9301rm -fr conftest*
9302
9303
9304fi
9305echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9306echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9307    fi
9308
9309    CPPFLAGS="$save_CPPFLAGS"
9310    LDFLAGS="$save_LDFLAGS"
9311    LIBS="$save_LIBS"
9312    ;;
9313  esac
9314
9315  case $lt_cv_dlopen_self in
9316  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9317  *) enable_dlopen_self=unknown ;;
9318  esac
9319
9320  case $lt_cv_dlopen_self_static in
9321  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9322  *) enable_dlopen_self_static=unknown ;;
9323  esac
9324fi
9325
9326
9327# Report which library types will actually be built
9328echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9329echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9330echo "$as_me:$LINENO: result: $can_build_shared" >&5
9331echo "${ECHO_T}$can_build_shared" >&6
9332
9333echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9334echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9335test "$can_build_shared" = "no" && enable_shared=no
9336
9337# On AIX, shared libraries and static libraries use the same namespace, and
9338# are all built from PIC.
9339case $host_os in
9340aix3*)
9341  test "$enable_shared" = yes && enable_static=no
9342  if test -n "$RANLIB"; then
9343    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9344    postinstall_cmds='$RANLIB $lib'
9345  fi
9346  ;;
9347
9348aix4* | aix5*)
9349  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9350    test "$enable_shared" = yes && enable_static=no
9351  fi
9352    ;;
9353esac
9354echo "$as_me:$LINENO: result: $enable_shared" >&5
9355echo "${ECHO_T}$enable_shared" >&6
9356
9357echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9358echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9359# Make sure either enable_shared or enable_static is yes.
9360test "$enable_shared" = yes || enable_static=yes
9361echo "$as_me:$LINENO: result: $enable_static" >&5
9362echo "${ECHO_T}$enable_static" >&6
9363
9364# The else clause should only fire when bootstrapping the
9365# libtool distribution, otherwise you forgot to ship ltmain.sh
9366# with your package, and you will get complaints that there are
9367# no rules to generate ltmain.sh.
9368if test -f "$ltmain"; then
9369  # See if we are running on zsh, and set the options which allow our commands through
9370  # without removal of \ escapes.
9371  if test -n "${ZSH_VERSION+set}" ; then
9372    setopt NO_GLOB_SUBST
9373  fi
9374  # Now quote all the things that may contain metacharacters while being
9375  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9376  # variables and quote the copies for generation of the libtool script.
9377  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9378    SED SHELL STRIP \
9379    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9380    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9381    deplibs_check_method reload_flag reload_cmds need_locks \
9382    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9383    lt_cv_sys_global_symbol_to_c_name_address \
9384    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9385    old_postinstall_cmds old_postuninstall_cmds \
9386    compiler \
9387    CC \
9388    LD \
9389    lt_prog_compiler_wl \
9390    lt_prog_compiler_pic \
9391    lt_prog_compiler_static \
9392    lt_prog_compiler_no_builtin_flag \
9393    export_dynamic_flag_spec \
9394    thread_safe_flag_spec \
9395    whole_archive_flag_spec \
9396    enable_shared_with_static_runtimes \
9397    old_archive_cmds \
9398    old_archive_from_new_cmds \
9399    predep_objects \
9400    postdep_objects \
9401    predeps \
9402    postdeps \
9403    compiler_lib_search_path \
9404    archive_cmds \
9405    archive_expsym_cmds \
9406    postinstall_cmds \
9407    postuninstall_cmds \
9408    old_archive_from_expsyms_cmds \
9409    allow_undefined_flag \
9410    no_undefined_flag \
9411    export_symbols_cmds \
9412    hardcode_libdir_flag_spec \
9413    hardcode_libdir_flag_spec_ld \
9414    hardcode_libdir_separator \
9415    hardcode_automatic \
9416    module_cmds \
9417    module_expsym_cmds \
9418    lt_cv_prog_compiler_c_o \
9419    exclude_expsyms \
9420    include_expsyms; do
9421
9422    case $var in
9423    old_archive_cmds | \
9424    old_archive_from_new_cmds | \
9425    archive_cmds | \
9426    archive_expsym_cmds | \
9427    module_cmds | \
9428    module_expsym_cmds | \
9429    old_archive_from_expsyms_cmds | \
9430    export_symbols_cmds | \
9431    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9432    postinstall_cmds | postuninstall_cmds | \
9433    old_postinstall_cmds | old_postuninstall_cmds | \
9434    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9435      # Double-quote double-evaled strings.
9436      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9437      ;;
9438    *)
9439      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9440      ;;
9441    esac
9442  done
9443
9444  case $lt_echo in
9445  *'\$0 --fallback-echo"')
9446    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9447    ;;
9448  esac
9449
9450cfgfile="${ofile}T"
9451  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9452  $rm -f "$cfgfile"
9453  { echo "$as_me:$LINENO: creating $ofile" >&5
9454echo "$as_me: creating $ofile" >&6;}
9455
9456  cat <<__EOF__ >> "$cfgfile"
9457#! $SHELL
9458
9459# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9460# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9461# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9462#
9463# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9464# Free Software Foundation, Inc.
9465#
9466# This file is part of GNU Libtool:
9467# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9468#
9469# This program is free software; you can redistribute it and/or modify
9470# it under the terms of the GNU General Public License as published by
9471# the Free Software Foundation; either version 2 of the License, or
9472# (at your option) any later version.
9473#
9474# This program is distributed in the hope that it will be useful, but
9475# WITHOUT ANY WARRANTY; without even the implied warranty of
9476# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9477# General Public License for more details.
9478#
9479# You should have received a copy of the GNU General Public License
9480# along with this program; if not, write to the Free Software
9481# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9482#
9483# As a special exception to the GNU General Public License, if you
9484# distribute this file as part of a program that contains a
9485# configuration script generated by Autoconf, you may include it under
9486# the same distribution terms that you use for the rest of that program.
9487
9488# A sed program that does not truncate output.
9489SED=$lt_SED
9490
9491# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9492Xsed="$SED -e 1s/^X//"
9493
9494# The HP-UX ksh and POSIX shell print the target directory to stdout
9495# if CDPATH is set.
9496(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9497
9498# The names of the tagged configurations supported by this script.
9499available_tags=
9500
9501# ### BEGIN LIBTOOL CONFIG
9502
9503# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9504
9505# Shell to use when invoking shell scripts.
9506SHELL=$lt_SHELL
9507
9508# Whether or not to build shared libraries.
9509build_libtool_libs=$enable_shared
9510
9511# Whether or not to build static libraries.
9512build_old_libs=$enable_static
9513
9514# Whether or not to add -lc for building shared libraries.
9515build_libtool_need_lc=$archive_cmds_need_lc
9516
9517# Whether or not to disallow shared libs when runtime libs are static
9518allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9519
9520# Whether or not to optimize for fast installation.
9521fast_install=$enable_fast_install
9522
9523# The host system.
9524host_alias=$host_alias
9525host=$host
9526host_os=$host_os
9527
9528# The build system.
9529build_alias=$build_alias
9530build=$build
9531build_os=$build_os
9532
9533# An echo program that does not interpret backslashes.
9534echo=$lt_echo
9535
9536# The archiver.
9537AR=$lt_AR
9538AR_FLAGS=$lt_AR_FLAGS
9539
9540# A C compiler.
9541LTCC=$lt_LTCC
9542
9543# LTCC compiler flags.
9544LTCFLAGS=$lt_LTCFLAGS
9545
9546# A language-specific compiler.
9547CC=$lt_compiler
9548
9549# Is the compiler the GNU C compiler?
9550with_gcc=$GCC
9551
9552# An ERE matcher.
9553EGREP=$lt_EGREP
9554
9555# The linker used to build libraries.
9556LD=$lt_LD
9557
9558# Whether we need hard or soft links.
9559LN_S=$lt_LN_S
9560
9561# A BSD-compatible nm program.
9562NM=$lt_NM
9563
9564# A symbol stripping program
9565STRIP=$lt_STRIP
9566
9567# Used to examine libraries when file_magic_cmd begins "file"
9568MAGIC_CMD=$MAGIC_CMD
9569
9570# Used on cygwin: DLL creation program.
9571DLLTOOL="$DLLTOOL"
9572
9573# Used on cygwin: object dumper.
9574OBJDUMP="$OBJDUMP"
9575
9576# Used on cygwin: assembler.
9577AS="$AS"
9578
9579# The name of the directory that contains temporary libtool files.
9580objdir=$objdir
9581
9582# How to create reloadable object files.
9583reload_flag=$lt_reload_flag
9584reload_cmds=$lt_reload_cmds
9585
9586# How to pass a linker flag through the compiler.
9587wl=$lt_lt_prog_compiler_wl
9588
9589# Object file suffix (normally "o").
9590objext="$ac_objext"
9591
9592# Old archive suffix (normally "a").
9593libext="$libext"
9594
9595# Shared library suffix (normally ".so").
9596shrext_cmds='$shrext_cmds'
9597
9598# Executable file suffix (normally "").
9599exeext="$exeext"
9600
9601# Additional compiler flags for building library objects.
9602pic_flag=$lt_lt_prog_compiler_pic
9603pic_mode=$pic_mode
9604
9605# What is the maximum length of a command?
9606max_cmd_len=$lt_cv_sys_max_cmd_len
9607
9608# Does compiler simultaneously support -c and -o options?
9609compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9610
9611# Must we lock files when doing compilation?
9612need_locks=$lt_need_locks
9613
9614# Do we need the lib prefix for modules?
9615need_lib_prefix=$need_lib_prefix
9616
9617# Do we need a version for libraries?
9618need_version=$need_version
9619
9620# Whether dlopen is supported.
9621dlopen_support=$enable_dlopen
9622
9623# Whether dlopen of programs is supported.
9624dlopen_self=$enable_dlopen_self
9625
9626# Whether dlopen of statically linked programs is supported.
9627dlopen_self_static=$enable_dlopen_self_static
9628
9629# Compiler flag to prevent dynamic linking.
9630link_static_flag=$lt_lt_prog_compiler_static
9631
9632# Compiler flag to turn off builtin functions.
9633no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9634
9635# Compiler flag to allow reflexive dlopens.
9636export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9637
9638# Compiler flag to generate shared objects directly from archives.
9639whole_archive_flag_spec=$lt_whole_archive_flag_spec
9640
9641# Compiler flag to generate thread-safe objects.
9642thread_safe_flag_spec=$lt_thread_safe_flag_spec
9643
9644# Library versioning type.
9645version_type=$version_type
9646
9647# Format of library name prefix.
9648libname_spec=$lt_libname_spec
9649
9650# List of archive names.  First name is the real one, the rest are links.
9651# The last name is the one that the linker finds with -lNAME.
9652library_names_spec=$lt_library_names_spec
9653
9654# The coded name of the library, if different from the real name.
9655soname_spec=$lt_soname_spec
9656
9657# Commands used to build and install an old-style archive.
9658RANLIB=$lt_RANLIB
9659old_archive_cmds=$lt_old_archive_cmds
9660old_postinstall_cmds=$lt_old_postinstall_cmds
9661old_postuninstall_cmds=$lt_old_postuninstall_cmds
9662
9663# Create an old-style archive from a shared archive.
9664old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9665
9666# Create a temporary old-style archive to link instead of a shared archive.
9667old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9668
9669# Commands used to build and install a shared archive.
9670archive_cmds=$lt_archive_cmds
9671archive_expsym_cmds=$lt_archive_expsym_cmds
9672postinstall_cmds=$lt_postinstall_cmds
9673postuninstall_cmds=$lt_postuninstall_cmds
9674
9675# Commands used to build a loadable module (assumed same as above if empty)
9676module_cmds=$lt_module_cmds
9677module_expsym_cmds=$lt_module_expsym_cmds
9678
9679# Commands to strip libraries.
9680old_striplib=$lt_old_striplib
9681striplib=$lt_striplib
9682
9683# Dependencies to place before the objects being linked to create a
9684# shared library.
9685predep_objects=$lt_predep_objects
9686
9687# Dependencies to place after the objects being linked to create a
9688# shared library.
9689postdep_objects=$lt_postdep_objects
9690
9691# Dependencies to place before the objects being linked to create a
9692# shared library.
9693predeps=$lt_predeps
9694
9695# Dependencies to place after the objects being linked to create a
9696# shared library.
9697postdeps=$lt_postdeps
9698
9699# The library search path used internally by the compiler when linking
9700# a shared library.
9701compiler_lib_search_path=$lt_compiler_lib_search_path
9702
9703# Method to check whether dependent libraries are shared objects.
9704deplibs_check_method=$lt_deplibs_check_method
9705
9706# Command to use when deplibs_check_method == file_magic.
9707file_magic_cmd=$lt_file_magic_cmd
9708
9709# Flag that allows shared libraries with undefined symbols to be built.
9710allow_undefined_flag=$lt_allow_undefined_flag
9711
9712# Flag that forces no undefined symbols.
9713no_undefined_flag=$lt_no_undefined_flag
9714
9715# Commands used to finish a libtool library installation in a directory.
9716finish_cmds=$lt_finish_cmds
9717
9718# Same as above, but a single script fragment to be evaled but not shown.
9719finish_eval=$lt_finish_eval
9720
9721# Take the output of nm and produce a listing of raw symbols and C names.
9722global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9723
9724# Transform the output of nm in a proper C declaration
9725global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9726
9727# Transform the output of nm in a C name address pair
9728global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9729
9730# This is the shared library runtime path variable.
9731runpath_var=$runpath_var
9732
9733# This is the shared library path variable.
9734shlibpath_var=$shlibpath_var
9735
9736# Is shlibpath searched before the hard-coded library search path?
9737shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9738
9739# How to hardcode a shared library path into an executable.
9740hardcode_action=$hardcode_action
9741
9742# Whether we should hardcode library paths into libraries.
9743hardcode_into_libs=$hardcode_into_libs
9744
9745# Flag to hardcode \$libdir into a binary during linking.
9746# This must work even if \$libdir does not exist.
9747hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9748
9749# If ld is used when linking, flag to hardcode \$libdir into
9750# a binary during linking. This must work even if \$libdir does
9751# not exist.
9752hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9753
9754# Whether we need a single -rpath flag with a separated argument.
9755hardcode_libdir_separator=$lt_hardcode_libdir_separator
9756
9757# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9758# resulting binary.
9759hardcode_direct=$hardcode_direct
9760
9761# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9762# resulting binary.
9763hardcode_minus_L=$hardcode_minus_L
9764
9765# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9766# the resulting binary.
9767hardcode_shlibpath_var=$hardcode_shlibpath_var
9768
9769# Set to yes if building a shared library automatically hardcodes DIR into the library
9770# and all subsequent libraries and executables linked against it.
9771hardcode_automatic=$hardcode_automatic
9772
9773# Variables whose values should be saved in libtool wrapper scripts and
9774# restored at relink time.
9775variables_saved_for_relink="$variables_saved_for_relink"
9776
9777# Whether libtool must link a program against all its dependency libraries.
9778link_all_deplibs=$link_all_deplibs
9779
9780# Compile-time system search path for libraries
9781sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9782
9783# Run-time system search path for libraries
9784sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9785
9786# Fix the shell variable \$srcfile for the compiler.
9787fix_srcfile_path="$fix_srcfile_path"
9788
9789# Set to yes if exported symbols are required.
9790always_export_symbols=$always_export_symbols
9791
9792# The commands to list exported symbols.
9793export_symbols_cmds=$lt_export_symbols_cmds
9794
9795# The commands to extract the exported symbol list from a shared archive.
9796extract_expsyms_cmds=$lt_extract_expsyms_cmds
9797
9798# Symbols that should not be listed in the preloaded symbols.
9799exclude_expsyms=$lt_exclude_expsyms
9800
9801# Symbols that must always be exported.
9802include_expsyms=$lt_include_expsyms
9803
9804# ### END LIBTOOL CONFIG
9805
9806__EOF__
9807
9808
9809  case $host_os in
9810  aix3*)
9811    cat <<\EOF >> "$cfgfile"
9812
9813# AIX sometimes has problems with the GCC collect2 program.  For some
9814# reason, if we set the COLLECT_NAMES environment variable, the problems
9815# vanish in a puff of smoke.
9816if test "X${COLLECT_NAMES+set}" != Xset; then
9817  COLLECT_NAMES=
9818  export COLLECT_NAMES
9819fi
9820EOF
9821    ;;
9822  esac
9823
9824  # We use sed instead of cat because bash on DJGPP gets confused if
9825  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9826  # text mode, it properly converts lines to CR/LF.  This bash problem
9827  # is reportedly fixed, but why not run on old versions too?
9828  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9829
9830  mv -f "$cfgfile" "$ofile" || \
9831    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9832  chmod +x "$ofile"
9833
9834else
9835  # If there is no Makefile yet, we rely on a make rule to execute
9836  # `config.status --recheck' to rerun these tests and create the
9837  # libtool script then.
9838  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9839  if test -f "$ltmain_in"; then
9840    test -f Makefile && make "$ltmain"
9841  fi
9842fi
9843
9844
9845ac_ext=c
9846ac_cpp='$CPP $CPPFLAGS'
9847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9849ac_compiler_gnu=$ac_cv_c_compiler_gnu
9850
9851CC="$lt_save_CC"
9852
9853
9854# Check whether --with-tags or --without-tags was given.
9855if test "${with_tags+set}" = set; then
9856  withval="$with_tags"
9857  tagnames="$withval"
9858fi;
9859
9860if test -f "$ltmain" && test -n "$tagnames"; then
9861  if test ! -f "${ofile}"; then
9862    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9863echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9864  fi
9865
9866  if test -z "$LTCC"; then
9867    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9868    if test -z "$LTCC"; then
9869      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9870echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9871    else
9872      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9873echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9874    fi
9875  fi
9876  if test -z "$LTCFLAGS"; then
9877    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9878  fi
9879
9880  # Extract list of available tagged configurations in $ofile.
9881  # Note that this assumes the entire list is on one line.
9882  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9883
9884  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9885  for tagname in $tagnames; do
9886    IFS="$lt_save_ifs"
9887    # Check whether tagname contains only valid characters
9888    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9889    "") ;;
9890    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9891echo "$as_me: error: invalid tag name: $tagname" >&2;}
9892   { (exit 1); exit 1; }; }
9893	;;
9894    esac
9895
9896    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9897    then
9898      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9899echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9900   { (exit 1); exit 1; }; }
9901    fi
9902
9903    # Update the list of available tags.
9904    if test -n "$tagname"; then
9905      echo appending configuration tag \"$tagname\" to $ofile
9906
9907      case $tagname in
9908      CXX)
9909	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9910	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9911	    (test "X$CXX" != "Xg++"))) ; then
9912	  ac_ext=cc
9913ac_cpp='$CXXCPP $CPPFLAGS'
9914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9917
9918
9919
9920
9921archive_cmds_need_lc_CXX=no
9922allow_undefined_flag_CXX=
9923always_export_symbols_CXX=no
9924archive_expsym_cmds_CXX=
9925export_dynamic_flag_spec_CXX=
9926hardcode_direct_CXX=no
9927hardcode_libdir_flag_spec_CXX=
9928hardcode_libdir_flag_spec_ld_CXX=
9929hardcode_libdir_separator_CXX=
9930hardcode_minus_L_CXX=no
9931hardcode_shlibpath_var_CXX=unsupported
9932hardcode_automatic_CXX=no
9933module_cmds_CXX=
9934module_expsym_cmds_CXX=
9935link_all_deplibs_CXX=unknown
9936old_archive_cmds_CXX=$old_archive_cmds
9937no_undefined_flag_CXX=
9938whole_archive_flag_spec_CXX=
9939enable_shared_with_static_runtimes_CXX=no
9940
9941# Dependencies to place before and after the object being linked:
9942predep_objects_CXX=
9943postdep_objects_CXX=
9944predeps_CXX=
9945postdeps_CXX=
9946compiler_lib_search_path_CXX=
9947
9948# Source file extension for C++ test sources.
9949ac_ext=cpp
9950
9951# Object file extension for compiled C++ test sources.
9952objext=o
9953objext_CXX=$objext
9954
9955# Code to be used in simple compile tests
9956lt_simple_compile_test_code="int some_variable = 0;\n"
9957
9958# Code to be used in simple link tests
9959lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9960
9961# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9962
9963# If no C compiler was specified, use CC.
9964LTCC=${LTCC-"$CC"}
9965
9966# If no C compiler flags were specified, use CFLAGS.
9967LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9968
9969# Allow CC to be a program name with arguments.
9970compiler=$CC
9971
9972
9973# save warnings/boilerplate of simple test code
9974ac_outfile=conftest.$ac_objext
9975printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9977_lt_compiler_boilerplate=`cat conftest.err`
9978$rm conftest*
9979
9980ac_outfile=conftest.$ac_objext
9981printf "$lt_simple_link_test_code" >conftest.$ac_ext
9982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9983_lt_linker_boilerplate=`cat conftest.err`
9984$rm conftest*
9985
9986
9987# Allow CC to be a program name with arguments.
9988lt_save_CC=$CC
9989lt_save_LD=$LD
9990lt_save_GCC=$GCC
9991GCC=$GXX
9992lt_save_with_gnu_ld=$with_gnu_ld
9993lt_save_path_LD=$lt_cv_path_LD
9994if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9995  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9996else
9997  $as_unset lt_cv_prog_gnu_ld
9998fi
9999if test -n "${lt_cv_path_LDCXX+set}"; then
10000  lt_cv_path_LD=$lt_cv_path_LDCXX
10001else
10002  $as_unset lt_cv_path_LD
10003fi
10004test -z "${LDCXX+set}" || LD=$LDCXX
10005CC=${CXX-"c++"}
10006compiler=$CC
10007compiler_CXX=$CC
10008for cc_temp in $compiler""; do
10009  case $cc_temp in
10010    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10011    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10012    \-*) ;;
10013    *) break;;
10014  esac
10015done
10016cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10017
10018
10019# We don't want -fno-exception wen compiling C++ code, so set the
10020# no_builtin_flag separately
10021if test "$GXX" = yes; then
10022  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10023else
10024  lt_prog_compiler_no_builtin_flag_CXX=
10025fi
10026
10027if test "$GXX" = yes; then
10028  # Set up default GNU C++ configuration
10029
10030
10031# Check whether --with-gnu-ld or --without-gnu-ld was given.
10032if test "${with_gnu_ld+set}" = set; then
10033  withval="$with_gnu_ld"
10034  test "$withval" = no || with_gnu_ld=yes
10035else
10036  with_gnu_ld=no
10037fi;
10038ac_prog=ld
10039if test "$GCC" = yes; then
10040  # Check if gcc -print-prog-name=ld gives a path.
10041  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10042echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10043  case $host in
10044  *-*-mingw*)
10045    # gcc leaves a trailing carriage return which upsets mingw
10046    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10047  *)
10048    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10049  esac
10050  case $ac_prog in
10051    # Accept absolute paths.
10052    [\\/]* | ?:[\\/]*)
10053      re_direlt='/[^/][^/]*/\.\./'
10054      # Canonicalize the pathname of ld
10055      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10056      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10057	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10058      done
10059      test -z "$LD" && LD="$ac_prog"
10060      ;;
10061  "")
10062    # If it fails, then pretend we aren't using GCC.
10063    ac_prog=ld
10064    ;;
10065  *)
10066    # If it is relative, then search for the first ld in PATH.
10067    with_gnu_ld=unknown
10068    ;;
10069  esac
10070elif test "$with_gnu_ld" = yes; then
10071  echo "$as_me:$LINENO: checking for GNU ld" >&5
10072echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10073else
10074  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10075echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10076fi
10077if test "${lt_cv_path_LD+set}" = set; then
10078  echo $ECHO_N "(cached) $ECHO_C" >&6
10079else
10080  if test -z "$LD"; then
10081  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10082  for ac_dir in $PATH; do
10083    IFS="$lt_save_ifs"
10084    test -z "$ac_dir" && ac_dir=.
10085    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10086      lt_cv_path_LD="$ac_dir/$ac_prog"
10087      # Check to see if the program is GNU ld.  I'd rather use --version,
10088      # but apparently some variants of GNU ld only accept -v.
10089      # Break only if it was the GNU/non-GNU ld that we prefer.
10090      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10091      *GNU* | *'with BFD'*)
10092	test "$with_gnu_ld" != no && break
10093	;;
10094      *)
10095	test "$with_gnu_ld" != yes && break
10096	;;
10097      esac
10098    fi
10099  done
10100  IFS="$lt_save_ifs"
10101else
10102  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10103fi
10104fi
10105
10106LD="$lt_cv_path_LD"
10107if test -n "$LD"; then
10108  echo "$as_me:$LINENO: result: $LD" >&5
10109echo "${ECHO_T}$LD" >&6
10110else
10111  echo "$as_me:$LINENO: result: no" >&5
10112echo "${ECHO_T}no" >&6
10113fi
10114test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10115echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10116   { (exit 1); exit 1; }; }
10117echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10118echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10119if test "${lt_cv_prog_gnu_ld+set}" = set; then
10120  echo $ECHO_N "(cached) $ECHO_C" >&6
10121else
10122  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10123case `$LD -v 2>&1 </dev/null` in
10124*GNU* | *'with BFD'*)
10125  lt_cv_prog_gnu_ld=yes
10126  ;;
10127*)
10128  lt_cv_prog_gnu_ld=no
10129  ;;
10130esac
10131fi
10132echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10133echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10134with_gnu_ld=$lt_cv_prog_gnu_ld
10135
10136
10137
10138  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10139  # archiving commands below assume that GNU ld is being used.
10140  if test "$with_gnu_ld" = yes; then
10141    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142    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'
10143
10144    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10145    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10146
10147    # If archive_cmds runs LD, not CC, wlarc should be empty
10148    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10149    #     investigate it a little bit more. (MM)
10150    wlarc='${wl}'
10151
10152    # ancient GNU ld didn't support --whole-archive et. al.
10153    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10154	grep 'no-whole-archive' > /dev/null; then
10155      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10156    else
10157      whole_archive_flag_spec_CXX=
10158    fi
10159  else
10160    with_gnu_ld=no
10161    wlarc=
10162
10163    # A generic and very simple default shared library creation
10164    # command for GNU C++ for the case where it uses the native
10165    # linker, instead of GNU ld.  If possible, this setting should
10166    # overridden to take advantage of the native linker features on
10167    # the platform it is being used on.
10168    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10169  fi
10170
10171  # Commands to make compiler produce verbose output that lists
10172  # what "hidden" libraries, object files and flags are used when
10173  # linking a shared library.
10174  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10175
10176else
10177  GXX=no
10178  with_gnu_ld=no
10179  wlarc=
10180fi
10181
10182# PORTME: fill in a description of your system's C++ link characteristics
10183echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10184echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10185ld_shlibs_CXX=yes
10186case $host_os in
10187  aix3*)
10188    # FIXME: insert proper C++ library support
10189    ld_shlibs_CXX=no
10190    ;;
10191  aix4* | aix5*)
10192    if test "$host_cpu" = ia64; then
10193      # On IA64, the linker does run time linking by default, so we don't
10194      # have to do anything special.
10195      aix_use_runtimelinking=no
10196      exp_sym_flag='-Bexport'
10197      no_entry_flag=""
10198    else
10199      aix_use_runtimelinking=no
10200
10201      # Test if we are trying to use run time linking or normal
10202      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10203      # need to do runtime linking.
10204      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10205	for ld_flag in $LDFLAGS; do
10206	  case $ld_flag in
10207	  *-brtl*)
10208	    aix_use_runtimelinking=yes
10209	    break
10210	    ;;
10211	  esac
10212	done
10213	;;
10214      esac
10215
10216      exp_sym_flag='-bexport'
10217      no_entry_flag='-bnoentry'
10218    fi
10219
10220    # When large executables or shared objects are built, AIX ld can
10221    # have problems creating the table of contents.  If linking a library
10222    # or program results in "error TOC overflow" add -mminimal-toc to
10223    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10224    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10225
10226    archive_cmds_CXX=''
10227    hardcode_direct_CXX=yes
10228    hardcode_libdir_separator_CXX=':'
10229    link_all_deplibs_CXX=yes
10230
10231    if test "$GXX" = yes; then
10232      case $host_os in aix4.[012]|aix4.[012].*)
10233      # We only want to do this on AIX 4.2 and lower, the check
10234      # below for broken collect2 doesn't work under 4.3+
10235	collect2name=`${CC} -print-prog-name=collect2`
10236	if test -f "$collect2name" && \
10237	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10238	then
10239	  # We have reworked collect2
10240	  hardcode_direct_CXX=yes
10241	else
10242	  # We have old collect2
10243	  hardcode_direct_CXX=unsupported
10244	  # It fails to find uninstalled libraries when the uninstalled
10245	  # path is not listed in the libpath.  Setting hardcode_minus_L
10246	  # to unsupported forces relinking
10247	  hardcode_minus_L_CXX=yes
10248	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10249	  hardcode_libdir_separator_CXX=
10250	fi
10251	;;
10252      esac
10253      shared_flag='-shared'
10254      if test "$aix_use_runtimelinking" = yes; then
10255	shared_flag="$shared_flag "'${wl}-G'
10256      fi
10257    else
10258      # not using gcc
10259      if test "$host_cpu" = ia64; then
10260	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10261	# chokes on -Wl,-G. The following line is correct:
10262	shared_flag='-G'
10263      else
10264	if test "$aix_use_runtimelinking" = yes; then
10265	  shared_flag='${wl}-G'
10266	else
10267	  shared_flag='${wl}-bM:SRE'
10268	fi
10269      fi
10270    fi
10271
10272    # It seems that -bexpall does not export symbols beginning with
10273    # underscore (_), so it is better to generate a list of symbols to export.
10274    always_export_symbols_CXX=yes
10275    if test "$aix_use_runtimelinking" = yes; then
10276      # Warning - without using the other runtime loading flags (-brtl),
10277      # -berok will link without error, but may produce a broken library.
10278      allow_undefined_flag_CXX='-berok'
10279      # Determine the default libpath from the value encoded in an empty executable.
10280      cat >conftest.$ac_ext <<_ACEOF
10281/* confdefs.h.  */
10282_ACEOF
10283cat confdefs.h >>conftest.$ac_ext
10284cat >>conftest.$ac_ext <<_ACEOF
10285/* end confdefs.h.  */
10286
10287int
10288main ()
10289{
10290
10291  ;
10292  return 0;
10293}
10294_ACEOF
10295rm -f conftest.$ac_objext conftest$ac_exeext
10296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297  (eval $ac_link) 2>conftest.er1
10298  ac_status=$?
10299  grep -v '^ *+' conftest.er1 >conftest.err
10300  rm -f conftest.er1
10301  cat conftest.err >&5
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); } &&
10304	 { ac_try='test -z "$ac_cxx_werror_flag"
10305			 || test ! -s conftest.err'
10306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307  (eval $ac_try) 2>&5
10308  ac_status=$?
10309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); }; } &&
10311	 { ac_try='test -s conftest$ac_exeext'
10312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313  (eval $ac_try) 2>&5
10314  ac_status=$?
10315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316  (exit $ac_status); }; }; then
10317
10318aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10319}'`
10320# Check for a 64-bit object if we didn't find anything.
10321if 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; }
10322}'`; fi
10323else
10324  echo "$as_me: failed program was:" >&5
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
10327fi
10328rm -f conftest.err conftest.$ac_objext \
10329      conftest$ac_exeext conftest.$ac_ext
10330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10331
10332      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10333
10334      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10335     else
10336      if test "$host_cpu" = ia64; then
10337	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10338	allow_undefined_flag_CXX="-z nodefs"
10339	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10340      else
10341	# Determine the default libpath from the value encoded in an empty executable.
10342	cat >conftest.$ac_ext <<_ACEOF
10343/* confdefs.h.  */
10344_ACEOF
10345cat confdefs.h >>conftest.$ac_ext
10346cat >>conftest.$ac_ext <<_ACEOF
10347/* end confdefs.h.  */
10348
10349int
10350main ()
10351{
10352
10353  ;
10354  return 0;
10355}
10356_ACEOF
10357rm -f conftest.$ac_objext conftest$ac_exeext
10358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10359  (eval $ac_link) 2>conftest.er1
10360  ac_status=$?
10361  grep -v '^ *+' conftest.er1 >conftest.err
10362  rm -f conftest.er1
10363  cat conftest.err >&5
10364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365  (exit $ac_status); } &&
10366	 { ac_try='test -z "$ac_cxx_werror_flag"
10367			 || test ! -s conftest.err'
10368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369  (eval $ac_try) 2>&5
10370  ac_status=$?
10371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372  (exit $ac_status); }; } &&
10373	 { ac_try='test -s conftest$ac_exeext'
10374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375  (eval $ac_try) 2>&5
10376  ac_status=$?
10377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378  (exit $ac_status); }; }; then
10379
10380aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10381}'`
10382# Check for a 64-bit object if we didn't find anything.
10383if 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; }
10384}'`; fi
10385else
10386  echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
10389fi
10390rm -f conftest.err conftest.$ac_objext \
10391      conftest$ac_exeext conftest.$ac_ext
10392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10393
10394	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10395	# Warning - without using the other run time loading flags,
10396	# -berok will link without error, but may produce a broken library.
10397	no_undefined_flag_CXX=' ${wl}-bernotok'
10398	allow_undefined_flag_CXX=' ${wl}-berok'
10399	# Exported symbols can be pulled into shared objects from archives
10400	whole_archive_flag_spec_CXX='$convenience'
10401	archive_cmds_need_lc_CXX=yes
10402	# This is similar to how AIX traditionally builds its shared libraries.
10403	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10404      fi
10405    fi
10406    ;;
10407
10408  beos*)
10409    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10410      allow_undefined_flag_CXX=unsupported
10411      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10412      # support --undefined.  This deserves some investigation.  FIXME
10413      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10414    else
10415      ld_shlibs_CXX=no
10416    fi
10417    ;;
10418
10419  chorus*)
10420    case $cc_basename in
10421      *)
10422	# FIXME: insert proper C++ library support
10423	ld_shlibs_CXX=no
10424	;;
10425    esac
10426    ;;
10427
10428  cygwin* | mingw* | pw32*)
10429    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10430    # as there is no search path for DLLs.
10431    hardcode_libdir_flag_spec_CXX='-L$libdir'
10432    allow_undefined_flag_CXX=unsupported
10433    always_export_symbols_CXX=no
10434    enable_shared_with_static_runtimes_CXX=yes
10435
10436    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10437      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10438      # If the export-symbols file already is a .def file (1st line
10439      # is EXPORTS), use it as is; otherwise, prepend...
10440      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10441	cp $export_symbols $output_objdir/$soname.def;
10442      else
10443	echo EXPORTS > $output_objdir/$soname.def;
10444	cat $export_symbols >> $output_objdir/$soname.def;
10445      fi~
10446      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10447    else
10448      ld_shlibs_CXX=no
10449    fi
10450  ;;
10451      darwin* | rhapsody*)
10452        case $host_os in
10453        rhapsody* | darwin1.[012])
10454         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10455         ;;
10456       *) # Darwin 1.3 on
10457         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10458           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10459         else
10460           case ${MACOSX_DEPLOYMENT_TARGET} in
10461             10.[012])
10462               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10463               ;;
10464             10.*)
10465               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10466               ;;
10467           esac
10468         fi
10469         ;;
10470        esac
10471      archive_cmds_need_lc_CXX=no
10472      hardcode_direct_CXX=no
10473      hardcode_automatic_CXX=yes
10474      hardcode_shlibpath_var_CXX=unsupported
10475      whole_archive_flag_spec_CXX=''
10476      link_all_deplibs_CXX=yes
10477
10478    if test "$GXX" = yes ; then
10479      lt_int_apple_cc_single_mod=no
10480      output_verbose_link_cmd='echo'
10481      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10482       lt_int_apple_cc_single_mod=yes
10483      fi
10484      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10485       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10486      else
10487          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'
10488        fi
10489        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10490        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10491          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10492            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}'
10493          else
10494            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}'
10495          fi
10496            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}'
10497      else
10498      case $cc_basename in
10499        xlc*)
10500         output_verbose_link_cmd='echo'
10501          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'
10502          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10503          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10504          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}'
10505          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}'
10506          ;;
10507       *)
10508         ld_shlibs_CXX=no
10509          ;;
10510      esac
10511      fi
10512        ;;
10513
10514  dgux*)
10515    case $cc_basename in
10516      ec++*)
10517	# FIXME: insert proper C++ library support
10518	ld_shlibs_CXX=no
10519	;;
10520      ghcx*)
10521	# Green Hills C++ Compiler
10522	# FIXME: insert proper C++ library support
10523	ld_shlibs_CXX=no
10524	;;
10525      *)
10526	# FIXME: insert proper C++ library support
10527	ld_shlibs_CXX=no
10528	;;
10529    esac
10530    ;;
10531  freebsd[12]*)
10532    # C++ shared libraries reported to be fairly broken before switch to ELF
10533    ld_shlibs_CXX=no
10534    ;;
10535  freebsd-elf*)
10536    archive_cmds_need_lc_CXX=no
10537    ;;
10538  freebsd* | kfreebsd*-gnu | dragonfly*)
10539    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10540    # conventions
10541    ld_shlibs_CXX=yes
10542    ;;
10543  gnu*)
10544    ;;
10545  hpux9*)
10546    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10547    hardcode_libdir_separator_CXX=:
10548    export_dynamic_flag_spec_CXX='${wl}-E'
10549    hardcode_direct_CXX=yes
10550    hardcode_minus_L_CXX=yes # Not in the search PATH,
10551				# but as the default
10552				# location of the library.
10553
10554    case $cc_basename in
10555    CC*)
10556      # FIXME: insert proper C++ library support
10557      ld_shlibs_CXX=no
10558      ;;
10559    aCC*)
10560      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'
10561      # Commands to make compiler produce verbose output that lists
10562      # what "hidden" libraries, object files and flags are used when
10563      # linking a shared library.
10564      #
10565      # There doesn't appear to be a way to prevent this compiler from
10566      # explicitly linking system object files so we need to strip them
10567      # from the output so that they don't get included in the library
10568      # dependencies.
10569      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'
10570      ;;
10571    *)
10572      if test "$GXX" = yes; then
10573        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'
10574      else
10575        # FIXME: insert proper C++ library support
10576        ld_shlibs_CXX=no
10577      fi
10578      ;;
10579    esac
10580    ;;
10581  hpux10*|hpux11*)
10582    if test $with_gnu_ld = no; then
10583      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10584      hardcode_libdir_separator_CXX=:
10585
10586      case $host_cpu in
10587      hppa*64*|ia64*)
10588	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10589        ;;
10590      *)
10591	export_dynamic_flag_spec_CXX='${wl}-E'
10592        ;;
10593      esac
10594    fi
10595    case $host_cpu in
10596    hppa*64*|ia64*)
10597      hardcode_direct_CXX=no
10598      hardcode_shlibpath_var_CXX=no
10599      ;;
10600    *)
10601      hardcode_direct_CXX=yes
10602      hardcode_minus_L_CXX=yes # Not in the search PATH,
10603					      # but as the default
10604					      # location of the library.
10605      ;;
10606    esac
10607
10608    case $cc_basename in
10609      CC*)
10610	# FIXME: insert proper C++ library support
10611	ld_shlibs_CXX=no
10612	;;
10613      aCC*)
10614	case $host_cpu in
10615	hppa*64*)
10616	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10617	  ;;
10618	ia64*)
10619	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10620	  ;;
10621	*)
10622	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10623	  ;;
10624	esac
10625	# Commands to make compiler produce verbose output that lists
10626	# what "hidden" libraries, object files and flags are used when
10627	# linking a shared library.
10628	#
10629	# There doesn't appear to be a way to prevent this compiler from
10630	# explicitly linking system object files so we need to strip them
10631	# from the output so that they don't get included in the library
10632	# dependencies.
10633	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'
10634	;;
10635      *)
10636	if test "$GXX" = yes; then
10637	  if test $with_gnu_ld = no; then
10638	    case $host_cpu in
10639	    hppa*64*)
10640	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10641	      ;;
10642	    ia64*)
10643	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10644	      ;;
10645	    *)
10646	      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'
10647	      ;;
10648	    esac
10649	  fi
10650	else
10651	  # FIXME: insert proper C++ library support
10652	  ld_shlibs_CXX=no
10653	fi
10654	;;
10655    esac
10656    ;;
10657  interix3*)
10658    hardcode_direct_CXX=no
10659    hardcode_shlibpath_var_CXX=no
10660    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10661    export_dynamic_flag_spec_CXX='${wl}-E'
10662    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10663    # Instead, shared libraries are loaded at an image base (0x10000000 by
10664    # default) and relocated if they conflict, which is a slow very memory
10665    # consuming and fragmenting process.  To avoid this, we pick a random,
10666    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10667    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10668    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10669    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10670    ;;
10671  irix5* | irix6*)
10672    case $cc_basename in
10673      CC*)
10674	# SGI C++
10675	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'
10676
10677	# Archives containing C++ object files must be created using
10678	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10679	# necessary to make sure instantiated templates are included
10680	# in the archive.
10681	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10682	;;
10683      *)
10684	if test "$GXX" = yes; then
10685	  if test "$with_gnu_ld" = no; then
10686	    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'
10687	  else
10688	    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'
10689	  fi
10690	fi
10691	link_all_deplibs_CXX=yes
10692	;;
10693    esac
10694    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10695    hardcode_libdir_separator_CXX=:
10696    ;;
10697  linux*)
10698    case $cc_basename in
10699      KCC*)
10700	# Kuck and Associates, Inc. (KAI) C++ Compiler
10701
10702	# KCC will only create a shared library if the output file
10703	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10704	# to its proper name (with version) after linking.
10705	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'
10706	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'
10707	# Commands to make compiler produce verbose output that lists
10708	# what "hidden" libraries, object files and flags are used when
10709	# linking a shared library.
10710	#
10711	# There doesn't appear to be a way to prevent this compiler from
10712	# explicitly linking system object files so we need to strip them
10713	# from the output so that they don't get included in the library
10714	# dependencies.
10715	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'
10716
10717	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10718	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10719
10720	# Archives containing C++ object files must be created using
10721	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10722	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10723	;;
10724      icpc*)
10725	# Intel C++
10726	with_gnu_ld=yes
10727	# version 8.0 and above of icpc choke on multiply defined symbols
10728	# if we add $predep_objects and $postdep_objects, however 7.1 and
10729	# earlier do not add the objects themselves.
10730	case `$CC -V 2>&1` in
10731	*"Version 7."*)
10732  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10733  	  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'
10734	  ;;
10735	*)  # Version 8.0 or newer
10736	  tmp_idyn=
10737	  case $host_cpu in
10738	    ia64*) tmp_idyn=' -i_dynamic';;
10739	  esac
10740  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10741	  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'
10742	  ;;
10743	esac
10744	archive_cmds_need_lc_CXX=no
10745	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10746	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10747	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10748	;;
10749      pgCC*)
10750        # Portland Group C++ compiler
10751	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10752  	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'
10753
10754	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10755	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10756	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'
10757        ;;
10758      cxx*)
10759	# Compaq C++
10760	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10761	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'
10762
10763	runpath_var=LD_RUN_PATH
10764	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10765	hardcode_libdir_separator_CXX=:
10766
10767	# Commands to make compiler produce verbose output that lists
10768	# what "hidden" libraries, object files and flags are used when
10769	# linking a shared library.
10770	#
10771	# There doesn't appear to be a way to prevent this compiler from
10772	# explicitly linking system object files so we need to strip them
10773	# from the output so that they don't get included in the library
10774	# dependencies.
10775	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'
10776	;;
10777    esac
10778    ;;
10779  lynxos*)
10780    # FIXME: insert proper C++ library support
10781    ld_shlibs_CXX=no
10782    ;;
10783  m88k*)
10784    # FIXME: insert proper C++ library support
10785    ld_shlibs_CXX=no
10786    ;;
10787  mvs*)
10788    case $cc_basename in
10789      cxx*)
10790	# FIXME: insert proper C++ library support
10791	ld_shlibs_CXX=no
10792	;;
10793      *)
10794	# FIXME: insert proper C++ library support
10795	ld_shlibs_CXX=no
10796	;;
10797    esac
10798    ;;
10799  netbsd*)
10800    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10801      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10802      wlarc=
10803      hardcode_libdir_flag_spec_CXX='-R$libdir'
10804      hardcode_direct_CXX=yes
10805      hardcode_shlibpath_var_CXX=no
10806    fi
10807    # Workaround some broken pre-1.5 toolchains
10808    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10809    ;;
10810  openbsd2*)
10811    # C++ shared libraries are fairly broken
10812    ld_shlibs_CXX=no
10813    ;;
10814  openbsd*)
10815    hardcode_direct_CXX=yes
10816    hardcode_shlibpath_var_CXX=no
10817    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10818    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10819    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10820      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10821      export_dynamic_flag_spec_CXX='${wl}-E'
10822      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10823    fi
10824    output_verbose_link_cmd='echo'
10825    ;;
10826  osf3*)
10827    case $cc_basename in
10828      KCC*)
10829	# Kuck and Associates, Inc. (KAI) C++ Compiler
10830
10831	# KCC will only create a shared library if the output file
10832	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10833	# to its proper name (with version) after linking.
10834	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'
10835
10836	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10837	hardcode_libdir_separator_CXX=:
10838
10839	# Archives containing C++ object files must be created using
10840	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10841	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10842
10843	;;
10844      RCC*)
10845	# Rational C++ 2.4.1
10846	# FIXME: insert proper C++ library support
10847	ld_shlibs_CXX=no
10848	;;
10849      cxx*)
10850	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10851	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'
10852
10853	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10854	hardcode_libdir_separator_CXX=:
10855
10856	# Commands to make compiler produce verbose output that lists
10857	# what "hidden" libraries, object files and flags are used when
10858	# linking a shared library.
10859	#
10860	# There doesn't appear to be a way to prevent this compiler from
10861	# explicitly linking system object files so we need to strip them
10862	# from the output so that they don't get included in the library
10863	# dependencies.
10864	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'
10865	;;
10866      *)
10867	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10868	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10869	  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'
10870
10871	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10872	  hardcode_libdir_separator_CXX=:
10873
10874	  # Commands to make compiler produce verbose output that lists
10875	  # what "hidden" libraries, object files and flags are used when
10876	  # linking a shared library.
10877	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10878
10879	else
10880	  # FIXME: insert proper C++ library support
10881	  ld_shlibs_CXX=no
10882	fi
10883	;;
10884    esac
10885    ;;
10886  osf4* | osf5*)
10887    case $cc_basename in
10888      KCC*)
10889	# Kuck and Associates, Inc. (KAI) C++ Compiler
10890
10891	# KCC will only create a shared library if the output file
10892	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10893	# to its proper name (with version) after linking.
10894	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'
10895
10896	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10897	hardcode_libdir_separator_CXX=:
10898
10899	# Archives containing C++ object files must be created using
10900	# the KAI C++ compiler.
10901	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10902	;;
10903      RCC*)
10904	# Rational C++ 2.4.1
10905	# FIXME: insert proper C++ library support
10906	ld_shlibs_CXX=no
10907	;;
10908      cxx*)
10909	allow_undefined_flag_CXX=' -expect_unresolved \*'
10910	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'
10911	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10912	  echo "-hidden">> $lib.exp~
10913	  $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~
10914	  $rm $lib.exp'
10915
10916	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10917	hardcode_libdir_separator_CXX=:
10918
10919	# Commands to make compiler produce verbose output that lists
10920	# what "hidden" libraries, object files and flags are used when
10921	# linking a shared library.
10922	#
10923	# There doesn't appear to be a way to prevent this compiler from
10924	# explicitly linking system object files so we need to strip them
10925	# from the output so that they don't get included in the library
10926	# dependencies.
10927	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'
10928	;;
10929      *)
10930	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10931	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10932	 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'
10933
10934	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10935	  hardcode_libdir_separator_CXX=:
10936
10937	  # Commands to make compiler produce verbose output that lists
10938	  # what "hidden" libraries, object files and flags are used when
10939	  # linking a shared library.
10940	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10941
10942	else
10943	  # FIXME: insert proper C++ library support
10944	  ld_shlibs_CXX=no
10945	fi
10946	;;
10947    esac
10948    ;;
10949  psos*)
10950    # FIXME: insert proper C++ library support
10951    ld_shlibs_CXX=no
10952    ;;
10953  sunos4*)
10954    case $cc_basename in
10955      CC*)
10956	# Sun C++ 4.x
10957	# FIXME: insert proper C++ library support
10958	ld_shlibs_CXX=no
10959	;;
10960      lcc*)
10961	# Lucid
10962	# FIXME: insert proper C++ library support
10963	ld_shlibs_CXX=no
10964	;;
10965      *)
10966	# FIXME: insert proper C++ library support
10967	ld_shlibs_CXX=no
10968	;;
10969    esac
10970    ;;
10971  solaris*)
10972    case $cc_basename in
10973      CC*)
10974	# Sun C++ 4.2, 5.x and Centerline C++
10975        archive_cmds_need_lc_CXX=yes
10976	no_undefined_flag_CXX=' -zdefs'
10977	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10978	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10979	$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'
10980
10981	hardcode_libdir_flag_spec_CXX='-R$libdir'
10982	hardcode_shlibpath_var_CXX=no
10983	case $host_os in
10984	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10985	  *)
10986	    # The C++ compiler is used as linker so we must use $wl
10987	    # flag to pass the commands to the underlying system
10988	    # linker. We must also pass each convience library through
10989	    # to the system linker between allextract/defaultextract.
10990	    # The C++ compiler will combine linker options so we
10991	    # cannot just pass the convience library names through
10992	    # without $wl.
10993	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10994	    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'
10995	    ;;
10996	esac
10997	link_all_deplibs_CXX=yes
10998
10999	output_verbose_link_cmd='echo'
11000
11001	# Archives containing C++ object files must be created using
11002	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11003	# necessary to make sure instantiated templates are included
11004	# in the archive.
11005	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11006	;;
11007      gcx*)
11008	# Green Hills C++ Compiler
11009	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11010
11011	# The C++ compiler must be used to create the archive.
11012	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11013	;;
11014      *)
11015	# GNU C++ compiler with Solaris linker
11016	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11017	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11018	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11019	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11020	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11021		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11022
11023	    # Commands to make compiler produce verbose output that lists
11024	    # what "hidden" libraries, object files and flags are used when
11025	    # linking a shared library.
11026	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11027	  else
11028	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11029	    # platform.
11030	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11031	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11032		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11033
11034	    # Commands to make compiler produce verbose output that lists
11035	    # what "hidden" libraries, object files and flags are used when
11036	    # linking a shared library.
11037	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11038	  fi
11039
11040	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11041	fi
11042	;;
11043    esac
11044    ;;
11045  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11046    no_undefined_flag_CXX='${wl}-z,text'
11047    archive_cmds_need_lc_CXX=no
11048    hardcode_shlibpath_var_CXX=no
11049    runpath_var='LD_RUN_PATH'
11050
11051    case $cc_basename in
11052      CC*)
11053	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11054	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055	;;
11056      *)
11057	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059	;;
11060    esac
11061    ;;
11062  sysv5* | sco3.2v5* | sco5v6*)
11063    # Note: We can NOT use -z defs as we might desire, because we do not
11064    # link with -lc, and that would cause any symbols used from libc to
11065    # always be unresolved, which means just about no library would
11066    # ever link correctly.  If we're not using GNU ld we use -z text
11067    # though, which does catch some bad symbols but isn't as heavy-handed
11068    # as -z defs.
11069    # For security reasons, it is highly recommended that you always
11070    # use absolute paths for naming shared libraries, and exclude the
11071    # DT_RUNPATH tag from executables and libraries.  But doing so
11072    # requires that you compile everything twice, which is a pain.
11073    # So that behaviour is only enabled if SCOABSPATH is set to a
11074    # non-empty value in the environment.  Most likely only useful for
11075    # creating official distributions of packages.
11076    # This is a hack until libtool officially supports absolute path
11077    # names for shared libraries.
11078    no_undefined_flag_CXX='${wl}-z,text'
11079    allow_undefined_flag_CXX='${wl}-z,nodefs'
11080    archive_cmds_need_lc_CXX=no
11081    hardcode_shlibpath_var_CXX=no
11082    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11083    hardcode_libdir_separator_CXX=':'
11084    link_all_deplibs_CXX=yes
11085    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11086    runpath_var='LD_RUN_PATH'
11087
11088    case $cc_basename in
11089      CC*)
11090	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11091	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11092	;;
11093      *)
11094	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11095	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11096	;;
11097    esac
11098    ;;
11099  tandem*)
11100    case $cc_basename in
11101      NCC*)
11102	# NonStop-UX NCC 3.20
11103	# FIXME: insert proper C++ library support
11104	ld_shlibs_CXX=no
11105	;;
11106      *)
11107	# FIXME: insert proper C++ library support
11108	ld_shlibs_CXX=no
11109	;;
11110    esac
11111    ;;
11112  vxworks*)
11113    # FIXME: insert proper C++ library support
11114    ld_shlibs_CXX=no
11115    ;;
11116  *)
11117    # FIXME: insert proper C++ library support
11118    ld_shlibs_CXX=no
11119    ;;
11120esac
11121echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11122echo "${ECHO_T}$ld_shlibs_CXX" >&6
11123test "$ld_shlibs_CXX" = no && can_build_shared=no
11124
11125GCC_CXX="$GXX"
11126LD_CXX="$LD"
11127
11128## CAVEAT EMPTOR:
11129## There is no encapsulation within the following macros, do not change
11130## the running order or otherwise move them around unless you know exactly
11131## what you are doing...
11132
11133cat > conftest.$ac_ext <<EOF
11134class Foo
11135{
11136public:
11137  Foo (void) { a = 0; }
11138private:
11139  int a;
11140};
11141EOF
11142
11143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11144  (eval $ac_compile) 2>&5
11145  ac_status=$?
11146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147  (exit $ac_status); }; then
11148  # Parse the compiler output and extract the necessary
11149  # objects, libraries and library flags.
11150
11151  # Sentinel used to keep track of whether or not we are before
11152  # the conftest object file.
11153  pre_test_object_deps_done=no
11154
11155  # The `*' in the case matches for architectures that use `case' in
11156  # $output_verbose_cmd can trigger glob expansion during the loop
11157  # eval without this substitution.
11158  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11159
11160  for p in `eval $output_verbose_link_cmd`; do
11161    case $p in
11162
11163    -L* | -R* | -l*)
11164       # Some compilers place space between "-{L,R}" and the path.
11165       # Remove the space.
11166       if test $p = "-L" \
11167	  || test $p = "-R"; then
11168	 prev=$p
11169	 continue
11170       else
11171	 prev=
11172       fi
11173
11174       if test "$pre_test_object_deps_done" = no; then
11175	 case $p in
11176	 -L* | -R*)
11177	   # Internal compiler library paths should come after those
11178	   # provided the user.  The postdeps already come after the
11179	   # user supplied libs so there is no need to process them.
11180	   if test -z "$compiler_lib_search_path_CXX"; then
11181	     compiler_lib_search_path_CXX="${prev}${p}"
11182	   else
11183	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11184	   fi
11185	   ;;
11186	 # The "-l" case would never come before the object being
11187	 # linked, so don't bother handling this case.
11188	 esac
11189       else
11190	 if test -z "$postdeps_CXX"; then
11191	   postdeps_CXX="${prev}${p}"
11192	 else
11193	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11194	 fi
11195       fi
11196       ;;
11197
11198    *.$objext)
11199       # This assumes that the test object file only shows up
11200       # once in the compiler output.
11201       if test "$p" = "conftest.$objext"; then
11202	 pre_test_object_deps_done=yes
11203	 continue
11204       fi
11205
11206       if test "$pre_test_object_deps_done" = no; then
11207	 if test -z "$predep_objects_CXX"; then
11208	   predep_objects_CXX="$p"
11209	 else
11210	   predep_objects_CXX="$predep_objects_CXX $p"
11211	 fi
11212       else
11213	 if test -z "$postdep_objects_CXX"; then
11214	   postdep_objects_CXX="$p"
11215	 else
11216	   postdep_objects_CXX="$postdep_objects_CXX $p"
11217	 fi
11218       fi
11219       ;;
11220
11221    *) ;; # Ignore the rest.
11222
11223    esac
11224  done
11225
11226  # Clean up.
11227  rm -f a.out a.exe
11228else
11229  echo "libtool.m4: error: problem compiling CXX test program"
11230fi
11231
11232$rm -f confest.$objext
11233
11234# PORTME: override above test on systems where it is broken
11235case $host_os in
11236interix3*)
11237  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11238  # hack all around it, let's just trust "g++" to DTRT.
11239  predep_objects_CXX=
11240  postdep_objects_CXX=
11241  postdeps_CXX=
11242  ;;
11243
11244solaris*)
11245  case $cc_basename in
11246  CC*)
11247    # Adding this requires a known-good setup of shared libraries for
11248    # Sun compiler versions before 5.6, else PIC objects from an old
11249    # archive will be linked into the output, leading to subtle bugs.
11250    postdeps_CXX='-lCstd -lCrun'
11251    ;;
11252  esac
11253  ;;
11254esac
11255
11256
11257case " $postdeps_CXX " in
11258*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11259esac
11260
11261lt_prog_compiler_wl_CXX=
11262lt_prog_compiler_pic_CXX=
11263lt_prog_compiler_static_CXX=
11264
11265echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11266echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11267
11268  # C++ specific cases for pic, static, wl, etc.
11269  if test "$GXX" = yes; then
11270    lt_prog_compiler_wl_CXX='-Wl,'
11271    lt_prog_compiler_static_CXX='-static'
11272
11273    case $host_os in
11274    aix*)
11275      # All AIX code is PIC.
11276      if test "$host_cpu" = ia64; then
11277	# AIX 5 now supports IA64 processor
11278	lt_prog_compiler_static_CXX='-Bstatic'
11279      fi
11280      ;;
11281    amigaos*)
11282      # FIXME: we need at least 68020 code to build shared libraries, but
11283      # adding the `-m68020' flag to GCC prevents building anything better,
11284      # like `-m68040'.
11285      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11286      ;;
11287    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11288      # PIC is the default for these OSes.
11289      ;;
11290    mingw* | os2* | pw32*)
11291      # This hack is so that the source file can tell whether it is being
11292      # built for inclusion in a dll (and should export symbols for example).
11293      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11294      ;;
11295    darwin* | rhapsody*)
11296      # PIC is the default on this platform
11297      # Common symbols not allowed in MH_DYLIB files
11298      lt_prog_compiler_pic_CXX='-fno-common'
11299      ;;
11300    *djgpp*)
11301      # DJGPP does not support shared libraries at all
11302      lt_prog_compiler_pic_CXX=
11303      ;;
11304    interix3*)
11305      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11306      # Instead, we relocate shared libraries at runtime.
11307      ;;
11308    sysv4*MP*)
11309      if test -d /usr/nec; then
11310	lt_prog_compiler_pic_CXX=-Kconform_pic
11311      fi
11312      ;;
11313    hpux*)
11314      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11315      # not for PA HP-UX.
11316      case $host_cpu in
11317      hppa*64*|ia64*)
11318	;;
11319      *)
11320	lt_prog_compiler_pic_CXX='-fPIC'
11321	;;
11322      esac
11323      ;;
11324    *)
11325      lt_prog_compiler_pic_CXX='-fPIC'
11326      ;;
11327    esac
11328  else
11329    case $host_os in
11330      aix4* | aix5*)
11331	# All AIX code is PIC.
11332	if test "$host_cpu" = ia64; then
11333	  # AIX 5 now supports IA64 processor
11334	  lt_prog_compiler_static_CXX='-Bstatic'
11335	else
11336	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11337	fi
11338	;;
11339      chorus*)
11340	case $cc_basename in
11341	cxch68*)
11342	  # Green Hills C++ Compiler
11343	  # _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"
11344	  ;;
11345	esac
11346	;;
11347       darwin*)
11348         # PIC is the default on this platform
11349         # Common symbols not allowed in MH_DYLIB files
11350         case $cc_basename in
11351           xlc*)
11352           lt_prog_compiler_pic_CXX='-qnocommon'
11353           lt_prog_compiler_wl_CXX='-Wl,'
11354           ;;
11355         esac
11356       ;;
11357      dgux*)
11358	case $cc_basename in
11359	  ec++*)
11360	    lt_prog_compiler_pic_CXX='-KPIC'
11361	    ;;
11362	  ghcx*)
11363	    # Green Hills C++ Compiler
11364	    lt_prog_compiler_pic_CXX='-pic'
11365	    ;;
11366	  *)
11367	    ;;
11368	esac
11369	;;
11370      freebsd* | kfreebsd*-gnu | dragonfly*)
11371	# FreeBSD uses GNU C++
11372	;;
11373      hpux9* | hpux10* | hpux11*)
11374	case $cc_basename in
11375	  CC*)
11376	    lt_prog_compiler_wl_CXX='-Wl,'
11377	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11378	    if test "$host_cpu" != ia64; then
11379	      lt_prog_compiler_pic_CXX='+Z'
11380	    fi
11381	    ;;
11382	  aCC*)
11383	    lt_prog_compiler_wl_CXX='-Wl,'
11384	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11385	    case $host_cpu in
11386	    hppa*64*|ia64*)
11387	      # +Z the default
11388	      ;;
11389	    *)
11390	      lt_prog_compiler_pic_CXX='+Z'
11391	      ;;
11392	    esac
11393	    ;;
11394	  *)
11395	    ;;
11396	esac
11397	;;
11398      interix*)
11399	# This is c89, which is MS Visual C++ (no shared libs)
11400	# Anyone wants to do a port?
11401	;;
11402      irix5* | irix6* | nonstopux*)
11403	case $cc_basename in
11404	  CC*)
11405	    lt_prog_compiler_wl_CXX='-Wl,'
11406	    lt_prog_compiler_static_CXX='-non_shared'
11407	    # CC pic flag -KPIC is the default.
11408	    ;;
11409	  *)
11410	    ;;
11411	esac
11412	;;
11413      linux*)
11414	case $cc_basename in
11415	  KCC*)
11416	    # KAI C++ Compiler
11417	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11418	    lt_prog_compiler_pic_CXX='-fPIC'
11419	    ;;
11420	  icpc* | ecpc*)
11421	    # Intel C++
11422	    lt_prog_compiler_wl_CXX='-Wl,'
11423	    lt_prog_compiler_pic_CXX='-KPIC'
11424	    lt_prog_compiler_static_CXX='-static'
11425	    ;;
11426	  pgCC*)
11427	    # Portland Group C++ compiler.
11428	    lt_prog_compiler_wl_CXX='-Wl,'
11429	    lt_prog_compiler_pic_CXX='-fpic'
11430	    lt_prog_compiler_static_CXX='-Bstatic'
11431	    ;;
11432	  cxx*)
11433	    # Compaq C++
11434	    # Make sure the PIC flag is empty.  It appears that all Alpha
11435	    # Linux and Compaq Tru64 Unix objects are PIC.
11436	    lt_prog_compiler_pic_CXX=
11437	    lt_prog_compiler_static_CXX='-non_shared'
11438	    ;;
11439	  *)
11440	    ;;
11441	esac
11442	;;
11443      lynxos*)
11444	;;
11445      m88k*)
11446	;;
11447      mvs*)
11448	case $cc_basename in
11449	  cxx*)
11450	    lt_prog_compiler_pic_CXX='-W c,exportall'
11451	    ;;
11452	  *)
11453	    ;;
11454	esac
11455	;;
11456      netbsd*)
11457	;;
11458      osf3* | osf4* | osf5*)
11459	case $cc_basename in
11460	  KCC*)
11461	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11462	    ;;
11463	  RCC*)
11464	    # Rational C++ 2.4.1
11465	    lt_prog_compiler_pic_CXX='-pic'
11466	    ;;
11467	  cxx*)
11468	    # Digital/Compaq C++
11469	    lt_prog_compiler_wl_CXX='-Wl,'
11470	    # Make sure the PIC flag is empty.  It appears that all Alpha
11471	    # Linux and Compaq Tru64 Unix objects are PIC.
11472	    lt_prog_compiler_pic_CXX=
11473	    lt_prog_compiler_static_CXX='-non_shared'
11474	    ;;
11475	  *)
11476	    ;;
11477	esac
11478	;;
11479      psos*)
11480	;;
11481      solaris*)
11482	case $cc_basename in
11483	  CC*)
11484	    # Sun C++ 4.2, 5.x and Centerline C++
11485	    lt_prog_compiler_pic_CXX='-KPIC'
11486	    lt_prog_compiler_static_CXX='-Bstatic'
11487	    lt_prog_compiler_wl_CXX='-Qoption ld '
11488	    ;;
11489	  gcx*)
11490	    # Green Hills C++ Compiler
11491	    lt_prog_compiler_pic_CXX='-PIC'
11492	    ;;
11493	  *)
11494	    ;;
11495	esac
11496	;;
11497      sunos4*)
11498	case $cc_basename in
11499	  CC*)
11500	    # Sun C++ 4.x
11501	    lt_prog_compiler_pic_CXX='-pic'
11502	    lt_prog_compiler_static_CXX='-Bstatic'
11503	    ;;
11504	  lcc*)
11505	    # Lucid
11506	    lt_prog_compiler_pic_CXX='-pic'
11507	    ;;
11508	  *)
11509	    ;;
11510	esac
11511	;;
11512      tandem*)
11513	case $cc_basename in
11514	  NCC*)
11515	    # NonStop-UX NCC 3.20
11516	    lt_prog_compiler_pic_CXX='-KPIC'
11517	    ;;
11518	  *)
11519	    ;;
11520	esac
11521	;;
11522      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11523	case $cc_basename in
11524	  CC*)
11525	    lt_prog_compiler_wl_CXX='-Wl,'
11526	    lt_prog_compiler_pic_CXX='-KPIC'
11527	    lt_prog_compiler_static_CXX='-Bstatic'
11528	    ;;
11529	esac
11530	;;
11531      vxworks*)
11532	;;
11533      *)
11534	lt_prog_compiler_can_build_shared_CXX=no
11535	;;
11536    esac
11537  fi
11538
11539echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11540echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11541
11542#
11543# Check to make sure the PIC flag actually works.
11544#
11545if test -n "$lt_prog_compiler_pic_CXX"; then
11546
11547echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11548echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11549if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11550  echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552  lt_prog_compiler_pic_works_CXX=no
11553  ac_outfile=conftest.$ac_objext
11554   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11555   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11556   # Insert the option either (1) after the last *FLAGS variable, or
11557   # (2) before a word containing "conftest.", or (3) at the end.
11558   # Note that $ac_compile itself does not contain backslashes and begins
11559   # with a dollar sign (not a hyphen), so the echo should work correctly.
11560   # The option is referenced via a variable to avoid confusing sed.
11561   lt_compile=`echo "$ac_compile" | $SED \
11562   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11563   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11564   -e 's:$: $lt_compiler_flag:'`
11565   (eval echo "\"\$as_me:11565: $lt_compile\"" >&5)
11566   (eval "$lt_compile" 2>conftest.err)
11567   ac_status=$?
11568   cat conftest.err >&5
11569   echo "$as_me:11569: \$? = $ac_status" >&5
11570   if (exit $ac_status) && test -s "$ac_outfile"; then
11571     # The compiler can only warn and ignore the option if not recognized
11572     # So say no if there are warnings other than the usual output.
11573     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11574     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11575     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11576       lt_prog_compiler_pic_works_CXX=yes
11577     fi
11578   fi
11579   $rm conftest*
11580
11581fi
11582echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11583echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11584
11585if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11586    case $lt_prog_compiler_pic_CXX in
11587     "" | " "*) ;;
11588     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11589     esac
11590else
11591    lt_prog_compiler_pic_CXX=
11592     lt_prog_compiler_can_build_shared_CXX=no
11593fi
11594
11595fi
11596case $host_os in
11597  # For platforms which do not support PIC, -DPIC is meaningless:
11598  *djgpp*)
11599    lt_prog_compiler_pic_CXX=
11600    ;;
11601  *)
11602    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11603    ;;
11604esac
11605
11606#
11607# Check to make sure the static flag actually works.
11608#
11609wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11610echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11611echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11612if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11613  echo $ECHO_N "(cached) $ECHO_C" >&6
11614else
11615  lt_prog_compiler_static_works_CXX=no
11616   save_LDFLAGS="$LDFLAGS"
11617   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11618   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11619   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11620     # The linker can only warn and ignore the option if not recognized
11621     # So say no if there are warnings
11622     if test -s conftest.err; then
11623       # Append any errors to the config.log.
11624       cat conftest.err 1>&5
11625       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11626       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11627       if diff conftest.exp conftest.er2 >/dev/null; then
11628         lt_prog_compiler_static_works_CXX=yes
11629       fi
11630     else
11631       lt_prog_compiler_static_works_CXX=yes
11632     fi
11633   fi
11634   $rm conftest*
11635   LDFLAGS="$save_LDFLAGS"
11636
11637fi
11638echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11639echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11640
11641if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11642    :
11643else
11644    lt_prog_compiler_static_CXX=
11645fi
11646
11647
11648echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11649echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11650if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11651  echo $ECHO_N "(cached) $ECHO_C" >&6
11652else
11653  lt_cv_prog_compiler_c_o_CXX=no
11654   $rm -r conftest 2>/dev/null
11655   mkdir conftest
11656   cd conftest
11657   mkdir out
11658   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11659
11660   lt_compiler_flag="-o out/conftest2.$ac_objext"
11661   # Insert the option either (1) after the last *FLAGS variable, or
11662   # (2) before a word containing "conftest.", or (3) at the end.
11663   # Note that $ac_compile itself does not contain backslashes and begins
11664   # with a dollar sign (not a hyphen), so the echo should work correctly.
11665   lt_compile=`echo "$ac_compile" | $SED \
11666   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11667   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11668   -e 's:$: $lt_compiler_flag:'`
11669   (eval echo "\"\$as_me:11669: $lt_compile\"" >&5)
11670   (eval "$lt_compile" 2>out/conftest.err)
11671   ac_status=$?
11672   cat out/conftest.err >&5
11673   echo "$as_me:11673: \$? = $ac_status" >&5
11674   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11675   then
11676     # The compiler can only warn and ignore the option if not recognized
11677     # So say no if there are warnings
11678     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11679     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11680     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11681       lt_cv_prog_compiler_c_o_CXX=yes
11682     fi
11683   fi
11684   chmod u+w . 2>&5
11685   $rm conftest*
11686   # SGI C++ compiler will create directory out/ii_files/ for
11687   # template instantiation
11688   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11689   $rm out/* && rmdir out
11690   cd ..
11691   rmdir conftest
11692   $rm conftest*
11693
11694fi
11695echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11696echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11697
11698
11699hard_links="nottested"
11700if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11701  # do not overwrite the value of need_locks provided by the user
11702  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11703echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11704  hard_links=yes
11705  $rm conftest*
11706  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11707  touch conftest.a
11708  ln conftest.a conftest.b 2>&5 || hard_links=no
11709  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11710  echo "$as_me:$LINENO: result: $hard_links" >&5
11711echo "${ECHO_T}$hard_links" >&6
11712  if test "$hard_links" = no; then
11713    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11714echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11715    need_locks=warn
11716  fi
11717else
11718  need_locks=no
11719fi
11720
11721echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11722echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11723
11724  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11725  case $host_os in
11726  aix4* | aix5*)
11727    # If we're using GNU nm, then we don't want the "-C" option.
11728    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11729    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11730      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'
11731    else
11732      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'
11733    fi
11734    ;;
11735  pw32*)
11736    export_symbols_cmds_CXX="$ltdll_cmds"
11737  ;;
11738  cygwin* | mingw*)
11739    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'
11740  ;;
11741  *)
11742    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11743  ;;
11744  esac
11745
11746echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11747echo "${ECHO_T}$ld_shlibs_CXX" >&6
11748test "$ld_shlibs_CXX" = no && can_build_shared=no
11749
11750#
11751# Do we need to explicitly link libc?
11752#
11753case "x$archive_cmds_need_lc_CXX" in
11754x|xyes)
11755  # Assume -lc should be added
11756  archive_cmds_need_lc_CXX=yes
11757
11758  if test "$enable_shared" = yes && test "$GCC" = yes; then
11759    case $archive_cmds_CXX in
11760    *'~'*)
11761      # FIXME: we may have to deal with multi-command sequences.
11762      ;;
11763    '$CC '*)
11764      # Test whether the compiler implicitly links with -lc since on some
11765      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11766      # to ld, don't add -lc before -lgcc.
11767      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11768echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11769      $rm conftest*
11770      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11771
11772      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773  (eval $ac_compile) 2>&5
11774  ac_status=$?
11775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776  (exit $ac_status); } 2>conftest.err; then
11777        soname=conftest
11778        lib=conftest
11779        libobjs=conftest.$ac_objext
11780        deplibs=
11781        wl=$lt_prog_compiler_wl_CXX
11782	pic_flag=$lt_prog_compiler_pic_CXX
11783        compiler_flags=-v
11784        linker_flags=-v
11785        verstring=
11786        output_objdir=.
11787        libname=conftest
11788        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11789        allow_undefined_flag_CXX=
11790        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11791  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11792  ac_status=$?
11793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794  (exit $ac_status); }
11795        then
11796	  archive_cmds_need_lc_CXX=no
11797        else
11798	  archive_cmds_need_lc_CXX=yes
11799        fi
11800        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11801      else
11802        cat conftest.err 1>&5
11803      fi
11804      $rm conftest*
11805      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11806echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11807      ;;
11808    esac
11809  fi
11810  ;;
11811esac
11812
11813echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11814echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11815library_names_spec=
11816libname_spec='lib$name'
11817soname_spec=
11818shrext_cmds=".so"
11819postinstall_cmds=
11820postuninstall_cmds=
11821finish_cmds=
11822finish_eval=
11823shlibpath_var=
11824shlibpath_overrides_runpath=unknown
11825version_type=none
11826dynamic_linker="$host_os ld.so"
11827sys_lib_dlsearch_path_spec="/lib /usr/lib"
11828if test "$GCC" = yes; then
11829  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11830  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11831    # if the path contains ";" then we assume it to be the separator
11832    # otherwise default to the standard path separator (i.e. ":") - it is
11833    # assumed that no part of a normal pathname contains ";" but that should
11834    # okay in the real world where ";" in dirpaths is itself problematic.
11835    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11836  else
11837    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11838  fi
11839else
11840  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11841fi
11842need_lib_prefix=unknown
11843hardcode_into_libs=no
11844
11845# when you set need_version to no, make sure it does not cause -set_version
11846# flags to be left without arguments
11847need_version=unknown
11848
11849case $host_os in
11850aix3*)
11851  version_type=linux
11852  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11853  shlibpath_var=LIBPATH
11854
11855  # AIX 3 has no versioning support, so we append a major version to the name.
11856  soname_spec='${libname}${release}${shared_ext}$major'
11857  ;;
11858
11859aix4* | aix5*)
11860  version_type=linux
11861  need_lib_prefix=no
11862  need_version=no
11863  hardcode_into_libs=yes
11864  if test "$host_cpu" = ia64; then
11865    # AIX 5 supports IA64
11866    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11867    shlibpath_var=LD_LIBRARY_PATH
11868  else
11869    # With GCC up to 2.95.x, collect2 would create an import file
11870    # for dependence libraries.  The import file would start with
11871    # the line `#! .'.  This would cause the generated library to
11872    # depend on `.', always an invalid library.  This was fixed in
11873    # development snapshots of GCC prior to 3.0.
11874    case $host_os in
11875      aix4 | aix4.[01] | aix4.[01].*)
11876      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11877	   echo ' yes '
11878	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11879	:
11880      else
11881	can_build_shared=no
11882      fi
11883      ;;
11884    esac
11885    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11886    # soname into executable. Probably we can add versioning support to
11887    # collect2, so additional links can be useful in future.
11888    if test "$aix_use_runtimelinking" = yes; then
11889      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11890      # instead of lib<name>.a to let people know that these are not
11891      # typical AIX shared libraries.
11892      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893    else
11894      # We preserve .a as extension for shared libraries through AIX4.2
11895      # and later when we are not doing run time linking.
11896      library_names_spec='${libname}${release}.a $libname.a'
11897      soname_spec='${libname}${release}${shared_ext}$major'
11898    fi
11899    shlibpath_var=LIBPATH
11900  fi
11901  ;;
11902
11903amigaos*)
11904  library_names_spec='$libname.ixlibrary $libname.a'
11905  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11906  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'
11907  ;;
11908
11909beos*)
11910  library_names_spec='${libname}${shared_ext}'
11911  dynamic_linker="$host_os ld.so"
11912  shlibpath_var=LIBRARY_PATH
11913  ;;
11914
11915bsdi[45]*)
11916  version_type=linux
11917  need_version=no
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11921  shlibpath_var=LD_LIBRARY_PATH
11922  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11923  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11924  # the default ld.so.conf also contains /usr/contrib/lib and
11925  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11926  # libtool to hard-code these into programs
11927  ;;
11928
11929cygwin* | mingw* | pw32*)
11930  version_type=windows
11931  shrext_cmds=".dll"
11932  need_version=no
11933  need_lib_prefix=no
11934
11935  case $GCC,$host_os in
11936  yes,cygwin* | yes,mingw* | yes,pw32*)
11937    library_names_spec='$libname.dll.a'
11938    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11939    postinstall_cmds='base_file=`basename \${file}`~
11940      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11941      dldir=$destdir/`dirname \$dlpath`~
11942      test -d \$dldir || mkdir -p \$dldir~
11943      $install_prog $dir/$dlname \$dldir/$dlname~
11944      chmod a+x \$dldir/$dlname'
11945    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11946      dlpath=$dir/\$dldll~
11947       $rm \$dlpath'
11948    shlibpath_overrides_runpath=yes
11949
11950    case $host_os in
11951    cygwin*)
11952      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11953      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
11954      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
11955      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11956      ;;
11957    mingw*)
11958      # MinGW DLLs use traditional 'lib' prefix
11959      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
11960      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
11961      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11962      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11963        # It is most probably a Windows format PATH printed by
11964        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11965        # path with ; separators, and with drive letters. We can handle the
11966        # drive letters (cygwin fileutils understands them), so leave them,
11967        # especially as we might pass files found there to a mingw objdump,
11968        # which wouldn't understand a cygwinified path. Ahh.
11969        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11970      else
11971        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11972      fi
11973      ;;
11974    pw32*)
11975      # pw32 DLLs use 'pw' prefix rather than 'lib'
11976      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11977      ;;
11978    esac
11979    ;;
11980
11981  *)
11982    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11983    ;;
11984  esac
11985  dynamic_linker='Win32 ld.exe'
11986  # FIXME: first we should search . and the directory the executable is in
11987  shlibpath_var=PATH
11988  ;;
11989
11990darwin* | rhapsody*)
11991  dynamic_linker="$host_os dyld"
11992  version_type=darwin
11993  need_lib_prefix=no
11994  need_version=no
11995  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11996  soname_spec='${libname}${release}${major}$shared_ext'
11997  shlibpath_overrides_runpath=yes
11998  shlibpath_var=DYLD_LIBRARY_PATH
11999  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12000  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12001  if test "$GCC" = yes; then
12002    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"`
12003  else
12004    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12005  fi
12006  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12007  ;;
12008
12009dgux*)
12010  version_type=linux
12011  need_lib_prefix=no
12012  need_version=no
12013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12014  soname_spec='${libname}${release}${shared_ext}$major'
12015  shlibpath_var=LD_LIBRARY_PATH
12016  ;;
12017
12018freebsd1*)
12019  dynamic_linker=no
12020  ;;
12021
12022kfreebsd*-gnu)
12023  version_type=linux
12024  need_lib_prefix=no
12025  need_version=no
12026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12027  soname_spec='${libname}${release}${shared_ext}$major'
12028  shlibpath_var=LD_LIBRARY_PATH
12029  shlibpath_overrides_runpath=no
12030  hardcode_into_libs=yes
12031  dynamic_linker='GNU ld.so'
12032  ;;
12033
12034freebsd* | dragonfly*)
12035  # DragonFly does not have aout.  When/if they implement a new
12036  # versioning mechanism, adjust this.
12037  if test -x /usr/bin/objformat; then
12038    objformat=`/usr/bin/objformat`
12039  else
12040    case $host_os in
12041    freebsd[123]*) objformat=aout ;;
12042    *) objformat=elf ;;
12043    esac
12044  fi
12045  version_type=freebsd-$objformat
12046  case $version_type in
12047    freebsd-elf*)
12048      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12049      need_version=no
12050      need_lib_prefix=no
12051      ;;
12052    freebsd-*)
12053      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12054      need_version=yes
12055      ;;
12056  esac
12057  shlibpath_var=LD_LIBRARY_PATH
12058  case $host_os in
12059  freebsd2*)
12060    shlibpath_overrides_runpath=yes
12061    ;;
12062  freebsd3.[01]* | freebsdelf3.[01]*)
12063    shlibpath_overrides_runpath=yes
12064    hardcode_into_libs=yes
12065    ;;
12066  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12067  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12068    shlibpath_overrides_runpath=no
12069    hardcode_into_libs=yes
12070    ;;
12071  freebsd*) # from 4.6 on
12072    shlibpath_overrides_runpath=yes
12073    hardcode_into_libs=yes
12074    ;;
12075  esac
12076  ;;
12077
12078gnu*)
12079  version_type=linux
12080  need_lib_prefix=no
12081  need_version=no
12082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12083  soname_spec='${libname}${release}${shared_ext}$major'
12084  shlibpath_var=LD_LIBRARY_PATH
12085  hardcode_into_libs=yes
12086  ;;
12087
12088hpux9* | hpux10* | hpux11*)
12089  # Give a soname corresponding to the major version so that dld.sl refuses to
12090  # link against other versions.
12091  version_type=sunos
12092  need_lib_prefix=no
12093  need_version=no
12094  case $host_cpu in
12095  ia64*)
12096    shrext_cmds='.so'
12097    hardcode_into_libs=yes
12098    dynamic_linker="$host_os dld.so"
12099    shlibpath_var=LD_LIBRARY_PATH
12100    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12101    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12102    soname_spec='${libname}${release}${shared_ext}$major'
12103    if test "X$HPUX_IA64_MODE" = X32; then
12104      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12105    else
12106      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12107    fi
12108    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12109    ;;
12110   hppa*64*)
12111     shrext_cmds='.sl'
12112     hardcode_into_libs=yes
12113     dynamic_linker="$host_os dld.sl"
12114     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12115     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12117     soname_spec='${libname}${release}${shared_ext}$major'
12118     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12119     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12120     ;;
12121   *)
12122    shrext_cmds='.sl'
12123    dynamic_linker="$host_os dld.sl"
12124    shlibpath_var=SHLIB_PATH
12125    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12126    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12127    soname_spec='${libname}${release}${shared_ext}$major'
12128    ;;
12129  esac
12130  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12131  postinstall_cmds='chmod 555 $lib'
12132  ;;
12133
12134interix3*)
12135  version_type=linux
12136  need_lib_prefix=no
12137  need_version=no
12138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12139  soname_spec='${libname}${release}${shared_ext}$major'
12140  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12141  shlibpath_var=LD_LIBRARY_PATH
12142  shlibpath_overrides_runpath=no
12143  hardcode_into_libs=yes
12144  ;;
12145
12146irix5* | irix6* | nonstopux*)
12147  case $host_os in
12148    nonstopux*) version_type=nonstopux ;;
12149    *)
12150	if test "$lt_cv_prog_gnu_ld" = yes; then
12151		version_type=linux
12152	else
12153		version_type=irix
12154	fi ;;
12155  esac
12156  need_lib_prefix=no
12157  need_version=no
12158  soname_spec='${libname}${release}${shared_ext}$major'
12159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12160  case $host_os in
12161  irix5* | nonstopux*)
12162    libsuff= shlibsuff=
12163    ;;
12164  *)
12165    case $LD in # libtool.m4 will add one of these switches to LD
12166    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12167      libsuff= shlibsuff= libmagic=32-bit;;
12168    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12169      libsuff=32 shlibsuff=N32 libmagic=N32;;
12170    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12171      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12172    *) libsuff= shlibsuff= libmagic=never-match;;
12173    esac
12174    ;;
12175  esac
12176  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12177  shlibpath_overrides_runpath=no
12178  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12179  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12180  hardcode_into_libs=yes
12181  ;;
12182
12183# No shared lib support for Linux oldld, aout, or coff.
12184linux*oldld* | linux*aout* | linux*coff*)
12185  dynamic_linker=no
12186  ;;
12187
12188# This must be Linux ELF.
12189linux*)
12190  version_type=linux
12191  need_lib_prefix=no
12192  need_version=no
12193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12194  soname_spec='${libname}${release}${shared_ext}$major'
12195  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12196  shlibpath_var=LD_LIBRARY_PATH
12197  shlibpath_overrides_runpath=no
12198  # This implies no fast_install, which is unacceptable.
12199  # Some rework will be needed to allow for fast_install
12200  # before this can be enabled.
12201  hardcode_into_libs=yes
12202
12203  # Append ld.so.conf contents to the search path
12204  if test -f /etc/ld.so.conf; then
12205    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' ' '`
12206    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12207  fi
12208
12209  # We used to test for /lib/ld.so.1 and disable shared libraries on
12210  # powerpc, because MkLinux only supported shared libraries with the
12211  # GNU dynamic linker.  Since this was broken with cross compilers,
12212  # most powerpc-linux boxes support dynamic linking these days and
12213  # people can always --disable-shared, the test was removed, and we
12214  # assume the GNU/Linux dynamic linker is in use.
12215  dynamic_linker='GNU/Linux ld.so'
12216  ;;
12217
12218knetbsd*-gnu)
12219  version_type=linux
12220  need_lib_prefix=no
12221  need_version=no
12222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12223  soname_spec='${libname}${release}${shared_ext}$major'
12224  shlibpath_var=LD_LIBRARY_PATH
12225  shlibpath_overrides_runpath=no
12226  hardcode_into_libs=yes
12227  dynamic_linker='GNU ld.so'
12228  ;;
12229
12230netbsd*)
12231  version_type=sunos
12232  need_lib_prefix=no
12233  need_version=no
12234  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12235    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12236    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12237    dynamic_linker='NetBSD (a.out) ld.so'
12238  else
12239    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12240    soname_spec='${libname}${release}${shared_ext}$major'
12241    dynamic_linker='NetBSD ld.elf_so'
12242  fi
12243  shlibpath_var=LD_LIBRARY_PATH
12244  shlibpath_overrides_runpath=yes
12245  hardcode_into_libs=yes
12246  ;;
12247
12248newsos6)
12249  version_type=linux
12250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251  shlibpath_var=LD_LIBRARY_PATH
12252  shlibpath_overrides_runpath=yes
12253  ;;
12254
12255nto-qnx*)
12256  version_type=linux
12257  need_lib_prefix=no
12258  need_version=no
12259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260  soname_spec='${libname}${release}${shared_ext}$major'
12261  shlibpath_var=LD_LIBRARY_PATH
12262  shlibpath_overrides_runpath=yes
12263  ;;
12264
12265openbsd*)
12266  version_type=sunos
12267  sys_lib_dlsearch_path_spec="/usr/lib"
12268  need_lib_prefix=no
12269  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12270  case $host_os in
12271    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12272    *)                         need_version=no  ;;
12273  esac
12274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12275  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12276  shlibpath_var=LD_LIBRARY_PATH
12277  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12278    case $host_os in
12279      openbsd2.[89] | openbsd2.[89].*)
12280	shlibpath_overrides_runpath=no
12281	;;
12282      *)
12283	shlibpath_overrides_runpath=yes
12284	;;
12285      esac
12286  else
12287    shlibpath_overrides_runpath=yes
12288  fi
12289  ;;
12290
12291os2*)
12292  libname_spec='$name'
12293  shrext_cmds=".dll"
12294  need_lib_prefix=no
12295  library_names_spec='$libname${shared_ext} $libname.a'
12296  dynamic_linker='OS/2 ld.exe'
12297  shlibpath_var=LIBPATH
12298  ;;
12299
12300osf3* | osf4* | osf5*)
12301  version_type=osf
12302  need_lib_prefix=no
12303  need_version=no
12304  soname_spec='${libname}${release}${shared_ext}$major'
12305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306  shlibpath_var=LD_LIBRARY_PATH
12307  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12308  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12309  ;;
12310
12311solaris*)
12312  version_type=linux
12313  need_lib_prefix=no
12314  need_version=no
12315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12316  soname_spec='${libname}${release}${shared_ext}$major'
12317  shlibpath_var=LD_LIBRARY_PATH
12318  shlibpath_overrides_runpath=yes
12319  hardcode_into_libs=yes
12320  # ldd complains unless libraries are executable
12321  postinstall_cmds='chmod +x $lib'
12322  ;;
12323
12324sunos4*)
12325  version_type=sunos
12326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12327  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12328  shlibpath_var=LD_LIBRARY_PATH
12329  shlibpath_overrides_runpath=yes
12330  if test "$with_gnu_ld" = yes; then
12331    need_lib_prefix=no
12332  fi
12333  need_version=yes
12334  ;;
12335
12336sysv4 | sysv4.3*)
12337  version_type=linux
12338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339  soname_spec='${libname}${release}${shared_ext}$major'
12340  shlibpath_var=LD_LIBRARY_PATH
12341  case $host_vendor in
12342    sni)
12343      shlibpath_overrides_runpath=no
12344      need_lib_prefix=no
12345      export_dynamic_flag_spec='${wl}-Blargedynsym'
12346      runpath_var=LD_RUN_PATH
12347      ;;
12348    siemens)
12349      need_lib_prefix=no
12350      ;;
12351    motorola)
12352      need_lib_prefix=no
12353      need_version=no
12354      shlibpath_overrides_runpath=no
12355      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12356      ;;
12357  esac
12358  ;;
12359
12360sysv4*MP*)
12361  if test -d /usr/nec ;then
12362    version_type=linux
12363    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12364    soname_spec='$libname${shared_ext}.$major'
12365    shlibpath_var=LD_LIBRARY_PATH
12366  fi
12367  ;;
12368
12369sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12370  version_type=freebsd-elf
12371  need_lib_prefix=no
12372  need_version=no
12373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12374  soname_spec='${libname}${release}${shared_ext}$major'
12375  shlibpath_var=LD_LIBRARY_PATH
12376  hardcode_into_libs=yes
12377  if test "$with_gnu_ld" = yes; then
12378    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12379    shlibpath_overrides_runpath=no
12380  else
12381    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12382    shlibpath_overrides_runpath=yes
12383    case $host_os in
12384      sco3.2v5*)
12385        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12386	;;
12387    esac
12388  fi
12389  sys_lib_dlsearch_path_spec='/usr/lib'
12390  ;;
12391
12392uts4*)
12393  version_type=linux
12394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12395  soname_spec='${libname}${release}${shared_ext}$major'
12396  shlibpath_var=LD_LIBRARY_PATH
12397  ;;
12398
12399*)
12400  dynamic_linker=no
12401  ;;
12402esac
12403echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12404echo "${ECHO_T}$dynamic_linker" >&6
12405test "$dynamic_linker" = no && can_build_shared=no
12406
12407variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12408if test "$GCC" = yes; then
12409  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12410fi
12411
12412echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12413echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12414hardcode_action_CXX=
12415if test -n "$hardcode_libdir_flag_spec_CXX" || \
12416   test -n "$runpath_var_CXX" || \
12417   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12418
12419  # We can hardcode non-existant directories.
12420  if test "$hardcode_direct_CXX" != no &&
12421     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12422     # have to relink, otherwise we might link with an installed library
12423     # when we should be linking with a yet-to-be-installed one
12424     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12425     test "$hardcode_minus_L_CXX" != no; then
12426    # Linking always hardcodes the temporary library directory.
12427    hardcode_action_CXX=relink
12428  else
12429    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12430    hardcode_action_CXX=immediate
12431  fi
12432else
12433  # We cannot hardcode anything, or else we can only hardcode existing
12434  # directories.
12435  hardcode_action_CXX=unsupported
12436fi
12437echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12438echo "${ECHO_T}$hardcode_action_CXX" >&6
12439
12440if test "$hardcode_action_CXX" = relink; then
12441  # Fast installation is not supported
12442  enable_fast_install=no
12443elif test "$shlibpath_overrides_runpath" = yes ||
12444     test "$enable_shared" = no; then
12445  # Fast installation is not necessary
12446  enable_fast_install=needless
12447fi
12448
12449
12450# The else clause should only fire when bootstrapping the
12451# libtool distribution, otherwise you forgot to ship ltmain.sh
12452# with your package, and you will get complaints that there are
12453# no rules to generate ltmain.sh.
12454if test -f "$ltmain"; then
12455  # See if we are running on zsh, and set the options which allow our commands through
12456  # without removal of \ escapes.
12457  if test -n "${ZSH_VERSION+set}" ; then
12458    setopt NO_GLOB_SUBST
12459  fi
12460  # Now quote all the things that may contain metacharacters while being
12461  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12462  # variables and quote the copies for generation of the libtool script.
12463  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12464    SED SHELL STRIP \
12465    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12466    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12467    deplibs_check_method reload_flag reload_cmds need_locks \
12468    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12469    lt_cv_sys_global_symbol_to_c_name_address \
12470    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12471    old_postinstall_cmds old_postuninstall_cmds \
12472    compiler_CXX \
12473    CC_CXX \
12474    LD_CXX \
12475    lt_prog_compiler_wl_CXX \
12476    lt_prog_compiler_pic_CXX \
12477    lt_prog_compiler_static_CXX \
12478    lt_prog_compiler_no_builtin_flag_CXX \
12479    export_dynamic_flag_spec_CXX \
12480    thread_safe_flag_spec_CXX \
12481    whole_archive_flag_spec_CXX \
12482    enable_shared_with_static_runtimes_CXX \
12483    old_archive_cmds_CXX \
12484    old_archive_from_new_cmds_CXX \
12485    predep_objects_CXX \
12486    postdep_objects_CXX \
12487    predeps_CXX \
12488    postdeps_CXX \
12489    compiler_lib_search_path_CXX \
12490    archive_cmds_CXX \
12491    archive_expsym_cmds_CXX \
12492    postinstall_cmds_CXX \
12493    postuninstall_cmds_CXX \
12494    old_archive_from_expsyms_cmds_CXX \
12495    allow_undefined_flag_CXX \
12496    no_undefined_flag_CXX \
12497    export_symbols_cmds_CXX \
12498    hardcode_libdir_flag_spec_CXX \
12499    hardcode_libdir_flag_spec_ld_CXX \
12500    hardcode_libdir_separator_CXX \
12501    hardcode_automatic_CXX \
12502    module_cmds_CXX \
12503    module_expsym_cmds_CXX \
12504    lt_cv_prog_compiler_c_o_CXX \
12505    exclude_expsyms_CXX \
12506    include_expsyms_CXX; do
12507
12508    case $var in
12509    old_archive_cmds_CXX | \
12510    old_archive_from_new_cmds_CXX | \
12511    archive_cmds_CXX | \
12512    archive_expsym_cmds_CXX | \
12513    module_cmds_CXX | \
12514    module_expsym_cmds_CXX | \
12515    old_archive_from_expsyms_cmds_CXX | \
12516    export_symbols_cmds_CXX | \
12517    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12518    postinstall_cmds | postuninstall_cmds | \
12519    old_postinstall_cmds | old_postuninstall_cmds | \
12520    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12521      # Double-quote double-evaled strings.
12522      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12523      ;;
12524    *)
12525      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12526      ;;
12527    esac
12528  done
12529
12530  case $lt_echo in
12531  *'\$0 --fallback-echo"')
12532    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12533    ;;
12534  esac
12535
12536cfgfile="$ofile"
12537
12538  cat <<__EOF__ >> "$cfgfile"
12539# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12540
12541# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12542
12543# Shell to use when invoking shell scripts.
12544SHELL=$lt_SHELL
12545
12546# Whether or not to build shared libraries.
12547build_libtool_libs=$enable_shared
12548
12549# Whether or not to build static libraries.
12550build_old_libs=$enable_static
12551
12552# Whether or not to add -lc for building shared libraries.
12553build_libtool_need_lc=$archive_cmds_need_lc_CXX
12554
12555# Whether or not to disallow shared libs when runtime libs are static
12556allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12557
12558# Whether or not to optimize for fast installation.
12559fast_install=$enable_fast_install
12560
12561# The host system.
12562host_alias=$host_alias
12563host=$host
12564host_os=$host_os
12565
12566# The build system.
12567build_alias=$build_alias
12568build=$build
12569build_os=$build_os
12570
12571# An echo program that does not interpret backslashes.
12572echo=$lt_echo
12573
12574# The archiver.
12575AR=$lt_AR
12576AR_FLAGS=$lt_AR_FLAGS
12577
12578# A C compiler.
12579LTCC=$lt_LTCC
12580
12581# LTCC compiler flags.
12582LTCFLAGS=$lt_LTCFLAGS
12583
12584# A language-specific compiler.
12585CC=$lt_compiler_CXX
12586
12587# Is the compiler the GNU C compiler?
12588with_gcc=$GCC_CXX
12589
12590# An ERE matcher.
12591EGREP=$lt_EGREP
12592
12593# The linker used to build libraries.
12594LD=$lt_LD_CXX
12595
12596# Whether we need hard or soft links.
12597LN_S=$lt_LN_S
12598
12599# A BSD-compatible nm program.
12600NM=$lt_NM
12601
12602# A symbol stripping program
12603STRIP=$lt_STRIP
12604
12605# Used to examine libraries when file_magic_cmd begins "file"
12606MAGIC_CMD=$MAGIC_CMD
12607
12608# Used on cygwin: DLL creation program.
12609DLLTOOL="$DLLTOOL"
12610
12611# Used on cygwin: object dumper.
12612OBJDUMP="$OBJDUMP"
12613
12614# Used on cygwin: assembler.
12615AS="$AS"
12616
12617# The name of the directory that contains temporary libtool files.
12618objdir=$objdir
12619
12620# How to create reloadable object files.
12621reload_flag=$lt_reload_flag
12622reload_cmds=$lt_reload_cmds
12623
12624# How to pass a linker flag through the compiler.
12625wl=$lt_lt_prog_compiler_wl_CXX
12626
12627# Object file suffix (normally "o").
12628objext="$ac_objext"
12629
12630# Old archive suffix (normally "a").
12631libext="$libext"
12632
12633# Shared library suffix (normally ".so").
12634shrext_cmds='$shrext_cmds'
12635
12636# Executable file suffix (normally "").
12637exeext="$exeext"
12638
12639# Additional compiler flags for building library objects.
12640pic_flag=$lt_lt_prog_compiler_pic_CXX
12641pic_mode=$pic_mode
12642
12643# What is the maximum length of a command?
12644max_cmd_len=$lt_cv_sys_max_cmd_len
12645
12646# Does compiler simultaneously support -c and -o options?
12647compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12648
12649# Must we lock files when doing compilation?
12650need_locks=$lt_need_locks
12651
12652# Do we need the lib prefix for modules?
12653need_lib_prefix=$need_lib_prefix
12654
12655# Do we need a version for libraries?
12656need_version=$need_version
12657
12658# Whether dlopen is supported.
12659dlopen_support=$enable_dlopen
12660
12661# Whether dlopen of programs is supported.
12662dlopen_self=$enable_dlopen_self
12663
12664# Whether dlopen of statically linked programs is supported.
12665dlopen_self_static=$enable_dlopen_self_static
12666
12667# Compiler flag to prevent dynamic linking.
12668link_static_flag=$lt_lt_prog_compiler_static_CXX
12669
12670# Compiler flag to turn off builtin functions.
12671no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12672
12673# Compiler flag to allow reflexive dlopens.
12674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12675
12676# Compiler flag to generate shared objects directly from archives.
12677whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12678
12679# Compiler flag to generate thread-safe objects.
12680thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12681
12682# Library versioning type.
12683version_type=$version_type
12684
12685# Format of library name prefix.
12686libname_spec=$lt_libname_spec
12687
12688# List of archive names.  First name is the real one, the rest are links.
12689# The last name is the one that the linker finds with -lNAME.
12690library_names_spec=$lt_library_names_spec
12691
12692# The coded name of the library, if different from the real name.
12693soname_spec=$lt_soname_spec
12694
12695# Commands used to build and install an old-style archive.
12696RANLIB=$lt_RANLIB
12697old_archive_cmds=$lt_old_archive_cmds_CXX
12698old_postinstall_cmds=$lt_old_postinstall_cmds
12699old_postuninstall_cmds=$lt_old_postuninstall_cmds
12700
12701# Create an old-style archive from a shared archive.
12702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12703
12704# Create a temporary old-style archive to link instead of a shared archive.
12705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12706
12707# Commands used to build and install a shared archive.
12708archive_cmds=$lt_archive_cmds_CXX
12709archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12710postinstall_cmds=$lt_postinstall_cmds
12711postuninstall_cmds=$lt_postuninstall_cmds
12712
12713# Commands used to build a loadable module (assumed same as above if empty)
12714module_cmds=$lt_module_cmds_CXX
12715module_expsym_cmds=$lt_module_expsym_cmds_CXX
12716
12717# Commands to strip libraries.
12718old_striplib=$lt_old_striplib
12719striplib=$lt_striplib
12720
12721# Dependencies to place before the objects being linked to create a
12722# shared library.
12723predep_objects=$lt_predep_objects_CXX
12724
12725# Dependencies to place after the objects being linked to create a
12726# shared library.
12727postdep_objects=$lt_postdep_objects_CXX
12728
12729# Dependencies to place before the objects being linked to create a
12730# shared library.
12731predeps=$lt_predeps_CXX
12732
12733# Dependencies to place after the objects being linked to create a
12734# shared library.
12735postdeps=$lt_postdeps_CXX
12736
12737# The library search path used internally by the compiler when linking
12738# a shared library.
12739compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12740
12741# Method to check whether dependent libraries are shared objects.
12742deplibs_check_method=$lt_deplibs_check_method
12743
12744# Command to use when deplibs_check_method == file_magic.
12745file_magic_cmd=$lt_file_magic_cmd
12746
12747# Flag that allows shared libraries with undefined symbols to be built.
12748allow_undefined_flag=$lt_allow_undefined_flag_CXX
12749
12750# Flag that forces no undefined symbols.
12751no_undefined_flag=$lt_no_undefined_flag_CXX
12752
12753# Commands used to finish a libtool library installation in a directory.
12754finish_cmds=$lt_finish_cmds
12755
12756# Same as above, but a single script fragment to be evaled but not shown.
12757finish_eval=$lt_finish_eval
12758
12759# Take the output of nm and produce a listing of raw symbols and C names.
12760global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12761
12762# Transform the output of nm in a proper C declaration
12763global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12764
12765# Transform the output of nm in a C name address pair
12766global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12767
12768# This is the shared library runtime path variable.
12769runpath_var=$runpath_var
12770
12771# This is the shared library path variable.
12772shlibpath_var=$shlibpath_var
12773
12774# Is shlibpath searched before the hard-coded library search path?
12775shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12776
12777# How to hardcode a shared library path into an executable.
12778hardcode_action=$hardcode_action_CXX
12779
12780# Whether we should hardcode library paths into libraries.
12781hardcode_into_libs=$hardcode_into_libs
12782
12783# Flag to hardcode \$libdir into a binary during linking.
12784# This must work even if \$libdir does not exist.
12785hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12786
12787# If ld is used when linking, flag to hardcode \$libdir into
12788# a binary during linking. This must work even if \$libdir does
12789# not exist.
12790hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12791
12792# Whether we need a single -rpath flag with a separated argument.
12793hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12794
12795# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12796# resulting binary.
12797hardcode_direct=$hardcode_direct_CXX
12798
12799# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12800# resulting binary.
12801hardcode_minus_L=$hardcode_minus_L_CXX
12802
12803# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12804# the resulting binary.
12805hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12806
12807# Set to yes if building a shared library automatically hardcodes DIR into the library
12808# and all subsequent libraries and executables linked against it.
12809hardcode_automatic=$hardcode_automatic_CXX
12810
12811# Variables whose values should be saved in libtool wrapper scripts and
12812# restored at relink time.
12813variables_saved_for_relink="$variables_saved_for_relink"
12814
12815# Whether libtool must link a program against all its dependency libraries.
12816link_all_deplibs=$link_all_deplibs_CXX
12817
12818# Compile-time system search path for libraries
12819sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12820
12821# Run-time system search path for libraries
12822sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12823
12824# Fix the shell variable \$srcfile for the compiler.
12825fix_srcfile_path="$fix_srcfile_path_CXX"
12826
12827# Set to yes if exported symbols are required.
12828always_export_symbols=$always_export_symbols_CXX
12829
12830# The commands to list exported symbols.
12831export_symbols_cmds=$lt_export_symbols_cmds_CXX
12832
12833# The commands to extract the exported symbol list from a shared archive.
12834extract_expsyms_cmds=$lt_extract_expsyms_cmds
12835
12836# Symbols that should not be listed in the preloaded symbols.
12837exclude_expsyms=$lt_exclude_expsyms_CXX
12838
12839# Symbols that must always be exported.
12840include_expsyms=$lt_include_expsyms_CXX
12841
12842# ### END LIBTOOL TAG CONFIG: $tagname
12843
12844__EOF__
12845
12846
12847else
12848  # If there is no Makefile yet, we rely on a make rule to execute
12849  # `config.status --recheck' to rerun these tests and create the
12850  # libtool script then.
12851  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12852  if test -f "$ltmain_in"; then
12853    test -f Makefile && make "$ltmain"
12854  fi
12855fi
12856
12857
12858ac_ext=c
12859ac_cpp='$CPP $CPPFLAGS'
12860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862ac_compiler_gnu=$ac_cv_c_compiler_gnu
12863
12864CC=$lt_save_CC
12865LDCXX=$LD
12866LD=$lt_save_LD
12867GCC=$lt_save_GCC
12868with_gnu_ldcxx=$with_gnu_ld
12869with_gnu_ld=$lt_save_with_gnu_ld
12870lt_cv_path_LDCXX=$lt_cv_path_LD
12871lt_cv_path_LD=$lt_save_path_LD
12872lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12873lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12874
12875	else
12876	  tagname=""
12877	fi
12878	;;
12879
12880      F77)
12881	if test -n "$F77" && test "X$F77" != "Xno"; then
12882
12883ac_ext=f
12884ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12885ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12886ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12887
12888
12889archive_cmds_need_lc_F77=no
12890allow_undefined_flag_F77=
12891always_export_symbols_F77=no
12892archive_expsym_cmds_F77=
12893export_dynamic_flag_spec_F77=
12894hardcode_direct_F77=no
12895hardcode_libdir_flag_spec_F77=
12896hardcode_libdir_flag_spec_ld_F77=
12897hardcode_libdir_separator_F77=
12898hardcode_minus_L_F77=no
12899hardcode_automatic_F77=no
12900module_cmds_F77=
12901module_expsym_cmds_F77=
12902link_all_deplibs_F77=unknown
12903old_archive_cmds_F77=$old_archive_cmds
12904no_undefined_flag_F77=
12905whole_archive_flag_spec_F77=
12906enable_shared_with_static_runtimes_F77=no
12907
12908# Source file extension for f77 test sources.
12909ac_ext=f
12910
12911# Object file extension for compiled f77 test sources.
12912objext=o
12913objext_F77=$objext
12914
12915# Code to be used in simple compile tests
12916lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12917
12918# Code to be used in simple link tests
12919lt_simple_link_test_code="      program t\n      end\n"
12920
12921# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12922
12923# If no C compiler was specified, use CC.
12924LTCC=${LTCC-"$CC"}
12925
12926# If no C compiler flags were specified, use CFLAGS.
12927LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12928
12929# Allow CC to be a program name with arguments.
12930compiler=$CC
12931
12932
12933# save warnings/boilerplate of simple test code
12934ac_outfile=conftest.$ac_objext
12935printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12936eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12937_lt_compiler_boilerplate=`cat conftest.err`
12938$rm conftest*
12939
12940ac_outfile=conftest.$ac_objext
12941printf "$lt_simple_link_test_code" >conftest.$ac_ext
12942eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12943_lt_linker_boilerplate=`cat conftest.err`
12944$rm conftest*
12945
12946
12947# Allow CC to be a program name with arguments.
12948lt_save_CC="$CC"
12949CC=${F77-"f77"}
12950compiler=$CC
12951compiler_F77=$CC
12952for cc_temp in $compiler""; do
12953  case $cc_temp in
12954    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12955    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12956    \-*) ;;
12957    *) break;;
12958  esac
12959done
12960cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12961
12962
12963echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12964echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12965echo "$as_me:$LINENO: result: $can_build_shared" >&5
12966echo "${ECHO_T}$can_build_shared" >&6
12967
12968echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12969echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12970test "$can_build_shared" = "no" && enable_shared=no
12971
12972# On AIX, shared libraries and static libraries use the same namespace, and
12973# are all built from PIC.
12974case $host_os in
12975aix3*)
12976  test "$enable_shared" = yes && enable_static=no
12977  if test -n "$RANLIB"; then
12978    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12979    postinstall_cmds='$RANLIB $lib'
12980  fi
12981  ;;
12982aix4* | aix5*)
12983  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12984    test "$enable_shared" = yes && enable_static=no
12985  fi
12986  ;;
12987esac
12988echo "$as_me:$LINENO: result: $enable_shared" >&5
12989echo "${ECHO_T}$enable_shared" >&6
12990
12991echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12992echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12993# Make sure either enable_shared or enable_static is yes.
12994test "$enable_shared" = yes || enable_static=yes
12995echo "$as_me:$LINENO: result: $enable_static" >&5
12996echo "${ECHO_T}$enable_static" >&6
12997
12998GCC_F77="$G77"
12999LD_F77="$LD"
13000
13001lt_prog_compiler_wl_F77=
13002lt_prog_compiler_pic_F77=
13003lt_prog_compiler_static_F77=
13004
13005echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13006echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13007
13008  if test "$GCC" = yes; then
13009    lt_prog_compiler_wl_F77='-Wl,'
13010    lt_prog_compiler_static_F77='-static'
13011
13012    case $host_os in
13013      aix*)
13014      # All AIX code is PIC.
13015      if test "$host_cpu" = ia64; then
13016	# AIX 5 now supports IA64 processor
13017	lt_prog_compiler_static_F77='-Bstatic'
13018      fi
13019      ;;
13020
13021    amigaos*)
13022      # FIXME: we need at least 68020 code to build shared libraries, but
13023      # adding the `-m68020' flag to GCC prevents building anything better,
13024      # like `-m68040'.
13025      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13026      ;;
13027
13028    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13029      # PIC is the default for these OSes.
13030      ;;
13031
13032    mingw* | pw32* | os2*)
13033      # This hack is so that the source file can tell whether it is being
13034      # built for inclusion in a dll (and should export symbols for example).
13035      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13036      ;;
13037
13038    darwin* | rhapsody*)
13039      # PIC is the default on this platform
13040      # Common symbols not allowed in MH_DYLIB files
13041      lt_prog_compiler_pic_F77='-fno-common'
13042      ;;
13043
13044    interix3*)
13045      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13046      # Instead, we relocate shared libraries at runtime.
13047      ;;
13048
13049    msdosdjgpp*)
13050      # Just because we use GCC doesn't mean we suddenly get shared libraries
13051      # on systems that don't support them.
13052      lt_prog_compiler_can_build_shared_F77=no
13053      enable_shared=no
13054      ;;
13055
13056    sysv4*MP*)
13057      if test -d /usr/nec; then
13058	lt_prog_compiler_pic_F77=-Kconform_pic
13059      fi
13060      ;;
13061
13062    hpux*)
13063      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13064      # not for PA HP-UX.
13065      case $host_cpu in
13066      hppa*64*|ia64*)
13067	# +Z the default
13068	;;
13069      *)
13070	lt_prog_compiler_pic_F77='-fPIC'
13071	;;
13072      esac
13073      ;;
13074
13075    *)
13076      lt_prog_compiler_pic_F77='-fPIC'
13077      ;;
13078    esac
13079  else
13080    # PORTME Check for flag to pass linker flags through the system compiler.
13081    case $host_os in
13082    aix*)
13083      lt_prog_compiler_wl_F77='-Wl,'
13084      if test "$host_cpu" = ia64; then
13085	# AIX 5 now supports IA64 processor
13086	lt_prog_compiler_static_F77='-Bstatic'
13087      else
13088	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13089      fi
13090      ;;
13091      darwin*)
13092        # PIC is the default on this platform
13093        # Common symbols not allowed in MH_DYLIB files
13094       case $cc_basename in
13095         xlc*)
13096         lt_prog_compiler_pic_F77='-qnocommon'
13097         lt_prog_compiler_wl_F77='-Wl,'
13098         ;;
13099       esac
13100       ;;
13101
13102    mingw* | pw32* | os2*)
13103      # This hack is so that the source file can tell whether it is being
13104      # built for inclusion in a dll (and should export symbols for example).
13105      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13106      ;;
13107
13108    hpux9* | hpux10* | hpux11*)
13109      lt_prog_compiler_wl_F77='-Wl,'
13110      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13111      # not for PA HP-UX.
13112      case $host_cpu in
13113      hppa*64*|ia64*)
13114	# +Z the default
13115	;;
13116      *)
13117	lt_prog_compiler_pic_F77='+Z'
13118	;;
13119      esac
13120      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13121      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13122      ;;
13123
13124    irix5* | irix6* | nonstopux*)
13125      lt_prog_compiler_wl_F77='-Wl,'
13126      # PIC (with -KPIC) is the default.
13127      lt_prog_compiler_static_F77='-non_shared'
13128      ;;
13129
13130    newsos6)
13131      lt_prog_compiler_pic_F77='-KPIC'
13132      lt_prog_compiler_static_F77='-Bstatic'
13133      ;;
13134
13135    linux*)
13136      case $cc_basename in
13137      icc* | ecc*)
13138	lt_prog_compiler_wl_F77='-Wl,'
13139	lt_prog_compiler_pic_F77='-KPIC'
13140	lt_prog_compiler_static_F77='-static'
13141        ;;
13142      pgcc* | pgf77* | pgf90* | pgf95*)
13143        # Portland Group compilers (*not* the Pentium gcc compiler,
13144	# which looks to be a dead project)
13145	lt_prog_compiler_wl_F77='-Wl,'
13146	lt_prog_compiler_pic_F77='-fpic'
13147	lt_prog_compiler_static_F77='-Bstatic'
13148        ;;
13149      ccc*)
13150        lt_prog_compiler_wl_F77='-Wl,'
13151        # All Alpha code is PIC.
13152        lt_prog_compiler_static_F77='-non_shared'
13153        ;;
13154      esac
13155      ;;
13156
13157    osf3* | osf4* | osf5*)
13158      lt_prog_compiler_wl_F77='-Wl,'
13159      # All OSF/1 code is PIC.
13160      lt_prog_compiler_static_F77='-non_shared'
13161      ;;
13162
13163    solaris*)
13164      lt_prog_compiler_pic_F77='-KPIC'
13165      lt_prog_compiler_static_F77='-Bstatic'
13166      case $cc_basename in
13167      f77* | f90* | f95*)
13168	lt_prog_compiler_wl_F77='-Qoption ld ';;
13169      *)
13170	lt_prog_compiler_wl_F77='-Wl,';;
13171      esac
13172      ;;
13173
13174    sunos4*)
13175      lt_prog_compiler_wl_F77='-Qoption ld '
13176      lt_prog_compiler_pic_F77='-PIC'
13177      lt_prog_compiler_static_F77='-Bstatic'
13178      ;;
13179
13180    sysv4 | sysv4.2uw2* | sysv4.3*)
13181      lt_prog_compiler_wl_F77='-Wl,'
13182      lt_prog_compiler_pic_F77='-KPIC'
13183      lt_prog_compiler_static_F77='-Bstatic'
13184      ;;
13185
13186    sysv4*MP*)
13187      if test -d /usr/nec ;then
13188	lt_prog_compiler_pic_F77='-Kconform_pic'
13189	lt_prog_compiler_static_F77='-Bstatic'
13190      fi
13191      ;;
13192
13193    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13194      lt_prog_compiler_wl_F77='-Wl,'
13195      lt_prog_compiler_pic_F77='-KPIC'
13196      lt_prog_compiler_static_F77='-Bstatic'
13197      ;;
13198
13199    unicos*)
13200      lt_prog_compiler_wl_F77='-Wl,'
13201      lt_prog_compiler_can_build_shared_F77=no
13202      ;;
13203
13204    uts4*)
13205      lt_prog_compiler_pic_F77='-pic'
13206      lt_prog_compiler_static_F77='-Bstatic'
13207      ;;
13208
13209    *)
13210      lt_prog_compiler_can_build_shared_F77=no
13211      ;;
13212    esac
13213  fi
13214
13215echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13216echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13217
13218#
13219# Check to make sure the PIC flag actually works.
13220#
13221if test -n "$lt_prog_compiler_pic_F77"; then
13222
13223echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13224echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13225if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13226  echo $ECHO_N "(cached) $ECHO_C" >&6
13227else
13228  lt_prog_compiler_pic_works_F77=no
13229  ac_outfile=conftest.$ac_objext
13230   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13231   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13232   # Insert the option either (1) after the last *FLAGS variable, or
13233   # (2) before a word containing "conftest.", or (3) at the end.
13234   # Note that $ac_compile itself does not contain backslashes and begins
13235   # with a dollar sign (not a hyphen), so the echo should work correctly.
13236   # The option is referenced via a variable to avoid confusing sed.
13237   lt_compile=`echo "$ac_compile" | $SED \
13238   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13239   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13240   -e 's:$: $lt_compiler_flag:'`
13241   (eval echo "\"\$as_me:13241: $lt_compile\"" >&5)
13242   (eval "$lt_compile" 2>conftest.err)
13243   ac_status=$?
13244   cat conftest.err >&5
13245   echo "$as_me:13245: \$? = $ac_status" >&5
13246   if (exit $ac_status) && test -s "$ac_outfile"; then
13247     # The compiler can only warn and ignore the option if not recognized
13248     # So say no if there are warnings other than the usual output.
13249     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13250     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13251     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13252       lt_prog_compiler_pic_works_F77=yes
13253     fi
13254   fi
13255   $rm conftest*
13256
13257fi
13258echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13259echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13260
13261if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13262    case $lt_prog_compiler_pic_F77 in
13263     "" | " "*) ;;
13264     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13265     esac
13266else
13267    lt_prog_compiler_pic_F77=
13268     lt_prog_compiler_can_build_shared_F77=no
13269fi
13270
13271fi
13272case $host_os in
13273  # For platforms which do not support PIC, -DPIC is meaningless:
13274  *djgpp*)
13275    lt_prog_compiler_pic_F77=
13276    ;;
13277  *)
13278    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13279    ;;
13280esac
13281
13282#
13283# Check to make sure the static flag actually works.
13284#
13285wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13286echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13287echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13288if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13289  echo $ECHO_N "(cached) $ECHO_C" >&6
13290else
13291  lt_prog_compiler_static_works_F77=no
13292   save_LDFLAGS="$LDFLAGS"
13293   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13294   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13295   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13296     # The linker can only warn and ignore the option if not recognized
13297     # So say no if there are warnings
13298     if test -s conftest.err; then
13299       # Append any errors to the config.log.
13300       cat conftest.err 1>&5
13301       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13302       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13303       if diff conftest.exp conftest.er2 >/dev/null; then
13304         lt_prog_compiler_static_works_F77=yes
13305       fi
13306     else
13307       lt_prog_compiler_static_works_F77=yes
13308     fi
13309   fi
13310   $rm conftest*
13311   LDFLAGS="$save_LDFLAGS"
13312
13313fi
13314echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13315echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13316
13317if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13318    :
13319else
13320    lt_prog_compiler_static_F77=
13321fi
13322
13323
13324echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13325echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13326if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13327  echo $ECHO_N "(cached) $ECHO_C" >&6
13328else
13329  lt_cv_prog_compiler_c_o_F77=no
13330   $rm -r conftest 2>/dev/null
13331   mkdir conftest
13332   cd conftest
13333   mkdir out
13334   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13335
13336   lt_compiler_flag="-o out/conftest2.$ac_objext"
13337   # Insert the option either (1) after the last *FLAGS variable, or
13338   # (2) before a word containing "conftest.", or (3) at the end.
13339   # Note that $ac_compile itself does not contain backslashes and begins
13340   # with a dollar sign (not a hyphen), so the echo should work correctly.
13341   lt_compile=`echo "$ac_compile" | $SED \
13342   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13343   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13344   -e 's:$: $lt_compiler_flag:'`
13345   (eval echo "\"\$as_me:13345: $lt_compile\"" >&5)
13346   (eval "$lt_compile" 2>out/conftest.err)
13347   ac_status=$?
13348   cat out/conftest.err >&5
13349   echo "$as_me:13349: \$? = $ac_status" >&5
13350   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13351   then
13352     # The compiler can only warn and ignore the option if not recognized
13353     # So say no if there are warnings
13354     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13355     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13356     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13357       lt_cv_prog_compiler_c_o_F77=yes
13358     fi
13359   fi
13360   chmod u+w . 2>&5
13361   $rm conftest*
13362   # SGI C++ compiler will create directory out/ii_files/ for
13363   # template instantiation
13364   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13365   $rm out/* && rmdir out
13366   cd ..
13367   rmdir conftest
13368   $rm conftest*
13369
13370fi
13371echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13372echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13373
13374
13375hard_links="nottested"
13376if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13377  # do not overwrite the value of need_locks provided by the user
13378  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13379echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13380  hard_links=yes
13381  $rm conftest*
13382  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13383  touch conftest.a
13384  ln conftest.a conftest.b 2>&5 || hard_links=no
13385  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13386  echo "$as_me:$LINENO: result: $hard_links" >&5
13387echo "${ECHO_T}$hard_links" >&6
13388  if test "$hard_links" = no; then
13389    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13390echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13391    need_locks=warn
13392  fi
13393else
13394  need_locks=no
13395fi
13396
13397echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13398echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13399
13400  runpath_var=
13401  allow_undefined_flag_F77=
13402  enable_shared_with_static_runtimes_F77=no
13403  archive_cmds_F77=
13404  archive_expsym_cmds_F77=
13405  old_archive_From_new_cmds_F77=
13406  old_archive_from_expsyms_cmds_F77=
13407  export_dynamic_flag_spec_F77=
13408  whole_archive_flag_spec_F77=
13409  thread_safe_flag_spec_F77=
13410  hardcode_libdir_flag_spec_F77=
13411  hardcode_libdir_flag_spec_ld_F77=
13412  hardcode_libdir_separator_F77=
13413  hardcode_direct_F77=no
13414  hardcode_minus_L_F77=no
13415  hardcode_shlibpath_var_F77=unsupported
13416  link_all_deplibs_F77=unknown
13417  hardcode_automatic_F77=no
13418  module_cmds_F77=
13419  module_expsym_cmds_F77=
13420  always_export_symbols_F77=no
13421  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13422  # include_expsyms should be a list of space-separated symbols to be *always*
13423  # included in the symbol list
13424  include_expsyms_F77=
13425  # exclude_expsyms can be an extended regexp of symbols to exclude
13426  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13427  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13428  # as well as any symbol that contains `d'.
13429  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13430  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13431  # platforms (ab)use it in PIC code, but their linkers get confused if
13432  # the symbol is explicitly referenced.  Since portable code cannot
13433  # rely on this symbol name, it's probably fine to never include it in
13434  # preloaded symbol tables.
13435  extract_expsyms_cmds=
13436  # Just being paranoid about ensuring that cc_basename is set.
13437  for cc_temp in $compiler""; do
13438  case $cc_temp in
13439    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13440    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13441    \-*) ;;
13442    *) break;;
13443  esac
13444done
13445cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13446
13447  case $host_os in
13448  cygwin* | mingw* | pw32*)
13449    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13450    # When not using gcc, we currently assume that we are using
13451    # Microsoft Visual C++.
13452    if test "$GCC" != yes; then
13453      with_gnu_ld=no
13454    fi
13455    ;;
13456  interix*)
13457    # we just hope/assume this is gcc and not c89 (= MSVC++)
13458    with_gnu_ld=yes
13459    ;;
13460  openbsd*)
13461    with_gnu_ld=no
13462    ;;
13463  esac
13464
13465  ld_shlibs_F77=yes
13466  if test "$with_gnu_ld" = yes; then
13467    # If archive_cmds runs LD, not CC, wlarc should be empty
13468    wlarc='${wl}'
13469
13470    # Set some defaults for GNU ld with shared library support. These
13471    # are reset later if shared libraries are not supported. Putting them
13472    # here allows them to be overridden if necessary.
13473    runpath_var=LD_RUN_PATH
13474    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13475    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13476    # ancient GNU ld didn't support --whole-archive et. al.
13477    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13478	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13479      else
13480  	whole_archive_flag_spec_F77=
13481    fi
13482    supports_anon_versioning=no
13483    case `$LD -v 2>/dev/null` in
13484      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13485      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13486      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13487      *\ 2.11.*) ;; # other 2.11 versions
13488      *) supports_anon_versioning=yes ;;
13489    esac
13490
13491    # See if GNU ld supports shared libraries.
13492    case $host_os in
13493    aix3* | aix4* | aix5*)
13494      # On AIX/PPC, the GNU linker is very broken
13495      if test "$host_cpu" != ia64; then
13496	ld_shlibs_F77=no
13497	cat <<EOF 1>&2
13498
13499*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13500*** to be unable to reliably create shared libraries on AIX.
13501*** Therefore, libtool is disabling shared libraries support.  If you
13502*** really care for shared libraries, you may want to modify your PATH
13503*** so that a non-GNU linker is found, and then restart.
13504
13505EOF
13506      fi
13507      ;;
13508
13509    amigaos*)
13510      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)'
13511      hardcode_libdir_flag_spec_F77='-L$libdir'
13512      hardcode_minus_L_F77=yes
13513
13514      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13515      # that the semantics of dynamic libraries on AmigaOS, at least up
13516      # to version 4, is to share data among multiple programs linked
13517      # with the same dynamic library.  Since this doesn't match the
13518      # behavior of shared libraries on other platforms, we can't use
13519      # them.
13520      ld_shlibs_F77=no
13521      ;;
13522
13523    beos*)
13524      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13525	allow_undefined_flag_F77=unsupported
13526	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13527	# support --undefined.  This deserves some investigation.  FIXME
13528	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529      else
13530	ld_shlibs_F77=no
13531      fi
13532      ;;
13533
13534    cygwin* | mingw* | pw32*)
13535      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13536      # as there is no search path for DLLs.
13537      hardcode_libdir_flag_spec_F77='-L$libdir'
13538      allow_undefined_flag_F77=unsupported
13539      always_export_symbols_F77=no
13540      enable_shared_with_static_runtimes_F77=yes
13541      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13542
13543      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13544        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13545	# If the export-symbols file already is a .def file (1st line
13546	# is EXPORTS), use it as is; otherwise, prepend...
13547	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13548	  cp $export_symbols $output_objdir/$soname.def;
13549	else
13550	  echo EXPORTS > $output_objdir/$soname.def;
13551	  cat $export_symbols >> $output_objdir/$soname.def;
13552	fi~
13553	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13554      else
13555	ld_shlibs_F77=no
13556      fi
13557      ;;
13558
13559    interix3*)
13560      hardcode_direct_F77=no
13561      hardcode_shlibpath_var_F77=no
13562      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13563      export_dynamic_flag_spec_F77='${wl}-E'
13564      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13565      # Instead, shared libraries are loaded at an image base (0x10000000 by
13566      # default) and relocated if they conflict, which is a slow very memory
13567      # consuming and fragmenting process.  To avoid this, we pick a random,
13568      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13569      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13570      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13571      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13572      ;;
13573
13574    linux*)
13575      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13576	tmp_addflag=
13577	case $cc_basename,$host_cpu in
13578	pgcc*)				# Portland Group C compiler
13579	  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'
13580	  tmp_addflag=' $pic_flag'
13581	  ;;
13582	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13583	  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'
13584	  tmp_addflag=' $pic_flag -Mnomain' ;;
13585	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13586	  tmp_addflag=' -i_dynamic' ;;
13587	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13588	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13589	ifc* | ifort*)			# Intel Fortran compiler
13590	  tmp_addflag=' -nofor_main' ;;
13591	esac
13592	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13593
13594	if test $supports_anon_versioning = yes; then
13595	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13596  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13597  $echo "local: *; };" >> $output_objdir/$libname.ver~
13598	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13599	fi
13600      else
13601	ld_shlibs_F77=no
13602      fi
13603      ;;
13604
13605    netbsd*)
13606      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13607	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13608	wlarc=
13609      else
13610	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13611	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13612      fi
13613      ;;
13614
13615    solaris*)
13616      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13617	ld_shlibs_F77=no
13618	cat <<EOF 1>&2
13619
13620*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13621*** create shared libraries on Solaris systems.  Therefore, libtool
13622*** is disabling shared libraries support.  We urge you to upgrade GNU
13623*** binutils to release 2.9.1 or newer.  Another option is to modify
13624*** your PATH or compiler configuration so that the native linker is
13625*** used, and then restart.
13626
13627EOF
13628      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13629	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13630	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13631      else
13632	ld_shlibs_F77=no
13633      fi
13634      ;;
13635
13636    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13637      case `$LD -v 2>&1` in
13638        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13639	ld_shlibs_F77=no
13640	cat <<_LT_EOF 1>&2
13641
13642*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13643*** reliably create shared libraries on SCO systems.  Therefore, libtool
13644*** is disabling shared libraries support.  We urge you to upgrade GNU
13645*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13646*** your PATH or compiler configuration so that the native linker is
13647*** used, and then restart.
13648
13649_LT_EOF
13650	;;
13651	*)
13652	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13653	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13654	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13655	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13656	  else
13657	    ld_shlibs_F77=no
13658	  fi
13659	;;
13660      esac
13661      ;;
13662
13663    sunos4*)
13664      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13665      wlarc=
13666      hardcode_direct_F77=yes
13667      hardcode_shlibpath_var_F77=no
13668      ;;
13669
13670    *)
13671      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13672	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13673	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13674      else
13675	ld_shlibs_F77=no
13676      fi
13677      ;;
13678    esac
13679
13680    if test "$ld_shlibs_F77" = no; then
13681      runpath_var=
13682      hardcode_libdir_flag_spec_F77=
13683      export_dynamic_flag_spec_F77=
13684      whole_archive_flag_spec_F77=
13685    fi
13686  else
13687    # PORTME fill in a description of your system's linker (not GNU ld)
13688    case $host_os in
13689    aix3*)
13690      allow_undefined_flag_F77=unsupported
13691      always_export_symbols_F77=yes
13692      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'
13693      # Note: this linker hardcodes the directories in LIBPATH if there
13694      # are no directories specified by -L.
13695      hardcode_minus_L_F77=yes
13696      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13697	# Neither direct hardcoding nor static linking is supported with a
13698	# broken collect2.
13699	hardcode_direct_F77=unsupported
13700      fi
13701      ;;
13702
13703    aix4* | aix5*)
13704      if test "$host_cpu" = ia64; then
13705	# On IA64, the linker does run time linking by default, so we don't
13706	# have to do anything special.
13707	aix_use_runtimelinking=no
13708	exp_sym_flag='-Bexport'
13709	no_entry_flag=""
13710      else
13711	# If we're using GNU nm, then we don't want the "-C" option.
13712	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13713	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13714	  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'
13715	else
13716	  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'
13717	fi
13718	aix_use_runtimelinking=no
13719
13720	# Test if we are trying to use run time linking or normal
13721	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13722	# need to do runtime linking.
13723	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13724	  for ld_flag in $LDFLAGS; do
13725  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13726  	    aix_use_runtimelinking=yes
13727  	    break
13728  	  fi
13729	  done
13730	  ;;
13731	esac
13732
13733	exp_sym_flag='-bexport'
13734	no_entry_flag='-bnoentry'
13735      fi
13736
13737      # When large executables or shared objects are built, AIX ld can
13738      # have problems creating the table of contents.  If linking a library
13739      # or program results in "error TOC overflow" add -mminimal-toc to
13740      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13741      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13742
13743      archive_cmds_F77=''
13744      hardcode_direct_F77=yes
13745      hardcode_libdir_separator_F77=':'
13746      link_all_deplibs_F77=yes
13747
13748      if test "$GCC" = yes; then
13749	case $host_os in aix4.[012]|aix4.[012].*)
13750	# We only want to do this on AIX 4.2 and lower, the check
13751	# below for broken collect2 doesn't work under 4.3+
13752	  collect2name=`${CC} -print-prog-name=collect2`
13753	  if test -f "$collect2name" && \
13754  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13755	  then
13756  	  # We have reworked collect2
13757  	  hardcode_direct_F77=yes
13758	  else
13759  	  # We have old collect2
13760  	  hardcode_direct_F77=unsupported
13761  	  # It fails to find uninstalled libraries when the uninstalled
13762  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13763  	  # to unsupported forces relinking
13764  	  hardcode_minus_L_F77=yes
13765  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13766  	  hardcode_libdir_separator_F77=
13767	  fi
13768	  ;;
13769	esac
13770	shared_flag='-shared'
13771	if test "$aix_use_runtimelinking" = yes; then
13772	  shared_flag="$shared_flag "'${wl}-G'
13773	fi
13774      else
13775	# not using gcc
13776	if test "$host_cpu" = ia64; then
13777  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13778  	# chokes on -Wl,-G. The following line is correct:
13779	  shared_flag='-G'
13780	else
13781	  if test "$aix_use_runtimelinking" = yes; then
13782	    shared_flag='${wl}-G'
13783	  else
13784	    shared_flag='${wl}-bM:SRE'
13785	  fi
13786	fi
13787      fi
13788
13789      # It seems that -bexpall does not export symbols beginning with
13790      # underscore (_), so it is better to generate a list of symbols to export.
13791      always_export_symbols_F77=yes
13792      if test "$aix_use_runtimelinking" = yes; then
13793	# Warning - without using the other runtime loading flags (-brtl),
13794	# -berok will link without error, but may produce a broken library.
13795	allow_undefined_flag_F77='-berok'
13796       # Determine the default libpath from the value encoded in an empty executable.
13797       cat >conftest.$ac_ext <<_ACEOF
13798      program main
13799
13800      end
13801_ACEOF
13802rm -f conftest.$ac_objext conftest$ac_exeext
13803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13804  (eval $ac_link) 2>conftest.er1
13805  ac_status=$?
13806  grep -v '^ *+' conftest.er1 >conftest.err
13807  rm -f conftest.er1
13808  cat conftest.err >&5
13809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810  (exit $ac_status); } &&
13811	 { ac_try='test -z "$ac_f77_werror_flag"
13812			 || test ! -s conftest.err'
13813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814  (eval $ac_try) 2>&5
13815  ac_status=$?
13816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817  (exit $ac_status); }; } &&
13818	 { ac_try='test -s conftest$ac_exeext'
13819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820  (eval $ac_try) 2>&5
13821  ac_status=$?
13822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823  (exit $ac_status); }; }; then
13824
13825aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13826}'`
13827# Check for a 64-bit object if we didn't find anything.
13828if 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; }
13829}'`; fi
13830else
13831  echo "$as_me: failed program was:" >&5
13832sed 's/^/| /' conftest.$ac_ext >&5
13833
13834fi
13835rm -f conftest.err conftest.$ac_objext \
13836      conftest$ac_exeext conftest.$ac_ext
13837if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13838
13839       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13840	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13841       else
13842	if test "$host_cpu" = ia64; then
13843	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13844	  allow_undefined_flag_F77="-z nodefs"
13845	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13846	else
13847	 # Determine the default libpath from the value encoded in an empty executable.
13848	 cat >conftest.$ac_ext <<_ACEOF
13849      program main
13850
13851      end
13852_ACEOF
13853rm -f conftest.$ac_objext conftest$ac_exeext
13854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13855  (eval $ac_link) 2>conftest.er1
13856  ac_status=$?
13857  grep -v '^ *+' conftest.er1 >conftest.err
13858  rm -f conftest.er1
13859  cat conftest.err >&5
13860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861  (exit $ac_status); } &&
13862	 { ac_try='test -z "$ac_f77_werror_flag"
13863			 || test ! -s conftest.err'
13864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865  (eval $ac_try) 2>&5
13866  ac_status=$?
13867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868  (exit $ac_status); }; } &&
13869	 { ac_try='test -s conftest$ac_exeext'
13870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871  (eval $ac_try) 2>&5
13872  ac_status=$?
13873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874  (exit $ac_status); }; }; then
13875
13876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13877}'`
13878# Check for a 64-bit object if we didn't find anything.
13879if 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; }
13880}'`; fi
13881else
13882  echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885fi
13886rm -f conftest.err conftest.$ac_objext \
13887      conftest$ac_exeext conftest.$ac_ext
13888if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13889
13890	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13891	  # Warning - without using the other run time loading flags,
13892	  # -berok will link without error, but may produce a broken library.
13893	  no_undefined_flag_F77=' ${wl}-bernotok'
13894	  allow_undefined_flag_F77=' ${wl}-berok'
13895	  # Exported symbols can be pulled into shared objects from archives
13896	  whole_archive_flag_spec_F77='$convenience'
13897	  archive_cmds_need_lc_F77=yes
13898	  # This is similar to how AIX traditionally builds its shared libraries.
13899	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13900	fi
13901      fi
13902      ;;
13903
13904    amigaos*)
13905      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)'
13906      hardcode_libdir_flag_spec_F77='-L$libdir'
13907      hardcode_minus_L_F77=yes
13908      # see comment about different semantics on the GNU ld section
13909      ld_shlibs_F77=no
13910      ;;
13911
13912    bsdi[45]*)
13913      export_dynamic_flag_spec_F77=-rdynamic
13914      ;;
13915
13916    cygwin* | mingw* | pw32*)
13917      # When not using gcc, we currently assume that we are using
13918      # Microsoft Visual C++.
13919      # hardcode_libdir_flag_spec is actually meaningless, as there is
13920      # no search path for DLLs.
13921      hardcode_libdir_flag_spec_F77=' '
13922      allow_undefined_flag_F77=unsupported
13923      # Tell ltmain to make .lib files, not .a files.
13924      libext=lib
13925      # Tell ltmain to make .dll files, not .so files.
13926      shrext_cmds=".dll"
13927      # FIXME: Setting linknames here is a bad hack.
13928      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13929      # The linker will automatically build a .lib file if we build a DLL.
13930      old_archive_From_new_cmds_F77='true'
13931      # FIXME: Should let the user specify the lib program.
13932      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13933      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13934      enable_shared_with_static_runtimes_F77=yes
13935      ;;
13936
13937    darwin* | rhapsody*)
13938      case $host_os in
13939        rhapsody* | darwin1.[012])
13940         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13941         ;;
13942       *) # Darwin 1.3 on
13943         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13944           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13945         else
13946           case ${MACOSX_DEPLOYMENT_TARGET} in
13947             10.[012])
13948               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13949               ;;
13950             10.*)
13951               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13952               ;;
13953           esac
13954         fi
13955         ;;
13956      esac
13957      archive_cmds_need_lc_F77=no
13958      hardcode_direct_F77=no
13959      hardcode_automatic_F77=yes
13960      hardcode_shlibpath_var_F77=unsupported
13961      whole_archive_flag_spec_F77=''
13962      link_all_deplibs_F77=yes
13963    if test "$GCC" = yes ; then
13964    	output_verbose_link_cmd='echo'
13965        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13966      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13967      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13968      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}'
13969      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}'
13970    else
13971      case $cc_basename in
13972        xlc*)
13973         output_verbose_link_cmd='echo'
13974         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13975         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13976          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13977         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}'
13978          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}'
13979          ;;
13980       *)
13981         ld_shlibs_F77=no
13982          ;;
13983      esac
13984    fi
13985      ;;
13986
13987    dgux*)
13988      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13989      hardcode_libdir_flag_spec_F77='-L$libdir'
13990      hardcode_shlibpath_var_F77=no
13991      ;;
13992
13993    freebsd1*)
13994      ld_shlibs_F77=no
13995      ;;
13996
13997    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13998    # support.  Future versions do this automatically, but an explicit c++rt0.o
13999    # does not break anything, and helps significantly (at the cost of a little
14000    # extra space).
14001    freebsd2.2*)
14002      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14003      hardcode_libdir_flag_spec_F77='-R$libdir'
14004      hardcode_direct_F77=yes
14005      hardcode_shlibpath_var_F77=no
14006      ;;
14007
14008    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14009    freebsd2*)
14010      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14011      hardcode_direct_F77=yes
14012      hardcode_minus_L_F77=yes
14013      hardcode_shlibpath_var_F77=no
14014      ;;
14015
14016    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14017    freebsd* | kfreebsd*-gnu | dragonfly*)
14018      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14019      hardcode_libdir_flag_spec_F77='-R$libdir'
14020      hardcode_direct_F77=yes
14021      hardcode_shlibpath_var_F77=no
14022      ;;
14023
14024    hpux9*)
14025      if test "$GCC" = yes; then
14026	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'
14027      else
14028	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'
14029      fi
14030      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14031      hardcode_libdir_separator_F77=:
14032      hardcode_direct_F77=yes
14033
14034      # hardcode_minus_L: Not really in the search PATH,
14035      # but as the default location of the library.
14036      hardcode_minus_L_F77=yes
14037      export_dynamic_flag_spec_F77='${wl}-E'
14038      ;;
14039
14040    hpux10*)
14041      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14042	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14043      else
14044	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14045      fi
14046      if test "$with_gnu_ld" = no; then
14047	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14048	hardcode_libdir_separator_F77=:
14049
14050	hardcode_direct_F77=yes
14051	export_dynamic_flag_spec_F77='${wl}-E'
14052
14053	# hardcode_minus_L: Not really in the search PATH,
14054	# but as the default location of the library.
14055	hardcode_minus_L_F77=yes
14056      fi
14057      ;;
14058
14059    hpux11*)
14060      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14061	case $host_cpu in
14062	hppa*64*)
14063	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14064	  ;;
14065	ia64*)
14066	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14067	  ;;
14068	*)
14069	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14070	  ;;
14071	esac
14072      else
14073	case $host_cpu in
14074	hppa*64*)
14075	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14076	  ;;
14077	ia64*)
14078	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14079	  ;;
14080	*)
14081	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14082	  ;;
14083	esac
14084      fi
14085      if test "$with_gnu_ld" = no; then
14086	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14087	hardcode_libdir_separator_F77=:
14088
14089	case $host_cpu in
14090	hppa*64*|ia64*)
14091	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14092	  hardcode_direct_F77=no
14093	  hardcode_shlibpath_var_F77=no
14094	  ;;
14095	*)
14096	  hardcode_direct_F77=yes
14097	  export_dynamic_flag_spec_F77='${wl}-E'
14098
14099	  # hardcode_minus_L: Not really in the search PATH,
14100	  # but as the default location of the library.
14101	  hardcode_minus_L_F77=yes
14102	  ;;
14103	esac
14104      fi
14105      ;;
14106
14107    irix5* | irix6* | nonstopux*)
14108      if test "$GCC" = yes; then
14109	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'
14110      else
14111	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'
14112	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14113      fi
14114      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14115      hardcode_libdir_separator_F77=:
14116      link_all_deplibs_F77=yes
14117      ;;
14118
14119    netbsd*)
14120      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14121	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14122      else
14123	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14124      fi
14125      hardcode_libdir_flag_spec_F77='-R$libdir'
14126      hardcode_direct_F77=yes
14127      hardcode_shlibpath_var_F77=no
14128      ;;
14129
14130    newsos6)
14131      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14132      hardcode_direct_F77=yes
14133      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14134      hardcode_libdir_separator_F77=:
14135      hardcode_shlibpath_var_F77=no
14136      ;;
14137
14138    openbsd*)
14139      hardcode_direct_F77=yes
14140      hardcode_shlibpath_var_F77=no
14141      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14142	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14143	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14144	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14145	export_dynamic_flag_spec_F77='${wl}-E'
14146      else
14147       case $host_os in
14148	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14149	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14150	   hardcode_libdir_flag_spec_F77='-R$libdir'
14151	   ;;
14152	 *)
14153	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14154	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14155	   ;;
14156       esac
14157      fi
14158      ;;
14159
14160    os2*)
14161      hardcode_libdir_flag_spec_F77='-L$libdir'
14162      hardcode_minus_L_F77=yes
14163      allow_undefined_flag_F77=unsupported
14164      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'
14165      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14166      ;;
14167
14168    osf3*)
14169      if test "$GCC" = yes; then
14170	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14171	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'
14172      else
14173	allow_undefined_flag_F77=' -expect_unresolved \*'
14174	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'
14175      fi
14176      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14177      hardcode_libdir_separator_F77=:
14178      ;;
14179
14180    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14181      if test "$GCC" = yes; then
14182	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14183	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'
14184	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14185      else
14186	allow_undefined_flag_F77=' -expect_unresolved \*'
14187	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'
14188	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~
14189	$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'
14190
14191	# Both c and cxx compiler support -rpath directly
14192	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14193      fi
14194      hardcode_libdir_separator_F77=:
14195      ;;
14196
14197    solaris*)
14198      no_undefined_flag_F77=' -z text'
14199      if test "$GCC" = yes; then
14200	wlarc='${wl}'
14201	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14202	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14203	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14204      else
14205	wlarc=''
14206	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14207	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14208  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14209      fi
14210      hardcode_libdir_flag_spec_F77='-R$libdir'
14211      hardcode_shlibpath_var_F77=no
14212      case $host_os in
14213      solaris2.[0-5] | solaris2.[0-5].*) ;;
14214      *)
14215 	# The compiler driver will combine linker options so we
14216 	# cannot just pass the convience library names through
14217 	# without $wl, iff we do not link with $LD.
14218 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14219 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14220 	case $wlarc in
14221 	'')
14222 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14223 	*)
14224 	  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' ;;
14225 	esac ;;
14226      esac
14227      link_all_deplibs_F77=yes
14228      ;;
14229
14230    sunos4*)
14231      if test "x$host_vendor" = xsequent; then
14232	# Use $CC to link under sequent, because it throws in some extra .o
14233	# files that make .init and .fini sections work.
14234	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14235      else
14236	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14237      fi
14238      hardcode_libdir_flag_spec_F77='-L$libdir'
14239      hardcode_direct_F77=yes
14240      hardcode_minus_L_F77=yes
14241      hardcode_shlibpath_var_F77=no
14242      ;;
14243
14244    sysv4)
14245      case $host_vendor in
14246	sni)
14247	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14248	  hardcode_direct_F77=yes # is this really true???
14249	;;
14250	siemens)
14251	  ## LD is ld it makes a PLAMLIB
14252	  ## CC just makes a GrossModule.
14253	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14254	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14255	  hardcode_direct_F77=no
14256        ;;
14257	motorola)
14258	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14260	;;
14261      esac
14262      runpath_var='LD_RUN_PATH'
14263      hardcode_shlibpath_var_F77=no
14264      ;;
14265
14266    sysv4.3*)
14267      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14268      hardcode_shlibpath_var_F77=no
14269      export_dynamic_flag_spec_F77='-Bexport'
14270      ;;
14271
14272    sysv4*MP*)
14273      if test -d /usr/nec; then
14274	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275	hardcode_shlibpath_var_F77=no
14276	runpath_var=LD_RUN_PATH
14277	hardcode_runpath_var=yes
14278	ld_shlibs_F77=yes
14279      fi
14280      ;;
14281
14282    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14283      no_undefined_flag_F77='${wl}-z,text'
14284      archive_cmds_need_lc_F77=no
14285      hardcode_shlibpath_var_F77=no
14286      runpath_var='LD_RUN_PATH'
14287
14288      if test "$GCC" = yes; then
14289	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14290	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14291      else
14292	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14293	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14294      fi
14295      ;;
14296
14297    sysv5* | sco3.2v5* | sco5v6*)
14298      # Note: We can NOT use -z defs as we might desire, because we do not
14299      # link with -lc, and that would cause any symbols used from libc to
14300      # always be unresolved, which means just about no library would
14301      # ever link correctly.  If we're not using GNU ld we use -z text
14302      # though, which does catch some bad symbols but isn't as heavy-handed
14303      # as -z defs.
14304      no_undefined_flag_F77='${wl}-z,text'
14305      allow_undefined_flag_F77='${wl}-z,nodefs'
14306      archive_cmds_need_lc_F77=no
14307      hardcode_shlibpath_var_F77=no
14308      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14309      hardcode_libdir_separator_F77=':'
14310      link_all_deplibs_F77=yes
14311      export_dynamic_flag_spec_F77='${wl}-Bexport'
14312      runpath_var='LD_RUN_PATH'
14313
14314      if test "$GCC" = yes; then
14315	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14316	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14317      else
14318	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14319	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14320      fi
14321      ;;
14322
14323    uts4*)
14324      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14325      hardcode_libdir_flag_spec_F77='-L$libdir'
14326      hardcode_shlibpath_var_F77=no
14327      ;;
14328
14329    *)
14330      ld_shlibs_F77=no
14331      ;;
14332    esac
14333  fi
14334
14335echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14336echo "${ECHO_T}$ld_shlibs_F77" >&6
14337test "$ld_shlibs_F77" = no && can_build_shared=no
14338
14339#
14340# Do we need to explicitly link libc?
14341#
14342case "x$archive_cmds_need_lc_F77" in
14343x|xyes)
14344  # Assume -lc should be added
14345  archive_cmds_need_lc_F77=yes
14346
14347  if test "$enable_shared" = yes && test "$GCC" = yes; then
14348    case $archive_cmds_F77 in
14349    *'~'*)
14350      # FIXME: we may have to deal with multi-command sequences.
14351      ;;
14352    '$CC '*)
14353      # Test whether the compiler implicitly links with -lc since on some
14354      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14355      # to ld, don't add -lc before -lgcc.
14356      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14357echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14358      $rm conftest*
14359      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14360
14361      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362  (eval $ac_compile) 2>&5
14363  ac_status=$?
14364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365  (exit $ac_status); } 2>conftest.err; then
14366        soname=conftest
14367        lib=conftest
14368        libobjs=conftest.$ac_objext
14369        deplibs=
14370        wl=$lt_prog_compiler_wl_F77
14371	pic_flag=$lt_prog_compiler_pic_F77
14372        compiler_flags=-v
14373        linker_flags=-v
14374        verstring=
14375        output_objdir=.
14376        libname=conftest
14377        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14378        allow_undefined_flag_F77=
14379        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14380  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14381  ac_status=$?
14382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383  (exit $ac_status); }
14384        then
14385	  archive_cmds_need_lc_F77=no
14386        else
14387	  archive_cmds_need_lc_F77=yes
14388        fi
14389        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14390      else
14391        cat conftest.err 1>&5
14392      fi
14393      $rm conftest*
14394      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14395echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14396      ;;
14397    esac
14398  fi
14399  ;;
14400esac
14401
14402echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14403echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14404library_names_spec=
14405libname_spec='lib$name'
14406soname_spec=
14407shrext_cmds=".so"
14408postinstall_cmds=
14409postuninstall_cmds=
14410finish_cmds=
14411finish_eval=
14412shlibpath_var=
14413shlibpath_overrides_runpath=unknown
14414version_type=none
14415dynamic_linker="$host_os ld.so"
14416sys_lib_dlsearch_path_spec="/lib /usr/lib"
14417if test "$GCC" = yes; then
14418  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14419  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14420    # if the path contains ";" then we assume it to be the separator
14421    # otherwise default to the standard path separator (i.e. ":") - it is
14422    # assumed that no part of a normal pathname contains ";" but that should
14423    # okay in the real world where ";" in dirpaths is itself problematic.
14424    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14425  else
14426    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14427  fi
14428else
14429  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14430fi
14431need_lib_prefix=unknown
14432hardcode_into_libs=no
14433
14434# when you set need_version to no, make sure it does not cause -set_version
14435# flags to be left without arguments
14436need_version=unknown
14437
14438case $host_os in
14439aix3*)
14440  version_type=linux
14441  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14442  shlibpath_var=LIBPATH
14443
14444  # AIX 3 has no versioning support, so we append a major version to the name.
14445  soname_spec='${libname}${release}${shared_ext}$major'
14446  ;;
14447
14448aix4* | aix5*)
14449  version_type=linux
14450  need_lib_prefix=no
14451  need_version=no
14452  hardcode_into_libs=yes
14453  if test "$host_cpu" = ia64; then
14454    # AIX 5 supports IA64
14455    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14456    shlibpath_var=LD_LIBRARY_PATH
14457  else
14458    # With GCC up to 2.95.x, collect2 would create an import file
14459    # for dependence libraries.  The import file would start with
14460    # the line `#! .'.  This would cause the generated library to
14461    # depend on `.', always an invalid library.  This was fixed in
14462    # development snapshots of GCC prior to 3.0.
14463    case $host_os in
14464      aix4 | aix4.[01] | aix4.[01].*)
14465      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14466	   echo ' yes '
14467	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14468	:
14469      else
14470	can_build_shared=no
14471      fi
14472      ;;
14473    esac
14474    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14475    # soname into executable. Probably we can add versioning support to
14476    # collect2, so additional links can be useful in future.
14477    if test "$aix_use_runtimelinking" = yes; then
14478      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14479      # instead of lib<name>.a to let people know that these are not
14480      # typical AIX shared libraries.
14481      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482    else
14483      # We preserve .a as extension for shared libraries through AIX4.2
14484      # and later when we are not doing run time linking.
14485      library_names_spec='${libname}${release}.a $libname.a'
14486      soname_spec='${libname}${release}${shared_ext}$major'
14487    fi
14488    shlibpath_var=LIBPATH
14489  fi
14490  ;;
14491
14492amigaos*)
14493  library_names_spec='$libname.ixlibrary $libname.a'
14494  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14495  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'
14496  ;;
14497
14498beos*)
14499  library_names_spec='${libname}${shared_ext}'
14500  dynamic_linker="$host_os ld.so"
14501  shlibpath_var=LIBRARY_PATH
14502  ;;
14503
14504bsdi[45]*)
14505  version_type=linux
14506  need_version=no
14507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508  soname_spec='${libname}${release}${shared_ext}$major'
14509  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14510  shlibpath_var=LD_LIBRARY_PATH
14511  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14512  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14513  # the default ld.so.conf also contains /usr/contrib/lib and
14514  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14515  # libtool to hard-code these into programs
14516  ;;
14517
14518cygwin* | mingw* | pw32*)
14519  version_type=windows
14520  shrext_cmds=".dll"
14521  need_version=no
14522  need_lib_prefix=no
14523
14524  case $GCC,$host_os in
14525  yes,cygwin* | yes,mingw* | yes,pw32*)
14526    library_names_spec='$libname.dll.a'
14527    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14528    postinstall_cmds='base_file=`basename \${file}`~
14529      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14530      dldir=$destdir/`dirname \$dlpath`~
14531      test -d \$dldir || mkdir -p \$dldir~
14532      $install_prog $dir/$dlname \$dldir/$dlname~
14533      chmod a+x \$dldir/$dlname'
14534    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14535      dlpath=$dir/\$dldll~
14536       $rm \$dlpath'
14537    shlibpath_overrides_runpath=yes
14538
14539    case $host_os in
14540    cygwin*)
14541      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14542      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14543      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
14544      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14545      ;;
14546    mingw*)
14547      # MinGW DLLs use traditional 'lib' prefix
14548      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14549      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
14550      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14551      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14552        # It is most probably a Windows format PATH printed by
14553        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14554        # path with ; separators, and with drive letters. We can handle the
14555        # drive letters (cygwin fileutils understands them), so leave them,
14556        # especially as we might pass files found there to a mingw objdump,
14557        # which wouldn't understand a cygwinified path. Ahh.
14558        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14559      else
14560        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14561      fi
14562      ;;
14563    pw32*)
14564      # pw32 DLLs use 'pw' prefix rather than 'lib'
14565      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566      ;;
14567    esac
14568    ;;
14569
14570  *)
14571    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14572    ;;
14573  esac
14574  dynamic_linker='Win32 ld.exe'
14575  # FIXME: first we should search . and the directory the executable is in
14576  shlibpath_var=PATH
14577  ;;
14578
14579darwin* | rhapsody*)
14580  dynamic_linker="$host_os dyld"
14581  version_type=darwin
14582  need_lib_prefix=no
14583  need_version=no
14584  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14585  soname_spec='${libname}${release}${major}$shared_ext'
14586  shlibpath_overrides_runpath=yes
14587  shlibpath_var=DYLD_LIBRARY_PATH
14588  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14589  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14590  if test "$GCC" = yes; then
14591    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"`
14592  else
14593    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14594  fi
14595  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14596  ;;
14597
14598dgux*)
14599  version_type=linux
14600  need_lib_prefix=no
14601  need_version=no
14602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14603  soname_spec='${libname}${release}${shared_ext}$major'
14604  shlibpath_var=LD_LIBRARY_PATH
14605  ;;
14606
14607freebsd1*)
14608  dynamic_linker=no
14609  ;;
14610
14611kfreebsd*-gnu)
14612  version_type=linux
14613  need_lib_prefix=no
14614  need_version=no
14615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616  soname_spec='${libname}${release}${shared_ext}$major'
14617  shlibpath_var=LD_LIBRARY_PATH
14618  shlibpath_overrides_runpath=no
14619  hardcode_into_libs=yes
14620  dynamic_linker='GNU ld.so'
14621  ;;
14622
14623freebsd* | dragonfly*)
14624  # DragonFly does not have aout.  When/if they implement a new
14625  # versioning mechanism, adjust this.
14626  if test -x /usr/bin/objformat; then
14627    objformat=`/usr/bin/objformat`
14628  else
14629    case $host_os in
14630    freebsd[123]*) objformat=aout ;;
14631    *) objformat=elf ;;
14632    esac
14633  fi
14634  version_type=freebsd-$objformat
14635  case $version_type in
14636    freebsd-elf*)
14637      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14638      need_version=no
14639      need_lib_prefix=no
14640      ;;
14641    freebsd-*)
14642      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14643      need_version=yes
14644      ;;
14645  esac
14646  shlibpath_var=LD_LIBRARY_PATH
14647  case $host_os in
14648  freebsd2*)
14649    shlibpath_overrides_runpath=yes
14650    ;;
14651  freebsd3.[01]* | freebsdelf3.[01]*)
14652    shlibpath_overrides_runpath=yes
14653    hardcode_into_libs=yes
14654    ;;
14655  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14656  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14657    shlibpath_overrides_runpath=no
14658    hardcode_into_libs=yes
14659    ;;
14660  freebsd*) # from 4.6 on
14661    shlibpath_overrides_runpath=yes
14662    hardcode_into_libs=yes
14663    ;;
14664  esac
14665  ;;
14666
14667gnu*)
14668  version_type=linux
14669  need_lib_prefix=no
14670  need_version=no
14671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14672  soname_spec='${libname}${release}${shared_ext}$major'
14673  shlibpath_var=LD_LIBRARY_PATH
14674  hardcode_into_libs=yes
14675  ;;
14676
14677hpux9* | hpux10* | hpux11*)
14678  # Give a soname corresponding to the major version so that dld.sl refuses to
14679  # link against other versions.
14680  version_type=sunos
14681  need_lib_prefix=no
14682  need_version=no
14683  case $host_cpu in
14684  ia64*)
14685    shrext_cmds='.so'
14686    hardcode_into_libs=yes
14687    dynamic_linker="$host_os dld.so"
14688    shlibpath_var=LD_LIBRARY_PATH
14689    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14690    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691    soname_spec='${libname}${release}${shared_ext}$major'
14692    if test "X$HPUX_IA64_MODE" = X32; then
14693      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14694    else
14695      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14696    fi
14697    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14698    ;;
14699   hppa*64*)
14700     shrext_cmds='.sl'
14701     hardcode_into_libs=yes
14702     dynamic_linker="$host_os dld.sl"
14703     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14704     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706     soname_spec='${libname}${release}${shared_ext}$major'
14707     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14708     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14709     ;;
14710   *)
14711    shrext_cmds='.sl'
14712    dynamic_linker="$host_os dld.sl"
14713    shlibpath_var=SHLIB_PATH
14714    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14715    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716    soname_spec='${libname}${release}${shared_ext}$major'
14717    ;;
14718  esac
14719  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14720  postinstall_cmds='chmod 555 $lib'
14721  ;;
14722
14723interix3*)
14724  version_type=linux
14725  need_lib_prefix=no
14726  need_version=no
14727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14728  soname_spec='${libname}${release}${shared_ext}$major'
14729  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14730  shlibpath_var=LD_LIBRARY_PATH
14731  shlibpath_overrides_runpath=no
14732  hardcode_into_libs=yes
14733  ;;
14734
14735irix5* | irix6* | nonstopux*)
14736  case $host_os in
14737    nonstopux*) version_type=nonstopux ;;
14738    *)
14739	if test "$lt_cv_prog_gnu_ld" = yes; then
14740		version_type=linux
14741	else
14742		version_type=irix
14743	fi ;;
14744  esac
14745  need_lib_prefix=no
14746  need_version=no
14747  soname_spec='${libname}${release}${shared_ext}$major'
14748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14749  case $host_os in
14750  irix5* | nonstopux*)
14751    libsuff= shlibsuff=
14752    ;;
14753  *)
14754    case $LD in # libtool.m4 will add one of these switches to LD
14755    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14756      libsuff= shlibsuff= libmagic=32-bit;;
14757    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14758      libsuff=32 shlibsuff=N32 libmagic=N32;;
14759    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14760      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14761    *) libsuff= shlibsuff= libmagic=never-match;;
14762    esac
14763    ;;
14764  esac
14765  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14766  shlibpath_overrides_runpath=no
14767  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14768  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14769  hardcode_into_libs=yes
14770  ;;
14771
14772# No shared lib support for Linux oldld, aout, or coff.
14773linux*oldld* | linux*aout* | linux*coff*)
14774  dynamic_linker=no
14775  ;;
14776
14777# This must be Linux ELF.
14778linux*)
14779  version_type=linux
14780  need_lib_prefix=no
14781  need_version=no
14782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783  soname_spec='${libname}${release}${shared_ext}$major'
14784  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14785  shlibpath_var=LD_LIBRARY_PATH
14786  shlibpath_overrides_runpath=no
14787  # This implies no fast_install, which is unacceptable.
14788  # Some rework will be needed to allow for fast_install
14789  # before this can be enabled.
14790  hardcode_into_libs=yes
14791
14792  # Append ld.so.conf contents to the search path
14793  if test -f /etc/ld.so.conf; then
14794    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' ' '`
14795    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14796  fi
14797
14798  # We used to test for /lib/ld.so.1 and disable shared libraries on
14799  # powerpc, because MkLinux only supported shared libraries with the
14800  # GNU dynamic linker.  Since this was broken with cross compilers,
14801  # most powerpc-linux boxes support dynamic linking these days and
14802  # people can always --disable-shared, the test was removed, and we
14803  # assume the GNU/Linux dynamic linker is in use.
14804  dynamic_linker='GNU/Linux ld.so'
14805  ;;
14806
14807knetbsd*-gnu)
14808  version_type=linux
14809  need_lib_prefix=no
14810  need_version=no
14811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14812  soname_spec='${libname}${release}${shared_ext}$major'
14813  shlibpath_var=LD_LIBRARY_PATH
14814  shlibpath_overrides_runpath=no
14815  hardcode_into_libs=yes
14816  dynamic_linker='GNU ld.so'
14817  ;;
14818
14819netbsd*)
14820  version_type=sunos
14821  need_lib_prefix=no
14822  need_version=no
14823  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14824    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14825    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14826    dynamic_linker='NetBSD (a.out) ld.so'
14827  else
14828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14829    soname_spec='${libname}${release}${shared_ext}$major'
14830    dynamic_linker='NetBSD ld.elf_so'
14831  fi
14832  shlibpath_var=LD_LIBRARY_PATH
14833  shlibpath_overrides_runpath=yes
14834  hardcode_into_libs=yes
14835  ;;
14836
14837newsos6)
14838  version_type=linux
14839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840  shlibpath_var=LD_LIBRARY_PATH
14841  shlibpath_overrides_runpath=yes
14842  ;;
14843
14844nto-qnx*)
14845  version_type=linux
14846  need_lib_prefix=no
14847  need_version=no
14848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849  soname_spec='${libname}${release}${shared_ext}$major'
14850  shlibpath_var=LD_LIBRARY_PATH
14851  shlibpath_overrides_runpath=yes
14852  ;;
14853
14854openbsd*)
14855  version_type=sunos
14856  sys_lib_dlsearch_path_spec="/usr/lib"
14857  need_lib_prefix=no
14858  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14859  case $host_os in
14860    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14861    *)                         need_version=no  ;;
14862  esac
14863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14864  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14865  shlibpath_var=LD_LIBRARY_PATH
14866  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14867    case $host_os in
14868      openbsd2.[89] | openbsd2.[89].*)
14869	shlibpath_overrides_runpath=no
14870	;;
14871      *)
14872	shlibpath_overrides_runpath=yes
14873	;;
14874      esac
14875  else
14876    shlibpath_overrides_runpath=yes
14877  fi
14878  ;;
14879
14880os2*)
14881  libname_spec='$name'
14882  shrext_cmds=".dll"
14883  need_lib_prefix=no
14884  library_names_spec='$libname${shared_ext} $libname.a'
14885  dynamic_linker='OS/2 ld.exe'
14886  shlibpath_var=LIBPATH
14887  ;;
14888
14889osf3* | osf4* | osf5*)
14890  version_type=osf
14891  need_lib_prefix=no
14892  need_version=no
14893  soname_spec='${libname}${release}${shared_ext}$major'
14894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895  shlibpath_var=LD_LIBRARY_PATH
14896  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14897  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14898  ;;
14899
14900solaris*)
14901  version_type=linux
14902  need_lib_prefix=no
14903  need_version=no
14904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905  soname_spec='${libname}${release}${shared_ext}$major'
14906  shlibpath_var=LD_LIBRARY_PATH
14907  shlibpath_overrides_runpath=yes
14908  hardcode_into_libs=yes
14909  # ldd complains unless libraries are executable
14910  postinstall_cmds='chmod +x $lib'
14911  ;;
14912
14913sunos4*)
14914  version_type=sunos
14915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14916  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14917  shlibpath_var=LD_LIBRARY_PATH
14918  shlibpath_overrides_runpath=yes
14919  if test "$with_gnu_ld" = yes; then
14920    need_lib_prefix=no
14921  fi
14922  need_version=yes
14923  ;;
14924
14925sysv4 | sysv4.3*)
14926  version_type=linux
14927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928  soname_spec='${libname}${release}${shared_ext}$major'
14929  shlibpath_var=LD_LIBRARY_PATH
14930  case $host_vendor in
14931    sni)
14932      shlibpath_overrides_runpath=no
14933      need_lib_prefix=no
14934      export_dynamic_flag_spec='${wl}-Blargedynsym'
14935      runpath_var=LD_RUN_PATH
14936      ;;
14937    siemens)
14938      need_lib_prefix=no
14939      ;;
14940    motorola)
14941      need_lib_prefix=no
14942      need_version=no
14943      shlibpath_overrides_runpath=no
14944      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14945      ;;
14946  esac
14947  ;;
14948
14949sysv4*MP*)
14950  if test -d /usr/nec ;then
14951    version_type=linux
14952    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14953    soname_spec='$libname${shared_ext}.$major'
14954    shlibpath_var=LD_LIBRARY_PATH
14955  fi
14956  ;;
14957
14958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14959  version_type=freebsd-elf
14960  need_lib_prefix=no
14961  need_version=no
14962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14963  soname_spec='${libname}${release}${shared_ext}$major'
14964  shlibpath_var=LD_LIBRARY_PATH
14965  hardcode_into_libs=yes
14966  if test "$with_gnu_ld" = yes; then
14967    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14968    shlibpath_overrides_runpath=no
14969  else
14970    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14971    shlibpath_overrides_runpath=yes
14972    case $host_os in
14973      sco3.2v5*)
14974        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14975	;;
14976    esac
14977  fi
14978  sys_lib_dlsearch_path_spec='/usr/lib'
14979  ;;
14980
14981uts4*)
14982  version_type=linux
14983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14984  soname_spec='${libname}${release}${shared_ext}$major'
14985  shlibpath_var=LD_LIBRARY_PATH
14986  ;;
14987
14988*)
14989  dynamic_linker=no
14990  ;;
14991esac
14992echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14993echo "${ECHO_T}$dynamic_linker" >&6
14994test "$dynamic_linker" = no && can_build_shared=no
14995
14996variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14997if test "$GCC" = yes; then
14998  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14999fi
15000
15001echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15002echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15003hardcode_action_F77=
15004if test -n "$hardcode_libdir_flag_spec_F77" || \
15005   test -n "$runpath_var_F77" || \
15006   test "X$hardcode_automatic_F77" = "Xyes" ; then
15007
15008  # We can hardcode non-existant directories.
15009  if test "$hardcode_direct_F77" != no &&
15010     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15011     # have to relink, otherwise we might link with an installed library
15012     # when we should be linking with a yet-to-be-installed one
15013     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15014     test "$hardcode_minus_L_F77" != no; then
15015    # Linking always hardcodes the temporary library directory.
15016    hardcode_action_F77=relink
15017  else
15018    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15019    hardcode_action_F77=immediate
15020  fi
15021else
15022  # We cannot hardcode anything, or else we can only hardcode existing
15023  # directories.
15024  hardcode_action_F77=unsupported
15025fi
15026echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15027echo "${ECHO_T}$hardcode_action_F77" >&6
15028
15029if test "$hardcode_action_F77" = relink; then
15030  # Fast installation is not supported
15031  enable_fast_install=no
15032elif test "$shlibpath_overrides_runpath" = yes ||
15033     test "$enable_shared" = no; then
15034  # Fast installation is not necessary
15035  enable_fast_install=needless
15036fi
15037
15038
15039# The else clause should only fire when bootstrapping the
15040# libtool distribution, otherwise you forgot to ship ltmain.sh
15041# with your package, and you will get complaints that there are
15042# no rules to generate ltmain.sh.
15043if test -f "$ltmain"; then
15044  # See if we are running on zsh, and set the options which allow our commands through
15045  # without removal of \ escapes.
15046  if test -n "${ZSH_VERSION+set}" ; then
15047    setopt NO_GLOB_SUBST
15048  fi
15049  # Now quote all the things that may contain metacharacters while being
15050  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15051  # variables and quote the copies for generation of the libtool script.
15052  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15053    SED SHELL STRIP \
15054    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15055    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15056    deplibs_check_method reload_flag reload_cmds need_locks \
15057    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15058    lt_cv_sys_global_symbol_to_c_name_address \
15059    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15060    old_postinstall_cmds old_postuninstall_cmds \
15061    compiler_F77 \
15062    CC_F77 \
15063    LD_F77 \
15064    lt_prog_compiler_wl_F77 \
15065    lt_prog_compiler_pic_F77 \
15066    lt_prog_compiler_static_F77 \
15067    lt_prog_compiler_no_builtin_flag_F77 \
15068    export_dynamic_flag_spec_F77 \
15069    thread_safe_flag_spec_F77 \
15070    whole_archive_flag_spec_F77 \
15071    enable_shared_with_static_runtimes_F77 \
15072    old_archive_cmds_F77 \
15073    old_archive_from_new_cmds_F77 \
15074    predep_objects_F77 \
15075    postdep_objects_F77 \
15076    predeps_F77 \
15077    postdeps_F77 \
15078    compiler_lib_search_path_F77 \
15079    archive_cmds_F77 \
15080    archive_expsym_cmds_F77 \
15081    postinstall_cmds_F77 \
15082    postuninstall_cmds_F77 \
15083    old_archive_from_expsyms_cmds_F77 \
15084    allow_undefined_flag_F77 \
15085    no_undefined_flag_F77 \
15086    export_symbols_cmds_F77 \
15087    hardcode_libdir_flag_spec_F77 \
15088    hardcode_libdir_flag_spec_ld_F77 \
15089    hardcode_libdir_separator_F77 \
15090    hardcode_automatic_F77 \
15091    module_cmds_F77 \
15092    module_expsym_cmds_F77 \
15093    lt_cv_prog_compiler_c_o_F77 \
15094    exclude_expsyms_F77 \
15095    include_expsyms_F77; do
15096
15097    case $var in
15098    old_archive_cmds_F77 | \
15099    old_archive_from_new_cmds_F77 | \
15100    archive_cmds_F77 | \
15101    archive_expsym_cmds_F77 | \
15102    module_cmds_F77 | \
15103    module_expsym_cmds_F77 | \
15104    old_archive_from_expsyms_cmds_F77 | \
15105    export_symbols_cmds_F77 | \
15106    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15107    postinstall_cmds | postuninstall_cmds | \
15108    old_postinstall_cmds | old_postuninstall_cmds | \
15109    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15110      # Double-quote double-evaled strings.
15111      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15112      ;;
15113    *)
15114      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15115      ;;
15116    esac
15117  done
15118
15119  case $lt_echo in
15120  *'\$0 --fallback-echo"')
15121    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15122    ;;
15123  esac
15124
15125cfgfile="$ofile"
15126
15127  cat <<__EOF__ >> "$cfgfile"
15128# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15129
15130# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15131
15132# Shell to use when invoking shell scripts.
15133SHELL=$lt_SHELL
15134
15135# Whether or not to build shared libraries.
15136build_libtool_libs=$enable_shared
15137
15138# Whether or not to build static libraries.
15139build_old_libs=$enable_static
15140
15141# Whether or not to add -lc for building shared libraries.
15142build_libtool_need_lc=$archive_cmds_need_lc_F77
15143
15144# Whether or not to disallow shared libs when runtime libs are static
15145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15146
15147# Whether or not to optimize for fast installation.
15148fast_install=$enable_fast_install
15149
15150# The host system.
15151host_alias=$host_alias
15152host=$host
15153host_os=$host_os
15154
15155# The build system.
15156build_alias=$build_alias
15157build=$build
15158build_os=$build_os
15159
15160# An echo program that does not interpret backslashes.
15161echo=$lt_echo
15162
15163# The archiver.
15164AR=$lt_AR
15165AR_FLAGS=$lt_AR_FLAGS
15166
15167# A C compiler.
15168LTCC=$lt_LTCC
15169
15170# LTCC compiler flags.
15171LTCFLAGS=$lt_LTCFLAGS
15172
15173# A language-specific compiler.
15174CC=$lt_compiler_F77
15175
15176# Is the compiler the GNU C compiler?
15177with_gcc=$GCC_F77
15178
15179# An ERE matcher.
15180EGREP=$lt_EGREP
15181
15182# The linker used to build libraries.
15183LD=$lt_LD_F77
15184
15185# Whether we need hard or soft links.
15186LN_S=$lt_LN_S
15187
15188# A BSD-compatible nm program.
15189NM=$lt_NM
15190
15191# A symbol stripping program
15192STRIP=$lt_STRIP
15193
15194# Used to examine libraries when file_magic_cmd begins "file"
15195MAGIC_CMD=$MAGIC_CMD
15196
15197# Used on cygwin: DLL creation program.
15198DLLTOOL="$DLLTOOL"
15199
15200# Used on cygwin: object dumper.
15201OBJDUMP="$OBJDUMP"
15202
15203# Used on cygwin: assembler.
15204AS="$AS"
15205
15206# The name of the directory that contains temporary libtool files.
15207objdir=$objdir
15208
15209# How to create reloadable object files.
15210reload_flag=$lt_reload_flag
15211reload_cmds=$lt_reload_cmds
15212
15213# How to pass a linker flag through the compiler.
15214wl=$lt_lt_prog_compiler_wl_F77
15215
15216# Object file suffix (normally "o").
15217objext="$ac_objext"
15218
15219# Old archive suffix (normally "a").
15220libext="$libext"
15221
15222# Shared library suffix (normally ".so").
15223shrext_cmds='$shrext_cmds'
15224
15225# Executable file suffix (normally "").
15226exeext="$exeext"
15227
15228# Additional compiler flags for building library objects.
15229pic_flag=$lt_lt_prog_compiler_pic_F77
15230pic_mode=$pic_mode
15231
15232# What is the maximum length of a command?
15233max_cmd_len=$lt_cv_sys_max_cmd_len
15234
15235# Does compiler simultaneously support -c and -o options?
15236compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15237
15238# Must we lock files when doing compilation?
15239need_locks=$lt_need_locks
15240
15241# Do we need the lib prefix for modules?
15242need_lib_prefix=$need_lib_prefix
15243
15244# Do we need a version for libraries?
15245need_version=$need_version
15246
15247# Whether dlopen is supported.
15248dlopen_support=$enable_dlopen
15249
15250# Whether dlopen of programs is supported.
15251dlopen_self=$enable_dlopen_self
15252
15253# Whether dlopen of statically linked programs is supported.
15254dlopen_self_static=$enable_dlopen_self_static
15255
15256# Compiler flag to prevent dynamic linking.
15257link_static_flag=$lt_lt_prog_compiler_static_F77
15258
15259# Compiler flag to turn off builtin functions.
15260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15261
15262# Compiler flag to allow reflexive dlopens.
15263export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15264
15265# Compiler flag to generate shared objects directly from archives.
15266whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15267
15268# Compiler flag to generate thread-safe objects.
15269thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15270
15271# Library versioning type.
15272version_type=$version_type
15273
15274# Format of library name prefix.
15275libname_spec=$lt_libname_spec
15276
15277# List of archive names.  First name is the real one, the rest are links.
15278# The last name is the one that the linker finds with -lNAME.
15279library_names_spec=$lt_library_names_spec
15280
15281# The coded name of the library, if different from the real name.
15282soname_spec=$lt_soname_spec
15283
15284# Commands used to build and install an old-style archive.
15285RANLIB=$lt_RANLIB
15286old_archive_cmds=$lt_old_archive_cmds_F77
15287old_postinstall_cmds=$lt_old_postinstall_cmds
15288old_postuninstall_cmds=$lt_old_postuninstall_cmds
15289
15290# Create an old-style archive from a shared archive.
15291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15292
15293# Create a temporary old-style archive to link instead of a shared archive.
15294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15295
15296# Commands used to build and install a shared archive.
15297archive_cmds=$lt_archive_cmds_F77
15298archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15299postinstall_cmds=$lt_postinstall_cmds
15300postuninstall_cmds=$lt_postuninstall_cmds
15301
15302# Commands used to build a loadable module (assumed same as above if empty)
15303module_cmds=$lt_module_cmds_F77
15304module_expsym_cmds=$lt_module_expsym_cmds_F77
15305
15306# Commands to strip libraries.
15307old_striplib=$lt_old_striplib
15308striplib=$lt_striplib
15309
15310# Dependencies to place before the objects being linked to create a
15311# shared library.
15312predep_objects=$lt_predep_objects_F77
15313
15314# Dependencies to place after the objects being linked to create a
15315# shared library.
15316postdep_objects=$lt_postdep_objects_F77
15317
15318# Dependencies to place before the objects being linked to create a
15319# shared library.
15320predeps=$lt_predeps_F77
15321
15322# Dependencies to place after the objects being linked to create a
15323# shared library.
15324postdeps=$lt_postdeps_F77
15325
15326# The library search path used internally by the compiler when linking
15327# a shared library.
15328compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15329
15330# Method to check whether dependent libraries are shared objects.
15331deplibs_check_method=$lt_deplibs_check_method
15332
15333# Command to use when deplibs_check_method == file_magic.
15334file_magic_cmd=$lt_file_magic_cmd
15335
15336# Flag that allows shared libraries with undefined symbols to be built.
15337allow_undefined_flag=$lt_allow_undefined_flag_F77
15338
15339# Flag that forces no undefined symbols.
15340no_undefined_flag=$lt_no_undefined_flag_F77
15341
15342# Commands used to finish a libtool library installation in a directory.
15343finish_cmds=$lt_finish_cmds
15344
15345# Same as above, but a single script fragment to be evaled but not shown.
15346finish_eval=$lt_finish_eval
15347
15348# Take the output of nm and produce a listing of raw symbols and C names.
15349global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15350
15351# Transform the output of nm in a proper C declaration
15352global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15353
15354# Transform the output of nm in a C name address pair
15355global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15356
15357# This is the shared library runtime path variable.
15358runpath_var=$runpath_var
15359
15360# This is the shared library path variable.
15361shlibpath_var=$shlibpath_var
15362
15363# Is shlibpath searched before the hard-coded library search path?
15364shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15365
15366# How to hardcode a shared library path into an executable.
15367hardcode_action=$hardcode_action_F77
15368
15369# Whether we should hardcode library paths into libraries.
15370hardcode_into_libs=$hardcode_into_libs
15371
15372# Flag to hardcode \$libdir into a binary during linking.
15373# This must work even if \$libdir does not exist.
15374hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15375
15376# If ld is used when linking, flag to hardcode \$libdir into
15377# a binary during linking. This must work even if \$libdir does
15378# not exist.
15379hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15380
15381# Whether we need a single -rpath flag with a separated argument.
15382hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15383
15384# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15385# resulting binary.
15386hardcode_direct=$hardcode_direct_F77
15387
15388# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15389# resulting binary.
15390hardcode_minus_L=$hardcode_minus_L_F77
15391
15392# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15393# the resulting binary.
15394hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15395
15396# Set to yes if building a shared library automatically hardcodes DIR into the library
15397# and all subsequent libraries and executables linked against it.
15398hardcode_automatic=$hardcode_automatic_F77
15399
15400# Variables whose values should be saved in libtool wrapper scripts and
15401# restored at relink time.
15402variables_saved_for_relink="$variables_saved_for_relink"
15403
15404# Whether libtool must link a program against all its dependency libraries.
15405link_all_deplibs=$link_all_deplibs_F77
15406
15407# Compile-time system search path for libraries
15408sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15409
15410# Run-time system search path for libraries
15411sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15412
15413# Fix the shell variable \$srcfile for the compiler.
15414fix_srcfile_path="$fix_srcfile_path_F77"
15415
15416# Set to yes if exported symbols are required.
15417always_export_symbols=$always_export_symbols_F77
15418
15419# The commands to list exported symbols.
15420export_symbols_cmds=$lt_export_symbols_cmds_F77
15421
15422# The commands to extract the exported symbol list from a shared archive.
15423extract_expsyms_cmds=$lt_extract_expsyms_cmds
15424
15425# Symbols that should not be listed in the preloaded symbols.
15426exclude_expsyms=$lt_exclude_expsyms_F77
15427
15428# Symbols that must always be exported.
15429include_expsyms=$lt_include_expsyms_F77
15430
15431# ### END LIBTOOL TAG CONFIG: $tagname
15432
15433__EOF__
15434
15435
15436else
15437  # If there is no Makefile yet, we rely on a make rule to execute
15438  # `config.status --recheck' to rerun these tests and create the
15439  # libtool script then.
15440  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15441  if test -f "$ltmain_in"; then
15442    test -f Makefile && make "$ltmain"
15443  fi
15444fi
15445
15446
15447ac_ext=c
15448ac_cpp='$CPP $CPPFLAGS'
15449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15451ac_compiler_gnu=$ac_cv_c_compiler_gnu
15452
15453CC="$lt_save_CC"
15454
15455	else
15456	  tagname=""
15457	fi
15458	;;
15459
15460      GCJ)
15461	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15462
15463
15464
15465# Source file extension for Java test sources.
15466ac_ext=java
15467
15468# Object file extension for compiled Java test sources.
15469objext=o
15470objext_GCJ=$objext
15471
15472# Code to be used in simple compile tests
15473lt_simple_compile_test_code="class foo {}\n"
15474
15475# Code to be used in simple link tests
15476lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15477
15478# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15479
15480# If no C compiler was specified, use CC.
15481LTCC=${LTCC-"$CC"}
15482
15483# If no C compiler flags were specified, use CFLAGS.
15484LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15485
15486# Allow CC to be a program name with arguments.
15487compiler=$CC
15488
15489
15490# save warnings/boilerplate of simple test code
15491ac_outfile=conftest.$ac_objext
15492printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15493eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15494_lt_compiler_boilerplate=`cat conftest.err`
15495$rm conftest*
15496
15497ac_outfile=conftest.$ac_objext
15498printf "$lt_simple_link_test_code" >conftest.$ac_ext
15499eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15500_lt_linker_boilerplate=`cat conftest.err`
15501$rm conftest*
15502
15503
15504# Allow CC to be a program name with arguments.
15505lt_save_CC="$CC"
15506CC=${GCJ-"gcj"}
15507compiler=$CC
15508compiler_GCJ=$CC
15509for cc_temp in $compiler""; do
15510  case $cc_temp in
15511    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15512    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15513    \-*) ;;
15514    *) break;;
15515  esac
15516done
15517cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15518
15519
15520# GCJ did not exist at the time GCC didn't implicitly link libc in.
15521archive_cmds_need_lc_GCJ=no
15522
15523old_archive_cmds_GCJ=$old_archive_cmds
15524
15525## CAVEAT EMPTOR:
15526## There is no encapsulation within the following macros, do not change
15527## the running order or otherwise move them around unless you know exactly
15528## what you are doing...
15529
15530lt_prog_compiler_no_builtin_flag_GCJ=
15531
15532if test "$GCC" = yes; then
15533  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15534
15535
15536echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15537echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15538if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15539  echo $ECHO_N "(cached) $ECHO_C" >&6
15540else
15541  lt_cv_prog_compiler_rtti_exceptions=no
15542  ac_outfile=conftest.$ac_objext
15543   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15544   lt_compiler_flag="-fno-rtti -fno-exceptions"
15545   # Insert the option either (1) after the last *FLAGS variable, or
15546   # (2) before a word containing "conftest.", or (3) at the end.
15547   # Note that $ac_compile itself does not contain backslashes and begins
15548   # with a dollar sign (not a hyphen), so the echo should work correctly.
15549   # The option is referenced via a variable to avoid confusing sed.
15550   lt_compile=`echo "$ac_compile" | $SED \
15551   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15553   -e 's:$: $lt_compiler_flag:'`
15554   (eval echo "\"\$as_me:15554: $lt_compile\"" >&5)
15555   (eval "$lt_compile" 2>conftest.err)
15556   ac_status=$?
15557   cat conftest.err >&5
15558   echo "$as_me:15558: \$? = $ac_status" >&5
15559   if (exit $ac_status) && test -s "$ac_outfile"; then
15560     # The compiler can only warn and ignore the option if not recognized
15561     # So say no if there are warnings other than the usual output.
15562     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15563     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15564     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15565       lt_cv_prog_compiler_rtti_exceptions=yes
15566     fi
15567   fi
15568   $rm conftest*
15569
15570fi
15571echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15572echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15573
15574if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15575    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15576else
15577    :
15578fi
15579
15580fi
15581
15582lt_prog_compiler_wl_GCJ=
15583lt_prog_compiler_pic_GCJ=
15584lt_prog_compiler_static_GCJ=
15585
15586echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15587echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15588
15589  if test "$GCC" = yes; then
15590    lt_prog_compiler_wl_GCJ='-Wl,'
15591    lt_prog_compiler_static_GCJ='-static'
15592
15593    case $host_os in
15594      aix*)
15595      # All AIX code is PIC.
15596      if test "$host_cpu" = ia64; then
15597	# AIX 5 now supports IA64 processor
15598	lt_prog_compiler_static_GCJ='-Bstatic'
15599      fi
15600      ;;
15601
15602    amigaos*)
15603      # FIXME: we need at least 68020 code to build shared libraries, but
15604      # adding the `-m68020' flag to GCC prevents building anything better,
15605      # like `-m68040'.
15606      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15607      ;;
15608
15609    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15610      # PIC is the default for these OSes.
15611      ;;
15612
15613    mingw* | pw32* | os2*)
15614      # This hack is so that the source file can tell whether it is being
15615      # built for inclusion in a dll (and should export symbols for example).
15616      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15617      ;;
15618
15619    darwin* | rhapsody*)
15620      # PIC is the default on this platform
15621      # Common symbols not allowed in MH_DYLIB files
15622      lt_prog_compiler_pic_GCJ='-fno-common'
15623      ;;
15624
15625    interix3*)
15626      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15627      # Instead, we relocate shared libraries at runtime.
15628      ;;
15629
15630    msdosdjgpp*)
15631      # Just because we use GCC doesn't mean we suddenly get shared libraries
15632      # on systems that don't support them.
15633      lt_prog_compiler_can_build_shared_GCJ=no
15634      enable_shared=no
15635      ;;
15636
15637    sysv4*MP*)
15638      if test -d /usr/nec; then
15639	lt_prog_compiler_pic_GCJ=-Kconform_pic
15640      fi
15641      ;;
15642
15643    hpux*)
15644      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15645      # not for PA HP-UX.
15646      case $host_cpu in
15647      hppa*64*|ia64*)
15648	# +Z the default
15649	;;
15650      *)
15651	lt_prog_compiler_pic_GCJ='-fPIC'
15652	;;
15653      esac
15654      ;;
15655
15656    *)
15657      lt_prog_compiler_pic_GCJ='-fPIC'
15658      ;;
15659    esac
15660  else
15661    # PORTME Check for flag to pass linker flags through the system compiler.
15662    case $host_os in
15663    aix*)
15664      lt_prog_compiler_wl_GCJ='-Wl,'
15665      if test "$host_cpu" = ia64; then
15666	# AIX 5 now supports IA64 processor
15667	lt_prog_compiler_static_GCJ='-Bstatic'
15668      else
15669	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15670      fi
15671      ;;
15672      darwin*)
15673        # PIC is the default on this platform
15674        # Common symbols not allowed in MH_DYLIB files
15675       case $cc_basename in
15676         xlc*)
15677         lt_prog_compiler_pic_GCJ='-qnocommon'
15678         lt_prog_compiler_wl_GCJ='-Wl,'
15679         ;;
15680       esac
15681       ;;
15682
15683    mingw* | pw32* | os2*)
15684      # This hack is so that the source file can tell whether it is being
15685      # built for inclusion in a dll (and should export symbols for example).
15686      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15687      ;;
15688
15689    hpux9* | hpux10* | hpux11*)
15690      lt_prog_compiler_wl_GCJ='-Wl,'
15691      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15692      # not for PA HP-UX.
15693      case $host_cpu in
15694      hppa*64*|ia64*)
15695	# +Z the default
15696	;;
15697      *)
15698	lt_prog_compiler_pic_GCJ='+Z'
15699	;;
15700      esac
15701      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15702      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15703      ;;
15704
15705    irix5* | irix6* | nonstopux*)
15706      lt_prog_compiler_wl_GCJ='-Wl,'
15707      # PIC (with -KPIC) is the default.
15708      lt_prog_compiler_static_GCJ='-non_shared'
15709      ;;
15710
15711    newsos6)
15712      lt_prog_compiler_pic_GCJ='-KPIC'
15713      lt_prog_compiler_static_GCJ='-Bstatic'
15714      ;;
15715
15716    linux*)
15717      case $cc_basename in
15718      icc* | ecc*)
15719	lt_prog_compiler_wl_GCJ='-Wl,'
15720	lt_prog_compiler_pic_GCJ='-KPIC'
15721	lt_prog_compiler_static_GCJ='-static'
15722        ;;
15723      pgcc* | pgf77* | pgf90* | pgf95*)
15724        # Portland Group compilers (*not* the Pentium gcc compiler,
15725	# which looks to be a dead project)
15726	lt_prog_compiler_wl_GCJ='-Wl,'
15727	lt_prog_compiler_pic_GCJ='-fpic'
15728	lt_prog_compiler_static_GCJ='-Bstatic'
15729        ;;
15730      ccc*)
15731        lt_prog_compiler_wl_GCJ='-Wl,'
15732        # All Alpha code is PIC.
15733        lt_prog_compiler_static_GCJ='-non_shared'
15734        ;;
15735      esac
15736      ;;
15737
15738    osf3* | osf4* | osf5*)
15739      lt_prog_compiler_wl_GCJ='-Wl,'
15740      # All OSF/1 code is PIC.
15741      lt_prog_compiler_static_GCJ='-non_shared'
15742      ;;
15743
15744    solaris*)
15745      lt_prog_compiler_pic_GCJ='-KPIC'
15746      lt_prog_compiler_static_GCJ='-Bstatic'
15747      case $cc_basename in
15748      f77* | f90* | f95*)
15749	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15750      *)
15751	lt_prog_compiler_wl_GCJ='-Wl,';;
15752      esac
15753      ;;
15754
15755    sunos4*)
15756      lt_prog_compiler_wl_GCJ='-Qoption ld '
15757      lt_prog_compiler_pic_GCJ='-PIC'
15758      lt_prog_compiler_static_GCJ='-Bstatic'
15759      ;;
15760
15761    sysv4 | sysv4.2uw2* | sysv4.3*)
15762      lt_prog_compiler_wl_GCJ='-Wl,'
15763      lt_prog_compiler_pic_GCJ='-KPIC'
15764      lt_prog_compiler_static_GCJ='-Bstatic'
15765      ;;
15766
15767    sysv4*MP*)
15768      if test -d /usr/nec ;then
15769	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15770	lt_prog_compiler_static_GCJ='-Bstatic'
15771      fi
15772      ;;
15773
15774    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15775      lt_prog_compiler_wl_GCJ='-Wl,'
15776      lt_prog_compiler_pic_GCJ='-KPIC'
15777      lt_prog_compiler_static_GCJ='-Bstatic'
15778      ;;
15779
15780    unicos*)
15781      lt_prog_compiler_wl_GCJ='-Wl,'
15782      lt_prog_compiler_can_build_shared_GCJ=no
15783      ;;
15784
15785    uts4*)
15786      lt_prog_compiler_pic_GCJ='-pic'
15787      lt_prog_compiler_static_GCJ='-Bstatic'
15788      ;;
15789
15790    *)
15791      lt_prog_compiler_can_build_shared_GCJ=no
15792      ;;
15793    esac
15794  fi
15795
15796echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15797echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15798
15799#
15800# Check to make sure the PIC flag actually works.
15801#
15802if test -n "$lt_prog_compiler_pic_GCJ"; then
15803
15804echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15805echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15806if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15807  echo $ECHO_N "(cached) $ECHO_C" >&6
15808else
15809  lt_prog_compiler_pic_works_GCJ=no
15810  ac_outfile=conftest.$ac_objext
15811   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15812   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15813   # Insert the option either (1) after the last *FLAGS variable, or
15814   # (2) before a word containing "conftest.", or (3) at the end.
15815   # Note that $ac_compile itself does not contain backslashes and begins
15816   # with a dollar sign (not a hyphen), so the echo should work correctly.
15817   # The option is referenced via a variable to avoid confusing sed.
15818   lt_compile=`echo "$ac_compile" | $SED \
15819   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15820   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15821   -e 's:$: $lt_compiler_flag:'`
15822   (eval echo "\"\$as_me:15822: $lt_compile\"" >&5)
15823   (eval "$lt_compile" 2>conftest.err)
15824   ac_status=$?
15825   cat conftest.err >&5
15826   echo "$as_me:15826: \$? = $ac_status" >&5
15827   if (exit $ac_status) && test -s "$ac_outfile"; then
15828     # The compiler can only warn and ignore the option if not recognized
15829     # So say no if there are warnings other than the usual output.
15830     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15831     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15832     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15833       lt_prog_compiler_pic_works_GCJ=yes
15834     fi
15835   fi
15836   $rm conftest*
15837
15838fi
15839echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15840echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15841
15842if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15843    case $lt_prog_compiler_pic_GCJ in
15844     "" | " "*) ;;
15845     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15846     esac
15847else
15848    lt_prog_compiler_pic_GCJ=
15849     lt_prog_compiler_can_build_shared_GCJ=no
15850fi
15851
15852fi
15853case $host_os in
15854  # For platforms which do not support PIC, -DPIC is meaningless:
15855  *djgpp*)
15856    lt_prog_compiler_pic_GCJ=
15857    ;;
15858  *)
15859    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15860    ;;
15861esac
15862
15863#
15864# Check to make sure the static flag actually works.
15865#
15866wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15867echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15868echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15869if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15870  echo $ECHO_N "(cached) $ECHO_C" >&6
15871else
15872  lt_prog_compiler_static_works_GCJ=no
15873   save_LDFLAGS="$LDFLAGS"
15874   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15875   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15876   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15877     # The linker can only warn and ignore the option if not recognized
15878     # So say no if there are warnings
15879     if test -s conftest.err; then
15880       # Append any errors to the config.log.
15881       cat conftest.err 1>&5
15882       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15883       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15884       if diff conftest.exp conftest.er2 >/dev/null; then
15885         lt_prog_compiler_static_works_GCJ=yes
15886       fi
15887     else
15888       lt_prog_compiler_static_works_GCJ=yes
15889     fi
15890   fi
15891   $rm conftest*
15892   LDFLAGS="$save_LDFLAGS"
15893
15894fi
15895echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15896echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15897
15898if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15899    :
15900else
15901    lt_prog_compiler_static_GCJ=
15902fi
15903
15904
15905echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15906echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15907if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15908  echo $ECHO_N "(cached) $ECHO_C" >&6
15909else
15910  lt_cv_prog_compiler_c_o_GCJ=no
15911   $rm -r conftest 2>/dev/null
15912   mkdir conftest
15913   cd conftest
15914   mkdir out
15915   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15916
15917   lt_compiler_flag="-o out/conftest2.$ac_objext"
15918   # Insert the option either (1) after the last *FLAGS variable, or
15919   # (2) before a word containing "conftest.", or (3) at the end.
15920   # Note that $ac_compile itself does not contain backslashes and begins
15921   # with a dollar sign (not a hyphen), so the echo should work correctly.
15922   lt_compile=`echo "$ac_compile" | $SED \
15923   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15924   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15925   -e 's:$: $lt_compiler_flag:'`
15926   (eval echo "\"\$as_me:15926: $lt_compile\"" >&5)
15927   (eval "$lt_compile" 2>out/conftest.err)
15928   ac_status=$?
15929   cat out/conftest.err >&5
15930   echo "$as_me:15930: \$? = $ac_status" >&5
15931   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15932   then
15933     # The compiler can only warn and ignore the option if not recognized
15934     # So say no if there are warnings
15935     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15936     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15937     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15938       lt_cv_prog_compiler_c_o_GCJ=yes
15939     fi
15940   fi
15941   chmod u+w . 2>&5
15942   $rm conftest*
15943   # SGI C++ compiler will create directory out/ii_files/ for
15944   # template instantiation
15945   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15946   $rm out/* && rmdir out
15947   cd ..
15948   rmdir conftest
15949   $rm conftest*
15950
15951fi
15952echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15953echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15954
15955
15956hard_links="nottested"
15957if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15958  # do not overwrite the value of need_locks provided by the user
15959  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15960echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15961  hard_links=yes
15962  $rm conftest*
15963  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15964  touch conftest.a
15965  ln conftest.a conftest.b 2>&5 || hard_links=no
15966  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15967  echo "$as_me:$LINENO: result: $hard_links" >&5
15968echo "${ECHO_T}$hard_links" >&6
15969  if test "$hard_links" = no; then
15970    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15971echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15972    need_locks=warn
15973  fi
15974else
15975  need_locks=no
15976fi
15977
15978echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15979echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15980
15981  runpath_var=
15982  allow_undefined_flag_GCJ=
15983  enable_shared_with_static_runtimes_GCJ=no
15984  archive_cmds_GCJ=
15985  archive_expsym_cmds_GCJ=
15986  old_archive_From_new_cmds_GCJ=
15987  old_archive_from_expsyms_cmds_GCJ=
15988  export_dynamic_flag_spec_GCJ=
15989  whole_archive_flag_spec_GCJ=
15990  thread_safe_flag_spec_GCJ=
15991  hardcode_libdir_flag_spec_GCJ=
15992  hardcode_libdir_flag_spec_ld_GCJ=
15993  hardcode_libdir_separator_GCJ=
15994  hardcode_direct_GCJ=no
15995  hardcode_minus_L_GCJ=no
15996  hardcode_shlibpath_var_GCJ=unsupported
15997  link_all_deplibs_GCJ=unknown
15998  hardcode_automatic_GCJ=no
15999  module_cmds_GCJ=
16000  module_expsym_cmds_GCJ=
16001  always_export_symbols_GCJ=no
16002  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16003  # include_expsyms should be a list of space-separated symbols to be *always*
16004  # included in the symbol list
16005  include_expsyms_GCJ=
16006  # exclude_expsyms can be an extended regexp of symbols to exclude
16007  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16008  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16009  # as well as any symbol that contains `d'.
16010  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16011  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16012  # platforms (ab)use it in PIC code, but their linkers get confused if
16013  # the symbol is explicitly referenced.  Since portable code cannot
16014  # rely on this symbol name, it's probably fine to never include it in
16015  # preloaded symbol tables.
16016  extract_expsyms_cmds=
16017  # Just being paranoid about ensuring that cc_basename is set.
16018  for cc_temp in $compiler""; do
16019  case $cc_temp in
16020    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16021    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16022    \-*) ;;
16023    *) break;;
16024  esac
16025done
16026cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16027
16028  case $host_os in
16029  cygwin* | mingw* | pw32*)
16030    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16031    # When not using gcc, we currently assume that we are using
16032    # Microsoft Visual C++.
16033    if test "$GCC" != yes; then
16034      with_gnu_ld=no
16035    fi
16036    ;;
16037  interix*)
16038    # we just hope/assume this is gcc and not c89 (= MSVC++)
16039    with_gnu_ld=yes
16040    ;;
16041  openbsd*)
16042    with_gnu_ld=no
16043    ;;
16044  esac
16045
16046  ld_shlibs_GCJ=yes
16047  if test "$with_gnu_ld" = yes; then
16048    # If archive_cmds runs LD, not CC, wlarc should be empty
16049    wlarc='${wl}'
16050
16051    # Set some defaults for GNU ld with shared library support. These
16052    # are reset later if shared libraries are not supported. Putting them
16053    # here allows them to be overridden if necessary.
16054    runpath_var=LD_RUN_PATH
16055    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16056    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16057    # ancient GNU ld didn't support --whole-archive et. al.
16058    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16059	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16060      else
16061  	whole_archive_flag_spec_GCJ=
16062    fi
16063    supports_anon_versioning=no
16064    case `$LD -v 2>/dev/null` in
16065      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16066      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16067      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16068      *\ 2.11.*) ;; # other 2.11 versions
16069      *) supports_anon_versioning=yes ;;
16070    esac
16071
16072    # See if GNU ld supports shared libraries.
16073    case $host_os in
16074    aix3* | aix4* | aix5*)
16075      # On AIX/PPC, the GNU linker is very broken
16076      if test "$host_cpu" != ia64; then
16077	ld_shlibs_GCJ=no
16078	cat <<EOF 1>&2
16079
16080*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16081*** to be unable to reliably create shared libraries on AIX.
16082*** Therefore, libtool is disabling shared libraries support.  If you
16083*** really care for shared libraries, you may want to modify your PATH
16084*** so that a non-GNU linker is found, and then restart.
16085
16086EOF
16087      fi
16088      ;;
16089
16090    amigaos*)
16091      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)'
16092      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16093      hardcode_minus_L_GCJ=yes
16094
16095      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16096      # that the semantics of dynamic libraries on AmigaOS, at least up
16097      # to version 4, is to share data among multiple programs linked
16098      # with the same dynamic library.  Since this doesn't match the
16099      # behavior of shared libraries on other platforms, we can't use
16100      # them.
16101      ld_shlibs_GCJ=no
16102      ;;
16103
16104    beos*)
16105      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16106	allow_undefined_flag_GCJ=unsupported
16107	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16108	# support --undefined.  This deserves some investigation.  FIXME
16109	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16110      else
16111	ld_shlibs_GCJ=no
16112      fi
16113      ;;
16114
16115    cygwin* | mingw* | pw32*)
16116      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16117      # as there is no search path for DLLs.
16118      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16119      allow_undefined_flag_GCJ=unsupported
16120      always_export_symbols_GCJ=no
16121      enable_shared_with_static_runtimes_GCJ=yes
16122      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16123
16124      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16125        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16126	# If the export-symbols file already is a .def file (1st line
16127	# is EXPORTS), use it as is; otherwise, prepend...
16128	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16129	  cp $export_symbols $output_objdir/$soname.def;
16130	else
16131	  echo EXPORTS > $output_objdir/$soname.def;
16132	  cat $export_symbols >> $output_objdir/$soname.def;
16133	fi~
16134	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16135      else
16136	ld_shlibs_GCJ=no
16137      fi
16138      ;;
16139
16140    interix3*)
16141      hardcode_direct_GCJ=no
16142      hardcode_shlibpath_var_GCJ=no
16143      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16144      export_dynamic_flag_spec_GCJ='${wl}-E'
16145      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16146      # Instead, shared libraries are loaded at an image base (0x10000000 by
16147      # default) and relocated if they conflict, which is a slow very memory
16148      # consuming and fragmenting process.  To avoid this, we pick a random,
16149      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16150      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16151      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16152      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16153      ;;
16154
16155    linux*)
16156      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16157	tmp_addflag=
16158	case $cc_basename,$host_cpu in
16159	pgcc*)				# Portland Group C compiler
16160	  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'
16161	  tmp_addflag=' $pic_flag'
16162	  ;;
16163	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16164	  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'
16165	  tmp_addflag=' $pic_flag -Mnomain' ;;
16166	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16167	  tmp_addflag=' -i_dynamic' ;;
16168	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16169	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16170	ifc* | ifort*)			# Intel Fortran compiler
16171	  tmp_addflag=' -nofor_main' ;;
16172	esac
16173	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174
16175	if test $supports_anon_versioning = yes; then
16176	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16177  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16178  $echo "local: *; };" >> $output_objdir/$libname.ver~
16179	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16180	fi
16181      else
16182	ld_shlibs_GCJ=no
16183      fi
16184      ;;
16185
16186    netbsd*)
16187      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16188	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16189	wlarc=
16190      else
16191	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16192	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16193      fi
16194      ;;
16195
16196    solaris*)
16197      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16198	ld_shlibs_GCJ=no
16199	cat <<EOF 1>&2
16200
16201*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16202*** create shared libraries on Solaris systems.  Therefore, libtool
16203*** is disabling shared libraries support.  We urge you to upgrade GNU
16204*** binutils to release 2.9.1 or newer.  Another option is to modify
16205*** your PATH or compiler configuration so that the native linker is
16206*** used, and then restart.
16207
16208EOF
16209      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16210	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16211	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16212      else
16213	ld_shlibs_GCJ=no
16214      fi
16215      ;;
16216
16217    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16218      case `$LD -v 2>&1` in
16219        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16220	ld_shlibs_GCJ=no
16221	cat <<_LT_EOF 1>&2
16222
16223*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16224*** reliably create shared libraries on SCO systems.  Therefore, libtool
16225*** is disabling shared libraries support.  We urge you to upgrade GNU
16226*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16227*** your PATH or compiler configuration so that the native linker is
16228*** used, and then restart.
16229
16230_LT_EOF
16231	;;
16232	*)
16233	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16234	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16235	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16236	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16237	  else
16238	    ld_shlibs_GCJ=no
16239	  fi
16240	;;
16241      esac
16242      ;;
16243
16244    sunos4*)
16245      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16246      wlarc=
16247      hardcode_direct_GCJ=yes
16248      hardcode_shlibpath_var_GCJ=no
16249      ;;
16250
16251    *)
16252      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16253	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16254	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16255      else
16256	ld_shlibs_GCJ=no
16257      fi
16258      ;;
16259    esac
16260
16261    if test "$ld_shlibs_GCJ" = no; then
16262      runpath_var=
16263      hardcode_libdir_flag_spec_GCJ=
16264      export_dynamic_flag_spec_GCJ=
16265      whole_archive_flag_spec_GCJ=
16266    fi
16267  else
16268    # PORTME fill in a description of your system's linker (not GNU ld)
16269    case $host_os in
16270    aix3*)
16271      allow_undefined_flag_GCJ=unsupported
16272      always_export_symbols_GCJ=yes
16273      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'
16274      # Note: this linker hardcodes the directories in LIBPATH if there
16275      # are no directories specified by -L.
16276      hardcode_minus_L_GCJ=yes
16277      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16278	# Neither direct hardcoding nor static linking is supported with a
16279	# broken collect2.
16280	hardcode_direct_GCJ=unsupported
16281      fi
16282      ;;
16283
16284    aix4* | aix5*)
16285      if test "$host_cpu" = ia64; then
16286	# On IA64, the linker does run time linking by default, so we don't
16287	# have to do anything special.
16288	aix_use_runtimelinking=no
16289	exp_sym_flag='-Bexport'
16290	no_entry_flag=""
16291      else
16292	# If we're using GNU nm, then we don't want the "-C" option.
16293	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16294	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16295	  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'
16296	else
16297	  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'
16298	fi
16299	aix_use_runtimelinking=no
16300
16301	# Test if we are trying to use run time linking or normal
16302	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16303	# need to do runtime linking.
16304	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16305	  for ld_flag in $LDFLAGS; do
16306  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16307  	    aix_use_runtimelinking=yes
16308  	    break
16309  	  fi
16310	  done
16311	  ;;
16312	esac
16313
16314	exp_sym_flag='-bexport'
16315	no_entry_flag='-bnoentry'
16316      fi
16317
16318      # When large executables or shared objects are built, AIX ld can
16319      # have problems creating the table of contents.  If linking a library
16320      # or program results in "error TOC overflow" add -mminimal-toc to
16321      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16322      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16323
16324      archive_cmds_GCJ=''
16325      hardcode_direct_GCJ=yes
16326      hardcode_libdir_separator_GCJ=':'
16327      link_all_deplibs_GCJ=yes
16328
16329      if test "$GCC" = yes; then
16330	case $host_os in aix4.[012]|aix4.[012].*)
16331	# We only want to do this on AIX 4.2 and lower, the check
16332	# below for broken collect2 doesn't work under 4.3+
16333	  collect2name=`${CC} -print-prog-name=collect2`
16334	  if test -f "$collect2name" && \
16335  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16336	  then
16337  	  # We have reworked collect2
16338  	  hardcode_direct_GCJ=yes
16339	  else
16340  	  # We have old collect2
16341  	  hardcode_direct_GCJ=unsupported
16342  	  # It fails to find uninstalled libraries when the uninstalled
16343  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16344  	  # to unsupported forces relinking
16345  	  hardcode_minus_L_GCJ=yes
16346  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16347  	  hardcode_libdir_separator_GCJ=
16348	  fi
16349	  ;;
16350	esac
16351	shared_flag='-shared'
16352	if test "$aix_use_runtimelinking" = yes; then
16353	  shared_flag="$shared_flag "'${wl}-G'
16354	fi
16355      else
16356	# not using gcc
16357	if test "$host_cpu" = ia64; then
16358  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16359  	# chokes on -Wl,-G. The following line is correct:
16360	  shared_flag='-G'
16361	else
16362	  if test "$aix_use_runtimelinking" = yes; then
16363	    shared_flag='${wl}-G'
16364	  else
16365	    shared_flag='${wl}-bM:SRE'
16366	  fi
16367	fi
16368      fi
16369
16370      # It seems that -bexpall does not export symbols beginning with
16371      # underscore (_), so it is better to generate a list of symbols to export.
16372      always_export_symbols_GCJ=yes
16373      if test "$aix_use_runtimelinking" = yes; then
16374	# Warning - without using the other runtime loading flags (-brtl),
16375	# -berok will link without error, but may produce a broken library.
16376	allow_undefined_flag_GCJ='-berok'
16377       # Determine the default libpath from the value encoded in an empty executable.
16378       cat >conftest.$ac_ext <<_ACEOF
16379/* confdefs.h.  */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h.  */
16384
16385int
16386main ()
16387{
16388
16389  ;
16390  return 0;
16391}
16392_ACEOF
16393rm -f conftest.$ac_objext conftest$ac_exeext
16394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16395  (eval $ac_link) 2>conftest.er1
16396  ac_status=$?
16397  grep -v '^ *+' conftest.er1 >conftest.err
16398  rm -f conftest.er1
16399  cat conftest.err >&5
16400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401  (exit $ac_status); } &&
16402	 { ac_try='test -z "$ac_c_werror_flag"
16403			 || test ! -s conftest.err'
16404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405  (eval $ac_try) 2>&5
16406  ac_status=$?
16407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408  (exit $ac_status); }; } &&
16409	 { ac_try='test -s conftest$ac_exeext'
16410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411  (eval $ac_try) 2>&5
16412  ac_status=$?
16413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414  (exit $ac_status); }; }; then
16415
16416aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16417}'`
16418# Check for a 64-bit object if we didn't find anything.
16419if 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; }
16420}'`; fi
16421else
16422  echo "$as_me: failed program was:" >&5
16423sed 's/^/| /' conftest.$ac_ext >&5
16424
16425fi
16426rm -f conftest.err conftest.$ac_objext \
16427      conftest$ac_exeext conftest.$ac_ext
16428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16429
16430       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16431	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16432       else
16433	if test "$host_cpu" = ia64; then
16434	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16435	  allow_undefined_flag_GCJ="-z nodefs"
16436	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16437	else
16438	 # Determine the default libpath from the value encoded in an empty executable.
16439	 cat >conftest.$ac_ext <<_ACEOF
16440/* confdefs.h.  */
16441_ACEOF
16442cat confdefs.h >>conftest.$ac_ext
16443cat >>conftest.$ac_ext <<_ACEOF
16444/* end confdefs.h.  */
16445
16446int
16447main ()
16448{
16449
16450  ;
16451  return 0;
16452}
16453_ACEOF
16454rm -f conftest.$ac_objext conftest$ac_exeext
16455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16456  (eval $ac_link) 2>conftest.er1
16457  ac_status=$?
16458  grep -v '^ *+' conftest.er1 >conftest.err
16459  rm -f conftest.er1
16460  cat conftest.err >&5
16461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462  (exit $ac_status); } &&
16463	 { ac_try='test -z "$ac_c_werror_flag"
16464			 || test ! -s conftest.err'
16465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466  (eval $ac_try) 2>&5
16467  ac_status=$?
16468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469  (exit $ac_status); }; } &&
16470	 { ac_try='test -s conftest$ac_exeext'
16471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472  (eval $ac_try) 2>&5
16473  ac_status=$?
16474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475  (exit $ac_status); }; }; then
16476
16477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16478}'`
16479# Check for a 64-bit object if we didn't find anything.
16480if 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; }
16481}'`; fi
16482else
16483  echo "$as_me: failed program was:" >&5
16484sed 's/^/| /' conftest.$ac_ext >&5
16485
16486fi
16487rm -f conftest.err conftest.$ac_objext \
16488      conftest$ac_exeext conftest.$ac_ext
16489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16490
16491	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16492	  # Warning - without using the other run time loading flags,
16493	  # -berok will link without error, but may produce a broken library.
16494	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16495	  allow_undefined_flag_GCJ=' ${wl}-berok'
16496	  # Exported symbols can be pulled into shared objects from archives
16497	  whole_archive_flag_spec_GCJ='$convenience'
16498	  archive_cmds_need_lc_GCJ=yes
16499	  # This is similar to how AIX traditionally builds its shared libraries.
16500	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16501	fi
16502      fi
16503      ;;
16504
16505    amigaos*)
16506      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)'
16507      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16508      hardcode_minus_L_GCJ=yes
16509      # see comment about different semantics on the GNU ld section
16510      ld_shlibs_GCJ=no
16511      ;;
16512
16513    bsdi[45]*)
16514      export_dynamic_flag_spec_GCJ=-rdynamic
16515      ;;
16516
16517    cygwin* | mingw* | pw32*)
16518      # When not using gcc, we currently assume that we are using
16519      # Microsoft Visual C++.
16520      # hardcode_libdir_flag_spec is actually meaningless, as there is
16521      # no search path for DLLs.
16522      hardcode_libdir_flag_spec_GCJ=' '
16523      allow_undefined_flag_GCJ=unsupported
16524      # Tell ltmain to make .lib files, not .a files.
16525      libext=lib
16526      # Tell ltmain to make .dll files, not .so files.
16527      shrext_cmds=".dll"
16528      # FIXME: Setting linknames here is a bad hack.
16529      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16530      # The linker will automatically build a .lib file if we build a DLL.
16531      old_archive_From_new_cmds_GCJ='true'
16532      # FIXME: Should let the user specify the lib program.
16533      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16534      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16535      enable_shared_with_static_runtimes_GCJ=yes
16536      ;;
16537
16538    darwin* | rhapsody*)
16539      case $host_os in
16540        rhapsody* | darwin1.[012])
16541         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16542         ;;
16543       *) # Darwin 1.3 on
16544         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16545           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16546         else
16547           case ${MACOSX_DEPLOYMENT_TARGET} in
16548             10.[012])
16549               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16550               ;;
16551             10.*)
16552               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16553               ;;
16554           esac
16555         fi
16556         ;;
16557      esac
16558      archive_cmds_need_lc_GCJ=no
16559      hardcode_direct_GCJ=no
16560      hardcode_automatic_GCJ=yes
16561      hardcode_shlibpath_var_GCJ=unsupported
16562      whole_archive_flag_spec_GCJ=''
16563      link_all_deplibs_GCJ=yes
16564    if test "$GCC" = yes ; then
16565    	output_verbose_link_cmd='echo'
16566        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16567      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16568      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16569      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}'
16570      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}'
16571    else
16572      case $cc_basename in
16573        xlc*)
16574         output_verbose_link_cmd='echo'
16575         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16576         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16577          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16578         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}'
16579          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}'
16580          ;;
16581       *)
16582         ld_shlibs_GCJ=no
16583          ;;
16584      esac
16585    fi
16586      ;;
16587
16588    dgux*)
16589      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16591      hardcode_shlibpath_var_GCJ=no
16592      ;;
16593
16594    freebsd1*)
16595      ld_shlibs_GCJ=no
16596      ;;
16597
16598    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16599    # support.  Future versions do this automatically, but an explicit c++rt0.o
16600    # does not break anything, and helps significantly (at the cost of a little
16601    # extra space).
16602    freebsd2.2*)
16603      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16604      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16605      hardcode_direct_GCJ=yes
16606      hardcode_shlibpath_var_GCJ=no
16607      ;;
16608
16609    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16610    freebsd2*)
16611      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16612      hardcode_direct_GCJ=yes
16613      hardcode_minus_L_GCJ=yes
16614      hardcode_shlibpath_var_GCJ=no
16615      ;;
16616
16617    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16618    freebsd* | kfreebsd*-gnu | dragonfly*)
16619      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16620      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16621      hardcode_direct_GCJ=yes
16622      hardcode_shlibpath_var_GCJ=no
16623      ;;
16624
16625    hpux9*)
16626      if test "$GCC" = yes; then
16627	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'
16628      else
16629	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'
16630      fi
16631      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16632      hardcode_libdir_separator_GCJ=:
16633      hardcode_direct_GCJ=yes
16634
16635      # hardcode_minus_L: Not really in the search PATH,
16636      # but as the default location of the library.
16637      hardcode_minus_L_GCJ=yes
16638      export_dynamic_flag_spec_GCJ='${wl}-E'
16639      ;;
16640
16641    hpux10*)
16642      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16643	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16644      else
16645	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16646      fi
16647      if test "$with_gnu_ld" = no; then
16648	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16649	hardcode_libdir_separator_GCJ=:
16650
16651	hardcode_direct_GCJ=yes
16652	export_dynamic_flag_spec_GCJ='${wl}-E'
16653
16654	# hardcode_minus_L: Not really in the search PATH,
16655	# but as the default location of the library.
16656	hardcode_minus_L_GCJ=yes
16657      fi
16658      ;;
16659
16660    hpux11*)
16661      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16662	case $host_cpu in
16663	hppa*64*)
16664	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665	  ;;
16666	ia64*)
16667	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16668	  ;;
16669	*)
16670	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16671	  ;;
16672	esac
16673      else
16674	case $host_cpu in
16675	hppa*64*)
16676	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16677	  ;;
16678	ia64*)
16679	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16680	  ;;
16681	*)
16682	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16683	  ;;
16684	esac
16685      fi
16686      if test "$with_gnu_ld" = no; then
16687	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16688	hardcode_libdir_separator_GCJ=:
16689
16690	case $host_cpu in
16691	hppa*64*|ia64*)
16692	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16693	  hardcode_direct_GCJ=no
16694	  hardcode_shlibpath_var_GCJ=no
16695	  ;;
16696	*)
16697	  hardcode_direct_GCJ=yes
16698	  export_dynamic_flag_spec_GCJ='${wl}-E'
16699
16700	  # hardcode_minus_L: Not really in the search PATH,
16701	  # but as the default location of the library.
16702	  hardcode_minus_L_GCJ=yes
16703	  ;;
16704	esac
16705      fi
16706      ;;
16707
16708    irix5* | irix6* | nonstopux*)
16709      if test "$GCC" = yes; then
16710	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'
16711      else
16712	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'
16713	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16714      fi
16715      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16716      hardcode_libdir_separator_GCJ=:
16717      link_all_deplibs_GCJ=yes
16718      ;;
16719
16720    netbsd*)
16721      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16722	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16723      else
16724	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16725      fi
16726      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16727      hardcode_direct_GCJ=yes
16728      hardcode_shlibpath_var_GCJ=no
16729      ;;
16730
16731    newsos6)
16732      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16733      hardcode_direct_GCJ=yes
16734      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16735      hardcode_libdir_separator_GCJ=:
16736      hardcode_shlibpath_var_GCJ=no
16737      ;;
16738
16739    openbsd*)
16740      hardcode_direct_GCJ=yes
16741      hardcode_shlibpath_var_GCJ=no
16742      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16743	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16744	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16745	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16746	export_dynamic_flag_spec_GCJ='${wl}-E'
16747      else
16748       case $host_os in
16749	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16750	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16751	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16752	   ;;
16753	 *)
16754	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16755	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16756	   ;;
16757       esac
16758      fi
16759      ;;
16760
16761    os2*)
16762      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16763      hardcode_minus_L_GCJ=yes
16764      allow_undefined_flag_GCJ=unsupported
16765      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'
16766      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16767      ;;
16768
16769    osf3*)
16770      if test "$GCC" = yes; then
16771	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16772	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'
16773      else
16774	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16775	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'
16776      fi
16777      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16778      hardcode_libdir_separator_GCJ=:
16779      ;;
16780
16781    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16782      if test "$GCC" = yes; then
16783	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16784	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'
16785	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16786      else
16787	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16788	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'
16789	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~
16790	$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'
16791
16792	# Both c and cxx compiler support -rpath directly
16793	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16794      fi
16795      hardcode_libdir_separator_GCJ=:
16796      ;;
16797
16798    solaris*)
16799      no_undefined_flag_GCJ=' -z text'
16800      if test "$GCC" = yes; then
16801	wlarc='${wl}'
16802	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16803	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16804	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16805      else
16806	wlarc=''
16807	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16809  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16810      fi
16811      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16812      hardcode_shlibpath_var_GCJ=no
16813      case $host_os in
16814      solaris2.[0-5] | solaris2.[0-5].*) ;;
16815      *)
16816 	# The compiler driver will combine linker options so we
16817 	# cannot just pass the convience library names through
16818 	# without $wl, iff we do not link with $LD.
16819 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16820 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16821 	case $wlarc in
16822 	'')
16823 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16824 	*)
16825 	  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' ;;
16826 	esac ;;
16827      esac
16828      link_all_deplibs_GCJ=yes
16829      ;;
16830
16831    sunos4*)
16832      if test "x$host_vendor" = xsequent; then
16833	# Use $CC to link under sequent, because it throws in some extra .o
16834	# files that make .init and .fini sections work.
16835	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16836      else
16837	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16838      fi
16839      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16840      hardcode_direct_GCJ=yes
16841      hardcode_minus_L_GCJ=yes
16842      hardcode_shlibpath_var_GCJ=no
16843      ;;
16844
16845    sysv4)
16846      case $host_vendor in
16847	sni)
16848	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16849	  hardcode_direct_GCJ=yes # is this really true???
16850	;;
16851	siemens)
16852	  ## LD is ld it makes a PLAMLIB
16853	  ## CC just makes a GrossModule.
16854	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16855	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16856	  hardcode_direct_GCJ=no
16857        ;;
16858	motorola)
16859	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16860	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16861	;;
16862      esac
16863      runpath_var='LD_RUN_PATH'
16864      hardcode_shlibpath_var_GCJ=no
16865      ;;
16866
16867    sysv4.3*)
16868      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16869      hardcode_shlibpath_var_GCJ=no
16870      export_dynamic_flag_spec_GCJ='-Bexport'
16871      ;;
16872
16873    sysv4*MP*)
16874      if test -d /usr/nec; then
16875	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16876	hardcode_shlibpath_var_GCJ=no
16877	runpath_var=LD_RUN_PATH
16878	hardcode_runpath_var=yes
16879	ld_shlibs_GCJ=yes
16880      fi
16881      ;;
16882
16883    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16884      no_undefined_flag_GCJ='${wl}-z,text'
16885      archive_cmds_need_lc_GCJ=no
16886      hardcode_shlibpath_var_GCJ=no
16887      runpath_var='LD_RUN_PATH'
16888
16889      if test "$GCC" = yes; then
16890	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16891	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16892      else
16893	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16894	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16895      fi
16896      ;;
16897
16898    sysv5* | sco3.2v5* | sco5v6*)
16899      # Note: We can NOT use -z defs as we might desire, because we do not
16900      # link with -lc, and that would cause any symbols used from libc to
16901      # always be unresolved, which means just about no library would
16902      # ever link correctly.  If we're not using GNU ld we use -z text
16903      # though, which does catch some bad symbols but isn't as heavy-handed
16904      # as -z defs.
16905      no_undefined_flag_GCJ='${wl}-z,text'
16906      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16907      archive_cmds_need_lc_GCJ=no
16908      hardcode_shlibpath_var_GCJ=no
16909      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16910      hardcode_libdir_separator_GCJ=':'
16911      link_all_deplibs_GCJ=yes
16912      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16913      runpath_var='LD_RUN_PATH'
16914
16915      if test "$GCC" = yes; then
16916	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16917	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16918      else
16919	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16920	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16921      fi
16922      ;;
16923
16924    uts4*)
16925      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16926      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16927      hardcode_shlibpath_var_GCJ=no
16928      ;;
16929
16930    *)
16931      ld_shlibs_GCJ=no
16932      ;;
16933    esac
16934  fi
16935
16936echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16937echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16938test "$ld_shlibs_GCJ" = no && can_build_shared=no
16939
16940#
16941# Do we need to explicitly link libc?
16942#
16943case "x$archive_cmds_need_lc_GCJ" in
16944x|xyes)
16945  # Assume -lc should be added
16946  archive_cmds_need_lc_GCJ=yes
16947
16948  if test "$enable_shared" = yes && test "$GCC" = yes; then
16949    case $archive_cmds_GCJ in
16950    *'~'*)
16951      # FIXME: we may have to deal with multi-command sequences.
16952      ;;
16953    '$CC '*)
16954      # Test whether the compiler implicitly links with -lc since on some
16955      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16956      # to ld, don't add -lc before -lgcc.
16957      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16958echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16959      $rm conftest*
16960      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16961
16962      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16963  (eval $ac_compile) 2>&5
16964  ac_status=$?
16965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966  (exit $ac_status); } 2>conftest.err; then
16967        soname=conftest
16968        lib=conftest
16969        libobjs=conftest.$ac_objext
16970        deplibs=
16971        wl=$lt_prog_compiler_wl_GCJ
16972	pic_flag=$lt_prog_compiler_pic_GCJ
16973        compiler_flags=-v
16974        linker_flags=-v
16975        verstring=
16976        output_objdir=.
16977        libname=conftest
16978        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16979        allow_undefined_flag_GCJ=
16980        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16981  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16982  ac_status=$?
16983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984  (exit $ac_status); }
16985        then
16986	  archive_cmds_need_lc_GCJ=no
16987        else
16988	  archive_cmds_need_lc_GCJ=yes
16989        fi
16990        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16991      else
16992        cat conftest.err 1>&5
16993      fi
16994      $rm conftest*
16995      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16996echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16997      ;;
16998    esac
16999  fi
17000  ;;
17001esac
17002
17003echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17004echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17005library_names_spec=
17006libname_spec='lib$name'
17007soname_spec=
17008shrext_cmds=".so"
17009postinstall_cmds=
17010postuninstall_cmds=
17011finish_cmds=
17012finish_eval=
17013shlibpath_var=
17014shlibpath_overrides_runpath=unknown
17015version_type=none
17016dynamic_linker="$host_os ld.so"
17017sys_lib_dlsearch_path_spec="/lib /usr/lib"
17018if test "$GCC" = yes; then
17019  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17020  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17021    # if the path contains ";" then we assume it to be the separator
17022    # otherwise default to the standard path separator (i.e. ":") - it is
17023    # assumed that no part of a normal pathname contains ";" but that should
17024    # okay in the real world where ";" in dirpaths is itself problematic.
17025    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17026  else
17027    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17028  fi
17029else
17030  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17031fi
17032need_lib_prefix=unknown
17033hardcode_into_libs=no
17034
17035# when you set need_version to no, make sure it does not cause -set_version
17036# flags to be left without arguments
17037need_version=unknown
17038
17039case $host_os in
17040aix3*)
17041  version_type=linux
17042  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17043  shlibpath_var=LIBPATH
17044
17045  # AIX 3 has no versioning support, so we append a major version to the name.
17046  soname_spec='${libname}${release}${shared_ext}$major'
17047  ;;
17048
17049aix4* | aix5*)
17050  version_type=linux
17051  need_lib_prefix=no
17052  need_version=no
17053  hardcode_into_libs=yes
17054  if test "$host_cpu" = ia64; then
17055    # AIX 5 supports IA64
17056    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17057    shlibpath_var=LD_LIBRARY_PATH
17058  else
17059    # With GCC up to 2.95.x, collect2 would create an import file
17060    # for dependence libraries.  The import file would start with
17061    # the line `#! .'.  This would cause the generated library to
17062    # depend on `.', always an invalid library.  This was fixed in
17063    # development snapshots of GCC prior to 3.0.
17064    case $host_os in
17065      aix4 | aix4.[01] | aix4.[01].*)
17066      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17067	   echo ' yes '
17068	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17069	:
17070      else
17071	can_build_shared=no
17072      fi
17073      ;;
17074    esac
17075    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17076    # soname into executable. Probably we can add versioning support to
17077    # collect2, so additional links can be useful in future.
17078    if test "$aix_use_runtimelinking" = yes; then
17079      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17080      # instead of lib<name>.a to let people know that these are not
17081      # typical AIX shared libraries.
17082      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17083    else
17084      # We preserve .a as extension for shared libraries through AIX4.2
17085      # and later when we are not doing run time linking.
17086      library_names_spec='${libname}${release}.a $libname.a'
17087      soname_spec='${libname}${release}${shared_ext}$major'
17088    fi
17089    shlibpath_var=LIBPATH
17090  fi
17091  ;;
17092
17093amigaos*)
17094  library_names_spec='$libname.ixlibrary $libname.a'
17095  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17096  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'
17097  ;;
17098
17099beos*)
17100  library_names_spec='${libname}${shared_ext}'
17101  dynamic_linker="$host_os ld.so"
17102  shlibpath_var=LIBRARY_PATH
17103  ;;
17104
17105bsdi[45]*)
17106  version_type=linux
17107  need_version=no
17108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17109  soname_spec='${libname}${release}${shared_ext}$major'
17110  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17111  shlibpath_var=LD_LIBRARY_PATH
17112  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17113  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17114  # the default ld.so.conf also contains /usr/contrib/lib and
17115  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17116  # libtool to hard-code these into programs
17117  ;;
17118
17119cygwin* | mingw* | pw32*)
17120  version_type=windows
17121  shrext_cmds=".dll"
17122  need_version=no
17123  need_lib_prefix=no
17124
17125  case $GCC,$host_os in
17126  yes,cygwin* | yes,mingw* | yes,pw32*)
17127    library_names_spec='$libname.dll.a'
17128    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17129    postinstall_cmds='base_file=`basename \${file}`~
17130      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17131      dldir=$destdir/`dirname \$dlpath`~
17132      test -d \$dldir || mkdir -p \$dldir~
17133      $install_prog $dir/$dlname \$dldir/$dlname~
17134      chmod a+x \$dldir/$dlname'
17135    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17136      dlpath=$dir/\$dldll~
17137       $rm \$dlpath'
17138    shlibpath_overrides_runpath=yes
17139
17140    case $host_os in
17141    cygwin*)
17142      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17143      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17144      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
17145      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17146      ;;
17147    mingw*)
17148      # MinGW DLLs use traditional 'lib' prefix
17149      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17150      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
17151      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17152      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17153        # It is most probably a Windows format PATH printed by
17154        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17155        # path with ; separators, and with drive letters. We can handle the
17156        # drive letters (cygwin fileutils understands them), so leave them,
17157        # especially as we might pass files found there to a mingw objdump,
17158        # which wouldn't understand a cygwinified path. Ahh.
17159        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17160      else
17161        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17162      fi
17163      ;;
17164    pw32*)
17165      # pw32 DLLs use 'pw' prefix rather than 'lib'
17166      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17167      ;;
17168    esac
17169    ;;
17170
17171  *)
17172    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17173    ;;
17174  esac
17175  dynamic_linker='Win32 ld.exe'
17176  # FIXME: first we should search . and the directory the executable is in
17177  shlibpath_var=PATH
17178  ;;
17179
17180darwin* | rhapsody*)
17181  dynamic_linker="$host_os dyld"
17182  version_type=darwin
17183  need_lib_prefix=no
17184  need_version=no
17185  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17186  soname_spec='${libname}${release}${major}$shared_ext'
17187  shlibpath_overrides_runpath=yes
17188  shlibpath_var=DYLD_LIBRARY_PATH
17189  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17190  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17191  if test "$GCC" = yes; then
17192    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"`
17193  else
17194    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17195  fi
17196  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17197  ;;
17198
17199dgux*)
17200  version_type=linux
17201  need_lib_prefix=no
17202  need_version=no
17203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17204  soname_spec='${libname}${release}${shared_ext}$major'
17205  shlibpath_var=LD_LIBRARY_PATH
17206  ;;
17207
17208freebsd1*)
17209  dynamic_linker=no
17210  ;;
17211
17212kfreebsd*-gnu)
17213  version_type=linux
17214  need_lib_prefix=no
17215  need_version=no
17216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17217  soname_spec='${libname}${release}${shared_ext}$major'
17218  shlibpath_var=LD_LIBRARY_PATH
17219  shlibpath_overrides_runpath=no
17220  hardcode_into_libs=yes
17221  dynamic_linker='GNU ld.so'
17222  ;;
17223
17224freebsd* | dragonfly*)
17225  # DragonFly does not have aout.  When/if they implement a new
17226  # versioning mechanism, adjust this.
17227  if test -x /usr/bin/objformat; then
17228    objformat=`/usr/bin/objformat`
17229  else
17230    case $host_os in
17231    freebsd[123]*) objformat=aout ;;
17232    *) objformat=elf ;;
17233    esac
17234  fi
17235  version_type=freebsd-$objformat
17236  case $version_type in
17237    freebsd-elf*)
17238      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17239      need_version=no
17240      need_lib_prefix=no
17241      ;;
17242    freebsd-*)
17243      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17244      need_version=yes
17245      ;;
17246  esac
17247  shlibpath_var=LD_LIBRARY_PATH
17248  case $host_os in
17249  freebsd2*)
17250    shlibpath_overrides_runpath=yes
17251    ;;
17252  freebsd3.[01]* | freebsdelf3.[01]*)
17253    shlibpath_overrides_runpath=yes
17254    hardcode_into_libs=yes
17255    ;;
17256  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17257  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17258    shlibpath_overrides_runpath=no
17259    hardcode_into_libs=yes
17260    ;;
17261  freebsd*) # from 4.6 on
17262    shlibpath_overrides_runpath=yes
17263    hardcode_into_libs=yes
17264    ;;
17265  esac
17266  ;;
17267
17268gnu*)
17269  version_type=linux
17270  need_lib_prefix=no
17271  need_version=no
17272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17273  soname_spec='${libname}${release}${shared_ext}$major'
17274  shlibpath_var=LD_LIBRARY_PATH
17275  hardcode_into_libs=yes
17276  ;;
17277
17278hpux9* | hpux10* | hpux11*)
17279  # Give a soname corresponding to the major version so that dld.sl refuses to
17280  # link against other versions.
17281  version_type=sunos
17282  need_lib_prefix=no
17283  need_version=no
17284  case $host_cpu in
17285  ia64*)
17286    shrext_cmds='.so'
17287    hardcode_into_libs=yes
17288    dynamic_linker="$host_os dld.so"
17289    shlibpath_var=LD_LIBRARY_PATH
17290    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292    soname_spec='${libname}${release}${shared_ext}$major'
17293    if test "X$HPUX_IA64_MODE" = X32; then
17294      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17295    else
17296      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17297    fi
17298    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17299    ;;
17300   hppa*64*)
17301     shrext_cmds='.sl'
17302     hardcode_into_libs=yes
17303     dynamic_linker="$host_os dld.sl"
17304     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17305     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307     soname_spec='${libname}${release}${shared_ext}$major'
17308     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17309     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17310     ;;
17311   *)
17312    shrext_cmds='.sl'
17313    dynamic_linker="$host_os dld.sl"
17314    shlibpath_var=SHLIB_PATH
17315    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17316    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317    soname_spec='${libname}${release}${shared_ext}$major'
17318    ;;
17319  esac
17320  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17321  postinstall_cmds='chmod 555 $lib'
17322  ;;
17323
17324interix3*)
17325  version_type=linux
17326  need_lib_prefix=no
17327  need_version=no
17328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17329  soname_spec='${libname}${release}${shared_ext}$major'
17330  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17331  shlibpath_var=LD_LIBRARY_PATH
17332  shlibpath_overrides_runpath=no
17333  hardcode_into_libs=yes
17334  ;;
17335
17336irix5* | irix6* | nonstopux*)
17337  case $host_os in
17338    nonstopux*) version_type=nonstopux ;;
17339    *)
17340	if test "$lt_cv_prog_gnu_ld" = yes; then
17341		version_type=linux
17342	else
17343		version_type=irix
17344	fi ;;
17345  esac
17346  need_lib_prefix=no
17347  need_version=no
17348  soname_spec='${libname}${release}${shared_ext}$major'
17349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17350  case $host_os in
17351  irix5* | nonstopux*)
17352    libsuff= shlibsuff=
17353    ;;
17354  *)
17355    case $LD in # libtool.m4 will add one of these switches to LD
17356    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17357      libsuff= shlibsuff= libmagic=32-bit;;
17358    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17359      libsuff=32 shlibsuff=N32 libmagic=N32;;
17360    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17361      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17362    *) libsuff= shlibsuff= libmagic=never-match;;
17363    esac
17364    ;;
17365  esac
17366  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17367  shlibpath_overrides_runpath=no
17368  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17369  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17370  hardcode_into_libs=yes
17371  ;;
17372
17373# No shared lib support for Linux oldld, aout, or coff.
17374linux*oldld* | linux*aout* | linux*coff*)
17375  dynamic_linker=no
17376  ;;
17377
17378# This must be Linux ELF.
17379linux*)
17380  version_type=linux
17381  need_lib_prefix=no
17382  need_version=no
17383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384  soname_spec='${libname}${release}${shared_ext}$major'
17385  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17386  shlibpath_var=LD_LIBRARY_PATH
17387  shlibpath_overrides_runpath=no
17388  # This implies no fast_install, which is unacceptable.
17389  # Some rework will be needed to allow for fast_install
17390  # before this can be enabled.
17391  hardcode_into_libs=yes
17392
17393  # Append ld.so.conf contents to the search path
17394  if test -f /etc/ld.so.conf; then
17395    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' ' '`
17396    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17397  fi
17398
17399  # We used to test for /lib/ld.so.1 and disable shared libraries on
17400  # powerpc, because MkLinux only supported shared libraries with the
17401  # GNU dynamic linker.  Since this was broken with cross compilers,
17402  # most powerpc-linux boxes support dynamic linking these days and
17403  # people can always --disable-shared, the test was removed, and we
17404  # assume the GNU/Linux dynamic linker is in use.
17405  dynamic_linker='GNU/Linux ld.so'
17406  ;;
17407
17408knetbsd*-gnu)
17409  version_type=linux
17410  need_lib_prefix=no
17411  need_version=no
17412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17413  soname_spec='${libname}${release}${shared_ext}$major'
17414  shlibpath_var=LD_LIBRARY_PATH
17415  shlibpath_overrides_runpath=no
17416  hardcode_into_libs=yes
17417  dynamic_linker='GNU ld.so'
17418  ;;
17419
17420netbsd*)
17421  version_type=sunos
17422  need_lib_prefix=no
17423  need_version=no
17424  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17425    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17426    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17427    dynamic_linker='NetBSD (a.out) ld.so'
17428  else
17429    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17430    soname_spec='${libname}${release}${shared_ext}$major'
17431    dynamic_linker='NetBSD ld.elf_so'
17432  fi
17433  shlibpath_var=LD_LIBRARY_PATH
17434  shlibpath_overrides_runpath=yes
17435  hardcode_into_libs=yes
17436  ;;
17437
17438newsos6)
17439  version_type=linux
17440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441  shlibpath_var=LD_LIBRARY_PATH
17442  shlibpath_overrides_runpath=yes
17443  ;;
17444
17445nto-qnx*)
17446  version_type=linux
17447  need_lib_prefix=no
17448  need_version=no
17449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450  soname_spec='${libname}${release}${shared_ext}$major'
17451  shlibpath_var=LD_LIBRARY_PATH
17452  shlibpath_overrides_runpath=yes
17453  ;;
17454
17455openbsd*)
17456  version_type=sunos
17457  sys_lib_dlsearch_path_spec="/usr/lib"
17458  need_lib_prefix=no
17459  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17460  case $host_os in
17461    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17462    *)                         need_version=no  ;;
17463  esac
17464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17465  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17466  shlibpath_var=LD_LIBRARY_PATH
17467  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17468    case $host_os in
17469      openbsd2.[89] | openbsd2.[89].*)
17470	shlibpath_overrides_runpath=no
17471	;;
17472      *)
17473	shlibpath_overrides_runpath=yes
17474	;;
17475      esac
17476  else
17477    shlibpath_overrides_runpath=yes
17478  fi
17479  ;;
17480
17481os2*)
17482  libname_spec='$name'
17483  shrext_cmds=".dll"
17484  need_lib_prefix=no
17485  library_names_spec='$libname${shared_ext} $libname.a'
17486  dynamic_linker='OS/2 ld.exe'
17487  shlibpath_var=LIBPATH
17488  ;;
17489
17490osf3* | osf4* | osf5*)
17491  version_type=osf
17492  need_lib_prefix=no
17493  need_version=no
17494  soname_spec='${libname}${release}${shared_ext}$major'
17495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17496  shlibpath_var=LD_LIBRARY_PATH
17497  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17498  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17499  ;;
17500
17501solaris*)
17502  version_type=linux
17503  need_lib_prefix=no
17504  need_version=no
17505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506  soname_spec='${libname}${release}${shared_ext}$major'
17507  shlibpath_var=LD_LIBRARY_PATH
17508  shlibpath_overrides_runpath=yes
17509  hardcode_into_libs=yes
17510  # ldd complains unless libraries are executable
17511  postinstall_cmds='chmod +x $lib'
17512  ;;
17513
17514sunos4*)
17515  version_type=sunos
17516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17517  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17518  shlibpath_var=LD_LIBRARY_PATH
17519  shlibpath_overrides_runpath=yes
17520  if test "$with_gnu_ld" = yes; then
17521    need_lib_prefix=no
17522  fi
17523  need_version=yes
17524  ;;
17525
17526sysv4 | sysv4.3*)
17527  version_type=linux
17528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529  soname_spec='${libname}${release}${shared_ext}$major'
17530  shlibpath_var=LD_LIBRARY_PATH
17531  case $host_vendor in
17532    sni)
17533      shlibpath_overrides_runpath=no
17534      need_lib_prefix=no
17535      export_dynamic_flag_spec='${wl}-Blargedynsym'
17536      runpath_var=LD_RUN_PATH
17537      ;;
17538    siemens)
17539      need_lib_prefix=no
17540      ;;
17541    motorola)
17542      need_lib_prefix=no
17543      need_version=no
17544      shlibpath_overrides_runpath=no
17545      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17546      ;;
17547  esac
17548  ;;
17549
17550sysv4*MP*)
17551  if test -d /usr/nec ;then
17552    version_type=linux
17553    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17554    soname_spec='$libname${shared_ext}.$major'
17555    shlibpath_var=LD_LIBRARY_PATH
17556  fi
17557  ;;
17558
17559sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17560  version_type=freebsd-elf
17561  need_lib_prefix=no
17562  need_version=no
17563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17564  soname_spec='${libname}${release}${shared_ext}$major'
17565  shlibpath_var=LD_LIBRARY_PATH
17566  hardcode_into_libs=yes
17567  if test "$with_gnu_ld" = yes; then
17568    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17569    shlibpath_overrides_runpath=no
17570  else
17571    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17572    shlibpath_overrides_runpath=yes
17573    case $host_os in
17574      sco3.2v5*)
17575        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17576	;;
17577    esac
17578  fi
17579  sys_lib_dlsearch_path_spec='/usr/lib'
17580  ;;
17581
17582uts4*)
17583  version_type=linux
17584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17585  soname_spec='${libname}${release}${shared_ext}$major'
17586  shlibpath_var=LD_LIBRARY_PATH
17587  ;;
17588
17589*)
17590  dynamic_linker=no
17591  ;;
17592esac
17593echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17594echo "${ECHO_T}$dynamic_linker" >&6
17595test "$dynamic_linker" = no && can_build_shared=no
17596
17597variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17598if test "$GCC" = yes; then
17599  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17600fi
17601
17602echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17603echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17604hardcode_action_GCJ=
17605if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17606   test -n "$runpath_var_GCJ" || \
17607   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17608
17609  # We can hardcode non-existant directories.
17610  if test "$hardcode_direct_GCJ" != no &&
17611     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17612     # have to relink, otherwise we might link with an installed library
17613     # when we should be linking with a yet-to-be-installed one
17614     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17615     test "$hardcode_minus_L_GCJ" != no; then
17616    # Linking always hardcodes the temporary library directory.
17617    hardcode_action_GCJ=relink
17618  else
17619    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17620    hardcode_action_GCJ=immediate
17621  fi
17622else
17623  # We cannot hardcode anything, or else we can only hardcode existing
17624  # directories.
17625  hardcode_action_GCJ=unsupported
17626fi
17627echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17628echo "${ECHO_T}$hardcode_action_GCJ" >&6
17629
17630if test "$hardcode_action_GCJ" = relink; then
17631  # Fast installation is not supported
17632  enable_fast_install=no
17633elif test "$shlibpath_overrides_runpath" = yes ||
17634     test "$enable_shared" = no; then
17635  # Fast installation is not necessary
17636  enable_fast_install=needless
17637fi
17638
17639
17640# The else clause should only fire when bootstrapping the
17641# libtool distribution, otherwise you forgot to ship ltmain.sh
17642# with your package, and you will get complaints that there are
17643# no rules to generate ltmain.sh.
17644if test -f "$ltmain"; then
17645  # See if we are running on zsh, and set the options which allow our commands through
17646  # without removal of \ escapes.
17647  if test -n "${ZSH_VERSION+set}" ; then
17648    setopt NO_GLOB_SUBST
17649  fi
17650  # Now quote all the things that may contain metacharacters while being
17651  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17652  # variables and quote the copies for generation of the libtool script.
17653  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17654    SED SHELL STRIP \
17655    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17656    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17657    deplibs_check_method reload_flag reload_cmds need_locks \
17658    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17659    lt_cv_sys_global_symbol_to_c_name_address \
17660    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17661    old_postinstall_cmds old_postuninstall_cmds \
17662    compiler_GCJ \
17663    CC_GCJ \
17664    LD_GCJ \
17665    lt_prog_compiler_wl_GCJ \
17666    lt_prog_compiler_pic_GCJ \
17667    lt_prog_compiler_static_GCJ \
17668    lt_prog_compiler_no_builtin_flag_GCJ \
17669    export_dynamic_flag_spec_GCJ \
17670    thread_safe_flag_spec_GCJ \
17671    whole_archive_flag_spec_GCJ \
17672    enable_shared_with_static_runtimes_GCJ \
17673    old_archive_cmds_GCJ \
17674    old_archive_from_new_cmds_GCJ \
17675    predep_objects_GCJ \
17676    postdep_objects_GCJ \
17677    predeps_GCJ \
17678    postdeps_GCJ \
17679    compiler_lib_search_path_GCJ \
17680    archive_cmds_GCJ \
17681    archive_expsym_cmds_GCJ \
17682    postinstall_cmds_GCJ \
17683    postuninstall_cmds_GCJ \
17684    old_archive_from_expsyms_cmds_GCJ \
17685    allow_undefined_flag_GCJ \
17686    no_undefined_flag_GCJ \
17687    export_symbols_cmds_GCJ \
17688    hardcode_libdir_flag_spec_GCJ \
17689    hardcode_libdir_flag_spec_ld_GCJ \
17690    hardcode_libdir_separator_GCJ \
17691    hardcode_automatic_GCJ \
17692    module_cmds_GCJ \
17693    module_expsym_cmds_GCJ \
17694    lt_cv_prog_compiler_c_o_GCJ \
17695    exclude_expsyms_GCJ \
17696    include_expsyms_GCJ; do
17697
17698    case $var in
17699    old_archive_cmds_GCJ | \
17700    old_archive_from_new_cmds_GCJ | \
17701    archive_cmds_GCJ | \
17702    archive_expsym_cmds_GCJ | \
17703    module_cmds_GCJ | \
17704    module_expsym_cmds_GCJ | \
17705    old_archive_from_expsyms_cmds_GCJ | \
17706    export_symbols_cmds_GCJ | \
17707    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17708    postinstall_cmds | postuninstall_cmds | \
17709    old_postinstall_cmds | old_postuninstall_cmds | \
17710    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17711      # Double-quote double-evaled strings.
17712      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17713      ;;
17714    *)
17715      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17716      ;;
17717    esac
17718  done
17719
17720  case $lt_echo in
17721  *'\$0 --fallback-echo"')
17722    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17723    ;;
17724  esac
17725
17726cfgfile="$ofile"
17727
17728  cat <<__EOF__ >> "$cfgfile"
17729# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17730
17731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17732
17733# Shell to use when invoking shell scripts.
17734SHELL=$lt_SHELL
17735
17736# Whether or not to build shared libraries.
17737build_libtool_libs=$enable_shared
17738
17739# Whether or not to build static libraries.
17740build_old_libs=$enable_static
17741
17742# Whether or not to add -lc for building shared libraries.
17743build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17744
17745# Whether or not to disallow shared libs when runtime libs are static
17746allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17747
17748# Whether or not to optimize for fast installation.
17749fast_install=$enable_fast_install
17750
17751# The host system.
17752host_alias=$host_alias
17753host=$host
17754host_os=$host_os
17755
17756# The build system.
17757build_alias=$build_alias
17758build=$build
17759build_os=$build_os
17760
17761# An echo program that does not interpret backslashes.
17762echo=$lt_echo
17763
17764# The archiver.
17765AR=$lt_AR
17766AR_FLAGS=$lt_AR_FLAGS
17767
17768# A C compiler.
17769LTCC=$lt_LTCC
17770
17771# LTCC compiler flags.
17772LTCFLAGS=$lt_LTCFLAGS
17773
17774# A language-specific compiler.
17775CC=$lt_compiler_GCJ
17776
17777# Is the compiler the GNU C compiler?
17778with_gcc=$GCC_GCJ
17779
17780# An ERE matcher.
17781EGREP=$lt_EGREP
17782
17783# The linker used to build libraries.
17784LD=$lt_LD_GCJ
17785
17786# Whether we need hard or soft links.
17787LN_S=$lt_LN_S
17788
17789# A BSD-compatible nm program.
17790NM=$lt_NM
17791
17792# A symbol stripping program
17793STRIP=$lt_STRIP
17794
17795# Used to examine libraries when file_magic_cmd begins "file"
17796MAGIC_CMD=$MAGIC_CMD
17797
17798# Used on cygwin: DLL creation program.
17799DLLTOOL="$DLLTOOL"
17800
17801# Used on cygwin: object dumper.
17802OBJDUMP="$OBJDUMP"
17803
17804# Used on cygwin: assembler.
17805AS="$AS"
17806
17807# The name of the directory that contains temporary libtool files.
17808objdir=$objdir
17809
17810# How to create reloadable object files.
17811reload_flag=$lt_reload_flag
17812reload_cmds=$lt_reload_cmds
17813
17814# How to pass a linker flag through the compiler.
17815wl=$lt_lt_prog_compiler_wl_GCJ
17816
17817# Object file suffix (normally "o").
17818objext="$ac_objext"
17819
17820# Old archive suffix (normally "a").
17821libext="$libext"
17822
17823# Shared library suffix (normally ".so").
17824shrext_cmds='$shrext_cmds'
17825
17826# Executable file suffix (normally "").
17827exeext="$exeext"
17828
17829# Additional compiler flags for building library objects.
17830pic_flag=$lt_lt_prog_compiler_pic_GCJ
17831pic_mode=$pic_mode
17832
17833# What is the maximum length of a command?
17834max_cmd_len=$lt_cv_sys_max_cmd_len
17835
17836# Does compiler simultaneously support -c and -o options?
17837compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17838
17839# Must we lock files when doing compilation?
17840need_locks=$lt_need_locks
17841
17842# Do we need the lib prefix for modules?
17843need_lib_prefix=$need_lib_prefix
17844
17845# Do we need a version for libraries?
17846need_version=$need_version
17847
17848# Whether dlopen is supported.
17849dlopen_support=$enable_dlopen
17850
17851# Whether dlopen of programs is supported.
17852dlopen_self=$enable_dlopen_self
17853
17854# Whether dlopen of statically linked programs is supported.
17855dlopen_self_static=$enable_dlopen_self_static
17856
17857# Compiler flag to prevent dynamic linking.
17858link_static_flag=$lt_lt_prog_compiler_static_GCJ
17859
17860# Compiler flag to turn off builtin functions.
17861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17862
17863# Compiler flag to allow reflexive dlopens.
17864export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17865
17866# Compiler flag to generate shared objects directly from archives.
17867whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17868
17869# Compiler flag to generate thread-safe objects.
17870thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17871
17872# Library versioning type.
17873version_type=$version_type
17874
17875# Format of library name prefix.
17876libname_spec=$lt_libname_spec
17877
17878# List of archive names.  First name is the real one, the rest are links.
17879# The last name is the one that the linker finds with -lNAME.
17880library_names_spec=$lt_library_names_spec
17881
17882# The coded name of the library, if different from the real name.
17883soname_spec=$lt_soname_spec
17884
17885# Commands used to build and install an old-style archive.
17886RANLIB=$lt_RANLIB
17887old_archive_cmds=$lt_old_archive_cmds_GCJ
17888old_postinstall_cmds=$lt_old_postinstall_cmds
17889old_postuninstall_cmds=$lt_old_postuninstall_cmds
17890
17891# Create an old-style archive from a shared archive.
17892old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17893
17894# Create a temporary old-style archive to link instead of a shared archive.
17895old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17896
17897# Commands used to build and install a shared archive.
17898archive_cmds=$lt_archive_cmds_GCJ
17899archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17900postinstall_cmds=$lt_postinstall_cmds
17901postuninstall_cmds=$lt_postuninstall_cmds
17902
17903# Commands used to build a loadable module (assumed same as above if empty)
17904module_cmds=$lt_module_cmds_GCJ
17905module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17906
17907# Commands to strip libraries.
17908old_striplib=$lt_old_striplib
17909striplib=$lt_striplib
17910
17911# Dependencies to place before the objects being linked to create a
17912# shared library.
17913predep_objects=$lt_predep_objects_GCJ
17914
17915# Dependencies to place after the objects being linked to create a
17916# shared library.
17917postdep_objects=$lt_postdep_objects_GCJ
17918
17919# Dependencies to place before the objects being linked to create a
17920# shared library.
17921predeps=$lt_predeps_GCJ
17922
17923# Dependencies to place after the objects being linked to create a
17924# shared library.
17925postdeps=$lt_postdeps_GCJ
17926
17927# The library search path used internally by the compiler when linking
17928# a shared library.
17929compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17930
17931# Method to check whether dependent libraries are shared objects.
17932deplibs_check_method=$lt_deplibs_check_method
17933
17934# Command to use when deplibs_check_method == file_magic.
17935file_magic_cmd=$lt_file_magic_cmd
17936
17937# Flag that allows shared libraries with undefined symbols to be built.
17938allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17939
17940# Flag that forces no undefined symbols.
17941no_undefined_flag=$lt_no_undefined_flag_GCJ
17942
17943# Commands used to finish a libtool library installation in a directory.
17944finish_cmds=$lt_finish_cmds
17945
17946# Same as above, but a single script fragment to be evaled but not shown.
17947finish_eval=$lt_finish_eval
17948
17949# Take the output of nm and produce a listing of raw symbols and C names.
17950global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17951
17952# Transform the output of nm in a proper C declaration
17953global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17954
17955# Transform the output of nm in a C name address pair
17956global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17957
17958# This is the shared library runtime path variable.
17959runpath_var=$runpath_var
17960
17961# This is the shared library path variable.
17962shlibpath_var=$shlibpath_var
17963
17964# Is shlibpath searched before the hard-coded library search path?
17965shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17966
17967# How to hardcode a shared library path into an executable.
17968hardcode_action=$hardcode_action_GCJ
17969
17970# Whether we should hardcode library paths into libraries.
17971hardcode_into_libs=$hardcode_into_libs
17972
17973# Flag to hardcode \$libdir into a binary during linking.
17974# This must work even if \$libdir does not exist.
17975hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17976
17977# If ld is used when linking, flag to hardcode \$libdir into
17978# a binary during linking. This must work even if \$libdir does
17979# not exist.
17980hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17981
17982# Whether we need a single -rpath flag with a separated argument.
17983hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17984
17985# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17986# resulting binary.
17987hardcode_direct=$hardcode_direct_GCJ
17988
17989# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17990# resulting binary.
17991hardcode_minus_L=$hardcode_minus_L_GCJ
17992
17993# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17994# the resulting binary.
17995hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17996
17997# Set to yes if building a shared library automatically hardcodes DIR into the library
17998# and all subsequent libraries and executables linked against it.
17999hardcode_automatic=$hardcode_automatic_GCJ
18000
18001# Variables whose values should be saved in libtool wrapper scripts and
18002# restored at relink time.
18003variables_saved_for_relink="$variables_saved_for_relink"
18004
18005# Whether libtool must link a program against all its dependency libraries.
18006link_all_deplibs=$link_all_deplibs_GCJ
18007
18008# Compile-time system search path for libraries
18009sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18010
18011# Run-time system search path for libraries
18012sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18013
18014# Fix the shell variable \$srcfile for the compiler.
18015fix_srcfile_path="$fix_srcfile_path_GCJ"
18016
18017# Set to yes if exported symbols are required.
18018always_export_symbols=$always_export_symbols_GCJ
18019
18020# The commands to list exported symbols.
18021export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18022
18023# The commands to extract the exported symbol list from a shared archive.
18024extract_expsyms_cmds=$lt_extract_expsyms_cmds
18025
18026# Symbols that should not be listed in the preloaded symbols.
18027exclude_expsyms=$lt_exclude_expsyms_GCJ
18028
18029# Symbols that must always be exported.
18030include_expsyms=$lt_include_expsyms_GCJ
18031
18032# ### END LIBTOOL TAG CONFIG: $tagname
18033
18034__EOF__
18035
18036
18037else
18038  # If there is no Makefile yet, we rely on a make rule to execute
18039  # `config.status --recheck' to rerun these tests and create the
18040  # libtool script then.
18041  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18042  if test -f "$ltmain_in"; then
18043    test -f Makefile && make "$ltmain"
18044  fi
18045fi
18046
18047
18048ac_ext=c
18049ac_cpp='$CPP $CPPFLAGS'
18050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18052ac_compiler_gnu=$ac_cv_c_compiler_gnu
18053
18054CC="$lt_save_CC"
18055
18056	else
18057	  tagname=""
18058	fi
18059	;;
18060
18061      RC)
18062
18063
18064
18065# Source file extension for RC test sources.
18066ac_ext=rc
18067
18068# Object file extension for compiled RC test sources.
18069objext=o
18070objext_RC=$objext
18071
18072# Code to be used in simple compile tests
18073lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18074
18075# Code to be used in simple link tests
18076lt_simple_link_test_code="$lt_simple_compile_test_code"
18077
18078# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18079
18080# If no C compiler was specified, use CC.
18081LTCC=${LTCC-"$CC"}
18082
18083# If no C compiler flags were specified, use CFLAGS.
18084LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18085
18086# Allow CC to be a program name with arguments.
18087compiler=$CC
18088
18089
18090# save warnings/boilerplate of simple test code
18091ac_outfile=conftest.$ac_objext
18092printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18093eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18094_lt_compiler_boilerplate=`cat conftest.err`
18095$rm conftest*
18096
18097ac_outfile=conftest.$ac_objext
18098printf "$lt_simple_link_test_code" >conftest.$ac_ext
18099eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18100_lt_linker_boilerplate=`cat conftest.err`
18101$rm conftest*
18102
18103
18104# Allow CC to be a program name with arguments.
18105lt_save_CC="$CC"
18106CC=${RC-"windres"}
18107compiler=$CC
18108compiler_RC=$CC
18109for cc_temp in $compiler""; do
18110  case $cc_temp in
18111    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18112    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18113    \-*) ;;
18114    *) break;;
18115  esac
18116done
18117cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18118
18119lt_cv_prog_compiler_c_o_RC=yes
18120
18121# The else clause should only fire when bootstrapping the
18122# libtool distribution, otherwise you forgot to ship ltmain.sh
18123# with your package, and you will get complaints that there are
18124# no rules to generate ltmain.sh.
18125if test -f "$ltmain"; then
18126  # See if we are running on zsh, and set the options which allow our commands through
18127  # without removal of \ escapes.
18128  if test -n "${ZSH_VERSION+set}" ; then
18129    setopt NO_GLOB_SUBST
18130  fi
18131  # Now quote all the things that may contain metacharacters while being
18132  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18133  # variables and quote the copies for generation of the libtool script.
18134  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18135    SED SHELL STRIP \
18136    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18137    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18138    deplibs_check_method reload_flag reload_cmds need_locks \
18139    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18140    lt_cv_sys_global_symbol_to_c_name_address \
18141    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18142    old_postinstall_cmds old_postuninstall_cmds \
18143    compiler_RC \
18144    CC_RC \
18145    LD_RC \
18146    lt_prog_compiler_wl_RC \
18147    lt_prog_compiler_pic_RC \
18148    lt_prog_compiler_static_RC \
18149    lt_prog_compiler_no_builtin_flag_RC \
18150    export_dynamic_flag_spec_RC \
18151    thread_safe_flag_spec_RC \
18152    whole_archive_flag_spec_RC \
18153    enable_shared_with_static_runtimes_RC \
18154    old_archive_cmds_RC \
18155    old_archive_from_new_cmds_RC \
18156    predep_objects_RC \
18157    postdep_objects_RC \
18158    predeps_RC \
18159    postdeps_RC \
18160    compiler_lib_search_path_RC \
18161    archive_cmds_RC \
18162    archive_expsym_cmds_RC \
18163    postinstall_cmds_RC \
18164    postuninstall_cmds_RC \
18165    old_archive_from_expsyms_cmds_RC \
18166    allow_undefined_flag_RC \
18167    no_undefined_flag_RC \
18168    export_symbols_cmds_RC \
18169    hardcode_libdir_flag_spec_RC \
18170    hardcode_libdir_flag_spec_ld_RC \
18171    hardcode_libdir_separator_RC \
18172    hardcode_automatic_RC \
18173    module_cmds_RC \
18174    module_expsym_cmds_RC \
18175    lt_cv_prog_compiler_c_o_RC \
18176    exclude_expsyms_RC \
18177    include_expsyms_RC; do
18178
18179    case $var in
18180    old_archive_cmds_RC | \
18181    old_archive_from_new_cmds_RC | \
18182    archive_cmds_RC | \
18183    archive_expsym_cmds_RC | \
18184    module_cmds_RC | \
18185    module_expsym_cmds_RC | \
18186    old_archive_from_expsyms_cmds_RC | \
18187    export_symbols_cmds_RC | \
18188    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18189    postinstall_cmds | postuninstall_cmds | \
18190    old_postinstall_cmds | old_postuninstall_cmds | \
18191    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18192      # Double-quote double-evaled strings.
18193      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18194      ;;
18195    *)
18196      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18197      ;;
18198    esac
18199  done
18200
18201  case $lt_echo in
18202  *'\$0 --fallback-echo"')
18203    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18204    ;;
18205  esac
18206
18207cfgfile="$ofile"
18208
18209  cat <<__EOF__ >> "$cfgfile"
18210# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18211
18212# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18213
18214# Shell to use when invoking shell scripts.
18215SHELL=$lt_SHELL
18216
18217# Whether or not to build shared libraries.
18218build_libtool_libs=$enable_shared
18219
18220# Whether or not to build static libraries.
18221build_old_libs=$enable_static
18222
18223# Whether or not to add -lc for building shared libraries.
18224build_libtool_need_lc=$archive_cmds_need_lc_RC
18225
18226# Whether or not to disallow shared libs when runtime libs are static
18227allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18228
18229# Whether or not to optimize for fast installation.
18230fast_install=$enable_fast_install
18231
18232# The host system.
18233host_alias=$host_alias
18234host=$host
18235host_os=$host_os
18236
18237# The build system.
18238build_alias=$build_alias
18239build=$build
18240build_os=$build_os
18241
18242# An echo program that does not interpret backslashes.
18243echo=$lt_echo
18244
18245# The archiver.
18246AR=$lt_AR
18247AR_FLAGS=$lt_AR_FLAGS
18248
18249# A C compiler.
18250LTCC=$lt_LTCC
18251
18252# LTCC compiler flags.
18253LTCFLAGS=$lt_LTCFLAGS
18254
18255# A language-specific compiler.
18256CC=$lt_compiler_RC
18257
18258# Is the compiler the GNU C compiler?
18259with_gcc=$GCC_RC
18260
18261# An ERE matcher.
18262EGREP=$lt_EGREP
18263
18264# The linker used to build libraries.
18265LD=$lt_LD_RC
18266
18267# Whether we need hard or soft links.
18268LN_S=$lt_LN_S
18269
18270# A BSD-compatible nm program.
18271NM=$lt_NM
18272
18273# A symbol stripping program
18274STRIP=$lt_STRIP
18275
18276# Used to examine libraries when file_magic_cmd begins "file"
18277MAGIC_CMD=$MAGIC_CMD
18278
18279# Used on cygwin: DLL creation program.
18280DLLTOOL="$DLLTOOL"
18281
18282# Used on cygwin: object dumper.
18283OBJDUMP="$OBJDUMP"
18284
18285# Used on cygwin: assembler.
18286AS="$AS"
18287
18288# The name of the directory that contains temporary libtool files.
18289objdir=$objdir
18290
18291# How to create reloadable object files.
18292reload_flag=$lt_reload_flag
18293reload_cmds=$lt_reload_cmds
18294
18295# How to pass a linker flag through the compiler.
18296wl=$lt_lt_prog_compiler_wl_RC
18297
18298# Object file suffix (normally "o").
18299objext="$ac_objext"
18300
18301# Old archive suffix (normally "a").
18302libext="$libext"
18303
18304# Shared library suffix (normally ".so").
18305shrext_cmds='$shrext_cmds'
18306
18307# Executable file suffix (normally "").
18308exeext="$exeext"
18309
18310# Additional compiler flags for building library objects.
18311pic_flag=$lt_lt_prog_compiler_pic_RC
18312pic_mode=$pic_mode
18313
18314# What is the maximum length of a command?
18315max_cmd_len=$lt_cv_sys_max_cmd_len
18316
18317# Does compiler simultaneously support -c and -o options?
18318compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18319
18320# Must we lock files when doing compilation?
18321need_locks=$lt_need_locks
18322
18323# Do we need the lib prefix for modules?
18324need_lib_prefix=$need_lib_prefix
18325
18326# Do we need a version for libraries?
18327need_version=$need_version
18328
18329# Whether dlopen is supported.
18330dlopen_support=$enable_dlopen
18331
18332# Whether dlopen of programs is supported.
18333dlopen_self=$enable_dlopen_self
18334
18335# Whether dlopen of statically linked programs is supported.
18336dlopen_self_static=$enable_dlopen_self_static
18337
18338# Compiler flag to prevent dynamic linking.
18339link_static_flag=$lt_lt_prog_compiler_static_RC
18340
18341# Compiler flag to turn off builtin functions.
18342no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18343
18344# Compiler flag to allow reflexive dlopens.
18345export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18346
18347# Compiler flag to generate shared objects directly from archives.
18348whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18349
18350# Compiler flag to generate thread-safe objects.
18351thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18352
18353# Library versioning type.
18354version_type=$version_type
18355
18356# Format of library name prefix.
18357libname_spec=$lt_libname_spec
18358
18359# List of archive names.  First name is the real one, the rest are links.
18360# The last name is the one that the linker finds with -lNAME.
18361library_names_spec=$lt_library_names_spec
18362
18363# The coded name of the library, if different from the real name.
18364soname_spec=$lt_soname_spec
18365
18366# Commands used to build and install an old-style archive.
18367RANLIB=$lt_RANLIB
18368old_archive_cmds=$lt_old_archive_cmds_RC
18369old_postinstall_cmds=$lt_old_postinstall_cmds
18370old_postuninstall_cmds=$lt_old_postuninstall_cmds
18371
18372# Create an old-style archive from a shared archive.
18373old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18374
18375# Create a temporary old-style archive to link instead of a shared archive.
18376old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18377
18378# Commands used to build and install a shared archive.
18379archive_cmds=$lt_archive_cmds_RC
18380archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18381postinstall_cmds=$lt_postinstall_cmds
18382postuninstall_cmds=$lt_postuninstall_cmds
18383
18384# Commands used to build a loadable module (assumed same as above if empty)
18385module_cmds=$lt_module_cmds_RC
18386module_expsym_cmds=$lt_module_expsym_cmds_RC
18387
18388# Commands to strip libraries.
18389old_striplib=$lt_old_striplib
18390striplib=$lt_striplib
18391
18392# Dependencies to place before the objects being linked to create a
18393# shared library.
18394predep_objects=$lt_predep_objects_RC
18395
18396# Dependencies to place after the objects being linked to create a
18397# shared library.
18398postdep_objects=$lt_postdep_objects_RC
18399
18400# Dependencies to place before the objects being linked to create a
18401# shared library.
18402predeps=$lt_predeps_RC
18403
18404# Dependencies to place after the objects being linked to create a
18405# shared library.
18406postdeps=$lt_postdeps_RC
18407
18408# The library search path used internally by the compiler when linking
18409# a shared library.
18410compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18411
18412# Method to check whether dependent libraries are shared objects.
18413deplibs_check_method=$lt_deplibs_check_method
18414
18415# Command to use when deplibs_check_method == file_magic.
18416file_magic_cmd=$lt_file_magic_cmd
18417
18418# Flag that allows shared libraries with undefined symbols to be built.
18419allow_undefined_flag=$lt_allow_undefined_flag_RC
18420
18421# Flag that forces no undefined symbols.
18422no_undefined_flag=$lt_no_undefined_flag_RC
18423
18424# Commands used to finish a libtool library installation in a directory.
18425finish_cmds=$lt_finish_cmds
18426
18427# Same as above, but a single script fragment to be evaled but not shown.
18428finish_eval=$lt_finish_eval
18429
18430# Take the output of nm and produce a listing of raw symbols and C names.
18431global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18432
18433# Transform the output of nm in a proper C declaration
18434global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18435
18436# Transform the output of nm in a C name address pair
18437global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18438
18439# This is the shared library runtime path variable.
18440runpath_var=$runpath_var
18441
18442# This is the shared library path variable.
18443shlibpath_var=$shlibpath_var
18444
18445# Is shlibpath searched before the hard-coded library search path?
18446shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18447
18448# How to hardcode a shared library path into an executable.
18449hardcode_action=$hardcode_action_RC
18450
18451# Whether we should hardcode library paths into libraries.
18452hardcode_into_libs=$hardcode_into_libs
18453
18454# Flag to hardcode \$libdir into a binary during linking.
18455# This must work even if \$libdir does not exist.
18456hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18457
18458# If ld is used when linking, flag to hardcode \$libdir into
18459# a binary during linking. This must work even if \$libdir does
18460# not exist.
18461hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18462
18463# Whether we need a single -rpath flag with a separated argument.
18464hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18465
18466# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18467# resulting binary.
18468hardcode_direct=$hardcode_direct_RC
18469
18470# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18471# resulting binary.
18472hardcode_minus_L=$hardcode_minus_L_RC
18473
18474# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18475# the resulting binary.
18476hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18477
18478# Set to yes if building a shared library automatically hardcodes DIR into the library
18479# and all subsequent libraries and executables linked against it.
18480hardcode_automatic=$hardcode_automatic_RC
18481
18482# Variables whose values should be saved in libtool wrapper scripts and
18483# restored at relink time.
18484variables_saved_for_relink="$variables_saved_for_relink"
18485
18486# Whether libtool must link a program against all its dependency libraries.
18487link_all_deplibs=$link_all_deplibs_RC
18488
18489# Compile-time system search path for libraries
18490sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18491
18492# Run-time system search path for libraries
18493sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18494
18495# Fix the shell variable \$srcfile for the compiler.
18496fix_srcfile_path="$fix_srcfile_path_RC"
18497
18498# Set to yes if exported symbols are required.
18499always_export_symbols=$always_export_symbols_RC
18500
18501# The commands to list exported symbols.
18502export_symbols_cmds=$lt_export_symbols_cmds_RC
18503
18504# The commands to extract the exported symbol list from a shared archive.
18505extract_expsyms_cmds=$lt_extract_expsyms_cmds
18506
18507# Symbols that should not be listed in the preloaded symbols.
18508exclude_expsyms=$lt_exclude_expsyms_RC
18509
18510# Symbols that must always be exported.
18511include_expsyms=$lt_include_expsyms_RC
18512
18513# ### END LIBTOOL TAG CONFIG: $tagname
18514
18515__EOF__
18516
18517
18518else
18519  # If there is no Makefile yet, we rely on a make rule to execute
18520  # `config.status --recheck' to rerun these tests and create the
18521  # libtool script then.
18522  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18523  if test -f "$ltmain_in"; then
18524    test -f Makefile && make "$ltmain"
18525  fi
18526fi
18527
18528
18529ac_ext=c
18530ac_cpp='$CPP $CPPFLAGS'
18531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18533ac_compiler_gnu=$ac_cv_c_compiler_gnu
18534
18535CC="$lt_save_CC"
18536
18537	;;
18538
18539      *)
18540	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18541echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18542   { (exit 1); exit 1; }; }
18543	;;
18544      esac
18545
18546      # Append the new tag name to the list of available tags.
18547      if test -n "$tagname" ; then
18548      available_tags="$available_tags $tagname"
18549    fi
18550    fi
18551  done
18552  IFS="$lt_save_ifs"
18553
18554  # Now substitute the updated list of available tags.
18555  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18556    mv "${ofile}T" "$ofile"
18557    chmod +x "$ofile"
18558  else
18559    rm -f "${ofile}T"
18560    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18561echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18562   { (exit 1); exit 1; }; }
18563  fi
18564fi
18565
18566
18567
18568# This can be used to rebuild libtool when needed
18569LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18570
18571# Always use our own libtool.
18572LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18573
18574# Prevent multiple expansion
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595# Find a good install program.  We prefer a C program (faster),
18596# so one script is as good as another.  But avoid the broken or
18597# incompatible versions:
18598# SysV /etc/install, /usr/sbin/install
18599# SunOS /usr/etc/install
18600# IRIX /sbin/install
18601# AIX /bin/install
18602# AmigaOS /C/install, which installs bootblocks on floppy discs
18603# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18604# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18605# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18606# OS/2's system install, which has a completely different semantic
18607# ./install, which can be erroneously created by make from ./install.sh.
18608echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18609echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18610if test -z "$INSTALL"; then
18611if test "${ac_cv_path_install+set}" = set; then
18612  echo $ECHO_N "(cached) $ECHO_C" >&6
18613else
18614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18615for as_dir in $PATH
18616do
18617  IFS=$as_save_IFS
18618  test -z "$as_dir" && as_dir=.
18619  # Account for people who put trailing slashes in PATH elements.
18620case $as_dir/ in
18621  ./ | .// | /cC/* | \
18622  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18623  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18624  /usr/ucb/* ) ;;
18625  *)
18626    # OSF1 and SCO ODT 3.0 have their own names for install.
18627    # Don't use installbsd from OSF since it installs stuff as root
18628    # by default.
18629    for ac_prog in ginstall scoinst install; do
18630      for ac_exec_ext in '' $ac_executable_extensions; do
18631	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18632	  if test $ac_prog = install &&
18633	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18634	    # AIX install.  It has an incompatible calling convention.
18635	    :
18636	  elif test $ac_prog = install &&
18637	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18638	    # program-specific install script used by HP pwplus--don't use.
18639	    :
18640	  else
18641	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18642	    break 3
18643	  fi
18644	fi
18645      done
18646    done
18647    ;;
18648esac
18649done
18650
18651
18652fi
18653  if test "${ac_cv_path_install+set}" = set; then
18654    INSTALL=$ac_cv_path_install
18655  else
18656    # As a last resort, use the slow shell script.  We don't cache a
18657    # path for INSTALL within a source directory, because that will
18658    # break other packages using the cache if that directory is
18659    # removed, or if the path is relative.
18660    INSTALL=$ac_install_sh
18661  fi
18662fi
18663echo "$as_me:$LINENO: result: $INSTALL" >&5
18664echo "${ECHO_T}$INSTALL" >&6
18665
18666# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18667# It thinks the first close brace ends the variable substitution.
18668test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18669
18670test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18671
18672test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18673
18674
18675SDL_VERSION=1.0.1
18676
18677# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
18678if test "${with_sdl_prefix+set}" = set; then
18679  withval="$with_sdl_prefix"
18680  sdl_prefix="$withval"
18681else
18682  sdl_prefix=""
18683fi;
18684
18685# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
18686if test "${with_sdl_exec_prefix+set}" = set; then
18687  withval="$with_sdl_exec_prefix"
18688  sdl_exec_prefix="$withval"
18689else
18690  sdl_exec_prefix=""
18691fi;
18692# Check whether --enable-sdltest or --disable-sdltest was given.
18693if test "${enable_sdltest+set}" = set; then
18694  enableval="$enable_sdltest"
18695
18696else
18697  enable_sdltest=yes
18698fi;
18699
18700  if test x$sdl_exec_prefix != x ; then
18701    sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
18702    if test x${SDL_CONFIG+set} != xset ; then
18703      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
18704    fi
18705  fi
18706  if test x$sdl_prefix != x ; then
18707    sdl_args="$sdl_args --prefix=$sdl_prefix"
18708    if test x${SDL_CONFIG+set} != xset ; then
18709      SDL_CONFIG=$sdl_prefix/bin/sdl-config
18710    fi
18711  fi
18712
18713  if test "x$prefix" != xNONE; then
18714    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
18715  fi
18716  # Extract the first word of "sdl-config", so it can be a program name with args.
18717set dummy sdl-config; ac_word=$2
18718echo "$as_me:$LINENO: checking for $ac_word" >&5
18719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18720if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
18721  echo $ECHO_N "(cached) $ECHO_C" >&6
18722else
18723  case $SDL_CONFIG in
18724  [\\/]* | ?:[\\/]*)
18725  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
18726  ;;
18727  *)
18728  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18729for as_dir in $PATH
18730do
18731  IFS=$as_save_IFS
18732  test -z "$as_dir" && as_dir=.
18733  for ac_exec_ext in '' $ac_executable_extensions; do
18734  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18735    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18737    break 2
18738  fi
18739done
18740done
18741
18742  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
18743  ;;
18744esac
18745fi
18746SDL_CONFIG=$ac_cv_path_SDL_CONFIG
18747
18748if test -n "$SDL_CONFIG"; then
18749  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
18750echo "${ECHO_T}$SDL_CONFIG" >&6
18751else
18752  echo "$as_me:$LINENO: result: no" >&5
18753echo "${ECHO_T}no" >&6
18754fi
18755
18756  min_sdl_version=$SDL_VERSION
18757  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
18758echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
18759  no_sdl=""
18760  if test "$SDL_CONFIG" = "no" ; then
18761    no_sdl=yes
18762  else
18763    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
18764    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
18765
18766    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
18767           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18768    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
18769           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18770    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
18771           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18772    if test "x$enable_sdltest" = "xyes" ; then
18773      ac_save_CFLAGS="$CFLAGS"
18774      ac_save_CXXFLAGS="$CXXFLAGS"
18775      ac_save_LIBS="$LIBS"
18776      CFLAGS="$CFLAGS $SDL_CFLAGS"
18777      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
18778      LIBS="$LIBS $SDL_LIBS"
18779      rm -f conf.sdltest
18780      if test "$cross_compiling" = yes; then
18781  echo $ac_n "cross compiling; assumed OK... $ac_c"
18782else
18783  cat >conftest.$ac_ext <<_ACEOF
18784/* confdefs.h.  */
18785_ACEOF
18786cat confdefs.h >>conftest.$ac_ext
18787cat >>conftest.$ac_ext <<_ACEOF
18788/* end confdefs.h.  */
18789
18790#include <stdio.h>
18791#include <stdlib.h>
18792#include <string.h>
18793#include "SDL.h"
18794
18795char*
18796my_strdup (char *str)
18797{
18798  char *new_str;
18799
18800  if (str)
18801    {
18802      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
18803      strcpy (new_str, str);
18804    }
18805  else
18806    new_str = NULL;
18807
18808  return new_str;
18809}
18810
18811int main (int argc, char *argv[])
18812{
18813  int major, minor, micro;
18814  char *tmp_version;
18815
18816  /* This hangs on some systems (?)
18817  system ("touch conf.sdltest");
18818  */
18819  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
18820
18821  /* HP/UX 9 (%@#!) writes to sscanf strings */
18822  tmp_version = my_strdup("$min_sdl_version");
18823  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18824     printf("%s, bad version string\n", "$min_sdl_version");
18825     exit(1);
18826   }
18827
18828   if (($sdl_major_version > major) ||
18829      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
18830      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
18831    {
18832      return 0;
18833    }
18834  else
18835    {
18836      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
18837      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
18838      printf("*** best to upgrade to the required version.\n");
18839      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
18840      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
18841      printf("*** config.cache before re-running configure\n");
18842      return 1;
18843    }
18844}
18845
18846
18847_ACEOF
18848rm -f conftest$ac_exeext
18849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18850  (eval $ac_link) 2>&5
18851  ac_status=$?
18852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855  (eval $ac_try) 2>&5
18856  ac_status=$?
18857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858  (exit $ac_status); }; }; then
18859  :
18860else
18861  echo "$as_me: program exited with status $ac_status" >&5
18862echo "$as_me: failed program was:" >&5
18863sed 's/^/| /' conftest.$ac_ext >&5
18864
18865( exit $ac_status )
18866no_sdl=yes
18867fi
18868rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18869fi
18870       CFLAGS="$ac_save_CFLAGS"
18871       CXXFLAGS="$ac_save_CXXFLAGS"
18872       LIBS="$ac_save_LIBS"
18873     fi
18874  fi
18875  if test "x$no_sdl" = x ; then
18876     echo "$as_me:$LINENO: result: yes" >&5
18877echo "${ECHO_T}yes" >&6
18878     :
18879  else
18880     echo "$as_me:$LINENO: result: no" >&5
18881echo "${ECHO_T}no" >&6
18882     if test "$SDL_CONFIG" = "no" ; then
18883       echo "*** The sdl-config script installed by SDL could not be found"
18884       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
18885       echo "*** your path, or set the SDL_CONFIG environment variable to the"
18886       echo "*** full path to sdl-config."
18887     else
18888       if test -f conf.sdltest ; then
18889        :
18890       else
18891          echo "*** Could not run SDL test program, checking why..."
18892          CFLAGS="$CFLAGS $SDL_CFLAGS"
18893          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
18894          LIBS="$LIBS $SDL_LIBS"
18895          cat >conftest.$ac_ext <<_ACEOF
18896/* confdefs.h.  */
18897_ACEOF
18898cat confdefs.h >>conftest.$ac_ext
18899cat >>conftest.$ac_ext <<_ACEOF
18900/* end confdefs.h.  */
18901
18902#include <stdio.h>
18903#include "SDL.h"
18904
18905int main(int argc, char *argv[])
18906{ return 0; }
18907#undef  main
18908#define main K_and_R_C_main
18909
18910int
18911main ()
18912{
18913 return 0;
18914  ;
18915  return 0;
18916}
18917_ACEOF
18918rm -f conftest.$ac_objext conftest$ac_exeext
18919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18920  (eval $ac_link) 2>conftest.er1
18921  ac_status=$?
18922  grep -v '^ *+' conftest.er1 >conftest.err
18923  rm -f conftest.er1
18924  cat conftest.err >&5
18925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926  (exit $ac_status); } &&
18927	 { ac_try='test -z "$ac_c_werror_flag"
18928			 || test ! -s conftest.err'
18929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930  (eval $ac_try) 2>&5
18931  ac_status=$?
18932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933  (exit $ac_status); }; } &&
18934	 { ac_try='test -s conftest$ac_exeext'
18935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936  (eval $ac_try) 2>&5
18937  ac_status=$?
18938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939  (exit $ac_status); }; }; then
18940   echo "*** The test program compiled, but did not run. This usually means"
18941          echo "*** that the run-time linker is not finding SDL or finding the wrong"
18942          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
18943          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18944          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18945          echo "*** is required on your system"
18946	  echo "***"
18947          echo "*** If you have an old version installed, it is best to remove it, although"
18948          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18949else
18950  echo "$as_me: failed program was:" >&5
18951sed 's/^/| /' conftest.$ac_ext >&5
18952
18953 echo "*** The test program failed to compile or link. See the file config.log for the"
18954          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
18955          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
18956          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
18957fi
18958rm -f conftest.err conftest.$ac_objext \
18959      conftest$ac_exeext conftest.$ac_ext
18960          CFLAGS="$ac_save_CFLAGS"
18961          CXXFLAGS="$ac_save_CXXFLAGS"
18962          LIBS="$ac_save_LIBS"
18963       fi
18964     fi
18965     SDL_CFLAGS=""
18966     SDL_LIBS=""
18967     { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
18968echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
18969   { (exit 1); exit 1; }; }
18970
18971  fi
18972
18973
18974  rm -f conf.sdltest
18975
18976CFLAGS="$CFLAGS $SDL_CFLAGS"
18977LIBS="$LIBS $SDL_LIBS"
18978
18979CXXFLAGS="$CFLAGS"
18980
18981# Finally create all the generated files
18982          ac_config_files="$ac_config_files Makefile"
18983cat >confcache <<\_ACEOF
18984# This file is a shell script that caches the results of configure
18985# tests run on this system so they can be shared between configure
18986# scripts and configure runs, see configure's option --config-cache.
18987# It is not useful on other systems.  If it contains results you don't
18988# want to keep, you may remove or edit it.
18989#
18990# config.status only pays attention to the cache file if you give it
18991# the --recheck option to rerun configure.
18992#
18993# `ac_cv_env_foo' variables (set or unset) will be overridden when
18994# loading this file, other *unset* `ac_cv_foo' will be assigned the
18995# following values.
18996
18997_ACEOF
18998
18999# The following way of writing the cache mishandles newlines in values,
19000# but we know of no workaround that is simple, portable, and efficient.
19001# So, don't put newlines in cache variables' values.
19002# Ultrix sh set writes to stderr and can't be redirected directly,
19003# and sets the high bit in the cache file unless we assign to the vars.
19004{
19005  (set) 2>&1 |
19006    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19007    *ac_space=\ *)
19008      # `set' does not quote correctly, so add quotes (double-quote
19009      # substitution turns \\\\ into \\, and sed turns \\ into \).
19010      sed -n \
19011	"s/'/'\\\\''/g;
19012	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19013      ;;
19014    *)
19015      # `set' quotes correctly as required by POSIX, so do not add quotes.
19016      sed -n \
19017	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19018      ;;
19019    esac;
19020} |
19021  sed '
19022     t clear
19023     : clear
19024     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19025     t end
19026     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19027     : end' >>confcache
19028if diff $cache_file confcache >/dev/null 2>&1; then :; else
19029  if test -w $cache_file; then
19030    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19031    cat confcache >$cache_file
19032  else
19033    echo "not updating unwritable cache $cache_file"
19034  fi
19035fi
19036rm -f confcache
19037
19038test "x$prefix" = xNONE && prefix=$ac_default_prefix
19039# Let make expand exec_prefix.
19040test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19041
19042# VPATH may cause trouble with some makes, so we remove $(srcdir),
19043# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19044# trailing colons and then remove the whole line if VPATH becomes empty
19045# (actually we leave an empty line to preserve line numbers).
19046if test "x$srcdir" = x.; then
19047  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19048s/:*\$(srcdir):*/:/;
19049s/:*\${srcdir}:*/:/;
19050s/:*@srcdir@:*/:/;
19051s/^\([^=]*=[	 ]*\):*/\1/;
19052s/:*$//;
19053s/^[^=]*=[	 ]*$//;
19054}'
19055fi
19056
19057# Transform confdefs.h into DEFS.
19058# Protect against shell expansion while executing Makefile rules.
19059# Protect against Makefile macro expansion.
19060#
19061# If the first sed substitution is executed (which looks for macros that
19062# take arguments), then we branch to the quote section.  Otherwise,
19063# look for a macro that doesn't take arguments.
19064cat >confdef2opt.sed <<\_ACEOF
19065t clear
19066: clear
19067s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
19068t quote
19069s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
19070t quote
19071d
19072: quote
19073s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
19074s,\[,\\&,g
19075s,\],\\&,g
19076s,\$,$$,g
19077p
19078_ACEOF
19079# We use echo to avoid assuming a particular line-breaking character.
19080# The extra dot is to prevent the shell from consuming trailing
19081# line-breaks from the sub-command output.  A line-break within
19082# single-quotes doesn't work because, if this script is created in a
19083# platform that uses two characters for line-breaks (e.g., DOS), tr
19084# would break.
19085ac_LF_and_DOT=`echo; echo .`
19086DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19087rm -f confdef2opt.sed
19088
19089
19090ac_libobjs=
19091ac_ltlibobjs=
19092for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19093  # 1. Remove the extension, and $U if already installed.
19094  ac_i=`echo "$ac_i" |
19095	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19096  # 2. Add them.
19097  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19098  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19099done
19100LIBOBJS=$ac_libobjs
19101
19102LTLIBOBJS=$ac_ltlibobjs
19103
19104
19105if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19106  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19107Usually this means the macro was only invoked conditionally." >&5
19108echo "$as_me: error: conditional \"AMDEP\" was never defined.
19109Usually this means the macro was only invoked conditionally." >&2;}
19110   { (exit 1); exit 1; }; }
19111fi
19112if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19113  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19114Usually this means the macro was only invoked conditionally." >&5
19115echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19116Usually this means the macro was only invoked conditionally." >&2;}
19117   { (exit 1); exit 1; }; }
19118fi
19119if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19120  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19121Usually this means the macro was only invoked conditionally." >&5
19122echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19123Usually this means the macro was only invoked conditionally." >&2;}
19124   { (exit 1); exit 1; }; }
19125fi
19126
19127: ${CONFIG_STATUS=./config.status}
19128ac_clean_files_save=$ac_clean_files
19129ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19130{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19131echo "$as_me: creating $CONFIG_STATUS" >&6;}
19132cat >$CONFIG_STATUS <<_ACEOF
19133#! $SHELL
19134# Generated by $as_me.
19135# Run this file to recreate the current configuration.
19136# Compiler output produced by configure, useful for debugging
19137# configure, is in config.log if it exists.
19138
19139debug=false
19140ac_cs_recheck=false
19141ac_cs_silent=false
19142SHELL=\${CONFIG_SHELL-$SHELL}
19143_ACEOF
19144
19145cat >>$CONFIG_STATUS <<\_ACEOF
19146## --------------------- ##
19147## M4sh Initialization.  ##
19148## --------------------- ##
19149
19150# Be Bourne compatible
19151if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19152  emulate sh
19153  NULLCMD=:
19154  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19155  # is contrary to our usage.  Disable this feature.
19156  alias -g '${1+"$@"}'='"$@"'
19157elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19158  set -o posix
19159fi
19160DUALCASE=1; export DUALCASE # for MKS sh
19161
19162# Support unset when possible.
19163if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19164  as_unset=unset
19165else
19166  as_unset=false
19167fi
19168
19169
19170# Work around bugs in pre-3.0 UWIN ksh.
19171$as_unset ENV MAIL MAILPATH
19172PS1='$ '
19173PS2='> '
19174PS4='+ '
19175
19176# NLS nuisances.
19177for as_var in \
19178  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19179  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19180  LC_TELEPHONE LC_TIME
19181do
19182  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19183    eval $as_var=C; export $as_var
19184  else
19185    $as_unset $as_var
19186  fi
19187done
19188
19189# Required to use basename.
19190if expr a : '\(a\)' >/dev/null 2>&1; then
19191  as_expr=expr
19192else
19193  as_expr=false
19194fi
19195
19196if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19197  as_basename=basename
19198else
19199  as_basename=false
19200fi
19201
19202
19203# Name of the executable.
19204as_me=`$as_basename "$0" ||
19205$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19206	 X"$0" : 'X\(//\)$' \| \
19207	 X"$0" : 'X\(/\)$' \| \
19208	 .     : '\(.\)' 2>/dev/null ||
19209echo X/"$0" |
19210    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19211  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
19212  	  /^X\/\(\/\).*/{ s//\1/; q; }
19213  	  s/.*/./; q'`
19214
19215
19216# PATH needs CR, and LINENO needs CR and PATH.
19217# Avoid depending upon Character Ranges.
19218as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19219as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19220as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19221as_cr_digits='0123456789'
19222as_cr_alnum=$as_cr_Letters$as_cr_digits
19223
19224# The user is always right.
19225if test "${PATH_SEPARATOR+set}" != set; then
19226  echo "#! /bin/sh" >conf$$.sh
19227  echo  "exit 0"   >>conf$$.sh
19228  chmod +x conf$$.sh
19229  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19230    PATH_SEPARATOR=';'
19231  else
19232    PATH_SEPARATOR=:
19233  fi
19234  rm -f conf$$.sh
19235fi
19236
19237
19238  as_lineno_1=$LINENO
19239  as_lineno_2=$LINENO
19240  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19241  test "x$as_lineno_1" != "x$as_lineno_2" &&
19242  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19243  # Find who we are.  Look in the path if we contain no path at all
19244  # relative or not.
19245  case $0 in
19246    *[\\/]* ) as_myself=$0 ;;
19247    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19248for as_dir in $PATH
19249do
19250  IFS=$as_save_IFS
19251  test -z "$as_dir" && as_dir=.
19252  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19253done
19254
19255       ;;
19256  esac
19257  # We did not find ourselves, most probably we were run as `sh COMMAND'
19258  # in which case we are not to be found in the path.
19259  if test "x$as_myself" = x; then
19260    as_myself=$0
19261  fi
19262  if test ! -f "$as_myself"; then
19263    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19264echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19265   { (exit 1); exit 1; }; }
19266  fi
19267  case $CONFIG_SHELL in
19268  '')
19269    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19270for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19271do
19272  IFS=$as_save_IFS
19273  test -z "$as_dir" && as_dir=.
19274  for as_base in sh bash ksh sh5; do
19275	 case $as_dir in
19276	 /*)
19277	   if ("$as_dir/$as_base" -c '
19278  as_lineno_1=$LINENO
19279  as_lineno_2=$LINENO
19280  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19281  test "x$as_lineno_1" != "x$as_lineno_2" &&
19282  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19283	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19284	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19285	     CONFIG_SHELL=$as_dir/$as_base
19286	     export CONFIG_SHELL
19287	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19288	   fi;;
19289	 esac
19290       done
19291done
19292;;
19293  esac
19294
19295  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19296  # uniformly replaced by the line number.  The first 'sed' inserts a
19297  # line-number line before each line; the second 'sed' does the real
19298  # work.  The second script uses 'N' to pair each line-number line
19299  # with the numbered line, and appends trailing '-' during
19300  # substitution so that $LINENO is not a special case at line end.
19301  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19302  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19303  sed '=' <$as_myself |
19304    sed '
19305      N
19306      s,$,-,
19307      : loop
19308      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19309      t loop
19310      s,-$,,
19311      s,^['$as_cr_digits']*\n,,
19312    ' >$as_me.lineno &&
19313  chmod +x $as_me.lineno ||
19314    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19315echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19316   { (exit 1); exit 1; }; }
19317
19318  # Don't try to exec as it changes $[0], causing all sort of problems
19319  # (the dirname of $[0] is not the place where we might find the
19320  # original and so on.  Autoconf is especially sensible to this).
19321  . ./$as_me.lineno
19322  # Exit status is that of the last command.
19323  exit
19324}
19325
19326
19327case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19328  *c*,-n*) ECHO_N= ECHO_C='
19329' ECHO_T='	' ;;
19330  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19331  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19332esac
19333
19334if expr a : '\(a\)' >/dev/null 2>&1; then
19335  as_expr=expr
19336else
19337  as_expr=false
19338fi
19339
19340rm -f conf$$ conf$$.exe conf$$.file
19341echo >conf$$.file
19342if ln -s conf$$.file conf$$ 2>/dev/null; then
19343  # We could just check for DJGPP; but this test a) works b) is more generic
19344  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19345  if test -f conf$$.exe; then
19346    # Don't use ln at all; we don't have any links
19347    as_ln_s='cp -p'
19348  else
19349    as_ln_s='ln -s'
19350  fi
19351elif ln conf$$.file conf$$ 2>/dev/null; then
19352  as_ln_s=ln
19353else
19354  as_ln_s='cp -p'
19355fi
19356rm -f conf$$ conf$$.exe conf$$.file
19357
19358if mkdir -p . 2>/dev/null; then
19359  as_mkdir_p=:
19360else
19361  test -d ./-p && rmdir ./-p
19362  as_mkdir_p=false
19363fi
19364
19365as_executable_p="test -f"
19366
19367# Sed expression to map a string onto a valid CPP name.
19368as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19369
19370# Sed expression to map a string onto a valid variable name.
19371as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19372
19373
19374# IFS
19375# We need space, tab and new line, in precisely that order.
19376as_nl='
19377'
19378IFS=" 	$as_nl"
19379
19380# CDPATH.
19381$as_unset CDPATH
19382
19383exec 6>&1
19384
19385# Open the log real soon, to keep \$[0] and so on meaningful, and to
19386# report actual input values of CONFIG_FILES etc. instead of their
19387# values after options handling.  Logging --version etc. is OK.
19388exec 5>>config.log
19389{
19390  echo
19391  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19392## Running $as_me. ##
19393_ASBOX
19394} >&5
19395cat >&5 <<_CSEOF
19396
19397This file was extended by $as_me, which was
19398generated by GNU Autoconf 2.59.  Invocation command line was
19399
19400  CONFIG_FILES    = $CONFIG_FILES
19401  CONFIG_HEADERS  = $CONFIG_HEADERS
19402  CONFIG_LINKS    = $CONFIG_LINKS
19403  CONFIG_COMMANDS = $CONFIG_COMMANDS
19404  $ $0 $@
19405
19406_CSEOF
19407echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19408echo >&5
19409_ACEOF
19410
19411# Files that config.status was made for.
19412if test -n "$ac_config_files"; then
19413  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19414fi
19415
19416if test -n "$ac_config_headers"; then
19417  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19418fi
19419
19420if test -n "$ac_config_links"; then
19421  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19422fi
19423
19424if test -n "$ac_config_commands"; then
19425  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19426fi
19427
19428cat >>$CONFIG_STATUS <<\_ACEOF
19429
19430ac_cs_usage="\
19431\`$as_me' instantiates files from templates according to the
19432current configuration.
19433
19434Usage: $0 [OPTIONS] [FILE]...
19435
19436  -h, --help       print this help, then exit
19437  -V, --version    print version number, then exit
19438  -q, --quiet      do not print progress messages
19439  -d, --debug      don't remove temporary files
19440      --recheck    update $as_me by reconfiguring in the same conditions
19441  --file=FILE[:TEMPLATE]
19442		   instantiate the configuration file FILE
19443
19444Configuration files:
19445$config_files
19446
19447Configuration commands:
19448$config_commands
19449
19450Report bugs to <bug-autoconf@gnu.org>."
19451_ACEOF
19452
19453cat >>$CONFIG_STATUS <<_ACEOF
19454ac_cs_version="\\
19455config.status
19456configured by $0, generated by GNU Autoconf 2.59,
19457  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19458
19459Copyright (C) 2003 Free Software Foundation, Inc.
19460This config.status script is free software; the Free Software Foundation
19461gives unlimited permission to copy, distribute and modify it."
19462srcdir=$srcdir
19463INSTALL="$INSTALL"
19464_ACEOF
19465
19466cat >>$CONFIG_STATUS <<\_ACEOF
19467# If no file are specified by the user, then we need to provide default
19468# value.  By we need to know if files were specified by the user.
19469ac_need_defaults=:
19470while test $# != 0
19471do
19472  case $1 in
19473  --*=*)
19474    ac_option=`expr "x$1" : 'x\([^=]*\)='`
19475    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19476    ac_shift=:
19477    ;;
19478  -*)
19479    ac_option=$1
19480    ac_optarg=$2
19481    ac_shift=shift
19482    ;;
19483  *) # This is not an option, so the user has probably given explicit
19484     # arguments.
19485     ac_option=$1
19486     ac_need_defaults=false;;
19487  esac
19488
19489  case $ac_option in
19490  # Handling of the options.
19491_ACEOF
19492cat >>$CONFIG_STATUS <<\_ACEOF
19493  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19494    ac_cs_recheck=: ;;
19495  --version | --vers* | -V )
19496    echo "$ac_cs_version"; exit 0 ;;
19497  --he | --h)
19498    # Conflict between --help and --header
19499    { { echo "$as_me:$LINENO: error: ambiguous option: $1
19500Try \`$0 --help' for more information." >&5
19501echo "$as_me: error: ambiguous option: $1
19502Try \`$0 --help' for more information." >&2;}
19503   { (exit 1); exit 1; }; };;
19504  --help | --hel | -h )
19505    echo "$ac_cs_usage"; exit 0 ;;
19506  --debug | --d* | -d )
19507    debug=: ;;
19508  --file | --fil | --fi | --f )
19509    $ac_shift
19510    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19511    ac_need_defaults=false;;
19512  --header | --heade | --head | --hea )
19513    $ac_shift
19514    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19515    ac_need_defaults=false;;
19516  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19517  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19518    ac_cs_silent=: ;;
19519
19520  # This is an error.
19521  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19522Try \`$0 --help' for more information." >&5
19523echo "$as_me: error: unrecognized option: $1
19524Try \`$0 --help' for more information." >&2;}
19525   { (exit 1); exit 1; }; } ;;
19526
19527  *) ac_config_targets="$ac_config_targets $1" ;;
19528
19529  esac
19530  shift
19531done
19532
19533ac_configure_extra_args=
19534
19535if $ac_cs_silent; then
19536  exec 6>/dev/null
19537  ac_configure_extra_args="$ac_configure_extra_args --silent"
19538fi
19539
19540_ACEOF
19541cat >>$CONFIG_STATUS <<_ACEOF
19542if \$ac_cs_recheck; then
19543  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19544  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19545fi
19546
19547_ACEOF
19548
19549cat >>$CONFIG_STATUS <<_ACEOF
19550#
19551# INIT-COMMANDS section.
19552#
19553
19554AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19555
19556_ACEOF
19557
19558
19559
19560cat >>$CONFIG_STATUS <<\_ACEOF
19561for ac_config_target in $ac_config_targets
19562do
19563  case "$ac_config_target" in
19564  # Handling of arguments.
19565  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19566  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19567  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19568echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19569   { (exit 1); exit 1; }; };;
19570  esac
19571done
19572
19573# If the user did not use the arguments to specify the items to instantiate,
19574# then the envvar interface is used.  Set only those that are not.
19575# We use the long form for the default assignment because of an extremely
19576# bizarre bug on SunOS 4.1.3.
19577if $ac_need_defaults; then
19578  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19579  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19580fi
19581
19582# Have a temporary directory for convenience.  Make it in the build tree
19583# simply because there is no reason to put it here, and in addition,
19584# creating and moving files from /tmp can sometimes cause problems.
19585# Create a temporary directory, and hook for its removal unless debugging.
19586$debug ||
19587{
19588  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19589  trap '{ (exit 1); exit 1; }' 1 2 13 15
19590}
19591
19592# Create a (secure) tmp directory for tmp files.
19593
19594{
19595  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19596  test -n "$tmp" && test -d "$tmp"
19597}  ||
19598{
19599  tmp=./confstat$$-$RANDOM
19600  (umask 077 && mkdir $tmp)
19601} ||
19602{
19603   echo "$me: cannot create a temporary directory in ." >&2
19604   { (exit 1); exit 1; }
19605}
19606
19607_ACEOF
19608
19609cat >>$CONFIG_STATUS <<_ACEOF
19610
19611#
19612# CONFIG_FILES section.
19613#
19614
19615# No need to generate the scripts if there are no CONFIG_FILES.
19616# This happens for instance when ./config.status config.h
19617if test -n "\$CONFIG_FILES"; then
19618  # Protect against being on the right side of a sed subst in config.status.
19619  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19620   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19621s,@SHELL@,$SHELL,;t t
19622s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19623s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19624s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19625s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19626s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19627s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19628s,@exec_prefix@,$exec_prefix,;t t
19629s,@prefix@,$prefix,;t t
19630s,@program_transform_name@,$program_transform_name,;t t
19631s,@bindir@,$bindir,;t t
19632s,@sbindir@,$sbindir,;t t
19633s,@libexecdir@,$libexecdir,;t t
19634s,@datadir@,$datadir,;t t
19635s,@sysconfdir@,$sysconfdir,;t t
19636s,@sharedstatedir@,$sharedstatedir,;t t
19637s,@localstatedir@,$localstatedir,;t t
19638s,@libdir@,$libdir,;t t
19639s,@includedir@,$includedir,;t t
19640s,@oldincludedir@,$oldincludedir,;t t
19641s,@infodir@,$infodir,;t t
19642s,@mandir@,$mandir,;t t
19643s,@build_alias@,$build_alias,;t t
19644s,@host_alias@,$host_alias,;t t
19645s,@target_alias@,$target_alias,;t t
19646s,@DEFS@,$DEFS,;t t
19647s,@ECHO_C@,$ECHO_C,;t t
19648s,@ECHO_N@,$ECHO_N,;t t
19649s,@ECHO_T@,$ECHO_T,;t t
19650s,@LIBS@,$LIBS,;t t
19651s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
19652s,@MINOR_VERSION@,$MINOR_VERSION,;t t
19653s,@MICRO_VERSION@,$MICRO_VERSION,;t t
19654s,@INTERFACE_AGE@,$INTERFACE_AGE,;t t
19655s,@BINARY_AGE@,$BINARY_AGE,;t t
19656s,@VERSION@,$VERSION,;t t
19657s,@LT_RELEASE@,$LT_RELEASE,;t t
19658s,@LT_CURRENT@,$LT_CURRENT,;t t
19659s,@LT_REVISION@,$LT_REVISION,;t t
19660s,@LT_AGE@,$LT_AGE,;t t
19661s,@build@,$build,;t t
19662s,@build_cpu@,$build_cpu,;t t
19663s,@build_vendor@,$build_vendor,;t t
19664s,@build_os@,$build_os,;t t
19665s,@host@,$host,;t t
19666s,@host_cpu@,$host_cpu,;t t
19667s,@host_vendor@,$host_vendor,;t t
19668s,@host_os@,$host_os,;t t
19669s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19670s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19671s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19672s,@CYGPATH_W@,$CYGPATH_W,;t t
19673s,@PACKAGE@,$PACKAGE,;t t
19674s,@ACLOCAL@,$ACLOCAL,;t t
19675s,@AUTOCONF@,$AUTOCONF,;t t
19676s,@AUTOMAKE@,$AUTOMAKE,;t t
19677s,@AUTOHEADER@,$AUTOHEADER,;t t
19678s,@MAKEINFO@,$MAKEINFO,;t t
19679s,@install_sh@,$install_sh,;t t
19680s,@STRIP@,$STRIP,;t t
19681s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19682s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19683s,@mkdir_p@,$mkdir_p,;t t
19684s,@AWK@,$AWK,;t t
19685s,@SET_MAKE@,$SET_MAKE,;t t
19686s,@am__leading_dot@,$am__leading_dot,;t t
19687s,@AMTAR@,$AMTAR,;t t
19688s,@am__tar@,$am__tar,;t t
19689s,@am__untar@,$am__untar,;t t
19690s,@CC@,$CC,;t t
19691s,@CFLAGS@,$CFLAGS,;t t
19692s,@LDFLAGS@,$LDFLAGS,;t t
19693s,@CPPFLAGS@,$CPPFLAGS,;t t
19694s,@ac_ct_CC@,$ac_ct_CC,;t t
19695s,@EXEEXT@,$EXEEXT,;t t
19696s,@OBJEXT@,$OBJEXT,;t t
19697s,@DEPDIR@,$DEPDIR,;t t
19698s,@am__include@,$am__include,;t t
19699s,@am__quote@,$am__quote,;t t
19700s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19701s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19702s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19703s,@CCDEPMODE@,$CCDEPMODE,;t t
19704s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19705s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19706s,@CXX@,$CXX,;t t
19707s,@CXXFLAGS@,$CXXFLAGS,;t t
19708s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19709s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19710s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19711s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19712s,@EGREP@,$EGREP,;t t
19713s,@LN_S@,$LN_S,;t t
19714s,@ECHO@,$ECHO,;t t
19715s,@AR@,$AR,;t t
19716s,@ac_ct_AR@,$ac_ct_AR,;t t
19717s,@RANLIB@,$RANLIB,;t t
19718s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19719s,@CPP@,$CPP,;t t
19720s,@CXXCPP@,$CXXCPP,;t t
19721s,@F77@,$F77,;t t
19722s,@FFLAGS@,$FFLAGS,;t t
19723s,@ac_ct_F77@,$ac_ct_F77,;t t
19724s,@LIBTOOL@,$LIBTOOL,;t t
19725s,@SDL_CONFIG@,$SDL_CONFIG,;t t
19726s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
19727s,@SDL_LIBS@,$SDL_LIBS,;t t
19728s,@LIBOBJS@,$LIBOBJS,;t t
19729s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19730CEOF
19731
19732_ACEOF
19733
19734  cat >>$CONFIG_STATUS <<\_ACEOF
19735  # Split the substitutions into bite-sized pieces for seds with
19736  # small command number limits, like on Digital OSF/1 and HP-UX.
19737  ac_max_sed_lines=48
19738  ac_sed_frag=1 # Number of current file.
19739  ac_beg=1 # First line for current file.
19740  ac_end=$ac_max_sed_lines # Line after last line for current file.
19741  ac_more_lines=:
19742  ac_sed_cmds=
19743  while $ac_more_lines; do
19744    if test $ac_beg -gt 1; then
19745      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19746    else
19747      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19748    fi
19749    if test ! -s $tmp/subs.frag; then
19750      ac_more_lines=false
19751    else
19752      # The purpose of the label and of the branching condition is to
19753      # speed up the sed processing (if there are no `@' at all, there
19754      # is no need to browse any of the substitutions).
19755      # These are the two extra sed commands mentioned above.
19756      (echo ':t
19757  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19758      if test -z "$ac_sed_cmds"; then
19759	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19760      else
19761	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19762      fi
19763      ac_sed_frag=`expr $ac_sed_frag + 1`
19764      ac_beg=$ac_end
19765      ac_end=`expr $ac_end + $ac_max_sed_lines`
19766    fi
19767  done
19768  if test -z "$ac_sed_cmds"; then
19769    ac_sed_cmds=cat
19770  fi
19771fi # test -n "$CONFIG_FILES"
19772
19773_ACEOF
19774cat >>$CONFIG_STATUS <<\_ACEOF
19775for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19776  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19777  case $ac_file in
19778  - | *:- | *:-:* ) # input from stdin
19779	cat >$tmp/stdin
19780	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19781	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19782  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19783	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19784  * )   ac_file_in=$ac_file.in ;;
19785  esac
19786
19787  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19788  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19789$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19790	 X"$ac_file" : 'X\(//\)[^/]' \| \
19791	 X"$ac_file" : 'X\(//\)$' \| \
19792	 X"$ac_file" : 'X\(/\)' \| \
19793	 .     : '\(.\)' 2>/dev/null ||
19794echo X"$ac_file" |
19795    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19796  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19797  	  /^X\(\/\/\)$/{ s//\1/; q; }
19798  	  /^X\(\/\).*/{ s//\1/; q; }
19799  	  s/.*/./; q'`
19800  { if $as_mkdir_p; then
19801    mkdir -p "$ac_dir"
19802  else
19803    as_dir="$ac_dir"
19804    as_dirs=
19805    while test ! -d "$as_dir"; do
19806      as_dirs="$as_dir $as_dirs"
19807      as_dir=`(dirname "$as_dir") 2>/dev/null ||
19808$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19809	 X"$as_dir" : 'X\(//\)[^/]' \| \
19810	 X"$as_dir" : 'X\(//\)$' \| \
19811	 X"$as_dir" : 'X\(/\)' \| \
19812	 .     : '\(.\)' 2>/dev/null ||
19813echo X"$as_dir" |
19814    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19815  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19816  	  /^X\(\/\/\)$/{ s//\1/; q; }
19817  	  /^X\(\/\).*/{ s//\1/; q; }
19818  	  s/.*/./; q'`
19819    done
19820    test ! -n "$as_dirs" || mkdir $as_dirs
19821  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19822echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19823   { (exit 1); exit 1; }; }; }
19824
19825  ac_builddir=.
19826
19827if test "$ac_dir" != .; then
19828  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19829  # A "../" for each directory in $ac_dir_suffix.
19830  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19831else
19832  ac_dir_suffix= ac_top_builddir=
19833fi
19834
19835case $srcdir in
19836  .)  # No --srcdir option.  We are building in place.
19837    ac_srcdir=.
19838    if test -z "$ac_top_builddir"; then
19839       ac_top_srcdir=.
19840    else
19841       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19842    fi ;;
19843  [\\/]* | ?:[\\/]* )  # Absolute path.
19844    ac_srcdir=$srcdir$ac_dir_suffix;
19845    ac_top_srcdir=$srcdir ;;
19846  *) # Relative path.
19847    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19848    ac_top_srcdir=$ac_top_builddir$srcdir ;;
19849esac
19850
19851# Do not use `cd foo && pwd` to compute absolute paths, because
19852# the directories may not exist.
19853case `pwd` in
19854.) ac_abs_builddir="$ac_dir";;
19855*)
19856  case "$ac_dir" in
19857  .) ac_abs_builddir=`pwd`;;
19858  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19859  *) ac_abs_builddir=`pwd`/"$ac_dir";;
19860  esac;;
19861esac
19862case $ac_abs_builddir in
19863.) ac_abs_top_builddir=${ac_top_builddir}.;;
19864*)
19865  case ${ac_top_builddir}. in
19866  .) ac_abs_top_builddir=$ac_abs_builddir;;
19867  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19868  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19869  esac;;
19870esac
19871case $ac_abs_builddir in
19872.) ac_abs_srcdir=$ac_srcdir;;
19873*)
19874  case $ac_srcdir in
19875  .) ac_abs_srcdir=$ac_abs_builddir;;
19876  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19877  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19878  esac;;
19879esac
19880case $ac_abs_builddir in
19881.) ac_abs_top_srcdir=$ac_top_srcdir;;
19882*)
19883  case $ac_top_srcdir in
19884  .) ac_abs_top_srcdir=$ac_abs_builddir;;
19885  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19886  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19887  esac;;
19888esac
19889
19890
19891  case $INSTALL in
19892  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19893  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19894  esac
19895
19896  if test x"$ac_file" != x-; then
19897    { echo "$as_me:$LINENO: creating $ac_file" >&5
19898echo "$as_me: creating $ac_file" >&6;}
19899    rm -f "$ac_file"
19900  fi
19901  # Let's still pretend it is `configure' which instantiates (i.e., don't
19902  # use $as_me), people would be surprised to read:
19903  #    /* config.h.  Generated by config.status.  */
19904  if test x"$ac_file" = x-; then
19905    configure_input=
19906  else
19907    configure_input="$ac_file.  "
19908  fi
19909  configure_input=$configure_input"Generated from `echo $ac_file_in |
19910				     sed 's,.*/,,'` by configure."
19911
19912  # First look for the input files in the build tree, otherwise in the
19913  # src tree.
19914  ac_file_inputs=`IFS=:
19915    for f in $ac_file_in; do
19916      case $f in
19917      -) echo $tmp/stdin ;;
19918      [\\/$]*)
19919	 # Absolute (can't be DOS-style, as IFS=:)
19920	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19921echo "$as_me: error: cannot find input file: $f" >&2;}
19922   { (exit 1); exit 1; }; }
19923	 echo "$f";;
19924      *) # Relative
19925	 if test -f "$f"; then
19926	   # Build tree
19927	   echo "$f"
19928	 elif test -f "$srcdir/$f"; then
19929	   # Source tree
19930	   echo "$srcdir/$f"
19931	 else
19932	   # /dev/null tree
19933	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19934echo "$as_me: error: cannot find input file: $f" >&2;}
19935   { (exit 1); exit 1; }; }
19936	 fi;;
19937      esac
19938    done` || { (exit 1); exit 1; }
19939_ACEOF
19940cat >>$CONFIG_STATUS <<_ACEOF
19941  sed "$ac_vpsub
19942$extrasub
19943_ACEOF
19944cat >>$CONFIG_STATUS <<\_ACEOF
19945:t
19946/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19947s,@configure_input@,$configure_input,;t t
19948s,@srcdir@,$ac_srcdir,;t t
19949s,@abs_srcdir@,$ac_abs_srcdir,;t t
19950s,@top_srcdir@,$ac_top_srcdir,;t t
19951s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19952s,@builddir@,$ac_builddir,;t t
19953s,@abs_builddir@,$ac_abs_builddir,;t t
19954s,@top_builddir@,$ac_top_builddir,;t t
19955s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19956s,@INSTALL@,$ac_INSTALL,;t t
19957" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19958  rm -f $tmp/stdin
19959  if test x"$ac_file" != x-; then
19960    mv $tmp/out $ac_file
19961  else
19962    cat $tmp/out
19963    rm -f $tmp/out
19964  fi
19965
19966done
19967_ACEOF
19968cat >>$CONFIG_STATUS <<\_ACEOF
19969
19970#
19971# CONFIG_COMMANDS section.
19972#
19973for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19974  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19975  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19976  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19977$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19978	 X"$ac_dest" : 'X\(//\)[^/]' \| \
19979	 X"$ac_dest" : 'X\(//\)$' \| \
19980	 X"$ac_dest" : 'X\(/\)' \| \
19981	 .     : '\(.\)' 2>/dev/null ||
19982echo X"$ac_dest" |
19983    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19984  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19985  	  /^X\(\/\/\)$/{ s//\1/; q; }
19986  	  /^X\(\/\).*/{ s//\1/; q; }
19987  	  s/.*/./; q'`
19988  { if $as_mkdir_p; then
19989    mkdir -p "$ac_dir"
19990  else
19991    as_dir="$ac_dir"
19992    as_dirs=
19993    while test ! -d "$as_dir"; do
19994      as_dirs="$as_dir $as_dirs"
19995      as_dir=`(dirname "$as_dir") 2>/dev/null ||
19996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19997	 X"$as_dir" : 'X\(//\)[^/]' \| \
19998	 X"$as_dir" : 'X\(//\)$' \| \
19999	 X"$as_dir" : 'X\(/\)' \| \
20000	 .     : '\(.\)' 2>/dev/null ||
20001echo X"$as_dir" |
20002    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20003  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20004  	  /^X\(\/\/\)$/{ s//\1/; q; }
20005  	  /^X\(\/\).*/{ s//\1/; q; }
20006  	  s/.*/./; q'`
20007    done
20008    test ! -n "$as_dirs" || mkdir $as_dirs
20009  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20010echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20011   { (exit 1); exit 1; }; }; }
20012
20013  ac_builddir=.
20014
20015if test "$ac_dir" != .; then
20016  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20017  # A "../" for each directory in $ac_dir_suffix.
20018  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20019else
20020  ac_dir_suffix= ac_top_builddir=
20021fi
20022
20023case $srcdir in
20024  .)  # No --srcdir option.  We are building in place.
20025    ac_srcdir=.
20026    if test -z "$ac_top_builddir"; then
20027       ac_top_srcdir=.
20028    else
20029       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20030    fi ;;
20031  [\\/]* | ?:[\\/]* )  # Absolute path.
20032    ac_srcdir=$srcdir$ac_dir_suffix;
20033    ac_top_srcdir=$srcdir ;;
20034  *) # Relative path.
20035    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20036    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20037esac
20038
20039# Do not use `cd foo && pwd` to compute absolute paths, because
20040# the directories may not exist.
20041case `pwd` in
20042.) ac_abs_builddir="$ac_dir";;
20043*)
20044  case "$ac_dir" in
20045  .) ac_abs_builddir=`pwd`;;
20046  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20047  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20048  esac;;
20049esac
20050case $ac_abs_builddir in
20051.) ac_abs_top_builddir=${ac_top_builddir}.;;
20052*)
20053  case ${ac_top_builddir}. in
20054  .) ac_abs_top_builddir=$ac_abs_builddir;;
20055  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20056  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20057  esac;;
20058esac
20059case $ac_abs_builddir in
20060.) ac_abs_srcdir=$ac_srcdir;;
20061*)
20062  case $ac_srcdir in
20063  .) ac_abs_srcdir=$ac_abs_builddir;;
20064  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20065  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20066  esac;;
20067esac
20068case $ac_abs_builddir in
20069.) ac_abs_top_srcdir=$ac_top_srcdir;;
20070*)
20071  case $ac_top_srcdir in
20072  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20073  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20074  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20075  esac;;
20076esac
20077
20078
20079  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20080echo "$as_me: executing $ac_dest commands" >&6;}
20081  case $ac_dest in
20082    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20083  # Strip MF so we end up with the name of the file.
20084  mf=`echo "$mf" | sed -e 's/:.*$//'`
20085  # Check whether this is an Automake generated Makefile or not.
20086  # We used to match only the files named `Makefile.in', but
20087  # some people rename them; so instead we look at the file content.
20088  # Grep'ing the first line is not enough: some people post-process
20089  # each Makefile.in and add a new line on top of each file to say so.
20090  # So let's grep whole file.
20091  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20092    dirpart=`(dirname "$mf") 2>/dev/null ||
20093$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20094	 X"$mf" : 'X\(//\)[^/]' \| \
20095	 X"$mf" : 'X\(//\)$' \| \
20096	 X"$mf" : 'X\(/\)' \| \
20097	 .     : '\(.\)' 2>/dev/null ||
20098echo X"$mf" |
20099    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20100  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20101  	  /^X\(\/\/\)$/{ s//\1/; q; }
20102  	  /^X\(\/\).*/{ s//\1/; q; }
20103  	  s/.*/./; q'`
20104  else
20105    continue
20106  fi
20107  # Extract the definition of DEPDIR, am__include, and am__quote
20108  # from the Makefile without running `make'.
20109  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20110  test -z "$DEPDIR" && continue
20111  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20112  test -z "am__include" && continue
20113  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20114  # When using ansi2knr, U may be empty or an underscore; expand it
20115  U=`sed -n 's/^U = //p' < "$mf"`
20116  # Find all dependency output files, they are included files with
20117  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20118  # simplest approach to changing $(DEPDIR) to its actual value in the
20119  # expansion.
20120  for file in `sed -n "
20121    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20122       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20123    # Make sure the directory exists.
20124    test -f "$dirpart/$file" && continue
20125    fdir=`(dirname "$file") 2>/dev/null ||
20126$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20127	 X"$file" : 'X\(//\)[^/]' \| \
20128	 X"$file" : 'X\(//\)$' \| \
20129	 X"$file" : 'X\(/\)' \| \
20130	 .     : '\(.\)' 2>/dev/null ||
20131echo X"$file" |
20132    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20133  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20134  	  /^X\(\/\/\)$/{ s//\1/; q; }
20135  	  /^X\(\/\).*/{ s//\1/; q; }
20136  	  s/.*/./; q'`
20137    { if $as_mkdir_p; then
20138    mkdir -p $dirpart/$fdir
20139  else
20140    as_dir=$dirpart/$fdir
20141    as_dirs=
20142    while test ! -d "$as_dir"; do
20143      as_dirs="$as_dir $as_dirs"
20144      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20145$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20146	 X"$as_dir" : 'X\(//\)[^/]' \| \
20147	 X"$as_dir" : 'X\(//\)$' \| \
20148	 X"$as_dir" : 'X\(/\)' \| \
20149	 .     : '\(.\)' 2>/dev/null ||
20150echo X"$as_dir" |
20151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20152  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20153  	  /^X\(\/\/\)$/{ s//\1/; q; }
20154  	  /^X\(\/\).*/{ s//\1/; q; }
20155  	  s/.*/./; q'`
20156    done
20157    test ! -n "$as_dirs" || mkdir $as_dirs
20158  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20159echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20160   { (exit 1); exit 1; }; }; }
20161
20162    # echo "creating $dirpart/$file"
20163    echo '# dummy' > "$dirpart/$file"
20164  done
20165done
20166 ;;
20167  esac
20168done
20169_ACEOF
20170
20171cat >>$CONFIG_STATUS <<\_ACEOF
20172
20173{ (exit 0); exit 0; }
20174_ACEOF
20175chmod +x $CONFIG_STATUS
20176ac_clean_files=$ac_clean_files_save
20177
20178
20179# configure is writing to config.log, and then calls config.status.
20180# config.status does its own redirection, appending to config.log.
20181# Unfortunately, on DOS this fails, as config.log is still kept open
20182# by configure, so config.status won't be able to write to it; its
20183# output is simply discarded.  So we exec the FD to /dev/null,
20184# effectively closing config.log, so it can be properly (re)opened and
20185# appended to by config.status.  When coming back to configure, we
20186# need to make the FD available again.
20187if test "$no_create" != yes; then
20188  ac_cs_success=:
20189  ac_config_status_args=
20190  test "$silent" = yes &&
20191    ac_config_status_args="$ac_config_status_args --quiet"
20192  exec 5>/dev/null
20193  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20194  exec 5>>config.log
20195  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20196  # would make configure fail if this is the last instruction.
20197  $ac_cs_success || { (exit 1); exit 1; }
20198fi
20199
20200