1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libsidplay 2.1.1.
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.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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='libsidplay'
423PACKAGE_TARNAME='libsidplay'
424PACKAGE_VERSION='2.1.1'
425PACKAGE_STRING='libsidplay 2.1.1'
426PACKAGE_BUGREPORT=''
427
428ac_unique_file="Makefile.am"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot LIBVERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SID_HAVE_STDBOOL_H SID_WORDS_ENDIANESS SID_SIZEOF_CHAR SID_SIZEOF_SHORT_INT SID_SIZEOF_INT SID_SIZEOF_LONG_INT SID_HAVE_BOOL builders ACLOCAL_AMFLAGS DEFAULT_INCLUDES 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 libsidplay 2.1.1 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  case $ac_init_help in
1021     short | recursive ) echo "Configuration of libsidplay 2.1.1:";;
1022   esac
1023  cat <<\_ACEOF
1024
1025Optional Features:
1026  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028  --disable-dependency-tracking  speeds up one-time build
1029  --enable-dependency-tracking   do not reject slow dependency extractors
1030  --enable-shared[=PKGS]
1031                          build shared libraries [default=yes]
1032  --enable-static[=PKGS]
1033                          build static libraries [default=yes]
1034  --enable-fast-install[=PKGS]
1035                          optimize for fast installation [default=yes]
1036  --disable-libtool-lock  avoid locking (might break parallel builds)
1037
1038Optional Packages:
1039  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1042  --with-pic              try to use only PIC/non-PIC objects [default=use
1043                          both]
1044  --with-tags[=TAGS]
1045                          include additional configurations [automatic]
1046  --with-sidbuilders=DIR
1047        where the sid builder libraries are to be installed
1048
1049Some influential environment variables:
1050  CC          C compiler command
1051  CFLAGS      C compiler flags
1052  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053              nonstandard directory <lib dir>
1054  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055              headers in a nonstandard directory <include dir>
1056  CXX         C++ compiler command
1057  CXXFLAGS    C++ compiler flags
1058  CPP         C preprocessor
1059  CXXCPP      C++ preprocessor
1060  F77         Fortran 77 compiler command
1061  FFLAGS      Fortran 77 compiler flags
1062
1063Use these variables to override the choices made by `configure' or to help
1064it to find libraries and programs with nonstandard names/locations.
1065
1066_ACEOF
1067fi
1068
1069if test "$ac_init_help" = "recursive"; then
1070  # If there are subdirs, report their specific --help.
1071  ac_popdir=`pwd`
1072  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073    test -d $ac_dir || continue
1074    ac_builddir=.
1075
1076if test "$ac_dir" != .; then
1077  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078  # A "../" for each directory in $ac_dir_suffix.
1079  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080else
1081  ac_dir_suffix= ac_top_builddir=
1082fi
1083
1084case $srcdir in
1085  .)  # No --srcdir option.  We are building in place.
1086    ac_srcdir=.
1087    if test -z "$ac_top_builddir"; then
1088       ac_top_srcdir=.
1089    else
1090       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091    fi ;;
1092  [\\/]* | ?:[\\/]* )  # Absolute path.
1093    ac_srcdir=$srcdir$ac_dir_suffix;
1094    ac_top_srcdir=$srcdir ;;
1095  *) # Relative path.
1096    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098esac
1099
1100# Do not use `cd foo && pwd` to compute absolute paths, because
1101# the directories may not exist.
1102case `pwd` in
1103.) ac_abs_builddir="$ac_dir";;
1104*)
1105  case "$ac_dir" in
1106  .) ac_abs_builddir=`pwd`;;
1107  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109  esac;;
1110esac
1111case $ac_abs_builddir in
1112.) ac_abs_top_builddir=${ac_top_builddir}.;;
1113*)
1114  case ${ac_top_builddir}. in
1115  .) ac_abs_top_builddir=$ac_abs_builddir;;
1116  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118  esac;;
1119esac
1120case $ac_abs_builddir in
1121.) ac_abs_srcdir=$ac_srcdir;;
1122*)
1123  case $ac_srcdir in
1124  .) ac_abs_srcdir=$ac_abs_builddir;;
1125  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127  esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_top_srcdir=$ac_top_srcdir;;
1131*)
1132  case $ac_top_srcdir in
1133  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136  esac;;
1137esac
1138
1139    cd $ac_dir
1140    # Check for guested configure; otherwise get Cygnus style configure.
1141    if test -f $ac_srcdir/configure.gnu; then
1142      echo
1143      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1144    elif test -f $ac_srcdir/configure; then
1145      echo
1146      $SHELL $ac_srcdir/configure  --help=recursive
1147    elif test -f $ac_srcdir/configure.ac ||
1148	   test -f $ac_srcdir/configure.in; then
1149      echo
1150      $ac_configure --help
1151    else
1152      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153    fi
1154    cd $ac_popdir
1155  done
1156fi
1157
1158test -n "$ac_init_help" && exit 0
1159if $ac_init_version; then
1160  cat <<\_ACEOF
1161libsidplay configure 2.1.1
1162generated by GNU Autoconf 2.59
1163
1164Copyright (C) 2003 Free Software Foundation, Inc.
1165This configure script is free software; the Free Software Foundation
1166gives unlimited permission to copy, distribute and modify it.
1167_ACEOF
1168  exit 0
1169fi
1170exec 5>config.log
1171cat >&5 <<_ACEOF
1172This file contains any messages produced by compilers while
1173running configure, to aid debugging if configure makes a mistake.
1174
1175It was created by libsidplay $as_me 2.1.1, which was
1176generated by GNU Autoconf 2.59.  Invocation command line was
1177
1178  $ $0 $@
1179
1180_ACEOF
1181{
1182cat <<_ASUNAME
1183## --------- ##
1184## Platform. ##
1185## --------- ##
1186
1187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1195
1196/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1197/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1200/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1201/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1202/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1203
1204_ASUNAME
1205
1206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207for as_dir in $PATH
1208do
1209  IFS=$as_save_IFS
1210  test -z "$as_dir" && as_dir=.
1211  echo "PATH: $as_dir"
1212done
1213
1214} >&5
1215
1216cat >&5 <<_ACEOF
1217
1218
1219## ----------- ##
1220## Core tests. ##
1221## ----------- ##
1222
1223_ACEOF
1224
1225
1226# Keep a trace of the command line.
1227# Strip out --no-create and --no-recursion so they do not pile up.
1228# Strip out --silent because we don't want to record it for future runs.
1229# Also quote any args containing shell meta-characters.
1230# Make two passes to allow for proper duplicate-argument suppression.
1231ac_configure_args=
1232ac_configure_args0=
1233ac_configure_args1=
1234ac_sep=
1235ac_must_keep_next=false
1236for ac_pass in 1 2
1237do
1238  for ac_arg
1239  do
1240    case $ac_arg in
1241    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243    | -silent | --silent | --silen | --sile | --sil)
1244      continue ;;
1245    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247    esac
1248    case $ac_pass in
1249    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250    2)
1251      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252      if test $ac_must_keep_next = true; then
1253	ac_must_keep_next=false # Got value, back to normal.
1254      else
1255	case $ac_arg in
1256	  *=* | --config-cache | -C | -disable-* | --disable-* \
1257	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259	  | -with-* | --with-* | -without-* | --without-* | --x)
1260	    case "$ac_configure_args0 " in
1261	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262	    esac
1263	    ;;
1264	  -* ) ac_must_keep_next=true ;;
1265	esac
1266      fi
1267      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268      # Get rid of the leading space.
1269      ac_sep=" "
1270      ;;
1271    esac
1272  done
1273done
1274$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
1277# When interrupted or exit'd, cleanup temporary files, and complete
1278# config.log.  We remove comments because anyway the quotes in there
1279# would cause problems or look ugly.
1280# WARNING: Be sure not to use single quotes in there, as some shells,
1281# such as our DU 5.0 friend, will then `close' the trap.
1282trap 'exit_status=$?
1283  # Save into config.log some information that might help in debugging.
1284  {
1285    echo
1286
1287    cat <<\_ASBOX
1288## ---------------- ##
1289## Cache variables. ##
1290## ---------------- ##
1291_ASBOX
1292    echo
1293    # The following way of writing the cache mishandles newlines in values,
1294{
1295  (set) 2>&1 |
1296    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297    *ac_space=\ *)
1298      sed -n \
1299	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301      ;;
1302    *)
1303      sed -n \
1304	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305      ;;
1306    esac;
1307}
1308    echo
1309
1310    cat <<\_ASBOX
1311## ----------------- ##
1312## Output variables. ##
1313## ----------------- ##
1314_ASBOX
1315    echo
1316    for ac_var in $ac_subst_vars
1317    do
1318      eval ac_val=$`echo $ac_var`
1319      echo "$ac_var='"'"'$ac_val'"'"'"
1320    done | sort
1321    echo
1322
1323    if test -n "$ac_subst_files"; then
1324      cat <<\_ASBOX
1325## ------------- ##
1326## Output files. ##
1327## ------------- ##
1328_ASBOX
1329      echo
1330      for ac_var in $ac_subst_files
1331      do
1332	eval ac_val=$`echo $ac_var`
1333	echo "$ac_var='"'"'$ac_val'"'"'"
1334      done | sort
1335      echo
1336    fi
1337
1338    if test -s confdefs.h; then
1339      cat <<\_ASBOX
1340## ----------- ##
1341## confdefs.h. ##
1342## ----------- ##
1343_ASBOX
1344      echo
1345      sed "/^$/d" confdefs.h | sort
1346      echo
1347    fi
1348    test "$ac_signal" != 0 &&
1349      echo "$as_me: caught signal $ac_signal"
1350    echo "$as_me: exit $exit_status"
1351  } >&5
1352  rm -f core *.core &&
1353  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354    exit $exit_status
1355     ' 0
1356for ac_signal in 1 2 13 15; do
1357  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358done
1359ac_signal=0
1360
1361# confdefs.h avoids OS command line length limits that DEFS can exceed.
1362rm -rf conftest* confdefs.h
1363# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364echo >confdefs.h
1365
1366# Predefined preprocessor variables.
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_NAME "$PACKAGE_NAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_VERSION "$PACKAGE_VERSION"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_STRING "$PACKAGE_STRING"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390_ACEOF
1391
1392
1393# Let the site file select an alternate cache file if it wants to.
1394# Prefer explicitly selected file to automatically selected ones.
1395if test -z "$CONFIG_SITE"; then
1396  if test "x$prefix" != xNONE; then
1397    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398  else
1399    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400  fi
1401fi
1402for ac_site_file in $CONFIG_SITE; do
1403  if test -r "$ac_site_file"; then
1404    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405echo "$as_me: loading site script $ac_site_file" >&6;}
1406    sed 's/^/| /' "$ac_site_file" >&5
1407    . "$ac_site_file"
1408  fi
1409done
1410
1411if test -r "$cache_file"; then
1412  # Some versions of bash will fail to source /dev/null (special
1413  # files actually), so we avoid doing that.
1414  if test -f "$cache_file"; then
1415    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416echo "$as_me: loading cache $cache_file" >&6;}
1417    case $cache_file in
1418      [\\/]* | ?:[\\/]* ) . $cache_file;;
1419      *)                      . ./$cache_file;;
1420    esac
1421  fi
1422else
1423  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424echo "$as_me: creating cache $cache_file" >&6;}
1425  >$cache_file
1426fi
1427
1428# Check that the precious variables saved in the cache have kept the same
1429# value.
1430ac_cache_corrupted=false
1431for ac_var in `(set) 2>&1 |
1432	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434  eval ac_new_set=\$ac_env_${ac_var}_set
1435  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436  eval ac_new_val="\$ac_env_${ac_var}_value"
1437  case $ac_old_set,$ac_new_set in
1438    set,)
1439      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441      ac_cache_corrupted=: ;;
1442    ,set)
1443      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445      ac_cache_corrupted=: ;;
1446    ,);;
1447    *)
1448      if test "x$ac_old_val" != "x$ac_new_val"; then
1449	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1452echo "$as_me:   former value:  $ac_old_val" >&2;}
1453	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1454echo "$as_me:   current value: $ac_new_val" >&2;}
1455	ac_cache_corrupted=:
1456      fi;;
1457  esac
1458  # Pass precious variables to config.status.
1459  if test "$ac_new_set" = set; then
1460    case $ac_new_val in
1461    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463    *) ac_arg=$ac_var=$ac_new_val ;;
1464    esac
1465    case " $ac_configure_args " in
1466      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1467      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468    esac
1469  fi
1470done
1471if $ac_cache_corrupted; then
1472  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476   { (exit 1); exit 1; }; }
1477fi
1478
1479ac_ext=c
1480ac_cpp='$CPP $CPPFLAGS'
1481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511          ac_config_headers="$ac_config_headers unix/config.h"
1512
1513
1514ac_aux_dir=
1515for ac_dir in unix $srcdir/unix; do
1516  if test -f $ac_dir/install-sh; then
1517    ac_aux_dir=$ac_dir
1518    ac_install_sh="$ac_aux_dir/install-sh -c"
1519    break
1520  elif test -f $ac_dir/install.sh; then
1521    ac_aux_dir=$ac_dir
1522    ac_install_sh="$ac_aux_dir/install.sh -c"
1523    break
1524  elif test -f $ac_dir/shtool; then
1525    ac_aux_dir=$ac_dir
1526    ac_install_sh="$ac_aux_dir/shtool install -c"
1527    break
1528  fi
1529done
1530if test -z "$ac_aux_dir"; then
1531  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in unix $srcdir/unix" >&5
1532echo "$as_me: error: cannot find install-sh or install.sh in unix $srcdir/unix" >&2;}
1533   { (exit 1); exit 1; }; }
1534fi
1535ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1536ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1537ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1538
1539am__api_version="1.8"
1540# Find a good install program.  We prefer a C program (faster),
1541# so one script is as good as another.  But avoid the broken or
1542# incompatible versions:
1543# SysV /etc/install, /usr/sbin/install
1544# SunOS /usr/etc/install
1545# IRIX /sbin/install
1546# AIX /bin/install
1547# AmigaOS /C/install, which installs bootblocks on floppy discs
1548# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1549# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1550# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1551# OS/2's system install, which has a completely different semantic
1552# ./install, which can be erroneously created by make from ./install.sh.
1553echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1554echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1555if test -z "$INSTALL"; then
1556if test "${ac_cv_path_install+set}" = set; then
1557  echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560for as_dir in $PATH
1561do
1562  IFS=$as_save_IFS
1563  test -z "$as_dir" && as_dir=.
1564  # Account for people who put trailing slashes in PATH elements.
1565case $as_dir/ in
1566  ./ | .// | /cC/* | \
1567  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1568  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1569  /usr/ucb/* ) ;;
1570  *)
1571    # OSF1 and SCO ODT 3.0 have their own names for install.
1572    # Don't use installbsd from OSF since it installs stuff as root
1573    # by default.
1574    for ac_prog in ginstall scoinst install; do
1575      for ac_exec_ext in '' $ac_executable_extensions; do
1576	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1577	  if test $ac_prog = install &&
1578	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1579	    # AIX install.  It has an incompatible calling convention.
1580	    :
1581	  elif test $ac_prog = install &&
1582	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583	    # program-specific install script used by HP pwplus--don't use.
1584	    :
1585	  else
1586	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1587	    break 3
1588	  fi
1589	fi
1590      done
1591    done
1592    ;;
1593esac
1594done
1595
1596
1597fi
1598  if test "${ac_cv_path_install+set}" = set; then
1599    INSTALL=$ac_cv_path_install
1600  else
1601    # As a last resort, use the slow shell script.  We don't cache a
1602    # path for INSTALL within a source directory, because that will
1603    # break other packages using the cache if that directory is
1604    # removed, or if the path is relative.
1605    INSTALL=$ac_install_sh
1606  fi
1607fi
1608echo "$as_me:$LINENO: result: $INSTALL" >&5
1609echo "${ECHO_T}$INSTALL" >&6
1610
1611# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1612# It thinks the first close brace ends the variable substitution.
1613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1614
1615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1616
1617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1618
1619echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1620echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1621# Just in case
1622sleep 1
1623echo timestamp > conftest.file
1624# Do `set' in a subshell so we don't clobber the current shell's
1625# arguments.  Must try -L first in case configure is actually a
1626# symlink; some systems play weird games with the mod time of symlinks
1627# (eg FreeBSD returns the mod time of the symlink's containing
1628# directory).
1629if (
1630   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1631   if test "$*" = "X"; then
1632      # -L didn't work.
1633      set X `ls -t $srcdir/configure conftest.file`
1634   fi
1635   rm -f conftest.file
1636   if test "$*" != "X $srcdir/configure conftest.file" \
1637      && test "$*" != "X conftest.file $srcdir/configure"; then
1638
1639      # If neither matched, then we have a broken ls.  This can happen
1640      # if, for instance, CONFIG_SHELL is bash and it inherits a
1641      # broken ls alias from the environment.  This has actually
1642      # happened.  Such a system could not be considered "sane".
1643      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1644alias in your environment" >&5
1645echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1646alias in your environment" >&2;}
1647   { (exit 1); exit 1; }; }
1648   fi
1649
1650   test "$2" = conftest.file
1651   )
1652then
1653   # Ok.
1654   :
1655else
1656   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1657Check your system clock" >&5
1658echo "$as_me: error: newly created file is older than distributed files!
1659Check your system clock" >&2;}
1660   { (exit 1); exit 1; }; }
1661fi
1662echo "$as_me:$LINENO: result: yes" >&5
1663echo "${ECHO_T}yes" >&6
1664test "$program_prefix" != NONE &&
1665  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1666# Use a double $ so make ignores it.
1667test "$program_suffix" != NONE &&
1668  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1669# Double any \ or $.  echo might interpret backslashes.
1670# By default was `s,x,x', remove it if useless.
1671cat <<\_ACEOF >conftest.sed
1672s/[\\$]/&&/g;s/;s,x,x,$//
1673_ACEOF
1674program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1675rm conftest.sed
1676
1677# expand $ac_aux_dir to an absolute path
1678am_aux_dir=`cd $ac_aux_dir && pwd`
1679
1680test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1681# Use eval to expand $SHELL
1682if eval "$MISSING --run true"; then
1683  am_missing_run="$MISSING --run "
1684else
1685  am_missing_run=
1686  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1687echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1688fi
1689
1690if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1691  # Keeping the `.' argument allows $(mkdir_p) to be used without
1692  # argument.  Indeed, we sometimes output rules like
1693  #   $(mkdir_p) $(somedir)
1694  # where $(somedir) is conditionally defined.
1695  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1696  # expensive solution, as it forces Make to start a sub-shell.)
1697  mkdir_p='mkdir -p -- .'
1698else
1699  # On NextStep and OpenStep, the `mkdir' command does not
1700  # recognize any option.  It will interpret all options as
1701  # directories to create, and then abort because `.' already
1702  # exists.
1703  for d in ./-p ./--version;
1704  do
1705    test -d $d && rmdir $d
1706  done
1707  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1708  if test -f "$ac_aux_dir/mkinstalldirs"; then
1709    mkdir_p='$(mkinstalldirs)'
1710  else
1711    mkdir_p='$(install_sh) -d'
1712  fi
1713fi
1714
1715for ac_prog in gawk mawk nawk awk
1716do
1717  # Extract the first word of "$ac_prog", so it can be a program name with args.
1718set dummy $ac_prog; ac_word=$2
1719echo "$as_me:$LINENO: checking for $ac_word" >&5
1720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721if test "${ac_cv_prog_AWK+set}" = set; then
1722  echo $ECHO_N "(cached) $ECHO_C" >&6
1723else
1724  if test -n "$AWK"; then
1725  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1726else
1727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730  IFS=$as_save_IFS
1731  test -z "$as_dir" && as_dir=.
1732  for ac_exec_ext in '' $ac_executable_extensions; do
1733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734    ac_cv_prog_AWK="$ac_prog"
1735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736    break 2
1737  fi
1738done
1739done
1740
1741fi
1742fi
1743AWK=$ac_cv_prog_AWK
1744if test -n "$AWK"; then
1745  echo "$as_me:$LINENO: result: $AWK" >&5
1746echo "${ECHO_T}$AWK" >&6
1747else
1748  echo "$as_me:$LINENO: result: no" >&5
1749echo "${ECHO_T}no" >&6
1750fi
1751
1752  test -n "$AWK" && break
1753done
1754
1755echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1756echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1757set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1758if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1759  echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761  cat >conftest.make <<\_ACEOF
1762all:
1763	@echo 'ac_maketemp="$(MAKE)"'
1764_ACEOF
1765# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1766eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1767if test -n "$ac_maketemp"; then
1768  eval ac_cv_prog_make_${ac_make}_set=yes
1769else
1770  eval ac_cv_prog_make_${ac_make}_set=no
1771fi
1772rm -f conftest.make
1773fi
1774if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1775  echo "$as_me:$LINENO: result: yes" >&5
1776echo "${ECHO_T}yes" >&6
1777  SET_MAKE=
1778else
1779  echo "$as_me:$LINENO: result: no" >&5
1780echo "${ECHO_T}no" >&6
1781  SET_MAKE="MAKE=${MAKE-make}"
1782fi
1783
1784rm -rf .tst 2>/dev/null
1785mkdir .tst 2>/dev/null
1786if test -d .tst; then
1787  am__leading_dot=.
1788else
1789  am__leading_dot=_
1790fi
1791rmdir .tst 2>/dev/null
1792
1793# test to see if srcdir already configured
1794if test "`cd $srcdir && pwd`" != "`pwd`" &&
1795   test -f $srcdir/config.status; then
1796  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1797echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1798   { (exit 1); exit 1; }; }
1799fi
1800
1801# test whether we have cygpath
1802if test -z "$CYGPATH_W"; then
1803  if (cygpath --version) >/dev/null 2>/dev/null; then
1804    CYGPATH_W='cygpath -w'
1805  else
1806    CYGPATH_W=echo
1807  fi
1808fi
1809
1810
1811# Define the identity of the package.
1812 PACKAGE='libsidplay'
1813 VERSION='2.1.1'
1814
1815
1816# Some tools Automake needs.
1817
1818ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1819
1820
1821AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1822
1823
1824AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1825
1826
1827AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1828
1829
1830MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1831
1832
1833AMTAR=${AMTAR-"${am_missing_run}tar"}
1834
1835install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836
1837# Installed binaries are usually stripped using `strip' when the user
1838# run `make install-strip'.  However `strip' might not be the right
1839# tool to use in cross-compilation environments, therefore Automake
1840# will honor the `STRIP' environment variable to overrule this program.
1841if test "$cross_compiling" != no; then
1842  if test -n "$ac_tool_prefix"; then
1843  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844set dummy ${ac_tool_prefix}strip; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_STRIP+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$STRIP"; then
1851  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869STRIP=$ac_cv_prog_STRIP
1870if test -n "$STRIP"; then
1871  echo "$as_me:$LINENO: result: $STRIP" >&5
1872echo "${ECHO_T}$STRIP" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878fi
1879if test -z "$ac_cv_prog_STRIP"; then
1880  ac_ct_STRIP=$STRIP
1881  # Extract the first word of "strip", so it can be a program name with args.
1882set dummy strip; ac_word=$2
1883echo "$as_me:$LINENO: checking for $ac_word" >&5
1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886  echo $ECHO_N "(cached) $ECHO_C" >&6
1887else
1888  if test -n "$ac_ct_STRIP"; then
1889  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1890else
1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892for as_dir in $PATH
1893do
1894  IFS=$as_save_IFS
1895  test -z "$as_dir" && as_dir=.
1896  for ac_exec_ext in '' $ac_executable_extensions; do
1897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898    ac_cv_prog_ac_ct_STRIP="strip"
1899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900    break 2
1901  fi
1902done
1903done
1904
1905  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1906fi
1907fi
1908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909if test -n "$ac_ct_STRIP"; then
1910  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911echo "${ECHO_T}$ac_ct_STRIP" >&6
1912else
1913  echo "$as_me:$LINENO: result: no" >&5
1914echo "${ECHO_T}no" >&6
1915fi
1916
1917  STRIP=$ac_ct_STRIP
1918else
1919  STRIP="$ac_cv_prog_STRIP"
1920fi
1921
1922fi
1923INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924
1925# We need awk for the "check" target.  The system "awk" is bad on
1926# some platforms.
1927
1928
1929
1930
1931LIBVERSION=1:1:0
1932
1933
1934# Make sure we can run config.sub.
1935$ac_config_sub sun4 >/dev/null 2>&1 ||
1936  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1937echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1938   { (exit 1); exit 1; }; }
1939
1940echo "$as_me:$LINENO: checking build system type" >&5
1941echo $ECHO_N "checking build system type... $ECHO_C" >&6
1942if test "${ac_cv_build+set}" = set; then
1943  echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945  ac_cv_build_alias=$build_alias
1946test -z "$ac_cv_build_alias" &&
1947  ac_cv_build_alias=`$ac_config_guess`
1948test -z "$ac_cv_build_alias" &&
1949  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1950echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1951   { (exit 1); exit 1; }; }
1952ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1953  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1954echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1955   { (exit 1); exit 1; }; }
1956
1957fi
1958echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1959echo "${ECHO_T}$ac_cv_build" >&6
1960build=$ac_cv_build
1961build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1962build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1963build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1964
1965
1966echo "$as_me:$LINENO: checking host system type" >&5
1967echo $ECHO_N "checking host system type... $ECHO_C" >&6
1968if test "${ac_cv_host+set}" = set; then
1969  echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971  ac_cv_host_alias=$host_alias
1972test -z "$ac_cv_host_alias" &&
1973  ac_cv_host_alias=$ac_cv_build_alias
1974ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1975  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1976echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1977   { (exit 1); exit 1; }; }
1978
1979fi
1980echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1981echo "${ECHO_T}$ac_cv_host" >&6
1982host=$ac_cv_host
1983host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1984host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1985host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1986
1987
1988
1989ac_ext=c
1990ac_cpp='$CPP $CPPFLAGS'
1991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994if test -n "$ac_tool_prefix"; then
1995  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1996set dummy ${ac_tool_prefix}gcc; ac_word=$2
1997echo "$as_me:$LINENO: checking for $ac_word" >&5
1998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999if test "${ac_cv_prog_CC+set}" = set; then
2000  echo $ECHO_N "(cached) $ECHO_C" >&6
2001else
2002  if test -n "$CC"; then
2003  ac_cv_prog_CC="$CC" # Let the user override the test.
2004else
2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008  IFS=$as_save_IFS
2009  test -z "$as_dir" && as_dir=.
2010  for ac_exec_ext in '' $ac_executable_extensions; do
2011  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014    break 2
2015  fi
2016done
2017done
2018
2019fi
2020fi
2021CC=$ac_cv_prog_CC
2022if test -n "$CC"; then
2023  echo "$as_me:$LINENO: result: $CC" >&5
2024echo "${ECHO_T}$CC" >&6
2025else
2026  echo "$as_me:$LINENO: result: no" >&5
2027echo "${ECHO_T}no" >&6
2028fi
2029
2030fi
2031if test -z "$ac_cv_prog_CC"; then
2032  ac_ct_CC=$CC
2033  # Extract the first word of "gcc", so it can be a program name with args.
2034set dummy gcc; ac_word=$2
2035echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2038  echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040  if test -n "$ac_ct_CC"; then
2041  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2042else
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046  IFS=$as_save_IFS
2047  test -z "$as_dir" && as_dir=.
2048  for ac_exec_ext in '' $ac_executable_extensions; do
2049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050    ac_cv_prog_ac_ct_CC="gcc"
2051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052    break 2
2053  fi
2054done
2055done
2056
2057fi
2058fi
2059ac_ct_CC=$ac_cv_prog_ac_ct_CC
2060if test -n "$ac_ct_CC"; then
2061  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2062echo "${ECHO_T}$ac_ct_CC" >&6
2063else
2064  echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6
2066fi
2067
2068  CC=$ac_ct_CC
2069else
2070  CC="$ac_cv_prog_CC"
2071fi
2072
2073if test -z "$CC"; then
2074  if test -n "$ac_tool_prefix"; then
2075  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2076set dummy ${ac_tool_prefix}cc; ac_word=$2
2077echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079if test "${ac_cv_prog_CC+set}" = set; then
2080  echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082  if test -n "$CC"; then
2083  ac_cv_prog_CC="$CC" # Let the user override the test.
2084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088  IFS=$as_save_IFS
2089  test -z "$as_dir" && as_dir=.
2090  for ac_exec_ext in '' $ac_executable_extensions; do
2091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092    ac_cv_prog_CC="${ac_tool_prefix}cc"
2093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094    break 2
2095  fi
2096done
2097done
2098
2099fi
2100fi
2101CC=$ac_cv_prog_CC
2102if test -n "$CC"; then
2103  echo "$as_me:$LINENO: result: $CC" >&5
2104echo "${ECHO_T}$CC" >&6
2105else
2106  echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6
2108fi
2109
2110fi
2111if test -z "$ac_cv_prog_CC"; then
2112  ac_ct_CC=$CC
2113  # Extract the first word of "cc", so it can be a program name with args.
2114set dummy cc; ac_word=$2
2115echo "$as_me:$LINENO: checking for $ac_word" >&5
2116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2118  echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120  if test -n "$ac_ct_CC"; then
2121  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2122else
2123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124for as_dir in $PATH
2125do
2126  IFS=$as_save_IFS
2127  test -z "$as_dir" && as_dir=.
2128  for ac_exec_ext in '' $ac_executable_extensions; do
2129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130    ac_cv_prog_ac_ct_CC="cc"
2131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132    break 2
2133  fi
2134done
2135done
2136
2137fi
2138fi
2139ac_ct_CC=$ac_cv_prog_ac_ct_CC
2140if test -n "$ac_ct_CC"; then
2141  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2142echo "${ECHO_T}$ac_ct_CC" >&6
2143else
2144  echo "$as_me:$LINENO: result: no" >&5
2145echo "${ECHO_T}no" >&6
2146fi
2147
2148  CC=$ac_ct_CC
2149else
2150  CC="$ac_cv_prog_CC"
2151fi
2152
2153fi
2154if test -z "$CC"; then
2155  # Extract the first word of "cc", so it can be a program name with args.
2156set dummy cc; ac_word=$2
2157echo "$as_me:$LINENO: checking for $ac_word" >&5
2158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159if test "${ac_cv_prog_CC+set}" = set; then
2160  echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162  if test -n "$CC"; then
2163  ac_cv_prog_CC="$CC" # Let the user override the test.
2164else
2165  ac_prog_rejected=no
2166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169  IFS=$as_save_IFS
2170  test -z "$as_dir" && as_dir=.
2171  for ac_exec_ext in '' $ac_executable_extensions; do
2172  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2174       ac_prog_rejected=yes
2175       continue
2176     fi
2177    ac_cv_prog_CC="cc"
2178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179    break 2
2180  fi
2181done
2182done
2183
2184if test $ac_prog_rejected = yes; then
2185  # We found a bogon in the path, so make sure we never use it.
2186  set dummy $ac_cv_prog_CC
2187  shift
2188  if test $# != 0; then
2189    # We chose a different compiler from the bogus one.
2190    # However, it has the same basename, so the bogon will be chosen
2191    # first if we set CC to just the basename; use the full file name.
2192    shift
2193    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2194  fi
2195fi
2196fi
2197fi
2198CC=$ac_cv_prog_CC
2199if test -n "$CC"; then
2200  echo "$as_me:$LINENO: result: $CC" >&5
2201echo "${ECHO_T}$CC" >&6
2202else
2203  echo "$as_me:$LINENO: result: no" >&5
2204echo "${ECHO_T}no" >&6
2205fi
2206
2207fi
2208if test -z "$CC"; then
2209  if test -n "$ac_tool_prefix"; then
2210  for ac_prog in cl
2211  do
2212    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2213set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2214echo "$as_me:$LINENO: checking for $ac_word" >&5
2215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216if test "${ac_cv_prog_CC+set}" = set; then
2217  echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219  if test -n "$CC"; then
2220  ac_cv_prog_CC="$CC" # Let the user override the test.
2221else
2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223for as_dir in $PATH
2224do
2225  IFS=$as_save_IFS
2226  test -z "$as_dir" && as_dir=.
2227  for ac_exec_ext in '' $ac_executable_extensions; do
2228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231    break 2
2232  fi
2233done
2234done
2235
2236fi
2237fi
2238CC=$ac_cv_prog_CC
2239if test -n "$CC"; then
2240  echo "$as_me:$LINENO: result: $CC" >&5
2241echo "${ECHO_T}$CC" >&6
2242else
2243  echo "$as_me:$LINENO: result: no" >&5
2244echo "${ECHO_T}no" >&6
2245fi
2246
2247    test -n "$CC" && break
2248  done
2249fi
2250if test -z "$CC"; then
2251  ac_ct_CC=$CC
2252  for ac_prog in cl
2253do
2254  # Extract the first word of "$ac_prog", so it can be a program name with args.
2255set dummy $ac_prog; ac_word=$2
2256echo "$as_me:$LINENO: checking for $ac_word" >&5
2257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259  echo $ECHO_N "(cached) $ECHO_C" >&6
2260else
2261  if test -n "$ac_ct_CC"; then
2262  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263else
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267  IFS=$as_save_IFS
2268  test -z "$as_dir" && as_dir=.
2269  for ac_exec_ext in '' $ac_executable_extensions; do
2270  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271    ac_cv_prog_ac_ct_CC="$ac_prog"
2272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273    break 2
2274  fi
2275done
2276done
2277
2278fi
2279fi
2280ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281if test -n "$ac_ct_CC"; then
2282  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283echo "${ECHO_T}$ac_ct_CC" >&6
2284else
2285  echo "$as_me:$LINENO: result: no" >&5
2286echo "${ECHO_T}no" >&6
2287fi
2288
2289  test -n "$ac_ct_CC" && break
2290done
2291
2292  CC=$ac_ct_CC
2293fi
2294
2295fi
2296
2297
2298test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: no acceptable C compiler found in \$PATH
2301See \`config.log' for more details." >&2;}
2302   { (exit 1); exit 1; }; }
2303
2304# Provide some information about the compiler.
2305echo "$as_me:$LINENO:" \
2306     "checking for C compiler version" >&5
2307ac_compiler=`set X $ac_compile; echo $2`
2308{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2309  (eval $ac_compiler --version </dev/null >&5) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }
2313{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2314  (eval $ac_compiler -v </dev/null >&5) 2>&5
2315  ac_status=$?
2316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317  (exit $ac_status); }
2318{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2319  (eval $ac_compiler -V </dev/null >&5) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }
2323
2324cat >conftest.$ac_ext <<_ACEOF
2325/* confdefs.h.  */
2326_ACEOF
2327cat confdefs.h >>conftest.$ac_ext
2328cat >>conftest.$ac_ext <<_ACEOF
2329/* end confdefs.h.  */
2330
2331int
2332main ()
2333{
2334
2335  ;
2336  return 0;
2337}
2338_ACEOF
2339ac_clean_files_save=$ac_clean_files
2340ac_clean_files="$ac_clean_files a.out a.exe b.out"
2341# Try to create an executable without -o first, disregard a.out.
2342# It will help us diagnose broken compilers, and finding out an intuition
2343# of exeext.
2344echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2345echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2346ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2347if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2348  (eval $ac_link_default) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; then
2352  # Find the output, starting from the most likely.  This scheme is
2353# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2354# resort.
2355
2356# Be careful to initialize this variable, since it used to be cached.
2357# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2358ac_cv_exeext=
2359# b.out is created by i960 compilers.
2360for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2361do
2362  test -f "$ac_file" || continue
2363  case $ac_file in
2364    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2365	;;
2366    conftest.$ac_ext )
2367	# This is the source file.
2368	;;
2369    [ab].out )
2370	# We found the default executable, but exeext='' is most
2371	# certainly right.
2372	break;;
2373    *.* )
2374	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2375	# FIXME: I believe we export ac_cv_exeext for Libtool,
2376	# but it would be cool to find out if it's true.  Does anybody
2377	# maintain Libtool? --akim.
2378	export ac_cv_exeext
2379	break;;
2380    * )
2381	break;;
2382  esac
2383done
2384else
2385  echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2389See \`config.log' for more details." >&5
2390echo "$as_me: error: C compiler cannot create executables
2391See \`config.log' for more details." >&2;}
2392   { (exit 77); exit 77; }; }
2393fi
2394
2395ac_exeext=$ac_cv_exeext
2396echo "$as_me:$LINENO: result: $ac_file" >&5
2397echo "${ECHO_T}$ac_file" >&6
2398
2399# Check the compiler produces executables we can run.  If not, either
2400# the compiler is broken, or we cross compile.
2401echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2402echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2403# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2404# If not cross compiling, check that we can run a simple program.
2405if test "$cross_compiling" != yes; then
2406  if { ac_try='./$ac_file'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412    cross_compiling=no
2413  else
2414    if test "$cross_compiling" = maybe; then
2415	cross_compiling=yes
2416    else
2417	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2418If you meant to cross compile, use \`--host'.
2419See \`config.log' for more details." >&5
2420echo "$as_me: error: cannot run C compiled programs.
2421If you meant to cross compile, use \`--host'.
2422See \`config.log' for more details." >&2;}
2423   { (exit 1); exit 1; }; }
2424    fi
2425  fi
2426fi
2427echo "$as_me:$LINENO: result: yes" >&5
2428echo "${ECHO_T}yes" >&6
2429
2430rm -f a.out a.exe conftest$ac_cv_exeext b.out
2431ac_clean_files=$ac_clean_files_save
2432# Check the compiler produces executables we can run.  If not, either
2433# the compiler is broken, or we cross compile.
2434echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2435echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2436echo "$as_me:$LINENO: result: $cross_compiling" >&5
2437echo "${ECHO_T}$cross_compiling" >&6
2438
2439echo "$as_me:$LINENO: checking for suffix of executables" >&5
2440echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2442  (eval $ac_link) 2>&5
2443  ac_status=$?
2444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445  (exit $ac_status); }; then
2446  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2447# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2448# work properly (i.e., refer to `conftest.exe'), while it won't with
2449# `rm'.
2450for ac_file in conftest.exe conftest conftest.*; do
2451  test -f "$ac_file" || continue
2452  case $ac_file in
2453    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2454    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2455	  export ac_cv_exeext
2456	  break;;
2457    * ) break;;
2458  esac
2459done
2460else
2461  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2462See \`config.log' for more details." >&5
2463echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2464See \`config.log' for more details." >&2;}
2465   { (exit 1); exit 1; }; }
2466fi
2467
2468rm -f conftest$ac_cv_exeext
2469echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2470echo "${ECHO_T}$ac_cv_exeext" >&6
2471
2472rm -f conftest.$ac_ext
2473EXEEXT=$ac_cv_exeext
2474ac_exeext=$EXEEXT
2475echo "$as_me:$LINENO: checking for suffix of object files" >&5
2476echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2477if test "${ac_cv_objext+set}" = set; then
2478  echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480  cat >conftest.$ac_ext <<_ACEOF
2481/* confdefs.h.  */
2482_ACEOF
2483cat confdefs.h >>conftest.$ac_ext
2484cat >>conftest.$ac_ext <<_ACEOF
2485/* end confdefs.h.  */
2486
2487int
2488main ()
2489{
2490
2491  ;
2492  return 0;
2493}
2494_ACEOF
2495rm -f conftest.o conftest.obj
2496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497  (eval $ac_compile) 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }; then
2501  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2502  case $ac_file in
2503    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2504    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2505       break;;
2506  esac
2507done
2508else
2509  echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2513See \`config.log' for more details." >&5
2514echo "$as_me: error: cannot compute suffix of object files: cannot compile
2515See \`config.log' for more details." >&2;}
2516   { (exit 1); exit 1; }; }
2517fi
2518
2519rm -f conftest.$ac_cv_objext conftest.$ac_ext
2520fi
2521echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2522echo "${ECHO_T}$ac_cv_objext" >&6
2523OBJEXT=$ac_cv_objext
2524ac_objext=$OBJEXT
2525echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2526echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2527if test "${ac_cv_c_compiler_gnu+set}" = set; then
2528  echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530  cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h.  */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h.  */
2536
2537int
2538main ()
2539{
2540#ifndef __GNUC__
2541       choke me
2542#endif
2543
2544  ;
2545  return 0;
2546}
2547_ACEOF
2548rm -f conftest.$ac_objext
2549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550  (eval $ac_compile) 2>conftest.er1
2551  ac_status=$?
2552  grep -v '^ *+' conftest.er1 >conftest.err
2553  rm -f conftest.er1
2554  cat conftest.err >&5
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); } &&
2557	 { ac_try='test -z "$ac_c_werror_flag"
2558			 || test ! -s conftest.err'
2559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560  (eval $ac_try) 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; } &&
2564	 { ac_try='test -s conftest.$ac_objext'
2565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566  (eval $ac_try) 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); }; }; then
2570  ac_compiler_gnu=yes
2571else
2572  echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5
2574
2575ac_compiler_gnu=no
2576fi
2577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578ac_cv_c_compiler_gnu=$ac_compiler_gnu
2579
2580fi
2581echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2582echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2583GCC=`test $ac_compiler_gnu = yes && echo yes`
2584ac_test_CFLAGS=${CFLAGS+set}
2585ac_save_CFLAGS=$CFLAGS
2586CFLAGS="-g"
2587echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2588echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2589if test "${ac_cv_prog_cc_g+set}" = set; then
2590  echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592  cat >conftest.$ac_ext <<_ACEOF
2593/* confdefs.h.  */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h.  */
2598
2599int
2600main ()
2601{
2602
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609  (eval $ac_compile) 2>conftest.er1
2610  ac_status=$?
2611  grep -v '^ *+' conftest.er1 >conftest.err
2612  rm -f conftest.er1
2613  cat conftest.err >&5
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); } &&
2616	 { ac_try='test -z "$ac_c_werror_flag"
2617			 || test ! -s conftest.err'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; } &&
2623	 { ac_try='test -s conftest.$ac_objext'
2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625  (eval $ac_try) 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }; }; then
2629  ac_cv_prog_cc_g=yes
2630else
2631  echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634ac_cv_prog_cc_g=no
2635fi
2636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637fi
2638echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2639echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2640if test "$ac_test_CFLAGS" = set; then
2641  CFLAGS=$ac_save_CFLAGS
2642elif test $ac_cv_prog_cc_g = yes; then
2643  if test "$GCC" = yes; then
2644    CFLAGS="-g -O2"
2645  else
2646    CFLAGS="-g"
2647  fi
2648else
2649  if test "$GCC" = yes; then
2650    CFLAGS="-O2"
2651  else
2652    CFLAGS=
2653  fi
2654fi
2655echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2656echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2657if test "${ac_cv_prog_cc_stdc+set}" = set; then
2658  echo $ECHO_N "(cached) $ECHO_C" >&6
2659else
2660  ac_cv_prog_cc_stdc=no
2661ac_save_CC=$CC
2662cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h.  */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h.  */
2668#include <stdarg.h>
2669#include <stdio.h>
2670#include <sys/types.h>
2671#include <sys/stat.h>
2672/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2673struct buf { int x; };
2674FILE * (*rcsopen) (struct buf *, struct stat *, int);
2675static char *e (p, i)
2676     char **p;
2677     int i;
2678{
2679  return p[i];
2680}
2681static char *f (char * (*g) (char **, int), char **p, ...)
2682{
2683  char *s;
2684  va_list v;
2685  va_start (v,p);
2686  s = g (p, va_arg (v,int));
2687  va_end (v);
2688  return s;
2689}
2690
2691/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2692   function prototypes and stuff, but not '\xHH' hex character constants.
2693   These don't provoke an error unfortunately, instead are silently treated
2694   as 'x'.  The following induces an error, until -std1 is added to get
2695   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2696   array size at least.  It's necessary to write '\x00'==0 to get something
2697   that's true only with -std1.  */
2698int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2699
2700int test (int i, double x);
2701struct s1 {int (*f) (int a);};
2702struct s2 {int (*f) (double a);};
2703int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2704int argc;
2705char **argv;
2706int
2707main ()
2708{
2709return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2710  ;
2711  return 0;
2712}
2713_ACEOF
2714# Don't try gcc -ansi; that turns off useful extensions and
2715# breaks some systems' header files.
2716# AIX			-qlanglvl=ansi
2717# Ultrix and OSF/1	-std1
2718# HP-UX 10.20 and later	-Ae
2719# HP-UX older versions	-Aa -D_HPUX_SOURCE
2720# SVR4			-Xc -D__EXTENSIONS__
2721for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2722do
2723  CC="$ac_save_CC $ac_arg"
2724  rm -f conftest.$ac_objext
2725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726  (eval $ac_compile) 2>conftest.er1
2727  ac_status=$?
2728  grep -v '^ *+' conftest.er1 >conftest.err
2729  rm -f conftest.er1
2730  cat conftest.err >&5
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); } &&
2733	 { ac_try='test -z "$ac_c_werror_flag"
2734			 || test ! -s conftest.err'
2735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736  (eval $ac_try) 2>&5
2737  ac_status=$?
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); }; } &&
2740	 { ac_try='test -s conftest.$ac_objext'
2741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742  (eval $ac_try) 2>&5
2743  ac_status=$?
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); }; }; then
2746  ac_cv_prog_cc_stdc=$ac_arg
2747break
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752fi
2753rm -f conftest.err conftest.$ac_objext
2754done
2755rm -f conftest.$ac_ext conftest.$ac_objext
2756CC=$ac_save_CC
2757
2758fi
2759
2760case "x$ac_cv_prog_cc_stdc" in
2761  x|xno)
2762    echo "$as_me:$LINENO: result: none needed" >&5
2763echo "${ECHO_T}none needed" >&6 ;;
2764  *)
2765    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2766echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2767    CC="$CC $ac_cv_prog_cc_stdc" ;;
2768esac
2769
2770# Some people use a C++ compiler to compile C.  Since we use `exit',
2771# in C++ we need to declare it.  In case someone uses the same compiler
2772# for both compiling C and C++ we need to have the C++ compiler decide
2773# the declaration of exit, since it's the most demanding environment.
2774cat >conftest.$ac_ext <<_ACEOF
2775#ifndef __cplusplus
2776  choke me
2777#endif
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781  (eval $ac_compile) 2>conftest.er1
2782  ac_status=$?
2783  grep -v '^ *+' conftest.er1 >conftest.err
2784  rm -f conftest.er1
2785  cat conftest.err >&5
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); } &&
2788	 { ac_try='test -z "$ac_c_werror_flag"
2789			 || test ! -s conftest.err'
2790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791  (eval $ac_try) 2>&5
2792  ac_status=$?
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); }; } &&
2795	 { ac_try='test -s conftest.$ac_objext'
2796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797  (eval $ac_try) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; }; then
2801  for ac_declaration in \
2802   '' \
2803   'extern "C" void std::exit (int) throw (); using std::exit;' \
2804   'extern "C" void std::exit (int); using std::exit;' \
2805   'extern "C" void exit (int) throw ();' \
2806   'extern "C" void exit (int);' \
2807   'void exit (int);'
2808do
2809  cat >conftest.$ac_ext <<_ACEOF
2810/* confdefs.h.  */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h.  */
2815$ac_declaration
2816#include <stdlib.h>
2817int
2818main ()
2819{
2820exit (42);
2821  ;
2822  return 0;
2823}
2824_ACEOF
2825rm -f conftest.$ac_objext
2826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827  (eval $ac_compile) 2>conftest.er1
2828  ac_status=$?
2829  grep -v '^ *+' conftest.er1 >conftest.err
2830  rm -f conftest.er1
2831  cat conftest.err >&5
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); } &&
2834	 { ac_try='test -z "$ac_c_werror_flag"
2835			 || test ! -s conftest.err'
2836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837  (eval $ac_try) 2>&5
2838  ac_status=$?
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); }; } &&
2841	 { ac_try='test -s conftest.$ac_objext'
2842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843  (eval $ac_try) 2>&5
2844  ac_status=$?
2845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846  (exit $ac_status); }; }; then
2847  :
2848else
2849  echo "$as_me: failed program was:" >&5
2850sed 's/^/| /' conftest.$ac_ext >&5
2851
2852continue
2853fi
2854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855  cat >conftest.$ac_ext <<_ACEOF
2856/* confdefs.h.  */
2857_ACEOF
2858cat confdefs.h >>conftest.$ac_ext
2859cat >>conftest.$ac_ext <<_ACEOF
2860/* end confdefs.h.  */
2861$ac_declaration
2862int
2863main ()
2864{
2865exit (42);
2866  ;
2867  return 0;
2868}
2869_ACEOF
2870rm -f conftest.$ac_objext
2871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872  (eval $ac_compile) 2>conftest.er1
2873  ac_status=$?
2874  grep -v '^ *+' conftest.er1 >conftest.err
2875  rm -f conftest.er1
2876  cat conftest.err >&5
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); } &&
2879	 { ac_try='test -z "$ac_c_werror_flag"
2880			 || test ! -s conftest.err'
2881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882  (eval $ac_try) 2>&5
2883  ac_status=$?
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); }; } &&
2886	 { ac_try='test -s conftest.$ac_objext'
2887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888  (eval $ac_try) 2>&5
2889  ac_status=$?
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); }; }; then
2892  break
2893else
2894  echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897fi
2898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2899done
2900rm -f conftest*
2901if test -n "$ac_declaration"; then
2902  echo '#ifdef __cplusplus' >>confdefs.h
2903  echo $ac_declaration      >>confdefs.h
2904  echo '#endif'             >>confdefs.h
2905fi
2906
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911fi
2912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913ac_ext=c
2914ac_cpp='$CPP $CPPFLAGS'
2915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918DEPDIR="${am__leading_dot}deps"
2919
2920          ac_config_commands="$ac_config_commands depfiles"
2921
2922
2923am_make=${MAKE-make}
2924cat > confinc << 'END'
2925am__doit:
2926	@echo done
2927.PHONY: am__doit
2928END
2929# If we don't find an include directive, just comment out the code.
2930echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2931echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2932am__include="#"
2933am__quote=
2934_am_result=none
2935# First try GNU make style include.
2936echo "include confinc" > confmf
2937# We grep out `Entering directory' and `Leaving directory'
2938# messages which can occur if `w' ends up in MAKEFLAGS.
2939# In particular we don't look at `^make:' because GNU make might
2940# be invoked under some other name (usually "gmake"), in which
2941# case it prints its new name instead of `make'.
2942if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2943   am__include=include
2944   am__quote=
2945   _am_result=GNU
2946fi
2947# Now try BSD make style include.
2948if test "$am__include" = "#"; then
2949   echo '.include "confinc"' > confmf
2950   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2951      am__include=.include
2952      am__quote="\""
2953      _am_result=BSD
2954   fi
2955fi
2956
2957
2958echo "$as_me:$LINENO: result: $_am_result" >&5
2959echo "${ECHO_T}$_am_result" >&6
2960rm -f confinc confmf
2961
2962# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2963if test "${enable_dependency_tracking+set}" = set; then
2964  enableval="$enable_dependency_tracking"
2965
2966fi;
2967if test "x$enable_dependency_tracking" != xno; then
2968  am_depcomp="$ac_aux_dir/depcomp"
2969  AMDEPBACKSLASH='\'
2970fi
2971
2972
2973if test "x$enable_dependency_tracking" != xno; then
2974  AMDEP_TRUE=
2975  AMDEP_FALSE='#'
2976else
2977  AMDEP_TRUE='#'
2978  AMDEP_FALSE=
2979fi
2980
2981
2982
2983
2984depcc="$CC"   am_compiler_list=
2985
2986echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2987echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2988if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2989  echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2992  # We make a subdir and do the tests there.  Otherwise we can end up
2993  # making bogus files that we don't know about and never remove.  For
2994  # instance it was reported that on HP-UX the gcc test will end up
2995  # making a dummy file named `D' -- because `-MD' means `put the output
2996  # in D'.
2997  mkdir conftest.dir
2998  # Copy depcomp to subdir because otherwise we won't find it if we're
2999  # using a relative directory.
3000  cp "$am_depcomp" conftest.dir
3001  cd conftest.dir
3002  # We will build objects and dependencies in a subdirectory because
3003  # it helps to detect inapplicable dependency modes.  For instance
3004  # both Tru64's cc and ICC support -MD to output dependencies as a
3005  # side effect of compilation, but ICC will put the dependencies in
3006  # the current directory while Tru64 will put them in the object
3007  # directory.
3008  mkdir sub
3009
3010  am_cv_CC_dependencies_compiler_type=none
3011  if test "$am_compiler_list" = ""; then
3012     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3013  fi
3014  for depmode in $am_compiler_list; do
3015    # Setup a source with many dependencies, because some compilers
3016    # like to wrap large dependency lists on column 80 (with \), and
3017    # we should not choose a depcomp mode which is confused by this.
3018    #
3019    # We need to recreate these files for each test, as the compiler may
3020    # overwrite some of them when testing with obscure command lines.
3021    # This happens at least with the AIX C compiler.
3022    : > sub/conftest.c
3023    for i in 1 2 3 4 5 6; do
3024      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3025      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3026      # Solaris 8's {/usr,}/bin/sh.
3027      touch sub/conftst$i.h
3028    done
3029    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3030
3031    case $depmode in
3032    nosideeffect)
3033      # after this tag, mechanisms are not by side-effect, so they'll
3034      # only be used when explicitly requested
3035      if test "x$enable_dependency_tracking" = xyes; then
3036	continue
3037      else
3038	break
3039      fi
3040      ;;
3041    none) break ;;
3042    esac
3043    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3044    # mode.  It turns out that the SunPro C++ compiler does not properly
3045    # handle `-M -o', and we need to detect this.
3046    if depmode=$depmode \
3047       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3048       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3049       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3050         >/dev/null 2>conftest.err &&
3051       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3052       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3053       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3054      # icc doesn't choke on unknown options, it will just issue warnings
3055      # or remarks (even with -Werror).  So we grep stderr for any message
3056      # that says an option was ignored or not supported.
3057      # When given -MP, icc 7.0 and 7.1 complain thusly:
3058      #   icc: Command line warning: ignoring option '-M'; no argument required
3059      # The diagnosis changed in icc 8.0:
3060      #   icc: Command line remark: option '-MP' not supported
3061      if (grep 'ignoring option' conftest.err ||
3062          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3063        am_cv_CC_dependencies_compiler_type=$depmode
3064        break
3065      fi
3066    fi
3067  done
3068
3069  cd ..
3070  rm -rf conftest.dir
3071else
3072  am_cv_CC_dependencies_compiler_type=none
3073fi
3074
3075fi
3076echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3077echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3078CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3079
3080
3081
3082if
3083  test "x$enable_dependency_tracking" != xno \
3084  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3085  am__fastdepCC_TRUE=
3086  am__fastdepCC_FALSE='#'
3087else
3088  am__fastdepCC_TRUE='#'
3089  am__fastdepCC_FALSE=
3090fi
3091
3092
3093ac_ext=cc
3094ac_cpp='$CXXCPP $CPPFLAGS'
3095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3098if test -n "$ac_tool_prefix"; then
3099  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3100  do
3101    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103echo "$as_me:$LINENO: checking for $ac_word" >&5
3104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105if test "${ac_cv_prog_CXX+set}" = set; then
3106  echo $ECHO_N "(cached) $ECHO_C" >&6
3107else
3108  if test -n "$CXX"; then
3109  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114  IFS=$as_save_IFS
3115  test -z "$as_dir" && as_dir=.
3116  for ac_exec_ext in '' $ac_executable_extensions; do
3117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123done
3124
3125fi
3126fi
3127CXX=$ac_cv_prog_CXX
3128if test -n "$CXX"; then
3129  echo "$as_me:$LINENO: result: $CXX" >&5
3130echo "${ECHO_T}$CXX" >&6
3131else
3132  echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
3134fi
3135
3136    test -n "$CXX" && break
3137  done
3138fi
3139if test -z "$CXX"; then
3140  ac_ct_CXX=$CXX
3141  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3142do
3143  # Extract the first word of "$ac_prog", so it can be a program name with args.
3144set dummy $ac_prog; ac_word=$2
3145echo "$as_me:$LINENO: checking for $ac_word" >&5
3146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3147if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3148  echo $ECHO_N "(cached) $ECHO_C" >&6
3149else
3150  if test -n "$ac_ct_CXX"; then
3151  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156  IFS=$as_save_IFS
3157  test -z "$as_dir" && as_dir=.
3158  for ac_exec_ext in '' $ac_executable_extensions; do
3159  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160    ac_cv_prog_ac_ct_CXX="$ac_prog"
3161    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162    break 2
3163  fi
3164done
3165done
3166
3167fi
3168fi
3169ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3170if test -n "$ac_ct_CXX"; then
3171  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3172echo "${ECHO_T}$ac_ct_CXX" >&6
3173else
3174  echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
3176fi
3177
3178  test -n "$ac_ct_CXX" && break
3179done
3180test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3181
3182  CXX=$ac_ct_CXX
3183fi
3184
3185
3186# Provide some information about the compiler.
3187echo "$as_me:$LINENO:" \
3188     "checking for C++ compiler version" >&5
3189ac_compiler=`set X $ac_compile; echo $2`
3190{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3191  (eval $ac_compiler --version </dev/null >&5) 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }
3195{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3196  (eval $ac_compiler -v </dev/null >&5) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }
3200{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3201  (eval $ac_compiler -V </dev/null >&5) 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }
3205
3206echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3207echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3208if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3209  echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211  cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h.  */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h.  */
3217
3218int
3219main ()
3220{
3221#ifndef __GNUC__
3222       choke me
3223#endif
3224
3225  ;
3226  return 0;
3227}
3228_ACEOF
3229rm -f conftest.$ac_objext
3230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231  (eval $ac_compile) 2>conftest.er1
3232  ac_status=$?
3233  grep -v '^ *+' conftest.er1 >conftest.err
3234  rm -f conftest.er1
3235  cat conftest.err >&5
3236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237  (exit $ac_status); } &&
3238	 { ac_try='test -z "$ac_cxx_werror_flag"
3239			 || test ! -s conftest.err'
3240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241  (eval $ac_try) 2>&5
3242  ac_status=$?
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); }; } &&
3245	 { ac_try='test -s conftest.$ac_objext'
3246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247  (eval $ac_try) 2>&5
3248  ac_status=$?
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); }; }; then
3251  ac_compiler_gnu=yes
3252else
3253  echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256ac_compiler_gnu=no
3257fi
3258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3259ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3260
3261fi
3262echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3263echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3264GXX=`test $ac_compiler_gnu = yes && echo yes`
3265ac_test_CXXFLAGS=${CXXFLAGS+set}
3266ac_save_CXXFLAGS=$CXXFLAGS
3267CXXFLAGS="-g"
3268echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3269echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3270if test "${ac_cv_prog_cxx_g+set}" = set; then
3271  echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273  cat >conftest.$ac_ext <<_ACEOF
3274/* confdefs.h.  */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
3278/* end confdefs.h.  */
3279
3280int
3281main ()
3282{
3283
3284  ;
3285  return 0;
3286}
3287_ACEOF
3288rm -f conftest.$ac_objext
3289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290  (eval $ac_compile) 2>conftest.er1
3291  ac_status=$?
3292  grep -v '^ *+' conftest.er1 >conftest.err
3293  rm -f conftest.er1
3294  cat conftest.err >&5
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); } &&
3297	 { ac_try='test -z "$ac_cxx_werror_flag"
3298			 || test ! -s conftest.err'
3299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300  (eval $ac_try) 2>&5
3301  ac_status=$?
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); }; } &&
3304	 { ac_try='test -s conftest.$ac_objext'
3305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306  (eval $ac_try) 2>&5
3307  ac_status=$?
3308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309  (exit $ac_status); }; }; then
3310  ac_cv_prog_cxx_g=yes
3311else
3312  echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315ac_cv_prog_cxx_g=no
3316fi
3317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318fi
3319echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3320echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3321if test "$ac_test_CXXFLAGS" = set; then
3322  CXXFLAGS=$ac_save_CXXFLAGS
3323elif test $ac_cv_prog_cxx_g = yes; then
3324  if test "$GXX" = yes; then
3325    CXXFLAGS="-g -O2"
3326  else
3327    CXXFLAGS="-g"
3328  fi
3329else
3330  if test "$GXX" = yes; then
3331    CXXFLAGS="-O2"
3332  else
3333    CXXFLAGS=
3334  fi
3335fi
3336for ac_declaration in \
3337   '' \
3338   'extern "C" void std::exit (int) throw (); using std::exit;' \
3339   'extern "C" void std::exit (int); using std::exit;' \
3340   'extern "C" void exit (int) throw ();' \
3341   'extern "C" void exit (int);' \
3342   'void exit (int);'
3343do
3344  cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h.  */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h.  */
3350$ac_declaration
3351#include <stdlib.h>
3352int
3353main ()
3354{
3355exit (42);
3356  ;
3357  return 0;
3358}
3359_ACEOF
3360rm -f conftest.$ac_objext
3361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362  (eval $ac_compile) 2>conftest.er1
3363  ac_status=$?
3364  grep -v '^ *+' conftest.er1 >conftest.err
3365  rm -f conftest.er1
3366  cat conftest.err >&5
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); } &&
3369	 { ac_try='test -z "$ac_cxx_werror_flag"
3370			 || test ! -s conftest.err'
3371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372  (eval $ac_try) 2>&5
3373  ac_status=$?
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); }; } &&
3376	 { ac_try='test -s conftest.$ac_objext'
3377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378  (eval $ac_try) 2>&5
3379  ac_status=$?
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); }; }; then
3382  :
3383else
3384  echo "$as_me: failed program was:" >&5
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
3387continue
3388fi
3389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390  cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h.  */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h.  */
3396$ac_declaration
3397int
3398main ()
3399{
3400exit (42);
3401  ;
3402  return 0;
3403}
3404_ACEOF
3405rm -f conftest.$ac_objext
3406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407  (eval $ac_compile) 2>conftest.er1
3408  ac_status=$?
3409  grep -v '^ *+' conftest.er1 >conftest.err
3410  rm -f conftest.er1
3411  cat conftest.err >&5
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); } &&
3414	 { ac_try='test -z "$ac_cxx_werror_flag"
3415			 || test ! -s conftest.err'
3416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417  (eval $ac_try) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }; } &&
3421	 { ac_try='test -s conftest.$ac_objext'
3422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423  (eval $ac_try) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }; }; then
3427  break
3428else
3429  echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432fi
3433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434done
3435rm -f conftest*
3436if test -n "$ac_declaration"; then
3437  echo '#ifdef __cplusplus' >>confdefs.h
3438  echo $ac_declaration      >>confdefs.h
3439  echo '#endif'             >>confdefs.h
3440fi
3441
3442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448depcc="$CXX"  am_compiler_list=
3449
3450echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3451echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3452if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3453  echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3456  # We make a subdir and do the tests there.  Otherwise we can end up
3457  # making bogus files that we don't know about and never remove.  For
3458  # instance it was reported that on HP-UX the gcc test will end up
3459  # making a dummy file named `D' -- because `-MD' means `put the output
3460  # in D'.
3461  mkdir conftest.dir
3462  # Copy depcomp to subdir because otherwise we won't find it if we're
3463  # using a relative directory.
3464  cp "$am_depcomp" conftest.dir
3465  cd conftest.dir
3466  # We will build objects and dependencies in a subdirectory because
3467  # it helps to detect inapplicable dependency modes.  For instance
3468  # both Tru64's cc and ICC support -MD to output dependencies as a
3469  # side effect of compilation, but ICC will put the dependencies in
3470  # the current directory while Tru64 will put them in the object
3471  # directory.
3472  mkdir sub
3473
3474  am_cv_CXX_dependencies_compiler_type=none
3475  if test "$am_compiler_list" = ""; then
3476     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3477  fi
3478  for depmode in $am_compiler_list; do
3479    # Setup a source with many dependencies, because some compilers
3480    # like to wrap large dependency lists on column 80 (with \), and
3481    # we should not choose a depcomp mode which is confused by this.
3482    #
3483    # We need to recreate these files for each test, as the compiler may
3484    # overwrite some of them when testing with obscure command lines.
3485    # This happens at least with the AIX C compiler.
3486    : > sub/conftest.c
3487    for i in 1 2 3 4 5 6; do
3488      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3489      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3490      # Solaris 8's {/usr,}/bin/sh.
3491      touch sub/conftst$i.h
3492    done
3493    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3494
3495    case $depmode in
3496    nosideeffect)
3497      # after this tag, mechanisms are not by side-effect, so they'll
3498      # only be used when explicitly requested
3499      if test "x$enable_dependency_tracking" = xyes; then
3500	continue
3501      else
3502	break
3503      fi
3504      ;;
3505    none) break ;;
3506    esac
3507    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3508    # mode.  It turns out that the SunPro C++ compiler does not properly
3509    # handle `-M -o', and we need to detect this.
3510    if depmode=$depmode \
3511       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3512       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3513       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3514         >/dev/null 2>conftest.err &&
3515       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3516       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3517       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3518      # icc doesn't choke on unknown options, it will just issue warnings
3519      # or remarks (even with -Werror).  So we grep stderr for any message
3520      # that says an option was ignored or not supported.
3521      # When given -MP, icc 7.0 and 7.1 complain thusly:
3522      #   icc: Command line warning: ignoring option '-M'; no argument required
3523      # The diagnosis changed in icc 8.0:
3524      #   icc: Command line remark: option '-MP' not supported
3525      if (grep 'ignoring option' conftest.err ||
3526          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3527        am_cv_CXX_dependencies_compiler_type=$depmode
3528        break
3529      fi
3530    fi
3531  done
3532
3533  cd ..
3534  rm -rf conftest.dir
3535else
3536  am_cv_CXX_dependencies_compiler_type=none
3537fi
3538
3539fi
3540echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3541echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3542CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3543
3544
3545
3546if
3547  test "x$enable_dependency_tracking" != xno \
3548  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3549  am__fastdepCXX_TRUE=
3550  am__fastdepCXX_FALSE='#'
3551else
3552  am__fastdepCXX_TRUE='#'
3553  am__fastdepCXX_FALSE=
3554fi
3555
3556
3557
3558
3559
3560# Check whether --enable-shared or --disable-shared was given.
3561if test "${enable_shared+set}" = set; then
3562  enableval="$enable_shared"
3563  p=${PACKAGE-default}
3564    case $enableval in
3565    yes) enable_shared=yes ;;
3566    no) enable_shared=no ;;
3567    *)
3568      enable_shared=no
3569      # Look at the argument we got.  We use all the common list separators.
3570      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3571      for pkg in $enableval; do
3572	IFS="$lt_save_ifs"
3573	if test "X$pkg" = "X$p"; then
3574	  enable_shared=yes
3575	fi
3576      done
3577      IFS="$lt_save_ifs"
3578      ;;
3579    esac
3580else
3581  enable_shared=yes
3582fi;
3583
3584# Check whether --enable-static or --disable-static was given.
3585if test "${enable_static+set}" = set; then
3586  enableval="$enable_static"
3587  p=${PACKAGE-default}
3588    case $enableval in
3589    yes) enable_static=yes ;;
3590    no) enable_static=no ;;
3591    *)
3592     enable_static=no
3593      # Look at the argument we got.  We use all the common list separators.
3594      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3595      for pkg in $enableval; do
3596	IFS="$lt_save_ifs"
3597	if test "X$pkg" = "X$p"; then
3598	  enable_static=yes
3599	fi
3600      done
3601      IFS="$lt_save_ifs"
3602      ;;
3603    esac
3604else
3605  enable_static=yes
3606fi;
3607
3608# Check whether --enable-fast-install or --disable-fast-install was given.
3609if test "${enable_fast_install+set}" = set; then
3610  enableval="$enable_fast_install"
3611  p=${PACKAGE-default}
3612    case $enableval in
3613    yes) enable_fast_install=yes ;;
3614    no) enable_fast_install=no ;;
3615    *)
3616      enable_fast_install=no
3617      # Look at the argument we got.  We use all the common list separators.
3618      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3619      for pkg in $enableval; do
3620	IFS="$lt_save_ifs"
3621	if test "X$pkg" = "X$p"; then
3622	  enable_fast_install=yes
3623	fi
3624      done
3625      IFS="$lt_save_ifs"
3626      ;;
3627    esac
3628else
3629  enable_fast_install=yes
3630fi;
3631
3632echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3633echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3634if test "${lt_cv_path_SED+set}" = set; then
3635  echo $ECHO_N "(cached) $ECHO_C" >&6
3636else
3637  # Loop through the user's path and test for sed and gsed.
3638# Then use that list of sed's as ones to test for truncation.
3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642  IFS=$as_save_IFS
3643  test -z "$as_dir" && as_dir=.
3644  for lt_ac_prog in sed gsed; do
3645    for ac_exec_ext in '' $ac_executable_extensions; do
3646      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3647        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3648      fi
3649    done
3650  done
3651done
3652lt_ac_max=0
3653lt_ac_count=0
3654# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3655# along with /bin/sed that truncates output.
3656for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3657  test ! -f $lt_ac_sed && break
3658  cat /dev/null > conftest.in
3659  lt_ac_count=0
3660  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3661  # Check for GNU sed and select it if it is found.
3662  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3663    lt_cv_path_SED=$lt_ac_sed
3664    break
3665  fi
3666  while true; do
3667    cat conftest.in conftest.in >conftest.tmp
3668    mv conftest.tmp conftest.in
3669    cp conftest.in conftest.nl
3670    echo >>conftest.nl
3671    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3672    cmp -s conftest.out conftest.nl || break
3673    # 10000 chars as input seems more than enough
3674    test $lt_ac_count -gt 10 && break
3675    lt_ac_count=`expr $lt_ac_count + 1`
3676    if test $lt_ac_count -gt $lt_ac_max; then
3677      lt_ac_max=$lt_ac_count
3678      lt_cv_path_SED=$lt_ac_sed
3679    fi
3680  done
3681done
3682SED=$lt_cv_path_SED
3683
3684fi
3685
3686echo "$as_me:$LINENO: result: $SED" >&5
3687echo "${ECHO_T}$SED" >&6
3688
3689echo "$as_me:$LINENO: checking for egrep" >&5
3690echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3691if test "${ac_cv_prog_egrep+set}" = set; then
3692  echo $ECHO_N "(cached) $ECHO_C" >&6
3693else
3694  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3695    then ac_cv_prog_egrep='grep -E'
3696    else ac_cv_prog_egrep='egrep'
3697    fi
3698fi
3699echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3700echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3701 EGREP=$ac_cv_prog_egrep
3702
3703
3704
3705# Check whether --with-gnu-ld or --without-gnu-ld was given.
3706if test "${with_gnu_ld+set}" = set; then
3707  withval="$with_gnu_ld"
3708  test "$withval" = no || with_gnu_ld=yes
3709else
3710  with_gnu_ld=no
3711fi;
3712ac_prog=ld
3713if test "$GCC" = yes; then
3714  # Check if gcc -print-prog-name=ld gives a path.
3715  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3716echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3717  case $host in
3718  *-*-mingw*)
3719    # gcc leaves a trailing carriage return which upsets mingw
3720    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3721  *)
3722    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3723  esac
3724  case $ac_prog in
3725    # Accept absolute paths.
3726    [\\/]* | ?:[\\/]*)
3727      re_direlt='/[^/][^/]*/\.\./'
3728      # Canonicalize the pathname of ld
3729      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3730      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3731	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3732      done
3733      test -z "$LD" && LD="$ac_prog"
3734      ;;
3735  "")
3736    # If it fails, then pretend we aren't using GCC.
3737    ac_prog=ld
3738    ;;
3739  *)
3740    # If it is relative, then search for the first ld in PATH.
3741    with_gnu_ld=unknown
3742    ;;
3743  esac
3744elif test "$with_gnu_ld" = yes; then
3745  echo "$as_me:$LINENO: checking for GNU ld" >&5
3746echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3747else
3748  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3749echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3750fi
3751if test "${lt_cv_path_LD+set}" = set; then
3752  echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754  if test -z "$LD"; then
3755  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3756  for ac_dir in $PATH; do
3757    IFS="$lt_save_ifs"
3758    test -z "$ac_dir" && ac_dir=.
3759    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3760      lt_cv_path_LD="$ac_dir/$ac_prog"
3761      # Check to see if the program is GNU ld.  I'd rather use --version,
3762      # but apparently some GNU ld's only accept -v.
3763      # Break only if it was the GNU/non-GNU ld that we prefer.
3764      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3765      *GNU* | *'with BFD'*)
3766	test "$with_gnu_ld" != no && break
3767	;;
3768      *)
3769	test "$with_gnu_ld" != yes && break
3770	;;
3771      esac
3772    fi
3773  done
3774  IFS="$lt_save_ifs"
3775else
3776  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3777fi
3778fi
3779
3780LD="$lt_cv_path_LD"
3781if test -n "$LD"; then
3782  echo "$as_me:$LINENO: result: $LD" >&5
3783echo "${ECHO_T}$LD" >&6
3784else
3785  echo "$as_me:$LINENO: result: no" >&5
3786echo "${ECHO_T}no" >&6
3787fi
3788test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3789echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3790   { (exit 1); exit 1; }; }
3791echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3792echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3793if test "${lt_cv_prog_gnu_ld+set}" = set; then
3794  echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3797case `$LD -v 2>&1 </dev/null` in
3798*GNU* | *'with BFD'*)
3799  lt_cv_prog_gnu_ld=yes
3800  ;;
3801*)
3802  lt_cv_prog_gnu_ld=no
3803  ;;
3804esac
3805fi
3806echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3807echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3808with_gnu_ld=$lt_cv_prog_gnu_ld
3809
3810
3811echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3812echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3813if test "${lt_cv_ld_reload_flag+set}" = set; then
3814  echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816  lt_cv_ld_reload_flag='-r'
3817fi
3818echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3819echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3820reload_flag=$lt_cv_ld_reload_flag
3821case $reload_flag in
3822"" | " "*) ;;
3823*) reload_flag=" $reload_flag" ;;
3824esac
3825reload_cmds='$LD$reload_flag -o $output$reload_objs'
3826
3827echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3828echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3829if test "${lt_cv_path_NM+set}" = set; then
3830  echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832  if test -n "$NM"; then
3833  # Let the user override the test.
3834  lt_cv_path_NM="$NM"
3835else
3836  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3837  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3838    IFS="$lt_save_ifs"
3839    test -z "$ac_dir" && ac_dir=.
3840    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3841    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3842      # Check to see if the nm accepts a BSD-compat flag.
3843      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3844      #   nm: unknown option "B" ignored
3845      # Tru64's nm complains that /dev/null is an invalid object file
3846      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3847      */dev/null* | *'Invalid file or object type'*)
3848	lt_cv_path_NM="$tmp_nm -B"
3849	break
3850        ;;
3851      *)
3852	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3853	*/dev/null*)
3854	  lt_cv_path_NM="$tmp_nm -p"
3855	  break
3856	  ;;
3857	*)
3858	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3859	  continue # so that we can try to find one that supports BSD flags
3860	  ;;
3861	esac
3862      esac
3863    fi
3864  done
3865  IFS="$lt_save_ifs"
3866  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3867fi
3868fi
3869echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3870echo "${ECHO_T}$lt_cv_path_NM" >&6
3871NM="$lt_cv_path_NM"
3872
3873echo "$as_me:$LINENO: checking whether ln -s works" >&5
3874echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3875LN_S=$as_ln_s
3876if test "$LN_S" = "ln -s"; then
3877  echo "$as_me:$LINENO: result: yes" >&5
3878echo "${ECHO_T}yes" >&6
3879else
3880  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3881echo "${ECHO_T}no, using $LN_S" >&6
3882fi
3883
3884echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3885echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3886if test "${lt_cv_deplibs_check_method+set}" = set; then
3887  echo $ECHO_N "(cached) $ECHO_C" >&6
3888else
3889  lt_cv_file_magic_cmd='$MAGIC_CMD'
3890lt_cv_file_magic_test_file=
3891lt_cv_deplibs_check_method='unknown'
3892# Need to set the preceding variable on all platforms that support
3893# interlibrary dependencies.
3894# 'none' -- dependencies not supported.
3895# `unknown' -- same as none, but documents that we really don't know.
3896# 'pass_all' -- all dependencies passed with no checks.
3897# 'test_compile' -- check by making test program.
3898# 'file_magic [[regex]]' -- check by looking for files in library path
3899# which responds to the $file_magic_cmd with a given extended regex.
3900# If you have `file' or equivalent on your system and you're not sure
3901# whether `pass_all' will *always* work, you probably want this one.
3902
3903case $host_os in
3904aix4* | aix5*)
3905  lt_cv_deplibs_check_method=pass_all
3906  ;;
3907
3908beos*)
3909  lt_cv_deplibs_check_method=pass_all
3910  ;;
3911
3912bsdi4*)
3913  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3914  lt_cv_file_magic_cmd='/usr/bin/file -L'
3915  lt_cv_file_magic_test_file=/shlib/libc.so
3916  ;;
3917
3918cygwin*)
3919  # func_win32_libid is a shell function defined in ltmain.sh
3920  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3921  lt_cv_file_magic_cmd='func_win32_libid'
3922  ;;
3923
3924mingw* | pw32*)
3925  # Base MSYS/MinGW do not provide the 'file' command needed by
3926  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3927  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3928  lt_cv_file_magic_cmd='$OBJDUMP -f'
3929  ;;
3930
3931darwin* | rhapsody*)
3932  lt_cv_deplibs_check_method=pass_all
3933  ;;
3934
3935freebsd* | kfreebsd*-gnu)
3936  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3937    case $host_cpu in
3938    i*86 )
3939      # Not sure whether the presence of OpenBSD here was a mistake.
3940      # Let's accept both of them until this is cleared up.
3941      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3942      lt_cv_file_magic_cmd=/usr/bin/file
3943      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3944      ;;
3945    esac
3946  else
3947    lt_cv_deplibs_check_method=pass_all
3948  fi
3949  ;;
3950
3951gnu*)
3952  lt_cv_deplibs_check_method=pass_all
3953  ;;
3954
3955hpux10.20* | hpux11*)
3956  lt_cv_file_magic_cmd=/usr/bin/file
3957  case "$host_cpu" in
3958  ia64*)
3959    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3960    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3961    ;;
3962  hppa*64*)
3963    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]'
3964    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3965    ;;
3966  *)
3967    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3968    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3969    ;;
3970  esac
3971  ;;
3972
3973irix5* | irix6* | nonstopux*)
3974  case $LD in
3975  *-32|*"-32 ") libmagic=32-bit;;
3976  *-n32|*"-n32 ") libmagic=N32;;
3977  *-64|*"-64 ") libmagic=64-bit;;
3978  *) libmagic=never-match;;
3979  esac
3980  lt_cv_deplibs_check_method=pass_all
3981  ;;
3982
3983# This must be Linux ELF.
3984linux*)
3985  case $host_cpu in
3986  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3987    lt_cv_deplibs_check_method=pass_all ;;
3988  *)
3989    # glibc up to 2.1.1 does not perform some relocations on ARM
3990    # this will be overridden with pass_all, but let us keep it just in case
3991    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3992  esac
3993  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3994  lt_cv_deplibs_check_method=pass_all
3995  ;;
3996
3997netbsd*)
3998  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3999    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4000  else
4001    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4002  fi
4003  ;;
4004
4005newos6*)
4006  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4007  lt_cv_file_magic_cmd=/usr/bin/file
4008  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4009  ;;
4010
4011nto-qnx*)
4012  lt_cv_deplibs_check_method=unknown
4013  ;;
4014
4015openbsd*)
4016  lt_cv_file_magic_cmd=/usr/bin/file
4017  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4018  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4019    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4020  else
4021    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4022  fi
4023  ;;
4024
4025osf3* | osf4* | osf5*)
4026  lt_cv_deplibs_check_method=pass_all
4027  ;;
4028
4029sco3.2v5*)
4030  lt_cv_deplibs_check_method=pass_all
4031  ;;
4032
4033solaris*)
4034  lt_cv_deplibs_check_method=pass_all
4035  ;;
4036
4037sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4038  case $host_vendor in
4039  motorola)
4040    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]'
4041    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4042    ;;
4043  ncr)
4044    lt_cv_deplibs_check_method=pass_all
4045    ;;
4046  sequent)
4047    lt_cv_file_magic_cmd='/bin/file'
4048    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4049    ;;
4050  sni)
4051    lt_cv_file_magic_cmd='/bin/file'
4052    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4053    lt_cv_file_magic_test_file=/lib/libc.so
4054    ;;
4055  siemens)
4056    lt_cv_deplibs_check_method=pass_all
4057    ;;
4058  esac
4059  ;;
4060
4061sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4062  lt_cv_deplibs_check_method=pass_all
4063  ;;
4064esac
4065
4066fi
4067echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4068echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4069file_magic_cmd=$lt_cv_file_magic_cmd
4070deplibs_check_method=$lt_cv_deplibs_check_method
4071test -z "$deplibs_check_method" && deplibs_check_method=unknown
4072
4073
4074
4075
4076# If no C compiler was specified, use CC.
4077LTCC=${LTCC-"$CC"}
4078
4079# Allow CC to be a program name with arguments.
4080compiler=$CC
4081
4082
4083# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4084if test "${enable_libtool_lock+set}" = set; then
4085  enableval="$enable_libtool_lock"
4086
4087fi;
4088test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4089
4090# Some flags need to be propagated to the compiler or linker for good
4091# libtool support.
4092case $host in
4093ia64-*-hpux*)
4094  # Find out which ABI we are using.
4095  echo 'int i;' > conftest.$ac_ext
4096  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097  (eval $ac_compile) 2>&5
4098  ac_status=$?
4099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100  (exit $ac_status); }; then
4101    case `/usr/bin/file conftest.$ac_objext` in
4102    *ELF-32*)
4103      HPUX_IA64_MODE="32"
4104      ;;
4105    *ELF-64*)
4106      HPUX_IA64_MODE="64"
4107      ;;
4108    esac
4109  fi
4110  rm -rf conftest*
4111  ;;
4112*-*-irix6*)
4113  # Find out which ABI we are using.
4114  echo '#line 4114 "configure"' > conftest.$ac_ext
4115  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116  (eval $ac_compile) 2>&5
4117  ac_status=$?
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); }; then
4120   if test "$lt_cv_prog_gnu_ld" = yes; then
4121    case `/usr/bin/file conftest.$ac_objext` in
4122    *32-bit*)
4123      LD="${LD-ld} -melf32bsmip"
4124      ;;
4125    *N32*)
4126      LD="${LD-ld} -melf32bmipn32"
4127      ;;
4128    *64-bit*)
4129      LD="${LD-ld} -melf64bmip"
4130      ;;
4131    esac
4132   else
4133    case `/usr/bin/file conftest.$ac_objext` in
4134    *32-bit*)
4135      LD="${LD-ld} -32"
4136      ;;
4137    *N32*)
4138      LD="${LD-ld} -n32"
4139      ;;
4140    *64-bit*)
4141      LD="${LD-ld} -64"
4142      ;;
4143    esac
4144   fi
4145  fi
4146  rm -rf conftest*
4147  ;;
4148
4149x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4150  # Find out which ABI we are using.
4151  echo 'int i;' > conftest.$ac_ext
4152  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153  (eval $ac_compile) 2>&5
4154  ac_status=$?
4155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156  (exit $ac_status); }; then
4157    case "`/usr/bin/file conftest.o`" in
4158    *32-bit*)
4159      case $host in
4160        x86_64-*linux*)
4161          LD="${LD-ld} -m elf_i386"
4162          ;;
4163        ppc64-*linux*|powerpc64-*linux*)
4164          LD="${LD-ld} -m elf32ppclinux"
4165          ;;
4166        s390x-*linux*)
4167          LD="${LD-ld} -m elf_s390"
4168          ;;
4169        sparc64-*linux*)
4170          LD="${LD-ld} -m elf32_sparc"
4171          ;;
4172      esac
4173      ;;
4174    *64-bit*)
4175      case $host in
4176        x86_64-*linux*)
4177          LD="${LD-ld} -m elf_x86_64"
4178          ;;
4179        ppc*-*linux*|powerpc*-*linux*)
4180          LD="${LD-ld} -m elf64ppc"
4181          ;;
4182        s390*-*linux*)
4183          LD="${LD-ld} -m elf64_s390"
4184          ;;
4185        sparc*-*linux*)
4186          LD="${LD-ld} -m elf64_sparc"
4187          ;;
4188      esac
4189      ;;
4190    esac
4191  fi
4192  rm -rf conftest*
4193  ;;
4194
4195*-*-sco3.2v5*)
4196  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4197  SAVE_CFLAGS="$CFLAGS"
4198  CFLAGS="$CFLAGS -belf"
4199  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4200echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4201if test "${lt_cv_cc_needs_belf+set}" = set; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  ac_ext=c
4205ac_cpp='$CPP $CPPFLAGS'
4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209
4210     cat >conftest.$ac_ext <<_ACEOF
4211/* confdefs.h.  */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h.  */
4216
4217int
4218main ()
4219{
4220
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225rm -f conftest.$ac_objext conftest$ac_exeext
4226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227  (eval $ac_link) 2>conftest.er1
4228  ac_status=$?
4229  grep -v '^ *+' conftest.er1 >conftest.err
4230  rm -f conftest.er1
4231  cat conftest.err >&5
4232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233  (exit $ac_status); } &&
4234	 { ac_try='test -z "$ac_c_werror_flag"
4235			 || test ! -s conftest.err'
4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237  (eval $ac_try) 2>&5
4238  ac_status=$?
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); }; } &&
4241	 { ac_try='test -s conftest$ac_exeext'
4242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243  (eval $ac_try) 2>&5
4244  ac_status=$?
4245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246  (exit $ac_status); }; }; then
4247  lt_cv_cc_needs_belf=yes
4248else
4249  echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252lt_cv_cc_needs_belf=no
4253fi
4254rm -f conftest.err conftest.$ac_objext \
4255      conftest$ac_exeext conftest.$ac_ext
4256     ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262fi
4263echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4264echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4265  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4266    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4267    CFLAGS="$SAVE_CFLAGS"
4268  fi
4269  ;;
4270*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4271  if test -n "$ac_tool_prefix"; then
4272  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4273set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4274echo "$as_me:$LINENO: checking for $ac_word" >&5
4275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4277  echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279  if test -n "$DLLTOOL"; then
4280  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4281else
4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH
4284do
4285  IFS=$as_save_IFS
4286  test -z "$as_dir" && as_dir=.
4287  for ac_exec_ext in '' $ac_executable_extensions; do
4288  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291    break 2
4292  fi
4293done
4294done
4295
4296fi
4297fi
4298DLLTOOL=$ac_cv_prog_DLLTOOL
4299if test -n "$DLLTOOL"; then
4300  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4301echo "${ECHO_T}$DLLTOOL" >&6
4302else
4303  echo "$as_me:$LINENO: result: no" >&5
4304echo "${ECHO_T}no" >&6
4305fi
4306
4307fi
4308if test -z "$ac_cv_prog_DLLTOOL"; then
4309  ac_ct_DLLTOOL=$DLLTOOL
4310  # Extract the first word of "dlltool", so it can be a program name with args.
4311set dummy dlltool; ac_word=$2
4312echo "$as_me:$LINENO: checking for $ac_word" >&5
4313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4314if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4315  echo $ECHO_N "(cached) $ECHO_C" >&6
4316else
4317  if test -n "$ac_ct_DLLTOOL"; then
4318  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4319else
4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323  IFS=$as_save_IFS
4324  test -z "$as_dir" && as_dir=.
4325  for ac_exec_ext in '' $ac_executable_extensions; do
4326  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329    break 2
4330  fi
4331done
4332done
4333
4334  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4335fi
4336fi
4337ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4338if test -n "$ac_ct_DLLTOOL"; then
4339  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4340echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4341else
4342  echo "$as_me:$LINENO: result: no" >&5
4343echo "${ECHO_T}no" >&6
4344fi
4345
4346  DLLTOOL=$ac_ct_DLLTOOL
4347else
4348  DLLTOOL="$ac_cv_prog_DLLTOOL"
4349fi
4350
4351  if test -n "$ac_tool_prefix"; then
4352  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4353set dummy ${ac_tool_prefix}as; ac_word=$2
4354echo "$as_me:$LINENO: checking for $ac_word" >&5
4355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356if test "${ac_cv_prog_AS+set}" = set; then
4357  echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359  if test -n "$AS"; then
4360  ac_cv_prog_AS="$AS" # Let the user override the test.
4361else
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365  IFS=$as_save_IFS
4366  test -z "$as_dir" && as_dir=.
4367  for ac_exec_ext in '' $ac_executable_extensions; do
4368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369    ac_cv_prog_AS="${ac_tool_prefix}as"
4370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371    break 2
4372  fi
4373done
4374done
4375
4376fi
4377fi
4378AS=$ac_cv_prog_AS
4379if test -n "$AS"; then
4380  echo "$as_me:$LINENO: result: $AS" >&5
4381echo "${ECHO_T}$AS" >&6
4382else
4383  echo "$as_me:$LINENO: result: no" >&5
4384echo "${ECHO_T}no" >&6
4385fi
4386
4387fi
4388if test -z "$ac_cv_prog_AS"; then
4389  ac_ct_AS=$AS
4390  # Extract the first word of "as", so it can be a program name with args.
4391set dummy as; ac_word=$2
4392echo "$as_me:$LINENO: checking for $ac_word" >&5
4393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4395  echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397  if test -n "$ac_ct_AS"; then
4398  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403  IFS=$as_save_IFS
4404  test -z "$as_dir" && as_dir=.
4405  for ac_exec_ext in '' $ac_executable_extensions; do
4406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407    ac_cv_prog_ac_ct_AS="as"
4408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409    break 2
4410  fi
4411done
4412done
4413
4414  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4415fi
4416fi
4417ac_ct_AS=$ac_cv_prog_ac_ct_AS
4418if test -n "$ac_ct_AS"; then
4419  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4420echo "${ECHO_T}$ac_ct_AS" >&6
4421else
4422  echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6
4424fi
4425
4426  AS=$ac_ct_AS
4427else
4428  AS="$ac_cv_prog_AS"
4429fi
4430
4431  if test -n "$ac_tool_prefix"; then
4432  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4433set dummy ${ac_tool_prefix}objdump; ac_word=$2
4434echo "$as_me:$LINENO: checking for $ac_word" >&5
4435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4437  echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439  if test -n "$OBJDUMP"; then
4440  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4441else
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445  IFS=$as_save_IFS
4446  test -z "$as_dir" && as_dir=.
4447  for ac_exec_ext in '' $ac_executable_extensions; do
4448  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451    break 2
4452  fi
4453done
4454done
4455
4456fi
4457fi
4458OBJDUMP=$ac_cv_prog_OBJDUMP
4459if test -n "$OBJDUMP"; then
4460  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4461echo "${ECHO_T}$OBJDUMP" >&6
4462else
4463  echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
4465fi
4466
4467fi
4468if test -z "$ac_cv_prog_OBJDUMP"; then
4469  ac_ct_OBJDUMP=$OBJDUMP
4470  # Extract the first word of "objdump", so it can be a program name with args.
4471set dummy objdump; ac_word=$2
4472echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4475  echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477  if test -n "$ac_ct_OBJDUMP"; then
4478  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483  IFS=$as_save_IFS
4484  test -z "$as_dir" && as_dir=.
4485  for ac_exec_ext in '' $ac_executable_extensions; do
4486  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489    break 2
4490  fi
4491done
4492done
4493
4494  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4495fi
4496fi
4497ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4498if test -n "$ac_ct_OBJDUMP"; then
4499  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4500echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4501else
4502  echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6
4504fi
4505
4506  OBJDUMP=$ac_ct_OBJDUMP
4507else
4508  OBJDUMP="$ac_cv_prog_OBJDUMP"
4509fi
4510
4511  ;;
4512
4513esac
4514
4515need_locks="$enable_libtool_lock"
4516
4517
4518ac_ext=c
4519ac_cpp='$CPP $CPPFLAGS'
4520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4524echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4525# On Suns, sometimes $CPP names a directory.
4526if test -n "$CPP" && test -d "$CPP"; then
4527  CPP=
4528fi
4529if test -z "$CPP"; then
4530  if test "${ac_cv_prog_CPP+set}" = set; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533      # Double quotes because CPP needs to be expanded
4534    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4535    do
4536      ac_preproc_ok=false
4537for ac_c_preproc_warn_flag in '' yes
4538do
4539  # Use a header file that comes with gcc, so configuring glibc
4540  # with a fresh cross-compiler works.
4541  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542  # <limits.h> exists even on freestanding compilers.
4543  # On the NeXT, cc -E runs the code through the compiler's parser,
4544  # not just through cpp. "Syntax error" is here to catch this case.
4545  cat >conftest.$ac_ext <<_ACEOF
4546/* confdefs.h.  */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h.  */
4551#ifdef __STDC__
4552# include <limits.h>
4553#else
4554# include <assert.h>
4555#endif
4556		     Syntax error
4557_ACEOF
4558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4559  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4560  ac_status=$?
4561  grep -v '^ *+' conftest.er1 >conftest.err
4562  rm -f conftest.er1
4563  cat conftest.err >&5
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); } >/dev/null; then
4566  if test -s conftest.err; then
4567    ac_cpp_err=$ac_c_preproc_warn_flag
4568    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4569  else
4570    ac_cpp_err=
4571  fi
4572else
4573  ac_cpp_err=yes
4574fi
4575if test -z "$ac_cpp_err"; then
4576  :
4577else
4578  echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581  # Broken: fails on valid input.
4582continue
4583fi
4584rm -f conftest.err conftest.$ac_ext
4585
4586  # OK, works on sane cases.  Now check whether non-existent headers
4587  # can be detected and how.
4588  cat >conftest.$ac_ext <<_ACEOF
4589/* confdefs.h.  */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h.  */
4594#include <ac_nonexistent.h>
4595_ACEOF
4596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4597  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4598  ac_status=$?
4599  grep -v '^ *+' conftest.er1 >conftest.err
4600  rm -f conftest.er1
4601  cat conftest.err >&5
4602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603  (exit $ac_status); } >/dev/null; then
4604  if test -s conftest.err; then
4605    ac_cpp_err=$ac_c_preproc_warn_flag
4606    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4607  else
4608    ac_cpp_err=
4609  fi
4610else
4611  ac_cpp_err=yes
4612fi
4613if test -z "$ac_cpp_err"; then
4614  # Broken: success on invalid input.
4615continue
4616else
4617  echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620  # Passes both tests.
4621ac_preproc_ok=:
4622break
4623fi
4624rm -f conftest.err conftest.$ac_ext
4625
4626done
4627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4628rm -f conftest.err conftest.$ac_ext
4629if $ac_preproc_ok; then
4630  break
4631fi
4632
4633    done
4634    ac_cv_prog_CPP=$CPP
4635
4636fi
4637  CPP=$ac_cv_prog_CPP
4638else
4639  ac_cv_prog_CPP=$CPP
4640fi
4641echo "$as_me:$LINENO: result: $CPP" >&5
4642echo "${ECHO_T}$CPP" >&6
4643ac_preproc_ok=false
4644for ac_c_preproc_warn_flag in '' yes
4645do
4646  # Use a header file that comes with gcc, so configuring glibc
4647  # with a fresh cross-compiler works.
4648  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4649  # <limits.h> exists even on freestanding compilers.
4650  # On the NeXT, cc -E runs the code through the compiler's parser,
4651  # not just through cpp. "Syntax error" is here to catch this case.
4652  cat >conftest.$ac_ext <<_ACEOF
4653/* confdefs.h.  */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h.  */
4658#ifdef __STDC__
4659# include <limits.h>
4660#else
4661# include <assert.h>
4662#endif
4663		     Syntax error
4664_ACEOF
4665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4666  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4667  ac_status=$?
4668  grep -v '^ *+' conftest.er1 >conftest.err
4669  rm -f conftest.er1
4670  cat conftest.err >&5
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); } >/dev/null; then
4673  if test -s conftest.err; then
4674    ac_cpp_err=$ac_c_preproc_warn_flag
4675    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4676  else
4677    ac_cpp_err=
4678  fi
4679else
4680  ac_cpp_err=yes
4681fi
4682if test -z "$ac_cpp_err"; then
4683  :
4684else
4685  echo "$as_me: failed program was:" >&5
4686sed 's/^/| /' conftest.$ac_ext >&5
4687
4688  # Broken: fails on valid input.
4689continue
4690fi
4691rm -f conftest.err conftest.$ac_ext
4692
4693  # OK, works on sane cases.  Now check whether non-existent headers
4694  # can be detected and how.
4695  cat >conftest.$ac_ext <<_ACEOF
4696/* confdefs.h.  */
4697_ACEOF
4698cat confdefs.h >>conftest.$ac_ext
4699cat >>conftest.$ac_ext <<_ACEOF
4700/* end confdefs.h.  */
4701#include <ac_nonexistent.h>
4702_ACEOF
4703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4704  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4705  ac_status=$?
4706  grep -v '^ *+' conftest.er1 >conftest.err
4707  rm -f conftest.er1
4708  cat conftest.err >&5
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); } >/dev/null; then
4711  if test -s conftest.err; then
4712    ac_cpp_err=$ac_c_preproc_warn_flag
4713    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4714  else
4715    ac_cpp_err=
4716  fi
4717else
4718  ac_cpp_err=yes
4719fi
4720if test -z "$ac_cpp_err"; then
4721  # Broken: success on invalid input.
4722continue
4723else
4724  echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727  # Passes both tests.
4728ac_preproc_ok=:
4729break
4730fi
4731rm -f conftest.err conftest.$ac_ext
4732
4733done
4734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4735rm -f conftest.err conftest.$ac_ext
4736if $ac_preproc_ok; then
4737  :
4738else
4739  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4740See \`config.log' for more details." >&5
4741echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4742See \`config.log' for more details." >&2;}
4743   { (exit 1); exit 1; }; }
4744fi
4745
4746ac_ext=c
4747ac_cpp='$CPP $CPPFLAGS'
4748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752
4753echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4754echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4755if test "${ac_cv_header_stdc+set}" = set; then
4756  echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758  cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h.  */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h.  */
4764#include <stdlib.h>
4765#include <stdarg.h>
4766#include <string.h>
4767#include <float.h>
4768
4769int
4770main ()
4771{
4772
4773  ;
4774  return 0;
4775}
4776_ACEOF
4777rm -f conftest.$ac_objext
4778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779  (eval $ac_compile) 2>conftest.er1
4780  ac_status=$?
4781  grep -v '^ *+' conftest.er1 >conftest.err
4782  rm -f conftest.er1
4783  cat conftest.err >&5
4784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785  (exit $ac_status); } &&
4786	 { ac_try='test -z "$ac_c_werror_flag"
4787			 || test ! -s conftest.err'
4788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789  (eval $ac_try) 2>&5
4790  ac_status=$?
4791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792  (exit $ac_status); }; } &&
4793	 { ac_try='test -s conftest.$ac_objext'
4794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795  (eval $ac_try) 2>&5
4796  ac_status=$?
4797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); }; }; then
4799  ac_cv_header_stdc=yes
4800else
4801  echo "$as_me: failed program was:" >&5
4802sed 's/^/| /' conftest.$ac_ext >&5
4803
4804ac_cv_header_stdc=no
4805fi
4806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807
4808if test $ac_cv_header_stdc = yes; then
4809  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4810  cat >conftest.$ac_ext <<_ACEOF
4811/* confdefs.h.  */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h.  */
4816#include <string.h>
4817
4818_ACEOF
4819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820  $EGREP "memchr" >/dev/null 2>&1; then
4821  :
4822else
4823  ac_cv_header_stdc=no
4824fi
4825rm -f conftest*
4826
4827fi
4828
4829if test $ac_cv_header_stdc = yes; then
4830  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4831  cat >conftest.$ac_ext <<_ACEOF
4832/* confdefs.h.  */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h.  */
4837#include <stdlib.h>
4838
4839_ACEOF
4840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4841  $EGREP "free" >/dev/null 2>&1; then
4842  :
4843else
4844  ac_cv_header_stdc=no
4845fi
4846rm -f conftest*
4847
4848fi
4849
4850if test $ac_cv_header_stdc = yes; then
4851  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4852  if test "$cross_compiling" = yes; then
4853  :
4854else
4855  cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h.  */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h.  */
4861#include <ctype.h>
4862#if ((' ' & 0x0FF) == 0x020)
4863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4865#else
4866# define ISLOWER(c) \
4867		   (('a' <= (c) && (c) <= 'i') \
4868		     || ('j' <= (c) && (c) <= 'r') \
4869		     || ('s' <= (c) && (c) <= 'z'))
4870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4871#endif
4872
4873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4874int
4875main ()
4876{
4877  int i;
4878  for (i = 0; i < 256; i++)
4879    if (XOR (islower (i), ISLOWER (i))
4880	|| toupper (i) != TOUPPER (i))
4881      exit(2);
4882  exit (0);
4883}
4884_ACEOF
4885rm -f conftest$ac_exeext
4886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887  (eval $ac_link) 2>&5
4888  ac_status=$?
4889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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  :
4897else
4898  echo "$as_me: program exited with status $ac_status" >&5
4899echo "$as_me: failed program was:" >&5
4900sed 's/^/| /' conftest.$ac_ext >&5
4901
4902( exit $ac_status )
4903ac_cv_header_stdc=no
4904fi
4905rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4906fi
4907fi
4908fi
4909echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4910echo "${ECHO_T}$ac_cv_header_stdc" >&6
4911if test $ac_cv_header_stdc = yes; then
4912
4913cat >>confdefs.h <<\_ACEOF
4914#define STDC_HEADERS 1
4915_ACEOF
4916
4917fi
4918
4919# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4930		  inttypes.h stdint.h unistd.h
4931do
4932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4933echo "$as_me:$LINENO: checking for $ac_header" >&5
4934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4935if eval "test \"\${$as_ac_Header+set}\" = set"; then
4936  echo $ECHO_N "(cached) $ECHO_C" >&6
4937else
4938  cat >conftest.$ac_ext <<_ACEOF
4939/* confdefs.h.  */
4940_ACEOF
4941cat confdefs.h >>conftest.$ac_ext
4942cat >>conftest.$ac_ext <<_ACEOF
4943/* end confdefs.h.  */
4944$ac_includes_default
4945
4946#include <$ac_header>
4947_ACEOF
4948rm -f conftest.$ac_objext
4949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950  (eval $ac_compile) 2>conftest.er1
4951  ac_status=$?
4952  grep -v '^ *+' conftest.er1 >conftest.err
4953  rm -f conftest.er1
4954  cat conftest.err >&5
4955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956  (exit $ac_status); } &&
4957	 { ac_try='test -z "$ac_c_werror_flag"
4958			 || test ! -s conftest.err'
4959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960  (eval $ac_try) 2>&5
4961  ac_status=$?
4962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963  (exit $ac_status); }; } &&
4964	 { ac_try='test -s conftest.$ac_objext'
4965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966  (eval $ac_try) 2>&5
4967  ac_status=$?
4968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969  (exit $ac_status); }; }; then
4970  eval "$as_ac_Header=yes"
4971else
4972  echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975eval "$as_ac_Header=no"
4976fi
4977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978fi
4979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4981if test `eval echo '${'$as_ac_Header'}'` = yes; then
4982  cat >>confdefs.h <<_ACEOF
4983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4984_ACEOF
4985
4986fi
4987
4988done
4989
4990
4991
4992for ac_header in dlfcn.h
4993do
4994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4995if eval "test \"\${$as_ac_Header+set}\" = set"; then
4996  echo "$as_me:$LINENO: checking for $ac_header" >&5
4997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4998if eval "test \"\${$as_ac_Header+set}\" = set"; then
4999  echo $ECHO_N "(cached) $ECHO_C" >&6
5000fi
5001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5003else
5004  # Is the header compilable?
5005echo "$as_me:$LINENO: checking $ac_header usability" >&5
5006echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5007cat >conftest.$ac_ext <<_ACEOF
5008/* confdefs.h.  */
5009_ACEOF
5010cat confdefs.h >>conftest.$ac_ext
5011cat >>conftest.$ac_ext <<_ACEOF
5012/* end confdefs.h.  */
5013$ac_includes_default
5014#include <$ac_header>
5015_ACEOF
5016rm -f conftest.$ac_objext
5017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018  (eval $ac_compile) 2>conftest.er1
5019  ac_status=$?
5020  grep -v '^ *+' conftest.er1 >conftest.err
5021  rm -f conftest.er1
5022  cat conftest.err >&5
5023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024  (exit $ac_status); } &&
5025	 { ac_try='test -z "$ac_c_werror_flag"
5026			 || test ! -s conftest.err'
5027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028  (eval $ac_try) 2>&5
5029  ac_status=$?
5030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031  (exit $ac_status); }; } &&
5032	 { ac_try='test -s conftest.$ac_objext'
5033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034  (eval $ac_try) 2>&5
5035  ac_status=$?
5036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037  (exit $ac_status); }; }; then
5038  ac_header_compiler=yes
5039else
5040  echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043ac_header_compiler=no
5044fi
5045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5047echo "${ECHO_T}$ac_header_compiler" >&6
5048
5049# Is the header present?
5050echo "$as_me:$LINENO: checking $ac_header presence" >&5
5051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5052cat >conftest.$ac_ext <<_ACEOF
5053/* confdefs.h.  */
5054_ACEOF
5055cat confdefs.h >>conftest.$ac_ext
5056cat >>conftest.$ac_ext <<_ACEOF
5057/* end confdefs.h.  */
5058#include <$ac_header>
5059_ACEOF
5060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062  ac_status=$?
5063  grep -v '^ *+' conftest.er1 >conftest.err
5064  rm -f conftest.er1
5065  cat conftest.err >&5
5066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067  (exit $ac_status); } >/dev/null; then
5068  if test -s conftest.err; then
5069    ac_cpp_err=$ac_c_preproc_warn_flag
5070    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5071  else
5072    ac_cpp_err=
5073  fi
5074else
5075  ac_cpp_err=yes
5076fi
5077if test -z "$ac_cpp_err"; then
5078  ac_header_preproc=yes
5079else
5080  echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083  ac_header_preproc=no
5084fi
5085rm -f conftest.err conftest.$ac_ext
5086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5087echo "${ECHO_T}$ac_header_preproc" >&6
5088
5089# So?  What about this header?
5090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5091  yes:no: )
5092    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5094    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5096    ac_header_preproc=yes
5097    ;;
5098  no:yes:* )
5099    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5101    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5102echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5103    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5105    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5106echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5107    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5109    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5111    (
5112      cat <<\_ASBOX
5113## ------------------------------------- ##
5114## Report this to the libsidplay lists.  ##
5115## ------------------------------------- ##
5116_ASBOX
5117    ) |
5118      sed "s/^/$as_me: WARNING:     /" >&2
5119    ;;
5120esac
5121echo "$as_me:$LINENO: checking for $ac_header" >&5
5122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5123if eval "test \"\${$as_ac_Header+set}\" = set"; then
5124  echo $ECHO_N "(cached) $ECHO_C" >&6
5125else
5126  eval "$as_ac_Header=\$ac_header_preproc"
5127fi
5128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5130
5131fi
5132if test `eval echo '${'$as_ac_Header'}'` = yes; then
5133  cat >>confdefs.h <<_ACEOF
5134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5135_ACEOF
5136
5137fi
5138
5139done
5140
5141ac_ext=cc
5142ac_cpp='$CXXCPP $CPPFLAGS'
5143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5146echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5147echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5148if test -z "$CXXCPP"; then
5149  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5150  echo $ECHO_N "(cached) $ECHO_C" >&6
5151else
5152      # Double quotes because CXXCPP needs to be expanded
5153    for CXXCPP in "$CXX -E" "/lib/cpp"
5154    do
5155      ac_preproc_ok=false
5156for ac_cxx_preproc_warn_flag in '' yes
5157do
5158  # Use a header file that comes with gcc, so configuring glibc
5159  # with a fresh cross-compiler works.
5160  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5161  # <limits.h> exists even on freestanding compilers.
5162  # On the NeXT, cc -E runs the code through the compiler's parser,
5163  # not just through cpp. "Syntax error" is here to catch this case.
5164  cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h.  */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h.  */
5170#ifdef __STDC__
5171# include <limits.h>
5172#else
5173# include <assert.h>
5174#endif
5175		     Syntax error
5176_ACEOF
5177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5178  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5179  ac_status=$?
5180  grep -v '^ *+' conftest.er1 >conftest.err
5181  rm -f conftest.er1
5182  cat conftest.err >&5
5183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184  (exit $ac_status); } >/dev/null; then
5185  if test -s conftest.err; then
5186    ac_cpp_err=$ac_cxx_preproc_warn_flag
5187    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5188  else
5189    ac_cpp_err=
5190  fi
5191else
5192  ac_cpp_err=yes
5193fi
5194if test -z "$ac_cpp_err"; then
5195  :
5196else
5197  echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200  # Broken: fails on valid input.
5201continue
5202fi
5203rm -f conftest.err conftest.$ac_ext
5204
5205  # OK, works on sane cases.  Now check whether non-existent headers
5206  # can be detected and how.
5207  cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h.  */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h.  */
5213#include <ac_nonexistent.h>
5214_ACEOF
5215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5216  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5217  ac_status=$?
5218  grep -v '^ *+' conftest.er1 >conftest.err
5219  rm -f conftest.er1
5220  cat conftest.err >&5
5221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222  (exit $ac_status); } >/dev/null; then
5223  if test -s conftest.err; then
5224    ac_cpp_err=$ac_cxx_preproc_warn_flag
5225    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5226  else
5227    ac_cpp_err=
5228  fi
5229else
5230  ac_cpp_err=yes
5231fi
5232if test -z "$ac_cpp_err"; then
5233  # Broken: success on invalid input.
5234continue
5235else
5236  echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
5239  # Passes both tests.
5240ac_preproc_ok=:
5241break
5242fi
5243rm -f conftest.err conftest.$ac_ext
5244
5245done
5246# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5247rm -f conftest.err conftest.$ac_ext
5248if $ac_preproc_ok; then
5249  break
5250fi
5251
5252    done
5253    ac_cv_prog_CXXCPP=$CXXCPP
5254
5255fi
5256  CXXCPP=$ac_cv_prog_CXXCPP
5257else
5258  ac_cv_prog_CXXCPP=$CXXCPP
5259fi
5260echo "$as_me:$LINENO: result: $CXXCPP" >&5
5261echo "${ECHO_T}$CXXCPP" >&6
5262ac_preproc_ok=false
5263for ac_cxx_preproc_warn_flag in '' yes
5264do
5265  # Use a header file that comes with gcc, so configuring glibc
5266  # with a fresh cross-compiler works.
5267  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5268  # <limits.h> exists even on freestanding compilers.
5269  # On the NeXT, cc -E runs the code through the compiler's parser,
5270  # not just through cpp. "Syntax error" is here to catch this case.
5271  cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h.  */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h.  */
5277#ifdef __STDC__
5278# include <limits.h>
5279#else
5280# include <assert.h>
5281#endif
5282		     Syntax error
5283_ACEOF
5284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5285  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5286  ac_status=$?
5287  grep -v '^ *+' conftest.er1 >conftest.err
5288  rm -f conftest.er1
5289  cat conftest.err >&5
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); } >/dev/null; then
5292  if test -s conftest.err; then
5293    ac_cpp_err=$ac_cxx_preproc_warn_flag
5294    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5295  else
5296    ac_cpp_err=
5297  fi
5298else
5299  ac_cpp_err=yes
5300fi
5301if test -z "$ac_cpp_err"; then
5302  :
5303else
5304  echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307  # Broken: fails on valid input.
5308continue
5309fi
5310rm -f conftest.err conftest.$ac_ext
5311
5312  # OK, works on sane cases.  Now check whether non-existent headers
5313  # can be detected and how.
5314  cat >conftest.$ac_ext <<_ACEOF
5315/* confdefs.h.  */
5316_ACEOF
5317cat confdefs.h >>conftest.$ac_ext
5318cat >>conftest.$ac_ext <<_ACEOF
5319/* end confdefs.h.  */
5320#include <ac_nonexistent.h>
5321_ACEOF
5322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5323  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5324  ac_status=$?
5325  grep -v '^ *+' conftest.er1 >conftest.err
5326  rm -f conftest.er1
5327  cat conftest.err >&5
5328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329  (exit $ac_status); } >/dev/null; then
5330  if test -s conftest.err; then
5331    ac_cpp_err=$ac_cxx_preproc_warn_flag
5332    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5333  else
5334    ac_cpp_err=
5335  fi
5336else
5337  ac_cpp_err=yes
5338fi
5339if test -z "$ac_cpp_err"; then
5340  # Broken: success on invalid input.
5341continue
5342else
5343  echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346  # Passes both tests.
5347ac_preproc_ok=:
5348break
5349fi
5350rm -f conftest.err conftest.$ac_ext
5351
5352done
5353# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354rm -f conftest.err conftest.$ac_ext
5355if $ac_preproc_ok; then
5356  :
5357else
5358  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5359See \`config.log' for more details." >&5
5360echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5361See \`config.log' for more details." >&2;}
5362   { (exit 1); exit 1; }; }
5363fi
5364
5365ac_ext=cc
5366ac_cpp='$CXXCPP $CPPFLAGS'
5367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5370
5371
5372ac_ext=f
5373ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5374ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5376if test -n "$ac_tool_prefix"; then
5377  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5378  do
5379    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5380set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5381echo "$as_me:$LINENO: checking for $ac_word" >&5
5382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383if test "${ac_cv_prog_F77+set}" = set; then
5384  echo $ECHO_N "(cached) $ECHO_C" >&6
5385else
5386  if test -n "$F77"; then
5387  ac_cv_prog_F77="$F77" # Let the user override the test.
5388else
5389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390for as_dir in $PATH
5391do
5392  IFS=$as_save_IFS
5393  test -z "$as_dir" && as_dir=.
5394  for ac_exec_ext in '' $ac_executable_extensions; do
5395  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5397    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398    break 2
5399  fi
5400done
5401done
5402
5403fi
5404fi
5405F77=$ac_cv_prog_F77
5406if test -n "$F77"; then
5407  echo "$as_me:$LINENO: result: $F77" >&5
5408echo "${ECHO_T}$F77" >&6
5409else
5410  echo "$as_me:$LINENO: result: no" >&5
5411echo "${ECHO_T}no" >&6
5412fi
5413
5414    test -n "$F77" && break
5415  done
5416fi
5417if test -z "$F77"; then
5418  ac_ct_F77=$F77
5419  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5420do
5421  # Extract the first word of "$ac_prog", so it can be a program name with args.
5422set dummy $ac_prog; ac_word=$2
5423echo "$as_me:$LINENO: checking for $ac_word" >&5
5424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5426  echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428  if test -n "$ac_ct_F77"; then
5429  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5430else
5431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434  IFS=$as_save_IFS
5435  test -z "$as_dir" && as_dir=.
5436  for ac_exec_ext in '' $ac_executable_extensions; do
5437  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438    ac_cv_prog_ac_ct_F77="$ac_prog"
5439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440    break 2
5441  fi
5442done
5443done
5444
5445fi
5446fi
5447ac_ct_F77=$ac_cv_prog_ac_ct_F77
5448if test -n "$ac_ct_F77"; then
5449  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5450echo "${ECHO_T}$ac_ct_F77" >&6
5451else
5452  echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6
5454fi
5455
5456  test -n "$ac_ct_F77" && break
5457done
5458
5459  F77=$ac_ct_F77
5460fi
5461
5462
5463# Provide some information about the compiler.
5464echo "$as_me:5464:" \
5465     "checking for Fortran 77 compiler version" >&5
5466ac_compiler=`set X $ac_compile; echo $2`
5467{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5468  (eval $ac_compiler --version </dev/null >&5) 2>&5
5469  ac_status=$?
5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471  (exit $ac_status); }
5472{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5473  (eval $ac_compiler -v </dev/null >&5) 2>&5
5474  ac_status=$?
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); }
5477{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5478  (eval $ac_compiler -V </dev/null >&5) 2>&5
5479  ac_status=$?
5480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481  (exit $ac_status); }
5482rm -f a.out
5483
5484# If we don't use `.F' as extension, the preprocessor is not run on the
5485# input file.  (Note that this only needs to work for GNU compilers.)
5486ac_save_ext=$ac_ext
5487ac_ext=F
5488echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5489echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5490if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5491  echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493  cat >conftest.$ac_ext <<_ACEOF
5494      program main
5495#ifndef __GNUC__
5496       choke me
5497#endif
5498
5499      end
5500_ACEOF
5501rm -f conftest.$ac_objext
5502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503  (eval $ac_compile) 2>conftest.er1
5504  ac_status=$?
5505  grep -v '^ *+' conftest.er1 >conftest.err
5506  rm -f conftest.er1
5507  cat conftest.err >&5
5508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509  (exit $ac_status); } &&
5510	 { ac_try='test -z "$ac_f77_werror_flag"
5511			 || test ! -s conftest.err'
5512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513  (eval $ac_try) 2>&5
5514  ac_status=$?
5515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516  (exit $ac_status); }; } &&
5517	 { ac_try='test -s conftest.$ac_objext'
5518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519  (eval $ac_try) 2>&5
5520  ac_status=$?
5521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522  (exit $ac_status); }; }; then
5523  ac_compiler_gnu=yes
5524else
5525  echo "$as_me: failed program was:" >&5
5526sed 's/^/| /' conftest.$ac_ext >&5
5527
5528ac_compiler_gnu=no
5529fi
5530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5531ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5532
5533fi
5534echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5535echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5536ac_ext=$ac_save_ext
5537ac_test_FFLAGS=${FFLAGS+set}
5538ac_save_FFLAGS=$FFLAGS
5539FFLAGS=
5540echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5541echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5542if test "${ac_cv_prog_f77_g+set}" = set; then
5543  echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545  FFLAGS=-g
5546cat >conftest.$ac_ext <<_ACEOF
5547      program main
5548
5549      end
5550_ACEOF
5551rm -f conftest.$ac_objext
5552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553  (eval $ac_compile) 2>conftest.er1
5554  ac_status=$?
5555  grep -v '^ *+' conftest.er1 >conftest.err
5556  rm -f conftest.er1
5557  cat conftest.err >&5
5558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559  (exit $ac_status); } &&
5560	 { ac_try='test -z "$ac_f77_werror_flag"
5561			 || test ! -s conftest.err'
5562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563  (eval $ac_try) 2>&5
5564  ac_status=$?
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); }; } &&
5567	 { ac_try='test -s conftest.$ac_objext'
5568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569  (eval $ac_try) 2>&5
5570  ac_status=$?
5571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572  (exit $ac_status); }; }; then
5573  ac_cv_prog_f77_g=yes
5574else
5575  echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578ac_cv_prog_f77_g=no
5579fi
5580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5581
5582fi
5583echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5584echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5585if test "$ac_test_FFLAGS" = set; then
5586  FFLAGS=$ac_save_FFLAGS
5587elif test $ac_cv_prog_f77_g = yes; then
5588  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5589    FFLAGS="-g -O2"
5590  else
5591    FFLAGS="-g"
5592  fi
5593else
5594  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5595    FFLAGS="-O2"
5596  else
5597    FFLAGS=
5598  fi
5599fi
5600
5601G77=`test $ac_compiler_gnu = yes && echo yes`
5602ac_ext=c
5603ac_cpp='$CPP $CPPFLAGS'
5604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5606ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607
5608
5609
5610# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5611
5612# find the maximum length of command line arguments
5613echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5614echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5615if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5616  echo $ECHO_N "(cached) $ECHO_C" >&6
5617else
5618    i=0
5619  teststring="ABCD"
5620
5621  case $build_os in
5622  msdosdjgpp*)
5623    # On DJGPP, this test can blow up pretty badly due to problems in libc
5624    # (any single argument exceeding 2000 bytes causes a buffer overrun
5625    # during glob expansion).  Even if it were fixed, the result of this
5626    # check would be larger than it should be.
5627    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5628    ;;
5629
5630  gnu*)
5631    # Under GNU Hurd, this test is not required because there is
5632    # no limit to the length of command line arguments.
5633    # Libtool will interpret -1 as no limit whatsoever
5634    lt_cv_sys_max_cmd_len=-1;
5635    ;;
5636
5637  cygwin* | mingw*)
5638    # On Win9x/ME, this test blows up -- it succeeds, but takes
5639    # about 5 minutes as the teststring grows exponentially.
5640    # Worse, since 9x/ME are not pre-emptively multitasking,
5641    # you end up with a "frozen" computer, even though with patience
5642    # the test eventually succeeds (with a max line length of 256k).
5643    # Instead, let's just punt: use the minimum linelength reported by
5644    # all of the supported platforms: 8192 (on NT/2K/XP).
5645    lt_cv_sys_max_cmd_len=8192;
5646    ;;
5647
5648  amigaos*)
5649    # On AmigaOS with pdksh, this test takes hours, literally.
5650    # So we just punt and use a minimum line length of 8192.
5651    lt_cv_sys_max_cmd_len=8192;
5652    ;;
5653
5654 *)
5655    # If test is not a shell built-in, we'll probably end up computing a
5656    # maximum length that is only half of the actual maximum length, but
5657    # we can't tell.
5658    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5659	       = "XX$teststring") >/dev/null 2>&1 &&
5660	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5661	    lt_cv_sys_max_cmd_len=$new_result &&
5662	    test $i != 17 # 1/2 MB should be enough
5663    do
5664      i=`expr $i + 1`
5665      teststring=$teststring$teststring
5666    done
5667    teststring=
5668    # Add a significant safety factor because C++ compilers can tack on massive
5669    # amounts of additional arguments before passing them to the linker.
5670    # It appears as though 1/2 is a usable value.
5671    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5672    ;;
5673  esac
5674
5675fi
5676
5677if test -n $lt_cv_sys_max_cmd_len ; then
5678  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5679echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5680else
5681  echo "$as_me:$LINENO: result: none" >&5
5682echo "${ECHO_T}none" >&6
5683fi
5684
5685
5686
5687
5688# Check for command to grab the raw symbol name followed by C symbol from nm.
5689echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5690echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5691if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5692  echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
5694
5695# These are sane defaults that work on at least a few old systems.
5696# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5697
5698# Character class describing NM global symbol codes.
5699symcode='[BCDEGRST]'
5700
5701# Regexp to match symbols that can be accessed directly from C.
5702sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5703
5704# Transform the above into a raw symbol and a C symbol.
5705symxfrm='\1 \2\3 \3'
5706
5707# Transform an extracted symbol line into a proper C declaration
5708lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5709
5710# Transform an extracted symbol line into symbol name and symbol address
5711lt_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'"
5712
5713# Define system-specific variables.
5714case $host_os in
5715aix*)
5716  symcode='[BCDT]'
5717  ;;
5718cygwin* | mingw* | pw32*)
5719  symcode='[ABCDGISTW]'
5720  ;;
5721hpux*) # Its linker distinguishes data from code symbols
5722  if test "$host_cpu" = ia64; then
5723    symcode='[ABCDEGRST]'
5724  fi
5725  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5726  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'"
5727  ;;
5728irix* | nonstopux*)
5729  symcode='[BCDEGRST]'
5730  ;;
5731osf*)
5732  symcode='[BCDEGQRST]'
5733  ;;
5734solaris* | sysv5*)
5735  symcode='[BDRT]'
5736  ;;
5737sysv4)
5738  symcode='[DFNSTU]'
5739  ;;
5740esac
5741
5742# Handle CRLF in mingw tool chain
5743opt_cr=
5744case $build_os in
5745mingw*)
5746  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5747  ;;
5748esac
5749
5750# If we're using GNU nm, then use its standard symbol codes.
5751case `$NM -V 2>&1` in
5752*GNU* | *'with BFD'*)
5753  symcode='[ABCDGIRSTW]' ;;
5754esac
5755
5756# Try without a prefix undercore, then with it.
5757for ac_symprfx in "" "_"; do
5758
5759  # Write the raw and C identifiers.
5760  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5761
5762  # Check to see that the pipe works correctly.
5763  pipe_works=no
5764
5765  rm -f conftest*
5766  cat > conftest.$ac_ext <<EOF
5767#ifdef __cplusplus
5768extern "C" {
5769#endif
5770char nm_test_var;
5771void nm_test_func(){}
5772#ifdef __cplusplus
5773}
5774#endif
5775int main(){nm_test_var='a';nm_test_func();return(0);}
5776EOF
5777
5778  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779  (eval $ac_compile) 2>&5
5780  ac_status=$?
5781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782  (exit $ac_status); }; then
5783    # Now try to grab the symbols.
5784    nlist=conftest.nm
5785    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5786  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5787  ac_status=$?
5788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789  (exit $ac_status); } && test -s "$nlist"; then
5790      # Try sorting and uniquifying the output.
5791      if sort "$nlist" | uniq > "$nlist"T; then
5792	mv -f "$nlist"T "$nlist"
5793      else
5794	rm -f "$nlist"T
5795      fi
5796
5797      # Make sure that we snagged all the symbols we need.
5798      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5799	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5800	  cat <<EOF > conftest.$ac_ext
5801#ifdef __cplusplus
5802extern "C" {
5803#endif
5804
5805EOF
5806	  # Now generate the symbol file.
5807	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5808
5809	  cat <<EOF >> conftest.$ac_ext
5810#if defined (__STDC__) && __STDC__
5811# define lt_ptr_t void *
5812#else
5813# define lt_ptr_t char *
5814# define const
5815#endif
5816
5817/* The mapping between symbol names and symbols. */
5818const struct {
5819  const char *name;
5820  lt_ptr_t address;
5821}
5822lt_preloaded_symbols[] =
5823{
5824EOF
5825	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5826	  cat <<\EOF >> conftest.$ac_ext
5827  {0, (lt_ptr_t) 0}
5828};
5829
5830#ifdef __cplusplus
5831}
5832#endif
5833EOF
5834	  # Now try linking the two files.
5835	  mv conftest.$ac_objext conftstm.$ac_objext
5836	  lt_save_LIBS="$LIBS"
5837	  lt_save_CFLAGS="$CFLAGS"
5838	  LIBS="conftstm.$ac_objext"
5839	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5840	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841  (eval $ac_link) 2>&5
5842  ac_status=$?
5843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5845	    pipe_works=yes
5846	  fi
5847	  LIBS="$lt_save_LIBS"
5848	  CFLAGS="$lt_save_CFLAGS"
5849	else
5850	  echo "cannot find nm_test_func in $nlist" >&5
5851	fi
5852      else
5853	echo "cannot find nm_test_var in $nlist" >&5
5854      fi
5855    else
5856      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5857    fi
5858  else
5859    echo "$progname: failed program was:" >&5
5860    cat conftest.$ac_ext >&5
5861  fi
5862  rm -f conftest* conftst*
5863
5864  # Do not use the global_symbol_pipe unless it works.
5865  if test "$pipe_works" = yes; then
5866    break
5867  else
5868    lt_cv_sys_global_symbol_pipe=
5869  fi
5870done
5871
5872fi
5873
5874if test -z "$lt_cv_sys_global_symbol_pipe"; then
5875  lt_cv_sys_global_symbol_to_cdecl=
5876fi
5877if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5878  echo "$as_me:$LINENO: result: failed" >&5
5879echo "${ECHO_T}failed" >&6
5880else
5881  echo "$as_me:$LINENO: result: ok" >&5
5882echo "${ECHO_T}ok" >&6
5883fi
5884
5885echo "$as_me:$LINENO: checking for objdir" >&5
5886echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5887if test "${lt_cv_objdir+set}" = set; then
5888  echo $ECHO_N "(cached) $ECHO_C" >&6
5889else
5890  rm -f .libs 2>/dev/null
5891mkdir .libs 2>/dev/null
5892if test -d .libs; then
5893  lt_cv_objdir=.libs
5894else
5895  # MS-DOS does not allow filenames that begin with a dot.
5896  lt_cv_objdir=_libs
5897fi
5898rmdir .libs 2>/dev/null
5899fi
5900echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5901echo "${ECHO_T}$lt_cv_objdir" >&6
5902objdir=$lt_cv_objdir
5903
5904
5905
5906
5907
5908case $host_os in
5909aix3*)
5910  # AIX sometimes has problems with the GCC collect2 program.  For some
5911  # reason, if we set the COLLECT_NAMES environment variable, the problems
5912  # vanish in a puff of smoke.
5913  if test "X${COLLECT_NAMES+set}" != Xset; then
5914    COLLECT_NAMES=
5915    export COLLECT_NAMES
5916  fi
5917  ;;
5918esac
5919
5920# Sed substitution that helps us do robust quoting.  It backslashifies
5921# metacharacters that are still active within double-quoted strings.
5922Xsed='sed -e s/^X//'
5923sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5924
5925# Same as above, but do not quote variable references.
5926double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5927
5928# Sed substitution to delay expansion of an escaped shell variable in a
5929# double_quote_subst'ed string.
5930delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5931
5932# Sed substitution to avoid accidental globbing in evaled expressions
5933no_glob_subst='s/\*/\\\*/g'
5934
5935# Constants:
5936rm="rm -f"
5937
5938# Global variables:
5939default_ofile=libtool
5940can_build_shared=yes
5941
5942# All known linkers require a `.a' archive for static linking (except M$VC,
5943# which needs '.lib').
5944libext=a
5945ltmain="$ac_aux_dir/ltmain.sh"
5946ofile="$default_ofile"
5947with_gnu_ld="$lt_cv_prog_gnu_ld"
5948
5949if test -n "$ac_tool_prefix"; then
5950  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5951set dummy ${ac_tool_prefix}ar; ac_word=$2
5952echo "$as_me:$LINENO: checking for $ac_word" >&5
5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5954if test "${ac_cv_prog_AR+set}" = set; then
5955  echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
5957  if test -n "$AR"; then
5958  ac_cv_prog_AR="$AR" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963  IFS=$as_save_IFS
5964  test -z "$as_dir" && as_dir=.
5965  for ac_exec_ext in '' $ac_executable_extensions; do
5966  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967    ac_cv_prog_AR="${ac_tool_prefix}ar"
5968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969    break 2
5970  fi
5971done
5972done
5973
5974fi
5975fi
5976AR=$ac_cv_prog_AR
5977if test -n "$AR"; then
5978  echo "$as_me:$LINENO: result: $AR" >&5
5979echo "${ECHO_T}$AR" >&6
5980else
5981  echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6
5983fi
5984
5985fi
5986if test -z "$ac_cv_prog_AR"; then
5987  ac_ct_AR=$AR
5988  # Extract the first word of "ar", so it can be a program name with args.
5989set dummy ar; ac_word=$2
5990echo "$as_me:$LINENO: checking for $ac_word" >&5
5991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5992if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5993  echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995  if test -n "$ac_ct_AR"; then
5996  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001  IFS=$as_save_IFS
6002  test -z "$as_dir" && as_dir=.
6003  for ac_exec_ext in '' $ac_executable_extensions; do
6004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005    ac_cv_prog_ac_ct_AR="ar"
6006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007    break 2
6008  fi
6009done
6010done
6011
6012  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6013fi
6014fi
6015ac_ct_AR=$ac_cv_prog_ac_ct_AR
6016if test -n "$ac_ct_AR"; then
6017  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6018echo "${ECHO_T}$ac_ct_AR" >&6
6019else
6020  echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6
6022fi
6023
6024  AR=$ac_ct_AR
6025else
6026  AR="$ac_cv_prog_AR"
6027fi
6028
6029if test -n "$ac_tool_prefix"; then
6030  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6031set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6032echo "$as_me:$LINENO: checking for $ac_word" >&5
6033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6034if test "${ac_cv_prog_RANLIB+set}" = set; then
6035  echo $ECHO_N "(cached) $ECHO_C" >&6
6036else
6037  if test -n "$RANLIB"; then
6038  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6039else
6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043  IFS=$as_save_IFS
6044  test -z "$as_dir" && as_dir=.
6045  for ac_exec_ext in '' $ac_executable_extensions; do
6046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049    break 2
6050  fi
6051done
6052done
6053
6054fi
6055fi
6056RANLIB=$ac_cv_prog_RANLIB
6057if test -n "$RANLIB"; then
6058  echo "$as_me:$LINENO: result: $RANLIB" >&5
6059echo "${ECHO_T}$RANLIB" >&6
6060else
6061  echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6
6063fi
6064
6065fi
6066if test -z "$ac_cv_prog_RANLIB"; then
6067  ac_ct_RANLIB=$RANLIB
6068  # Extract the first word of "ranlib", so it can be a program name with args.
6069set dummy ranlib; ac_word=$2
6070echo "$as_me:$LINENO: checking for $ac_word" >&5
6071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6072if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075  if test -n "$ac_ct_RANLIB"; then
6076  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6077else
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081  IFS=$as_save_IFS
6082  test -z "$as_dir" && as_dir=.
6083  for ac_exec_ext in '' $ac_executable_extensions; do
6084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085    ac_cv_prog_ac_ct_RANLIB="ranlib"
6086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087    break 2
6088  fi
6089done
6090done
6091
6092  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6093fi
6094fi
6095ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6096if test -n "$ac_ct_RANLIB"; then
6097  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6098echo "${ECHO_T}$ac_ct_RANLIB" >&6
6099else
6100  echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6
6102fi
6103
6104  RANLIB=$ac_ct_RANLIB
6105else
6106  RANLIB="$ac_cv_prog_RANLIB"
6107fi
6108
6109if test -n "$ac_tool_prefix"; then
6110  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6111set dummy ${ac_tool_prefix}strip; ac_word=$2
6112echo "$as_me:$LINENO: checking for $ac_word" >&5
6113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6114if test "${ac_cv_prog_STRIP+set}" = set; then
6115  echo $ECHO_N "(cached) $ECHO_C" >&6
6116else
6117  if test -n "$STRIP"; then
6118  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123  IFS=$as_save_IFS
6124  test -z "$as_dir" && as_dir=.
6125  for ac_exec_ext in '' $ac_executable_extensions; do
6126  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6128    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129    break 2
6130  fi
6131done
6132done
6133
6134fi
6135fi
6136STRIP=$ac_cv_prog_STRIP
6137if test -n "$STRIP"; then
6138  echo "$as_me:$LINENO: result: $STRIP" >&5
6139echo "${ECHO_T}$STRIP" >&6
6140else
6141  echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6
6143fi
6144
6145fi
6146if test -z "$ac_cv_prog_STRIP"; then
6147  ac_ct_STRIP=$STRIP
6148  # Extract the first word of "strip", so it can be a program name with args.
6149set dummy strip; ac_word=$2
6150echo "$as_me:$LINENO: checking for $ac_word" >&5
6151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6152if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6153  echo $ECHO_N "(cached) $ECHO_C" >&6
6154else
6155  if test -n "$ac_ct_STRIP"; then
6156  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161  IFS=$as_save_IFS
6162  test -z "$as_dir" && as_dir=.
6163  for ac_exec_ext in '' $ac_executable_extensions; do
6164  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165    ac_cv_prog_ac_ct_STRIP="strip"
6166    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167    break 2
6168  fi
6169done
6170done
6171
6172  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6173fi
6174fi
6175ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6176if test -n "$ac_ct_STRIP"; then
6177  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6178echo "${ECHO_T}$ac_ct_STRIP" >&6
6179else
6180  echo "$as_me:$LINENO: result: no" >&5
6181echo "${ECHO_T}no" >&6
6182fi
6183
6184  STRIP=$ac_ct_STRIP
6185else
6186  STRIP="$ac_cv_prog_STRIP"
6187fi
6188
6189
6190old_CC="$CC"
6191old_CFLAGS="$CFLAGS"
6192
6193# Set sane defaults for various variables
6194test -z "$AR" && AR=ar
6195test -z "$AR_FLAGS" && AR_FLAGS=cru
6196test -z "$AS" && AS=as
6197test -z "$CC" && CC=cc
6198test -z "$LTCC" && LTCC=$CC
6199test -z "$DLLTOOL" && DLLTOOL=dlltool
6200test -z "$LD" && LD=ld
6201test -z "$LN_S" && LN_S="ln -s"
6202test -z "$MAGIC_CMD" && MAGIC_CMD=file
6203test -z "$NM" && NM=nm
6204test -z "$SED" && SED=sed
6205test -z "$OBJDUMP" && OBJDUMP=objdump
6206test -z "$RANLIB" && RANLIB=:
6207test -z "$STRIP" && STRIP=:
6208test -z "$ac_objext" && ac_objext=o
6209
6210# Determine commands to create old-style static archives.
6211old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6212old_postinstall_cmds='chmod 644 $oldlib'
6213old_postuninstall_cmds=
6214
6215if test -n "$RANLIB"; then
6216  case $host_os in
6217  openbsd*)
6218    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6219    ;;
6220  *)
6221    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6222    ;;
6223  esac
6224  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6225fi
6226
6227# Only perform the check for file, if the check method requires it
6228case $deplibs_check_method in
6229file_magic*)
6230  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6231    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6232echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6233if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6234  echo $ECHO_N "(cached) $ECHO_C" >&6
6235else
6236  case $MAGIC_CMD in
6237[\\/*] |  ?:[\\/]*)
6238  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6239  ;;
6240*)
6241  lt_save_MAGIC_CMD="$MAGIC_CMD"
6242  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6243  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6244  for ac_dir in $ac_dummy; do
6245    IFS="$lt_save_ifs"
6246    test -z "$ac_dir" && ac_dir=.
6247    if test -f $ac_dir/${ac_tool_prefix}file; then
6248      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6249      if test -n "$file_magic_test_file"; then
6250	case $deplibs_check_method in
6251	"file_magic "*)
6252	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6253	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6254	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6255	    $EGREP "$file_magic_regex" > /dev/null; then
6256	    :
6257	  else
6258	    cat <<EOF 1>&2
6259
6260*** Warning: the command libtool uses to detect shared libraries,
6261*** $file_magic_cmd, produces output that libtool cannot recognize.
6262*** The result is that libtool may fail to recognize shared libraries
6263*** as such.  This will affect the creation of libtool libraries that
6264*** depend on shared libraries, but programs linked with such libtool
6265*** libraries will work regardless of this problem.  Nevertheless, you
6266*** may want to report the problem to your system manager and/or to
6267*** bug-libtool@gnu.org
6268
6269EOF
6270	  fi ;;
6271	esac
6272      fi
6273      break
6274    fi
6275  done
6276  IFS="$lt_save_ifs"
6277  MAGIC_CMD="$lt_save_MAGIC_CMD"
6278  ;;
6279esac
6280fi
6281
6282MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6283if test -n "$MAGIC_CMD"; then
6284  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6285echo "${ECHO_T}$MAGIC_CMD" >&6
6286else
6287  echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6
6289fi
6290
6291if test -z "$lt_cv_path_MAGIC_CMD"; then
6292  if test -n "$ac_tool_prefix"; then
6293    echo "$as_me:$LINENO: checking for file" >&5
6294echo $ECHO_N "checking for file... $ECHO_C" >&6
6295if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6296  echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298  case $MAGIC_CMD in
6299[\\/*] |  ?:[\\/]*)
6300  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6301  ;;
6302*)
6303  lt_save_MAGIC_CMD="$MAGIC_CMD"
6304  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6305  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6306  for ac_dir in $ac_dummy; do
6307    IFS="$lt_save_ifs"
6308    test -z "$ac_dir" && ac_dir=.
6309    if test -f $ac_dir/file; then
6310      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6311      if test -n "$file_magic_test_file"; then
6312	case $deplibs_check_method in
6313	"file_magic "*)
6314	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6315	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6316	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6317	    $EGREP "$file_magic_regex" > /dev/null; then
6318	    :
6319	  else
6320	    cat <<EOF 1>&2
6321
6322*** Warning: the command libtool uses to detect shared libraries,
6323*** $file_magic_cmd, produces output that libtool cannot recognize.
6324*** The result is that libtool may fail to recognize shared libraries
6325*** as such.  This will affect the creation of libtool libraries that
6326*** depend on shared libraries, but programs linked with such libtool
6327*** libraries will work regardless of this problem.  Nevertheless, you
6328*** may want to report the problem to your system manager and/or to
6329*** bug-libtool@gnu.org
6330
6331EOF
6332	  fi ;;
6333	esac
6334      fi
6335      break
6336    fi
6337  done
6338  IFS="$lt_save_ifs"
6339  MAGIC_CMD="$lt_save_MAGIC_CMD"
6340  ;;
6341esac
6342fi
6343
6344MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6345if test -n "$MAGIC_CMD"; then
6346  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6347echo "${ECHO_T}$MAGIC_CMD" >&6
6348else
6349  echo "$as_me:$LINENO: result: no" >&5
6350echo "${ECHO_T}no" >&6
6351fi
6352
6353  else
6354    MAGIC_CMD=:
6355  fi
6356fi
6357
6358  fi
6359  ;;
6360esac
6361
6362enable_dlopen=no
6363enable_win32_dll=yes
6364
6365# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6366if test "${enable_libtool_lock+set}" = set; then
6367  enableval="$enable_libtool_lock"
6368
6369fi;
6370test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6371
6372
6373# Check whether --with-pic or --without-pic was given.
6374if test "${with_pic+set}" = set; then
6375  withval="$with_pic"
6376  pic_mode="$withval"
6377else
6378  pic_mode=default
6379fi;
6380test -z "$pic_mode" && pic_mode=default
6381
6382# Use C for the default configuration in the libtool script
6383tagname=
6384lt_save_CC="$CC"
6385ac_ext=c
6386ac_cpp='$CPP $CPPFLAGS'
6387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390
6391
6392# Source file extension for C test sources.
6393ac_ext=c
6394
6395# Object file extension for compiled C test sources.
6396objext=o
6397objext=$objext
6398
6399# Code to be used in simple compile tests
6400lt_simple_compile_test_code="int some_variable = 0;\n"
6401
6402# Code to be used in simple link tests
6403lt_simple_link_test_code='int main(){return(0);}\n'
6404
6405
6406# If no C compiler was specified, use CC.
6407LTCC=${LTCC-"$CC"}
6408
6409# Allow CC to be a program name with arguments.
6410compiler=$CC
6411
6412
6413#
6414# Check for any special shared library compilation flags.
6415#
6416lt_prog_cc_shlib=
6417if test "$GCC" = no; then
6418  case $host_os in
6419  sco3.2v5*)
6420    lt_prog_cc_shlib='-belf'
6421    ;;
6422  esac
6423fi
6424if test -n "$lt_prog_cc_shlib"; then
6425  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6426echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6427  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6428  else
6429    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6430echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6431    lt_cv_prog_cc_can_build_shared=no
6432  fi
6433fi
6434
6435
6436#
6437# Check to make sure the static flag actually works.
6438#
6439echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6440echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6441if test "${lt_prog_compiler_static_works+set}" = set; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444  lt_prog_compiler_static_works=no
6445   save_LDFLAGS="$LDFLAGS"
6446   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6447   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6448   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6449     # The compiler can only warn and ignore the option if not recognized
6450     # So say no if there are warnings
6451     if test -s conftest.err; then
6452       # Append any errors to the config.log.
6453       cat conftest.err 1>&5
6454     else
6455       lt_prog_compiler_static_works=yes
6456     fi
6457   fi
6458   $rm conftest*
6459   LDFLAGS="$save_LDFLAGS"
6460
6461fi
6462echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6463echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6464
6465if test x"$lt_prog_compiler_static_works" = xyes; then
6466    :
6467else
6468    lt_prog_compiler_static=
6469fi
6470
6471
6472
6473
6474lt_prog_compiler_no_builtin_flag=
6475
6476if test "$GCC" = yes; then
6477  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6478
6479
6480echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6481echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6482if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6483  echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
6485  lt_cv_prog_compiler_rtti_exceptions=no
6486  ac_outfile=conftest.$ac_objext
6487   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6488   lt_compiler_flag="-fno-rtti -fno-exceptions"
6489   # Insert the option either (1) after the last *FLAGS variable, or
6490   # (2) before a word containing "conftest.", or (3) at the end.
6491   # Note that $ac_compile itself does not contain backslashes and begins
6492   # with a dollar sign (not a hyphen), so the echo should work correctly.
6493   # The option is referenced via a variable to avoid confusing sed.
6494   lt_compile=`echo "$ac_compile" | $SED \
6495   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6496   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6497   -e 's:$: $lt_compiler_flag:'`
6498   (eval echo "\"\$as_me:6498: $lt_compile\"" >&5)
6499   (eval "$lt_compile" 2>conftest.err)
6500   ac_status=$?
6501   cat conftest.err >&5
6502   echo "$as_me:6502: \$? = $ac_status" >&5
6503   if (exit $ac_status) && test -s "$ac_outfile"; then
6504     # The compiler can only warn and ignore the option if not recognized
6505     # So say no if there are warnings
6506     if test ! -s conftest.err; then
6507       lt_cv_prog_compiler_rtti_exceptions=yes
6508     fi
6509   fi
6510   $rm conftest*
6511
6512fi
6513echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6514echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6515
6516if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6517    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6518else
6519    :
6520fi
6521
6522fi
6523
6524lt_prog_compiler_wl=
6525lt_prog_compiler_pic=
6526lt_prog_compiler_static=
6527
6528echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6529echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6530
6531  if test "$GCC" = yes; then
6532    lt_prog_compiler_wl='-Wl,'
6533    lt_prog_compiler_static='-static'
6534
6535    case $host_os in
6536      aix*)
6537      # All AIX code is PIC.
6538      if test "$host_cpu" = ia64; then
6539	# AIX 5 now supports IA64 processor
6540	lt_prog_compiler_static='-Bstatic'
6541      fi
6542      ;;
6543
6544    amigaos*)
6545      # FIXME: we need at least 68020 code to build shared libraries, but
6546      # adding the `-m68020' flag to GCC prevents building anything better,
6547      # like `-m68040'.
6548      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6549      ;;
6550
6551    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6552      # PIC is the default for these OSes.
6553      ;;
6554
6555    mingw* | pw32* | os2*)
6556      # This hack is so that the source file can tell whether it is being
6557      # built for inclusion in a dll (and should export symbols for example).
6558      lt_prog_compiler_pic='-DDLL_EXPORT'
6559      ;;
6560
6561    darwin* | rhapsody*)
6562      # PIC is the default on this platform
6563      # Common symbols not allowed in MH_DYLIB files
6564      lt_prog_compiler_pic='-fno-common'
6565      ;;
6566
6567    msdosdjgpp*)
6568      # Just because we use GCC doesn't mean we suddenly get shared libraries
6569      # on systems that don't support them.
6570      lt_prog_compiler_can_build_shared=no
6571      enable_shared=no
6572      ;;
6573
6574    sysv4*MP*)
6575      if test -d /usr/nec; then
6576	lt_prog_compiler_pic=-Kconform_pic
6577      fi
6578      ;;
6579
6580    hpux*)
6581      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6582      # not for PA HP-UX.
6583      case "$host_cpu" in
6584      hppa*64*|ia64*)
6585	# +Z the default
6586	;;
6587      *)
6588	lt_prog_compiler_pic='-fPIC'
6589	;;
6590      esac
6591      ;;
6592
6593    *)
6594      lt_prog_compiler_pic='-fPIC'
6595      ;;
6596    esac
6597  else
6598    # PORTME Check for flag to pass linker flags through the system compiler.
6599    case $host_os in
6600    aix*)
6601      lt_prog_compiler_wl='-Wl,'
6602      if test "$host_cpu" = ia64; then
6603	# AIX 5 now supports IA64 processor
6604	lt_prog_compiler_static='-Bstatic'
6605      else
6606	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6607      fi
6608      ;;
6609
6610    mingw* | pw32* | os2*)
6611      # This hack is so that the source file can tell whether it is being
6612      # built for inclusion in a dll (and should export symbols for example).
6613      lt_prog_compiler_pic='-DDLL_EXPORT'
6614      ;;
6615
6616    hpux9* | hpux10* | hpux11*)
6617      lt_prog_compiler_wl='-Wl,'
6618      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6619      # not for PA HP-UX.
6620      case "$host_cpu" in
6621      hppa*64*|ia64*)
6622	# +Z the default
6623	;;
6624      *)
6625	lt_prog_compiler_pic='+Z'
6626	;;
6627      esac
6628      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6629      lt_prog_compiler_static='${wl}-a ${wl}archive'
6630      ;;
6631
6632    irix5* | irix6* | nonstopux*)
6633      lt_prog_compiler_wl='-Wl,'
6634      # PIC (with -KPIC) is the default.
6635      lt_prog_compiler_static='-non_shared'
6636      ;;
6637
6638    newsos6)
6639      lt_prog_compiler_pic='-KPIC'
6640      lt_prog_compiler_static='-Bstatic'
6641      ;;
6642
6643    linux*)
6644      case $CC in
6645      icc* | ecc*)
6646	lt_prog_compiler_wl='-Wl,'
6647	lt_prog_compiler_pic='-KPIC'
6648	lt_prog_compiler_static='-static'
6649        ;;
6650      ccc*)
6651        lt_prog_compiler_wl='-Wl,'
6652        # All Alpha code is PIC.
6653        lt_prog_compiler_static='-non_shared'
6654        ;;
6655      esac
6656      ;;
6657
6658    osf3* | osf4* | osf5*)
6659      lt_prog_compiler_wl='-Wl,'
6660      # All OSF/1 code is PIC.
6661      lt_prog_compiler_static='-non_shared'
6662      ;;
6663
6664    sco3.2v5*)
6665      lt_prog_compiler_pic='-Kpic'
6666      lt_prog_compiler_static='-dn'
6667      ;;
6668
6669    solaris*)
6670      lt_prog_compiler_wl='-Wl,'
6671      lt_prog_compiler_pic='-KPIC'
6672      lt_prog_compiler_static='-Bstatic'
6673      ;;
6674
6675    sunos4*)
6676      lt_prog_compiler_wl='-Qoption ld '
6677      lt_prog_compiler_pic='-PIC'
6678      lt_prog_compiler_static='-Bstatic'
6679      ;;
6680
6681    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6682      lt_prog_compiler_wl='-Wl,'
6683      lt_prog_compiler_pic='-KPIC'
6684      lt_prog_compiler_static='-Bstatic'
6685      ;;
6686
6687    sysv4*MP*)
6688      if test -d /usr/nec ;then
6689	lt_prog_compiler_pic='-Kconform_pic'
6690	lt_prog_compiler_static='-Bstatic'
6691      fi
6692      ;;
6693
6694    uts4*)
6695      lt_prog_compiler_pic='-pic'
6696      lt_prog_compiler_static='-Bstatic'
6697      ;;
6698
6699    *)
6700      lt_prog_compiler_can_build_shared=no
6701      ;;
6702    esac
6703  fi
6704
6705echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6706echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6707
6708#
6709# Check to make sure the PIC flag actually works.
6710#
6711if test -n "$lt_prog_compiler_pic"; then
6712
6713echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6714echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6715if test "${lt_prog_compiler_pic_works+set}" = set; then
6716  echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718  lt_prog_compiler_pic_works=no
6719  ac_outfile=conftest.$ac_objext
6720   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6721   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6722   # Insert the option either (1) after the last *FLAGS variable, or
6723   # (2) before a word containing "conftest.", or (3) at the end.
6724   # Note that $ac_compile itself does not contain backslashes and begins
6725   # with a dollar sign (not a hyphen), so the echo should work correctly.
6726   # The option is referenced via a variable to avoid confusing sed.
6727   lt_compile=`echo "$ac_compile" | $SED \
6728   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6730   -e 's:$: $lt_compiler_flag:'`
6731   (eval echo "\"\$as_me:6731: $lt_compile\"" >&5)
6732   (eval "$lt_compile" 2>conftest.err)
6733   ac_status=$?
6734   cat conftest.err >&5
6735   echo "$as_me:6735: \$? = $ac_status" >&5
6736   if (exit $ac_status) && test -s "$ac_outfile"; then
6737     # The compiler can only warn and ignore the option if not recognized
6738     # So say no if there are warnings
6739     if test ! -s conftest.err; then
6740       lt_prog_compiler_pic_works=yes
6741     fi
6742   fi
6743   $rm conftest*
6744
6745fi
6746echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6747echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6748
6749if test x"$lt_prog_compiler_pic_works" = xyes; then
6750    case $lt_prog_compiler_pic in
6751     "" | " "*) ;;
6752     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6753     esac
6754else
6755    lt_prog_compiler_pic=
6756     lt_prog_compiler_can_build_shared=no
6757fi
6758
6759fi
6760case "$host_os" in
6761  # For platforms which do not support PIC, -DPIC is meaningless:
6762  *djgpp*)
6763    lt_prog_compiler_pic=
6764    ;;
6765  *)
6766    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6767    ;;
6768esac
6769
6770echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6771echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6772if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  lt_cv_prog_compiler_c_o=no
6776   $rm -r conftest 2>/dev/null
6777   mkdir conftest
6778   cd conftest
6779   mkdir out
6780   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6781
6782   lt_compiler_flag="-o out/conftest2.$ac_objext"
6783   # Insert the option either (1) after the last *FLAGS variable, or
6784   # (2) before a word containing "conftest.", or (3) at the end.
6785   # Note that $ac_compile itself does not contain backslashes and begins
6786   # with a dollar sign (not a hyphen), so the echo should work correctly.
6787   lt_compile=`echo "$ac_compile" | $SED \
6788   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6789   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6790   -e 's:$: $lt_compiler_flag:'`
6791   (eval echo "\"\$as_me:6791: $lt_compile\"" >&5)
6792   (eval "$lt_compile" 2>out/conftest.err)
6793   ac_status=$?
6794   cat out/conftest.err >&5
6795   echo "$as_me:6795: \$? = $ac_status" >&5
6796   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6797   then
6798     # The compiler can only warn and ignore the option if not recognized
6799     # So say no if there are warnings
6800     if test ! -s out/conftest.err; then
6801       lt_cv_prog_compiler_c_o=yes
6802     fi
6803   fi
6804   chmod u+w .
6805   $rm conftest*
6806   # SGI C++ compiler will create directory out/ii_files/ for
6807   # template instantiation
6808   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6809   $rm out/* && rmdir out
6810   cd ..
6811   rmdir conftest
6812   $rm conftest*
6813
6814fi
6815echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6816echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6817
6818
6819hard_links="nottested"
6820if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6821  # do not overwrite the value of need_locks provided by the user
6822  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6823echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6824  hard_links=yes
6825  $rm conftest*
6826  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6827  touch conftest.a
6828  ln conftest.a conftest.b 2>&5 || hard_links=no
6829  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6830  echo "$as_me:$LINENO: result: $hard_links" >&5
6831echo "${ECHO_T}$hard_links" >&6
6832  if test "$hard_links" = no; then
6833    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6834echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6835    need_locks=warn
6836  fi
6837else
6838  need_locks=no
6839fi
6840
6841echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6842echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6843
6844  runpath_var=
6845  allow_undefined_flag=
6846  enable_shared_with_static_runtimes=no
6847  archive_cmds=
6848  archive_expsym_cmds=
6849  old_archive_From_new_cmds=
6850  old_archive_from_expsyms_cmds=
6851  export_dynamic_flag_spec=
6852  whole_archive_flag_spec=
6853  thread_safe_flag_spec=
6854  hardcode_libdir_flag_spec=
6855  hardcode_libdir_flag_spec_ld=
6856  hardcode_libdir_separator=
6857  hardcode_direct=no
6858  hardcode_minus_L=no
6859  hardcode_shlibpath_var=unsupported
6860  link_all_deplibs=unknown
6861  hardcode_automatic=no
6862  module_cmds=
6863  module_expsym_cmds=
6864  always_export_symbols=no
6865  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6866  # include_expsyms should be a list of space-separated symbols to be *always*
6867  # included in the symbol list
6868  include_expsyms=
6869  # exclude_expsyms can be an extended regexp of symbols to exclude
6870  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6871  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6872  # as well as any symbol that contains `d'.
6873  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6874  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6875  # platforms (ab)use it in PIC code, but their linkers get confused if
6876  # the symbol is explicitly referenced.  Since portable code cannot
6877  # rely on this symbol name, it's probably fine to never include it in
6878  # preloaded symbol tables.
6879  extract_expsyms_cmds=
6880
6881  case $host_os in
6882  cygwin* | mingw* | pw32*)
6883    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6884    # When not using gcc, we currently assume that we are using
6885    # Microsoft Visual C++.
6886    if test "$GCC" != yes; then
6887      with_gnu_ld=no
6888    fi
6889    ;;
6890  openbsd*)
6891    with_gnu_ld=no
6892    ;;
6893  esac
6894
6895  ld_shlibs=yes
6896  if test "$with_gnu_ld" = yes; then
6897    # If archive_cmds runs LD, not CC, wlarc should be empty
6898    wlarc='${wl}'
6899
6900    # See if GNU ld supports shared libraries.
6901    case $host_os in
6902    aix3* | aix4* | aix5*)
6903      # On AIX/PPC, the GNU linker is very broken
6904      if test "$host_cpu" != ia64; then
6905	ld_shlibs=no
6906	cat <<EOF 1>&2
6907
6908*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6909*** to be unable to reliably create shared libraries on AIX.
6910*** Therefore, libtool is disabling shared libraries support.  If you
6911*** really care for shared libraries, you may want to modify your PATH
6912*** so that a non-GNU linker is found, and then restart.
6913
6914EOF
6915      fi
6916      ;;
6917
6918    amigaos*)
6919      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)'
6920      hardcode_libdir_flag_spec='-L$libdir'
6921      hardcode_minus_L=yes
6922
6923      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6924      # that the semantics of dynamic libraries on AmigaOS, at least up
6925      # to version 4, is to share data among multiple programs linked
6926      # with the same dynamic library.  Since this doesn't match the
6927      # behavior of shared libraries on other platforms, we can't use
6928      # them.
6929      ld_shlibs=no
6930      ;;
6931
6932    beos*)
6933      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6934	allow_undefined_flag=unsupported
6935	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6936	# support --undefined.  This deserves some investigation.  FIXME
6937	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6938      else
6939	ld_shlibs=no
6940      fi
6941      ;;
6942
6943    cygwin* | mingw* | pw32*)
6944      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6945      # as there is no search path for DLLs.
6946      hardcode_libdir_flag_spec='-L$libdir'
6947      allow_undefined_flag=unsupported
6948      always_export_symbols=no
6949      enable_shared_with_static_runtimes=yes
6950      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6951
6952      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6953        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6954	# If the export-symbols file already is a .def file (1st line
6955	# is EXPORTS), use it as is; otherwise, prepend...
6956	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6957	  cp $export_symbols $output_objdir/$soname.def;
6958	else
6959	  echo EXPORTS > $output_objdir/$soname.def;
6960	  cat $export_symbols >> $output_objdir/$soname.def;
6961	fi~
6962	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6963      else
6964	ld_shlibs=no
6965      fi
6966      ;;
6967
6968    netbsd*)
6969      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6970	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6971	wlarc=
6972      else
6973	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6974	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6975      fi
6976      ;;
6977
6978    solaris* | sysv5*)
6979      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6980	ld_shlibs=no
6981	cat <<EOF 1>&2
6982
6983*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6984*** create shared libraries on Solaris systems.  Therefore, libtool
6985*** is disabling shared libraries support.  We urge you to upgrade GNU
6986*** binutils to release 2.9.1 or newer.  Another option is to modify
6987*** your PATH or compiler configuration so that the native linker is
6988*** used, and then restart.
6989
6990EOF
6991      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6992	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6993	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6994      else
6995	ld_shlibs=no
6996      fi
6997      ;;
6998
6999    sunos4*)
7000      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7001      wlarc=
7002      hardcode_direct=yes
7003      hardcode_shlibpath_var=no
7004      ;;
7005
7006  linux*)
7007    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7008        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7009	archive_cmds="$tmp_archive_cmds"
7010      supports_anon_versioning=no
7011      case `$LD -v 2>/dev/null` in
7012        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7013        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7014        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7015        *\ 2.11.*) ;; # other 2.11 versions
7016        *) supports_anon_versioning=yes ;;
7017      esac
7018      if test $supports_anon_versioning = yes; then
7019        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7020cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7021$echo "local: *; };" >> $output_objdir/$libname.ver~
7022        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7023      else
7024        archive_expsym_cmds="$tmp_archive_cmds"
7025      fi
7026    else
7027      ld_shlibs=no
7028    fi
7029    ;;
7030
7031    *)
7032      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7033	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7034	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7035      else
7036	ld_shlibs=no
7037      fi
7038      ;;
7039    esac
7040
7041    if test "$ld_shlibs" = yes; then
7042      runpath_var=LD_RUN_PATH
7043      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7044      export_dynamic_flag_spec='${wl}--export-dynamic'
7045      # ancient GNU ld didn't support --whole-archive et. al.
7046      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7047 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7048      else
7049  	whole_archive_flag_spec=
7050      fi
7051    fi
7052  else
7053    # PORTME fill in a description of your system's linker (not GNU ld)
7054    case $host_os in
7055    aix3*)
7056      allow_undefined_flag=unsupported
7057      always_export_symbols=yes
7058      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'
7059      # Note: this linker hardcodes the directories in LIBPATH if there
7060      # are no directories specified by -L.
7061      hardcode_minus_L=yes
7062      if test "$GCC" = yes && test -z "$link_static_flag"; then
7063	# Neither direct hardcoding nor static linking is supported with a
7064	# broken collect2.
7065	hardcode_direct=unsupported
7066      fi
7067      ;;
7068
7069    aix4* | aix5*)
7070      if test "$host_cpu" = ia64; then
7071	# On IA64, the linker does run time linking by default, so we don't
7072	# have to do anything special.
7073	aix_use_runtimelinking=no
7074	exp_sym_flag='-Bexport'
7075	no_entry_flag=""
7076      else
7077	# If we're using GNU nm, then we don't want the "-C" option.
7078	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7079	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7080	  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'
7081	else
7082	  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'
7083	fi
7084	aix_use_runtimelinking=no
7085
7086	# Test if we are trying to use run time linking or normal
7087	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7088	# need to do runtime linking.
7089	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7090	  for ld_flag in $LDFLAGS; do
7091  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7092  	    aix_use_runtimelinking=yes
7093  	    break
7094  	  fi
7095	  done
7096	esac
7097
7098	exp_sym_flag='-bexport'
7099	no_entry_flag='-bnoentry'
7100      fi
7101
7102      # When large executables or shared objects are built, AIX ld can
7103      # have problems creating the table of contents.  If linking a library
7104      # or program results in "error TOC overflow" add -mminimal-toc to
7105      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7106      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7107
7108      archive_cmds=''
7109      hardcode_direct=yes
7110      hardcode_libdir_separator=':'
7111      link_all_deplibs=yes
7112
7113      if test "$GCC" = yes; then
7114	case $host_os in aix4.012|aix4.012.*)
7115	# We only want to do this on AIX 4.2 and lower, the check
7116	# below for broken collect2 doesn't work under 4.3+
7117	  collect2name=`${CC} -print-prog-name=collect2`
7118	  if test -f "$collect2name" && \
7119  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7120	  then
7121  	  # We have reworked collect2
7122  	  hardcode_direct=yes
7123	  else
7124  	  # We have old collect2
7125  	  hardcode_direct=unsupported
7126  	  # It fails to find uninstalled libraries when the uninstalled
7127  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7128  	  # to unsupported forces relinking
7129  	  hardcode_minus_L=yes
7130  	  hardcode_libdir_flag_spec='-L$libdir'
7131  	  hardcode_libdir_separator=
7132	  fi
7133	esac
7134	shared_flag='-shared'
7135      else
7136	# not using gcc
7137	if test "$host_cpu" = ia64; then
7138  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7139  	# chokes on -Wl,-G. The following line is correct:
7140	  shared_flag='-G'
7141	else
7142  	if test "$aix_use_runtimelinking" = yes; then
7143	    shared_flag='${wl}-G'
7144	  else
7145	    shared_flag='${wl}-bM:SRE'
7146  	fi
7147	fi
7148      fi
7149
7150      # It seems that -bexpall does not export symbols beginning with
7151      # underscore (_), so it is better to generate a list of symbols to export.
7152      always_export_symbols=yes
7153      if test "$aix_use_runtimelinking" = yes; then
7154	# Warning - without using the other runtime loading flags (-brtl),
7155	# -berok will link without error, but may produce a broken library.
7156	allow_undefined_flag='-berok'
7157       # Determine the default libpath from the value encoded in an empty executable.
7158       cat >conftest.$ac_ext <<_ACEOF
7159/* confdefs.h.  */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h.  */
7164
7165int
7166main ()
7167{
7168
7169  ;
7170  return 0;
7171}
7172_ACEOF
7173rm -f conftest.$ac_objext conftest$ac_exeext
7174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175  (eval $ac_link) 2>conftest.er1
7176  ac_status=$?
7177  grep -v '^ *+' conftest.er1 >conftest.err
7178  rm -f conftest.er1
7179  cat conftest.err >&5
7180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181  (exit $ac_status); } &&
7182	 { ac_try='test -z "$ac_c_werror_flag"
7183			 || test ! -s conftest.err'
7184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185  (eval $ac_try) 2>&5
7186  ac_status=$?
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); }; } &&
7189	 { ac_try='test -s conftest$ac_exeext'
7190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191  (eval $ac_try) 2>&5
7192  ac_status=$?
7193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194  (exit $ac_status); }; }; then
7195
7196aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7197}'`
7198# Check for a 64-bit object if we didn't find anything.
7199if 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; }
7200}'`; fi
7201else
7202  echo "$as_me: failed program was:" >&5
7203sed 's/^/| /' conftest.$ac_ext >&5
7204
7205fi
7206rm -f conftest.err conftest.$ac_objext \
7207      conftest$ac_exeext conftest.$ac_ext
7208if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7209
7210       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7211	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7212       else
7213	if test "$host_cpu" = ia64; then
7214	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7215	  allow_undefined_flag="-z nodefs"
7216	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7217	else
7218	 # Determine the default libpath from the value encoded in an empty executable.
7219	 cat >conftest.$ac_ext <<_ACEOF
7220/* confdefs.h.  */
7221_ACEOF
7222cat confdefs.h >>conftest.$ac_ext
7223cat >>conftest.$ac_ext <<_ACEOF
7224/* end confdefs.h.  */
7225
7226int
7227main ()
7228{
7229
7230  ;
7231  return 0;
7232}
7233_ACEOF
7234rm -f conftest.$ac_objext conftest$ac_exeext
7235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236  (eval $ac_link) 2>conftest.er1
7237  ac_status=$?
7238  grep -v '^ *+' conftest.er1 >conftest.err
7239  rm -f conftest.er1
7240  cat conftest.err >&5
7241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242  (exit $ac_status); } &&
7243	 { ac_try='test -z "$ac_c_werror_flag"
7244			 || test ! -s conftest.err'
7245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246  (eval $ac_try) 2>&5
7247  ac_status=$?
7248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249  (exit $ac_status); }; } &&
7250	 { ac_try='test -s conftest$ac_exeext'
7251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252  (eval $ac_try) 2>&5
7253  ac_status=$?
7254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255  (exit $ac_status); }; }; then
7256
7257aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7258}'`
7259# Check for a 64-bit object if we didn't find anything.
7260if 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; }
7261}'`; fi
7262else
7263  echo "$as_me: failed program was:" >&5
7264sed 's/^/| /' conftest.$ac_ext >&5
7265
7266fi
7267rm -f conftest.err conftest.$ac_objext \
7268      conftest$ac_exeext conftest.$ac_ext
7269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7270
7271	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7272	  # Warning - without using the other run time loading flags,
7273	  # -berok will link without error, but may produce a broken library.
7274	  no_undefined_flag=' ${wl}-bernotok'
7275	  allow_undefined_flag=' ${wl}-berok'
7276	  # -bexpall does not export symbols beginning with underscore (_)
7277	  always_export_symbols=yes
7278	  # Exported symbols can be pulled into shared objects from archives
7279	  whole_archive_flag_spec=' '
7280	  archive_cmds_need_lc=yes
7281	  # This is similar to how AIX traditionally builds it's shared libraries.
7282	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7283	fi
7284      fi
7285      ;;
7286
7287    amigaos*)
7288      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)'
7289      hardcode_libdir_flag_spec='-L$libdir'
7290      hardcode_minus_L=yes
7291      # see comment about different semantics on the GNU ld section
7292      ld_shlibs=no
7293      ;;
7294
7295    bsdi4*)
7296      export_dynamic_flag_spec=-rdynamic
7297      ;;
7298
7299    cygwin* | mingw* | pw32*)
7300      # When not using gcc, we currently assume that we are using
7301      # Microsoft Visual C++.
7302      # hardcode_libdir_flag_spec is actually meaningless, as there is
7303      # no search path for DLLs.
7304      hardcode_libdir_flag_spec=' '
7305      allow_undefined_flag=unsupported
7306      # Tell ltmain to make .lib files, not .a files.
7307      libext=lib
7308      # Tell ltmain to make .dll files, not .so files.
7309      shrext_cmds=".dll"
7310      # FIXME: Setting linknames here is a bad hack.
7311      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7312      # The linker will automatically build a .lib file if we build a DLL.
7313      old_archive_From_new_cmds='true'
7314      # FIXME: Should let the user specify the lib program.
7315      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7316      fix_srcfile_path='`cygpath -w "$srcfile"`'
7317      enable_shared_with_static_runtimes=yes
7318      ;;
7319
7320    darwin* | rhapsody*)
7321    if test "$GXX" = yes ; then
7322      archive_cmds_need_lc=no
7323      case "$host_os" in
7324      rhapsody* | darwin1.[012])
7325	allow_undefined_flag='-undefined suppress'
7326	;;
7327      *) # Darwin 1.3 on
7328      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7329      	allow_undefined_flag='-flat_namespace -undefined suppress'
7330      else
7331        case ${MACOSX_DEPLOYMENT_TARGET} in
7332          10.[012])
7333            allow_undefined_flag='-flat_namespace -undefined suppress'
7334            ;;
7335          10.*)
7336            allow_undefined_flag='-undefined dynamic_lookup'
7337            ;;
7338        esac
7339      fi
7340	;;
7341      esac
7342    	lt_int_apple_cc_single_mod=no
7343    	output_verbose_link_cmd='echo'
7344    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7345    	  lt_int_apple_cc_single_mod=yes
7346    	fi
7347    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7348    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7349    	else
7350        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7351      fi
7352      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7353      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7354        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7355          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7356        else
7357          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7358        fi
7359          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}'
7360      hardcode_direct=no
7361      hardcode_automatic=yes
7362      hardcode_shlibpath_var=unsupported
7363      whole_archive_flag_spec='-all_load $convenience'
7364      link_all_deplibs=yes
7365    else
7366      ld_shlibs=no
7367    fi
7368      ;;
7369
7370    dgux*)
7371      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372      hardcode_libdir_flag_spec='-L$libdir'
7373      hardcode_shlibpath_var=no
7374      ;;
7375
7376    freebsd1*)
7377      ld_shlibs=no
7378      ;;
7379
7380    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7381    # support.  Future versions do this automatically, but an explicit c++rt0.o
7382    # does not break anything, and helps significantly (at the cost of a little
7383    # extra space).
7384    freebsd2.2*)
7385      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7386      hardcode_libdir_flag_spec='-R$libdir'
7387      hardcode_direct=yes
7388      hardcode_shlibpath_var=no
7389      ;;
7390
7391    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7392    freebsd2*)
7393      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7394      hardcode_direct=yes
7395      hardcode_minus_L=yes
7396      hardcode_shlibpath_var=no
7397      ;;
7398
7399    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7400    freebsd* | kfreebsd*-gnu)
7401      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7402      hardcode_libdir_flag_spec='-R$libdir'
7403      hardcode_direct=yes
7404      hardcode_shlibpath_var=no
7405      ;;
7406
7407    hpux9*)
7408      if test "$GCC" = yes; then
7409	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'
7410      else
7411	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'
7412      fi
7413      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7414      hardcode_libdir_separator=:
7415      hardcode_direct=yes
7416
7417      # hardcode_minus_L: Not really in the search PATH,
7418      # but as the default location of the library.
7419      hardcode_minus_L=yes
7420      export_dynamic_flag_spec='${wl}-E'
7421      ;;
7422
7423    hpux10* | hpux11*)
7424      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7425	case "$host_cpu" in
7426	hppa*64*|ia64*)
7427	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7428	  ;;
7429	*)
7430	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7431	  ;;
7432	esac
7433      else
7434	case "$host_cpu" in
7435	hppa*64*|ia64*)
7436	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7437	  ;;
7438	*)
7439	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7440	  ;;
7441	esac
7442      fi
7443      if test "$with_gnu_ld" = no; then
7444	case "$host_cpu" in
7445	hppa*64*)
7446	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7447	  hardcode_libdir_flag_spec_ld='+b $libdir'
7448	  hardcode_libdir_separator=:
7449	  hardcode_direct=no
7450	  hardcode_shlibpath_var=no
7451	  ;;
7452	ia64*)
7453	  hardcode_libdir_flag_spec='-L$libdir'
7454	  hardcode_direct=no
7455	  hardcode_shlibpath_var=no
7456
7457	  # hardcode_minus_L: Not really in the search PATH,
7458	  # but as the default location of the library.
7459	  hardcode_minus_L=yes
7460	  ;;
7461	*)
7462	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7463	  hardcode_libdir_separator=:
7464	  hardcode_direct=yes
7465	  export_dynamic_flag_spec='${wl}-E'
7466
7467	  # hardcode_minus_L: Not really in the search PATH,
7468	  # but as the default location of the library.
7469	  hardcode_minus_L=yes
7470	  ;;
7471	esac
7472      fi
7473      ;;
7474
7475    irix5* | irix6* | nonstopux*)
7476      if test "$GCC" = yes; then
7477	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'
7478      else
7479	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'
7480	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7481      fi
7482      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7483      hardcode_libdir_separator=:
7484      link_all_deplibs=yes
7485      ;;
7486
7487    netbsd*)
7488      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7489	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7490      else
7491	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7492      fi
7493      hardcode_libdir_flag_spec='-R$libdir'
7494      hardcode_direct=yes
7495      hardcode_shlibpath_var=no
7496      ;;
7497
7498    newsos6)
7499      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7500      hardcode_direct=yes
7501      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7502      hardcode_libdir_separator=:
7503      hardcode_shlibpath_var=no
7504      ;;
7505
7506    openbsd*)
7507      hardcode_direct=yes
7508      hardcode_shlibpath_var=no
7509      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7510	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7511	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7512	export_dynamic_flag_spec='${wl}-E'
7513      else
7514       case $host_os in
7515	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7516	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7517	   hardcode_libdir_flag_spec='-R$libdir'
7518	   ;;
7519	 *)
7520	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7521	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7522	   ;;
7523       esac
7524      fi
7525      ;;
7526
7527    os2*)
7528      hardcode_libdir_flag_spec='-L$libdir'
7529      hardcode_minus_L=yes
7530      allow_undefined_flag=unsupported
7531      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'
7532      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7533      ;;
7534
7535    osf3*)
7536      if test "$GCC" = yes; then
7537	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7538	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'
7539      else
7540	allow_undefined_flag=' -expect_unresolved \*'
7541	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'
7542      fi
7543      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7544      hardcode_libdir_separator=:
7545      ;;
7546
7547    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7548      if test "$GCC" = yes; then
7549	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7550	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'
7551	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7552      else
7553	allow_undefined_flag=' -expect_unresolved \*'
7554	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'
7555	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7556	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7557
7558	# Both c and cxx compiler support -rpath directly
7559	hardcode_libdir_flag_spec='-rpath $libdir'
7560      fi
7561      hardcode_libdir_separator=:
7562      ;;
7563
7564    sco3.2v5*)
7565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7566      hardcode_shlibpath_var=no
7567      export_dynamic_flag_spec='${wl}-Bexport'
7568      runpath_var=LD_RUN_PATH
7569      hardcode_runpath_var=yes
7570      ;;
7571
7572    solaris*)
7573      no_undefined_flag=' -z text'
7574      if test "$GCC" = yes; then
7575	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7576	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7577	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7578      else
7579	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7580	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7581  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7582      fi
7583      hardcode_libdir_flag_spec='-R$libdir'
7584      hardcode_shlibpath_var=no
7585      case $host_os in
7586      solaris2.[0-5] | solaris2.[0-5].*) ;;
7587      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7588	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7589      esac
7590      link_all_deplibs=yes
7591      ;;
7592
7593    sunos4*)
7594      if test "x$host_vendor" = xsequent; then
7595	# Use $CC to link under sequent, because it throws in some extra .o
7596	# files that make .init and .fini sections work.
7597	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7598      else
7599	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7600      fi
7601      hardcode_libdir_flag_spec='-L$libdir'
7602      hardcode_direct=yes
7603      hardcode_minus_L=yes
7604      hardcode_shlibpath_var=no
7605      ;;
7606
7607    sysv4)
7608      case $host_vendor in
7609	sni)
7610	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7611	  hardcode_direct=yes # is this really true???
7612	;;
7613	siemens)
7614	  ## LD is ld it makes a PLAMLIB
7615	  ## CC just makes a GrossModule.
7616	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7617	  reload_cmds='$CC -r -o $output$reload_objs'
7618	  hardcode_direct=no
7619        ;;
7620	motorola)
7621	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7622	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7623	;;
7624      esac
7625      runpath_var='LD_RUN_PATH'
7626      hardcode_shlibpath_var=no
7627      ;;
7628
7629    sysv4.3*)
7630      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7631      hardcode_shlibpath_var=no
7632      export_dynamic_flag_spec='-Bexport'
7633      ;;
7634
7635    sysv4*MP*)
7636      if test -d /usr/nec; then
7637	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7638	hardcode_shlibpath_var=no
7639	runpath_var=LD_RUN_PATH
7640	hardcode_runpath_var=yes
7641	ld_shlibs=yes
7642      fi
7643      ;;
7644
7645    sysv4.2uw2*)
7646      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7647      hardcode_direct=yes
7648      hardcode_minus_L=no
7649      hardcode_shlibpath_var=no
7650      hardcode_runpath_var=yes
7651      runpath_var=LD_RUN_PATH
7652      ;;
7653
7654   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7655      no_undefined_flag='${wl}-z ${wl}text'
7656      if test "$GCC" = yes; then
7657	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7658      else
7659	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7660      fi
7661      runpath_var='LD_RUN_PATH'
7662      hardcode_shlibpath_var=no
7663      ;;
7664
7665    sysv5*)
7666      no_undefined_flag=' -z text'
7667      # $CC -shared without GNU ld will not create a library from C++
7668      # object files and a static libstdc++, better avoid it by now
7669      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7670      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7671  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7672      hardcode_libdir_flag_spec=
7673      hardcode_shlibpath_var=no
7674      runpath_var='LD_RUN_PATH'
7675      ;;
7676
7677    uts4*)
7678      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7679      hardcode_libdir_flag_spec='-L$libdir'
7680      hardcode_shlibpath_var=no
7681      ;;
7682
7683    *)
7684      ld_shlibs=no
7685      ;;
7686    esac
7687  fi
7688
7689echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7690echo "${ECHO_T}$ld_shlibs" >&6
7691test "$ld_shlibs" = no && can_build_shared=no
7692
7693variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7694if test "$GCC" = yes; then
7695  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7696fi
7697
7698#
7699# Do we need to explicitly link libc?
7700#
7701case "x$archive_cmds_need_lc" in
7702x|xyes)
7703  # Assume -lc should be added
7704  archive_cmds_need_lc=yes
7705
7706  if test "$enable_shared" = yes && test "$GCC" = yes; then
7707    case $archive_cmds in
7708    *'~'*)
7709      # FIXME: we may have to deal with multi-command sequences.
7710      ;;
7711    '$CC '*)
7712      # Test whether the compiler implicitly links with -lc since on some
7713      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7714      # to ld, don't add -lc before -lgcc.
7715      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7716echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7717      $rm conftest*
7718      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7719
7720      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721  (eval $ac_compile) 2>&5
7722  ac_status=$?
7723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724  (exit $ac_status); } 2>conftest.err; then
7725        soname=conftest
7726        lib=conftest
7727        libobjs=conftest.$ac_objext
7728        deplibs=
7729        wl=$lt_prog_compiler_wl
7730        compiler_flags=-v
7731        linker_flags=-v
7732        verstring=
7733        output_objdir=.
7734        libname=conftest
7735        lt_save_allow_undefined_flag=$allow_undefined_flag
7736        allow_undefined_flag=
7737        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7738  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7739  ac_status=$?
7740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741  (exit $ac_status); }
7742        then
7743	  archive_cmds_need_lc=no
7744        else
7745	  archive_cmds_need_lc=yes
7746        fi
7747        allow_undefined_flag=$lt_save_allow_undefined_flag
7748      else
7749        cat conftest.err 1>&5
7750      fi
7751      $rm conftest*
7752      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7753echo "${ECHO_T}$archive_cmds_need_lc" >&6
7754      ;;
7755    esac
7756  fi
7757  ;;
7758esac
7759
7760echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7761echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7762library_names_spec=
7763libname_spec='lib$name'
7764soname_spec=
7765shrext_cmds=".so"
7766postinstall_cmds=
7767postuninstall_cmds=
7768finish_cmds=
7769finish_eval=
7770shlibpath_var=
7771shlibpath_overrides_runpath=unknown
7772version_type=none
7773dynamic_linker="$host_os ld.so"
7774sys_lib_dlsearch_path_spec="/lib /usr/lib"
7775if test "$GCC" = yes; then
7776  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7777  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7778    # if the path contains ";" then we assume it to be the separator
7779    # otherwise default to the standard path separator (i.e. ":") - it is
7780    # assumed that no part of a normal pathname contains ";" but that should
7781    # okay in the real world where ";" in dirpaths is itself problematic.
7782    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7783  else
7784    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7785  fi
7786else
7787  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7788fi
7789need_lib_prefix=unknown
7790hardcode_into_libs=no
7791
7792# when you set need_version to no, make sure it does not cause -set_version
7793# flags to be left without arguments
7794need_version=unknown
7795
7796case $host_os in
7797aix3*)
7798  version_type=linux
7799  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7800  shlibpath_var=LIBPATH
7801
7802  # AIX 3 has no versioning support, so we append a major version to the name.
7803  soname_spec='${libname}${release}${shared_ext}$major'
7804  ;;
7805
7806aix4* | aix5*)
7807  version_type=linux
7808  need_lib_prefix=no
7809  need_version=no
7810  hardcode_into_libs=yes
7811  if test "$host_cpu" = ia64; then
7812    # AIX 5 supports IA64
7813    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7814    shlibpath_var=LD_LIBRARY_PATH
7815  else
7816    # With GCC up to 2.95.x, collect2 would create an import file
7817    # for dependence libraries.  The import file would start with
7818    # the line `#! .'.  This would cause the generated library to
7819    # depend on `.', always an invalid library.  This was fixed in
7820    # development snapshots of GCC prior to 3.0.
7821    case $host_os in
7822      aix4 | aix4.[01] | aix4.[01].*)
7823      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7824	   echo ' yes '
7825	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7826	:
7827      else
7828	can_build_shared=no
7829      fi
7830      ;;
7831    esac
7832    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7833    # soname into executable. Probably we can add versioning support to
7834    # collect2, so additional links can be useful in future.
7835    if test "$aix_use_runtimelinking" = yes; then
7836      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7837      # instead of lib<name>.a to let people know that these are not
7838      # typical AIX shared libraries.
7839      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7840    else
7841      # We preserve .a as extension for shared libraries through AIX4.2
7842      # and later when we are not doing run time linking.
7843      library_names_spec='${libname}${release}.a $libname.a'
7844      soname_spec='${libname}${release}${shared_ext}$major'
7845    fi
7846    shlibpath_var=LIBPATH
7847  fi
7848  ;;
7849
7850amigaos*)
7851  library_names_spec='$libname.ixlibrary $libname.a'
7852  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7853  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'
7854  ;;
7855
7856beos*)
7857  library_names_spec='${libname}${shared_ext}'
7858  dynamic_linker="$host_os ld.so"
7859  shlibpath_var=LIBRARY_PATH
7860  ;;
7861
7862bsdi4*)
7863  version_type=linux
7864  need_version=no
7865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866  soname_spec='${libname}${release}${shared_ext}$major'
7867  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7868  shlibpath_var=LD_LIBRARY_PATH
7869  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7870  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7871  # the default ld.so.conf also contains /usr/contrib/lib and
7872  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7873  # libtool to hard-code these into programs
7874  ;;
7875
7876cygwin* | mingw* | pw32*)
7877  version_type=windows
7878  shrext_cmds=".dll"
7879  need_version=no
7880  need_lib_prefix=no
7881
7882  case $GCC,$host_os in
7883  yes,cygwin* | yes,mingw* | yes,pw32*)
7884    library_names_spec='$libname.dll.a'
7885    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7886    postinstall_cmds='base_file=`basename \${file}`~
7887      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7888      dldir=$destdir/`dirname \$dlpath`~
7889      test -d \$dldir || mkdir -p \$dldir~
7890      $install_prog $dir/$dlname \$dldir/$dlname'
7891    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7892      dlpath=$dir/\$dldll~
7893       $rm \$dlpath'
7894    shlibpath_overrides_runpath=yes
7895
7896    case $host_os in
7897    cygwin*)
7898      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7899      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7900      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7901      ;;
7902    mingw*)
7903      # MinGW DLLs use traditional 'lib' prefix
7904      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7905      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7906      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7907        # It is most probably a Windows format PATH printed by
7908        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7909        # path with ; separators, and with drive letters. We can handle the
7910        # drive letters (cygwin fileutils understands them), so leave them,
7911        # especially as we might pass files found there to a mingw objdump,
7912        # which wouldn't understand a cygwinified path. Ahh.
7913        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7914      else
7915        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7916      fi
7917      ;;
7918    pw32*)
7919      # pw32 DLLs use 'pw' prefix rather than 'lib'
7920      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7921      ;;
7922    esac
7923    ;;
7924
7925  *)
7926    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7927    ;;
7928  esac
7929  dynamic_linker='Win32 ld.exe'
7930  # FIXME: first we should search . and the directory the executable is in
7931  shlibpath_var=PATH
7932  ;;
7933
7934darwin* | rhapsody*)
7935  dynamic_linker="$host_os dyld"
7936  version_type=darwin
7937  need_lib_prefix=no
7938  need_version=no
7939  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7940  soname_spec='${libname}${release}${major}$shared_ext'
7941  shlibpath_overrides_runpath=yes
7942  shlibpath_var=DYLD_LIBRARY_PATH
7943  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7944  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7945  if test "$GCC" = yes; then
7946    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"`
7947  else
7948    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7949  fi
7950  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7951  ;;
7952
7953dgux*)
7954  version_type=linux
7955  need_lib_prefix=no
7956  need_version=no
7957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7958  soname_spec='${libname}${release}${shared_ext}$major'
7959  shlibpath_var=LD_LIBRARY_PATH
7960  ;;
7961
7962freebsd1*)
7963  dynamic_linker=no
7964  ;;
7965
7966kfreebsd*-gnu)
7967  version_type=linux
7968  need_lib_prefix=no
7969  need_version=no
7970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7971  soname_spec='${libname}${release}${shared_ext}$major'
7972  shlibpath_var=LD_LIBRARY_PATH
7973  shlibpath_overrides_runpath=no
7974  hardcode_into_libs=yes
7975  dynamic_linker='GNU ld.so'
7976  ;;
7977
7978freebsd*)
7979  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7980  version_type=freebsd-$objformat
7981  case $version_type in
7982    freebsd-elf*)
7983      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7984      need_version=no
7985      need_lib_prefix=no
7986      ;;
7987    freebsd-*)
7988      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7989      need_version=yes
7990      ;;
7991  esac
7992  shlibpath_var=LD_LIBRARY_PATH
7993  case $host_os in
7994  freebsd2*)
7995    shlibpath_overrides_runpath=yes
7996    ;;
7997  freebsd3.01* | freebsdelf3.01*)
7998    shlibpath_overrides_runpath=yes
7999    hardcode_into_libs=yes
8000    ;;
8001  *) # from 3.2 on
8002    shlibpath_overrides_runpath=no
8003    hardcode_into_libs=yes
8004    ;;
8005  esac
8006  ;;
8007
8008gnu*)
8009  version_type=linux
8010  need_lib_prefix=no
8011  need_version=no
8012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8013  soname_spec='${libname}${release}${shared_ext}$major'
8014  shlibpath_var=LD_LIBRARY_PATH
8015  hardcode_into_libs=yes
8016  ;;
8017
8018hpux9* | hpux10* | hpux11*)
8019  # Give a soname corresponding to the major version so that dld.sl refuses to
8020  # link against other versions.
8021  version_type=sunos
8022  need_lib_prefix=no
8023  need_version=no
8024  case "$host_cpu" in
8025  ia64*)
8026    shrext_cmds='.so'
8027    hardcode_into_libs=yes
8028    dynamic_linker="$host_os dld.so"
8029    shlibpath_var=LD_LIBRARY_PATH
8030    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032    soname_spec='${libname}${release}${shared_ext}$major'
8033    if test "X$HPUX_IA64_MODE" = X32; then
8034      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8035    else
8036      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8037    fi
8038    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8039    ;;
8040   hppa*64*)
8041     shrext_cmds='.sl'
8042     hardcode_into_libs=yes
8043     dynamic_linker="$host_os dld.sl"
8044     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8045     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047     soname_spec='${libname}${release}${shared_ext}$major'
8048     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8049     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8050     ;;
8051   *)
8052    shrext_cmds='.sl'
8053    dynamic_linker="$host_os dld.sl"
8054    shlibpath_var=SHLIB_PATH
8055    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8056    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057    soname_spec='${libname}${release}${shared_ext}$major'
8058    ;;
8059  esac
8060  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8061  postinstall_cmds='chmod 555 $lib'
8062  ;;
8063
8064irix5* | irix6* | nonstopux*)
8065  case $host_os in
8066    nonstopux*) version_type=nonstopux ;;
8067    *)
8068	if test "$lt_cv_prog_gnu_ld" = yes; then
8069		version_type=linux
8070	else
8071		version_type=irix
8072	fi ;;
8073  esac
8074  need_lib_prefix=no
8075  need_version=no
8076  soname_spec='${libname}${release}${shared_ext}$major'
8077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8078  case $host_os in
8079  irix5* | nonstopux*)
8080    libsuff= shlibsuff=
8081    ;;
8082  *)
8083    case $LD in # libtool.m4 will add one of these switches to LD
8084    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8085      libsuff= shlibsuff= libmagic=32-bit;;
8086    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8087      libsuff=32 shlibsuff=N32 libmagic=N32;;
8088    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8089      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8090    *) libsuff= shlibsuff= libmagic=never-match;;
8091    esac
8092    ;;
8093  esac
8094  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8095  shlibpath_overrides_runpath=no
8096  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8097  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8098  hardcode_into_libs=yes
8099  ;;
8100
8101# No shared lib support for Linux oldld, aout, or coff.
8102linux*oldld* | linux*aout* | linux*coff*)
8103  dynamic_linker=no
8104  ;;
8105
8106# This must be Linux ELF.
8107linux*)
8108  version_type=linux
8109  need_lib_prefix=no
8110  need_version=no
8111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112  soname_spec='${libname}${release}${shared_ext}$major'
8113  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8114  shlibpath_var=LD_LIBRARY_PATH
8115  shlibpath_overrides_runpath=no
8116  # This implies no fast_install, which is unacceptable.
8117  # Some rework will be needed to allow for fast_install
8118  # before this can be enabled.
8119  hardcode_into_libs=yes
8120
8121  # Append ld.so.conf contents to the search path
8122  if test -f /etc/ld.so.conf; then
8123    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8124    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8125  fi
8126
8127  # We used to test for /lib/ld.so.1 and disable shared libraries on
8128  # powerpc, because MkLinux only supported shared libraries with the
8129  # GNU dynamic linker.  Since this was broken with cross compilers,
8130  # most powerpc-linux boxes support dynamic linking these days and
8131  # people can always --disable-shared, the test was removed, and we
8132  # assume the GNU/Linux dynamic linker is in use.
8133  dynamic_linker='GNU/Linux ld.so'
8134  ;;
8135
8136knetbsd*-gnu)
8137  version_type=linux
8138  need_lib_prefix=no
8139  need_version=no
8140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8141  soname_spec='${libname}${release}${shared_ext}$major'
8142  shlibpath_var=LD_LIBRARY_PATH
8143  shlibpath_overrides_runpath=no
8144  hardcode_into_libs=yes
8145  dynamic_linker='GNU ld.so'
8146  ;;
8147
8148netbsd*)
8149  version_type=sunos
8150  need_lib_prefix=no
8151  need_version=no
8152  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8153    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8154    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8155    dynamic_linker='NetBSD (a.out) ld.so'
8156  else
8157    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8158    soname_spec='${libname}${release}${shared_ext}$major'
8159    dynamic_linker='NetBSD ld.elf_so'
8160  fi
8161  shlibpath_var=LD_LIBRARY_PATH
8162  shlibpath_overrides_runpath=yes
8163  hardcode_into_libs=yes
8164  ;;
8165
8166newsos6)
8167  version_type=linux
8168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8169  shlibpath_var=LD_LIBRARY_PATH
8170  shlibpath_overrides_runpath=yes
8171  ;;
8172
8173nto-qnx*)
8174  version_type=linux
8175  need_lib_prefix=no
8176  need_version=no
8177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8178  soname_spec='${libname}${release}${shared_ext}$major'
8179  shlibpath_var=LD_LIBRARY_PATH
8180  shlibpath_overrides_runpath=yes
8181  ;;
8182
8183openbsd*)
8184  version_type=sunos
8185  need_lib_prefix=no
8186  need_version=yes
8187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8188  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8189  shlibpath_var=LD_LIBRARY_PATH
8190  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8191    case $host_os in
8192      openbsd2.[89] | openbsd2.[89].*)
8193	shlibpath_overrides_runpath=no
8194	;;
8195      *)
8196	shlibpath_overrides_runpath=yes
8197	;;
8198      esac
8199  else
8200    shlibpath_overrides_runpath=yes
8201  fi
8202  ;;
8203
8204os2*)
8205  libname_spec='$name'
8206  shrext_cmds=".dll"
8207  need_lib_prefix=no
8208  library_names_spec='$libname${shared_ext} $libname.a'
8209  dynamic_linker='OS/2 ld.exe'
8210  shlibpath_var=LIBPATH
8211  ;;
8212
8213osf3* | osf4* | osf5*)
8214  version_type=osf
8215  need_lib_prefix=no
8216  need_version=no
8217  soname_spec='${libname}${release}${shared_ext}$major'
8218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8219  shlibpath_var=LD_LIBRARY_PATH
8220  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8221  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8222  ;;
8223
8224sco3.2v5*)
8225  version_type=osf
8226  soname_spec='${libname}${release}${shared_ext}$major'
8227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228  shlibpath_var=LD_LIBRARY_PATH
8229  ;;
8230
8231solaris*)
8232  version_type=linux
8233  need_lib_prefix=no
8234  need_version=no
8235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8236  soname_spec='${libname}${release}${shared_ext}$major'
8237  shlibpath_var=LD_LIBRARY_PATH
8238  shlibpath_overrides_runpath=yes
8239  hardcode_into_libs=yes
8240  # ldd complains unless libraries are executable
8241  postinstall_cmds='chmod +x $lib'
8242  ;;
8243
8244sunos4*)
8245  version_type=sunos
8246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8247  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8248  shlibpath_var=LD_LIBRARY_PATH
8249  shlibpath_overrides_runpath=yes
8250  if test "$with_gnu_ld" = yes; then
8251    need_lib_prefix=no
8252  fi
8253  need_version=yes
8254  ;;
8255
8256sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8257  version_type=linux
8258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8259  soname_spec='${libname}${release}${shared_ext}$major'
8260  shlibpath_var=LD_LIBRARY_PATH
8261  case $host_vendor in
8262    sni)
8263      shlibpath_overrides_runpath=no
8264      need_lib_prefix=no
8265      export_dynamic_flag_spec='${wl}-Blargedynsym'
8266      runpath_var=LD_RUN_PATH
8267      ;;
8268    siemens)
8269      need_lib_prefix=no
8270      ;;
8271    motorola)
8272      need_lib_prefix=no
8273      need_version=no
8274      shlibpath_overrides_runpath=no
8275      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8276      ;;
8277  esac
8278  ;;
8279
8280sysv4*MP*)
8281  if test -d /usr/nec ;then
8282    version_type=linux
8283    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8284    soname_spec='$libname${shared_ext}.$major'
8285    shlibpath_var=LD_LIBRARY_PATH
8286  fi
8287  ;;
8288
8289uts4*)
8290  version_type=linux
8291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8292  soname_spec='${libname}${release}${shared_ext}$major'
8293  shlibpath_var=LD_LIBRARY_PATH
8294  ;;
8295
8296*)
8297  dynamic_linker=no
8298  ;;
8299esac
8300echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8301echo "${ECHO_T}$dynamic_linker" >&6
8302test "$dynamic_linker" = no && can_build_shared=no
8303
8304echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8305echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8306hardcode_action=
8307if test -n "$hardcode_libdir_flag_spec" || \
8308   test -n "$runpath_var " || \
8309   test "X$hardcode_automatic"="Xyes" ; then
8310
8311  # We can hardcode non-existant directories.
8312  if test "$hardcode_direct" != no &&
8313     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8314     # have to relink, otherwise we might link with an installed library
8315     # when we should be linking with a yet-to-be-installed one
8316     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8317     test "$hardcode_minus_L" != no; then
8318    # Linking always hardcodes the temporary library directory.
8319    hardcode_action=relink
8320  else
8321    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8322    hardcode_action=immediate
8323  fi
8324else
8325  # We cannot hardcode anything, or else we can only hardcode existing
8326  # directories.
8327  hardcode_action=unsupported
8328fi
8329echo "$as_me:$LINENO: result: $hardcode_action" >&5
8330echo "${ECHO_T}$hardcode_action" >&6
8331
8332if test "$hardcode_action" = relink; then
8333  # Fast installation is not supported
8334  enable_fast_install=no
8335elif test "$shlibpath_overrides_runpath" = yes ||
8336     test "$enable_shared" = no; then
8337  # Fast installation is not necessary
8338  enable_fast_install=needless
8339fi
8340
8341striplib=
8342old_striplib=
8343echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8344echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8345if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8346  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8347  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8348  echo "$as_me:$LINENO: result: yes" >&5
8349echo "${ECHO_T}yes" >&6
8350else
8351# FIXME - insert some real tests, host_os isn't really good enough
8352  case $host_os in
8353   darwin*)
8354       if test -n "$STRIP" ; then
8355         striplib="$STRIP -x"
8356         echo "$as_me:$LINENO: result: yes" >&5
8357echo "${ECHO_T}yes" >&6
8358       else
8359  echo "$as_me:$LINENO: result: no" >&5
8360echo "${ECHO_T}no" >&6
8361fi
8362       ;;
8363   *)
8364  echo "$as_me:$LINENO: result: no" >&5
8365echo "${ECHO_T}no" >&6
8366    ;;
8367  esac
8368fi
8369
8370if test "x$enable_dlopen" != xyes; then
8371  enable_dlopen=unknown
8372  enable_dlopen_self=unknown
8373  enable_dlopen_self_static=unknown
8374else
8375  lt_cv_dlopen=no
8376  lt_cv_dlopen_libs=
8377
8378  case $host_os in
8379  beos*)
8380    lt_cv_dlopen="load_add_on"
8381    lt_cv_dlopen_libs=
8382    lt_cv_dlopen_self=yes
8383    ;;
8384
8385  mingw* | pw32*)
8386    lt_cv_dlopen="LoadLibrary"
8387    lt_cv_dlopen_libs=
8388   ;;
8389
8390  cygwin*)
8391    lt_cv_dlopen="dlopen"
8392    lt_cv_dlopen_libs=
8393   ;;
8394
8395  darwin*)
8396  # if libdl is installed we need to link against it
8397    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8398echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8399if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8400  echo $ECHO_N "(cached) $ECHO_C" >&6
8401else
8402  ac_check_lib_save_LIBS=$LIBS
8403LIBS="-ldl  $LIBS"
8404cat >conftest.$ac_ext <<_ACEOF
8405/* confdefs.h.  */
8406_ACEOF
8407cat confdefs.h >>conftest.$ac_ext
8408cat >>conftest.$ac_ext <<_ACEOF
8409/* end confdefs.h.  */
8410
8411/* Override any gcc2 internal prototype to avoid an error.  */
8412#ifdef __cplusplus
8413extern "C"
8414#endif
8415/* We use char because int might match the return type of a gcc2
8416   builtin and then its argument prototype would still apply.  */
8417char dlopen ();
8418int
8419main ()
8420{
8421dlopen ();
8422  ;
8423  return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext conftest$ac_exeext
8427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428  (eval $ac_link) 2>conftest.er1
8429  ac_status=$?
8430  grep -v '^ *+' conftest.er1 >conftest.err
8431  rm -f conftest.er1
8432  cat conftest.err >&5
8433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434  (exit $ac_status); } &&
8435	 { ac_try='test -z "$ac_c_werror_flag"
8436			 || test ! -s conftest.err'
8437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438  (eval $ac_try) 2>&5
8439  ac_status=$?
8440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441  (exit $ac_status); }; } &&
8442	 { ac_try='test -s conftest$ac_exeext'
8443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444  (eval $ac_try) 2>&5
8445  ac_status=$?
8446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447  (exit $ac_status); }; }; then
8448  ac_cv_lib_dl_dlopen=yes
8449else
8450  echo "$as_me: failed program was:" >&5
8451sed 's/^/| /' conftest.$ac_ext >&5
8452
8453ac_cv_lib_dl_dlopen=no
8454fi
8455rm -f conftest.err conftest.$ac_objext \
8456      conftest$ac_exeext conftest.$ac_ext
8457LIBS=$ac_check_lib_save_LIBS
8458fi
8459echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8460echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8461if test $ac_cv_lib_dl_dlopen = yes; then
8462  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8463else
8464
8465    lt_cv_dlopen="dyld"
8466    lt_cv_dlopen_libs=
8467    lt_cv_dlopen_self=yes
8468
8469fi
8470
8471   ;;
8472
8473  *)
8474    echo "$as_me:$LINENO: checking for shl_load" >&5
8475echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8476if test "${ac_cv_func_shl_load+set}" = set; then
8477  echo $ECHO_N "(cached) $ECHO_C" >&6
8478else
8479  cat >conftest.$ac_ext <<_ACEOF
8480/* confdefs.h.  */
8481_ACEOF
8482cat confdefs.h >>conftest.$ac_ext
8483cat >>conftest.$ac_ext <<_ACEOF
8484/* end confdefs.h.  */
8485/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8486   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8487#define shl_load innocuous_shl_load
8488
8489/* System header to define __stub macros and hopefully few prototypes,
8490    which can conflict with char shl_load (); below.
8491    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8492    <limits.h> exists even on freestanding compilers.  */
8493
8494#ifdef __STDC__
8495# include <limits.h>
8496#else
8497# include <assert.h>
8498#endif
8499
8500#undef shl_load
8501
8502/* Override any gcc2 internal prototype to avoid an error.  */
8503#ifdef __cplusplus
8504extern "C"
8505{
8506#endif
8507/* We use char because int might match the return type of a gcc2
8508   builtin and then its argument prototype would still apply.  */
8509char shl_load ();
8510/* The GNU C library defines this for functions which it implements
8511    to always fail with ENOSYS.  Some functions are actually named
8512    something starting with __ and the normal name is an alias.  */
8513#if defined (__stub_shl_load) || defined (__stub___shl_load)
8514choke me
8515#else
8516char (*f) () = shl_load;
8517#endif
8518#ifdef __cplusplus
8519}
8520#endif
8521
8522int
8523main ()
8524{
8525return f != shl_load;
8526  ;
8527  return 0;
8528}
8529_ACEOF
8530rm -f conftest.$ac_objext conftest$ac_exeext
8531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532  (eval $ac_link) 2>conftest.er1
8533  ac_status=$?
8534  grep -v '^ *+' conftest.er1 >conftest.err
8535  rm -f conftest.er1
8536  cat conftest.err >&5
8537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538  (exit $ac_status); } &&
8539	 { ac_try='test -z "$ac_c_werror_flag"
8540			 || test ! -s conftest.err'
8541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542  (eval $ac_try) 2>&5
8543  ac_status=$?
8544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545  (exit $ac_status); }; } &&
8546	 { ac_try='test -s conftest$ac_exeext'
8547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548  (eval $ac_try) 2>&5
8549  ac_status=$?
8550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551  (exit $ac_status); }; }; then
8552  ac_cv_func_shl_load=yes
8553else
8554  echo "$as_me: failed program was:" >&5
8555sed 's/^/| /' conftest.$ac_ext >&5
8556
8557ac_cv_func_shl_load=no
8558fi
8559rm -f conftest.err conftest.$ac_objext \
8560      conftest$ac_exeext conftest.$ac_ext
8561fi
8562echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8563echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8564if test $ac_cv_func_shl_load = yes; then
8565  lt_cv_dlopen="shl_load"
8566else
8567  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8568echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8569if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8570  echo $ECHO_N "(cached) $ECHO_C" >&6
8571else
8572  ac_check_lib_save_LIBS=$LIBS
8573LIBS="-ldld  $LIBS"
8574cat >conftest.$ac_ext <<_ACEOF
8575/* confdefs.h.  */
8576_ACEOF
8577cat confdefs.h >>conftest.$ac_ext
8578cat >>conftest.$ac_ext <<_ACEOF
8579/* end confdefs.h.  */
8580
8581/* Override any gcc2 internal prototype to avoid an error.  */
8582#ifdef __cplusplus
8583extern "C"
8584#endif
8585/* We use char because int might match the return type of a gcc2
8586   builtin and then its argument prototype would still apply.  */
8587char shl_load ();
8588int
8589main ()
8590{
8591shl_load ();
8592  ;
8593  return 0;
8594}
8595_ACEOF
8596rm -f conftest.$ac_objext conftest$ac_exeext
8597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8598  (eval $ac_link) 2>conftest.er1
8599  ac_status=$?
8600  grep -v '^ *+' conftest.er1 >conftest.err
8601  rm -f conftest.er1
8602  cat conftest.err >&5
8603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604  (exit $ac_status); } &&
8605	 { ac_try='test -z "$ac_c_werror_flag"
8606			 || test ! -s conftest.err'
8607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608  (eval $ac_try) 2>&5
8609  ac_status=$?
8610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611  (exit $ac_status); }; } &&
8612	 { ac_try='test -s conftest$ac_exeext'
8613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614  (eval $ac_try) 2>&5
8615  ac_status=$?
8616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617  (exit $ac_status); }; }; then
8618  ac_cv_lib_dld_shl_load=yes
8619else
8620  echo "$as_me: failed program was:" >&5
8621sed 's/^/| /' conftest.$ac_ext >&5
8622
8623ac_cv_lib_dld_shl_load=no
8624fi
8625rm -f conftest.err conftest.$ac_objext \
8626      conftest$ac_exeext conftest.$ac_ext
8627LIBS=$ac_check_lib_save_LIBS
8628fi
8629echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8630echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8631if test $ac_cv_lib_dld_shl_load = yes; then
8632  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8633else
8634  echo "$as_me:$LINENO: checking for dlopen" >&5
8635echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8636if test "${ac_cv_func_dlopen+set}" = set; then
8637  echo $ECHO_N "(cached) $ECHO_C" >&6
8638else
8639  cat >conftest.$ac_ext <<_ACEOF
8640/* confdefs.h.  */
8641_ACEOF
8642cat confdefs.h >>conftest.$ac_ext
8643cat >>conftest.$ac_ext <<_ACEOF
8644/* end confdefs.h.  */
8645/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8646   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8647#define dlopen innocuous_dlopen
8648
8649/* System header to define __stub macros and hopefully few prototypes,
8650    which can conflict with char dlopen (); below.
8651    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652    <limits.h> exists even on freestanding compilers.  */
8653
8654#ifdef __STDC__
8655# include <limits.h>
8656#else
8657# include <assert.h>
8658#endif
8659
8660#undef dlopen
8661
8662/* Override any gcc2 internal prototype to avoid an error.  */
8663#ifdef __cplusplus
8664extern "C"
8665{
8666#endif
8667/* We use char because int might match the return type of a gcc2
8668   builtin and then its argument prototype would still apply.  */
8669char dlopen ();
8670/* The GNU C library defines this for functions which it implements
8671    to always fail with ENOSYS.  Some functions are actually named
8672    something starting with __ and the normal name is an alias.  */
8673#if defined (__stub_dlopen) || defined (__stub___dlopen)
8674choke me
8675#else
8676char (*f) () = dlopen;
8677#endif
8678#ifdef __cplusplus
8679}
8680#endif
8681
8682int
8683main ()
8684{
8685return f != dlopen;
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690rm -f conftest.$ac_objext conftest$ac_exeext
8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692  (eval $ac_link) 2>conftest.er1
8693  ac_status=$?
8694  grep -v '^ *+' conftest.er1 >conftest.err
8695  rm -f conftest.er1
8696  cat conftest.err >&5
8697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698  (exit $ac_status); } &&
8699	 { ac_try='test -z "$ac_c_werror_flag"
8700			 || test ! -s conftest.err'
8701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702  (eval $ac_try) 2>&5
8703  ac_status=$?
8704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705  (exit $ac_status); }; } &&
8706	 { ac_try='test -s conftest$ac_exeext'
8707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708  (eval $ac_try) 2>&5
8709  ac_status=$?
8710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711  (exit $ac_status); }; }; then
8712  ac_cv_func_dlopen=yes
8713else
8714  echo "$as_me: failed program was:" >&5
8715sed 's/^/| /' conftest.$ac_ext >&5
8716
8717ac_cv_func_dlopen=no
8718fi
8719rm -f conftest.err conftest.$ac_objext \
8720      conftest$ac_exeext conftest.$ac_ext
8721fi
8722echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8723echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8724if test $ac_cv_func_dlopen = yes; then
8725  lt_cv_dlopen="dlopen"
8726else
8727  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8728echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8729if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8730  echo $ECHO_N "(cached) $ECHO_C" >&6
8731else
8732  ac_check_lib_save_LIBS=$LIBS
8733LIBS="-ldl  $LIBS"
8734cat >conftest.$ac_ext <<_ACEOF
8735/* confdefs.h.  */
8736_ACEOF
8737cat confdefs.h >>conftest.$ac_ext
8738cat >>conftest.$ac_ext <<_ACEOF
8739/* end confdefs.h.  */
8740
8741/* Override any gcc2 internal prototype to avoid an error.  */
8742#ifdef __cplusplus
8743extern "C"
8744#endif
8745/* We use char because int might match the return type of a gcc2
8746   builtin and then its argument prototype would still apply.  */
8747char dlopen ();
8748int
8749main ()
8750{
8751dlopen ();
8752  ;
8753  return 0;
8754}
8755_ACEOF
8756rm -f conftest.$ac_objext conftest$ac_exeext
8757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758  (eval $ac_link) 2>conftest.er1
8759  ac_status=$?
8760  grep -v '^ *+' conftest.er1 >conftest.err
8761  rm -f conftest.er1
8762  cat conftest.err >&5
8763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764  (exit $ac_status); } &&
8765	 { ac_try='test -z "$ac_c_werror_flag"
8766			 || test ! -s conftest.err'
8767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768  (eval $ac_try) 2>&5
8769  ac_status=$?
8770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771  (exit $ac_status); }; } &&
8772	 { ac_try='test -s conftest$ac_exeext'
8773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774  (eval $ac_try) 2>&5
8775  ac_status=$?
8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); }; }; then
8778  ac_cv_lib_dl_dlopen=yes
8779else
8780  echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
8783ac_cv_lib_dl_dlopen=no
8784fi
8785rm -f conftest.err conftest.$ac_objext \
8786      conftest$ac_exeext conftest.$ac_ext
8787LIBS=$ac_check_lib_save_LIBS
8788fi
8789echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8790echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8791if test $ac_cv_lib_dl_dlopen = yes; then
8792  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8793else
8794  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8795echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8796if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8797  echo $ECHO_N "(cached) $ECHO_C" >&6
8798else
8799  ac_check_lib_save_LIBS=$LIBS
8800LIBS="-lsvld  $LIBS"
8801cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h.  */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h.  */
8807
8808/* Override any gcc2 internal prototype to avoid an error.  */
8809#ifdef __cplusplus
8810extern "C"
8811#endif
8812/* We use char because int might match the return type of a gcc2
8813   builtin and then its argument prototype would still apply.  */
8814char dlopen ();
8815int
8816main ()
8817{
8818dlopen ();
8819  ;
8820  return 0;
8821}
8822_ACEOF
8823rm -f conftest.$ac_objext conftest$ac_exeext
8824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825  (eval $ac_link) 2>conftest.er1
8826  ac_status=$?
8827  grep -v '^ *+' conftest.er1 >conftest.err
8828  rm -f conftest.er1
8829  cat conftest.err >&5
8830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831  (exit $ac_status); } &&
8832	 { ac_try='test -z "$ac_c_werror_flag"
8833			 || test ! -s conftest.err'
8834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835  (eval $ac_try) 2>&5
8836  ac_status=$?
8837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838  (exit $ac_status); }; } &&
8839	 { ac_try='test -s conftest$ac_exeext'
8840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841  (eval $ac_try) 2>&5
8842  ac_status=$?
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); }; }; then
8845  ac_cv_lib_svld_dlopen=yes
8846else
8847  echo "$as_me: failed program was:" >&5
8848sed 's/^/| /' conftest.$ac_ext >&5
8849
8850ac_cv_lib_svld_dlopen=no
8851fi
8852rm -f conftest.err conftest.$ac_objext \
8853      conftest$ac_exeext conftest.$ac_ext
8854LIBS=$ac_check_lib_save_LIBS
8855fi
8856echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8857echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8858if test $ac_cv_lib_svld_dlopen = yes; then
8859  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8860else
8861  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8862echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8863if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8864  echo $ECHO_N "(cached) $ECHO_C" >&6
8865else
8866  ac_check_lib_save_LIBS=$LIBS
8867LIBS="-ldld  $LIBS"
8868cat >conftest.$ac_ext <<_ACEOF
8869/* confdefs.h.  */
8870_ACEOF
8871cat confdefs.h >>conftest.$ac_ext
8872cat >>conftest.$ac_ext <<_ACEOF
8873/* end confdefs.h.  */
8874
8875/* Override any gcc2 internal prototype to avoid an error.  */
8876#ifdef __cplusplus
8877extern "C"
8878#endif
8879/* We use char because int might match the return type of a gcc2
8880   builtin and then its argument prototype would still apply.  */
8881char dld_link ();
8882int
8883main ()
8884{
8885dld_link ();
8886  ;
8887  return 0;
8888}
8889_ACEOF
8890rm -f conftest.$ac_objext conftest$ac_exeext
8891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892  (eval $ac_link) 2>conftest.er1
8893  ac_status=$?
8894  grep -v '^ *+' conftest.er1 >conftest.err
8895  rm -f conftest.er1
8896  cat conftest.err >&5
8897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898  (exit $ac_status); } &&
8899	 { ac_try='test -z "$ac_c_werror_flag"
8900			 || test ! -s conftest.err'
8901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902  (eval $ac_try) 2>&5
8903  ac_status=$?
8904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905  (exit $ac_status); }; } &&
8906	 { ac_try='test -s conftest$ac_exeext'
8907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908  (eval $ac_try) 2>&5
8909  ac_status=$?
8910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911  (exit $ac_status); }; }; then
8912  ac_cv_lib_dld_dld_link=yes
8913else
8914  echo "$as_me: failed program was:" >&5
8915sed 's/^/| /' conftest.$ac_ext >&5
8916
8917ac_cv_lib_dld_dld_link=no
8918fi
8919rm -f conftest.err conftest.$ac_objext \
8920      conftest$ac_exeext conftest.$ac_ext
8921LIBS=$ac_check_lib_save_LIBS
8922fi
8923echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8924echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8925if test $ac_cv_lib_dld_dld_link = yes; then
8926  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8927fi
8928
8929
8930fi
8931
8932
8933fi
8934
8935
8936fi
8937
8938
8939fi
8940
8941
8942fi
8943
8944    ;;
8945  esac
8946
8947  if test "x$lt_cv_dlopen" != xno; then
8948    enable_dlopen=yes
8949  else
8950    enable_dlopen=no
8951  fi
8952
8953  case $lt_cv_dlopen in
8954  dlopen)
8955    save_CPPFLAGS="$CPPFLAGS"
8956    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8957
8958    save_LDFLAGS="$LDFLAGS"
8959    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8960
8961    save_LIBS="$LIBS"
8962    LIBS="$lt_cv_dlopen_libs $LIBS"
8963
8964    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8965echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8966if test "${lt_cv_dlopen_self+set}" = set; then
8967  echo $ECHO_N "(cached) $ECHO_C" >&6
8968else
8969  	  if test "$cross_compiling" = yes; then :
8970  lt_cv_dlopen_self=cross
8971else
8972  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8973  lt_status=$lt_dlunknown
8974  cat > conftest.$ac_ext <<EOF
8975#line 8975 "configure"
8976#include "confdefs.h"
8977
8978#if HAVE_DLFCN_H
8979#include <dlfcn.h>
8980#endif
8981
8982#include <stdio.h>
8983
8984#ifdef RTLD_GLOBAL
8985#  define LT_DLGLOBAL		RTLD_GLOBAL
8986#else
8987#  ifdef DL_GLOBAL
8988#    define LT_DLGLOBAL		DL_GLOBAL
8989#  else
8990#    define LT_DLGLOBAL		0
8991#  endif
8992#endif
8993
8994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8995   find out it does not work in some platform. */
8996#ifndef LT_DLLAZY_OR_NOW
8997#  ifdef RTLD_LAZY
8998#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8999#  else
9000#    ifdef DL_LAZY
9001#      define LT_DLLAZY_OR_NOW		DL_LAZY
9002#    else
9003#      ifdef RTLD_NOW
9004#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9005#      else
9006#        ifdef DL_NOW
9007#          define LT_DLLAZY_OR_NOW	DL_NOW
9008#        else
9009#          define LT_DLLAZY_OR_NOW	0
9010#        endif
9011#      endif
9012#    endif
9013#  endif
9014#endif
9015
9016#ifdef __cplusplus
9017extern "C" void exit (int);
9018#endif
9019
9020void fnord() { int i=42;}
9021int main ()
9022{
9023  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9024  int status = $lt_dlunknown;
9025
9026  if (self)
9027    {
9028      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9029      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9030      /* dlclose (self); */
9031    }
9032
9033    exit (status);
9034}
9035EOF
9036  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037  (eval $ac_link) 2>&5
9038  ac_status=$?
9039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9041    (./conftest; exit; ) 2>/dev/null
9042    lt_status=$?
9043    case x$lt_status in
9044      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9045      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9046      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9047    esac
9048  else :
9049    # compilation failed
9050    lt_cv_dlopen_self=no
9051  fi
9052fi
9053rm -fr conftest*
9054
9055
9056fi
9057echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9058echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9059
9060    if test "x$lt_cv_dlopen_self" = xyes; then
9061      LDFLAGS="$LDFLAGS $link_static_flag"
9062      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9063echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9064if test "${lt_cv_dlopen_self_static+set}" = set; then
9065  echo $ECHO_N "(cached) $ECHO_C" >&6
9066else
9067  	  if test "$cross_compiling" = yes; then :
9068  lt_cv_dlopen_self_static=cross
9069else
9070  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9071  lt_status=$lt_dlunknown
9072  cat > conftest.$ac_ext <<EOF
9073#line 9073 "configure"
9074#include "confdefs.h"
9075
9076#if HAVE_DLFCN_H
9077#include <dlfcn.h>
9078#endif
9079
9080#include <stdio.h>
9081
9082#ifdef RTLD_GLOBAL
9083#  define LT_DLGLOBAL		RTLD_GLOBAL
9084#else
9085#  ifdef DL_GLOBAL
9086#    define LT_DLGLOBAL		DL_GLOBAL
9087#  else
9088#    define LT_DLGLOBAL		0
9089#  endif
9090#endif
9091
9092/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9093   find out it does not work in some platform. */
9094#ifndef LT_DLLAZY_OR_NOW
9095#  ifdef RTLD_LAZY
9096#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9097#  else
9098#    ifdef DL_LAZY
9099#      define LT_DLLAZY_OR_NOW		DL_LAZY
9100#    else
9101#      ifdef RTLD_NOW
9102#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9103#      else
9104#        ifdef DL_NOW
9105#          define LT_DLLAZY_OR_NOW	DL_NOW
9106#        else
9107#          define LT_DLLAZY_OR_NOW	0
9108#        endif
9109#      endif
9110#    endif
9111#  endif
9112#endif
9113
9114#ifdef __cplusplus
9115extern "C" void exit (int);
9116#endif
9117
9118void fnord() { int i=42;}
9119int main ()
9120{
9121  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9122  int status = $lt_dlunknown;
9123
9124  if (self)
9125    {
9126      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9127      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9128      /* dlclose (self); */
9129    }
9130
9131    exit (status);
9132}
9133EOF
9134  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9135  (eval $ac_link) 2>&5
9136  ac_status=$?
9137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9139    (./conftest; exit; ) 2>/dev/null
9140    lt_status=$?
9141    case x$lt_status in
9142      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9143      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9144      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9145    esac
9146  else :
9147    # compilation failed
9148    lt_cv_dlopen_self_static=no
9149  fi
9150fi
9151rm -fr conftest*
9152
9153
9154fi
9155echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9156echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9157    fi
9158
9159    CPPFLAGS="$save_CPPFLAGS"
9160    LDFLAGS="$save_LDFLAGS"
9161    LIBS="$save_LIBS"
9162    ;;
9163  esac
9164
9165  case $lt_cv_dlopen_self in
9166  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9167  *) enable_dlopen_self=unknown ;;
9168  esac
9169
9170  case $lt_cv_dlopen_self_static in
9171  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9172  *) enable_dlopen_self_static=unknown ;;
9173  esac
9174fi
9175
9176
9177# Report which librarie types wil actually be built
9178echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9179echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9180echo "$as_me:$LINENO: result: $can_build_shared" >&5
9181echo "${ECHO_T}$can_build_shared" >&6
9182
9183echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9184echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9185test "$can_build_shared" = "no" && enable_shared=no
9186
9187# On AIX, shared libraries and static libraries use the same namespace, and
9188# are all built from PIC.
9189case "$host_os" in
9190aix3*)
9191  test "$enable_shared" = yes && enable_static=no
9192  if test -n "$RANLIB"; then
9193    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9194    postinstall_cmds='$RANLIB $lib'
9195  fi
9196  ;;
9197
9198aix4* | aix5*)
9199  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9200    test "$enable_shared" = yes && enable_static=no
9201  fi
9202  ;;
9203  darwin* | rhapsody*)
9204  if test "$GCC" = yes; then
9205    archive_cmds_need_lc=no
9206    case "$host_os" in
9207    rhapsody* | darwin1.[012])
9208      allow_undefined_flag='-undefined suppress'
9209      ;;
9210    *) # Darwin 1.3 on
9211      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9212      	allow_undefined_flag='-flat_namespace -undefined suppress'
9213      else
9214        case ${MACOSX_DEPLOYMENT_TARGET} in
9215          10.[012])
9216            allow_undefined_flag='-flat_namespace -undefined suppress'
9217            ;;
9218          10.*)
9219            allow_undefined_flag='-undefined dynamic_lookup'
9220            ;;
9221        esac
9222      fi
9223      ;;
9224    esac
9225    output_verbose_link_cmd='echo'
9226    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9227    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9228    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9229    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}'
9230    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}'
9231    hardcode_direct=no
9232    hardcode_automatic=yes
9233    hardcode_shlibpath_var=unsupported
9234    whole_archive_flag_spec='-all_load $convenience'
9235    link_all_deplibs=yes
9236  else
9237    ld_shlibs=no
9238  fi
9239    ;;
9240esac
9241echo "$as_me:$LINENO: result: $enable_shared" >&5
9242echo "${ECHO_T}$enable_shared" >&6
9243
9244echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9245echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9246# Make sure either enable_shared or enable_static is yes.
9247test "$enable_shared" = yes || enable_static=yes
9248echo "$as_me:$LINENO: result: $enable_static" >&5
9249echo "${ECHO_T}$enable_static" >&6
9250
9251# The else clause should only fire when bootstrapping the
9252# libtool distribution, otherwise you forgot to ship ltmain.sh
9253# with your package, and you will get complaints that there are
9254# no rules to generate ltmain.sh.
9255if test -f "$ltmain"; then
9256  # See if we are running on zsh, and set the options which allow our commands through
9257  # without removal of \ escapes.
9258  if test -n "${ZSH_VERSION+set}" ; then
9259    setopt NO_GLOB_SUBST
9260  fi
9261  # Now quote all the things that may contain metacharacters while being
9262  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9263  # variables and quote the copies for generation of the libtool script.
9264  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9265    SED SHELL STRIP \
9266    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9267    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9268    deplibs_check_method reload_flag reload_cmds need_locks \
9269    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9270    lt_cv_sys_global_symbol_to_c_name_address \
9271    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9272    old_postinstall_cmds old_postuninstall_cmds \
9273    compiler \
9274    CC \
9275    LD \
9276    lt_prog_compiler_wl \
9277    lt_prog_compiler_pic \
9278    lt_prog_compiler_static \
9279    lt_prog_compiler_no_builtin_flag \
9280    export_dynamic_flag_spec \
9281    thread_safe_flag_spec \
9282    whole_archive_flag_spec \
9283    enable_shared_with_static_runtimes \
9284    old_archive_cmds \
9285    old_archive_from_new_cmds \
9286    predep_objects \
9287    postdep_objects \
9288    predeps \
9289    postdeps \
9290    compiler_lib_search_path \
9291    archive_cmds \
9292    archive_expsym_cmds \
9293    postinstall_cmds \
9294    postuninstall_cmds \
9295    old_archive_from_expsyms_cmds \
9296    allow_undefined_flag \
9297    no_undefined_flag \
9298    export_symbols_cmds \
9299    hardcode_libdir_flag_spec \
9300    hardcode_libdir_flag_spec_ld \
9301    hardcode_libdir_separator \
9302    hardcode_automatic \
9303    module_cmds \
9304    module_expsym_cmds \
9305    lt_cv_prog_compiler_c_o \
9306    exclude_expsyms \
9307    include_expsyms; do
9308
9309    case $var in
9310    old_archive_cmds | \
9311    old_archive_from_new_cmds | \
9312    archive_cmds | \
9313    archive_expsym_cmds | \
9314    module_cmds | \
9315    module_expsym_cmds | \
9316    old_archive_from_expsyms_cmds | \
9317    export_symbols_cmds | \
9318    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9319    postinstall_cmds | postuninstall_cmds | \
9320    old_postinstall_cmds | old_postuninstall_cmds | \
9321    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9322      # Double-quote double-evaled strings.
9323      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9324      ;;
9325    *)
9326      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9327      ;;
9328    esac
9329  done
9330
9331  case $lt_echo in
9332  *'\$0 --fallback-echo"')
9333    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9334    ;;
9335  esac
9336
9337cfgfile="${ofile}T"
9338  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9339  $rm -f "$cfgfile"
9340  { echo "$as_me:$LINENO: creating $ofile" >&5
9341echo "$as_me: creating $ofile" >&6;}
9342
9343  cat <<__EOF__ >> "$cfgfile"
9344#! $SHELL
9345
9346# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9347# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9348# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9349#
9350# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9351# Free Software Foundation, Inc.
9352#
9353# This file is part of GNU Libtool:
9354# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9355#
9356# This program is free software; you can redistribute it and/or modify
9357# it under the terms of the GNU General Public License as published by
9358# the Free Software Foundation; either version 2 of the License, or
9359# (at your option) any later version.
9360#
9361# This program is distributed in the hope that it will be useful, but
9362# WITHOUT ANY WARRANTY; without even the implied warranty of
9363# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9364# General Public License for more details.
9365#
9366# You should have received a copy of the GNU General Public License
9367# along with this program; if not, write to the Free Software
9368# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9369#
9370# As a special exception to the GNU General Public License, if you
9371# distribute this file as part of a program that contains a
9372# configuration script generated by Autoconf, you may include it under
9373# the same distribution terms that you use for the rest of that program.
9374
9375# A sed program that does not truncate output.
9376SED=$lt_SED
9377
9378# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9379Xsed="$SED -e s/^X//"
9380
9381# The HP-UX ksh and POSIX shell print the target directory to stdout
9382# if CDPATH is set.
9383if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9384
9385# The names of the tagged configurations supported by this script.
9386available_tags=
9387
9388# ### BEGIN LIBTOOL CONFIG
9389
9390# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9391
9392# Shell to use when invoking shell scripts.
9393SHELL=$lt_SHELL
9394
9395# Whether or not to build shared libraries.
9396build_libtool_libs=$enable_shared
9397
9398# Whether or not to build static libraries.
9399build_old_libs=$enable_static
9400
9401# Whether or not to add -lc for building shared libraries.
9402build_libtool_need_lc=$archive_cmds_need_lc
9403
9404# Whether or not to disallow shared libs when runtime libs are static
9405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9406
9407# Whether or not to optimize for fast installation.
9408fast_install=$enable_fast_install
9409
9410# The host system.
9411host_alias=$host_alias
9412host=$host
9413
9414# An echo program that does not interpret backslashes.
9415echo=$lt_echo
9416
9417# The archiver.
9418AR=$lt_AR
9419AR_FLAGS=$lt_AR_FLAGS
9420
9421# A C compiler.
9422LTCC=$lt_LTCC
9423
9424# A language-specific compiler.
9425CC=$lt_compiler
9426
9427# Is the compiler the GNU C compiler?
9428with_gcc=$GCC
9429
9430# An ERE matcher.
9431EGREP=$lt_EGREP
9432
9433# The linker used to build libraries.
9434LD=$lt_LD
9435
9436# Whether we need hard or soft links.
9437LN_S=$lt_LN_S
9438
9439# A BSD-compatible nm program.
9440NM=$lt_NM
9441
9442# A symbol stripping program
9443STRIP=$lt_STRIP
9444
9445# Used to examine libraries when file_magic_cmd begins "file"
9446MAGIC_CMD=$MAGIC_CMD
9447
9448# Used on cygwin: DLL creation program.
9449DLLTOOL="$DLLTOOL"
9450
9451# Used on cygwin: object dumper.
9452OBJDUMP="$OBJDUMP"
9453
9454# Used on cygwin: assembler.
9455AS="$AS"
9456
9457# The name of the directory that contains temporary libtool files.
9458objdir=$objdir
9459
9460# How to create reloadable object files.
9461reload_flag=$lt_reload_flag
9462reload_cmds=$lt_reload_cmds
9463
9464# How to pass a linker flag through the compiler.
9465wl=$lt_lt_prog_compiler_wl
9466
9467# Object file suffix (normally "o").
9468objext="$ac_objext"
9469
9470# Old archive suffix (normally "a").
9471libext="$libext"
9472
9473# Shared library suffix (normally ".so").
9474shrext_cmds='$shrext_cmds'
9475
9476# Executable file suffix (normally "").
9477exeext="$exeext"
9478
9479# Additional compiler flags for building library objects.
9480pic_flag=$lt_lt_prog_compiler_pic
9481pic_mode=$pic_mode
9482
9483# What is the maximum length of a command?
9484max_cmd_len=$lt_cv_sys_max_cmd_len
9485
9486# Does compiler simultaneously support -c and -o options?
9487compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9488
9489# Must we lock files when doing compilation ?
9490need_locks=$lt_need_locks
9491
9492# Do we need the lib prefix for modules?
9493need_lib_prefix=$need_lib_prefix
9494
9495# Do we need a version for libraries?
9496need_version=$need_version
9497
9498# Whether dlopen is supported.
9499dlopen_support=$enable_dlopen
9500
9501# Whether dlopen of programs is supported.
9502dlopen_self=$enable_dlopen_self
9503
9504# Whether dlopen of statically linked programs is supported.
9505dlopen_self_static=$enable_dlopen_self_static
9506
9507# Compiler flag to prevent dynamic linking.
9508link_static_flag=$lt_lt_prog_compiler_static
9509
9510# Compiler flag to turn off builtin functions.
9511no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9512
9513# Compiler flag to allow reflexive dlopens.
9514export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9515
9516# Compiler flag to generate shared objects directly from archives.
9517whole_archive_flag_spec=$lt_whole_archive_flag_spec
9518
9519# Compiler flag to generate thread-safe objects.
9520thread_safe_flag_spec=$lt_thread_safe_flag_spec
9521
9522# Library versioning type.
9523version_type=$version_type
9524
9525# Format of library name prefix.
9526libname_spec=$lt_libname_spec
9527
9528# List of archive names.  First name is the real one, the rest are links.
9529# The last name is the one that the linker finds with -lNAME.
9530library_names_spec=$lt_library_names_spec
9531
9532# The coded name of the library, if different from the real name.
9533soname_spec=$lt_soname_spec
9534
9535# Commands used to build and install an old-style archive.
9536RANLIB=$lt_RANLIB
9537old_archive_cmds=$lt_old_archive_cmds
9538old_postinstall_cmds=$lt_old_postinstall_cmds
9539old_postuninstall_cmds=$lt_old_postuninstall_cmds
9540
9541# Create an old-style archive from a shared archive.
9542old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9543
9544# Create a temporary old-style archive to link instead of a shared archive.
9545old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9546
9547# Commands used to build and install a shared archive.
9548archive_cmds=$lt_archive_cmds
9549archive_expsym_cmds=$lt_archive_expsym_cmds
9550postinstall_cmds=$lt_postinstall_cmds
9551postuninstall_cmds=$lt_postuninstall_cmds
9552
9553# Commands used to build a loadable module (assumed same as above if empty)
9554module_cmds=$lt_module_cmds
9555module_expsym_cmds=$lt_module_expsym_cmds
9556
9557# Commands to strip libraries.
9558old_striplib=$lt_old_striplib
9559striplib=$lt_striplib
9560
9561# Dependencies to place before the objects being linked to create a
9562# shared library.
9563predep_objects=$lt_predep_objects
9564
9565# Dependencies to place after the objects being linked to create a
9566# shared library.
9567postdep_objects=$lt_postdep_objects
9568
9569# Dependencies to place before the objects being linked to create a
9570# shared library.
9571predeps=$lt_predeps
9572
9573# Dependencies to place after the objects being linked to create a
9574# shared library.
9575postdeps=$lt_postdeps
9576
9577# The library search path used internally by the compiler when linking
9578# a shared library.
9579compiler_lib_search_path=$lt_compiler_lib_search_path
9580
9581# Method to check whether dependent libraries are shared objects.
9582deplibs_check_method=$lt_deplibs_check_method
9583
9584# Command to use when deplibs_check_method == file_magic.
9585file_magic_cmd=$lt_file_magic_cmd
9586
9587# Flag that allows shared libraries with undefined symbols to be built.
9588allow_undefined_flag=$lt_allow_undefined_flag
9589
9590# Flag that forces no undefined symbols.
9591no_undefined_flag=$lt_no_undefined_flag
9592
9593# Commands used to finish a libtool library installation in a directory.
9594finish_cmds=$lt_finish_cmds
9595
9596# Same as above, but a single script fragment to be evaled but not shown.
9597finish_eval=$lt_finish_eval
9598
9599# Take the output of nm and produce a listing of raw symbols and C names.
9600global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9601
9602# Transform the output of nm in a proper C declaration
9603global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9604
9605# Transform the output of nm in a C name address pair
9606global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9607
9608# This is the shared library runtime path variable.
9609runpath_var=$runpath_var
9610
9611# This is the shared library path variable.
9612shlibpath_var=$shlibpath_var
9613
9614# Is shlibpath searched before the hard-coded library search path?
9615shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9616
9617# How to hardcode a shared library path into an executable.
9618hardcode_action=$hardcode_action
9619
9620# Whether we should hardcode library paths into libraries.
9621hardcode_into_libs=$hardcode_into_libs
9622
9623# Flag to hardcode \$libdir into a binary during linking.
9624# This must work even if \$libdir does not exist.
9625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9626
9627# If ld is used when linking, flag to hardcode \$libdir into
9628# a binary during linking. This must work even if \$libdir does
9629# not exist.
9630hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9631
9632# Whether we need a single -rpath flag with a separated argument.
9633hardcode_libdir_separator=$lt_hardcode_libdir_separator
9634
9635# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9636# resulting binary.
9637hardcode_direct=$hardcode_direct
9638
9639# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9640# resulting binary.
9641hardcode_minus_L=$hardcode_minus_L
9642
9643# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9644# the resulting binary.
9645hardcode_shlibpath_var=$hardcode_shlibpath_var
9646
9647# Set to yes if building a shared library automatically hardcodes DIR into the library
9648# and all subsequent libraries and executables linked against it.
9649hardcode_automatic=$hardcode_automatic
9650
9651# Variables whose values should be saved in libtool wrapper scripts and
9652# restored at relink time.
9653variables_saved_for_relink="$variables_saved_for_relink"
9654
9655# Whether libtool must link a program against all its dependency libraries.
9656link_all_deplibs=$link_all_deplibs
9657
9658# Compile-time system search path for libraries
9659sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9660
9661# Run-time system search path for libraries
9662sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9663
9664# Fix the shell variable \$srcfile for the compiler.
9665fix_srcfile_path="$fix_srcfile_path"
9666
9667# Set to yes if exported symbols are required.
9668always_export_symbols=$always_export_symbols
9669
9670# The commands to list exported symbols.
9671export_symbols_cmds=$lt_export_symbols_cmds
9672
9673# The commands to extract the exported symbol list from a shared archive.
9674extract_expsyms_cmds=$lt_extract_expsyms_cmds
9675
9676# Symbols that should not be listed in the preloaded symbols.
9677exclude_expsyms=$lt_exclude_expsyms
9678
9679# Symbols that must always be exported.
9680include_expsyms=$lt_include_expsyms
9681
9682# ### END LIBTOOL CONFIG
9683
9684__EOF__
9685
9686
9687  case $host_os in
9688  aix3*)
9689    cat <<\EOF >> "$cfgfile"
9690
9691# AIX sometimes has problems with the GCC collect2 program.  For some
9692# reason, if we set the COLLECT_NAMES environment variable, the problems
9693# vanish in a puff of smoke.
9694if test "X${COLLECT_NAMES+set}" != Xset; then
9695  COLLECT_NAMES=
9696  export COLLECT_NAMES
9697fi
9698EOF
9699    ;;
9700  esac
9701
9702  # We use sed instead of cat because bash on DJGPP gets confused if
9703  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9704  # text mode, it properly converts lines to CR/LF.  This bash problem
9705  # is reportedly fixed, but why not run on old versions too?
9706  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9707
9708  mv -f "$cfgfile" "$ofile" || \
9709    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9710  chmod +x "$ofile"
9711
9712else
9713  # If there is no Makefile yet, we rely on a make rule to execute
9714  # `config.status --recheck' to rerun these tests and create the
9715  # libtool script then.
9716  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9717  if test -f "$ltmain_in"; then
9718    test -f Makefile && make "$ltmain"
9719  fi
9720fi
9721
9722
9723ac_ext=c
9724ac_cpp='$CPP $CPPFLAGS'
9725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9727ac_compiler_gnu=$ac_cv_c_compiler_gnu
9728
9729CC="$lt_save_CC"
9730
9731
9732# Check whether --with-tags or --without-tags was given.
9733if test "${with_tags+set}" = set; then
9734  withval="$with_tags"
9735  tagnames="$withval"
9736fi;
9737
9738if test -f "$ltmain" && test -n "$tagnames"; then
9739  if test ! -f "${ofile}"; then
9740    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9741echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9742  fi
9743
9744  if test -z "$LTCC"; then
9745    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9746    if test -z "$LTCC"; then
9747      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9748echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9749    else
9750      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9751echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9752    fi
9753  fi
9754
9755  # Extract list of available tagged configurations in $ofile.
9756  # Note that this assumes the entire list is on one line.
9757  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9758
9759  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9760  for tagname in $tagnames; do
9761    IFS="$lt_save_ifs"
9762    # Check whether tagname contains only valid characters
9763    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9764    "") ;;
9765    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9766echo "$as_me: error: invalid tag name: $tagname" >&2;}
9767   { (exit 1); exit 1; }; }
9768	;;
9769    esac
9770
9771    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9772    then
9773      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9774echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9775   { (exit 1); exit 1; }; }
9776    fi
9777
9778    # Update the list of available tags.
9779    if test -n "$tagname"; then
9780      echo appending configuration tag \"$tagname\" to $ofile
9781
9782      case $tagname in
9783      CXX)
9784	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9785	  ac_ext=cc
9786ac_cpp='$CXXCPP $CPPFLAGS'
9787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9790
9791
9792
9793
9794archive_cmds_need_lc_CXX=no
9795allow_undefined_flag_CXX=
9796always_export_symbols_CXX=no
9797archive_expsym_cmds_CXX=
9798export_dynamic_flag_spec_CXX=
9799hardcode_direct_CXX=no
9800hardcode_libdir_flag_spec_CXX=
9801hardcode_libdir_flag_spec_ld_CXX=
9802hardcode_libdir_separator_CXX=
9803hardcode_minus_L_CXX=no
9804hardcode_automatic_CXX=no
9805module_cmds_CXX=
9806module_expsym_cmds_CXX=
9807link_all_deplibs_CXX=unknown
9808old_archive_cmds_CXX=$old_archive_cmds
9809no_undefined_flag_CXX=
9810whole_archive_flag_spec_CXX=
9811enable_shared_with_static_runtimes_CXX=no
9812
9813# Dependencies to place before and after the object being linked:
9814predep_objects_CXX=
9815postdep_objects_CXX=
9816predeps_CXX=
9817postdeps_CXX=
9818compiler_lib_search_path_CXX=
9819
9820# Source file extension for C++ test sources.
9821ac_ext=cc
9822
9823# Object file extension for compiled C++ test sources.
9824objext=o
9825objext_CXX=$objext
9826
9827# Code to be used in simple compile tests
9828lt_simple_compile_test_code="int some_variable = 0;\n"
9829
9830# Code to be used in simple link tests
9831lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9832
9833# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9834
9835# If no C compiler was specified, use CC.
9836LTCC=${LTCC-"$CC"}
9837
9838# Allow CC to be a program name with arguments.
9839compiler=$CC
9840
9841
9842# Allow CC to be a program name with arguments.
9843lt_save_CC=$CC
9844lt_save_LD=$LD
9845lt_save_GCC=$GCC
9846GCC=$GXX
9847lt_save_with_gnu_ld=$with_gnu_ld
9848lt_save_path_LD=$lt_cv_path_LD
9849if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9850  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9851else
9852  unset lt_cv_prog_gnu_ld
9853fi
9854if test -n "${lt_cv_path_LDCXX+set}"; then
9855  lt_cv_path_LD=$lt_cv_path_LDCXX
9856else
9857  unset lt_cv_path_LD
9858fi
9859test -z "${LDCXX+set}" || LD=$LDCXX
9860CC=${CXX-"c++"}
9861compiler=$CC
9862compiler_CXX=$CC
9863cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9864
9865# We don't want -fno-exception wen compiling C++ code, so set the
9866# no_builtin_flag separately
9867if test "$GXX" = yes; then
9868  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9869else
9870  lt_prog_compiler_no_builtin_flag_CXX=
9871fi
9872
9873if test "$GXX" = yes; then
9874  # Set up default GNU C++ configuration
9875
9876
9877# Check whether --with-gnu-ld or --without-gnu-ld was given.
9878if test "${with_gnu_ld+set}" = set; then
9879  withval="$with_gnu_ld"
9880  test "$withval" = no || with_gnu_ld=yes
9881else
9882  with_gnu_ld=no
9883fi;
9884ac_prog=ld
9885if test "$GCC" = yes; then
9886  # Check if gcc -print-prog-name=ld gives a path.
9887  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9888echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9889  case $host in
9890  *-*-mingw*)
9891    # gcc leaves a trailing carriage return which upsets mingw
9892    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9893  *)
9894    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9895  esac
9896  case $ac_prog in
9897    # Accept absolute paths.
9898    [\\/]* | ?:[\\/]*)
9899      re_direlt='/[^/][^/]*/\.\./'
9900      # Canonicalize the pathname of ld
9901      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9902      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9903	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9904      done
9905      test -z "$LD" && LD="$ac_prog"
9906      ;;
9907  "")
9908    # If it fails, then pretend we aren't using GCC.
9909    ac_prog=ld
9910    ;;
9911  *)
9912    # If it is relative, then search for the first ld in PATH.
9913    with_gnu_ld=unknown
9914    ;;
9915  esac
9916elif test "$with_gnu_ld" = yes; then
9917  echo "$as_me:$LINENO: checking for GNU ld" >&5
9918echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9919else
9920  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9921echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9922fi
9923if test "${lt_cv_path_LD+set}" = set; then
9924  echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926  if test -z "$LD"; then
9927  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9928  for ac_dir in $PATH; do
9929    IFS="$lt_save_ifs"
9930    test -z "$ac_dir" && ac_dir=.
9931    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9932      lt_cv_path_LD="$ac_dir/$ac_prog"
9933      # Check to see if the program is GNU ld.  I'd rather use --version,
9934      # but apparently some GNU ld's only accept -v.
9935      # Break only if it was the GNU/non-GNU ld that we prefer.
9936      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9937      *GNU* | *'with BFD'*)
9938	test "$with_gnu_ld" != no && break
9939	;;
9940      *)
9941	test "$with_gnu_ld" != yes && break
9942	;;
9943      esac
9944    fi
9945  done
9946  IFS="$lt_save_ifs"
9947else
9948  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9949fi
9950fi
9951
9952LD="$lt_cv_path_LD"
9953if test -n "$LD"; then
9954  echo "$as_me:$LINENO: result: $LD" >&5
9955echo "${ECHO_T}$LD" >&6
9956else
9957  echo "$as_me:$LINENO: result: no" >&5
9958echo "${ECHO_T}no" >&6
9959fi
9960test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9961echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9962   { (exit 1); exit 1; }; }
9963echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9964echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9965if test "${lt_cv_prog_gnu_ld+set}" = set; then
9966  echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9969case `$LD -v 2>&1 </dev/null` in
9970*GNU* | *'with BFD'*)
9971  lt_cv_prog_gnu_ld=yes
9972  ;;
9973*)
9974  lt_cv_prog_gnu_ld=no
9975  ;;
9976esac
9977fi
9978echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9979echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9980with_gnu_ld=$lt_cv_prog_gnu_ld
9981
9982
9983
9984  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9985  # archiving commands below assume that GNU ld is being used.
9986  if test "$with_gnu_ld" = yes; then
9987    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9988    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'
9989
9990    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9991    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9992
9993    # If archive_cmds runs LD, not CC, wlarc should be empty
9994    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9995    #     investigate it a little bit more. (MM)
9996    wlarc='${wl}'
9997
9998    # ancient GNU ld didn't support --whole-archive et. al.
9999    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10000	grep 'no-whole-archive' > /dev/null; then
10001      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10002    else
10003      whole_archive_flag_spec_CXX=
10004    fi
10005  else
10006    with_gnu_ld=no
10007    wlarc=
10008
10009    # A generic and very simple default shared library creation
10010    # command for GNU C++ for the case where it uses the native
10011    # linker, instead of GNU ld.  If possible, this setting should
10012    # overridden to take advantage of the native linker features on
10013    # the platform it is being used on.
10014    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10015  fi
10016
10017  # Commands to make compiler produce verbose output that lists
10018  # what "hidden" libraries, object files and flags are used when
10019  # linking a shared library.
10020  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10021
10022else
10023  GXX=no
10024  with_gnu_ld=no
10025  wlarc=
10026fi
10027
10028# PORTME: fill in a description of your system's C++ link characteristics
10029echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10030echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10031ld_shlibs_CXX=yes
10032case $host_os in
10033  aix3*)
10034    # FIXME: insert proper C++ library support
10035    ld_shlibs_CXX=no
10036    ;;
10037  aix4* | aix5*)
10038    if test "$host_cpu" = ia64; then
10039      # On IA64, the linker does run time linking by default, so we don't
10040      # have to do anything special.
10041      aix_use_runtimelinking=no
10042      exp_sym_flag='-Bexport'
10043      no_entry_flag=""
10044    else
10045      aix_use_runtimelinking=no
10046
10047      # Test if we are trying to use run time linking or normal
10048      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10049      # need to do runtime linking.
10050      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10051	for ld_flag in $LDFLAGS; do
10052	  case $ld_flag in
10053	  *-brtl*)
10054	    aix_use_runtimelinking=yes
10055	    break
10056	    ;;
10057	  esac
10058	done
10059      esac
10060
10061      exp_sym_flag='-bexport'
10062      no_entry_flag='-bnoentry'
10063    fi
10064
10065    # When large executables or shared objects are built, AIX ld can
10066    # have problems creating the table of contents.  If linking a library
10067    # or program results in "error TOC overflow" add -mminimal-toc to
10068    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10069    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10070
10071    archive_cmds_CXX=''
10072    hardcode_direct_CXX=yes
10073    hardcode_libdir_separator_CXX=':'
10074    link_all_deplibs_CXX=yes
10075
10076    if test "$GXX" = yes; then
10077      case $host_os in aix4.012|aix4.012.*)
10078      # We only want to do this on AIX 4.2 and lower, the check
10079      # below for broken collect2 doesn't work under 4.3+
10080	collect2name=`${CC} -print-prog-name=collect2`
10081	if test -f "$collect2name" && \
10082	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10083	then
10084	  # We have reworked collect2
10085	  hardcode_direct_CXX=yes
10086	else
10087	  # We have old collect2
10088	  hardcode_direct_CXX=unsupported
10089	  # It fails to find uninstalled libraries when the uninstalled
10090	  # path is not listed in the libpath.  Setting hardcode_minus_L
10091	  # to unsupported forces relinking
10092	  hardcode_minus_L_CXX=yes
10093	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10094	  hardcode_libdir_separator_CXX=
10095	fi
10096      esac
10097      shared_flag='-shared'
10098    else
10099      # not using gcc
10100      if test "$host_cpu" = ia64; then
10101	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10102	# chokes on -Wl,-G. The following line is correct:
10103	shared_flag='-G'
10104      else
10105	if test "$aix_use_runtimelinking" = yes; then
10106	  shared_flag='${wl}-G'
10107	else
10108	  shared_flag='${wl}-bM:SRE'
10109	fi
10110      fi
10111    fi
10112
10113    # It seems that -bexpall does not export symbols beginning with
10114    # underscore (_), so it is better to generate a list of symbols to export.
10115    always_export_symbols_CXX=yes
10116    if test "$aix_use_runtimelinking" = yes; then
10117      # Warning - without using the other runtime loading flags (-brtl),
10118      # -berok will link without error, but may produce a broken library.
10119      allow_undefined_flag_CXX='-berok'
10120      # Determine the default libpath from the value encoded in an empty executable.
10121      cat >conftest.$ac_ext <<_ACEOF
10122/* confdefs.h.  */
10123_ACEOF
10124cat confdefs.h >>conftest.$ac_ext
10125cat >>conftest.$ac_ext <<_ACEOF
10126/* end confdefs.h.  */
10127
10128int
10129main ()
10130{
10131
10132  ;
10133  return 0;
10134}
10135_ACEOF
10136rm -f conftest.$ac_objext conftest$ac_exeext
10137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10138  (eval $ac_link) 2>conftest.er1
10139  ac_status=$?
10140  grep -v '^ *+' conftest.er1 >conftest.err
10141  rm -f conftest.er1
10142  cat conftest.err >&5
10143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144  (exit $ac_status); } &&
10145	 { ac_try='test -z "$ac_cxx_werror_flag"
10146			 || test ! -s conftest.err'
10147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148  (eval $ac_try) 2>&5
10149  ac_status=$?
10150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151  (exit $ac_status); }; } &&
10152	 { ac_try='test -s conftest$ac_exeext'
10153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154  (eval $ac_try) 2>&5
10155  ac_status=$?
10156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157  (exit $ac_status); }; }; then
10158
10159aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10160}'`
10161# Check for a 64-bit object if we didn't find anything.
10162if 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; }
10163}'`; fi
10164else
10165  echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168fi
10169rm -f conftest.err conftest.$ac_objext \
10170      conftest$ac_exeext conftest.$ac_ext
10171if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10172
10173      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10174
10175      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10176     else
10177      if test "$host_cpu" = ia64; then
10178	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10179	allow_undefined_flag_CXX="-z nodefs"
10180	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10181      else
10182	# Determine the default libpath from the value encoded in an empty executable.
10183	cat >conftest.$ac_ext <<_ACEOF
10184/* confdefs.h.  */
10185_ACEOF
10186cat confdefs.h >>conftest.$ac_ext
10187cat >>conftest.$ac_ext <<_ACEOF
10188/* end confdefs.h.  */
10189
10190int
10191main ()
10192{
10193
10194  ;
10195  return 0;
10196}
10197_ACEOF
10198rm -f conftest.$ac_objext conftest$ac_exeext
10199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200  (eval $ac_link) 2>conftest.er1
10201  ac_status=$?
10202  grep -v '^ *+' conftest.er1 >conftest.err
10203  rm -f conftest.er1
10204  cat conftest.err >&5
10205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206  (exit $ac_status); } &&
10207	 { ac_try='test -z "$ac_cxx_werror_flag"
10208			 || test ! -s conftest.err'
10209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210  (eval $ac_try) 2>&5
10211  ac_status=$?
10212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213  (exit $ac_status); }; } &&
10214	 { ac_try='test -s conftest$ac_exeext'
10215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216  (eval $ac_try) 2>&5
10217  ac_status=$?
10218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219  (exit $ac_status); }; }; then
10220
10221aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10222}'`
10223# Check for a 64-bit object if we didn't find anything.
10224if 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; }
10225}'`; fi
10226else
10227  echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
10230fi
10231rm -f conftest.err conftest.$ac_objext \
10232      conftest$ac_exeext conftest.$ac_ext
10233if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10234
10235	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10236	# Warning - without using the other run time loading flags,
10237	# -berok will link without error, but may produce a broken library.
10238	no_undefined_flag_CXX=' ${wl}-bernotok'
10239	allow_undefined_flag_CXX=' ${wl}-berok'
10240	# -bexpall does not export symbols beginning with underscore (_)
10241	always_export_symbols_CXX=yes
10242	# Exported symbols can be pulled into shared objects from archives
10243	whole_archive_flag_spec_CXX=' '
10244	archive_cmds_need_lc_CXX=yes
10245	# This is similar to how AIX traditionally builds it's shared libraries.
10246	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10247      fi
10248    fi
10249    ;;
10250  chorus*)
10251    case $cc_basename in
10252      *)
10253	# FIXME: insert proper C++ library support
10254	ld_shlibs_CXX=no
10255	;;
10256    esac
10257    ;;
10258
10259  cygwin* | mingw* | pw32*)
10260    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10261    # as there is no search path for DLLs.
10262    hardcode_libdir_flag_spec_CXX='-L$libdir'
10263    allow_undefined_flag_CXX=unsupported
10264    always_export_symbols_CXX=no
10265    enable_shared_with_static_runtimes_CXX=yes
10266
10267    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10268      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10269      # If the export-symbols file already is a .def file (1st line
10270      # is EXPORTS), use it as is; otherwise, prepend...
10271      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10272	cp $export_symbols $output_objdir/$soname.def;
10273      else
10274	echo EXPORTS > $output_objdir/$soname.def;
10275	cat $export_symbols >> $output_objdir/$soname.def;
10276      fi~
10277      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10278    else
10279      ld_shlibs_CXX=no
10280    fi
10281  ;;
10282
10283  darwin* | rhapsody*)
10284  if test "$GXX" = yes; then
10285    archive_cmds_need_lc_CXX=no
10286    case "$host_os" in
10287    rhapsody* | darwin1.[012])
10288      allow_undefined_flag_CXX='-undefined suppress'
10289      ;;
10290    *) # Darwin 1.3 on
10291      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10292      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10293      else
10294        case ${MACOSX_DEPLOYMENT_TARGET} in
10295          10.[012])
10296            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10297            ;;
10298          10.*)
10299            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10300            ;;
10301        esac
10302      fi
10303      ;;
10304    esac
10305    lt_int_apple_cc_single_mod=no
10306    output_verbose_link_cmd='echo'
10307    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10308      lt_int_apple_cc_single_mod=yes
10309    fi
10310    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10311      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10312    else
10313      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10314    fi
10315    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10316
10317    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10318    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10319      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}'
10320    else
10321      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10322    fi
10323    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}'
10324    hardcode_direct_CXX=no
10325    hardcode_automatic_CXX=yes
10326    hardcode_shlibpath_var_CXX=unsupported
10327    whole_archive_flag_spec_CXX='-all_load $convenience'
10328    link_all_deplibs_CXX=yes
10329  else
10330    ld_shlibs_CXX=no
10331  fi
10332    ;;
10333
10334  dgux*)
10335    case $cc_basename in
10336      ec++)
10337	# FIXME: insert proper C++ library support
10338	ld_shlibs_CXX=no
10339	;;
10340      ghcx)
10341	# Green Hills C++ Compiler
10342	# FIXME: insert proper C++ library support
10343	ld_shlibs_CXX=no
10344	;;
10345      *)
10346	# FIXME: insert proper C++ library support
10347	ld_shlibs_CXX=no
10348	;;
10349    esac
10350    ;;
10351  freebsd12*)
10352    # C++ shared libraries reported to be fairly broken before switch to ELF
10353    ld_shlibs_CXX=no
10354    ;;
10355  freebsd-elf*)
10356    archive_cmds_need_lc_CXX=no
10357    ;;
10358  freebsd* | kfreebsd*-gnu)
10359    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10360    # conventions
10361    ld_shlibs_CXX=yes
10362    ;;
10363  gnu*)
10364    ;;
10365  hpux9*)
10366    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10367    hardcode_libdir_separator_CXX=:
10368    export_dynamic_flag_spec_CXX='${wl}-E'
10369    hardcode_direct_CXX=yes
10370    hardcode_minus_L_CXX=yes # Not in the search PATH,
10371				# but as the default
10372				# location of the library.
10373
10374    case $cc_basename in
10375    CC)
10376      # FIXME: insert proper C++ library support
10377      ld_shlibs_CXX=no
10378      ;;
10379    aCC)
10380      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'
10381      # Commands to make compiler produce verbose output that lists
10382      # what "hidden" libraries, object files and flags are used when
10383      # linking a shared library.
10384      #
10385      # There doesn't appear to be a way to prevent this compiler from
10386      # explicitly linking system object files so we need to strip them
10387      # from the output so that they don't get included in the library
10388      # dependencies.
10389      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'
10390      ;;
10391    *)
10392      if test "$GXX" = yes; then
10393        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'
10394      else
10395        # FIXME: insert proper C++ library support
10396        ld_shlibs_CXX=no
10397      fi
10398      ;;
10399    esac
10400    ;;
10401  hpux10*|hpux11*)
10402    if test $with_gnu_ld = no; then
10403      case "$host_cpu" in
10404      hppa*64*)
10405	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10406	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10407	hardcode_libdir_separator_CXX=:
10408        ;;
10409      ia64*)
10410	hardcode_libdir_flag_spec_CXX='-L$libdir'
10411        ;;
10412      *)
10413	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10414	hardcode_libdir_separator_CXX=:
10415	export_dynamic_flag_spec_CXX='${wl}-E'
10416        ;;
10417      esac
10418    fi
10419    case "$host_cpu" in
10420    hppa*64*)
10421      hardcode_direct_CXX=no
10422      hardcode_shlibpath_var_CXX=no
10423      ;;
10424    ia64*)
10425      hardcode_direct_CXX=no
10426      hardcode_shlibpath_var_CXX=no
10427      hardcode_minus_L_CXX=yes # Not in the search PATH,
10428					      # but as the default
10429					      # location of the library.
10430      ;;
10431    *)
10432      hardcode_direct_CXX=yes
10433      hardcode_minus_L_CXX=yes # Not in the search PATH,
10434					      # but as the default
10435					      # location of the library.
10436      ;;
10437    esac
10438
10439    case $cc_basename in
10440      CC)
10441	# FIXME: insert proper C++ library support
10442	ld_shlibs_CXX=no
10443	;;
10444      aCC)
10445	case "$host_cpu" in
10446	hppa*64*|ia64*)
10447	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10448	  ;;
10449	*)
10450	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10451	  ;;
10452	esac
10453	# Commands to make compiler produce verbose output that lists
10454	# what "hidden" libraries, object files and flags are used when
10455	# linking a shared library.
10456	#
10457	# There doesn't appear to be a way to prevent this compiler from
10458	# explicitly linking system object files so we need to strip them
10459	# from the output so that they don't get included in the library
10460	# dependencies.
10461	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'
10462	;;
10463      *)
10464	if test "$GXX" = yes; then
10465	  if test $with_gnu_ld = no; then
10466	    case "$host_cpu" in
10467	    ia64*|hppa*64*)
10468	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10469	      ;;
10470	    *)
10471	      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'
10472	      ;;
10473	    esac
10474	  fi
10475	else
10476	  # FIXME: insert proper C++ library support
10477	  ld_shlibs_CXX=no
10478	fi
10479	;;
10480    esac
10481    ;;
10482  irix5* | irix6*)
10483    case $cc_basename in
10484      CC)
10485	# SGI C++
10486	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10487
10488	# Archives containing C++ object files must be created using
10489	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10490	# necessary to make sure instantiated templates are included
10491	# in the archive.
10492	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10493	;;
10494      *)
10495	if test "$GXX" = yes; then
10496	  if test "$with_gnu_ld" = no; then
10497	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10498	  else
10499	    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'
10500	  fi
10501	fi
10502	link_all_deplibs_CXX=yes
10503	;;
10504    esac
10505    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10506    hardcode_libdir_separator_CXX=:
10507    ;;
10508  linux*)
10509    case $cc_basename in
10510      KCC)
10511	# Kuck and Associates, Inc. (KAI) C++ Compiler
10512
10513	# KCC will only create a shared library if the output file
10514	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10515	# to its proper name (with version) after linking.
10516	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'
10517	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'
10518	# Commands to make compiler produce verbose output that lists
10519	# what "hidden" libraries, object files and flags are used when
10520	# linking a shared library.
10521	#
10522	# There doesn't appear to be a way to prevent this compiler from
10523	# explicitly linking system object files so we need to strip them
10524	# from the output so that they don't get included in the library
10525	# dependencies.
10526	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'
10527
10528	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10529	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10530
10531	# Archives containing C++ object files must be created using
10532	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10533	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10534	;;
10535      icpc)
10536	# Intel C++
10537	with_gnu_ld=yes
10538	archive_cmds_need_lc_CXX=no
10539	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10540	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'
10541	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10542	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10543	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10544	;;
10545      cxx)
10546	# Compaq C++
10547	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10548	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'
10549
10550	runpath_var=LD_RUN_PATH
10551	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10552	hardcode_libdir_separator_CXX=:
10553
10554	# Commands to make compiler produce verbose output that lists
10555	# what "hidden" libraries, object files and flags are used when
10556	# linking a shared library.
10557	#
10558	# There doesn't appear to be a way to prevent this compiler from
10559	# explicitly linking system object files so we need to strip them
10560	# from the output so that they don't get included in the library
10561	# dependencies.
10562	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'
10563	;;
10564    esac
10565    ;;
10566  lynxos*)
10567    # FIXME: insert proper C++ library support
10568    ld_shlibs_CXX=no
10569    ;;
10570  m88k*)
10571    # FIXME: insert proper C++ library support
10572    ld_shlibs_CXX=no
10573    ;;
10574  mvs*)
10575    case $cc_basename in
10576      cxx)
10577	# FIXME: insert proper C++ library support
10578	ld_shlibs_CXX=no
10579	;;
10580      *)
10581	# FIXME: insert proper C++ library support
10582	ld_shlibs_CXX=no
10583	;;
10584    esac
10585    ;;
10586  netbsd*)
10587    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10588      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10589      wlarc=
10590      hardcode_libdir_flag_spec_CXX='-R$libdir'
10591      hardcode_direct_CXX=yes
10592      hardcode_shlibpath_var_CXX=no
10593    fi
10594    # Workaround some broken pre-1.5 toolchains
10595    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10596    ;;
10597  osf3*)
10598    case $cc_basename in
10599      KCC)
10600	# Kuck and Associates, Inc. (KAI) C++ Compiler
10601
10602	# KCC will only create a shared library if the output file
10603	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10604	# to its proper name (with version) after linking.
10605	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'
10606
10607	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10608	hardcode_libdir_separator_CXX=:
10609
10610	# Archives containing C++ object files must be created using
10611	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10612	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10613
10614	;;
10615      RCC)
10616	# Rational C++ 2.4.1
10617	# FIXME: insert proper C++ library support
10618	ld_shlibs_CXX=no
10619	;;
10620      cxx)
10621	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10622	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10623
10624	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10625	hardcode_libdir_separator_CXX=:
10626
10627	# Commands to make compiler produce verbose output that lists
10628	# what "hidden" libraries, object files and flags are used when
10629	# linking a shared library.
10630	#
10631	# There doesn't appear to be a way to prevent this compiler from
10632	# explicitly linking system object files so we need to strip them
10633	# from the output so that they don't get included in the library
10634	# dependencies.
10635	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'
10636	;;
10637      *)
10638	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10639	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10640	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10641
10642	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10643	  hardcode_libdir_separator_CXX=:
10644
10645	  # Commands to make compiler produce verbose output that lists
10646	  # what "hidden" libraries, object files and flags are used when
10647	  # linking a shared library.
10648	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10649
10650	else
10651	  # FIXME: insert proper C++ library support
10652	  ld_shlibs_CXX=no
10653	fi
10654	;;
10655    esac
10656    ;;
10657  osf4* | osf5*)
10658    case $cc_basename in
10659      KCC)
10660	# Kuck and Associates, Inc. (KAI) C++ Compiler
10661
10662	# KCC will only create a shared library if the output file
10663	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10664	# to its proper name (with version) after linking.
10665	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'
10666
10667	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10668	hardcode_libdir_separator_CXX=:
10669
10670	# Archives containing C++ object files must be created using
10671	# the KAI C++ compiler.
10672	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10673	;;
10674      RCC)
10675	# Rational C++ 2.4.1
10676	# FIXME: insert proper C++ library support
10677	ld_shlibs_CXX=no
10678	;;
10679      cxx)
10680	allow_undefined_flag_CXX=' -expect_unresolved \*'
10681	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10682	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10683	  echo "-hidden">> $lib.exp~
10684	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
10685	  $rm $lib.exp'
10686
10687	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10688	hardcode_libdir_separator_CXX=:
10689
10690	# Commands to make compiler produce verbose output that lists
10691	# what "hidden" libraries, object files and flags are used when
10692	# linking a shared library.
10693	#
10694	# There doesn't appear to be a way to prevent this compiler from
10695	# explicitly linking system object files so we need to strip them
10696	# from the output so that they don't get included in the library
10697	# dependencies.
10698	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'
10699	;;
10700      *)
10701	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10702	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10703	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10704
10705	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10706	  hardcode_libdir_separator_CXX=:
10707
10708	  # Commands to make compiler produce verbose output that lists
10709	  # what "hidden" libraries, object files and flags are used when
10710	  # linking a shared library.
10711	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10712
10713	else
10714	  # FIXME: insert proper C++ library support
10715	  ld_shlibs_CXX=no
10716	fi
10717	;;
10718    esac
10719    ;;
10720  psos*)
10721    # FIXME: insert proper C++ library support
10722    ld_shlibs_CXX=no
10723    ;;
10724  sco*)
10725    archive_cmds_need_lc_CXX=no
10726    case $cc_basename in
10727      CC)
10728	# FIXME: insert proper C++ library support
10729	ld_shlibs_CXX=no
10730	;;
10731      *)
10732	# FIXME: insert proper C++ library support
10733	ld_shlibs_CXX=no
10734	;;
10735    esac
10736    ;;
10737  sunos4*)
10738    case $cc_basename in
10739      CC)
10740	# Sun C++ 4.x
10741	# FIXME: insert proper C++ library support
10742	ld_shlibs_CXX=no
10743	;;
10744      lcc)
10745	# Lucid
10746	# FIXME: insert proper C++ library support
10747	ld_shlibs_CXX=no
10748	;;
10749      *)
10750	# FIXME: insert proper C++ library support
10751	ld_shlibs_CXX=no
10752	;;
10753    esac
10754    ;;
10755  solaris*)
10756    case $cc_basename in
10757      CC)
10758	# Sun C++ 4.2, 5.x and Centerline C++
10759	no_undefined_flag_CXX=' -zdefs'
10760	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10761	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10762	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10763
10764	hardcode_libdir_flag_spec_CXX='-R$libdir'
10765	hardcode_shlibpath_var_CXX=no
10766	case $host_os in
10767	  solaris2.0-5 | solaris2.0-5.*) ;;
10768	  *)
10769	    # The C++ compiler is used as linker so we must use $wl
10770	    # flag to pass the commands to the underlying system
10771	    # linker.
10772	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10773	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10774	    ;;
10775	esac
10776	link_all_deplibs_CXX=yes
10777
10778	# Commands to make compiler produce verbose output that lists
10779	# what "hidden" libraries, object files and flags are used when
10780	# linking a shared library.
10781	#
10782	# There doesn't appear to be a way to prevent this compiler from
10783	# explicitly linking system object files so we need to strip them
10784	# from the output so that they don't get included in the library
10785	# dependencies.
10786	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10787
10788	# Archives containing C++ object files must be created using
10789	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10790	# necessary to make sure instantiated templates are included
10791	# in the archive.
10792	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10793	;;
10794      gcx)
10795	# Green Hills C++ Compiler
10796	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10797
10798	# The C++ compiler must be used to create the archive.
10799	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10800	;;
10801      *)
10802	# GNU C++ compiler with Solaris linker
10803	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10804	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10805	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10806	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10807	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10808		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10809
10810	    # Commands to make compiler produce verbose output that lists
10811	    # what "hidden" libraries, object files and flags are used when
10812	    # linking a shared library.
10813	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10814	  else
10815	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10816	    # platform.
10817	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10818	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10819		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10820
10821	    # Commands to make compiler produce verbose output that lists
10822	    # what "hidden" libraries, object files and flags are used when
10823	    # linking a shared library.
10824	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10825	  fi
10826
10827	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10828	fi
10829	;;
10830    esac
10831    ;;
10832  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10833    archive_cmds_need_lc_CXX=no
10834    ;;
10835  tandem*)
10836    case $cc_basename in
10837      NCC)
10838	# NonStop-UX NCC 3.20
10839	# FIXME: insert proper C++ library support
10840	ld_shlibs_CXX=no
10841	;;
10842      *)
10843	# FIXME: insert proper C++ library support
10844	ld_shlibs_CXX=no
10845	;;
10846    esac
10847    ;;
10848  vxworks*)
10849    # FIXME: insert proper C++ library support
10850    ld_shlibs_CXX=no
10851    ;;
10852  *)
10853    # FIXME: insert proper C++ library support
10854    ld_shlibs_CXX=no
10855    ;;
10856esac
10857echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10858echo "${ECHO_T}$ld_shlibs_CXX" >&6
10859test "$ld_shlibs_CXX" = no && can_build_shared=no
10860
10861GCC_CXX="$GXX"
10862LD_CXX="$LD"
10863
10864
10865cat > conftest.$ac_ext <<EOF
10866class Foo
10867{
10868public:
10869  Foo (void) { a = 0; }
10870private:
10871  int a;
10872};
10873EOF
10874
10875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876  (eval $ac_compile) 2>&5
10877  ac_status=$?
10878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879  (exit $ac_status); }; then
10880  # Parse the compiler output and extract the necessary
10881  # objects, libraries and library flags.
10882
10883  # Sentinel used to keep track of whether or not we are before
10884  # the conftest object file.
10885  pre_test_object_deps_done=no
10886
10887  # The `*' in the case matches for architectures that use `case' in
10888  # $output_verbose_cmd can trigger glob expansion during the loop
10889  # eval without this substitution.
10890  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10891
10892  for p in `eval $output_verbose_link_cmd`; do
10893    case $p in
10894
10895    -L* | -R* | -l*)
10896       # Some compilers place space between "-{L,R}" and the path.
10897       # Remove the space.
10898       if test $p = "-L" \
10899	  || test $p = "-R"; then
10900	 prev=$p
10901	 continue
10902       else
10903	 prev=
10904       fi
10905
10906       if test "$pre_test_object_deps_done" = no; then
10907	 case $p in
10908	 -L* | -R*)
10909	   # Internal compiler library paths should come after those
10910	   # provided the user.  The postdeps already come after the
10911	   # user supplied libs so there is no need to process them.
10912	   if test -z "$compiler_lib_search_path_CXX"; then
10913	     compiler_lib_search_path_CXX="${prev}${p}"
10914	   else
10915	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10916	   fi
10917	   ;;
10918	 # The "-l" case would never come before the object being
10919	 # linked, so don't bother handling this case.
10920	 esac
10921       else
10922	 if test -z "$postdeps_CXX"; then
10923	   postdeps_CXX="${prev}${p}"
10924	 else
10925	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10926	 fi
10927       fi
10928       ;;
10929
10930    *.$objext)
10931       # This assumes that the test object file only shows up
10932       # once in the compiler output.
10933       if test "$p" = "conftest.$objext"; then
10934	 pre_test_object_deps_done=yes
10935	 continue
10936       fi
10937
10938       if test "$pre_test_object_deps_done" = no; then
10939	 if test -z "$predep_objects_CXX"; then
10940	   predep_objects_CXX="$p"
10941	 else
10942	   predep_objects_CXX="$predep_objects_CXX $p"
10943	 fi
10944       else
10945	 if test -z "$postdep_objects_CXX"; then
10946	   postdep_objects_CXX="$p"
10947	 else
10948	   postdep_objects_CXX="$postdep_objects_CXX $p"
10949	 fi
10950       fi
10951       ;;
10952
10953    *) ;; # Ignore the rest.
10954
10955    esac
10956  done
10957
10958  # Clean up.
10959  rm -f a.out a.exe
10960else
10961  echo "libtool.m4: error: problem compiling CXX test program"
10962fi
10963
10964$rm -f confest.$objext
10965
10966case " $postdeps_CXX " in
10967*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10968esac
10969
10970lt_prog_compiler_wl_CXX=
10971lt_prog_compiler_pic_CXX=
10972lt_prog_compiler_static_CXX=
10973
10974echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10975echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10976
10977  # C++ specific cases for pic, static, wl, etc.
10978  if test "$GXX" = yes; then
10979    lt_prog_compiler_wl_CXX='-Wl,'
10980    lt_prog_compiler_static_CXX='-static'
10981
10982    case $host_os in
10983    aix*)
10984      # All AIX code is PIC.
10985      if test "$host_cpu" = ia64; then
10986	# AIX 5 now supports IA64 processor
10987	lt_prog_compiler_static_CXX='-Bstatic'
10988      fi
10989      ;;
10990    amigaos*)
10991      # FIXME: we need at least 68020 code to build shared libraries, but
10992      # adding the `-m68020' flag to GCC prevents building anything better,
10993      # like `-m68040'.
10994      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10995      ;;
10996    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10997      # PIC is the default for these OSes.
10998      ;;
10999    mingw* | os2* | pw32*)
11000      # This hack is so that the source file can tell whether it is being
11001      # built for inclusion in a dll (and should export symbols for example).
11002      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11003      ;;
11004    darwin* | rhapsody*)
11005      # PIC is the default on this platform
11006      # Common symbols not allowed in MH_DYLIB files
11007      lt_prog_compiler_pic_CXX='-fno-common'
11008      ;;
11009    *djgpp*)
11010      # DJGPP does not support shared libraries at all
11011      lt_prog_compiler_pic_CXX=
11012      ;;
11013    sysv4*MP*)
11014      if test -d /usr/nec; then
11015	lt_prog_compiler_pic_CXX=-Kconform_pic
11016      fi
11017      ;;
11018    hpux*)
11019      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11020      # not for PA HP-UX.
11021      case "$host_cpu" in
11022      hppa*64*|ia64*)
11023	;;
11024      *)
11025	lt_prog_compiler_pic_CXX='-fPIC'
11026	;;
11027      esac
11028      ;;
11029    *)
11030      lt_prog_compiler_pic_CXX='-fPIC'
11031      ;;
11032    esac
11033  else
11034    case $host_os in
11035      aix4* | aix5*)
11036	# All AIX code is PIC.
11037	if test "$host_cpu" = ia64; then
11038	  # AIX 5 now supports IA64 processor
11039	  lt_prog_compiler_static_CXX='-Bstatic'
11040	else
11041	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11042	fi
11043	;;
11044      chorus*)
11045	case $cc_basename in
11046	cxch68)
11047	  # Green Hills C++ Compiler
11048	  # _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"
11049	  ;;
11050	esac
11051	;;
11052      dgux*)
11053	case $cc_basename in
11054	  ec++)
11055	    lt_prog_compiler_pic_CXX='-KPIC'
11056	    ;;
11057	  ghcx)
11058	    # Green Hills C++ Compiler
11059	    lt_prog_compiler_pic_CXX='-pic'
11060	    ;;
11061	  *)
11062	    ;;
11063	esac
11064	;;
11065      freebsd* | kfreebsd*-gnu)
11066	# FreeBSD uses GNU C++
11067	;;
11068      hpux9* | hpux10* | hpux11*)
11069	case $cc_basename in
11070	  CC)
11071	    lt_prog_compiler_wl_CXX='-Wl,'
11072	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11073	    if test "$host_cpu" != ia64; then
11074	      lt_prog_compiler_pic_CXX='+Z'
11075	    fi
11076	    ;;
11077	  aCC)
11078	    lt_prog_compiler_wl_CXX='-Wl,'
11079	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11080	    case "$host_cpu" in
11081	    hppa*64*|ia64*)
11082	      # +Z the default
11083	      ;;
11084	    *)
11085	      lt_prog_compiler_pic_CXX='+Z'
11086	      ;;
11087	    esac
11088	    ;;
11089	  *)
11090	    ;;
11091	esac
11092	;;
11093      irix5* | irix6* | nonstopux*)
11094	case $cc_basename in
11095	  CC)
11096	    lt_prog_compiler_wl_CXX='-Wl,'
11097	    lt_prog_compiler_static_CXX='-non_shared'
11098	    # CC pic flag -KPIC is the default.
11099	    ;;
11100	  *)
11101	    ;;
11102	esac
11103	;;
11104      linux*)
11105	case $cc_basename in
11106	  KCC)
11107	    # KAI C++ Compiler
11108	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11109	    lt_prog_compiler_pic_CXX='-fPIC'
11110	    ;;
11111	  icpc)
11112	    # Intel C++
11113	    lt_prog_compiler_wl_CXX='-Wl,'
11114	    lt_prog_compiler_pic_CXX='-KPIC'
11115	    lt_prog_compiler_static_CXX='-static'
11116	    ;;
11117	  cxx)
11118	    # Compaq C++
11119	    # Make sure the PIC flag is empty.  It appears that all Alpha
11120	    # Linux and Compaq Tru64 Unix objects are PIC.
11121	    lt_prog_compiler_pic_CXX=
11122	    lt_prog_compiler_static_CXX='-non_shared'
11123	    ;;
11124	  *)
11125	    ;;
11126	esac
11127	;;
11128      lynxos*)
11129	;;
11130      m88k*)
11131	;;
11132      mvs*)
11133	case $cc_basename in
11134	  cxx)
11135	    lt_prog_compiler_pic_CXX='-W c,exportall'
11136	    ;;
11137	  *)
11138	    ;;
11139	esac
11140	;;
11141      netbsd*)
11142	;;
11143      osf3* | osf4* | osf5*)
11144	case $cc_basename in
11145	  KCC)
11146	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11147	    ;;
11148	  RCC)
11149	    # Rational C++ 2.4.1
11150	    lt_prog_compiler_pic_CXX='-pic'
11151	    ;;
11152	  cxx)
11153	    # Digital/Compaq C++
11154	    lt_prog_compiler_wl_CXX='-Wl,'
11155	    # Make sure the PIC flag is empty.  It appears that all Alpha
11156	    # Linux and Compaq Tru64 Unix objects are PIC.
11157	    lt_prog_compiler_pic_CXX=
11158	    lt_prog_compiler_static_CXX='-non_shared'
11159	    ;;
11160	  *)
11161	    ;;
11162	esac
11163	;;
11164      psos*)
11165	;;
11166      sco*)
11167	case $cc_basename in
11168	  CC)
11169	    lt_prog_compiler_pic_CXX='-fPIC'
11170	    ;;
11171	  *)
11172	    ;;
11173	esac
11174	;;
11175      solaris*)
11176	case $cc_basename in
11177	  CC)
11178	    # Sun C++ 4.2, 5.x and Centerline C++
11179	    lt_prog_compiler_pic_CXX='-KPIC'
11180	    lt_prog_compiler_static_CXX='-Bstatic'
11181	    lt_prog_compiler_wl_CXX='-Qoption ld '
11182	    ;;
11183	  gcx)
11184	    # Green Hills C++ Compiler
11185	    lt_prog_compiler_pic_CXX='-PIC'
11186	    ;;
11187	  *)
11188	    ;;
11189	esac
11190	;;
11191      sunos4*)
11192	case $cc_basename in
11193	  CC)
11194	    # Sun C++ 4.x
11195	    lt_prog_compiler_pic_CXX='-pic'
11196	    lt_prog_compiler_static_CXX='-Bstatic'
11197	    ;;
11198	  lcc)
11199	    # Lucid
11200	    lt_prog_compiler_pic_CXX='-pic'
11201	    ;;
11202	  *)
11203	    ;;
11204	esac
11205	;;
11206      tandem*)
11207	case $cc_basename in
11208	  NCC)
11209	    # NonStop-UX NCC 3.20
11210	    lt_prog_compiler_pic_CXX='-KPIC'
11211	    ;;
11212	  *)
11213	    ;;
11214	esac
11215	;;
11216      unixware*)
11217	;;
11218      vxworks*)
11219	;;
11220      *)
11221	lt_prog_compiler_can_build_shared_CXX=no
11222	;;
11223    esac
11224  fi
11225
11226echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11227echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11228
11229#
11230# Check to make sure the PIC flag actually works.
11231#
11232if test -n "$lt_prog_compiler_pic_CXX"; then
11233
11234echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11235echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11236if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11237  echo $ECHO_N "(cached) $ECHO_C" >&6
11238else
11239  lt_prog_compiler_pic_works_CXX=no
11240  ac_outfile=conftest.$ac_objext
11241   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11242   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11243   # Insert the option either (1) after the last *FLAGS variable, or
11244   # (2) before a word containing "conftest.", or (3) at the end.
11245   # Note that $ac_compile itself does not contain backslashes and begins
11246   # with a dollar sign (not a hyphen), so the echo should work correctly.
11247   # The option is referenced via a variable to avoid confusing sed.
11248   lt_compile=`echo "$ac_compile" | $SED \
11249   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11250   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11251   -e 's:$: $lt_compiler_flag:'`
11252   (eval echo "\"\$as_me:11252: $lt_compile\"" >&5)
11253   (eval "$lt_compile" 2>conftest.err)
11254   ac_status=$?
11255   cat conftest.err >&5
11256   echo "$as_me:11256: \$? = $ac_status" >&5
11257   if (exit $ac_status) && test -s "$ac_outfile"; then
11258     # The compiler can only warn and ignore the option if not recognized
11259     # So say no if there are warnings
11260     if test ! -s conftest.err; then
11261       lt_prog_compiler_pic_works_CXX=yes
11262     fi
11263   fi
11264   $rm conftest*
11265
11266fi
11267echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11268echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11269
11270if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11271    case $lt_prog_compiler_pic_CXX in
11272     "" | " "*) ;;
11273     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11274     esac
11275else
11276    lt_prog_compiler_pic_CXX=
11277     lt_prog_compiler_can_build_shared_CXX=no
11278fi
11279
11280fi
11281case "$host_os" in
11282  # For platforms which do not support PIC, -DPIC is meaningless:
11283  *djgpp*)
11284    lt_prog_compiler_pic_CXX=
11285    ;;
11286  *)
11287    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11288    ;;
11289esac
11290
11291echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11292echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11293if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11294  echo $ECHO_N "(cached) $ECHO_C" >&6
11295else
11296  lt_cv_prog_compiler_c_o_CXX=no
11297   $rm -r conftest 2>/dev/null
11298   mkdir conftest
11299   cd conftest
11300   mkdir out
11301   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11302
11303   lt_compiler_flag="-o out/conftest2.$ac_objext"
11304   # Insert the option either (1) after the last *FLAGS variable, or
11305   # (2) before a word containing "conftest.", or (3) at the end.
11306   # Note that $ac_compile itself does not contain backslashes and begins
11307   # with a dollar sign (not a hyphen), so the echo should work correctly.
11308   lt_compile=`echo "$ac_compile" | $SED \
11309   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11310   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11311   -e 's:$: $lt_compiler_flag:'`
11312   (eval echo "\"\$as_me:11312: $lt_compile\"" >&5)
11313   (eval "$lt_compile" 2>out/conftest.err)
11314   ac_status=$?
11315   cat out/conftest.err >&5
11316   echo "$as_me:11316: \$? = $ac_status" >&5
11317   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11318   then
11319     # The compiler can only warn and ignore the option if not recognized
11320     # So say no if there are warnings
11321     if test ! -s out/conftest.err; then
11322       lt_cv_prog_compiler_c_o_CXX=yes
11323     fi
11324   fi
11325   chmod u+w .
11326   $rm conftest*
11327   # SGI C++ compiler will create directory out/ii_files/ for
11328   # template instantiation
11329   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11330   $rm out/* && rmdir out
11331   cd ..
11332   rmdir conftest
11333   $rm conftest*
11334
11335fi
11336echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11337echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11338
11339
11340hard_links="nottested"
11341if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11342  # do not overwrite the value of need_locks provided by the user
11343  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11344echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11345  hard_links=yes
11346  $rm conftest*
11347  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11348  touch conftest.a
11349  ln conftest.a conftest.b 2>&5 || hard_links=no
11350  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11351  echo "$as_me:$LINENO: result: $hard_links" >&5
11352echo "${ECHO_T}$hard_links" >&6
11353  if test "$hard_links" = no; then
11354    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11355echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11356    need_locks=warn
11357  fi
11358else
11359  need_locks=no
11360fi
11361
11362echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11363echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11364
11365  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11366  case $host_os in
11367  aix4* | aix5*)
11368    # If we're using GNU nm, then we don't want the "-C" option.
11369    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11370    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11371      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'
11372    else
11373      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'
11374    fi
11375    ;;
11376  pw32*)
11377    export_symbols_cmds_CXX="$ltdll_cmds"
11378  ;;
11379  cygwin* | mingw*)
11380    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11381  ;;
11382  *)
11383    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11384  ;;
11385  esac
11386
11387echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11388echo "${ECHO_T}$ld_shlibs_CXX" >&6
11389test "$ld_shlibs_CXX" = no && can_build_shared=no
11390
11391variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11392if test "$GCC" = yes; then
11393  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11394fi
11395
11396#
11397# Do we need to explicitly link libc?
11398#
11399case "x$archive_cmds_need_lc_CXX" in
11400x|xyes)
11401  # Assume -lc should be added
11402  archive_cmds_need_lc_CXX=yes
11403
11404  if test "$enable_shared" = yes && test "$GCC" = yes; then
11405    case $archive_cmds_CXX in
11406    *'~'*)
11407      # FIXME: we may have to deal with multi-command sequences.
11408      ;;
11409    '$CC '*)
11410      # Test whether the compiler implicitly links with -lc since on some
11411      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11412      # to ld, don't add -lc before -lgcc.
11413      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11414echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11415      $rm conftest*
11416      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11417
11418      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11419  (eval $ac_compile) 2>&5
11420  ac_status=$?
11421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422  (exit $ac_status); } 2>conftest.err; then
11423        soname=conftest
11424        lib=conftest
11425        libobjs=conftest.$ac_objext
11426        deplibs=
11427        wl=$lt_prog_compiler_wl_CXX
11428        compiler_flags=-v
11429        linker_flags=-v
11430        verstring=
11431        output_objdir=.
11432        libname=conftest
11433        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11434        allow_undefined_flag_CXX=
11435        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11436  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11437  ac_status=$?
11438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439  (exit $ac_status); }
11440        then
11441	  archive_cmds_need_lc_CXX=no
11442        else
11443	  archive_cmds_need_lc_CXX=yes
11444        fi
11445        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11446      else
11447        cat conftest.err 1>&5
11448      fi
11449      $rm conftest*
11450      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11451echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11452      ;;
11453    esac
11454  fi
11455  ;;
11456esac
11457
11458echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11459echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11460library_names_spec=
11461libname_spec='lib$name'
11462soname_spec=
11463shrext_cmds=".so"
11464postinstall_cmds=
11465postuninstall_cmds=
11466finish_cmds=
11467finish_eval=
11468shlibpath_var=
11469shlibpath_overrides_runpath=unknown
11470version_type=none
11471dynamic_linker="$host_os ld.so"
11472sys_lib_dlsearch_path_spec="/lib /usr/lib"
11473if test "$GCC" = yes; then
11474  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11475  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11476    # if the path contains ";" then we assume it to be the separator
11477    # otherwise default to the standard path separator (i.e. ":") - it is
11478    # assumed that no part of a normal pathname contains ";" but that should
11479    # okay in the real world where ";" in dirpaths is itself problematic.
11480    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11481  else
11482    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11483  fi
11484else
11485  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11486fi
11487need_lib_prefix=unknown
11488hardcode_into_libs=no
11489
11490# when you set need_version to no, make sure it does not cause -set_version
11491# flags to be left without arguments
11492need_version=unknown
11493
11494case $host_os in
11495aix3*)
11496  version_type=linux
11497  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11498  shlibpath_var=LIBPATH
11499
11500  # AIX 3 has no versioning support, so we append a major version to the name.
11501  soname_spec='${libname}${release}${shared_ext}$major'
11502  ;;
11503
11504aix4* | aix5*)
11505  version_type=linux
11506  need_lib_prefix=no
11507  need_version=no
11508  hardcode_into_libs=yes
11509  if test "$host_cpu" = ia64; then
11510    # AIX 5 supports IA64
11511    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11512    shlibpath_var=LD_LIBRARY_PATH
11513  else
11514    # With GCC up to 2.95.x, collect2 would create an import file
11515    # for dependence libraries.  The import file would start with
11516    # the line `#! .'.  This would cause the generated library to
11517    # depend on `.', always an invalid library.  This was fixed in
11518    # development snapshots of GCC prior to 3.0.
11519    case $host_os in
11520      aix4 | aix4.[01] | aix4.[01].*)
11521      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11522	   echo ' yes '
11523	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11524	:
11525      else
11526	can_build_shared=no
11527      fi
11528      ;;
11529    esac
11530    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11531    # soname into executable. Probably we can add versioning support to
11532    # collect2, so additional links can be useful in future.
11533    if test "$aix_use_runtimelinking" = yes; then
11534      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11535      # instead of lib<name>.a to let people know that these are not
11536      # typical AIX shared libraries.
11537      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538    else
11539      # We preserve .a as extension for shared libraries through AIX4.2
11540      # and later when we are not doing run time linking.
11541      library_names_spec='${libname}${release}.a $libname.a'
11542      soname_spec='${libname}${release}${shared_ext}$major'
11543    fi
11544    shlibpath_var=LIBPATH
11545  fi
11546  ;;
11547
11548amigaos*)
11549  library_names_spec='$libname.ixlibrary $libname.a'
11550  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11551  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'
11552  ;;
11553
11554beos*)
11555  library_names_spec='${libname}${shared_ext}'
11556  dynamic_linker="$host_os ld.so"
11557  shlibpath_var=LIBRARY_PATH
11558  ;;
11559
11560bsdi4*)
11561  version_type=linux
11562  need_version=no
11563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564  soname_spec='${libname}${release}${shared_ext}$major'
11565  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11566  shlibpath_var=LD_LIBRARY_PATH
11567  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11568  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11569  # the default ld.so.conf also contains /usr/contrib/lib and
11570  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11571  # libtool to hard-code these into programs
11572  ;;
11573
11574cygwin* | mingw* | pw32*)
11575  version_type=windows
11576  shrext_cmds=".dll"
11577  need_version=no
11578  need_lib_prefix=no
11579
11580  case $GCC,$host_os in
11581  yes,cygwin* | yes,mingw* | yes,pw32*)
11582    library_names_spec='$libname.dll.a'
11583    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11584    postinstall_cmds='base_file=`basename \${file}`~
11585      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11586      dldir=$destdir/`dirname \$dlpath`~
11587      test -d \$dldir || mkdir -p \$dldir~
11588      $install_prog $dir/$dlname \$dldir/$dlname'
11589    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11590      dlpath=$dir/\$dldll~
11591       $rm \$dlpath'
11592    shlibpath_overrides_runpath=yes
11593
11594    case $host_os in
11595    cygwin*)
11596      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11597      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11598      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11599      ;;
11600    mingw*)
11601      # MinGW DLLs use traditional 'lib' prefix
11602      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11603      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11604      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11605        # It is most probably a Windows format PATH printed by
11606        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11607        # path with ; separators, and with drive letters. We can handle the
11608        # drive letters (cygwin fileutils understands them), so leave them,
11609        # especially as we might pass files found there to a mingw objdump,
11610        # which wouldn't understand a cygwinified path. Ahh.
11611        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11612      else
11613        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11614      fi
11615      ;;
11616    pw32*)
11617      # pw32 DLLs use 'pw' prefix rather than 'lib'
11618      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11619      ;;
11620    esac
11621    ;;
11622
11623  *)
11624    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11625    ;;
11626  esac
11627  dynamic_linker='Win32 ld.exe'
11628  # FIXME: first we should search . and the directory the executable is in
11629  shlibpath_var=PATH
11630  ;;
11631
11632darwin* | rhapsody*)
11633  dynamic_linker="$host_os dyld"
11634  version_type=darwin
11635  need_lib_prefix=no
11636  need_version=no
11637  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11638  soname_spec='${libname}${release}${major}$shared_ext'
11639  shlibpath_overrides_runpath=yes
11640  shlibpath_var=DYLD_LIBRARY_PATH
11641  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11642  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11643  if test "$GCC" = yes; then
11644    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"`
11645  else
11646    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11647  fi
11648  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11649  ;;
11650
11651dgux*)
11652  version_type=linux
11653  need_lib_prefix=no
11654  need_version=no
11655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11656  soname_spec='${libname}${release}${shared_ext}$major'
11657  shlibpath_var=LD_LIBRARY_PATH
11658  ;;
11659
11660freebsd1*)
11661  dynamic_linker=no
11662  ;;
11663
11664kfreebsd*-gnu)
11665  version_type=linux
11666  need_lib_prefix=no
11667  need_version=no
11668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11669  soname_spec='${libname}${release}${shared_ext}$major'
11670  shlibpath_var=LD_LIBRARY_PATH
11671  shlibpath_overrides_runpath=no
11672  hardcode_into_libs=yes
11673  dynamic_linker='GNU ld.so'
11674  ;;
11675
11676freebsd*)
11677  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11678  version_type=freebsd-$objformat
11679  case $version_type in
11680    freebsd-elf*)
11681      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11682      need_version=no
11683      need_lib_prefix=no
11684      ;;
11685    freebsd-*)
11686      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11687      need_version=yes
11688      ;;
11689  esac
11690  shlibpath_var=LD_LIBRARY_PATH
11691  case $host_os in
11692  freebsd2*)
11693    shlibpath_overrides_runpath=yes
11694    ;;
11695  freebsd3.01* | freebsdelf3.01*)
11696    shlibpath_overrides_runpath=yes
11697    hardcode_into_libs=yes
11698    ;;
11699  *) # from 3.2 on
11700    shlibpath_overrides_runpath=no
11701    hardcode_into_libs=yes
11702    ;;
11703  esac
11704  ;;
11705
11706gnu*)
11707  version_type=linux
11708  need_lib_prefix=no
11709  need_version=no
11710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11711  soname_spec='${libname}${release}${shared_ext}$major'
11712  shlibpath_var=LD_LIBRARY_PATH
11713  hardcode_into_libs=yes
11714  ;;
11715
11716hpux9* | hpux10* | hpux11*)
11717  # Give a soname corresponding to the major version so that dld.sl refuses to
11718  # link against other versions.
11719  version_type=sunos
11720  need_lib_prefix=no
11721  need_version=no
11722  case "$host_cpu" in
11723  ia64*)
11724    shrext_cmds='.so'
11725    hardcode_into_libs=yes
11726    dynamic_linker="$host_os dld.so"
11727    shlibpath_var=LD_LIBRARY_PATH
11728    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11729    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730    soname_spec='${libname}${release}${shared_ext}$major'
11731    if test "X$HPUX_IA64_MODE" = X32; then
11732      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11733    else
11734      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11735    fi
11736    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11737    ;;
11738   hppa*64*)
11739     shrext_cmds='.sl'
11740     hardcode_into_libs=yes
11741     dynamic_linker="$host_os dld.sl"
11742     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11743     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745     soname_spec='${libname}${release}${shared_ext}$major'
11746     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11747     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11748     ;;
11749   *)
11750    shrext_cmds='.sl'
11751    dynamic_linker="$host_os dld.sl"
11752    shlibpath_var=SHLIB_PATH
11753    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11754    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755    soname_spec='${libname}${release}${shared_ext}$major'
11756    ;;
11757  esac
11758  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11759  postinstall_cmds='chmod 555 $lib'
11760  ;;
11761
11762irix5* | irix6* | nonstopux*)
11763  case $host_os in
11764    nonstopux*) version_type=nonstopux ;;
11765    *)
11766	if test "$lt_cv_prog_gnu_ld" = yes; then
11767		version_type=linux
11768	else
11769		version_type=irix
11770	fi ;;
11771  esac
11772  need_lib_prefix=no
11773  need_version=no
11774  soname_spec='${libname}${release}${shared_ext}$major'
11775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11776  case $host_os in
11777  irix5* | nonstopux*)
11778    libsuff= shlibsuff=
11779    ;;
11780  *)
11781    case $LD in # libtool.m4 will add one of these switches to LD
11782    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11783      libsuff= shlibsuff= libmagic=32-bit;;
11784    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11785      libsuff=32 shlibsuff=N32 libmagic=N32;;
11786    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11787      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11788    *) libsuff= shlibsuff= libmagic=never-match;;
11789    esac
11790    ;;
11791  esac
11792  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11793  shlibpath_overrides_runpath=no
11794  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11795  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11796  hardcode_into_libs=yes
11797  ;;
11798
11799# No shared lib support for Linux oldld, aout, or coff.
11800linux*oldld* | linux*aout* | linux*coff*)
11801  dynamic_linker=no
11802  ;;
11803
11804# This must be Linux ELF.
11805linux*)
11806  version_type=linux
11807  need_lib_prefix=no
11808  need_version=no
11809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810  soname_spec='${libname}${release}${shared_ext}$major'
11811  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11812  shlibpath_var=LD_LIBRARY_PATH
11813  shlibpath_overrides_runpath=no
11814  # This implies no fast_install, which is unacceptable.
11815  # Some rework will be needed to allow for fast_install
11816  # before this can be enabled.
11817  hardcode_into_libs=yes
11818
11819  # Append ld.so.conf contents to the search path
11820  if test -f /etc/ld.so.conf; then
11821    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11822    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11823  fi
11824
11825  # We used to test for /lib/ld.so.1 and disable shared libraries on
11826  # powerpc, because MkLinux only supported shared libraries with the
11827  # GNU dynamic linker.  Since this was broken with cross compilers,
11828  # most powerpc-linux boxes support dynamic linking these days and
11829  # people can always --disable-shared, the test was removed, and we
11830  # assume the GNU/Linux dynamic linker is in use.
11831  dynamic_linker='GNU/Linux ld.so'
11832  ;;
11833
11834knetbsd*-gnu)
11835  version_type=linux
11836  need_lib_prefix=no
11837  need_version=no
11838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11839  soname_spec='${libname}${release}${shared_ext}$major'
11840  shlibpath_var=LD_LIBRARY_PATH
11841  shlibpath_overrides_runpath=no
11842  hardcode_into_libs=yes
11843  dynamic_linker='GNU ld.so'
11844  ;;
11845
11846netbsd*)
11847  version_type=sunos
11848  need_lib_prefix=no
11849  need_version=no
11850  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11851    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11852    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11853    dynamic_linker='NetBSD (a.out) ld.so'
11854  else
11855    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11856    soname_spec='${libname}${release}${shared_ext}$major'
11857    dynamic_linker='NetBSD ld.elf_so'
11858  fi
11859  shlibpath_var=LD_LIBRARY_PATH
11860  shlibpath_overrides_runpath=yes
11861  hardcode_into_libs=yes
11862  ;;
11863
11864newsos6)
11865  version_type=linux
11866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867  shlibpath_var=LD_LIBRARY_PATH
11868  shlibpath_overrides_runpath=yes
11869  ;;
11870
11871nto-qnx*)
11872  version_type=linux
11873  need_lib_prefix=no
11874  need_version=no
11875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876  soname_spec='${libname}${release}${shared_ext}$major'
11877  shlibpath_var=LD_LIBRARY_PATH
11878  shlibpath_overrides_runpath=yes
11879  ;;
11880
11881openbsd*)
11882  version_type=sunos
11883  need_lib_prefix=no
11884  need_version=yes
11885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11886  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11887  shlibpath_var=LD_LIBRARY_PATH
11888  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11889    case $host_os in
11890      openbsd2.[89] | openbsd2.[89].*)
11891	shlibpath_overrides_runpath=no
11892	;;
11893      *)
11894	shlibpath_overrides_runpath=yes
11895	;;
11896      esac
11897  else
11898    shlibpath_overrides_runpath=yes
11899  fi
11900  ;;
11901
11902os2*)
11903  libname_spec='$name'
11904  shrext_cmds=".dll"
11905  need_lib_prefix=no
11906  library_names_spec='$libname${shared_ext} $libname.a'
11907  dynamic_linker='OS/2 ld.exe'
11908  shlibpath_var=LIBPATH
11909  ;;
11910
11911osf3* | osf4* | osf5*)
11912  version_type=osf
11913  need_lib_prefix=no
11914  need_version=no
11915  soname_spec='${libname}${release}${shared_ext}$major'
11916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11917  shlibpath_var=LD_LIBRARY_PATH
11918  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11919  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11920  ;;
11921
11922sco3.2v5*)
11923  version_type=osf
11924  soname_spec='${libname}${release}${shared_ext}$major'
11925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11926  shlibpath_var=LD_LIBRARY_PATH
11927  ;;
11928
11929solaris*)
11930  version_type=linux
11931  need_lib_prefix=no
11932  need_version=no
11933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11934  soname_spec='${libname}${release}${shared_ext}$major'
11935  shlibpath_var=LD_LIBRARY_PATH
11936  shlibpath_overrides_runpath=yes
11937  hardcode_into_libs=yes
11938  # ldd complains unless libraries are executable
11939  postinstall_cmds='chmod +x $lib'
11940  ;;
11941
11942sunos4*)
11943  version_type=sunos
11944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11945  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11946  shlibpath_var=LD_LIBRARY_PATH
11947  shlibpath_overrides_runpath=yes
11948  if test "$with_gnu_ld" = yes; then
11949    need_lib_prefix=no
11950  fi
11951  need_version=yes
11952  ;;
11953
11954sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11955  version_type=linux
11956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11957  soname_spec='${libname}${release}${shared_ext}$major'
11958  shlibpath_var=LD_LIBRARY_PATH
11959  case $host_vendor in
11960    sni)
11961      shlibpath_overrides_runpath=no
11962      need_lib_prefix=no
11963      export_dynamic_flag_spec='${wl}-Blargedynsym'
11964      runpath_var=LD_RUN_PATH
11965      ;;
11966    siemens)
11967      need_lib_prefix=no
11968      ;;
11969    motorola)
11970      need_lib_prefix=no
11971      need_version=no
11972      shlibpath_overrides_runpath=no
11973      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11974      ;;
11975  esac
11976  ;;
11977
11978sysv4*MP*)
11979  if test -d /usr/nec ;then
11980    version_type=linux
11981    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11982    soname_spec='$libname${shared_ext}.$major'
11983    shlibpath_var=LD_LIBRARY_PATH
11984  fi
11985  ;;
11986
11987uts4*)
11988  version_type=linux
11989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11990  soname_spec='${libname}${release}${shared_ext}$major'
11991  shlibpath_var=LD_LIBRARY_PATH
11992  ;;
11993
11994*)
11995  dynamic_linker=no
11996  ;;
11997esac
11998echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11999echo "${ECHO_T}$dynamic_linker" >&6
12000test "$dynamic_linker" = no && can_build_shared=no
12001
12002echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12003echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12004hardcode_action_CXX=
12005if test -n "$hardcode_libdir_flag_spec_CXX" || \
12006   test -n "$runpath_var CXX" || \
12007   test "X$hardcode_automatic_CXX"="Xyes" ; then
12008
12009  # We can hardcode non-existant directories.
12010  if test "$hardcode_direct_CXX" != no &&
12011     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12012     # have to relink, otherwise we might link with an installed library
12013     # when we should be linking with a yet-to-be-installed one
12014     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12015     test "$hardcode_minus_L_CXX" != no; then
12016    # Linking always hardcodes the temporary library directory.
12017    hardcode_action_CXX=relink
12018  else
12019    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12020    hardcode_action_CXX=immediate
12021  fi
12022else
12023  # We cannot hardcode anything, or else we can only hardcode existing
12024  # directories.
12025  hardcode_action_CXX=unsupported
12026fi
12027echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12028echo "${ECHO_T}$hardcode_action_CXX" >&6
12029
12030if test "$hardcode_action_CXX" = relink; then
12031  # Fast installation is not supported
12032  enable_fast_install=no
12033elif test "$shlibpath_overrides_runpath" = yes ||
12034     test "$enable_shared" = no; then
12035  # Fast installation is not necessary
12036  enable_fast_install=needless
12037fi
12038
12039striplib=
12040old_striplib=
12041echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12042echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12043if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12044  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12045  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12046  echo "$as_me:$LINENO: result: yes" >&5
12047echo "${ECHO_T}yes" >&6
12048else
12049# FIXME - insert some real tests, host_os isn't really good enough
12050  case $host_os in
12051   darwin*)
12052       if test -n "$STRIP" ; then
12053         striplib="$STRIP -x"
12054         echo "$as_me:$LINENO: result: yes" >&5
12055echo "${ECHO_T}yes" >&6
12056       else
12057  echo "$as_me:$LINENO: result: no" >&5
12058echo "${ECHO_T}no" >&6
12059fi
12060       ;;
12061   *)
12062  echo "$as_me:$LINENO: result: no" >&5
12063echo "${ECHO_T}no" >&6
12064    ;;
12065  esac
12066fi
12067
12068if test "x$enable_dlopen" != xyes; then
12069  enable_dlopen=unknown
12070  enable_dlopen_self=unknown
12071  enable_dlopen_self_static=unknown
12072else
12073  lt_cv_dlopen=no
12074  lt_cv_dlopen_libs=
12075
12076  case $host_os in
12077  beos*)
12078    lt_cv_dlopen="load_add_on"
12079    lt_cv_dlopen_libs=
12080    lt_cv_dlopen_self=yes
12081    ;;
12082
12083  mingw* | pw32*)
12084    lt_cv_dlopen="LoadLibrary"
12085    lt_cv_dlopen_libs=
12086   ;;
12087
12088  cygwin*)
12089    lt_cv_dlopen="dlopen"
12090    lt_cv_dlopen_libs=
12091   ;;
12092
12093  darwin*)
12094  # if libdl is installed we need to link against it
12095    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12096echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12097if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12098  echo $ECHO_N "(cached) $ECHO_C" >&6
12099else
12100  ac_check_lib_save_LIBS=$LIBS
12101LIBS="-ldl  $LIBS"
12102cat >conftest.$ac_ext <<_ACEOF
12103/* confdefs.h.  */
12104_ACEOF
12105cat confdefs.h >>conftest.$ac_ext
12106cat >>conftest.$ac_ext <<_ACEOF
12107/* end confdefs.h.  */
12108
12109/* Override any gcc2 internal prototype to avoid an error.  */
12110#ifdef __cplusplus
12111extern "C"
12112#endif
12113/* We use char because int might match the return type of a gcc2
12114   builtin and then its argument prototype would still apply.  */
12115char dlopen ();
12116int
12117main ()
12118{
12119dlopen ();
12120  ;
12121  return 0;
12122}
12123_ACEOF
12124rm -f conftest.$ac_objext conftest$ac_exeext
12125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126  (eval $ac_link) 2>conftest.er1
12127  ac_status=$?
12128  grep -v '^ *+' conftest.er1 >conftest.err
12129  rm -f conftest.er1
12130  cat conftest.err >&5
12131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132  (exit $ac_status); } &&
12133	 { ac_try='test -z "$ac_cxx_werror_flag"
12134			 || test ! -s conftest.err'
12135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136  (eval $ac_try) 2>&5
12137  ac_status=$?
12138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139  (exit $ac_status); }; } &&
12140	 { ac_try='test -s conftest$ac_exeext'
12141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142  (eval $ac_try) 2>&5
12143  ac_status=$?
12144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145  (exit $ac_status); }; }; then
12146  ac_cv_lib_dl_dlopen=yes
12147else
12148  echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151ac_cv_lib_dl_dlopen=no
12152fi
12153rm -f conftest.err conftest.$ac_objext \
12154      conftest$ac_exeext conftest.$ac_ext
12155LIBS=$ac_check_lib_save_LIBS
12156fi
12157echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12158echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12159if test $ac_cv_lib_dl_dlopen = yes; then
12160  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12161else
12162
12163    lt_cv_dlopen="dyld"
12164    lt_cv_dlopen_libs=
12165    lt_cv_dlopen_self=yes
12166
12167fi
12168
12169   ;;
12170
12171  *)
12172    echo "$as_me:$LINENO: checking for shl_load" >&5
12173echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12174if test "${ac_cv_func_shl_load+set}" = set; then
12175  echo $ECHO_N "(cached) $ECHO_C" >&6
12176else
12177  cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h.  */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h.  */
12183/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12184   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12185#define shl_load innocuous_shl_load
12186
12187/* System header to define __stub macros and hopefully few prototypes,
12188    which can conflict with char shl_load (); below.
12189    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190    <limits.h> exists even on freestanding compilers.  */
12191
12192#ifdef __STDC__
12193# include <limits.h>
12194#else
12195# include <assert.h>
12196#endif
12197
12198#undef shl_load
12199
12200/* Override any gcc2 internal prototype to avoid an error.  */
12201#ifdef __cplusplus
12202extern "C"
12203{
12204#endif
12205/* We use char because int might match the return type of a gcc2
12206   builtin and then its argument prototype would still apply.  */
12207char shl_load ();
12208/* The GNU C library defines this for functions which it implements
12209    to always fail with ENOSYS.  Some functions are actually named
12210    something starting with __ and the normal name is an alias.  */
12211#if defined (__stub_shl_load) || defined (__stub___shl_load)
12212choke me
12213#else
12214char (*f) () = shl_load;
12215#endif
12216#ifdef __cplusplus
12217}
12218#endif
12219
12220int
12221main ()
12222{
12223return f != shl_load;
12224  ;
12225  return 0;
12226}
12227_ACEOF
12228rm -f conftest.$ac_objext conftest$ac_exeext
12229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230  (eval $ac_link) 2>conftest.er1
12231  ac_status=$?
12232  grep -v '^ *+' conftest.er1 >conftest.err
12233  rm -f conftest.er1
12234  cat conftest.err >&5
12235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236  (exit $ac_status); } &&
12237	 { ac_try='test -z "$ac_cxx_werror_flag"
12238			 || test ! -s conftest.err'
12239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240  (eval $ac_try) 2>&5
12241  ac_status=$?
12242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243  (exit $ac_status); }; } &&
12244	 { ac_try='test -s conftest$ac_exeext'
12245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246  (eval $ac_try) 2>&5
12247  ac_status=$?
12248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249  (exit $ac_status); }; }; then
12250  ac_cv_func_shl_load=yes
12251else
12252  echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255ac_cv_func_shl_load=no
12256fi
12257rm -f conftest.err conftest.$ac_objext \
12258      conftest$ac_exeext conftest.$ac_ext
12259fi
12260echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12261echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12262if test $ac_cv_func_shl_load = yes; then
12263  lt_cv_dlopen="shl_load"
12264else
12265  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12266echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12267if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12268  echo $ECHO_N "(cached) $ECHO_C" >&6
12269else
12270  ac_check_lib_save_LIBS=$LIBS
12271LIBS="-ldld  $LIBS"
12272cat >conftest.$ac_ext <<_ACEOF
12273/* confdefs.h.  */
12274_ACEOF
12275cat confdefs.h >>conftest.$ac_ext
12276cat >>conftest.$ac_ext <<_ACEOF
12277/* end confdefs.h.  */
12278
12279/* Override any gcc2 internal prototype to avoid an error.  */
12280#ifdef __cplusplus
12281extern "C"
12282#endif
12283/* We use char because int might match the return type of a gcc2
12284   builtin and then its argument prototype would still apply.  */
12285char shl_load ();
12286int
12287main ()
12288{
12289shl_load ();
12290  ;
12291  return 0;
12292}
12293_ACEOF
12294rm -f conftest.$ac_objext conftest$ac_exeext
12295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12296  (eval $ac_link) 2>conftest.er1
12297  ac_status=$?
12298  grep -v '^ *+' conftest.er1 >conftest.err
12299  rm -f conftest.er1
12300  cat conftest.err >&5
12301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302  (exit $ac_status); } &&
12303	 { ac_try='test -z "$ac_cxx_werror_flag"
12304			 || test ! -s conftest.err'
12305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306  (eval $ac_try) 2>&5
12307  ac_status=$?
12308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309  (exit $ac_status); }; } &&
12310	 { ac_try='test -s conftest$ac_exeext'
12311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312  (eval $ac_try) 2>&5
12313  ac_status=$?
12314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315  (exit $ac_status); }; }; then
12316  ac_cv_lib_dld_shl_load=yes
12317else
12318  echo "$as_me: failed program was:" >&5
12319sed 's/^/| /' conftest.$ac_ext >&5
12320
12321ac_cv_lib_dld_shl_load=no
12322fi
12323rm -f conftest.err conftest.$ac_objext \
12324      conftest$ac_exeext conftest.$ac_ext
12325LIBS=$ac_check_lib_save_LIBS
12326fi
12327echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12328echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12329if test $ac_cv_lib_dld_shl_load = yes; then
12330  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12331else
12332  echo "$as_me:$LINENO: checking for dlopen" >&5
12333echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12334if test "${ac_cv_func_dlopen+set}" = set; then
12335  echo $ECHO_N "(cached) $ECHO_C" >&6
12336else
12337  cat >conftest.$ac_ext <<_ACEOF
12338/* confdefs.h.  */
12339_ACEOF
12340cat confdefs.h >>conftest.$ac_ext
12341cat >>conftest.$ac_ext <<_ACEOF
12342/* end confdefs.h.  */
12343/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12344   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12345#define dlopen innocuous_dlopen
12346
12347/* System header to define __stub macros and hopefully few prototypes,
12348    which can conflict with char dlopen (); below.
12349    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12350    <limits.h> exists even on freestanding compilers.  */
12351
12352#ifdef __STDC__
12353# include <limits.h>
12354#else
12355# include <assert.h>
12356#endif
12357
12358#undef dlopen
12359
12360/* Override any gcc2 internal prototype to avoid an error.  */
12361#ifdef __cplusplus
12362extern "C"
12363{
12364#endif
12365/* We use char because int might match the return type of a gcc2
12366   builtin and then its argument prototype would still apply.  */
12367char dlopen ();
12368/* The GNU C library defines this for functions which it implements
12369    to always fail with ENOSYS.  Some functions are actually named
12370    something starting with __ and the normal name is an alias.  */
12371#if defined (__stub_dlopen) || defined (__stub___dlopen)
12372choke me
12373#else
12374char (*f) () = dlopen;
12375#endif
12376#ifdef __cplusplus
12377}
12378#endif
12379
12380int
12381main ()
12382{
12383return f != dlopen;
12384  ;
12385  return 0;
12386}
12387_ACEOF
12388rm -f conftest.$ac_objext conftest$ac_exeext
12389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12390  (eval $ac_link) 2>conftest.er1
12391  ac_status=$?
12392  grep -v '^ *+' conftest.er1 >conftest.err
12393  rm -f conftest.er1
12394  cat conftest.err >&5
12395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396  (exit $ac_status); } &&
12397	 { ac_try='test -z "$ac_cxx_werror_flag"
12398			 || test ! -s conftest.err'
12399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400  (eval $ac_try) 2>&5
12401  ac_status=$?
12402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403  (exit $ac_status); }; } &&
12404	 { ac_try='test -s conftest$ac_exeext'
12405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406  (eval $ac_try) 2>&5
12407  ac_status=$?
12408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409  (exit $ac_status); }; }; then
12410  ac_cv_func_dlopen=yes
12411else
12412  echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415ac_cv_func_dlopen=no
12416fi
12417rm -f conftest.err conftest.$ac_objext \
12418      conftest$ac_exeext conftest.$ac_ext
12419fi
12420echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12421echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12422if test $ac_cv_func_dlopen = yes; then
12423  lt_cv_dlopen="dlopen"
12424else
12425  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12426echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12427if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12428  echo $ECHO_N "(cached) $ECHO_C" >&6
12429else
12430  ac_check_lib_save_LIBS=$LIBS
12431LIBS="-ldl  $LIBS"
12432cat >conftest.$ac_ext <<_ACEOF
12433/* confdefs.h.  */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
12437/* end confdefs.h.  */
12438
12439/* Override any gcc2 internal prototype to avoid an error.  */
12440#ifdef __cplusplus
12441extern "C"
12442#endif
12443/* We use char because int might match the return type of a gcc2
12444   builtin and then its argument prototype would still apply.  */
12445char dlopen ();
12446int
12447main ()
12448{
12449dlopen ();
12450  ;
12451  return 0;
12452}
12453_ACEOF
12454rm -f conftest.$ac_objext conftest$ac_exeext
12455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456  (eval $ac_link) 2>conftest.er1
12457  ac_status=$?
12458  grep -v '^ *+' conftest.er1 >conftest.err
12459  rm -f conftest.er1
12460  cat conftest.err >&5
12461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462  (exit $ac_status); } &&
12463	 { ac_try='test -z "$ac_cxx_werror_flag"
12464			 || test ! -s conftest.err'
12465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466  (eval $ac_try) 2>&5
12467  ac_status=$?
12468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469  (exit $ac_status); }; } &&
12470	 { ac_try='test -s conftest$ac_exeext'
12471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472  (eval $ac_try) 2>&5
12473  ac_status=$?
12474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475  (exit $ac_status); }; }; then
12476  ac_cv_lib_dl_dlopen=yes
12477else
12478  echo "$as_me: failed program was:" >&5
12479sed 's/^/| /' conftest.$ac_ext >&5
12480
12481ac_cv_lib_dl_dlopen=no
12482fi
12483rm -f conftest.err conftest.$ac_objext \
12484      conftest$ac_exeext conftest.$ac_ext
12485LIBS=$ac_check_lib_save_LIBS
12486fi
12487echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12488echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12489if test $ac_cv_lib_dl_dlopen = yes; then
12490  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12491else
12492  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12493echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12494if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12495  echo $ECHO_N "(cached) $ECHO_C" >&6
12496else
12497  ac_check_lib_save_LIBS=$LIBS
12498LIBS="-lsvld  $LIBS"
12499cat >conftest.$ac_ext <<_ACEOF
12500/* confdefs.h.  */
12501_ACEOF
12502cat confdefs.h >>conftest.$ac_ext
12503cat >>conftest.$ac_ext <<_ACEOF
12504/* end confdefs.h.  */
12505
12506/* Override any gcc2 internal prototype to avoid an error.  */
12507#ifdef __cplusplus
12508extern "C"
12509#endif
12510/* We use char because int might match the return type of a gcc2
12511   builtin and then its argument prototype would still apply.  */
12512char dlopen ();
12513int
12514main ()
12515{
12516dlopen ();
12517  ;
12518  return 0;
12519}
12520_ACEOF
12521rm -f conftest.$ac_objext conftest$ac_exeext
12522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523  (eval $ac_link) 2>conftest.er1
12524  ac_status=$?
12525  grep -v '^ *+' conftest.er1 >conftest.err
12526  rm -f conftest.er1
12527  cat conftest.err >&5
12528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529  (exit $ac_status); } &&
12530	 { ac_try='test -z "$ac_cxx_werror_flag"
12531			 || test ! -s conftest.err'
12532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533  (eval $ac_try) 2>&5
12534  ac_status=$?
12535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536  (exit $ac_status); }; } &&
12537	 { ac_try='test -s conftest$ac_exeext'
12538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539  (eval $ac_try) 2>&5
12540  ac_status=$?
12541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542  (exit $ac_status); }; }; then
12543  ac_cv_lib_svld_dlopen=yes
12544else
12545  echo "$as_me: failed program was:" >&5
12546sed 's/^/| /' conftest.$ac_ext >&5
12547
12548ac_cv_lib_svld_dlopen=no
12549fi
12550rm -f conftest.err conftest.$ac_objext \
12551      conftest$ac_exeext conftest.$ac_ext
12552LIBS=$ac_check_lib_save_LIBS
12553fi
12554echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12555echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12556if test $ac_cv_lib_svld_dlopen = yes; then
12557  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12558else
12559  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12560echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12561if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12562  echo $ECHO_N "(cached) $ECHO_C" >&6
12563else
12564  ac_check_lib_save_LIBS=$LIBS
12565LIBS="-ldld  $LIBS"
12566cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h.  */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h.  */
12572
12573/* Override any gcc2 internal prototype to avoid an error.  */
12574#ifdef __cplusplus
12575extern "C"
12576#endif
12577/* We use char because int might match the return type of a gcc2
12578   builtin and then its argument prototype would still apply.  */
12579char dld_link ();
12580int
12581main ()
12582{
12583dld_link ();
12584  ;
12585  return 0;
12586}
12587_ACEOF
12588rm -f conftest.$ac_objext conftest$ac_exeext
12589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12590  (eval $ac_link) 2>conftest.er1
12591  ac_status=$?
12592  grep -v '^ *+' conftest.er1 >conftest.err
12593  rm -f conftest.er1
12594  cat conftest.err >&5
12595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596  (exit $ac_status); } &&
12597	 { ac_try='test -z "$ac_cxx_werror_flag"
12598			 || test ! -s conftest.err'
12599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600  (eval $ac_try) 2>&5
12601  ac_status=$?
12602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603  (exit $ac_status); }; } &&
12604	 { ac_try='test -s conftest$ac_exeext'
12605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606  (eval $ac_try) 2>&5
12607  ac_status=$?
12608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609  (exit $ac_status); }; }; then
12610  ac_cv_lib_dld_dld_link=yes
12611else
12612  echo "$as_me: failed program was:" >&5
12613sed 's/^/| /' conftest.$ac_ext >&5
12614
12615ac_cv_lib_dld_dld_link=no
12616fi
12617rm -f conftest.err conftest.$ac_objext \
12618      conftest$ac_exeext conftest.$ac_ext
12619LIBS=$ac_check_lib_save_LIBS
12620fi
12621echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12622echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12623if test $ac_cv_lib_dld_dld_link = yes; then
12624  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12625fi
12626
12627
12628fi
12629
12630
12631fi
12632
12633
12634fi
12635
12636
12637fi
12638
12639
12640fi
12641
12642    ;;
12643  esac
12644
12645  if test "x$lt_cv_dlopen" != xno; then
12646    enable_dlopen=yes
12647  else
12648    enable_dlopen=no
12649  fi
12650
12651  case $lt_cv_dlopen in
12652  dlopen)
12653    save_CPPFLAGS="$CPPFLAGS"
12654    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12655
12656    save_LDFLAGS="$LDFLAGS"
12657    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12658
12659    save_LIBS="$LIBS"
12660    LIBS="$lt_cv_dlopen_libs $LIBS"
12661
12662    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12663echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12664if test "${lt_cv_dlopen_self+set}" = set; then
12665  echo $ECHO_N "(cached) $ECHO_C" >&6
12666else
12667  	  if test "$cross_compiling" = yes; then :
12668  lt_cv_dlopen_self=cross
12669else
12670  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12671  lt_status=$lt_dlunknown
12672  cat > conftest.$ac_ext <<EOF
12673#line 12673 "configure"
12674#include "confdefs.h"
12675
12676#if HAVE_DLFCN_H
12677#include <dlfcn.h>
12678#endif
12679
12680#include <stdio.h>
12681
12682#ifdef RTLD_GLOBAL
12683#  define LT_DLGLOBAL		RTLD_GLOBAL
12684#else
12685#  ifdef DL_GLOBAL
12686#    define LT_DLGLOBAL		DL_GLOBAL
12687#  else
12688#    define LT_DLGLOBAL		0
12689#  endif
12690#endif
12691
12692/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12693   find out it does not work in some platform. */
12694#ifndef LT_DLLAZY_OR_NOW
12695#  ifdef RTLD_LAZY
12696#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12697#  else
12698#    ifdef DL_LAZY
12699#      define LT_DLLAZY_OR_NOW		DL_LAZY
12700#    else
12701#      ifdef RTLD_NOW
12702#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12703#      else
12704#        ifdef DL_NOW
12705#          define LT_DLLAZY_OR_NOW	DL_NOW
12706#        else
12707#          define LT_DLLAZY_OR_NOW	0
12708#        endif
12709#      endif
12710#    endif
12711#  endif
12712#endif
12713
12714#ifdef __cplusplus
12715extern "C" void exit (int);
12716#endif
12717
12718void fnord() { int i=42;}
12719int main ()
12720{
12721  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12722  int status = $lt_dlunknown;
12723
12724  if (self)
12725    {
12726      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12727      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12728      /* dlclose (self); */
12729    }
12730
12731    exit (status);
12732}
12733EOF
12734  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12735  (eval $ac_link) 2>&5
12736  ac_status=$?
12737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12739    (./conftest; exit; ) 2>/dev/null
12740    lt_status=$?
12741    case x$lt_status in
12742      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12743      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12744      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12745    esac
12746  else :
12747    # compilation failed
12748    lt_cv_dlopen_self=no
12749  fi
12750fi
12751rm -fr conftest*
12752
12753
12754fi
12755echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12756echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12757
12758    if test "x$lt_cv_dlopen_self" = xyes; then
12759      LDFLAGS="$LDFLAGS $link_static_flag"
12760      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12761echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12762if test "${lt_cv_dlopen_self_static+set}" = set; then
12763  echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765  	  if test "$cross_compiling" = yes; then :
12766  lt_cv_dlopen_self_static=cross
12767else
12768  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12769  lt_status=$lt_dlunknown
12770  cat > conftest.$ac_ext <<EOF
12771#line 12771 "configure"
12772#include "confdefs.h"
12773
12774#if HAVE_DLFCN_H
12775#include <dlfcn.h>
12776#endif
12777
12778#include <stdio.h>
12779
12780#ifdef RTLD_GLOBAL
12781#  define LT_DLGLOBAL		RTLD_GLOBAL
12782#else
12783#  ifdef DL_GLOBAL
12784#    define LT_DLGLOBAL		DL_GLOBAL
12785#  else
12786#    define LT_DLGLOBAL		0
12787#  endif
12788#endif
12789
12790/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12791   find out it does not work in some platform. */
12792#ifndef LT_DLLAZY_OR_NOW
12793#  ifdef RTLD_LAZY
12794#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12795#  else
12796#    ifdef DL_LAZY
12797#      define LT_DLLAZY_OR_NOW		DL_LAZY
12798#    else
12799#      ifdef RTLD_NOW
12800#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12801#      else
12802#        ifdef DL_NOW
12803#          define LT_DLLAZY_OR_NOW	DL_NOW
12804#        else
12805#          define LT_DLLAZY_OR_NOW	0
12806#        endif
12807#      endif
12808#    endif
12809#  endif
12810#endif
12811
12812#ifdef __cplusplus
12813extern "C" void exit (int);
12814#endif
12815
12816void fnord() { int i=42;}
12817int main ()
12818{
12819  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12820  int status = $lt_dlunknown;
12821
12822  if (self)
12823    {
12824      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12825      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12826      /* dlclose (self); */
12827    }
12828
12829    exit (status);
12830}
12831EOF
12832  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833  (eval $ac_link) 2>&5
12834  ac_status=$?
12835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12837    (./conftest; exit; ) 2>/dev/null
12838    lt_status=$?
12839    case x$lt_status in
12840      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12841      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12842      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12843    esac
12844  else :
12845    # compilation failed
12846    lt_cv_dlopen_self_static=no
12847  fi
12848fi
12849rm -fr conftest*
12850
12851
12852fi
12853echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12854echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12855    fi
12856
12857    CPPFLAGS="$save_CPPFLAGS"
12858    LDFLAGS="$save_LDFLAGS"
12859    LIBS="$save_LIBS"
12860    ;;
12861  esac
12862
12863  case $lt_cv_dlopen_self in
12864  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12865  *) enable_dlopen_self=unknown ;;
12866  esac
12867
12868  case $lt_cv_dlopen_self_static in
12869  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12870  *) enable_dlopen_self_static=unknown ;;
12871  esac
12872fi
12873
12874
12875# The else clause should only fire when bootstrapping the
12876# libtool distribution, otherwise you forgot to ship ltmain.sh
12877# with your package, and you will get complaints that there are
12878# no rules to generate ltmain.sh.
12879if test -f "$ltmain"; then
12880  # See if we are running on zsh, and set the options which allow our commands through
12881  # without removal of \ escapes.
12882  if test -n "${ZSH_VERSION+set}" ; then
12883    setopt NO_GLOB_SUBST
12884  fi
12885  # Now quote all the things that may contain metacharacters while being
12886  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12887  # variables and quote the copies for generation of the libtool script.
12888  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12889    SED SHELL STRIP \
12890    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12891    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12892    deplibs_check_method reload_flag reload_cmds need_locks \
12893    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12894    lt_cv_sys_global_symbol_to_c_name_address \
12895    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12896    old_postinstall_cmds old_postuninstall_cmds \
12897    compiler_CXX \
12898    CC_CXX \
12899    LD_CXX \
12900    lt_prog_compiler_wl_CXX \
12901    lt_prog_compiler_pic_CXX \
12902    lt_prog_compiler_static_CXX \
12903    lt_prog_compiler_no_builtin_flag_CXX \
12904    export_dynamic_flag_spec_CXX \
12905    thread_safe_flag_spec_CXX \
12906    whole_archive_flag_spec_CXX \
12907    enable_shared_with_static_runtimes_CXX \
12908    old_archive_cmds_CXX \
12909    old_archive_from_new_cmds_CXX \
12910    predep_objects_CXX \
12911    postdep_objects_CXX \
12912    predeps_CXX \
12913    postdeps_CXX \
12914    compiler_lib_search_path_CXX \
12915    archive_cmds_CXX \
12916    archive_expsym_cmds_CXX \
12917    postinstall_cmds_CXX \
12918    postuninstall_cmds_CXX \
12919    old_archive_from_expsyms_cmds_CXX \
12920    allow_undefined_flag_CXX \
12921    no_undefined_flag_CXX \
12922    export_symbols_cmds_CXX \
12923    hardcode_libdir_flag_spec_CXX \
12924    hardcode_libdir_flag_spec_ld_CXX \
12925    hardcode_libdir_separator_CXX \
12926    hardcode_automatic_CXX \
12927    module_cmds_CXX \
12928    module_expsym_cmds_CXX \
12929    lt_cv_prog_compiler_c_o_CXX \
12930    exclude_expsyms_CXX \
12931    include_expsyms_CXX; do
12932
12933    case $var in
12934    old_archive_cmds_CXX | \
12935    old_archive_from_new_cmds_CXX | \
12936    archive_cmds_CXX | \
12937    archive_expsym_cmds_CXX | \
12938    module_cmds_CXX | \
12939    module_expsym_cmds_CXX | \
12940    old_archive_from_expsyms_cmds_CXX | \
12941    export_symbols_cmds_CXX | \
12942    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12943    postinstall_cmds | postuninstall_cmds | \
12944    old_postinstall_cmds | old_postuninstall_cmds | \
12945    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12946      # Double-quote double-evaled strings.
12947      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12948      ;;
12949    *)
12950      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12951      ;;
12952    esac
12953  done
12954
12955  case $lt_echo in
12956  *'\$0 --fallback-echo"')
12957    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12958    ;;
12959  esac
12960
12961cfgfile="$ofile"
12962
12963  cat <<__EOF__ >> "$cfgfile"
12964# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12965
12966# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12967
12968# Shell to use when invoking shell scripts.
12969SHELL=$lt_SHELL
12970
12971# Whether or not to build shared libraries.
12972build_libtool_libs=$enable_shared
12973
12974# Whether or not to build static libraries.
12975build_old_libs=$enable_static
12976
12977# Whether or not to add -lc for building shared libraries.
12978build_libtool_need_lc=$archive_cmds_need_lc_CXX
12979
12980# Whether or not to disallow shared libs when runtime libs are static
12981allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12982
12983# Whether or not to optimize for fast installation.
12984fast_install=$enable_fast_install
12985
12986# The host system.
12987host_alias=$host_alias
12988host=$host
12989
12990# An echo program that does not interpret backslashes.
12991echo=$lt_echo
12992
12993# The archiver.
12994AR=$lt_AR
12995AR_FLAGS=$lt_AR_FLAGS
12996
12997# A C compiler.
12998LTCC=$lt_LTCC
12999
13000# A language-specific compiler.
13001CC=$lt_compiler_CXX
13002
13003# Is the compiler the GNU C compiler?
13004with_gcc=$GCC_CXX
13005
13006# An ERE matcher.
13007EGREP=$lt_EGREP
13008
13009# The linker used to build libraries.
13010LD=$lt_LD_CXX
13011
13012# Whether we need hard or soft links.
13013LN_S=$lt_LN_S
13014
13015# A BSD-compatible nm program.
13016NM=$lt_NM
13017
13018# A symbol stripping program
13019STRIP=$lt_STRIP
13020
13021# Used to examine libraries when file_magic_cmd begins "file"
13022MAGIC_CMD=$MAGIC_CMD
13023
13024# Used on cygwin: DLL creation program.
13025DLLTOOL="$DLLTOOL"
13026
13027# Used on cygwin: object dumper.
13028OBJDUMP="$OBJDUMP"
13029
13030# Used on cygwin: assembler.
13031AS="$AS"
13032
13033# The name of the directory that contains temporary libtool files.
13034objdir=$objdir
13035
13036# How to create reloadable object files.
13037reload_flag=$lt_reload_flag
13038reload_cmds=$lt_reload_cmds
13039
13040# How to pass a linker flag through the compiler.
13041wl=$lt_lt_prog_compiler_wl_CXX
13042
13043# Object file suffix (normally "o").
13044objext="$ac_objext"
13045
13046# Old archive suffix (normally "a").
13047libext="$libext"
13048
13049# Shared library suffix (normally ".so").
13050shrext_cmds='$shrext_cmds'
13051
13052# Executable file suffix (normally "").
13053exeext="$exeext"
13054
13055# Additional compiler flags for building library objects.
13056pic_flag=$lt_lt_prog_compiler_pic_CXX
13057pic_mode=$pic_mode
13058
13059# What is the maximum length of a command?
13060max_cmd_len=$lt_cv_sys_max_cmd_len
13061
13062# Does compiler simultaneously support -c and -o options?
13063compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13064
13065# Must we lock files when doing compilation ?
13066need_locks=$lt_need_locks
13067
13068# Do we need the lib prefix for modules?
13069need_lib_prefix=$need_lib_prefix
13070
13071# Do we need a version for libraries?
13072need_version=$need_version
13073
13074# Whether dlopen is supported.
13075dlopen_support=$enable_dlopen
13076
13077# Whether dlopen of programs is supported.
13078dlopen_self=$enable_dlopen_self
13079
13080# Whether dlopen of statically linked programs is supported.
13081dlopen_self_static=$enable_dlopen_self_static
13082
13083# Compiler flag to prevent dynamic linking.
13084link_static_flag=$lt_lt_prog_compiler_static_CXX
13085
13086# Compiler flag to turn off builtin functions.
13087no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13088
13089# Compiler flag to allow reflexive dlopens.
13090export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13091
13092# Compiler flag to generate shared objects directly from archives.
13093whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13094
13095# Compiler flag to generate thread-safe objects.
13096thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13097
13098# Library versioning type.
13099version_type=$version_type
13100
13101# Format of library name prefix.
13102libname_spec=$lt_libname_spec
13103
13104# List of archive names.  First name is the real one, the rest are links.
13105# The last name is the one that the linker finds with -lNAME.
13106library_names_spec=$lt_library_names_spec
13107
13108# The coded name of the library, if different from the real name.
13109soname_spec=$lt_soname_spec
13110
13111# Commands used to build and install an old-style archive.
13112RANLIB=$lt_RANLIB
13113old_archive_cmds=$lt_old_archive_cmds_CXX
13114old_postinstall_cmds=$lt_old_postinstall_cmds
13115old_postuninstall_cmds=$lt_old_postuninstall_cmds
13116
13117# Create an old-style archive from a shared archive.
13118old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13119
13120# Create a temporary old-style archive to link instead of a shared archive.
13121old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13122
13123# Commands used to build and install a shared archive.
13124archive_cmds=$lt_archive_cmds_CXX
13125archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13126postinstall_cmds=$lt_postinstall_cmds
13127postuninstall_cmds=$lt_postuninstall_cmds
13128
13129# Commands used to build a loadable module (assumed same as above if empty)
13130module_cmds=$lt_module_cmds_CXX
13131module_expsym_cmds=$lt_module_expsym_cmds_CXX
13132
13133# Commands to strip libraries.
13134old_striplib=$lt_old_striplib
13135striplib=$lt_striplib
13136
13137# Dependencies to place before the objects being linked to create a
13138# shared library.
13139predep_objects=$lt_predep_objects_CXX
13140
13141# Dependencies to place after the objects being linked to create a
13142# shared library.
13143postdep_objects=$lt_postdep_objects_CXX
13144
13145# Dependencies to place before the objects being linked to create a
13146# shared library.
13147predeps=$lt_predeps_CXX
13148
13149# Dependencies to place after the objects being linked to create a
13150# shared library.
13151postdeps=$lt_postdeps_CXX
13152
13153# The library search path used internally by the compiler when linking
13154# a shared library.
13155compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13156
13157# Method to check whether dependent libraries are shared objects.
13158deplibs_check_method=$lt_deplibs_check_method
13159
13160# Command to use when deplibs_check_method == file_magic.
13161file_magic_cmd=$lt_file_magic_cmd
13162
13163# Flag that allows shared libraries with undefined symbols to be built.
13164allow_undefined_flag=$lt_allow_undefined_flag_CXX
13165
13166# Flag that forces no undefined symbols.
13167no_undefined_flag=$lt_no_undefined_flag_CXX
13168
13169# Commands used to finish a libtool library installation in a directory.
13170finish_cmds=$lt_finish_cmds
13171
13172# Same as above, but a single script fragment to be evaled but not shown.
13173finish_eval=$lt_finish_eval
13174
13175# Take the output of nm and produce a listing of raw symbols and C names.
13176global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13177
13178# Transform the output of nm in a proper C declaration
13179global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13180
13181# Transform the output of nm in a C name address pair
13182global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13183
13184# This is the shared library runtime path variable.
13185runpath_var=$runpath_var
13186
13187# This is the shared library path variable.
13188shlibpath_var=$shlibpath_var
13189
13190# Is shlibpath searched before the hard-coded library search path?
13191shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13192
13193# How to hardcode a shared library path into an executable.
13194hardcode_action=$hardcode_action_CXX
13195
13196# Whether we should hardcode library paths into libraries.
13197hardcode_into_libs=$hardcode_into_libs
13198
13199# Flag to hardcode \$libdir into a binary during linking.
13200# This must work even if \$libdir does not exist.
13201hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13202
13203# If ld is used when linking, flag to hardcode \$libdir into
13204# a binary during linking. This must work even if \$libdir does
13205# not exist.
13206hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13207
13208# Whether we need a single -rpath flag with a separated argument.
13209hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13210
13211# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13212# resulting binary.
13213hardcode_direct=$hardcode_direct_CXX
13214
13215# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13216# resulting binary.
13217hardcode_minus_L=$hardcode_minus_L_CXX
13218
13219# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13220# the resulting binary.
13221hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13222
13223# Set to yes if building a shared library automatically hardcodes DIR into the library
13224# and all subsequent libraries and executables linked against it.
13225hardcode_automatic=$hardcode_automatic_CXX
13226
13227# Variables whose values should be saved in libtool wrapper scripts and
13228# restored at relink time.
13229variables_saved_for_relink="$variables_saved_for_relink"
13230
13231# Whether libtool must link a program against all its dependency libraries.
13232link_all_deplibs=$link_all_deplibs_CXX
13233
13234# Compile-time system search path for libraries
13235sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13236
13237# Run-time system search path for libraries
13238sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13239
13240# Fix the shell variable \$srcfile for the compiler.
13241fix_srcfile_path="$fix_srcfile_path_CXX"
13242
13243# Set to yes if exported symbols are required.
13244always_export_symbols=$always_export_symbols_CXX
13245
13246# The commands to list exported symbols.
13247export_symbols_cmds=$lt_export_symbols_cmds_CXX
13248
13249# The commands to extract the exported symbol list from a shared archive.
13250extract_expsyms_cmds=$lt_extract_expsyms_cmds
13251
13252# Symbols that should not be listed in the preloaded symbols.
13253exclude_expsyms=$lt_exclude_expsyms_CXX
13254
13255# Symbols that must always be exported.
13256include_expsyms=$lt_include_expsyms_CXX
13257
13258# ### END LIBTOOL TAG CONFIG: $tagname
13259
13260__EOF__
13261
13262
13263else
13264  # If there is no Makefile yet, we rely on a make rule to execute
13265  # `config.status --recheck' to rerun these tests and create the
13266  # libtool script then.
13267  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13268  if test -f "$ltmain_in"; then
13269    test -f Makefile && make "$ltmain"
13270  fi
13271fi
13272
13273
13274ac_ext=c
13275ac_cpp='$CPP $CPPFLAGS'
13276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278ac_compiler_gnu=$ac_cv_c_compiler_gnu
13279
13280CC=$lt_save_CC
13281LDCXX=$LD
13282LD=$lt_save_LD
13283GCC=$lt_save_GCC
13284with_gnu_ldcxx=$with_gnu_ld
13285with_gnu_ld=$lt_save_with_gnu_ld
13286lt_cv_path_LDCXX=$lt_cv_path_LD
13287lt_cv_path_LD=$lt_save_path_LD
13288lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13289lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13290
13291	else
13292	  tagname=""
13293	fi
13294	;;
13295
13296      F77)
13297	if test -n "$F77" && test "X$F77" != "Xno"; then
13298
13299ac_ext=f
13300ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13301ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13302ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13303
13304
13305archive_cmds_need_lc_F77=no
13306allow_undefined_flag_F77=
13307always_export_symbols_F77=no
13308archive_expsym_cmds_F77=
13309export_dynamic_flag_spec_F77=
13310hardcode_direct_F77=no
13311hardcode_libdir_flag_spec_F77=
13312hardcode_libdir_flag_spec_ld_F77=
13313hardcode_libdir_separator_F77=
13314hardcode_minus_L_F77=no
13315hardcode_automatic_F77=no
13316module_cmds_F77=
13317module_expsym_cmds_F77=
13318link_all_deplibs_F77=unknown
13319old_archive_cmds_F77=$old_archive_cmds
13320no_undefined_flag_F77=
13321whole_archive_flag_spec_F77=
13322enable_shared_with_static_runtimes_F77=no
13323
13324# Source file extension for f77 test sources.
13325ac_ext=f
13326
13327# Object file extension for compiled f77 test sources.
13328objext=o
13329objext_F77=$objext
13330
13331# Code to be used in simple compile tests
13332lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13333
13334# Code to be used in simple link tests
13335lt_simple_link_test_code="      program t\n      end\n"
13336
13337# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13338
13339# If no C compiler was specified, use CC.
13340LTCC=${LTCC-"$CC"}
13341
13342# Allow CC to be a program name with arguments.
13343compiler=$CC
13344
13345
13346# Allow CC to be a program name with arguments.
13347lt_save_CC="$CC"
13348CC=${F77-"f77"}
13349compiler=$CC
13350compiler_F77=$CC
13351cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13352
13353echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13354echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13355echo "$as_me:$LINENO: result: $can_build_shared" >&5
13356echo "${ECHO_T}$can_build_shared" >&6
13357
13358echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13359echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13360test "$can_build_shared" = "no" && enable_shared=no
13361
13362# On AIX, shared libraries and static libraries use the same namespace, and
13363# are all built from PIC.
13364case "$host_os" in
13365aix3*)
13366  test "$enable_shared" = yes && enable_static=no
13367  if test -n "$RANLIB"; then
13368    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13369    postinstall_cmds='$RANLIB $lib'
13370  fi
13371  ;;
13372aix4* | aix5*)
13373  test "$enable_shared" = yes && enable_static=no
13374  ;;
13375esac
13376echo "$as_me:$LINENO: result: $enable_shared" >&5
13377echo "${ECHO_T}$enable_shared" >&6
13378
13379echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13380echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13381# Make sure either enable_shared or enable_static is yes.
13382test "$enable_shared" = yes || enable_static=yes
13383echo "$as_me:$LINENO: result: $enable_static" >&5
13384echo "${ECHO_T}$enable_static" >&6
13385
13386test "$ld_shlibs_F77" = no && can_build_shared=no
13387
13388GCC_F77="$G77"
13389LD_F77="$LD"
13390
13391lt_prog_compiler_wl_F77=
13392lt_prog_compiler_pic_F77=
13393lt_prog_compiler_static_F77=
13394
13395echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13396echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13397
13398  if test "$GCC" = yes; then
13399    lt_prog_compiler_wl_F77='-Wl,'
13400    lt_prog_compiler_static_F77='-static'
13401
13402    case $host_os in
13403      aix*)
13404      # All AIX code is PIC.
13405      if test "$host_cpu" = ia64; then
13406	# AIX 5 now supports IA64 processor
13407	lt_prog_compiler_static_F77='-Bstatic'
13408      fi
13409      ;;
13410
13411    amigaos*)
13412      # FIXME: we need at least 68020 code to build shared libraries, but
13413      # adding the `-m68020' flag to GCC prevents building anything better,
13414      # like `-m68040'.
13415      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13416      ;;
13417
13418    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13419      # PIC is the default for these OSes.
13420      ;;
13421
13422    mingw* | pw32* | os2*)
13423      # This hack is so that the source file can tell whether it is being
13424      # built for inclusion in a dll (and should export symbols for example).
13425      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13426      ;;
13427
13428    darwin* | rhapsody*)
13429      # PIC is the default on this platform
13430      # Common symbols not allowed in MH_DYLIB files
13431      lt_prog_compiler_pic_F77='-fno-common'
13432      ;;
13433
13434    msdosdjgpp*)
13435      # Just because we use GCC doesn't mean we suddenly get shared libraries
13436      # on systems that don't support them.
13437      lt_prog_compiler_can_build_shared_F77=no
13438      enable_shared=no
13439      ;;
13440
13441    sysv4*MP*)
13442      if test -d /usr/nec; then
13443	lt_prog_compiler_pic_F77=-Kconform_pic
13444      fi
13445      ;;
13446
13447    hpux*)
13448      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13449      # not for PA HP-UX.
13450      case "$host_cpu" in
13451      hppa*64*|ia64*)
13452	# +Z the default
13453	;;
13454      *)
13455	lt_prog_compiler_pic_F77='-fPIC'
13456	;;
13457      esac
13458      ;;
13459
13460    *)
13461      lt_prog_compiler_pic_F77='-fPIC'
13462      ;;
13463    esac
13464  else
13465    # PORTME Check for flag to pass linker flags through the system compiler.
13466    case $host_os in
13467    aix*)
13468      lt_prog_compiler_wl_F77='-Wl,'
13469      if test "$host_cpu" = ia64; then
13470	# AIX 5 now supports IA64 processor
13471	lt_prog_compiler_static_F77='-Bstatic'
13472      else
13473	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13474      fi
13475      ;;
13476
13477    mingw* | pw32* | os2*)
13478      # This hack is so that the source file can tell whether it is being
13479      # built for inclusion in a dll (and should export symbols for example).
13480      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13481      ;;
13482
13483    hpux9* | hpux10* | hpux11*)
13484      lt_prog_compiler_wl_F77='-Wl,'
13485      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13486      # not for PA HP-UX.
13487      case "$host_cpu" in
13488      hppa*64*|ia64*)
13489	# +Z the default
13490	;;
13491      *)
13492	lt_prog_compiler_pic_F77='+Z'
13493	;;
13494      esac
13495      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13496      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13497      ;;
13498
13499    irix5* | irix6* | nonstopux*)
13500      lt_prog_compiler_wl_F77='-Wl,'
13501      # PIC (with -KPIC) is the default.
13502      lt_prog_compiler_static_F77='-non_shared'
13503      ;;
13504
13505    newsos6)
13506      lt_prog_compiler_pic_F77='-KPIC'
13507      lt_prog_compiler_static_F77='-Bstatic'
13508      ;;
13509
13510    linux*)
13511      case $CC in
13512      icc* | ecc*)
13513	lt_prog_compiler_wl_F77='-Wl,'
13514	lt_prog_compiler_pic_F77='-KPIC'
13515	lt_prog_compiler_static_F77='-static'
13516        ;;
13517      ccc*)
13518        lt_prog_compiler_wl_F77='-Wl,'
13519        # All Alpha code is PIC.
13520        lt_prog_compiler_static_F77='-non_shared'
13521        ;;
13522      esac
13523      ;;
13524
13525    osf3* | osf4* | osf5*)
13526      lt_prog_compiler_wl_F77='-Wl,'
13527      # All OSF/1 code is PIC.
13528      lt_prog_compiler_static_F77='-non_shared'
13529      ;;
13530
13531    sco3.2v5*)
13532      lt_prog_compiler_pic_F77='-Kpic'
13533      lt_prog_compiler_static_F77='-dn'
13534      ;;
13535
13536    solaris*)
13537      lt_prog_compiler_wl_F77='-Wl,'
13538      lt_prog_compiler_pic_F77='-KPIC'
13539      lt_prog_compiler_static_F77='-Bstatic'
13540      ;;
13541
13542    sunos4*)
13543      lt_prog_compiler_wl_F77='-Qoption ld '
13544      lt_prog_compiler_pic_F77='-PIC'
13545      lt_prog_compiler_static_F77='-Bstatic'
13546      ;;
13547
13548    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13549      lt_prog_compiler_wl_F77='-Wl,'
13550      lt_prog_compiler_pic_F77='-KPIC'
13551      lt_prog_compiler_static_F77='-Bstatic'
13552      ;;
13553
13554    sysv4*MP*)
13555      if test -d /usr/nec ;then
13556	lt_prog_compiler_pic_F77='-Kconform_pic'
13557	lt_prog_compiler_static_F77='-Bstatic'
13558      fi
13559      ;;
13560
13561    uts4*)
13562      lt_prog_compiler_pic_F77='-pic'
13563      lt_prog_compiler_static_F77='-Bstatic'
13564      ;;
13565
13566    *)
13567      lt_prog_compiler_can_build_shared_F77=no
13568      ;;
13569    esac
13570  fi
13571
13572echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13573echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13574
13575#
13576# Check to make sure the PIC flag actually works.
13577#
13578if test -n "$lt_prog_compiler_pic_F77"; then
13579
13580echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13581echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13582if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13583  echo $ECHO_N "(cached) $ECHO_C" >&6
13584else
13585  lt_prog_compiler_pic_works_F77=no
13586  ac_outfile=conftest.$ac_objext
13587   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13588   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13589   # Insert the option either (1) after the last *FLAGS variable, or
13590   # (2) before a word containing "conftest.", or (3) at the end.
13591   # Note that $ac_compile itself does not contain backslashes and begins
13592   # with a dollar sign (not a hyphen), so the echo should work correctly.
13593   # The option is referenced via a variable to avoid confusing sed.
13594   lt_compile=`echo "$ac_compile" | $SED \
13595   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13596   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13597   -e 's:$: $lt_compiler_flag:'`
13598   (eval echo "\"\$as_me:13598: $lt_compile\"" >&5)
13599   (eval "$lt_compile" 2>conftest.err)
13600   ac_status=$?
13601   cat conftest.err >&5
13602   echo "$as_me:13602: \$? = $ac_status" >&5
13603   if (exit $ac_status) && test -s "$ac_outfile"; then
13604     # The compiler can only warn and ignore the option if not recognized
13605     # So say no if there are warnings
13606     if test ! -s conftest.err; then
13607       lt_prog_compiler_pic_works_F77=yes
13608     fi
13609   fi
13610   $rm conftest*
13611
13612fi
13613echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13614echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13615
13616if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13617    case $lt_prog_compiler_pic_F77 in
13618     "" | " "*) ;;
13619     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13620     esac
13621else
13622    lt_prog_compiler_pic_F77=
13623     lt_prog_compiler_can_build_shared_F77=no
13624fi
13625
13626fi
13627case "$host_os" in
13628  # For platforms which do not support PIC, -DPIC is meaningless:
13629  *djgpp*)
13630    lt_prog_compiler_pic_F77=
13631    ;;
13632  *)
13633    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13634    ;;
13635esac
13636
13637echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13638echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13639if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13640  echo $ECHO_N "(cached) $ECHO_C" >&6
13641else
13642  lt_cv_prog_compiler_c_o_F77=no
13643   $rm -r conftest 2>/dev/null
13644   mkdir conftest
13645   cd conftest
13646   mkdir out
13647   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13648
13649   lt_compiler_flag="-o out/conftest2.$ac_objext"
13650   # Insert the option either (1) after the last *FLAGS variable, or
13651   # (2) before a word containing "conftest.", or (3) at the end.
13652   # Note that $ac_compile itself does not contain backslashes and begins
13653   # with a dollar sign (not a hyphen), so the echo should work correctly.
13654   lt_compile=`echo "$ac_compile" | $SED \
13655   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13657   -e 's:$: $lt_compiler_flag:'`
13658   (eval echo "\"\$as_me:13658: $lt_compile\"" >&5)
13659   (eval "$lt_compile" 2>out/conftest.err)
13660   ac_status=$?
13661   cat out/conftest.err >&5
13662   echo "$as_me:13662: \$? = $ac_status" >&5
13663   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13664   then
13665     # The compiler can only warn and ignore the option if not recognized
13666     # So say no if there are warnings
13667     if test ! -s out/conftest.err; then
13668       lt_cv_prog_compiler_c_o_F77=yes
13669     fi
13670   fi
13671   chmod u+w .
13672   $rm conftest*
13673   # SGI C++ compiler will create directory out/ii_files/ for
13674   # template instantiation
13675   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13676   $rm out/* && rmdir out
13677   cd ..
13678   rmdir conftest
13679   $rm conftest*
13680
13681fi
13682echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13683echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13684
13685
13686hard_links="nottested"
13687if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13688  # do not overwrite the value of need_locks provided by the user
13689  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13690echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13691  hard_links=yes
13692  $rm conftest*
13693  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13694  touch conftest.a
13695  ln conftest.a conftest.b 2>&5 || hard_links=no
13696  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13697  echo "$as_me:$LINENO: result: $hard_links" >&5
13698echo "${ECHO_T}$hard_links" >&6
13699  if test "$hard_links" = no; then
13700    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13701echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13702    need_locks=warn
13703  fi
13704else
13705  need_locks=no
13706fi
13707
13708echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13709echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13710
13711  runpath_var=
13712  allow_undefined_flag_F77=
13713  enable_shared_with_static_runtimes_F77=no
13714  archive_cmds_F77=
13715  archive_expsym_cmds_F77=
13716  old_archive_From_new_cmds_F77=
13717  old_archive_from_expsyms_cmds_F77=
13718  export_dynamic_flag_spec_F77=
13719  whole_archive_flag_spec_F77=
13720  thread_safe_flag_spec_F77=
13721  hardcode_libdir_flag_spec_F77=
13722  hardcode_libdir_flag_spec_ld_F77=
13723  hardcode_libdir_separator_F77=
13724  hardcode_direct_F77=no
13725  hardcode_minus_L_F77=no
13726  hardcode_shlibpath_var_F77=unsupported
13727  link_all_deplibs_F77=unknown
13728  hardcode_automatic_F77=no
13729  module_cmds_F77=
13730  module_expsym_cmds_F77=
13731  always_export_symbols_F77=no
13732  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13733  # include_expsyms should be a list of space-separated symbols to be *always*
13734  # included in the symbol list
13735  include_expsyms_F77=
13736  # exclude_expsyms can be an extended regexp of symbols to exclude
13737  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13738  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13739  # as well as any symbol that contains `d'.
13740  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13741  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13742  # platforms (ab)use it in PIC code, but their linkers get confused if
13743  # the symbol is explicitly referenced.  Since portable code cannot
13744  # rely on this symbol name, it's probably fine to never include it in
13745  # preloaded symbol tables.
13746  extract_expsyms_cmds=
13747
13748  case $host_os in
13749  cygwin* | mingw* | pw32*)
13750    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13751    # When not using gcc, we currently assume that we are using
13752    # Microsoft Visual C++.
13753    if test "$GCC" != yes; then
13754      with_gnu_ld=no
13755    fi
13756    ;;
13757  openbsd*)
13758    with_gnu_ld=no
13759    ;;
13760  esac
13761
13762  ld_shlibs_F77=yes
13763  if test "$with_gnu_ld" = yes; then
13764    # If archive_cmds runs LD, not CC, wlarc should be empty
13765    wlarc='${wl}'
13766
13767    # See if GNU ld supports shared libraries.
13768    case $host_os in
13769    aix3* | aix4* | aix5*)
13770      # On AIX/PPC, the GNU linker is very broken
13771      if test "$host_cpu" != ia64; then
13772	ld_shlibs_F77=no
13773	cat <<EOF 1>&2
13774
13775*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13776*** to be unable to reliably create shared libraries on AIX.
13777*** Therefore, libtool is disabling shared libraries support.  If you
13778*** really care for shared libraries, you may want to modify your PATH
13779*** so that a non-GNU linker is found, and then restart.
13780
13781EOF
13782      fi
13783      ;;
13784
13785    amigaos*)
13786      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)'
13787      hardcode_libdir_flag_spec_F77='-L$libdir'
13788      hardcode_minus_L_F77=yes
13789
13790      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13791      # that the semantics of dynamic libraries on AmigaOS, at least up
13792      # to version 4, is to share data among multiple programs linked
13793      # with the same dynamic library.  Since this doesn't match the
13794      # behavior of shared libraries on other platforms, we can't use
13795      # them.
13796      ld_shlibs_F77=no
13797      ;;
13798
13799    beos*)
13800      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13801	allow_undefined_flag_F77=unsupported
13802	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13803	# support --undefined.  This deserves some investigation.  FIXME
13804	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13805      else
13806	ld_shlibs_F77=no
13807      fi
13808      ;;
13809
13810    cygwin* | mingw* | pw32*)
13811      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13812      # as there is no search path for DLLs.
13813      hardcode_libdir_flag_spec_F77='-L$libdir'
13814      allow_undefined_flag_F77=unsupported
13815      always_export_symbols_F77=no
13816      enable_shared_with_static_runtimes_F77=yes
13817      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13818
13819      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13820        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13821	# If the export-symbols file already is a .def file (1st line
13822	# is EXPORTS), use it as is; otherwise, prepend...
13823	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13824	  cp $export_symbols $output_objdir/$soname.def;
13825	else
13826	  echo EXPORTS > $output_objdir/$soname.def;
13827	  cat $export_symbols >> $output_objdir/$soname.def;
13828	fi~
13829	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13830      else
13831	ld_shlibs=no
13832      fi
13833      ;;
13834
13835    netbsd*)
13836      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13837	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13838	wlarc=
13839      else
13840	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13841	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13842      fi
13843      ;;
13844
13845    solaris* | sysv5*)
13846      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13847	ld_shlibs_F77=no
13848	cat <<EOF 1>&2
13849
13850*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13851*** create shared libraries on Solaris systems.  Therefore, libtool
13852*** is disabling shared libraries support.  We urge you to upgrade GNU
13853*** binutils to release 2.9.1 or newer.  Another option is to modify
13854*** your PATH or compiler configuration so that the native linker is
13855*** used, and then restart.
13856
13857EOF
13858      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13859	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13860	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13861      else
13862	ld_shlibs_F77=no
13863      fi
13864      ;;
13865
13866    sunos4*)
13867      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13868      wlarc=
13869      hardcode_direct_F77=yes
13870      hardcode_shlibpath_var_F77=no
13871      ;;
13872
13873  linux*)
13874    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13875        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13876	archive_cmds_F77="$tmp_archive_cmds"
13877      supports_anon_versioning=no
13878      case `$LD -v 2>/dev/null` in
13879        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13880        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13881        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13882        *\ 2.11.*) ;; # other 2.11 versions
13883        *) supports_anon_versioning=yes ;;
13884      esac
13885      if test $supports_anon_versioning = yes; then
13886        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13887cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13888$echo "local: *; };" >> $output_objdir/$libname.ver~
13889        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13890      else
13891        archive_expsym_cmds_F77="$tmp_archive_cmds"
13892      fi
13893    else
13894      ld_shlibs_F77=no
13895    fi
13896    ;;
13897
13898    *)
13899      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13900	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13902      else
13903	ld_shlibs_F77=no
13904      fi
13905      ;;
13906    esac
13907
13908    if test "$ld_shlibs_F77" = yes; then
13909      runpath_var=LD_RUN_PATH
13910      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13911      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13912      # ancient GNU ld didn't support --whole-archive et. al.
13913      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13914 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13915      else
13916  	whole_archive_flag_spec_F77=
13917      fi
13918    fi
13919  else
13920    # PORTME fill in a description of your system's linker (not GNU ld)
13921    case $host_os in
13922    aix3*)
13923      allow_undefined_flag_F77=unsupported
13924      always_export_symbols_F77=yes
13925      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'
13926      # Note: this linker hardcodes the directories in LIBPATH if there
13927      # are no directories specified by -L.
13928      hardcode_minus_L_F77=yes
13929      if test "$GCC" = yes && test -z "$link_static_flag"; then
13930	# Neither direct hardcoding nor static linking is supported with a
13931	# broken collect2.
13932	hardcode_direct_F77=unsupported
13933      fi
13934      ;;
13935
13936    aix4* | aix5*)
13937      if test "$host_cpu" = ia64; then
13938	# On IA64, the linker does run time linking by default, so we don't
13939	# have to do anything special.
13940	aix_use_runtimelinking=no
13941	exp_sym_flag='-Bexport'
13942	no_entry_flag=""
13943      else
13944	# If we're using GNU nm, then we don't want the "-C" option.
13945	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13946	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13947	  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'
13948	else
13949	  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'
13950	fi
13951	aix_use_runtimelinking=no
13952
13953	# Test if we are trying to use run time linking or normal
13954	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13955	# need to do runtime linking.
13956	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13957	  for ld_flag in $LDFLAGS; do
13958  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13959  	    aix_use_runtimelinking=yes
13960  	    break
13961  	  fi
13962	  done
13963	esac
13964
13965	exp_sym_flag='-bexport'
13966	no_entry_flag='-bnoentry'
13967      fi
13968
13969      # When large executables or shared objects are built, AIX ld can
13970      # have problems creating the table of contents.  If linking a library
13971      # or program results in "error TOC overflow" add -mminimal-toc to
13972      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13973      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13974
13975      archive_cmds_F77=''
13976      hardcode_direct_F77=yes
13977      hardcode_libdir_separator_F77=':'
13978      link_all_deplibs_F77=yes
13979
13980      if test "$GCC" = yes; then
13981	case $host_os in aix4.012|aix4.012.*)
13982	# We only want to do this on AIX 4.2 and lower, the check
13983	# below for broken collect2 doesn't work under 4.3+
13984	  collect2name=`${CC} -print-prog-name=collect2`
13985	  if test -f "$collect2name" && \
13986  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13987	  then
13988  	  # We have reworked collect2
13989  	  hardcode_direct_F77=yes
13990	  else
13991  	  # We have old collect2
13992  	  hardcode_direct_F77=unsupported
13993  	  # It fails to find uninstalled libraries when the uninstalled
13994  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13995  	  # to unsupported forces relinking
13996  	  hardcode_minus_L_F77=yes
13997  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13998  	  hardcode_libdir_separator_F77=
13999	  fi
14000	esac
14001	shared_flag='-shared'
14002      else
14003	# not using gcc
14004	if test "$host_cpu" = ia64; then
14005  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14006  	# chokes on -Wl,-G. The following line is correct:
14007	  shared_flag='-G'
14008	else
14009  	if test "$aix_use_runtimelinking" = yes; then
14010	    shared_flag='${wl}-G'
14011	  else
14012	    shared_flag='${wl}-bM:SRE'
14013  	fi
14014	fi
14015      fi
14016
14017      # It seems that -bexpall does not export symbols beginning with
14018      # underscore (_), so it is better to generate a list of symbols to export.
14019      always_export_symbols_F77=yes
14020      if test "$aix_use_runtimelinking" = yes; then
14021	# Warning - without using the other runtime loading flags (-brtl),
14022	# -berok will link without error, but may produce a broken library.
14023	allow_undefined_flag_F77='-berok'
14024       # Determine the default libpath from the value encoded in an empty executable.
14025       cat >conftest.$ac_ext <<_ACEOF
14026      program main
14027
14028      end
14029_ACEOF
14030rm -f conftest.$ac_objext conftest$ac_exeext
14031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14032  (eval $ac_link) 2>conftest.er1
14033  ac_status=$?
14034  grep -v '^ *+' conftest.er1 >conftest.err
14035  rm -f conftest.er1
14036  cat conftest.err >&5
14037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038  (exit $ac_status); } &&
14039	 { ac_try='test -z "$ac_f77_werror_flag"
14040			 || test ! -s conftest.err'
14041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042  (eval $ac_try) 2>&5
14043  ac_status=$?
14044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045  (exit $ac_status); }; } &&
14046	 { ac_try='test -s conftest$ac_exeext'
14047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048  (eval $ac_try) 2>&5
14049  ac_status=$?
14050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051  (exit $ac_status); }; }; then
14052
14053aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14054}'`
14055# Check for a 64-bit object if we didn't find anything.
14056if 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; }
14057}'`; fi
14058else
14059  echo "$as_me: failed program was:" >&5
14060sed 's/^/| /' conftest.$ac_ext >&5
14061
14062fi
14063rm -f conftest.err conftest.$ac_objext \
14064      conftest$ac_exeext conftest.$ac_ext
14065if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14066
14067       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14068	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14069       else
14070	if test "$host_cpu" = ia64; then
14071	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14072	  allow_undefined_flag_F77="-z nodefs"
14073	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14074	else
14075	 # Determine the default libpath from the value encoded in an empty executable.
14076	 cat >conftest.$ac_ext <<_ACEOF
14077      program main
14078
14079      end
14080_ACEOF
14081rm -f conftest.$ac_objext conftest$ac_exeext
14082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14083  (eval $ac_link) 2>conftest.er1
14084  ac_status=$?
14085  grep -v '^ *+' conftest.er1 >conftest.err
14086  rm -f conftest.er1
14087  cat conftest.err >&5
14088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089  (exit $ac_status); } &&
14090	 { ac_try='test -z "$ac_f77_werror_flag"
14091			 || test ! -s conftest.err'
14092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093  (eval $ac_try) 2>&5
14094  ac_status=$?
14095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096  (exit $ac_status); }; } &&
14097	 { ac_try='test -s conftest$ac_exeext'
14098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099  (eval $ac_try) 2>&5
14100  ac_status=$?
14101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102  (exit $ac_status); }; }; then
14103
14104aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14105}'`
14106# Check for a 64-bit object if we didn't find anything.
14107if 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; }
14108}'`; fi
14109else
14110  echo "$as_me: failed program was:" >&5
14111sed 's/^/| /' conftest.$ac_ext >&5
14112
14113fi
14114rm -f conftest.err conftest.$ac_objext \
14115      conftest$ac_exeext conftest.$ac_ext
14116if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14117
14118	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14119	  # Warning - without using the other run time loading flags,
14120	  # -berok will link without error, but may produce a broken library.
14121	  no_undefined_flag_F77=' ${wl}-bernotok'
14122	  allow_undefined_flag_F77=' ${wl}-berok'
14123	  # -bexpall does not export symbols beginning with underscore (_)
14124	  always_export_symbols_F77=yes
14125	  # Exported symbols can be pulled into shared objects from archives
14126	  whole_archive_flag_spec_F77=' '
14127	  archive_cmds_need_lc_F77=yes
14128	  # This is similar to how AIX traditionally builds it's shared libraries.
14129	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14130	fi
14131      fi
14132      ;;
14133
14134    amigaos*)
14135      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)'
14136      hardcode_libdir_flag_spec_F77='-L$libdir'
14137      hardcode_minus_L_F77=yes
14138      # see comment about different semantics on the GNU ld section
14139      ld_shlibs_F77=no
14140      ;;
14141
14142    bsdi4*)
14143      export_dynamic_flag_spec_F77=-rdynamic
14144      ;;
14145
14146    cygwin* | mingw* | pw32*)
14147      # When not using gcc, we currently assume that we are using
14148      # Microsoft Visual C++.
14149      # hardcode_libdir_flag_spec is actually meaningless, as there is
14150      # no search path for DLLs.
14151      hardcode_libdir_flag_spec_F77=' '
14152      allow_undefined_flag_F77=unsupported
14153      # Tell ltmain to make .lib files, not .a files.
14154      libext=lib
14155      # Tell ltmain to make .dll files, not .so files.
14156      shrext_cmds=".dll"
14157      # FIXME: Setting linknames here is a bad hack.
14158      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14159      # The linker will automatically build a .lib file if we build a DLL.
14160      old_archive_From_new_cmds_F77='true'
14161      # FIXME: Should let the user specify the lib program.
14162      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14163      fix_srcfile_path='`cygpath -w "$srcfile"`'
14164      enable_shared_with_static_runtimes_F77=yes
14165      ;;
14166
14167    darwin* | rhapsody*)
14168    if test "$GXX" = yes ; then
14169      archive_cmds_need_lc_F77=no
14170      case "$host_os" in
14171      rhapsody* | darwin1.[012])
14172	allow_undefined_flag_F77='-undefined suppress'
14173	;;
14174      *) # Darwin 1.3 on
14175      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14176      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14177      else
14178        case ${MACOSX_DEPLOYMENT_TARGET} in
14179          10.[012])
14180            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14181            ;;
14182          10.*)
14183            allow_undefined_flag_F77='-undefined dynamic_lookup'
14184            ;;
14185        esac
14186      fi
14187	;;
14188      esac
14189    	lt_int_apple_cc_single_mod=no
14190    	output_verbose_link_cmd='echo'
14191    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14192    	  lt_int_apple_cc_single_mod=yes
14193    	fi
14194    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14195    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14196    	else
14197        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14198      fi
14199      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14200      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14201        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14202          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14203        else
14204          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14205        fi
14206          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}'
14207      hardcode_direct_F77=no
14208      hardcode_automatic_F77=yes
14209      hardcode_shlibpath_var_F77=unsupported
14210      whole_archive_flag_spec_F77='-all_load $convenience'
14211      link_all_deplibs_F77=yes
14212    else
14213      ld_shlibs_F77=no
14214    fi
14215      ;;
14216
14217    dgux*)
14218      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14219      hardcode_libdir_flag_spec_F77='-L$libdir'
14220      hardcode_shlibpath_var_F77=no
14221      ;;
14222
14223    freebsd1*)
14224      ld_shlibs_F77=no
14225      ;;
14226
14227    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14228    # support.  Future versions do this automatically, but an explicit c++rt0.o
14229    # does not break anything, and helps significantly (at the cost of a little
14230    # extra space).
14231    freebsd2.2*)
14232      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14233      hardcode_libdir_flag_spec_F77='-R$libdir'
14234      hardcode_direct_F77=yes
14235      hardcode_shlibpath_var_F77=no
14236      ;;
14237
14238    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14239    freebsd2*)
14240      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14241      hardcode_direct_F77=yes
14242      hardcode_minus_L_F77=yes
14243      hardcode_shlibpath_var_F77=no
14244      ;;
14245
14246    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14247    freebsd* | kfreebsd*-gnu)
14248      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14249      hardcode_libdir_flag_spec_F77='-R$libdir'
14250      hardcode_direct_F77=yes
14251      hardcode_shlibpath_var_F77=no
14252      ;;
14253
14254    hpux9*)
14255      if test "$GCC" = yes; then
14256	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'
14257      else
14258	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'
14259      fi
14260      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14261      hardcode_libdir_separator_F77=:
14262      hardcode_direct_F77=yes
14263
14264      # hardcode_minus_L: Not really in the search PATH,
14265      # but as the default location of the library.
14266      hardcode_minus_L_F77=yes
14267      export_dynamic_flag_spec_F77='${wl}-E'
14268      ;;
14269
14270    hpux10* | hpux11*)
14271      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14272	case "$host_cpu" in
14273	hppa*64*|ia64*)
14274	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14275	  ;;
14276	*)
14277	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14278	  ;;
14279	esac
14280      else
14281	case "$host_cpu" in
14282	hppa*64*|ia64*)
14283	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14284	  ;;
14285	*)
14286	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14287	  ;;
14288	esac
14289      fi
14290      if test "$with_gnu_ld" = no; then
14291	case "$host_cpu" in
14292	hppa*64*)
14293	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14294	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14295	  hardcode_libdir_separator_F77=:
14296	  hardcode_direct_F77=no
14297	  hardcode_shlibpath_var_F77=no
14298	  ;;
14299	ia64*)
14300	  hardcode_libdir_flag_spec_F77='-L$libdir'
14301	  hardcode_direct_F77=no
14302	  hardcode_shlibpath_var_F77=no
14303
14304	  # hardcode_minus_L: Not really in the search PATH,
14305	  # but as the default location of the library.
14306	  hardcode_minus_L_F77=yes
14307	  ;;
14308	*)
14309	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14310	  hardcode_libdir_separator_F77=:
14311	  hardcode_direct_F77=yes
14312	  export_dynamic_flag_spec_F77='${wl}-E'
14313
14314	  # hardcode_minus_L: Not really in the search PATH,
14315	  # but as the default location of the library.
14316	  hardcode_minus_L_F77=yes
14317	  ;;
14318	esac
14319      fi
14320      ;;
14321
14322    irix5* | irix6* | nonstopux*)
14323      if test "$GCC" = yes; then
14324	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'
14325      else
14326	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'
14327	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14328      fi
14329      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14330      hardcode_libdir_separator_F77=:
14331      link_all_deplibs_F77=yes
14332      ;;
14333
14334    netbsd*)
14335      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14336	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14337      else
14338	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14339      fi
14340      hardcode_libdir_flag_spec_F77='-R$libdir'
14341      hardcode_direct_F77=yes
14342      hardcode_shlibpath_var_F77=no
14343      ;;
14344
14345    newsos6)
14346      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14347      hardcode_direct_F77=yes
14348      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14349      hardcode_libdir_separator_F77=:
14350      hardcode_shlibpath_var_F77=no
14351      ;;
14352
14353    openbsd*)
14354      hardcode_direct_F77=yes
14355      hardcode_shlibpath_var_F77=no
14356      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14357	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14358	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14359	export_dynamic_flag_spec_F77='${wl}-E'
14360      else
14361       case $host_os in
14362	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14363	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14364	   hardcode_libdir_flag_spec_F77='-R$libdir'
14365	   ;;
14366	 *)
14367	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14368	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14369	   ;;
14370       esac
14371      fi
14372      ;;
14373
14374    os2*)
14375      hardcode_libdir_flag_spec_F77='-L$libdir'
14376      hardcode_minus_L_F77=yes
14377      allow_undefined_flag_F77=unsupported
14378      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'
14379      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14380      ;;
14381
14382    osf3*)
14383      if test "$GCC" = yes; then
14384	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14385	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'
14386      else
14387	allow_undefined_flag_F77=' -expect_unresolved \*'
14388	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'
14389      fi
14390      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14391      hardcode_libdir_separator_F77=:
14392      ;;
14393
14394    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14395      if test "$GCC" = yes; then
14396	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14397	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'
14398	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14399      else
14400	allow_undefined_flag_F77=' -expect_unresolved \*'
14401	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'
14402	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~
14403	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14404
14405	# Both c and cxx compiler support -rpath directly
14406	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14407      fi
14408      hardcode_libdir_separator_F77=:
14409      ;;
14410
14411    sco3.2v5*)
14412      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14413      hardcode_shlibpath_var_F77=no
14414      export_dynamic_flag_spec_F77='${wl}-Bexport'
14415      runpath_var=LD_RUN_PATH
14416      hardcode_runpath_var=yes
14417      ;;
14418
14419    solaris*)
14420      no_undefined_flag_F77=' -z text'
14421      if test "$GCC" = yes; then
14422	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14423	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14424	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14425      else
14426	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14427	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14428  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14429      fi
14430      hardcode_libdir_flag_spec_F77='-R$libdir'
14431      hardcode_shlibpath_var_F77=no
14432      case $host_os in
14433      solaris2.[0-5] | solaris2.[0-5].*) ;;
14434      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14435	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14436      esac
14437      link_all_deplibs_F77=yes
14438      ;;
14439
14440    sunos4*)
14441      if test "x$host_vendor" = xsequent; then
14442	# Use $CC to link under sequent, because it throws in some extra .o
14443	# files that make .init and .fini sections work.
14444	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14445      else
14446	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14447      fi
14448      hardcode_libdir_flag_spec_F77='-L$libdir'
14449      hardcode_direct_F77=yes
14450      hardcode_minus_L_F77=yes
14451      hardcode_shlibpath_var_F77=no
14452      ;;
14453
14454    sysv4)
14455      case $host_vendor in
14456	sni)
14457	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14458	  hardcode_direct_F77=yes # is this really true???
14459	;;
14460	siemens)
14461	  ## LD is ld it makes a PLAMLIB
14462	  ## CC just makes a GrossModule.
14463	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14464	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14465	  hardcode_direct_F77=no
14466        ;;
14467	motorola)
14468	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14469	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14470	;;
14471      esac
14472      runpath_var='LD_RUN_PATH'
14473      hardcode_shlibpath_var_F77=no
14474      ;;
14475
14476    sysv4.3*)
14477      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14478      hardcode_shlibpath_var_F77=no
14479      export_dynamic_flag_spec_F77='-Bexport'
14480      ;;
14481
14482    sysv4*MP*)
14483      if test -d /usr/nec; then
14484	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14485	hardcode_shlibpath_var_F77=no
14486	runpath_var=LD_RUN_PATH
14487	hardcode_runpath_var=yes
14488	ld_shlibs_F77=yes
14489      fi
14490      ;;
14491
14492    sysv4.2uw2*)
14493      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14494      hardcode_direct_F77=yes
14495      hardcode_minus_L_F77=no
14496      hardcode_shlibpath_var_F77=no
14497      hardcode_runpath_var=yes
14498      runpath_var=LD_RUN_PATH
14499      ;;
14500
14501   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14502      no_undefined_flag_F77='${wl}-z ${wl}text'
14503      if test "$GCC" = yes; then
14504	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14505      else
14506	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14507      fi
14508      runpath_var='LD_RUN_PATH'
14509      hardcode_shlibpath_var_F77=no
14510      ;;
14511
14512    sysv5*)
14513      no_undefined_flag_F77=' -z text'
14514      # $CC -shared without GNU ld will not create a library from C++
14515      # object files and a static libstdc++, better avoid it by now
14516      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14517      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14518  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14519      hardcode_libdir_flag_spec_F77=
14520      hardcode_shlibpath_var_F77=no
14521      runpath_var='LD_RUN_PATH'
14522      ;;
14523
14524    uts4*)
14525      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14526      hardcode_libdir_flag_spec_F77='-L$libdir'
14527      hardcode_shlibpath_var_F77=no
14528      ;;
14529
14530    *)
14531      ld_shlibs_F77=no
14532      ;;
14533    esac
14534  fi
14535
14536echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14537echo "${ECHO_T}$ld_shlibs_F77" >&6
14538test "$ld_shlibs_F77" = no && can_build_shared=no
14539
14540variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14541if test "$GCC" = yes; then
14542  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14543fi
14544
14545#
14546# Do we need to explicitly link libc?
14547#
14548case "x$archive_cmds_need_lc_F77" in
14549x|xyes)
14550  # Assume -lc should be added
14551  archive_cmds_need_lc_F77=yes
14552
14553  if test "$enable_shared" = yes && test "$GCC" = yes; then
14554    case $archive_cmds_F77 in
14555    *'~'*)
14556      # FIXME: we may have to deal with multi-command sequences.
14557      ;;
14558    '$CC '*)
14559      # Test whether the compiler implicitly links with -lc since on some
14560      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14561      # to ld, don't add -lc before -lgcc.
14562      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14563echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14564      $rm conftest*
14565      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14566
14567      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568  (eval $ac_compile) 2>&5
14569  ac_status=$?
14570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571  (exit $ac_status); } 2>conftest.err; then
14572        soname=conftest
14573        lib=conftest
14574        libobjs=conftest.$ac_objext
14575        deplibs=
14576        wl=$lt_prog_compiler_wl_F77
14577        compiler_flags=-v
14578        linker_flags=-v
14579        verstring=
14580        output_objdir=.
14581        libname=conftest
14582        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14583        allow_undefined_flag_F77=
14584        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14585  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14586  ac_status=$?
14587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588  (exit $ac_status); }
14589        then
14590	  archive_cmds_need_lc_F77=no
14591        else
14592	  archive_cmds_need_lc_F77=yes
14593        fi
14594        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14595      else
14596        cat conftest.err 1>&5
14597      fi
14598      $rm conftest*
14599      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14600echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14601      ;;
14602    esac
14603  fi
14604  ;;
14605esac
14606
14607echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14608echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14609library_names_spec=
14610libname_spec='lib$name'
14611soname_spec=
14612shrext_cmds=".so"
14613postinstall_cmds=
14614postuninstall_cmds=
14615finish_cmds=
14616finish_eval=
14617shlibpath_var=
14618shlibpath_overrides_runpath=unknown
14619version_type=none
14620dynamic_linker="$host_os ld.so"
14621sys_lib_dlsearch_path_spec="/lib /usr/lib"
14622if test "$GCC" = yes; then
14623  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14624  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14625    # if the path contains ";" then we assume it to be the separator
14626    # otherwise default to the standard path separator (i.e. ":") - it is
14627    # assumed that no part of a normal pathname contains ";" but that should
14628    # okay in the real world where ";" in dirpaths is itself problematic.
14629    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14630  else
14631    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14632  fi
14633else
14634  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14635fi
14636need_lib_prefix=unknown
14637hardcode_into_libs=no
14638
14639# when you set need_version to no, make sure it does not cause -set_version
14640# flags to be left without arguments
14641need_version=unknown
14642
14643case $host_os in
14644aix3*)
14645  version_type=linux
14646  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14647  shlibpath_var=LIBPATH
14648
14649  # AIX 3 has no versioning support, so we append a major version to the name.
14650  soname_spec='${libname}${release}${shared_ext}$major'
14651  ;;
14652
14653aix4* | aix5*)
14654  version_type=linux
14655  need_lib_prefix=no
14656  need_version=no
14657  hardcode_into_libs=yes
14658  if test "$host_cpu" = ia64; then
14659    # AIX 5 supports IA64
14660    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14661    shlibpath_var=LD_LIBRARY_PATH
14662  else
14663    # With GCC up to 2.95.x, collect2 would create an import file
14664    # for dependence libraries.  The import file would start with
14665    # the line `#! .'.  This would cause the generated library to
14666    # depend on `.', always an invalid library.  This was fixed in
14667    # development snapshots of GCC prior to 3.0.
14668    case $host_os in
14669      aix4 | aix4.[01] | aix4.[01].*)
14670      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14671	   echo ' yes '
14672	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14673	:
14674      else
14675	can_build_shared=no
14676      fi
14677      ;;
14678    esac
14679    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14680    # soname into executable. Probably we can add versioning support to
14681    # collect2, so additional links can be useful in future.
14682    if test "$aix_use_runtimelinking" = yes; then
14683      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14684      # instead of lib<name>.a to let people know that these are not
14685      # typical AIX shared libraries.
14686      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687    else
14688      # We preserve .a as extension for shared libraries through AIX4.2
14689      # and later when we are not doing run time linking.
14690      library_names_spec='${libname}${release}.a $libname.a'
14691      soname_spec='${libname}${release}${shared_ext}$major'
14692    fi
14693    shlibpath_var=LIBPATH
14694  fi
14695  ;;
14696
14697amigaos*)
14698  library_names_spec='$libname.ixlibrary $libname.a'
14699  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14700  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'
14701  ;;
14702
14703beos*)
14704  library_names_spec='${libname}${shared_ext}'
14705  dynamic_linker="$host_os ld.so"
14706  shlibpath_var=LIBRARY_PATH
14707  ;;
14708
14709bsdi4*)
14710  version_type=linux
14711  need_version=no
14712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713  soname_spec='${libname}${release}${shared_ext}$major'
14714  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14715  shlibpath_var=LD_LIBRARY_PATH
14716  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14717  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14718  # the default ld.so.conf also contains /usr/contrib/lib and
14719  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14720  # libtool to hard-code these into programs
14721  ;;
14722
14723cygwin* | mingw* | pw32*)
14724  version_type=windows
14725  shrext_cmds=".dll"
14726  need_version=no
14727  need_lib_prefix=no
14728
14729  case $GCC,$host_os in
14730  yes,cygwin* | yes,mingw* | yes,pw32*)
14731    library_names_spec='$libname.dll.a'
14732    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14733    postinstall_cmds='base_file=`basename \${file}`~
14734      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14735      dldir=$destdir/`dirname \$dlpath`~
14736      test -d \$dldir || mkdir -p \$dldir~
14737      $install_prog $dir/$dlname \$dldir/$dlname'
14738    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14739      dlpath=$dir/\$dldll~
14740       $rm \$dlpath'
14741    shlibpath_overrides_runpath=yes
14742
14743    case $host_os in
14744    cygwin*)
14745      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14746      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14747      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14748      ;;
14749    mingw*)
14750      # MinGW DLLs use traditional 'lib' prefix
14751      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14752      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14753      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14754        # It is most probably a Windows format PATH printed by
14755        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14756        # path with ; separators, and with drive letters. We can handle the
14757        # drive letters (cygwin fileutils understands them), so leave them,
14758        # especially as we might pass files found there to a mingw objdump,
14759        # which wouldn't understand a cygwinified path. Ahh.
14760        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14761      else
14762        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14763      fi
14764      ;;
14765    pw32*)
14766      # pw32 DLLs use 'pw' prefix rather than 'lib'
14767      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14768      ;;
14769    esac
14770    ;;
14771
14772  *)
14773    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14774    ;;
14775  esac
14776  dynamic_linker='Win32 ld.exe'
14777  # FIXME: first we should search . and the directory the executable is in
14778  shlibpath_var=PATH
14779  ;;
14780
14781darwin* | rhapsody*)
14782  dynamic_linker="$host_os dyld"
14783  version_type=darwin
14784  need_lib_prefix=no
14785  need_version=no
14786  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14787  soname_spec='${libname}${release}${major}$shared_ext'
14788  shlibpath_overrides_runpath=yes
14789  shlibpath_var=DYLD_LIBRARY_PATH
14790  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14791  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14792  if test "$GCC" = yes; then
14793    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"`
14794  else
14795    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14796  fi
14797  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14798  ;;
14799
14800dgux*)
14801  version_type=linux
14802  need_lib_prefix=no
14803  need_version=no
14804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14805  soname_spec='${libname}${release}${shared_ext}$major'
14806  shlibpath_var=LD_LIBRARY_PATH
14807  ;;
14808
14809freebsd1*)
14810  dynamic_linker=no
14811  ;;
14812
14813kfreebsd*-gnu)
14814  version_type=linux
14815  need_lib_prefix=no
14816  need_version=no
14817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14818  soname_spec='${libname}${release}${shared_ext}$major'
14819  shlibpath_var=LD_LIBRARY_PATH
14820  shlibpath_overrides_runpath=no
14821  hardcode_into_libs=yes
14822  dynamic_linker='GNU ld.so'
14823  ;;
14824
14825freebsd*)
14826  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14827  version_type=freebsd-$objformat
14828  case $version_type in
14829    freebsd-elf*)
14830      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14831      need_version=no
14832      need_lib_prefix=no
14833      ;;
14834    freebsd-*)
14835      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14836      need_version=yes
14837      ;;
14838  esac
14839  shlibpath_var=LD_LIBRARY_PATH
14840  case $host_os in
14841  freebsd2*)
14842    shlibpath_overrides_runpath=yes
14843    ;;
14844  freebsd3.01* | freebsdelf3.01*)
14845    shlibpath_overrides_runpath=yes
14846    hardcode_into_libs=yes
14847    ;;
14848  *) # from 3.2 on
14849    shlibpath_overrides_runpath=no
14850    hardcode_into_libs=yes
14851    ;;
14852  esac
14853  ;;
14854
14855gnu*)
14856  version_type=linux
14857  need_lib_prefix=no
14858  need_version=no
14859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14860  soname_spec='${libname}${release}${shared_ext}$major'
14861  shlibpath_var=LD_LIBRARY_PATH
14862  hardcode_into_libs=yes
14863  ;;
14864
14865hpux9* | hpux10* | hpux11*)
14866  # Give a soname corresponding to the major version so that dld.sl refuses to
14867  # link against other versions.
14868  version_type=sunos
14869  need_lib_prefix=no
14870  need_version=no
14871  case "$host_cpu" in
14872  ia64*)
14873    shrext_cmds='.so'
14874    hardcode_into_libs=yes
14875    dynamic_linker="$host_os dld.so"
14876    shlibpath_var=LD_LIBRARY_PATH
14877    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14878    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879    soname_spec='${libname}${release}${shared_ext}$major'
14880    if test "X$HPUX_IA64_MODE" = X32; then
14881      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14882    else
14883      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14884    fi
14885    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14886    ;;
14887   hppa*64*)
14888     shrext_cmds='.sl'
14889     hardcode_into_libs=yes
14890     dynamic_linker="$host_os dld.sl"
14891     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14892     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894     soname_spec='${libname}${release}${shared_ext}$major'
14895     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14896     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14897     ;;
14898   *)
14899    shrext_cmds='.sl'
14900    dynamic_linker="$host_os dld.sl"
14901    shlibpath_var=SHLIB_PATH
14902    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14903    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904    soname_spec='${libname}${release}${shared_ext}$major'
14905    ;;
14906  esac
14907  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14908  postinstall_cmds='chmod 555 $lib'
14909  ;;
14910
14911irix5* | irix6* | nonstopux*)
14912  case $host_os in
14913    nonstopux*) version_type=nonstopux ;;
14914    *)
14915	if test "$lt_cv_prog_gnu_ld" = yes; then
14916		version_type=linux
14917	else
14918		version_type=irix
14919	fi ;;
14920  esac
14921  need_lib_prefix=no
14922  need_version=no
14923  soname_spec='${libname}${release}${shared_ext}$major'
14924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14925  case $host_os in
14926  irix5* | nonstopux*)
14927    libsuff= shlibsuff=
14928    ;;
14929  *)
14930    case $LD in # libtool.m4 will add one of these switches to LD
14931    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14932      libsuff= shlibsuff= libmagic=32-bit;;
14933    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14934      libsuff=32 shlibsuff=N32 libmagic=N32;;
14935    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14936      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14937    *) libsuff= shlibsuff= libmagic=never-match;;
14938    esac
14939    ;;
14940  esac
14941  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14942  shlibpath_overrides_runpath=no
14943  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14944  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14945  hardcode_into_libs=yes
14946  ;;
14947
14948# No shared lib support for Linux oldld, aout, or coff.
14949linux*oldld* | linux*aout* | linux*coff*)
14950  dynamic_linker=no
14951  ;;
14952
14953# This must be Linux ELF.
14954linux*)
14955  version_type=linux
14956  need_lib_prefix=no
14957  need_version=no
14958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959  soname_spec='${libname}${release}${shared_ext}$major'
14960  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14961  shlibpath_var=LD_LIBRARY_PATH
14962  shlibpath_overrides_runpath=no
14963  # This implies no fast_install, which is unacceptable.
14964  # Some rework will be needed to allow for fast_install
14965  # before this can be enabled.
14966  hardcode_into_libs=yes
14967
14968  # Append ld.so.conf contents to the search path
14969  if test -f /etc/ld.so.conf; then
14970    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14971    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14972  fi
14973
14974  # We used to test for /lib/ld.so.1 and disable shared libraries on
14975  # powerpc, because MkLinux only supported shared libraries with the
14976  # GNU dynamic linker.  Since this was broken with cross compilers,
14977  # most powerpc-linux boxes support dynamic linking these days and
14978  # people can always --disable-shared, the test was removed, and we
14979  # assume the GNU/Linux dynamic linker is in use.
14980  dynamic_linker='GNU/Linux ld.so'
14981  ;;
14982
14983knetbsd*-gnu)
14984  version_type=linux
14985  need_lib_prefix=no
14986  need_version=no
14987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14988  soname_spec='${libname}${release}${shared_ext}$major'
14989  shlibpath_var=LD_LIBRARY_PATH
14990  shlibpath_overrides_runpath=no
14991  hardcode_into_libs=yes
14992  dynamic_linker='GNU ld.so'
14993  ;;
14994
14995netbsd*)
14996  version_type=sunos
14997  need_lib_prefix=no
14998  need_version=no
14999  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15000    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15001    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15002    dynamic_linker='NetBSD (a.out) ld.so'
15003  else
15004    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15005    soname_spec='${libname}${release}${shared_ext}$major'
15006    dynamic_linker='NetBSD ld.elf_so'
15007  fi
15008  shlibpath_var=LD_LIBRARY_PATH
15009  shlibpath_overrides_runpath=yes
15010  hardcode_into_libs=yes
15011  ;;
15012
15013newsos6)
15014  version_type=linux
15015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016  shlibpath_var=LD_LIBRARY_PATH
15017  shlibpath_overrides_runpath=yes
15018  ;;
15019
15020nto-qnx*)
15021  version_type=linux
15022  need_lib_prefix=no
15023  need_version=no
15024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025  soname_spec='${libname}${release}${shared_ext}$major'
15026  shlibpath_var=LD_LIBRARY_PATH
15027  shlibpath_overrides_runpath=yes
15028  ;;
15029
15030openbsd*)
15031  version_type=sunos
15032  need_lib_prefix=no
15033  need_version=yes
15034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15035  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15036  shlibpath_var=LD_LIBRARY_PATH
15037  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15038    case $host_os in
15039      openbsd2.[89] | openbsd2.[89].*)
15040	shlibpath_overrides_runpath=no
15041	;;
15042      *)
15043	shlibpath_overrides_runpath=yes
15044	;;
15045      esac
15046  else
15047    shlibpath_overrides_runpath=yes
15048  fi
15049  ;;
15050
15051os2*)
15052  libname_spec='$name'
15053  shrext_cmds=".dll"
15054  need_lib_prefix=no
15055  library_names_spec='$libname${shared_ext} $libname.a'
15056  dynamic_linker='OS/2 ld.exe'
15057  shlibpath_var=LIBPATH
15058  ;;
15059
15060osf3* | osf4* | osf5*)
15061  version_type=osf
15062  need_lib_prefix=no
15063  need_version=no
15064  soname_spec='${libname}${release}${shared_ext}$major'
15065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066  shlibpath_var=LD_LIBRARY_PATH
15067  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15068  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15069  ;;
15070
15071sco3.2v5*)
15072  version_type=osf
15073  soname_spec='${libname}${release}${shared_ext}$major'
15074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15075  shlibpath_var=LD_LIBRARY_PATH
15076  ;;
15077
15078solaris*)
15079  version_type=linux
15080  need_lib_prefix=no
15081  need_version=no
15082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083  soname_spec='${libname}${release}${shared_ext}$major'
15084  shlibpath_var=LD_LIBRARY_PATH
15085  shlibpath_overrides_runpath=yes
15086  hardcode_into_libs=yes
15087  # ldd complains unless libraries are executable
15088  postinstall_cmds='chmod +x $lib'
15089  ;;
15090
15091sunos4*)
15092  version_type=sunos
15093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15094  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15095  shlibpath_var=LD_LIBRARY_PATH
15096  shlibpath_overrides_runpath=yes
15097  if test "$with_gnu_ld" = yes; then
15098    need_lib_prefix=no
15099  fi
15100  need_version=yes
15101  ;;
15102
15103sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15104  version_type=linux
15105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106  soname_spec='${libname}${release}${shared_ext}$major'
15107  shlibpath_var=LD_LIBRARY_PATH
15108  case $host_vendor in
15109    sni)
15110      shlibpath_overrides_runpath=no
15111      need_lib_prefix=no
15112      export_dynamic_flag_spec='${wl}-Blargedynsym'
15113      runpath_var=LD_RUN_PATH
15114      ;;
15115    siemens)
15116      need_lib_prefix=no
15117      ;;
15118    motorola)
15119      need_lib_prefix=no
15120      need_version=no
15121      shlibpath_overrides_runpath=no
15122      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15123      ;;
15124  esac
15125  ;;
15126
15127sysv4*MP*)
15128  if test -d /usr/nec ;then
15129    version_type=linux
15130    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15131    soname_spec='$libname${shared_ext}.$major'
15132    shlibpath_var=LD_LIBRARY_PATH
15133  fi
15134  ;;
15135
15136uts4*)
15137  version_type=linux
15138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139  soname_spec='${libname}${release}${shared_ext}$major'
15140  shlibpath_var=LD_LIBRARY_PATH
15141  ;;
15142
15143*)
15144  dynamic_linker=no
15145  ;;
15146esac
15147echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15148echo "${ECHO_T}$dynamic_linker" >&6
15149test "$dynamic_linker" = no && can_build_shared=no
15150
15151echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15152echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15153hardcode_action_F77=
15154if test -n "$hardcode_libdir_flag_spec_F77" || \
15155   test -n "$runpath_var F77" || \
15156   test "X$hardcode_automatic_F77"="Xyes" ; then
15157
15158  # We can hardcode non-existant directories.
15159  if test "$hardcode_direct_F77" != no &&
15160     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15161     # have to relink, otherwise we might link with an installed library
15162     # when we should be linking with a yet-to-be-installed one
15163     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15164     test "$hardcode_minus_L_F77" != no; then
15165    # Linking always hardcodes the temporary library directory.
15166    hardcode_action_F77=relink
15167  else
15168    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15169    hardcode_action_F77=immediate
15170  fi
15171else
15172  # We cannot hardcode anything, or else we can only hardcode existing
15173  # directories.
15174  hardcode_action_F77=unsupported
15175fi
15176echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15177echo "${ECHO_T}$hardcode_action_F77" >&6
15178
15179if test "$hardcode_action_F77" = relink; then
15180  # Fast installation is not supported
15181  enable_fast_install=no
15182elif test "$shlibpath_overrides_runpath" = yes ||
15183     test "$enable_shared" = no; then
15184  # Fast installation is not necessary
15185  enable_fast_install=needless
15186fi
15187
15188striplib=
15189old_striplib=
15190echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15191echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15192if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15193  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15194  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15195  echo "$as_me:$LINENO: result: yes" >&5
15196echo "${ECHO_T}yes" >&6
15197else
15198# FIXME - insert some real tests, host_os isn't really good enough
15199  case $host_os in
15200   darwin*)
15201       if test -n "$STRIP" ; then
15202         striplib="$STRIP -x"
15203         echo "$as_me:$LINENO: result: yes" >&5
15204echo "${ECHO_T}yes" >&6
15205       else
15206  echo "$as_me:$LINENO: result: no" >&5
15207echo "${ECHO_T}no" >&6
15208fi
15209       ;;
15210   *)
15211  echo "$as_me:$LINENO: result: no" >&5
15212echo "${ECHO_T}no" >&6
15213    ;;
15214  esac
15215fi
15216
15217
15218
15219# The else clause should only fire when bootstrapping the
15220# libtool distribution, otherwise you forgot to ship ltmain.sh
15221# with your package, and you will get complaints that there are
15222# no rules to generate ltmain.sh.
15223if test -f "$ltmain"; then
15224  # See if we are running on zsh, and set the options which allow our commands through
15225  # without removal of \ escapes.
15226  if test -n "${ZSH_VERSION+set}" ; then
15227    setopt NO_GLOB_SUBST
15228  fi
15229  # Now quote all the things that may contain metacharacters while being
15230  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15231  # variables and quote the copies for generation of the libtool script.
15232  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15233    SED SHELL STRIP \
15234    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15235    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15236    deplibs_check_method reload_flag reload_cmds need_locks \
15237    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15238    lt_cv_sys_global_symbol_to_c_name_address \
15239    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15240    old_postinstall_cmds old_postuninstall_cmds \
15241    compiler_F77 \
15242    CC_F77 \
15243    LD_F77 \
15244    lt_prog_compiler_wl_F77 \
15245    lt_prog_compiler_pic_F77 \
15246    lt_prog_compiler_static_F77 \
15247    lt_prog_compiler_no_builtin_flag_F77 \
15248    export_dynamic_flag_spec_F77 \
15249    thread_safe_flag_spec_F77 \
15250    whole_archive_flag_spec_F77 \
15251    enable_shared_with_static_runtimes_F77 \
15252    old_archive_cmds_F77 \
15253    old_archive_from_new_cmds_F77 \
15254    predep_objects_F77 \
15255    postdep_objects_F77 \
15256    predeps_F77 \
15257    postdeps_F77 \
15258    compiler_lib_search_path_F77 \
15259    archive_cmds_F77 \
15260    archive_expsym_cmds_F77 \
15261    postinstall_cmds_F77 \
15262    postuninstall_cmds_F77 \
15263    old_archive_from_expsyms_cmds_F77 \
15264    allow_undefined_flag_F77 \
15265    no_undefined_flag_F77 \
15266    export_symbols_cmds_F77 \
15267    hardcode_libdir_flag_spec_F77 \
15268    hardcode_libdir_flag_spec_ld_F77 \
15269    hardcode_libdir_separator_F77 \
15270    hardcode_automatic_F77 \
15271    module_cmds_F77 \
15272    module_expsym_cmds_F77 \
15273    lt_cv_prog_compiler_c_o_F77 \
15274    exclude_expsyms_F77 \
15275    include_expsyms_F77; do
15276
15277    case $var in
15278    old_archive_cmds_F77 | \
15279    old_archive_from_new_cmds_F77 | \
15280    archive_cmds_F77 | \
15281    archive_expsym_cmds_F77 | \
15282    module_cmds_F77 | \
15283    module_expsym_cmds_F77 | \
15284    old_archive_from_expsyms_cmds_F77 | \
15285    export_symbols_cmds_F77 | \
15286    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15287    postinstall_cmds | postuninstall_cmds | \
15288    old_postinstall_cmds | old_postuninstall_cmds | \
15289    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15290      # Double-quote double-evaled strings.
15291      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15292      ;;
15293    *)
15294      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15295      ;;
15296    esac
15297  done
15298
15299  case $lt_echo in
15300  *'\$0 --fallback-echo"')
15301    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15302    ;;
15303  esac
15304
15305cfgfile="$ofile"
15306
15307  cat <<__EOF__ >> "$cfgfile"
15308# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15309
15310# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15311
15312# Shell to use when invoking shell scripts.
15313SHELL=$lt_SHELL
15314
15315# Whether or not to build shared libraries.
15316build_libtool_libs=$enable_shared
15317
15318# Whether or not to build static libraries.
15319build_old_libs=$enable_static
15320
15321# Whether or not to add -lc for building shared libraries.
15322build_libtool_need_lc=$archive_cmds_need_lc_F77
15323
15324# Whether or not to disallow shared libs when runtime libs are static
15325allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15326
15327# Whether or not to optimize for fast installation.
15328fast_install=$enable_fast_install
15329
15330# The host system.
15331host_alias=$host_alias
15332host=$host
15333
15334# An echo program that does not interpret backslashes.
15335echo=$lt_echo
15336
15337# The archiver.
15338AR=$lt_AR
15339AR_FLAGS=$lt_AR_FLAGS
15340
15341# A C compiler.
15342LTCC=$lt_LTCC
15343
15344# A language-specific compiler.
15345CC=$lt_compiler_F77
15346
15347# Is the compiler the GNU C compiler?
15348with_gcc=$GCC_F77
15349
15350# An ERE matcher.
15351EGREP=$lt_EGREP
15352
15353# The linker used to build libraries.
15354LD=$lt_LD_F77
15355
15356# Whether we need hard or soft links.
15357LN_S=$lt_LN_S
15358
15359# A BSD-compatible nm program.
15360NM=$lt_NM
15361
15362# A symbol stripping program
15363STRIP=$lt_STRIP
15364
15365# Used to examine libraries when file_magic_cmd begins "file"
15366MAGIC_CMD=$MAGIC_CMD
15367
15368# Used on cygwin: DLL creation program.
15369DLLTOOL="$DLLTOOL"
15370
15371# Used on cygwin: object dumper.
15372OBJDUMP="$OBJDUMP"
15373
15374# Used on cygwin: assembler.
15375AS="$AS"
15376
15377# The name of the directory that contains temporary libtool files.
15378objdir=$objdir
15379
15380# How to create reloadable object files.
15381reload_flag=$lt_reload_flag
15382reload_cmds=$lt_reload_cmds
15383
15384# How to pass a linker flag through the compiler.
15385wl=$lt_lt_prog_compiler_wl_F77
15386
15387# Object file suffix (normally "o").
15388objext="$ac_objext"
15389
15390# Old archive suffix (normally "a").
15391libext="$libext"
15392
15393# Shared library suffix (normally ".so").
15394shrext_cmds='$shrext_cmds'
15395
15396# Executable file suffix (normally "").
15397exeext="$exeext"
15398
15399# Additional compiler flags for building library objects.
15400pic_flag=$lt_lt_prog_compiler_pic_F77
15401pic_mode=$pic_mode
15402
15403# What is the maximum length of a command?
15404max_cmd_len=$lt_cv_sys_max_cmd_len
15405
15406# Does compiler simultaneously support -c and -o options?
15407compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15408
15409# Must we lock files when doing compilation ?
15410need_locks=$lt_need_locks
15411
15412# Do we need the lib prefix for modules?
15413need_lib_prefix=$need_lib_prefix
15414
15415# Do we need a version for libraries?
15416need_version=$need_version
15417
15418# Whether dlopen is supported.
15419dlopen_support=$enable_dlopen
15420
15421# Whether dlopen of programs is supported.
15422dlopen_self=$enable_dlopen_self
15423
15424# Whether dlopen of statically linked programs is supported.
15425dlopen_self_static=$enable_dlopen_self_static
15426
15427# Compiler flag to prevent dynamic linking.
15428link_static_flag=$lt_lt_prog_compiler_static_F77
15429
15430# Compiler flag to turn off builtin functions.
15431no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15432
15433# Compiler flag to allow reflexive dlopens.
15434export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15435
15436# Compiler flag to generate shared objects directly from archives.
15437whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15438
15439# Compiler flag to generate thread-safe objects.
15440thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15441
15442# Library versioning type.
15443version_type=$version_type
15444
15445# Format of library name prefix.
15446libname_spec=$lt_libname_spec
15447
15448# List of archive names.  First name is the real one, the rest are links.
15449# The last name is the one that the linker finds with -lNAME.
15450library_names_spec=$lt_library_names_spec
15451
15452# The coded name of the library, if different from the real name.
15453soname_spec=$lt_soname_spec
15454
15455# Commands used to build and install an old-style archive.
15456RANLIB=$lt_RANLIB
15457old_archive_cmds=$lt_old_archive_cmds_F77
15458old_postinstall_cmds=$lt_old_postinstall_cmds
15459old_postuninstall_cmds=$lt_old_postuninstall_cmds
15460
15461# Create an old-style archive from a shared archive.
15462old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15463
15464# Create a temporary old-style archive to link instead of a shared archive.
15465old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15466
15467# Commands used to build and install a shared archive.
15468archive_cmds=$lt_archive_cmds_F77
15469archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15470postinstall_cmds=$lt_postinstall_cmds
15471postuninstall_cmds=$lt_postuninstall_cmds
15472
15473# Commands used to build a loadable module (assumed same as above if empty)
15474module_cmds=$lt_module_cmds_F77
15475module_expsym_cmds=$lt_module_expsym_cmds_F77
15476
15477# Commands to strip libraries.
15478old_striplib=$lt_old_striplib
15479striplib=$lt_striplib
15480
15481# Dependencies to place before the objects being linked to create a
15482# shared library.
15483predep_objects=$lt_predep_objects_F77
15484
15485# Dependencies to place after the objects being linked to create a
15486# shared library.
15487postdep_objects=$lt_postdep_objects_F77
15488
15489# Dependencies to place before the objects being linked to create a
15490# shared library.
15491predeps=$lt_predeps_F77
15492
15493# Dependencies to place after the objects being linked to create a
15494# shared library.
15495postdeps=$lt_postdeps_F77
15496
15497# The library search path used internally by the compiler when linking
15498# a shared library.
15499compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15500
15501# Method to check whether dependent libraries are shared objects.
15502deplibs_check_method=$lt_deplibs_check_method
15503
15504# Command to use when deplibs_check_method == file_magic.
15505file_magic_cmd=$lt_file_magic_cmd
15506
15507# Flag that allows shared libraries with undefined symbols to be built.
15508allow_undefined_flag=$lt_allow_undefined_flag_F77
15509
15510# Flag that forces no undefined symbols.
15511no_undefined_flag=$lt_no_undefined_flag_F77
15512
15513# Commands used to finish a libtool library installation in a directory.
15514finish_cmds=$lt_finish_cmds
15515
15516# Same as above, but a single script fragment to be evaled but not shown.
15517finish_eval=$lt_finish_eval
15518
15519# Take the output of nm and produce a listing of raw symbols and C names.
15520global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15521
15522# Transform the output of nm in a proper C declaration
15523global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15524
15525# Transform the output of nm in a C name address pair
15526global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15527
15528# This is the shared library runtime path variable.
15529runpath_var=$runpath_var
15530
15531# This is the shared library path variable.
15532shlibpath_var=$shlibpath_var
15533
15534# Is shlibpath searched before the hard-coded library search path?
15535shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15536
15537# How to hardcode a shared library path into an executable.
15538hardcode_action=$hardcode_action_F77
15539
15540# Whether we should hardcode library paths into libraries.
15541hardcode_into_libs=$hardcode_into_libs
15542
15543# Flag to hardcode \$libdir into a binary during linking.
15544# This must work even if \$libdir does not exist.
15545hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15546
15547# If ld is used when linking, flag to hardcode \$libdir into
15548# a binary during linking. This must work even if \$libdir does
15549# not exist.
15550hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15551
15552# Whether we need a single -rpath flag with a separated argument.
15553hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15554
15555# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15556# resulting binary.
15557hardcode_direct=$hardcode_direct_F77
15558
15559# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15560# resulting binary.
15561hardcode_minus_L=$hardcode_minus_L_F77
15562
15563# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15564# the resulting binary.
15565hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15566
15567# Set to yes if building a shared library automatically hardcodes DIR into the library
15568# and all subsequent libraries and executables linked against it.
15569hardcode_automatic=$hardcode_automatic_F77
15570
15571# Variables whose values should be saved in libtool wrapper scripts and
15572# restored at relink time.
15573variables_saved_for_relink="$variables_saved_for_relink"
15574
15575# Whether libtool must link a program against all its dependency libraries.
15576link_all_deplibs=$link_all_deplibs_F77
15577
15578# Compile-time system search path for libraries
15579sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15580
15581# Run-time system search path for libraries
15582sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15583
15584# Fix the shell variable \$srcfile for the compiler.
15585fix_srcfile_path="$fix_srcfile_path_F77"
15586
15587# Set to yes if exported symbols are required.
15588always_export_symbols=$always_export_symbols_F77
15589
15590# The commands to list exported symbols.
15591export_symbols_cmds=$lt_export_symbols_cmds_F77
15592
15593# The commands to extract the exported symbol list from a shared archive.
15594extract_expsyms_cmds=$lt_extract_expsyms_cmds
15595
15596# Symbols that should not be listed in the preloaded symbols.
15597exclude_expsyms=$lt_exclude_expsyms_F77
15598
15599# Symbols that must always be exported.
15600include_expsyms=$lt_include_expsyms_F77
15601
15602# ### END LIBTOOL TAG CONFIG: $tagname
15603
15604__EOF__
15605
15606
15607else
15608  # If there is no Makefile yet, we rely on a make rule to execute
15609  # `config.status --recheck' to rerun these tests and create the
15610  # libtool script then.
15611  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15612  if test -f "$ltmain_in"; then
15613    test -f Makefile && make "$ltmain"
15614  fi
15615fi
15616
15617
15618ac_ext=c
15619ac_cpp='$CPP $CPPFLAGS'
15620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15622ac_compiler_gnu=$ac_cv_c_compiler_gnu
15623
15624CC="$lt_save_CC"
15625
15626	else
15627	  tagname=""
15628	fi
15629	;;
15630
15631      GCJ)
15632	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15633
15634
15635
15636# Source file extension for Java test sources.
15637ac_ext=java
15638
15639# Object file extension for compiled Java test sources.
15640objext=o
15641objext_GCJ=$objext
15642
15643# Code to be used in simple compile tests
15644lt_simple_compile_test_code="class foo {}\n"
15645
15646# Code to be used in simple link tests
15647lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15648
15649# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15650
15651# If no C compiler was specified, use CC.
15652LTCC=${LTCC-"$CC"}
15653
15654# Allow CC to be a program name with arguments.
15655compiler=$CC
15656
15657
15658# Allow CC to be a program name with arguments.
15659lt_save_CC="$CC"
15660CC=${GCJ-"gcj"}
15661compiler=$CC
15662compiler_GCJ=$CC
15663
15664# GCJ did not exist at the time GCC didn't implicitly link libc in.
15665archive_cmds_need_lc_GCJ=no
15666
15667
15668lt_prog_compiler_no_builtin_flag_GCJ=
15669
15670if test "$GCC" = yes; then
15671  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15672
15673
15674echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15675echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15676if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15677  echo $ECHO_N "(cached) $ECHO_C" >&6
15678else
15679  lt_cv_prog_compiler_rtti_exceptions=no
15680  ac_outfile=conftest.$ac_objext
15681   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15682   lt_compiler_flag="-fno-rtti -fno-exceptions"
15683   # Insert the option either (1) after the last *FLAGS variable, or
15684   # (2) before a word containing "conftest.", or (3) at the end.
15685   # Note that $ac_compile itself does not contain backslashes and begins
15686   # with a dollar sign (not a hyphen), so the echo should work correctly.
15687   # The option is referenced via a variable to avoid confusing sed.
15688   lt_compile=`echo "$ac_compile" | $SED \
15689   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15690   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15691   -e 's:$: $lt_compiler_flag:'`
15692   (eval echo "\"\$as_me:15692: $lt_compile\"" >&5)
15693   (eval "$lt_compile" 2>conftest.err)
15694   ac_status=$?
15695   cat conftest.err >&5
15696   echo "$as_me:15696: \$? = $ac_status" >&5
15697   if (exit $ac_status) && test -s "$ac_outfile"; then
15698     # The compiler can only warn and ignore the option if not recognized
15699     # So say no if there are warnings
15700     if test ! -s conftest.err; then
15701       lt_cv_prog_compiler_rtti_exceptions=yes
15702     fi
15703   fi
15704   $rm conftest*
15705
15706fi
15707echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15708echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15709
15710if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15711    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15712else
15713    :
15714fi
15715
15716fi
15717
15718lt_prog_compiler_wl_GCJ=
15719lt_prog_compiler_pic_GCJ=
15720lt_prog_compiler_static_GCJ=
15721
15722echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15723echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15724
15725  if test "$GCC" = yes; then
15726    lt_prog_compiler_wl_GCJ='-Wl,'
15727    lt_prog_compiler_static_GCJ='-static'
15728
15729    case $host_os in
15730      aix*)
15731      # All AIX code is PIC.
15732      if test "$host_cpu" = ia64; then
15733	# AIX 5 now supports IA64 processor
15734	lt_prog_compiler_static_GCJ='-Bstatic'
15735      fi
15736      ;;
15737
15738    amigaos*)
15739      # FIXME: we need at least 68020 code to build shared libraries, but
15740      # adding the `-m68020' flag to GCC prevents building anything better,
15741      # like `-m68040'.
15742      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15743      ;;
15744
15745    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15746      # PIC is the default for these OSes.
15747      ;;
15748
15749    mingw* | pw32* | os2*)
15750      # This hack is so that the source file can tell whether it is being
15751      # built for inclusion in a dll (and should export symbols for example).
15752      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15753      ;;
15754
15755    darwin* | rhapsody*)
15756      # PIC is the default on this platform
15757      # Common symbols not allowed in MH_DYLIB files
15758      lt_prog_compiler_pic_GCJ='-fno-common'
15759      ;;
15760
15761    msdosdjgpp*)
15762      # Just because we use GCC doesn't mean we suddenly get shared libraries
15763      # on systems that don't support them.
15764      lt_prog_compiler_can_build_shared_GCJ=no
15765      enable_shared=no
15766      ;;
15767
15768    sysv4*MP*)
15769      if test -d /usr/nec; then
15770	lt_prog_compiler_pic_GCJ=-Kconform_pic
15771      fi
15772      ;;
15773
15774    hpux*)
15775      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15776      # not for PA HP-UX.
15777      case "$host_cpu" in
15778      hppa*64*|ia64*)
15779	# +Z the default
15780	;;
15781      *)
15782	lt_prog_compiler_pic_GCJ='-fPIC'
15783	;;
15784      esac
15785      ;;
15786
15787    *)
15788      lt_prog_compiler_pic_GCJ='-fPIC'
15789      ;;
15790    esac
15791  else
15792    # PORTME Check for flag to pass linker flags through the system compiler.
15793    case $host_os in
15794    aix*)
15795      lt_prog_compiler_wl_GCJ='-Wl,'
15796      if test "$host_cpu" = ia64; then
15797	# AIX 5 now supports IA64 processor
15798	lt_prog_compiler_static_GCJ='-Bstatic'
15799      else
15800	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15801      fi
15802      ;;
15803
15804    mingw* | pw32* | os2*)
15805      # This hack is so that the source file can tell whether it is being
15806      # built for inclusion in a dll (and should export symbols for example).
15807      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15808      ;;
15809
15810    hpux9* | hpux10* | hpux11*)
15811      lt_prog_compiler_wl_GCJ='-Wl,'
15812      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15813      # not for PA HP-UX.
15814      case "$host_cpu" in
15815      hppa*64*|ia64*)
15816	# +Z the default
15817	;;
15818      *)
15819	lt_prog_compiler_pic_GCJ='+Z'
15820	;;
15821      esac
15822      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15823      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15824      ;;
15825
15826    irix5* | irix6* | nonstopux*)
15827      lt_prog_compiler_wl_GCJ='-Wl,'
15828      # PIC (with -KPIC) is the default.
15829      lt_prog_compiler_static_GCJ='-non_shared'
15830      ;;
15831
15832    newsos6)
15833      lt_prog_compiler_pic_GCJ='-KPIC'
15834      lt_prog_compiler_static_GCJ='-Bstatic'
15835      ;;
15836
15837    linux*)
15838      case $CC in
15839      icc* | ecc*)
15840	lt_prog_compiler_wl_GCJ='-Wl,'
15841	lt_prog_compiler_pic_GCJ='-KPIC'
15842	lt_prog_compiler_static_GCJ='-static'
15843        ;;
15844      ccc*)
15845        lt_prog_compiler_wl_GCJ='-Wl,'
15846        # All Alpha code is PIC.
15847        lt_prog_compiler_static_GCJ='-non_shared'
15848        ;;
15849      esac
15850      ;;
15851
15852    osf3* | osf4* | osf5*)
15853      lt_prog_compiler_wl_GCJ='-Wl,'
15854      # All OSF/1 code is PIC.
15855      lt_prog_compiler_static_GCJ='-non_shared'
15856      ;;
15857
15858    sco3.2v5*)
15859      lt_prog_compiler_pic_GCJ='-Kpic'
15860      lt_prog_compiler_static_GCJ='-dn'
15861      ;;
15862
15863    solaris*)
15864      lt_prog_compiler_wl_GCJ='-Wl,'
15865      lt_prog_compiler_pic_GCJ='-KPIC'
15866      lt_prog_compiler_static_GCJ='-Bstatic'
15867      ;;
15868
15869    sunos4*)
15870      lt_prog_compiler_wl_GCJ='-Qoption ld '
15871      lt_prog_compiler_pic_GCJ='-PIC'
15872      lt_prog_compiler_static_GCJ='-Bstatic'
15873      ;;
15874
15875    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15876      lt_prog_compiler_wl_GCJ='-Wl,'
15877      lt_prog_compiler_pic_GCJ='-KPIC'
15878      lt_prog_compiler_static_GCJ='-Bstatic'
15879      ;;
15880
15881    sysv4*MP*)
15882      if test -d /usr/nec ;then
15883	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15884	lt_prog_compiler_static_GCJ='-Bstatic'
15885      fi
15886      ;;
15887
15888    uts4*)
15889      lt_prog_compiler_pic_GCJ='-pic'
15890      lt_prog_compiler_static_GCJ='-Bstatic'
15891      ;;
15892
15893    *)
15894      lt_prog_compiler_can_build_shared_GCJ=no
15895      ;;
15896    esac
15897  fi
15898
15899echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15900echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15901
15902#
15903# Check to make sure the PIC flag actually works.
15904#
15905if test -n "$lt_prog_compiler_pic_GCJ"; then
15906
15907echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15908echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15909if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15910  echo $ECHO_N "(cached) $ECHO_C" >&6
15911else
15912  lt_prog_compiler_pic_works_GCJ=no
15913  ac_outfile=conftest.$ac_objext
15914   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15915   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15916   # Insert the option either (1) after the last *FLAGS variable, or
15917   # (2) before a word containing "conftest.", or (3) at the end.
15918   # Note that $ac_compile itself does not contain backslashes and begins
15919   # with a dollar sign (not a hyphen), so the echo should work correctly.
15920   # The option is referenced via a variable to avoid confusing sed.
15921   lt_compile=`echo "$ac_compile" | $SED \
15922   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15923   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15924   -e 's:$: $lt_compiler_flag:'`
15925   (eval echo "\"\$as_me:15925: $lt_compile\"" >&5)
15926   (eval "$lt_compile" 2>conftest.err)
15927   ac_status=$?
15928   cat conftest.err >&5
15929   echo "$as_me:15929: \$? = $ac_status" >&5
15930   if (exit $ac_status) && test -s "$ac_outfile"; then
15931     # The compiler can only warn and ignore the option if not recognized
15932     # So say no if there are warnings
15933     if test ! -s conftest.err; then
15934       lt_prog_compiler_pic_works_GCJ=yes
15935     fi
15936   fi
15937   $rm conftest*
15938
15939fi
15940echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15941echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15942
15943if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15944    case $lt_prog_compiler_pic_GCJ in
15945     "" | " "*) ;;
15946     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15947     esac
15948else
15949    lt_prog_compiler_pic_GCJ=
15950     lt_prog_compiler_can_build_shared_GCJ=no
15951fi
15952
15953fi
15954case "$host_os" in
15955  # For platforms which do not support PIC, -DPIC is meaningless:
15956  *djgpp*)
15957    lt_prog_compiler_pic_GCJ=
15958    ;;
15959  *)
15960    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15961    ;;
15962esac
15963
15964echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15965echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15966if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15967  echo $ECHO_N "(cached) $ECHO_C" >&6
15968else
15969  lt_cv_prog_compiler_c_o_GCJ=no
15970   $rm -r conftest 2>/dev/null
15971   mkdir conftest
15972   cd conftest
15973   mkdir out
15974   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15975
15976   lt_compiler_flag="-o out/conftest2.$ac_objext"
15977   # Insert the option either (1) after the last *FLAGS variable, or
15978   # (2) before a word containing "conftest.", or (3) at the end.
15979   # Note that $ac_compile itself does not contain backslashes and begins
15980   # with a dollar sign (not a hyphen), so the echo should work correctly.
15981   lt_compile=`echo "$ac_compile" | $SED \
15982   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15983   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15984   -e 's:$: $lt_compiler_flag:'`
15985   (eval echo "\"\$as_me:15985: $lt_compile\"" >&5)
15986   (eval "$lt_compile" 2>out/conftest.err)
15987   ac_status=$?
15988   cat out/conftest.err >&5
15989   echo "$as_me:15989: \$? = $ac_status" >&5
15990   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15991   then
15992     # The compiler can only warn and ignore the option if not recognized
15993     # So say no if there are warnings
15994     if test ! -s out/conftest.err; then
15995       lt_cv_prog_compiler_c_o_GCJ=yes
15996     fi
15997   fi
15998   chmod u+w .
15999   $rm conftest*
16000   # SGI C++ compiler will create directory out/ii_files/ for
16001   # template instantiation
16002   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16003   $rm out/* && rmdir out
16004   cd ..
16005   rmdir conftest
16006   $rm conftest*
16007
16008fi
16009echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16010echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16011
16012
16013hard_links="nottested"
16014if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16015  # do not overwrite the value of need_locks provided by the user
16016  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16017echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16018  hard_links=yes
16019  $rm conftest*
16020  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16021  touch conftest.a
16022  ln conftest.a conftest.b 2>&5 || hard_links=no
16023  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16024  echo "$as_me:$LINENO: result: $hard_links" >&5
16025echo "${ECHO_T}$hard_links" >&6
16026  if test "$hard_links" = no; then
16027    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16028echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16029    need_locks=warn
16030  fi
16031else
16032  need_locks=no
16033fi
16034
16035echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16036echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16037
16038  runpath_var=
16039  allow_undefined_flag_GCJ=
16040  enable_shared_with_static_runtimes_GCJ=no
16041  archive_cmds_GCJ=
16042  archive_expsym_cmds_GCJ=
16043  old_archive_From_new_cmds_GCJ=
16044  old_archive_from_expsyms_cmds_GCJ=
16045  export_dynamic_flag_spec_GCJ=
16046  whole_archive_flag_spec_GCJ=
16047  thread_safe_flag_spec_GCJ=
16048  hardcode_libdir_flag_spec_GCJ=
16049  hardcode_libdir_flag_spec_ld_GCJ=
16050  hardcode_libdir_separator_GCJ=
16051  hardcode_direct_GCJ=no
16052  hardcode_minus_L_GCJ=no
16053  hardcode_shlibpath_var_GCJ=unsupported
16054  link_all_deplibs_GCJ=unknown
16055  hardcode_automatic_GCJ=no
16056  module_cmds_GCJ=
16057  module_expsym_cmds_GCJ=
16058  always_export_symbols_GCJ=no
16059  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16060  # include_expsyms should be a list of space-separated symbols to be *always*
16061  # included in the symbol list
16062  include_expsyms_GCJ=
16063  # exclude_expsyms can be an extended regexp of symbols to exclude
16064  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16065  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16066  # as well as any symbol that contains `d'.
16067  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16068  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16069  # platforms (ab)use it in PIC code, but their linkers get confused if
16070  # the symbol is explicitly referenced.  Since portable code cannot
16071  # rely on this symbol name, it's probably fine to never include it in
16072  # preloaded symbol tables.
16073  extract_expsyms_cmds=
16074
16075  case $host_os in
16076  cygwin* | mingw* | pw32*)
16077    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16078    # When not using gcc, we currently assume that we are using
16079    # Microsoft Visual C++.
16080    if test "$GCC" != yes; then
16081      with_gnu_ld=no
16082    fi
16083    ;;
16084  openbsd*)
16085    with_gnu_ld=no
16086    ;;
16087  esac
16088
16089  ld_shlibs_GCJ=yes
16090  if test "$with_gnu_ld" = yes; then
16091    # If archive_cmds runs LD, not CC, wlarc should be empty
16092    wlarc='${wl}'
16093
16094    # See if GNU ld supports shared libraries.
16095    case $host_os in
16096    aix3* | aix4* | aix5*)
16097      # On AIX/PPC, the GNU linker is very broken
16098      if test "$host_cpu" != ia64; then
16099	ld_shlibs_GCJ=no
16100	cat <<EOF 1>&2
16101
16102*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16103*** to be unable to reliably create shared libraries on AIX.
16104*** Therefore, libtool is disabling shared libraries support.  If you
16105*** really care for shared libraries, you may want to modify your PATH
16106*** so that a non-GNU linker is found, and then restart.
16107
16108EOF
16109      fi
16110      ;;
16111
16112    amigaos*)
16113      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)'
16114      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16115      hardcode_minus_L_GCJ=yes
16116
16117      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16118      # that the semantics of dynamic libraries on AmigaOS, at least up
16119      # to version 4, is to share data among multiple programs linked
16120      # with the same dynamic library.  Since this doesn't match the
16121      # behavior of shared libraries on other platforms, we can't use
16122      # them.
16123      ld_shlibs_GCJ=no
16124      ;;
16125
16126    beos*)
16127      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16128	allow_undefined_flag_GCJ=unsupported
16129	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16130	# support --undefined.  This deserves some investigation.  FIXME
16131	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16132      else
16133	ld_shlibs_GCJ=no
16134      fi
16135      ;;
16136
16137    cygwin* | mingw* | pw32*)
16138      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16139      # as there is no search path for DLLs.
16140      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16141      allow_undefined_flag_GCJ=unsupported
16142      always_export_symbols_GCJ=no
16143      enable_shared_with_static_runtimes_GCJ=yes
16144      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16145
16146      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16147        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16148	# If the export-symbols file already is a .def file (1st line
16149	# is EXPORTS), use it as is; otherwise, prepend...
16150	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16151	  cp $export_symbols $output_objdir/$soname.def;
16152	else
16153	  echo EXPORTS > $output_objdir/$soname.def;
16154	  cat $export_symbols >> $output_objdir/$soname.def;
16155	fi~
16156	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16157      else
16158	ld_shlibs=no
16159      fi
16160      ;;
16161
16162    netbsd*)
16163      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16164	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16165	wlarc=
16166      else
16167	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16168	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16169      fi
16170      ;;
16171
16172    solaris* | sysv5*)
16173      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16174	ld_shlibs_GCJ=no
16175	cat <<EOF 1>&2
16176
16177*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16178*** create shared libraries on Solaris systems.  Therefore, libtool
16179*** is disabling shared libraries support.  We urge you to upgrade GNU
16180*** binutils to release 2.9.1 or newer.  Another option is to modify
16181*** your PATH or compiler configuration so that the native linker is
16182*** used, and then restart.
16183
16184EOF
16185      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16186	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16187	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16188      else
16189	ld_shlibs_GCJ=no
16190      fi
16191      ;;
16192
16193    sunos4*)
16194      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16195      wlarc=
16196      hardcode_direct_GCJ=yes
16197      hardcode_shlibpath_var_GCJ=no
16198      ;;
16199
16200  linux*)
16201    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16202        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16203	archive_cmds_GCJ="$tmp_archive_cmds"
16204      supports_anon_versioning=no
16205      case `$LD -v 2>/dev/null` in
16206        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16207        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16208        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16209        *\ 2.11.*) ;; # other 2.11 versions
16210        *) supports_anon_versioning=yes ;;
16211      esac
16212      if test $supports_anon_versioning = yes; then
16213        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16214cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16215$echo "local: *; };" >> $output_objdir/$libname.ver~
16216        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16217      else
16218        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16219      fi
16220    else
16221      ld_shlibs_GCJ=no
16222    fi
16223    ;;
16224
16225    *)
16226      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16227	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16228	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16229      else
16230	ld_shlibs_GCJ=no
16231      fi
16232      ;;
16233    esac
16234
16235    if test "$ld_shlibs_GCJ" = yes; then
16236      runpath_var=LD_RUN_PATH
16237      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16238      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16239      # ancient GNU ld didn't support --whole-archive et. al.
16240      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16241 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16242      else
16243  	whole_archive_flag_spec_GCJ=
16244      fi
16245    fi
16246  else
16247    # PORTME fill in a description of your system's linker (not GNU ld)
16248    case $host_os in
16249    aix3*)
16250      allow_undefined_flag_GCJ=unsupported
16251      always_export_symbols_GCJ=yes
16252      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'
16253      # Note: this linker hardcodes the directories in LIBPATH if there
16254      # are no directories specified by -L.
16255      hardcode_minus_L_GCJ=yes
16256      if test "$GCC" = yes && test -z "$link_static_flag"; then
16257	# Neither direct hardcoding nor static linking is supported with a
16258	# broken collect2.
16259	hardcode_direct_GCJ=unsupported
16260      fi
16261      ;;
16262
16263    aix4* | aix5*)
16264      if test "$host_cpu" = ia64; then
16265	# On IA64, the linker does run time linking by default, so we don't
16266	# have to do anything special.
16267	aix_use_runtimelinking=no
16268	exp_sym_flag='-Bexport'
16269	no_entry_flag=""
16270      else
16271	# If we're using GNU nm, then we don't want the "-C" option.
16272	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16273	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16274	  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'
16275	else
16276	  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'
16277	fi
16278	aix_use_runtimelinking=no
16279
16280	# Test if we are trying to use run time linking or normal
16281	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16282	# need to do runtime linking.
16283	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16284	  for ld_flag in $LDFLAGS; do
16285  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16286  	    aix_use_runtimelinking=yes
16287  	    break
16288  	  fi
16289	  done
16290	esac
16291
16292	exp_sym_flag='-bexport'
16293	no_entry_flag='-bnoentry'
16294      fi
16295
16296      # When large executables or shared objects are built, AIX ld can
16297      # have problems creating the table of contents.  If linking a library
16298      # or program results in "error TOC overflow" add -mminimal-toc to
16299      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16300      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16301
16302      archive_cmds_GCJ=''
16303      hardcode_direct_GCJ=yes
16304      hardcode_libdir_separator_GCJ=':'
16305      link_all_deplibs_GCJ=yes
16306
16307      if test "$GCC" = yes; then
16308	case $host_os in aix4.012|aix4.012.*)
16309	# We only want to do this on AIX 4.2 and lower, the check
16310	# below for broken collect2 doesn't work under 4.3+
16311	  collect2name=`${CC} -print-prog-name=collect2`
16312	  if test -f "$collect2name" && \
16313  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16314	  then
16315  	  # We have reworked collect2
16316  	  hardcode_direct_GCJ=yes
16317	  else
16318  	  # We have old collect2
16319  	  hardcode_direct_GCJ=unsupported
16320  	  # It fails to find uninstalled libraries when the uninstalled
16321  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16322  	  # to unsupported forces relinking
16323  	  hardcode_minus_L_GCJ=yes
16324  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16325  	  hardcode_libdir_separator_GCJ=
16326	  fi
16327	esac
16328	shared_flag='-shared'
16329      else
16330	# not using gcc
16331	if test "$host_cpu" = ia64; then
16332  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16333  	# chokes on -Wl,-G. The following line is correct:
16334	  shared_flag='-G'
16335	else
16336  	if test "$aix_use_runtimelinking" = yes; then
16337	    shared_flag='${wl}-G'
16338	  else
16339	    shared_flag='${wl}-bM:SRE'
16340  	fi
16341	fi
16342      fi
16343
16344      # It seems that -bexpall does not export symbols beginning with
16345      # underscore (_), so it is better to generate a list of symbols to export.
16346      always_export_symbols_GCJ=yes
16347      if test "$aix_use_runtimelinking" = yes; then
16348	# Warning - without using the other runtime loading flags (-brtl),
16349	# -berok will link without error, but may produce a broken library.
16350	allow_undefined_flag_GCJ='-berok'
16351       # Determine the default libpath from the value encoded in an empty executable.
16352       cat >conftest.$ac_ext <<_ACEOF
16353/* confdefs.h.  */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h.  */
16358
16359int
16360main ()
16361{
16362
16363  ;
16364  return 0;
16365}
16366_ACEOF
16367rm -f conftest.$ac_objext conftest$ac_exeext
16368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16369  (eval $ac_link) 2>conftest.er1
16370  ac_status=$?
16371  grep -v '^ *+' conftest.er1 >conftest.err
16372  rm -f conftest.er1
16373  cat conftest.err >&5
16374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375  (exit $ac_status); } &&
16376	 { ac_try='test -z "$ac_c_werror_flag"
16377			 || test ! -s conftest.err'
16378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379  (eval $ac_try) 2>&5
16380  ac_status=$?
16381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382  (exit $ac_status); }; } &&
16383	 { ac_try='test -s conftest$ac_exeext'
16384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385  (eval $ac_try) 2>&5
16386  ac_status=$?
16387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388  (exit $ac_status); }; }; then
16389
16390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16391}'`
16392# Check for a 64-bit object if we didn't find anything.
16393if 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; }
16394}'`; fi
16395else
16396  echo "$as_me: failed program was:" >&5
16397sed 's/^/| /' conftest.$ac_ext >&5
16398
16399fi
16400rm -f conftest.err conftest.$ac_objext \
16401      conftest$ac_exeext conftest.$ac_ext
16402if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16403
16404       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16405	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16406       else
16407	if test "$host_cpu" = ia64; then
16408	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16409	  allow_undefined_flag_GCJ="-z nodefs"
16410	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16411	else
16412	 # Determine the default libpath from the value encoded in an empty executable.
16413	 cat >conftest.$ac_ext <<_ACEOF
16414/* confdefs.h.  */
16415_ACEOF
16416cat confdefs.h >>conftest.$ac_ext
16417cat >>conftest.$ac_ext <<_ACEOF
16418/* end confdefs.h.  */
16419
16420int
16421main ()
16422{
16423
16424  ;
16425  return 0;
16426}
16427_ACEOF
16428rm -f conftest.$ac_objext conftest$ac_exeext
16429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430  (eval $ac_link) 2>conftest.er1
16431  ac_status=$?
16432  grep -v '^ *+' conftest.er1 >conftest.err
16433  rm -f conftest.er1
16434  cat conftest.err >&5
16435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436  (exit $ac_status); } &&
16437	 { ac_try='test -z "$ac_c_werror_flag"
16438			 || test ! -s conftest.err'
16439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440  (eval $ac_try) 2>&5
16441  ac_status=$?
16442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443  (exit $ac_status); }; } &&
16444	 { ac_try='test -s conftest$ac_exeext'
16445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446  (eval $ac_try) 2>&5
16447  ac_status=$?
16448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449  (exit $ac_status); }; }; then
16450
16451aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16452}'`
16453# Check for a 64-bit object if we didn't find anything.
16454if 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; }
16455}'`; fi
16456else
16457  echo "$as_me: failed program was:" >&5
16458sed 's/^/| /' conftest.$ac_ext >&5
16459
16460fi
16461rm -f conftest.err conftest.$ac_objext \
16462      conftest$ac_exeext conftest.$ac_ext
16463if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16464
16465	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16466	  # Warning - without using the other run time loading flags,
16467	  # -berok will link without error, but may produce a broken library.
16468	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16469	  allow_undefined_flag_GCJ=' ${wl}-berok'
16470	  # -bexpall does not export symbols beginning with underscore (_)
16471	  always_export_symbols_GCJ=yes
16472	  # Exported symbols can be pulled into shared objects from archives
16473	  whole_archive_flag_spec_GCJ=' '
16474	  archive_cmds_need_lc_GCJ=yes
16475	  # This is similar to how AIX traditionally builds it's shared libraries.
16476	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16477	fi
16478      fi
16479      ;;
16480
16481    amigaos*)
16482      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)'
16483      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16484      hardcode_minus_L_GCJ=yes
16485      # see comment about different semantics on the GNU ld section
16486      ld_shlibs_GCJ=no
16487      ;;
16488
16489    bsdi4*)
16490      export_dynamic_flag_spec_GCJ=-rdynamic
16491      ;;
16492
16493    cygwin* | mingw* | pw32*)
16494      # When not using gcc, we currently assume that we are using
16495      # Microsoft Visual C++.
16496      # hardcode_libdir_flag_spec is actually meaningless, as there is
16497      # no search path for DLLs.
16498      hardcode_libdir_flag_spec_GCJ=' '
16499      allow_undefined_flag_GCJ=unsupported
16500      # Tell ltmain to make .lib files, not .a files.
16501      libext=lib
16502      # Tell ltmain to make .dll files, not .so files.
16503      shrext_cmds=".dll"
16504      # FIXME: Setting linknames here is a bad hack.
16505      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16506      # The linker will automatically build a .lib file if we build a DLL.
16507      old_archive_From_new_cmds_GCJ='true'
16508      # FIXME: Should let the user specify the lib program.
16509      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16510      fix_srcfile_path='`cygpath -w "$srcfile"`'
16511      enable_shared_with_static_runtimes_GCJ=yes
16512      ;;
16513
16514    darwin* | rhapsody*)
16515    if test "$GXX" = yes ; then
16516      archive_cmds_need_lc_GCJ=no
16517      case "$host_os" in
16518      rhapsody* | darwin1.[012])
16519	allow_undefined_flag_GCJ='-undefined suppress'
16520	;;
16521      *) # Darwin 1.3 on
16522      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16523      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16524      else
16525        case ${MACOSX_DEPLOYMENT_TARGET} in
16526          10.[012])
16527            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16528            ;;
16529          10.*)
16530            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16531            ;;
16532        esac
16533      fi
16534	;;
16535      esac
16536    	lt_int_apple_cc_single_mod=no
16537    	output_verbose_link_cmd='echo'
16538    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16539    	  lt_int_apple_cc_single_mod=yes
16540    	fi
16541    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16542    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16543    	else
16544        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16545      fi
16546      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16547      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16548        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16549          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16550        else
16551          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16552        fi
16553          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}'
16554      hardcode_direct_GCJ=no
16555      hardcode_automatic_GCJ=yes
16556      hardcode_shlibpath_var_GCJ=unsupported
16557      whole_archive_flag_spec_GCJ='-all_load $convenience'
16558      link_all_deplibs_GCJ=yes
16559    else
16560      ld_shlibs_GCJ=no
16561    fi
16562      ;;
16563
16564    dgux*)
16565      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16567      hardcode_shlibpath_var_GCJ=no
16568      ;;
16569
16570    freebsd1*)
16571      ld_shlibs_GCJ=no
16572      ;;
16573
16574    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16575    # support.  Future versions do this automatically, but an explicit c++rt0.o
16576    # does not break anything, and helps significantly (at the cost of a little
16577    # extra space).
16578    freebsd2.2*)
16579      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16580      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16581      hardcode_direct_GCJ=yes
16582      hardcode_shlibpath_var_GCJ=no
16583      ;;
16584
16585    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16586    freebsd2*)
16587      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16588      hardcode_direct_GCJ=yes
16589      hardcode_minus_L_GCJ=yes
16590      hardcode_shlibpath_var_GCJ=no
16591      ;;
16592
16593    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16594    freebsd* | kfreebsd*-gnu)
16595      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16596      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16597      hardcode_direct_GCJ=yes
16598      hardcode_shlibpath_var_GCJ=no
16599      ;;
16600
16601    hpux9*)
16602      if test "$GCC" = yes; then
16603	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'
16604      else
16605	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'
16606      fi
16607      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16608      hardcode_libdir_separator_GCJ=:
16609      hardcode_direct_GCJ=yes
16610
16611      # hardcode_minus_L: Not really in the search PATH,
16612      # but as the default location of the library.
16613      hardcode_minus_L_GCJ=yes
16614      export_dynamic_flag_spec_GCJ='${wl}-E'
16615      ;;
16616
16617    hpux10* | hpux11*)
16618      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16619	case "$host_cpu" in
16620	hppa*64*|ia64*)
16621	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16622	  ;;
16623	*)
16624	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16625	  ;;
16626	esac
16627      else
16628	case "$host_cpu" in
16629	hppa*64*|ia64*)
16630	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16631	  ;;
16632	*)
16633	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16634	  ;;
16635	esac
16636      fi
16637      if test "$with_gnu_ld" = no; then
16638	case "$host_cpu" in
16639	hppa*64*)
16640	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16641	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16642	  hardcode_libdir_separator_GCJ=:
16643	  hardcode_direct_GCJ=no
16644	  hardcode_shlibpath_var_GCJ=no
16645	  ;;
16646	ia64*)
16647	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16648	  hardcode_direct_GCJ=no
16649	  hardcode_shlibpath_var_GCJ=no
16650
16651	  # hardcode_minus_L: Not really in the search PATH,
16652	  # but as the default location of the library.
16653	  hardcode_minus_L_GCJ=yes
16654	  ;;
16655	*)
16656	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16657	  hardcode_libdir_separator_GCJ=:
16658	  hardcode_direct_GCJ=yes
16659	  export_dynamic_flag_spec_GCJ='${wl}-E'
16660
16661	  # hardcode_minus_L: Not really in the search PATH,
16662	  # but as the default location of the library.
16663	  hardcode_minus_L_GCJ=yes
16664	  ;;
16665	esac
16666      fi
16667      ;;
16668
16669    irix5* | irix6* | nonstopux*)
16670      if test "$GCC" = yes; then
16671	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'
16672      else
16673	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'
16674	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16675      fi
16676      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16677      hardcode_libdir_separator_GCJ=:
16678      link_all_deplibs_GCJ=yes
16679      ;;
16680
16681    netbsd*)
16682      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16683	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16684      else
16685	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16686      fi
16687      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16688      hardcode_direct_GCJ=yes
16689      hardcode_shlibpath_var_GCJ=no
16690      ;;
16691
16692    newsos6)
16693      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16694      hardcode_direct_GCJ=yes
16695      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16696      hardcode_libdir_separator_GCJ=:
16697      hardcode_shlibpath_var_GCJ=no
16698      ;;
16699
16700    openbsd*)
16701      hardcode_direct_GCJ=yes
16702      hardcode_shlibpath_var_GCJ=no
16703      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16704	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16705	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16706	export_dynamic_flag_spec_GCJ='${wl}-E'
16707      else
16708       case $host_os in
16709	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16710	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16711	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16712	   ;;
16713	 *)
16714	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16715	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16716	   ;;
16717       esac
16718      fi
16719      ;;
16720
16721    os2*)
16722      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16723      hardcode_minus_L_GCJ=yes
16724      allow_undefined_flag_GCJ=unsupported
16725      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'
16726      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16727      ;;
16728
16729    osf3*)
16730      if test "$GCC" = yes; then
16731	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16732	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'
16733      else
16734	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16735	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'
16736      fi
16737      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16738      hardcode_libdir_separator_GCJ=:
16739      ;;
16740
16741    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16742      if test "$GCC" = yes; then
16743	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16744	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'
16745	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16746      else
16747	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16748	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'
16749	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~
16750	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16751
16752	# Both c and cxx compiler support -rpath directly
16753	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16754      fi
16755      hardcode_libdir_separator_GCJ=:
16756      ;;
16757
16758    sco3.2v5*)
16759      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760      hardcode_shlibpath_var_GCJ=no
16761      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16762      runpath_var=LD_RUN_PATH
16763      hardcode_runpath_var=yes
16764      ;;
16765
16766    solaris*)
16767      no_undefined_flag_GCJ=' -z text'
16768      if test "$GCC" = yes; then
16769	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16770	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16771	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16772      else
16773	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16775  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16776      fi
16777      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16778      hardcode_shlibpath_var_GCJ=no
16779      case $host_os in
16780      solaris2.[0-5] | solaris2.[0-5].*) ;;
16781      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16782	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16783      esac
16784      link_all_deplibs_GCJ=yes
16785      ;;
16786
16787    sunos4*)
16788      if test "x$host_vendor" = xsequent; then
16789	# Use $CC to link under sequent, because it throws in some extra .o
16790	# files that make .init and .fini sections work.
16791	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16792      else
16793	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16794      fi
16795      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16796      hardcode_direct_GCJ=yes
16797      hardcode_minus_L_GCJ=yes
16798      hardcode_shlibpath_var_GCJ=no
16799      ;;
16800
16801    sysv4)
16802      case $host_vendor in
16803	sni)
16804	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16805	  hardcode_direct_GCJ=yes # is this really true???
16806	;;
16807	siemens)
16808	  ## LD is ld it makes a PLAMLIB
16809	  ## CC just makes a GrossModule.
16810	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16811	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16812	  hardcode_direct_GCJ=no
16813        ;;
16814	motorola)
16815	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16817	;;
16818      esac
16819      runpath_var='LD_RUN_PATH'
16820      hardcode_shlibpath_var_GCJ=no
16821      ;;
16822
16823    sysv4.3*)
16824      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16825      hardcode_shlibpath_var_GCJ=no
16826      export_dynamic_flag_spec_GCJ='-Bexport'
16827      ;;
16828
16829    sysv4*MP*)
16830      if test -d /usr/nec; then
16831	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832	hardcode_shlibpath_var_GCJ=no
16833	runpath_var=LD_RUN_PATH
16834	hardcode_runpath_var=yes
16835	ld_shlibs_GCJ=yes
16836      fi
16837      ;;
16838
16839    sysv4.2uw2*)
16840      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16841      hardcode_direct_GCJ=yes
16842      hardcode_minus_L_GCJ=no
16843      hardcode_shlibpath_var_GCJ=no
16844      hardcode_runpath_var=yes
16845      runpath_var=LD_RUN_PATH
16846      ;;
16847
16848   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16849      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16850      if test "$GCC" = yes; then
16851	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16852      else
16853	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16854      fi
16855      runpath_var='LD_RUN_PATH'
16856      hardcode_shlibpath_var_GCJ=no
16857      ;;
16858
16859    sysv5*)
16860      no_undefined_flag_GCJ=' -z text'
16861      # $CC -shared without GNU ld will not create a library from C++
16862      # object files and a static libstdc++, better avoid it by now
16863      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16864      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16865  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16866      hardcode_libdir_flag_spec_GCJ=
16867      hardcode_shlibpath_var_GCJ=no
16868      runpath_var='LD_RUN_PATH'
16869      ;;
16870
16871    uts4*)
16872      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16873      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16874      hardcode_shlibpath_var_GCJ=no
16875      ;;
16876
16877    *)
16878      ld_shlibs_GCJ=no
16879      ;;
16880    esac
16881  fi
16882
16883echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16884echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16885test "$ld_shlibs_GCJ" = no && can_build_shared=no
16886
16887variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16888if test "$GCC" = yes; then
16889  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16890fi
16891
16892#
16893# Do we need to explicitly link libc?
16894#
16895case "x$archive_cmds_need_lc_GCJ" in
16896x|xyes)
16897  # Assume -lc should be added
16898  archive_cmds_need_lc_GCJ=yes
16899
16900  if test "$enable_shared" = yes && test "$GCC" = yes; then
16901    case $archive_cmds_GCJ in
16902    *'~'*)
16903      # FIXME: we may have to deal with multi-command sequences.
16904      ;;
16905    '$CC '*)
16906      # Test whether the compiler implicitly links with -lc since on some
16907      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16908      # to ld, don't add -lc before -lgcc.
16909      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16910echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16911      $rm conftest*
16912      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16913
16914      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16915  (eval $ac_compile) 2>&5
16916  ac_status=$?
16917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918  (exit $ac_status); } 2>conftest.err; then
16919        soname=conftest
16920        lib=conftest
16921        libobjs=conftest.$ac_objext
16922        deplibs=
16923        wl=$lt_prog_compiler_wl_GCJ
16924        compiler_flags=-v
16925        linker_flags=-v
16926        verstring=
16927        output_objdir=.
16928        libname=conftest
16929        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16930        allow_undefined_flag_GCJ=
16931        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16932  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16933  ac_status=$?
16934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935  (exit $ac_status); }
16936        then
16937	  archive_cmds_need_lc_GCJ=no
16938        else
16939	  archive_cmds_need_lc_GCJ=yes
16940        fi
16941        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16942      else
16943        cat conftest.err 1>&5
16944      fi
16945      $rm conftest*
16946      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16947echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16948      ;;
16949    esac
16950  fi
16951  ;;
16952esac
16953
16954echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16955echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16956library_names_spec=
16957libname_spec='lib$name'
16958soname_spec=
16959shrext_cmds=".so"
16960postinstall_cmds=
16961postuninstall_cmds=
16962finish_cmds=
16963finish_eval=
16964shlibpath_var=
16965shlibpath_overrides_runpath=unknown
16966version_type=none
16967dynamic_linker="$host_os ld.so"
16968sys_lib_dlsearch_path_spec="/lib /usr/lib"
16969if test "$GCC" = yes; then
16970  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16971  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16972    # if the path contains ";" then we assume it to be the separator
16973    # otherwise default to the standard path separator (i.e. ":") - it is
16974    # assumed that no part of a normal pathname contains ";" but that should
16975    # okay in the real world where ";" in dirpaths is itself problematic.
16976    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16977  else
16978    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16979  fi
16980else
16981  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16982fi
16983need_lib_prefix=unknown
16984hardcode_into_libs=no
16985
16986# when you set need_version to no, make sure it does not cause -set_version
16987# flags to be left without arguments
16988need_version=unknown
16989
16990case $host_os in
16991aix3*)
16992  version_type=linux
16993  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16994  shlibpath_var=LIBPATH
16995
16996  # AIX 3 has no versioning support, so we append a major version to the name.
16997  soname_spec='${libname}${release}${shared_ext}$major'
16998  ;;
16999
17000aix4* | aix5*)
17001  version_type=linux
17002  need_lib_prefix=no
17003  need_version=no
17004  hardcode_into_libs=yes
17005  if test "$host_cpu" = ia64; then
17006    # AIX 5 supports IA64
17007    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17008    shlibpath_var=LD_LIBRARY_PATH
17009  else
17010    # With GCC up to 2.95.x, collect2 would create an import file
17011    # for dependence libraries.  The import file would start with
17012    # the line `#! .'.  This would cause the generated library to
17013    # depend on `.', always an invalid library.  This was fixed in
17014    # development snapshots of GCC prior to 3.0.
17015    case $host_os in
17016      aix4 | aix4.[01] | aix4.[01].*)
17017      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17018	   echo ' yes '
17019	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17020	:
17021      else
17022	can_build_shared=no
17023      fi
17024      ;;
17025    esac
17026    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17027    # soname into executable. Probably we can add versioning support to
17028    # collect2, so additional links can be useful in future.
17029    if test "$aix_use_runtimelinking" = yes; then
17030      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17031      # instead of lib<name>.a to let people know that these are not
17032      # typical AIX shared libraries.
17033      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034    else
17035      # We preserve .a as extension for shared libraries through AIX4.2
17036      # and later when we are not doing run time linking.
17037      library_names_spec='${libname}${release}.a $libname.a'
17038      soname_spec='${libname}${release}${shared_ext}$major'
17039    fi
17040    shlibpath_var=LIBPATH
17041  fi
17042  ;;
17043
17044amigaos*)
17045  library_names_spec='$libname.ixlibrary $libname.a'
17046  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17047  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'
17048  ;;
17049
17050beos*)
17051  library_names_spec='${libname}${shared_ext}'
17052  dynamic_linker="$host_os ld.so"
17053  shlibpath_var=LIBRARY_PATH
17054  ;;
17055
17056bsdi4*)
17057  version_type=linux
17058  need_version=no
17059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060  soname_spec='${libname}${release}${shared_ext}$major'
17061  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17062  shlibpath_var=LD_LIBRARY_PATH
17063  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17064  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17065  # the default ld.so.conf also contains /usr/contrib/lib and
17066  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17067  # libtool to hard-code these into programs
17068  ;;
17069
17070cygwin* | mingw* | pw32*)
17071  version_type=windows
17072  shrext_cmds=".dll"
17073  need_version=no
17074  need_lib_prefix=no
17075
17076  case $GCC,$host_os in
17077  yes,cygwin* | yes,mingw* | yes,pw32*)
17078    library_names_spec='$libname.dll.a'
17079    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17080    postinstall_cmds='base_file=`basename \${file}`~
17081      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17082      dldir=$destdir/`dirname \$dlpath`~
17083      test -d \$dldir || mkdir -p \$dldir~
17084      $install_prog $dir/$dlname \$dldir/$dlname'
17085    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17086      dlpath=$dir/\$dldll~
17087       $rm \$dlpath'
17088    shlibpath_overrides_runpath=yes
17089
17090    case $host_os in
17091    cygwin*)
17092      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17093      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17094      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17095      ;;
17096    mingw*)
17097      # MinGW DLLs use traditional 'lib' prefix
17098      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17099      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17100      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17101        # It is most probably a Windows format PATH printed by
17102        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17103        # path with ; separators, and with drive letters. We can handle the
17104        # drive letters (cygwin fileutils understands them), so leave them,
17105        # especially as we might pass files found there to a mingw objdump,
17106        # which wouldn't understand a cygwinified path. Ahh.
17107        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17108      else
17109        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17110      fi
17111      ;;
17112    pw32*)
17113      # pw32 DLLs use 'pw' prefix rather than 'lib'
17114      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17115      ;;
17116    esac
17117    ;;
17118
17119  *)
17120    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17121    ;;
17122  esac
17123  dynamic_linker='Win32 ld.exe'
17124  # FIXME: first we should search . and the directory the executable is in
17125  shlibpath_var=PATH
17126  ;;
17127
17128darwin* | rhapsody*)
17129  dynamic_linker="$host_os dyld"
17130  version_type=darwin
17131  need_lib_prefix=no
17132  need_version=no
17133  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17134  soname_spec='${libname}${release}${major}$shared_ext'
17135  shlibpath_overrides_runpath=yes
17136  shlibpath_var=DYLD_LIBRARY_PATH
17137  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17138  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17139  if test "$GCC" = yes; then
17140    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"`
17141  else
17142    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17143  fi
17144  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17145  ;;
17146
17147dgux*)
17148  version_type=linux
17149  need_lib_prefix=no
17150  need_version=no
17151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17152  soname_spec='${libname}${release}${shared_ext}$major'
17153  shlibpath_var=LD_LIBRARY_PATH
17154  ;;
17155
17156freebsd1*)
17157  dynamic_linker=no
17158  ;;
17159
17160kfreebsd*-gnu)
17161  version_type=linux
17162  need_lib_prefix=no
17163  need_version=no
17164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165  soname_spec='${libname}${release}${shared_ext}$major'
17166  shlibpath_var=LD_LIBRARY_PATH
17167  shlibpath_overrides_runpath=no
17168  hardcode_into_libs=yes
17169  dynamic_linker='GNU ld.so'
17170  ;;
17171
17172freebsd*)
17173  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17174  version_type=freebsd-$objformat
17175  case $version_type in
17176    freebsd-elf*)
17177      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17178      need_version=no
17179      need_lib_prefix=no
17180      ;;
17181    freebsd-*)
17182      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17183      need_version=yes
17184      ;;
17185  esac
17186  shlibpath_var=LD_LIBRARY_PATH
17187  case $host_os in
17188  freebsd2*)
17189    shlibpath_overrides_runpath=yes
17190    ;;
17191  freebsd3.01* | freebsdelf3.01*)
17192    shlibpath_overrides_runpath=yes
17193    hardcode_into_libs=yes
17194    ;;
17195  *) # from 3.2 on
17196    shlibpath_overrides_runpath=no
17197    hardcode_into_libs=yes
17198    ;;
17199  esac
17200  ;;
17201
17202gnu*)
17203  version_type=linux
17204  need_lib_prefix=no
17205  need_version=no
17206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17207  soname_spec='${libname}${release}${shared_ext}$major'
17208  shlibpath_var=LD_LIBRARY_PATH
17209  hardcode_into_libs=yes
17210  ;;
17211
17212hpux9* | hpux10* | hpux11*)
17213  # Give a soname corresponding to the major version so that dld.sl refuses to
17214  # link against other versions.
17215  version_type=sunos
17216  need_lib_prefix=no
17217  need_version=no
17218  case "$host_cpu" in
17219  ia64*)
17220    shrext_cmds='.so'
17221    hardcode_into_libs=yes
17222    dynamic_linker="$host_os dld.so"
17223    shlibpath_var=LD_LIBRARY_PATH
17224    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17225    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226    soname_spec='${libname}${release}${shared_ext}$major'
17227    if test "X$HPUX_IA64_MODE" = X32; then
17228      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17229    else
17230      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17231    fi
17232    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17233    ;;
17234   hppa*64*)
17235     shrext_cmds='.sl'
17236     hardcode_into_libs=yes
17237     dynamic_linker="$host_os dld.sl"
17238     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17239     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17241     soname_spec='${libname}${release}${shared_ext}$major'
17242     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17243     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17244     ;;
17245   *)
17246    shrext_cmds='.sl'
17247    dynamic_linker="$host_os dld.sl"
17248    shlibpath_var=SHLIB_PATH
17249    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17250    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17251    soname_spec='${libname}${release}${shared_ext}$major'
17252    ;;
17253  esac
17254  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17255  postinstall_cmds='chmod 555 $lib'
17256  ;;
17257
17258irix5* | irix6* | nonstopux*)
17259  case $host_os in
17260    nonstopux*) version_type=nonstopux ;;
17261    *)
17262	if test "$lt_cv_prog_gnu_ld" = yes; then
17263		version_type=linux
17264	else
17265		version_type=irix
17266	fi ;;
17267  esac
17268  need_lib_prefix=no
17269  need_version=no
17270  soname_spec='${libname}${release}${shared_ext}$major'
17271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17272  case $host_os in
17273  irix5* | nonstopux*)
17274    libsuff= shlibsuff=
17275    ;;
17276  *)
17277    case $LD in # libtool.m4 will add one of these switches to LD
17278    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17279      libsuff= shlibsuff= libmagic=32-bit;;
17280    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17281      libsuff=32 shlibsuff=N32 libmagic=N32;;
17282    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17283      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17284    *) libsuff= shlibsuff= libmagic=never-match;;
17285    esac
17286    ;;
17287  esac
17288  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17289  shlibpath_overrides_runpath=no
17290  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17291  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17292  hardcode_into_libs=yes
17293  ;;
17294
17295# No shared lib support for Linux oldld, aout, or coff.
17296linux*oldld* | linux*aout* | linux*coff*)
17297  dynamic_linker=no
17298  ;;
17299
17300# This must be Linux ELF.
17301linux*)
17302  version_type=linux
17303  need_lib_prefix=no
17304  need_version=no
17305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17306  soname_spec='${libname}${release}${shared_ext}$major'
17307  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17308  shlibpath_var=LD_LIBRARY_PATH
17309  shlibpath_overrides_runpath=no
17310  # This implies no fast_install, which is unacceptable.
17311  # Some rework will be needed to allow for fast_install
17312  # before this can be enabled.
17313  hardcode_into_libs=yes
17314
17315  # Append ld.so.conf contents to the search path
17316  if test -f /etc/ld.so.conf; then
17317    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17318    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17319  fi
17320
17321  # We used to test for /lib/ld.so.1 and disable shared libraries on
17322  # powerpc, because MkLinux only supported shared libraries with the
17323  # GNU dynamic linker.  Since this was broken with cross compilers,
17324  # most powerpc-linux boxes support dynamic linking these days and
17325  # people can always --disable-shared, the test was removed, and we
17326  # assume the GNU/Linux dynamic linker is in use.
17327  dynamic_linker='GNU/Linux ld.so'
17328  ;;
17329
17330knetbsd*-gnu)
17331  version_type=linux
17332  need_lib_prefix=no
17333  need_version=no
17334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17335  soname_spec='${libname}${release}${shared_ext}$major'
17336  shlibpath_var=LD_LIBRARY_PATH
17337  shlibpath_overrides_runpath=no
17338  hardcode_into_libs=yes
17339  dynamic_linker='GNU ld.so'
17340  ;;
17341
17342netbsd*)
17343  version_type=sunos
17344  need_lib_prefix=no
17345  need_version=no
17346  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17347    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17348    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17349    dynamic_linker='NetBSD (a.out) ld.so'
17350  else
17351    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17352    soname_spec='${libname}${release}${shared_ext}$major'
17353    dynamic_linker='NetBSD ld.elf_so'
17354  fi
17355  shlibpath_var=LD_LIBRARY_PATH
17356  shlibpath_overrides_runpath=yes
17357  hardcode_into_libs=yes
17358  ;;
17359
17360newsos6)
17361  version_type=linux
17362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363  shlibpath_var=LD_LIBRARY_PATH
17364  shlibpath_overrides_runpath=yes
17365  ;;
17366
17367nto-qnx*)
17368  version_type=linux
17369  need_lib_prefix=no
17370  need_version=no
17371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372  soname_spec='${libname}${release}${shared_ext}$major'
17373  shlibpath_var=LD_LIBRARY_PATH
17374  shlibpath_overrides_runpath=yes
17375  ;;
17376
17377openbsd*)
17378  version_type=sunos
17379  need_lib_prefix=no
17380  need_version=yes
17381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17382  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17383  shlibpath_var=LD_LIBRARY_PATH
17384  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17385    case $host_os in
17386      openbsd2.[89] | openbsd2.[89].*)
17387	shlibpath_overrides_runpath=no
17388	;;
17389      *)
17390	shlibpath_overrides_runpath=yes
17391	;;
17392      esac
17393  else
17394    shlibpath_overrides_runpath=yes
17395  fi
17396  ;;
17397
17398os2*)
17399  libname_spec='$name'
17400  shrext_cmds=".dll"
17401  need_lib_prefix=no
17402  library_names_spec='$libname${shared_ext} $libname.a'
17403  dynamic_linker='OS/2 ld.exe'
17404  shlibpath_var=LIBPATH
17405  ;;
17406
17407osf3* | osf4* | osf5*)
17408  version_type=osf
17409  need_lib_prefix=no
17410  need_version=no
17411  soname_spec='${libname}${release}${shared_ext}$major'
17412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413  shlibpath_var=LD_LIBRARY_PATH
17414  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17415  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17416  ;;
17417
17418sco3.2v5*)
17419  version_type=osf
17420  soname_spec='${libname}${release}${shared_ext}$major'
17421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17422  shlibpath_var=LD_LIBRARY_PATH
17423  ;;
17424
17425solaris*)
17426  version_type=linux
17427  need_lib_prefix=no
17428  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
17432  shlibpath_overrides_runpath=yes
17433  hardcode_into_libs=yes
17434  # ldd complains unless libraries are executable
17435  postinstall_cmds='chmod +x $lib'
17436  ;;
17437
17438sunos4*)
17439  version_type=sunos
17440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17441  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17442  shlibpath_var=LD_LIBRARY_PATH
17443  shlibpath_overrides_runpath=yes
17444  if test "$with_gnu_ld" = yes; then
17445    need_lib_prefix=no
17446  fi
17447  need_version=yes
17448  ;;
17449
17450sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17451  version_type=linux
17452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453  soname_spec='${libname}${release}${shared_ext}$major'
17454  shlibpath_var=LD_LIBRARY_PATH
17455  case $host_vendor in
17456    sni)
17457      shlibpath_overrides_runpath=no
17458      need_lib_prefix=no
17459      export_dynamic_flag_spec='${wl}-Blargedynsym'
17460      runpath_var=LD_RUN_PATH
17461      ;;
17462    siemens)
17463      need_lib_prefix=no
17464      ;;
17465    motorola)
17466      need_lib_prefix=no
17467      need_version=no
17468      shlibpath_overrides_runpath=no
17469      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17470      ;;
17471  esac
17472  ;;
17473
17474sysv4*MP*)
17475  if test -d /usr/nec ;then
17476    version_type=linux
17477    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17478    soname_spec='$libname${shared_ext}.$major'
17479    shlibpath_var=LD_LIBRARY_PATH
17480  fi
17481  ;;
17482
17483uts4*)
17484  version_type=linux
17485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486  soname_spec='${libname}${release}${shared_ext}$major'
17487  shlibpath_var=LD_LIBRARY_PATH
17488  ;;
17489
17490*)
17491  dynamic_linker=no
17492  ;;
17493esac
17494echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17495echo "${ECHO_T}$dynamic_linker" >&6
17496test "$dynamic_linker" = no && can_build_shared=no
17497
17498echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17499echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17500hardcode_action_GCJ=
17501if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17502   test -n "$runpath_var GCJ" || \
17503   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17504
17505  # We can hardcode non-existant directories.
17506  if test "$hardcode_direct_GCJ" != no &&
17507     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17508     # have to relink, otherwise we might link with an installed library
17509     # when we should be linking with a yet-to-be-installed one
17510     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17511     test "$hardcode_minus_L_GCJ" != no; then
17512    # Linking always hardcodes the temporary library directory.
17513    hardcode_action_GCJ=relink
17514  else
17515    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17516    hardcode_action_GCJ=immediate
17517  fi
17518else
17519  # We cannot hardcode anything, or else we can only hardcode existing
17520  # directories.
17521  hardcode_action_GCJ=unsupported
17522fi
17523echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17524echo "${ECHO_T}$hardcode_action_GCJ" >&6
17525
17526if test "$hardcode_action_GCJ" = relink; then
17527  # Fast installation is not supported
17528  enable_fast_install=no
17529elif test "$shlibpath_overrides_runpath" = yes ||
17530     test "$enable_shared" = no; then
17531  # Fast installation is not necessary
17532  enable_fast_install=needless
17533fi
17534
17535striplib=
17536old_striplib=
17537echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17538echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17539if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17540  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17541  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17542  echo "$as_me:$LINENO: result: yes" >&5
17543echo "${ECHO_T}yes" >&6
17544else
17545# FIXME - insert some real tests, host_os isn't really good enough
17546  case $host_os in
17547   darwin*)
17548       if test -n "$STRIP" ; then
17549         striplib="$STRIP -x"
17550         echo "$as_me:$LINENO: result: yes" >&5
17551echo "${ECHO_T}yes" >&6
17552       else
17553  echo "$as_me:$LINENO: result: no" >&5
17554echo "${ECHO_T}no" >&6
17555fi
17556       ;;
17557   *)
17558  echo "$as_me:$LINENO: result: no" >&5
17559echo "${ECHO_T}no" >&6
17560    ;;
17561  esac
17562fi
17563
17564if test "x$enable_dlopen" != xyes; then
17565  enable_dlopen=unknown
17566  enable_dlopen_self=unknown
17567  enable_dlopen_self_static=unknown
17568else
17569  lt_cv_dlopen=no
17570  lt_cv_dlopen_libs=
17571
17572  case $host_os in
17573  beos*)
17574    lt_cv_dlopen="load_add_on"
17575    lt_cv_dlopen_libs=
17576    lt_cv_dlopen_self=yes
17577    ;;
17578
17579  mingw* | pw32*)
17580    lt_cv_dlopen="LoadLibrary"
17581    lt_cv_dlopen_libs=
17582   ;;
17583
17584  cygwin*)
17585    lt_cv_dlopen="dlopen"
17586    lt_cv_dlopen_libs=
17587   ;;
17588
17589  darwin*)
17590  # if libdl is installed we need to link against it
17591    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17592echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17593if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17594  echo $ECHO_N "(cached) $ECHO_C" >&6
17595else
17596  ac_check_lib_save_LIBS=$LIBS
17597LIBS="-ldl  $LIBS"
17598cat >conftest.$ac_ext <<_ACEOF
17599/* confdefs.h.  */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h.  */
17604
17605/* Override any gcc2 internal prototype to avoid an error.  */
17606#ifdef __cplusplus
17607extern "C"
17608#endif
17609/* We use char because int might match the return type of a gcc2
17610   builtin and then its argument prototype would still apply.  */
17611char dlopen ();
17612int
17613main ()
17614{
17615dlopen ();
17616  ;
17617  return 0;
17618}
17619_ACEOF
17620rm -f conftest.$ac_objext conftest$ac_exeext
17621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17622  (eval $ac_link) 2>conftest.er1
17623  ac_status=$?
17624  grep -v '^ *+' conftest.er1 >conftest.err
17625  rm -f conftest.er1
17626  cat conftest.err >&5
17627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628  (exit $ac_status); } &&
17629	 { ac_try='test -z "$ac_c_werror_flag"
17630			 || test ! -s conftest.err'
17631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632  (eval $ac_try) 2>&5
17633  ac_status=$?
17634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635  (exit $ac_status); }; } &&
17636	 { ac_try='test -s conftest$ac_exeext'
17637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638  (eval $ac_try) 2>&5
17639  ac_status=$?
17640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641  (exit $ac_status); }; }; then
17642  ac_cv_lib_dl_dlopen=yes
17643else
17644  echo "$as_me: failed program was:" >&5
17645sed 's/^/| /' conftest.$ac_ext >&5
17646
17647ac_cv_lib_dl_dlopen=no
17648fi
17649rm -f conftest.err conftest.$ac_objext \
17650      conftest$ac_exeext conftest.$ac_ext
17651LIBS=$ac_check_lib_save_LIBS
17652fi
17653echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17654echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17655if test $ac_cv_lib_dl_dlopen = yes; then
17656  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17657else
17658
17659    lt_cv_dlopen="dyld"
17660    lt_cv_dlopen_libs=
17661    lt_cv_dlopen_self=yes
17662
17663fi
17664
17665   ;;
17666
17667  *)
17668    echo "$as_me:$LINENO: checking for shl_load" >&5
17669echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17670if test "${ac_cv_func_shl_load+set}" = set; then
17671  echo $ECHO_N "(cached) $ECHO_C" >&6
17672else
17673  cat >conftest.$ac_ext <<_ACEOF
17674/* confdefs.h.  */
17675_ACEOF
17676cat confdefs.h >>conftest.$ac_ext
17677cat >>conftest.$ac_ext <<_ACEOF
17678/* end confdefs.h.  */
17679/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17680   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17681#define shl_load innocuous_shl_load
17682
17683/* System header to define __stub macros and hopefully few prototypes,
17684    which can conflict with char shl_load (); below.
17685    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686    <limits.h> exists even on freestanding compilers.  */
17687
17688#ifdef __STDC__
17689# include <limits.h>
17690#else
17691# include <assert.h>
17692#endif
17693
17694#undef shl_load
17695
17696/* Override any gcc2 internal prototype to avoid an error.  */
17697#ifdef __cplusplus
17698extern "C"
17699{
17700#endif
17701/* We use char because int might match the return type of a gcc2
17702   builtin and then its argument prototype would still apply.  */
17703char shl_load ();
17704/* The GNU C library defines this for functions which it implements
17705    to always fail with ENOSYS.  Some functions are actually named
17706    something starting with __ and the normal name is an alias.  */
17707#if defined (__stub_shl_load) || defined (__stub___shl_load)
17708choke me
17709#else
17710char (*f) () = shl_load;
17711#endif
17712#ifdef __cplusplus
17713}
17714#endif
17715
17716int
17717main ()
17718{
17719return f != shl_load;
17720  ;
17721  return 0;
17722}
17723_ACEOF
17724rm -f conftest.$ac_objext conftest$ac_exeext
17725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17726  (eval $ac_link) 2>conftest.er1
17727  ac_status=$?
17728  grep -v '^ *+' conftest.er1 >conftest.err
17729  rm -f conftest.er1
17730  cat conftest.err >&5
17731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732  (exit $ac_status); } &&
17733	 { ac_try='test -z "$ac_c_werror_flag"
17734			 || test ! -s conftest.err'
17735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736  (eval $ac_try) 2>&5
17737  ac_status=$?
17738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739  (exit $ac_status); }; } &&
17740	 { ac_try='test -s conftest$ac_exeext'
17741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742  (eval $ac_try) 2>&5
17743  ac_status=$?
17744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745  (exit $ac_status); }; }; then
17746  ac_cv_func_shl_load=yes
17747else
17748  echo "$as_me: failed program was:" >&5
17749sed 's/^/| /' conftest.$ac_ext >&5
17750
17751ac_cv_func_shl_load=no
17752fi
17753rm -f conftest.err conftest.$ac_objext \
17754      conftest$ac_exeext conftest.$ac_ext
17755fi
17756echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17757echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17758if test $ac_cv_func_shl_load = yes; then
17759  lt_cv_dlopen="shl_load"
17760else
17761  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17762echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17763if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17764  echo $ECHO_N "(cached) $ECHO_C" >&6
17765else
17766  ac_check_lib_save_LIBS=$LIBS
17767LIBS="-ldld  $LIBS"
17768cat >conftest.$ac_ext <<_ACEOF
17769/* confdefs.h.  */
17770_ACEOF
17771cat confdefs.h >>conftest.$ac_ext
17772cat >>conftest.$ac_ext <<_ACEOF
17773/* end confdefs.h.  */
17774
17775/* Override any gcc2 internal prototype to avoid an error.  */
17776#ifdef __cplusplus
17777extern "C"
17778#endif
17779/* We use char because int might match the return type of a gcc2
17780   builtin and then its argument prototype would still apply.  */
17781char shl_load ();
17782int
17783main ()
17784{
17785shl_load ();
17786  ;
17787  return 0;
17788}
17789_ACEOF
17790rm -f conftest.$ac_objext conftest$ac_exeext
17791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17792  (eval $ac_link) 2>conftest.er1
17793  ac_status=$?
17794  grep -v '^ *+' conftest.er1 >conftest.err
17795  rm -f conftest.er1
17796  cat conftest.err >&5
17797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798  (exit $ac_status); } &&
17799	 { ac_try='test -z "$ac_c_werror_flag"
17800			 || test ! -s conftest.err'
17801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802  (eval $ac_try) 2>&5
17803  ac_status=$?
17804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805  (exit $ac_status); }; } &&
17806	 { ac_try='test -s conftest$ac_exeext'
17807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808  (eval $ac_try) 2>&5
17809  ac_status=$?
17810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811  (exit $ac_status); }; }; then
17812  ac_cv_lib_dld_shl_load=yes
17813else
17814  echo "$as_me: failed program was:" >&5
17815sed 's/^/| /' conftest.$ac_ext >&5
17816
17817ac_cv_lib_dld_shl_load=no
17818fi
17819rm -f conftest.err conftest.$ac_objext \
17820      conftest$ac_exeext conftest.$ac_ext
17821LIBS=$ac_check_lib_save_LIBS
17822fi
17823echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17824echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17825if test $ac_cv_lib_dld_shl_load = yes; then
17826  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17827else
17828  echo "$as_me:$LINENO: checking for dlopen" >&5
17829echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17830if test "${ac_cv_func_dlopen+set}" = set; then
17831  echo $ECHO_N "(cached) $ECHO_C" >&6
17832else
17833  cat >conftest.$ac_ext <<_ACEOF
17834/* confdefs.h.  */
17835_ACEOF
17836cat confdefs.h >>conftest.$ac_ext
17837cat >>conftest.$ac_ext <<_ACEOF
17838/* end confdefs.h.  */
17839/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17841#define dlopen innocuous_dlopen
17842
17843/* System header to define __stub macros and hopefully few prototypes,
17844    which can conflict with char dlopen (); below.
17845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17846    <limits.h> exists even on freestanding compilers.  */
17847
17848#ifdef __STDC__
17849# include <limits.h>
17850#else
17851# include <assert.h>
17852#endif
17853
17854#undef dlopen
17855
17856/* Override any gcc2 internal prototype to avoid an error.  */
17857#ifdef __cplusplus
17858extern "C"
17859{
17860#endif
17861/* We use char because int might match the return type of a gcc2
17862   builtin and then its argument prototype would still apply.  */
17863char dlopen ();
17864/* The GNU C library defines this for functions which it implements
17865    to always fail with ENOSYS.  Some functions are actually named
17866    something starting with __ and the normal name is an alias.  */
17867#if defined (__stub_dlopen) || defined (__stub___dlopen)
17868choke me
17869#else
17870char (*f) () = dlopen;
17871#endif
17872#ifdef __cplusplus
17873}
17874#endif
17875
17876int
17877main ()
17878{
17879return f != dlopen;
17880  ;
17881  return 0;
17882}
17883_ACEOF
17884rm -f conftest.$ac_objext conftest$ac_exeext
17885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17886  (eval $ac_link) 2>conftest.er1
17887  ac_status=$?
17888  grep -v '^ *+' conftest.er1 >conftest.err
17889  rm -f conftest.er1
17890  cat conftest.err >&5
17891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892  (exit $ac_status); } &&
17893	 { ac_try='test -z "$ac_c_werror_flag"
17894			 || test ! -s conftest.err'
17895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896  (eval $ac_try) 2>&5
17897  ac_status=$?
17898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899  (exit $ac_status); }; } &&
17900	 { ac_try='test -s conftest$ac_exeext'
17901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902  (eval $ac_try) 2>&5
17903  ac_status=$?
17904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905  (exit $ac_status); }; }; then
17906  ac_cv_func_dlopen=yes
17907else
17908  echo "$as_me: failed program was:" >&5
17909sed 's/^/| /' conftest.$ac_ext >&5
17910
17911ac_cv_func_dlopen=no
17912fi
17913rm -f conftest.err conftest.$ac_objext \
17914      conftest$ac_exeext conftest.$ac_ext
17915fi
17916echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17917echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17918if test $ac_cv_func_dlopen = yes; then
17919  lt_cv_dlopen="dlopen"
17920else
17921  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17922echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17923if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17924  echo $ECHO_N "(cached) $ECHO_C" >&6
17925else
17926  ac_check_lib_save_LIBS=$LIBS
17927LIBS="-ldl  $LIBS"
17928cat >conftest.$ac_ext <<_ACEOF
17929/* confdefs.h.  */
17930_ACEOF
17931cat confdefs.h >>conftest.$ac_ext
17932cat >>conftest.$ac_ext <<_ACEOF
17933/* end confdefs.h.  */
17934
17935/* Override any gcc2 internal prototype to avoid an error.  */
17936#ifdef __cplusplus
17937extern "C"
17938#endif
17939/* We use char because int might match the return type of a gcc2
17940   builtin and then its argument prototype would still apply.  */
17941char dlopen ();
17942int
17943main ()
17944{
17945dlopen ();
17946  ;
17947  return 0;
17948}
17949_ACEOF
17950rm -f conftest.$ac_objext conftest$ac_exeext
17951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17952  (eval $ac_link) 2>conftest.er1
17953  ac_status=$?
17954  grep -v '^ *+' conftest.er1 >conftest.err
17955  rm -f conftest.er1
17956  cat conftest.err >&5
17957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958  (exit $ac_status); } &&
17959	 { ac_try='test -z "$ac_c_werror_flag"
17960			 || test ! -s conftest.err'
17961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962  (eval $ac_try) 2>&5
17963  ac_status=$?
17964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965  (exit $ac_status); }; } &&
17966	 { ac_try='test -s conftest$ac_exeext'
17967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968  (eval $ac_try) 2>&5
17969  ac_status=$?
17970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971  (exit $ac_status); }; }; then
17972  ac_cv_lib_dl_dlopen=yes
17973else
17974  echo "$as_me: failed program was:" >&5
17975sed 's/^/| /' conftest.$ac_ext >&5
17976
17977ac_cv_lib_dl_dlopen=no
17978fi
17979rm -f conftest.err conftest.$ac_objext \
17980      conftest$ac_exeext conftest.$ac_ext
17981LIBS=$ac_check_lib_save_LIBS
17982fi
17983echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17984echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17985if test $ac_cv_lib_dl_dlopen = yes; then
17986  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17987else
17988  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17989echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17990if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17991  echo $ECHO_N "(cached) $ECHO_C" >&6
17992else
17993  ac_check_lib_save_LIBS=$LIBS
17994LIBS="-lsvld  $LIBS"
17995cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h.  */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h.  */
18001
18002/* Override any gcc2 internal prototype to avoid an error.  */
18003#ifdef __cplusplus
18004extern "C"
18005#endif
18006/* We use char because int might match the return type of a gcc2
18007   builtin and then its argument prototype would still apply.  */
18008char dlopen ();
18009int
18010main ()
18011{
18012dlopen ();
18013  ;
18014  return 0;
18015}
18016_ACEOF
18017rm -f conftest.$ac_objext conftest$ac_exeext
18018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18019  (eval $ac_link) 2>conftest.er1
18020  ac_status=$?
18021  grep -v '^ *+' conftest.er1 >conftest.err
18022  rm -f conftest.er1
18023  cat conftest.err >&5
18024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025  (exit $ac_status); } &&
18026	 { ac_try='test -z "$ac_c_werror_flag"
18027			 || test ! -s conftest.err'
18028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029  (eval $ac_try) 2>&5
18030  ac_status=$?
18031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032  (exit $ac_status); }; } &&
18033	 { ac_try='test -s conftest$ac_exeext'
18034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035  (eval $ac_try) 2>&5
18036  ac_status=$?
18037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038  (exit $ac_status); }; }; then
18039  ac_cv_lib_svld_dlopen=yes
18040else
18041  echo "$as_me: failed program was:" >&5
18042sed 's/^/| /' conftest.$ac_ext >&5
18043
18044ac_cv_lib_svld_dlopen=no
18045fi
18046rm -f conftest.err conftest.$ac_objext \
18047      conftest$ac_exeext conftest.$ac_ext
18048LIBS=$ac_check_lib_save_LIBS
18049fi
18050echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18051echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18052if test $ac_cv_lib_svld_dlopen = yes; then
18053  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18054else
18055  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18056echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18057if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18058  echo $ECHO_N "(cached) $ECHO_C" >&6
18059else
18060  ac_check_lib_save_LIBS=$LIBS
18061LIBS="-ldld  $LIBS"
18062cat >conftest.$ac_ext <<_ACEOF
18063/* confdefs.h.  */
18064_ACEOF
18065cat confdefs.h >>conftest.$ac_ext
18066cat >>conftest.$ac_ext <<_ACEOF
18067/* end confdefs.h.  */
18068
18069/* Override any gcc2 internal prototype to avoid an error.  */
18070#ifdef __cplusplus
18071extern "C"
18072#endif
18073/* We use char because int might match the return type of a gcc2
18074   builtin and then its argument prototype would still apply.  */
18075char dld_link ();
18076int
18077main ()
18078{
18079dld_link ();
18080  ;
18081  return 0;
18082}
18083_ACEOF
18084rm -f conftest.$ac_objext conftest$ac_exeext
18085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18086  (eval $ac_link) 2>conftest.er1
18087  ac_status=$?
18088  grep -v '^ *+' conftest.er1 >conftest.err
18089  rm -f conftest.er1
18090  cat conftest.err >&5
18091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092  (exit $ac_status); } &&
18093	 { ac_try='test -z "$ac_c_werror_flag"
18094			 || test ! -s conftest.err'
18095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096  (eval $ac_try) 2>&5
18097  ac_status=$?
18098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099  (exit $ac_status); }; } &&
18100	 { ac_try='test -s conftest$ac_exeext'
18101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102  (eval $ac_try) 2>&5
18103  ac_status=$?
18104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105  (exit $ac_status); }; }; then
18106  ac_cv_lib_dld_dld_link=yes
18107else
18108  echo "$as_me: failed program was:" >&5
18109sed 's/^/| /' conftest.$ac_ext >&5
18110
18111ac_cv_lib_dld_dld_link=no
18112fi
18113rm -f conftest.err conftest.$ac_objext \
18114      conftest$ac_exeext conftest.$ac_ext
18115LIBS=$ac_check_lib_save_LIBS
18116fi
18117echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18118echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18119if test $ac_cv_lib_dld_dld_link = yes; then
18120  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18121fi
18122
18123
18124fi
18125
18126
18127fi
18128
18129
18130fi
18131
18132
18133fi
18134
18135
18136fi
18137
18138    ;;
18139  esac
18140
18141  if test "x$lt_cv_dlopen" != xno; then
18142    enable_dlopen=yes
18143  else
18144    enable_dlopen=no
18145  fi
18146
18147  case $lt_cv_dlopen in
18148  dlopen)
18149    save_CPPFLAGS="$CPPFLAGS"
18150    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18151
18152    save_LDFLAGS="$LDFLAGS"
18153    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18154
18155    save_LIBS="$LIBS"
18156    LIBS="$lt_cv_dlopen_libs $LIBS"
18157
18158    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18159echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18160if test "${lt_cv_dlopen_self+set}" = set; then
18161  echo $ECHO_N "(cached) $ECHO_C" >&6
18162else
18163  	  if test "$cross_compiling" = yes; then :
18164  lt_cv_dlopen_self=cross
18165else
18166  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18167  lt_status=$lt_dlunknown
18168  cat > conftest.$ac_ext <<EOF
18169#line 18169 "configure"
18170#include "confdefs.h"
18171
18172#if HAVE_DLFCN_H
18173#include <dlfcn.h>
18174#endif
18175
18176#include <stdio.h>
18177
18178#ifdef RTLD_GLOBAL
18179#  define LT_DLGLOBAL		RTLD_GLOBAL
18180#else
18181#  ifdef DL_GLOBAL
18182#    define LT_DLGLOBAL		DL_GLOBAL
18183#  else
18184#    define LT_DLGLOBAL		0
18185#  endif
18186#endif
18187
18188/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18189   find out it does not work in some platform. */
18190#ifndef LT_DLLAZY_OR_NOW
18191#  ifdef RTLD_LAZY
18192#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18193#  else
18194#    ifdef DL_LAZY
18195#      define LT_DLLAZY_OR_NOW		DL_LAZY
18196#    else
18197#      ifdef RTLD_NOW
18198#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18199#      else
18200#        ifdef DL_NOW
18201#          define LT_DLLAZY_OR_NOW	DL_NOW
18202#        else
18203#          define LT_DLLAZY_OR_NOW	0
18204#        endif
18205#      endif
18206#    endif
18207#  endif
18208#endif
18209
18210#ifdef __cplusplus
18211extern "C" void exit (int);
18212#endif
18213
18214void fnord() { int i=42;}
18215int main ()
18216{
18217  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18218  int status = $lt_dlunknown;
18219
18220  if (self)
18221    {
18222      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18223      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18224      /* dlclose (self); */
18225    }
18226
18227    exit (status);
18228}
18229EOF
18230  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18231  (eval $ac_link) 2>&5
18232  ac_status=$?
18233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18235    (./conftest; exit; ) 2>/dev/null
18236    lt_status=$?
18237    case x$lt_status in
18238      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18239      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18240      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18241    esac
18242  else :
18243    # compilation failed
18244    lt_cv_dlopen_self=no
18245  fi
18246fi
18247rm -fr conftest*
18248
18249
18250fi
18251echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18252echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18253
18254    if test "x$lt_cv_dlopen_self" = xyes; then
18255      LDFLAGS="$LDFLAGS $link_static_flag"
18256      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18257echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18258if test "${lt_cv_dlopen_self_static+set}" = set; then
18259  echo $ECHO_N "(cached) $ECHO_C" >&6
18260else
18261  	  if test "$cross_compiling" = yes; then :
18262  lt_cv_dlopen_self_static=cross
18263else
18264  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18265  lt_status=$lt_dlunknown
18266  cat > conftest.$ac_ext <<EOF
18267#line 18267 "configure"
18268#include "confdefs.h"
18269
18270#if HAVE_DLFCN_H
18271#include <dlfcn.h>
18272#endif
18273
18274#include <stdio.h>
18275
18276#ifdef RTLD_GLOBAL
18277#  define LT_DLGLOBAL		RTLD_GLOBAL
18278#else
18279#  ifdef DL_GLOBAL
18280#    define LT_DLGLOBAL		DL_GLOBAL
18281#  else
18282#    define LT_DLGLOBAL		0
18283#  endif
18284#endif
18285
18286/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18287   find out it does not work in some platform. */
18288#ifndef LT_DLLAZY_OR_NOW
18289#  ifdef RTLD_LAZY
18290#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18291#  else
18292#    ifdef DL_LAZY
18293#      define LT_DLLAZY_OR_NOW		DL_LAZY
18294#    else
18295#      ifdef RTLD_NOW
18296#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18297#      else
18298#        ifdef DL_NOW
18299#          define LT_DLLAZY_OR_NOW	DL_NOW
18300#        else
18301#          define LT_DLLAZY_OR_NOW	0
18302#        endif
18303#      endif
18304#    endif
18305#  endif
18306#endif
18307
18308#ifdef __cplusplus
18309extern "C" void exit (int);
18310#endif
18311
18312void fnord() { int i=42;}
18313int main ()
18314{
18315  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18316  int status = $lt_dlunknown;
18317
18318  if (self)
18319    {
18320      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18321      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18322      /* dlclose (self); */
18323    }
18324
18325    exit (status);
18326}
18327EOF
18328  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329  (eval $ac_link) 2>&5
18330  ac_status=$?
18331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18333    (./conftest; exit; ) 2>/dev/null
18334    lt_status=$?
18335    case x$lt_status in
18336      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18337      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18338      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18339    esac
18340  else :
18341    # compilation failed
18342    lt_cv_dlopen_self_static=no
18343  fi
18344fi
18345rm -fr conftest*
18346
18347
18348fi
18349echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18350echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18351    fi
18352
18353    CPPFLAGS="$save_CPPFLAGS"
18354    LDFLAGS="$save_LDFLAGS"
18355    LIBS="$save_LIBS"
18356    ;;
18357  esac
18358
18359  case $lt_cv_dlopen_self in
18360  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18361  *) enable_dlopen_self=unknown ;;
18362  esac
18363
18364  case $lt_cv_dlopen_self_static in
18365  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18366  *) enable_dlopen_self_static=unknown ;;
18367  esac
18368fi
18369
18370
18371# The else clause should only fire when bootstrapping the
18372# libtool distribution, otherwise you forgot to ship ltmain.sh
18373# with your package, and you will get complaints that there are
18374# no rules to generate ltmain.sh.
18375if test -f "$ltmain"; then
18376  # See if we are running on zsh, and set the options which allow our commands through
18377  # without removal of \ escapes.
18378  if test -n "${ZSH_VERSION+set}" ; then
18379    setopt NO_GLOB_SUBST
18380  fi
18381  # Now quote all the things that may contain metacharacters while being
18382  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18383  # variables and quote the copies for generation of the libtool script.
18384  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18385    SED SHELL STRIP \
18386    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18387    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18388    deplibs_check_method reload_flag reload_cmds need_locks \
18389    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18390    lt_cv_sys_global_symbol_to_c_name_address \
18391    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18392    old_postinstall_cmds old_postuninstall_cmds \
18393    compiler_GCJ \
18394    CC_GCJ \
18395    LD_GCJ \
18396    lt_prog_compiler_wl_GCJ \
18397    lt_prog_compiler_pic_GCJ \
18398    lt_prog_compiler_static_GCJ \
18399    lt_prog_compiler_no_builtin_flag_GCJ \
18400    export_dynamic_flag_spec_GCJ \
18401    thread_safe_flag_spec_GCJ \
18402    whole_archive_flag_spec_GCJ \
18403    enable_shared_with_static_runtimes_GCJ \
18404    old_archive_cmds_GCJ \
18405    old_archive_from_new_cmds_GCJ \
18406    predep_objects_GCJ \
18407    postdep_objects_GCJ \
18408    predeps_GCJ \
18409    postdeps_GCJ \
18410    compiler_lib_search_path_GCJ \
18411    archive_cmds_GCJ \
18412    archive_expsym_cmds_GCJ \
18413    postinstall_cmds_GCJ \
18414    postuninstall_cmds_GCJ \
18415    old_archive_from_expsyms_cmds_GCJ \
18416    allow_undefined_flag_GCJ \
18417    no_undefined_flag_GCJ \
18418    export_symbols_cmds_GCJ \
18419    hardcode_libdir_flag_spec_GCJ \
18420    hardcode_libdir_flag_spec_ld_GCJ \
18421    hardcode_libdir_separator_GCJ \
18422    hardcode_automatic_GCJ \
18423    module_cmds_GCJ \
18424    module_expsym_cmds_GCJ \
18425    lt_cv_prog_compiler_c_o_GCJ \
18426    exclude_expsyms_GCJ \
18427    include_expsyms_GCJ; do
18428
18429    case $var in
18430    old_archive_cmds_GCJ | \
18431    old_archive_from_new_cmds_GCJ | \
18432    archive_cmds_GCJ | \
18433    archive_expsym_cmds_GCJ | \
18434    module_cmds_GCJ | \
18435    module_expsym_cmds_GCJ | \
18436    old_archive_from_expsyms_cmds_GCJ | \
18437    export_symbols_cmds_GCJ | \
18438    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18439    postinstall_cmds | postuninstall_cmds | \
18440    old_postinstall_cmds | old_postuninstall_cmds | \
18441    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18442      # Double-quote double-evaled strings.
18443      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18444      ;;
18445    *)
18446      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18447      ;;
18448    esac
18449  done
18450
18451  case $lt_echo in
18452  *'\$0 --fallback-echo"')
18453    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18454    ;;
18455  esac
18456
18457cfgfile="$ofile"
18458
18459  cat <<__EOF__ >> "$cfgfile"
18460# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18461
18462# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18463
18464# Shell to use when invoking shell scripts.
18465SHELL=$lt_SHELL
18466
18467# Whether or not to build shared libraries.
18468build_libtool_libs=$enable_shared
18469
18470# Whether or not to build static libraries.
18471build_old_libs=$enable_static
18472
18473# Whether or not to add -lc for building shared libraries.
18474build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18475
18476# Whether or not to disallow shared libs when runtime libs are static
18477allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18478
18479# Whether or not to optimize for fast installation.
18480fast_install=$enable_fast_install
18481
18482# The host system.
18483host_alias=$host_alias
18484host=$host
18485
18486# An echo program that does not interpret backslashes.
18487echo=$lt_echo
18488
18489# The archiver.
18490AR=$lt_AR
18491AR_FLAGS=$lt_AR_FLAGS
18492
18493# A C compiler.
18494LTCC=$lt_LTCC
18495
18496# A language-specific compiler.
18497CC=$lt_compiler_GCJ
18498
18499# Is the compiler the GNU C compiler?
18500with_gcc=$GCC_GCJ
18501
18502# An ERE matcher.
18503EGREP=$lt_EGREP
18504
18505# The linker used to build libraries.
18506LD=$lt_LD_GCJ
18507
18508# Whether we need hard or soft links.
18509LN_S=$lt_LN_S
18510
18511# A BSD-compatible nm program.
18512NM=$lt_NM
18513
18514# A symbol stripping program
18515STRIP=$lt_STRIP
18516
18517# Used to examine libraries when file_magic_cmd begins "file"
18518MAGIC_CMD=$MAGIC_CMD
18519
18520# Used on cygwin: DLL creation program.
18521DLLTOOL="$DLLTOOL"
18522
18523# Used on cygwin: object dumper.
18524OBJDUMP="$OBJDUMP"
18525
18526# Used on cygwin: assembler.
18527AS="$AS"
18528
18529# The name of the directory that contains temporary libtool files.
18530objdir=$objdir
18531
18532# How to create reloadable object files.
18533reload_flag=$lt_reload_flag
18534reload_cmds=$lt_reload_cmds
18535
18536# How to pass a linker flag through the compiler.
18537wl=$lt_lt_prog_compiler_wl_GCJ
18538
18539# Object file suffix (normally "o").
18540objext="$ac_objext"
18541
18542# Old archive suffix (normally "a").
18543libext="$libext"
18544
18545# Shared library suffix (normally ".so").
18546shrext_cmds='$shrext_cmds'
18547
18548# Executable file suffix (normally "").
18549exeext="$exeext"
18550
18551# Additional compiler flags for building library objects.
18552pic_flag=$lt_lt_prog_compiler_pic_GCJ
18553pic_mode=$pic_mode
18554
18555# What is the maximum length of a command?
18556max_cmd_len=$lt_cv_sys_max_cmd_len
18557
18558# Does compiler simultaneously support -c and -o options?
18559compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18560
18561# Must we lock files when doing compilation ?
18562need_locks=$lt_need_locks
18563
18564# Do we need the lib prefix for modules?
18565need_lib_prefix=$need_lib_prefix
18566
18567# Do we need a version for libraries?
18568need_version=$need_version
18569
18570# Whether dlopen is supported.
18571dlopen_support=$enable_dlopen
18572
18573# Whether dlopen of programs is supported.
18574dlopen_self=$enable_dlopen_self
18575
18576# Whether dlopen of statically linked programs is supported.
18577dlopen_self_static=$enable_dlopen_self_static
18578
18579# Compiler flag to prevent dynamic linking.
18580link_static_flag=$lt_lt_prog_compiler_static_GCJ
18581
18582# Compiler flag to turn off builtin functions.
18583no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18584
18585# Compiler flag to allow reflexive dlopens.
18586export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18587
18588# Compiler flag to generate shared objects directly from archives.
18589whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18590
18591# Compiler flag to generate thread-safe objects.
18592thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18593
18594# Library versioning type.
18595version_type=$version_type
18596
18597# Format of library name prefix.
18598libname_spec=$lt_libname_spec
18599
18600# List of archive names.  First name is the real one, the rest are links.
18601# The last name is the one that the linker finds with -lNAME.
18602library_names_spec=$lt_library_names_spec
18603
18604# The coded name of the library, if different from the real name.
18605soname_spec=$lt_soname_spec
18606
18607# Commands used to build and install an old-style archive.
18608RANLIB=$lt_RANLIB
18609old_archive_cmds=$lt_old_archive_cmds_GCJ
18610old_postinstall_cmds=$lt_old_postinstall_cmds
18611old_postuninstall_cmds=$lt_old_postuninstall_cmds
18612
18613# Create an old-style archive from a shared archive.
18614old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18615
18616# Create a temporary old-style archive to link instead of a shared archive.
18617old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18618
18619# Commands used to build and install a shared archive.
18620archive_cmds=$lt_archive_cmds_GCJ
18621archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18622postinstall_cmds=$lt_postinstall_cmds
18623postuninstall_cmds=$lt_postuninstall_cmds
18624
18625# Commands used to build a loadable module (assumed same as above if empty)
18626module_cmds=$lt_module_cmds_GCJ
18627module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18628
18629# Commands to strip libraries.
18630old_striplib=$lt_old_striplib
18631striplib=$lt_striplib
18632
18633# Dependencies to place before the objects being linked to create a
18634# shared library.
18635predep_objects=$lt_predep_objects_GCJ
18636
18637# Dependencies to place after the objects being linked to create a
18638# shared library.
18639postdep_objects=$lt_postdep_objects_GCJ
18640
18641# Dependencies to place before the objects being linked to create a
18642# shared library.
18643predeps=$lt_predeps_GCJ
18644
18645# Dependencies to place after the objects being linked to create a
18646# shared library.
18647postdeps=$lt_postdeps_GCJ
18648
18649# The library search path used internally by the compiler when linking
18650# a shared library.
18651compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18652
18653# Method to check whether dependent libraries are shared objects.
18654deplibs_check_method=$lt_deplibs_check_method
18655
18656# Command to use when deplibs_check_method == file_magic.
18657file_magic_cmd=$lt_file_magic_cmd
18658
18659# Flag that allows shared libraries with undefined symbols to be built.
18660allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18661
18662# Flag that forces no undefined symbols.
18663no_undefined_flag=$lt_no_undefined_flag_GCJ
18664
18665# Commands used to finish a libtool library installation in a directory.
18666finish_cmds=$lt_finish_cmds
18667
18668# Same as above, but a single script fragment to be evaled but not shown.
18669finish_eval=$lt_finish_eval
18670
18671# Take the output of nm and produce a listing of raw symbols and C names.
18672global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18673
18674# Transform the output of nm in a proper C declaration
18675global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18676
18677# Transform the output of nm in a C name address pair
18678global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18679
18680# This is the shared library runtime path variable.
18681runpath_var=$runpath_var
18682
18683# This is the shared library path variable.
18684shlibpath_var=$shlibpath_var
18685
18686# Is shlibpath searched before the hard-coded library search path?
18687shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18688
18689# How to hardcode a shared library path into an executable.
18690hardcode_action=$hardcode_action_GCJ
18691
18692# Whether we should hardcode library paths into libraries.
18693hardcode_into_libs=$hardcode_into_libs
18694
18695# Flag to hardcode \$libdir into a binary during linking.
18696# This must work even if \$libdir does not exist.
18697hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18698
18699# If ld is used when linking, flag to hardcode \$libdir into
18700# a binary during linking. This must work even if \$libdir does
18701# not exist.
18702hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18703
18704# Whether we need a single -rpath flag with a separated argument.
18705hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18706
18707# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18708# resulting binary.
18709hardcode_direct=$hardcode_direct_GCJ
18710
18711# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18712# resulting binary.
18713hardcode_minus_L=$hardcode_minus_L_GCJ
18714
18715# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18716# the resulting binary.
18717hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18718
18719# Set to yes if building a shared library automatically hardcodes DIR into the library
18720# and all subsequent libraries and executables linked against it.
18721hardcode_automatic=$hardcode_automatic_GCJ
18722
18723# Variables whose values should be saved in libtool wrapper scripts and
18724# restored at relink time.
18725variables_saved_for_relink="$variables_saved_for_relink"
18726
18727# Whether libtool must link a program against all its dependency libraries.
18728link_all_deplibs=$link_all_deplibs_GCJ
18729
18730# Compile-time system search path for libraries
18731sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18732
18733# Run-time system search path for libraries
18734sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18735
18736# Fix the shell variable \$srcfile for the compiler.
18737fix_srcfile_path="$fix_srcfile_path_GCJ"
18738
18739# Set to yes if exported symbols are required.
18740always_export_symbols=$always_export_symbols_GCJ
18741
18742# The commands to list exported symbols.
18743export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18744
18745# The commands to extract the exported symbol list from a shared archive.
18746extract_expsyms_cmds=$lt_extract_expsyms_cmds
18747
18748# Symbols that should not be listed in the preloaded symbols.
18749exclude_expsyms=$lt_exclude_expsyms_GCJ
18750
18751# Symbols that must always be exported.
18752include_expsyms=$lt_include_expsyms_GCJ
18753
18754# ### END LIBTOOL TAG CONFIG: $tagname
18755
18756__EOF__
18757
18758
18759else
18760  # If there is no Makefile yet, we rely on a make rule to execute
18761  # `config.status --recheck' to rerun these tests and create the
18762  # libtool script then.
18763  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18764  if test -f "$ltmain_in"; then
18765    test -f Makefile && make "$ltmain"
18766  fi
18767fi
18768
18769
18770ac_ext=c
18771ac_cpp='$CPP $CPPFLAGS'
18772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18774ac_compiler_gnu=$ac_cv_c_compiler_gnu
18775
18776CC="$lt_save_CC"
18777
18778	else
18779	  tagname=""
18780	fi
18781	;;
18782
18783      RC)
18784
18785
18786
18787# Source file extension for RC test sources.
18788ac_ext=rc
18789
18790# Object file extension for compiled RC test sources.
18791objext=o
18792objext_RC=$objext
18793
18794# Code to be used in simple compile tests
18795lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18796
18797# Code to be used in simple link tests
18798lt_simple_link_test_code="$lt_simple_compile_test_code"
18799
18800# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18801
18802# If no C compiler was specified, use CC.
18803LTCC=${LTCC-"$CC"}
18804
18805# Allow CC to be a program name with arguments.
18806compiler=$CC
18807
18808
18809# Allow CC to be a program name with arguments.
18810lt_save_CC="$CC"
18811CC=${RC-"windres"}
18812compiler=$CC
18813compiler_RC=$CC
18814lt_cv_prog_compiler_c_o_RC=yes
18815
18816# The else clause should only fire when bootstrapping the
18817# libtool distribution, otherwise you forgot to ship ltmain.sh
18818# with your package, and you will get complaints that there are
18819# no rules to generate ltmain.sh.
18820if test -f "$ltmain"; then
18821  # See if we are running on zsh, and set the options which allow our commands through
18822  # without removal of \ escapes.
18823  if test -n "${ZSH_VERSION+set}" ; then
18824    setopt NO_GLOB_SUBST
18825  fi
18826  # Now quote all the things that may contain metacharacters while being
18827  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18828  # variables and quote the copies for generation of the libtool script.
18829  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18830    SED SHELL STRIP \
18831    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18832    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18833    deplibs_check_method reload_flag reload_cmds need_locks \
18834    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18835    lt_cv_sys_global_symbol_to_c_name_address \
18836    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18837    old_postinstall_cmds old_postuninstall_cmds \
18838    compiler_RC \
18839    CC_RC \
18840    LD_RC \
18841    lt_prog_compiler_wl_RC \
18842    lt_prog_compiler_pic_RC \
18843    lt_prog_compiler_static_RC \
18844    lt_prog_compiler_no_builtin_flag_RC \
18845    export_dynamic_flag_spec_RC \
18846    thread_safe_flag_spec_RC \
18847    whole_archive_flag_spec_RC \
18848    enable_shared_with_static_runtimes_RC \
18849    old_archive_cmds_RC \
18850    old_archive_from_new_cmds_RC \
18851    predep_objects_RC \
18852    postdep_objects_RC \
18853    predeps_RC \
18854    postdeps_RC \
18855    compiler_lib_search_path_RC \
18856    archive_cmds_RC \
18857    archive_expsym_cmds_RC \
18858    postinstall_cmds_RC \
18859    postuninstall_cmds_RC \
18860    old_archive_from_expsyms_cmds_RC \
18861    allow_undefined_flag_RC \
18862    no_undefined_flag_RC \
18863    export_symbols_cmds_RC \
18864    hardcode_libdir_flag_spec_RC \
18865    hardcode_libdir_flag_spec_ld_RC \
18866    hardcode_libdir_separator_RC \
18867    hardcode_automatic_RC \
18868    module_cmds_RC \
18869    module_expsym_cmds_RC \
18870    lt_cv_prog_compiler_c_o_RC \
18871    exclude_expsyms_RC \
18872    include_expsyms_RC; do
18873
18874    case $var in
18875    old_archive_cmds_RC | \
18876    old_archive_from_new_cmds_RC | \
18877    archive_cmds_RC | \
18878    archive_expsym_cmds_RC | \
18879    module_cmds_RC | \
18880    module_expsym_cmds_RC | \
18881    old_archive_from_expsyms_cmds_RC | \
18882    export_symbols_cmds_RC | \
18883    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18884    postinstall_cmds | postuninstall_cmds | \
18885    old_postinstall_cmds | old_postuninstall_cmds | \
18886    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18887      # Double-quote double-evaled strings.
18888      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18889      ;;
18890    *)
18891      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18892      ;;
18893    esac
18894  done
18895
18896  case $lt_echo in
18897  *'\$0 --fallback-echo"')
18898    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18899    ;;
18900  esac
18901
18902cfgfile="$ofile"
18903
18904  cat <<__EOF__ >> "$cfgfile"
18905# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18906
18907# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18908
18909# Shell to use when invoking shell scripts.
18910SHELL=$lt_SHELL
18911
18912# Whether or not to build shared libraries.
18913build_libtool_libs=$enable_shared
18914
18915# Whether or not to build static libraries.
18916build_old_libs=$enable_static
18917
18918# Whether or not to add -lc for building shared libraries.
18919build_libtool_need_lc=$archive_cmds_need_lc_RC
18920
18921# Whether or not to disallow shared libs when runtime libs are static
18922allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18923
18924# Whether or not to optimize for fast installation.
18925fast_install=$enable_fast_install
18926
18927# The host system.
18928host_alias=$host_alias
18929host=$host
18930
18931# An echo program that does not interpret backslashes.
18932echo=$lt_echo
18933
18934# The archiver.
18935AR=$lt_AR
18936AR_FLAGS=$lt_AR_FLAGS
18937
18938# A C compiler.
18939LTCC=$lt_LTCC
18940
18941# A language-specific compiler.
18942CC=$lt_compiler_RC
18943
18944# Is the compiler the GNU C compiler?
18945with_gcc=$GCC_RC
18946
18947# An ERE matcher.
18948EGREP=$lt_EGREP
18949
18950# The linker used to build libraries.
18951LD=$lt_LD_RC
18952
18953# Whether we need hard or soft links.
18954LN_S=$lt_LN_S
18955
18956# A BSD-compatible nm program.
18957NM=$lt_NM
18958
18959# A symbol stripping program
18960STRIP=$lt_STRIP
18961
18962# Used to examine libraries when file_magic_cmd begins "file"
18963MAGIC_CMD=$MAGIC_CMD
18964
18965# Used on cygwin: DLL creation program.
18966DLLTOOL="$DLLTOOL"
18967
18968# Used on cygwin: object dumper.
18969OBJDUMP="$OBJDUMP"
18970
18971# Used on cygwin: assembler.
18972AS="$AS"
18973
18974# The name of the directory that contains temporary libtool files.
18975objdir=$objdir
18976
18977# How to create reloadable object files.
18978reload_flag=$lt_reload_flag
18979reload_cmds=$lt_reload_cmds
18980
18981# How to pass a linker flag through the compiler.
18982wl=$lt_lt_prog_compiler_wl_RC
18983
18984# Object file suffix (normally "o").
18985objext="$ac_objext"
18986
18987# Old archive suffix (normally "a").
18988libext="$libext"
18989
18990# Shared library suffix (normally ".so").
18991shrext_cmds='$shrext_cmds'
18992
18993# Executable file suffix (normally "").
18994exeext="$exeext"
18995
18996# Additional compiler flags for building library objects.
18997pic_flag=$lt_lt_prog_compiler_pic_RC
18998pic_mode=$pic_mode
18999
19000# What is the maximum length of a command?
19001max_cmd_len=$lt_cv_sys_max_cmd_len
19002
19003# Does compiler simultaneously support -c and -o options?
19004compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19005
19006# Must we lock files when doing compilation ?
19007need_locks=$lt_need_locks
19008
19009# Do we need the lib prefix for modules?
19010need_lib_prefix=$need_lib_prefix
19011
19012# Do we need a version for libraries?
19013need_version=$need_version
19014
19015# Whether dlopen is supported.
19016dlopen_support=$enable_dlopen
19017
19018# Whether dlopen of programs is supported.
19019dlopen_self=$enable_dlopen_self
19020
19021# Whether dlopen of statically linked programs is supported.
19022dlopen_self_static=$enable_dlopen_self_static
19023
19024# Compiler flag to prevent dynamic linking.
19025link_static_flag=$lt_lt_prog_compiler_static_RC
19026
19027# Compiler flag to turn off builtin functions.
19028no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19029
19030# Compiler flag to allow reflexive dlopens.
19031export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19032
19033# Compiler flag to generate shared objects directly from archives.
19034whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19035
19036# Compiler flag to generate thread-safe objects.
19037thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19038
19039# Library versioning type.
19040version_type=$version_type
19041
19042# Format of library name prefix.
19043libname_spec=$lt_libname_spec
19044
19045# List of archive names.  First name is the real one, the rest are links.
19046# The last name is the one that the linker finds with -lNAME.
19047library_names_spec=$lt_library_names_spec
19048
19049# The coded name of the library, if different from the real name.
19050soname_spec=$lt_soname_spec
19051
19052# Commands used to build and install an old-style archive.
19053RANLIB=$lt_RANLIB
19054old_archive_cmds=$lt_old_archive_cmds_RC
19055old_postinstall_cmds=$lt_old_postinstall_cmds
19056old_postuninstall_cmds=$lt_old_postuninstall_cmds
19057
19058# Create an old-style archive from a shared archive.
19059old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19060
19061# Create a temporary old-style archive to link instead of a shared archive.
19062old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19063
19064# Commands used to build and install a shared archive.
19065archive_cmds=$lt_archive_cmds_RC
19066archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19067postinstall_cmds=$lt_postinstall_cmds
19068postuninstall_cmds=$lt_postuninstall_cmds
19069
19070# Commands used to build a loadable module (assumed same as above if empty)
19071module_cmds=$lt_module_cmds_RC
19072module_expsym_cmds=$lt_module_expsym_cmds_RC
19073
19074# Commands to strip libraries.
19075old_striplib=$lt_old_striplib
19076striplib=$lt_striplib
19077
19078# Dependencies to place before the objects being linked to create a
19079# shared library.
19080predep_objects=$lt_predep_objects_RC
19081
19082# Dependencies to place after the objects being linked to create a
19083# shared library.
19084postdep_objects=$lt_postdep_objects_RC
19085
19086# Dependencies to place before the objects being linked to create a
19087# shared library.
19088predeps=$lt_predeps_RC
19089
19090# Dependencies to place after the objects being linked to create a
19091# shared library.
19092postdeps=$lt_postdeps_RC
19093
19094# The library search path used internally by the compiler when linking
19095# a shared library.
19096compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19097
19098# Method to check whether dependent libraries are shared objects.
19099deplibs_check_method=$lt_deplibs_check_method
19100
19101# Command to use when deplibs_check_method == file_magic.
19102file_magic_cmd=$lt_file_magic_cmd
19103
19104# Flag that allows shared libraries with undefined symbols to be built.
19105allow_undefined_flag=$lt_allow_undefined_flag_RC
19106
19107# Flag that forces no undefined symbols.
19108no_undefined_flag=$lt_no_undefined_flag_RC
19109
19110# Commands used to finish a libtool library installation in a directory.
19111finish_cmds=$lt_finish_cmds
19112
19113# Same as above, but a single script fragment to be evaled but not shown.
19114finish_eval=$lt_finish_eval
19115
19116# Take the output of nm and produce a listing of raw symbols and C names.
19117global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19118
19119# Transform the output of nm in a proper C declaration
19120global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19121
19122# Transform the output of nm in a C name address pair
19123global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19124
19125# This is the shared library runtime path variable.
19126runpath_var=$runpath_var
19127
19128# This is the shared library path variable.
19129shlibpath_var=$shlibpath_var
19130
19131# Is shlibpath searched before the hard-coded library search path?
19132shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19133
19134# How to hardcode a shared library path into an executable.
19135hardcode_action=$hardcode_action_RC
19136
19137# Whether we should hardcode library paths into libraries.
19138hardcode_into_libs=$hardcode_into_libs
19139
19140# Flag to hardcode \$libdir into a binary during linking.
19141# This must work even if \$libdir does not exist.
19142hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19143
19144# If ld is used when linking, flag to hardcode \$libdir into
19145# a binary during linking. This must work even if \$libdir does
19146# not exist.
19147hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19148
19149# Whether we need a single -rpath flag with a separated argument.
19150hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19151
19152# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19153# resulting binary.
19154hardcode_direct=$hardcode_direct_RC
19155
19156# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19157# resulting binary.
19158hardcode_minus_L=$hardcode_minus_L_RC
19159
19160# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19161# the resulting binary.
19162hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19163
19164# Set to yes if building a shared library automatically hardcodes DIR into the library
19165# and all subsequent libraries and executables linked against it.
19166hardcode_automatic=$hardcode_automatic_RC
19167
19168# Variables whose values should be saved in libtool wrapper scripts and
19169# restored at relink time.
19170variables_saved_for_relink="$variables_saved_for_relink"
19171
19172# Whether libtool must link a program against all its dependency libraries.
19173link_all_deplibs=$link_all_deplibs_RC
19174
19175# Compile-time system search path for libraries
19176sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19177
19178# Run-time system search path for libraries
19179sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19180
19181# Fix the shell variable \$srcfile for the compiler.
19182fix_srcfile_path="$fix_srcfile_path_RC"
19183
19184# Set to yes if exported symbols are required.
19185always_export_symbols=$always_export_symbols_RC
19186
19187# The commands to list exported symbols.
19188export_symbols_cmds=$lt_export_symbols_cmds_RC
19189
19190# The commands to extract the exported symbol list from a shared archive.
19191extract_expsyms_cmds=$lt_extract_expsyms_cmds
19192
19193# Symbols that should not be listed in the preloaded symbols.
19194exclude_expsyms=$lt_exclude_expsyms_RC
19195
19196# Symbols that must always be exported.
19197include_expsyms=$lt_include_expsyms_RC
19198
19199# ### END LIBTOOL TAG CONFIG: $tagname
19200
19201__EOF__
19202
19203
19204else
19205  # If there is no Makefile yet, we rely on a make rule to execute
19206  # `config.status --recheck' to rerun these tests and create the
19207  # libtool script then.
19208  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19209  if test -f "$ltmain_in"; then
19210    test -f Makefile && make "$ltmain"
19211  fi
19212fi
19213
19214
19215ac_ext=c
19216ac_cpp='$CPP $CPPFLAGS'
19217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19219ac_compiler_gnu=$ac_cv_c_compiler_gnu
19220
19221CC="$lt_save_CC"
19222
19223	;;
19224
19225      *)
19226	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19227echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19228   { (exit 1); exit 1; }; }
19229	;;
19230      esac
19231
19232      # Append the new tag name to the list of available tags.
19233      if test -n "$tagname" ; then
19234      available_tags="$available_tags $tagname"
19235    fi
19236    fi
19237  done
19238  IFS="$lt_save_ifs"
19239
19240  # Now substitute the updated list of available tags.
19241  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19242    mv "${ofile}T" "$ofile"
19243    chmod +x "$ofile"
19244  else
19245    rm -f "${ofile}T"
19246    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19247echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19248   { (exit 1); exit 1; }; }
19249  fi
19250fi
19251
19252
19253
19254# This can be used to rebuild libtool when needed
19255LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19256
19257# Always use our own libtool.
19258LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19259
19260# Prevent multiple expansion
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19283echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19284if test "${ac_cv_header_stdc+set}" = set; then
19285  echo $ECHO_N "(cached) $ECHO_C" >&6
19286else
19287  cat >conftest.$ac_ext <<_ACEOF
19288/* confdefs.h.  */
19289_ACEOF
19290cat confdefs.h >>conftest.$ac_ext
19291cat >>conftest.$ac_ext <<_ACEOF
19292/* end confdefs.h.  */
19293#include <stdlib.h>
19294#include <stdarg.h>
19295#include <string.h>
19296#include <float.h>
19297
19298int
19299main ()
19300{
19301
19302  ;
19303  return 0;
19304}
19305_ACEOF
19306rm -f conftest.$ac_objext
19307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19308  (eval $ac_compile) 2>conftest.er1
19309  ac_status=$?
19310  grep -v '^ *+' conftest.er1 >conftest.err
19311  rm -f conftest.er1
19312  cat conftest.err >&5
19313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314  (exit $ac_status); } &&
19315	 { ac_try='test -z "$ac_c_werror_flag"
19316			 || test ! -s conftest.err'
19317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318  (eval $ac_try) 2>&5
19319  ac_status=$?
19320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321  (exit $ac_status); }; } &&
19322	 { ac_try='test -s conftest.$ac_objext'
19323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324  (eval $ac_try) 2>&5
19325  ac_status=$?
19326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327  (exit $ac_status); }; }; then
19328  ac_cv_header_stdc=yes
19329else
19330  echo "$as_me: failed program was:" >&5
19331sed 's/^/| /' conftest.$ac_ext >&5
19332
19333ac_cv_header_stdc=no
19334fi
19335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19336
19337if test $ac_cv_header_stdc = yes; then
19338  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19339  cat >conftest.$ac_ext <<_ACEOF
19340/* confdefs.h.  */
19341_ACEOF
19342cat confdefs.h >>conftest.$ac_ext
19343cat >>conftest.$ac_ext <<_ACEOF
19344/* end confdefs.h.  */
19345#include <string.h>
19346
19347_ACEOF
19348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19349  $EGREP "memchr" >/dev/null 2>&1; then
19350  :
19351else
19352  ac_cv_header_stdc=no
19353fi
19354rm -f conftest*
19355
19356fi
19357
19358if test $ac_cv_header_stdc = yes; then
19359  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19360  cat >conftest.$ac_ext <<_ACEOF
19361/* confdefs.h.  */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h.  */
19366#include <stdlib.h>
19367
19368_ACEOF
19369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19370  $EGREP "free" >/dev/null 2>&1; then
19371  :
19372else
19373  ac_cv_header_stdc=no
19374fi
19375rm -f conftest*
19376
19377fi
19378
19379if test $ac_cv_header_stdc = yes; then
19380  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19381  if test "$cross_compiling" = yes; then
19382  :
19383else
19384  cat >conftest.$ac_ext <<_ACEOF
19385/* confdefs.h.  */
19386_ACEOF
19387cat confdefs.h >>conftest.$ac_ext
19388cat >>conftest.$ac_ext <<_ACEOF
19389/* end confdefs.h.  */
19390#include <ctype.h>
19391#if ((' ' & 0x0FF) == 0x020)
19392# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19393# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19394#else
19395# define ISLOWER(c) \
19396		   (('a' <= (c) && (c) <= 'i') \
19397		     || ('j' <= (c) && (c) <= 'r') \
19398		     || ('s' <= (c) && (c) <= 'z'))
19399# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19400#endif
19401
19402#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19403int
19404main ()
19405{
19406  int i;
19407  for (i = 0; i < 256; i++)
19408    if (XOR (islower (i), ISLOWER (i))
19409	|| toupper (i) != TOUPPER (i))
19410      exit(2);
19411  exit (0);
19412}
19413_ACEOF
19414rm -f conftest$ac_exeext
19415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416  (eval $ac_link) 2>&5
19417  ac_status=$?
19418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421  (eval $ac_try) 2>&5
19422  ac_status=$?
19423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424  (exit $ac_status); }; }; then
19425  :
19426else
19427  echo "$as_me: program exited with status $ac_status" >&5
19428echo "$as_me: failed program was:" >&5
19429sed 's/^/| /' conftest.$ac_ext >&5
19430
19431( exit $ac_status )
19432ac_cv_header_stdc=no
19433fi
19434rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19435fi
19436fi
19437fi
19438echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19439echo "${ECHO_T}$ac_cv_header_stdc" >&6
19440if test $ac_cv_header_stdc = yes; then
19441
19442cat >>confdefs.h <<\_ACEOF
19443#define STDC_HEADERS 1
19444_ACEOF
19445
19446fi
19447
19448
19449for ac_header in stdbool.h
19450do
19451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19452if eval "test \"\${$as_ac_Header+set}\" = set"; then
19453  echo "$as_me:$LINENO: checking for $ac_header" >&5
19454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19455if eval "test \"\${$as_ac_Header+set}\" = set"; then
19456  echo $ECHO_N "(cached) $ECHO_C" >&6
19457fi
19458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19460else
19461  # Is the header compilable?
19462echo "$as_me:$LINENO: checking $ac_header usability" >&5
19463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19464cat >conftest.$ac_ext <<_ACEOF
19465/* confdefs.h.  */
19466_ACEOF
19467cat confdefs.h >>conftest.$ac_ext
19468cat >>conftest.$ac_ext <<_ACEOF
19469/* end confdefs.h.  */
19470$ac_includes_default
19471#include <$ac_header>
19472_ACEOF
19473rm -f conftest.$ac_objext
19474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19475  (eval $ac_compile) 2>conftest.er1
19476  ac_status=$?
19477  grep -v '^ *+' conftest.er1 >conftest.err
19478  rm -f conftest.er1
19479  cat conftest.err >&5
19480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481  (exit $ac_status); } &&
19482	 { ac_try='test -z "$ac_c_werror_flag"
19483			 || test ! -s conftest.err'
19484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485  (eval $ac_try) 2>&5
19486  ac_status=$?
19487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488  (exit $ac_status); }; } &&
19489	 { ac_try='test -s conftest.$ac_objext'
19490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491  (eval $ac_try) 2>&5
19492  ac_status=$?
19493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494  (exit $ac_status); }; }; then
19495  ac_header_compiler=yes
19496else
19497  echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500ac_header_compiler=no
19501fi
19502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19504echo "${ECHO_T}$ac_header_compiler" >&6
19505
19506# Is the header present?
19507echo "$as_me:$LINENO: checking $ac_header presence" >&5
19508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19509cat >conftest.$ac_ext <<_ACEOF
19510/* confdefs.h.  */
19511_ACEOF
19512cat confdefs.h >>conftest.$ac_ext
19513cat >>conftest.$ac_ext <<_ACEOF
19514/* end confdefs.h.  */
19515#include <$ac_header>
19516_ACEOF
19517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19518  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19519  ac_status=$?
19520  grep -v '^ *+' conftest.er1 >conftest.err
19521  rm -f conftest.er1
19522  cat conftest.err >&5
19523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524  (exit $ac_status); } >/dev/null; then
19525  if test -s conftest.err; then
19526    ac_cpp_err=$ac_c_preproc_warn_flag
19527    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19528  else
19529    ac_cpp_err=
19530  fi
19531else
19532  ac_cpp_err=yes
19533fi
19534if test -z "$ac_cpp_err"; then
19535  ac_header_preproc=yes
19536else
19537  echo "$as_me: failed program was:" >&5
19538sed 's/^/| /' conftest.$ac_ext >&5
19539
19540  ac_header_preproc=no
19541fi
19542rm -f conftest.err conftest.$ac_ext
19543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19544echo "${ECHO_T}$ac_header_preproc" >&6
19545
19546# So?  What about this header?
19547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19548  yes:no: )
19549    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19551    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19553    ac_header_preproc=yes
19554    ;;
19555  no:yes:* )
19556    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19558    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19559echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19560    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19562    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19563echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19564    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19566    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19568    (
19569      cat <<\_ASBOX
19570## ------------------------------------- ##
19571## Report this to the libsidplay lists.  ##
19572## ------------------------------------- ##
19573_ASBOX
19574    ) |
19575      sed "s/^/$as_me: WARNING:     /" >&2
19576    ;;
19577esac
19578echo "$as_me:$LINENO: checking for $ac_header" >&5
19579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19580if eval "test \"\${$as_ac_Header+set}\" = set"; then
19581  echo $ECHO_N "(cached) $ECHO_C" >&6
19582else
19583  eval "$as_ac_Header=\$ac_header_preproc"
19584fi
19585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19587
19588fi
19589if test `eval echo '${'$as_ac_Header'}'` = yes; then
19590  cat >>confdefs.h <<_ACEOF
19591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19592_ACEOF
19593
19594fi
19595
19596done
19597
19598if test "$ac_cv_header_stdbool_h" = yes; then
19599
19600    eval "SID_HAVE_STDBOOL_H=\"#define SID_HAVE_STDBOOL_H\""
19601
19602
19603else
19604
19605    eval "SID_HAVE_STDBOOL_H=\"#undef SID_HAVE_STDBOOL_H\""
19606
19607
19608fi
19609# ------ AC CREATE STDINT H -------------------------------------
19610echo "$as_me:$LINENO: checking for stdint-types...." >&5
19611echo $ECHO_N "checking for stdint-types....... $ECHO_C" >&6
19612ac_stdint_h=`echo unix/sidint.h`
19613if test "$ac_stdint_h" = "stdint.h" ; then
19614 echo "$as_me:$LINENO: result: \"(are you sure you want them in ./stdint.h?)\"" >&5
19615echo "${ECHO_T}\"(are you sure you want them in ./stdint.h?)\"" >&6
19616elif test "$ac_stdint_h" = "inttypes.h" ; then
19617 echo "$as_me:$LINENO: result: \"(are you sure you want them in ./inttypes.h?)\"" >&5
19618echo "${ECHO_T}\"(are you sure you want them in ./inttypes.h?)\"" >&6
19619else
19620 echo "$as_me:$LINENO: result: \"(putting them into $ac_stdint_h)\"" >&5
19621echo "${ECHO_T}\"(putting them into $ac_stdint_h)\"" >&6
19622fi
19623
19624inttype_headers=`echo inttypes.h sys/inttypes.h sys/inttypes.h  \
19625| sed -e 's/,/ /g'`
19626
19627 ac_cv_header_stdint_x="no-file"
19628 ac_cv_header_stdint_o="no-file"
19629 ac_cv_header_stdint_u="no-file"
19630 for i in stdint.h $inttype_headers ; do
19631   unset ac_cv_type_uintptr_t
19632   unset ac_cv_type_uint64_t
19633   echo "$as_me:$LINENO: checking for uintptr_t" >&5
19634echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
19635if test "${ac_cv_type_uintptr_t+set}" = set; then
19636  echo $ECHO_N "(cached) $ECHO_C" >&6
19637else
19638  cat >conftest.$ac_ext <<_ACEOF
19639/* confdefs.h.  */
19640_ACEOF
19641cat confdefs.h >>conftest.$ac_ext
19642cat >>conftest.$ac_ext <<_ACEOF
19643/* end confdefs.h.  */
19644#include <$i>
19645
19646int
19647main ()
19648{
19649if ((uintptr_t *) 0)
19650  return 0;
19651if (sizeof (uintptr_t))
19652  return 0;
19653  ;
19654  return 0;
19655}
19656_ACEOF
19657rm -f conftest.$ac_objext
19658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19659  (eval $ac_compile) 2>conftest.er1
19660  ac_status=$?
19661  grep -v '^ *+' conftest.er1 >conftest.err
19662  rm -f conftest.er1
19663  cat conftest.err >&5
19664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665  (exit $ac_status); } &&
19666	 { ac_try='test -z "$ac_c_werror_flag"
19667			 || test ! -s conftest.err'
19668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669  (eval $ac_try) 2>&5
19670  ac_status=$?
19671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672  (exit $ac_status); }; } &&
19673	 { ac_try='test -s conftest.$ac_objext'
19674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675  (eval $ac_try) 2>&5
19676  ac_status=$?
19677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678  (exit $ac_status); }; }; then
19679  ac_cv_type_uintptr_t=yes
19680else
19681  echo "$as_me: failed program was:" >&5
19682sed 's/^/| /' conftest.$ac_ext >&5
19683
19684ac_cv_type_uintptr_t=no
19685fi
19686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19687fi
19688echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
19689echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
19690if test $ac_cv_type_uintptr_t = yes; then
19691  ac_cv_header_stdint_x=$i
19692else
19693       continue
19694fi
19695
19696   echo "$as_me:$LINENO: checking for uint64_t" >&5
19697echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19698if test "${ac_cv_type_uint64_t+set}" = set; then
19699  echo $ECHO_N "(cached) $ECHO_C" >&6
19700else
19701  cat >conftest.$ac_ext <<_ACEOF
19702/* confdefs.h.  */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h.  */
19707#include<$i>
19708
19709int
19710main ()
19711{
19712if ((uint64_t *) 0)
19713  return 0;
19714if (sizeof (uint64_t))
19715  return 0;
19716  ;
19717  return 0;
19718}
19719_ACEOF
19720rm -f conftest.$ac_objext
19721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19722  (eval $ac_compile) 2>conftest.er1
19723  ac_status=$?
19724  grep -v '^ *+' conftest.er1 >conftest.err
19725  rm -f conftest.er1
19726  cat conftest.err >&5
19727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728  (exit $ac_status); } &&
19729	 { ac_try='test -z "$ac_c_werror_flag"
19730			 || test ! -s conftest.err'
19731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732  (eval $ac_try) 2>&5
19733  ac_status=$?
19734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735  (exit $ac_status); }; } &&
19736	 { ac_try='test -s conftest.$ac_objext'
19737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738  (eval $ac_try) 2>&5
19739  ac_status=$?
19740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741  (exit $ac_status); }; }; then
19742  ac_cv_type_uint64_t=yes
19743else
19744  echo "$as_me: failed program was:" >&5
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
19747ac_cv_type_uint64_t=no
19748fi
19749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19750fi
19751echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19752echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19753if test $ac_cv_type_uint64_t = yes; then
19754  and64="(uint64_t too)"
19755else
19756  and64=""
19757fi
19758
19759   echo "$as_me:$LINENO: result: ... seen our uintptr_t in $i $and64" >&5
19760echo "${ECHO_T}... seen our uintptr_t in $i $and64" >&6
19761   break;
19762 done
19763 if test "$ac_cv_header_stdint_x" = "no-file" ; then
19764 for i in stdint.h $inttype_headers ; do
19765   unset ac_cv_type_uint32_t
19766   unset ac_cv_type_uint64_t
19767   echo "$as_me:$LINENO: checking for uint32_t" >&5
19768echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
19769if test "${ac_cv_type_uint32_t+set}" = set; then
19770  echo $ECHO_N "(cached) $ECHO_C" >&6
19771else
19772  cat >conftest.$ac_ext <<_ACEOF
19773/* confdefs.h.  */
19774_ACEOF
19775cat confdefs.h >>conftest.$ac_ext
19776cat >>conftest.$ac_ext <<_ACEOF
19777/* end confdefs.h.  */
19778#include <$i>
19779
19780int
19781main ()
19782{
19783if ((uint32_t *) 0)
19784  return 0;
19785if (sizeof (uint32_t))
19786  return 0;
19787  ;
19788  return 0;
19789}
19790_ACEOF
19791rm -f conftest.$ac_objext
19792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19793  (eval $ac_compile) 2>conftest.er1
19794  ac_status=$?
19795  grep -v '^ *+' conftest.er1 >conftest.err
19796  rm -f conftest.er1
19797  cat conftest.err >&5
19798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799  (exit $ac_status); } &&
19800	 { ac_try='test -z "$ac_c_werror_flag"
19801			 || test ! -s conftest.err'
19802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803  (eval $ac_try) 2>&5
19804  ac_status=$?
19805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806  (exit $ac_status); }; } &&
19807	 { ac_try='test -s conftest.$ac_objext'
19808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809  (eval $ac_try) 2>&5
19810  ac_status=$?
19811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812  (exit $ac_status); }; }; then
19813  ac_cv_type_uint32_t=yes
19814else
19815  echo "$as_me: failed program was:" >&5
19816sed 's/^/| /' conftest.$ac_ext >&5
19817
19818ac_cv_type_uint32_t=no
19819fi
19820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19821fi
19822echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
19823echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
19824if test $ac_cv_type_uint32_t = yes; then
19825  ac_cv_header_stdint_o=$i
19826else
19827       continue
19828fi
19829
19830   echo "$as_me:$LINENO: checking for uint64_t" >&5
19831echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19832if test "${ac_cv_type_uint64_t+set}" = set; then
19833  echo $ECHO_N "(cached) $ECHO_C" >&6
19834else
19835  cat >conftest.$ac_ext <<_ACEOF
19836/* confdefs.h.  */
19837_ACEOF
19838cat confdefs.h >>conftest.$ac_ext
19839cat >>conftest.$ac_ext <<_ACEOF
19840/* end confdefs.h.  */
19841#include<$i>
19842
19843int
19844main ()
19845{
19846if ((uint64_t *) 0)
19847  return 0;
19848if (sizeof (uint64_t))
19849  return 0;
19850  ;
19851  return 0;
19852}
19853_ACEOF
19854rm -f conftest.$ac_objext
19855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19856  (eval $ac_compile) 2>conftest.er1
19857  ac_status=$?
19858  grep -v '^ *+' conftest.er1 >conftest.err
19859  rm -f conftest.er1
19860  cat conftest.err >&5
19861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862  (exit $ac_status); } &&
19863	 { ac_try='test -z "$ac_c_werror_flag"
19864			 || test ! -s conftest.err'
19865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866  (eval $ac_try) 2>&5
19867  ac_status=$?
19868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869  (exit $ac_status); }; } &&
19870	 { ac_try='test -s conftest.$ac_objext'
19871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872  (eval $ac_try) 2>&5
19873  ac_status=$?
19874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875  (exit $ac_status); }; }; then
19876  ac_cv_type_uint64_t=yes
19877else
19878  echo "$as_me: failed program was:" >&5
19879sed 's/^/| /' conftest.$ac_ext >&5
19880
19881ac_cv_type_uint64_t=no
19882fi
19883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19884fi
19885echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19886echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19887if test $ac_cv_type_uint64_t = yes; then
19888  and64="(uint64_t too)"
19889else
19890  and64=""
19891fi
19892
19893   echo "$as_me:$LINENO: result: ... seen our uint32_t in $i $and64" >&5
19894echo "${ECHO_T}... seen our uint32_t in $i $and64" >&6
19895   break;
19896 done
19897 if test "$ac_cv_header_stdint_o" = "no-file" ; then
19898 for i in sys/types.h $inttype_headers ; do
19899   unset ac_cv_type_u_int32_t
19900   unset ac_cv_type_u_int64_t
19901   echo "$as_me:$LINENO: checking for u_int32_t" >&5
19902echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
19903if test "${ac_cv_type_u_int32_t+set}" = set; then
19904  echo $ECHO_N "(cached) $ECHO_C" >&6
19905else
19906  cat >conftest.$ac_ext <<_ACEOF
19907/* confdefs.h.  */
19908_ACEOF
19909cat confdefs.h >>conftest.$ac_ext
19910cat >>conftest.$ac_ext <<_ACEOF
19911/* end confdefs.h.  */
19912#include <$i>
19913
19914int
19915main ()
19916{
19917if ((u_int32_t *) 0)
19918  return 0;
19919if (sizeof (u_int32_t))
19920  return 0;
19921  ;
19922  return 0;
19923}
19924_ACEOF
19925rm -f conftest.$ac_objext
19926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19927  (eval $ac_compile) 2>conftest.er1
19928  ac_status=$?
19929  grep -v '^ *+' conftest.er1 >conftest.err
19930  rm -f conftest.er1
19931  cat conftest.err >&5
19932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933  (exit $ac_status); } &&
19934	 { ac_try='test -z "$ac_c_werror_flag"
19935			 || test ! -s conftest.err'
19936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937  (eval $ac_try) 2>&5
19938  ac_status=$?
19939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940  (exit $ac_status); }; } &&
19941	 { ac_try='test -s conftest.$ac_objext'
19942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943  (eval $ac_try) 2>&5
19944  ac_status=$?
19945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946  (exit $ac_status); }; }; then
19947  ac_cv_type_u_int32_t=yes
19948else
19949  echo "$as_me: failed program was:" >&5
19950sed 's/^/| /' conftest.$ac_ext >&5
19951
19952ac_cv_type_u_int32_t=no
19953fi
19954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19955fi
19956echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
19957echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
19958if test $ac_cv_type_u_int32_t = yes; then
19959  ac_cv_header_stdint_u=$i
19960else
19961       continue
19962fi
19963
19964   echo "$as_me:$LINENO: checking for uint64_t" >&5
19965echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19966if test "${ac_cv_type_uint64_t+set}" = set; then
19967  echo $ECHO_N "(cached) $ECHO_C" >&6
19968else
19969  cat >conftest.$ac_ext <<_ACEOF
19970/* confdefs.h.  */
19971_ACEOF
19972cat confdefs.h >>conftest.$ac_ext
19973cat >>conftest.$ac_ext <<_ACEOF
19974/* end confdefs.h.  */
19975#include<$i>
19976
19977int
19978main ()
19979{
19980if ((uint64_t *) 0)
19981  return 0;
19982if (sizeof (uint64_t))
19983  return 0;
19984  ;
19985  return 0;
19986}
19987_ACEOF
19988rm -f conftest.$ac_objext
19989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19990  (eval $ac_compile) 2>conftest.er1
19991  ac_status=$?
19992  grep -v '^ *+' conftest.er1 >conftest.err
19993  rm -f conftest.er1
19994  cat conftest.err >&5
19995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996  (exit $ac_status); } &&
19997	 { ac_try='test -z "$ac_c_werror_flag"
19998			 || test ! -s conftest.err'
19999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000  (eval $ac_try) 2>&5
20001  ac_status=$?
20002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003  (exit $ac_status); }; } &&
20004	 { ac_try='test -s conftest.$ac_objext'
20005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006  (eval $ac_try) 2>&5
20007  ac_status=$?
20008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009  (exit $ac_status); }; }; then
20010  ac_cv_type_uint64_t=yes
20011else
20012  echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015ac_cv_type_uint64_t=no
20016fi
20017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20018fi
20019echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20020echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20021if test $ac_cv_type_uint64_t = yes; then
20022  and64="(u_int64_t too)"
20023else
20024  and64=""
20025fi
20026
20027   echo "$as_me:$LINENO: result: ... seen our u_int32_t in $i $and64" >&5
20028echo "${ECHO_T}... seen our u_int32_t in $i $and64" >&6
20029   break;
20030 done
20031 fi
20032 fi
20033
20034# ----------------- DONE inttypes.h checks MAYBE C basic types --------
20035
20036if test "$ac_cv_header_stdint_x" = "no-file" ; then
20037   echo "$as_me:$LINENO: checking size of char" >&5
20038echo $ECHO_N "checking size of char... $ECHO_C" >&6
20039if test "${ac_cv_sizeof_char+set}" = set; then
20040  echo $ECHO_N "(cached) $ECHO_C" >&6
20041else
20042  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20043  cat >conftest.$ac_ext <<_ACEOF
20044/* confdefs.h.  */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h.  */
20049#include "confdefs.h"
20050#include <sys/types.h>
20051
20052
20053int
20054main ()
20055{
20056switch (0) case 0: case (sizeof (char) == $ac_size):;
20057  ;
20058  return 0;
20059}
20060_ACEOF
20061rm -f conftest.$ac_objext
20062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063  (eval $ac_compile) 2>conftest.er1
20064  ac_status=$?
20065  grep -v '^ *+' conftest.er1 >conftest.err
20066  rm -f conftest.er1
20067  cat conftest.err >&5
20068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069  (exit $ac_status); } &&
20070	 { ac_try='test -z "$ac_c_werror_flag"
20071			 || test ! -s conftest.err'
20072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073  (eval $ac_try) 2>&5
20074  ac_status=$?
20075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076  (exit $ac_status); }; } &&
20077	 { ac_try='test -s conftest.$ac_objext'
20078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079  (eval $ac_try) 2>&5
20080  ac_status=$?
20081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082  (exit $ac_status); }; }; then
20083  ac_cv_sizeof_char=$ac_size
20084else
20085  echo "$as_me: failed program was:" >&5
20086sed 's/^/| /' conftest.$ac_ext >&5
20087
20088fi
20089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20090  if test x$ac_cv_sizeof_char != x ; then break; fi
20091done
20092
20093fi
20094
20095if test x$ac_cv_sizeof_char = x ; then
20096  { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20097echo "$as_me: error: cannot determine a size for char" >&2;}
20098   { (exit 1); exit 1; }; }
20099fi
20100echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20101echo "${ECHO_T}$ac_cv_sizeof_char" >&6
20102
20103cat >>confdefs.h <<_ACEOF
20104#define SIZEOF_CHAR $ac_cv_sizeof_char
20105_ACEOF
20106
20107
20108   echo "$as_me:$LINENO: checking size of short" >&5
20109echo $ECHO_N "checking size of short... $ECHO_C" >&6
20110if test "${ac_cv_sizeof_short+set}" = set; then
20111  echo $ECHO_N "(cached) $ECHO_C" >&6
20112else
20113  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20114  cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h.  */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h.  */
20120#include "confdefs.h"
20121#include <sys/types.h>
20122
20123
20124int
20125main ()
20126{
20127switch (0) case 0: case (sizeof (short) == $ac_size):;
20128  ;
20129  return 0;
20130}
20131_ACEOF
20132rm -f conftest.$ac_objext
20133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20134  (eval $ac_compile) 2>conftest.er1
20135  ac_status=$?
20136  grep -v '^ *+' conftest.er1 >conftest.err
20137  rm -f conftest.er1
20138  cat conftest.err >&5
20139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140  (exit $ac_status); } &&
20141	 { ac_try='test -z "$ac_c_werror_flag"
20142			 || test ! -s conftest.err'
20143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144  (eval $ac_try) 2>&5
20145  ac_status=$?
20146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147  (exit $ac_status); }; } &&
20148	 { ac_try='test -s conftest.$ac_objext'
20149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150  (eval $ac_try) 2>&5
20151  ac_status=$?
20152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153  (exit $ac_status); }; }; then
20154  ac_cv_sizeof_short=$ac_size
20155else
20156  echo "$as_me: failed program was:" >&5
20157sed 's/^/| /' conftest.$ac_ext >&5
20158
20159fi
20160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20161  if test x$ac_cv_sizeof_short != x ; then break; fi
20162done
20163
20164fi
20165
20166if test x$ac_cv_sizeof_short = x ; then
20167  { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
20168echo "$as_me: error: cannot determine a size for short" >&2;}
20169   { (exit 1); exit 1; }; }
20170fi
20171echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20172echo "${ECHO_T}$ac_cv_sizeof_short" >&6
20173
20174cat >>confdefs.h <<_ACEOF
20175#define SIZEOF_SHORT $ac_cv_sizeof_short
20176_ACEOF
20177
20178
20179   echo "$as_me:$LINENO: checking size of int" >&5
20180echo $ECHO_N "checking size of int... $ECHO_C" >&6
20181if test "${ac_cv_sizeof_int+set}" = set; then
20182  echo $ECHO_N "(cached) $ECHO_C" >&6
20183else
20184  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20185  cat >conftest.$ac_ext <<_ACEOF
20186/* confdefs.h.  */
20187_ACEOF
20188cat confdefs.h >>conftest.$ac_ext
20189cat >>conftest.$ac_ext <<_ACEOF
20190/* end confdefs.h.  */
20191#include "confdefs.h"
20192#include <sys/types.h>
20193
20194
20195int
20196main ()
20197{
20198switch (0) case 0: case (sizeof (int) == $ac_size):;
20199  ;
20200  return 0;
20201}
20202_ACEOF
20203rm -f conftest.$ac_objext
20204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20205  (eval $ac_compile) 2>conftest.er1
20206  ac_status=$?
20207  grep -v '^ *+' conftest.er1 >conftest.err
20208  rm -f conftest.er1
20209  cat conftest.err >&5
20210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211  (exit $ac_status); } &&
20212	 { ac_try='test -z "$ac_c_werror_flag"
20213			 || test ! -s conftest.err'
20214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215  (eval $ac_try) 2>&5
20216  ac_status=$?
20217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218  (exit $ac_status); }; } &&
20219	 { ac_try='test -s conftest.$ac_objext'
20220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221  (eval $ac_try) 2>&5
20222  ac_status=$?
20223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224  (exit $ac_status); }; }; then
20225  ac_cv_sizeof_int=$ac_size
20226else
20227  echo "$as_me: failed program was:" >&5
20228sed 's/^/| /' conftest.$ac_ext >&5
20229
20230fi
20231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20232  if test x$ac_cv_sizeof_int != x ; then break; fi
20233done
20234
20235fi
20236
20237if test x$ac_cv_sizeof_int = x ; then
20238  { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20239echo "$as_me: error: cannot determine a size for int" >&2;}
20240   { (exit 1); exit 1; }; }
20241fi
20242echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20243echo "${ECHO_T}$ac_cv_sizeof_int" >&6
20244
20245cat >>confdefs.h <<_ACEOF
20246#define SIZEOF_INT $ac_cv_sizeof_int
20247_ACEOF
20248
20249
20250   echo "$as_me:$LINENO: checking size of long" >&5
20251echo $ECHO_N "checking size of long... $ECHO_C" >&6
20252if test "${ac_cv_sizeof_long+set}" = set; then
20253  echo $ECHO_N "(cached) $ECHO_C" >&6
20254else
20255  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20256  cat >conftest.$ac_ext <<_ACEOF
20257/* confdefs.h.  */
20258_ACEOF
20259cat confdefs.h >>conftest.$ac_ext
20260cat >>conftest.$ac_ext <<_ACEOF
20261/* end confdefs.h.  */
20262#include "confdefs.h"
20263#include <sys/types.h>
20264
20265
20266int
20267main ()
20268{
20269switch (0) case 0: case (sizeof (long) == $ac_size):;
20270  ;
20271  return 0;
20272}
20273_ACEOF
20274rm -f conftest.$ac_objext
20275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20276  (eval $ac_compile) 2>conftest.er1
20277  ac_status=$?
20278  grep -v '^ *+' conftest.er1 >conftest.err
20279  rm -f conftest.er1
20280  cat conftest.err >&5
20281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282  (exit $ac_status); } &&
20283	 { ac_try='test -z "$ac_c_werror_flag"
20284			 || test ! -s conftest.err'
20285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286  (eval $ac_try) 2>&5
20287  ac_status=$?
20288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289  (exit $ac_status); }; } &&
20290	 { ac_try='test -s conftest.$ac_objext'
20291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292  (eval $ac_try) 2>&5
20293  ac_status=$?
20294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295  (exit $ac_status); }; }; then
20296  ac_cv_sizeof_long=$ac_size
20297else
20298  echo "$as_me: failed program was:" >&5
20299sed 's/^/| /' conftest.$ac_ext >&5
20300
20301fi
20302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20303  if test x$ac_cv_sizeof_long != x ; then break; fi
20304done
20305
20306fi
20307
20308if test x$ac_cv_sizeof_long = x ; then
20309  { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
20310echo "$as_me: error: cannot determine a size for long" >&2;}
20311   { (exit 1); exit 1; }; }
20312fi
20313echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20314echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20315
20316cat >>confdefs.h <<_ACEOF
20317#define SIZEOF_LONG $ac_cv_sizeof_long
20318_ACEOF
20319
20320
20321   echo "$as_me:$LINENO: checking size of void*" >&5
20322echo $ECHO_N "checking size of void*... $ECHO_C" >&6
20323if test "${ac_cv_sizeof_voidp+set}" = set; then
20324  echo $ECHO_N "(cached) $ECHO_C" >&6
20325else
20326  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20327  cat >conftest.$ac_ext <<_ACEOF
20328/* confdefs.h.  */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
20332/* end confdefs.h.  */
20333#include "confdefs.h"
20334#include <sys/types.h>
20335
20336
20337int
20338main ()
20339{
20340switch (0) case 0: case (sizeof (void*) == $ac_size):;
20341  ;
20342  return 0;
20343}
20344_ACEOF
20345rm -f conftest.$ac_objext
20346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20347  (eval $ac_compile) 2>conftest.er1
20348  ac_status=$?
20349  grep -v '^ *+' conftest.er1 >conftest.err
20350  rm -f conftest.er1
20351  cat conftest.err >&5
20352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353  (exit $ac_status); } &&
20354	 { ac_try='test -z "$ac_c_werror_flag"
20355			 || test ! -s conftest.err'
20356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357  (eval $ac_try) 2>&5
20358  ac_status=$?
20359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360  (exit $ac_status); }; } &&
20361	 { ac_try='test -s conftest.$ac_objext'
20362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363  (eval $ac_try) 2>&5
20364  ac_status=$?
20365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366  (exit $ac_status); }; }; then
20367  ac_cv_sizeof_voidp=$ac_size
20368else
20369  echo "$as_me: failed program was:" >&5
20370sed 's/^/| /' conftest.$ac_ext >&5
20371
20372fi
20373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20374  if test x$ac_cv_sizeof_voidp != x ; then break; fi
20375done
20376
20377fi
20378
20379if test x$ac_cv_sizeof_voidp = x ; then
20380  { { echo "$as_me:$LINENO: error: cannot determine a size for void*" >&5
20381echo "$as_me: error: cannot determine a size for void*" >&2;}
20382   { (exit 1); exit 1; }; }
20383fi
20384echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
20385echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
20386
20387cat >>confdefs.h <<_ACEOF
20388#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
20389_ACEOF
20390
20391
20392   ac_cv_header_stdint_test="yes"
20393else
20394   ac_cv_header_stdint_test="no"
20395fi
20396
20397# ----------------- DONE inttypes.h checks START header -------------
20398_ac_stdint_h=`echo "_$ac_stdint_h" | $as_tr_cpp`
20399echo "$as_me:$LINENO: result: creating $ac_stdint_h : $_ac_stdint_h" >&5
20400echo "${ECHO_T}creating $ac_stdint_h : $_ac_stdint_h" >&6
20401echo "#ifndef" $_ac_stdint_h >$ac_stdint_h
20402echo "#define" $_ac_stdint_h "1" >>$ac_stdint_h
20403echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint_h
20404echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint_h
20405if test "$GCC" = "yes" ; then
20406  echo "/* generated using a gnu compiler version" `$CC --version` "*/" \
20407  >>$ac_stdint_h
20408else
20409  echo "/* generated using $CC */" >>$ac_stdint_h
20410fi
20411echo "" >>$ac_stdint_h
20412
20413if test "$ac_cv_header_stdint_x" != "no-file" ; then
20414   ac_cv_header_stdint="$ac_cv_header_stdint_x"
20415elif  test "$ac_cv_header_stdint_o" != "no-file" ; then
20416   ac_cv_header_stdint="$ac_cv_header_stdint_o"
20417elif  test "$ac_cv_header_stdint_u" != "no-file" ; then
20418   ac_cv_header_stdint="$ac_cv_header_stdint_u"
20419else
20420   ac_cv_header_stdint="stddef.h"
20421fi
20422
20423# ----------------- See if int_least and int_fast types are present
20424unset ac_cv_type_int_least32_t
20425unset ac_cv_type_int_fast32_t
20426echo "$as_me:$LINENO: checking for int_least32_t" >&5
20427echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
20428if test "${ac_cv_type_int_least32_t+set}" = set; then
20429  echo $ECHO_N "(cached) $ECHO_C" >&6
20430else
20431  cat >conftest.$ac_ext <<_ACEOF
20432/* confdefs.h.  */
20433_ACEOF
20434cat confdefs.h >>conftest.$ac_ext
20435cat >>conftest.$ac_ext <<_ACEOF
20436/* end confdefs.h.  */
20437#include <$ac_cv_header_stdint>
20438
20439int
20440main ()
20441{
20442if ((int_least32_t *) 0)
20443  return 0;
20444if (sizeof (int_least32_t))
20445  return 0;
20446  ;
20447  return 0;
20448}
20449_ACEOF
20450rm -f conftest.$ac_objext
20451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20452  (eval $ac_compile) 2>conftest.er1
20453  ac_status=$?
20454  grep -v '^ *+' conftest.er1 >conftest.err
20455  rm -f conftest.er1
20456  cat conftest.err >&5
20457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458  (exit $ac_status); } &&
20459	 { ac_try='test -z "$ac_c_werror_flag"
20460			 || test ! -s conftest.err'
20461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462  (eval $ac_try) 2>&5
20463  ac_status=$?
20464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465  (exit $ac_status); }; } &&
20466	 { ac_try='test -s conftest.$ac_objext'
20467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468  (eval $ac_try) 2>&5
20469  ac_status=$?
20470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471  (exit $ac_status); }; }; then
20472  ac_cv_type_int_least32_t=yes
20473else
20474  echo "$as_me: failed program was:" >&5
20475sed 's/^/| /' conftest.$ac_ext >&5
20476
20477ac_cv_type_int_least32_t=no
20478fi
20479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20480fi
20481echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
20482echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
20483
20484echo "$as_me:$LINENO: checking for int_fast32_t" >&5
20485echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
20486if test "${ac_cv_type_int_fast32_t+set}" = set; then
20487  echo $ECHO_N "(cached) $ECHO_C" >&6
20488else
20489  cat >conftest.$ac_ext <<_ACEOF
20490/* confdefs.h.  */
20491_ACEOF
20492cat confdefs.h >>conftest.$ac_ext
20493cat >>conftest.$ac_ext <<_ACEOF
20494/* end confdefs.h.  */
20495#include<$ac_cv_header_stdint>
20496
20497int
20498main ()
20499{
20500if ((int_fast32_t *) 0)
20501  return 0;
20502if (sizeof (int_fast32_t))
20503  return 0;
20504  ;
20505  return 0;
20506}
20507_ACEOF
20508rm -f conftest.$ac_objext
20509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20510  (eval $ac_compile) 2>conftest.er1
20511  ac_status=$?
20512  grep -v '^ *+' conftest.er1 >conftest.err
20513  rm -f conftest.er1
20514  cat conftest.err >&5
20515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516  (exit $ac_status); } &&
20517	 { ac_try='test -z "$ac_c_werror_flag"
20518			 || test ! -s conftest.err'
20519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520  (eval $ac_try) 2>&5
20521  ac_status=$?
20522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523  (exit $ac_status); }; } &&
20524	 { ac_try='test -s conftest.$ac_objext'
20525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526  (eval $ac_try) 2>&5
20527  ac_status=$?
20528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529  (exit $ac_status); }; }; then
20530  ac_cv_type_int_fast32_t=yes
20531else
20532  echo "$as_me: failed program was:" >&5
20533sed 's/^/| /' conftest.$ac_ext >&5
20534
20535ac_cv_type_int_fast32_t=no
20536fi
20537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20538fi
20539echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
20540echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
20541
20542
20543if test "$ac_cv_header_stdint" != "stddef.h" ; then
20544if test "$ac_cv_header_stdint" != "stdint.h" ; then
20545echo "$as_me:$LINENO: result: ..adding include stddef.h" >&5
20546echo "${ECHO_T}..adding include stddef.h" >&6
20547   echo "#include <stddef.h>" >>$ac_stdint_h
20548fi ; fi
20549echo "$as_me:$LINENO: result: ..adding include $ac_cv_header_stdint" >&5
20550echo "${ECHO_T}..adding include $ac_cv_header_stdint" >&6
20551   echo "#include <$ac_cv_header_stdint>" >>$ac_stdint_h
20552echo "" >>$ac_stdint_h
20553
20554# ----------------- DONE header START basic int types -------------
20555if test "$ac_cv_header_stdint_x" = "no-file" ; then
20556   echo "$as_me:$LINENO: result: ... need to look at C basic types" >&5
20557echo "${ECHO_T}... need to look at C basic types" >&6
20558else
20559   echo "$as_me:$LINENO: result: ... seen good stdint.h inttypes" >&5
20560echo "${ECHO_T}... seen good stdint.h inttypes" >&6
20561fi
20562
20563if test "$ac_cv_header_stdint_u" != "no-file" ; then
20564   echo "$as_me:$LINENO: result: ... seen bsd/sysv typedefs" >&5
20565echo "${ECHO_T}... seen bsd/sysv typedefs" >&6
20566   cat >>$ac_stdint_h <<EOF
20567
20568/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
20569typedef u_int8_t uint8_t;
20570typedef u_int16_t uint16_t;
20571typedef u_int32_t uint32_t;
20572EOF
20573    cat >>$ac_stdint_h <<EOF
20574
20575/* glibc compatibility */
20576#ifndef __int8_t_defined
20577#define __int8_t_defined
20578#endif
20579EOF
20580fi
20581
20582ac_cv_sizeof_x="$ac_cv_sizeof_char:$ac_cv_sizeof_short"
20583ac_cv_sizeof_X="$ac_cv_sizeof_x:$ac_cv_sizeof_int"
20584ac_cv_sizeof_X="$ac_cv_sizeof_X:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long"
20585if test "$ac_cv_header_stdint" = "stddef.h" ; then
20586#   we must guess all the basic types. Apart from byte-adressable system,
20587# there a few 32-bit-only dsp-systems. nibble-addressable systems are way off.
20588    cat >>$ac_stdint_h <<EOF
20589/* ------------ BITSPECIFIC INTTYPES SECTION --------------- */
20590EOF
20591    t="typedefs for a"
20592    case "$ac_cv_sizeof_X" in
20593     1:2:2:2:4) echo "$as_me:$LINENO: result: ..adding $t normal 16-bit system" >&5
20594echo "${ECHO_T}..adding $t normal 16-bit system" >&6
20595                cat >>$ac_stdint_h <<EOF
20596/*              a normal 16-bit system                       */
20597typedef unsigned char   uint8_t;
20598typedef unsigned short  uint16_t;
20599typedef unsigned long   uint32_t;
20600#ifndef __int8_t_defined
20601#define __int8_t_defined
20602typedef          char    int8_t;
20603typedef          short   int16_t;
20604typedef          long    int32_t;
20605#endif
20606EOF
20607;;
20608     1:2:2:4:4) echo "$as_me:$LINENO: result: ..adding $t 32-bit system derived from a 16-bit" >&5
20609echo "${ECHO_T}..adding $t 32-bit system derived from a 16-bit" >&6
20610                cat >>$ac_stdint_h <<EOF
20611/*              a 32-bit system derived from a 16-bit        */
20612typedef unsigned char   uint8_t;
20613typedef unsigned short  uint16_t;
20614typedef unsigned int    uint32_t;
20615#ifndef __int8_t_defined
20616#define __int8_t_defined
20617typedef          char    int8_t;
20618typedef          short   int16_t;
20619typedef          int     int32_t;
20620#endif
20621EOF
20622;;
20623     1:2:4:4:4) echo "$as_me:$LINENO: result: ..adding $t normal 32-bit system" >&5
20624echo "${ECHO_T}..adding $t normal 32-bit system" >&6
20625                cat >>$ac_stdint_h <<EOF
20626/*              a normal 32-bit system                       */
20627typedef unsigned char   uint8_t;
20628typedef unsigned short  uint16_t;
20629typedef unsigned int    uint32_t;
20630#ifndef __int8_t_defined
20631#define __int8_t_defined
20632typedef          char    int8_t;
20633typedef          short   int16_t;
20634typedef          int     int32_t;
20635#endif
20636EOF
20637;;
20638     1:2:4:4:8) echo "$as_me:$LINENO: result: ..adding $t 32-bit system prepared for 64-bit" >&5
20639echo "${ECHO_T}..adding $t 32-bit system prepared for 64-bit" >&6
20640                cat >>$ac_stdint_h <<EOF
20641
20642/*              a 32-bit system prepared for 64-bit          */
20643typedef unsigned char   uint8_t;
20644typedef unsigned short  uint16_t;
20645typedef unsigned int    uint32_t;
20646#ifndef __int8_t_defined
20647#define __int8_t_defined
20648typedef          char    int8_t;
20649typedef          short   int16_t;
20650typedef          int     int32_t;
20651#endif
20652EOF
20653;;
20654     1:2:4:8:8) echo "$as_me:$LINENO: result: ..adding $t normal 64-bit system" >&5
20655echo "${ECHO_T}..adding $t normal 64-bit system" >&6
20656                cat >>$ac_stdint_h <<EOF
20657
20658/*              a normal 64-bit system                       */
20659typedef unsigned char   uint8_t;
20660typedef unsigned short  uint16_t;
20661typedef unsigned int    uint32_t;
20662#ifndef __int8_t_defined
20663#define __int8_t_defined
20664typedef          char    int8_t;
20665typedef          short   int16_t;
20666typedef          int     int32_t;
20667#endif
20668EOF
20669;;
20670     1:2:4:8:4) echo "$as_me:$LINENO: result: ..adding $t 64-bit system derived from a 32-bit" >&5
20671echo "${ECHO_T}..adding $t 64-bit system derived from a 32-bit" >&6
20672                cat >>$ac_stdint_h <<EOF
20673
20674/*              a 64-bit system derived from a 32-bit system */
20675typedef unsigned char   uint8_t;
20676typedef unsigned short  uint16_t;
20677typedef unsigned int    uint32_t;
20678#ifndef __int8_t_defined
20679#define __int8_t_defined
20680typedef          char    int8_t;
20681typedef          short   int16_t;
20682typedef          int     int32_t;
20683#endif
20684EOF
20685;;
20686  *)
20687    { { echo "$as_me:$LINENO: error:  $ac_cv_sizeof_X  what is that a system? contact the author, quick! http://ac-archive.sf.net" >&5
20688echo "$as_me: error:  $ac_cv_sizeof_X  what is that a system? contact the author, quick! http://ac-archive.sf.net" >&2;}
20689   { (exit 1); exit 1; }; }
20690    exit 1
20691;;
20692   esac
20693fi
20694
20695# ------------- DONE basic int types START int64_t types ------------
20696if test "$ac_cv_type_uint64_t" = "yes"
20697then echo "$as_me:$LINENO: result: ... seen good uint64_t" >&5
20698echo "${ECHO_T}... seen good uint64_t" >&6
20699     cat >>$ac_stdint_h <<EOF
20700
20701/* system headers have good uint64_t */
20702#ifndef _HAVE_UINT64_T
20703#define _HAVE_UINT64_T
20704#endif
20705EOF
20706
20707elif test "$ac_cv_type_u_int64_t" = "yes"
20708then echo "$as_me:$LINENO: result: ..adding typedef u_int64_t uint64_t" >&5
20709echo "${ECHO_T}..adding typedef u_int64_t uint64_t" >&6
20710     cat >>$ac_stdint_h <<EOF
20711
20712/* system headers have an u_int64_t */
20713#ifndef _HAVE_UINT64_T
20714#define _HAVE_UINT64_T
20715typedef u_int64_t uint64_t;
20716#endif
20717EOF
20718else echo "$as_me:$LINENO: result: ..adding generic uint64_t runtime checks" >&5
20719echo "${ECHO_T}..adding generic uint64_t runtime checks" >&6
20720     cat >>$ac_stdint_h <<EOF
20721
20722/* -------------------- 64 BIT GENERIC SECTION -------------------- */
20723/* here are some common heuristics using compiler runtime specifics */
20724#if defined __STDC_VERSION__ && defined __STDC_VERSION__ > 199901L
20725
20726#ifndef _HAVE_UINT64_T
20727#define _HAVE_UINT64_T
20728typedef long long int64_t;
20729typedef unsigned long long uint64_t;
20730#endif
20731
20732#elif !defined __STRICT_ANSI__
20733#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20734
20735#ifndef _HAVE_UINT64_T
20736#define _HAVE_UINT64_T
20737typedef __int64 int64_t;
20738typedef unsigned __int64 uint64_t;
20739#endif
20740
20741#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
20742
20743#if !defined _NO_LONGLONG
20744#ifndef _HAVE_UINT64_T
20745#define _HAVE_UINT64_T
20746typedef long long int64_t;
20747typedef unsigned long long uint64_t;
20748#endif
20749#endif
20750
20751#elif defined __alpha || (defined __mips && defined _ABIN32)
20752
20753#if !defined _NO_LONGLONG
20754#ifndef _HAVE_UINT64_T
20755#define _HAVE_UINT64_T
20756typedef long int64_t;
20757typedef unsigned long uint64_t;
20758#endif
20759#endif
20760  /* compiler/cpu type ... or just ISO C99 */
20761#endif
20762#endif
20763EOF
20764
20765# plus a default 64-bit for systems that are likely to be 64-bit ready
20766  case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long" in
20767    1:2:8:8) echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5
20768echo "${ECHO_T}..adding uint64_t default" >&6
20769cat >>$ac_stdint_h <<EOF
20770/* DEFAULT: */
20771/* seen normal 64-bit system, CC has sizeof(long and void*) == 8 bytes */
20772#ifndef _HAVE_UINT64_T
20773#define _HAVE_UINT64_T
20774typedef long int64_t;
20775typedef unsigned long uint64_t;
20776#endif
20777EOF
20778;;
20779    1:2:4:8) echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5
20780echo "${ECHO_T}..adding uint64_t default" >&6
20781cat >>$ac_stdint_h <<EOF
20782/* DEFAULT: */
20783/* seen 32-bit system prepared for 64-bit, CC has sizeof(long) == 8 bytes */
20784#ifndef _HAVE_UINT64_T
20785#define _HAVE_UINT64_T
20786typedef long int64_t;
20787typedef unsigned long uint64_t;
20788#endif
20789EOF
20790;;
20791    1:2:8:4) echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5
20792echo "${ECHO_T}..adding uint64_t default" >&6
20793cat >>$ac_stdint_h <<EOF
20794/* DEFAULT: */
20795/* seen 64-bit derived from a 32-bit, CC has sizeof(long) == 4 bytes */
20796#ifndef _HAVE_UINT64_T
20797#define _HAVE_UINT64_T
20798typedef long long int64_t;
20799typedef unsigned long long uint64_t;
20800#endif
20801EOF
20802;;
20803   *)
20804cat >>$ac_stdint_h <<EOF
20805/* NOTE: */
20806/* the configure-checks for the basic types did not make us believe */
20807/* that we could add a fallback to a 'long long' typedef to int64_t */
20808EOF
20809  esac
20810fi
20811
20812# ------------- DONE int64_t types START intptr types ------------
20813if test "$ac_cv_header_stdint_x" = "no-file" ; then
20814  cat >>$ac_stdint_h <<EOF
20815
20816/* -------------------------- INPTR SECTION --------------------------- */
20817EOF
20818  case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp" in
20819  1:2:2)
20820    a="int16_t" ; cat >>$ac_stdint_h <<EOF
20821/* we tested sizeof(void*) to be of 2 chars, hence we declare it 16-bit */
20822
20823typedef uint16_t uintptr_t;
20824typedef  int16_t  intptr_t;
20825EOF
20826;;
20827  1:2:4)
20828    a="int32_t" ; cat >>$ac_stdint_h <<EOF
20829/* we tested sizeof(void*) to be of 4 chars, hence we declare it 32-bit */
20830
20831typedef uint32_t uintptr_t;
20832typedef  int32_t  intptr_t;
20833EOF
20834;;
20835  1:2:8)
20836    a="int64_t" ; cat >>$ac_stdint_h <<EOF
20837/* we tested sizeof(void*) to be of 8 chars, hence we declare it 64-bit */
20838
20839typedef uint64_t uintptr_t;
20840typedef  int64_t  intptr_t;
20841EOF
20842;;
20843  *)
20844    a="long" ; cat >>$ac_stdint_h <<EOF
20845/* we tested sizeof(void*) but got no guess, hence we declare it as if long */
20846
20847typedef unsigned long uintptr_t;
20848typedef          long  intptr_t;
20849EOF
20850;;
20851  esac
20852echo "$as_me:$LINENO: result: ..adding typedef $a intptr_t" >&5
20853echo "${ECHO_T}..adding typedef $a intptr_t" >&6
20854fi
20855
20856# ------------- DONE intptr types START int_least types ------------
20857if test "$ac_cv_type_int_least32_t" = "no"; then
20858echo "$as_me:$LINENO: result: ..adding generic int_least-types" >&5
20859echo "${ECHO_T}..adding generic int_least-types" >&6
20860     cat >>$ac_stdint_h <<EOF
20861
20862/* --------------GENERIC INT_LEAST ------------------ */
20863
20864typedef  int8_t    int_least8_t;
20865typedef  int16_t   int_least16_t;
20866typedef  int32_t   int_least32_t;
20867#ifdef _HAVE_INT64_T
20868typedef  int64_t   int_least64_t;
20869#endif
20870
20871typedef uint8_t   uint_least8_t;
20872typedef uint16_t  uint_least16_t;
20873typedef uint32_t  uint_least32_t;
20874#ifdef _HAVE_INT64_T
20875typedef uint64_t  uint_least64_t;
20876#endif
20877EOF
20878fi
20879
20880# ------------- DONE intptr types START int_least types ------------
20881if test "$ac_cv_type_int_fast32_t" = "no"; then
20882echo "$as_me:$LINENO: result: ..adding generic int_fast-types" >&5
20883echo "${ECHO_T}..adding generic int_fast-types" >&6
20884     cat >>$ac_stdint_h <<EOF
20885
20886/* --------------GENERIC INT_FAST ------------------ */
20887
20888typedef  int8_t    int_fast8_t;
20889typedef  int32_t   int_fast16_t;
20890typedef  int32_t   int_fast32_t;
20891#ifdef _HAVE_INT64_T
20892typedef  int64_t   int_fast64_t;
20893#endif
20894
20895typedef uint8_t   uint_fast8_t;
20896typedef uint32_t  uint_fast16_t;
20897typedef uint32_t  uint_fast32_t;
20898#ifdef _HAVE_INT64_T
20899typedef uint64_t  uint_fast64_t;
20900#endif
20901EOF
20902fi
20903
20904if test "$ac_cv_header_stdint_x" = "no-file" ; then
20905     cat >>$ac_stdint_h <<EOF
20906
20907#ifdef _HAVE_INT64_T
20908typedef int64_t        intmax_t;
20909typedef uint64_t      uintmax_t;
20910#else
20911typedef long int       intmax_t;
20912typedef unsigned long uintmax_t;
20913#endif
20914EOF
20915fi
20916
20917echo "$as_me:$LINENO: result: ... DONE $ac_stdint_h" >&5
20918echo "${ECHO_T}... DONE $ac_stdint_h" >&6
20919   cat >>$ac_stdint_h <<EOF
20920
20921  /* once */
20922#endif
20923#endif
20924EOF
20925
20926
20927echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20928echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20929if test "${ac_cv_c_bigendian+set}" = set; then
20930  echo $ECHO_N "(cached) $ECHO_C" >&6
20931else
20932  # See if sys/param.h defines the BYTE_ORDER macro.
20933cat >conftest.$ac_ext <<_ACEOF
20934/* confdefs.h.  */
20935_ACEOF
20936cat confdefs.h >>conftest.$ac_ext
20937cat >>conftest.$ac_ext <<_ACEOF
20938/* end confdefs.h.  */
20939#include <sys/types.h>
20940#include <sys/param.h>
20941
20942int
20943main ()
20944{
20945#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20946 bogus endian macros
20947#endif
20948
20949  ;
20950  return 0;
20951}
20952_ACEOF
20953rm -f conftest.$ac_objext
20954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20955  (eval $ac_compile) 2>conftest.er1
20956  ac_status=$?
20957  grep -v '^ *+' conftest.er1 >conftest.err
20958  rm -f conftest.er1
20959  cat conftest.err >&5
20960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961  (exit $ac_status); } &&
20962	 { ac_try='test -z "$ac_c_werror_flag"
20963			 || test ! -s conftest.err'
20964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965  (eval $ac_try) 2>&5
20966  ac_status=$?
20967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968  (exit $ac_status); }; } &&
20969	 { ac_try='test -s conftest.$ac_objext'
20970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971  (eval $ac_try) 2>&5
20972  ac_status=$?
20973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974  (exit $ac_status); }; }; then
20975  # It does; now see whether it defined to BIG_ENDIAN or not.
20976cat >conftest.$ac_ext <<_ACEOF
20977/* confdefs.h.  */
20978_ACEOF
20979cat confdefs.h >>conftest.$ac_ext
20980cat >>conftest.$ac_ext <<_ACEOF
20981/* end confdefs.h.  */
20982#include <sys/types.h>
20983#include <sys/param.h>
20984
20985int
20986main ()
20987{
20988#if BYTE_ORDER != BIG_ENDIAN
20989 not big endian
20990#endif
20991
20992  ;
20993  return 0;
20994}
20995_ACEOF
20996rm -f conftest.$ac_objext
20997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998  (eval $ac_compile) 2>conftest.er1
20999  ac_status=$?
21000  grep -v '^ *+' conftest.er1 >conftest.err
21001  rm -f conftest.er1
21002  cat conftest.err >&5
21003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004  (exit $ac_status); } &&
21005	 { ac_try='test -z "$ac_c_werror_flag"
21006			 || test ! -s conftest.err'
21007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008  (eval $ac_try) 2>&5
21009  ac_status=$?
21010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011  (exit $ac_status); }; } &&
21012	 { ac_try='test -s conftest.$ac_objext'
21013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014  (eval $ac_try) 2>&5
21015  ac_status=$?
21016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017  (exit $ac_status); }; }; then
21018  ac_cv_c_bigendian=yes
21019else
21020  echo "$as_me: failed program was:" >&5
21021sed 's/^/| /' conftest.$ac_ext >&5
21022
21023ac_cv_c_bigendian=no
21024fi
21025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026else
21027  echo "$as_me: failed program was:" >&5
21028sed 's/^/| /' conftest.$ac_ext >&5
21029
21030# It does not; compile a test program.
21031if test "$cross_compiling" = yes; then
21032  # try to guess the endianness by grepping values into an object file
21033  ac_cv_c_bigendian=unknown
21034  cat >conftest.$ac_ext <<_ACEOF
21035/* confdefs.h.  */
21036_ACEOF
21037cat confdefs.h >>conftest.$ac_ext
21038cat >>conftest.$ac_ext <<_ACEOF
21039/* end confdefs.h.  */
21040short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21041short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21042void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21043short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21044short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21045void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21046int
21047main ()
21048{
21049 _ascii (); _ebcdic ();
21050  ;
21051  return 0;
21052}
21053_ACEOF
21054rm -f conftest.$ac_objext
21055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21056  (eval $ac_compile) 2>conftest.er1
21057  ac_status=$?
21058  grep -v '^ *+' conftest.er1 >conftest.err
21059  rm -f conftest.er1
21060  cat conftest.err >&5
21061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062  (exit $ac_status); } &&
21063	 { ac_try='test -z "$ac_c_werror_flag"
21064			 || test ! -s conftest.err'
21065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066  (eval $ac_try) 2>&5
21067  ac_status=$?
21068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069  (exit $ac_status); }; } &&
21070	 { ac_try='test -s conftest.$ac_objext'
21071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072  (eval $ac_try) 2>&5
21073  ac_status=$?
21074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075  (exit $ac_status); }; }; then
21076  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21077  ac_cv_c_bigendian=yes
21078fi
21079if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21080  if test "$ac_cv_c_bigendian" = unknown; then
21081    ac_cv_c_bigendian=no
21082  else
21083    # finding both strings is unlikely to happen, but who knows?
21084    ac_cv_c_bigendian=unknown
21085  fi
21086fi
21087else
21088  echo "$as_me: failed program was:" >&5
21089sed 's/^/| /' conftest.$ac_ext >&5
21090
21091fi
21092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21093else
21094  cat >conftest.$ac_ext <<_ACEOF
21095/* confdefs.h.  */
21096_ACEOF
21097cat confdefs.h >>conftest.$ac_ext
21098cat >>conftest.$ac_ext <<_ACEOF
21099/* end confdefs.h.  */
21100int
21101main ()
21102{
21103  /* Are we little or big endian?  From Harbison&Steele.  */
21104  union
21105  {
21106    long l;
21107    char c[sizeof (long)];
21108  } u;
21109  u.l = 1;
21110  exit (u.c[sizeof (long) - 1] == 1);
21111}
21112_ACEOF
21113rm -f conftest$ac_exeext
21114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21115  (eval $ac_link) 2>&5
21116  ac_status=$?
21117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120  (eval $ac_try) 2>&5
21121  ac_status=$?
21122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123  (exit $ac_status); }; }; then
21124  ac_cv_c_bigendian=no
21125else
21126  echo "$as_me: program exited with status $ac_status" >&5
21127echo "$as_me: failed program was:" >&5
21128sed 's/^/| /' conftest.$ac_ext >&5
21129
21130( exit $ac_status )
21131ac_cv_c_bigendian=yes
21132fi
21133rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21134fi
21135fi
21136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21137fi
21138echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21139echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21140case $ac_cv_c_bigendian in
21141  yes)
21142
21143cat >>confdefs.h <<\_ACEOF
21144#define WORDS_BIGENDIAN 1
21145_ACEOF
21146 ;;
21147  no)
21148     ;;
21149  *)
21150    { { echo "$as_me:$LINENO: error: unknown endianness
21151presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21152echo "$as_me: error: unknown endianness
21153presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21154   { (exit 1); exit 1; }; } ;;
21155esac
21156
21157if test $ac_cv_c_bigendian = yes; then
21158
21159    eval "SID_WORDS_ENDIANESS=SID_WORDS_BIGENDIAN"
21160
21161
21162else
21163
21164    eval "SID_WORDS_ENDIANESS=SID_WORDS_LITTLEENDIAN"
21165
21166
21167fi
21168
21169echo "$as_me:$LINENO: checking for char" >&5
21170echo $ECHO_N "checking for char... $ECHO_C" >&6
21171if test "${ac_cv_type_char+set}" = set; then
21172  echo $ECHO_N "(cached) $ECHO_C" >&6
21173else
21174  cat >conftest.$ac_ext <<_ACEOF
21175/* confdefs.h.  */
21176_ACEOF
21177cat confdefs.h >>conftest.$ac_ext
21178cat >>conftest.$ac_ext <<_ACEOF
21179/* end confdefs.h.  */
21180$ac_includes_default
21181int
21182main ()
21183{
21184if ((char *) 0)
21185  return 0;
21186if (sizeof (char))
21187  return 0;
21188  ;
21189  return 0;
21190}
21191_ACEOF
21192rm -f conftest.$ac_objext
21193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194  (eval $ac_compile) 2>conftest.er1
21195  ac_status=$?
21196  grep -v '^ *+' conftest.er1 >conftest.err
21197  rm -f conftest.er1
21198  cat conftest.err >&5
21199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200  (exit $ac_status); } &&
21201	 { ac_try='test -z "$ac_c_werror_flag"
21202			 || test ! -s conftest.err'
21203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204  (eval $ac_try) 2>&5
21205  ac_status=$?
21206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207  (exit $ac_status); }; } &&
21208	 { ac_try='test -s conftest.$ac_objext'
21209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210  (eval $ac_try) 2>&5
21211  ac_status=$?
21212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213  (exit $ac_status); }; }; then
21214  ac_cv_type_char=yes
21215else
21216  echo "$as_me: failed program was:" >&5
21217sed 's/^/| /' conftest.$ac_ext >&5
21218
21219ac_cv_type_char=no
21220fi
21221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21222fi
21223echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
21224echo "${ECHO_T}$ac_cv_type_char" >&6
21225
21226echo "$as_me:$LINENO: checking size of char" >&5
21227echo $ECHO_N "checking size of char... $ECHO_C" >&6
21228if test "${ac_cv_sizeof_char+set}" = set; then
21229  echo $ECHO_N "(cached) $ECHO_C" >&6
21230else
21231  if test "$ac_cv_type_char" = yes; then
21232  # The cast to unsigned long works around a bug in the HP C Compiler
21233  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21234  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21235  # This bug is HP SR number 8606223364.
21236  if test "$cross_compiling" = yes; then
21237  # Depending upon the size, compute the lo and hi bounds.
21238cat >conftest.$ac_ext <<_ACEOF
21239/* confdefs.h.  */
21240_ACEOF
21241cat confdefs.h >>conftest.$ac_ext
21242cat >>conftest.$ac_ext <<_ACEOF
21243/* end confdefs.h.  */
21244$ac_includes_default
21245int
21246main ()
21247{
21248static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
21249test_array [0] = 0
21250
21251  ;
21252  return 0;
21253}
21254_ACEOF
21255rm -f conftest.$ac_objext
21256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21257  (eval $ac_compile) 2>conftest.er1
21258  ac_status=$?
21259  grep -v '^ *+' conftest.er1 >conftest.err
21260  rm -f conftest.er1
21261  cat conftest.err >&5
21262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263  (exit $ac_status); } &&
21264	 { ac_try='test -z "$ac_c_werror_flag"
21265			 || test ! -s conftest.err'
21266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267  (eval $ac_try) 2>&5
21268  ac_status=$?
21269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270  (exit $ac_status); }; } &&
21271	 { ac_try='test -s conftest.$ac_objext'
21272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273  (eval $ac_try) 2>&5
21274  ac_status=$?
21275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276  (exit $ac_status); }; }; then
21277  ac_lo=0 ac_mid=0
21278  while :; do
21279    cat >conftest.$ac_ext <<_ACEOF
21280/* confdefs.h.  */
21281_ACEOF
21282cat confdefs.h >>conftest.$ac_ext
21283cat >>conftest.$ac_ext <<_ACEOF
21284/* end confdefs.h.  */
21285$ac_includes_default
21286int
21287main ()
21288{
21289static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
21290test_array [0] = 0
21291
21292  ;
21293  return 0;
21294}
21295_ACEOF
21296rm -f conftest.$ac_objext
21297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21298  (eval $ac_compile) 2>conftest.er1
21299  ac_status=$?
21300  grep -v '^ *+' conftest.er1 >conftest.err
21301  rm -f conftest.er1
21302  cat conftest.err >&5
21303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304  (exit $ac_status); } &&
21305	 { ac_try='test -z "$ac_c_werror_flag"
21306			 || test ! -s conftest.err'
21307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308  (eval $ac_try) 2>&5
21309  ac_status=$?
21310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311  (exit $ac_status); }; } &&
21312	 { ac_try='test -s conftest.$ac_objext'
21313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314  (eval $ac_try) 2>&5
21315  ac_status=$?
21316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317  (exit $ac_status); }; }; then
21318  ac_hi=$ac_mid; break
21319else
21320  echo "$as_me: failed program was:" >&5
21321sed 's/^/| /' conftest.$ac_ext >&5
21322
21323ac_lo=`expr $ac_mid + 1`
21324		    if test $ac_lo -le $ac_mid; then
21325		      ac_lo= ac_hi=
21326		      break
21327		    fi
21328		    ac_mid=`expr 2 '*' $ac_mid + 1`
21329fi
21330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21331  done
21332else
21333  echo "$as_me: failed program was:" >&5
21334sed 's/^/| /' conftest.$ac_ext >&5
21335
21336cat >conftest.$ac_ext <<_ACEOF
21337/* confdefs.h.  */
21338_ACEOF
21339cat confdefs.h >>conftest.$ac_ext
21340cat >>conftest.$ac_ext <<_ACEOF
21341/* end confdefs.h.  */
21342$ac_includes_default
21343int
21344main ()
21345{
21346static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
21347test_array [0] = 0
21348
21349  ;
21350  return 0;
21351}
21352_ACEOF
21353rm -f conftest.$ac_objext
21354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21355  (eval $ac_compile) 2>conftest.er1
21356  ac_status=$?
21357  grep -v '^ *+' conftest.er1 >conftest.err
21358  rm -f conftest.er1
21359  cat conftest.err >&5
21360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361  (exit $ac_status); } &&
21362	 { ac_try='test -z "$ac_c_werror_flag"
21363			 || test ! -s conftest.err'
21364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365  (eval $ac_try) 2>&5
21366  ac_status=$?
21367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368  (exit $ac_status); }; } &&
21369	 { ac_try='test -s conftest.$ac_objext'
21370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371  (eval $ac_try) 2>&5
21372  ac_status=$?
21373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374  (exit $ac_status); }; }; then
21375  ac_hi=-1 ac_mid=-1
21376  while :; do
21377    cat >conftest.$ac_ext <<_ACEOF
21378/* confdefs.h.  */
21379_ACEOF
21380cat confdefs.h >>conftest.$ac_ext
21381cat >>conftest.$ac_ext <<_ACEOF
21382/* end confdefs.h.  */
21383$ac_includes_default
21384int
21385main ()
21386{
21387static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
21388test_array [0] = 0
21389
21390  ;
21391  return 0;
21392}
21393_ACEOF
21394rm -f conftest.$ac_objext
21395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21396  (eval $ac_compile) 2>conftest.er1
21397  ac_status=$?
21398  grep -v '^ *+' conftest.er1 >conftest.err
21399  rm -f conftest.er1
21400  cat conftest.err >&5
21401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402  (exit $ac_status); } &&
21403	 { ac_try='test -z "$ac_c_werror_flag"
21404			 || test ! -s conftest.err'
21405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406  (eval $ac_try) 2>&5
21407  ac_status=$?
21408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409  (exit $ac_status); }; } &&
21410	 { ac_try='test -s conftest.$ac_objext'
21411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412  (eval $ac_try) 2>&5
21413  ac_status=$?
21414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415  (exit $ac_status); }; }; then
21416  ac_lo=$ac_mid; break
21417else
21418  echo "$as_me: failed program was:" >&5
21419sed 's/^/| /' conftest.$ac_ext >&5
21420
21421ac_hi=`expr '(' $ac_mid ')' - 1`
21422		       if test $ac_mid -le $ac_hi; then
21423			 ac_lo= ac_hi=
21424			 break
21425		       fi
21426		       ac_mid=`expr 2 '*' $ac_mid`
21427fi
21428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21429  done
21430else
21431  echo "$as_me: failed program was:" >&5
21432sed 's/^/| /' conftest.$ac_ext >&5
21433
21434ac_lo= ac_hi=
21435fi
21436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21437fi
21438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21439# Binary search between lo and hi bounds.
21440while test "x$ac_lo" != "x$ac_hi"; do
21441  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21442  cat >conftest.$ac_ext <<_ACEOF
21443/* confdefs.h.  */
21444_ACEOF
21445cat confdefs.h >>conftest.$ac_ext
21446cat >>conftest.$ac_ext <<_ACEOF
21447/* end confdefs.h.  */
21448$ac_includes_default
21449int
21450main ()
21451{
21452static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
21453test_array [0] = 0
21454
21455  ;
21456  return 0;
21457}
21458_ACEOF
21459rm -f conftest.$ac_objext
21460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21461  (eval $ac_compile) 2>conftest.er1
21462  ac_status=$?
21463  grep -v '^ *+' conftest.er1 >conftest.err
21464  rm -f conftest.er1
21465  cat conftest.err >&5
21466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467  (exit $ac_status); } &&
21468	 { ac_try='test -z "$ac_c_werror_flag"
21469			 || test ! -s conftest.err'
21470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471  (eval $ac_try) 2>&5
21472  ac_status=$?
21473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474  (exit $ac_status); }; } &&
21475	 { ac_try='test -s conftest.$ac_objext'
21476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477  (eval $ac_try) 2>&5
21478  ac_status=$?
21479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480  (exit $ac_status); }; }; then
21481  ac_hi=$ac_mid
21482else
21483  echo "$as_me: failed program was:" >&5
21484sed 's/^/| /' conftest.$ac_ext >&5
21485
21486ac_lo=`expr '(' $ac_mid ')' + 1`
21487fi
21488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21489done
21490case $ac_lo in
21491?*) ac_cv_sizeof_char=$ac_lo;;
21492'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
21493See \`config.log' for more details." >&5
21494echo "$as_me: error: cannot compute sizeof (char), 77
21495See \`config.log' for more details." >&2;}
21496   { (exit 1); exit 1; }; } ;;
21497esac
21498else
21499  if test "$cross_compiling" = yes; then
21500  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21501See \`config.log' for more details." >&5
21502echo "$as_me: error: cannot run test program while cross compiling
21503See \`config.log' for more details." >&2;}
21504   { (exit 1); exit 1; }; }
21505else
21506  cat >conftest.$ac_ext <<_ACEOF
21507/* confdefs.h.  */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h.  */
21512$ac_includes_default
21513long longval () { return (long) (sizeof (char)); }
21514unsigned long ulongval () { return (long) (sizeof (char)); }
21515#include <stdio.h>
21516#include <stdlib.h>
21517int
21518main ()
21519{
21520
21521  FILE *f = fopen ("conftest.val", "w");
21522  if (! f)
21523    exit (1);
21524  if (((long) (sizeof (char))) < 0)
21525    {
21526      long i = longval ();
21527      if (i != ((long) (sizeof (char))))
21528	exit (1);
21529      fprintf (f, "%ld\n", i);
21530    }
21531  else
21532    {
21533      unsigned long i = ulongval ();
21534      if (i != ((long) (sizeof (char))))
21535	exit (1);
21536      fprintf (f, "%lu\n", i);
21537    }
21538  exit (ferror (f) || fclose (f) != 0);
21539
21540  ;
21541  return 0;
21542}
21543_ACEOF
21544rm -f conftest$ac_exeext
21545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21546  (eval $ac_link) 2>&5
21547  ac_status=$?
21548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551  (eval $ac_try) 2>&5
21552  ac_status=$?
21553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554  (exit $ac_status); }; }; then
21555  ac_cv_sizeof_char=`cat conftest.val`
21556else
21557  echo "$as_me: program exited with status $ac_status" >&5
21558echo "$as_me: failed program was:" >&5
21559sed 's/^/| /' conftest.$ac_ext >&5
21560
21561( exit $ac_status )
21562{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
21563See \`config.log' for more details." >&5
21564echo "$as_me: error: cannot compute sizeof (char), 77
21565See \`config.log' for more details." >&2;}
21566   { (exit 1); exit 1; }; }
21567fi
21568rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21569fi
21570fi
21571rm -f conftest.val
21572else
21573  ac_cv_sizeof_char=0
21574fi
21575fi
21576echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21577echo "${ECHO_T}$ac_cv_sizeof_char" >&6
21578cat >>confdefs.h <<_ACEOF
21579#define SIZEOF_CHAR $ac_cv_sizeof_char
21580_ACEOF
21581
21582
21583echo "$as_me:$LINENO: checking for short int" >&5
21584echo $ECHO_N "checking for short int... $ECHO_C" >&6
21585if test "${ac_cv_type_short_int+set}" = set; then
21586  echo $ECHO_N "(cached) $ECHO_C" >&6
21587else
21588  cat >conftest.$ac_ext <<_ACEOF
21589/* confdefs.h.  */
21590_ACEOF
21591cat confdefs.h >>conftest.$ac_ext
21592cat >>conftest.$ac_ext <<_ACEOF
21593/* end confdefs.h.  */
21594$ac_includes_default
21595int
21596main ()
21597{
21598if ((short int *) 0)
21599  return 0;
21600if (sizeof (short int))
21601  return 0;
21602  ;
21603  return 0;
21604}
21605_ACEOF
21606rm -f conftest.$ac_objext
21607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608  (eval $ac_compile) 2>conftest.er1
21609  ac_status=$?
21610  grep -v '^ *+' conftest.er1 >conftest.err
21611  rm -f conftest.er1
21612  cat conftest.err >&5
21613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614  (exit $ac_status); } &&
21615	 { ac_try='test -z "$ac_c_werror_flag"
21616			 || test ! -s conftest.err'
21617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618  (eval $ac_try) 2>&5
21619  ac_status=$?
21620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621  (exit $ac_status); }; } &&
21622	 { ac_try='test -s conftest.$ac_objext'
21623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624  (eval $ac_try) 2>&5
21625  ac_status=$?
21626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627  (exit $ac_status); }; }; then
21628  ac_cv_type_short_int=yes
21629else
21630  echo "$as_me: failed program was:" >&5
21631sed 's/^/| /' conftest.$ac_ext >&5
21632
21633ac_cv_type_short_int=no
21634fi
21635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21636fi
21637echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
21638echo "${ECHO_T}$ac_cv_type_short_int" >&6
21639
21640echo "$as_me:$LINENO: checking size of short int" >&5
21641echo $ECHO_N "checking size of short int... $ECHO_C" >&6
21642if test "${ac_cv_sizeof_short_int+set}" = set; then
21643  echo $ECHO_N "(cached) $ECHO_C" >&6
21644else
21645  if test "$ac_cv_type_short_int" = yes; then
21646  # The cast to unsigned long works around a bug in the HP C Compiler
21647  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21648  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21649  # This bug is HP SR number 8606223364.
21650  if test "$cross_compiling" = yes; then
21651  # Depending upon the size, compute the lo and hi bounds.
21652cat >conftest.$ac_ext <<_ACEOF
21653/* confdefs.h.  */
21654_ACEOF
21655cat confdefs.h >>conftest.$ac_ext
21656cat >>conftest.$ac_ext <<_ACEOF
21657/* end confdefs.h.  */
21658$ac_includes_default
21659int
21660main ()
21661{
21662static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
21663test_array [0] = 0
21664
21665  ;
21666  return 0;
21667}
21668_ACEOF
21669rm -f conftest.$ac_objext
21670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21671  (eval $ac_compile) 2>conftest.er1
21672  ac_status=$?
21673  grep -v '^ *+' conftest.er1 >conftest.err
21674  rm -f conftest.er1
21675  cat conftest.err >&5
21676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677  (exit $ac_status); } &&
21678	 { ac_try='test -z "$ac_c_werror_flag"
21679			 || test ! -s conftest.err'
21680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681  (eval $ac_try) 2>&5
21682  ac_status=$?
21683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684  (exit $ac_status); }; } &&
21685	 { ac_try='test -s conftest.$ac_objext'
21686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687  (eval $ac_try) 2>&5
21688  ac_status=$?
21689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690  (exit $ac_status); }; }; then
21691  ac_lo=0 ac_mid=0
21692  while :; do
21693    cat >conftest.$ac_ext <<_ACEOF
21694/* confdefs.h.  */
21695_ACEOF
21696cat confdefs.h >>conftest.$ac_ext
21697cat >>conftest.$ac_ext <<_ACEOF
21698/* end confdefs.h.  */
21699$ac_includes_default
21700int
21701main ()
21702{
21703static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
21704test_array [0] = 0
21705
21706  ;
21707  return 0;
21708}
21709_ACEOF
21710rm -f conftest.$ac_objext
21711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21712  (eval $ac_compile) 2>conftest.er1
21713  ac_status=$?
21714  grep -v '^ *+' conftest.er1 >conftest.err
21715  rm -f conftest.er1
21716  cat conftest.err >&5
21717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718  (exit $ac_status); } &&
21719	 { ac_try='test -z "$ac_c_werror_flag"
21720			 || test ! -s conftest.err'
21721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722  (eval $ac_try) 2>&5
21723  ac_status=$?
21724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725  (exit $ac_status); }; } &&
21726	 { ac_try='test -s conftest.$ac_objext'
21727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728  (eval $ac_try) 2>&5
21729  ac_status=$?
21730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731  (exit $ac_status); }; }; then
21732  ac_hi=$ac_mid; break
21733else
21734  echo "$as_me: failed program was:" >&5
21735sed 's/^/| /' conftest.$ac_ext >&5
21736
21737ac_lo=`expr $ac_mid + 1`
21738		    if test $ac_lo -le $ac_mid; then
21739		      ac_lo= ac_hi=
21740		      break
21741		    fi
21742		    ac_mid=`expr 2 '*' $ac_mid + 1`
21743fi
21744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21745  done
21746else
21747  echo "$as_me: failed program was:" >&5
21748sed 's/^/| /' conftest.$ac_ext >&5
21749
21750cat >conftest.$ac_ext <<_ACEOF
21751/* confdefs.h.  */
21752_ACEOF
21753cat confdefs.h >>conftest.$ac_ext
21754cat >>conftest.$ac_ext <<_ACEOF
21755/* end confdefs.h.  */
21756$ac_includes_default
21757int
21758main ()
21759{
21760static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
21761test_array [0] = 0
21762
21763  ;
21764  return 0;
21765}
21766_ACEOF
21767rm -f conftest.$ac_objext
21768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21769  (eval $ac_compile) 2>conftest.er1
21770  ac_status=$?
21771  grep -v '^ *+' conftest.er1 >conftest.err
21772  rm -f conftest.er1
21773  cat conftest.err >&5
21774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775  (exit $ac_status); } &&
21776	 { ac_try='test -z "$ac_c_werror_flag"
21777			 || test ! -s conftest.err'
21778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779  (eval $ac_try) 2>&5
21780  ac_status=$?
21781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782  (exit $ac_status); }; } &&
21783	 { ac_try='test -s conftest.$ac_objext'
21784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785  (eval $ac_try) 2>&5
21786  ac_status=$?
21787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788  (exit $ac_status); }; }; then
21789  ac_hi=-1 ac_mid=-1
21790  while :; do
21791    cat >conftest.$ac_ext <<_ACEOF
21792/* confdefs.h.  */
21793_ACEOF
21794cat confdefs.h >>conftest.$ac_ext
21795cat >>conftest.$ac_ext <<_ACEOF
21796/* end confdefs.h.  */
21797$ac_includes_default
21798int
21799main ()
21800{
21801static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
21802test_array [0] = 0
21803
21804  ;
21805  return 0;
21806}
21807_ACEOF
21808rm -f conftest.$ac_objext
21809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21810  (eval $ac_compile) 2>conftest.er1
21811  ac_status=$?
21812  grep -v '^ *+' conftest.er1 >conftest.err
21813  rm -f conftest.er1
21814  cat conftest.err >&5
21815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816  (exit $ac_status); } &&
21817	 { ac_try='test -z "$ac_c_werror_flag"
21818			 || test ! -s conftest.err'
21819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21820  (eval $ac_try) 2>&5
21821  ac_status=$?
21822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823  (exit $ac_status); }; } &&
21824	 { ac_try='test -s conftest.$ac_objext'
21825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826  (eval $ac_try) 2>&5
21827  ac_status=$?
21828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829  (exit $ac_status); }; }; then
21830  ac_lo=$ac_mid; break
21831else
21832  echo "$as_me: failed program was:" >&5
21833sed 's/^/| /' conftest.$ac_ext >&5
21834
21835ac_hi=`expr '(' $ac_mid ')' - 1`
21836		       if test $ac_mid -le $ac_hi; then
21837			 ac_lo= ac_hi=
21838			 break
21839		       fi
21840		       ac_mid=`expr 2 '*' $ac_mid`
21841fi
21842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21843  done
21844else
21845  echo "$as_me: failed program was:" >&5
21846sed 's/^/| /' conftest.$ac_ext >&5
21847
21848ac_lo= ac_hi=
21849fi
21850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21851fi
21852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21853# Binary search between lo and hi bounds.
21854while test "x$ac_lo" != "x$ac_hi"; do
21855  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21856  cat >conftest.$ac_ext <<_ACEOF
21857/* confdefs.h.  */
21858_ACEOF
21859cat confdefs.h >>conftest.$ac_ext
21860cat >>conftest.$ac_ext <<_ACEOF
21861/* end confdefs.h.  */
21862$ac_includes_default
21863int
21864main ()
21865{
21866static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
21867test_array [0] = 0
21868
21869  ;
21870  return 0;
21871}
21872_ACEOF
21873rm -f conftest.$ac_objext
21874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21875  (eval $ac_compile) 2>conftest.er1
21876  ac_status=$?
21877  grep -v '^ *+' conftest.er1 >conftest.err
21878  rm -f conftest.er1
21879  cat conftest.err >&5
21880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881  (exit $ac_status); } &&
21882	 { ac_try='test -z "$ac_c_werror_flag"
21883			 || test ! -s conftest.err'
21884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885  (eval $ac_try) 2>&5
21886  ac_status=$?
21887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888  (exit $ac_status); }; } &&
21889	 { ac_try='test -s conftest.$ac_objext'
21890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891  (eval $ac_try) 2>&5
21892  ac_status=$?
21893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894  (exit $ac_status); }; }; then
21895  ac_hi=$ac_mid
21896else
21897  echo "$as_me: failed program was:" >&5
21898sed 's/^/| /' conftest.$ac_ext >&5
21899
21900ac_lo=`expr '(' $ac_mid ')' + 1`
21901fi
21902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21903done
21904case $ac_lo in
21905?*) ac_cv_sizeof_short_int=$ac_lo;;
21906'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
21907See \`config.log' for more details." >&5
21908echo "$as_me: error: cannot compute sizeof (short int), 77
21909See \`config.log' for more details." >&2;}
21910   { (exit 1); exit 1; }; } ;;
21911esac
21912else
21913  if test "$cross_compiling" = yes; then
21914  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21915See \`config.log' for more details." >&5
21916echo "$as_me: error: cannot run test program while cross compiling
21917See \`config.log' for more details." >&2;}
21918   { (exit 1); exit 1; }; }
21919else
21920  cat >conftest.$ac_ext <<_ACEOF
21921/* confdefs.h.  */
21922_ACEOF
21923cat confdefs.h >>conftest.$ac_ext
21924cat >>conftest.$ac_ext <<_ACEOF
21925/* end confdefs.h.  */
21926$ac_includes_default
21927long longval () { return (long) (sizeof (short int)); }
21928unsigned long ulongval () { return (long) (sizeof (short int)); }
21929#include <stdio.h>
21930#include <stdlib.h>
21931int
21932main ()
21933{
21934
21935  FILE *f = fopen ("conftest.val", "w");
21936  if (! f)
21937    exit (1);
21938  if (((long) (sizeof (short int))) < 0)
21939    {
21940      long i = longval ();
21941      if (i != ((long) (sizeof (short int))))
21942	exit (1);
21943      fprintf (f, "%ld\n", i);
21944    }
21945  else
21946    {
21947      unsigned long i = ulongval ();
21948      if (i != ((long) (sizeof (short int))))
21949	exit (1);
21950      fprintf (f, "%lu\n", i);
21951    }
21952  exit (ferror (f) || fclose (f) != 0);
21953
21954  ;
21955  return 0;
21956}
21957_ACEOF
21958rm -f conftest$ac_exeext
21959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21960  (eval $ac_link) 2>&5
21961  ac_status=$?
21962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965  (eval $ac_try) 2>&5
21966  ac_status=$?
21967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968  (exit $ac_status); }; }; then
21969  ac_cv_sizeof_short_int=`cat conftest.val`
21970else
21971  echo "$as_me: program exited with status $ac_status" >&5
21972echo "$as_me: failed program was:" >&5
21973sed 's/^/| /' conftest.$ac_ext >&5
21974
21975( exit $ac_status )
21976{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
21977See \`config.log' for more details." >&5
21978echo "$as_me: error: cannot compute sizeof (short int), 77
21979See \`config.log' for more details." >&2;}
21980   { (exit 1); exit 1; }; }
21981fi
21982rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21983fi
21984fi
21985rm -f conftest.val
21986else
21987  ac_cv_sizeof_short_int=0
21988fi
21989fi
21990echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
21991echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
21992cat >>confdefs.h <<_ACEOF
21993#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
21994_ACEOF
21995
21996
21997echo "$as_me:$LINENO: checking for int" >&5
21998echo $ECHO_N "checking for int... $ECHO_C" >&6
21999if test "${ac_cv_type_int+set}" = set; then
22000  echo $ECHO_N "(cached) $ECHO_C" >&6
22001else
22002  cat >conftest.$ac_ext <<_ACEOF
22003/* confdefs.h.  */
22004_ACEOF
22005cat confdefs.h >>conftest.$ac_ext
22006cat >>conftest.$ac_ext <<_ACEOF
22007/* end confdefs.h.  */
22008$ac_includes_default
22009int
22010main ()
22011{
22012if ((int *) 0)
22013  return 0;
22014if (sizeof (int))
22015  return 0;
22016  ;
22017  return 0;
22018}
22019_ACEOF
22020rm -f conftest.$ac_objext
22021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022  (eval $ac_compile) 2>conftest.er1
22023  ac_status=$?
22024  grep -v '^ *+' conftest.er1 >conftest.err
22025  rm -f conftest.er1
22026  cat conftest.err >&5
22027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028  (exit $ac_status); } &&
22029	 { ac_try='test -z "$ac_c_werror_flag"
22030			 || test ! -s conftest.err'
22031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032  (eval $ac_try) 2>&5
22033  ac_status=$?
22034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035  (exit $ac_status); }; } &&
22036	 { ac_try='test -s conftest.$ac_objext'
22037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038  (eval $ac_try) 2>&5
22039  ac_status=$?
22040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041  (exit $ac_status); }; }; then
22042  ac_cv_type_int=yes
22043else
22044  echo "$as_me: failed program was:" >&5
22045sed 's/^/| /' conftest.$ac_ext >&5
22046
22047ac_cv_type_int=no
22048fi
22049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22050fi
22051echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22052echo "${ECHO_T}$ac_cv_type_int" >&6
22053
22054echo "$as_me:$LINENO: checking size of int" >&5
22055echo $ECHO_N "checking size of int... $ECHO_C" >&6
22056if test "${ac_cv_sizeof_int+set}" = set; then
22057  echo $ECHO_N "(cached) $ECHO_C" >&6
22058else
22059  if test "$ac_cv_type_int" = yes; then
22060  # The cast to unsigned long works around a bug in the HP C Compiler
22061  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22062  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22063  # This bug is HP SR number 8606223364.
22064  if test "$cross_compiling" = yes; then
22065  # Depending upon the size, compute the lo and hi bounds.
22066cat >conftest.$ac_ext <<_ACEOF
22067/* confdefs.h.  */
22068_ACEOF
22069cat confdefs.h >>conftest.$ac_ext
22070cat >>conftest.$ac_ext <<_ACEOF
22071/* end confdefs.h.  */
22072$ac_includes_default
22073int
22074main ()
22075{
22076static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
22077test_array [0] = 0
22078
22079  ;
22080  return 0;
22081}
22082_ACEOF
22083rm -f conftest.$ac_objext
22084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22085  (eval $ac_compile) 2>conftest.er1
22086  ac_status=$?
22087  grep -v '^ *+' conftest.er1 >conftest.err
22088  rm -f conftest.er1
22089  cat conftest.err >&5
22090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091  (exit $ac_status); } &&
22092	 { ac_try='test -z "$ac_c_werror_flag"
22093			 || test ! -s conftest.err'
22094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095  (eval $ac_try) 2>&5
22096  ac_status=$?
22097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098  (exit $ac_status); }; } &&
22099	 { ac_try='test -s conftest.$ac_objext'
22100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101  (eval $ac_try) 2>&5
22102  ac_status=$?
22103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104  (exit $ac_status); }; }; then
22105  ac_lo=0 ac_mid=0
22106  while :; do
22107    cat >conftest.$ac_ext <<_ACEOF
22108/* confdefs.h.  */
22109_ACEOF
22110cat confdefs.h >>conftest.$ac_ext
22111cat >>conftest.$ac_ext <<_ACEOF
22112/* end confdefs.h.  */
22113$ac_includes_default
22114int
22115main ()
22116{
22117static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
22118test_array [0] = 0
22119
22120  ;
22121  return 0;
22122}
22123_ACEOF
22124rm -f conftest.$ac_objext
22125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22126  (eval $ac_compile) 2>conftest.er1
22127  ac_status=$?
22128  grep -v '^ *+' conftest.er1 >conftest.err
22129  rm -f conftest.er1
22130  cat conftest.err >&5
22131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132  (exit $ac_status); } &&
22133	 { ac_try='test -z "$ac_c_werror_flag"
22134			 || test ! -s conftest.err'
22135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136  (eval $ac_try) 2>&5
22137  ac_status=$?
22138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139  (exit $ac_status); }; } &&
22140	 { ac_try='test -s conftest.$ac_objext'
22141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142  (eval $ac_try) 2>&5
22143  ac_status=$?
22144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145  (exit $ac_status); }; }; then
22146  ac_hi=$ac_mid; break
22147else
22148  echo "$as_me: failed program was:" >&5
22149sed 's/^/| /' conftest.$ac_ext >&5
22150
22151ac_lo=`expr $ac_mid + 1`
22152		    if test $ac_lo -le $ac_mid; then
22153		      ac_lo= ac_hi=
22154		      break
22155		    fi
22156		    ac_mid=`expr 2 '*' $ac_mid + 1`
22157fi
22158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22159  done
22160else
22161  echo "$as_me: failed program was:" >&5
22162sed 's/^/| /' conftest.$ac_ext >&5
22163
22164cat >conftest.$ac_ext <<_ACEOF
22165/* confdefs.h.  */
22166_ACEOF
22167cat confdefs.h >>conftest.$ac_ext
22168cat >>conftest.$ac_ext <<_ACEOF
22169/* end confdefs.h.  */
22170$ac_includes_default
22171int
22172main ()
22173{
22174static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
22175test_array [0] = 0
22176
22177  ;
22178  return 0;
22179}
22180_ACEOF
22181rm -f conftest.$ac_objext
22182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22183  (eval $ac_compile) 2>conftest.er1
22184  ac_status=$?
22185  grep -v '^ *+' conftest.er1 >conftest.err
22186  rm -f conftest.er1
22187  cat conftest.err >&5
22188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189  (exit $ac_status); } &&
22190	 { ac_try='test -z "$ac_c_werror_flag"
22191			 || test ! -s conftest.err'
22192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193  (eval $ac_try) 2>&5
22194  ac_status=$?
22195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196  (exit $ac_status); }; } &&
22197	 { ac_try='test -s conftest.$ac_objext'
22198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199  (eval $ac_try) 2>&5
22200  ac_status=$?
22201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202  (exit $ac_status); }; }; then
22203  ac_hi=-1 ac_mid=-1
22204  while :; do
22205    cat >conftest.$ac_ext <<_ACEOF
22206/* confdefs.h.  */
22207_ACEOF
22208cat confdefs.h >>conftest.$ac_ext
22209cat >>conftest.$ac_ext <<_ACEOF
22210/* end confdefs.h.  */
22211$ac_includes_default
22212int
22213main ()
22214{
22215static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
22216test_array [0] = 0
22217
22218  ;
22219  return 0;
22220}
22221_ACEOF
22222rm -f conftest.$ac_objext
22223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22224  (eval $ac_compile) 2>conftest.er1
22225  ac_status=$?
22226  grep -v '^ *+' conftest.er1 >conftest.err
22227  rm -f conftest.er1
22228  cat conftest.err >&5
22229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230  (exit $ac_status); } &&
22231	 { ac_try='test -z "$ac_c_werror_flag"
22232			 || test ! -s conftest.err'
22233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234  (eval $ac_try) 2>&5
22235  ac_status=$?
22236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237  (exit $ac_status); }; } &&
22238	 { ac_try='test -s conftest.$ac_objext'
22239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240  (eval $ac_try) 2>&5
22241  ac_status=$?
22242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243  (exit $ac_status); }; }; then
22244  ac_lo=$ac_mid; break
22245else
22246  echo "$as_me: failed program was:" >&5
22247sed 's/^/| /' conftest.$ac_ext >&5
22248
22249ac_hi=`expr '(' $ac_mid ')' - 1`
22250		       if test $ac_mid -le $ac_hi; then
22251			 ac_lo= ac_hi=
22252			 break
22253		       fi
22254		       ac_mid=`expr 2 '*' $ac_mid`
22255fi
22256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22257  done
22258else
22259  echo "$as_me: failed program was:" >&5
22260sed 's/^/| /' conftest.$ac_ext >&5
22261
22262ac_lo= ac_hi=
22263fi
22264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22265fi
22266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22267# Binary search between lo and hi bounds.
22268while test "x$ac_lo" != "x$ac_hi"; do
22269  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22270  cat >conftest.$ac_ext <<_ACEOF
22271/* confdefs.h.  */
22272_ACEOF
22273cat confdefs.h >>conftest.$ac_ext
22274cat >>conftest.$ac_ext <<_ACEOF
22275/* end confdefs.h.  */
22276$ac_includes_default
22277int
22278main ()
22279{
22280static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
22281test_array [0] = 0
22282
22283  ;
22284  return 0;
22285}
22286_ACEOF
22287rm -f conftest.$ac_objext
22288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22289  (eval $ac_compile) 2>conftest.er1
22290  ac_status=$?
22291  grep -v '^ *+' conftest.er1 >conftest.err
22292  rm -f conftest.er1
22293  cat conftest.err >&5
22294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295  (exit $ac_status); } &&
22296	 { ac_try='test -z "$ac_c_werror_flag"
22297			 || test ! -s conftest.err'
22298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299  (eval $ac_try) 2>&5
22300  ac_status=$?
22301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302  (exit $ac_status); }; } &&
22303	 { ac_try='test -s conftest.$ac_objext'
22304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305  (eval $ac_try) 2>&5
22306  ac_status=$?
22307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308  (exit $ac_status); }; }; then
22309  ac_hi=$ac_mid
22310else
22311  echo "$as_me: failed program was:" >&5
22312sed 's/^/| /' conftest.$ac_ext >&5
22313
22314ac_lo=`expr '(' $ac_mid ')' + 1`
22315fi
22316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22317done
22318case $ac_lo in
22319?*) ac_cv_sizeof_int=$ac_lo;;
22320'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
22321See \`config.log' for more details." >&5
22322echo "$as_me: error: cannot compute sizeof (int), 77
22323See \`config.log' for more details." >&2;}
22324   { (exit 1); exit 1; }; } ;;
22325esac
22326else
22327  if test "$cross_compiling" = yes; then
22328  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22329See \`config.log' for more details." >&5
22330echo "$as_me: error: cannot run test program while cross compiling
22331See \`config.log' for more details." >&2;}
22332   { (exit 1); exit 1; }; }
22333else
22334  cat >conftest.$ac_ext <<_ACEOF
22335/* confdefs.h.  */
22336_ACEOF
22337cat confdefs.h >>conftest.$ac_ext
22338cat >>conftest.$ac_ext <<_ACEOF
22339/* end confdefs.h.  */
22340$ac_includes_default
22341long longval () { return (long) (sizeof (int)); }
22342unsigned long ulongval () { return (long) (sizeof (int)); }
22343#include <stdio.h>
22344#include <stdlib.h>
22345int
22346main ()
22347{
22348
22349  FILE *f = fopen ("conftest.val", "w");
22350  if (! f)
22351    exit (1);
22352  if (((long) (sizeof (int))) < 0)
22353    {
22354      long i = longval ();
22355      if (i != ((long) (sizeof (int))))
22356	exit (1);
22357      fprintf (f, "%ld\n", i);
22358    }
22359  else
22360    {
22361      unsigned long i = ulongval ();
22362      if (i != ((long) (sizeof (int))))
22363	exit (1);
22364      fprintf (f, "%lu\n", i);
22365    }
22366  exit (ferror (f) || fclose (f) != 0);
22367
22368  ;
22369  return 0;
22370}
22371_ACEOF
22372rm -f conftest$ac_exeext
22373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22374  (eval $ac_link) 2>&5
22375  ac_status=$?
22376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379  (eval $ac_try) 2>&5
22380  ac_status=$?
22381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382  (exit $ac_status); }; }; then
22383  ac_cv_sizeof_int=`cat conftest.val`
22384else
22385  echo "$as_me: program exited with status $ac_status" >&5
22386echo "$as_me: failed program was:" >&5
22387sed 's/^/| /' conftest.$ac_ext >&5
22388
22389( exit $ac_status )
22390{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
22391See \`config.log' for more details." >&5
22392echo "$as_me: error: cannot compute sizeof (int), 77
22393See \`config.log' for more details." >&2;}
22394   { (exit 1); exit 1; }; }
22395fi
22396rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22397fi
22398fi
22399rm -f conftest.val
22400else
22401  ac_cv_sizeof_int=0
22402fi
22403fi
22404echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22405echo "${ECHO_T}$ac_cv_sizeof_int" >&6
22406cat >>confdefs.h <<_ACEOF
22407#define SIZEOF_INT $ac_cv_sizeof_int
22408_ACEOF
22409
22410
22411echo "$as_me:$LINENO: checking for long int" >&5
22412echo $ECHO_N "checking for long int... $ECHO_C" >&6
22413if test "${ac_cv_type_long_int+set}" = set; then
22414  echo $ECHO_N "(cached) $ECHO_C" >&6
22415else
22416  cat >conftest.$ac_ext <<_ACEOF
22417/* confdefs.h.  */
22418_ACEOF
22419cat confdefs.h >>conftest.$ac_ext
22420cat >>conftest.$ac_ext <<_ACEOF
22421/* end confdefs.h.  */
22422$ac_includes_default
22423int
22424main ()
22425{
22426if ((long int *) 0)
22427  return 0;
22428if (sizeof (long int))
22429  return 0;
22430  ;
22431  return 0;
22432}
22433_ACEOF
22434rm -f conftest.$ac_objext
22435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22436  (eval $ac_compile) 2>conftest.er1
22437  ac_status=$?
22438  grep -v '^ *+' conftest.er1 >conftest.err
22439  rm -f conftest.er1
22440  cat conftest.err >&5
22441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442  (exit $ac_status); } &&
22443	 { ac_try='test -z "$ac_c_werror_flag"
22444			 || test ! -s conftest.err'
22445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446  (eval $ac_try) 2>&5
22447  ac_status=$?
22448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449  (exit $ac_status); }; } &&
22450	 { ac_try='test -s conftest.$ac_objext'
22451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452  (eval $ac_try) 2>&5
22453  ac_status=$?
22454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455  (exit $ac_status); }; }; then
22456  ac_cv_type_long_int=yes
22457else
22458  echo "$as_me: failed program was:" >&5
22459sed 's/^/| /' conftest.$ac_ext >&5
22460
22461ac_cv_type_long_int=no
22462fi
22463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22464fi
22465echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
22466echo "${ECHO_T}$ac_cv_type_long_int" >&6
22467
22468echo "$as_me:$LINENO: checking size of long int" >&5
22469echo $ECHO_N "checking size of long int... $ECHO_C" >&6
22470if test "${ac_cv_sizeof_long_int+set}" = set; then
22471  echo $ECHO_N "(cached) $ECHO_C" >&6
22472else
22473  if test "$ac_cv_type_long_int" = yes; then
22474  # The cast to unsigned long works around a bug in the HP C Compiler
22475  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22476  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22477  # This bug is HP SR number 8606223364.
22478  if test "$cross_compiling" = yes; then
22479  # Depending upon the size, compute the lo and hi bounds.
22480cat >conftest.$ac_ext <<_ACEOF
22481/* confdefs.h.  */
22482_ACEOF
22483cat confdefs.h >>conftest.$ac_ext
22484cat >>conftest.$ac_ext <<_ACEOF
22485/* end confdefs.h.  */
22486$ac_includes_default
22487int
22488main ()
22489{
22490static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
22491test_array [0] = 0
22492
22493  ;
22494  return 0;
22495}
22496_ACEOF
22497rm -f conftest.$ac_objext
22498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22499  (eval $ac_compile) 2>conftest.er1
22500  ac_status=$?
22501  grep -v '^ *+' conftest.er1 >conftest.err
22502  rm -f conftest.er1
22503  cat conftest.err >&5
22504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505  (exit $ac_status); } &&
22506	 { ac_try='test -z "$ac_c_werror_flag"
22507			 || test ! -s conftest.err'
22508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22509  (eval $ac_try) 2>&5
22510  ac_status=$?
22511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512  (exit $ac_status); }; } &&
22513	 { ac_try='test -s conftest.$ac_objext'
22514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515  (eval $ac_try) 2>&5
22516  ac_status=$?
22517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518  (exit $ac_status); }; }; then
22519  ac_lo=0 ac_mid=0
22520  while :; do
22521    cat >conftest.$ac_ext <<_ACEOF
22522/* confdefs.h.  */
22523_ACEOF
22524cat confdefs.h >>conftest.$ac_ext
22525cat >>conftest.$ac_ext <<_ACEOF
22526/* end confdefs.h.  */
22527$ac_includes_default
22528int
22529main ()
22530{
22531static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
22532test_array [0] = 0
22533
22534  ;
22535  return 0;
22536}
22537_ACEOF
22538rm -f conftest.$ac_objext
22539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22540  (eval $ac_compile) 2>conftest.er1
22541  ac_status=$?
22542  grep -v '^ *+' conftest.er1 >conftest.err
22543  rm -f conftest.er1
22544  cat conftest.err >&5
22545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546  (exit $ac_status); } &&
22547	 { ac_try='test -z "$ac_c_werror_flag"
22548			 || test ! -s conftest.err'
22549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550  (eval $ac_try) 2>&5
22551  ac_status=$?
22552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553  (exit $ac_status); }; } &&
22554	 { ac_try='test -s conftest.$ac_objext'
22555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556  (eval $ac_try) 2>&5
22557  ac_status=$?
22558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559  (exit $ac_status); }; }; then
22560  ac_hi=$ac_mid; break
22561else
22562  echo "$as_me: failed program was:" >&5
22563sed 's/^/| /' conftest.$ac_ext >&5
22564
22565ac_lo=`expr $ac_mid + 1`
22566		    if test $ac_lo -le $ac_mid; then
22567		      ac_lo= ac_hi=
22568		      break
22569		    fi
22570		    ac_mid=`expr 2 '*' $ac_mid + 1`
22571fi
22572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22573  done
22574else
22575  echo "$as_me: failed program was:" >&5
22576sed 's/^/| /' conftest.$ac_ext >&5
22577
22578cat >conftest.$ac_ext <<_ACEOF
22579/* confdefs.h.  */
22580_ACEOF
22581cat confdefs.h >>conftest.$ac_ext
22582cat >>conftest.$ac_ext <<_ACEOF
22583/* end confdefs.h.  */
22584$ac_includes_default
22585int
22586main ()
22587{
22588static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
22589test_array [0] = 0
22590
22591  ;
22592  return 0;
22593}
22594_ACEOF
22595rm -f conftest.$ac_objext
22596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22597  (eval $ac_compile) 2>conftest.er1
22598  ac_status=$?
22599  grep -v '^ *+' conftest.er1 >conftest.err
22600  rm -f conftest.er1
22601  cat conftest.err >&5
22602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603  (exit $ac_status); } &&
22604	 { ac_try='test -z "$ac_c_werror_flag"
22605			 || test ! -s conftest.err'
22606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607  (eval $ac_try) 2>&5
22608  ac_status=$?
22609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610  (exit $ac_status); }; } &&
22611	 { ac_try='test -s conftest.$ac_objext'
22612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613  (eval $ac_try) 2>&5
22614  ac_status=$?
22615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616  (exit $ac_status); }; }; then
22617  ac_hi=-1 ac_mid=-1
22618  while :; do
22619    cat >conftest.$ac_ext <<_ACEOF
22620/* confdefs.h.  */
22621_ACEOF
22622cat confdefs.h >>conftest.$ac_ext
22623cat >>conftest.$ac_ext <<_ACEOF
22624/* end confdefs.h.  */
22625$ac_includes_default
22626int
22627main ()
22628{
22629static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
22630test_array [0] = 0
22631
22632  ;
22633  return 0;
22634}
22635_ACEOF
22636rm -f conftest.$ac_objext
22637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22638  (eval $ac_compile) 2>conftest.er1
22639  ac_status=$?
22640  grep -v '^ *+' conftest.er1 >conftest.err
22641  rm -f conftest.er1
22642  cat conftest.err >&5
22643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644  (exit $ac_status); } &&
22645	 { ac_try='test -z "$ac_c_werror_flag"
22646			 || test ! -s conftest.err'
22647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648  (eval $ac_try) 2>&5
22649  ac_status=$?
22650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651  (exit $ac_status); }; } &&
22652	 { ac_try='test -s conftest.$ac_objext'
22653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654  (eval $ac_try) 2>&5
22655  ac_status=$?
22656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657  (exit $ac_status); }; }; then
22658  ac_lo=$ac_mid; break
22659else
22660  echo "$as_me: failed program was:" >&5
22661sed 's/^/| /' conftest.$ac_ext >&5
22662
22663ac_hi=`expr '(' $ac_mid ')' - 1`
22664		       if test $ac_mid -le $ac_hi; then
22665			 ac_lo= ac_hi=
22666			 break
22667		       fi
22668		       ac_mid=`expr 2 '*' $ac_mid`
22669fi
22670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22671  done
22672else
22673  echo "$as_me: failed program was:" >&5
22674sed 's/^/| /' conftest.$ac_ext >&5
22675
22676ac_lo= ac_hi=
22677fi
22678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22679fi
22680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22681# Binary search between lo and hi bounds.
22682while test "x$ac_lo" != "x$ac_hi"; do
22683  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22684  cat >conftest.$ac_ext <<_ACEOF
22685/* confdefs.h.  */
22686_ACEOF
22687cat confdefs.h >>conftest.$ac_ext
22688cat >>conftest.$ac_ext <<_ACEOF
22689/* end confdefs.h.  */
22690$ac_includes_default
22691int
22692main ()
22693{
22694static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
22695test_array [0] = 0
22696
22697  ;
22698  return 0;
22699}
22700_ACEOF
22701rm -f conftest.$ac_objext
22702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22703  (eval $ac_compile) 2>conftest.er1
22704  ac_status=$?
22705  grep -v '^ *+' conftest.er1 >conftest.err
22706  rm -f conftest.er1
22707  cat conftest.err >&5
22708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709  (exit $ac_status); } &&
22710	 { ac_try='test -z "$ac_c_werror_flag"
22711			 || test ! -s conftest.err'
22712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713  (eval $ac_try) 2>&5
22714  ac_status=$?
22715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716  (exit $ac_status); }; } &&
22717	 { ac_try='test -s conftest.$ac_objext'
22718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719  (eval $ac_try) 2>&5
22720  ac_status=$?
22721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722  (exit $ac_status); }; }; then
22723  ac_hi=$ac_mid
22724else
22725  echo "$as_me: failed program was:" >&5
22726sed 's/^/| /' conftest.$ac_ext >&5
22727
22728ac_lo=`expr '(' $ac_mid ')' + 1`
22729fi
22730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22731done
22732case $ac_lo in
22733?*) ac_cv_sizeof_long_int=$ac_lo;;
22734'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
22735See \`config.log' for more details." >&5
22736echo "$as_me: error: cannot compute sizeof (long int), 77
22737See \`config.log' for more details." >&2;}
22738   { (exit 1); exit 1; }; } ;;
22739esac
22740else
22741  if test "$cross_compiling" = yes; then
22742  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22743See \`config.log' for more details." >&5
22744echo "$as_me: error: cannot run test program while cross compiling
22745See \`config.log' for more details." >&2;}
22746   { (exit 1); exit 1; }; }
22747else
22748  cat >conftest.$ac_ext <<_ACEOF
22749/* confdefs.h.  */
22750_ACEOF
22751cat confdefs.h >>conftest.$ac_ext
22752cat >>conftest.$ac_ext <<_ACEOF
22753/* end confdefs.h.  */
22754$ac_includes_default
22755long longval () { return (long) (sizeof (long int)); }
22756unsigned long ulongval () { return (long) (sizeof (long int)); }
22757#include <stdio.h>
22758#include <stdlib.h>
22759int
22760main ()
22761{
22762
22763  FILE *f = fopen ("conftest.val", "w");
22764  if (! f)
22765    exit (1);
22766  if (((long) (sizeof (long int))) < 0)
22767    {
22768      long i = longval ();
22769      if (i != ((long) (sizeof (long int))))
22770	exit (1);
22771      fprintf (f, "%ld\n", i);
22772    }
22773  else
22774    {
22775      unsigned long i = ulongval ();
22776      if (i != ((long) (sizeof (long int))))
22777	exit (1);
22778      fprintf (f, "%lu\n", i);
22779    }
22780  exit (ferror (f) || fclose (f) != 0);
22781
22782  ;
22783  return 0;
22784}
22785_ACEOF
22786rm -f conftest$ac_exeext
22787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22788  (eval $ac_link) 2>&5
22789  ac_status=$?
22790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793  (eval $ac_try) 2>&5
22794  ac_status=$?
22795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796  (exit $ac_status); }; }; then
22797  ac_cv_sizeof_long_int=`cat conftest.val`
22798else
22799  echo "$as_me: program exited with status $ac_status" >&5
22800echo "$as_me: failed program was:" >&5
22801sed 's/^/| /' conftest.$ac_ext >&5
22802
22803( exit $ac_status )
22804{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
22805See \`config.log' for more details." >&5
22806echo "$as_me: error: cannot compute sizeof (long int), 77
22807See \`config.log' for more details." >&2;}
22808   { (exit 1); exit 1; }; }
22809fi
22810rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22811fi
22812fi
22813rm -f conftest.val
22814else
22815  ac_cv_sizeof_long_int=0
22816fi
22817fi
22818echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
22819echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
22820cat >>confdefs.h <<_ACEOF
22821#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
22822_ACEOF
22823
22824
22825
22826
22827    eval "SID_SIZEOF_CHAR=$ac_cv_sizeof_char"
22828
22829
22830
22831    eval "SID_SIZEOF_SHORT_INT=$ac_cv_sizeof_short_int"
22832
22833
22834
22835    eval "SID_SIZEOF_INT=$ac_cv_sizeof_int"
22836
22837
22838
22839    eval "SID_SIZEOF_LONG_INT=$ac_cv_sizeof_long_int"
22840
22841
22842
22843echo "$as_me:$LINENO: checking for strncasecmp" >&5
22844echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
22845if test "${ac_cv_func_strncasecmp+set}" = set; then
22846  echo $ECHO_N "(cached) $ECHO_C" >&6
22847else
22848  cat >conftest.$ac_ext <<_ACEOF
22849/* confdefs.h.  */
22850_ACEOF
22851cat confdefs.h >>conftest.$ac_ext
22852cat >>conftest.$ac_ext <<_ACEOF
22853/* end confdefs.h.  */
22854/* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
22855   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22856#define strncasecmp innocuous_strncasecmp
22857
22858/* System header to define __stub macros and hopefully few prototypes,
22859    which can conflict with char strncasecmp (); below.
22860    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22861    <limits.h> exists even on freestanding compilers.  */
22862
22863#ifdef __STDC__
22864# include <limits.h>
22865#else
22866# include <assert.h>
22867#endif
22868
22869#undef strncasecmp
22870
22871/* Override any gcc2 internal prototype to avoid an error.  */
22872#ifdef __cplusplus
22873extern "C"
22874{
22875#endif
22876/* We use char because int might match the return type of a gcc2
22877   builtin and then its argument prototype would still apply.  */
22878char strncasecmp ();
22879/* The GNU C library defines this for functions which it implements
22880    to always fail with ENOSYS.  Some functions are actually named
22881    something starting with __ and the normal name is an alias.  */
22882#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
22883choke me
22884#else
22885char (*f) () = strncasecmp;
22886#endif
22887#ifdef __cplusplus
22888}
22889#endif
22890
22891int
22892main ()
22893{
22894return f != strncasecmp;
22895  ;
22896  return 0;
22897}
22898_ACEOF
22899rm -f conftest.$ac_objext conftest$ac_exeext
22900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22901  (eval $ac_link) 2>conftest.er1
22902  ac_status=$?
22903  grep -v '^ *+' conftest.er1 >conftest.err
22904  rm -f conftest.er1
22905  cat conftest.err >&5
22906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907  (exit $ac_status); } &&
22908	 { ac_try='test -z "$ac_c_werror_flag"
22909			 || test ! -s conftest.err'
22910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911  (eval $ac_try) 2>&5
22912  ac_status=$?
22913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914  (exit $ac_status); }; } &&
22915	 { ac_try='test -s conftest$ac_exeext'
22916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917  (eval $ac_try) 2>&5
22918  ac_status=$?
22919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920  (exit $ac_status); }; }; then
22921  ac_cv_func_strncasecmp=yes
22922else
22923  echo "$as_me: failed program was:" >&5
22924sed 's/^/| /' conftest.$ac_ext >&5
22925
22926ac_cv_func_strncasecmp=no
22927fi
22928rm -f conftest.err conftest.$ac_objext \
22929      conftest$ac_exeext conftest.$ac_ext
22930fi
22931echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
22932echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
22933if test $ac_cv_func_strncasecmp = yes; then
22934
22935cat >>confdefs.h <<\_ACEOF
22936#define HAVE_STRNCASECMP
22937_ACEOF
22938
22939fi
22940
22941echo "$as_me:$LINENO: checking for strcasecmp" >&5
22942echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
22943if test "${ac_cv_func_strcasecmp+set}" = set; then
22944  echo $ECHO_N "(cached) $ECHO_C" >&6
22945else
22946  cat >conftest.$ac_ext <<_ACEOF
22947/* confdefs.h.  */
22948_ACEOF
22949cat confdefs.h >>conftest.$ac_ext
22950cat >>conftest.$ac_ext <<_ACEOF
22951/* end confdefs.h.  */
22952/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
22953   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22954#define strcasecmp innocuous_strcasecmp
22955
22956/* System header to define __stub macros and hopefully few prototypes,
22957    which can conflict with char strcasecmp (); below.
22958    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22959    <limits.h> exists even on freestanding compilers.  */
22960
22961#ifdef __STDC__
22962# include <limits.h>
22963#else
22964# include <assert.h>
22965#endif
22966
22967#undef strcasecmp
22968
22969/* Override any gcc2 internal prototype to avoid an error.  */
22970#ifdef __cplusplus
22971extern "C"
22972{
22973#endif
22974/* We use char because int might match the return type of a gcc2
22975   builtin and then its argument prototype would still apply.  */
22976char strcasecmp ();
22977/* The GNU C library defines this for functions which it implements
22978    to always fail with ENOSYS.  Some functions are actually named
22979    something starting with __ and the normal name is an alias.  */
22980#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
22981choke me
22982#else
22983char (*f) () = strcasecmp;
22984#endif
22985#ifdef __cplusplus
22986}
22987#endif
22988
22989int
22990main ()
22991{
22992return f != strcasecmp;
22993  ;
22994  return 0;
22995}
22996_ACEOF
22997rm -f conftest.$ac_objext conftest$ac_exeext
22998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22999  (eval $ac_link) 2>conftest.er1
23000  ac_status=$?
23001  grep -v '^ *+' conftest.er1 >conftest.err
23002  rm -f conftest.er1
23003  cat conftest.err >&5
23004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005  (exit $ac_status); } &&
23006	 { ac_try='test -z "$ac_c_werror_flag"
23007			 || test ! -s conftest.err'
23008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23009  (eval $ac_try) 2>&5
23010  ac_status=$?
23011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012  (exit $ac_status); }; } &&
23013	 { ac_try='test -s conftest$ac_exeext'
23014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015  (eval $ac_try) 2>&5
23016  ac_status=$?
23017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018  (exit $ac_status); }; }; then
23019  ac_cv_func_strcasecmp=yes
23020else
23021  echo "$as_me: failed program was:" >&5
23022sed 's/^/| /' conftest.$ac_ext >&5
23023
23024ac_cv_func_strcasecmp=no
23025fi
23026rm -f conftest.err conftest.$ac_objext \
23027      conftest$ac_exeext conftest.$ac_ext
23028fi
23029echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
23030echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
23031if test $ac_cv_func_strcasecmp = yes; then
23032
23033cat >>confdefs.h <<\_ACEOF
23034#define HAVE_STRCASECMP
23035_ACEOF
23036
23037fi
23038
23039
23040echo "$as_me:$LINENO: checking for long file names" >&5
23041echo $ECHO_N "checking for long file names... $ECHO_C" >&6
23042if test "${ac_cv_sys_long_file_names+set}" = set; then
23043  echo $ECHO_N "(cached) $ECHO_C" >&6
23044else
23045  ac_cv_sys_long_file_names=yes
23046# Test for long file names in all the places we know might matter:
23047#      .		the current directory, where building will happen
23048#      $prefix/lib	where we will be installing things
23049#      $exec_prefix/lib	likewise
23050# eval it to expand exec_prefix.
23051#      $TMPDIR		if set, where it might want to write temporary files
23052# if $TMPDIR is not set:
23053#      /tmp		where it might want to write temporary files
23054#      /var/tmp		likewise
23055#      /usr/tmp		likewise
23056if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
23057  ac_tmpdirs=$TMPDIR
23058else
23059  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
23060fi
23061for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
23062  test -d $ac_dir || continue
23063  test -w $ac_dir || continue # It is less confusing to not echo anything here.
23064  ac_xdir=$ac_dir/cf$$
23065  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
23066  ac_tf1=$ac_xdir/conftest9012345
23067  ac_tf2=$ac_xdir/conftest9012346
23068  (echo 1 >$ac_tf1) 2>/dev/null
23069  (echo 2 >$ac_tf2) 2>/dev/null
23070  ac_val=`cat $ac_tf1 2>/dev/null`
23071  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
23072    ac_cv_sys_long_file_names=no
23073    rm -rf $ac_xdir 2>/dev/null
23074    break
23075  fi
23076  rm -rf $ac_xdir 2>/dev/null
23077done
23078fi
23079echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
23080echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
23081if test $ac_cv_sys_long_file_names = yes; then
23082
23083cat >>confdefs.h <<\_ACEOF
23084#define HAVE_LONG_FILE_NAMES 1
23085_ACEOF
23086
23087fi
23088
23089
23090ac_ext=cc
23091ac_cpp='$CXXCPP $CPPFLAGS'
23092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23095
23096
23097
23098if test "${ac_cv_header_sstream+set}" = set; then
23099  echo "$as_me:$LINENO: checking for sstream" >&5
23100echo $ECHO_N "checking for sstream... $ECHO_C" >&6
23101if test "${ac_cv_header_sstream+set}" = set; then
23102  echo $ECHO_N "(cached) $ECHO_C" >&6
23103fi
23104echo "$as_me:$LINENO: result: $ac_cv_header_sstream" >&5
23105echo "${ECHO_T}$ac_cv_header_sstream" >&6
23106else
23107  # Is the header compilable?
23108echo "$as_me:$LINENO: checking sstream usability" >&5
23109echo $ECHO_N "checking sstream usability... $ECHO_C" >&6
23110cat >conftest.$ac_ext <<_ACEOF
23111/* confdefs.h.  */
23112_ACEOF
23113cat confdefs.h >>conftest.$ac_ext
23114cat >>conftest.$ac_ext <<_ACEOF
23115/* end confdefs.h.  */
23116$ac_includes_default
23117#include <sstream>
23118_ACEOF
23119rm -f conftest.$ac_objext
23120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23121  (eval $ac_compile) 2>conftest.er1
23122  ac_status=$?
23123  grep -v '^ *+' conftest.er1 >conftest.err
23124  rm -f conftest.er1
23125  cat conftest.err >&5
23126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127  (exit $ac_status); } &&
23128	 { ac_try='test -z "$ac_cxx_werror_flag"
23129			 || test ! -s conftest.err'
23130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23131  (eval $ac_try) 2>&5
23132  ac_status=$?
23133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134  (exit $ac_status); }; } &&
23135	 { ac_try='test -s conftest.$ac_objext'
23136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137  (eval $ac_try) 2>&5
23138  ac_status=$?
23139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140  (exit $ac_status); }; }; then
23141  ac_header_compiler=yes
23142else
23143  echo "$as_me: failed program was:" >&5
23144sed 's/^/| /' conftest.$ac_ext >&5
23145
23146ac_header_compiler=no
23147fi
23148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23150echo "${ECHO_T}$ac_header_compiler" >&6
23151
23152# Is the header present?
23153echo "$as_me:$LINENO: checking sstream presence" >&5
23154echo $ECHO_N "checking sstream presence... $ECHO_C" >&6
23155cat >conftest.$ac_ext <<_ACEOF
23156/* confdefs.h.  */
23157_ACEOF
23158cat confdefs.h >>conftest.$ac_ext
23159cat >>conftest.$ac_ext <<_ACEOF
23160/* end confdefs.h.  */
23161#include <sstream>
23162_ACEOF
23163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23164  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23165  ac_status=$?
23166  grep -v '^ *+' conftest.er1 >conftest.err
23167  rm -f conftest.er1
23168  cat conftest.err >&5
23169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170  (exit $ac_status); } >/dev/null; then
23171  if test -s conftest.err; then
23172    ac_cpp_err=$ac_cxx_preproc_warn_flag
23173    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23174  else
23175    ac_cpp_err=
23176  fi
23177else
23178  ac_cpp_err=yes
23179fi
23180if test -z "$ac_cpp_err"; then
23181  ac_header_preproc=yes
23182else
23183  echo "$as_me: failed program was:" >&5
23184sed 's/^/| /' conftest.$ac_ext >&5
23185
23186  ac_header_preproc=no
23187fi
23188rm -f conftest.err conftest.$ac_ext
23189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23190echo "${ECHO_T}$ac_header_preproc" >&6
23191
23192# So?  What about this header?
23193case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23194  yes:no: )
23195    { echo "$as_me:$LINENO: WARNING: sstream: accepted by the compiler, rejected by the preprocessor!" >&5
23196echo "$as_me: WARNING: sstream: accepted by the compiler, rejected by the preprocessor!" >&2;}
23197    { echo "$as_me:$LINENO: WARNING: sstream: proceeding with the compiler's result" >&5
23198echo "$as_me: WARNING: sstream: proceeding with the compiler's result" >&2;}
23199    ac_header_preproc=yes
23200    ;;
23201  no:yes:* )
23202    { echo "$as_me:$LINENO: WARNING: sstream: present but cannot be compiled" >&5
23203echo "$as_me: WARNING: sstream: present but cannot be compiled" >&2;}
23204    { echo "$as_me:$LINENO: WARNING: sstream:     check for missing prerequisite headers?" >&5
23205echo "$as_me: WARNING: sstream:     check for missing prerequisite headers?" >&2;}
23206    { echo "$as_me:$LINENO: WARNING: sstream: see the Autoconf documentation" >&5
23207echo "$as_me: WARNING: sstream: see the Autoconf documentation" >&2;}
23208    { echo "$as_me:$LINENO: WARNING: sstream:     section \"Present But Cannot Be Compiled\"" >&5
23209echo "$as_me: WARNING: sstream:     section \"Present But Cannot Be Compiled\"" >&2;}
23210    { echo "$as_me:$LINENO: WARNING: sstream: proceeding with the preprocessor's result" >&5
23211echo "$as_me: WARNING: sstream: proceeding with the preprocessor's result" >&2;}
23212    { echo "$as_me:$LINENO: WARNING: sstream: in the future, the compiler will take precedence" >&5
23213echo "$as_me: WARNING: sstream: in the future, the compiler will take precedence" >&2;}
23214    (
23215      cat <<\_ASBOX
23216## ------------------------------------- ##
23217## Report this to the libsidplay lists.  ##
23218## ------------------------------------- ##
23219_ASBOX
23220    ) |
23221      sed "s/^/$as_me: WARNING:     /" >&2
23222    ;;
23223esac
23224echo "$as_me:$LINENO: checking for sstream" >&5
23225echo $ECHO_N "checking for sstream... $ECHO_C" >&6
23226if test "${ac_cv_header_sstream+set}" = set; then
23227  echo $ECHO_N "(cached) $ECHO_C" >&6
23228else
23229  ac_cv_header_sstream=$ac_header_preproc
23230fi
23231echo "$as_me:$LINENO: result: $ac_cv_header_sstream" >&5
23232echo "${ECHO_T}$ac_cv_header_sstream" >&6
23233
23234fi
23235if test $ac_cv_header_sstream = yes; then
23236
23237cat >>confdefs.h <<\_ACEOF
23238#define HAVE_SSTREAM
23239_ACEOF
23240
23241fi
23242
23243
23244
23245
23246    echo "$as_me:$LINENO: checking for bool" >&5
23247echo $ECHO_N "checking for bool... $ECHO_C" >&6
23248    if test "${test_cv_have_bool+set}" = set; then
23249  echo $ECHO_N "(cached) $ECHO_C" >&6
23250else
23251
23252        cat >conftest.$ac_ext <<_ACEOF
23253/* confdefs.h.  */
23254_ACEOF
23255cat confdefs.h >>conftest.$ac_ext
23256cat >>conftest.$ac_ext <<_ACEOF
23257/* end confdefs.h.  */
23258
23259int
23260main ()
23261{
23262bool aBool = true;
23263  ;
23264  return 0;
23265}
23266_ACEOF
23267rm -f conftest.$ac_objext
23268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23269  (eval $ac_compile) 2>conftest.er1
23270  ac_status=$?
23271  grep -v '^ *+' conftest.er1 >conftest.err
23272  rm -f conftest.er1
23273  cat conftest.err >&5
23274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275  (exit $ac_status); } &&
23276	 { ac_try='test -z "$ac_cxx_werror_flag"
23277			 || test ! -s conftest.err'
23278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279  (eval $ac_try) 2>&5
23280  ac_status=$?
23281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282  (exit $ac_status); }; } &&
23283	 { ac_try='test -s conftest.$ac_objext'
23284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285  (eval $ac_try) 2>&5
23286  ac_status=$?
23287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288  (exit $ac_status); }; }; then
23289  test_cv_have_bool=yes
23290else
23291  echo "$as_me: failed program was:" >&5
23292sed 's/^/| /' conftest.$ac_ext >&5
23293
23294test_cv_have_bool=no
23295
23296fi
23297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23298
23299fi
23300
23301    echo "$as_me:$LINENO: result: $test_cv_have_bool" >&5
23302echo "${ECHO_T}$test_cv_have_bool" >&6
23303    if test "$test_cv_have_bool" = yes; then
23304
23305cat >>confdefs.h <<\_ACEOF
23306#define HAVE_BOOL
23307_ACEOF
23308
23309    fi
23310
23311if test "$test_cv_have_bool" = yes; then
23312
23313    eval "SID_HAVE_BOOL=\"#define SID_HAVE_BOOL\""
23314
23315
23316else
23317
23318    eval "SID_HAVE_BOOL=\"#undef SID_HAVE_BOOL\""
23319
23320
23321fi
23322
23323
23324    echo "$as_me:$LINENO: checking whether exceptions are available" >&5
23325echo $ECHO_N "checking whether exceptions are available... $ECHO_C" >&6
23326    if test "${test_cv_have_exceptions+set}" = set; then
23327  echo $ECHO_N "(cached) $ECHO_C" >&6
23328else
23329
23330        cat >conftest.$ac_ext <<_ACEOF
23331/* confdefs.h.  */
23332_ACEOF
23333cat confdefs.h >>conftest.$ac_ext
23334cat >>conftest.$ac_ext <<_ACEOF
23335/* end confdefs.h.  */
23336#include <new.h>
23337int
23338main ()
23339{
23340char* buf = new(nothrow) char[1024];
23341  ;
23342  return 0;
23343}
23344_ACEOF
23345rm -f conftest.$ac_objext
23346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23347  (eval $ac_compile) 2>conftest.er1
23348  ac_status=$?
23349  grep -v '^ *+' conftest.er1 >conftest.err
23350  rm -f conftest.er1
23351  cat conftest.err >&5
23352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353  (exit $ac_status); } &&
23354	 { ac_try='test -z "$ac_cxx_werror_flag"
23355			 || test ! -s conftest.err'
23356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23357  (eval $ac_try) 2>&5
23358  ac_status=$?
23359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360  (exit $ac_status); }; } &&
23361	 { ac_try='test -s conftest.$ac_objext'
23362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363  (eval $ac_try) 2>&5
23364  ac_status=$?
23365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366  (exit $ac_status); }; }; then
23367  test_cv_have_exceptions=yes
23368else
23369  echo "$as_me: failed program was:" >&5
23370sed 's/^/| /' conftest.$ac_ext >&5
23371
23372test_cv_have_exceptions=no
23373
23374fi
23375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23376
23377fi
23378
23379    echo "$as_me:$LINENO: result: $test_cv_have_exceptions" >&5
23380echo "${ECHO_T}$test_cv_have_exceptions" >&6
23381    if test "$test_cv_have_exceptions" = yes; then
23382
23383cat >>confdefs.h <<\_ACEOF
23384#define HAVE_EXCEPTIONS
23385_ACEOF
23386
23387    fi
23388
23389
23390
23391    echo "$as_me:$LINENO: checking whether standard member ios::binary is available" >&5
23392echo $ECHO_N "checking whether standard member ios::binary is available... $ECHO_C" >&6
23393    if test "${test_cv_have_ios_binary+set}" = set; then
23394  echo $ECHO_N "(cached) $ECHO_C" >&6
23395else
23396
23397        cat >conftest.$ac_ext <<_ACEOF
23398/* confdefs.h.  */
23399_ACEOF
23400cat confdefs.h >>conftest.$ac_ext
23401cat >>conftest.$ac_ext <<_ACEOF
23402/* end confdefs.h.  */
23403#include <fstream.h>
23404int
23405main ()
23406{
23407ifstream myTest(ios::in|ios::binary);
23408  ;
23409  return 0;
23410}
23411_ACEOF
23412rm -f conftest.$ac_objext
23413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23414  (eval $ac_compile) 2>conftest.er1
23415  ac_status=$?
23416  grep -v '^ *+' conftest.er1 >conftest.err
23417  rm -f conftest.er1
23418  cat conftest.err >&5
23419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420  (exit $ac_status); } &&
23421	 { ac_try='test -z "$ac_cxx_werror_flag"
23422			 || test ! -s conftest.err'
23423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424  (eval $ac_try) 2>&5
23425  ac_status=$?
23426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427  (exit $ac_status); }; } &&
23428	 { ac_try='test -s conftest.$ac_objext'
23429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430  (eval $ac_try) 2>&5
23431  ac_status=$?
23432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433  (exit $ac_status); }; }; then
23434  test_cv_have_ios_binary=yes
23435else
23436  echo "$as_me: failed program was:" >&5
23437sed 's/^/| /' conftest.$ac_ext >&5
23438
23439test_cv_have_ios_binary=no
23440
23441fi
23442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23443
23444fi
23445
23446    echo "$as_me:$LINENO: result: $test_cv_have_ios_binary" >&5
23447echo "${ECHO_T}$test_cv_have_ios_binary" >&6
23448    if test "$test_cv_have_ios_binary" = yes; then
23449
23450cat >>confdefs.h <<\_ACEOF
23451#define HAVE_IOS_BIN
23452_ACEOF
23453
23454    fi
23455
23456
23457    echo "$as_me:$LINENO: checking whether standard member ios::openmode is available" >&5
23458echo $ECHO_N "checking whether standard member ios::openmode is available... $ECHO_C" >&6
23459    if test "${test_cv_have_ios_openmode+set}" = set; then
23460  echo $ECHO_N "(cached) $ECHO_C" >&6
23461else
23462
23463        cat >conftest.$ac_ext <<_ACEOF
23464/* confdefs.h.  */
23465_ACEOF
23466cat confdefs.h >>conftest.$ac_ext
23467cat >>conftest.$ac_ext <<_ACEOF
23468/* end confdefs.h.  */
23469#include <fstream.h>
23470             #include <iomanip.h>
23471int
23472main ()
23473{
23474ios::openmode myTest = ios::in;
23475  ;
23476  return 0;
23477}
23478_ACEOF
23479rm -f conftest.$ac_objext
23480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23481  (eval $ac_compile) 2>conftest.er1
23482  ac_status=$?
23483  grep -v '^ *+' conftest.er1 >conftest.err
23484  rm -f conftest.er1
23485  cat conftest.err >&5
23486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487  (exit $ac_status); } &&
23488	 { ac_try='test -z "$ac_cxx_werror_flag"
23489			 || test ! -s conftest.err'
23490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23491  (eval $ac_try) 2>&5
23492  ac_status=$?
23493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494  (exit $ac_status); }; } &&
23495	 { ac_try='test -s conftest.$ac_objext'
23496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23497  (eval $ac_try) 2>&5
23498  ac_status=$?
23499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500  (exit $ac_status); }; }; then
23501  test_cv_have_ios_openmode=yes
23502else
23503  echo "$as_me: failed program was:" >&5
23504sed 's/^/| /' conftest.$ac_ext >&5
23505
23506test_cv_have_ios_openmode=no
23507
23508fi
23509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23510
23511fi
23512
23513    echo "$as_me:$LINENO: result: $test_cv_have_ios_openmode" >&5
23514echo "${ECHO_T}$test_cv_have_ios_openmode" >&6
23515    if test "$test_cv_have_ios_openmode" = yes; then
23516
23517cat >>confdefs.h <<\_ACEOF
23518#define HAVE_IOS_OPENMODE
23519_ACEOF
23520
23521    fi
23522
23523
23524builders=${libdir}/sidplay/builders
23525
23526# Check whether --with-sidbuilders or --without-sidbuilders was given.
23527if test "${with_sidbuilders+set}" = set; then
23528  withval="$with_sidbuilders"
23529  builders="$withval"
23530
23531fi;
23532
23533
23534
23535
23536
23537CXXFLAGS="$CXXFLAGS -DHAVE_UNIX -I\$(top_srcdir)/include \
23538-I\$(top_srcdir)/include/sidplay"
23539ACLOCAL_AMFLAGS="-I unix"
23540
23541DEFAULT_INCLUDES=
23542
23543
23544                                                                                                                                                                ac_config_files="$ac_config_files Makefile include/Makefile include/sidplay/Makefile src/Makefile src/c64/Makefile src/mos6510/Makefile src/mos6526/Makefile src/mos656x/Makefile src/sid6526/Makefile src/sidtune/Makefile src/xsid/Makefile unix/Makefile unix/libsidplay2.spec unix/libsidplay2.qpg unix/libsidplay2.pc unix/sidconfig.h"
23545cat >confcache <<\_ACEOF
23546# This file is a shell script that caches the results of configure
23547# tests run on this system so they can be shared between configure
23548# scripts and configure runs, see configure's option --config-cache.
23549# It is not useful on other systems.  If it contains results you don't
23550# want to keep, you may remove or edit it.
23551#
23552# config.status only pays attention to the cache file if you give it
23553# the --recheck option to rerun configure.
23554#
23555# `ac_cv_env_foo' variables (set or unset) will be overridden when
23556# loading this file, other *unset* `ac_cv_foo' will be assigned the
23557# following values.
23558
23559_ACEOF
23560
23561# The following way of writing the cache mishandles newlines in values,
23562# but we know of no workaround that is simple, portable, and efficient.
23563# So, don't put newlines in cache variables' values.
23564# Ultrix sh set writes to stderr and can't be redirected directly,
23565# and sets the high bit in the cache file unless we assign to the vars.
23566{
23567  (set) 2>&1 |
23568    case `(ac_space=' '; set | grep ac_space) 2>&1` in
23569    *ac_space=\ *)
23570      # `set' does not quote correctly, so add quotes (double-quote
23571      # substitution turns \\\\ into \\, and sed turns \\ into \).
23572      sed -n \
23573	"s/'/'\\\\''/g;
23574	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23575      ;;
23576    *)
23577      # `set' quotes correctly as required by POSIX, so do not add quotes.
23578      sed -n \
23579	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23580      ;;
23581    esac;
23582} |
23583  sed '
23584     t clear
23585     : clear
23586     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23587     t end
23588     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23589     : end' >>confcache
23590if diff $cache_file confcache >/dev/null 2>&1; then :; else
23591  if test -w $cache_file; then
23592    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23593    cat confcache >$cache_file
23594  else
23595    echo "not updating unwritable cache $cache_file"
23596  fi
23597fi
23598rm -f confcache
23599
23600test "x$prefix" = xNONE && prefix=$ac_default_prefix
23601# Let make expand exec_prefix.
23602test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23603
23604# VPATH may cause trouble with some makes, so we remove $(srcdir),
23605# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23606# trailing colons and then remove the whole line if VPATH becomes empty
23607# (actually we leave an empty line to preserve line numbers).
23608if test "x$srcdir" = x.; then
23609  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23610s/:*\$(srcdir):*/:/;
23611s/:*\${srcdir}:*/:/;
23612s/:*@srcdir@:*/:/;
23613s/^\([^=]*=[	 ]*\):*/\1/;
23614s/:*$//;
23615s/^[^=]*=[	 ]*$//;
23616}'
23617fi
23618
23619DEFS=-DHAVE_CONFIG_H
23620
23621ac_libobjs=
23622ac_ltlibobjs=
23623for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23624  # 1. Remove the extension, and $U if already installed.
23625  ac_i=`echo "$ac_i" |
23626	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23627  # 2. Add them.
23628  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23629  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23630done
23631LIBOBJS=$ac_libobjs
23632
23633LTLIBOBJS=$ac_ltlibobjs
23634
23635
23636if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23637  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23638Usually this means the macro was only invoked conditionally." >&5
23639echo "$as_me: error: conditional \"AMDEP\" was never defined.
23640Usually this means the macro was only invoked conditionally." >&2;}
23641   { (exit 1); exit 1; }; }
23642fi
23643if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23644  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23645Usually this means the macro was only invoked conditionally." >&5
23646echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23647Usually this means the macro was only invoked conditionally." >&2;}
23648   { (exit 1); exit 1; }; }
23649fi
23650if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23651  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23652Usually this means the macro was only invoked conditionally." >&5
23653echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23654Usually this means the macro was only invoked conditionally." >&2;}
23655   { (exit 1); exit 1; }; }
23656fi
23657
23658: ${CONFIG_STATUS=./config.status}
23659ac_clean_files_save=$ac_clean_files
23660ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23661{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23662echo "$as_me: creating $CONFIG_STATUS" >&6;}
23663cat >$CONFIG_STATUS <<_ACEOF
23664#! $SHELL
23665# Generated by $as_me.
23666# Run this file to recreate the current configuration.
23667# Compiler output produced by configure, useful for debugging
23668# configure, is in config.log if it exists.
23669
23670debug=false
23671ac_cs_recheck=false
23672ac_cs_silent=false
23673SHELL=\${CONFIG_SHELL-$SHELL}
23674_ACEOF
23675
23676cat >>$CONFIG_STATUS <<\_ACEOF
23677## --------------------- ##
23678## M4sh Initialization.  ##
23679## --------------------- ##
23680
23681# Be Bourne compatible
23682if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23683  emulate sh
23684  NULLCMD=:
23685  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23686  # is contrary to our usage.  Disable this feature.
23687  alias -g '${1+"$@"}'='"$@"'
23688elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23689  set -o posix
23690fi
23691DUALCASE=1; export DUALCASE # for MKS sh
23692
23693# Support unset when possible.
23694if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23695  as_unset=unset
23696else
23697  as_unset=false
23698fi
23699
23700
23701# Work around bugs in pre-3.0 UWIN ksh.
23702$as_unset ENV MAIL MAILPATH
23703PS1='$ '
23704PS2='> '
23705PS4='+ '
23706
23707# NLS nuisances.
23708for as_var in \
23709  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23710  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23711  LC_TELEPHONE LC_TIME
23712do
23713  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23714    eval $as_var=C; export $as_var
23715  else
23716    $as_unset $as_var
23717  fi
23718done
23719
23720# Required to use basename.
23721if expr a : '\(a\)' >/dev/null 2>&1; then
23722  as_expr=expr
23723else
23724  as_expr=false
23725fi
23726
23727if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23728  as_basename=basename
23729else
23730  as_basename=false
23731fi
23732
23733
23734# Name of the executable.
23735as_me=`$as_basename "$0" ||
23736$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23737	 X"$0" : 'X\(//\)$' \| \
23738	 X"$0" : 'X\(/\)$' \| \
23739	 .     : '\(.\)' 2>/dev/null ||
23740echo X/"$0" |
23741    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23742  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23743  	  /^X\/\(\/\).*/{ s//\1/; q; }
23744  	  s/.*/./; q'`
23745
23746
23747# PATH needs CR, and LINENO needs CR and PATH.
23748# Avoid depending upon Character Ranges.
23749as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23750as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23751as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23752as_cr_digits='0123456789'
23753as_cr_alnum=$as_cr_Letters$as_cr_digits
23754
23755# The user is always right.
23756if test "${PATH_SEPARATOR+set}" != set; then
23757  echo "#! /bin/sh" >conf$$.sh
23758  echo  "exit 0"   >>conf$$.sh
23759  chmod +x conf$$.sh
23760  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23761    PATH_SEPARATOR=';'
23762  else
23763    PATH_SEPARATOR=:
23764  fi
23765  rm -f conf$$.sh
23766fi
23767
23768
23769  as_lineno_1=$LINENO
23770  as_lineno_2=$LINENO
23771  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23772  test "x$as_lineno_1" != "x$as_lineno_2" &&
23773  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23774  # Find who we are.  Look in the path if we contain no path at all
23775  # relative or not.
23776  case $0 in
23777    *[\\/]* ) as_myself=$0 ;;
23778    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23779for as_dir in $PATH
23780do
23781  IFS=$as_save_IFS
23782  test -z "$as_dir" && as_dir=.
23783  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23784done
23785
23786       ;;
23787  esac
23788  # We did not find ourselves, most probably we were run as `sh COMMAND'
23789  # in which case we are not to be found in the path.
23790  if test "x$as_myself" = x; then
23791    as_myself=$0
23792  fi
23793  if test ! -f "$as_myself"; then
23794    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23795echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23796   { (exit 1); exit 1; }; }
23797  fi
23798  case $CONFIG_SHELL in
23799  '')
23800    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23801for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23802do
23803  IFS=$as_save_IFS
23804  test -z "$as_dir" && as_dir=.
23805  for as_base in sh bash ksh sh5; do
23806	 case $as_dir in
23807	 /*)
23808	   if ("$as_dir/$as_base" -c '
23809  as_lineno_1=$LINENO
23810  as_lineno_2=$LINENO
23811  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23812  test "x$as_lineno_1" != "x$as_lineno_2" &&
23813  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23814	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23815	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23816	     CONFIG_SHELL=$as_dir/$as_base
23817	     export CONFIG_SHELL
23818	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23819	   fi;;
23820	 esac
23821       done
23822done
23823;;
23824  esac
23825
23826  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23827  # uniformly replaced by the line number.  The first 'sed' inserts a
23828  # line-number line before each line; the second 'sed' does the real
23829  # work.  The second script uses 'N' to pair each line-number line
23830  # with the numbered line, and appends trailing '-' during
23831  # substitution so that $LINENO is not a special case at line end.
23832  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23833  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23834  sed '=' <$as_myself |
23835    sed '
23836      N
23837      s,$,-,
23838      : loop
23839      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23840      t loop
23841      s,-$,,
23842      s,^['$as_cr_digits']*\n,,
23843    ' >$as_me.lineno &&
23844  chmod +x $as_me.lineno ||
23845    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23846echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23847   { (exit 1); exit 1; }; }
23848
23849  # Don't try to exec as it changes $[0], causing all sort of problems
23850  # (the dirname of $[0] is not the place where we might find the
23851  # original and so on.  Autoconf is especially sensible to this).
23852  . ./$as_me.lineno
23853  # Exit status is that of the last command.
23854  exit
23855}
23856
23857
23858case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23859  *c*,-n*) ECHO_N= ECHO_C='
23860' ECHO_T='	' ;;
23861  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23862  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23863esac
23864
23865if expr a : '\(a\)' >/dev/null 2>&1; then
23866  as_expr=expr
23867else
23868  as_expr=false
23869fi
23870
23871rm -f conf$$ conf$$.exe conf$$.file
23872echo >conf$$.file
23873if ln -s conf$$.file conf$$ 2>/dev/null; then
23874  # We could just check for DJGPP; but this test a) works b) is more generic
23875  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23876  if test -f conf$$.exe; then
23877    # Don't use ln at all; we don't have any links
23878    as_ln_s='cp -p'
23879  else
23880    as_ln_s='ln -s'
23881  fi
23882elif ln conf$$.file conf$$ 2>/dev/null; then
23883  as_ln_s=ln
23884else
23885  as_ln_s='cp -p'
23886fi
23887rm -f conf$$ conf$$.exe conf$$.file
23888
23889if mkdir -p . 2>/dev/null; then
23890  as_mkdir_p=:
23891else
23892  test -d ./-p && rmdir ./-p
23893  as_mkdir_p=false
23894fi
23895
23896as_executable_p="test -f"
23897
23898# Sed expression to map a string onto a valid CPP name.
23899as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23900
23901# Sed expression to map a string onto a valid variable name.
23902as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23903
23904
23905# IFS
23906# We need space, tab and new line, in precisely that order.
23907as_nl='
23908'
23909IFS=" 	$as_nl"
23910
23911# CDPATH.
23912$as_unset CDPATH
23913
23914exec 6>&1
23915
23916# Open the log real soon, to keep \$[0] and so on meaningful, and to
23917# report actual input values of CONFIG_FILES etc. instead of their
23918# values after options handling.  Logging --version etc. is OK.
23919exec 5>>config.log
23920{
23921  echo
23922  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23923## Running $as_me. ##
23924_ASBOX
23925} >&5
23926cat >&5 <<_CSEOF
23927
23928This file was extended by libsidplay $as_me 2.1.1, which was
23929generated by GNU Autoconf 2.59.  Invocation command line was
23930
23931  CONFIG_FILES    = $CONFIG_FILES
23932  CONFIG_HEADERS  = $CONFIG_HEADERS
23933  CONFIG_LINKS    = $CONFIG_LINKS
23934  CONFIG_COMMANDS = $CONFIG_COMMANDS
23935  $ $0 $@
23936
23937_CSEOF
23938echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23939echo >&5
23940_ACEOF
23941
23942# Files that config.status was made for.
23943if test -n "$ac_config_files"; then
23944  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23945fi
23946
23947if test -n "$ac_config_headers"; then
23948  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23949fi
23950
23951if test -n "$ac_config_links"; then
23952  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23953fi
23954
23955if test -n "$ac_config_commands"; then
23956  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23957fi
23958
23959cat >>$CONFIG_STATUS <<\_ACEOF
23960
23961ac_cs_usage="\
23962\`$as_me' instantiates files from templates according to the
23963current configuration.
23964
23965Usage: $0 [OPTIONS] [FILE]...
23966
23967  -h, --help       print this help, then exit
23968  -V, --version    print version number, then exit
23969  -q, --quiet      do not print progress messages
23970  -d, --debug      don't remove temporary files
23971      --recheck    update $as_me by reconfiguring in the same conditions
23972  --file=FILE[:TEMPLATE]
23973		   instantiate the configuration file FILE
23974  --header=FILE[:TEMPLATE]
23975		   instantiate the configuration header FILE
23976
23977Configuration files:
23978$config_files
23979
23980Configuration headers:
23981$config_headers
23982
23983Configuration commands:
23984$config_commands
23985
23986Report bugs to <bug-autoconf@gnu.org>."
23987_ACEOF
23988
23989cat >>$CONFIG_STATUS <<_ACEOF
23990ac_cs_version="\\
23991libsidplay config.status 2.1.1
23992configured by $0, generated by GNU Autoconf 2.59,
23993  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23994
23995Copyright (C) 2003 Free Software Foundation, Inc.
23996This config.status script is free software; the Free Software Foundation
23997gives unlimited permission to copy, distribute and modify it."
23998srcdir=$srcdir
23999INSTALL="$INSTALL"
24000_ACEOF
24001
24002cat >>$CONFIG_STATUS <<\_ACEOF
24003# If no file are specified by the user, then we need to provide default
24004# value.  By we need to know if files were specified by the user.
24005ac_need_defaults=:
24006while test $# != 0
24007do
24008  case $1 in
24009  --*=*)
24010    ac_option=`expr "x$1" : 'x\([^=]*\)='`
24011    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24012    ac_shift=:
24013    ;;
24014  -*)
24015    ac_option=$1
24016    ac_optarg=$2
24017    ac_shift=shift
24018    ;;
24019  *) # This is not an option, so the user has probably given explicit
24020     # arguments.
24021     ac_option=$1
24022     ac_need_defaults=false;;
24023  esac
24024
24025  case $ac_option in
24026  # Handling of the options.
24027_ACEOF
24028cat >>$CONFIG_STATUS <<\_ACEOF
24029  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24030    ac_cs_recheck=: ;;
24031  --version | --vers* | -V )
24032    echo "$ac_cs_version"; exit 0 ;;
24033  --he | --h)
24034    # Conflict between --help and --header
24035    { { echo "$as_me:$LINENO: error: ambiguous option: $1
24036Try \`$0 --help' for more information." >&5
24037echo "$as_me: error: ambiguous option: $1
24038Try \`$0 --help' for more information." >&2;}
24039   { (exit 1); exit 1; }; };;
24040  --help | --hel | -h )
24041    echo "$ac_cs_usage"; exit 0 ;;
24042  --debug | --d* | -d )
24043    debug=: ;;
24044  --file | --fil | --fi | --f )
24045    $ac_shift
24046    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24047    ac_need_defaults=false;;
24048  --header | --heade | --head | --hea )
24049    $ac_shift
24050    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24051    ac_need_defaults=false;;
24052  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24053  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24054    ac_cs_silent=: ;;
24055
24056  # This is an error.
24057  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24058Try \`$0 --help' for more information." >&5
24059echo "$as_me: error: unrecognized option: $1
24060Try \`$0 --help' for more information." >&2;}
24061   { (exit 1); exit 1; }; } ;;
24062
24063  *) ac_config_targets="$ac_config_targets $1" ;;
24064
24065  esac
24066  shift
24067done
24068
24069ac_configure_extra_args=
24070
24071if $ac_cs_silent; then
24072  exec 6>/dev/null
24073  ac_configure_extra_args="$ac_configure_extra_args --silent"
24074fi
24075
24076_ACEOF
24077cat >>$CONFIG_STATUS <<_ACEOF
24078if \$ac_cs_recheck; then
24079  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24080  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24081fi
24082
24083_ACEOF
24084
24085cat >>$CONFIG_STATUS <<_ACEOF
24086#
24087# INIT-COMMANDS section.
24088#
24089
24090AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24091
24092_ACEOF
24093
24094
24095
24096cat >>$CONFIG_STATUS <<\_ACEOF
24097for ac_config_target in $ac_config_targets
24098do
24099  case "$ac_config_target" in
24100  # Handling of arguments.
24101  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24102  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24103  "include/sidplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/sidplay/Makefile" ;;
24104  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24105  "src/c64/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/c64/Makefile" ;;
24106  "src/mos6510/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mos6510/Makefile" ;;
24107  "src/mos6526/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mos6526/Makefile" ;;
24108  "src/mos656x/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mos656x/Makefile" ;;
24109  "src/sid6526/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sid6526/Makefile" ;;
24110  "src/sidtune/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sidtune/Makefile" ;;
24111  "src/xsid/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/xsid/Makefile" ;;
24112  "unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES unix/Makefile" ;;
24113  "unix/libsidplay2.spec" ) CONFIG_FILES="$CONFIG_FILES unix/libsidplay2.spec" ;;
24114  "unix/libsidplay2.qpg" ) CONFIG_FILES="$CONFIG_FILES unix/libsidplay2.qpg" ;;
24115  "unix/libsidplay2.pc" ) CONFIG_FILES="$CONFIG_FILES unix/libsidplay2.pc" ;;
24116  "unix/sidconfig.h" ) CONFIG_FILES="$CONFIG_FILES unix/sidconfig.h" ;;
24117  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24118  "unix/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS unix/config.h" ;;
24119  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24120echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24121   { (exit 1); exit 1; }; };;
24122  esac
24123done
24124
24125# If the user did not use the arguments to specify the items to instantiate,
24126# then the envvar interface is used.  Set only those that are not.
24127# We use the long form for the default assignment because of an extremely
24128# bizarre bug on SunOS 4.1.3.
24129if $ac_need_defaults; then
24130  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24131  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24132  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24133fi
24134
24135# Have a temporary directory for convenience.  Make it in the build tree
24136# simply because there is no reason to put it here, and in addition,
24137# creating and moving files from /tmp can sometimes cause problems.
24138# Create a temporary directory, and hook for its removal unless debugging.
24139$debug ||
24140{
24141  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24142  trap '{ (exit 1); exit 1; }' 1 2 13 15
24143}
24144
24145# Create a (secure) tmp directory for tmp files.
24146
24147{
24148  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24149  test -n "$tmp" && test -d "$tmp"
24150}  ||
24151{
24152  tmp=./confstat$$-$RANDOM
24153  (umask 077 && mkdir $tmp)
24154} ||
24155{
24156   echo "$me: cannot create a temporary directory in ." >&2
24157   { (exit 1); exit 1; }
24158}
24159
24160_ACEOF
24161
24162cat >>$CONFIG_STATUS <<_ACEOF
24163
24164#
24165# CONFIG_FILES section.
24166#
24167
24168# No need to generate the scripts if there are no CONFIG_FILES.
24169# This happens for instance when ./config.status config.h
24170if test -n "\$CONFIG_FILES"; then
24171  # Protect against being on the right side of a sed subst in config.status.
24172  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24173   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24174s,@SHELL@,$SHELL,;t t
24175s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24176s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24177s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24178s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24179s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24180s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24181s,@exec_prefix@,$exec_prefix,;t t
24182s,@prefix@,$prefix,;t t
24183s,@program_transform_name@,$program_transform_name,;t t
24184s,@bindir@,$bindir,;t t
24185s,@sbindir@,$sbindir,;t t
24186s,@libexecdir@,$libexecdir,;t t
24187s,@datadir@,$datadir,;t t
24188s,@sysconfdir@,$sysconfdir,;t t
24189s,@sharedstatedir@,$sharedstatedir,;t t
24190s,@localstatedir@,$localstatedir,;t t
24191s,@libdir@,$libdir,;t t
24192s,@includedir@,$includedir,;t t
24193s,@oldincludedir@,$oldincludedir,;t t
24194s,@infodir@,$infodir,;t t
24195s,@mandir@,$mandir,;t t
24196s,@build_alias@,$build_alias,;t t
24197s,@host_alias@,$host_alias,;t t
24198s,@target_alias@,$target_alias,;t t
24199s,@DEFS@,$DEFS,;t t
24200s,@ECHO_C@,$ECHO_C,;t t
24201s,@ECHO_N@,$ECHO_N,;t t
24202s,@ECHO_T@,$ECHO_T,;t t
24203s,@LIBS@,$LIBS,;t t
24204s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24205s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24206s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24207s,@CYGPATH_W@,$CYGPATH_W,;t t
24208s,@PACKAGE@,$PACKAGE,;t t
24209s,@VERSION@,$VERSION,;t t
24210s,@ACLOCAL@,$ACLOCAL,;t t
24211s,@AUTOCONF@,$AUTOCONF,;t t
24212s,@AUTOMAKE@,$AUTOMAKE,;t t
24213s,@AUTOHEADER@,$AUTOHEADER,;t t
24214s,@MAKEINFO@,$MAKEINFO,;t t
24215s,@AMTAR@,$AMTAR,;t t
24216s,@install_sh@,$install_sh,;t t
24217s,@STRIP@,$STRIP,;t t
24218s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24219s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24220s,@mkdir_p@,$mkdir_p,;t t
24221s,@AWK@,$AWK,;t t
24222s,@SET_MAKE@,$SET_MAKE,;t t
24223s,@am__leading_dot@,$am__leading_dot,;t t
24224s,@LIBVERSION@,$LIBVERSION,;t t
24225s,@build@,$build,;t t
24226s,@build_cpu@,$build_cpu,;t t
24227s,@build_vendor@,$build_vendor,;t t
24228s,@build_os@,$build_os,;t t
24229s,@host@,$host,;t t
24230s,@host_cpu@,$host_cpu,;t t
24231s,@host_vendor@,$host_vendor,;t t
24232s,@host_os@,$host_os,;t t
24233s,@CC@,$CC,;t t
24234s,@CFLAGS@,$CFLAGS,;t t
24235s,@LDFLAGS@,$LDFLAGS,;t t
24236s,@CPPFLAGS@,$CPPFLAGS,;t t
24237s,@ac_ct_CC@,$ac_ct_CC,;t t
24238s,@EXEEXT@,$EXEEXT,;t t
24239s,@OBJEXT@,$OBJEXT,;t t
24240s,@DEPDIR@,$DEPDIR,;t t
24241s,@am__include@,$am__include,;t t
24242s,@am__quote@,$am__quote,;t t
24243s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24244s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24245s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24246s,@CCDEPMODE@,$CCDEPMODE,;t t
24247s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24248s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24249s,@CXX@,$CXX,;t t
24250s,@CXXFLAGS@,$CXXFLAGS,;t t
24251s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24252s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24253s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24254s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24255s,@EGREP@,$EGREP,;t t
24256s,@LN_S@,$LN_S,;t t
24257s,@ECHO@,$ECHO,;t t
24258s,@AR@,$AR,;t t
24259s,@ac_ct_AR@,$ac_ct_AR,;t t
24260s,@RANLIB@,$RANLIB,;t t
24261s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24262s,@DLLTOOL@,$DLLTOOL,;t t
24263s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24264s,@AS@,$AS,;t t
24265s,@ac_ct_AS@,$ac_ct_AS,;t t
24266s,@OBJDUMP@,$OBJDUMP,;t t
24267s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
24268s,@CPP@,$CPP,;t t
24269s,@CXXCPP@,$CXXCPP,;t t
24270s,@F77@,$F77,;t t
24271s,@FFLAGS@,$FFLAGS,;t t
24272s,@ac_ct_F77@,$ac_ct_F77,;t t
24273s,@LIBTOOL@,$LIBTOOL,;t t
24274s,@SID_HAVE_STDBOOL_H@,$SID_HAVE_STDBOOL_H,;t t
24275s,@SID_WORDS_ENDIANESS@,$SID_WORDS_ENDIANESS,;t t
24276s,@SID_SIZEOF_CHAR@,$SID_SIZEOF_CHAR,;t t
24277s,@SID_SIZEOF_SHORT_INT@,$SID_SIZEOF_SHORT_INT,;t t
24278s,@SID_SIZEOF_INT@,$SID_SIZEOF_INT,;t t
24279s,@SID_SIZEOF_LONG_INT@,$SID_SIZEOF_LONG_INT,;t t
24280s,@SID_HAVE_BOOL@,$SID_HAVE_BOOL,;t t
24281s,@builders@,$builders,;t t
24282s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
24283s,@DEFAULT_INCLUDES@,$DEFAULT_INCLUDES,;t t
24284s,@LIBOBJS@,$LIBOBJS,;t t
24285s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24286CEOF
24287
24288_ACEOF
24289
24290  cat >>$CONFIG_STATUS <<\_ACEOF
24291  # Split the substitutions into bite-sized pieces for seds with
24292  # small command number limits, like on Digital OSF/1 and HP-UX.
24293  ac_max_sed_lines=48
24294  ac_sed_frag=1 # Number of current file.
24295  ac_beg=1 # First line for current file.
24296  ac_end=$ac_max_sed_lines # Line after last line for current file.
24297  ac_more_lines=:
24298  ac_sed_cmds=
24299  while $ac_more_lines; do
24300    if test $ac_beg -gt 1; then
24301      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24302    else
24303      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24304    fi
24305    if test ! -s $tmp/subs.frag; then
24306      ac_more_lines=false
24307    else
24308      # The purpose of the label and of the branching condition is to
24309      # speed up the sed processing (if there are no `@' at all, there
24310      # is no need to browse any of the substitutions).
24311      # These are the two extra sed commands mentioned above.
24312      (echo ':t
24313  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24314      if test -z "$ac_sed_cmds"; then
24315	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24316      else
24317	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24318      fi
24319      ac_sed_frag=`expr $ac_sed_frag + 1`
24320      ac_beg=$ac_end
24321      ac_end=`expr $ac_end + $ac_max_sed_lines`
24322    fi
24323  done
24324  if test -z "$ac_sed_cmds"; then
24325    ac_sed_cmds=cat
24326  fi
24327fi # test -n "$CONFIG_FILES"
24328
24329_ACEOF
24330cat >>$CONFIG_STATUS <<\_ACEOF
24331for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24332  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24333  case $ac_file in
24334  - | *:- | *:-:* ) # input from stdin
24335	cat >$tmp/stdin
24336	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24337	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24338  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24339	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24340  * )   ac_file_in=$ac_file.in ;;
24341  esac
24342
24343  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24344  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24345$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24346	 X"$ac_file" : 'X\(//\)[^/]' \| \
24347	 X"$ac_file" : 'X\(//\)$' \| \
24348	 X"$ac_file" : 'X\(/\)' \| \
24349	 .     : '\(.\)' 2>/dev/null ||
24350echo X"$ac_file" |
24351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24352  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24353  	  /^X\(\/\/\)$/{ s//\1/; q; }
24354  	  /^X\(\/\).*/{ s//\1/; q; }
24355  	  s/.*/./; q'`
24356  { if $as_mkdir_p; then
24357    mkdir -p "$ac_dir"
24358  else
24359    as_dir="$ac_dir"
24360    as_dirs=
24361    while test ! -d "$as_dir"; do
24362      as_dirs="$as_dir $as_dirs"
24363      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24364$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24365	 X"$as_dir" : 'X\(//\)[^/]' \| \
24366	 X"$as_dir" : 'X\(//\)$' \| \
24367	 X"$as_dir" : 'X\(/\)' \| \
24368	 .     : '\(.\)' 2>/dev/null ||
24369echo X"$as_dir" |
24370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24371  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24372  	  /^X\(\/\/\)$/{ s//\1/; q; }
24373  	  /^X\(\/\).*/{ s//\1/; q; }
24374  	  s/.*/./; q'`
24375    done
24376    test ! -n "$as_dirs" || mkdir $as_dirs
24377  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24378echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24379   { (exit 1); exit 1; }; }; }
24380
24381  ac_builddir=.
24382
24383if test "$ac_dir" != .; then
24384  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24385  # A "../" for each directory in $ac_dir_suffix.
24386  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24387else
24388  ac_dir_suffix= ac_top_builddir=
24389fi
24390
24391case $srcdir in
24392  .)  # No --srcdir option.  We are building in place.
24393    ac_srcdir=.
24394    if test -z "$ac_top_builddir"; then
24395       ac_top_srcdir=.
24396    else
24397       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24398    fi ;;
24399  [\\/]* | ?:[\\/]* )  # Absolute path.
24400    ac_srcdir=$srcdir$ac_dir_suffix;
24401    ac_top_srcdir=$srcdir ;;
24402  *) # Relative path.
24403    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24404    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24405esac
24406
24407# Do not use `cd foo && pwd` to compute absolute paths, because
24408# the directories may not exist.
24409case `pwd` in
24410.) ac_abs_builddir="$ac_dir";;
24411*)
24412  case "$ac_dir" in
24413  .) ac_abs_builddir=`pwd`;;
24414  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24415  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24416  esac;;
24417esac
24418case $ac_abs_builddir in
24419.) ac_abs_top_builddir=${ac_top_builddir}.;;
24420*)
24421  case ${ac_top_builddir}. in
24422  .) ac_abs_top_builddir=$ac_abs_builddir;;
24423  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24424  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24425  esac;;
24426esac
24427case $ac_abs_builddir in
24428.) ac_abs_srcdir=$ac_srcdir;;
24429*)
24430  case $ac_srcdir in
24431  .) ac_abs_srcdir=$ac_abs_builddir;;
24432  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24433  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24434  esac;;
24435esac
24436case $ac_abs_builddir in
24437.) ac_abs_top_srcdir=$ac_top_srcdir;;
24438*)
24439  case $ac_top_srcdir in
24440  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24441  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24442  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24443  esac;;
24444esac
24445
24446
24447  case $INSTALL in
24448  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24449  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24450  esac
24451
24452  if test x"$ac_file" != x-; then
24453    { echo "$as_me:$LINENO: creating $ac_file" >&5
24454echo "$as_me: creating $ac_file" >&6;}
24455    rm -f "$ac_file"
24456  fi
24457  # Let's still pretend it is `configure' which instantiates (i.e., don't
24458  # use $as_me), people would be surprised to read:
24459  #    /* config.h.  Generated by config.status.  */
24460  if test x"$ac_file" = x-; then
24461    configure_input=
24462  else
24463    configure_input="$ac_file.  "
24464  fi
24465  configure_input=$configure_input"Generated from `echo $ac_file_in |
24466				     sed 's,.*/,,'` by configure."
24467
24468  # First look for the input files in the build tree, otherwise in the
24469  # src tree.
24470  ac_file_inputs=`IFS=:
24471    for f in $ac_file_in; do
24472      case $f in
24473      -) echo $tmp/stdin ;;
24474      [\\/$]*)
24475	 # Absolute (can't be DOS-style, as IFS=:)
24476	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24477echo "$as_me: error: cannot find input file: $f" >&2;}
24478   { (exit 1); exit 1; }; }
24479	 echo "$f";;
24480      *) # Relative
24481	 if test -f "$f"; then
24482	   # Build tree
24483	   echo "$f"
24484	 elif test -f "$srcdir/$f"; then
24485	   # Source tree
24486	   echo "$srcdir/$f"
24487	 else
24488	   # /dev/null tree
24489	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24490echo "$as_me: error: cannot find input file: $f" >&2;}
24491   { (exit 1); exit 1; }; }
24492	 fi;;
24493      esac
24494    done` || { (exit 1); exit 1; }
24495_ACEOF
24496cat >>$CONFIG_STATUS <<_ACEOF
24497  sed "$ac_vpsub
24498$extrasub
24499_ACEOF
24500cat >>$CONFIG_STATUS <<\_ACEOF
24501:t
24502/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24503s,@configure_input@,$configure_input,;t t
24504s,@srcdir@,$ac_srcdir,;t t
24505s,@abs_srcdir@,$ac_abs_srcdir,;t t
24506s,@top_srcdir@,$ac_top_srcdir,;t t
24507s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24508s,@builddir@,$ac_builddir,;t t
24509s,@abs_builddir@,$ac_abs_builddir,;t t
24510s,@top_builddir@,$ac_top_builddir,;t t
24511s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24512s,@INSTALL@,$ac_INSTALL,;t t
24513" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24514  rm -f $tmp/stdin
24515  if test x"$ac_file" != x-; then
24516    mv $tmp/out $ac_file
24517  else
24518    cat $tmp/out
24519    rm -f $tmp/out
24520  fi
24521
24522done
24523_ACEOF
24524cat >>$CONFIG_STATUS <<\_ACEOF
24525
24526#
24527# CONFIG_HEADER section.
24528#
24529
24530# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24531# NAME is the cpp macro being defined and VALUE is the value it is being given.
24532#
24533# ac_d sets the value in "#define NAME VALUE" lines.
24534ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
24535ac_dB='[	 ].*$,\1#\2'
24536ac_dC=' '
24537ac_dD=',;t'
24538# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24539ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
24540ac_uB='$,\1#\2define\3'
24541ac_uC=' '
24542ac_uD=',;t'
24543
24544for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24545  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24546  case $ac_file in
24547  - | *:- | *:-:* ) # input from stdin
24548	cat >$tmp/stdin
24549	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24550	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24551  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24552	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24553  * )   ac_file_in=$ac_file.in ;;
24554  esac
24555
24556  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24557echo "$as_me: creating $ac_file" >&6;}
24558
24559  # First look for the input files in the build tree, otherwise in the
24560  # src tree.
24561  ac_file_inputs=`IFS=:
24562    for f in $ac_file_in; do
24563      case $f in
24564      -) echo $tmp/stdin ;;
24565      [\\/$]*)
24566	 # Absolute (can't be DOS-style, as IFS=:)
24567	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24568echo "$as_me: error: cannot find input file: $f" >&2;}
24569   { (exit 1); exit 1; }; }
24570	 # Do quote $f, to prevent DOS paths from being IFS'd.
24571	 echo "$f";;
24572      *) # Relative
24573	 if test -f "$f"; then
24574	   # Build tree
24575	   echo "$f"
24576	 elif test -f "$srcdir/$f"; then
24577	   # Source tree
24578	   echo "$srcdir/$f"
24579	 else
24580	   # /dev/null tree
24581	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24582echo "$as_me: error: cannot find input file: $f" >&2;}
24583   { (exit 1); exit 1; }; }
24584	 fi;;
24585      esac
24586    done` || { (exit 1); exit 1; }
24587  # Remove the trailing spaces.
24588  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
24589
24590_ACEOF
24591
24592# Transform confdefs.h into two sed scripts, `conftest.defines' and
24593# `conftest.undefs', that substitutes the proper values into
24594# config.h.in to produce config.h.  The first handles `#define'
24595# templates, and the second `#undef' templates.
24596# And first: Protect against being on the right side of a sed subst in
24597# config.status.  Protect against being in an unquoted here document
24598# in config.status.
24599rm -f conftest.defines conftest.undefs
24600# Using a here document instead of a string reduces the quoting nightmare.
24601# Putting comments in sed scripts is not portable.
24602#
24603# `end' is used to avoid that the second main sed command (meant for
24604# 0-ary CPP macros) applies to n-ary macro definitions.
24605# See the Autoconf documentation for `clear'.
24606cat >confdef2sed.sed <<\_ACEOF
24607s/[\\&,]/\\&/g
24608s,[\\$`],\\&,g
24609t clear
24610: clear
24611s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24612t end
24613s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24614: end
24615_ACEOF
24616# If some macros were called several times there might be several times
24617# the same #defines, which is useless.  Nevertheless, we may not want to
24618# sort them, since we want the *last* AC-DEFINE to be honored.
24619uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24620sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24621rm -f confdef2sed.sed
24622
24623# This sed command replaces #undef with comments.  This is necessary, for
24624# example, in the case of _POSIX_SOURCE, which is predefined and required
24625# on some systems where configure will not decide to define it.
24626cat >>conftest.undefs <<\_ACEOF
24627s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24628_ACEOF
24629
24630# Break up conftest.defines because some shells have a limit on the size
24631# of here documents, and old seds have small limits too (100 cmds).
24632echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24633echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24634echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24635echo '  :' >>$CONFIG_STATUS
24636rm -f conftest.tail
24637while grep . conftest.defines >/dev/null
24638do
24639  # Write a limited-size here document to $tmp/defines.sed.
24640  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24641  # Speed up: don't consider the non `#define' lines.
24642  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
24643  # Work around the forget-to-reset-the-flag bug.
24644  echo 't clr' >>$CONFIG_STATUS
24645  echo ': clr' >>$CONFIG_STATUS
24646  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24647  echo 'CEOF
24648  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24649  rm -f $tmp/in
24650  mv $tmp/out $tmp/in
24651' >>$CONFIG_STATUS
24652  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24653  rm -f conftest.defines
24654  mv conftest.tail conftest.defines
24655done
24656rm -f conftest.defines
24657echo '  fi # grep' >>$CONFIG_STATUS
24658echo >>$CONFIG_STATUS
24659
24660# Break up conftest.undefs because some shells have a limit on the size
24661# of here documents, and old seds have small limits too (100 cmds).
24662echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24663rm -f conftest.tail
24664while grep . conftest.undefs >/dev/null
24665do
24666  # Write a limited-size here document to $tmp/undefs.sed.
24667  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24668  # Speed up: don't consider the non `#undef'
24669  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
24670  # Work around the forget-to-reset-the-flag bug.
24671  echo 't clr' >>$CONFIG_STATUS
24672  echo ': clr' >>$CONFIG_STATUS
24673  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24674  echo 'CEOF
24675  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24676  rm -f $tmp/in
24677  mv $tmp/out $tmp/in
24678' >>$CONFIG_STATUS
24679  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24680  rm -f conftest.undefs
24681  mv conftest.tail conftest.undefs
24682done
24683rm -f conftest.undefs
24684
24685cat >>$CONFIG_STATUS <<\_ACEOF
24686  # Let's still pretend it is `configure' which instantiates (i.e., don't
24687  # use $as_me), people would be surprised to read:
24688  #    /* config.h.  Generated by config.status.  */
24689  if test x"$ac_file" = x-; then
24690    echo "/* Generated by configure.  */" >$tmp/config.h
24691  else
24692    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24693  fi
24694  cat $tmp/in >>$tmp/config.h
24695  rm -f $tmp/in
24696  if test x"$ac_file" != x-; then
24697    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24698      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24699echo "$as_me: $ac_file is unchanged" >&6;}
24700    else
24701      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24702$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24703	 X"$ac_file" : 'X\(//\)[^/]' \| \
24704	 X"$ac_file" : 'X\(//\)$' \| \
24705	 X"$ac_file" : 'X\(/\)' \| \
24706	 .     : '\(.\)' 2>/dev/null ||
24707echo X"$ac_file" |
24708    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24709  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24710  	  /^X\(\/\/\)$/{ s//\1/; q; }
24711  	  /^X\(\/\).*/{ s//\1/; q; }
24712  	  s/.*/./; q'`
24713      { if $as_mkdir_p; then
24714    mkdir -p "$ac_dir"
24715  else
24716    as_dir="$ac_dir"
24717    as_dirs=
24718    while test ! -d "$as_dir"; do
24719      as_dirs="$as_dir $as_dirs"
24720      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24721$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24722	 X"$as_dir" : 'X\(//\)[^/]' \| \
24723	 X"$as_dir" : 'X\(//\)$' \| \
24724	 X"$as_dir" : 'X\(/\)' \| \
24725	 .     : '\(.\)' 2>/dev/null ||
24726echo X"$as_dir" |
24727    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24728  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24729  	  /^X\(\/\/\)$/{ s//\1/; q; }
24730  	  /^X\(\/\).*/{ s//\1/; q; }
24731  	  s/.*/./; q'`
24732    done
24733    test ! -n "$as_dirs" || mkdir $as_dirs
24734  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24735echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24736   { (exit 1); exit 1; }; }; }
24737
24738      rm -f $ac_file
24739      mv $tmp/config.h $ac_file
24740    fi
24741  else
24742    cat $tmp/config.h
24743    rm -f $tmp/config.h
24744  fi
24745# Compute $ac_file's index in $config_headers.
24746_am_stamp_count=1
24747for _am_header in $config_headers :; do
24748  case $_am_header in
24749    $ac_file | $ac_file:* )
24750      break ;;
24751    * )
24752      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24753  esac
24754done
24755echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24756$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24757	 X$ac_file : 'X\(//\)[^/]' \| \
24758	 X$ac_file : 'X\(//\)$' \| \
24759	 X$ac_file : 'X\(/\)' \| \
24760	 .     : '\(.\)' 2>/dev/null ||
24761echo X$ac_file |
24762    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24763  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24764  	  /^X\(\/\/\)$/{ s//\1/; q; }
24765  	  /^X\(\/\).*/{ s//\1/; q; }
24766  	  s/.*/./; q'`/stamp-h$_am_stamp_count
24767done
24768_ACEOF
24769cat >>$CONFIG_STATUS <<\_ACEOF
24770
24771#
24772# CONFIG_COMMANDS section.
24773#
24774for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24775  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24776  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24777  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24778$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24779	 X"$ac_dest" : 'X\(//\)[^/]' \| \
24780	 X"$ac_dest" : 'X\(//\)$' \| \
24781	 X"$ac_dest" : 'X\(/\)' \| \
24782	 .     : '\(.\)' 2>/dev/null ||
24783echo X"$ac_dest" |
24784    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24785  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24786  	  /^X\(\/\/\)$/{ s//\1/; q; }
24787  	  /^X\(\/\).*/{ s//\1/; q; }
24788  	  s/.*/./; q'`
24789  { if $as_mkdir_p; then
24790    mkdir -p "$ac_dir"
24791  else
24792    as_dir="$ac_dir"
24793    as_dirs=
24794    while test ! -d "$as_dir"; do
24795      as_dirs="$as_dir $as_dirs"
24796      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24797$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24798	 X"$as_dir" : 'X\(//\)[^/]' \| \
24799	 X"$as_dir" : 'X\(//\)$' \| \
24800	 X"$as_dir" : 'X\(/\)' \| \
24801	 .     : '\(.\)' 2>/dev/null ||
24802echo X"$as_dir" |
24803    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24804  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24805  	  /^X\(\/\/\)$/{ s//\1/; q; }
24806  	  /^X\(\/\).*/{ s//\1/; q; }
24807  	  s/.*/./; q'`
24808    done
24809    test ! -n "$as_dirs" || mkdir $as_dirs
24810  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24811echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24812   { (exit 1); exit 1; }; }; }
24813
24814  ac_builddir=.
24815
24816if test "$ac_dir" != .; then
24817  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24818  # A "../" for each directory in $ac_dir_suffix.
24819  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24820else
24821  ac_dir_suffix= ac_top_builddir=
24822fi
24823
24824case $srcdir in
24825  .)  # No --srcdir option.  We are building in place.
24826    ac_srcdir=.
24827    if test -z "$ac_top_builddir"; then
24828       ac_top_srcdir=.
24829    else
24830       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24831    fi ;;
24832  [\\/]* | ?:[\\/]* )  # Absolute path.
24833    ac_srcdir=$srcdir$ac_dir_suffix;
24834    ac_top_srcdir=$srcdir ;;
24835  *) # Relative path.
24836    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24837    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24838esac
24839
24840# Do not use `cd foo && pwd` to compute absolute paths, because
24841# the directories may not exist.
24842case `pwd` in
24843.) ac_abs_builddir="$ac_dir";;
24844*)
24845  case "$ac_dir" in
24846  .) ac_abs_builddir=`pwd`;;
24847  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24848  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24849  esac;;
24850esac
24851case $ac_abs_builddir in
24852.) ac_abs_top_builddir=${ac_top_builddir}.;;
24853*)
24854  case ${ac_top_builddir}. in
24855  .) ac_abs_top_builddir=$ac_abs_builddir;;
24856  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24857  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24858  esac;;
24859esac
24860case $ac_abs_builddir in
24861.) ac_abs_srcdir=$ac_srcdir;;
24862*)
24863  case $ac_srcdir in
24864  .) ac_abs_srcdir=$ac_abs_builddir;;
24865  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24866  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24867  esac;;
24868esac
24869case $ac_abs_builddir in
24870.) ac_abs_top_srcdir=$ac_top_srcdir;;
24871*)
24872  case $ac_top_srcdir in
24873  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24874  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24875  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24876  esac;;
24877esac
24878
24879
24880  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24881echo "$as_me: executing $ac_dest commands" >&6;}
24882  case $ac_dest in
24883    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24884  # Strip MF so we end up with the name of the file.
24885  mf=`echo "$mf" | sed -e 's/:.*$//'`
24886  # Check whether this is an Automake generated Makefile or not.
24887  # We used to match only the files named `Makefile.in', but
24888  # some people rename them; so instead we look at the file content.
24889  # Grep'ing the first line is not enough: some people post-process
24890  # each Makefile.in and add a new line on top of each file to say so.
24891  # So let's grep whole file.
24892  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24893    dirpart=`(dirname "$mf") 2>/dev/null ||
24894$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24895	 X"$mf" : 'X\(//\)[^/]' \| \
24896	 X"$mf" : 'X\(//\)$' \| \
24897	 X"$mf" : 'X\(/\)' \| \
24898	 .     : '\(.\)' 2>/dev/null ||
24899echo X"$mf" |
24900    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24901  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24902  	  /^X\(\/\/\)$/{ s//\1/; q; }
24903  	  /^X\(\/\).*/{ s//\1/; q; }
24904  	  s/.*/./; q'`
24905  else
24906    continue
24907  fi
24908  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24909  # Extract the definition of DEP_FILES from the Makefile without
24910  # running `make'.
24911  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24912  test -z "$DEPDIR" && continue
24913  # When using ansi2knr, U may be empty or an underscore; expand it
24914  U=`sed -n 's/^U = //p' < "$mf"`
24915  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24916  # We invoke sed twice because it is the simplest approach to
24917  # changing $(DEPDIR) to its actual value in the expansion.
24918  for file in `sed -n '
24919    /^DEP_FILES = .*\\\\$/ {
24920      s/^DEP_FILES = //
24921      :loop
24922	s/\\\\$//
24923	p
24924	n
24925	/\\\\$/ b loop
24926      p
24927    }
24928    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24929       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24930    # Make sure the directory exists.
24931    test -f "$dirpart/$file" && continue
24932    fdir=`(dirname "$file") 2>/dev/null ||
24933$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24934	 X"$file" : 'X\(//\)[^/]' \| \
24935	 X"$file" : 'X\(//\)$' \| \
24936	 X"$file" : 'X\(/\)' \| \
24937	 .     : '\(.\)' 2>/dev/null ||
24938echo X"$file" |
24939    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24940  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24941  	  /^X\(\/\/\)$/{ s//\1/; q; }
24942  	  /^X\(\/\).*/{ s//\1/; q; }
24943  	  s/.*/./; q'`
24944    { if $as_mkdir_p; then
24945    mkdir -p $dirpart/$fdir
24946  else
24947    as_dir=$dirpart/$fdir
24948    as_dirs=
24949    while test ! -d "$as_dir"; do
24950      as_dirs="$as_dir $as_dirs"
24951      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24952$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24953	 X"$as_dir" : 'X\(//\)[^/]' \| \
24954	 X"$as_dir" : 'X\(//\)$' \| \
24955	 X"$as_dir" : 'X\(/\)' \| \
24956	 .     : '\(.\)' 2>/dev/null ||
24957echo X"$as_dir" |
24958    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24959  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24960  	  /^X\(\/\/\)$/{ s//\1/; q; }
24961  	  /^X\(\/\).*/{ s//\1/; q; }
24962  	  s/.*/./; q'`
24963    done
24964    test ! -n "$as_dirs" || mkdir $as_dirs
24965  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24966echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24967   { (exit 1); exit 1; }; }; }
24968
24969    # echo "creating $dirpart/$file"
24970    echo '# dummy' > "$dirpart/$file"
24971  done
24972done
24973 ;;
24974  esac
24975done
24976_ACEOF
24977
24978cat >>$CONFIG_STATUS <<\_ACEOF
24979
24980{ (exit 0); exit 0; }
24981_ACEOF
24982chmod +x $CONFIG_STATUS
24983ac_clean_files=$ac_clean_files_save
24984
24985
24986# configure is writing to config.log, and then calls config.status.
24987# config.status does its own redirection, appending to config.log.
24988# Unfortunately, on DOS this fails, as config.log is still kept open
24989# by configure, so config.status won't be able to write to it; its
24990# output is simply discarded.  So we exec the FD to /dev/null,
24991# effectively closing config.log, so it can be properly (re)opened and
24992# appended to by config.status.  When coming back to configure, we
24993# need to make the FD available again.
24994if test "$no_create" != yes; then
24995  ac_cs_success=:
24996  ac_config_status_args=
24997  test "$silent" = yes &&
24998    ac_config_status_args="$ac_config_status_args --quiet"
24999  exec 5>/dev/null
25000  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25001  exec 5>>config.log
25002  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25003  # would make configure fail if this is the last instruction.
25004  $ac_cs_success || { (exit 1); exit 1; }
25005fi
25006
25007