xref: /freebsd/contrib/ntp/sntp/configure (revision 3ca3047aee082043d90aff2611a349c86c98e97c)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="main.c"
429ac_unique_file="header.h"
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOPTS_DIR INSTALL_LIBOPTS_TRUE INSTALL_LIBOPTS_FALSE NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS LIBOBJS BINSUBDIR LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826	      localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866	 X"$0" : 'X\(//\)[^/]' \| \
867	 X"$0" : 'X\(//\)$' \| \
868	 X"$0" : 'X\(/\)' \| \
869	 .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953  # Omit some internal or obsolete options to make the list less imposing.
954  # This message is too long to be a string in the A/UX 3.1 sh.
955  cat <<_ACEOF
956\`configure' configures this package to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966  -h, --help              display this help and exit
967      --help=short        display options specific to this package
968      --help=recursive    display the short help of all the included packages
969  -V, --version           display version information and exit
970  -q, --quiet, --silent   do not print \`checking...' messages
971      --cache-file=FILE   cache test results in FILE [disabled]
972  -C, --config-cache      alias for \`--cache-file=config.cache'
973  -n, --no-create         do not create output files
974      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978  cat <<_ACEOF
979Installation directories:
980  --prefix=PREFIX         install architecture-independent files in PREFIX
981			  [$ac_default_prefix]
982  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983			  [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993  --bindir=DIR           user executables [EPREFIX/bin]
994  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995  --libexecdir=DIR       program executables [EPREFIX/libexec]
996  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000  --libdir=DIR           object code libraries [EPREFIX/lib]
1001  --includedir=DIR       C header files [PREFIX/include]
1002  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003  --infodir=DIR          info documentation [PREFIX/info]
1004  --mandir=DIR           man documentation [PREFIX/man]
1005_ACEOF
1006
1007  cat <<\_ACEOF
1008
1009Program names:
1010  --program-prefix=PREFIX            prepend PREFIX to installed program names
1011  --program-suffix=SUFFIX            append SUFFIX to installed program names
1012  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014System types:
1015  --build=BUILD     configure for building on BUILD [guessed]
1016  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017_ACEOF
1018fi
1019
1020if test -n "$ac_init_help"; then
1021
1022  cat <<\_ACEOF
1023
1024Optional Features:
1025  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027  --disable-dependency-tracking  speeds up one-time build
1028  --enable-dependency-tracking   do not reject slow dependency extractors
1029  --enable-shared[=PKGS]
1030                          build shared libraries [default=no]
1031  --enable-static[=PKGS]
1032                          build static libraries [default=yes]
1033  --enable-fast-install[=PKGS]
1034                          optimize for fast installation [default=yes]
1035  --disable-libtool-lock  avoid locking (might break parallel builds)
1036  --enable-local-libopts  Force using the supplied libopts tearoff code
1037  --disable-libopts-install
1038                          Do not install libopts with client installation
1039  --disable-optional-args not wanting optional option args
1040
1041Optional Packages:
1042  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1044  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045  --with-pic              try to use only PIC/non-PIC objects [default=use
1046                          both]
1047  --with-tags[=TAGS]
1048                          include additional configurations [automatic]
1049  --with-autoopts-config  specify the config-info script
1050  --with-regex-header     a reg expr header is specified
1051  --with-libregex         libregex installation prefix
1052  --with-libregex-cflags  libregex compile flags
1053  --with-libregex-libs    libregex link command arguments
1054  --with-binsubdir        bin ={bin,sbin}
1055
1056Some influential environment variables:
1057  CC          C compiler command
1058  CFLAGS      C compiler flags
1059  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060              nonstandard directory <lib dir>
1061  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062              headers in a nonstandard directory <include dir>
1063  CPP         C preprocessor
1064  CXX         C++ compiler command
1065  CXXFLAGS    C++ compiler flags
1066  CXXCPP      C++ preprocessor
1067  F77         Fortran 77 compiler command
1068  FFLAGS      Fortran 77 compiler flags
1069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077  # If there are subdirs, report their specific --help.
1078  ac_popdir=`pwd`
1079  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080    test -d $ac_dir || continue
1081    ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085  # A "../" for each directory in $ac_dir_suffix.
1086  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088  ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092  .)  # No --srcdir option.  We are building in place.
1093    ac_srcdir=.
1094    if test -z "$ac_top_builddir"; then
1095       ac_top_srcdir=.
1096    else
1097       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098    fi ;;
1099  [\\/]* | ?:[\\/]* )  # Absolute path.
1100    ac_srcdir=$srcdir$ac_dir_suffix;
1101    ac_top_srcdir=$srcdir ;;
1102  *) # Relative path.
1103    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112  case "$ac_dir" in
1113  .) ac_abs_builddir=`pwd`;;
1114  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116  esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121  case ${ac_top_builddir}. in
1122  .) ac_abs_top_builddir=$ac_abs_builddir;;
1123  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125  esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130  case $ac_srcdir in
1131  .) ac_abs_srcdir=$ac_abs_builddir;;
1132  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134  esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139  case $ac_top_srcdir in
1140  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143  esac;;
1144esac
1145
1146    cd $ac_dir
1147    # Check for guested configure; otherwise get Cygnus style configure.
1148    if test -f $ac_srcdir/configure.gnu; then
1149      echo
1150      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151    elif test -f $ac_srcdir/configure; then
1152      echo
1153      $SHELL $ac_srcdir/configure  --help=recursive
1154    elif test -f $ac_srcdir/configure.ac ||
1155	   test -f $ac_srcdir/configure.in; then
1156      echo
1157      $ac_configure --help
1158    else
1159      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160    fi
1161    cd $ac_popdir
1162  done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167  cat <<\_ACEOF
1168
1169Copyright (C) 2003 Free Software Foundation, Inc.
1170This configure script is free software; the Free Software Foundation
1171gives unlimited permission to copy, distribute and modify it.
1172_ACEOF
1173  exit 0
1174fi
1175exec 5>config.log
1176cat >&5 <<_ACEOF
1177This file contains any messages produced by compilers while
1178running configure, to aid debugging if configure makes a mistake.
1179
1180It was created by $as_me, which was
1181generated by GNU Autoconf 2.59.  Invocation command line was
1182
1183  $ $0 $@
1184
1185_ACEOF
1186{
1187cat <<_ASUNAME
1188## --------- ##
1189## Platform. ##
1190## --------- ##
1191
1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1200
1201/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1202/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1205/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1206/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1207/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1208
1209_ASUNAME
1210
1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212for as_dir in $PATH
1213do
1214  IFS=$as_save_IFS
1215  test -z "$as_dir" && as_dir=.
1216  echo "PATH: $as_dir"
1217done
1218
1219} >&5
1220
1221cat >&5 <<_ACEOF
1222
1223
1224## ----------- ##
1225## Core tests. ##
1226## ----------- ##
1227
1228_ACEOF
1229
1230
1231# Keep a trace of the command line.
1232# Strip out --no-create and --no-recursion so they do not pile up.
1233# Strip out --silent because we don't want to record it for future runs.
1234# Also quote any args containing shell meta-characters.
1235# Make two passes to allow for proper duplicate-argument suppression.
1236ac_configure_args=
1237ac_configure_args0=
1238ac_configure_args1=
1239ac_sep=
1240ac_must_keep_next=false
1241for ac_pass in 1 2
1242do
1243  for ac_arg
1244  do
1245    case $ac_arg in
1246    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248    | -silent | --silent | --silen | --sile | --sil)
1249      continue ;;
1250    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252    esac
1253    case $ac_pass in
1254    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255    2)
1256      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257      if test $ac_must_keep_next = true; then
1258	ac_must_keep_next=false # Got value, back to normal.
1259      else
1260	case $ac_arg in
1261	  *=* | --config-cache | -C | -disable-* | --disable-* \
1262	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264	  | -with-* | --with-* | -without-* | --without-* | --x)
1265	    case "$ac_configure_args0 " in
1266	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267	    esac
1268	    ;;
1269	  -* ) ac_must_keep_next=true ;;
1270	esac
1271      fi
1272      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273      # Get rid of the leading space.
1274      ac_sep=" "
1275      ;;
1276    esac
1277  done
1278done
1279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282# When interrupted or exit'd, cleanup temporary files, and complete
1283# config.log.  We remove comments because anyway the quotes in there
1284# would cause problems or look ugly.
1285# WARNING: Be sure not to use single quotes in there, as some shells,
1286# such as our DU 5.0 friend, will then `close' the trap.
1287trap 'exit_status=$?
1288  # Save into config.log some information that might help in debugging.
1289  {
1290    echo
1291
1292    cat <<\_ASBOX
1293## ---------------- ##
1294## Cache variables. ##
1295## ---------------- ##
1296_ASBOX
1297    echo
1298    # The following way of writing the cache mishandles newlines in values,
1299{
1300  (set) 2>&1 |
1301    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302    *ac_space=\ *)
1303      sed -n \
1304	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306      ;;
1307    *)
1308      sed -n \
1309	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310      ;;
1311    esac;
1312}
1313    echo
1314
1315    cat <<\_ASBOX
1316## ----------------- ##
1317## Output variables. ##
1318## ----------------- ##
1319_ASBOX
1320    echo
1321    for ac_var in $ac_subst_vars
1322    do
1323      eval ac_val=$`echo $ac_var`
1324      echo "$ac_var='"'"'$ac_val'"'"'"
1325    done | sort
1326    echo
1327
1328    if test -n "$ac_subst_files"; then
1329      cat <<\_ASBOX
1330## ------------- ##
1331## Output files. ##
1332## ------------- ##
1333_ASBOX
1334      echo
1335      for ac_var in $ac_subst_files
1336      do
1337	eval ac_val=$`echo $ac_var`
1338	echo "$ac_var='"'"'$ac_val'"'"'"
1339      done | sort
1340      echo
1341    fi
1342
1343    if test -s confdefs.h; then
1344      cat <<\_ASBOX
1345## ----------- ##
1346## confdefs.h. ##
1347## ----------- ##
1348_ASBOX
1349      echo
1350      sed "/^$/d" confdefs.h | sort
1351      echo
1352    fi
1353    test "$ac_signal" != 0 &&
1354      echo "$as_me: caught signal $ac_signal"
1355    echo "$as_me: exit $exit_status"
1356  } >&5
1357  rm -f core *.core &&
1358  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359    exit $exit_status
1360     ' 0
1361for ac_signal in 1 2 13 15; do
1362  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363done
1364ac_signal=0
1365
1366# confdefs.h avoids OS command line length limits that DEFS can exceed.
1367rm -rf conftest* confdefs.h
1368# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369echo >confdefs.h
1370
1371# Predefined preprocessor variables.
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_NAME "$PACKAGE_NAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_VERSION "$PACKAGE_VERSION"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_STRING "$PACKAGE_STRING"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395_ACEOF
1396
1397
1398# Let the site file select an alternate cache file if it wants to.
1399# Prefer explicitly selected file to automatically selected ones.
1400if test -z "$CONFIG_SITE"; then
1401  if test "x$prefix" != xNONE; then
1402    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403  else
1404    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405  fi
1406fi
1407for ac_site_file in $CONFIG_SITE; do
1408  if test -r "$ac_site_file"; then
1409    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410echo "$as_me: loading site script $ac_site_file" >&6;}
1411    sed 's/^/| /' "$ac_site_file" >&5
1412    . "$ac_site_file"
1413  fi
1414done
1415
1416if test -r "$cache_file"; then
1417  # Some versions of bash will fail to source /dev/null (special
1418  # files actually), so we avoid doing that.
1419  if test -f "$cache_file"; then
1420    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421echo "$as_me: loading cache $cache_file" >&6;}
1422    case $cache_file in
1423      [\\/]* | ?:[\\/]* ) . $cache_file;;
1424      *)                      . ./$cache_file;;
1425    esac
1426  fi
1427else
1428  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429echo "$as_me: creating cache $cache_file" >&6;}
1430  >$cache_file
1431fi
1432
1433# Check that the precious variables saved in the cache have kept the same
1434# value.
1435ac_cache_corrupted=false
1436for ac_var in `(set) 2>&1 |
1437	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439  eval ac_new_set=\$ac_env_${ac_var}_set
1440  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441  eval ac_new_val="\$ac_env_${ac_var}_value"
1442  case $ac_old_set,$ac_new_set in
1443    set,)
1444      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446      ac_cache_corrupted=: ;;
1447    ,set)
1448      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450      ac_cache_corrupted=: ;;
1451    ,);;
1452    *)
1453      if test "x$ac_old_val" != "x$ac_new_val"; then
1454	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1457echo "$as_me:   former value:  $ac_old_val" >&2;}
1458	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1459echo "$as_me:   current value: $ac_new_val" >&2;}
1460	ac_cache_corrupted=:
1461      fi;;
1462  esac
1463  # Pass precious variables to config.status.
1464  if test "$ac_new_set" = set; then
1465    case $ac_new_val in
1466    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468    *) ac_arg=$ac_var=$ac_new_val ;;
1469    esac
1470    case " $ac_configure_args " in
1471      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1472      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473    esac
1474  fi
1475done
1476if $ac_cache_corrupted; then
1477  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481   { (exit 1); exit 1; }; }
1482fi
1483
1484ac_ext=c
1485ac_cpp='$CPP $CPPFLAGS'
1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508am__api_version="1.9"
1509ac_aux_dir=
1510for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1511  if test -f $ac_dir/install-sh; then
1512    ac_aux_dir=$ac_dir
1513    ac_install_sh="$ac_aux_dir/install-sh -c"
1514    break
1515  elif test -f $ac_dir/install.sh; then
1516    ac_aux_dir=$ac_dir
1517    ac_install_sh="$ac_aux_dir/install.sh -c"
1518    break
1519  elif test -f $ac_dir/shtool; then
1520    ac_aux_dir=$ac_dir
1521    ac_install_sh="$ac_aux_dir/shtool install -c"
1522    break
1523  fi
1524done
1525if test -z "$ac_aux_dir"; then
1526  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1527echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1528   { (exit 1); exit 1; }; }
1529fi
1530ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1531ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1532ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1533
1534# Find a good install program.  We prefer a C program (faster),
1535# so one script is as good as another.  But avoid the broken or
1536# incompatible versions:
1537# SysV /etc/install, /usr/sbin/install
1538# SunOS /usr/etc/install
1539# IRIX /sbin/install
1540# AIX /bin/install
1541# AmigaOS /C/install, which installs bootblocks on floppy discs
1542# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1543# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1544# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1545# OS/2's system install, which has a completely different semantic
1546# ./install, which can be erroneously created by make from ./install.sh.
1547echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1548echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1549if test -z "$INSTALL"; then
1550if test "${ac_cv_path_install+set}" = set; then
1551  echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554for as_dir in $PATH
1555do
1556  IFS=$as_save_IFS
1557  test -z "$as_dir" && as_dir=.
1558  # Account for people who put trailing slashes in PATH elements.
1559case $as_dir/ in
1560  ./ | .// | /cC/* | \
1561  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1562  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1563  /usr/ucb/* ) ;;
1564  *)
1565    # OSF1 and SCO ODT 3.0 have their own names for install.
1566    # Don't use installbsd from OSF since it installs stuff as root
1567    # by default.
1568    for ac_prog in ginstall scoinst install; do
1569      for ac_exec_ext in '' $ac_executable_extensions; do
1570	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1571	  if test $ac_prog = install &&
1572	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1573	    # AIX install.  It has an incompatible calling convention.
1574	    :
1575	  elif test $ac_prog = install &&
1576	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1577	    # program-specific install script used by HP pwplus--don't use.
1578	    :
1579	  else
1580	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1581	    break 3
1582	  fi
1583	fi
1584      done
1585    done
1586    ;;
1587esac
1588done
1589
1590
1591fi
1592  if test "${ac_cv_path_install+set}" = set; then
1593    INSTALL=$ac_cv_path_install
1594  else
1595    # As a last resort, use the slow shell script.  We don't cache a
1596    # path for INSTALL within a source directory, because that will
1597    # break other packages using the cache if that directory is
1598    # removed, or if the path is relative.
1599    INSTALL=$ac_install_sh
1600  fi
1601fi
1602echo "$as_me:$LINENO: result: $INSTALL" >&5
1603echo "${ECHO_T}$INSTALL" >&6
1604
1605# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1606# It thinks the first close brace ends the variable substitution.
1607test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1608
1609test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1610
1611test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1612
1613echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1614echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1615# Just in case
1616sleep 1
1617echo timestamp > conftest.file
1618# Do `set' in a subshell so we don't clobber the current shell's
1619# arguments.  Must try -L first in case configure is actually a
1620# symlink; some systems play weird games with the mod time of symlinks
1621# (eg FreeBSD returns the mod time of the symlink's containing
1622# directory).
1623if (
1624   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1625   if test "$*" = "X"; then
1626      # -L didn't work.
1627      set X `ls -t $srcdir/configure conftest.file`
1628   fi
1629   rm -f conftest.file
1630   if test "$*" != "X $srcdir/configure conftest.file" \
1631      && test "$*" != "X conftest.file $srcdir/configure"; then
1632
1633      # If neither matched, then we have a broken ls.  This can happen
1634      # if, for instance, CONFIG_SHELL is bash and it inherits a
1635      # broken ls alias from the environment.  This has actually
1636      # happened.  Such a system could not be considered "sane".
1637      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1638alias in your environment" >&5
1639echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1640alias in your environment" >&2;}
1641   { (exit 1); exit 1; }; }
1642   fi
1643
1644   test "$2" = conftest.file
1645   )
1646then
1647   # Ok.
1648   :
1649else
1650   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1651Check your system clock" >&5
1652echo "$as_me: error: newly created file is older than distributed files!
1653Check your system clock" >&2;}
1654   { (exit 1); exit 1; }; }
1655fi
1656echo "$as_me:$LINENO: result: yes" >&5
1657echo "${ECHO_T}yes" >&6
1658test "$program_prefix" != NONE &&
1659  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1660# Use a double $ so make ignores it.
1661test "$program_suffix" != NONE &&
1662  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1663# Double any \ or $.  echo might interpret backslashes.
1664# By default was `s,x,x', remove it if useless.
1665cat <<\_ACEOF >conftest.sed
1666s/[\\$]/&&/g;s/;s,x,x,$//
1667_ACEOF
1668program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1669rm conftest.sed
1670
1671# expand $ac_aux_dir to an absolute path
1672am_aux_dir=`cd $ac_aux_dir && pwd`
1673
1674test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1675# Use eval to expand $SHELL
1676if eval "$MISSING --run true"; then
1677  am_missing_run="$MISSING --run "
1678else
1679  am_missing_run=
1680  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1681echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1682fi
1683
1684if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1685  # We used to keeping the `.' as first argument, in order to
1686  # allow $(mkdir_p) to be used without argument.  As in
1687  #   $(mkdir_p) $(somedir)
1688  # where $(somedir) is conditionally defined.  However this is wrong
1689  # for two reasons:
1690  #  1. if the package is installed by a user who cannot write `.'
1691  #     make install will fail,
1692  #  2. the above comment should most certainly read
1693  #     $(mkdir_p) $(DESTDIR)$(somedir)
1694  #     so it does not work when $(somedir) is undefined and
1695  #     $(DESTDIR) is not.
1696  #  To support the latter case, we have to write
1697  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1698  #  so the `.' trick is pointless.
1699  mkdir_p='mkdir -p --'
1700else
1701  # On NextStep and OpenStep, the `mkdir' command does not
1702  # recognize any option.  It will interpret all options as
1703  # directories to create, and then abort because `.' already
1704  # exists.
1705  for d in ./-p ./--version;
1706  do
1707    test -d $d && rmdir $d
1708  done
1709  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1710  if test -f "$ac_aux_dir/mkinstalldirs"; then
1711    mkdir_p='$(mkinstalldirs)'
1712  else
1713    mkdir_p='$(install_sh) -d'
1714  fi
1715fi
1716
1717for ac_prog in gawk mawk nawk awk
1718do
1719  # Extract the first word of "$ac_prog", so it can be a program name with args.
1720set dummy $ac_prog; ac_word=$2
1721echo "$as_me:$LINENO: checking for $ac_word" >&5
1722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723if test "${ac_cv_prog_AWK+set}" = set; then
1724  echo $ECHO_N "(cached) $ECHO_C" >&6
1725else
1726  if test -n "$AWK"; then
1727  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1728else
1729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730for as_dir in $PATH
1731do
1732  IFS=$as_save_IFS
1733  test -z "$as_dir" && as_dir=.
1734  for ac_exec_ext in '' $ac_executable_extensions; do
1735  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736    ac_cv_prog_AWK="$ac_prog"
1737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738    break 2
1739  fi
1740done
1741done
1742
1743fi
1744fi
1745AWK=$ac_cv_prog_AWK
1746if test -n "$AWK"; then
1747  echo "$as_me:$LINENO: result: $AWK" >&5
1748echo "${ECHO_T}$AWK" >&6
1749else
1750  echo "$as_me:$LINENO: result: no" >&5
1751echo "${ECHO_T}no" >&6
1752fi
1753
1754  test -n "$AWK" && break
1755done
1756
1757echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1758echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1759set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1760if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1761  echo $ECHO_N "(cached) $ECHO_C" >&6
1762else
1763  cat >conftest.make <<\_ACEOF
1764all:
1765	@echo 'ac_maketemp="$(MAKE)"'
1766_ACEOF
1767# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1768eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1769if test -n "$ac_maketemp"; then
1770  eval ac_cv_prog_make_${ac_make}_set=yes
1771else
1772  eval ac_cv_prog_make_${ac_make}_set=no
1773fi
1774rm -f conftest.make
1775fi
1776if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1777  echo "$as_me:$LINENO: result: yes" >&5
1778echo "${ECHO_T}yes" >&6
1779  SET_MAKE=
1780else
1781  echo "$as_me:$LINENO: result: no" >&5
1782echo "${ECHO_T}no" >&6
1783  SET_MAKE="MAKE=${MAKE-make}"
1784fi
1785
1786rm -rf .tst 2>/dev/null
1787mkdir .tst 2>/dev/null
1788if test -d .tst; then
1789  am__leading_dot=.
1790else
1791  am__leading_dot=_
1792fi
1793rmdir .tst 2>/dev/null
1794
1795# test to see if srcdir already configured
1796if test "`cd $srcdir && pwd`" != "`pwd`" &&
1797   test -f $srcdir/config.status; then
1798  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800   { (exit 1); exit 1; }; }
1801fi
1802
1803# test whether we have cygpath
1804if test -z "$CYGPATH_W"; then
1805  if (cygpath --version) >/dev/null 2>/dev/null; then
1806    CYGPATH_W='cygpath -w'
1807  else
1808    CYGPATH_W=echo
1809  fi
1810fi
1811
1812
1813# Define the identity of the package.
1814 PACKAGE=msntp
1815 VERSION=1.6
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819#define PACKAGE "$PACKAGE"
1820_ACEOF
1821
1822
1823cat >>confdefs.h <<_ACEOF
1824#define VERSION "$VERSION"
1825_ACEOF
1826
1827# Some tools Automake needs.
1828
1829ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1830
1831
1832AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1833
1834
1835AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1836
1837
1838AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1839
1840
1841MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1842
1843install_sh=${install_sh-"$am_aux_dir/install-sh"}
1844
1845# Installed binaries are usually stripped using `strip' when the user
1846# run `make install-strip'.  However `strip' might not be the right
1847# tool to use in cross-compilation environments, therefore Automake
1848# will honor the `STRIP' environment variable to overrule this program.
1849if test "$cross_compiling" != no; then
1850  if test -n "$ac_tool_prefix"; then
1851  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1852set dummy ${ac_tool_prefix}strip; ac_word=$2
1853echo "$as_me:$LINENO: checking for $ac_word" >&5
1854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855if test "${ac_cv_prog_STRIP+set}" = set; then
1856  echo $ECHO_N "(cached) $ECHO_C" >&6
1857else
1858  if test -n "$STRIP"; then
1859  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1860else
1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862for as_dir in $PATH
1863do
1864  IFS=$as_save_IFS
1865  test -z "$as_dir" && as_dir=.
1866  for ac_exec_ext in '' $ac_executable_extensions; do
1867  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870    break 2
1871  fi
1872done
1873done
1874
1875fi
1876fi
1877STRIP=$ac_cv_prog_STRIP
1878if test -n "$STRIP"; then
1879  echo "$as_me:$LINENO: result: $STRIP" >&5
1880echo "${ECHO_T}$STRIP" >&6
1881else
1882  echo "$as_me:$LINENO: result: no" >&5
1883echo "${ECHO_T}no" >&6
1884fi
1885
1886fi
1887if test -z "$ac_cv_prog_STRIP"; then
1888  ac_ct_STRIP=$STRIP
1889  # Extract the first word of "strip", so it can be a program name with args.
1890set dummy strip; ac_word=$2
1891echo "$as_me:$LINENO: checking for $ac_word" >&5
1892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1894  echo $ECHO_N "(cached) $ECHO_C" >&6
1895else
1896  if test -n "$ac_ct_STRIP"; then
1897  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1898else
1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900for as_dir in $PATH
1901do
1902  IFS=$as_save_IFS
1903  test -z "$as_dir" && as_dir=.
1904  for ac_exec_ext in '' $ac_executable_extensions; do
1905  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906    ac_cv_prog_ac_ct_STRIP="strip"
1907    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908    break 2
1909  fi
1910done
1911done
1912
1913  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1914fi
1915fi
1916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1917if test -n "$ac_ct_STRIP"; then
1918  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1919echo "${ECHO_T}$ac_ct_STRIP" >&6
1920else
1921  echo "$as_me:$LINENO: result: no" >&5
1922echo "${ECHO_T}no" >&6
1923fi
1924
1925  STRIP=$ac_ct_STRIP
1926else
1927  STRIP="$ac_cv_prog_STRIP"
1928fi
1929
1930fi
1931INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1932
1933# We need awk for the "check" target.  The system "awk" is bad on
1934# some platforms.
1935# Always define AMTAR for backward compatibility.
1936
1937AMTAR=${AMTAR-"${am_missing_run}tar"}
1938
1939am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1940
1941
1942
1943
1944
1945
1946# Make sure we can run config.sub.
1947$ac_config_sub sun4 >/dev/null 2>&1 ||
1948  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1949echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1950   { (exit 1); exit 1; }; }
1951
1952echo "$as_me:$LINENO: checking build system type" >&5
1953echo $ECHO_N "checking build system type... $ECHO_C" >&6
1954if test "${ac_cv_build+set}" = set; then
1955  echo $ECHO_N "(cached) $ECHO_C" >&6
1956else
1957  ac_cv_build_alias=$build_alias
1958test -z "$ac_cv_build_alias" &&
1959  ac_cv_build_alias=`$ac_config_guess`
1960test -z "$ac_cv_build_alias" &&
1961  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1962echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1963   { (exit 1); exit 1; }; }
1964ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1965  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1966echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1967   { (exit 1); exit 1; }; }
1968
1969fi
1970echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1971echo "${ECHO_T}$ac_cv_build" >&6
1972build=$ac_cv_build
1973build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1974build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1975build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1976
1977
1978echo "$as_me:$LINENO: checking host system type" >&5
1979echo $ECHO_N "checking host system type... $ECHO_C" >&6
1980if test "${ac_cv_host+set}" = set; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  ac_cv_host_alias=$host_alias
1984test -z "$ac_cv_host_alias" &&
1985  ac_cv_host_alias=$ac_cv_build_alias
1986ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1987  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1988echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1989   { (exit 1); exit 1; }; }
1990
1991fi
1992echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1993echo "${ECHO_T}$ac_cv_host" >&6
1994host=$ac_cv_host
1995host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1996host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1997host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1998
1999
2000          ac_config_headers="$ac_config_headers config.h"
2001
2002
2003# Checks for programs.
2004ac_ext=c
2005ac_cpp='$CPP $CPPFLAGS'
2006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009if test -n "$ac_tool_prefix"; then
2010  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2011set dummy ${ac_tool_prefix}gcc; ac_word=$2
2012echo "$as_me:$LINENO: checking for $ac_word" >&5
2013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014if test "${ac_cv_prog_CC+set}" = set; then
2015  echo $ECHO_N "(cached) $ECHO_C" >&6
2016else
2017  if test -n "$CC"; then
2018  ac_cv_prog_CC="$CC" # Let the user override the test.
2019else
2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023  IFS=$as_save_IFS
2024  test -z "$as_dir" && as_dir=.
2025  for ac_exec_ext in '' $ac_executable_extensions; do
2026  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029    break 2
2030  fi
2031done
2032done
2033
2034fi
2035fi
2036CC=$ac_cv_prog_CC
2037if test -n "$CC"; then
2038  echo "$as_me:$LINENO: result: $CC" >&5
2039echo "${ECHO_T}$CC" >&6
2040else
2041  echo "$as_me:$LINENO: result: no" >&5
2042echo "${ECHO_T}no" >&6
2043fi
2044
2045fi
2046if test -z "$ac_cv_prog_CC"; then
2047  ac_ct_CC=$CC
2048  # Extract the first word of "gcc", so it can be a program name with args.
2049set dummy gcc; ac_word=$2
2050echo "$as_me:$LINENO: checking for $ac_word" >&5
2051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2053  echo $ECHO_N "(cached) $ECHO_C" >&6
2054else
2055  if test -n "$ac_ct_CC"; then
2056  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2057else
2058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059for as_dir in $PATH
2060do
2061  IFS=$as_save_IFS
2062  test -z "$as_dir" && as_dir=.
2063  for ac_exec_ext in '' $ac_executable_extensions; do
2064  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065    ac_cv_prog_ac_ct_CC="gcc"
2066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067    break 2
2068  fi
2069done
2070done
2071
2072fi
2073fi
2074ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075if test -n "$ac_ct_CC"; then
2076  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077echo "${ECHO_T}$ac_ct_CC" >&6
2078else
2079  echo "$as_me:$LINENO: result: no" >&5
2080echo "${ECHO_T}no" >&6
2081fi
2082
2083  CC=$ac_ct_CC
2084else
2085  CC="$ac_cv_prog_CC"
2086fi
2087
2088if test -z "$CC"; then
2089  if test -n "$ac_tool_prefix"; then
2090  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2091set dummy ${ac_tool_prefix}cc; ac_word=$2
2092echo "$as_me:$LINENO: checking for $ac_word" >&5
2093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094if test "${ac_cv_prog_CC+set}" = set; then
2095  echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097  if test -n "$CC"; then
2098  ac_cv_prog_CC="$CC" # Let the user override the test.
2099else
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103  IFS=$as_save_IFS
2104  test -z "$as_dir" && as_dir=.
2105  for ac_exec_ext in '' $ac_executable_extensions; do
2106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107    ac_cv_prog_CC="${ac_tool_prefix}cc"
2108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109    break 2
2110  fi
2111done
2112done
2113
2114fi
2115fi
2116CC=$ac_cv_prog_CC
2117if test -n "$CC"; then
2118  echo "$as_me:$LINENO: result: $CC" >&5
2119echo "${ECHO_T}$CC" >&6
2120else
2121  echo "$as_me:$LINENO: result: no" >&5
2122echo "${ECHO_T}no" >&6
2123fi
2124
2125fi
2126if test -z "$ac_cv_prog_CC"; then
2127  ac_ct_CC=$CC
2128  # Extract the first word of "cc", so it can be a program name with args.
2129set dummy cc; ac_word=$2
2130echo "$as_me:$LINENO: checking for $ac_word" >&5
2131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2133  echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
2135  if test -n "$ac_ct_CC"; then
2136  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2137else
2138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139for as_dir in $PATH
2140do
2141  IFS=$as_save_IFS
2142  test -z "$as_dir" && as_dir=.
2143  for ac_exec_ext in '' $ac_executable_extensions; do
2144  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145    ac_cv_prog_ac_ct_CC="cc"
2146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147    break 2
2148  fi
2149done
2150done
2151
2152fi
2153fi
2154ac_ct_CC=$ac_cv_prog_ac_ct_CC
2155if test -n "$ac_ct_CC"; then
2156  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2157echo "${ECHO_T}$ac_ct_CC" >&6
2158else
2159  echo "$as_me:$LINENO: result: no" >&5
2160echo "${ECHO_T}no" >&6
2161fi
2162
2163  CC=$ac_ct_CC
2164else
2165  CC="$ac_cv_prog_CC"
2166fi
2167
2168fi
2169if test -z "$CC"; then
2170  # Extract the first word of "cc", so it can be a program name with args.
2171set dummy cc; ac_word=$2
2172echo "$as_me:$LINENO: checking for $ac_word" >&5
2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174if test "${ac_cv_prog_CC+set}" = set; then
2175  echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177  if test -n "$CC"; then
2178  ac_cv_prog_CC="$CC" # Let the user override the test.
2179else
2180  ac_prog_rejected=no
2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182for as_dir in $PATH
2183do
2184  IFS=$as_save_IFS
2185  test -z "$as_dir" && as_dir=.
2186  for ac_exec_ext in '' $ac_executable_extensions; do
2187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189       ac_prog_rejected=yes
2190       continue
2191     fi
2192    ac_cv_prog_CC="cc"
2193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194    break 2
2195  fi
2196done
2197done
2198
2199if test $ac_prog_rejected = yes; then
2200  # We found a bogon in the path, so make sure we never use it.
2201  set dummy $ac_cv_prog_CC
2202  shift
2203  if test $# != 0; then
2204    # We chose a different compiler from the bogus one.
2205    # However, it has the same basename, so the bogon will be chosen
2206    # first if we set CC to just the basename; use the full file name.
2207    shift
2208    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2209  fi
2210fi
2211fi
2212fi
2213CC=$ac_cv_prog_CC
2214if test -n "$CC"; then
2215  echo "$as_me:$LINENO: result: $CC" >&5
2216echo "${ECHO_T}$CC" >&6
2217else
2218  echo "$as_me:$LINENO: result: no" >&5
2219echo "${ECHO_T}no" >&6
2220fi
2221
2222fi
2223if test -z "$CC"; then
2224  if test -n "$ac_tool_prefix"; then
2225  for ac_prog in cl
2226  do
2227    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2229echo "$as_me:$LINENO: checking for $ac_word" >&5
2230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231if test "${ac_cv_prog_CC+set}" = set; then
2232  echo $ECHO_N "(cached) $ECHO_C" >&6
2233else
2234  if test -n "$CC"; then
2235  ac_cv_prog_CC="$CC" # Let the user override the test.
2236else
2237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238for as_dir in $PATH
2239do
2240  IFS=$as_save_IFS
2241  test -z "$as_dir" && as_dir=.
2242  for ac_exec_ext in '' $ac_executable_extensions; do
2243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246    break 2
2247  fi
2248done
2249done
2250
2251fi
2252fi
2253CC=$ac_cv_prog_CC
2254if test -n "$CC"; then
2255  echo "$as_me:$LINENO: result: $CC" >&5
2256echo "${ECHO_T}$CC" >&6
2257else
2258  echo "$as_me:$LINENO: result: no" >&5
2259echo "${ECHO_T}no" >&6
2260fi
2261
2262    test -n "$CC" && break
2263  done
2264fi
2265if test -z "$CC"; then
2266  ac_ct_CC=$CC
2267  for ac_prog in cl
2268do
2269  # Extract the first word of "$ac_prog", so it can be a program name with args.
2270set dummy $ac_prog; ac_word=$2
2271echo "$as_me:$LINENO: checking for $ac_word" >&5
2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274  echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276  if test -n "$ac_ct_CC"; then
2277  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278else
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282  IFS=$as_save_IFS
2283  test -z "$as_dir" && as_dir=.
2284  for ac_exec_ext in '' $ac_executable_extensions; do
2285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286    ac_cv_prog_ac_ct_CC="$ac_prog"
2287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288    break 2
2289  fi
2290done
2291done
2292
2293fi
2294fi
2295ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296if test -n "$ac_ct_CC"; then
2297  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2298echo "${ECHO_T}$ac_ct_CC" >&6
2299else
2300  echo "$as_me:$LINENO: result: no" >&5
2301echo "${ECHO_T}no" >&6
2302fi
2303
2304  test -n "$ac_ct_CC" && break
2305done
2306
2307  CC=$ac_ct_CC
2308fi
2309
2310fi
2311
2312
2313test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2314See \`config.log' for more details." >&5
2315echo "$as_me: error: no acceptable C compiler found in \$PATH
2316See \`config.log' for more details." >&2;}
2317   { (exit 1); exit 1; }; }
2318
2319# Provide some information about the compiler.
2320echo "$as_me:$LINENO:" \
2321     "checking for C compiler version" >&5
2322ac_compiler=`set X $ac_compile; echo $2`
2323{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2324  (eval $ac_compiler --version </dev/null >&5) 2>&5
2325  ac_status=$?
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); }
2328{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2329  (eval $ac_compiler -v </dev/null >&5) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }
2333{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2334  (eval $ac_compiler -V </dev/null >&5) 2>&5
2335  ac_status=$?
2336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337  (exit $ac_status); }
2338
2339cat >conftest.$ac_ext <<_ACEOF
2340/* confdefs.h.  */
2341_ACEOF
2342cat confdefs.h >>conftest.$ac_ext
2343cat >>conftest.$ac_ext <<_ACEOF
2344/* end confdefs.h.  */
2345
2346int
2347main ()
2348{
2349
2350  ;
2351  return 0;
2352}
2353_ACEOF
2354ac_clean_files_save=$ac_clean_files
2355ac_clean_files="$ac_clean_files a.out a.exe b.out"
2356# Try to create an executable without -o first, disregard a.out.
2357# It will help us diagnose broken compilers, and finding out an intuition
2358# of exeext.
2359echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2360echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2361ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2362if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2363  (eval $ac_link_default) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; then
2367  # Find the output, starting from the most likely.  This scheme is
2368# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2369# resort.
2370
2371# Be careful to initialize this variable, since it used to be cached.
2372# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2373ac_cv_exeext=
2374# b.out is created by i960 compilers.
2375for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2376do
2377  test -f "$ac_file" || continue
2378  case $ac_file in
2379    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2380	;;
2381    conftest.$ac_ext )
2382	# This is the source file.
2383	;;
2384    [ab].out )
2385	# We found the default executable, but exeext='' is most
2386	# certainly right.
2387	break;;
2388    *.* )
2389	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2390	# FIXME: I believe we export ac_cv_exeext for Libtool,
2391	# but it would be cool to find out if it's true.  Does anybody
2392	# maintain Libtool? --akim.
2393	export ac_cv_exeext
2394	break;;
2395    * )
2396	break;;
2397  esac
2398done
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2404See \`config.log' for more details." >&5
2405echo "$as_me: error: C compiler cannot create executables
2406See \`config.log' for more details." >&2;}
2407   { (exit 77); exit 77; }; }
2408fi
2409
2410ac_exeext=$ac_cv_exeext
2411echo "$as_me:$LINENO: result: $ac_file" >&5
2412echo "${ECHO_T}$ac_file" >&6
2413
2414# Check the compiler produces executables we can run.  If not, either
2415# the compiler is broken, or we cross compile.
2416echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2417echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2418# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2419# If not cross compiling, check that we can run a simple program.
2420if test "$cross_compiling" != yes; then
2421  if { ac_try='./$ac_file'
2422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423  (eval $ac_try) 2>&5
2424  ac_status=$?
2425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426  (exit $ac_status); }; }; then
2427    cross_compiling=no
2428  else
2429    if test "$cross_compiling" = maybe; then
2430	cross_compiling=yes
2431    else
2432	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2433If you meant to cross compile, use \`--host'.
2434See \`config.log' for more details." >&5
2435echo "$as_me: error: cannot run C compiled programs.
2436If you meant to cross compile, use \`--host'.
2437See \`config.log' for more details." >&2;}
2438   { (exit 1); exit 1; }; }
2439    fi
2440  fi
2441fi
2442echo "$as_me:$LINENO: result: yes" >&5
2443echo "${ECHO_T}yes" >&6
2444
2445rm -f a.out a.exe conftest$ac_cv_exeext b.out
2446ac_clean_files=$ac_clean_files_save
2447# Check the compiler produces executables we can run.  If not, either
2448# the compiler is broken, or we cross compile.
2449echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2450echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2451echo "$as_me:$LINENO: result: $cross_compiling" >&5
2452echo "${ECHO_T}$cross_compiling" >&6
2453
2454echo "$as_me:$LINENO: checking for suffix of executables" >&5
2455echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2457  (eval $ac_link) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; then
2461  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2462# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2463# work properly (i.e., refer to `conftest.exe'), while it won't with
2464# `rm'.
2465for ac_file in conftest.exe conftest conftest.*; do
2466  test -f "$ac_file" || continue
2467  case $ac_file in
2468    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2469    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2470	  export ac_cv_exeext
2471	  break;;
2472    * ) break;;
2473  esac
2474done
2475else
2476  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2477See \`config.log' for more details." >&5
2478echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2479See \`config.log' for more details." >&2;}
2480   { (exit 1); exit 1; }; }
2481fi
2482
2483rm -f conftest$ac_cv_exeext
2484echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2485echo "${ECHO_T}$ac_cv_exeext" >&6
2486
2487rm -f conftest.$ac_ext
2488EXEEXT=$ac_cv_exeext
2489ac_exeext=$EXEEXT
2490echo "$as_me:$LINENO: checking for suffix of object files" >&5
2491echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2492if test "${ac_cv_objext+set}" = set; then
2493  echo $ECHO_N "(cached) $ECHO_C" >&6
2494else
2495  cat >conftest.$ac_ext <<_ACEOF
2496/* confdefs.h.  */
2497_ACEOF
2498cat confdefs.h >>conftest.$ac_ext
2499cat >>conftest.$ac_ext <<_ACEOF
2500/* end confdefs.h.  */
2501
2502int
2503main ()
2504{
2505
2506  ;
2507  return 0;
2508}
2509_ACEOF
2510rm -f conftest.o conftest.obj
2511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512  (eval $ac_compile) 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; then
2516  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2517  case $ac_file in
2518    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2519    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2520       break;;
2521  esac
2522done
2523else
2524  echo "$as_me: failed program was:" >&5
2525sed 's/^/| /' conftest.$ac_ext >&5
2526
2527{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2528See \`config.log' for more details." >&5
2529echo "$as_me: error: cannot compute suffix of object files: cannot compile
2530See \`config.log' for more details." >&2;}
2531   { (exit 1); exit 1; }; }
2532fi
2533
2534rm -f conftest.$ac_cv_objext conftest.$ac_ext
2535fi
2536echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2537echo "${ECHO_T}$ac_cv_objext" >&6
2538OBJEXT=$ac_cv_objext
2539ac_objext=$OBJEXT
2540echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2541echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2542if test "${ac_cv_c_compiler_gnu+set}" = set; then
2543  echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545  cat >conftest.$ac_ext <<_ACEOF
2546/* confdefs.h.  */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
2550/* end confdefs.h.  */
2551
2552int
2553main ()
2554{
2555#ifndef __GNUC__
2556       choke me
2557#endif
2558
2559  ;
2560  return 0;
2561}
2562_ACEOF
2563rm -f conftest.$ac_objext
2564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565  (eval $ac_compile) 2>conftest.er1
2566  ac_status=$?
2567  grep -v '^ *+' conftest.er1 >conftest.err
2568  rm -f conftest.er1
2569  cat conftest.err >&5
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); } &&
2572	 { ac_try='test -z "$ac_c_werror_flag"
2573			 || test ! -s conftest.err'
2574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575  (eval $ac_try) 2>&5
2576  ac_status=$?
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); }; } &&
2579	 { ac_try='test -s conftest.$ac_objext'
2580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581  (eval $ac_try) 2>&5
2582  ac_status=$?
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); }; }; then
2585  ac_compiler_gnu=yes
2586else
2587  echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590ac_compiler_gnu=no
2591fi
2592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2593ac_cv_c_compiler_gnu=$ac_compiler_gnu
2594
2595fi
2596echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2597echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2598GCC=`test $ac_compiler_gnu = yes && echo yes`
2599ac_test_CFLAGS=${CFLAGS+set}
2600ac_save_CFLAGS=$CFLAGS
2601CFLAGS="-g"
2602echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2603echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2604if test "${ac_cv_prog_cc_g+set}" = set; then
2605  echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607  cat >conftest.$ac_ext <<_ACEOF
2608/* confdefs.h.  */
2609_ACEOF
2610cat confdefs.h >>conftest.$ac_ext
2611cat >>conftest.$ac_ext <<_ACEOF
2612/* end confdefs.h.  */
2613
2614int
2615main ()
2616{
2617
2618  ;
2619  return 0;
2620}
2621_ACEOF
2622rm -f conftest.$ac_objext
2623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624  (eval $ac_compile) 2>conftest.er1
2625  ac_status=$?
2626  grep -v '^ *+' conftest.er1 >conftest.err
2627  rm -f conftest.er1
2628  cat conftest.err >&5
2629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630  (exit $ac_status); } &&
2631	 { ac_try='test -z "$ac_c_werror_flag"
2632			 || test ! -s conftest.err'
2633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634  (eval $ac_try) 2>&5
2635  ac_status=$?
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); }; } &&
2638	 { ac_try='test -s conftest.$ac_objext'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; }; then
2644  ac_cv_prog_cc_g=yes
2645else
2646  echo "$as_me: failed program was:" >&5
2647sed 's/^/| /' conftest.$ac_ext >&5
2648
2649ac_cv_prog_cc_g=no
2650fi
2651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2652fi
2653echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2654echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2655if test "$ac_test_CFLAGS" = set; then
2656  CFLAGS=$ac_save_CFLAGS
2657elif test $ac_cv_prog_cc_g = yes; then
2658  if test "$GCC" = yes; then
2659    CFLAGS="-g -O2"
2660  else
2661    CFLAGS="-g"
2662  fi
2663else
2664  if test "$GCC" = yes; then
2665    CFLAGS="-O2"
2666  else
2667    CFLAGS=
2668  fi
2669fi
2670echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2671echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2672if test "${ac_cv_prog_cc_stdc+set}" = set; then
2673  echo $ECHO_N "(cached) $ECHO_C" >&6
2674else
2675  ac_cv_prog_cc_stdc=no
2676ac_save_CC=$CC
2677cat >conftest.$ac_ext <<_ACEOF
2678/* confdefs.h.  */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h.  */
2683#include <stdarg.h>
2684#include <stdio.h>
2685#include <sys/types.h>
2686#include <sys/stat.h>
2687/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2688struct buf { int x; };
2689FILE * (*rcsopen) (struct buf *, struct stat *, int);
2690static char *e (p, i)
2691     char **p;
2692     int i;
2693{
2694  return p[i];
2695}
2696static char *f (char * (*g) (char **, int), char **p, ...)
2697{
2698  char *s;
2699  va_list v;
2700  va_start (v,p);
2701  s = g (p, va_arg (v,int));
2702  va_end (v);
2703  return s;
2704}
2705
2706/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2707   function prototypes and stuff, but not '\xHH' hex character constants.
2708   These don't provoke an error unfortunately, instead are silently treated
2709   as 'x'.  The following induces an error, until -std1 is added to get
2710   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2711   array size at least.  It's necessary to write '\x00'==0 to get something
2712   that's true only with -std1.  */
2713int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714
2715int test (int i, double x);
2716struct s1 {int (*f) (int a);};
2717struct s2 {int (*f) (double a);};
2718int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2719int argc;
2720char **argv;
2721int
2722main ()
2723{
2724return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729# Don't try gcc -ansi; that turns off useful extensions and
2730# breaks some systems' header files.
2731# AIX			-qlanglvl=ansi
2732# Ultrix and OSF/1	-std1
2733# HP-UX 10.20 and later	-Ae
2734# HP-UX older versions	-Aa -D_HPUX_SOURCE
2735# SVR4			-Xc -D__EXTENSIONS__
2736for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2737do
2738  CC="$ac_save_CC $ac_arg"
2739  rm -f conftest.$ac_objext
2740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741  (eval $ac_compile) 2>conftest.er1
2742  ac_status=$?
2743  grep -v '^ *+' conftest.er1 >conftest.err
2744  rm -f conftest.er1
2745  cat conftest.err >&5
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); } &&
2748	 { ac_try='test -z "$ac_c_werror_flag"
2749			 || test ! -s conftest.err'
2750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751  (eval $ac_try) 2>&5
2752  ac_status=$?
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); }; } &&
2755	 { ac_try='test -s conftest.$ac_objext'
2756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757  (eval $ac_try) 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; }; then
2761  ac_cv_prog_cc_stdc=$ac_arg
2762break
2763else
2764  echo "$as_me: failed program was:" >&5
2765sed 's/^/| /' conftest.$ac_ext >&5
2766
2767fi
2768rm -f conftest.err conftest.$ac_objext
2769done
2770rm -f conftest.$ac_ext conftest.$ac_objext
2771CC=$ac_save_CC
2772
2773fi
2774
2775case "x$ac_cv_prog_cc_stdc" in
2776  x|xno)
2777    echo "$as_me:$LINENO: result: none needed" >&5
2778echo "${ECHO_T}none needed" >&6 ;;
2779  *)
2780    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2781echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2782    CC="$CC $ac_cv_prog_cc_stdc" ;;
2783esac
2784
2785# Some people use a C++ compiler to compile C.  Since we use `exit',
2786# in C++ we need to declare it.  In case someone uses the same compiler
2787# for both compiling C and C++ we need to have the C++ compiler decide
2788# the declaration of exit, since it's the most demanding environment.
2789cat >conftest.$ac_ext <<_ACEOF
2790#ifndef __cplusplus
2791  choke me
2792#endif
2793_ACEOF
2794rm -f conftest.$ac_objext
2795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796  (eval $ac_compile) 2>conftest.er1
2797  ac_status=$?
2798  grep -v '^ *+' conftest.er1 >conftest.err
2799  rm -f conftest.er1
2800  cat conftest.err >&5
2801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802  (exit $ac_status); } &&
2803	 { ac_try='test -z "$ac_c_werror_flag"
2804			 || test ! -s conftest.err'
2805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806  (eval $ac_try) 2>&5
2807  ac_status=$?
2808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809  (exit $ac_status); }; } &&
2810	 { ac_try='test -s conftest.$ac_objext'
2811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812  (eval $ac_try) 2>&5
2813  ac_status=$?
2814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815  (exit $ac_status); }; }; then
2816  for ac_declaration in \
2817   '' \
2818   'extern "C" void std::exit (int) throw (); using std::exit;' \
2819   'extern "C" void std::exit (int); using std::exit;' \
2820   'extern "C" void exit (int) throw ();' \
2821   'extern "C" void exit (int);' \
2822   'void exit (int);'
2823do
2824  cat >conftest.$ac_ext <<_ACEOF
2825/* confdefs.h.  */
2826_ACEOF
2827cat confdefs.h >>conftest.$ac_ext
2828cat >>conftest.$ac_ext <<_ACEOF
2829/* end confdefs.h.  */
2830$ac_declaration
2831#include <stdlib.h>
2832int
2833main ()
2834{
2835exit (42);
2836  ;
2837  return 0;
2838}
2839_ACEOF
2840rm -f conftest.$ac_objext
2841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842  (eval $ac_compile) 2>conftest.er1
2843  ac_status=$?
2844  grep -v '^ *+' conftest.er1 >conftest.err
2845  rm -f conftest.er1
2846  cat conftest.err >&5
2847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848  (exit $ac_status); } &&
2849	 { ac_try='test -z "$ac_c_werror_flag"
2850			 || test ! -s conftest.err'
2851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852  (eval $ac_try) 2>&5
2853  ac_status=$?
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); }; } &&
2856	 { ac_try='test -s conftest.$ac_objext'
2857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858  (eval $ac_try) 2>&5
2859  ac_status=$?
2860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861  (exit $ac_status); }; }; then
2862  :
2863else
2864  echo "$as_me: failed program was:" >&5
2865sed 's/^/| /' conftest.$ac_ext >&5
2866
2867continue
2868fi
2869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870  cat >conftest.$ac_ext <<_ACEOF
2871/* confdefs.h.  */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
2875/* end confdefs.h.  */
2876$ac_declaration
2877int
2878main ()
2879{
2880exit (42);
2881  ;
2882  return 0;
2883}
2884_ACEOF
2885rm -f conftest.$ac_objext
2886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887  (eval $ac_compile) 2>conftest.er1
2888  ac_status=$?
2889  grep -v '^ *+' conftest.er1 >conftest.err
2890  rm -f conftest.er1
2891  cat conftest.err >&5
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); } &&
2894	 { ac_try='test -z "$ac_c_werror_flag"
2895			 || test ! -s conftest.err'
2896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897  (eval $ac_try) 2>&5
2898  ac_status=$?
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); }; } &&
2901	 { ac_try='test -s conftest.$ac_objext'
2902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903  (eval $ac_try) 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }; }; then
2907  break
2908else
2909  echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912fi
2913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914done
2915rm -f conftest*
2916if test -n "$ac_declaration"; then
2917  echo '#ifdef __cplusplus' >>confdefs.h
2918  echo $ac_declaration      >>confdefs.h
2919  echo '#endif'             >>confdefs.h
2920fi
2921
2922else
2923  echo "$as_me: failed program was:" >&5
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926fi
2927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928ac_ext=c
2929ac_cpp='$CPP $CPPFLAGS'
2930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933DEPDIR="${am__leading_dot}deps"
2934
2935          ac_config_commands="$ac_config_commands depfiles"
2936
2937
2938am_make=${MAKE-make}
2939cat > confinc << 'END'
2940am__doit:
2941	@echo done
2942.PHONY: am__doit
2943END
2944# If we don't find an include directive, just comment out the code.
2945echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2946echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2947am__include="#"
2948am__quote=
2949_am_result=none
2950# First try GNU make style include.
2951echo "include confinc" > confmf
2952# We grep out `Entering directory' and `Leaving directory'
2953# messages which can occur if `w' ends up in MAKEFLAGS.
2954# In particular we don't look at `^make:' because GNU make might
2955# be invoked under some other name (usually "gmake"), in which
2956# case it prints its new name instead of `make'.
2957if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2958   am__include=include
2959   am__quote=
2960   _am_result=GNU
2961fi
2962# Now try BSD make style include.
2963if test "$am__include" = "#"; then
2964   echo '.include "confinc"' > confmf
2965   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2966      am__include=.include
2967      am__quote="\""
2968      _am_result=BSD
2969   fi
2970fi
2971
2972
2973echo "$as_me:$LINENO: result: $_am_result" >&5
2974echo "${ECHO_T}$_am_result" >&6
2975rm -f confinc confmf
2976
2977# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2978if test "${enable_dependency_tracking+set}" = set; then
2979  enableval="$enable_dependency_tracking"
2980
2981fi;
2982if test "x$enable_dependency_tracking" != xno; then
2983  am_depcomp="$ac_aux_dir/depcomp"
2984  AMDEPBACKSLASH='\'
2985fi
2986
2987
2988if test "x$enable_dependency_tracking" != xno; then
2989  AMDEP_TRUE=
2990  AMDEP_FALSE='#'
2991else
2992  AMDEP_TRUE='#'
2993  AMDEP_FALSE=
2994fi
2995
2996
2997
2998
2999depcc="$CC"   am_compiler_list=
3000
3001echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3002echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3003if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3004  echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3007  # We make a subdir and do the tests there.  Otherwise we can end up
3008  # making bogus files that we don't know about and never remove.  For
3009  # instance it was reported that on HP-UX the gcc test will end up
3010  # making a dummy file named `D' -- because `-MD' means `put the output
3011  # in D'.
3012  mkdir conftest.dir
3013  # Copy depcomp to subdir because otherwise we won't find it if we're
3014  # using a relative directory.
3015  cp "$am_depcomp" conftest.dir
3016  cd conftest.dir
3017  # We will build objects and dependencies in a subdirectory because
3018  # it helps to detect inapplicable dependency modes.  For instance
3019  # both Tru64's cc and ICC support -MD to output dependencies as a
3020  # side effect of compilation, but ICC will put the dependencies in
3021  # the current directory while Tru64 will put them in the object
3022  # directory.
3023  mkdir sub
3024
3025  am_cv_CC_dependencies_compiler_type=none
3026  if test "$am_compiler_list" = ""; then
3027     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3028  fi
3029  for depmode in $am_compiler_list; do
3030    # Setup a source with many dependencies, because some compilers
3031    # like to wrap large dependency lists on column 80 (with \), and
3032    # we should not choose a depcomp mode which is confused by this.
3033    #
3034    # We need to recreate these files for each test, as the compiler may
3035    # overwrite some of them when testing with obscure command lines.
3036    # This happens at least with the AIX C compiler.
3037    : > sub/conftest.c
3038    for i in 1 2 3 4 5 6; do
3039      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3040      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3041      # Solaris 8's {/usr,}/bin/sh.
3042      touch sub/conftst$i.h
3043    done
3044    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3045
3046    case $depmode in
3047    nosideeffect)
3048      # after this tag, mechanisms are not by side-effect, so they'll
3049      # only be used when explicitly requested
3050      if test "x$enable_dependency_tracking" = xyes; then
3051	continue
3052      else
3053	break
3054      fi
3055      ;;
3056    none) break ;;
3057    esac
3058    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3059    # mode.  It turns out that the SunPro C++ compiler does not properly
3060    # handle `-M -o', and we need to detect this.
3061    if depmode=$depmode \
3062       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3063       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3064       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3065         >/dev/null 2>conftest.err &&
3066       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3067       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3068       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3069      # icc doesn't choke on unknown options, it will just issue warnings
3070      # or remarks (even with -Werror).  So we grep stderr for any message
3071      # that says an option was ignored or not supported.
3072      # When given -MP, icc 7.0 and 7.1 complain thusly:
3073      #   icc: Command line warning: ignoring option '-M'; no argument required
3074      # The diagnosis changed in icc 8.0:
3075      #   icc: Command line remark: option '-MP' not supported
3076      if (grep 'ignoring option' conftest.err ||
3077          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3078        am_cv_CC_dependencies_compiler_type=$depmode
3079        break
3080      fi
3081    fi
3082  done
3083
3084  cd ..
3085  rm -rf conftest.dir
3086else
3087  am_cv_CC_dependencies_compiler_type=none
3088fi
3089
3090fi
3091echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3092echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3093CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3094
3095
3096
3097if
3098  test "x$enable_dependency_tracking" != xno \
3099  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3100  am__fastdepCC_TRUE=
3101  am__fastdepCC_FALSE='#'
3102else
3103  am__fastdepCC_TRUE='#'
3104  am__fastdepCC_FALSE=
3105fi
3106
3107
3108
3109# So far, the only shared library we might use is libopts.
3110# It's a small library - we might as well use a static version of it.
3111# Check whether --enable-shared or --disable-shared was given.
3112if test "${enable_shared+set}" = set; then
3113  enableval="$enable_shared"
3114  p=${PACKAGE-default}
3115    case $enableval in
3116    yes) enable_shared=yes ;;
3117    no) enable_shared=no ;;
3118    *)
3119      enable_shared=no
3120      # Look at the argument we got.  We use all the common list separators.
3121      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3122      for pkg in $enableval; do
3123	IFS="$lt_save_ifs"
3124	if test "X$pkg" = "X$p"; then
3125	  enable_shared=yes
3126	fi
3127      done
3128      IFS="$lt_save_ifs"
3129      ;;
3130    esac
3131else
3132  enable_shared=no
3133fi;
3134
3135
3136
3137# Check whether --enable-static or --disable-static was given.
3138if test "${enable_static+set}" = set; then
3139  enableval="$enable_static"
3140  p=${PACKAGE-default}
3141    case $enableval in
3142    yes) enable_static=yes ;;
3143    no) enable_static=no ;;
3144    *)
3145     enable_static=no
3146      # Look at the argument we got.  We use all the common list separators.
3147      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3148      for pkg in $enableval; do
3149	IFS="$lt_save_ifs"
3150	if test "X$pkg" = "X$p"; then
3151	  enable_static=yes
3152	fi
3153      done
3154      IFS="$lt_save_ifs"
3155      ;;
3156    esac
3157else
3158  enable_static=yes
3159fi;
3160
3161# Check whether --enable-fast-install or --disable-fast-install was given.
3162if test "${enable_fast_install+set}" = set; then
3163  enableval="$enable_fast_install"
3164  p=${PACKAGE-default}
3165    case $enableval in
3166    yes) enable_fast_install=yes ;;
3167    no) enable_fast_install=no ;;
3168    *)
3169      enable_fast_install=no
3170      # Look at the argument we got.  We use all the common list separators.
3171      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3172      for pkg in $enableval; do
3173	IFS="$lt_save_ifs"
3174	if test "X$pkg" = "X$p"; then
3175	  enable_fast_install=yes
3176	fi
3177      done
3178      IFS="$lt_save_ifs"
3179      ;;
3180    esac
3181else
3182  enable_fast_install=yes
3183fi;
3184
3185echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3186echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3187if test "${lt_cv_path_SED+set}" = set; then
3188  echo $ECHO_N "(cached) $ECHO_C" >&6
3189else
3190  # Loop through the user's path and test for sed and gsed.
3191# Then use that list of sed's as ones to test for truncation.
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197  for lt_ac_prog in sed gsed; do
3198    for ac_exec_ext in '' $ac_executable_extensions; do
3199      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3200        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3201      fi
3202    done
3203  done
3204done
3205lt_ac_max=0
3206lt_ac_count=0
3207# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3208# along with /bin/sed that truncates output.
3209for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3210  test ! -f $lt_ac_sed && continue
3211  cat /dev/null > conftest.in
3212  lt_ac_count=0
3213  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3214  # Check for GNU sed and select it if it is found.
3215  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3216    lt_cv_path_SED=$lt_ac_sed
3217    break
3218  fi
3219  while true; do
3220    cat conftest.in conftest.in >conftest.tmp
3221    mv conftest.tmp conftest.in
3222    cp conftest.in conftest.nl
3223    echo >>conftest.nl
3224    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3225    cmp -s conftest.out conftest.nl || break
3226    # 10000 chars as input seems more than enough
3227    test $lt_ac_count -gt 10 && break
3228    lt_ac_count=`expr $lt_ac_count + 1`
3229    if test $lt_ac_count -gt $lt_ac_max; then
3230      lt_ac_max=$lt_ac_count
3231      lt_cv_path_SED=$lt_ac_sed
3232    fi
3233  done
3234done
3235
3236fi
3237
3238SED=$lt_cv_path_SED
3239echo "$as_me:$LINENO: result: $SED" >&5
3240echo "${ECHO_T}$SED" >&6
3241
3242echo "$as_me:$LINENO: checking for egrep" >&5
3243echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3244if test "${ac_cv_prog_egrep+set}" = set; then
3245  echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3248    then ac_cv_prog_egrep='grep -E'
3249    else ac_cv_prog_egrep='egrep'
3250    fi
3251fi
3252echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3253echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3254 EGREP=$ac_cv_prog_egrep
3255
3256
3257
3258# Check whether --with-gnu-ld or --without-gnu-ld was given.
3259if test "${with_gnu_ld+set}" = set; then
3260  withval="$with_gnu_ld"
3261  test "$withval" = no || with_gnu_ld=yes
3262else
3263  with_gnu_ld=no
3264fi;
3265ac_prog=ld
3266if test "$GCC" = yes; then
3267  # Check if gcc -print-prog-name=ld gives a path.
3268  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3269echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3270  case $host in
3271  *-*-mingw*)
3272    # gcc leaves a trailing carriage return which upsets mingw
3273    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3274  *)
3275    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3276  esac
3277  case $ac_prog in
3278    # Accept absolute paths.
3279    [\\/]* | ?:[\\/]*)
3280      re_direlt='/[^/][^/]*/\.\./'
3281      # Canonicalize the pathname of ld
3282      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3283      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3284	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3285      done
3286      test -z "$LD" && LD="$ac_prog"
3287      ;;
3288  "")
3289    # If it fails, then pretend we aren't using GCC.
3290    ac_prog=ld
3291    ;;
3292  *)
3293    # If it is relative, then search for the first ld in PATH.
3294    with_gnu_ld=unknown
3295    ;;
3296  esac
3297elif test "$with_gnu_ld" = yes; then
3298  echo "$as_me:$LINENO: checking for GNU ld" >&5
3299echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3300else
3301  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3302echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3303fi
3304if test "${lt_cv_path_LD+set}" = set; then
3305  echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307  if test -z "$LD"; then
3308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3309  for ac_dir in $PATH; do
3310    IFS="$lt_save_ifs"
3311    test -z "$ac_dir" && ac_dir=.
3312    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3313      lt_cv_path_LD="$ac_dir/$ac_prog"
3314      # Check to see if the program is GNU ld.  I'd rather use --version,
3315      # but apparently some variants of GNU ld only accept -v.
3316      # Break only if it was the GNU/non-GNU ld that we prefer.
3317      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3318      *GNU* | *'with BFD'*)
3319	test "$with_gnu_ld" != no && break
3320	;;
3321      *)
3322	test "$with_gnu_ld" != yes && break
3323	;;
3324      esac
3325    fi
3326  done
3327  IFS="$lt_save_ifs"
3328else
3329  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3330fi
3331fi
3332
3333LD="$lt_cv_path_LD"
3334if test -n "$LD"; then
3335  echo "$as_me:$LINENO: result: $LD" >&5
3336echo "${ECHO_T}$LD" >&6
3337else
3338  echo "$as_me:$LINENO: result: no" >&5
3339echo "${ECHO_T}no" >&6
3340fi
3341test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3342echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3343   { (exit 1); exit 1; }; }
3344echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3345echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3346if test "${lt_cv_prog_gnu_ld+set}" = set; then
3347  echo $ECHO_N "(cached) $ECHO_C" >&6
3348else
3349  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3350case `$LD -v 2>&1 </dev/null` in
3351*GNU* | *'with BFD'*)
3352  lt_cv_prog_gnu_ld=yes
3353  ;;
3354*)
3355  lt_cv_prog_gnu_ld=no
3356  ;;
3357esac
3358fi
3359echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3360echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3361with_gnu_ld=$lt_cv_prog_gnu_ld
3362
3363
3364echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3365echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3366if test "${lt_cv_ld_reload_flag+set}" = set; then
3367  echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369  lt_cv_ld_reload_flag='-r'
3370fi
3371echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3372echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3373reload_flag=$lt_cv_ld_reload_flag
3374case $reload_flag in
3375"" | " "*) ;;
3376*) reload_flag=" $reload_flag" ;;
3377esac
3378reload_cmds='$LD$reload_flag -o $output$reload_objs'
3379case $host_os in
3380  darwin*)
3381    if test "$GCC" = yes; then
3382      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3383    else
3384      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3385    fi
3386    ;;
3387esac
3388
3389echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3390echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3391if test "${lt_cv_path_NM+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  if test -n "$NM"; then
3395  # Let the user override the test.
3396  lt_cv_path_NM="$NM"
3397else
3398  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3399  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3400    IFS="$lt_save_ifs"
3401    test -z "$ac_dir" && ac_dir=.
3402    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3403    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3404      # Check to see if the nm accepts a BSD-compat flag.
3405      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3406      #   nm: unknown option "B" ignored
3407      # Tru64's nm complains that /dev/null is an invalid object file
3408      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3409      */dev/null* | *'Invalid file or object type'*)
3410	lt_cv_path_NM="$tmp_nm -B"
3411	break
3412        ;;
3413      *)
3414	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3415	*/dev/null*)
3416	  lt_cv_path_NM="$tmp_nm -p"
3417	  break
3418	  ;;
3419	*)
3420	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3421	  continue # so that we can try to find one that supports BSD flags
3422	  ;;
3423	esac
3424      esac
3425    fi
3426  done
3427  IFS="$lt_save_ifs"
3428  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3429fi
3430fi
3431echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3432echo "${ECHO_T}$lt_cv_path_NM" >&6
3433NM="$lt_cv_path_NM"
3434
3435echo "$as_me:$LINENO: checking whether ln -s works" >&5
3436echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3437LN_S=$as_ln_s
3438if test "$LN_S" = "ln -s"; then
3439  echo "$as_me:$LINENO: result: yes" >&5
3440echo "${ECHO_T}yes" >&6
3441else
3442  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3443echo "${ECHO_T}no, using $LN_S" >&6
3444fi
3445
3446echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3447echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3448if test "${lt_cv_deplibs_check_method+set}" = set; then
3449  echo $ECHO_N "(cached) $ECHO_C" >&6
3450else
3451  lt_cv_file_magic_cmd='$MAGIC_CMD'
3452lt_cv_file_magic_test_file=
3453lt_cv_deplibs_check_method='unknown'
3454# Need to set the preceding variable on all platforms that support
3455# interlibrary dependencies.
3456# 'none' -- dependencies not supported.
3457# `unknown' -- same as none, but documents that we really don't know.
3458# 'pass_all' -- all dependencies passed with no checks.
3459# 'test_compile' -- check by making test program.
3460# 'file_magic [[regex]]' -- check by looking for files in library path
3461# which responds to the $file_magic_cmd with a given extended regex.
3462# If you have `file' or equivalent on your system and you're not sure
3463# whether `pass_all' will *always* work, you probably want this one.
3464
3465case $host_os in
3466aix4* | aix5*)
3467  lt_cv_deplibs_check_method=pass_all
3468  ;;
3469
3470beos*)
3471  lt_cv_deplibs_check_method=pass_all
3472  ;;
3473
3474bsdi[45]*)
3475  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3476  lt_cv_file_magic_cmd='/usr/bin/file -L'
3477  lt_cv_file_magic_test_file=/shlib/libc.so
3478  ;;
3479
3480cygwin*)
3481  # func_win32_libid is a shell function defined in ltmain.sh
3482  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3483  lt_cv_file_magic_cmd='func_win32_libid'
3484  ;;
3485
3486mingw* | pw32*)
3487  # Base MSYS/MinGW do not provide the 'file' command needed by
3488  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3489  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3490  lt_cv_file_magic_cmd='$OBJDUMP -f'
3491  ;;
3492
3493darwin* | rhapsody*)
3494  lt_cv_deplibs_check_method=pass_all
3495  ;;
3496
3497freebsd* | kfreebsd*-gnu | dragonfly*)
3498  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3499    case $host_cpu in
3500    i*86 )
3501      # Not sure whether the presence of OpenBSD here was a mistake.
3502      # Let's accept both of them until this is cleared up.
3503      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3504      lt_cv_file_magic_cmd=/usr/bin/file
3505      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3506      ;;
3507    esac
3508  else
3509    lt_cv_deplibs_check_method=pass_all
3510  fi
3511  ;;
3512
3513gnu*)
3514  lt_cv_deplibs_check_method=pass_all
3515  ;;
3516
3517hpux10.20* | hpux11*)
3518  lt_cv_file_magic_cmd=/usr/bin/file
3519  case $host_cpu in
3520  ia64*)
3521    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3522    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3523    ;;
3524  hppa*64*)
3525    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]'
3526    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3527    ;;
3528  *)
3529    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3530    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3531    ;;
3532  esac
3533  ;;
3534
3535irix5* | irix6* | nonstopux*)
3536  case $LD in
3537  *-32|*"-32 ") libmagic=32-bit;;
3538  *-n32|*"-n32 ") libmagic=N32;;
3539  *-64|*"-64 ") libmagic=64-bit;;
3540  *) libmagic=never-match;;
3541  esac
3542  lt_cv_deplibs_check_method=pass_all
3543  ;;
3544
3545# This must be Linux ELF.
3546linux*)
3547  lt_cv_deplibs_check_method=pass_all
3548  ;;
3549
3550netbsd*)
3551  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3552    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3553  else
3554    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3555  fi
3556  ;;
3557
3558newos6*)
3559  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3560  lt_cv_file_magic_cmd=/usr/bin/file
3561  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3562  ;;
3563
3564nto-qnx*)
3565  lt_cv_deplibs_check_method=unknown
3566  ;;
3567
3568openbsd*)
3569  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3570    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3571  else
3572    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3573  fi
3574  ;;
3575
3576osf3* | osf4* | osf5*)
3577  lt_cv_deplibs_check_method=pass_all
3578  ;;
3579
3580sco3.2v5*)
3581  lt_cv_deplibs_check_method=pass_all
3582  ;;
3583
3584solaris*)
3585  lt_cv_deplibs_check_method=pass_all
3586  ;;
3587
3588sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3589  case $host_vendor in
3590  motorola)
3591    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]'
3592    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3593    ;;
3594  ncr)
3595    lt_cv_deplibs_check_method=pass_all
3596    ;;
3597  sequent)
3598    lt_cv_file_magic_cmd='/bin/file'
3599    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3600    ;;
3601  sni)
3602    lt_cv_file_magic_cmd='/bin/file'
3603    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3604    lt_cv_file_magic_test_file=/lib/libc.so
3605    ;;
3606  siemens)
3607    lt_cv_deplibs_check_method=pass_all
3608    ;;
3609  esac
3610  ;;
3611
3612sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3613  lt_cv_deplibs_check_method=pass_all
3614  ;;
3615esac
3616
3617fi
3618echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3619echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3620file_magic_cmd=$lt_cv_file_magic_cmd
3621deplibs_check_method=$lt_cv_deplibs_check_method
3622test -z "$deplibs_check_method" && deplibs_check_method=unknown
3623
3624
3625
3626
3627# If no C compiler was specified, use CC.
3628LTCC=${LTCC-"$CC"}
3629
3630# Allow CC to be a program name with arguments.
3631compiler=$CC
3632
3633
3634# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3635if test "${enable_libtool_lock+set}" = set; then
3636  enableval="$enable_libtool_lock"
3637
3638fi;
3639test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3640
3641# Some flags need to be propagated to the compiler or linker for good
3642# libtool support.
3643case $host in
3644ia64-*-hpux*)
3645  # Find out which ABI we are using.
3646  echo 'int i;' > conftest.$ac_ext
3647  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648  (eval $ac_compile) 2>&5
3649  ac_status=$?
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); }; then
3652    case `/usr/bin/file conftest.$ac_objext` in
3653    *ELF-32*)
3654      HPUX_IA64_MODE="32"
3655      ;;
3656    *ELF-64*)
3657      HPUX_IA64_MODE="64"
3658      ;;
3659    esac
3660  fi
3661  rm -rf conftest*
3662  ;;
3663*-*-irix6*)
3664  # Find out which ABI we are using.
3665  echo '#line 3665 "configure"' > conftest.$ac_ext
3666  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667  (eval $ac_compile) 2>&5
3668  ac_status=$?
3669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670  (exit $ac_status); }; then
3671   if test "$lt_cv_prog_gnu_ld" = yes; then
3672    case `/usr/bin/file conftest.$ac_objext` in
3673    *32-bit*)
3674      LD="${LD-ld} -melf32bsmip"
3675      ;;
3676    *N32*)
3677      LD="${LD-ld} -melf32bmipn32"
3678      ;;
3679    *64-bit*)
3680      LD="${LD-ld} -melf64bmip"
3681      ;;
3682    esac
3683   else
3684    case `/usr/bin/file conftest.$ac_objext` in
3685    *32-bit*)
3686      LD="${LD-ld} -32"
3687      ;;
3688    *N32*)
3689      LD="${LD-ld} -n32"
3690      ;;
3691    *64-bit*)
3692      LD="${LD-ld} -64"
3693      ;;
3694    esac
3695   fi
3696  fi
3697  rm -rf conftest*
3698  ;;
3699
3700x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3701  # Find out which ABI we are using.
3702  echo 'int i;' > conftest.$ac_ext
3703  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704  (eval $ac_compile) 2>&5
3705  ac_status=$?
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); }; then
3708    case `/usr/bin/file conftest.o` in
3709    *32-bit*)
3710      case $host in
3711        x86_64-*linux*)
3712          LD="${LD-ld} -m elf_i386"
3713          ;;
3714        ppc64-*linux*|powerpc64-*linux*)
3715          LD="${LD-ld} -m elf32ppclinux"
3716          ;;
3717        s390x-*linux*)
3718          LD="${LD-ld} -m elf_s390"
3719          ;;
3720        sparc64-*linux*)
3721          LD="${LD-ld} -m elf32_sparc"
3722          ;;
3723      esac
3724      ;;
3725    *64-bit*)
3726      case $host in
3727        x86_64-*linux*)
3728          LD="${LD-ld} -m elf_x86_64"
3729          ;;
3730        ppc*-*linux*|powerpc*-*linux*)
3731          LD="${LD-ld} -m elf64ppc"
3732          ;;
3733        s390*-*linux*)
3734          LD="${LD-ld} -m elf64_s390"
3735          ;;
3736        sparc*-*linux*)
3737          LD="${LD-ld} -m elf64_sparc"
3738          ;;
3739      esac
3740      ;;
3741    esac
3742  fi
3743  rm -rf conftest*
3744  ;;
3745
3746*-*-sco3.2v5*)
3747  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3748  SAVE_CFLAGS="$CFLAGS"
3749  CFLAGS="$CFLAGS -belf"
3750  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3751echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3752if test "${lt_cv_cc_needs_belf+set}" = set; then
3753  echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755  ac_ext=c
3756ac_cpp='$CPP $CPPFLAGS'
3757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761     cat >conftest.$ac_ext <<_ACEOF
3762/* confdefs.h.  */
3763_ACEOF
3764cat confdefs.h >>conftest.$ac_ext
3765cat >>conftest.$ac_ext <<_ACEOF
3766/* end confdefs.h.  */
3767
3768int
3769main ()
3770{
3771
3772  ;
3773  return 0;
3774}
3775_ACEOF
3776rm -f conftest.$ac_objext conftest$ac_exeext
3777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778  (eval $ac_link) 2>conftest.er1
3779  ac_status=$?
3780  grep -v '^ *+' conftest.er1 >conftest.err
3781  rm -f conftest.er1
3782  cat conftest.err >&5
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); } &&
3785	 { ac_try='test -z "$ac_c_werror_flag"
3786			 || test ! -s conftest.err'
3787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788  (eval $ac_try) 2>&5
3789  ac_status=$?
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); }; } &&
3792	 { ac_try='test -s conftest$ac_exeext'
3793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794  (eval $ac_try) 2>&5
3795  ac_status=$?
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); }; }; then
3798  lt_cv_cc_needs_belf=yes
3799else
3800  echo "$as_me: failed program was:" >&5
3801sed 's/^/| /' conftest.$ac_ext >&5
3802
3803lt_cv_cc_needs_belf=no
3804fi
3805rm -f conftest.err conftest.$ac_objext \
3806      conftest$ac_exeext conftest.$ac_ext
3807     ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
3813fi
3814echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3815echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3816  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3817    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3818    CFLAGS="$SAVE_CFLAGS"
3819  fi
3820  ;;
3821
3822esac
3823
3824need_locks="$enable_libtool_lock"
3825
3826
3827ac_ext=c
3828ac_cpp='$CPP $CPPFLAGS'
3829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3833echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3834# On Suns, sometimes $CPP names a directory.
3835if test -n "$CPP" && test -d "$CPP"; then
3836  CPP=
3837fi
3838if test -z "$CPP"; then
3839  if test "${ac_cv_prog_CPP+set}" = set; then
3840  echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842      # Double quotes because CPP needs to be expanded
3843    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3844    do
3845      ac_preproc_ok=false
3846for ac_c_preproc_warn_flag in '' yes
3847do
3848  # Use a header file that comes with gcc, so configuring glibc
3849  # with a fresh cross-compiler works.
3850  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851  # <limits.h> exists even on freestanding compilers.
3852  # On the NeXT, cc -E runs the code through the compiler's parser,
3853  # not just through cpp. "Syntax error" is here to catch this case.
3854  cat >conftest.$ac_ext <<_ACEOF
3855/* confdefs.h.  */
3856_ACEOF
3857cat confdefs.h >>conftest.$ac_ext
3858cat >>conftest.$ac_ext <<_ACEOF
3859/* end confdefs.h.  */
3860#ifdef __STDC__
3861# include <limits.h>
3862#else
3863# include <assert.h>
3864#endif
3865		     Syntax error
3866_ACEOF
3867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869  ac_status=$?
3870  grep -v '^ *+' conftest.er1 >conftest.err
3871  rm -f conftest.er1
3872  cat conftest.err >&5
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); } >/dev/null; then
3875  if test -s conftest.err; then
3876    ac_cpp_err=$ac_c_preproc_warn_flag
3877    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3878  else
3879    ac_cpp_err=
3880  fi
3881else
3882  ac_cpp_err=yes
3883fi
3884if test -z "$ac_cpp_err"; then
3885  :
3886else
3887  echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890  # Broken: fails on valid input.
3891continue
3892fi
3893rm -f conftest.err conftest.$ac_ext
3894
3895  # OK, works on sane cases.  Now check whether non-existent headers
3896  # can be detected and how.
3897  cat >conftest.$ac_ext <<_ACEOF
3898/* confdefs.h.  */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h.  */
3903#include <ac_nonexistent.h>
3904_ACEOF
3905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3906  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907  ac_status=$?
3908  grep -v '^ *+' conftest.er1 >conftest.err
3909  rm -f conftest.er1
3910  cat conftest.err >&5
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } >/dev/null; then
3913  if test -s conftest.err; then
3914    ac_cpp_err=$ac_c_preproc_warn_flag
3915    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3916  else
3917    ac_cpp_err=
3918  fi
3919else
3920  ac_cpp_err=yes
3921fi
3922if test -z "$ac_cpp_err"; then
3923  # Broken: success on invalid input.
3924continue
3925else
3926  echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929  # Passes both tests.
3930ac_preproc_ok=:
3931break
3932fi
3933rm -f conftest.err conftest.$ac_ext
3934
3935done
3936# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3937rm -f conftest.err conftest.$ac_ext
3938if $ac_preproc_ok; then
3939  break
3940fi
3941
3942    done
3943    ac_cv_prog_CPP=$CPP
3944
3945fi
3946  CPP=$ac_cv_prog_CPP
3947else
3948  ac_cv_prog_CPP=$CPP
3949fi
3950echo "$as_me:$LINENO: result: $CPP" >&5
3951echo "${ECHO_T}$CPP" >&6
3952ac_preproc_ok=false
3953for ac_c_preproc_warn_flag in '' yes
3954do
3955  # Use a header file that comes with gcc, so configuring glibc
3956  # with a fresh cross-compiler works.
3957  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958  # <limits.h> exists even on freestanding compilers.
3959  # On the NeXT, cc -E runs the code through the compiler's parser,
3960  # not just through cpp. "Syntax error" is here to catch this case.
3961  cat >conftest.$ac_ext <<_ACEOF
3962/* confdefs.h.  */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h.  */
3967#ifdef __STDC__
3968# include <limits.h>
3969#else
3970# include <assert.h>
3971#endif
3972		     Syntax error
3973_ACEOF
3974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976  ac_status=$?
3977  grep -v '^ *+' conftest.er1 >conftest.err
3978  rm -f conftest.er1
3979  cat conftest.err >&5
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); } >/dev/null; then
3982  if test -s conftest.err; then
3983    ac_cpp_err=$ac_c_preproc_warn_flag
3984    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3985  else
3986    ac_cpp_err=
3987  fi
3988else
3989  ac_cpp_err=yes
3990fi
3991if test -z "$ac_cpp_err"; then
3992  :
3993else
3994  echo "$as_me: failed program was:" >&5
3995sed 's/^/| /' conftest.$ac_ext >&5
3996
3997  # Broken: fails on valid input.
3998continue
3999fi
4000rm -f conftest.err conftest.$ac_ext
4001
4002  # OK, works on sane cases.  Now check whether non-existent headers
4003  # can be detected and how.
4004  cat >conftest.$ac_ext <<_ACEOF
4005/* confdefs.h.  */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h.  */
4010#include <ac_nonexistent.h>
4011_ACEOF
4012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014  ac_status=$?
4015  grep -v '^ *+' conftest.er1 >conftest.err
4016  rm -f conftest.er1
4017  cat conftest.err >&5
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); } >/dev/null; then
4020  if test -s conftest.err; then
4021    ac_cpp_err=$ac_c_preproc_warn_flag
4022    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4023  else
4024    ac_cpp_err=
4025  fi
4026else
4027  ac_cpp_err=yes
4028fi
4029if test -z "$ac_cpp_err"; then
4030  # Broken: success on invalid input.
4031continue
4032else
4033  echo "$as_me: failed program was:" >&5
4034sed 's/^/| /' conftest.$ac_ext >&5
4035
4036  # Passes both tests.
4037ac_preproc_ok=:
4038break
4039fi
4040rm -f conftest.err conftest.$ac_ext
4041
4042done
4043# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044rm -f conftest.err conftest.$ac_ext
4045if $ac_preproc_ok; then
4046  :
4047else
4048  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4049See \`config.log' for more details." >&5
4050echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4051See \`config.log' for more details." >&2;}
4052   { (exit 1); exit 1; }; }
4053fi
4054
4055ac_ext=c
4056ac_cpp='$CPP $CPPFLAGS'
4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061
4062echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4063echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4064if test "${ac_cv_header_stdc+set}" = set; then
4065  echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067  cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h.  */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h.  */
4073#include <stdlib.h>
4074#include <stdarg.h>
4075#include <string.h>
4076#include <float.h>
4077
4078int
4079main ()
4080{
4081
4082  ;
4083  return 0;
4084}
4085_ACEOF
4086rm -f conftest.$ac_objext
4087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088  (eval $ac_compile) 2>conftest.er1
4089  ac_status=$?
4090  grep -v '^ *+' conftest.er1 >conftest.err
4091  rm -f conftest.er1
4092  cat conftest.err >&5
4093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094  (exit $ac_status); } &&
4095	 { ac_try='test -z "$ac_c_werror_flag"
4096			 || test ! -s conftest.err'
4097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098  (eval $ac_try) 2>&5
4099  ac_status=$?
4100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101  (exit $ac_status); }; } &&
4102	 { ac_try='test -s conftest.$ac_objext'
4103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104  (eval $ac_try) 2>&5
4105  ac_status=$?
4106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); }; }; then
4108  ac_cv_header_stdc=yes
4109else
4110  echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113ac_cv_header_stdc=no
4114fi
4115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116
4117if test $ac_cv_header_stdc = yes; then
4118  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4119  cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h.  */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h.  */
4125#include <string.h>
4126
4127_ACEOF
4128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129  $EGREP "memchr" >/dev/null 2>&1; then
4130  :
4131else
4132  ac_cv_header_stdc=no
4133fi
4134rm -f conftest*
4135
4136fi
4137
4138if test $ac_cv_header_stdc = yes; then
4139  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4140  cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h.  */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h.  */
4146#include <stdlib.h>
4147
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150  $EGREP "free" >/dev/null 2>&1; then
4151  :
4152else
4153  ac_cv_header_stdc=no
4154fi
4155rm -f conftest*
4156
4157fi
4158
4159if test $ac_cv_header_stdc = yes; then
4160  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4161  if test "$cross_compiling" = yes; then
4162  :
4163else
4164  cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h.  */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h.  */
4170#include <ctype.h>
4171#if ((' ' & 0x0FF) == 0x020)
4172# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4173# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4174#else
4175# define ISLOWER(c) \
4176		   (('a' <= (c) && (c) <= 'i') \
4177		     || ('j' <= (c) && (c) <= 'r') \
4178		     || ('s' <= (c) && (c) <= 'z'))
4179# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4180#endif
4181
4182#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4183int
4184main ()
4185{
4186  int i;
4187  for (i = 0; i < 256; i++)
4188    if (XOR (islower (i), ISLOWER (i))
4189	|| toupper (i) != TOUPPER (i))
4190      exit(2);
4191  exit (0);
4192}
4193_ACEOF
4194rm -f conftest$ac_exeext
4195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196  (eval $ac_link) 2>&5
4197  ac_status=$?
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201  (eval $ac_try) 2>&5
4202  ac_status=$?
4203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204  (exit $ac_status); }; }; then
4205  :
4206else
4207  echo "$as_me: program exited with status $ac_status" >&5
4208echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
4211( exit $ac_status )
4212ac_cv_header_stdc=no
4213fi
4214rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215fi
4216fi
4217fi
4218echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4219echo "${ECHO_T}$ac_cv_header_stdc" >&6
4220if test $ac_cv_header_stdc = yes; then
4221
4222cat >>confdefs.h <<\_ACEOF
4223#define STDC_HEADERS 1
4224_ACEOF
4225
4226fi
4227
4228# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239		  inttypes.h stdint.h unistd.h
4240do
4241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242echo "$as_me:$LINENO: checking for $ac_header" >&5
4243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4244if eval "test \"\${$as_ac_Header+set}\" = set"; then
4245  echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247  cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h.  */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h.  */
4253$ac_includes_default
4254
4255#include <$ac_header>
4256_ACEOF
4257rm -f conftest.$ac_objext
4258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259  (eval $ac_compile) 2>conftest.er1
4260  ac_status=$?
4261  grep -v '^ *+' conftest.er1 >conftest.err
4262  rm -f conftest.er1
4263  cat conftest.err >&5
4264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265  (exit $ac_status); } &&
4266	 { ac_try='test -z "$ac_c_werror_flag"
4267			 || test ! -s conftest.err'
4268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269  (eval $ac_try) 2>&5
4270  ac_status=$?
4271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); }; } &&
4273	 { ac_try='test -s conftest.$ac_objext'
4274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275  (eval $ac_try) 2>&5
4276  ac_status=$?
4277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278  (exit $ac_status); }; }; then
4279  eval "$as_ac_Header=yes"
4280else
4281  echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284eval "$as_ac_Header=no"
4285fi
4286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4287fi
4288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4290if test `eval echo '${'$as_ac_Header'}'` = yes; then
4291  cat >>confdefs.h <<_ACEOF
4292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4293_ACEOF
4294
4295fi
4296
4297done
4298
4299
4300
4301for ac_header in dlfcn.h
4302do
4303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4304if eval "test \"\${$as_ac_Header+set}\" = set"; then
4305  echo "$as_me:$LINENO: checking for $ac_header" >&5
4306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4307if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308  echo $ECHO_N "(cached) $ECHO_C" >&6
4309fi
4310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4312else
4313  # Is the header compilable?
4314echo "$as_me:$LINENO: checking $ac_header usability" >&5
4315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4316cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h.  */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h.  */
4322$ac_includes_default
4323#include <$ac_header>
4324_ACEOF
4325rm -f conftest.$ac_objext
4326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327  (eval $ac_compile) 2>conftest.er1
4328  ac_status=$?
4329  grep -v '^ *+' conftest.er1 >conftest.err
4330  rm -f conftest.er1
4331  cat conftest.err >&5
4332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333  (exit $ac_status); } &&
4334	 { ac_try='test -z "$ac_c_werror_flag"
4335			 || test ! -s conftest.err'
4336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337  (eval $ac_try) 2>&5
4338  ac_status=$?
4339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340  (exit $ac_status); }; } &&
4341	 { ac_try='test -s conftest.$ac_objext'
4342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343  (eval $ac_try) 2>&5
4344  ac_status=$?
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); }; }; then
4347  ac_header_compiler=yes
4348else
4349  echo "$as_me: failed program was:" >&5
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
4352ac_header_compiler=no
4353fi
4354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4356echo "${ECHO_T}$ac_header_compiler" >&6
4357
4358# Is the header present?
4359echo "$as_me:$LINENO: checking $ac_header presence" >&5
4360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4361cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h.  */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h.  */
4367#include <$ac_header>
4368_ACEOF
4369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4370  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4371  ac_status=$?
4372  grep -v '^ *+' conftest.er1 >conftest.err
4373  rm -f conftest.er1
4374  cat conftest.err >&5
4375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376  (exit $ac_status); } >/dev/null; then
4377  if test -s conftest.err; then
4378    ac_cpp_err=$ac_c_preproc_warn_flag
4379    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4380  else
4381    ac_cpp_err=
4382  fi
4383else
4384  ac_cpp_err=yes
4385fi
4386if test -z "$ac_cpp_err"; then
4387  ac_header_preproc=yes
4388else
4389  echo "$as_me: failed program was:" >&5
4390sed 's/^/| /' conftest.$ac_ext >&5
4391
4392  ac_header_preproc=no
4393fi
4394rm -f conftest.err conftest.$ac_ext
4395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4396echo "${ECHO_T}$ac_header_preproc" >&6
4397
4398# So?  What about this header?
4399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4400  yes:no: )
4401    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4405    ac_header_preproc=yes
4406    ;;
4407  no:yes:* )
4408    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4410    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4411echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4412    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4414    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4415echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4416    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4418    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4420    (
4421      cat <<\_ASBOX
4422## ------------------------------------------ ##
4423## Report this to the AC_PACKAGE_NAME lists.  ##
4424## ------------------------------------------ ##
4425_ASBOX
4426    ) |
4427      sed "s/^/$as_me: WARNING:     /" >&2
4428    ;;
4429esac
4430echo "$as_me:$LINENO: checking for $ac_header" >&5
4431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4432if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433  echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435  eval "$as_ac_Header=\$ac_header_preproc"
4436fi
4437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439
4440fi
4441if test `eval echo '${'$as_ac_Header'}'` = yes; then
4442  cat >>confdefs.h <<_ACEOF
4443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4444_ACEOF
4445
4446fi
4447
4448done
4449
4450ac_ext=cc
4451ac_cpp='$CXXCPP $CPPFLAGS'
4452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4455if test -n "$ac_tool_prefix"; then
4456  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4457  do
4458    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4459set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4460echo "$as_me:$LINENO: checking for $ac_word" >&5
4461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462if test "${ac_cv_prog_CXX+set}" = set; then
4463  echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465  if test -n "$CXX"; then
4466  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471  IFS=$as_save_IFS
4472  test -z "$as_dir" && as_dir=.
4473  for ac_exec_ext in '' $ac_executable_extensions; do
4474  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477    break 2
4478  fi
4479done
4480done
4481
4482fi
4483fi
4484CXX=$ac_cv_prog_CXX
4485if test -n "$CXX"; then
4486  echo "$as_me:$LINENO: result: $CXX" >&5
4487echo "${ECHO_T}$CXX" >&6
4488else
4489  echo "$as_me:$LINENO: result: no" >&5
4490echo "${ECHO_T}no" >&6
4491fi
4492
4493    test -n "$CXX" && break
4494  done
4495fi
4496if test -z "$CXX"; then
4497  ac_ct_CXX=$CXX
4498  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4499do
4500  # Extract the first word of "$ac_prog", so it can be a program name with args.
4501set dummy $ac_prog; ac_word=$2
4502echo "$as_me:$LINENO: checking for $ac_word" >&5
4503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4504if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4505  echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507  if test -n "$ac_ct_CXX"; then
4508  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513  IFS=$as_save_IFS
4514  test -z "$as_dir" && as_dir=.
4515  for ac_exec_ext in '' $ac_executable_extensions; do
4516  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517    ac_cv_prog_ac_ct_CXX="$ac_prog"
4518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519    break 2
4520  fi
4521done
4522done
4523
4524fi
4525fi
4526ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4527if test -n "$ac_ct_CXX"; then
4528  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4529echo "${ECHO_T}$ac_ct_CXX" >&6
4530else
4531  echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6
4533fi
4534
4535  test -n "$ac_ct_CXX" && break
4536done
4537test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4538
4539  CXX=$ac_ct_CXX
4540fi
4541
4542
4543# Provide some information about the compiler.
4544echo "$as_me:$LINENO:" \
4545     "checking for C++ compiler version" >&5
4546ac_compiler=`set X $ac_compile; echo $2`
4547{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4548  (eval $ac_compiler --version </dev/null >&5) 2>&5
4549  ac_status=$?
4550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551  (exit $ac_status); }
4552{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4553  (eval $ac_compiler -v </dev/null >&5) 2>&5
4554  ac_status=$?
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); }
4557{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4558  (eval $ac_compiler -V </dev/null >&5) 2>&5
4559  ac_status=$?
4560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561  (exit $ac_status); }
4562
4563echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4564echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4565if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4566  echo $ECHO_N "(cached) $ECHO_C" >&6
4567else
4568  cat >conftest.$ac_ext <<_ACEOF
4569/* confdefs.h.  */
4570_ACEOF
4571cat confdefs.h >>conftest.$ac_ext
4572cat >>conftest.$ac_ext <<_ACEOF
4573/* end confdefs.h.  */
4574
4575int
4576main ()
4577{
4578#ifndef __GNUC__
4579       choke me
4580#endif
4581
4582  ;
4583  return 0;
4584}
4585_ACEOF
4586rm -f conftest.$ac_objext
4587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588  (eval $ac_compile) 2>conftest.er1
4589  ac_status=$?
4590  grep -v '^ *+' conftest.er1 >conftest.err
4591  rm -f conftest.er1
4592  cat conftest.err >&5
4593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); } &&
4595	 { ac_try='test -z "$ac_cxx_werror_flag"
4596			 || test ! -s conftest.err'
4597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598  (eval $ac_try) 2>&5
4599  ac_status=$?
4600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601  (exit $ac_status); }; } &&
4602	 { ac_try='test -s conftest.$ac_objext'
4603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604  (eval $ac_try) 2>&5
4605  ac_status=$?
4606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607  (exit $ac_status); }; }; then
4608  ac_compiler_gnu=yes
4609else
4610  echo "$as_me: failed program was:" >&5
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613ac_compiler_gnu=no
4614fi
4615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4617
4618fi
4619echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4620echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4621GXX=`test $ac_compiler_gnu = yes && echo yes`
4622ac_test_CXXFLAGS=${CXXFLAGS+set}
4623ac_save_CXXFLAGS=$CXXFLAGS
4624CXXFLAGS="-g"
4625echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4626echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4627if test "${ac_cv_prog_cxx_g+set}" = set; then
4628  echo $ECHO_N "(cached) $ECHO_C" >&6
4629else
4630  cat >conftest.$ac_ext <<_ACEOF
4631/* confdefs.h.  */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h.  */
4636
4637int
4638main ()
4639{
4640
4641  ;
4642  return 0;
4643}
4644_ACEOF
4645rm -f conftest.$ac_objext
4646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647  (eval $ac_compile) 2>conftest.er1
4648  ac_status=$?
4649  grep -v '^ *+' conftest.er1 >conftest.err
4650  rm -f conftest.er1
4651  cat conftest.err >&5
4652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653  (exit $ac_status); } &&
4654	 { ac_try='test -z "$ac_cxx_werror_flag"
4655			 || test ! -s conftest.err'
4656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657  (eval $ac_try) 2>&5
4658  ac_status=$?
4659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660  (exit $ac_status); }; } &&
4661	 { ac_try='test -s conftest.$ac_objext'
4662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663  (eval $ac_try) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); }; }; then
4667  ac_cv_prog_cxx_g=yes
4668else
4669  echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672ac_cv_prog_cxx_g=no
4673fi
4674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4675fi
4676echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4677echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4678if test "$ac_test_CXXFLAGS" = set; then
4679  CXXFLAGS=$ac_save_CXXFLAGS
4680elif test $ac_cv_prog_cxx_g = yes; then
4681  if test "$GXX" = yes; then
4682    CXXFLAGS="-g -O2"
4683  else
4684    CXXFLAGS="-g"
4685  fi
4686else
4687  if test "$GXX" = yes; then
4688    CXXFLAGS="-O2"
4689  else
4690    CXXFLAGS=
4691  fi
4692fi
4693for ac_declaration in \
4694   '' \
4695   'extern "C" void std::exit (int) throw (); using std::exit;' \
4696   'extern "C" void std::exit (int); using std::exit;' \
4697   'extern "C" void exit (int) throw ();' \
4698   'extern "C" void exit (int);' \
4699   'void exit (int);'
4700do
4701  cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h.  */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h.  */
4707$ac_declaration
4708#include <stdlib.h>
4709int
4710main ()
4711{
4712exit (42);
4713  ;
4714  return 0;
4715}
4716_ACEOF
4717rm -f conftest.$ac_objext
4718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719  (eval $ac_compile) 2>conftest.er1
4720  ac_status=$?
4721  grep -v '^ *+' conftest.er1 >conftest.err
4722  rm -f conftest.er1
4723  cat conftest.err >&5
4724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725  (exit $ac_status); } &&
4726	 { ac_try='test -z "$ac_cxx_werror_flag"
4727			 || test ! -s conftest.err'
4728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729  (eval $ac_try) 2>&5
4730  ac_status=$?
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); }; } &&
4733	 { ac_try='test -s conftest.$ac_objext'
4734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735  (eval $ac_try) 2>&5
4736  ac_status=$?
4737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738  (exit $ac_status); }; }; then
4739  :
4740else
4741  echo "$as_me: failed program was:" >&5
4742sed 's/^/| /' conftest.$ac_ext >&5
4743
4744continue
4745fi
4746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747  cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h.  */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h.  */
4753$ac_declaration
4754int
4755main ()
4756{
4757exit (42);
4758  ;
4759  return 0;
4760}
4761_ACEOF
4762rm -f conftest.$ac_objext
4763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4764  (eval $ac_compile) 2>conftest.er1
4765  ac_status=$?
4766  grep -v '^ *+' conftest.er1 >conftest.err
4767  rm -f conftest.er1
4768  cat conftest.err >&5
4769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770  (exit $ac_status); } &&
4771	 { ac_try='test -z "$ac_cxx_werror_flag"
4772			 || test ! -s conftest.err'
4773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774  (eval $ac_try) 2>&5
4775  ac_status=$?
4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777  (exit $ac_status); }; } &&
4778	 { ac_try='test -s conftest.$ac_objext'
4779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780  (eval $ac_try) 2>&5
4781  ac_status=$?
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); }; }; then
4784  break
4785else
4786  echo "$as_me: failed program was:" >&5
4787sed 's/^/| /' conftest.$ac_ext >&5
4788
4789fi
4790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4791done
4792rm -f conftest*
4793if test -n "$ac_declaration"; then
4794  echo '#ifdef __cplusplus' >>confdefs.h
4795  echo $ac_declaration      >>confdefs.h
4796  echo '#endif'             >>confdefs.h
4797fi
4798
4799ac_ext=cc
4800ac_cpp='$CXXCPP $CPPFLAGS'
4801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4804
4805depcc="$CXX"  am_compiler_list=
4806
4807echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4808echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4809if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4810  echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4813  # We make a subdir and do the tests there.  Otherwise we can end up
4814  # making bogus files that we don't know about and never remove.  For
4815  # instance it was reported that on HP-UX the gcc test will end up
4816  # making a dummy file named `D' -- because `-MD' means `put the output
4817  # in D'.
4818  mkdir conftest.dir
4819  # Copy depcomp to subdir because otherwise we won't find it if we're
4820  # using a relative directory.
4821  cp "$am_depcomp" conftest.dir
4822  cd conftest.dir
4823  # We will build objects and dependencies in a subdirectory because
4824  # it helps to detect inapplicable dependency modes.  For instance
4825  # both Tru64's cc and ICC support -MD to output dependencies as a
4826  # side effect of compilation, but ICC will put the dependencies in
4827  # the current directory while Tru64 will put them in the object
4828  # directory.
4829  mkdir sub
4830
4831  am_cv_CXX_dependencies_compiler_type=none
4832  if test "$am_compiler_list" = ""; then
4833     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4834  fi
4835  for depmode in $am_compiler_list; do
4836    # Setup a source with many dependencies, because some compilers
4837    # like to wrap large dependency lists on column 80 (with \), and
4838    # we should not choose a depcomp mode which is confused by this.
4839    #
4840    # We need to recreate these files for each test, as the compiler may
4841    # overwrite some of them when testing with obscure command lines.
4842    # This happens at least with the AIX C compiler.
4843    : > sub/conftest.c
4844    for i in 1 2 3 4 5 6; do
4845      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4846      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4847      # Solaris 8's {/usr,}/bin/sh.
4848      touch sub/conftst$i.h
4849    done
4850    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4851
4852    case $depmode in
4853    nosideeffect)
4854      # after this tag, mechanisms are not by side-effect, so they'll
4855      # only be used when explicitly requested
4856      if test "x$enable_dependency_tracking" = xyes; then
4857	continue
4858      else
4859	break
4860      fi
4861      ;;
4862    none) break ;;
4863    esac
4864    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4865    # mode.  It turns out that the SunPro C++ compiler does not properly
4866    # handle `-M -o', and we need to detect this.
4867    if depmode=$depmode \
4868       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4869       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4870       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4871         >/dev/null 2>conftest.err &&
4872       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4873       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4874       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4875      # icc doesn't choke on unknown options, it will just issue warnings
4876      # or remarks (even with -Werror).  So we grep stderr for any message
4877      # that says an option was ignored or not supported.
4878      # When given -MP, icc 7.0 and 7.1 complain thusly:
4879      #   icc: Command line warning: ignoring option '-M'; no argument required
4880      # The diagnosis changed in icc 8.0:
4881      #   icc: Command line remark: option '-MP' not supported
4882      if (grep 'ignoring option' conftest.err ||
4883          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4884        am_cv_CXX_dependencies_compiler_type=$depmode
4885        break
4886      fi
4887    fi
4888  done
4889
4890  cd ..
4891  rm -rf conftest.dir
4892else
4893  am_cv_CXX_dependencies_compiler_type=none
4894fi
4895
4896fi
4897echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4898echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4899CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4900
4901
4902
4903if
4904  test "x$enable_dependency_tracking" != xno \
4905  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4906  am__fastdepCXX_TRUE=
4907  am__fastdepCXX_FALSE='#'
4908else
4909  am__fastdepCXX_TRUE='#'
4910  am__fastdepCXX_FALSE=
4911fi
4912
4913
4914
4915
4916if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4917    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4918    (test "X$CXX" != "Xg++"))) ; then
4919  ac_ext=cc
4920ac_cpp='$CXXCPP $CPPFLAGS'
4921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4924echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4925echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4926if test -z "$CXXCPP"; then
4927  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4928  echo $ECHO_N "(cached) $ECHO_C" >&6
4929else
4930      # Double quotes because CXXCPP needs to be expanded
4931    for CXXCPP in "$CXX -E" "/lib/cpp"
4932    do
4933      ac_preproc_ok=false
4934for ac_cxx_preproc_warn_flag in '' yes
4935do
4936  # Use a header file that comes with gcc, so configuring glibc
4937  # with a fresh cross-compiler works.
4938  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939  # <limits.h> exists even on freestanding compilers.
4940  # On the NeXT, cc -E runs the code through the compiler's parser,
4941  # not just through cpp. "Syntax error" is here to catch this case.
4942  cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h.  */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h.  */
4948#ifdef __STDC__
4949# include <limits.h>
4950#else
4951# include <assert.h>
4952#endif
4953		     Syntax error
4954_ACEOF
4955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4956  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4957  ac_status=$?
4958  grep -v '^ *+' conftest.er1 >conftest.err
4959  rm -f conftest.er1
4960  cat conftest.err >&5
4961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962  (exit $ac_status); } >/dev/null; then
4963  if test -s conftest.err; then
4964    ac_cpp_err=$ac_cxx_preproc_warn_flag
4965    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4966  else
4967    ac_cpp_err=
4968  fi
4969else
4970  ac_cpp_err=yes
4971fi
4972if test -z "$ac_cpp_err"; then
4973  :
4974else
4975  echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
4978  # Broken: fails on valid input.
4979continue
4980fi
4981rm -f conftest.err conftest.$ac_ext
4982
4983  # OK, works on sane cases.  Now check whether non-existent headers
4984  # can be detected and how.
4985  cat >conftest.$ac_ext <<_ACEOF
4986/* confdefs.h.  */
4987_ACEOF
4988cat confdefs.h >>conftest.$ac_ext
4989cat >>conftest.$ac_ext <<_ACEOF
4990/* end confdefs.h.  */
4991#include <ac_nonexistent.h>
4992_ACEOF
4993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4994  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4995  ac_status=$?
4996  grep -v '^ *+' conftest.er1 >conftest.err
4997  rm -f conftest.er1
4998  cat conftest.err >&5
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); } >/dev/null; then
5001  if test -s conftest.err; then
5002    ac_cpp_err=$ac_cxx_preproc_warn_flag
5003    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5004  else
5005    ac_cpp_err=
5006  fi
5007else
5008  ac_cpp_err=yes
5009fi
5010if test -z "$ac_cpp_err"; then
5011  # Broken: success on invalid input.
5012continue
5013else
5014  echo "$as_me: failed program was:" >&5
5015sed 's/^/| /' conftest.$ac_ext >&5
5016
5017  # Passes both tests.
5018ac_preproc_ok=:
5019break
5020fi
5021rm -f conftest.err conftest.$ac_ext
5022
5023done
5024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025rm -f conftest.err conftest.$ac_ext
5026if $ac_preproc_ok; then
5027  break
5028fi
5029
5030    done
5031    ac_cv_prog_CXXCPP=$CXXCPP
5032
5033fi
5034  CXXCPP=$ac_cv_prog_CXXCPP
5035else
5036  ac_cv_prog_CXXCPP=$CXXCPP
5037fi
5038echo "$as_me:$LINENO: result: $CXXCPP" >&5
5039echo "${ECHO_T}$CXXCPP" >&6
5040ac_preproc_ok=false
5041for ac_cxx_preproc_warn_flag in '' yes
5042do
5043  # Use a header file that comes with gcc, so configuring glibc
5044  # with a fresh cross-compiler works.
5045  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046  # <limits.h> exists even on freestanding compilers.
5047  # On the NeXT, cc -E runs the code through the compiler's parser,
5048  # not just through cpp. "Syntax error" is here to catch this case.
5049  cat >conftest.$ac_ext <<_ACEOF
5050/* confdefs.h.  */
5051_ACEOF
5052cat confdefs.h >>conftest.$ac_ext
5053cat >>conftest.$ac_ext <<_ACEOF
5054/* end confdefs.h.  */
5055#ifdef __STDC__
5056# include <limits.h>
5057#else
5058# include <assert.h>
5059#endif
5060		     Syntax error
5061_ACEOF
5062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5063  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5064  ac_status=$?
5065  grep -v '^ *+' conftest.er1 >conftest.err
5066  rm -f conftest.er1
5067  cat conftest.err >&5
5068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069  (exit $ac_status); } >/dev/null; then
5070  if test -s conftest.err; then
5071    ac_cpp_err=$ac_cxx_preproc_warn_flag
5072    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5073  else
5074    ac_cpp_err=
5075  fi
5076else
5077  ac_cpp_err=yes
5078fi
5079if test -z "$ac_cpp_err"; then
5080  :
5081else
5082  echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085  # Broken: fails on valid input.
5086continue
5087fi
5088rm -f conftest.err conftest.$ac_ext
5089
5090  # OK, works on sane cases.  Now check whether non-existent headers
5091  # can be detected and how.
5092  cat >conftest.$ac_ext <<_ACEOF
5093/* confdefs.h.  */
5094_ACEOF
5095cat confdefs.h >>conftest.$ac_ext
5096cat >>conftest.$ac_ext <<_ACEOF
5097/* end confdefs.h.  */
5098#include <ac_nonexistent.h>
5099_ACEOF
5100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5102  ac_status=$?
5103  grep -v '^ *+' conftest.er1 >conftest.err
5104  rm -f conftest.er1
5105  cat conftest.err >&5
5106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107  (exit $ac_status); } >/dev/null; then
5108  if test -s conftest.err; then
5109    ac_cpp_err=$ac_cxx_preproc_warn_flag
5110    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5111  else
5112    ac_cpp_err=
5113  fi
5114else
5115  ac_cpp_err=yes
5116fi
5117if test -z "$ac_cpp_err"; then
5118  # Broken: success on invalid input.
5119continue
5120else
5121  echo "$as_me: failed program was:" >&5
5122sed 's/^/| /' conftest.$ac_ext >&5
5123
5124  # Passes both tests.
5125ac_preproc_ok=:
5126break
5127fi
5128rm -f conftest.err conftest.$ac_ext
5129
5130done
5131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132rm -f conftest.err conftest.$ac_ext
5133if $ac_preproc_ok; then
5134  :
5135else
5136  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5137See \`config.log' for more details." >&5
5138echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5139See \`config.log' for more details." >&2;}
5140   { (exit 1); exit 1; }; }
5141fi
5142
5143ac_ext=cc
5144ac_cpp='$CXXCPP $CPPFLAGS'
5145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5148
5149fi
5150
5151
5152ac_ext=f
5153ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5154ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5156if test -n "$ac_tool_prefix"; then
5157  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5158  do
5159    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5160set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5161echo "$as_me:$LINENO: checking for $ac_word" >&5
5162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163if test "${ac_cv_prog_F77+set}" = set; then
5164  echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166  if test -n "$F77"; then
5167  ac_cv_prog_F77="$F77" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172  IFS=$as_save_IFS
5173  test -z "$as_dir" && as_dir=.
5174  for ac_exec_ext in '' $ac_executable_extensions; do
5175  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5177    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178    break 2
5179  fi
5180done
5181done
5182
5183fi
5184fi
5185F77=$ac_cv_prog_F77
5186if test -n "$F77"; then
5187  echo "$as_me:$LINENO: result: $F77" >&5
5188echo "${ECHO_T}$F77" >&6
5189else
5190  echo "$as_me:$LINENO: result: no" >&5
5191echo "${ECHO_T}no" >&6
5192fi
5193
5194    test -n "$F77" && break
5195  done
5196fi
5197if test -z "$F77"; then
5198  ac_ct_F77=$F77
5199  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5200do
5201  # Extract the first word of "$ac_prog", so it can be a program name with args.
5202set dummy $ac_prog; ac_word=$2
5203echo "$as_me:$LINENO: checking for $ac_word" >&5
5204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5206  echo $ECHO_N "(cached) $ECHO_C" >&6
5207else
5208  if test -n "$ac_ct_F77"; then
5209  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5210else
5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212for as_dir in $PATH
5213do
5214  IFS=$as_save_IFS
5215  test -z "$as_dir" && as_dir=.
5216  for ac_exec_ext in '' $ac_executable_extensions; do
5217  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218    ac_cv_prog_ac_ct_F77="$ac_prog"
5219    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220    break 2
5221  fi
5222done
5223done
5224
5225fi
5226fi
5227ac_ct_F77=$ac_cv_prog_ac_ct_F77
5228if test -n "$ac_ct_F77"; then
5229  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5230echo "${ECHO_T}$ac_ct_F77" >&6
5231else
5232  echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6
5234fi
5235
5236  test -n "$ac_ct_F77" && break
5237done
5238
5239  F77=$ac_ct_F77
5240fi
5241
5242
5243# Provide some information about the compiler.
5244echo "$as_me:5244:" \
5245     "checking for Fortran 77 compiler version" >&5
5246ac_compiler=`set X $ac_compile; echo $2`
5247{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5248  (eval $ac_compiler --version </dev/null >&5) 2>&5
5249  ac_status=$?
5250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251  (exit $ac_status); }
5252{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5253  (eval $ac_compiler -v </dev/null >&5) 2>&5
5254  ac_status=$?
5255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256  (exit $ac_status); }
5257{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5258  (eval $ac_compiler -V </dev/null >&5) 2>&5
5259  ac_status=$?
5260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261  (exit $ac_status); }
5262rm -f a.out
5263
5264# If we don't use `.F' as extension, the preprocessor is not run on the
5265# input file.  (Note that this only needs to work for GNU compilers.)
5266ac_save_ext=$ac_ext
5267ac_ext=F
5268echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5269echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5270if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5271  echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273  cat >conftest.$ac_ext <<_ACEOF
5274      program main
5275#ifndef __GNUC__
5276       choke me
5277#endif
5278
5279      end
5280_ACEOF
5281rm -f conftest.$ac_objext
5282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283  (eval $ac_compile) 2>conftest.er1
5284  ac_status=$?
5285  grep -v '^ *+' conftest.er1 >conftest.err
5286  rm -f conftest.er1
5287  cat conftest.err >&5
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); } &&
5290	 { ac_try='test -z "$ac_f77_werror_flag"
5291			 || test ! -s conftest.err'
5292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293  (eval $ac_try) 2>&5
5294  ac_status=$?
5295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296  (exit $ac_status); }; } &&
5297	 { ac_try='test -s conftest.$ac_objext'
5298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299  (eval $ac_try) 2>&5
5300  ac_status=$?
5301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302  (exit $ac_status); }; }; then
5303  ac_compiler_gnu=yes
5304else
5305  echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308ac_compiler_gnu=no
5309fi
5310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5311ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5312
5313fi
5314echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5315echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5316ac_ext=$ac_save_ext
5317ac_test_FFLAGS=${FFLAGS+set}
5318ac_save_FFLAGS=$FFLAGS
5319FFLAGS=
5320echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5321echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5322if test "${ac_cv_prog_f77_g+set}" = set; then
5323  echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325  FFLAGS=-g
5326cat >conftest.$ac_ext <<_ACEOF
5327      program main
5328
5329      end
5330_ACEOF
5331rm -f conftest.$ac_objext
5332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333  (eval $ac_compile) 2>conftest.er1
5334  ac_status=$?
5335  grep -v '^ *+' conftest.er1 >conftest.err
5336  rm -f conftest.er1
5337  cat conftest.err >&5
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); } &&
5340	 { ac_try='test -z "$ac_f77_werror_flag"
5341			 || test ! -s conftest.err'
5342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343  (eval $ac_try) 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); }; } &&
5347	 { ac_try='test -s conftest.$ac_objext'
5348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349  (eval $ac_try) 2>&5
5350  ac_status=$?
5351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352  (exit $ac_status); }; }; then
5353  ac_cv_prog_f77_g=yes
5354else
5355  echo "$as_me: failed program was:" >&5
5356sed 's/^/| /' conftest.$ac_ext >&5
5357
5358ac_cv_prog_f77_g=no
5359fi
5360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5361
5362fi
5363echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5364echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5365if test "$ac_test_FFLAGS" = set; then
5366  FFLAGS=$ac_save_FFLAGS
5367elif test $ac_cv_prog_f77_g = yes; then
5368  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5369    FFLAGS="-g -O2"
5370  else
5371    FFLAGS="-g"
5372  fi
5373else
5374  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5375    FFLAGS="-O2"
5376  else
5377    FFLAGS=
5378  fi
5379fi
5380
5381G77=`test $ac_compiler_gnu = yes && echo yes`
5382ac_ext=c
5383ac_cpp='$CPP $CPPFLAGS'
5384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388
5389
5390# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5391
5392# find the maximum length of command line arguments
5393echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5394echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5395if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5396  echo $ECHO_N "(cached) $ECHO_C" >&6
5397else
5398    i=0
5399  teststring="ABCD"
5400
5401  case $build_os in
5402  msdosdjgpp*)
5403    # On DJGPP, this test can blow up pretty badly due to problems in libc
5404    # (any single argument exceeding 2000 bytes causes a buffer overrun
5405    # during glob expansion).  Even if it were fixed, the result of this
5406    # check would be larger than it should be.
5407    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5408    ;;
5409
5410  gnu*)
5411    # Under GNU Hurd, this test is not required because there is
5412    # no limit to the length of command line arguments.
5413    # Libtool will interpret -1 as no limit whatsoever
5414    lt_cv_sys_max_cmd_len=-1;
5415    ;;
5416
5417  cygwin* | mingw*)
5418    # On Win9x/ME, this test blows up -- it succeeds, but takes
5419    # about 5 minutes as the teststring grows exponentially.
5420    # Worse, since 9x/ME are not pre-emptively multitasking,
5421    # you end up with a "frozen" computer, even though with patience
5422    # the test eventually succeeds (with a max line length of 256k).
5423    # Instead, let's just punt: use the minimum linelength reported by
5424    # all of the supported platforms: 8192 (on NT/2K/XP).
5425    lt_cv_sys_max_cmd_len=8192;
5426    ;;
5427
5428  amigaos*)
5429    # On AmigaOS with pdksh, this test takes hours, literally.
5430    # So we just punt and use a minimum line length of 8192.
5431    lt_cv_sys_max_cmd_len=8192;
5432    ;;
5433
5434  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5435    # This has been around since 386BSD, at least.  Likely further.
5436    if test -x /sbin/sysctl; then
5437      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5438    elif test -x /usr/sbin/sysctl; then
5439      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5440    else
5441      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5442    fi
5443    # And add a safety zone
5444    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5445    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5446    ;;
5447  osf*)
5448    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5449    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5450    # nice to cause kernel panics so lets avoid the loop below.
5451    # First set a reasonable default.
5452    lt_cv_sys_max_cmd_len=16384
5453    #
5454    if test -x /sbin/sysconfig; then
5455      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5456        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5457      esac
5458    fi
5459    ;;
5460  *)
5461    # If test is not a shell built-in, we'll probably end up computing a
5462    # maximum length that is only half of the actual maximum length, but
5463    # we can't tell.
5464    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5465    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5466	       = "XX$teststring") >/dev/null 2>&1 &&
5467	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5468	    lt_cv_sys_max_cmd_len=$new_result &&
5469	    test $i != 17 # 1/2 MB should be enough
5470    do
5471      i=`expr $i + 1`
5472      teststring=$teststring$teststring
5473    done
5474    teststring=
5475    # Add a significant safety factor because C++ compilers can tack on massive
5476    # amounts of additional arguments before passing them to the linker.
5477    # It appears as though 1/2 is a usable value.
5478    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5479    ;;
5480  esac
5481
5482fi
5483
5484if test -n $lt_cv_sys_max_cmd_len ; then
5485  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5486echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5487else
5488  echo "$as_me:$LINENO: result: none" >&5
5489echo "${ECHO_T}none" >&6
5490fi
5491
5492
5493
5494
5495# Check for command to grab the raw symbol name followed by C symbol from nm.
5496echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5497echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5498if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5499  echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501
5502# These are sane defaults that work on at least a few old systems.
5503# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5504
5505# Character class describing NM global symbol codes.
5506symcode='[BCDEGRST]'
5507
5508# Regexp to match symbols that can be accessed directly from C.
5509sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5510
5511# Transform an extracted symbol line into a proper C declaration
5512lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5513
5514# Transform an extracted symbol line into symbol name and symbol address
5515lt_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'"
5516
5517# Define system-specific variables.
5518case $host_os in
5519aix*)
5520  symcode='[BCDT]'
5521  ;;
5522cygwin* | mingw* | pw32*)
5523  symcode='[ABCDGISTW]'
5524  ;;
5525hpux*) # Its linker distinguishes data from code symbols
5526  if test "$host_cpu" = ia64; then
5527    symcode='[ABCDEGRST]'
5528  fi
5529  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5530  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'"
5531  ;;
5532linux*)
5533  if test "$host_cpu" = ia64; then
5534    symcode='[ABCDGIRSTW]'
5535    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5536    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'"
5537  fi
5538  ;;
5539irix* | nonstopux*)
5540  symcode='[BCDEGRST]'
5541  ;;
5542osf*)
5543  symcode='[BCDEGQRST]'
5544  ;;
5545solaris* | sysv5*)
5546  symcode='[BDRT]'
5547  ;;
5548sysv4)
5549  symcode='[DFNSTU]'
5550  ;;
5551esac
5552
5553# Handle CRLF in mingw tool chain
5554opt_cr=
5555case $build_os in
5556mingw*)
5557  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5558  ;;
5559esac
5560
5561# If we're using GNU nm, then use its standard symbol codes.
5562case `$NM -V 2>&1` in
5563*GNU* | *'with BFD'*)
5564  symcode='[ABCDGIRSTW]' ;;
5565esac
5566
5567# Try without a prefix undercore, then with it.
5568for ac_symprfx in "" "_"; do
5569
5570  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5571  symxfrm="\\1 $ac_symprfx\\2 \\2"
5572
5573  # Write the raw and C identifiers.
5574  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5575
5576  # Check to see that the pipe works correctly.
5577  pipe_works=no
5578
5579  rm -f conftest*
5580  cat > conftest.$ac_ext <<EOF
5581#ifdef __cplusplus
5582extern "C" {
5583#endif
5584char nm_test_var;
5585void nm_test_func(){}
5586#ifdef __cplusplus
5587}
5588#endif
5589int main(){nm_test_var='a';nm_test_func();return(0);}
5590EOF
5591
5592  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593  (eval $ac_compile) 2>&5
5594  ac_status=$?
5595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596  (exit $ac_status); }; then
5597    # Now try to grab the symbols.
5598    nlist=conftest.nm
5599    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5600  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5601  ac_status=$?
5602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603  (exit $ac_status); } && test -s "$nlist"; then
5604      # Try sorting and uniquifying the output.
5605      if sort "$nlist" | uniq > "$nlist"T; then
5606	mv -f "$nlist"T "$nlist"
5607      else
5608	rm -f "$nlist"T
5609      fi
5610
5611      # Make sure that we snagged all the symbols we need.
5612      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5613	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5614	  cat <<EOF > conftest.$ac_ext
5615#ifdef __cplusplus
5616extern "C" {
5617#endif
5618
5619EOF
5620	  # Now generate the symbol file.
5621	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5622
5623	  cat <<EOF >> conftest.$ac_ext
5624#if defined (__STDC__) && __STDC__
5625# define lt_ptr_t void *
5626#else
5627# define lt_ptr_t char *
5628# define const
5629#endif
5630
5631/* The mapping between symbol names and symbols. */
5632const struct {
5633  const char *name;
5634  lt_ptr_t address;
5635}
5636lt_preloaded_symbols[] =
5637{
5638EOF
5639	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5640	  cat <<\EOF >> conftest.$ac_ext
5641  {0, (lt_ptr_t) 0}
5642};
5643
5644#ifdef __cplusplus
5645}
5646#endif
5647EOF
5648	  # Now try linking the two files.
5649	  mv conftest.$ac_objext conftstm.$ac_objext
5650	  lt_save_LIBS="$LIBS"
5651	  lt_save_CFLAGS="$CFLAGS"
5652	  LIBS="conftstm.$ac_objext"
5653	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5654	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655  (eval $ac_link) 2>&5
5656  ac_status=$?
5657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5659	    pipe_works=yes
5660	  fi
5661	  LIBS="$lt_save_LIBS"
5662	  CFLAGS="$lt_save_CFLAGS"
5663	else
5664	  echo "cannot find nm_test_func in $nlist" >&5
5665	fi
5666      else
5667	echo "cannot find nm_test_var in $nlist" >&5
5668      fi
5669    else
5670      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5671    fi
5672  else
5673    echo "$progname: failed program was:" >&5
5674    cat conftest.$ac_ext >&5
5675  fi
5676  rm -f conftest* conftst*
5677
5678  # Do not use the global_symbol_pipe unless it works.
5679  if test "$pipe_works" = yes; then
5680    break
5681  else
5682    lt_cv_sys_global_symbol_pipe=
5683  fi
5684done
5685
5686fi
5687
5688if test -z "$lt_cv_sys_global_symbol_pipe"; then
5689  lt_cv_sys_global_symbol_to_cdecl=
5690fi
5691if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5692  echo "$as_me:$LINENO: result: failed" >&5
5693echo "${ECHO_T}failed" >&6
5694else
5695  echo "$as_me:$LINENO: result: ok" >&5
5696echo "${ECHO_T}ok" >&6
5697fi
5698
5699echo "$as_me:$LINENO: checking for objdir" >&5
5700echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5701if test "${lt_cv_objdir+set}" = set; then
5702  echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704  rm -f .libs 2>/dev/null
5705mkdir .libs 2>/dev/null
5706if test -d .libs; then
5707  lt_cv_objdir=.libs
5708else
5709  # MS-DOS does not allow filenames that begin with a dot.
5710  lt_cv_objdir=_libs
5711fi
5712rmdir .libs 2>/dev/null
5713fi
5714echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5715echo "${ECHO_T}$lt_cv_objdir" >&6
5716objdir=$lt_cv_objdir
5717
5718
5719
5720
5721
5722case $host_os in
5723aix3*)
5724  # AIX sometimes has problems with the GCC collect2 program.  For some
5725  # reason, if we set the COLLECT_NAMES environment variable, the problems
5726  # vanish in a puff of smoke.
5727  if test "X${COLLECT_NAMES+set}" != Xset; then
5728    COLLECT_NAMES=
5729    export COLLECT_NAMES
5730  fi
5731  ;;
5732esac
5733
5734# Sed substitution that helps us do robust quoting.  It backslashifies
5735# metacharacters that are still active within double-quoted strings.
5736Xsed='sed -e 1s/^X//'
5737sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5738
5739# Same as above, but do not quote variable references.
5740double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5741
5742# Sed substitution to delay expansion of an escaped shell variable in a
5743# double_quote_subst'ed string.
5744delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5745
5746# Sed substitution to avoid accidental globbing in evaled expressions
5747no_glob_subst='s/\*/\\\*/g'
5748
5749# Constants:
5750rm="rm -f"
5751
5752# Global variables:
5753default_ofile=libtool
5754can_build_shared=yes
5755
5756# All known linkers require a `.a' archive for static linking (except MSVC,
5757# which needs '.lib').
5758libext=a
5759ltmain="$ac_aux_dir/ltmain.sh"
5760ofile="$default_ofile"
5761with_gnu_ld="$lt_cv_prog_gnu_ld"
5762
5763if test -n "$ac_tool_prefix"; then
5764  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5765set dummy ${ac_tool_prefix}ar; ac_word=$2
5766echo "$as_me:$LINENO: checking for $ac_word" >&5
5767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768if test "${ac_cv_prog_AR+set}" = set; then
5769  echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771  if test -n "$AR"; then
5772  ac_cv_prog_AR="$AR" # Let the user override the test.
5773else
5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH
5776do
5777  IFS=$as_save_IFS
5778  test -z "$as_dir" && as_dir=.
5779  for ac_exec_ext in '' $ac_executable_extensions; do
5780  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781    ac_cv_prog_AR="${ac_tool_prefix}ar"
5782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783    break 2
5784  fi
5785done
5786done
5787
5788fi
5789fi
5790AR=$ac_cv_prog_AR
5791if test -n "$AR"; then
5792  echo "$as_me:$LINENO: result: $AR" >&5
5793echo "${ECHO_T}$AR" >&6
5794else
5795  echo "$as_me:$LINENO: result: no" >&5
5796echo "${ECHO_T}no" >&6
5797fi
5798
5799fi
5800if test -z "$ac_cv_prog_AR"; then
5801  ac_ct_AR=$AR
5802  # Extract the first word of "ar", so it can be a program name with args.
5803set dummy ar; ac_word=$2
5804echo "$as_me:$LINENO: checking for $ac_word" >&5
5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5807  echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809  if test -n "$ac_ct_AR"; then
5810  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815  IFS=$as_save_IFS
5816  test -z "$as_dir" && as_dir=.
5817  for ac_exec_ext in '' $ac_executable_extensions; do
5818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819    ac_cv_prog_ac_ct_AR="ar"
5820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821    break 2
5822  fi
5823done
5824done
5825
5826  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5827fi
5828fi
5829ac_ct_AR=$ac_cv_prog_ac_ct_AR
5830if test -n "$ac_ct_AR"; then
5831  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5832echo "${ECHO_T}$ac_ct_AR" >&6
5833else
5834  echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
5836fi
5837
5838  AR=$ac_ct_AR
5839else
5840  AR="$ac_cv_prog_AR"
5841fi
5842
5843if test -n "$ac_tool_prefix"; then
5844  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5845set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5846echo "$as_me:$LINENO: checking for $ac_word" >&5
5847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848if test "${ac_cv_prog_RANLIB+set}" = set; then
5849  echo $ECHO_N "(cached) $ECHO_C" >&6
5850else
5851  if test -n "$RANLIB"; then
5852  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5853else
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857  IFS=$as_save_IFS
5858  test -z "$as_dir" && as_dir=.
5859  for ac_exec_ext in '' $ac_executable_extensions; do
5860  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863    break 2
5864  fi
5865done
5866done
5867
5868fi
5869fi
5870RANLIB=$ac_cv_prog_RANLIB
5871if test -n "$RANLIB"; then
5872  echo "$as_me:$LINENO: result: $RANLIB" >&5
5873echo "${ECHO_T}$RANLIB" >&6
5874else
5875  echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
5877fi
5878
5879fi
5880if test -z "$ac_cv_prog_RANLIB"; then
5881  ac_ct_RANLIB=$RANLIB
5882  # Extract the first word of "ranlib", so it can be a program name with args.
5883set dummy ranlib; ac_word=$2
5884echo "$as_me:$LINENO: checking for $ac_word" >&5
5885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5887  echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889  if test -n "$ac_ct_RANLIB"; then
5890  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895  IFS=$as_save_IFS
5896  test -z "$as_dir" && as_dir=.
5897  for ac_exec_ext in '' $ac_executable_extensions; do
5898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899    ac_cv_prog_ac_ct_RANLIB="ranlib"
5900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901    break 2
5902  fi
5903done
5904done
5905
5906  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5907fi
5908fi
5909ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910if test -n "$ac_ct_RANLIB"; then
5911  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5912echo "${ECHO_T}$ac_ct_RANLIB" >&6
5913else
5914  echo "$as_me:$LINENO: result: no" >&5
5915echo "${ECHO_T}no" >&6
5916fi
5917
5918  RANLIB=$ac_ct_RANLIB
5919else
5920  RANLIB="$ac_cv_prog_RANLIB"
5921fi
5922
5923if test -n "$ac_tool_prefix"; then
5924  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925set dummy ${ac_tool_prefix}strip; ac_word=$2
5926echo "$as_me:$LINENO: checking for $ac_word" >&5
5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928if test "${ac_cv_prog_STRIP+set}" = set; then
5929  echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931  if test -n "$STRIP"; then
5932  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937  IFS=$as_save_IFS
5938  test -z "$as_dir" && as_dir=.
5939  for ac_exec_ext in '' $ac_executable_extensions; do
5940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943    break 2
5944  fi
5945done
5946done
5947
5948fi
5949fi
5950STRIP=$ac_cv_prog_STRIP
5951if test -n "$STRIP"; then
5952  echo "$as_me:$LINENO: result: $STRIP" >&5
5953echo "${ECHO_T}$STRIP" >&6
5954else
5955  echo "$as_me:$LINENO: result: no" >&5
5956echo "${ECHO_T}no" >&6
5957fi
5958
5959fi
5960if test -z "$ac_cv_prog_STRIP"; then
5961  ac_ct_STRIP=$STRIP
5962  # Extract the first word of "strip", so it can be a program name with args.
5963set dummy strip; ac_word=$2
5964echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5967  echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969  if test -n "$ac_ct_STRIP"; then
5970  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975  IFS=$as_save_IFS
5976  test -z "$as_dir" && as_dir=.
5977  for ac_exec_ext in '' $ac_executable_extensions; do
5978  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979    ac_cv_prog_ac_ct_STRIP="strip"
5980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981    break 2
5982  fi
5983done
5984done
5985
5986  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5987fi
5988fi
5989ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5990if test -n "$ac_ct_STRIP"; then
5991  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5992echo "${ECHO_T}$ac_ct_STRIP" >&6
5993else
5994  echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6
5996fi
5997
5998  STRIP=$ac_ct_STRIP
5999else
6000  STRIP="$ac_cv_prog_STRIP"
6001fi
6002
6003
6004old_CC="$CC"
6005old_CFLAGS="$CFLAGS"
6006
6007# Set sane defaults for various variables
6008test -z "$AR" && AR=ar
6009test -z "$AR_FLAGS" && AR_FLAGS=cru
6010test -z "$AS" && AS=as
6011test -z "$CC" && CC=cc
6012test -z "$LTCC" && LTCC=$CC
6013test -z "$DLLTOOL" && DLLTOOL=dlltool
6014test -z "$LD" && LD=ld
6015test -z "$LN_S" && LN_S="ln -s"
6016test -z "$MAGIC_CMD" && MAGIC_CMD=file
6017test -z "$NM" && NM=nm
6018test -z "$SED" && SED=sed
6019test -z "$OBJDUMP" && OBJDUMP=objdump
6020test -z "$RANLIB" && RANLIB=:
6021test -z "$STRIP" && STRIP=:
6022test -z "$ac_objext" && ac_objext=o
6023
6024# Determine commands to create old-style static archives.
6025old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6026old_postinstall_cmds='chmod 644 $oldlib'
6027old_postuninstall_cmds=
6028
6029if test -n "$RANLIB"; then
6030  case $host_os in
6031  openbsd*)
6032    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6033    ;;
6034  *)
6035    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6036    ;;
6037  esac
6038  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6039fi
6040
6041for cc_temp in $compiler""; do
6042  case $cc_temp in
6043    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6044    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6045    \-*) ;;
6046    *) break;;
6047  esac
6048done
6049cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6050
6051
6052# Only perform the check for file, if the check method requires it
6053case $deplibs_check_method in
6054file_magic*)
6055  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6056    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6057echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6058if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6059  echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061  case $MAGIC_CMD in
6062[\\/*] |  ?:[\\/]*)
6063  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6064  ;;
6065*)
6066  lt_save_MAGIC_CMD="$MAGIC_CMD"
6067  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6068  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6069  for ac_dir in $ac_dummy; do
6070    IFS="$lt_save_ifs"
6071    test -z "$ac_dir" && ac_dir=.
6072    if test -f $ac_dir/${ac_tool_prefix}file; then
6073      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6074      if test -n "$file_magic_test_file"; then
6075	case $deplibs_check_method in
6076	"file_magic "*)
6077	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6078	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6079	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6080	    $EGREP "$file_magic_regex" > /dev/null; then
6081	    :
6082	  else
6083	    cat <<EOF 1>&2
6084
6085*** Warning: the command libtool uses to detect shared libraries,
6086*** $file_magic_cmd, produces output that libtool cannot recognize.
6087*** The result is that libtool may fail to recognize shared libraries
6088*** as such.  This will affect the creation of libtool libraries that
6089*** depend on shared libraries, but programs linked with such libtool
6090*** libraries will work regardless of this problem.  Nevertheless, you
6091*** may want to report the problem to your system manager and/or to
6092*** bug-libtool@gnu.org
6093
6094EOF
6095	  fi ;;
6096	esac
6097      fi
6098      break
6099    fi
6100  done
6101  IFS="$lt_save_ifs"
6102  MAGIC_CMD="$lt_save_MAGIC_CMD"
6103  ;;
6104esac
6105fi
6106
6107MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6108if test -n "$MAGIC_CMD"; then
6109  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6110echo "${ECHO_T}$MAGIC_CMD" >&6
6111else
6112  echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6
6114fi
6115
6116if test -z "$lt_cv_path_MAGIC_CMD"; then
6117  if test -n "$ac_tool_prefix"; then
6118    echo "$as_me:$LINENO: checking for file" >&5
6119echo $ECHO_N "checking for file... $ECHO_C" >&6
6120if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6121  echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123  case $MAGIC_CMD in
6124[\\/*] |  ?:[\\/]*)
6125  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6126  ;;
6127*)
6128  lt_save_MAGIC_CMD="$MAGIC_CMD"
6129  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6130  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6131  for ac_dir in $ac_dummy; do
6132    IFS="$lt_save_ifs"
6133    test -z "$ac_dir" && ac_dir=.
6134    if test -f $ac_dir/file; then
6135      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6136      if test -n "$file_magic_test_file"; then
6137	case $deplibs_check_method in
6138	"file_magic "*)
6139	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6140	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6141	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6142	    $EGREP "$file_magic_regex" > /dev/null; then
6143	    :
6144	  else
6145	    cat <<EOF 1>&2
6146
6147*** Warning: the command libtool uses to detect shared libraries,
6148*** $file_magic_cmd, produces output that libtool cannot recognize.
6149*** The result is that libtool may fail to recognize shared libraries
6150*** as such.  This will affect the creation of libtool libraries that
6151*** depend on shared libraries, but programs linked with such libtool
6152*** libraries will work regardless of this problem.  Nevertheless, you
6153*** may want to report the problem to your system manager and/or to
6154*** bug-libtool@gnu.org
6155
6156EOF
6157	  fi ;;
6158	esac
6159      fi
6160      break
6161    fi
6162  done
6163  IFS="$lt_save_ifs"
6164  MAGIC_CMD="$lt_save_MAGIC_CMD"
6165  ;;
6166esac
6167fi
6168
6169MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6170if test -n "$MAGIC_CMD"; then
6171  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6172echo "${ECHO_T}$MAGIC_CMD" >&6
6173else
6174  echo "$as_me:$LINENO: result: no" >&5
6175echo "${ECHO_T}no" >&6
6176fi
6177
6178  else
6179    MAGIC_CMD=:
6180  fi
6181fi
6182
6183  fi
6184  ;;
6185esac
6186
6187enable_dlopen=no
6188enable_win32_dll=no
6189
6190# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6191if test "${enable_libtool_lock+set}" = set; then
6192  enableval="$enable_libtool_lock"
6193
6194fi;
6195test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6196
6197
6198# Check whether --with-pic or --without-pic was given.
6199if test "${with_pic+set}" = set; then
6200  withval="$with_pic"
6201  pic_mode="$withval"
6202else
6203  pic_mode=default
6204fi;
6205test -z "$pic_mode" && pic_mode=default
6206
6207# Use C for the default configuration in the libtool script
6208tagname=
6209lt_save_CC="$CC"
6210ac_ext=c
6211ac_cpp='$CPP $CPPFLAGS'
6212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215
6216
6217# Source file extension for C test sources.
6218ac_ext=c
6219
6220# Object file extension for compiled C test sources.
6221objext=o
6222objext=$objext
6223
6224# Code to be used in simple compile tests
6225lt_simple_compile_test_code="int some_variable = 0;\n"
6226
6227# Code to be used in simple link tests
6228lt_simple_link_test_code='int main(){return(0);}\n'
6229
6230
6231# If no C compiler was specified, use CC.
6232LTCC=${LTCC-"$CC"}
6233
6234# Allow CC to be a program name with arguments.
6235compiler=$CC
6236
6237
6238# save warnings/boilerplate of simple test code
6239ac_outfile=conftest.$ac_objext
6240printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6241eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6242_lt_compiler_boilerplate=`cat conftest.err`
6243$rm conftest*
6244
6245ac_outfile=conftest.$ac_objext
6246printf "$lt_simple_link_test_code" >conftest.$ac_ext
6247eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6248_lt_linker_boilerplate=`cat conftest.err`
6249$rm conftest*
6250
6251
6252#
6253# Check for any special shared library compilation flags.
6254#
6255lt_prog_cc_shlib=
6256if test "$GCC" = no; then
6257  case $host_os in
6258  sco3.2v5*)
6259    lt_prog_cc_shlib='-belf'
6260    ;;
6261  esac
6262fi
6263if test -n "$lt_prog_cc_shlib"; then
6264  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6265echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6266  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6267  else
6268    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6269echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6270    lt_cv_prog_cc_can_build_shared=no
6271  fi
6272fi
6273
6274
6275#
6276# Check to make sure the static flag actually works.
6277#
6278echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6279echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6280if test "${lt_prog_compiler_static_works+set}" = set; then
6281  echo $ECHO_N "(cached) $ECHO_C" >&6
6282else
6283  lt_prog_compiler_static_works=no
6284   save_LDFLAGS="$LDFLAGS"
6285   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6286   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6287   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6288     # The linker can only warn and ignore the option if not recognized
6289     # So say no if there are warnings
6290     if test -s conftest.err; then
6291       # Append any errors to the config.log.
6292       cat conftest.err 1>&5
6293       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6294       $SED '/^$/d' conftest.err >conftest.er2
6295       if diff conftest.exp conftest.er2 >/dev/null; then
6296         lt_prog_compiler_static_works=yes
6297       fi
6298     else
6299       lt_prog_compiler_static_works=yes
6300     fi
6301   fi
6302   $rm conftest*
6303   LDFLAGS="$save_LDFLAGS"
6304
6305fi
6306echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6307echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6308
6309if test x"$lt_prog_compiler_static_works" = xyes; then
6310    :
6311else
6312    lt_prog_compiler_static=
6313fi
6314
6315
6316
6317
6318lt_prog_compiler_no_builtin_flag=
6319
6320if test "$GCC" = yes; then
6321  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6322
6323
6324echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6325echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6326if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6327  echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329  lt_cv_prog_compiler_rtti_exceptions=no
6330  ac_outfile=conftest.$ac_objext
6331   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6332   lt_compiler_flag="-fno-rtti -fno-exceptions"
6333   # Insert the option either (1) after the last *FLAGS variable, or
6334   # (2) before a word containing "conftest.", or (3) at the end.
6335   # Note that $ac_compile itself does not contain backslashes and begins
6336   # with a dollar sign (not a hyphen), so the echo should work correctly.
6337   # The option is referenced via a variable to avoid confusing sed.
6338   lt_compile=`echo "$ac_compile" | $SED \
6339   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6340   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6341   -e 's:$: $lt_compiler_flag:'`
6342   (eval echo "\"\$as_me:6342: $lt_compile\"" >&5)
6343   (eval "$lt_compile" 2>conftest.err)
6344   ac_status=$?
6345   cat conftest.err >&5
6346   echo "$as_me:6346: \$? = $ac_status" >&5
6347   if (exit $ac_status) && test -s "$ac_outfile"; then
6348     # The compiler can only warn and ignore the option if not recognized
6349     # So say no if there are warnings other than the usual output.
6350     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6351     $SED '/^$/d' conftest.err >conftest.er2
6352     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6353       lt_cv_prog_compiler_rtti_exceptions=yes
6354     fi
6355   fi
6356   $rm conftest*
6357
6358fi
6359echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6360echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6361
6362if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6363    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6364else
6365    :
6366fi
6367
6368fi
6369
6370lt_prog_compiler_wl=
6371lt_prog_compiler_pic=
6372lt_prog_compiler_static=
6373
6374echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6375echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6376
6377  if test "$GCC" = yes; then
6378    lt_prog_compiler_wl='-Wl,'
6379    lt_prog_compiler_static='-static'
6380
6381    case $host_os in
6382      aix*)
6383      # All AIX code is PIC.
6384      if test "$host_cpu" = ia64; then
6385	# AIX 5 now supports IA64 processor
6386	lt_prog_compiler_static='-Bstatic'
6387      fi
6388      ;;
6389
6390    amigaos*)
6391      # FIXME: we need at least 68020 code to build shared libraries, but
6392      # adding the `-m68020' flag to GCC prevents building anything better,
6393      # like `-m68040'.
6394      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6395      ;;
6396
6397    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6398      # PIC is the default for these OSes.
6399      ;;
6400
6401    mingw* | pw32* | os2*)
6402      # This hack is so that the source file can tell whether it is being
6403      # built for inclusion in a dll (and should export symbols for example).
6404      lt_prog_compiler_pic='-DDLL_EXPORT'
6405      ;;
6406
6407    darwin* | rhapsody*)
6408      # PIC is the default on this platform
6409      # Common symbols not allowed in MH_DYLIB files
6410      lt_prog_compiler_pic='-fno-common'
6411      ;;
6412
6413    msdosdjgpp*)
6414      # Just because we use GCC doesn't mean we suddenly get shared libraries
6415      # on systems that don't support them.
6416      lt_prog_compiler_can_build_shared=no
6417      enable_shared=no
6418      ;;
6419
6420    sysv4*MP*)
6421      if test -d /usr/nec; then
6422	lt_prog_compiler_pic=-Kconform_pic
6423      fi
6424      ;;
6425
6426    hpux*)
6427      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6428      # not for PA HP-UX.
6429      case $host_cpu in
6430      hppa*64*|ia64*)
6431	# +Z the default
6432	;;
6433      *)
6434	lt_prog_compiler_pic='-fPIC'
6435	;;
6436      esac
6437      ;;
6438
6439    *)
6440      lt_prog_compiler_pic='-fPIC'
6441      ;;
6442    esac
6443  else
6444    # PORTME Check for flag to pass linker flags through the system compiler.
6445    case $host_os in
6446    aix*)
6447      lt_prog_compiler_wl='-Wl,'
6448      if test "$host_cpu" = ia64; then
6449	# AIX 5 now supports IA64 processor
6450	lt_prog_compiler_static='-Bstatic'
6451      else
6452	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6453      fi
6454      ;;
6455      darwin*)
6456        # PIC is the default on this platform
6457        # Common symbols not allowed in MH_DYLIB files
6458       case $cc_basename in
6459         xlc*)
6460         lt_prog_compiler_pic='-qnocommon'
6461         lt_prog_compiler_wl='-Wl,'
6462         ;;
6463       esac
6464       ;;
6465
6466    mingw* | pw32* | os2*)
6467      # This hack is so that the source file can tell whether it is being
6468      # built for inclusion in a dll (and should export symbols for example).
6469      lt_prog_compiler_pic='-DDLL_EXPORT'
6470      ;;
6471
6472    hpux9* | hpux10* | hpux11*)
6473      lt_prog_compiler_wl='-Wl,'
6474      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6475      # not for PA HP-UX.
6476      case $host_cpu in
6477      hppa*64*|ia64*)
6478	# +Z the default
6479	;;
6480      *)
6481	lt_prog_compiler_pic='+Z'
6482	;;
6483      esac
6484      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6485      lt_prog_compiler_static='${wl}-a ${wl}archive'
6486      ;;
6487
6488    irix5* | irix6* | nonstopux*)
6489      lt_prog_compiler_wl='-Wl,'
6490      # PIC (with -KPIC) is the default.
6491      lt_prog_compiler_static='-non_shared'
6492      ;;
6493
6494    newsos6)
6495      lt_prog_compiler_pic='-KPIC'
6496      lt_prog_compiler_static='-Bstatic'
6497      ;;
6498
6499    linux*)
6500      case $cc_basename in
6501      icc* | ecc*)
6502	lt_prog_compiler_wl='-Wl,'
6503	lt_prog_compiler_pic='-KPIC'
6504	lt_prog_compiler_static='-static'
6505        ;;
6506      pgcc* | pgf77* | pgf90* | pgf95*)
6507        # Portland Group compilers (*not* the Pentium gcc compiler,
6508	# which looks to be a dead project)
6509	lt_prog_compiler_wl='-Wl,'
6510	lt_prog_compiler_pic='-fpic'
6511	lt_prog_compiler_static='-Bstatic'
6512        ;;
6513      ccc*)
6514        lt_prog_compiler_wl='-Wl,'
6515        # All Alpha code is PIC.
6516        lt_prog_compiler_static='-non_shared'
6517        ;;
6518      esac
6519      ;;
6520
6521    osf3* | osf4* | osf5*)
6522      lt_prog_compiler_wl='-Wl,'
6523      # All OSF/1 code is PIC.
6524      lt_prog_compiler_static='-non_shared'
6525      ;;
6526
6527    sco3.2v5*)
6528      lt_prog_compiler_pic='-Kpic'
6529      lt_prog_compiler_static='-dn'
6530      ;;
6531
6532    solaris*)
6533      lt_prog_compiler_pic='-KPIC'
6534      lt_prog_compiler_static='-Bstatic'
6535      case $cc_basename in
6536      f77* | f90* | f95*)
6537	lt_prog_compiler_wl='-Qoption ld ';;
6538      *)
6539	lt_prog_compiler_wl='-Wl,';;
6540      esac
6541      ;;
6542
6543    sunos4*)
6544      lt_prog_compiler_wl='-Qoption ld '
6545      lt_prog_compiler_pic='-PIC'
6546      lt_prog_compiler_static='-Bstatic'
6547      ;;
6548
6549    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6550      lt_prog_compiler_wl='-Wl,'
6551      lt_prog_compiler_pic='-KPIC'
6552      lt_prog_compiler_static='-Bstatic'
6553      ;;
6554
6555    sysv4*MP*)
6556      if test -d /usr/nec ;then
6557	lt_prog_compiler_pic='-Kconform_pic'
6558	lt_prog_compiler_static='-Bstatic'
6559      fi
6560      ;;
6561
6562    unicos*)
6563      lt_prog_compiler_wl='-Wl,'
6564      lt_prog_compiler_can_build_shared=no
6565      ;;
6566
6567    uts4*)
6568      lt_prog_compiler_pic='-pic'
6569      lt_prog_compiler_static='-Bstatic'
6570      ;;
6571
6572    *)
6573      lt_prog_compiler_can_build_shared=no
6574      ;;
6575    esac
6576  fi
6577
6578echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6579echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6580
6581#
6582# Check to make sure the PIC flag actually works.
6583#
6584if test -n "$lt_prog_compiler_pic"; then
6585
6586echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6587echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6588if test "${lt_prog_compiler_pic_works+set}" = set; then
6589  echo $ECHO_N "(cached) $ECHO_C" >&6
6590else
6591  lt_prog_compiler_pic_works=no
6592  ac_outfile=conftest.$ac_objext
6593   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6594   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6595   # Insert the option either (1) after the last *FLAGS variable, or
6596   # (2) before a word containing "conftest.", or (3) at the end.
6597   # Note that $ac_compile itself does not contain backslashes and begins
6598   # with a dollar sign (not a hyphen), so the echo should work correctly.
6599   # The option is referenced via a variable to avoid confusing sed.
6600   lt_compile=`echo "$ac_compile" | $SED \
6601   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6602   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6603   -e 's:$: $lt_compiler_flag:'`
6604   (eval echo "\"\$as_me:6604: $lt_compile\"" >&5)
6605   (eval "$lt_compile" 2>conftest.err)
6606   ac_status=$?
6607   cat conftest.err >&5
6608   echo "$as_me:6608: \$? = $ac_status" >&5
6609   if (exit $ac_status) && test -s "$ac_outfile"; then
6610     # The compiler can only warn and ignore the option if not recognized
6611     # So say no if there are warnings other than the usual output.
6612     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6613     $SED '/^$/d' conftest.err >conftest.er2
6614     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6615       lt_prog_compiler_pic_works=yes
6616     fi
6617   fi
6618   $rm conftest*
6619
6620fi
6621echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6622echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6623
6624if test x"$lt_prog_compiler_pic_works" = xyes; then
6625    case $lt_prog_compiler_pic in
6626     "" | " "*) ;;
6627     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6628     esac
6629else
6630    lt_prog_compiler_pic=
6631     lt_prog_compiler_can_build_shared=no
6632fi
6633
6634fi
6635case $host_os in
6636  # For platforms which do not support PIC, -DPIC is meaningless:
6637  *djgpp*)
6638    lt_prog_compiler_pic=
6639    ;;
6640  *)
6641    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6642    ;;
6643esac
6644
6645echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6646echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6647if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6648  echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650  lt_cv_prog_compiler_c_o=no
6651   $rm -r conftest 2>/dev/null
6652   mkdir conftest
6653   cd conftest
6654   mkdir out
6655   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6656
6657   lt_compiler_flag="-o out/conftest2.$ac_objext"
6658   # Insert the option either (1) after the last *FLAGS variable, or
6659   # (2) before a word containing "conftest.", or (3) at the end.
6660   # Note that $ac_compile itself does not contain backslashes and begins
6661   # with a dollar sign (not a hyphen), so the echo should work correctly.
6662   lt_compile=`echo "$ac_compile" | $SED \
6663   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6664   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6665   -e 's:$: $lt_compiler_flag:'`
6666   (eval echo "\"\$as_me:6666: $lt_compile\"" >&5)
6667   (eval "$lt_compile" 2>out/conftest.err)
6668   ac_status=$?
6669   cat out/conftest.err >&5
6670   echo "$as_me:6670: \$? = $ac_status" >&5
6671   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6672   then
6673     # The compiler can only warn and ignore the option if not recognized
6674     # So say no if there are warnings
6675     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6676     $SED '/^$/d' out/conftest.err >out/conftest.er2
6677     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6678       lt_cv_prog_compiler_c_o=yes
6679     fi
6680   fi
6681   chmod u+w . 2>&5
6682   $rm conftest*
6683   # SGI C++ compiler will create directory out/ii_files/ for
6684   # template instantiation
6685   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6686   $rm out/* && rmdir out
6687   cd ..
6688   rmdir conftest
6689   $rm conftest*
6690
6691fi
6692echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6693echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6694
6695
6696hard_links="nottested"
6697if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6698  # do not overwrite the value of need_locks provided by the user
6699  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6700echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6701  hard_links=yes
6702  $rm conftest*
6703  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6704  touch conftest.a
6705  ln conftest.a conftest.b 2>&5 || hard_links=no
6706  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6707  echo "$as_me:$LINENO: result: $hard_links" >&5
6708echo "${ECHO_T}$hard_links" >&6
6709  if test "$hard_links" = no; then
6710    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6711echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6712    need_locks=warn
6713  fi
6714else
6715  need_locks=no
6716fi
6717
6718echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6719echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6720
6721  runpath_var=
6722  allow_undefined_flag=
6723  enable_shared_with_static_runtimes=no
6724  archive_cmds=
6725  archive_expsym_cmds=
6726  old_archive_From_new_cmds=
6727  old_archive_from_expsyms_cmds=
6728  export_dynamic_flag_spec=
6729  whole_archive_flag_spec=
6730  thread_safe_flag_spec=
6731  hardcode_libdir_flag_spec=
6732  hardcode_libdir_flag_spec_ld=
6733  hardcode_libdir_separator=
6734  hardcode_direct=no
6735  hardcode_minus_L=no
6736  hardcode_shlibpath_var=unsupported
6737  link_all_deplibs=unknown
6738  hardcode_automatic=no
6739  module_cmds=
6740  module_expsym_cmds=
6741  always_export_symbols=no
6742  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6743  # include_expsyms should be a list of space-separated symbols to be *always*
6744  # included in the symbol list
6745  include_expsyms=
6746  # exclude_expsyms can be an extended regexp of symbols to exclude
6747  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6748  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6749  # as well as any symbol that contains `d'.
6750  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6751  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6752  # platforms (ab)use it in PIC code, but their linkers get confused if
6753  # the symbol is explicitly referenced.  Since portable code cannot
6754  # rely on this symbol name, it's probably fine to never include it in
6755  # preloaded symbol tables.
6756  extract_expsyms_cmds=
6757  # Just being paranoid about ensuring that cc_basename is set.
6758  for cc_temp in $compiler""; do
6759  case $cc_temp in
6760    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6761    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6762    \-*) ;;
6763    *) break;;
6764  esac
6765done
6766cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6767
6768  case $host_os in
6769  cygwin* | mingw* | pw32*)
6770    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6771    # When not using gcc, we currently assume that we are using
6772    # Microsoft Visual C++.
6773    if test "$GCC" != yes; then
6774      with_gnu_ld=no
6775    fi
6776    ;;
6777  openbsd*)
6778    with_gnu_ld=no
6779    ;;
6780  esac
6781
6782  ld_shlibs=yes
6783  if test "$with_gnu_ld" = yes; then
6784    # If archive_cmds runs LD, not CC, wlarc should be empty
6785    wlarc='${wl}'
6786
6787    # Set some defaults for GNU ld with shared library support. These
6788    # are reset later if shared libraries are not supported. Putting them
6789    # here allows them to be overridden if necessary.
6790    runpath_var=LD_RUN_PATH
6791    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6792    export_dynamic_flag_spec='${wl}--export-dynamic'
6793    # ancient GNU ld didn't support --whole-archive et. al.
6794    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6795	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6796      else
6797  	whole_archive_flag_spec=
6798    fi
6799    supports_anon_versioning=no
6800    case `$LD -v 2>/dev/null` in
6801      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6802      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6803      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6804      *\ 2.11.*) ;; # other 2.11 versions
6805      *) supports_anon_versioning=yes ;;
6806    esac
6807
6808    # See if GNU ld supports shared libraries.
6809    case $host_os in
6810    aix3* | aix4* | aix5*)
6811      # On AIX/PPC, the GNU linker is very broken
6812      if test "$host_cpu" != ia64; then
6813	ld_shlibs=no
6814	cat <<EOF 1>&2
6815
6816*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6817*** to be unable to reliably create shared libraries on AIX.
6818*** Therefore, libtool is disabling shared libraries support.  If you
6819*** really care for shared libraries, you may want to modify your PATH
6820*** so that a non-GNU linker is found, and then restart.
6821
6822EOF
6823      fi
6824      ;;
6825
6826    amigaos*)
6827      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)'
6828      hardcode_libdir_flag_spec='-L$libdir'
6829      hardcode_minus_L=yes
6830
6831      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6832      # that the semantics of dynamic libraries on AmigaOS, at least up
6833      # to version 4, is to share data among multiple programs linked
6834      # with the same dynamic library.  Since this doesn't match the
6835      # behavior of shared libraries on other platforms, we can't use
6836      # them.
6837      ld_shlibs=no
6838      ;;
6839
6840    beos*)
6841      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6842	allow_undefined_flag=unsupported
6843	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6844	# support --undefined.  This deserves some investigation.  FIXME
6845	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6846      else
6847	ld_shlibs=no
6848      fi
6849      ;;
6850
6851    cygwin* | mingw* | pw32*)
6852      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6853      # as there is no search path for DLLs.
6854      hardcode_libdir_flag_spec='-L$libdir'
6855      allow_undefined_flag=unsupported
6856      always_export_symbols=no
6857      enable_shared_with_static_runtimes=yes
6858      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6859
6860      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6861        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6862	# If the export-symbols file already is a .def file (1st line
6863	# is EXPORTS), use it as is; otherwise, prepend...
6864	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6865	  cp $export_symbols $output_objdir/$soname.def;
6866	else
6867	  echo EXPORTS > $output_objdir/$soname.def;
6868	  cat $export_symbols >> $output_objdir/$soname.def;
6869	fi~
6870	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6871      else
6872	ld_shlibs=no
6873      fi
6874      ;;
6875
6876    linux*)
6877      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6878	tmp_addflag=
6879	case $cc_basename,$host_cpu in
6880	pgcc*)				# Portland Group C compiler
6881	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6882	  tmp_addflag=' $pic_flag'
6883	  ;;
6884	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6885	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6886	  tmp_addflag=' $pic_flag -Mnomain' ;;
6887	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6888	  tmp_addflag=' -i_dynamic' ;;
6889	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6890	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6891	ifc* | ifort*)			# Intel Fortran compiler
6892	  tmp_addflag=' -nofor_main' ;;
6893	esac
6894	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6895
6896	if test $supports_anon_versioning = yes; then
6897	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6898  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6899  $echo "local: *; };" >> $output_objdir/$libname.ver~
6900	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6901	fi
6902      else
6903	ld_shlibs=no
6904      fi
6905      ;;
6906
6907    netbsd*)
6908      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6909	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6910	wlarc=
6911      else
6912	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6913	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6914      fi
6915      ;;
6916
6917    solaris* | sysv5*)
6918      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6919	ld_shlibs=no
6920	cat <<EOF 1>&2
6921
6922*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6923*** create shared libraries on Solaris systems.  Therefore, libtool
6924*** is disabling shared libraries support.  We urge you to upgrade GNU
6925*** binutils to release 2.9.1 or newer.  Another option is to modify
6926*** your PATH or compiler configuration so that the native linker is
6927*** used, and then restart.
6928
6929EOF
6930      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6931	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6932	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6933      else
6934	ld_shlibs=no
6935      fi
6936      ;;
6937
6938    sunos4*)
6939      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6940      wlarc=
6941      hardcode_direct=yes
6942      hardcode_shlibpath_var=no
6943      ;;
6944
6945    *)
6946      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6947	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6948	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6949      else
6950	ld_shlibs=no
6951      fi
6952      ;;
6953    esac
6954
6955    if test "$ld_shlibs" = no; then
6956      runpath_var=
6957      hardcode_libdir_flag_spec=
6958      export_dynamic_flag_spec=
6959      whole_archive_flag_spec=
6960    fi
6961  else
6962    # PORTME fill in a description of your system's linker (not GNU ld)
6963    case $host_os in
6964    aix3*)
6965      allow_undefined_flag=unsupported
6966      always_export_symbols=yes
6967      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'
6968      # Note: this linker hardcodes the directories in LIBPATH if there
6969      # are no directories specified by -L.
6970      hardcode_minus_L=yes
6971      if test "$GCC" = yes && test -z "$link_static_flag"; then
6972	# Neither direct hardcoding nor static linking is supported with a
6973	# broken collect2.
6974	hardcode_direct=unsupported
6975      fi
6976      ;;
6977
6978    aix4* | aix5*)
6979      if test "$host_cpu" = ia64; then
6980	# On IA64, the linker does run time linking by default, so we don't
6981	# have to do anything special.
6982	aix_use_runtimelinking=no
6983	exp_sym_flag='-Bexport'
6984	no_entry_flag=""
6985      else
6986	# If we're using GNU nm, then we don't want the "-C" option.
6987	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6988	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6989	  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'
6990	else
6991	  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'
6992	fi
6993	aix_use_runtimelinking=no
6994
6995	# Test if we are trying to use run time linking or normal
6996	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6997	# need to do runtime linking.
6998	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6999	  for ld_flag in $LDFLAGS; do
7000  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7001  	    aix_use_runtimelinking=yes
7002  	    break
7003  	  fi
7004	  done
7005	esac
7006
7007	exp_sym_flag='-bexport'
7008	no_entry_flag='-bnoentry'
7009      fi
7010
7011      # When large executables or shared objects are built, AIX ld can
7012      # have problems creating the table of contents.  If linking a library
7013      # or program results in "error TOC overflow" add -mminimal-toc to
7014      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7015      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7016
7017      archive_cmds=''
7018      hardcode_direct=yes
7019      hardcode_libdir_separator=':'
7020      link_all_deplibs=yes
7021
7022      if test "$GCC" = yes; then
7023	case $host_os in aix4.[012]|aix4.[012].*)
7024	# We only want to do this on AIX 4.2 and lower, the check
7025	# below for broken collect2 doesn't work under 4.3+
7026	  collect2name=`${CC} -print-prog-name=collect2`
7027	  if test -f "$collect2name" && \
7028  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7029	  then
7030  	  # We have reworked collect2
7031  	  hardcode_direct=yes
7032	  else
7033  	  # We have old collect2
7034  	  hardcode_direct=unsupported
7035  	  # It fails to find uninstalled libraries when the uninstalled
7036  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7037  	  # to unsupported forces relinking
7038  	  hardcode_minus_L=yes
7039  	  hardcode_libdir_flag_spec='-L$libdir'
7040  	  hardcode_libdir_separator=
7041	  fi
7042	esac
7043	shared_flag='-shared'
7044	if test "$aix_use_runtimelinking" = yes; then
7045	  shared_flag="$shared_flag "'${wl}-G'
7046	fi
7047      else
7048	# not using gcc
7049	if test "$host_cpu" = ia64; then
7050  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7051  	# chokes on -Wl,-G. The following line is correct:
7052	  shared_flag='-G'
7053	else
7054  	if test "$aix_use_runtimelinking" = yes; then
7055	    shared_flag='${wl}-G'
7056	  else
7057	    shared_flag='${wl}-bM:SRE'
7058  	fi
7059	fi
7060      fi
7061
7062      # It seems that -bexpall does not export symbols beginning with
7063      # underscore (_), so it is better to generate a list of symbols to export.
7064      always_export_symbols=yes
7065      if test "$aix_use_runtimelinking" = yes; then
7066	# Warning - without using the other runtime loading flags (-brtl),
7067	# -berok will link without error, but may produce a broken library.
7068	allow_undefined_flag='-berok'
7069       # Determine the default libpath from the value encoded in an empty executable.
7070       cat >conftest.$ac_ext <<_ACEOF
7071/* confdefs.h.  */
7072_ACEOF
7073cat confdefs.h >>conftest.$ac_ext
7074cat >>conftest.$ac_ext <<_ACEOF
7075/* end confdefs.h.  */
7076
7077int
7078main ()
7079{
7080
7081  ;
7082  return 0;
7083}
7084_ACEOF
7085rm -f conftest.$ac_objext conftest$ac_exeext
7086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087  (eval $ac_link) 2>conftest.er1
7088  ac_status=$?
7089  grep -v '^ *+' conftest.er1 >conftest.err
7090  rm -f conftest.er1
7091  cat conftest.err >&5
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); } &&
7094	 { ac_try='test -z "$ac_c_werror_flag"
7095			 || test ! -s conftest.err'
7096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097  (eval $ac_try) 2>&5
7098  ac_status=$?
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); }; } &&
7101	 { ac_try='test -s conftest$ac_exeext'
7102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103  (eval $ac_try) 2>&5
7104  ac_status=$?
7105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106  (exit $ac_status); }; }; then
7107
7108aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7109}'`
7110# Check for a 64-bit object if we didn't find anything.
7111if 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; }
7112}'`; fi
7113else
7114  echo "$as_me: failed program was:" >&5
7115sed 's/^/| /' conftest.$ac_ext >&5
7116
7117fi
7118rm -f conftest.err conftest.$ac_objext \
7119      conftest$ac_exeext conftest.$ac_ext
7120if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7121
7122       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7123	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"
7124       else
7125	if test "$host_cpu" = ia64; then
7126	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7127	  allow_undefined_flag="-z nodefs"
7128	  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"
7129	else
7130	 # Determine the default libpath from the value encoded in an empty executable.
7131	 cat >conftest.$ac_ext <<_ACEOF
7132/* confdefs.h.  */
7133_ACEOF
7134cat confdefs.h >>conftest.$ac_ext
7135cat >>conftest.$ac_ext <<_ACEOF
7136/* end confdefs.h.  */
7137
7138int
7139main ()
7140{
7141
7142  ;
7143  return 0;
7144}
7145_ACEOF
7146rm -f conftest.$ac_objext conftest$ac_exeext
7147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148  (eval $ac_link) 2>conftest.er1
7149  ac_status=$?
7150  grep -v '^ *+' conftest.er1 >conftest.err
7151  rm -f conftest.er1
7152  cat conftest.err >&5
7153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154  (exit $ac_status); } &&
7155	 { ac_try='test -z "$ac_c_werror_flag"
7156			 || test ! -s conftest.err'
7157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158  (eval $ac_try) 2>&5
7159  ac_status=$?
7160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161  (exit $ac_status); }; } &&
7162	 { ac_try='test -s conftest$ac_exeext'
7163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164  (eval $ac_try) 2>&5
7165  ac_status=$?
7166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167  (exit $ac_status); }; }; then
7168
7169aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7170}'`
7171# Check for a 64-bit object if we didn't find anything.
7172if 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; }
7173}'`; fi
7174else
7175  echo "$as_me: failed program was:" >&5
7176sed 's/^/| /' conftest.$ac_ext >&5
7177
7178fi
7179rm -f conftest.err conftest.$ac_objext \
7180      conftest$ac_exeext conftest.$ac_ext
7181if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7182
7183	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7184	  # Warning - without using the other run time loading flags,
7185	  # -berok will link without error, but may produce a broken library.
7186	  no_undefined_flag=' ${wl}-bernotok'
7187	  allow_undefined_flag=' ${wl}-berok'
7188	  # -bexpall does not export symbols beginning with underscore (_)
7189	  always_export_symbols=yes
7190	  # Exported symbols can be pulled into shared objects from archives
7191	  whole_archive_flag_spec=' '
7192	  archive_cmds_need_lc=yes
7193	  # This is similar to how AIX traditionally builds its shared libraries.
7194	  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'
7195	fi
7196      fi
7197      ;;
7198
7199    amigaos*)
7200      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)'
7201      hardcode_libdir_flag_spec='-L$libdir'
7202      hardcode_minus_L=yes
7203      # see comment about different semantics on the GNU ld section
7204      ld_shlibs=no
7205      ;;
7206
7207    bsdi[45]*)
7208      export_dynamic_flag_spec=-rdynamic
7209      ;;
7210
7211    cygwin* | mingw* | pw32*)
7212      # When not using gcc, we currently assume that we are using
7213      # Microsoft Visual C++.
7214      # hardcode_libdir_flag_spec is actually meaningless, as there is
7215      # no search path for DLLs.
7216      hardcode_libdir_flag_spec=' '
7217      allow_undefined_flag=unsupported
7218      # Tell ltmain to make .lib files, not .a files.
7219      libext=lib
7220      # Tell ltmain to make .dll files, not .so files.
7221      shrext_cmds=".dll"
7222      # FIXME: Setting linknames here is a bad hack.
7223      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7224      # The linker will automatically build a .lib file if we build a DLL.
7225      old_archive_From_new_cmds='true'
7226      # FIXME: Should let the user specify the lib program.
7227      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7228      fix_srcfile_path='`cygpath -w "$srcfile"`'
7229      enable_shared_with_static_runtimes=yes
7230      ;;
7231
7232    darwin* | rhapsody*)
7233      case $host_os in
7234        rhapsody* | darwin1.[012])
7235         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7236         ;;
7237       *) # Darwin 1.3 on
7238         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7239           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7240         else
7241           case ${MACOSX_DEPLOYMENT_TARGET} in
7242             10.[012])
7243               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7244               ;;
7245             10.*)
7246               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7247               ;;
7248           esac
7249         fi
7250         ;;
7251      esac
7252      archive_cmds_need_lc=no
7253      hardcode_direct=no
7254      hardcode_automatic=yes
7255      hardcode_shlibpath_var=unsupported
7256      whole_archive_flag_spec=''
7257      link_all_deplibs=yes
7258    if test "$GCC" = yes ; then
7259    	output_verbose_link_cmd='echo'
7260        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7261      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7262      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7263      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}'
7264      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}'
7265    else
7266      case $cc_basename in
7267        xlc*)
7268         output_verbose_link_cmd='echo'
7269         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7270         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7271          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7272         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7273          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}'
7274          ;;
7275       *)
7276         ld_shlibs=no
7277          ;;
7278      esac
7279    fi
7280      ;;
7281
7282    dgux*)
7283      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284      hardcode_libdir_flag_spec='-L$libdir'
7285      hardcode_shlibpath_var=no
7286      ;;
7287
7288    freebsd1*)
7289      ld_shlibs=no
7290      ;;
7291
7292    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7293    # support.  Future versions do this automatically, but an explicit c++rt0.o
7294    # does not break anything, and helps significantly (at the cost of a little
7295    # extra space).
7296    freebsd2.2*)
7297      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7298      hardcode_libdir_flag_spec='-R$libdir'
7299      hardcode_direct=yes
7300      hardcode_shlibpath_var=no
7301      ;;
7302
7303    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7304    freebsd2*)
7305      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7306      hardcode_direct=yes
7307      hardcode_minus_L=yes
7308      hardcode_shlibpath_var=no
7309      ;;
7310
7311    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7312    freebsd* | kfreebsd*-gnu | dragonfly*)
7313      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7314      hardcode_libdir_flag_spec='-R$libdir'
7315      hardcode_direct=yes
7316      hardcode_shlibpath_var=no
7317      ;;
7318
7319    hpux9*)
7320      if test "$GCC" = yes; then
7321	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'
7322      else
7323	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'
7324      fi
7325      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7326      hardcode_libdir_separator=:
7327      hardcode_direct=yes
7328
7329      # hardcode_minus_L: Not really in the search PATH,
7330      # but as the default location of the library.
7331      hardcode_minus_L=yes
7332      export_dynamic_flag_spec='${wl}-E'
7333      ;;
7334
7335    hpux10* | hpux11*)
7336      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7337	case $host_cpu in
7338	hppa*64*|ia64*)
7339	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7340	  ;;
7341	*)
7342	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7343	  ;;
7344	esac
7345      else
7346	case $host_cpu in
7347	hppa*64*|ia64*)
7348	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7349	  ;;
7350	*)
7351	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7352	  ;;
7353	esac
7354      fi
7355      if test "$with_gnu_ld" = no; then
7356	case $host_cpu in
7357	hppa*64*)
7358	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7359	  hardcode_libdir_flag_spec_ld='+b $libdir'
7360	  hardcode_libdir_separator=:
7361	  hardcode_direct=no
7362	  hardcode_shlibpath_var=no
7363	  ;;
7364	ia64*)
7365	  hardcode_libdir_flag_spec='-L$libdir'
7366	  hardcode_direct=no
7367	  hardcode_shlibpath_var=no
7368
7369	  # hardcode_minus_L: Not really in the search PATH,
7370	  # but as the default location of the library.
7371	  hardcode_minus_L=yes
7372	  ;;
7373	*)
7374	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7375	  hardcode_libdir_separator=:
7376	  hardcode_direct=yes
7377	  export_dynamic_flag_spec='${wl}-E'
7378
7379	  # hardcode_minus_L: Not really in the search PATH,
7380	  # but as the default location of the library.
7381	  hardcode_minus_L=yes
7382	  ;;
7383	esac
7384      fi
7385      ;;
7386
7387    irix5* | irix6* | nonstopux*)
7388      if test "$GCC" = yes; then
7389	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'
7390      else
7391	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'
7392	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7393      fi
7394      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7395      hardcode_libdir_separator=:
7396      link_all_deplibs=yes
7397      ;;
7398
7399    netbsd*)
7400      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7401	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7402      else
7403	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7404      fi
7405      hardcode_libdir_flag_spec='-R$libdir'
7406      hardcode_direct=yes
7407      hardcode_shlibpath_var=no
7408      ;;
7409
7410    newsos6)
7411      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7412      hardcode_direct=yes
7413      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7414      hardcode_libdir_separator=:
7415      hardcode_shlibpath_var=no
7416      ;;
7417
7418    openbsd*)
7419      hardcode_direct=yes
7420      hardcode_shlibpath_var=no
7421      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7422	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7423	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7424	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7425	export_dynamic_flag_spec='${wl}-E'
7426      else
7427       case $host_os in
7428	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7429	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7430	   hardcode_libdir_flag_spec='-R$libdir'
7431	   ;;
7432	 *)
7433	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7434	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7435	   ;;
7436       esac
7437      fi
7438      ;;
7439
7440    os2*)
7441      hardcode_libdir_flag_spec='-L$libdir'
7442      hardcode_minus_L=yes
7443      allow_undefined_flag=unsupported
7444      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'
7445      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7446      ;;
7447
7448    osf3*)
7449      if test "$GCC" = yes; then
7450	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7451	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'
7452      else
7453	allow_undefined_flag=' -expect_unresolved \*'
7454	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'
7455      fi
7456      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7457      hardcode_libdir_separator=:
7458      ;;
7459
7460    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7461      if test "$GCC" = yes; then
7462	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7463	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'
7464	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7465      else
7466	allow_undefined_flag=' -expect_unresolved \*'
7467	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'
7468	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7469	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7470
7471	# Both c and cxx compiler support -rpath directly
7472	hardcode_libdir_flag_spec='-rpath $libdir'
7473      fi
7474      hardcode_libdir_separator=:
7475      ;;
7476
7477    sco3.2v5*)
7478      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7479      hardcode_shlibpath_var=no
7480      export_dynamic_flag_spec='${wl}-Bexport'
7481      runpath_var=LD_RUN_PATH
7482      hardcode_runpath_var=yes
7483      ;;
7484
7485    solaris*)
7486      no_undefined_flag=' -z text'
7487      if test "$GCC" = yes; then
7488	wlarc='${wl}'
7489	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7490	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7491	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7492      else
7493	wlarc=''
7494	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7495	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7496  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7497      fi
7498      hardcode_libdir_flag_spec='-R$libdir'
7499      hardcode_shlibpath_var=no
7500      case $host_os in
7501      solaris2.[0-5] | solaris2.[0-5].*) ;;
7502      *)
7503 	# The compiler driver will combine linker options so we
7504 	# cannot just pass the convience library names through
7505 	# without $wl, iff we do not link with $LD.
7506 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7507 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7508 	case $wlarc in
7509 	'')
7510 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7511 	*)
7512 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7513 	esac ;;
7514      esac
7515      link_all_deplibs=yes
7516      ;;
7517
7518    sunos4*)
7519      if test "x$host_vendor" = xsequent; then
7520	# Use $CC to link under sequent, because it throws in some extra .o
7521	# files that make .init and .fini sections work.
7522	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7523      else
7524	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7525      fi
7526      hardcode_libdir_flag_spec='-L$libdir'
7527      hardcode_direct=yes
7528      hardcode_minus_L=yes
7529      hardcode_shlibpath_var=no
7530      ;;
7531
7532    sysv4)
7533      case $host_vendor in
7534	sni)
7535	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7536	  hardcode_direct=yes # is this really true???
7537	;;
7538	siemens)
7539	  ## LD is ld it makes a PLAMLIB
7540	  ## CC just makes a GrossModule.
7541	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7542	  reload_cmds='$CC -r -o $output$reload_objs'
7543	  hardcode_direct=no
7544        ;;
7545	motorola)
7546	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7547	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7548	;;
7549      esac
7550      runpath_var='LD_RUN_PATH'
7551      hardcode_shlibpath_var=no
7552      ;;
7553
7554    sysv4.3*)
7555      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7556      hardcode_shlibpath_var=no
7557      export_dynamic_flag_spec='-Bexport'
7558      ;;
7559
7560    sysv4*MP*)
7561      if test -d /usr/nec; then
7562	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7563	hardcode_shlibpath_var=no
7564	runpath_var=LD_RUN_PATH
7565	hardcode_runpath_var=yes
7566	ld_shlibs=yes
7567      fi
7568      ;;
7569
7570    sysv4.2uw2*)
7571      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7572      hardcode_direct=yes
7573      hardcode_minus_L=no
7574      hardcode_shlibpath_var=no
7575      hardcode_runpath_var=yes
7576      runpath_var=LD_RUN_PATH
7577      ;;
7578
7579   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7580      no_undefined_flag='${wl}-z ${wl}text'
7581      if test "$GCC" = yes; then
7582	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7583      else
7584	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7585      fi
7586      runpath_var='LD_RUN_PATH'
7587      hardcode_shlibpath_var=no
7588      ;;
7589
7590    sysv5*)
7591      no_undefined_flag=' -z text'
7592      # $CC -shared without GNU ld will not create a library from C++
7593      # object files and a static libstdc++, better avoid it by now
7594      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7595      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7596  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7597      hardcode_libdir_flag_spec=
7598      hardcode_shlibpath_var=no
7599      runpath_var='LD_RUN_PATH'
7600      ;;
7601
7602    uts4*)
7603      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7604      hardcode_libdir_flag_spec='-L$libdir'
7605      hardcode_shlibpath_var=no
7606      ;;
7607
7608    *)
7609      ld_shlibs=no
7610      ;;
7611    esac
7612  fi
7613
7614echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7615echo "${ECHO_T}$ld_shlibs" >&6
7616test "$ld_shlibs" = no && can_build_shared=no
7617
7618variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7619if test "$GCC" = yes; then
7620  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7621fi
7622
7623#
7624# Do we need to explicitly link libc?
7625#
7626case "x$archive_cmds_need_lc" in
7627x|xyes)
7628  # Assume -lc should be added
7629  archive_cmds_need_lc=yes
7630
7631  if test "$enable_shared" = yes && test "$GCC" = yes; then
7632    case $archive_cmds in
7633    *'~'*)
7634      # FIXME: we may have to deal with multi-command sequences.
7635      ;;
7636    '$CC '*)
7637      # Test whether the compiler implicitly links with -lc since on some
7638      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7639      # to ld, don't add -lc before -lgcc.
7640      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7641echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7642      $rm conftest*
7643      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7644
7645      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7646  (eval $ac_compile) 2>&5
7647  ac_status=$?
7648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649  (exit $ac_status); } 2>conftest.err; then
7650        soname=conftest
7651        lib=conftest
7652        libobjs=conftest.$ac_objext
7653        deplibs=
7654        wl=$lt_prog_compiler_wl
7655        compiler_flags=-v
7656        linker_flags=-v
7657        verstring=
7658        output_objdir=.
7659        libname=conftest
7660        lt_save_allow_undefined_flag=$allow_undefined_flag
7661        allow_undefined_flag=
7662        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7663  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7664  ac_status=$?
7665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666  (exit $ac_status); }
7667        then
7668	  archive_cmds_need_lc=no
7669        else
7670	  archive_cmds_need_lc=yes
7671        fi
7672        allow_undefined_flag=$lt_save_allow_undefined_flag
7673      else
7674        cat conftest.err 1>&5
7675      fi
7676      $rm conftest*
7677      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7678echo "${ECHO_T}$archive_cmds_need_lc" >&6
7679      ;;
7680    esac
7681  fi
7682  ;;
7683esac
7684
7685echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7686echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7687library_names_spec=
7688libname_spec='lib$name'
7689soname_spec=
7690shrext_cmds=".so"
7691postinstall_cmds=
7692postuninstall_cmds=
7693finish_cmds=
7694finish_eval=
7695shlibpath_var=
7696shlibpath_overrides_runpath=unknown
7697version_type=none
7698dynamic_linker="$host_os ld.so"
7699sys_lib_dlsearch_path_spec="/lib /usr/lib"
7700if test "$GCC" = yes; then
7701  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7702  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7703    # if the path contains ";" then we assume it to be the separator
7704    # otherwise default to the standard path separator (i.e. ":") - it is
7705    # assumed that no part of a normal pathname contains ";" but that should
7706    # okay in the real world where ";" in dirpaths is itself problematic.
7707    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7708  else
7709    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7710  fi
7711else
7712  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7713fi
7714need_lib_prefix=unknown
7715hardcode_into_libs=no
7716
7717# when you set need_version to no, make sure it does not cause -set_version
7718# flags to be left without arguments
7719need_version=unknown
7720
7721case $host_os in
7722aix3*)
7723  version_type=linux
7724  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7725  shlibpath_var=LIBPATH
7726
7727  # AIX 3 has no versioning support, so we append a major version to the name.
7728  soname_spec='${libname}${release}${shared_ext}$major'
7729  ;;
7730
7731aix4* | aix5*)
7732  version_type=linux
7733  need_lib_prefix=no
7734  need_version=no
7735  hardcode_into_libs=yes
7736  if test "$host_cpu" = ia64; then
7737    # AIX 5 supports IA64
7738    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7739    shlibpath_var=LD_LIBRARY_PATH
7740  else
7741    # With GCC up to 2.95.x, collect2 would create an import file
7742    # for dependence libraries.  The import file would start with
7743    # the line `#! .'.  This would cause the generated library to
7744    # depend on `.', always an invalid library.  This was fixed in
7745    # development snapshots of GCC prior to 3.0.
7746    case $host_os in
7747      aix4 | aix4.[01] | aix4.[01].*)
7748      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7749	   echo ' yes '
7750	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7751	:
7752      else
7753	can_build_shared=no
7754      fi
7755      ;;
7756    esac
7757    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7758    # soname into executable. Probably we can add versioning support to
7759    # collect2, so additional links can be useful in future.
7760    if test "$aix_use_runtimelinking" = yes; then
7761      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7762      # instead of lib<name>.a to let people know that these are not
7763      # typical AIX shared libraries.
7764      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7765    else
7766      # We preserve .a as extension for shared libraries through AIX4.2
7767      # and later when we are not doing run time linking.
7768      library_names_spec='${libname}${release}.a $libname.a'
7769      soname_spec='${libname}${release}${shared_ext}$major'
7770    fi
7771    shlibpath_var=LIBPATH
7772  fi
7773  ;;
7774
7775amigaos*)
7776  library_names_spec='$libname.ixlibrary $libname.a'
7777  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7778  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'
7779  ;;
7780
7781beos*)
7782  library_names_spec='${libname}${shared_ext}'
7783  dynamic_linker="$host_os ld.so"
7784  shlibpath_var=LIBRARY_PATH
7785  ;;
7786
7787bsdi[45]*)
7788  version_type=linux
7789  need_version=no
7790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7791  soname_spec='${libname}${release}${shared_ext}$major'
7792  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7793  shlibpath_var=LD_LIBRARY_PATH
7794  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7795  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7796  # the default ld.so.conf also contains /usr/contrib/lib and
7797  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7798  # libtool to hard-code these into programs
7799  ;;
7800
7801cygwin* | mingw* | pw32*)
7802  version_type=windows
7803  shrext_cmds=".dll"
7804  need_version=no
7805  need_lib_prefix=no
7806
7807  case $GCC,$host_os in
7808  yes,cygwin* | yes,mingw* | yes,pw32*)
7809    library_names_spec='$libname.dll.a'
7810    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7811    postinstall_cmds='base_file=`basename \${file}`~
7812      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7813      dldir=$destdir/`dirname \$dlpath`~
7814      test -d \$dldir || mkdir -p \$dldir~
7815      $install_prog $dir/$dlname \$dldir/$dlname~
7816      chmod a+x \$dldir/$dlname'
7817    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7818      dlpath=$dir/\$dldll~
7819       $rm \$dlpath'
7820    shlibpath_overrides_runpath=yes
7821
7822    case $host_os in
7823    cygwin*)
7824      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7825      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7826      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7827      ;;
7828    mingw*)
7829      # MinGW DLLs use traditional 'lib' prefix
7830      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7831      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7832      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7833        # It is most probably a Windows format PATH printed by
7834        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7835        # path with ; separators, and with drive letters. We can handle the
7836        # drive letters (cygwin fileutils understands them), so leave them,
7837        # especially as we might pass files found there to a mingw objdump,
7838        # which wouldn't understand a cygwinified path. Ahh.
7839        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7840      else
7841        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7842      fi
7843      ;;
7844    pw32*)
7845      # pw32 DLLs use 'pw' prefix rather than 'lib'
7846      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7847      ;;
7848    esac
7849    ;;
7850
7851  *)
7852    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7853    ;;
7854  esac
7855  dynamic_linker='Win32 ld.exe'
7856  # FIXME: first we should search . and the directory the executable is in
7857  shlibpath_var=PATH
7858  ;;
7859
7860darwin* | rhapsody*)
7861  dynamic_linker="$host_os dyld"
7862  version_type=darwin
7863  need_lib_prefix=no
7864  need_version=no
7865  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7866  soname_spec='${libname}${release}${major}$shared_ext'
7867  shlibpath_overrides_runpath=yes
7868  shlibpath_var=DYLD_LIBRARY_PATH
7869  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7870  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7871  if test "$GCC" = yes; then
7872    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"`
7873  else
7874    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7875  fi
7876  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7877  ;;
7878
7879dgux*)
7880  version_type=linux
7881  need_lib_prefix=no
7882  need_version=no
7883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7884  soname_spec='${libname}${release}${shared_ext}$major'
7885  shlibpath_var=LD_LIBRARY_PATH
7886  ;;
7887
7888freebsd1*)
7889  dynamic_linker=no
7890  ;;
7891
7892kfreebsd*-gnu)
7893  version_type=linux
7894  need_lib_prefix=no
7895  need_version=no
7896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7897  soname_spec='${libname}${release}${shared_ext}$major'
7898  shlibpath_var=LD_LIBRARY_PATH
7899  shlibpath_overrides_runpath=no
7900  hardcode_into_libs=yes
7901  dynamic_linker='GNU ld.so'
7902  ;;
7903
7904freebsd* | dragonfly*)
7905  # DragonFly does not have aout.  When/if they implement a new
7906  # versioning mechanism, adjust this.
7907  if test -x /usr/bin/objformat; then
7908    objformat=`/usr/bin/objformat`
7909  else
7910    case $host_os in
7911    freebsd[123]*) objformat=aout ;;
7912    *) objformat=elf ;;
7913    esac
7914  fi
7915  version_type=freebsd-$objformat
7916  case $version_type in
7917    freebsd-elf*)
7918      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7919      need_version=no
7920      need_lib_prefix=no
7921      ;;
7922    freebsd-*)
7923      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7924      need_version=yes
7925      ;;
7926  esac
7927  shlibpath_var=LD_LIBRARY_PATH
7928  case $host_os in
7929  freebsd2*)
7930    shlibpath_overrides_runpath=yes
7931    ;;
7932  freebsd3.[01]* | freebsdelf3.[01]*)
7933    shlibpath_overrides_runpath=yes
7934    hardcode_into_libs=yes
7935    ;;
7936  *) # from 3.2 on
7937    shlibpath_overrides_runpath=no
7938    hardcode_into_libs=yes
7939    ;;
7940  esac
7941  ;;
7942
7943gnu*)
7944  version_type=linux
7945  need_lib_prefix=no
7946  need_version=no
7947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7948  soname_spec='${libname}${release}${shared_ext}$major'
7949  shlibpath_var=LD_LIBRARY_PATH
7950  hardcode_into_libs=yes
7951  ;;
7952
7953hpux9* | hpux10* | hpux11*)
7954  # Give a soname corresponding to the major version so that dld.sl refuses to
7955  # link against other versions.
7956  version_type=sunos
7957  need_lib_prefix=no
7958  need_version=no
7959  case $host_cpu in
7960  ia64*)
7961    shrext_cmds='.so'
7962    hardcode_into_libs=yes
7963    dynamic_linker="$host_os dld.so"
7964    shlibpath_var=LD_LIBRARY_PATH
7965    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7966    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967    soname_spec='${libname}${release}${shared_ext}$major'
7968    if test "X$HPUX_IA64_MODE" = X32; then
7969      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7970    else
7971      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7972    fi
7973    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7974    ;;
7975   hppa*64*)
7976     shrext_cmds='.sl'
7977     hardcode_into_libs=yes
7978     dynamic_linker="$host_os dld.sl"
7979     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7980     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7982     soname_spec='${libname}${release}${shared_ext}$major'
7983     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7984     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7985     ;;
7986   *)
7987    shrext_cmds='.sl'
7988    dynamic_linker="$host_os dld.sl"
7989    shlibpath_var=SHLIB_PATH
7990    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7991    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992    soname_spec='${libname}${release}${shared_ext}$major'
7993    ;;
7994  esac
7995  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7996  postinstall_cmds='chmod 555 $lib'
7997  ;;
7998
7999irix5* | irix6* | nonstopux*)
8000  case $host_os in
8001    nonstopux*) version_type=nonstopux ;;
8002    *)
8003	if test "$lt_cv_prog_gnu_ld" = yes; then
8004		version_type=linux
8005	else
8006		version_type=irix
8007	fi ;;
8008  esac
8009  need_lib_prefix=no
8010  need_version=no
8011  soname_spec='${libname}${release}${shared_ext}$major'
8012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8013  case $host_os in
8014  irix5* | nonstopux*)
8015    libsuff= shlibsuff=
8016    ;;
8017  *)
8018    case $LD in # libtool.m4 will add one of these switches to LD
8019    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8020      libsuff= shlibsuff= libmagic=32-bit;;
8021    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8022      libsuff=32 shlibsuff=N32 libmagic=N32;;
8023    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8024      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8025    *) libsuff= shlibsuff= libmagic=never-match;;
8026    esac
8027    ;;
8028  esac
8029  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8030  shlibpath_overrides_runpath=no
8031  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8032  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8033  hardcode_into_libs=yes
8034  ;;
8035
8036# No shared lib support for Linux oldld, aout, or coff.
8037linux*oldld* | linux*aout* | linux*coff*)
8038  dynamic_linker=no
8039  ;;
8040
8041# This must be Linux ELF.
8042linux*)
8043  version_type=linux
8044  need_lib_prefix=no
8045  need_version=no
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8049  shlibpath_var=LD_LIBRARY_PATH
8050  shlibpath_overrides_runpath=no
8051  # This implies no fast_install, which is unacceptable.
8052  # Some rework will be needed to allow for fast_install
8053  # before this can be enabled.
8054  hardcode_into_libs=yes
8055
8056  # Append ld.so.conf contents to the search path
8057  if test -f /etc/ld.so.conf; then
8058    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8059    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8060  fi
8061
8062  # We used to test for /lib/ld.so.1 and disable shared libraries on
8063  # powerpc, because MkLinux only supported shared libraries with the
8064  # GNU dynamic linker.  Since this was broken with cross compilers,
8065  # most powerpc-linux boxes support dynamic linking these days and
8066  # people can always --disable-shared, the test was removed, and we
8067  # assume the GNU/Linux dynamic linker is in use.
8068  dynamic_linker='GNU/Linux ld.so'
8069  ;;
8070
8071knetbsd*-gnu)
8072  version_type=linux
8073  need_lib_prefix=no
8074  need_version=no
8075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8076  soname_spec='${libname}${release}${shared_ext}$major'
8077  shlibpath_var=LD_LIBRARY_PATH
8078  shlibpath_overrides_runpath=no
8079  hardcode_into_libs=yes
8080  dynamic_linker='GNU ld.so'
8081  ;;
8082
8083netbsd*)
8084  version_type=sunos
8085  need_lib_prefix=no
8086  need_version=no
8087  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8088    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8089    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8090    dynamic_linker='NetBSD (a.out) ld.so'
8091  else
8092    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8093    soname_spec='${libname}${release}${shared_ext}$major'
8094    dynamic_linker='NetBSD ld.elf_so'
8095  fi
8096  shlibpath_var=LD_LIBRARY_PATH
8097  shlibpath_overrides_runpath=yes
8098  hardcode_into_libs=yes
8099  ;;
8100
8101newsos6)
8102  version_type=linux
8103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104  shlibpath_var=LD_LIBRARY_PATH
8105  shlibpath_overrides_runpath=yes
8106  ;;
8107
8108nto-qnx*)
8109  version_type=linux
8110  need_lib_prefix=no
8111  need_version=no
8112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8113  soname_spec='${libname}${release}${shared_ext}$major'
8114  shlibpath_var=LD_LIBRARY_PATH
8115  shlibpath_overrides_runpath=yes
8116  ;;
8117
8118openbsd*)
8119  version_type=sunos
8120  need_lib_prefix=no
8121  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8122  case $host_os in
8123    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8124    *)                         need_version=no  ;;
8125  esac
8126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8127  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8128  shlibpath_var=LD_LIBRARY_PATH
8129  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8130    case $host_os in
8131      openbsd2.[89] | openbsd2.[89].*)
8132	shlibpath_overrides_runpath=no
8133	;;
8134      *)
8135	shlibpath_overrides_runpath=yes
8136	;;
8137      esac
8138  else
8139    shlibpath_overrides_runpath=yes
8140  fi
8141  ;;
8142
8143os2*)
8144  libname_spec='$name'
8145  shrext_cmds=".dll"
8146  need_lib_prefix=no
8147  library_names_spec='$libname${shared_ext} $libname.a'
8148  dynamic_linker='OS/2 ld.exe'
8149  shlibpath_var=LIBPATH
8150  ;;
8151
8152osf3* | osf4* | osf5*)
8153  version_type=osf
8154  need_lib_prefix=no
8155  need_version=no
8156  soname_spec='${libname}${release}${shared_ext}$major'
8157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8158  shlibpath_var=LD_LIBRARY_PATH
8159  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8160  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8161  ;;
8162
8163sco3.2v5*)
8164  version_type=osf
8165  soname_spec='${libname}${release}${shared_ext}$major'
8166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8167  shlibpath_var=LD_LIBRARY_PATH
8168  ;;
8169
8170solaris*)
8171  version_type=linux
8172  need_lib_prefix=no
8173  need_version=no
8174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8175  soname_spec='${libname}${release}${shared_ext}$major'
8176  shlibpath_var=LD_LIBRARY_PATH
8177  shlibpath_overrides_runpath=yes
8178  hardcode_into_libs=yes
8179  # ldd complains unless libraries are executable
8180  postinstall_cmds='chmod +x $lib'
8181  ;;
8182
8183sunos4*)
8184  version_type=sunos
8185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8186  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8187  shlibpath_var=LD_LIBRARY_PATH
8188  shlibpath_overrides_runpath=yes
8189  if test "$with_gnu_ld" = yes; then
8190    need_lib_prefix=no
8191  fi
8192  need_version=yes
8193  ;;
8194
8195sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8196  version_type=linux
8197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8198  soname_spec='${libname}${release}${shared_ext}$major'
8199  shlibpath_var=LD_LIBRARY_PATH
8200  case $host_vendor in
8201    sni)
8202      shlibpath_overrides_runpath=no
8203      need_lib_prefix=no
8204      export_dynamic_flag_spec='${wl}-Blargedynsym'
8205      runpath_var=LD_RUN_PATH
8206      ;;
8207    siemens)
8208      need_lib_prefix=no
8209      ;;
8210    motorola)
8211      need_lib_prefix=no
8212      need_version=no
8213      shlibpath_overrides_runpath=no
8214      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8215      ;;
8216  esac
8217  ;;
8218
8219sysv4*MP*)
8220  if test -d /usr/nec ;then
8221    version_type=linux
8222    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8223    soname_spec='$libname${shared_ext}.$major'
8224    shlibpath_var=LD_LIBRARY_PATH
8225  fi
8226  ;;
8227
8228uts4*)
8229  version_type=linux
8230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8231  soname_spec='${libname}${release}${shared_ext}$major'
8232  shlibpath_var=LD_LIBRARY_PATH
8233  ;;
8234
8235*)
8236  dynamic_linker=no
8237  ;;
8238esac
8239echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8240echo "${ECHO_T}$dynamic_linker" >&6
8241test "$dynamic_linker" = no && can_build_shared=no
8242
8243echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8244echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8245hardcode_action=
8246if test -n "$hardcode_libdir_flag_spec" || \
8247   test -n "$runpath_var" || \
8248   test "X$hardcode_automatic" = "Xyes" ; then
8249
8250  # We can hardcode non-existant directories.
8251  if test "$hardcode_direct" != no &&
8252     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8253     # have to relink, otherwise we might link with an installed library
8254     # when we should be linking with a yet-to-be-installed one
8255     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8256     test "$hardcode_minus_L" != no; then
8257    # Linking always hardcodes the temporary library directory.
8258    hardcode_action=relink
8259  else
8260    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8261    hardcode_action=immediate
8262  fi
8263else
8264  # We cannot hardcode anything, or else we can only hardcode existing
8265  # directories.
8266  hardcode_action=unsupported
8267fi
8268echo "$as_me:$LINENO: result: $hardcode_action" >&5
8269echo "${ECHO_T}$hardcode_action" >&6
8270
8271if test "$hardcode_action" = relink; then
8272  # Fast installation is not supported
8273  enable_fast_install=no
8274elif test "$shlibpath_overrides_runpath" = yes ||
8275     test "$enable_shared" = no; then
8276  # Fast installation is not necessary
8277  enable_fast_install=needless
8278fi
8279
8280striplib=
8281old_striplib=
8282echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8283echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8284if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8285  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8286  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8287  echo "$as_me:$LINENO: result: yes" >&5
8288echo "${ECHO_T}yes" >&6
8289else
8290# FIXME - insert some real tests, host_os isn't really good enough
8291  case $host_os in
8292   darwin*)
8293       if test -n "$STRIP" ; then
8294         striplib="$STRIP -x"
8295         echo "$as_me:$LINENO: result: yes" >&5
8296echo "${ECHO_T}yes" >&6
8297       else
8298  echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6
8300fi
8301       ;;
8302   *)
8303  echo "$as_me:$LINENO: result: no" >&5
8304echo "${ECHO_T}no" >&6
8305    ;;
8306  esac
8307fi
8308
8309if test "x$enable_dlopen" != xyes; then
8310  enable_dlopen=unknown
8311  enable_dlopen_self=unknown
8312  enable_dlopen_self_static=unknown
8313else
8314  lt_cv_dlopen=no
8315  lt_cv_dlopen_libs=
8316
8317  case $host_os in
8318  beos*)
8319    lt_cv_dlopen="load_add_on"
8320    lt_cv_dlopen_libs=
8321    lt_cv_dlopen_self=yes
8322    ;;
8323
8324  mingw* | pw32*)
8325    lt_cv_dlopen="LoadLibrary"
8326    lt_cv_dlopen_libs=
8327   ;;
8328
8329  cygwin*)
8330    lt_cv_dlopen="dlopen"
8331    lt_cv_dlopen_libs=
8332   ;;
8333
8334  darwin*)
8335  # if libdl is installed we need to link against it
8336    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8337echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8338if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8339  echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341  ac_check_lib_save_LIBS=$LIBS
8342LIBS="-ldl  $LIBS"
8343cat >conftest.$ac_ext <<_ACEOF
8344/* confdefs.h.  */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
8348/* end confdefs.h.  */
8349
8350/* Override any gcc2 internal prototype to avoid an error.  */
8351#ifdef __cplusplus
8352extern "C"
8353#endif
8354/* We use char because int might match the return type of a gcc2
8355   builtin and then its argument prototype would still apply.  */
8356char dlopen ();
8357int
8358main ()
8359{
8360dlopen ();
8361  ;
8362  return 0;
8363}
8364_ACEOF
8365rm -f conftest.$ac_objext conftest$ac_exeext
8366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367  (eval $ac_link) 2>conftest.er1
8368  ac_status=$?
8369  grep -v '^ *+' conftest.er1 >conftest.err
8370  rm -f conftest.er1
8371  cat conftest.err >&5
8372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373  (exit $ac_status); } &&
8374	 { ac_try='test -z "$ac_c_werror_flag"
8375			 || test ! -s conftest.err'
8376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377  (eval $ac_try) 2>&5
8378  ac_status=$?
8379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380  (exit $ac_status); }; } &&
8381	 { ac_try='test -s conftest$ac_exeext'
8382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383  (eval $ac_try) 2>&5
8384  ac_status=$?
8385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386  (exit $ac_status); }; }; then
8387  ac_cv_lib_dl_dlopen=yes
8388else
8389  echo "$as_me: failed program was:" >&5
8390sed 's/^/| /' conftest.$ac_ext >&5
8391
8392ac_cv_lib_dl_dlopen=no
8393fi
8394rm -f conftest.err conftest.$ac_objext \
8395      conftest$ac_exeext conftest.$ac_ext
8396LIBS=$ac_check_lib_save_LIBS
8397fi
8398echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8399echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8400if test $ac_cv_lib_dl_dlopen = yes; then
8401  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8402else
8403
8404    lt_cv_dlopen="dyld"
8405    lt_cv_dlopen_libs=
8406    lt_cv_dlopen_self=yes
8407
8408fi
8409
8410   ;;
8411
8412  *)
8413    echo "$as_me:$LINENO: checking for shl_load" >&5
8414echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8415if test "${ac_cv_func_shl_load+set}" = set; then
8416  echo $ECHO_N "(cached) $ECHO_C" >&6
8417else
8418  cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h.  */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h.  */
8424/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8425   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8426#define shl_load innocuous_shl_load
8427
8428/* System header to define __stub macros and hopefully few prototypes,
8429    which can conflict with char shl_load (); below.
8430    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8431    <limits.h> exists even on freestanding compilers.  */
8432
8433#ifdef __STDC__
8434# include <limits.h>
8435#else
8436# include <assert.h>
8437#endif
8438
8439#undef shl_load
8440
8441/* Override any gcc2 internal prototype to avoid an error.  */
8442#ifdef __cplusplus
8443extern "C"
8444{
8445#endif
8446/* We use char because int might match the return type of a gcc2
8447   builtin and then its argument prototype would still apply.  */
8448char shl_load ();
8449/* The GNU C library defines this for functions which it implements
8450    to always fail with ENOSYS.  Some functions are actually named
8451    something starting with __ and the normal name is an alias.  */
8452#if defined (__stub_shl_load) || defined (__stub___shl_load)
8453choke me
8454#else
8455char (*f) () = shl_load;
8456#endif
8457#ifdef __cplusplus
8458}
8459#endif
8460
8461int
8462main ()
8463{
8464return f != shl_load;
8465  ;
8466  return 0;
8467}
8468_ACEOF
8469rm -f conftest.$ac_objext conftest$ac_exeext
8470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471  (eval $ac_link) 2>conftest.er1
8472  ac_status=$?
8473  grep -v '^ *+' conftest.er1 >conftest.err
8474  rm -f conftest.er1
8475  cat conftest.err >&5
8476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477  (exit $ac_status); } &&
8478	 { ac_try='test -z "$ac_c_werror_flag"
8479			 || test ! -s conftest.err'
8480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481  (eval $ac_try) 2>&5
8482  ac_status=$?
8483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484  (exit $ac_status); }; } &&
8485	 { ac_try='test -s conftest$ac_exeext'
8486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487  (eval $ac_try) 2>&5
8488  ac_status=$?
8489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490  (exit $ac_status); }; }; then
8491  ac_cv_func_shl_load=yes
8492else
8493  echo "$as_me: failed program was:" >&5
8494sed 's/^/| /' conftest.$ac_ext >&5
8495
8496ac_cv_func_shl_load=no
8497fi
8498rm -f conftest.err conftest.$ac_objext \
8499      conftest$ac_exeext conftest.$ac_ext
8500fi
8501echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8502echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8503if test $ac_cv_func_shl_load = yes; then
8504  lt_cv_dlopen="shl_load"
8505else
8506  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8507echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8508if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8509  echo $ECHO_N "(cached) $ECHO_C" >&6
8510else
8511  ac_check_lib_save_LIBS=$LIBS
8512LIBS="-ldld  $LIBS"
8513cat >conftest.$ac_ext <<_ACEOF
8514/* confdefs.h.  */
8515_ACEOF
8516cat confdefs.h >>conftest.$ac_ext
8517cat >>conftest.$ac_ext <<_ACEOF
8518/* end confdefs.h.  */
8519
8520/* Override any gcc2 internal prototype to avoid an error.  */
8521#ifdef __cplusplus
8522extern "C"
8523#endif
8524/* We use char because int might match the return type of a gcc2
8525   builtin and then its argument prototype would still apply.  */
8526char shl_load ();
8527int
8528main ()
8529{
8530shl_load ();
8531  ;
8532  return 0;
8533}
8534_ACEOF
8535rm -f conftest.$ac_objext conftest$ac_exeext
8536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8537  (eval $ac_link) 2>conftest.er1
8538  ac_status=$?
8539  grep -v '^ *+' conftest.er1 >conftest.err
8540  rm -f conftest.er1
8541  cat conftest.err >&5
8542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543  (exit $ac_status); } &&
8544	 { ac_try='test -z "$ac_c_werror_flag"
8545			 || test ! -s conftest.err'
8546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547  (eval $ac_try) 2>&5
8548  ac_status=$?
8549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550  (exit $ac_status); }; } &&
8551	 { ac_try='test -s conftest$ac_exeext'
8552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553  (eval $ac_try) 2>&5
8554  ac_status=$?
8555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556  (exit $ac_status); }; }; then
8557  ac_cv_lib_dld_shl_load=yes
8558else
8559  echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562ac_cv_lib_dld_shl_load=no
8563fi
8564rm -f conftest.err conftest.$ac_objext \
8565      conftest$ac_exeext conftest.$ac_ext
8566LIBS=$ac_check_lib_save_LIBS
8567fi
8568echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8569echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8570if test $ac_cv_lib_dld_shl_load = yes; then
8571  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8572else
8573  echo "$as_me:$LINENO: checking for dlopen" >&5
8574echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8575if test "${ac_cv_func_dlopen+set}" = set; then
8576  echo $ECHO_N "(cached) $ECHO_C" >&6
8577else
8578  cat >conftest.$ac_ext <<_ACEOF
8579/* confdefs.h.  */
8580_ACEOF
8581cat confdefs.h >>conftest.$ac_ext
8582cat >>conftest.$ac_ext <<_ACEOF
8583/* end confdefs.h.  */
8584/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8585   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8586#define dlopen innocuous_dlopen
8587
8588/* System header to define __stub macros and hopefully few prototypes,
8589    which can conflict with char dlopen (); below.
8590    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8591    <limits.h> exists even on freestanding compilers.  */
8592
8593#ifdef __STDC__
8594# include <limits.h>
8595#else
8596# include <assert.h>
8597#endif
8598
8599#undef dlopen
8600
8601/* Override any gcc2 internal prototype to avoid an error.  */
8602#ifdef __cplusplus
8603extern "C"
8604{
8605#endif
8606/* We use char because int might match the return type of a gcc2
8607   builtin and then its argument prototype would still apply.  */
8608char dlopen ();
8609/* The GNU C library defines this for functions which it implements
8610    to always fail with ENOSYS.  Some functions are actually named
8611    something starting with __ and the normal name is an alias.  */
8612#if defined (__stub_dlopen) || defined (__stub___dlopen)
8613choke me
8614#else
8615char (*f) () = dlopen;
8616#endif
8617#ifdef __cplusplus
8618}
8619#endif
8620
8621int
8622main ()
8623{
8624return f != dlopen;
8625  ;
8626  return 0;
8627}
8628_ACEOF
8629rm -f conftest.$ac_objext conftest$ac_exeext
8630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631  (eval $ac_link) 2>conftest.er1
8632  ac_status=$?
8633  grep -v '^ *+' conftest.er1 >conftest.err
8634  rm -f conftest.er1
8635  cat conftest.err >&5
8636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637  (exit $ac_status); } &&
8638	 { ac_try='test -z "$ac_c_werror_flag"
8639			 || test ! -s conftest.err'
8640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641  (eval $ac_try) 2>&5
8642  ac_status=$?
8643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644  (exit $ac_status); }; } &&
8645	 { ac_try='test -s conftest$ac_exeext'
8646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647  (eval $ac_try) 2>&5
8648  ac_status=$?
8649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650  (exit $ac_status); }; }; then
8651  ac_cv_func_dlopen=yes
8652else
8653  echo "$as_me: failed program was:" >&5
8654sed 's/^/| /' conftest.$ac_ext >&5
8655
8656ac_cv_func_dlopen=no
8657fi
8658rm -f conftest.err conftest.$ac_objext \
8659      conftest$ac_exeext conftest.$ac_ext
8660fi
8661echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8662echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8663if test $ac_cv_func_dlopen = yes; then
8664  lt_cv_dlopen="dlopen"
8665else
8666  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8667echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8668if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8669  echo $ECHO_N "(cached) $ECHO_C" >&6
8670else
8671  ac_check_lib_save_LIBS=$LIBS
8672LIBS="-ldl  $LIBS"
8673cat >conftest.$ac_ext <<_ACEOF
8674/* confdefs.h.  */
8675_ACEOF
8676cat confdefs.h >>conftest.$ac_ext
8677cat >>conftest.$ac_ext <<_ACEOF
8678/* end confdefs.h.  */
8679
8680/* Override any gcc2 internal prototype to avoid an error.  */
8681#ifdef __cplusplus
8682extern "C"
8683#endif
8684/* We use char because int might match the return type of a gcc2
8685   builtin and then its argument prototype would still apply.  */
8686char dlopen ();
8687int
8688main ()
8689{
8690dlopen ();
8691  ;
8692  return 0;
8693}
8694_ACEOF
8695rm -f conftest.$ac_objext conftest$ac_exeext
8696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697  (eval $ac_link) 2>conftest.er1
8698  ac_status=$?
8699  grep -v '^ *+' conftest.er1 >conftest.err
8700  rm -f conftest.er1
8701  cat conftest.err >&5
8702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703  (exit $ac_status); } &&
8704	 { ac_try='test -z "$ac_c_werror_flag"
8705			 || test ! -s conftest.err'
8706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707  (eval $ac_try) 2>&5
8708  ac_status=$?
8709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710  (exit $ac_status); }; } &&
8711	 { ac_try='test -s conftest$ac_exeext'
8712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713  (eval $ac_try) 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; }; then
8717  ac_cv_lib_dl_dlopen=yes
8718else
8719  echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722ac_cv_lib_dl_dlopen=no
8723fi
8724rm -f conftest.err conftest.$ac_objext \
8725      conftest$ac_exeext conftest.$ac_ext
8726LIBS=$ac_check_lib_save_LIBS
8727fi
8728echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8729echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8730if test $ac_cv_lib_dl_dlopen = yes; then
8731  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8732else
8733  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8734echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8735if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8736  echo $ECHO_N "(cached) $ECHO_C" >&6
8737else
8738  ac_check_lib_save_LIBS=$LIBS
8739LIBS="-lsvld  $LIBS"
8740cat >conftest.$ac_ext <<_ACEOF
8741/* confdefs.h.  */
8742_ACEOF
8743cat confdefs.h >>conftest.$ac_ext
8744cat >>conftest.$ac_ext <<_ACEOF
8745/* end confdefs.h.  */
8746
8747/* Override any gcc2 internal prototype to avoid an error.  */
8748#ifdef __cplusplus
8749extern "C"
8750#endif
8751/* We use char because int might match the return type of a gcc2
8752   builtin and then its argument prototype would still apply.  */
8753char dlopen ();
8754int
8755main ()
8756{
8757dlopen ();
8758  ;
8759  return 0;
8760}
8761_ACEOF
8762rm -f conftest.$ac_objext conftest$ac_exeext
8763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764  (eval $ac_link) 2>conftest.er1
8765  ac_status=$?
8766  grep -v '^ *+' conftest.er1 >conftest.err
8767  rm -f conftest.er1
8768  cat conftest.err >&5
8769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770  (exit $ac_status); } &&
8771	 { ac_try='test -z "$ac_c_werror_flag"
8772			 || test ! -s conftest.err'
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); }; } &&
8778	 { ac_try='test -s conftest$ac_exeext'
8779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780  (eval $ac_try) 2>&5
8781  ac_status=$?
8782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783  (exit $ac_status); }; }; then
8784  ac_cv_lib_svld_dlopen=yes
8785else
8786  echo "$as_me: failed program was:" >&5
8787sed 's/^/| /' conftest.$ac_ext >&5
8788
8789ac_cv_lib_svld_dlopen=no
8790fi
8791rm -f conftest.err conftest.$ac_objext \
8792      conftest$ac_exeext conftest.$ac_ext
8793LIBS=$ac_check_lib_save_LIBS
8794fi
8795echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8796echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8797if test $ac_cv_lib_svld_dlopen = yes; then
8798  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8799else
8800  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8801echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8802if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8803  echo $ECHO_N "(cached) $ECHO_C" >&6
8804else
8805  ac_check_lib_save_LIBS=$LIBS
8806LIBS="-ldld  $LIBS"
8807cat >conftest.$ac_ext <<_ACEOF
8808/* confdefs.h.  */
8809_ACEOF
8810cat confdefs.h >>conftest.$ac_ext
8811cat >>conftest.$ac_ext <<_ACEOF
8812/* end confdefs.h.  */
8813
8814/* Override any gcc2 internal prototype to avoid an error.  */
8815#ifdef __cplusplus
8816extern "C"
8817#endif
8818/* We use char because int might match the return type of a gcc2
8819   builtin and then its argument prototype would still apply.  */
8820char dld_link ();
8821int
8822main ()
8823{
8824dld_link ();
8825  ;
8826  return 0;
8827}
8828_ACEOF
8829rm -f conftest.$ac_objext conftest$ac_exeext
8830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831  (eval $ac_link) 2>conftest.er1
8832  ac_status=$?
8833  grep -v '^ *+' conftest.er1 >conftest.err
8834  rm -f conftest.er1
8835  cat conftest.err >&5
8836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837  (exit $ac_status); } &&
8838	 { ac_try='test -z "$ac_c_werror_flag"
8839			 || test ! -s conftest.err'
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); }; } &&
8845	 { ac_try='test -s conftest$ac_exeext'
8846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847  (eval $ac_try) 2>&5
8848  ac_status=$?
8849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850  (exit $ac_status); }; }; then
8851  ac_cv_lib_dld_dld_link=yes
8852else
8853  echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
8856ac_cv_lib_dld_dld_link=no
8857fi
8858rm -f conftest.err conftest.$ac_objext \
8859      conftest$ac_exeext conftest.$ac_ext
8860LIBS=$ac_check_lib_save_LIBS
8861fi
8862echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8863echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8864if test $ac_cv_lib_dld_dld_link = yes; then
8865  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8866fi
8867
8868
8869fi
8870
8871
8872fi
8873
8874
8875fi
8876
8877
8878fi
8879
8880
8881fi
8882
8883    ;;
8884  esac
8885
8886  if test "x$lt_cv_dlopen" != xno; then
8887    enable_dlopen=yes
8888  else
8889    enable_dlopen=no
8890  fi
8891
8892  case $lt_cv_dlopen in
8893  dlopen)
8894    save_CPPFLAGS="$CPPFLAGS"
8895    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8896
8897    save_LDFLAGS="$LDFLAGS"
8898    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8899
8900    save_LIBS="$LIBS"
8901    LIBS="$lt_cv_dlopen_libs $LIBS"
8902
8903    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8904echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8905if test "${lt_cv_dlopen_self+set}" = set; then
8906  echo $ECHO_N "(cached) $ECHO_C" >&6
8907else
8908  	  if test "$cross_compiling" = yes; then :
8909  lt_cv_dlopen_self=cross
8910else
8911  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8912  lt_status=$lt_dlunknown
8913  cat > conftest.$ac_ext <<EOF
8914#line 8914 "configure"
8915#include "confdefs.h"
8916
8917#if HAVE_DLFCN_H
8918#include <dlfcn.h>
8919#endif
8920
8921#include <stdio.h>
8922
8923#ifdef RTLD_GLOBAL
8924#  define LT_DLGLOBAL		RTLD_GLOBAL
8925#else
8926#  ifdef DL_GLOBAL
8927#    define LT_DLGLOBAL		DL_GLOBAL
8928#  else
8929#    define LT_DLGLOBAL		0
8930#  endif
8931#endif
8932
8933/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8934   find out it does not work in some platform. */
8935#ifndef LT_DLLAZY_OR_NOW
8936#  ifdef RTLD_LAZY
8937#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8938#  else
8939#    ifdef DL_LAZY
8940#      define LT_DLLAZY_OR_NOW		DL_LAZY
8941#    else
8942#      ifdef RTLD_NOW
8943#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8944#      else
8945#        ifdef DL_NOW
8946#          define LT_DLLAZY_OR_NOW	DL_NOW
8947#        else
8948#          define LT_DLLAZY_OR_NOW	0
8949#        endif
8950#      endif
8951#    endif
8952#  endif
8953#endif
8954
8955#ifdef __cplusplus
8956extern "C" void exit (int);
8957#endif
8958
8959void fnord() { int i=42;}
8960int main ()
8961{
8962  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8963  int status = $lt_dlunknown;
8964
8965  if (self)
8966    {
8967      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8968      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8969      /* dlclose (self); */
8970    }
8971
8972    exit (status);
8973}
8974EOF
8975  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976  (eval $ac_link) 2>&5
8977  ac_status=$?
8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8980    (./conftest; exit; ) >&5 2>/dev/null
8981    lt_status=$?
8982    case x$lt_status in
8983      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8984      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8985      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8986    esac
8987  else :
8988    # compilation failed
8989    lt_cv_dlopen_self=no
8990  fi
8991fi
8992rm -fr conftest*
8993
8994
8995fi
8996echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8997echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8998
8999    if test "x$lt_cv_dlopen_self" = xyes; then
9000      LDFLAGS="$LDFLAGS $link_static_flag"
9001      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9002echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9003if test "${lt_cv_dlopen_self_static+set}" = set; then
9004  echo $ECHO_N "(cached) $ECHO_C" >&6
9005else
9006  	  if test "$cross_compiling" = yes; then :
9007  lt_cv_dlopen_self_static=cross
9008else
9009  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9010  lt_status=$lt_dlunknown
9011  cat > conftest.$ac_ext <<EOF
9012#line 9012 "configure"
9013#include "confdefs.h"
9014
9015#if HAVE_DLFCN_H
9016#include <dlfcn.h>
9017#endif
9018
9019#include <stdio.h>
9020
9021#ifdef RTLD_GLOBAL
9022#  define LT_DLGLOBAL		RTLD_GLOBAL
9023#else
9024#  ifdef DL_GLOBAL
9025#    define LT_DLGLOBAL		DL_GLOBAL
9026#  else
9027#    define LT_DLGLOBAL		0
9028#  endif
9029#endif
9030
9031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9032   find out it does not work in some platform. */
9033#ifndef LT_DLLAZY_OR_NOW
9034#  ifdef RTLD_LAZY
9035#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9036#  else
9037#    ifdef DL_LAZY
9038#      define LT_DLLAZY_OR_NOW		DL_LAZY
9039#    else
9040#      ifdef RTLD_NOW
9041#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9042#      else
9043#        ifdef DL_NOW
9044#          define LT_DLLAZY_OR_NOW	DL_NOW
9045#        else
9046#          define LT_DLLAZY_OR_NOW	0
9047#        endif
9048#      endif
9049#    endif
9050#  endif
9051#endif
9052
9053#ifdef __cplusplus
9054extern "C" void exit (int);
9055#endif
9056
9057void fnord() { int i=42;}
9058int main ()
9059{
9060  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9061  int status = $lt_dlunknown;
9062
9063  if (self)
9064    {
9065      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9066      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9067      /* dlclose (self); */
9068    }
9069
9070    exit (status);
9071}
9072EOF
9073  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074  (eval $ac_link) 2>&5
9075  ac_status=$?
9076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9078    (./conftest; exit; ) >&5 2>/dev/null
9079    lt_status=$?
9080    case x$lt_status in
9081      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9082      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9083      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9084    esac
9085  else :
9086    # compilation failed
9087    lt_cv_dlopen_self_static=no
9088  fi
9089fi
9090rm -fr conftest*
9091
9092
9093fi
9094echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9095echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9096    fi
9097
9098    CPPFLAGS="$save_CPPFLAGS"
9099    LDFLAGS="$save_LDFLAGS"
9100    LIBS="$save_LIBS"
9101    ;;
9102  esac
9103
9104  case $lt_cv_dlopen_self in
9105  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9106  *) enable_dlopen_self=unknown ;;
9107  esac
9108
9109  case $lt_cv_dlopen_self_static in
9110  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9111  *) enable_dlopen_self_static=unknown ;;
9112  esac
9113fi
9114
9115
9116# Report which librarie types wil actually be built
9117echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9118echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9119echo "$as_me:$LINENO: result: $can_build_shared" >&5
9120echo "${ECHO_T}$can_build_shared" >&6
9121
9122echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9123echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9124test "$can_build_shared" = "no" && enable_shared=no
9125
9126# On AIX, shared libraries and static libraries use the same namespace, and
9127# are all built from PIC.
9128case $host_os in
9129aix3*)
9130  test "$enable_shared" = yes && enable_static=no
9131  if test -n "$RANLIB"; then
9132    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9133    postinstall_cmds='$RANLIB $lib'
9134  fi
9135  ;;
9136
9137aix4* | aix5*)
9138  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9139    test "$enable_shared" = yes && enable_static=no
9140  fi
9141    ;;
9142esac
9143echo "$as_me:$LINENO: result: $enable_shared" >&5
9144echo "${ECHO_T}$enable_shared" >&6
9145
9146echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9147echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9148# Make sure either enable_shared or enable_static is yes.
9149test "$enable_shared" = yes || enable_static=yes
9150echo "$as_me:$LINENO: result: $enable_static" >&5
9151echo "${ECHO_T}$enable_static" >&6
9152
9153# The else clause should only fire when bootstrapping the
9154# libtool distribution, otherwise you forgot to ship ltmain.sh
9155# with your package, and you will get complaints that there are
9156# no rules to generate ltmain.sh.
9157if test -f "$ltmain"; then
9158  # See if we are running on zsh, and set the options which allow our commands through
9159  # without removal of \ escapes.
9160  if test -n "${ZSH_VERSION+set}" ; then
9161    setopt NO_GLOB_SUBST
9162  fi
9163  # Now quote all the things that may contain metacharacters while being
9164  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9165  # variables and quote the copies for generation of the libtool script.
9166  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9167    SED SHELL STRIP \
9168    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9169    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9170    deplibs_check_method reload_flag reload_cmds need_locks \
9171    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9172    lt_cv_sys_global_symbol_to_c_name_address \
9173    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9174    old_postinstall_cmds old_postuninstall_cmds \
9175    compiler \
9176    CC \
9177    LD \
9178    lt_prog_compiler_wl \
9179    lt_prog_compiler_pic \
9180    lt_prog_compiler_static \
9181    lt_prog_compiler_no_builtin_flag \
9182    export_dynamic_flag_spec \
9183    thread_safe_flag_spec \
9184    whole_archive_flag_spec \
9185    enable_shared_with_static_runtimes \
9186    old_archive_cmds \
9187    old_archive_from_new_cmds \
9188    predep_objects \
9189    postdep_objects \
9190    predeps \
9191    postdeps \
9192    compiler_lib_search_path \
9193    archive_cmds \
9194    archive_expsym_cmds \
9195    postinstall_cmds \
9196    postuninstall_cmds \
9197    old_archive_from_expsyms_cmds \
9198    allow_undefined_flag \
9199    no_undefined_flag \
9200    export_symbols_cmds \
9201    hardcode_libdir_flag_spec \
9202    hardcode_libdir_flag_spec_ld \
9203    hardcode_libdir_separator \
9204    hardcode_automatic \
9205    module_cmds \
9206    module_expsym_cmds \
9207    lt_cv_prog_compiler_c_o \
9208    exclude_expsyms \
9209    include_expsyms; do
9210
9211    case $var in
9212    old_archive_cmds | \
9213    old_archive_from_new_cmds | \
9214    archive_cmds | \
9215    archive_expsym_cmds | \
9216    module_cmds | \
9217    module_expsym_cmds | \
9218    old_archive_from_expsyms_cmds | \
9219    export_symbols_cmds | \
9220    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9221    postinstall_cmds | postuninstall_cmds | \
9222    old_postinstall_cmds | old_postuninstall_cmds | \
9223    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9224      # Double-quote double-evaled strings.
9225      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9226      ;;
9227    *)
9228      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9229      ;;
9230    esac
9231  done
9232
9233  case $lt_echo in
9234  *'\$0 --fallback-echo"')
9235    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9236    ;;
9237  esac
9238
9239cfgfile="${ofile}T"
9240  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9241  $rm -f "$cfgfile"
9242  { echo "$as_me:$LINENO: creating $ofile" >&5
9243echo "$as_me: creating $ofile" >&6;}
9244
9245  cat <<__EOF__ >> "$cfgfile"
9246#! $SHELL
9247
9248# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9249# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9250# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9251#
9252# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9253# Free Software Foundation, Inc.
9254#
9255# This file is part of GNU Libtool:
9256# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9257#
9258# This program is free software; you can redistribute it and/or modify
9259# it under the terms of the GNU General Public License as published by
9260# the Free Software Foundation; either version 2 of the License, or
9261# (at your option) any later version.
9262#
9263# This program is distributed in the hope that it will be useful, but
9264# WITHOUT ANY WARRANTY; without even the implied warranty of
9265# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9266# General Public License for more details.
9267#
9268# You should have received a copy of the GNU General Public License
9269# along with this program; if not, write to the Free Software
9270# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9271#
9272# As a special exception to the GNU General Public License, if you
9273# distribute this file as part of a program that contains a
9274# configuration script generated by Autoconf, you may include it under
9275# the same distribution terms that you use for the rest of that program.
9276
9277# A sed program that does not truncate output.
9278SED=$lt_SED
9279
9280# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9281Xsed="$SED -e 1s/^X//"
9282
9283# The HP-UX ksh and POSIX shell print the target directory to stdout
9284# if CDPATH is set.
9285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9286
9287# The names of the tagged configurations supported by this script.
9288available_tags=
9289
9290# ### BEGIN LIBTOOL CONFIG
9291
9292# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9293
9294# Shell to use when invoking shell scripts.
9295SHELL=$lt_SHELL
9296
9297# Whether or not to build shared libraries.
9298build_libtool_libs=$enable_shared
9299
9300# Whether or not to build static libraries.
9301build_old_libs=$enable_static
9302
9303# Whether or not to add -lc for building shared libraries.
9304build_libtool_need_lc=$archive_cmds_need_lc
9305
9306# Whether or not to disallow shared libs when runtime libs are static
9307allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9308
9309# Whether or not to optimize for fast installation.
9310fast_install=$enable_fast_install
9311
9312# The host system.
9313host_alias=$host_alias
9314host=$host
9315host_os=$host_os
9316
9317# The build system.
9318build_alias=$build_alias
9319build=$build
9320build_os=$build_os
9321
9322# An echo program that does not interpret backslashes.
9323echo=$lt_echo
9324
9325# The archiver.
9326AR=$lt_AR
9327AR_FLAGS=$lt_AR_FLAGS
9328
9329# A C compiler.
9330LTCC=$lt_LTCC
9331
9332# A language-specific compiler.
9333CC=$lt_compiler
9334
9335# Is the compiler the GNU C compiler?
9336with_gcc=$GCC
9337
9338# An ERE matcher.
9339EGREP=$lt_EGREP
9340
9341# The linker used to build libraries.
9342LD=$lt_LD
9343
9344# Whether we need hard or soft links.
9345LN_S=$lt_LN_S
9346
9347# A BSD-compatible nm program.
9348NM=$lt_NM
9349
9350# A symbol stripping program
9351STRIP=$lt_STRIP
9352
9353# Used to examine libraries when file_magic_cmd begins "file"
9354MAGIC_CMD=$MAGIC_CMD
9355
9356# Used on cygwin: DLL creation program.
9357DLLTOOL="$DLLTOOL"
9358
9359# Used on cygwin: object dumper.
9360OBJDUMP="$OBJDUMP"
9361
9362# Used on cygwin: assembler.
9363AS="$AS"
9364
9365# The name of the directory that contains temporary libtool files.
9366objdir=$objdir
9367
9368# How to create reloadable object files.
9369reload_flag=$lt_reload_flag
9370reload_cmds=$lt_reload_cmds
9371
9372# How to pass a linker flag through the compiler.
9373wl=$lt_lt_prog_compiler_wl
9374
9375# Object file suffix (normally "o").
9376objext="$ac_objext"
9377
9378# Old archive suffix (normally "a").
9379libext="$libext"
9380
9381# Shared library suffix (normally ".so").
9382shrext_cmds='$shrext_cmds'
9383
9384# Executable file suffix (normally "").
9385exeext="$exeext"
9386
9387# Additional compiler flags for building library objects.
9388pic_flag=$lt_lt_prog_compiler_pic
9389pic_mode=$pic_mode
9390
9391# What is the maximum length of a command?
9392max_cmd_len=$lt_cv_sys_max_cmd_len
9393
9394# Does compiler simultaneously support -c and -o options?
9395compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9396
9397# Must we lock files when doing compilation?
9398need_locks=$lt_need_locks
9399
9400# Do we need the lib prefix for modules?
9401need_lib_prefix=$need_lib_prefix
9402
9403# Do we need a version for libraries?
9404need_version=$need_version
9405
9406# Whether dlopen is supported.
9407dlopen_support=$enable_dlopen
9408
9409# Whether dlopen of programs is supported.
9410dlopen_self=$enable_dlopen_self
9411
9412# Whether dlopen of statically linked programs is supported.
9413dlopen_self_static=$enable_dlopen_self_static
9414
9415# Compiler flag to prevent dynamic linking.
9416link_static_flag=$lt_lt_prog_compiler_static
9417
9418# Compiler flag to turn off builtin functions.
9419no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9420
9421# Compiler flag to allow reflexive dlopens.
9422export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9423
9424# Compiler flag to generate shared objects directly from archives.
9425whole_archive_flag_spec=$lt_whole_archive_flag_spec
9426
9427# Compiler flag to generate thread-safe objects.
9428thread_safe_flag_spec=$lt_thread_safe_flag_spec
9429
9430# Library versioning type.
9431version_type=$version_type
9432
9433# Format of library name prefix.
9434libname_spec=$lt_libname_spec
9435
9436# List of archive names.  First name is the real one, the rest are links.
9437# The last name is the one that the linker finds with -lNAME.
9438library_names_spec=$lt_library_names_spec
9439
9440# The coded name of the library, if different from the real name.
9441soname_spec=$lt_soname_spec
9442
9443# Commands used to build and install an old-style archive.
9444RANLIB=$lt_RANLIB
9445old_archive_cmds=$lt_old_archive_cmds
9446old_postinstall_cmds=$lt_old_postinstall_cmds
9447old_postuninstall_cmds=$lt_old_postuninstall_cmds
9448
9449# Create an old-style archive from a shared archive.
9450old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9451
9452# Create a temporary old-style archive to link instead of a shared archive.
9453old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9454
9455# Commands used to build and install a shared archive.
9456archive_cmds=$lt_archive_cmds
9457archive_expsym_cmds=$lt_archive_expsym_cmds
9458postinstall_cmds=$lt_postinstall_cmds
9459postuninstall_cmds=$lt_postuninstall_cmds
9460
9461# Commands used to build a loadable module (assumed same as above if empty)
9462module_cmds=$lt_module_cmds
9463module_expsym_cmds=$lt_module_expsym_cmds
9464
9465# Commands to strip libraries.
9466old_striplib=$lt_old_striplib
9467striplib=$lt_striplib
9468
9469# Dependencies to place before the objects being linked to create a
9470# shared library.
9471predep_objects=$lt_predep_objects
9472
9473# Dependencies to place after the objects being linked to create a
9474# shared library.
9475postdep_objects=$lt_postdep_objects
9476
9477# Dependencies to place before the objects being linked to create a
9478# shared library.
9479predeps=$lt_predeps
9480
9481# Dependencies to place after the objects being linked to create a
9482# shared library.
9483postdeps=$lt_postdeps
9484
9485# The library search path used internally by the compiler when linking
9486# a shared library.
9487compiler_lib_search_path=$lt_compiler_lib_search_path
9488
9489# Method to check whether dependent libraries are shared objects.
9490deplibs_check_method=$lt_deplibs_check_method
9491
9492# Command to use when deplibs_check_method == file_magic.
9493file_magic_cmd=$lt_file_magic_cmd
9494
9495# Flag that allows shared libraries with undefined symbols to be built.
9496allow_undefined_flag=$lt_allow_undefined_flag
9497
9498# Flag that forces no undefined symbols.
9499no_undefined_flag=$lt_no_undefined_flag
9500
9501# Commands used to finish a libtool library installation in a directory.
9502finish_cmds=$lt_finish_cmds
9503
9504# Same as above, but a single script fragment to be evaled but not shown.
9505finish_eval=$lt_finish_eval
9506
9507# Take the output of nm and produce a listing of raw symbols and C names.
9508global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9509
9510# Transform the output of nm in a proper C declaration
9511global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9512
9513# Transform the output of nm in a C name address pair
9514global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9515
9516# This is the shared library runtime path variable.
9517runpath_var=$runpath_var
9518
9519# This is the shared library path variable.
9520shlibpath_var=$shlibpath_var
9521
9522# Is shlibpath searched before the hard-coded library search path?
9523shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9524
9525# How to hardcode a shared library path into an executable.
9526hardcode_action=$hardcode_action
9527
9528# Whether we should hardcode library paths into libraries.
9529hardcode_into_libs=$hardcode_into_libs
9530
9531# Flag to hardcode \$libdir into a binary during linking.
9532# This must work even if \$libdir does not exist.
9533hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9534
9535# If ld is used when linking, flag to hardcode \$libdir into
9536# a binary during linking. This must work even if \$libdir does
9537# not exist.
9538hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9539
9540# Whether we need a single -rpath flag with a separated argument.
9541hardcode_libdir_separator=$lt_hardcode_libdir_separator
9542
9543# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9544# resulting binary.
9545hardcode_direct=$hardcode_direct
9546
9547# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9548# resulting binary.
9549hardcode_minus_L=$hardcode_minus_L
9550
9551# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9552# the resulting binary.
9553hardcode_shlibpath_var=$hardcode_shlibpath_var
9554
9555# Set to yes if building a shared library automatically hardcodes DIR into the library
9556# and all subsequent libraries and executables linked against it.
9557hardcode_automatic=$hardcode_automatic
9558
9559# Variables whose values should be saved in libtool wrapper scripts and
9560# restored at relink time.
9561variables_saved_for_relink="$variables_saved_for_relink"
9562
9563# Whether libtool must link a program against all its dependency libraries.
9564link_all_deplibs=$link_all_deplibs
9565
9566# Compile-time system search path for libraries
9567sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9568
9569# Run-time system search path for libraries
9570sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9571
9572# Fix the shell variable \$srcfile for the compiler.
9573fix_srcfile_path="$fix_srcfile_path"
9574
9575# Set to yes if exported symbols are required.
9576always_export_symbols=$always_export_symbols
9577
9578# The commands to list exported symbols.
9579export_symbols_cmds=$lt_export_symbols_cmds
9580
9581# The commands to extract the exported symbol list from a shared archive.
9582extract_expsyms_cmds=$lt_extract_expsyms_cmds
9583
9584# Symbols that should not be listed in the preloaded symbols.
9585exclude_expsyms=$lt_exclude_expsyms
9586
9587# Symbols that must always be exported.
9588include_expsyms=$lt_include_expsyms
9589
9590# ### END LIBTOOL CONFIG
9591
9592__EOF__
9593
9594
9595  case $host_os in
9596  aix3*)
9597    cat <<\EOF >> "$cfgfile"
9598
9599# AIX sometimes has problems with the GCC collect2 program.  For some
9600# reason, if we set the COLLECT_NAMES environment variable, the problems
9601# vanish in a puff of smoke.
9602if test "X${COLLECT_NAMES+set}" != Xset; then
9603  COLLECT_NAMES=
9604  export COLLECT_NAMES
9605fi
9606EOF
9607    ;;
9608  esac
9609
9610  # We use sed instead of cat because bash on DJGPP gets confused if
9611  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9612  # text mode, it properly converts lines to CR/LF.  This bash problem
9613  # is reportedly fixed, but why not run on old versions too?
9614  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9615
9616  mv -f "$cfgfile" "$ofile" || \
9617    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9618  chmod +x "$ofile"
9619
9620else
9621  # If there is no Makefile yet, we rely on a make rule to execute
9622  # `config.status --recheck' to rerun these tests and create the
9623  # libtool script then.
9624  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9625  if test -f "$ltmain_in"; then
9626    test -f Makefile && make "$ltmain"
9627  fi
9628fi
9629
9630
9631ac_ext=c
9632ac_cpp='$CPP $CPPFLAGS'
9633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635ac_compiler_gnu=$ac_cv_c_compiler_gnu
9636
9637CC="$lt_save_CC"
9638
9639
9640# Check whether --with-tags or --without-tags was given.
9641if test "${with_tags+set}" = set; then
9642  withval="$with_tags"
9643  tagnames="$withval"
9644fi;
9645
9646if test -f "$ltmain" && test -n "$tagnames"; then
9647  if test ! -f "${ofile}"; then
9648    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9649echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9650  fi
9651
9652  if test -z "$LTCC"; then
9653    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9654    if test -z "$LTCC"; then
9655      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9656echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9657    else
9658      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9659echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9660    fi
9661  fi
9662
9663  # Extract list of available tagged configurations in $ofile.
9664  # Note that this assumes the entire list is on one line.
9665  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9666
9667  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9668  for tagname in $tagnames; do
9669    IFS="$lt_save_ifs"
9670    # Check whether tagname contains only valid characters
9671    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9672    "") ;;
9673    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9674echo "$as_me: error: invalid tag name: $tagname" >&2;}
9675   { (exit 1); exit 1; }; }
9676	;;
9677    esac
9678
9679    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9680    then
9681      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9682echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9683   { (exit 1); exit 1; }; }
9684    fi
9685
9686    # Update the list of available tags.
9687    if test -n "$tagname"; then
9688      echo appending configuration tag \"$tagname\" to $ofile
9689
9690      case $tagname in
9691      CXX)
9692	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9693	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9694	    (test "X$CXX" != "Xg++"))) ; then
9695	  ac_ext=cc
9696ac_cpp='$CXXCPP $CPPFLAGS'
9697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9700
9701
9702
9703
9704archive_cmds_need_lc_CXX=no
9705allow_undefined_flag_CXX=
9706always_export_symbols_CXX=no
9707archive_expsym_cmds_CXX=
9708export_dynamic_flag_spec_CXX=
9709hardcode_direct_CXX=no
9710hardcode_libdir_flag_spec_CXX=
9711hardcode_libdir_flag_spec_ld_CXX=
9712hardcode_libdir_separator_CXX=
9713hardcode_minus_L_CXX=no
9714hardcode_automatic_CXX=no
9715module_cmds_CXX=
9716module_expsym_cmds_CXX=
9717link_all_deplibs_CXX=unknown
9718old_archive_cmds_CXX=$old_archive_cmds
9719no_undefined_flag_CXX=
9720whole_archive_flag_spec_CXX=
9721enable_shared_with_static_runtimes_CXX=no
9722
9723# Dependencies to place before and after the object being linked:
9724predep_objects_CXX=
9725postdep_objects_CXX=
9726predeps_CXX=
9727postdeps_CXX=
9728compiler_lib_search_path_CXX=
9729
9730# Source file extension for C++ test sources.
9731ac_ext=cpp
9732
9733# Object file extension for compiled C++ test sources.
9734objext=o
9735objext_CXX=$objext
9736
9737# Code to be used in simple compile tests
9738lt_simple_compile_test_code="int some_variable = 0;\n"
9739
9740# Code to be used in simple link tests
9741lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9742
9743# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9744
9745# If no C compiler was specified, use CC.
9746LTCC=${LTCC-"$CC"}
9747
9748# Allow CC to be a program name with arguments.
9749compiler=$CC
9750
9751
9752# save warnings/boilerplate of simple test code
9753ac_outfile=conftest.$ac_objext
9754printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9755eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9756_lt_compiler_boilerplate=`cat conftest.err`
9757$rm conftest*
9758
9759ac_outfile=conftest.$ac_objext
9760printf "$lt_simple_link_test_code" >conftest.$ac_ext
9761eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9762_lt_linker_boilerplate=`cat conftest.err`
9763$rm conftest*
9764
9765
9766# Allow CC to be a program name with arguments.
9767lt_save_CC=$CC
9768lt_save_LD=$LD
9769lt_save_GCC=$GCC
9770GCC=$GXX
9771lt_save_with_gnu_ld=$with_gnu_ld
9772lt_save_path_LD=$lt_cv_path_LD
9773if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9774  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9775else
9776  unset lt_cv_prog_gnu_ld
9777fi
9778if test -n "${lt_cv_path_LDCXX+set}"; then
9779  lt_cv_path_LD=$lt_cv_path_LDCXX
9780else
9781  unset lt_cv_path_LD
9782fi
9783test -z "${LDCXX+set}" || LD=$LDCXX
9784CC=${CXX-"c++"}
9785compiler=$CC
9786compiler_CXX=$CC
9787for cc_temp in $compiler""; do
9788  case $cc_temp in
9789    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9790    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9791    \-*) ;;
9792    *) break;;
9793  esac
9794done
9795cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9796
9797
9798# We don't want -fno-exception wen compiling C++ code, so set the
9799# no_builtin_flag separately
9800if test "$GXX" = yes; then
9801  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9802else
9803  lt_prog_compiler_no_builtin_flag_CXX=
9804fi
9805
9806if test "$GXX" = yes; then
9807  # Set up default GNU C++ configuration
9808
9809
9810# Check whether --with-gnu-ld or --without-gnu-ld was given.
9811if test "${with_gnu_ld+set}" = set; then
9812  withval="$with_gnu_ld"
9813  test "$withval" = no || with_gnu_ld=yes
9814else
9815  with_gnu_ld=no
9816fi;
9817ac_prog=ld
9818if test "$GCC" = yes; then
9819  # Check if gcc -print-prog-name=ld gives a path.
9820  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9821echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9822  case $host in
9823  *-*-mingw*)
9824    # gcc leaves a trailing carriage return which upsets mingw
9825    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9826  *)
9827    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9828  esac
9829  case $ac_prog in
9830    # Accept absolute paths.
9831    [\\/]* | ?:[\\/]*)
9832      re_direlt='/[^/][^/]*/\.\./'
9833      # Canonicalize the pathname of ld
9834      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9835      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9836	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9837      done
9838      test -z "$LD" && LD="$ac_prog"
9839      ;;
9840  "")
9841    # If it fails, then pretend we aren't using GCC.
9842    ac_prog=ld
9843    ;;
9844  *)
9845    # If it is relative, then search for the first ld in PATH.
9846    with_gnu_ld=unknown
9847    ;;
9848  esac
9849elif test "$with_gnu_ld" = yes; then
9850  echo "$as_me:$LINENO: checking for GNU ld" >&5
9851echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9852else
9853  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9854echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9855fi
9856if test "${lt_cv_path_LD+set}" = set; then
9857  echo $ECHO_N "(cached) $ECHO_C" >&6
9858else
9859  if test -z "$LD"; then
9860  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9861  for ac_dir in $PATH; do
9862    IFS="$lt_save_ifs"
9863    test -z "$ac_dir" && ac_dir=.
9864    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9865      lt_cv_path_LD="$ac_dir/$ac_prog"
9866      # Check to see if the program is GNU ld.  I'd rather use --version,
9867      # but apparently some variants of GNU ld only accept -v.
9868      # Break only if it was the GNU/non-GNU ld that we prefer.
9869      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9870      *GNU* | *'with BFD'*)
9871	test "$with_gnu_ld" != no && break
9872	;;
9873      *)
9874	test "$with_gnu_ld" != yes && break
9875	;;
9876      esac
9877    fi
9878  done
9879  IFS="$lt_save_ifs"
9880else
9881  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9882fi
9883fi
9884
9885LD="$lt_cv_path_LD"
9886if test -n "$LD"; then
9887  echo "$as_me:$LINENO: result: $LD" >&5
9888echo "${ECHO_T}$LD" >&6
9889else
9890  echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892fi
9893test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9894echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9895   { (exit 1); exit 1; }; }
9896echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9897echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9898if test "${lt_cv_prog_gnu_ld+set}" = set; then
9899  echo $ECHO_N "(cached) $ECHO_C" >&6
9900else
9901  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9902case `$LD -v 2>&1 </dev/null` in
9903*GNU* | *'with BFD'*)
9904  lt_cv_prog_gnu_ld=yes
9905  ;;
9906*)
9907  lt_cv_prog_gnu_ld=no
9908  ;;
9909esac
9910fi
9911echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9912echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9913with_gnu_ld=$lt_cv_prog_gnu_ld
9914
9915
9916
9917  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9918  # archiving commands below assume that GNU ld is being used.
9919  if test "$with_gnu_ld" = yes; then
9920    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9921    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'
9922
9923    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9924    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9925
9926    # If archive_cmds runs LD, not CC, wlarc should be empty
9927    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9928    #     investigate it a little bit more. (MM)
9929    wlarc='${wl}'
9930
9931    # ancient GNU ld didn't support --whole-archive et. al.
9932    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9933	grep 'no-whole-archive' > /dev/null; then
9934      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9935    else
9936      whole_archive_flag_spec_CXX=
9937    fi
9938  else
9939    with_gnu_ld=no
9940    wlarc=
9941
9942    # A generic and very simple default shared library creation
9943    # command for GNU C++ for the case where it uses the native
9944    # linker, instead of GNU ld.  If possible, this setting should
9945    # overridden to take advantage of the native linker features on
9946    # the platform it is being used on.
9947    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9948  fi
9949
9950  # Commands to make compiler produce verbose output that lists
9951  # what "hidden" libraries, object files and flags are used when
9952  # linking a shared library.
9953  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9954
9955else
9956  GXX=no
9957  with_gnu_ld=no
9958  wlarc=
9959fi
9960
9961# PORTME: fill in a description of your system's C++ link characteristics
9962echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9963echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9964ld_shlibs_CXX=yes
9965case $host_os in
9966  aix3*)
9967    # FIXME: insert proper C++ library support
9968    ld_shlibs_CXX=no
9969    ;;
9970  aix4* | aix5*)
9971    if test "$host_cpu" = ia64; then
9972      # On IA64, the linker does run time linking by default, so we don't
9973      # have to do anything special.
9974      aix_use_runtimelinking=no
9975      exp_sym_flag='-Bexport'
9976      no_entry_flag=""
9977    else
9978      aix_use_runtimelinking=no
9979
9980      # Test if we are trying to use run time linking or normal
9981      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9982      # need to do runtime linking.
9983      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9984	for ld_flag in $LDFLAGS; do
9985	  case $ld_flag in
9986	  *-brtl*)
9987	    aix_use_runtimelinking=yes
9988	    break
9989	    ;;
9990	  esac
9991	done
9992      esac
9993
9994      exp_sym_flag='-bexport'
9995      no_entry_flag='-bnoentry'
9996    fi
9997
9998    # When large executables or shared objects are built, AIX ld can
9999    # have problems creating the table of contents.  If linking a library
10000    # or program results in "error TOC overflow" add -mminimal-toc to
10001    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10002    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10003
10004    archive_cmds_CXX=''
10005    hardcode_direct_CXX=yes
10006    hardcode_libdir_separator_CXX=':'
10007    link_all_deplibs_CXX=yes
10008
10009    if test "$GXX" = yes; then
10010      case $host_os in aix4.[012]|aix4.[012].*)
10011      # We only want to do this on AIX 4.2 and lower, the check
10012      # below for broken collect2 doesn't work under 4.3+
10013	collect2name=`${CC} -print-prog-name=collect2`
10014	if test -f "$collect2name" && \
10015	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10016	then
10017	  # We have reworked collect2
10018	  hardcode_direct_CXX=yes
10019	else
10020	  # We have old collect2
10021	  hardcode_direct_CXX=unsupported
10022	  # It fails to find uninstalled libraries when the uninstalled
10023	  # path is not listed in the libpath.  Setting hardcode_minus_L
10024	  # to unsupported forces relinking
10025	  hardcode_minus_L_CXX=yes
10026	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10027	  hardcode_libdir_separator_CXX=
10028	fi
10029      esac
10030      shared_flag='-shared'
10031      if test "$aix_use_runtimelinking" = yes; then
10032	shared_flag="$shared_flag "'${wl}-G'
10033      fi
10034    else
10035      # not using gcc
10036      if test "$host_cpu" = ia64; then
10037	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10038	# chokes on -Wl,-G. The following line is correct:
10039	shared_flag='-G'
10040      else
10041	if test "$aix_use_runtimelinking" = yes; then
10042	  shared_flag='${wl}-G'
10043	else
10044	  shared_flag='${wl}-bM:SRE'
10045	fi
10046      fi
10047    fi
10048
10049    # It seems that -bexpall does not export symbols beginning with
10050    # underscore (_), so it is better to generate a list of symbols to export.
10051    always_export_symbols_CXX=yes
10052    if test "$aix_use_runtimelinking" = yes; then
10053      # Warning - without using the other runtime loading flags (-brtl),
10054      # -berok will link without error, but may produce a broken library.
10055      allow_undefined_flag_CXX='-berok'
10056      # Determine the default libpath from the value encoded in an empty executable.
10057      cat >conftest.$ac_ext <<_ACEOF
10058/* confdefs.h.  */
10059_ACEOF
10060cat confdefs.h >>conftest.$ac_ext
10061cat >>conftest.$ac_ext <<_ACEOF
10062/* end confdefs.h.  */
10063
10064int
10065main ()
10066{
10067
10068  ;
10069  return 0;
10070}
10071_ACEOF
10072rm -f conftest.$ac_objext conftest$ac_exeext
10073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074  (eval $ac_link) 2>conftest.er1
10075  ac_status=$?
10076  grep -v '^ *+' conftest.er1 >conftest.err
10077  rm -f conftest.er1
10078  cat conftest.err >&5
10079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080  (exit $ac_status); } &&
10081	 { ac_try='test -z "$ac_cxx_werror_flag"
10082			 || test ! -s conftest.err'
10083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084  (eval $ac_try) 2>&5
10085  ac_status=$?
10086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087  (exit $ac_status); }; } &&
10088	 { ac_try='test -s conftest$ac_exeext'
10089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090  (eval $ac_try) 2>&5
10091  ac_status=$?
10092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093  (exit $ac_status); }; }; then
10094
10095aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10096}'`
10097# Check for a 64-bit object if we didn't find anything.
10098if 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; }
10099}'`; fi
10100else
10101  echo "$as_me: failed program was:" >&5
10102sed 's/^/| /' conftest.$ac_ext >&5
10103
10104fi
10105rm -f conftest.err conftest.$ac_objext \
10106      conftest$ac_exeext conftest.$ac_ext
10107if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10108
10109      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10110
10111      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"
10112     else
10113      if test "$host_cpu" = ia64; then
10114	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10115	allow_undefined_flag_CXX="-z nodefs"
10116	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"
10117      else
10118	# Determine the default libpath from the value encoded in an empty executable.
10119	cat >conftest.$ac_ext <<_ACEOF
10120/* confdefs.h.  */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h.  */
10125
10126int
10127main ()
10128{
10129
10130  ;
10131  return 0;
10132}
10133_ACEOF
10134rm -f conftest.$ac_objext conftest$ac_exeext
10135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136  (eval $ac_link) 2>conftest.er1
10137  ac_status=$?
10138  grep -v '^ *+' conftest.er1 >conftest.err
10139  rm -f conftest.er1
10140  cat conftest.err >&5
10141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142  (exit $ac_status); } &&
10143	 { ac_try='test -z "$ac_cxx_werror_flag"
10144			 || test ! -s conftest.err'
10145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146  (eval $ac_try) 2>&5
10147  ac_status=$?
10148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149  (exit $ac_status); }; } &&
10150	 { ac_try='test -s conftest$ac_exeext'
10151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152  (eval $ac_try) 2>&5
10153  ac_status=$?
10154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155  (exit $ac_status); }; }; then
10156
10157aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10158}'`
10159# Check for a 64-bit object if we didn't find anything.
10160if 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; }
10161}'`; fi
10162else
10163  echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
10166fi
10167rm -f conftest.err conftest.$ac_objext \
10168      conftest$ac_exeext conftest.$ac_ext
10169if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10170
10171	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10172	# Warning - without using the other run time loading flags,
10173	# -berok will link without error, but may produce a broken library.
10174	no_undefined_flag_CXX=' ${wl}-bernotok'
10175	allow_undefined_flag_CXX=' ${wl}-berok'
10176	# -bexpall does not export symbols beginning with underscore (_)
10177	always_export_symbols_CXX=yes
10178	# Exported symbols can be pulled into shared objects from archives
10179	whole_archive_flag_spec_CXX=' '
10180	archive_cmds_need_lc_CXX=yes
10181	# This is similar to how AIX traditionally builds its shared libraries.
10182	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'
10183      fi
10184    fi
10185    ;;
10186  chorus*)
10187    case $cc_basename in
10188      *)
10189	# FIXME: insert proper C++ library support
10190	ld_shlibs_CXX=no
10191	;;
10192    esac
10193    ;;
10194
10195
10196  cygwin* | mingw* | pw32*)
10197    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10198    # as there is no search path for DLLs.
10199    hardcode_libdir_flag_spec_CXX='-L$libdir'
10200    allow_undefined_flag_CXX=unsupported
10201    always_export_symbols_CXX=no
10202    enable_shared_with_static_runtimes_CXX=yes
10203
10204    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10205      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'
10206      # If the export-symbols file already is a .def file (1st line
10207      # is EXPORTS), use it as is; otherwise, prepend...
10208      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10209	cp $export_symbols $output_objdir/$soname.def;
10210      else
10211	echo EXPORTS > $output_objdir/$soname.def;
10212	cat $export_symbols >> $output_objdir/$soname.def;
10213      fi~
10214      $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'
10215    else
10216      ld_shlibs_CXX=no
10217    fi
10218  ;;
10219      darwin* | rhapsody*)
10220        case $host_os in
10221        rhapsody* | darwin1.[012])
10222         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10223         ;;
10224       *) # Darwin 1.3 on
10225         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10226           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10227         else
10228           case ${MACOSX_DEPLOYMENT_TARGET} in
10229             10.[012])
10230               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10231               ;;
10232             10.*)
10233               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10234               ;;
10235           esac
10236         fi
10237         ;;
10238        esac
10239      archive_cmds_need_lc_CXX=no
10240      hardcode_direct_CXX=no
10241      hardcode_automatic_CXX=yes
10242      hardcode_shlibpath_var_CXX=unsupported
10243      whole_archive_flag_spec_CXX=''
10244      link_all_deplibs_CXX=yes
10245
10246    if test "$GXX" = yes ; then
10247      lt_int_apple_cc_single_mod=no
10248      output_verbose_link_cmd='echo'
10249      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10250       lt_int_apple_cc_single_mod=yes
10251      fi
10252      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10253       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10254      else
10255          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10256        fi
10257        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10258        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10259          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10260            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}'
10261          else
10262            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10263          fi
10264            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}'
10265      else
10266      case $cc_basename in
10267        xlc*)
10268         output_verbose_link_cmd='echo'
10269          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10270          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10271          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10272          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10273          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}'
10274          ;;
10275       *)
10276         ld_shlibs_CXX=no
10277          ;;
10278      esac
10279      fi
10280        ;;
10281
10282  dgux*)
10283    case $cc_basename in
10284      ec++*)
10285	# FIXME: insert proper C++ library support
10286	ld_shlibs_CXX=no
10287	;;
10288      ghcx*)
10289	# Green Hills C++ Compiler
10290	# FIXME: insert proper C++ library support
10291	ld_shlibs_CXX=no
10292	;;
10293      *)
10294	# FIXME: insert proper C++ library support
10295	ld_shlibs_CXX=no
10296	;;
10297    esac
10298    ;;
10299  freebsd[12]*)
10300    # C++ shared libraries reported to be fairly broken before switch to ELF
10301    ld_shlibs_CXX=no
10302    ;;
10303  freebsd-elf*)
10304    archive_cmds_need_lc_CXX=no
10305    ;;
10306  freebsd* | kfreebsd*-gnu | dragonfly*)
10307    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10308    # conventions
10309    ld_shlibs_CXX=yes
10310    ;;
10311  gnu*)
10312    ;;
10313  hpux9*)
10314    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10315    hardcode_libdir_separator_CXX=:
10316    export_dynamic_flag_spec_CXX='${wl}-E'
10317    hardcode_direct_CXX=yes
10318    hardcode_minus_L_CXX=yes # Not in the search PATH,
10319				# but as the default
10320				# location of the library.
10321
10322    case $cc_basename in
10323    CC*)
10324      # FIXME: insert proper C++ library support
10325      ld_shlibs_CXX=no
10326      ;;
10327    aCC*)
10328      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'
10329      # Commands to make compiler produce verbose output that lists
10330      # what "hidden" libraries, object files and flags are used when
10331      # linking a shared library.
10332      #
10333      # There doesn't appear to be a way to prevent this compiler from
10334      # explicitly linking system object files so we need to strip them
10335      # from the output so that they don't get included in the library
10336      # dependencies.
10337      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'
10338      ;;
10339    *)
10340      if test "$GXX" = yes; then
10341        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'
10342      else
10343        # FIXME: insert proper C++ library support
10344        ld_shlibs_CXX=no
10345      fi
10346      ;;
10347    esac
10348    ;;
10349  hpux10*|hpux11*)
10350    if test $with_gnu_ld = no; then
10351      case $host_cpu in
10352      hppa*64*)
10353	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10354	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10355	hardcode_libdir_separator_CXX=:
10356        ;;
10357      ia64*)
10358	hardcode_libdir_flag_spec_CXX='-L$libdir'
10359        ;;
10360      *)
10361	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10362	hardcode_libdir_separator_CXX=:
10363	export_dynamic_flag_spec_CXX='${wl}-E'
10364        ;;
10365      esac
10366    fi
10367    case $host_cpu in
10368    hppa*64*)
10369      hardcode_direct_CXX=no
10370      hardcode_shlibpath_var_CXX=no
10371      ;;
10372    ia64*)
10373      hardcode_direct_CXX=no
10374      hardcode_shlibpath_var_CXX=no
10375      hardcode_minus_L_CXX=yes # Not in the search PATH,
10376					      # but as the default
10377					      # location of the library.
10378      ;;
10379    *)
10380      hardcode_direct_CXX=yes
10381      hardcode_minus_L_CXX=yes # Not in the search PATH,
10382					      # but as the default
10383					      # location of the library.
10384      ;;
10385    esac
10386
10387    case $cc_basename in
10388      CC*)
10389	# FIXME: insert proper C++ library support
10390	ld_shlibs_CXX=no
10391	;;
10392      aCC*)
10393	case $host_cpu in
10394	hppa*64*|ia64*)
10395	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10396	  ;;
10397	*)
10398	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10399	  ;;
10400	esac
10401	# Commands to make compiler produce verbose output that lists
10402	# what "hidden" libraries, object files and flags are used when
10403	# linking a shared library.
10404	#
10405	# There doesn't appear to be a way to prevent this compiler from
10406	# explicitly linking system object files so we need to strip them
10407	# from the output so that they don't get included in the library
10408	# dependencies.
10409	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'
10410	;;
10411      *)
10412	if test "$GXX" = yes; then
10413	  if test $with_gnu_ld = no; then
10414	    case $host_cpu in
10415	    ia64*|hppa*64*)
10416	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10417	      ;;
10418	    *)
10419	      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'
10420	      ;;
10421	    esac
10422	  fi
10423	else
10424	  # FIXME: insert proper C++ library support
10425	  ld_shlibs_CXX=no
10426	fi
10427	;;
10428    esac
10429    ;;
10430  irix5* | irix6*)
10431    case $cc_basename in
10432      CC*)
10433	# SGI C++
10434	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10435
10436	# Archives containing C++ object files must be created using
10437	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10438	# necessary to make sure instantiated templates are included
10439	# in the archive.
10440	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10441	;;
10442      *)
10443	if test "$GXX" = yes; then
10444	  if test "$with_gnu_ld" = no; then
10445	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10446	  else
10447	    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'
10448	  fi
10449	fi
10450	link_all_deplibs_CXX=yes
10451	;;
10452    esac
10453    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10454    hardcode_libdir_separator_CXX=:
10455    ;;
10456  linux*)
10457    case $cc_basename in
10458      KCC*)
10459	# Kuck and Associates, Inc. (KAI) C++ Compiler
10460
10461	# KCC will only create a shared library if the output file
10462	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10463	# to its proper name (with version) after linking.
10464	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'
10465	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'
10466	# Commands to make compiler produce verbose output that lists
10467	# what "hidden" libraries, object files and flags are used when
10468	# linking a shared library.
10469	#
10470	# There doesn't appear to be a way to prevent this compiler from
10471	# explicitly linking system object files so we need to strip them
10472	# from the output so that they don't get included in the library
10473	# dependencies.
10474	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'
10475
10476	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10477	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10478
10479	# Archives containing C++ object files must be created using
10480	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10481	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10482	;;
10483      icpc*)
10484	# Intel C++
10485	with_gnu_ld=yes
10486	# version 8.0 and above of icpc choke on multiply defined symbols
10487	# if we add $predep_objects and $postdep_objects, however 7.1 and
10488	# earlier do not add the objects themselves.
10489	case `$CC -V 2>&1` in
10490	*"Version 7."*)
10491  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10492  	  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'
10493	  ;;
10494	*)  # Version 8.0 or newer
10495	  tmp_idyn=
10496	  case $host_cpu in
10497	    ia64*) tmp_idyn=' -i_dynamic';;
10498	  esac
10499  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10500	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10501	  ;;
10502	esac
10503	archive_cmds_need_lc_CXX=no
10504	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10505	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10506	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10507	;;
10508      pgCC*)
10509        # Portland Group C++ compiler
10510	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10511  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10512
10513	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10514	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10515	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10516        ;;
10517      cxx*)
10518	# Compaq C++
10519	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10520	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'
10521
10522	runpath_var=LD_RUN_PATH
10523	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10524	hardcode_libdir_separator_CXX=:
10525
10526	# Commands to make compiler produce verbose output that lists
10527	# what "hidden" libraries, object files and flags are used when
10528	# linking a shared library.
10529	#
10530	# There doesn't appear to be a way to prevent this compiler from
10531	# explicitly linking system object files so we need to strip them
10532	# from the output so that they don't get included in the library
10533	# dependencies.
10534	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'
10535	;;
10536    esac
10537    ;;
10538  lynxos*)
10539    # FIXME: insert proper C++ library support
10540    ld_shlibs_CXX=no
10541    ;;
10542  m88k*)
10543    # FIXME: insert proper C++ library support
10544    ld_shlibs_CXX=no
10545    ;;
10546  mvs*)
10547    case $cc_basename in
10548      cxx*)
10549	# FIXME: insert proper C++ library support
10550	ld_shlibs_CXX=no
10551	;;
10552      *)
10553	# FIXME: insert proper C++ library support
10554	ld_shlibs_CXX=no
10555	;;
10556    esac
10557    ;;
10558  netbsd*)
10559    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10560      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10561      wlarc=
10562      hardcode_libdir_flag_spec_CXX='-R$libdir'
10563      hardcode_direct_CXX=yes
10564      hardcode_shlibpath_var_CXX=no
10565    fi
10566    # Workaround some broken pre-1.5 toolchains
10567    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10568    ;;
10569  openbsd2*)
10570    # C++ shared libraries are fairly broken
10571    ld_shlibs_CXX=no
10572    ;;
10573  openbsd*)
10574    hardcode_direct_CXX=yes
10575    hardcode_shlibpath_var_CXX=no
10576    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10577    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10578    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10579      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10580      export_dynamic_flag_spec_CXX='${wl}-E'
10581      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10582    fi
10583    output_verbose_link_cmd='echo'
10584    ;;
10585  osf3*)
10586    case $cc_basename in
10587      KCC*)
10588	# Kuck and Associates, Inc. (KAI) C++ Compiler
10589
10590	# KCC will only create a shared library if the output file
10591	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10592	# to its proper name (with version) after linking.
10593	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'
10594
10595	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10596	hardcode_libdir_separator_CXX=:
10597
10598	# Archives containing C++ object files must be created using
10599	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10600	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10601
10602	;;
10603      RCC*)
10604	# Rational C++ 2.4.1
10605	# FIXME: insert proper C++ library support
10606	ld_shlibs_CXX=no
10607	;;
10608      cxx*)
10609	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10610	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10611
10612	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10613	hardcode_libdir_separator_CXX=:
10614
10615	# Commands to make compiler produce verbose output that lists
10616	# what "hidden" libraries, object files and flags are used when
10617	# linking a shared library.
10618	#
10619	# There doesn't appear to be a way to prevent this compiler from
10620	# explicitly linking system object files so we need to strip them
10621	# from the output so that they don't get included in the library
10622	# dependencies.
10623	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'
10624	;;
10625      *)
10626	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10627	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10628	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10629
10630	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10631	  hardcode_libdir_separator_CXX=:
10632
10633	  # Commands to make compiler produce verbose output that lists
10634	  # what "hidden" libraries, object files and flags are used when
10635	  # linking a shared library.
10636	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10637
10638	else
10639	  # FIXME: insert proper C++ library support
10640	  ld_shlibs_CXX=no
10641	fi
10642	;;
10643    esac
10644    ;;
10645  osf4* | osf5*)
10646    case $cc_basename in
10647      KCC*)
10648	# Kuck and Associates, Inc. (KAI) C++ Compiler
10649
10650	# KCC will only create a shared library if the output file
10651	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10652	# to its proper name (with version) after linking.
10653	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'
10654
10655	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10656	hardcode_libdir_separator_CXX=:
10657
10658	# Archives containing C++ object files must be created using
10659	# the KAI C++ compiler.
10660	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10661	;;
10662      RCC*)
10663	# Rational C++ 2.4.1
10664	# FIXME: insert proper C++ library support
10665	ld_shlibs_CXX=no
10666	;;
10667      cxx*)
10668	allow_undefined_flag_CXX=' -expect_unresolved \*'
10669	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10670	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10671	  echo "-hidden">> $lib.exp~
10672	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10673	  $rm $lib.exp'
10674
10675	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10676	hardcode_libdir_separator_CXX=:
10677
10678	# Commands to make compiler produce verbose output that lists
10679	# what "hidden" libraries, object files and flags are used when
10680	# linking a shared library.
10681	#
10682	# There doesn't appear to be a way to prevent this compiler from
10683	# explicitly linking system object files so we need to strip them
10684	# from the output so that they don't get included in the library
10685	# dependencies.
10686	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'
10687	;;
10688      *)
10689	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10690	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10691	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10692
10693	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10694	  hardcode_libdir_separator_CXX=:
10695
10696	  # Commands to make compiler produce verbose output that lists
10697	  # what "hidden" libraries, object files and flags are used when
10698	  # linking a shared library.
10699	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10700
10701	else
10702	  # FIXME: insert proper C++ library support
10703	  ld_shlibs_CXX=no
10704	fi
10705	;;
10706    esac
10707    ;;
10708  psos*)
10709    # FIXME: insert proper C++ library support
10710    ld_shlibs_CXX=no
10711    ;;
10712  sco*)
10713    archive_cmds_need_lc_CXX=no
10714    case $cc_basename in
10715      CC*)
10716	# FIXME: insert proper C++ library support
10717	ld_shlibs_CXX=no
10718	;;
10719      *)
10720	# FIXME: insert proper C++ library support
10721	ld_shlibs_CXX=no
10722	;;
10723    esac
10724    ;;
10725  sunos4*)
10726    case $cc_basename in
10727      CC*)
10728	# Sun C++ 4.x
10729	# FIXME: insert proper C++ library support
10730	ld_shlibs_CXX=no
10731	;;
10732      lcc*)
10733	# Lucid
10734	# FIXME: insert proper C++ library support
10735	ld_shlibs_CXX=no
10736	;;
10737      *)
10738	# FIXME: insert proper C++ library support
10739	ld_shlibs_CXX=no
10740	;;
10741    esac
10742    ;;
10743  solaris*)
10744    case $cc_basename in
10745      CC*)
10746	# Sun C++ 4.2, 5.x and Centerline C++
10747        archive_cmds_need_lc_CXX=yes
10748	no_undefined_flag_CXX=' -zdefs'
10749	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10750	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10751	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10752
10753	hardcode_libdir_flag_spec_CXX='-R$libdir'
10754	hardcode_shlibpath_var_CXX=no
10755	case $host_os in
10756	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10757	  *)
10758	    # The C++ compiler is used as linker so we must use $wl
10759	    # flag to pass the commands to the underlying system
10760	    # linker. We must also pass each convience library through
10761	    # to the system linker between allextract/defaultextract.
10762	    # The C++ compiler will combine linker options so we
10763	    # cannot just pass the convience library names through
10764	    # without $wl.
10765	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10766	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10767	    ;;
10768	esac
10769	link_all_deplibs_CXX=yes
10770
10771	output_verbose_link_cmd='echo'
10772
10773	# Archives containing C++ object files must be created using
10774	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10775	# necessary to make sure instantiated templates are included
10776	# in the archive.
10777	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10778	;;
10779      gcx*)
10780	# Green Hills C++ Compiler
10781	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10782
10783	# The C++ compiler must be used to create the archive.
10784	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10785	;;
10786      *)
10787	# GNU C++ compiler with Solaris linker
10788	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10789	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10790	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10791	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10792	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10793		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10794
10795	    # Commands to make compiler produce verbose output that lists
10796	    # what "hidden" libraries, object files and flags are used when
10797	    # linking a shared library.
10798	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10799	  else
10800	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10801	    # platform.
10802	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10803	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10804		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10805
10806	    # Commands to make compiler produce verbose output that lists
10807	    # what "hidden" libraries, object files and flags are used when
10808	    # linking a shared library.
10809	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10810	  fi
10811
10812	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10813	fi
10814	;;
10815    esac
10816    ;;
10817  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10818    archive_cmds_need_lc_CXX=no
10819    ;;
10820  tandem*)
10821    case $cc_basename in
10822      NCC*)
10823	# NonStop-UX NCC 3.20
10824	# FIXME: insert proper C++ library support
10825	ld_shlibs_CXX=no
10826	;;
10827      *)
10828	# FIXME: insert proper C++ library support
10829	ld_shlibs_CXX=no
10830	;;
10831    esac
10832    ;;
10833  vxworks*)
10834    # FIXME: insert proper C++ library support
10835    ld_shlibs_CXX=no
10836    ;;
10837  *)
10838    # FIXME: insert proper C++ library support
10839    ld_shlibs_CXX=no
10840    ;;
10841esac
10842echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10843echo "${ECHO_T}$ld_shlibs_CXX" >&6
10844test "$ld_shlibs_CXX" = no && can_build_shared=no
10845
10846GCC_CXX="$GXX"
10847LD_CXX="$LD"
10848
10849
10850cat > conftest.$ac_ext <<EOF
10851class Foo
10852{
10853public:
10854  Foo (void) { a = 0; }
10855private:
10856  int a;
10857};
10858EOF
10859
10860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10861  (eval $ac_compile) 2>&5
10862  ac_status=$?
10863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864  (exit $ac_status); }; then
10865  # Parse the compiler output and extract the necessary
10866  # objects, libraries and library flags.
10867
10868  # Sentinel used to keep track of whether or not we are before
10869  # the conftest object file.
10870  pre_test_object_deps_done=no
10871
10872  # The `*' in the case matches for architectures that use `case' in
10873  # $output_verbose_cmd can trigger glob expansion during the loop
10874  # eval without this substitution.
10875  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10876
10877  for p in `eval $output_verbose_link_cmd`; do
10878    case $p in
10879
10880    -L* | -R* | -l*)
10881       # Some compilers place space between "-{L,R}" and the path.
10882       # Remove the space.
10883       if test $p = "-L" \
10884	  || test $p = "-R"; then
10885	 prev=$p
10886	 continue
10887       else
10888	 prev=
10889       fi
10890
10891       if test "$pre_test_object_deps_done" = no; then
10892	 case $p in
10893	 -L* | -R*)
10894	   # Internal compiler library paths should come after those
10895	   # provided the user.  The postdeps already come after the
10896	   # user supplied libs so there is no need to process them.
10897	   if test -z "$compiler_lib_search_path_CXX"; then
10898	     compiler_lib_search_path_CXX="${prev}${p}"
10899	   else
10900	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10901	   fi
10902	   ;;
10903	 # The "-l" case would never come before the object being
10904	 # linked, so don't bother handling this case.
10905	 esac
10906       else
10907	 if test -z "$postdeps_CXX"; then
10908	   postdeps_CXX="${prev}${p}"
10909	 else
10910	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10911	 fi
10912       fi
10913       ;;
10914
10915    *.$objext)
10916       # This assumes that the test object file only shows up
10917       # once in the compiler output.
10918       if test "$p" = "conftest.$objext"; then
10919	 pre_test_object_deps_done=yes
10920	 continue
10921       fi
10922
10923       if test "$pre_test_object_deps_done" = no; then
10924	 if test -z "$predep_objects_CXX"; then
10925	   predep_objects_CXX="$p"
10926	 else
10927	   predep_objects_CXX="$predep_objects_CXX $p"
10928	 fi
10929       else
10930	 if test -z "$postdep_objects_CXX"; then
10931	   postdep_objects_CXX="$p"
10932	 else
10933	   postdep_objects_CXX="$postdep_objects_CXX $p"
10934	 fi
10935       fi
10936       ;;
10937
10938    *) ;; # Ignore the rest.
10939
10940    esac
10941  done
10942
10943  # Clean up.
10944  rm -f a.out a.exe
10945else
10946  echo "libtool.m4: error: problem compiling CXX test program"
10947fi
10948
10949$rm -f confest.$objext
10950
10951# PORTME: override above test on systems where it is broken
10952case $host_os in
10953solaris*)
10954  case $cc_basename in
10955  CC*)
10956    # Adding this requires a known-good setup of shared libraries for
10957    # Sun compiler versions before 5.6, else PIC objects from an old
10958    # archive will be linked into the output, leading to subtle bugs.
10959    postdeps_CXX='-lCstd -lCrun'
10960    ;;
10961  esac
10962esac
10963
10964
10965case " $postdeps_CXX " in
10966*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10967esac
10968
10969lt_prog_compiler_wl_CXX=
10970lt_prog_compiler_pic_CXX=
10971lt_prog_compiler_static_CXX=
10972
10973echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10974echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10975
10976  # C++ specific cases for pic, static, wl, etc.
10977  if test "$GXX" = yes; then
10978    lt_prog_compiler_wl_CXX='-Wl,'
10979    lt_prog_compiler_static_CXX='-static'
10980
10981    case $host_os in
10982    aix*)
10983      # All AIX code is PIC.
10984      if test "$host_cpu" = ia64; then
10985	# AIX 5 now supports IA64 processor
10986	lt_prog_compiler_static_CXX='-Bstatic'
10987      fi
10988      ;;
10989    amigaos*)
10990      # FIXME: we need at least 68020 code to build shared libraries, but
10991      # adding the `-m68020' flag to GCC prevents building anything better,
10992      # like `-m68040'.
10993      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10994      ;;
10995    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10996      # PIC is the default for these OSes.
10997      ;;
10998    mingw* | os2* | pw32*)
10999      # This hack is so that the source file can tell whether it is being
11000      # built for inclusion in a dll (and should export symbols for example).
11001      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11002      ;;
11003    darwin* | rhapsody*)
11004      # PIC is the default on this platform
11005      # Common symbols not allowed in MH_DYLIB files
11006      lt_prog_compiler_pic_CXX='-fno-common'
11007      ;;
11008    *djgpp*)
11009      # DJGPP does not support shared libraries at all
11010      lt_prog_compiler_pic_CXX=
11011      ;;
11012    sysv4*MP*)
11013      if test -d /usr/nec; then
11014	lt_prog_compiler_pic_CXX=-Kconform_pic
11015      fi
11016      ;;
11017    hpux*)
11018      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11019      # not for PA HP-UX.
11020      case $host_cpu in
11021      hppa*64*|ia64*)
11022	;;
11023      *)
11024	lt_prog_compiler_pic_CXX='-fPIC'
11025	;;
11026      esac
11027      ;;
11028    *)
11029      lt_prog_compiler_pic_CXX='-fPIC'
11030      ;;
11031    esac
11032  else
11033    case $host_os in
11034      aix4* | aix5*)
11035	# All AIX code is PIC.
11036	if test "$host_cpu" = ia64; then
11037	  # AIX 5 now supports IA64 processor
11038	  lt_prog_compiler_static_CXX='-Bstatic'
11039	else
11040	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11041	fi
11042	;;
11043      chorus*)
11044	case $cc_basename in
11045	cxch68*)
11046	  # Green Hills C++ Compiler
11047	  # _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"
11048	  ;;
11049	esac
11050	;;
11051       darwin*)
11052         # PIC is the default on this platform
11053         # Common symbols not allowed in MH_DYLIB files
11054         case $cc_basename in
11055           xlc*)
11056           lt_prog_compiler_pic_CXX='-qnocommon'
11057           lt_prog_compiler_wl_CXX='-Wl,'
11058           ;;
11059         esac
11060       ;;
11061      dgux*)
11062	case $cc_basename in
11063	  ec++*)
11064	    lt_prog_compiler_pic_CXX='-KPIC'
11065	    ;;
11066	  ghcx*)
11067	    # Green Hills C++ Compiler
11068	    lt_prog_compiler_pic_CXX='-pic'
11069	    ;;
11070	  *)
11071	    ;;
11072	esac
11073	;;
11074      freebsd* | kfreebsd*-gnu | dragonfly*)
11075	# FreeBSD uses GNU C++
11076	;;
11077      hpux9* | hpux10* | hpux11*)
11078	case $cc_basename in
11079	  CC*)
11080	    lt_prog_compiler_wl_CXX='-Wl,'
11081	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11082	    if test "$host_cpu" != ia64; then
11083	      lt_prog_compiler_pic_CXX='+Z'
11084	    fi
11085	    ;;
11086	  aCC*)
11087	    lt_prog_compiler_wl_CXX='-Wl,'
11088	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11089	    case $host_cpu in
11090	    hppa*64*|ia64*)
11091	      # +Z the default
11092	      ;;
11093	    *)
11094	      lt_prog_compiler_pic_CXX='+Z'
11095	      ;;
11096	    esac
11097	    ;;
11098	  *)
11099	    ;;
11100	esac
11101	;;
11102      irix5* | irix6* | nonstopux*)
11103	case $cc_basename in
11104	  CC*)
11105	    lt_prog_compiler_wl_CXX='-Wl,'
11106	    lt_prog_compiler_static_CXX='-non_shared'
11107	    # CC pic flag -KPIC is the default.
11108	    ;;
11109	  *)
11110	    ;;
11111	esac
11112	;;
11113      linux*)
11114	case $cc_basename in
11115	  KCC*)
11116	    # KAI C++ Compiler
11117	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11118	    lt_prog_compiler_pic_CXX='-fPIC'
11119	    ;;
11120	  icpc* | ecpc*)
11121	    # Intel C++
11122	    lt_prog_compiler_wl_CXX='-Wl,'
11123	    lt_prog_compiler_pic_CXX='-KPIC'
11124	    lt_prog_compiler_static_CXX='-static'
11125	    ;;
11126	  pgCC*)
11127	    # Portland Group C++ compiler.
11128	    lt_prog_compiler_wl_CXX='-Wl,'
11129	    lt_prog_compiler_pic_CXX='-fpic'
11130	    lt_prog_compiler_static_CXX='-Bstatic'
11131	    ;;
11132	  cxx*)
11133	    # Compaq C++
11134	    # Make sure the PIC flag is empty.  It appears that all Alpha
11135	    # Linux and Compaq Tru64 Unix objects are PIC.
11136	    lt_prog_compiler_pic_CXX=
11137	    lt_prog_compiler_static_CXX='-non_shared'
11138	    ;;
11139	  *)
11140	    ;;
11141	esac
11142	;;
11143      lynxos*)
11144	;;
11145      m88k*)
11146	;;
11147      mvs*)
11148	case $cc_basename in
11149	  cxx*)
11150	    lt_prog_compiler_pic_CXX='-W c,exportall'
11151	    ;;
11152	  *)
11153	    ;;
11154	esac
11155	;;
11156      netbsd*)
11157	;;
11158      osf3* | osf4* | osf5*)
11159	case $cc_basename in
11160	  KCC*)
11161	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11162	    ;;
11163	  RCC*)
11164	    # Rational C++ 2.4.1
11165	    lt_prog_compiler_pic_CXX='-pic'
11166	    ;;
11167	  cxx*)
11168	    # Digital/Compaq C++
11169	    lt_prog_compiler_wl_CXX='-Wl,'
11170	    # Make sure the PIC flag is empty.  It appears that all Alpha
11171	    # Linux and Compaq Tru64 Unix objects are PIC.
11172	    lt_prog_compiler_pic_CXX=
11173	    lt_prog_compiler_static_CXX='-non_shared'
11174	    ;;
11175	  *)
11176	    ;;
11177	esac
11178	;;
11179      psos*)
11180	;;
11181      sco*)
11182	case $cc_basename in
11183	  CC*)
11184	    lt_prog_compiler_pic_CXX='-fPIC'
11185	    ;;
11186	  *)
11187	    ;;
11188	esac
11189	;;
11190      solaris*)
11191	case $cc_basename in
11192	  CC*)
11193	    # Sun C++ 4.2, 5.x and Centerline C++
11194	    lt_prog_compiler_pic_CXX='-KPIC'
11195	    lt_prog_compiler_static_CXX='-Bstatic'
11196	    lt_prog_compiler_wl_CXX='-Qoption ld '
11197	    ;;
11198	  gcx*)
11199	    # Green Hills C++ Compiler
11200	    lt_prog_compiler_pic_CXX='-PIC'
11201	    ;;
11202	  *)
11203	    ;;
11204	esac
11205	;;
11206      sunos4*)
11207	case $cc_basename in
11208	  CC*)
11209	    # Sun C++ 4.x
11210	    lt_prog_compiler_pic_CXX='-pic'
11211	    lt_prog_compiler_static_CXX='-Bstatic'
11212	    ;;
11213	  lcc*)
11214	    # Lucid
11215	    lt_prog_compiler_pic_CXX='-pic'
11216	    ;;
11217	  *)
11218	    ;;
11219	esac
11220	;;
11221      tandem*)
11222	case $cc_basename in
11223	  NCC*)
11224	    # NonStop-UX NCC 3.20
11225	    lt_prog_compiler_pic_CXX='-KPIC'
11226	    ;;
11227	  *)
11228	    ;;
11229	esac
11230	;;
11231      unixware*)
11232	;;
11233      vxworks*)
11234	;;
11235      *)
11236	lt_prog_compiler_can_build_shared_CXX=no
11237	;;
11238    esac
11239  fi
11240
11241echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11242echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11243
11244#
11245# Check to make sure the PIC flag actually works.
11246#
11247if test -n "$lt_prog_compiler_pic_CXX"; then
11248
11249echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11250echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11251if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11252  echo $ECHO_N "(cached) $ECHO_C" >&6
11253else
11254  lt_prog_compiler_pic_works_CXX=no
11255  ac_outfile=conftest.$ac_objext
11256   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11257   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11258   # Insert the option either (1) after the last *FLAGS variable, or
11259   # (2) before a word containing "conftest.", or (3) at the end.
11260   # Note that $ac_compile itself does not contain backslashes and begins
11261   # with a dollar sign (not a hyphen), so the echo should work correctly.
11262   # The option is referenced via a variable to avoid confusing sed.
11263   lt_compile=`echo "$ac_compile" | $SED \
11264   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11265   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11266   -e 's:$: $lt_compiler_flag:'`
11267   (eval echo "\"\$as_me:11267: $lt_compile\"" >&5)
11268   (eval "$lt_compile" 2>conftest.err)
11269   ac_status=$?
11270   cat conftest.err >&5
11271   echo "$as_me:11271: \$? = $ac_status" >&5
11272   if (exit $ac_status) && test -s "$ac_outfile"; then
11273     # The compiler can only warn and ignore the option if not recognized
11274     # So say no if there are warnings other than the usual output.
11275     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11276     $SED '/^$/d' conftest.err >conftest.er2
11277     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11278       lt_prog_compiler_pic_works_CXX=yes
11279     fi
11280   fi
11281   $rm conftest*
11282
11283fi
11284echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11285echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11286
11287if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11288    case $lt_prog_compiler_pic_CXX in
11289     "" | " "*) ;;
11290     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11291     esac
11292else
11293    lt_prog_compiler_pic_CXX=
11294     lt_prog_compiler_can_build_shared_CXX=no
11295fi
11296
11297fi
11298case $host_os in
11299  # For platforms which do not support PIC, -DPIC is meaningless:
11300  *djgpp*)
11301    lt_prog_compiler_pic_CXX=
11302    ;;
11303  *)
11304    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11305    ;;
11306esac
11307
11308echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11309echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11310if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11311  echo $ECHO_N "(cached) $ECHO_C" >&6
11312else
11313  lt_cv_prog_compiler_c_o_CXX=no
11314   $rm -r conftest 2>/dev/null
11315   mkdir conftest
11316   cd conftest
11317   mkdir out
11318   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11319
11320   lt_compiler_flag="-o out/conftest2.$ac_objext"
11321   # Insert the option either (1) after the last *FLAGS variable, or
11322   # (2) before a word containing "conftest.", or (3) at the end.
11323   # Note that $ac_compile itself does not contain backslashes and begins
11324   # with a dollar sign (not a hyphen), so the echo should work correctly.
11325   lt_compile=`echo "$ac_compile" | $SED \
11326   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11327   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11328   -e 's:$: $lt_compiler_flag:'`
11329   (eval echo "\"\$as_me:11329: $lt_compile\"" >&5)
11330   (eval "$lt_compile" 2>out/conftest.err)
11331   ac_status=$?
11332   cat out/conftest.err >&5
11333   echo "$as_me:11333: \$? = $ac_status" >&5
11334   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11335   then
11336     # The compiler can only warn and ignore the option if not recognized
11337     # So say no if there are warnings
11338     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11339     $SED '/^$/d' out/conftest.err >out/conftest.er2
11340     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11341       lt_cv_prog_compiler_c_o_CXX=yes
11342     fi
11343   fi
11344   chmod u+w . 2>&5
11345   $rm conftest*
11346   # SGI C++ compiler will create directory out/ii_files/ for
11347   # template instantiation
11348   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11349   $rm out/* && rmdir out
11350   cd ..
11351   rmdir conftest
11352   $rm conftest*
11353
11354fi
11355echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11356echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11357
11358
11359hard_links="nottested"
11360if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11361  # do not overwrite the value of need_locks provided by the user
11362  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11363echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11364  hard_links=yes
11365  $rm conftest*
11366  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11367  touch conftest.a
11368  ln conftest.a conftest.b 2>&5 || hard_links=no
11369  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11370  echo "$as_me:$LINENO: result: $hard_links" >&5
11371echo "${ECHO_T}$hard_links" >&6
11372  if test "$hard_links" = no; then
11373    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11374echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11375    need_locks=warn
11376  fi
11377else
11378  need_locks=no
11379fi
11380
11381echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11382echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11383
11384  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11385  case $host_os in
11386  aix4* | aix5*)
11387    # If we're using GNU nm, then we don't want the "-C" option.
11388    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11389    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11390      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'
11391    else
11392      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'
11393    fi
11394    ;;
11395  pw32*)
11396    export_symbols_cmds_CXX="$ltdll_cmds"
11397  ;;
11398  cygwin* | mingw*)
11399    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11400  ;;
11401  *)
11402    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11403  ;;
11404  esac
11405
11406echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11407echo "${ECHO_T}$ld_shlibs_CXX" >&6
11408test "$ld_shlibs_CXX" = no && can_build_shared=no
11409
11410variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11411if test "$GCC" = yes; then
11412  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11413fi
11414
11415#
11416# Do we need to explicitly link libc?
11417#
11418case "x$archive_cmds_need_lc_CXX" in
11419x|xyes)
11420  # Assume -lc should be added
11421  archive_cmds_need_lc_CXX=yes
11422
11423  if test "$enable_shared" = yes && test "$GCC" = yes; then
11424    case $archive_cmds_CXX in
11425    *'~'*)
11426      # FIXME: we may have to deal with multi-command sequences.
11427      ;;
11428    '$CC '*)
11429      # Test whether the compiler implicitly links with -lc since on some
11430      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11431      # to ld, don't add -lc before -lgcc.
11432      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11433echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11434      $rm conftest*
11435      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11436
11437      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11438  (eval $ac_compile) 2>&5
11439  ac_status=$?
11440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441  (exit $ac_status); } 2>conftest.err; then
11442        soname=conftest
11443        lib=conftest
11444        libobjs=conftest.$ac_objext
11445        deplibs=
11446        wl=$lt_prog_compiler_wl_CXX
11447        compiler_flags=-v
11448        linker_flags=-v
11449        verstring=
11450        output_objdir=.
11451        libname=conftest
11452        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11453        allow_undefined_flag_CXX=
11454        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11455  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11456  ac_status=$?
11457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458  (exit $ac_status); }
11459        then
11460	  archive_cmds_need_lc_CXX=no
11461        else
11462	  archive_cmds_need_lc_CXX=yes
11463        fi
11464        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11465      else
11466        cat conftest.err 1>&5
11467      fi
11468      $rm conftest*
11469      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11470echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11471      ;;
11472    esac
11473  fi
11474  ;;
11475esac
11476
11477echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11478echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11479library_names_spec=
11480libname_spec='lib$name'
11481soname_spec=
11482shrext_cmds=".so"
11483postinstall_cmds=
11484postuninstall_cmds=
11485finish_cmds=
11486finish_eval=
11487shlibpath_var=
11488shlibpath_overrides_runpath=unknown
11489version_type=none
11490dynamic_linker="$host_os ld.so"
11491sys_lib_dlsearch_path_spec="/lib /usr/lib"
11492if test "$GCC" = yes; then
11493  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11494  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11495    # if the path contains ";" then we assume it to be the separator
11496    # otherwise default to the standard path separator (i.e. ":") - it is
11497    # assumed that no part of a normal pathname contains ";" but that should
11498    # okay in the real world where ";" in dirpaths is itself problematic.
11499    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11500  else
11501    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11502  fi
11503else
11504  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11505fi
11506need_lib_prefix=unknown
11507hardcode_into_libs=no
11508
11509# when you set need_version to no, make sure it does not cause -set_version
11510# flags to be left without arguments
11511need_version=unknown
11512
11513case $host_os in
11514aix3*)
11515  version_type=linux
11516  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11517  shlibpath_var=LIBPATH
11518
11519  # AIX 3 has no versioning support, so we append a major version to the name.
11520  soname_spec='${libname}${release}${shared_ext}$major'
11521  ;;
11522
11523aix4* | aix5*)
11524  version_type=linux
11525  need_lib_prefix=no
11526  need_version=no
11527  hardcode_into_libs=yes
11528  if test "$host_cpu" = ia64; then
11529    # AIX 5 supports IA64
11530    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11531    shlibpath_var=LD_LIBRARY_PATH
11532  else
11533    # With GCC up to 2.95.x, collect2 would create an import file
11534    # for dependence libraries.  The import file would start with
11535    # the line `#! .'.  This would cause the generated library to
11536    # depend on `.', always an invalid library.  This was fixed in
11537    # development snapshots of GCC prior to 3.0.
11538    case $host_os in
11539      aix4 | aix4.[01] | aix4.[01].*)
11540      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11541	   echo ' yes '
11542	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11543	:
11544      else
11545	can_build_shared=no
11546      fi
11547      ;;
11548    esac
11549    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11550    # soname into executable. Probably we can add versioning support to
11551    # collect2, so additional links can be useful in future.
11552    if test "$aix_use_runtimelinking" = yes; then
11553      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11554      # instead of lib<name>.a to let people know that these are not
11555      # typical AIX shared libraries.
11556      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557    else
11558      # We preserve .a as extension for shared libraries through AIX4.2
11559      # and later when we are not doing run time linking.
11560      library_names_spec='${libname}${release}.a $libname.a'
11561      soname_spec='${libname}${release}${shared_ext}$major'
11562    fi
11563    shlibpath_var=LIBPATH
11564  fi
11565  ;;
11566
11567amigaos*)
11568  library_names_spec='$libname.ixlibrary $libname.a'
11569  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11570  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'
11571  ;;
11572
11573beos*)
11574  library_names_spec='${libname}${shared_ext}'
11575  dynamic_linker="$host_os ld.so"
11576  shlibpath_var=LIBRARY_PATH
11577  ;;
11578
11579bsdi[45]*)
11580  version_type=linux
11581  need_version=no
11582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583  soname_spec='${libname}${release}${shared_ext}$major'
11584  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11585  shlibpath_var=LD_LIBRARY_PATH
11586  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11587  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11588  # the default ld.so.conf also contains /usr/contrib/lib and
11589  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11590  # libtool to hard-code these into programs
11591  ;;
11592
11593cygwin* | mingw* | pw32*)
11594  version_type=windows
11595  shrext_cmds=".dll"
11596  need_version=no
11597  need_lib_prefix=no
11598
11599  case $GCC,$host_os in
11600  yes,cygwin* | yes,mingw* | yes,pw32*)
11601    library_names_spec='$libname.dll.a'
11602    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11603    postinstall_cmds='base_file=`basename \${file}`~
11604      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11605      dldir=$destdir/`dirname \$dlpath`~
11606      test -d \$dldir || mkdir -p \$dldir~
11607      $install_prog $dir/$dlname \$dldir/$dlname~
11608      chmod a+x \$dldir/$dlname'
11609    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11610      dlpath=$dir/\$dldll~
11611       $rm \$dlpath'
11612    shlibpath_overrides_runpath=yes
11613
11614    case $host_os in
11615    cygwin*)
11616      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11617      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11618      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11619      ;;
11620    mingw*)
11621      # MinGW DLLs use traditional 'lib' prefix
11622      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11623      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11624      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11625        # It is most probably a Windows format PATH printed by
11626        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11627        # path with ; separators, and with drive letters. We can handle the
11628        # drive letters (cygwin fileutils understands them), so leave them,
11629        # especially as we might pass files found there to a mingw objdump,
11630        # which wouldn't understand a cygwinified path. Ahh.
11631        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11632      else
11633        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11634      fi
11635      ;;
11636    pw32*)
11637      # pw32 DLLs use 'pw' prefix rather than 'lib'
11638      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11639      ;;
11640    esac
11641    ;;
11642
11643  *)
11644    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11645    ;;
11646  esac
11647  dynamic_linker='Win32 ld.exe'
11648  # FIXME: first we should search . and the directory the executable is in
11649  shlibpath_var=PATH
11650  ;;
11651
11652darwin* | rhapsody*)
11653  dynamic_linker="$host_os dyld"
11654  version_type=darwin
11655  need_lib_prefix=no
11656  need_version=no
11657  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11658  soname_spec='${libname}${release}${major}$shared_ext'
11659  shlibpath_overrides_runpath=yes
11660  shlibpath_var=DYLD_LIBRARY_PATH
11661  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11662  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11663  if test "$GCC" = yes; then
11664    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"`
11665  else
11666    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11667  fi
11668  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11669  ;;
11670
11671dgux*)
11672  version_type=linux
11673  need_lib_prefix=no
11674  need_version=no
11675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11676  soname_spec='${libname}${release}${shared_ext}$major'
11677  shlibpath_var=LD_LIBRARY_PATH
11678  ;;
11679
11680freebsd1*)
11681  dynamic_linker=no
11682  ;;
11683
11684kfreebsd*-gnu)
11685  version_type=linux
11686  need_lib_prefix=no
11687  need_version=no
11688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11689  soname_spec='${libname}${release}${shared_ext}$major'
11690  shlibpath_var=LD_LIBRARY_PATH
11691  shlibpath_overrides_runpath=no
11692  hardcode_into_libs=yes
11693  dynamic_linker='GNU ld.so'
11694  ;;
11695
11696freebsd* | dragonfly*)
11697  # DragonFly does not have aout.  When/if they implement a new
11698  # versioning mechanism, adjust this.
11699  if test -x /usr/bin/objformat; then
11700    objformat=`/usr/bin/objformat`
11701  else
11702    case $host_os in
11703    freebsd[123]*) objformat=aout ;;
11704    *) objformat=elf ;;
11705    esac
11706  fi
11707  version_type=freebsd-$objformat
11708  case $version_type in
11709    freebsd-elf*)
11710      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11711      need_version=no
11712      need_lib_prefix=no
11713      ;;
11714    freebsd-*)
11715      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11716      need_version=yes
11717      ;;
11718  esac
11719  shlibpath_var=LD_LIBRARY_PATH
11720  case $host_os in
11721  freebsd2*)
11722    shlibpath_overrides_runpath=yes
11723    ;;
11724  freebsd3.[01]* | freebsdelf3.[01]*)
11725    shlibpath_overrides_runpath=yes
11726    hardcode_into_libs=yes
11727    ;;
11728  *) # from 3.2 on
11729    shlibpath_overrides_runpath=no
11730    hardcode_into_libs=yes
11731    ;;
11732  esac
11733  ;;
11734
11735gnu*)
11736  version_type=linux
11737  need_lib_prefix=no
11738  need_version=no
11739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11740  soname_spec='${libname}${release}${shared_ext}$major'
11741  shlibpath_var=LD_LIBRARY_PATH
11742  hardcode_into_libs=yes
11743  ;;
11744
11745hpux9* | hpux10* | hpux11*)
11746  # Give a soname corresponding to the major version so that dld.sl refuses to
11747  # link against other versions.
11748  version_type=sunos
11749  need_lib_prefix=no
11750  need_version=no
11751  case $host_cpu in
11752  ia64*)
11753    shrext_cmds='.so'
11754    hardcode_into_libs=yes
11755    dynamic_linker="$host_os dld.so"
11756    shlibpath_var=LD_LIBRARY_PATH
11757    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759    soname_spec='${libname}${release}${shared_ext}$major'
11760    if test "X$HPUX_IA64_MODE" = X32; then
11761      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11762    else
11763      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11764    fi
11765    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11766    ;;
11767   hppa*64*)
11768     shrext_cmds='.sl'
11769     hardcode_into_libs=yes
11770     dynamic_linker="$host_os dld.sl"
11771     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11772     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774     soname_spec='${libname}${release}${shared_ext}$major'
11775     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11776     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11777     ;;
11778   *)
11779    shrext_cmds='.sl'
11780    dynamic_linker="$host_os dld.sl"
11781    shlibpath_var=SHLIB_PATH
11782    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11783    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784    soname_spec='${libname}${release}${shared_ext}$major'
11785    ;;
11786  esac
11787  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11788  postinstall_cmds='chmod 555 $lib'
11789  ;;
11790
11791irix5* | irix6* | nonstopux*)
11792  case $host_os in
11793    nonstopux*) version_type=nonstopux ;;
11794    *)
11795	if test "$lt_cv_prog_gnu_ld" = yes; then
11796		version_type=linux
11797	else
11798		version_type=irix
11799	fi ;;
11800  esac
11801  need_lib_prefix=no
11802  need_version=no
11803  soname_spec='${libname}${release}${shared_ext}$major'
11804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11805  case $host_os in
11806  irix5* | nonstopux*)
11807    libsuff= shlibsuff=
11808    ;;
11809  *)
11810    case $LD in # libtool.m4 will add one of these switches to LD
11811    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11812      libsuff= shlibsuff= libmagic=32-bit;;
11813    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11814      libsuff=32 shlibsuff=N32 libmagic=N32;;
11815    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11816      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11817    *) libsuff= shlibsuff= libmagic=never-match;;
11818    esac
11819    ;;
11820  esac
11821  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11822  shlibpath_overrides_runpath=no
11823  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11824  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11825  hardcode_into_libs=yes
11826  ;;
11827
11828# No shared lib support for Linux oldld, aout, or coff.
11829linux*oldld* | linux*aout* | linux*coff*)
11830  dynamic_linker=no
11831  ;;
11832
11833# This must be Linux ELF.
11834linux*)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11841  shlibpath_var=LD_LIBRARY_PATH
11842  shlibpath_overrides_runpath=no
11843  # This implies no fast_install, which is unacceptable.
11844  # Some rework will be needed to allow for fast_install
11845  # before this can be enabled.
11846  hardcode_into_libs=yes
11847
11848  # Append ld.so.conf contents to the search path
11849  if test -f /etc/ld.so.conf; then
11850    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11851    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11852  fi
11853
11854  # We used to test for /lib/ld.so.1 and disable shared libraries on
11855  # powerpc, because MkLinux only supported shared libraries with the
11856  # GNU dynamic linker.  Since this was broken with cross compilers,
11857  # most powerpc-linux boxes support dynamic linking these days and
11858  # people can always --disable-shared, the test was removed, and we
11859  # assume the GNU/Linux dynamic linker is in use.
11860  dynamic_linker='GNU/Linux ld.so'
11861  ;;
11862
11863knetbsd*-gnu)
11864  version_type=linux
11865  need_lib_prefix=no
11866  need_version=no
11867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11868  soname_spec='${libname}${release}${shared_ext}$major'
11869  shlibpath_var=LD_LIBRARY_PATH
11870  shlibpath_overrides_runpath=no
11871  hardcode_into_libs=yes
11872  dynamic_linker='GNU ld.so'
11873  ;;
11874
11875netbsd*)
11876  version_type=sunos
11877  need_lib_prefix=no
11878  need_version=no
11879  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11881    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11882    dynamic_linker='NetBSD (a.out) ld.so'
11883  else
11884    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11885    soname_spec='${libname}${release}${shared_ext}$major'
11886    dynamic_linker='NetBSD ld.elf_so'
11887  fi
11888  shlibpath_var=LD_LIBRARY_PATH
11889  shlibpath_overrides_runpath=yes
11890  hardcode_into_libs=yes
11891  ;;
11892
11893newsos6)
11894  version_type=linux
11895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896  shlibpath_var=LD_LIBRARY_PATH
11897  shlibpath_overrides_runpath=yes
11898  ;;
11899
11900nto-qnx*)
11901  version_type=linux
11902  need_lib_prefix=no
11903  need_version=no
11904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905  soname_spec='${libname}${release}${shared_ext}$major'
11906  shlibpath_var=LD_LIBRARY_PATH
11907  shlibpath_overrides_runpath=yes
11908  ;;
11909
11910openbsd*)
11911  version_type=sunos
11912  need_lib_prefix=no
11913  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11914  case $host_os in
11915    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11916    *)                         need_version=no  ;;
11917  esac
11918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11919  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11920  shlibpath_var=LD_LIBRARY_PATH
11921  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11922    case $host_os in
11923      openbsd2.[89] | openbsd2.[89].*)
11924	shlibpath_overrides_runpath=no
11925	;;
11926      *)
11927	shlibpath_overrides_runpath=yes
11928	;;
11929      esac
11930  else
11931    shlibpath_overrides_runpath=yes
11932  fi
11933  ;;
11934
11935os2*)
11936  libname_spec='$name'
11937  shrext_cmds=".dll"
11938  need_lib_prefix=no
11939  library_names_spec='$libname${shared_ext} $libname.a'
11940  dynamic_linker='OS/2 ld.exe'
11941  shlibpath_var=LIBPATH
11942  ;;
11943
11944osf3* | osf4* | osf5*)
11945  version_type=osf
11946  need_lib_prefix=no
11947  need_version=no
11948  soname_spec='${libname}${release}${shared_ext}$major'
11949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950  shlibpath_var=LD_LIBRARY_PATH
11951  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11952  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11953  ;;
11954
11955sco3.2v5*)
11956  version_type=osf
11957  soname_spec='${libname}${release}${shared_ext}$major'
11958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959  shlibpath_var=LD_LIBRARY_PATH
11960  ;;
11961
11962solaris*)
11963  version_type=linux
11964  need_lib_prefix=no
11965  need_version=no
11966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967  soname_spec='${libname}${release}${shared_ext}$major'
11968  shlibpath_var=LD_LIBRARY_PATH
11969  shlibpath_overrides_runpath=yes
11970  hardcode_into_libs=yes
11971  # ldd complains unless libraries are executable
11972  postinstall_cmds='chmod +x $lib'
11973  ;;
11974
11975sunos4*)
11976  version_type=sunos
11977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11978  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11979  shlibpath_var=LD_LIBRARY_PATH
11980  shlibpath_overrides_runpath=yes
11981  if test "$with_gnu_ld" = yes; then
11982    need_lib_prefix=no
11983  fi
11984  need_version=yes
11985  ;;
11986
11987sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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  case $host_vendor in
11993    sni)
11994      shlibpath_overrides_runpath=no
11995      need_lib_prefix=no
11996      export_dynamic_flag_spec='${wl}-Blargedynsym'
11997      runpath_var=LD_RUN_PATH
11998      ;;
11999    siemens)
12000      need_lib_prefix=no
12001      ;;
12002    motorola)
12003      need_lib_prefix=no
12004      need_version=no
12005      shlibpath_overrides_runpath=no
12006      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12007      ;;
12008  esac
12009  ;;
12010
12011sysv4*MP*)
12012  if test -d /usr/nec ;then
12013    version_type=linux
12014    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12015    soname_spec='$libname${shared_ext}.$major'
12016    shlibpath_var=LD_LIBRARY_PATH
12017  fi
12018  ;;
12019
12020uts4*)
12021  version_type=linux
12022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023  soname_spec='${libname}${release}${shared_ext}$major'
12024  shlibpath_var=LD_LIBRARY_PATH
12025  ;;
12026
12027*)
12028  dynamic_linker=no
12029  ;;
12030esac
12031echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12032echo "${ECHO_T}$dynamic_linker" >&6
12033test "$dynamic_linker" = no && can_build_shared=no
12034
12035echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12036echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12037hardcode_action_CXX=
12038if test -n "$hardcode_libdir_flag_spec_CXX" || \
12039   test -n "$runpath_var_CXX" || \
12040   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12041
12042  # We can hardcode non-existant directories.
12043  if test "$hardcode_direct_CXX" != no &&
12044     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12045     # have to relink, otherwise we might link with an installed library
12046     # when we should be linking with a yet-to-be-installed one
12047     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12048     test "$hardcode_minus_L_CXX" != no; then
12049    # Linking always hardcodes the temporary library directory.
12050    hardcode_action_CXX=relink
12051  else
12052    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12053    hardcode_action_CXX=immediate
12054  fi
12055else
12056  # We cannot hardcode anything, or else we can only hardcode existing
12057  # directories.
12058  hardcode_action_CXX=unsupported
12059fi
12060echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12061echo "${ECHO_T}$hardcode_action_CXX" >&6
12062
12063if test "$hardcode_action_CXX" = relink; then
12064  # Fast installation is not supported
12065  enable_fast_install=no
12066elif test "$shlibpath_overrides_runpath" = yes ||
12067     test "$enable_shared" = no; then
12068  # Fast installation is not necessary
12069  enable_fast_install=needless
12070fi
12071
12072striplib=
12073old_striplib=
12074echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12075echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12076if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12077  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12078  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12079  echo "$as_me:$LINENO: result: yes" >&5
12080echo "${ECHO_T}yes" >&6
12081else
12082# FIXME - insert some real tests, host_os isn't really good enough
12083  case $host_os in
12084   darwin*)
12085       if test -n "$STRIP" ; then
12086         striplib="$STRIP -x"
12087         echo "$as_me:$LINENO: result: yes" >&5
12088echo "${ECHO_T}yes" >&6
12089       else
12090  echo "$as_me:$LINENO: result: no" >&5
12091echo "${ECHO_T}no" >&6
12092fi
12093       ;;
12094   *)
12095  echo "$as_me:$LINENO: result: no" >&5
12096echo "${ECHO_T}no" >&6
12097    ;;
12098  esac
12099fi
12100
12101if test "x$enable_dlopen" != xyes; then
12102  enable_dlopen=unknown
12103  enable_dlopen_self=unknown
12104  enable_dlopen_self_static=unknown
12105else
12106  lt_cv_dlopen=no
12107  lt_cv_dlopen_libs=
12108
12109  case $host_os in
12110  beos*)
12111    lt_cv_dlopen="load_add_on"
12112    lt_cv_dlopen_libs=
12113    lt_cv_dlopen_self=yes
12114    ;;
12115
12116  mingw* | pw32*)
12117    lt_cv_dlopen="LoadLibrary"
12118    lt_cv_dlopen_libs=
12119   ;;
12120
12121  cygwin*)
12122    lt_cv_dlopen="dlopen"
12123    lt_cv_dlopen_libs=
12124   ;;
12125
12126  darwin*)
12127  # if libdl is installed we need to link against it
12128    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12129echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12130if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12131  echo $ECHO_N "(cached) $ECHO_C" >&6
12132else
12133  ac_check_lib_save_LIBS=$LIBS
12134LIBS="-ldl  $LIBS"
12135cat >conftest.$ac_ext <<_ACEOF
12136/* confdefs.h.  */
12137_ACEOF
12138cat confdefs.h >>conftest.$ac_ext
12139cat >>conftest.$ac_ext <<_ACEOF
12140/* end confdefs.h.  */
12141
12142/* Override any gcc2 internal prototype to avoid an error.  */
12143#ifdef __cplusplus
12144extern "C"
12145#endif
12146/* We use char because int might match the return type of a gcc2
12147   builtin and then its argument prototype would still apply.  */
12148char dlopen ();
12149int
12150main ()
12151{
12152dlopen ();
12153  ;
12154  return 0;
12155}
12156_ACEOF
12157rm -f conftest.$ac_objext conftest$ac_exeext
12158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12159  (eval $ac_link) 2>conftest.er1
12160  ac_status=$?
12161  grep -v '^ *+' conftest.er1 >conftest.err
12162  rm -f conftest.er1
12163  cat conftest.err >&5
12164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165  (exit $ac_status); } &&
12166	 { ac_try='test -z "$ac_cxx_werror_flag"
12167			 || test ! -s conftest.err'
12168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169  (eval $ac_try) 2>&5
12170  ac_status=$?
12171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172  (exit $ac_status); }; } &&
12173	 { ac_try='test -s conftest$ac_exeext'
12174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175  (eval $ac_try) 2>&5
12176  ac_status=$?
12177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178  (exit $ac_status); }; }; then
12179  ac_cv_lib_dl_dlopen=yes
12180else
12181  echo "$as_me: failed program was:" >&5
12182sed 's/^/| /' conftest.$ac_ext >&5
12183
12184ac_cv_lib_dl_dlopen=no
12185fi
12186rm -f conftest.err conftest.$ac_objext \
12187      conftest$ac_exeext conftest.$ac_ext
12188LIBS=$ac_check_lib_save_LIBS
12189fi
12190echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12191echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12192if test $ac_cv_lib_dl_dlopen = yes; then
12193  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12194else
12195
12196    lt_cv_dlopen="dyld"
12197    lt_cv_dlopen_libs=
12198    lt_cv_dlopen_self=yes
12199
12200fi
12201
12202   ;;
12203
12204  *)
12205    echo "$as_me:$LINENO: checking for shl_load" >&5
12206echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12207if test "${ac_cv_func_shl_load+set}" = set; then
12208  echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
12210  cat >conftest.$ac_ext <<_ACEOF
12211/* confdefs.h.  */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h.  */
12216/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12217   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12218#define shl_load innocuous_shl_load
12219
12220/* System header to define __stub macros and hopefully few prototypes,
12221    which can conflict with char shl_load (); below.
12222    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12223    <limits.h> exists even on freestanding compilers.  */
12224
12225#ifdef __STDC__
12226# include <limits.h>
12227#else
12228# include <assert.h>
12229#endif
12230
12231#undef shl_load
12232
12233/* Override any gcc2 internal prototype to avoid an error.  */
12234#ifdef __cplusplus
12235extern "C"
12236{
12237#endif
12238/* We use char because int might match the return type of a gcc2
12239   builtin and then its argument prototype would still apply.  */
12240char shl_load ();
12241/* The GNU C library defines this for functions which it implements
12242    to always fail with ENOSYS.  Some functions are actually named
12243    something starting with __ and the normal name is an alias.  */
12244#if defined (__stub_shl_load) || defined (__stub___shl_load)
12245choke me
12246#else
12247char (*f) () = shl_load;
12248#endif
12249#ifdef __cplusplus
12250}
12251#endif
12252
12253int
12254main ()
12255{
12256return f != shl_load;
12257  ;
12258  return 0;
12259}
12260_ACEOF
12261rm -f conftest.$ac_objext conftest$ac_exeext
12262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263  (eval $ac_link) 2>conftest.er1
12264  ac_status=$?
12265  grep -v '^ *+' conftest.er1 >conftest.err
12266  rm -f conftest.er1
12267  cat conftest.err >&5
12268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269  (exit $ac_status); } &&
12270	 { ac_try='test -z "$ac_cxx_werror_flag"
12271			 || test ! -s conftest.err'
12272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273  (eval $ac_try) 2>&5
12274  ac_status=$?
12275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276  (exit $ac_status); }; } &&
12277	 { ac_try='test -s conftest$ac_exeext'
12278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279  (eval $ac_try) 2>&5
12280  ac_status=$?
12281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282  (exit $ac_status); }; }; then
12283  ac_cv_func_shl_load=yes
12284else
12285  echo "$as_me: failed program was:" >&5
12286sed 's/^/| /' conftest.$ac_ext >&5
12287
12288ac_cv_func_shl_load=no
12289fi
12290rm -f conftest.err conftest.$ac_objext \
12291      conftest$ac_exeext conftest.$ac_ext
12292fi
12293echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12294echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12295if test $ac_cv_func_shl_load = yes; then
12296  lt_cv_dlopen="shl_load"
12297else
12298  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12299echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12300if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12301  echo $ECHO_N "(cached) $ECHO_C" >&6
12302else
12303  ac_check_lib_save_LIBS=$LIBS
12304LIBS="-ldld  $LIBS"
12305cat >conftest.$ac_ext <<_ACEOF
12306/* confdefs.h.  */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h.  */
12311
12312/* Override any gcc2 internal prototype to avoid an error.  */
12313#ifdef __cplusplus
12314extern "C"
12315#endif
12316/* We use char because int might match the return type of a gcc2
12317   builtin and then its argument prototype would still apply.  */
12318char shl_load ();
12319int
12320main ()
12321{
12322shl_load ();
12323  ;
12324  return 0;
12325}
12326_ACEOF
12327rm -f conftest.$ac_objext conftest$ac_exeext
12328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12329  (eval $ac_link) 2>conftest.er1
12330  ac_status=$?
12331  grep -v '^ *+' conftest.er1 >conftest.err
12332  rm -f conftest.er1
12333  cat conftest.err >&5
12334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335  (exit $ac_status); } &&
12336	 { ac_try='test -z "$ac_cxx_werror_flag"
12337			 || test ! -s conftest.err'
12338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339  (eval $ac_try) 2>&5
12340  ac_status=$?
12341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342  (exit $ac_status); }; } &&
12343	 { ac_try='test -s conftest$ac_exeext'
12344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345  (eval $ac_try) 2>&5
12346  ac_status=$?
12347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348  (exit $ac_status); }; }; then
12349  ac_cv_lib_dld_shl_load=yes
12350else
12351  echo "$as_me: failed program was:" >&5
12352sed 's/^/| /' conftest.$ac_ext >&5
12353
12354ac_cv_lib_dld_shl_load=no
12355fi
12356rm -f conftest.err conftest.$ac_objext \
12357      conftest$ac_exeext conftest.$ac_ext
12358LIBS=$ac_check_lib_save_LIBS
12359fi
12360echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12361echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12362if test $ac_cv_lib_dld_shl_load = yes; then
12363  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12364else
12365  echo "$as_me:$LINENO: checking for dlopen" >&5
12366echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12367if test "${ac_cv_func_dlopen+set}" = set; then
12368  echo $ECHO_N "(cached) $ECHO_C" >&6
12369else
12370  cat >conftest.$ac_ext <<_ACEOF
12371/* confdefs.h.  */
12372_ACEOF
12373cat confdefs.h >>conftest.$ac_ext
12374cat >>conftest.$ac_ext <<_ACEOF
12375/* end confdefs.h.  */
12376/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12377   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12378#define dlopen innocuous_dlopen
12379
12380/* System header to define __stub macros and hopefully few prototypes,
12381    which can conflict with char dlopen (); below.
12382    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383    <limits.h> exists even on freestanding compilers.  */
12384
12385#ifdef __STDC__
12386# include <limits.h>
12387#else
12388# include <assert.h>
12389#endif
12390
12391#undef dlopen
12392
12393/* Override any gcc2 internal prototype to avoid an error.  */
12394#ifdef __cplusplus
12395extern "C"
12396{
12397#endif
12398/* We use char because int might match the return type of a gcc2
12399   builtin and then its argument prototype would still apply.  */
12400char dlopen ();
12401/* The GNU C library defines this for functions which it implements
12402    to always fail with ENOSYS.  Some functions are actually named
12403    something starting with __ and the normal name is an alias.  */
12404#if defined (__stub_dlopen) || defined (__stub___dlopen)
12405choke me
12406#else
12407char (*f) () = dlopen;
12408#endif
12409#ifdef __cplusplus
12410}
12411#endif
12412
12413int
12414main ()
12415{
12416return f != dlopen;
12417  ;
12418  return 0;
12419}
12420_ACEOF
12421rm -f conftest.$ac_objext conftest$ac_exeext
12422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423  (eval $ac_link) 2>conftest.er1
12424  ac_status=$?
12425  grep -v '^ *+' conftest.er1 >conftest.err
12426  rm -f conftest.er1
12427  cat conftest.err >&5
12428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429  (exit $ac_status); } &&
12430	 { ac_try='test -z "$ac_cxx_werror_flag"
12431			 || test ! -s conftest.err'
12432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433  (eval $ac_try) 2>&5
12434  ac_status=$?
12435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436  (exit $ac_status); }; } &&
12437	 { ac_try='test -s conftest$ac_exeext'
12438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439  (eval $ac_try) 2>&5
12440  ac_status=$?
12441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442  (exit $ac_status); }; }; then
12443  ac_cv_func_dlopen=yes
12444else
12445  echo "$as_me: failed program was:" >&5
12446sed 's/^/| /' conftest.$ac_ext >&5
12447
12448ac_cv_func_dlopen=no
12449fi
12450rm -f conftest.err conftest.$ac_objext \
12451      conftest$ac_exeext conftest.$ac_ext
12452fi
12453echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12454echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12455if test $ac_cv_func_dlopen = yes; then
12456  lt_cv_dlopen="dlopen"
12457else
12458  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12459echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12460if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12461  echo $ECHO_N "(cached) $ECHO_C" >&6
12462else
12463  ac_check_lib_save_LIBS=$LIBS
12464LIBS="-ldl  $LIBS"
12465cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h.  */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h.  */
12471
12472/* Override any gcc2 internal prototype to avoid an error.  */
12473#ifdef __cplusplus
12474extern "C"
12475#endif
12476/* We use char because int might match the return type of a gcc2
12477   builtin and then its argument prototype would still apply.  */
12478char dlopen ();
12479int
12480main ()
12481{
12482dlopen ();
12483  ;
12484  return 0;
12485}
12486_ACEOF
12487rm -f conftest.$ac_objext conftest$ac_exeext
12488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12489  (eval $ac_link) 2>conftest.er1
12490  ac_status=$?
12491  grep -v '^ *+' conftest.er1 >conftest.err
12492  rm -f conftest.er1
12493  cat conftest.err >&5
12494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495  (exit $ac_status); } &&
12496	 { ac_try='test -z "$ac_cxx_werror_flag"
12497			 || test ! -s conftest.err'
12498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499  (eval $ac_try) 2>&5
12500  ac_status=$?
12501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502  (exit $ac_status); }; } &&
12503	 { ac_try='test -s conftest$ac_exeext'
12504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505  (eval $ac_try) 2>&5
12506  ac_status=$?
12507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508  (exit $ac_status); }; }; then
12509  ac_cv_lib_dl_dlopen=yes
12510else
12511  echo "$as_me: failed program was:" >&5
12512sed 's/^/| /' conftest.$ac_ext >&5
12513
12514ac_cv_lib_dl_dlopen=no
12515fi
12516rm -f conftest.err conftest.$ac_objext \
12517      conftest$ac_exeext conftest.$ac_ext
12518LIBS=$ac_check_lib_save_LIBS
12519fi
12520echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12521echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12522if test $ac_cv_lib_dl_dlopen = yes; then
12523  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12524else
12525  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12526echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12527if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12528  echo $ECHO_N "(cached) $ECHO_C" >&6
12529else
12530  ac_check_lib_save_LIBS=$LIBS
12531LIBS="-lsvld  $LIBS"
12532cat >conftest.$ac_ext <<_ACEOF
12533/* confdefs.h.  */
12534_ACEOF
12535cat confdefs.h >>conftest.$ac_ext
12536cat >>conftest.$ac_ext <<_ACEOF
12537/* end confdefs.h.  */
12538
12539/* Override any gcc2 internal prototype to avoid an error.  */
12540#ifdef __cplusplus
12541extern "C"
12542#endif
12543/* We use char because int might match the return type of a gcc2
12544   builtin and then its argument prototype would still apply.  */
12545char dlopen ();
12546int
12547main ()
12548{
12549dlopen ();
12550  ;
12551  return 0;
12552}
12553_ACEOF
12554rm -f conftest.$ac_objext conftest$ac_exeext
12555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556  (eval $ac_link) 2>conftest.er1
12557  ac_status=$?
12558  grep -v '^ *+' conftest.er1 >conftest.err
12559  rm -f conftest.er1
12560  cat conftest.err >&5
12561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562  (exit $ac_status); } &&
12563	 { ac_try='test -z "$ac_cxx_werror_flag"
12564			 || test ! -s conftest.err'
12565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566  (eval $ac_try) 2>&5
12567  ac_status=$?
12568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569  (exit $ac_status); }; } &&
12570	 { ac_try='test -s conftest$ac_exeext'
12571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572  (eval $ac_try) 2>&5
12573  ac_status=$?
12574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575  (exit $ac_status); }; }; then
12576  ac_cv_lib_svld_dlopen=yes
12577else
12578  echo "$as_me: failed program was:" >&5
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
12581ac_cv_lib_svld_dlopen=no
12582fi
12583rm -f conftest.err conftest.$ac_objext \
12584      conftest$ac_exeext conftest.$ac_ext
12585LIBS=$ac_check_lib_save_LIBS
12586fi
12587echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12588echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12589if test $ac_cv_lib_svld_dlopen = yes; then
12590  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12591else
12592  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12593echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12594if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12595  echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597  ac_check_lib_save_LIBS=$LIBS
12598LIBS="-ldld  $LIBS"
12599cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h.  */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h.  */
12605
12606/* Override any gcc2 internal prototype to avoid an error.  */
12607#ifdef __cplusplus
12608extern "C"
12609#endif
12610/* We use char because int might match the return type of a gcc2
12611   builtin and then its argument prototype would still apply.  */
12612char dld_link ();
12613int
12614main ()
12615{
12616dld_link ();
12617  ;
12618  return 0;
12619}
12620_ACEOF
12621rm -f conftest.$ac_objext conftest$ac_exeext
12622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623  (eval $ac_link) 2>conftest.er1
12624  ac_status=$?
12625  grep -v '^ *+' conftest.er1 >conftest.err
12626  rm -f conftest.er1
12627  cat conftest.err >&5
12628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629  (exit $ac_status); } &&
12630	 { ac_try='test -z "$ac_cxx_werror_flag"
12631			 || test ! -s conftest.err'
12632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633  (eval $ac_try) 2>&5
12634  ac_status=$?
12635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636  (exit $ac_status); }; } &&
12637	 { ac_try='test -s conftest$ac_exeext'
12638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639  (eval $ac_try) 2>&5
12640  ac_status=$?
12641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642  (exit $ac_status); }; }; then
12643  ac_cv_lib_dld_dld_link=yes
12644else
12645  echo "$as_me: failed program was:" >&5
12646sed 's/^/| /' conftest.$ac_ext >&5
12647
12648ac_cv_lib_dld_dld_link=no
12649fi
12650rm -f conftest.err conftest.$ac_objext \
12651      conftest$ac_exeext conftest.$ac_ext
12652LIBS=$ac_check_lib_save_LIBS
12653fi
12654echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12655echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12656if test $ac_cv_lib_dld_dld_link = yes; then
12657  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12658fi
12659
12660
12661fi
12662
12663
12664fi
12665
12666
12667fi
12668
12669
12670fi
12671
12672
12673fi
12674
12675    ;;
12676  esac
12677
12678  if test "x$lt_cv_dlopen" != xno; then
12679    enable_dlopen=yes
12680  else
12681    enable_dlopen=no
12682  fi
12683
12684  case $lt_cv_dlopen in
12685  dlopen)
12686    save_CPPFLAGS="$CPPFLAGS"
12687    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12688
12689    save_LDFLAGS="$LDFLAGS"
12690    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12691
12692    save_LIBS="$LIBS"
12693    LIBS="$lt_cv_dlopen_libs $LIBS"
12694
12695    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12696echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12697if test "${lt_cv_dlopen_self+set}" = set; then
12698  echo $ECHO_N "(cached) $ECHO_C" >&6
12699else
12700  	  if test "$cross_compiling" = yes; then :
12701  lt_cv_dlopen_self=cross
12702else
12703  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12704  lt_status=$lt_dlunknown
12705  cat > conftest.$ac_ext <<EOF
12706#line 12706 "configure"
12707#include "confdefs.h"
12708
12709#if HAVE_DLFCN_H
12710#include <dlfcn.h>
12711#endif
12712
12713#include <stdio.h>
12714
12715#ifdef RTLD_GLOBAL
12716#  define LT_DLGLOBAL		RTLD_GLOBAL
12717#else
12718#  ifdef DL_GLOBAL
12719#    define LT_DLGLOBAL		DL_GLOBAL
12720#  else
12721#    define LT_DLGLOBAL		0
12722#  endif
12723#endif
12724
12725/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12726   find out it does not work in some platform. */
12727#ifndef LT_DLLAZY_OR_NOW
12728#  ifdef RTLD_LAZY
12729#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12730#  else
12731#    ifdef DL_LAZY
12732#      define LT_DLLAZY_OR_NOW		DL_LAZY
12733#    else
12734#      ifdef RTLD_NOW
12735#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12736#      else
12737#        ifdef DL_NOW
12738#          define LT_DLLAZY_OR_NOW	DL_NOW
12739#        else
12740#          define LT_DLLAZY_OR_NOW	0
12741#        endif
12742#      endif
12743#    endif
12744#  endif
12745#endif
12746
12747#ifdef __cplusplus
12748extern "C" void exit (int);
12749#endif
12750
12751void fnord() { int i=42;}
12752int main ()
12753{
12754  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12755  int status = $lt_dlunknown;
12756
12757  if (self)
12758    {
12759      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12760      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12761      /* dlclose (self); */
12762    }
12763
12764    exit (status);
12765}
12766EOF
12767  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768  (eval $ac_link) 2>&5
12769  ac_status=$?
12770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12772    (./conftest; exit; ) >&5 2>/dev/null
12773    lt_status=$?
12774    case x$lt_status in
12775      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12776      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12777      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12778    esac
12779  else :
12780    # compilation failed
12781    lt_cv_dlopen_self=no
12782  fi
12783fi
12784rm -fr conftest*
12785
12786
12787fi
12788echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12789echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12790
12791    if test "x$lt_cv_dlopen_self" = xyes; then
12792      LDFLAGS="$LDFLAGS $link_static_flag"
12793      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12794echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12795if test "${lt_cv_dlopen_self_static+set}" = set; then
12796  echo $ECHO_N "(cached) $ECHO_C" >&6
12797else
12798  	  if test "$cross_compiling" = yes; then :
12799  lt_cv_dlopen_self_static=cross
12800else
12801  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12802  lt_status=$lt_dlunknown
12803  cat > conftest.$ac_ext <<EOF
12804#line 12804 "configure"
12805#include "confdefs.h"
12806
12807#if HAVE_DLFCN_H
12808#include <dlfcn.h>
12809#endif
12810
12811#include <stdio.h>
12812
12813#ifdef RTLD_GLOBAL
12814#  define LT_DLGLOBAL		RTLD_GLOBAL
12815#else
12816#  ifdef DL_GLOBAL
12817#    define LT_DLGLOBAL		DL_GLOBAL
12818#  else
12819#    define LT_DLGLOBAL		0
12820#  endif
12821#endif
12822
12823/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12824   find out it does not work in some platform. */
12825#ifndef LT_DLLAZY_OR_NOW
12826#  ifdef RTLD_LAZY
12827#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12828#  else
12829#    ifdef DL_LAZY
12830#      define LT_DLLAZY_OR_NOW		DL_LAZY
12831#    else
12832#      ifdef RTLD_NOW
12833#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12834#      else
12835#        ifdef DL_NOW
12836#          define LT_DLLAZY_OR_NOW	DL_NOW
12837#        else
12838#          define LT_DLLAZY_OR_NOW	0
12839#        endif
12840#      endif
12841#    endif
12842#  endif
12843#endif
12844
12845#ifdef __cplusplus
12846extern "C" void exit (int);
12847#endif
12848
12849void fnord() { int i=42;}
12850int main ()
12851{
12852  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12853  int status = $lt_dlunknown;
12854
12855  if (self)
12856    {
12857      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12858      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12859      /* dlclose (self); */
12860    }
12861
12862    exit (status);
12863}
12864EOF
12865  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12866  (eval $ac_link) 2>&5
12867  ac_status=$?
12868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12870    (./conftest; exit; ) >&5 2>/dev/null
12871    lt_status=$?
12872    case x$lt_status in
12873      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12874      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12875      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12876    esac
12877  else :
12878    # compilation failed
12879    lt_cv_dlopen_self_static=no
12880  fi
12881fi
12882rm -fr conftest*
12883
12884
12885fi
12886echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12887echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12888    fi
12889
12890    CPPFLAGS="$save_CPPFLAGS"
12891    LDFLAGS="$save_LDFLAGS"
12892    LIBS="$save_LIBS"
12893    ;;
12894  esac
12895
12896  case $lt_cv_dlopen_self in
12897  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12898  *) enable_dlopen_self=unknown ;;
12899  esac
12900
12901  case $lt_cv_dlopen_self_static in
12902  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12903  *) enable_dlopen_self_static=unknown ;;
12904  esac
12905fi
12906
12907
12908# The else clause should only fire when bootstrapping the
12909# libtool distribution, otherwise you forgot to ship ltmain.sh
12910# with your package, and you will get complaints that there are
12911# no rules to generate ltmain.sh.
12912if test -f "$ltmain"; then
12913  # See if we are running on zsh, and set the options which allow our commands through
12914  # without removal of \ escapes.
12915  if test -n "${ZSH_VERSION+set}" ; then
12916    setopt NO_GLOB_SUBST
12917  fi
12918  # Now quote all the things that may contain metacharacters while being
12919  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12920  # variables and quote the copies for generation of the libtool script.
12921  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12922    SED SHELL STRIP \
12923    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12924    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12925    deplibs_check_method reload_flag reload_cmds need_locks \
12926    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12927    lt_cv_sys_global_symbol_to_c_name_address \
12928    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12929    old_postinstall_cmds old_postuninstall_cmds \
12930    compiler_CXX \
12931    CC_CXX \
12932    LD_CXX \
12933    lt_prog_compiler_wl_CXX \
12934    lt_prog_compiler_pic_CXX \
12935    lt_prog_compiler_static_CXX \
12936    lt_prog_compiler_no_builtin_flag_CXX \
12937    export_dynamic_flag_spec_CXX \
12938    thread_safe_flag_spec_CXX \
12939    whole_archive_flag_spec_CXX \
12940    enable_shared_with_static_runtimes_CXX \
12941    old_archive_cmds_CXX \
12942    old_archive_from_new_cmds_CXX \
12943    predep_objects_CXX \
12944    postdep_objects_CXX \
12945    predeps_CXX \
12946    postdeps_CXX \
12947    compiler_lib_search_path_CXX \
12948    archive_cmds_CXX \
12949    archive_expsym_cmds_CXX \
12950    postinstall_cmds_CXX \
12951    postuninstall_cmds_CXX \
12952    old_archive_from_expsyms_cmds_CXX \
12953    allow_undefined_flag_CXX \
12954    no_undefined_flag_CXX \
12955    export_symbols_cmds_CXX \
12956    hardcode_libdir_flag_spec_CXX \
12957    hardcode_libdir_flag_spec_ld_CXX \
12958    hardcode_libdir_separator_CXX \
12959    hardcode_automatic_CXX \
12960    module_cmds_CXX \
12961    module_expsym_cmds_CXX \
12962    lt_cv_prog_compiler_c_o_CXX \
12963    exclude_expsyms_CXX \
12964    include_expsyms_CXX; do
12965
12966    case $var in
12967    old_archive_cmds_CXX | \
12968    old_archive_from_new_cmds_CXX | \
12969    archive_cmds_CXX | \
12970    archive_expsym_cmds_CXX | \
12971    module_cmds_CXX | \
12972    module_expsym_cmds_CXX | \
12973    old_archive_from_expsyms_cmds_CXX | \
12974    export_symbols_cmds_CXX | \
12975    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12976    postinstall_cmds | postuninstall_cmds | \
12977    old_postinstall_cmds | old_postuninstall_cmds | \
12978    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12979      # Double-quote double-evaled strings.
12980      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12981      ;;
12982    *)
12983      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12984      ;;
12985    esac
12986  done
12987
12988  case $lt_echo in
12989  *'\$0 --fallback-echo"')
12990    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12991    ;;
12992  esac
12993
12994cfgfile="$ofile"
12995
12996  cat <<__EOF__ >> "$cfgfile"
12997# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12998
12999# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13000
13001# Shell to use when invoking shell scripts.
13002SHELL=$lt_SHELL
13003
13004# Whether or not to build shared libraries.
13005build_libtool_libs=$enable_shared
13006
13007# Whether or not to build static libraries.
13008build_old_libs=$enable_static
13009
13010# Whether or not to add -lc for building shared libraries.
13011build_libtool_need_lc=$archive_cmds_need_lc_CXX
13012
13013# Whether or not to disallow shared libs when runtime libs are static
13014allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13015
13016# Whether or not to optimize for fast installation.
13017fast_install=$enable_fast_install
13018
13019# The host system.
13020host_alias=$host_alias
13021host=$host
13022host_os=$host_os
13023
13024# The build system.
13025build_alias=$build_alias
13026build=$build
13027build_os=$build_os
13028
13029# An echo program that does not interpret backslashes.
13030echo=$lt_echo
13031
13032# The archiver.
13033AR=$lt_AR
13034AR_FLAGS=$lt_AR_FLAGS
13035
13036# A C compiler.
13037LTCC=$lt_LTCC
13038
13039# A language-specific compiler.
13040CC=$lt_compiler_CXX
13041
13042# Is the compiler the GNU C compiler?
13043with_gcc=$GCC_CXX
13044
13045# An ERE matcher.
13046EGREP=$lt_EGREP
13047
13048# The linker used to build libraries.
13049LD=$lt_LD_CXX
13050
13051# Whether we need hard or soft links.
13052LN_S=$lt_LN_S
13053
13054# A BSD-compatible nm program.
13055NM=$lt_NM
13056
13057# A symbol stripping program
13058STRIP=$lt_STRIP
13059
13060# Used to examine libraries when file_magic_cmd begins "file"
13061MAGIC_CMD=$MAGIC_CMD
13062
13063# Used on cygwin: DLL creation program.
13064DLLTOOL="$DLLTOOL"
13065
13066# Used on cygwin: object dumper.
13067OBJDUMP="$OBJDUMP"
13068
13069# Used on cygwin: assembler.
13070AS="$AS"
13071
13072# The name of the directory that contains temporary libtool files.
13073objdir=$objdir
13074
13075# How to create reloadable object files.
13076reload_flag=$lt_reload_flag
13077reload_cmds=$lt_reload_cmds
13078
13079# How to pass a linker flag through the compiler.
13080wl=$lt_lt_prog_compiler_wl_CXX
13081
13082# Object file suffix (normally "o").
13083objext="$ac_objext"
13084
13085# Old archive suffix (normally "a").
13086libext="$libext"
13087
13088# Shared library suffix (normally ".so").
13089shrext_cmds='$shrext_cmds'
13090
13091# Executable file suffix (normally "").
13092exeext="$exeext"
13093
13094# Additional compiler flags for building library objects.
13095pic_flag=$lt_lt_prog_compiler_pic_CXX
13096pic_mode=$pic_mode
13097
13098# What is the maximum length of a command?
13099max_cmd_len=$lt_cv_sys_max_cmd_len
13100
13101# Does compiler simultaneously support -c and -o options?
13102compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13103
13104# Must we lock files when doing compilation?
13105need_locks=$lt_need_locks
13106
13107# Do we need the lib prefix for modules?
13108need_lib_prefix=$need_lib_prefix
13109
13110# Do we need a version for libraries?
13111need_version=$need_version
13112
13113# Whether dlopen is supported.
13114dlopen_support=$enable_dlopen
13115
13116# Whether dlopen of programs is supported.
13117dlopen_self=$enable_dlopen_self
13118
13119# Whether dlopen of statically linked programs is supported.
13120dlopen_self_static=$enable_dlopen_self_static
13121
13122# Compiler flag to prevent dynamic linking.
13123link_static_flag=$lt_lt_prog_compiler_static_CXX
13124
13125# Compiler flag to turn off builtin functions.
13126no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13127
13128# Compiler flag to allow reflexive dlopens.
13129export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13130
13131# Compiler flag to generate shared objects directly from archives.
13132whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13133
13134# Compiler flag to generate thread-safe objects.
13135thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13136
13137# Library versioning type.
13138version_type=$version_type
13139
13140# Format of library name prefix.
13141libname_spec=$lt_libname_spec
13142
13143# List of archive names.  First name is the real one, the rest are links.
13144# The last name is the one that the linker finds with -lNAME.
13145library_names_spec=$lt_library_names_spec
13146
13147# The coded name of the library, if different from the real name.
13148soname_spec=$lt_soname_spec
13149
13150# Commands used to build and install an old-style archive.
13151RANLIB=$lt_RANLIB
13152old_archive_cmds=$lt_old_archive_cmds_CXX
13153old_postinstall_cmds=$lt_old_postinstall_cmds
13154old_postuninstall_cmds=$lt_old_postuninstall_cmds
13155
13156# Create an old-style archive from a shared archive.
13157old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13158
13159# Create a temporary old-style archive to link instead of a shared archive.
13160old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13161
13162# Commands used to build and install a shared archive.
13163archive_cmds=$lt_archive_cmds_CXX
13164archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13165postinstall_cmds=$lt_postinstall_cmds
13166postuninstall_cmds=$lt_postuninstall_cmds
13167
13168# Commands used to build a loadable module (assumed same as above if empty)
13169module_cmds=$lt_module_cmds_CXX
13170module_expsym_cmds=$lt_module_expsym_cmds_CXX
13171
13172# Commands to strip libraries.
13173old_striplib=$lt_old_striplib
13174striplib=$lt_striplib
13175
13176# Dependencies to place before the objects being linked to create a
13177# shared library.
13178predep_objects=$lt_predep_objects_CXX
13179
13180# Dependencies to place after the objects being linked to create a
13181# shared library.
13182postdep_objects=$lt_postdep_objects_CXX
13183
13184# Dependencies to place before the objects being linked to create a
13185# shared library.
13186predeps=$lt_predeps_CXX
13187
13188# Dependencies to place after the objects being linked to create a
13189# shared library.
13190postdeps=$lt_postdeps_CXX
13191
13192# The library search path used internally by the compiler when linking
13193# a shared library.
13194compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13195
13196# Method to check whether dependent libraries are shared objects.
13197deplibs_check_method=$lt_deplibs_check_method
13198
13199# Command to use when deplibs_check_method == file_magic.
13200file_magic_cmd=$lt_file_magic_cmd
13201
13202# Flag that allows shared libraries with undefined symbols to be built.
13203allow_undefined_flag=$lt_allow_undefined_flag_CXX
13204
13205# Flag that forces no undefined symbols.
13206no_undefined_flag=$lt_no_undefined_flag_CXX
13207
13208# Commands used to finish a libtool library installation in a directory.
13209finish_cmds=$lt_finish_cmds
13210
13211# Same as above, but a single script fragment to be evaled but not shown.
13212finish_eval=$lt_finish_eval
13213
13214# Take the output of nm and produce a listing of raw symbols and C names.
13215global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13216
13217# Transform the output of nm in a proper C declaration
13218global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13219
13220# Transform the output of nm in a C name address pair
13221global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13222
13223# This is the shared library runtime path variable.
13224runpath_var=$runpath_var
13225
13226# This is the shared library path variable.
13227shlibpath_var=$shlibpath_var
13228
13229# Is shlibpath searched before the hard-coded library search path?
13230shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13231
13232# How to hardcode a shared library path into an executable.
13233hardcode_action=$hardcode_action_CXX
13234
13235# Whether we should hardcode library paths into libraries.
13236hardcode_into_libs=$hardcode_into_libs
13237
13238# Flag to hardcode \$libdir into a binary during linking.
13239# This must work even if \$libdir does not exist.
13240hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13241
13242# If ld is used when linking, flag to hardcode \$libdir into
13243# a binary during linking. This must work even if \$libdir does
13244# not exist.
13245hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13246
13247# Whether we need a single -rpath flag with a separated argument.
13248hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13249
13250# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13251# resulting binary.
13252hardcode_direct=$hardcode_direct_CXX
13253
13254# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13255# resulting binary.
13256hardcode_minus_L=$hardcode_minus_L_CXX
13257
13258# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13259# the resulting binary.
13260hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13261
13262# Set to yes if building a shared library automatically hardcodes DIR into the library
13263# and all subsequent libraries and executables linked against it.
13264hardcode_automatic=$hardcode_automatic_CXX
13265
13266# Variables whose values should be saved in libtool wrapper scripts and
13267# restored at relink time.
13268variables_saved_for_relink="$variables_saved_for_relink"
13269
13270# Whether libtool must link a program against all its dependency libraries.
13271link_all_deplibs=$link_all_deplibs_CXX
13272
13273# Compile-time system search path for libraries
13274sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13275
13276# Run-time system search path for libraries
13277sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13278
13279# Fix the shell variable \$srcfile for the compiler.
13280fix_srcfile_path="$fix_srcfile_path_CXX"
13281
13282# Set to yes if exported symbols are required.
13283always_export_symbols=$always_export_symbols_CXX
13284
13285# The commands to list exported symbols.
13286export_symbols_cmds=$lt_export_symbols_cmds_CXX
13287
13288# The commands to extract the exported symbol list from a shared archive.
13289extract_expsyms_cmds=$lt_extract_expsyms_cmds
13290
13291# Symbols that should not be listed in the preloaded symbols.
13292exclude_expsyms=$lt_exclude_expsyms_CXX
13293
13294# Symbols that must always be exported.
13295include_expsyms=$lt_include_expsyms_CXX
13296
13297# ### END LIBTOOL TAG CONFIG: $tagname
13298
13299__EOF__
13300
13301
13302else
13303  # If there is no Makefile yet, we rely on a make rule to execute
13304  # `config.status --recheck' to rerun these tests and create the
13305  # libtool script then.
13306  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13307  if test -f "$ltmain_in"; then
13308    test -f Makefile && make "$ltmain"
13309  fi
13310fi
13311
13312
13313ac_ext=c
13314ac_cpp='$CPP $CPPFLAGS'
13315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13317ac_compiler_gnu=$ac_cv_c_compiler_gnu
13318
13319CC=$lt_save_CC
13320LDCXX=$LD
13321LD=$lt_save_LD
13322GCC=$lt_save_GCC
13323with_gnu_ldcxx=$with_gnu_ld
13324with_gnu_ld=$lt_save_with_gnu_ld
13325lt_cv_path_LDCXX=$lt_cv_path_LD
13326lt_cv_path_LD=$lt_save_path_LD
13327lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13328lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13329
13330	else
13331	  tagname=""
13332	fi
13333	;;
13334
13335      F77)
13336	if test -n "$F77" && test "X$F77" != "Xno"; then
13337
13338ac_ext=f
13339ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13340ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13342
13343
13344archive_cmds_need_lc_F77=no
13345allow_undefined_flag_F77=
13346always_export_symbols_F77=no
13347archive_expsym_cmds_F77=
13348export_dynamic_flag_spec_F77=
13349hardcode_direct_F77=no
13350hardcode_libdir_flag_spec_F77=
13351hardcode_libdir_flag_spec_ld_F77=
13352hardcode_libdir_separator_F77=
13353hardcode_minus_L_F77=no
13354hardcode_automatic_F77=no
13355module_cmds_F77=
13356module_expsym_cmds_F77=
13357link_all_deplibs_F77=unknown
13358old_archive_cmds_F77=$old_archive_cmds
13359no_undefined_flag_F77=
13360whole_archive_flag_spec_F77=
13361enable_shared_with_static_runtimes_F77=no
13362
13363# Source file extension for f77 test sources.
13364ac_ext=f
13365
13366# Object file extension for compiled f77 test sources.
13367objext=o
13368objext_F77=$objext
13369
13370# Code to be used in simple compile tests
13371lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13372
13373# Code to be used in simple link tests
13374lt_simple_link_test_code="      program t\n      end\n"
13375
13376# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13377
13378# If no C compiler was specified, use CC.
13379LTCC=${LTCC-"$CC"}
13380
13381# Allow CC to be a program name with arguments.
13382compiler=$CC
13383
13384
13385# save warnings/boilerplate of simple test code
13386ac_outfile=conftest.$ac_objext
13387printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13388eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13389_lt_compiler_boilerplate=`cat conftest.err`
13390$rm conftest*
13391
13392ac_outfile=conftest.$ac_objext
13393printf "$lt_simple_link_test_code" >conftest.$ac_ext
13394eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13395_lt_linker_boilerplate=`cat conftest.err`
13396$rm conftest*
13397
13398
13399# Allow CC to be a program name with arguments.
13400lt_save_CC="$CC"
13401CC=${F77-"f77"}
13402compiler=$CC
13403compiler_F77=$CC
13404for cc_temp in $compiler""; do
13405  case $cc_temp in
13406    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13407    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13408    \-*) ;;
13409    *) break;;
13410  esac
13411done
13412cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13413
13414
13415echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13416echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13417echo "$as_me:$LINENO: result: $can_build_shared" >&5
13418echo "${ECHO_T}$can_build_shared" >&6
13419
13420echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13421echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13422test "$can_build_shared" = "no" && enable_shared=no
13423
13424# On AIX, shared libraries and static libraries use the same namespace, and
13425# are all built from PIC.
13426case $host_os in
13427aix3*)
13428  test "$enable_shared" = yes && enable_static=no
13429  if test -n "$RANLIB"; then
13430    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13431    postinstall_cmds='$RANLIB $lib'
13432  fi
13433  ;;
13434aix4* | aix5*)
13435  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13436    test "$enable_shared" = yes && enable_static=no
13437  fi
13438  ;;
13439esac
13440echo "$as_me:$LINENO: result: $enable_shared" >&5
13441echo "${ECHO_T}$enable_shared" >&6
13442
13443echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13444echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13445# Make sure either enable_shared or enable_static is yes.
13446test "$enable_shared" = yes || enable_static=yes
13447echo "$as_me:$LINENO: result: $enable_static" >&5
13448echo "${ECHO_T}$enable_static" >&6
13449
13450test "$ld_shlibs_F77" = no && can_build_shared=no
13451
13452GCC_F77="$G77"
13453LD_F77="$LD"
13454
13455lt_prog_compiler_wl_F77=
13456lt_prog_compiler_pic_F77=
13457lt_prog_compiler_static_F77=
13458
13459echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13460echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13461
13462  if test "$GCC" = yes; then
13463    lt_prog_compiler_wl_F77='-Wl,'
13464    lt_prog_compiler_static_F77='-static'
13465
13466    case $host_os in
13467      aix*)
13468      # All AIX code is PIC.
13469      if test "$host_cpu" = ia64; then
13470	# AIX 5 now supports IA64 processor
13471	lt_prog_compiler_static_F77='-Bstatic'
13472      fi
13473      ;;
13474
13475    amigaos*)
13476      # FIXME: we need at least 68020 code to build shared libraries, but
13477      # adding the `-m68020' flag to GCC prevents building anything better,
13478      # like `-m68040'.
13479      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13480      ;;
13481
13482    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13483      # PIC is the default for these OSes.
13484      ;;
13485
13486    mingw* | pw32* | os2*)
13487      # This hack is so that the source file can tell whether it is being
13488      # built for inclusion in a dll (and should export symbols for example).
13489      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13490      ;;
13491
13492    darwin* | rhapsody*)
13493      # PIC is the default on this platform
13494      # Common symbols not allowed in MH_DYLIB files
13495      lt_prog_compiler_pic_F77='-fno-common'
13496      ;;
13497
13498    msdosdjgpp*)
13499      # Just because we use GCC doesn't mean we suddenly get shared libraries
13500      # on systems that don't support them.
13501      lt_prog_compiler_can_build_shared_F77=no
13502      enable_shared=no
13503      ;;
13504
13505    sysv4*MP*)
13506      if test -d /usr/nec; then
13507	lt_prog_compiler_pic_F77=-Kconform_pic
13508      fi
13509      ;;
13510
13511    hpux*)
13512      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13513      # not for PA HP-UX.
13514      case $host_cpu in
13515      hppa*64*|ia64*)
13516	# +Z the default
13517	;;
13518      *)
13519	lt_prog_compiler_pic_F77='-fPIC'
13520	;;
13521      esac
13522      ;;
13523
13524    *)
13525      lt_prog_compiler_pic_F77='-fPIC'
13526      ;;
13527    esac
13528  else
13529    # PORTME Check for flag to pass linker flags through the system compiler.
13530    case $host_os in
13531    aix*)
13532      lt_prog_compiler_wl_F77='-Wl,'
13533      if test "$host_cpu" = ia64; then
13534	# AIX 5 now supports IA64 processor
13535	lt_prog_compiler_static_F77='-Bstatic'
13536      else
13537	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13538      fi
13539      ;;
13540      darwin*)
13541        # PIC is the default on this platform
13542        # Common symbols not allowed in MH_DYLIB files
13543       case $cc_basename in
13544         xlc*)
13545         lt_prog_compiler_pic_F77='-qnocommon'
13546         lt_prog_compiler_wl_F77='-Wl,'
13547         ;;
13548       esac
13549       ;;
13550
13551    mingw* | pw32* | os2*)
13552      # This hack is so that the source file can tell whether it is being
13553      # built for inclusion in a dll (and should export symbols for example).
13554      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13555      ;;
13556
13557    hpux9* | hpux10* | hpux11*)
13558      lt_prog_compiler_wl_F77='-Wl,'
13559      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13560      # not for PA HP-UX.
13561      case $host_cpu in
13562      hppa*64*|ia64*)
13563	# +Z the default
13564	;;
13565      *)
13566	lt_prog_compiler_pic_F77='+Z'
13567	;;
13568      esac
13569      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13570      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13571      ;;
13572
13573    irix5* | irix6* | nonstopux*)
13574      lt_prog_compiler_wl_F77='-Wl,'
13575      # PIC (with -KPIC) is the default.
13576      lt_prog_compiler_static_F77='-non_shared'
13577      ;;
13578
13579    newsos6)
13580      lt_prog_compiler_pic_F77='-KPIC'
13581      lt_prog_compiler_static_F77='-Bstatic'
13582      ;;
13583
13584    linux*)
13585      case $cc_basename in
13586      icc* | ecc*)
13587	lt_prog_compiler_wl_F77='-Wl,'
13588	lt_prog_compiler_pic_F77='-KPIC'
13589	lt_prog_compiler_static_F77='-static'
13590        ;;
13591      pgcc* | pgf77* | pgf90* | pgf95*)
13592        # Portland Group compilers (*not* the Pentium gcc compiler,
13593	# which looks to be a dead project)
13594	lt_prog_compiler_wl_F77='-Wl,'
13595	lt_prog_compiler_pic_F77='-fpic'
13596	lt_prog_compiler_static_F77='-Bstatic'
13597        ;;
13598      ccc*)
13599        lt_prog_compiler_wl_F77='-Wl,'
13600        # All Alpha code is PIC.
13601        lt_prog_compiler_static_F77='-non_shared'
13602        ;;
13603      esac
13604      ;;
13605
13606    osf3* | osf4* | osf5*)
13607      lt_prog_compiler_wl_F77='-Wl,'
13608      # All OSF/1 code is PIC.
13609      lt_prog_compiler_static_F77='-non_shared'
13610      ;;
13611
13612    sco3.2v5*)
13613      lt_prog_compiler_pic_F77='-Kpic'
13614      lt_prog_compiler_static_F77='-dn'
13615      ;;
13616
13617    solaris*)
13618      lt_prog_compiler_pic_F77='-KPIC'
13619      lt_prog_compiler_static_F77='-Bstatic'
13620      case $cc_basename in
13621      f77* | f90* | f95*)
13622	lt_prog_compiler_wl_F77='-Qoption ld ';;
13623      *)
13624	lt_prog_compiler_wl_F77='-Wl,';;
13625      esac
13626      ;;
13627
13628    sunos4*)
13629      lt_prog_compiler_wl_F77='-Qoption ld '
13630      lt_prog_compiler_pic_F77='-PIC'
13631      lt_prog_compiler_static_F77='-Bstatic'
13632      ;;
13633
13634    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13635      lt_prog_compiler_wl_F77='-Wl,'
13636      lt_prog_compiler_pic_F77='-KPIC'
13637      lt_prog_compiler_static_F77='-Bstatic'
13638      ;;
13639
13640    sysv4*MP*)
13641      if test -d /usr/nec ;then
13642	lt_prog_compiler_pic_F77='-Kconform_pic'
13643	lt_prog_compiler_static_F77='-Bstatic'
13644      fi
13645      ;;
13646
13647    unicos*)
13648      lt_prog_compiler_wl_F77='-Wl,'
13649      lt_prog_compiler_can_build_shared_F77=no
13650      ;;
13651
13652    uts4*)
13653      lt_prog_compiler_pic_F77='-pic'
13654      lt_prog_compiler_static_F77='-Bstatic'
13655      ;;
13656
13657    *)
13658      lt_prog_compiler_can_build_shared_F77=no
13659      ;;
13660    esac
13661  fi
13662
13663echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13664echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13665
13666#
13667# Check to make sure the PIC flag actually works.
13668#
13669if test -n "$lt_prog_compiler_pic_F77"; then
13670
13671echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13672echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13673if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13674  echo $ECHO_N "(cached) $ECHO_C" >&6
13675else
13676  lt_prog_compiler_pic_works_F77=no
13677  ac_outfile=conftest.$ac_objext
13678   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13679   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13680   # Insert the option either (1) after the last *FLAGS variable, or
13681   # (2) before a word containing "conftest.", or (3) at the end.
13682   # Note that $ac_compile itself does not contain backslashes and begins
13683   # with a dollar sign (not a hyphen), so the echo should work correctly.
13684   # The option is referenced via a variable to avoid confusing sed.
13685   lt_compile=`echo "$ac_compile" | $SED \
13686   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13687   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13688   -e 's:$: $lt_compiler_flag:'`
13689   (eval echo "\"\$as_me:13689: $lt_compile\"" >&5)
13690   (eval "$lt_compile" 2>conftest.err)
13691   ac_status=$?
13692   cat conftest.err >&5
13693   echo "$as_me:13693: \$? = $ac_status" >&5
13694   if (exit $ac_status) && test -s "$ac_outfile"; then
13695     # The compiler can only warn and ignore the option if not recognized
13696     # So say no if there are warnings other than the usual output.
13697     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13698     $SED '/^$/d' conftest.err >conftest.er2
13699     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13700       lt_prog_compiler_pic_works_F77=yes
13701     fi
13702   fi
13703   $rm conftest*
13704
13705fi
13706echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13707echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13708
13709if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13710    case $lt_prog_compiler_pic_F77 in
13711     "" | " "*) ;;
13712     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13713     esac
13714else
13715    lt_prog_compiler_pic_F77=
13716     lt_prog_compiler_can_build_shared_F77=no
13717fi
13718
13719fi
13720case $host_os in
13721  # For platforms which do not support PIC, -DPIC is meaningless:
13722  *djgpp*)
13723    lt_prog_compiler_pic_F77=
13724    ;;
13725  *)
13726    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13727    ;;
13728esac
13729
13730echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13731echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13732if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13733  echo $ECHO_N "(cached) $ECHO_C" >&6
13734else
13735  lt_cv_prog_compiler_c_o_F77=no
13736   $rm -r conftest 2>/dev/null
13737   mkdir conftest
13738   cd conftest
13739   mkdir out
13740   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13741
13742   lt_compiler_flag="-o out/conftest2.$ac_objext"
13743   # Insert the option either (1) after the last *FLAGS variable, or
13744   # (2) before a word containing "conftest.", or (3) at the end.
13745   # Note that $ac_compile itself does not contain backslashes and begins
13746   # with a dollar sign (not a hyphen), so the echo should work correctly.
13747   lt_compile=`echo "$ac_compile" | $SED \
13748   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13749   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13750   -e 's:$: $lt_compiler_flag:'`
13751   (eval echo "\"\$as_me:13751: $lt_compile\"" >&5)
13752   (eval "$lt_compile" 2>out/conftest.err)
13753   ac_status=$?
13754   cat out/conftest.err >&5
13755   echo "$as_me:13755: \$? = $ac_status" >&5
13756   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13757   then
13758     # The compiler can only warn and ignore the option if not recognized
13759     # So say no if there are warnings
13760     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13761     $SED '/^$/d' out/conftest.err >out/conftest.er2
13762     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13763       lt_cv_prog_compiler_c_o_F77=yes
13764     fi
13765   fi
13766   chmod u+w . 2>&5
13767   $rm conftest*
13768   # SGI C++ compiler will create directory out/ii_files/ for
13769   # template instantiation
13770   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13771   $rm out/* && rmdir out
13772   cd ..
13773   rmdir conftest
13774   $rm conftest*
13775
13776fi
13777echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13778echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13779
13780
13781hard_links="nottested"
13782if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13783  # do not overwrite the value of need_locks provided by the user
13784  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13785echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13786  hard_links=yes
13787  $rm conftest*
13788  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13789  touch conftest.a
13790  ln conftest.a conftest.b 2>&5 || hard_links=no
13791  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13792  echo "$as_me:$LINENO: result: $hard_links" >&5
13793echo "${ECHO_T}$hard_links" >&6
13794  if test "$hard_links" = no; then
13795    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13796echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13797    need_locks=warn
13798  fi
13799else
13800  need_locks=no
13801fi
13802
13803echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13804echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13805
13806  runpath_var=
13807  allow_undefined_flag_F77=
13808  enable_shared_with_static_runtimes_F77=no
13809  archive_cmds_F77=
13810  archive_expsym_cmds_F77=
13811  old_archive_From_new_cmds_F77=
13812  old_archive_from_expsyms_cmds_F77=
13813  export_dynamic_flag_spec_F77=
13814  whole_archive_flag_spec_F77=
13815  thread_safe_flag_spec_F77=
13816  hardcode_libdir_flag_spec_F77=
13817  hardcode_libdir_flag_spec_ld_F77=
13818  hardcode_libdir_separator_F77=
13819  hardcode_direct_F77=no
13820  hardcode_minus_L_F77=no
13821  hardcode_shlibpath_var_F77=unsupported
13822  link_all_deplibs_F77=unknown
13823  hardcode_automatic_F77=no
13824  module_cmds_F77=
13825  module_expsym_cmds_F77=
13826  always_export_symbols_F77=no
13827  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13828  # include_expsyms should be a list of space-separated symbols to be *always*
13829  # included in the symbol list
13830  include_expsyms_F77=
13831  # exclude_expsyms can be an extended regexp of symbols to exclude
13832  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13833  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13834  # as well as any symbol that contains `d'.
13835  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13836  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13837  # platforms (ab)use it in PIC code, but their linkers get confused if
13838  # the symbol is explicitly referenced.  Since portable code cannot
13839  # rely on this symbol name, it's probably fine to never include it in
13840  # preloaded symbol tables.
13841  extract_expsyms_cmds=
13842  # Just being paranoid about ensuring that cc_basename is set.
13843  for cc_temp in $compiler""; do
13844  case $cc_temp in
13845    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13846    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13847    \-*) ;;
13848    *) break;;
13849  esac
13850done
13851cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13852
13853  case $host_os in
13854  cygwin* | mingw* | pw32*)
13855    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13856    # When not using gcc, we currently assume that we are using
13857    # Microsoft Visual C++.
13858    if test "$GCC" != yes; then
13859      with_gnu_ld=no
13860    fi
13861    ;;
13862  openbsd*)
13863    with_gnu_ld=no
13864    ;;
13865  esac
13866
13867  ld_shlibs_F77=yes
13868  if test "$with_gnu_ld" = yes; then
13869    # If archive_cmds runs LD, not CC, wlarc should be empty
13870    wlarc='${wl}'
13871
13872    # Set some defaults for GNU ld with shared library support. These
13873    # are reset later if shared libraries are not supported. Putting them
13874    # here allows them to be overridden if necessary.
13875    runpath_var=LD_RUN_PATH
13876    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13877    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13878    # ancient GNU ld didn't support --whole-archive et. al.
13879    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13880	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13881      else
13882  	whole_archive_flag_spec_F77=
13883    fi
13884    supports_anon_versioning=no
13885    case `$LD -v 2>/dev/null` in
13886      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13887      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13888      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13889      *\ 2.11.*) ;; # other 2.11 versions
13890      *) supports_anon_versioning=yes ;;
13891    esac
13892
13893    # See if GNU ld supports shared libraries.
13894    case $host_os in
13895    aix3* | aix4* | aix5*)
13896      # On AIX/PPC, the GNU linker is very broken
13897      if test "$host_cpu" != ia64; then
13898	ld_shlibs_F77=no
13899	cat <<EOF 1>&2
13900
13901*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13902*** to be unable to reliably create shared libraries on AIX.
13903*** Therefore, libtool is disabling shared libraries support.  If you
13904*** really care for shared libraries, you may want to modify your PATH
13905*** so that a non-GNU linker is found, and then restart.
13906
13907EOF
13908      fi
13909      ;;
13910
13911    amigaos*)
13912      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)'
13913      hardcode_libdir_flag_spec_F77='-L$libdir'
13914      hardcode_minus_L_F77=yes
13915
13916      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13917      # that the semantics of dynamic libraries on AmigaOS, at least up
13918      # to version 4, is to share data among multiple programs linked
13919      # with the same dynamic library.  Since this doesn't match the
13920      # behavior of shared libraries on other platforms, we can't use
13921      # them.
13922      ld_shlibs_F77=no
13923      ;;
13924
13925    beos*)
13926      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13927	allow_undefined_flag_F77=unsupported
13928	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13929	# support --undefined.  This deserves some investigation.  FIXME
13930	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13931      else
13932	ld_shlibs_F77=no
13933      fi
13934      ;;
13935
13936    cygwin* | mingw* | pw32*)
13937      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13938      # as there is no search path for DLLs.
13939      hardcode_libdir_flag_spec_F77='-L$libdir'
13940      allow_undefined_flag_F77=unsupported
13941      always_export_symbols_F77=no
13942      enable_shared_with_static_runtimes_F77=yes
13943      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13944
13945      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13946        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13947	# If the export-symbols file already is a .def file (1st line
13948	# is EXPORTS), use it as is; otherwise, prepend...
13949	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13950	  cp $export_symbols $output_objdir/$soname.def;
13951	else
13952	  echo EXPORTS > $output_objdir/$soname.def;
13953	  cat $export_symbols >> $output_objdir/$soname.def;
13954	fi~
13955	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13956      else
13957	ld_shlibs_F77=no
13958      fi
13959      ;;
13960
13961    linux*)
13962      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13963	tmp_addflag=
13964	case $cc_basename,$host_cpu in
13965	pgcc*)				# Portland Group C compiler
13966	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13967	  tmp_addflag=' $pic_flag'
13968	  ;;
13969	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13970	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13971	  tmp_addflag=' $pic_flag -Mnomain' ;;
13972	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13973	  tmp_addflag=' -i_dynamic' ;;
13974	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13975	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13976	ifc* | ifort*)			# Intel Fortran compiler
13977	  tmp_addflag=' -nofor_main' ;;
13978	esac
13979	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13980
13981	if test $supports_anon_versioning = yes; then
13982	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13983  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13984  $echo "local: *; };" >> $output_objdir/$libname.ver~
13985	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13986	fi
13987      else
13988	ld_shlibs_F77=no
13989      fi
13990      ;;
13991
13992    netbsd*)
13993      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13994	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13995	wlarc=
13996      else
13997	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13998	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13999      fi
14000      ;;
14001
14002    solaris* | sysv5*)
14003      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14004	ld_shlibs_F77=no
14005	cat <<EOF 1>&2
14006
14007*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14008*** create shared libraries on Solaris systems.  Therefore, libtool
14009*** is disabling shared libraries support.  We urge you to upgrade GNU
14010*** binutils to release 2.9.1 or newer.  Another option is to modify
14011*** your PATH or compiler configuration so that the native linker is
14012*** used, and then restart.
14013
14014EOF
14015      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14016	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14017	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14018      else
14019	ld_shlibs_F77=no
14020      fi
14021      ;;
14022
14023    sunos4*)
14024      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14025      wlarc=
14026      hardcode_direct_F77=yes
14027      hardcode_shlibpath_var_F77=no
14028      ;;
14029
14030    *)
14031      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14032	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14033	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14034      else
14035	ld_shlibs_F77=no
14036      fi
14037      ;;
14038    esac
14039
14040    if test "$ld_shlibs_F77" = no; then
14041      runpath_var=
14042      hardcode_libdir_flag_spec_F77=
14043      export_dynamic_flag_spec_F77=
14044      whole_archive_flag_spec_F77=
14045    fi
14046  else
14047    # PORTME fill in a description of your system's linker (not GNU ld)
14048    case $host_os in
14049    aix3*)
14050      allow_undefined_flag_F77=unsupported
14051      always_export_symbols_F77=yes
14052      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'
14053      # Note: this linker hardcodes the directories in LIBPATH if there
14054      # are no directories specified by -L.
14055      hardcode_minus_L_F77=yes
14056      if test "$GCC" = yes && test -z "$link_static_flag"; then
14057	# Neither direct hardcoding nor static linking is supported with a
14058	# broken collect2.
14059	hardcode_direct_F77=unsupported
14060      fi
14061      ;;
14062
14063    aix4* | aix5*)
14064      if test "$host_cpu" = ia64; then
14065	# On IA64, the linker does run time linking by default, so we don't
14066	# have to do anything special.
14067	aix_use_runtimelinking=no
14068	exp_sym_flag='-Bexport'
14069	no_entry_flag=""
14070      else
14071	# If we're using GNU nm, then we don't want the "-C" option.
14072	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14073	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14074	  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'
14075	else
14076	  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'
14077	fi
14078	aix_use_runtimelinking=no
14079
14080	# Test if we are trying to use run time linking or normal
14081	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14082	# need to do runtime linking.
14083	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14084	  for ld_flag in $LDFLAGS; do
14085  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14086  	    aix_use_runtimelinking=yes
14087  	    break
14088  	  fi
14089	  done
14090	esac
14091
14092	exp_sym_flag='-bexport'
14093	no_entry_flag='-bnoentry'
14094      fi
14095
14096      # When large executables or shared objects are built, AIX ld can
14097      # have problems creating the table of contents.  If linking a library
14098      # or program results in "error TOC overflow" add -mminimal-toc to
14099      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14100      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14101
14102      archive_cmds_F77=''
14103      hardcode_direct_F77=yes
14104      hardcode_libdir_separator_F77=':'
14105      link_all_deplibs_F77=yes
14106
14107      if test "$GCC" = yes; then
14108	case $host_os in aix4.[012]|aix4.[012].*)
14109	# We only want to do this on AIX 4.2 and lower, the check
14110	# below for broken collect2 doesn't work under 4.3+
14111	  collect2name=`${CC} -print-prog-name=collect2`
14112	  if test -f "$collect2name" && \
14113  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14114	  then
14115  	  # We have reworked collect2
14116  	  hardcode_direct_F77=yes
14117	  else
14118  	  # We have old collect2
14119  	  hardcode_direct_F77=unsupported
14120  	  # It fails to find uninstalled libraries when the uninstalled
14121  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14122  	  # to unsupported forces relinking
14123  	  hardcode_minus_L_F77=yes
14124  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14125  	  hardcode_libdir_separator_F77=
14126	  fi
14127	esac
14128	shared_flag='-shared'
14129	if test "$aix_use_runtimelinking" = yes; then
14130	  shared_flag="$shared_flag "'${wl}-G'
14131	fi
14132      else
14133	# not using gcc
14134	if test "$host_cpu" = ia64; then
14135  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14136  	# chokes on -Wl,-G. The following line is correct:
14137	  shared_flag='-G'
14138	else
14139  	if test "$aix_use_runtimelinking" = yes; then
14140	    shared_flag='${wl}-G'
14141	  else
14142	    shared_flag='${wl}-bM:SRE'
14143  	fi
14144	fi
14145      fi
14146
14147      # It seems that -bexpall does not export symbols beginning with
14148      # underscore (_), so it is better to generate a list of symbols to export.
14149      always_export_symbols_F77=yes
14150      if test "$aix_use_runtimelinking" = yes; then
14151	# Warning - without using the other runtime loading flags (-brtl),
14152	# -berok will link without error, but may produce a broken library.
14153	allow_undefined_flag_F77='-berok'
14154       # Determine the default libpath from the value encoded in an empty executable.
14155       cat >conftest.$ac_ext <<_ACEOF
14156      program main
14157
14158      end
14159_ACEOF
14160rm -f conftest.$ac_objext conftest$ac_exeext
14161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14162  (eval $ac_link) 2>conftest.er1
14163  ac_status=$?
14164  grep -v '^ *+' conftest.er1 >conftest.err
14165  rm -f conftest.er1
14166  cat conftest.err >&5
14167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168  (exit $ac_status); } &&
14169	 { ac_try='test -z "$ac_f77_werror_flag"
14170			 || test ! -s conftest.err'
14171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172  (eval $ac_try) 2>&5
14173  ac_status=$?
14174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175  (exit $ac_status); }; } &&
14176	 { ac_try='test -s conftest$ac_exeext'
14177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178  (eval $ac_try) 2>&5
14179  ac_status=$?
14180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181  (exit $ac_status); }; }; then
14182
14183aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14184}'`
14185# Check for a 64-bit object if we didn't find anything.
14186if 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; }
14187}'`; fi
14188else
14189  echo "$as_me: failed program was:" >&5
14190sed 's/^/| /' conftest.$ac_ext >&5
14191
14192fi
14193rm -f conftest.err conftest.$ac_objext \
14194      conftest$ac_exeext conftest.$ac_ext
14195if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14196
14197       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14198	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"
14199       else
14200	if test "$host_cpu" = ia64; then
14201	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14202	  allow_undefined_flag_F77="-z nodefs"
14203	  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"
14204	else
14205	 # Determine the default libpath from the value encoded in an empty executable.
14206	 cat >conftest.$ac_ext <<_ACEOF
14207      program main
14208
14209      end
14210_ACEOF
14211rm -f conftest.$ac_objext conftest$ac_exeext
14212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14213  (eval $ac_link) 2>conftest.er1
14214  ac_status=$?
14215  grep -v '^ *+' conftest.er1 >conftest.err
14216  rm -f conftest.er1
14217  cat conftest.err >&5
14218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219  (exit $ac_status); } &&
14220	 { ac_try='test -z "$ac_f77_werror_flag"
14221			 || test ! -s conftest.err'
14222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223  (eval $ac_try) 2>&5
14224  ac_status=$?
14225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226  (exit $ac_status); }; } &&
14227	 { ac_try='test -s conftest$ac_exeext'
14228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229  (eval $ac_try) 2>&5
14230  ac_status=$?
14231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232  (exit $ac_status); }; }; then
14233
14234aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14235}'`
14236# Check for a 64-bit object if we didn't find anything.
14237if 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; }
14238}'`; fi
14239else
14240  echo "$as_me: failed program was:" >&5
14241sed 's/^/| /' conftest.$ac_ext >&5
14242
14243fi
14244rm -f conftest.err conftest.$ac_objext \
14245      conftest$ac_exeext conftest.$ac_ext
14246if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14247
14248	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14249	  # Warning - without using the other run time loading flags,
14250	  # -berok will link without error, but may produce a broken library.
14251	  no_undefined_flag_F77=' ${wl}-bernotok'
14252	  allow_undefined_flag_F77=' ${wl}-berok'
14253	  # -bexpall does not export symbols beginning with underscore (_)
14254	  always_export_symbols_F77=yes
14255	  # Exported symbols can be pulled into shared objects from archives
14256	  whole_archive_flag_spec_F77=' '
14257	  archive_cmds_need_lc_F77=yes
14258	  # This is similar to how AIX traditionally builds its shared libraries.
14259	  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'
14260	fi
14261      fi
14262      ;;
14263
14264    amigaos*)
14265      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)'
14266      hardcode_libdir_flag_spec_F77='-L$libdir'
14267      hardcode_minus_L_F77=yes
14268      # see comment about different semantics on the GNU ld section
14269      ld_shlibs_F77=no
14270      ;;
14271
14272    bsdi[45]*)
14273      export_dynamic_flag_spec_F77=-rdynamic
14274      ;;
14275
14276    cygwin* | mingw* | pw32*)
14277      # When not using gcc, we currently assume that we are using
14278      # Microsoft Visual C++.
14279      # hardcode_libdir_flag_spec is actually meaningless, as there is
14280      # no search path for DLLs.
14281      hardcode_libdir_flag_spec_F77=' '
14282      allow_undefined_flag_F77=unsupported
14283      # Tell ltmain to make .lib files, not .a files.
14284      libext=lib
14285      # Tell ltmain to make .dll files, not .so files.
14286      shrext_cmds=".dll"
14287      # FIXME: Setting linknames here is a bad hack.
14288      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14289      # The linker will automatically build a .lib file if we build a DLL.
14290      old_archive_From_new_cmds_F77='true'
14291      # FIXME: Should let the user specify the lib program.
14292      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14293      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14294      enable_shared_with_static_runtimes_F77=yes
14295      ;;
14296
14297    darwin* | rhapsody*)
14298      case $host_os in
14299        rhapsody* | darwin1.[012])
14300         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14301         ;;
14302       *) # Darwin 1.3 on
14303         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14304           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14305         else
14306           case ${MACOSX_DEPLOYMENT_TARGET} in
14307             10.[012])
14308               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14309               ;;
14310             10.*)
14311               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14312               ;;
14313           esac
14314         fi
14315         ;;
14316      esac
14317      archive_cmds_need_lc_F77=no
14318      hardcode_direct_F77=no
14319      hardcode_automatic_F77=yes
14320      hardcode_shlibpath_var_F77=unsupported
14321      whole_archive_flag_spec_F77=''
14322      link_all_deplibs_F77=yes
14323    if test "$GCC" = yes ; then
14324    	output_verbose_link_cmd='echo'
14325        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14326      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14327      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14328      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14329      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}'
14330    else
14331      case $cc_basename in
14332        xlc*)
14333         output_verbose_link_cmd='echo'
14334         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14335         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14336          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14337         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14338          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}'
14339          ;;
14340       *)
14341         ld_shlibs_F77=no
14342          ;;
14343      esac
14344    fi
14345      ;;
14346
14347    dgux*)
14348      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349      hardcode_libdir_flag_spec_F77='-L$libdir'
14350      hardcode_shlibpath_var_F77=no
14351      ;;
14352
14353    freebsd1*)
14354      ld_shlibs_F77=no
14355      ;;
14356
14357    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14358    # support.  Future versions do this automatically, but an explicit c++rt0.o
14359    # does not break anything, and helps significantly (at the cost of a little
14360    # extra space).
14361    freebsd2.2*)
14362      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14363      hardcode_libdir_flag_spec_F77='-R$libdir'
14364      hardcode_direct_F77=yes
14365      hardcode_shlibpath_var_F77=no
14366      ;;
14367
14368    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14369    freebsd2*)
14370      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14371      hardcode_direct_F77=yes
14372      hardcode_minus_L_F77=yes
14373      hardcode_shlibpath_var_F77=no
14374      ;;
14375
14376    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14377    freebsd* | kfreebsd*-gnu | dragonfly*)
14378      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14379      hardcode_libdir_flag_spec_F77='-R$libdir'
14380      hardcode_direct_F77=yes
14381      hardcode_shlibpath_var_F77=no
14382      ;;
14383
14384    hpux9*)
14385      if test "$GCC" = yes; then
14386	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'
14387      else
14388	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'
14389      fi
14390      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14391      hardcode_libdir_separator_F77=:
14392      hardcode_direct_F77=yes
14393
14394      # hardcode_minus_L: Not really in the search PATH,
14395      # but as the default location of the library.
14396      hardcode_minus_L_F77=yes
14397      export_dynamic_flag_spec_F77='${wl}-E'
14398      ;;
14399
14400    hpux10* | hpux11*)
14401      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14402	case $host_cpu in
14403	hppa*64*|ia64*)
14404	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14405	  ;;
14406	*)
14407	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14408	  ;;
14409	esac
14410      else
14411	case $host_cpu in
14412	hppa*64*|ia64*)
14413	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14414	  ;;
14415	*)
14416	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14417	  ;;
14418	esac
14419      fi
14420      if test "$with_gnu_ld" = no; then
14421	case $host_cpu in
14422	hppa*64*)
14423	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14424	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14425	  hardcode_libdir_separator_F77=:
14426	  hardcode_direct_F77=no
14427	  hardcode_shlibpath_var_F77=no
14428	  ;;
14429	ia64*)
14430	  hardcode_libdir_flag_spec_F77='-L$libdir'
14431	  hardcode_direct_F77=no
14432	  hardcode_shlibpath_var_F77=no
14433
14434	  # hardcode_minus_L: Not really in the search PATH,
14435	  # but as the default location of the library.
14436	  hardcode_minus_L_F77=yes
14437	  ;;
14438	*)
14439	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14440	  hardcode_libdir_separator_F77=:
14441	  hardcode_direct_F77=yes
14442	  export_dynamic_flag_spec_F77='${wl}-E'
14443
14444	  # hardcode_minus_L: Not really in the search PATH,
14445	  # but as the default location of the library.
14446	  hardcode_minus_L_F77=yes
14447	  ;;
14448	esac
14449      fi
14450      ;;
14451
14452    irix5* | irix6* | nonstopux*)
14453      if test "$GCC" = yes; then
14454	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'
14455      else
14456	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'
14457	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14458      fi
14459      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14460      hardcode_libdir_separator_F77=:
14461      link_all_deplibs_F77=yes
14462      ;;
14463
14464    netbsd*)
14465      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14466	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14467      else
14468	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14469      fi
14470      hardcode_libdir_flag_spec_F77='-R$libdir'
14471      hardcode_direct_F77=yes
14472      hardcode_shlibpath_var_F77=no
14473      ;;
14474
14475    newsos6)
14476      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14477      hardcode_direct_F77=yes
14478      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14479      hardcode_libdir_separator_F77=:
14480      hardcode_shlibpath_var_F77=no
14481      ;;
14482
14483    openbsd*)
14484      hardcode_direct_F77=yes
14485      hardcode_shlibpath_var_F77=no
14486      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14487	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14488	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14489	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14490	export_dynamic_flag_spec_F77='${wl}-E'
14491      else
14492       case $host_os in
14493	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14494	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14495	   hardcode_libdir_flag_spec_F77='-R$libdir'
14496	   ;;
14497	 *)
14498	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14499	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14500	   ;;
14501       esac
14502      fi
14503      ;;
14504
14505    os2*)
14506      hardcode_libdir_flag_spec_F77='-L$libdir'
14507      hardcode_minus_L_F77=yes
14508      allow_undefined_flag_F77=unsupported
14509      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'
14510      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14511      ;;
14512
14513    osf3*)
14514      if test "$GCC" = yes; then
14515	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14516	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'
14517      else
14518	allow_undefined_flag_F77=' -expect_unresolved \*'
14519	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'
14520      fi
14521      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14522      hardcode_libdir_separator_F77=:
14523      ;;
14524
14525    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14526      if test "$GCC" = yes; then
14527	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14528	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'
14529	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14530      else
14531	allow_undefined_flag_F77=' -expect_unresolved \*'
14532	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'
14533	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~
14534	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14535
14536	# Both c and cxx compiler support -rpath directly
14537	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14538      fi
14539      hardcode_libdir_separator_F77=:
14540      ;;
14541
14542    sco3.2v5*)
14543      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14544      hardcode_shlibpath_var_F77=no
14545      export_dynamic_flag_spec_F77='${wl}-Bexport'
14546      runpath_var=LD_RUN_PATH
14547      hardcode_runpath_var=yes
14548      ;;
14549
14550    solaris*)
14551      no_undefined_flag_F77=' -z text'
14552      if test "$GCC" = yes; then
14553	wlarc='${wl}'
14554	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14555	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14556	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14557      else
14558	wlarc=''
14559	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14560	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14561  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14562      fi
14563      hardcode_libdir_flag_spec_F77='-R$libdir'
14564      hardcode_shlibpath_var_F77=no
14565      case $host_os in
14566      solaris2.[0-5] | solaris2.[0-5].*) ;;
14567      *)
14568 	# The compiler driver will combine linker options so we
14569 	# cannot just pass the convience library names through
14570 	# without $wl, iff we do not link with $LD.
14571 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14572 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14573 	case $wlarc in
14574 	'')
14575 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14576 	*)
14577 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14578 	esac ;;
14579      esac
14580      link_all_deplibs_F77=yes
14581      ;;
14582
14583    sunos4*)
14584      if test "x$host_vendor" = xsequent; then
14585	# Use $CC to link under sequent, because it throws in some extra .o
14586	# files that make .init and .fini sections work.
14587	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14588      else
14589	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14590      fi
14591      hardcode_libdir_flag_spec_F77='-L$libdir'
14592      hardcode_direct_F77=yes
14593      hardcode_minus_L_F77=yes
14594      hardcode_shlibpath_var_F77=no
14595      ;;
14596
14597    sysv4)
14598      case $host_vendor in
14599	sni)
14600	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14601	  hardcode_direct_F77=yes # is this really true???
14602	;;
14603	siemens)
14604	  ## LD is ld it makes a PLAMLIB
14605	  ## CC just makes a GrossModule.
14606	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14607	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14608	  hardcode_direct_F77=no
14609        ;;
14610	motorola)
14611	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14612	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14613	;;
14614      esac
14615      runpath_var='LD_RUN_PATH'
14616      hardcode_shlibpath_var_F77=no
14617      ;;
14618
14619    sysv4.3*)
14620      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14621      hardcode_shlibpath_var_F77=no
14622      export_dynamic_flag_spec_F77='-Bexport'
14623      ;;
14624
14625    sysv4*MP*)
14626      if test -d /usr/nec; then
14627	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14628	hardcode_shlibpath_var_F77=no
14629	runpath_var=LD_RUN_PATH
14630	hardcode_runpath_var=yes
14631	ld_shlibs_F77=yes
14632      fi
14633      ;;
14634
14635    sysv4.2uw2*)
14636      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14637      hardcode_direct_F77=yes
14638      hardcode_minus_L_F77=no
14639      hardcode_shlibpath_var_F77=no
14640      hardcode_runpath_var=yes
14641      runpath_var=LD_RUN_PATH
14642      ;;
14643
14644   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14645      no_undefined_flag_F77='${wl}-z ${wl}text'
14646      if test "$GCC" = yes; then
14647	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14648      else
14649	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14650      fi
14651      runpath_var='LD_RUN_PATH'
14652      hardcode_shlibpath_var_F77=no
14653      ;;
14654
14655    sysv5*)
14656      no_undefined_flag_F77=' -z text'
14657      # $CC -shared without GNU ld will not create a library from C++
14658      # object files and a static libstdc++, better avoid it by now
14659      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14660      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14661  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14662      hardcode_libdir_flag_spec_F77=
14663      hardcode_shlibpath_var_F77=no
14664      runpath_var='LD_RUN_PATH'
14665      ;;
14666
14667    uts4*)
14668      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669      hardcode_libdir_flag_spec_F77='-L$libdir'
14670      hardcode_shlibpath_var_F77=no
14671      ;;
14672
14673    *)
14674      ld_shlibs_F77=no
14675      ;;
14676    esac
14677  fi
14678
14679echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14680echo "${ECHO_T}$ld_shlibs_F77" >&6
14681test "$ld_shlibs_F77" = no && can_build_shared=no
14682
14683variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14684if test "$GCC" = yes; then
14685  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14686fi
14687
14688#
14689# Do we need to explicitly link libc?
14690#
14691case "x$archive_cmds_need_lc_F77" in
14692x|xyes)
14693  # Assume -lc should be added
14694  archive_cmds_need_lc_F77=yes
14695
14696  if test "$enable_shared" = yes && test "$GCC" = yes; then
14697    case $archive_cmds_F77 in
14698    *'~'*)
14699      # FIXME: we may have to deal with multi-command sequences.
14700      ;;
14701    '$CC '*)
14702      # Test whether the compiler implicitly links with -lc since on some
14703      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14704      # to ld, don't add -lc before -lgcc.
14705      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14706echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14707      $rm conftest*
14708      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14709
14710      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14711  (eval $ac_compile) 2>&5
14712  ac_status=$?
14713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714  (exit $ac_status); } 2>conftest.err; then
14715        soname=conftest
14716        lib=conftest
14717        libobjs=conftest.$ac_objext
14718        deplibs=
14719        wl=$lt_prog_compiler_wl_F77
14720        compiler_flags=-v
14721        linker_flags=-v
14722        verstring=
14723        output_objdir=.
14724        libname=conftest
14725        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14726        allow_undefined_flag_F77=
14727        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14728  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14729  ac_status=$?
14730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731  (exit $ac_status); }
14732        then
14733	  archive_cmds_need_lc_F77=no
14734        else
14735	  archive_cmds_need_lc_F77=yes
14736        fi
14737        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14738      else
14739        cat conftest.err 1>&5
14740      fi
14741      $rm conftest*
14742      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14743echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14744      ;;
14745    esac
14746  fi
14747  ;;
14748esac
14749
14750echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14751echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14752library_names_spec=
14753libname_spec='lib$name'
14754soname_spec=
14755shrext_cmds=".so"
14756postinstall_cmds=
14757postuninstall_cmds=
14758finish_cmds=
14759finish_eval=
14760shlibpath_var=
14761shlibpath_overrides_runpath=unknown
14762version_type=none
14763dynamic_linker="$host_os ld.so"
14764sys_lib_dlsearch_path_spec="/lib /usr/lib"
14765if test "$GCC" = yes; then
14766  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14767  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14768    # if the path contains ";" then we assume it to be the separator
14769    # otherwise default to the standard path separator (i.e. ":") - it is
14770    # assumed that no part of a normal pathname contains ";" but that should
14771    # okay in the real world where ";" in dirpaths is itself problematic.
14772    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14773  else
14774    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14775  fi
14776else
14777  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14778fi
14779need_lib_prefix=unknown
14780hardcode_into_libs=no
14781
14782# when you set need_version to no, make sure it does not cause -set_version
14783# flags to be left without arguments
14784need_version=unknown
14785
14786case $host_os in
14787aix3*)
14788  version_type=linux
14789  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14790  shlibpath_var=LIBPATH
14791
14792  # AIX 3 has no versioning support, so we append a major version to the name.
14793  soname_spec='${libname}${release}${shared_ext}$major'
14794  ;;
14795
14796aix4* | aix5*)
14797  version_type=linux
14798  need_lib_prefix=no
14799  need_version=no
14800  hardcode_into_libs=yes
14801  if test "$host_cpu" = ia64; then
14802    # AIX 5 supports IA64
14803    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14804    shlibpath_var=LD_LIBRARY_PATH
14805  else
14806    # With GCC up to 2.95.x, collect2 would create an import file
14807    # for dependence libraries.  The import file would start with
14808    # the line `#! .'.  This would cause the generated library to
14809    # depend on `.', always an invalid library.  This was fixed in
14810    # development snapshots of GCC prior to 3.0.
14811    case $host_os in
14812      aix4 | aix4.[01] | aix4.[01].*)
14813      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14814	   echo ' yes '
14815	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14816	:
14817      else
14818	can_build_shared=no
14819      fi
14820      ;;
14821    esac
14822    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14823    # soname into executable. Probably we can add versioning support to
14824    # collect2, so additional links can be useful in future.
14825    if test "$aix_use_runtimelinking" = yes; then
14826      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14827      # instead of lib<name>.a to let people know that these are not
14828      # typical AIX shared libraries.
14829      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830    else
14831      # We preserve .a as extension for shared libraries through AIX4.2
14832      # and later when we are not doing run time linking.
14833      library_names_spec='${libname}${release}.a $libname.a'
14834      soname_spec='${libname}${release}${shared_ext}$major'
14835    fi
14836    shlibpath_var=LIBPATH
14837  fi
14838  ;;
14839
14840amigaos*)
14841  library_names_spec='$libname.ixlibrary $libname.a'
14842  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14843  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'
14844  ;;
14845
14846beos*)
14847  library_names_spec='${libname}${shared_ext}'
14848  dynamic_linker="$host_os ld.so"
14849  shlibpath_var=LIBRARY_PATH
14850  ;;
14851
14852bsdi[45]*)
14853  version_type=linux
14854  need_version=no
14855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856  soname_spec='${libname}${release}${shared_ext}$major'
14857  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14858  shlibpath_var=LD_LIBRARY_PATH
14859  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14860  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14861  # the default ld.so.conf also contains /usr/contrib/lib and
14862  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14863  # libtool to hard-code these into programs
14864  ;;
14865
14866cygwin* | mingw* | pw32*)
14867  version_type=windows
14868  shrext_cmds=".dll"
14869  need_version=no
14870  need_lib_prefix=no
14871
14872  case $GCC,$host_os in
14873  yes,cygwin* | yes,mingw* | yes,pw32*)
14874    library_names_spec='$libname.dll.a'
14875    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14876    postinstall_cmds='base_file=`basename \${file}`~
14877      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14878      dldir=$destdir/`dirname \$dlpath`~
14879      test -d \$dldir || mkdir -p \$dldir~
14880      $install_prog $dir/$dlname \$dldir/$dlname~
14881      chmod a+x \$dldir/$dlname'
14882    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14883      dlpath=$dir/\$dldll~
14884       $rm \$dlpath'
14885    shlibpath_overrides_runpath=yes
14886
14887    case $host_os in
14888    cygwin*)
14889      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14890      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14891      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14892      ;;
14893    mingw*)
14894      # MinGW DLLs use traditional 'lib' prefix
14895      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14896      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14897      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14898        # It is most probably a Windows format PATH printed by
14899        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14900        # path with ; separators, and with drive letters. We can handle the
14901        # drive letters (cygwin fileutils understands them), so leave them,
14902        # especially as we might pass files found there to a mingw objdump,
14903        # which wouldn't understand a cygwinified path. Ahh.
14904        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14905      else
14906        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14907      fi
14908      ;;
14909    pw32*)
14910      # pw32 DLLs use 'pw' prefix rather than 'lib'
14911      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14912      ;;
14913    esac
14914    ;;
14915
14916  *)
14917    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14918    ;;
14919  esac
14920  dynamic_linker='Win32 ld.exe'
14921  # FIXME: first we should search . and the directory the executable is in
14922  shlibpath_var=PATH
14923  ;;
14924
14925darwin* | rhapsody*)
14926  dynamic_linker="$host_os dyld"
14927  version_type=darwin
14928  need_lib_prefix=no
14929  need_version=no
14930  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14931  soname_spec='${libname}${release}${major}$shared_ext'
14932  shlibpath_overrides_runpath=yes
14933  shlibpath_var=DYLD_LIBRARY_PATH
14934  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14935  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14936  if test "$GCC" = yes; then
14937    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"`
14938  else
14939    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14940  fi
14941  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14942  ;;
14943
14944dgux*)
14945  version_type=linux
14946  need_lib_prefix=no
14947  need_version=no
14948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14949  soname_spec='${libname}${release}${shared_ext}$major'
14950  shlibpath_var=LD_LIBRARY_PATH
14951  ;;
14952
14953freebsd1*)
14954  dynamic_linker=no
14955  ;;
14956
14957kfreebsd*-gnu)
14958  version_type=linux
14959  need_lib_prefix=no
14960  need_version=no
14961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14962  soname_spec='${libname}${release}${shared_ext}$major'
14963  shlibpath_var=LD_LIBRARY_PATH
14964  shlibpath_overrides_runpath=no
14965  hardcode_into_libs=yes
14966  dynamic_linker='GNU ld.so'
14967  ;;
14968
14969freebsd* | dragonfly*)
14970  # DragonFly does not have aout.  When/if they implement a new
14971  # versioning mechanism, adjust this.
14972  if test -x /usr/bin/objformat; then
14973    objformat=`/usr/bin/objformat`
14974  else
14975    case $host_os in
14976    freebsd[123]*) objformat=aout ;;
14977    *) objformat=elf ;;
14978    esac
14979  fi
14980  version_type=freebsd-$objformat
14981  case $version_type in
14982    freebsd-elf*)
14983      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14984      need_version=no
14985      need_lib_prefix=no
14986      ;;
14987    freebsd-*)
14988      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14989      need_version=yes
14990      ;;
14991  esac
14992  shlibpath_var=LD_LIBRARY_PATH
14993  case $host_os in
14994  freebsd2*)
14995    shlibpath_overrides_runpath=yes
14996    ;;
14997  freebsd3.[01]* | freebsdelf3.[01]*)
14998    shlibpath_overrides_runpath=yes
14999    hardcode_into_libs=yes
15000    ;;
15001  *) # from 3.2 on
15002    shlibpath_overrides_runpath=no
15003    hardcode_into_libs=yes
15004    ;;
15005  esac
15006  ;;
15007
15008gnu*)
15009  version_type=linux
15010  need_lib_prefix=no
15011  need_version=no
15012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15013  soname_spec='${libname}${release}${shared_ext}$major'
15014  shlibpath_var=LD_LIBRARY_PATH
15015  hardcode_into_libs=yes
15016  ;;
15017
15018hpux9* | hpux10* | hpux11*)
15019  # Give a soname corresponding to the major version so that dld.sl refuses to
15020  # link against other versions.
15021  version_type=sunos
15022  need_lib_prefix=no
15023  need_version=no
15024  case $host_cpu in
15025  ia64*)
15026    shrext_cmds='.so'
15027    hardcode_into_libs=yes
15028    dynamic_linker="$host_os dld.so"
15029    shlibpath_var=LD_LIBRARY_PATH
15030    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032    soname_spec='${libname}${release}${shared_ext}$major'
15033    if test "X$HPUX_IA64_MODE" = X32; then
15034      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15035    else
15036      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15037    fi
15038    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15039    ;;
15040   hppa*64*)
15041     shrext_cmds='.sl'
15042     hardcode_into_libs=yes
15043     dynamic_linker="$host_os dld.sl"
15044     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15045     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047     soname_spec='${libname}${release}${shared_ext}$major'
15048     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15049     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15050     ;;
15051   *)
15052    shrext_cmds='.sl'
15053    dynamic_linker="$host_os dld.sl"
15054    shlibpath_var=SHLIB_PATH
15055    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15056    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057    soname_spec='${libname}${release}${shared_ext}$major'
15058    ;;
15059  esac
15060  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15061  postinstall_cmds='chmod 555 $lib'
15062  ;;
15063
15064irix5* | irix6* | nonstopux*)
15065  case $host_os in
15066    nonstopux*) version_type=nonstopux ;;
15067    *)
15068	if test "$lt_cv_prog_gnu_ld" = yes; then
15069		version_type=linux
15070	else
15071		version_type=irix
15072	fi ;;
15073  esac
15074  need_lib_prefix=no
15075  need_version=no
15076  soname_spec='${libname}${release}${shared_ext}$major'
15077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15078  case $host_os in
15079  irix5* | nonstopux*)
15080    libsuff= shlibsuff=
15081    ;;
15082  *)
15083    case $LD in # libtool.m4 will add one of these switches to LD
15084    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15085      libsuff= shlibsuff= libmagic=32-bit;;
15086    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15087      libsuff=32 shlibsuff=N32 libmagic=N32;;
15088    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15089      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15090    *) libsuff= shlibsuff= libmagic=never-match;;
15091    esac
15092    ;;
15093  esac
15094  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15095  shlibpath_overrides_runpath=no
15096  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15097  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15098  hardcode_into_libs=yes
15099  ;;
15100
15101# No shared lib support for Linux oldld, aout, or coff.
15102linux*oldld* | linux*aout* | linux*coff*)
15103  dynamic_linker=no
15104  ;;
15105
15106# This must be Linux ELF.
15107linux*)
15108  version_type=linux
15109  need_lib_prefix=no
15110  need_version=no
15111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112  soname_spec='${libname}${release}${shared_ext}$major'
15113  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15114  shlibpath_var=LD_LIBRARY_PATH
15115  shlibpath_overrides_runpath=no
15116  # This implies no fast_install, which is unacceptable.
15117  # Some rework will be needed to allow for fast_install
15118  # before this can be enabled.
15119  hardcode_into_libs=yes
15120
15121  # Append ld.so.conf contents to the search path
15122  if test -f /etc/ld.so.conf; then
15123    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15124    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15125  fi
15126
15127  # We used to test for /lib/ld.so.1 and disable shared libraries on
15128  # powerpc, because MkLinux only supported shared libraries with the
15129  # GNU dynamic linker.  Since this was broken with cross compilers,
15130  # most powerpc-linux boxes support dynamic linking these days and
15131  # people can always --disable-shared, the test was removed, and we
15132  # assume the GNU/Linux dynamic linker is in use.
15133  dynamic_linker='GNU/Linux ld.so'
15134  ;;
15135
15136knetbsd*-gnu)
15137  version_type=linux
15138  need_lib_prefix=no
15139  need_version=no
15140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15141  soname_spec='${libname}${release}${shared_ext}$major'
15142  shlibpath_var=LD_LIBRARY_PATH
15143  shlibpath_overrides_runpath=no
15144  hardcode_into_libs=yes
15145  dynamic_linker='GNU ld.so'
15146  ;;
15147
15148netbsd*)
15149  version_type=sunos
15150  need_lib_prefix=no
15151  need_version=no
15152  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15153    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15154    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15155    dynamic_linker='NetBSD (a.out) ld.so'
15156  else
15157    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15158    soname_spec='${libname}${release}${shared_ext}$major'
15159    dynamic_linker='NetBSD ld.elf_so'
15160  fi
15161  shlibpath_var=LD_LIBRARY_PATH
15162  shlibpath_overrides_runpath=yes
15163  hardcode_into_libs=yes
15164  ;;
15165
15166newsos6)
15167  version_type=linux
15168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169  shlibpath_var=LD_LIBRARY_PATH
15170  shlibpath_overrides_runpath=yes
15171  ;;
15172
15173nto-qnx*)
15174  version_type=linux
15175  need_lib_prefix=no
15176  need_version=no
15177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178  soname_spec='${libname}${release}${shared_ext}$major'
15179  shlibpath_var=LD_LIBRARY_PATH
15180  shlibpath_overrides_runpath=yes
15181  ;;
15182
15183openbsd*)
15184  version_type=sunos
15185  need_lib_prefix=no
15186  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15187  case $host_os in
15188    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15189    *)                         need_version=no  ;;
15190  esac
15191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15192  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15193  shlibpath_var=LD_LIBRARY_PATH
15194  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15195    case $host_os in
15196      openbsd2.[89] | openbsd2.[89].*)
15197	shlibpath_overrides_runpath=no
15198	;;
15199      *)
15200	shlibpath_overrides_runpath=yes
15201	;;
15202      esac
15203  else
15204    shlibpath_overrides_runpath=yes
15205  fi
15206  ;;
15207
15208os2*)
15209  libname_spec='$name'
15210  shrext_cmds=".dll"
15211  need_lib_prefix=no
15212  library_names_spec='$libname${shared_ext} $libname.a'
15213  dynamic_linker='OS/2 ld.exe'
15214  shlibpath_var=LIBPATH
15215  ;;
15216
15217osf3* | osf4* | osf5*)
15218  version_type=osf
15219  need_lib_prefix=no
15220  need_version=no
15221  soname_spec='${libname}${release}${shared_ext}$major'
15222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223  shlibpath_var=LD_LIBRARY_PATH
15224  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15225  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15226  ;;
15227
15228sco3.2v5*)
15229  version_type=osf
15230  soname_spec='${libname}${release}${shared_ext}$major'
15231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232  shlibpath_var=LD_LIBRARY_PATH
15233  ;;
15234
15235solaris*)
15236  version_type=linux
15237  need_lib_prefix=no
15238  need_version=no
15239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240  soname_spec='${libname}${release}${shared_ext}$major'
15241  shlibpath_var=LD_LIBRARY_PATH
15242  shlibpath_overrides_runpath=yes
15243  hardcode_into_libs=yes
15244  # ldd complains unless libraries are executable
15245  postinstall_cmds='chmod +x $lib'
15246  ;;
15247
15248sunos4*)
15249  version_type=sunos
15250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15251  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15252  shlibpath_var=LD_LIBRARY_PATH
15253  shlibpath_overrides_runpath=yes
15254  if test "$with_gnu_ld" = yes; then
15255    need_lib_prefix=no
15256  fi
15257  need_version=yes
15258  ;;
15259
15260sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15261  version_type=linux
15262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263  soname_spec='${libname}${release}${shared_ext}$major'
15264  shlibpath_var=LD_LIBRARY_PATH
15265  case $host_vendor in
15266    sni)
15267      shlibpath_overrides_runpath=no
15268      need_lib_prefix=no
15269      export_dynamic_flag_spec='${wl}-Blargedynsym'
15270      runpath_var=LD_RUN_PATH
15271      ;;
15272    siemens)
15273      need_lib_prefix=no
15274      ;;
15275    motorola)
15276      need_lib_prefix=no
15277      need_version=no
15278      shlibpath_overrides_runpath=no
15279      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15280      ;;
15281  esac
15282  ;;
15283
15284sysv4*MP*)
15285  if test -d /usr/nec ;then
15286    version_type=linux
15287    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15288    soname_spec='$libname${shared_ext}.$major'
15289    shlibpath_var=LD_LIBRARY_PATH
15290  fi
15291  ;;
15292
15293uts4*)
15294  version_type=linux
15295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296  soname_spec='${libname}${release}${shared_ext}$major'
15297  shlibpath_var=LD_LIBRARY_PATH
15298  ;;
15299
15300*)
15301  dynamic_linker=no
15302  ;;
15303esac
15304echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15305echo "${ECHO_T}$dynamic_linker" >&6
15306test "$dynamic_linker" = no && can_build_shared=no
15307
15308echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15309echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15310hardcode_action_F77=
15311if test -n "$hardcode_libdir_flag_spec_F77" || \
15312   test -n "$runpath_var_F77" || \
15313   test "X$hardcode_automatic_F77" = "Xyes" ; then
15314
15315  # We can hardcode non-existant directories.
15316  if test "$hardcode_direct_F77" != no &&
15317     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15318     # have to relink, otherwise we might link with an installed library
15319     # when we should be linking with a yet-to-be-installed one
15320     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15321     test "$hardcode_minus_L_F77" != no; then
15322    # Linking always hardcodes the temporary library directory.
15323    hardcode_action_F77=relink
15324  else
15325    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15326    hardcode_action_F77=immediate
15327  fi
15328else
15329  # We cannot hardcode anything, or else we can only hardcode existing
15330  # directories.
15331  hardcode_action_F77=unsupported
15332fi
15333echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15334echo "${ECHO_T}$hardcode_action_F77" >&6
15335
15336if test "$hardcode_action_F77" = relink; then
15337  # Fast installation is not supported
15338  enable_fast_install=no
15339elif test "$shlibpath_overrides_runpath" = yes ||
15340     test "$enable_shared" = no; then
15341  # Fast installation is not necessary
15342  enable_fast_install=needless
15343fi
15344
15345striplib=
15346old_striplib=
15347echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15348echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15349if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15350  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15351  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15352  echo "$as_me:$LINENO: result: yes" >&5
15353echo "${ECHO_T}yes" >&6
15354else
15355# FIXME - insert some real tests, host_os isn't really good enough
15356  case $host_os in
15357   darwin*)
15358       if test -n "$STRIP" ; then
15359         striplib="$STRIP -x"
15360         echo "$as_me:$LINENO: result: yes" >&5
15361echo "${ECHO_T}yes" >&6
15362       else
15363  echo "$as_me:$LINENO: result: no" >&5
15364echo "${ECHO_T}no" >&6
15365fi
15366       ;;
15367   *)
15368  echo "$as_me:$LINENO: result: no" >&5
15369echo "${ECHO_T}no" >&6
15370    ;;
15371  esac
15372fi
15373
15374
15375
15376# The else clause should only fire when bootstrapping the
15377# libtool distribution, otherwise you forgot to ship ltmain.sh
15378# with your package, and you will get complaints that there are
15379# no rules to generate ltmain.sh.
15380if test -f "$ltmain"; then
15381  # See if we are running on zsh, and set the options which allow our commands through
15382  # without removal of \ escapes.
15383  if test -n "${ZSH_VERSION+set}" ; then
15384    setopt NO_GLOB_SUBST
15385  fi
15386  # Now quote all the things that may contain metacharacters while being
15387  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15388  # variables and quote the copies for generation of the libtool script.
15389  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15390    SED SHELL STRIP \
15391    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15392    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15393    deplibs_check_method reload_flag reload_cmds need_locks \
15394    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15395    lt_cv_sys_global_symbol_to_c_name_address \
15396    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15397    old_postinstall_cmds old_postuninstall_cmds \
15398    compiler_F77 \
15399    CC_F77 \
15400    LD_F77 \
15401    lt_prog_compiler_wl_F77 \
15402    lt_prog_compiler_pic_F77 \
15403    lt_prog_compiler_static_F77 \
15404    lt_prog_compiler_no_builtin_flag_F77 \
15405    export_dynamic_flag_spec_F77 \
15406    thread_safe_flag_spec_F77 \
15407    whole_archive_flag_spec_F77 \
15408    enable_shared_with_static_runtimes_F77 \
15409    old_archive_cmds_F77 \
15410    old_archive_from_new_cmds_F77 \
15411    predep_objects_F77 \
15412    postdep_objects_F77 \
15413    predeps_F77 \
15414    postdeps_F77 \
15415    compiler_lib_search_path_F77 \
15416    archive_cmds_F77 \
15417    archive_expsym_cmds_F77 \
15418    postinstall_cmds_F77 \
15419    postuninstall_cmds_F77 \
15420    old_archive_from_expsyms_cmds_F77 \
15421    allow_undefined_flag_F77 \
15422    no_undefined_flag_F77 \
15423    export_symbols_cmds_F77 \
15424    hardcode_libdir_flag_spec_F77 \
15425    hardcode_libdir_flag_spec_ld_F77 \
15426    hardcode_libdir_separator_F77 \
15427    hardcode_automatic_F77 \
15428    module_cmds_F77 \
15429    module_expsym_cmds_F77 \
15430    lt_cv_prog_compiler_c_o_F77 \
15431    exclude_expsyms_F77 \
15432    include_expsyms_F77; do
15433
15434    case $var in
15435    old_archive_cmds_F77 | \
15436    old_archive_from_new_cmds_F77 | \
15437    archive_cmds_F77 | \
15438    archive_expsym_cmds_F77 | \
15439    module_cmds_F77 | \
15440    module_expsym_cmds_F77 | \
15441    old_archive_from_expsyms_cmds_F77 | \
15442    export_symbols_cmds_F77 | \
15443    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15444    postinstall_cmds | postuninstall_cmds | \
15445    old_postinstall_cmds | old_postuninstall_cmds | \
15446    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15447      # Double-quote double-evaled strings.
15448      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15449      ;;
15450    *)
15451      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15452      ;;
15453    esac
15454  done
15455
15456  case $lt_echo in
15457  *'\$0 --fallback-echo"')
15458    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15459    ;;
15460  esac
15461
15462cfgfile="$ofile"
15463
15464  cat <<__EOF__ >> "$cfgfile"
15465# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15466
15467# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15468
15469# Shell to use when invoking shell scripts.
15470SHELL=$lt_SHELL
15471
15472# Whether or not to build shared libraries.
15473build_libtool_libs=$enable_shared
15474
15475# Whether or not to build static libraries.
15476build_old_libs=$enable_static
15477
15478# Whether or not to add -lc for building shared libraries.
15479build_libtool_need_lc=$archive_cmds_need_lc_F77
15480
15481# Whether or not to disallow shared libs when runtime libs are static
15482allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15483
15484# Whether or not to optimize for fast installation.
15485fast_install=$enable_fast_install
15486
15487# The host system.
15488host_alias=$host_alias
15489host=$host
15490host_os=$host_os
15491
15492# The build system.
15493build_alias=$build_alias
15494build=$build
15495build_os=$build_os
15496
15497# An echo program that does not interpret backslashes.
15498echo=$lt_echo
15499
15500# The archiver.
15501AR=$lt_AR
15502AR_FLAGS=$lt_AR_FLAGS
15503
15504# A C compiler.
15505LTCC=$lt_LTCC
15506
15507# A language-specific compiler.
15508CC=$lt_compiler_F77
15509
15510# Is the compiler the GNU C compiler?
15511with_gcc=$GCC_F77
15512
15513# An ERE matcher.
15514EGREP=$lt_EGREP
15515
15516# The linker used to build libraries.
15517LD=$lt_LD_F77
15518
15519# Whether we need hard or soft links.
15520LN_S=$lt_LN_S
15521
15522# A BSD-compatible nm program.
15523NM=$lt_NM
15524
15525# A symbol stripping program
15526STRIP=$lt_STRIP
15527
15528# Used to examine libraries when file_magic_cmd begins "file"
15529MAGIC_CMD=$MAGIC_CMD
15530
15531# Used on cygwin: DLL creation program.
15532DLLTOOL="$DLLTOOL"
15533
15534# Used on cygwin: object dumper.
15535OBJDUMP="$OBJDUMP"
15536
15537# Used on cygwin: assembler.
15538AS="$AS"
15539
15540# The name of the directory that contains temporary libtool files.
15541objdir=$objdir
15542
15543# How to create reloadable object files.
15544reload_flag=$lt_reload_flag
15545reload_cmds=$lt_reload_cmds
15546
15547# How to pass a linker flag through the compiler.
15548wl=$lt_lt_prog_compiler_wl_F77
15549
15550# Object file suffix (normally "o").
15551objext="$ac_objext"
15552
15553# Old archive suffix (normally "a").
15554libext="$libext"
15555
15556# Shared library suffix (normally ".so").
15557shrext_cmds='$shrext_cmds'
15558
15559# Executable file suffix (normally "").
15560exeext="$exeext"
15561
15562# Additional compiler flags for building library objects.
15563pic_flag=$lt_lt_prog_compiler_pic_F77
15564pic_mode=$pic_mode
15565
15566# What is the maximum length of a command?
15567max_cmd_len=$lt_cv_sys_max_cmd_len
15568
15569# Does compiler simultaneously support -c and -o options?
15570compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15571
15572# Must we lock files when doing compilation?
15573need_locks=$lt_need_locks
15574
15575# Do we need the lib prefix for modules?
15576need_lib_prefix=$need_lib_prefix
15577
15578# Do we need a version for libraries?
15579need_version=$need_version
15580
15581# Whether dlopen is supported.
15582dlopen_support=$enable_dlopen
15583
15584# Whether dlopen of programs is supported.
15585dlopen_self=$enable_dlopen_self
15586
15587# Whether dlopen of statically linked programs is supported.
15588dlopen_self_static=$enable_dlopen_self_static
15589
15590# Compiler flag to prevent dynamic linking.
15591link_static_flag=$lt_lt_prog_compiler_static_F77
15592
15593# Compiler flag to turn off builtin functions.
15594no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15595
15596# Compiler flag to allow reflexive dlopens.
15597export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15598
15599# Compiler flag to generate shared objects directly from archives.
15600whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15601
15602# Compiler flag to generate thread-safe objects.
15603thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15604
15605# Library versioning type.
15606version_type=$version_type
15607
15608# Format of library name prefix.
15609libname_spec=$lt_libname_spec
15610
15611# List of archive names.  First name is the real one, the rest are links.
15612# The last name is the one that the linker finds with -lNAME.
15613library_names_spec=$lt_library_names_spec
15614
15615# The coded name of the library, if different from the real name.
15616soname_spec=$lt_soname_spec
15617
15618# Commands used to build and install an old-style archive.
15619RANLIB=$lt_RANLIB
15620old_archive_cmds=$lt_old_archive_cmds_F77
15621old_postinstall_cmds=$lt_old_postinstall_cmds
15622old_postuninstall_cmds=$lt_old_postuninstall_cmds
15623
15624# Create an old-style archive from a shared archive.
15625old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15626
15627# Create a temporary old-style archive to link instead of a shared archive.
15628old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15629
15630# Commands used to build and install a shared archive.
15631archive_cmds=$lt_archive_cmds_F77
15632archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15633postinstall_cmds=$lt_postinstall_cmds
15634postuninstall_cmds=$lt_postuninstall_cmds
15635
15636# Commands used to build a loadable module (assumed same as above if empty)
15637module_cmds=$lt_module_cmds_F77
15638module_expsym_cmds=$lt_module_expsym_cmds_F77
15639
15640# Commands to strip libraries.
15641old_striplib=$lt_old_striplib
15642striplib=$lt_striplib
15643
15644# Dependencies to place before the objects being linked to create a
15645# shared library.
15646predep_objects=$lt_predep_objects_F77
15647
15648# Dependencies to place after the objects being linked to create a
15649# shared library.
15650postdep_objects=$lt_postdep_objects_F77
15651
15652# Dependencies to place before the objects being linked to create a
15653# shared library.
15654predeps=$lt_predeps_F77
15655
15656# Dependencies to place after the objects being linked to create a
15657# shared library.
15658postdeps=$lt_postdeps_F77
15659
15660# The library search path used internally by the compiler when linking
15661# a shared library.
15662compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15663
15664# Method to check whether dependent libraries are shared objects.
15665deplibs_check_method=$lt_deplibs_check_method
15666
15667# Command to use when deplibs_check_method == file_magic.
15668file_magic_cmd=$lt_file_magic_cmd
15669
15670# Flag that allows shared libraries with undefined symbols to be built.
15671allow_undefined_flag=$lt_allow_undefined_flag_F77
15672
15673# Flag that forces no undefined symbols.
15674no_undefined_flag=$lt_no_undefined_flag_F77
15675
15676# Commands used to finish a libtool library installation in a directory.
15677finish_cmds=$lt_finish_cmds
15678
15679# Same as above, but a single script fragment to be evaled but not shown.
15680finish_eval=$lt_finish_eval
15681
15682# Take the output of nm and produce a listing of raw symbols and C names.
15683global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15684
15685# Transform the output of nm in a proper C declaration
15686global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15687
15688# Transform the output of nm in a C name address pair
15689global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15690
15691# This is the shared library runtime path variable.
15692runpath_var=$runpath_var
15693
15694# This is the shared library path variable.
15695shlibpath_var=$shlibpath_var
15696
15697# Is shlibpath searched before the hard-coded library search path?
15698shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15699
15700# How to hardcode a shared library path into an executable.
15701hardcode_action=$hardcode_action_F77
15702
15703# Whether we should hardcode library paths into libraries.
15704hardcode_into_libs=$hardcode_into_libs
15705
15706# Flag to hardcode \$libdir into a binary during linking.
15707# This must work even if \$libdir does not exist.
15708hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15709
15710# If ld is used when linking, flag to hardcode \$libdir into
15711# a binary during linking. This must work even if \$libdir does
15712# not exist.
15713hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15714
15715# Whether we need a single -rpath flag with a separated argument.
15716hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15717
15718# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15719# resulting binary.
15720hardcode_direct=$hardcode_direct_F77
15721
15722# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15723# resulting binary.
15724hardcode_minus_L=$hardcode_minus_L_F77
15725
15726# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15727# the resulting binary.
15728hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15729
15730# Set to yes if building a shared library automatically hardcodes DIR into the library
15731# and all subsequent libraries and executables linked against it.
15732hardcode_automatic=$hardcode_automatic_F77
15733
15734# Variables whose values should be saved in libtool wrapper scripts and
15735# restored at relink time.
15736variables_saved_for_relink="$variables_saved_for_relink"
15737
15738# Whether libtool must link a program against all its dependency libraries.
15739link_all_deplibs=$link_all_deplibs_F77
15740
15741# Compile-time system search path for libraries
15742sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15743
15744# Run-time system search path for libraries
15745sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15746
15747# Fix the shell variable \$srcfile for the compiler.
15748fix_srcfile_path="$fix_srcfile_path_F77"
15749
15750# Set to yes if exported symbols are required.
15751always_export_symbols=$always_export_symbols_F77
15752
15753# The commands to list exported symbols.
15754export_symbols_cmds=$lt_export_symbols_cmds_F77
15755
15756# The commands to extract the exported symbol list from a shared archive.
15757extract_expsyms_cmds=$lt_extract_expsyms_cmds
15758
15759# Symbols that should not be listed in the preloaded symbols.
15760exclude_expsyms=$lt_exclude_expsyms_F77
15761
15762# Symbols that must always be exported.
15763include_expsyms=$lt_include_expsyms_F77
15764
15765# ### END LIBTOOL TAG CONFIG: $tagname
15766
15767__EOF__
15768
15769
15770else
15771  # If there is no Makefile yet, we rely on a make rule to execute
15772  # `config.status --recheck' to rerun these tests and create the
15773  # libtool script then.
15774  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15775  if test -f "$ltmain_in"; then
15776    test -f Makefile && make "$ltmain"
15777  fi
15778fi
15779
15780
15781ac_ext=c
15782ac_cpp='$CPP $CPPFLAGS'
15783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15785ac_compiler_gnu=$ac_cv_c_compiler_gnu
15786
15787CC="$lt_save_CC"
15788
15789	else
15790	  tagname=""
15791	fi
15792	;;
15793
15794      GCJ)
15795	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15796
15797
15798
15799# Source file extension for Java test sources.
15800ac_ext=java
15801
15802# Object file extension for compiled Java test sources.
15803objext=o
15804objext_GCJ=$objext
15805
15806# Code to be used in simple compile tests
15807lt_simple_compile_test_code="class foo {}\n"
15808
15809# Code to be used in simple link tests
15810lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15811
15812# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15813
15814# If no C compiler was specified, use CC.
15815LTCC=${LTCC-"$CC"}
15816
15817# Allow CC to be a program name with arguments.
15818compiler=$CC
15819
15820
15821# save warnings/boilerplate of simple test code
15822ac_outfile=conftest.$ac_objext
15823printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15824eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15825_lt_compiler_boilerplate=`cat conftest.err`
15826$rm conftest*
15827
15828ac_outfile=conftest.$ac_objext
15829printf "$lt_simple_link_test_code" >conftest.$ac_ext
15830eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15831_lt_linker_boilerplate=`cat conftest.err`
15832$rm conftest*
15833
15834
15835# Allow CC to be a program name with arguments.
15836lt_save_CC="$CC"
15837CC=${GCJ-"gcj"}
15838compiler=$CC
15839compiler_GCJ=$CC
15840for cc_temp in $compiler""; do
15841  case $cc_temp in
15842    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15843    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15844    \-*) ;;
15845    *) break;;
15846  esac
15847done
15848cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15849
15850
15851# GCJ did not exist at the time GCC didn't implicitly link libc in.
15852archive_cmds_need_lc_GCJ=no
15853
15854old_archive_cmds_GCJ=$old_archive_cmds
15855
15856
15857lt_prog_compiler_no_builtin_flag_GCJ=
15858
15859if test "$GCC" = yes; then
15860  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15861
15862
15863echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15864echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15865if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15866  echo $ECHO_N "(cached) $ECHO_C" >&6
15867else
15868  lt_cv_prog_compiler_rtti_exceptions=no
15869  ac_outfile=conftest.$ac_objext
15870   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15871   lt_compiler_flag="-fno-rtti -fno-exceptions"
15872   # Insert the option either (1) after the last *FLAGS variable, or
15873   # (2) before a word containing "conftest.", or (3) at the end.
15874   # Note that $ac_compile itself does not contain backslashes and begins
15875   # with a dollar sign (not a hyphen), so the echo should work correctly.
15876   # The option is referenced via a variable to avoid confusing sed.
15877   lt_compile=`echo "$ac_compile" | $SED \
15878   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15879   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15880   -e 's:$: $lt_compiler_flag:'`
15881   (eval echo "\"\$as_me:15881: $lt_compile\"" >&5)
15882   (eval "$lt_compile" 2>conftest.err)
15883   ac_status=$?
15884   cat conftest.err >&5
15885   echo "$as_me:15885: \$? = $ac_status" >&5
15886   if (exit $ac_status) && test -s "$ac_outfile"; then
15887     # The compiler can only warn and ignore the option if not recognized
15888     # So say no if there are warnings other than the usual output.
15889     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15890     $SED '/^$/d' conftest.err >conftest.er2
15891     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15892       lt_cv_prog_compiler_rtti_exceptions=yes
15893     fi
15894   fi
15895   $rm conftest*
15896
15897fi
15898echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15899echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15900
15901if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15902    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15903else
15904    :
15905fi
15906
15907fi
15908
15909lt_prog_compiler_wl_GCJ=
15910lt_prog_compiler_pic_GCJ=
15911lt_prog_compiler_static_GCJ=
15912
15913echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15914echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15915
15916  if test "$GCC" = yes; then
15917    lt_prog_compiler_wl_GCJ='-Wl,'
15918    lt_prog_compiler_static_GCJ='-static'
15919
15920    case $host_os in
15921      aix*)
15922      # All AIX code is PIC.
15923      if test "$host_cpu" = ia64; then
15924	# AIX 5 now supports IA64 processor
15925	lt_prog_compiler_static_GCJ='-Bstatic'
15926      fi
15927      ;;
15928
15929    amigaos*)
15930      # FIXME: we need at least 68020 code to build shared libraries, but
15931      # adding the `-m68020' flag to GCC prevents building anything better,
15932      # like `-m68040'.
15933      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15934      ;;
15935
15936    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15937      # PIC is the default for these OSes.
15938      ;;
15939
15940    mingw* | pw32* | os2*)
15941      # This hack is so that the source file can tell whether it is being
15942      # built for inclusion in a dll (and should export symbols for example).
15943      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15944      ;;
15945
15946    darwin* | rhapsody*)
15947      # PIC is the default on this platform
15948      # Common symbols not allowed in MH_DYLIB files
15949      lt_prog_compiler_pic_GCJ='-fno-common'
15950      ;;
15951
15952    msdosdjgpp*)
15953      # Just because we use GCC doesn't mean we suddenly get shared libraries
15954      # on systems that don't support them.
15955      lt_prog_compiler_can_build_shared_GCJ=no
15956      enable_shared=no
15957      ;;
15958
15959    sysv4*MP*)
15960      if test -d /usr/nec; then
15961	lt_prog_compiler_pic_GCJ=-Kconform_pic
15962      fi
15963      ;;
15964
15965    hpux*)
15966      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15967      # not for PA HP-UX.
15968      case $host_cpu in
15969      hppa*64*|ia64*)
15970	# +Z the default
15971	;;
15972      *)
15973	lt_prog_compiler_pic_GCJ='-fPIC'
15974	;;
15975      esac
15976      ;;
15977
15978    *)
15979      lt_prog_compiler_pic_GCJ='-fPIC'
15980      ;;
15981    esac
15982  else
15983    # PORTME Check for flag to pass linker flags through the system compiler.
15984    case $host_os in
15985    aix*)
15986      lt_prog_compiler_wl_GCJ='-Wl,'
15987      if test "$host_cpu" = ia64; then
15988	# AIX 5 now supports IA64 processor
15989	lt_prog_compiler_static_GCJ='-Bstatic'
15990      else
15991	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15992      fi
15993      ;;
15994      darwin*)
15995        # PIC is the default on this platform
15996        # Common symbols not allowed in MH_DYLIB files
15997       case $cc_basename in
15998         xlc*)
15999         lt_prog_compiler_pic_GCJ='-qnocommon'
16000         lt_prog_compiler_wl_GCJ='-Wl,'
16001         ;;
16002       esac
16003       ;;
16004
16005    mingw* | pw32* | os2*)
16006      # This hack is so that the source file can tell whether it is being
16007      # built for inclusion in a dll (and should export symbols for example).
16008      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16009      ;;
16010
16011    hpux9* | hpux10* | hpux11*)
16012      lt_prog_compiler_wl_GCJ='-Wl,'
16013      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16014      # not for PA HP-UX.
16015      case $host_cpu in
16016      hppa*64*|ia64*)
16017	# +Z the default
16018	;;
16019      *)
16020	lt_prog_compiler_pic_GCJ='+Z'
16021	;;
16022      esac
16023      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16024      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16025      ;;
16026
16027    irix5* | irix6* | nonstopux*)
16028      lt_prog_compiler_wl_GCJ='-Wl,'
16029      # PIC (with -KPIC) is the default.
16030      lt_prog_compiler_static_GCJ='-non_shared'
16031      ;;
16032
16033    newsos6)
16034      lt_prog_compiler_pic_GCJ='-KPIC'
16035      lt_prog_compiler_static_GCJ='-Bstatic'
16036      ;;
16037
16038    linux*)
16039      case $cc_basename in
16040      icc* | ecc*)
16041	lt_prog_compiler_wl_GCJ='-Wl,'
16042	lt_prog_compiler_pic_GCJ='-KPIC'
16043	lt_prog_compiler_static_GCJ='-static'
16044        ;;
16045      pgcc* | pgf77* | pgf90* | pgf95*)
16046        # Portland Group compilers (*not* the Pentium gcc compiler,
16047	# which looks to be a dead project)
16048	lt_prog_compiler_wl_GCJ='-Wl,'
16049	lt_prog_compiler_pic_GCJ='-fpic'
16050	lt_prog_compiler_static_GCJ='-Bstatic'
16051        ;;
16052      ccc*)
16053        lt_prog_compiler_wl_GCJ='-Wl,'
16054        # All Alpha code is PIC.
16055        lt_prog_compiler_static_GCJ='-non_shared'
16056        ;;
16057      esac
16058      ;;
16059
16060    osf3* | osf4* | osf5*)
16061      lt_prog_compiler_wl_GCJ='-Wl,'
16062      # All OSF/1 code is PIC.
16063      lt_prog_compiler_static_GCJ='-non_shared'
16064      ;;
16065
16066    sco3.2v5*)
16067      lt_prog_compiler_pic_GCJ='-Kpic'
16068      lt_prog_compiler_static_GCJ='-dn'
16069      ;;
16070
16071    solaris*)
16072      lt_prog_compiler_pic_GCJ='-KPIC'
16073      lt_prog_compiler_static_GCJ='-Bstatic'
16074      case $cc_basename in
16075      f77* | f90* | f95*)
16076	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16077      *)
16078	lt_prog_compiler_wl_GCJ='-Wl,';;
16079      esac
16080      ;;
16081
16082    sunos4*)
16083      lt_prog_compiler_wl_GCJ='-Qoption ld '
16084      lt_prog_compiler_pic_GCJ='-PIC'
16085      lt_prog_compiler_static_GCJ='-Bstatic'
16086      ;;
16087
16088    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16089      lt_prog_compiler_wl_GCJ='-Wl,'
16090      lt_prog_compiler_pic_GCJ='-KPIC'
16091      lt_prog_compiler_static_GCJ='-Bstatic'
16092      ;;
16093
16094    sysv4*MP*)
16095      if test -d /usr/nec ;then
16096	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16097	lt_prog_compiler_static_GCJ='-Bstatic'
16098      fi
16099      ;;
16100
16101    unicos*)
16102      lt_prog_compiler_wl_GCJ='-Wl,'
16103      lt_prog_compiler_can_build_shared_GCJ=no
16104      ;;
16105
16106    uts4*)
16107      lt_prog_compiler_pic_GCJ='-pic'
16108      lt_prog_compiler_static_GCJ='-Bstatic'
16109      ;;
16110
16111    *)
16112      lt_prog_compiler_can_build_shared_GCJ=no
16113      ;;
16114    esac
16115  fi
16116
16117echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16118echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16119
16120#
16121# Check to make sure the PIC flag actually works.
16122#
16123if test -n "$lt_prog_compiler_pic_GCJ"; then
16124
16125echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16126echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16127if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16128  echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130  lt_prog_compiler_pic_works_GCJ=no
16131  ac_outfile=conftest.$ac_objext
16132   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16133   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16134   # Insert the option either (1) after the last *FLAGS variable, or
16135   # (2) before a word containing "conftest.", or (3) at the end.
16136   # Note that $ac_compile itself does not contain backslashes and begins
16137   # with a dollar sign (not a hyphen), so the echo should work correctly.
16138   # The option is referenced via a variable to avoid confusing sed.
16139   lt_compile=`echo "$ac_compile" | $SED \
16140   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16141   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16142   -e 's:$: $lt_compiler_flag:'`
16143   (eval echo "\"\$as_me:16143: $lt_compile\"" >&5)
16144   (eval "$lt_compile" 2>conftest.err)
16145   ac_status=$?
16146   cat conftest.err >&5
16147   echo "$as_me:16147: \$? = $ac_status" >&5
16148   if (exit $ac_status) && test -s "$ac_outfile"; then
16149     # The compiler can only warn and ignore the option if not recognized
16150     # So say no if there are warnings other than the usual output.
16151     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16152     $SED '/^$/d' conftest.err >conftest.er2
16153     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16154       lt_prog_compiler_pic_works_GCJ=yes
16155     fi
16156   fi
16157   $rm conftest*
16158
16159fi
16160echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16161echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16162
16163if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16164    case $lt_prog_compiler_pic_GCJ in
16165     "" | " "*) ;;
16166     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16167     esac
16168else
16169    lt_prog_compiler_pic_GCJ=
16170     lt_prog_compiler_can_build_shared_GCJ=no
16171fi
16172
16173fi
16174case $host_os in
16175  # For platforms which do not support PIC, -DPIC is meaningless:
16176  *djgpp*)
16177    lt_prog_compiler_pic_GCJ=
16178    ;;
16179  *)
16180    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16181    ;;
16182esac
16183
16184echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16185echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16186if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16187  echo $ECHO_N "(cached) $ECHO_C" >&6
16188else
16189  lt_cv_prog_compiler_c_o_GCJ=no
16190   $rm -r conftest 2>/dev/null
16191   mkdir conftest
16192   cd conftest
16193   mkdir out
16194   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16195
16196   lt_compiler_flag="-o out/conftest2.$ac_objext"
16197   # Insert the option either (1) after the last *FLAGS variable, or
16198   # (2) before a word containing "conftest.", or (3) at the end.
16199   # Note that $ac_compile itself does not contain backslashes and begins
16200   # with a dollar sign (not a hyphen), so the echo should work correctly.
16201   lt_compile=`echo "$ac_compile" | $SED \
16202   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16203   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16204   -e 's:$: $lt_compiler_flag:'`
16205   (eval echo "\"\$as_me:16205: $lt_compile\"" >&5)
16206   (eval "$lt_compile" 2>out/conftest.err)
16207   ac_status=$?
16208   cat out/conftest.err >&5
16209   echo "$as_me:16209: \$? = $ac_status" >&5
16210   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16211   then
16212     # The compiler can only warn and ignore the option if not recognized
16213     # So say no if there are warnings
16214     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16215     $SED '/^$/d' out/conftest.err >out/conftest.er2
16216     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16217       lt_cv_prog_compiler_c_o_GCJ=yes
16218     fi
16219   fi
16220   chmod u+w . 2>&5
16221   $rm conftest*
16222   # SGI C++ compiler will create directory out/ii_files/ for
16223   # template instantiation
16224   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16225   $rm out/* && rmdir out
16226   cd ..
16227   rmdir conftest
16228   $rm conftest*
16229
16230fi
16231echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16232echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16233
16234
16235hard_links="nottested"
16236if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16237  # do not overwrite the value of need_locks provided by the user
16238  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16239echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16240  hard_links=yes
16241  $rm conftest*
16242  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16243  touch conftest.a
16244  ln conftest.a conftest.b 2>&5 || hard_links=no
16245  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16246  echo "$as_me:$LINENO: result: $hard_links" >&5
16247echo "${ECHO_T}$hard_links" >&6
16248  if test "$hard_links" = no; then
16249    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16250echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16251    need_locks=warn
16252  fi
16253else
16254  need_locks=no
16255fi
16256
16257echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16258echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16259
16260  runpath_var=
16261  allow_undefined_flag_GCJ=
16262  enable_shared_with_static_runtimes_GCJ=no
16263  archive_cmds_GCJ=
16264  archive_expsym_cmds_GCJ=
16265  old_archive_From_new_cmds_GCJ=
16266  old_archive_from_expsyms_cmds_GCJ=
16267  export_dynamic_flag_spec_GCJ=
16268  whole_archive_flag_spec_GCJ=
16269  thread_safe_flag_spec_GCJ=
16270  hardcode_libdir_flag_spec_GCJ=
16271  hardcode_libdir_flag_spec_ld_GCJ=
16272  hardcode_libdir_separator_GCJ=
16273  hardcode_direct_GCJ=no
16274  hardcode_minus_L_GCJ=no
16275  hardcode_shlibpath_var_GCJ=unsupported
16276  link_all_deplibs_GCJ=unknown
16277  hardcode_automatic_GCJ=no
16278  module_cmds_GCJ=
16279  module_expsym_cmds_GCJ=
16280  always_export_symbols_GCJ=no
16281  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16282  # include_expsyms should be a list of space-separated symbols to be *always*
16283  # included in the symbol list
16284  include_expsyms_GCJ=
16285  # exclude_expsyms can be an extended regexp of symbols to exclude
16286  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16287  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16288  # as well as any symbol that contains `d'.
16289  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16290  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16291  # platforms (ab)use it in PIC code, but their linkers get confused if
16292  # the symbol is explicitly referenced.  Since portable code cannot
16293  # rely on this symbol name, it's probably fine to never include it in
16294  # preloaded symbol tables.
16295  extract_expsyms_cmds=
16296  # Just being paranoid about ensuring that cc_basename is set.
16297  for cc_temp in $compiler""; do
16298  case $cc_temp in
16299    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16300    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16301    \-*) ;;
16302    *) break;;
16303  esac
16304done
16305cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16306
16307  case $host_os in
16308  cygwin* | mingw* | pw32*)
16309    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16310    # When not using gcc, we currently assume that we are using
16311    # Microsoft Visual C++.
16312    if test "$GCC" != yes; then
16313      with_gnu_ld=no
16314    fi
16315    ;;
16316  openbsd*)
16317    with_gnu_ld=no
16318    ;;
16319  esac
16320
16321  ld_shlibs_GCJ=yes
16322  if test "$with_gnu_ld" = yes; then
16323    # If archive_cmds runs LD, not CC, wlarc should be empty
16324    wlarc='${wl}'
16325
16326    # Set some defaults for GNU ld with shared library support. These
16327    # are reset later if shared libraries are not supported. Putting them
16328    # here allows them to be overridden if necessary.
16329    runpath_var=LD_RUN_PATH
16330    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16331    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16332    # ancient GNU ld didn't support --whole-archive et. al.
16333    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16334	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16335      else
16336  	whole_archive_flag_spec_GCJ=
16337    fi
16338    supports_anon_versioning=no
16339    case `$LD -v 2>/dev/null` in
16340      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16341      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16342      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16343      *\ 2.11.*) ;; # other 2.11 versions
16344      *) supports_anon_versioning=yes ;;
16345    esac
16346
16347    # See if GNU ld supports shared libraries.
16348    case $host_os in
16349    aix3* | aix4* | aix5*)
16350      # On AIX/PPC, the GNU linker is very broken
16351      if test "$host_cpu" != ia64; then
16352	ld_shlibs_GCJ=no
16353	cat <<EOF 1>&2
16354
16355*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16356*** to be unable to reliably create shared libraries on AIX.
16357*** Therefore, libtool is disabling shared libraries support.  If you
16358*** really care for shared libraries, you may want to modify your PATH
16359*** so that a non-GNU linker is found, and then restart.
16360
16361EOF
16362      fi
16363      ;;
16364
16365    amigaos*)
16366      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)'
16367      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368      hardcode_minus_L_GCJ=yes
16369
16370      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16371      # that the semantics of dynamic libraries on AmigaOS, at least up
16372      # to version 4, is to share data among multiple programs linked
16373      # with the same dynamic library.  Since this doesn't match the
16374      # behavior of shared libraries on other platforms, we can't use
16375      # them.
16376      ld_shlibs_GCJ=no
16377      ;;
16378
16379    beos*)
16380      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16381	allow_undefined_flag_GCJ=unsupported
16382	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16383	# support --undefined.  This deserves some investigation.  FIXME
16384	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16385      else
16386	ld_shlibs_GCJ=no
16387      fi
16388      ;;
16389
16390    cygwin* | mingw* | pw32*)
16391      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16392      # as there is no search path for DLLs.
16393      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16394      allow_undefined_flag_GCJ=unsupported
16395      always_export_symbols_GCJ=no
16396      enable_shared_with_static_runtimes_GCJ=yes
16397      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16398
16399      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16400        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16401	# If the export-symbols file already is a .def file (1st line
16402	# is EXPORTS), use it as is; otherwise, prepend...
16403	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16404	  cp $export_symbols $output_objdir/$soname.def;
16405	else
16406	  echo EXPORTS > $output_objdir/$soname.def;
16407	  cat $export_symbols >> $output_objdir/$soname.def;
16408	fi~
16409	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16410      else
16411	ld_shlibs_GCJ=no
16412      fi
16413      ;;
16414
16415    linux*)
16416      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16417	tmp_addflag=
16418	case $cc_basename,$host_cpu in
16419	pgcc*)				# Portland Group C compiler
16420	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16421	  tmp_addflag=' $pic_flag'
16422	  ;;
16423	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16424	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16425	  tmp_addflag=' $pic_flag -Mnomain' ;;
16426	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16427	  tmp_addflag=' -i_dynamic' ;;
16428	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16429	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16430	ifc* | ifort*)			# Intel Fortran compiler
16431	  tmp_addflag=' -nofor_main' ;;
16432	esac
16433	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16434
16435	if test $supports_anon_versioning = yes; then
16436	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16437  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16438  $echo "local: *; };" >> $output_objdir/$libname.ver~
16439	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16440	fi
16441      else
16442	ld_shlibs_GCJ=no
16443      fi
16444      ;;
16445
16446    netbsd*)
16447      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16448	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16449	wlarc=
16450      else
16451	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16452	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16453      fi
16454      ;;
16455
16456    solaris* | sysv5*)
16457      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16458	ld_shlibs_GCJ=no
16459	cat <<EOF 1>&2
16460
16461*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16462*** create shared libraries on Solaris systems.  Therefore, libtool
16463*** is disabling shared libraries support.  We urge you to upgrade GNU
16464*** binutils to release 2.9.1 or newer.  Another option is to modify
16465*** your PATH or compiler configuration so that the native linker is
16466*** used, and then restart.
16467
16468EOF
16469      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16470	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16471	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16472      else
16473	ld_shlibs_GCJ=no
16474      fi
16475      ;;
16476
16477    sunos4*)
16478      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16479      wlarc=
16480      hardcode_direct_GCJ=yes
16481      hardcode_shlibpath_var_GCJ=no
16482      ;;
16483
16484    *)
16485      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16486	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16487	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16488      else
16489	ld_shlibs_GCJ=no
16490      fi
16491      ;;
16492    esac
16493
16494    if test "$ld_shlibs_GCJ" = no; then
16495      runpath_var=
16496      hardcode_libdir_flag_spec_GCJ=
16497      export_dynamic_flag_spec_GCJ=
16498      whole_archive_flag_spec_GCJ=
16499    fi
16500  else
16501    # PORTME fill in a description of your system's linker (not GNU ld)
16502    case $host_os in
16503    aix3*)
16504      allow_undefined_flag_GCJ=unsupported
16505      always_export_symbols_GCJ=yes
16506      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'
16507      # Note: this linker hardcodes the directories in LIBPATH if there
16508      # are no directories specified by -L.
16509      hardcode_minus_L_GCJ=yes
16510      if test "$GCC" = yes && test -z "$link_static_flag"; then
16511	# Neither direct hardcoding nor static linking is supported with a
16512	# broken collect2.
16513	hardcode_direct_GCJ=unsupported
16514      fi
16515      ;;
16516
16517    aix4* | aix5*)
16518      if test "$host_cpu" = ia64; then
16519	# On IA64, the linker does run time linking by default, so we don't
16520	# have to do anything special.
16521	aix_use_runtimelinking=no
16522	exp_sym_flag='-Bexport'
16523	no_entry_flag=""
16524      else
16525	# If we're using GNU nm, then we don't want the "-C" option.
16526	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16527	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16528	  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'
16529	else
16530	  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'
16531	fi
16532	aix_use_runtimelinking=no
16533
16534	# Test if we are trying to use run time linking or normal
16535	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16536	# need to do runtime linking.
16537	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16538	  for ld_flag in $LDFLAGS; do
16539  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16540  	    aix_use_runtimelinking=yes
16541  	    break
16542  	  fi
16543	  done
16544	esac
16545
16546	exp_sym_flag='-bexport'
16547	no_entry_flag='-bnoentry'
16548      fi
16549
16550      # When large executables or shared objects are built, AIX ld can
16551      # have problems creating the table of contents.  If linking a library
16552      # or program results in "error TOC overflow" add -mminimal-toc to
16553      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16554      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16555
16556      archive_cmds_GCJ=''
16557      hardcode_direct_GCJ=yes
16558      hardcode_libdir_separator_GCJ=':'
16559      link_all_deplibs_GCJ=yes
16560
16561      if test "$GCC" = yes; then
16562	case $host_os in aix4.[012]|aix4.[012].*)
16563	# We only want to do this on AIX 4.2 and lower, the check
16564	# below for broken collect2 doesn't work under 4.3+
16565	  collect2name=`${CC} -print-prog-name=collect2`
16566	  if test -f "$collect2name" && \
16567  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16568	  then
16569  	  # We have reworked collect2
16570  	  hardcode_direct_GCJ=yes
16571	  else
16572  	  # We have old collect2
16573  	  hardcode_direct_GCJ=unsupported
16574  	  # It fails to find uninstalled libraries when the uninstalled
16575  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16576  	  # to unsupported forces relinking
16577  	  hardcode_minus_L_GCJ=yes
16578  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16579  	  hardcode_libdir_separator_GCJ=
16580	  fi
16581	esac
16582	shared_flag='-shared'
16583	if test "$aix_use_runtimelinking" = yes; then
16584	  shared_flag="$shared_flag "'${wl}-G'
16585	fi
16586      else
16587	# not using gcc
16588	if test "$host_cpu" = ia64; then
16589  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16590  	# chokes on -Wl,-G. The following line is correct:
16591	  shared_flag='-G'
16592	else
16593  	if test "$aix_use_runtimelinking" = yes; then
16594	    shared_flag='${wl}-G'
16595	  else
16596	    shared_flag='${wl}-bM:SRE'
16597  	fi
16598	fi
16599      fi
16600
16601      # It seems that -bexpall does not export symbols beginning with
16602      # underscore (_), so it is better to generate a list of symbols to export.
16603      always_export_symbols_GCJ=yes
16604      if test "$aix_use_runtimelinking" = yes; then
16605	# Warning - without using the other runtime loading flags (-brtl),
16606	# -berok will link without error, but may produce a broken library.
16607	allow_undefined_flag_GCJ='-berok'
16608       # Determine the default libpath from the value encoded in an empty executable.
16609       cat >conftest.$ac_ext <<_ACEOF
16610/* confdefs.h.  */
16611_ACEOF
16612cat confdefs.h >>conftest.$ac_ext
16613cat >>conftest.$ac_ext <<_ACEOF
16614/* end confdefs.h.  */
16615
16616int
16617main ()
16618{
16619
16620  ;
16621  return 0;
16622}
16623_ACEOF
16624rm -f conftest.$ac_objext conftest$ac_exeext
16625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16626  (eval $ac_link) 2>conftest.er1
16627  ac_status=$?
16628  grep -v '^ *+' conftest.er1 >conftest.err
16629  rm -f conftest.er1
16630  cat conftest.err >&5
16631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632  (exit $ac_status); } &&
16633	 { ac_try='test -z "$ac_c_werror_flag"
16634			 || test ! -s conftest.err'
16635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636  (eval $ac_try) 2>&5
16637  ac_status=$?
16638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639  (exit $ac_status); }; } &&
16640	 { ac_try='test -s conftest$ac_exeext'
16641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642  (eval $ac_try) 2>&5
16643  ac_status=$?
16644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645  (exit $ac_status); }; }; then
16646
16647aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16648}'`
16649# Check for a 64-bit object if we didn't find anything.
16650if 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; }
16651}'`; fi
16652else
16653  echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
16656fi
16657rm -f conftest.err conftest.$ac_objext \
16658      conftest$ac_exeext conftest.$ac_ext
16659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16660
16661       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16662	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"
16663       else
16664	if test "$host_cpu" = ia64; then
16665	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16666	  allow_undefined_flag_GCJ="-z nodefs"
16667	  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"
16668	else
16669	 # Determine the default libpath from the value encoded in an empty executable.
16670	 cat >conftest.$ac_ext <<_ACEOF
16671/* confdefs.h.  */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h.  */
16676
16677int
16678main ()
16679{
16680
16681  ;
16682  return 0;
16683}
16684_ACEOF
16685rm -f conftest.$ac_objext conftest$ac_exeext
16686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16687  (eval $ac_link) 2>conftest.er1
16688  ac_status=$?
16689  grep -v '^ *+' conftest.er1 >conftest.err
16690  rm -f conftest.er1
16691  cat conftest.err >&5
16692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693  (exit $ac_status); } &&
16694	 { ac_try='test -z "$ac_c_werror_flag"
16695			 || test ! -s conftest.err'
16696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697  (eval $ac_try) 2>&5
16698  ac_status=$?
16699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700  (exit $ac_status); }; } &&
16701	 { ac_try='test -s conftest$ac_exeext'
16702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703  (eval $ac_try) 2>&5
16704  ac_status=$?
16705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706  (exit $ac_status); }; }; then
16707
16708aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16709}'`
16710# Check for a 64-bit object if we didn't find anything.
16711if 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; }
16712}'`; fi
16713else
16714  echo "$as_me: failed program was:" >&5
16715sed 's/^/| /' conftest.$ac_ext >&5
16716
16717fi
16718rm -f conftest.err conftest.$ac_objext \
16719      conftest$ac_exeext conftest.$ac_ext
16720if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16721
16722	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16723	  # Warning - without using the other run time loading flags,
16724	  # -berok will link without error, but may produce a broken library.
16725	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16726	  allow_undefined_flag_GCJ=' ${wl}-berok'
16727	  # -bexpall does not export symbols beginning with underscore (_)
16728	  always_export_symbols_GCJ=yes
16729	  # Exported symbols can be pulled into shared objects from archives
16730	  whole_archive_flag_spec_GCJ=' '
16731	  archive_cmds_need_lc_GCJ=yes
16732	  # This is similar to how AIX traditionally builds its shared libraries.
16733	  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'
16734	fi
16735      fi
16736      ;;
16737
16738    amigaos*)
16739      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)'
16740      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16741      hardcode_minus_L_GCJ=yes
16742      # see comment about different semantics on the GNU ld section
16743      ld_shlibs_GCJ=no
16744      ;;
16745
16746    bsdi[45]*)
16747      export_dynamic_flag_spec_GCJ=-rdynamic
16748      ;;
16749
16750    cygwin* | mingw* | pw32*)
16751      # When not using gcc, we currently assume that we are using
16752      # Microsoft Visual C++.
16753      # hardcode_libdir_flag_spec is actually meaningless, as there is
16754      # no search path for DLLs.
16755      hardcode_libdir_flag_spec_GCJ=' '
16756      allow_undefined_flag_GCJ=unsupported
16757      # Tell ltmain to make .lib files, not .a files.
16758      libext=lib
16759      # Tell ltmain to make .dll files, not .so files.
16760      shrext_cmds=".dll"
16761      # FIXME: Setting linknames here is a bad hack.
16762      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16763      # The linker will automatically build a .lib file if we build a DLL.
16764      old_archive_From_new_cmds_GCJ='true'
16765      # FIXME: Should let the user specify the lib program.
16766      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16767      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16768      enable_shared_with_static_runtimes_GCJ=yes
16769      ;;
16770
16771    darwin* | rhapsody*)
16772      case $host_os in
16773        rhapsody* | darwin1.[012])
16774         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16775         ;;
16776       *) # Darwin 1.3 on
16777         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16778           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16779         else
16780           case ${MACOSX_DEPLOYMENT_TARGET} in
16781             10.[012])
16782               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16783               ;;
16784             10.*)
16785               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16786               ;;
16787           esac
16788         fi
16789         ;;
16790      esac
16791      archive_cmds_need_lc_GCJ=no
16792      hardcode_direct_GCJ=no
16793      hardcode_automatic_GCJ=yes
16794      hardcode_shlibpath_var_GCJ=unsupported
16795      whole_archive_flag_spec_GCJ=''
16796      link_all_deplibs_GCJ=yes
16797    if test "$GCC" = yes ; then
16798    	output_verbose_link_cmd='echo'
16799        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16800      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16801      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16802      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16803      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}'
16804    else
16805      case $cc_basename in
16806        xlc*)
16807         output_verbose_link_cmd='echo'
16808         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16809         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16810          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16811         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16812          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}'
16813          ;;
16814       *)
16815         ld_shlibs_GCJ=no
16816          ;;
16817      esac
16818    fi
16819      ;;
16820
16821    dgux*)
16822      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16823      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16824      hardcode_shlibpath_var_GCJ=no
16825      ;;
16826
16827    freebsd1*)
16828      ld_shlibs_GCJ=no
16829      ;;
16830
16831    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16832    # support.  Future versions do this automatically, but an explicit c++rt0.o
16833    # does not break anything, and helps significantly (at the cost of a little
16834    # extra space).
16835    freebsd2.2*)
16836      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16837      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16838      hardcode_direct_GCJ=yes
16839      hardcode_shlibpath_var_GCJ=no
16840      ;;
16841
16842    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16843    freebsd2*)
16844      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16845      hardcode_direct_GCJ=yes
16846      hardcode_minus_L_GCJ=yes
16847      hardcode_shlibpath_var_GCJ=no
16848      ;;
16849
16850    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16851    freebsd* | kfreebsd*-gnu | dragonfly*)
16852      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16853      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16854      hardcode_direct_GCJ=yes
16855      hardcode_shlibpath_var_GCJ=no
16856      ;;
16857
16858    hpux9*)
16859      if test "$GCC" = yes; then
16860	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'
16861      else
16862	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'
16863      fi
16864      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16865      hardcode_libdir_separator_GCJ=:
16866      hardcode_direct_GCJ=yes
16867
16868      # hardcode_minus_L: Not really in the search PATH,
16869      # but as the default location of the library.
16870      hardcode_minus_L_GCJ=yes
16871      export_dynamic_flag_spec_GCJ='${wl}-E'
16872      ;;
16873
16874    hpux10* | hpux11*)
16875      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16876	case $host_cpu in
16877	hppa*64*|ia64*)
16878	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16879	  ;;
16880	*)
16881	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16882	  ;;
16883	esac
16884      else
16885	case $host_cpu in
16886	hppa*64*|ia64*)
16887	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16888	  ;;
16889	*)
16890	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16891	  ;;
16892	esac
16893      fi
16894      if test "$with_gnu_ld" = no; then
16895	case $host_cpu in
16896	hppa*64*)
16897	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16898	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16899	  hardcode_libdir_separator_GCJ=:
16900	  hardcode_direct_GCJ=no
16901	  hardcode_shlibpath_var_GCJ=no
16902	  ;;
16903	ia64*)
16904	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16905	  hardcode_direct_GCJ=no
16906	  hardcode_shlibpath_var_GCJ=no
16907
16908	  # hardcode_minus_L: Not really in the search PATH,
16909	  # but as the default location of the library.
16910	  hardcode_minus_L_GCJ=yes
16911	  ;;
16912	*)
16913	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16914	  hardcode_libdir_separator_GCJ=:
16915	  hardcode_direct_GCJ=yes
16916	  export_dynamic_flag_spec_GCJ='${wl}-E'
16917
16918	  # hardcode_minus_L: Not really in the search PATH,
16919	  # but as the default location of the library.
16920	  hardcode_minus_L_GCJ=yes
16921	  ;;
16922	esac
16923      fi
16924      ;;
16925
16926    irix5* | irix6* | nonstopux*)
16927      if test "$GCC" = yes; then
16928	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'
16929      else
16930	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'
16931	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16932      fi
16933      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16934      hardcode_libdir_separator_GCJ=:
16935      link_all_deplibs_GCJ=yes
16936      ;;
16937
16938    netbsd*)
16939      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16940	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16941      else
16942	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16943      fi
16944      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16945      hardcode_direct_GCJ=yes
16946      hardcode_shlibpath_var_GCJ=no
16947      ;;
16948
16949    newsos6)
16950      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16951      hardcode_direct_GCJ=yes
16952      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16953      hardcode_libdir_separator_GCJ=:
16954      hardcode_shlibpath_var_GCJ=no
16955      ;;
16956
16957    openbsd*)
16958      hardcode_direct_GCJ=yes
16959      hardcode_shlibpath_var_GCJ=no
16960      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16961	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16962	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16963	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16964	export_dynamic_flag_spec_GCJ='${wl}-E'
16965      else
16966       case $host_os in
16967	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16968	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16969	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16970	   ;;
16971	 *)
16972	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16973	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16974	   ;;
16975       esac
16976      fi
16977      ;;
16978
16979    os2*)
16980      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16981      hardcode_minus_L_GCJ=yes
16982      allow_undefined_flag_GCJ=unsupported
16983      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'
16984      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16985      ;;
16986
16987    osf3*)
16988      if test "$GCC" = yes; then
16989	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16990	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'
16991      else
16992	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16993	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'
16994      fi
16995      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16996      hardcode_libdir_separator_GCJ=:
16997      ;;
16998
16999    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17000      if test "$GCC" = yes; then
17001	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17002	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'
17003	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17004      else
17005	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17006	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'
17007	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~
17008	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17009
17010	# Both c and cxx compiler support -rpath directly
17011	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17012      fi
17013      hardcode_libdir_separator_GCJ=:
17014      ;;
17015
17016    sco3.2v5*)
17017      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17018      hardcode_shlibpath_var_GCJ=no
17019      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17020      runpath_var=LD_RUN_PATH
17021      hardcode_runpath_var=yes
17022      ;;
17023
17024    solaris*)
17025      no_undefined_flag_GCJ=' -z text'
17026      if test "$GCC" = yes; then
17027	wlarc='${wl}'
17028	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17029	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17030	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17031      else
17032	wlarc=''
17033	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17034	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17035  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17036      fi
17037      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17038      hardcode_shlibpath_var_GCJ=no
17039      case $host_os in
17040      solaris2.[0-5] | solaris2.[0-5].*) ;;
17041      *)
17042 	# The compiler driver will combine linker options so we
17043 	# cannot just pass the convience library names through
17044 	# without $wl, iff we do not link with $LD.
17045 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17046 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17047 	case $wlarc in
17048 	'')
17049 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17050 	*)
17051 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17052 	esac ;;
17053      esac
17054      link_all_deplibs_GCJ=yes
17055      ;;
17056
17057    sunos4*)
17058      if test "x$host_vendor" = xsequent; then
17059	# Use $CC to link under sequent, because it throws in some extra .o
17060	# files that make .init and .fini sections work.
17061	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17062      else
17063	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17064      fi
17065      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17066      hardcode_direct_GCJ=yes
17067      hardcode_minus_L_GCJ=yes
17068      hardcode_shlibpath_var_GCJ=no
17069      ;;
17070
17071    sysv4)
17072      case $host_vendor in
17073	sni)
17074	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17075	  hardcode_direct_GCJ=yes # is this really true???
17076	;;
17077	siemens)
17078	  ## LD is ld it makes a PLAMLIB
17079	  ## CC just makes a GrossModule.
17080	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17081	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17082	  hardcode_direct_GCJ=no
17083        ;;
17084	motorola)
17085	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17086	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17087	;;
17088      esac
17089      runpath_var='LD_RUN_PATH'
17090      hardcode_shlibpath_var_GCJ=no
17091      ;;
17092
17093    sysv4.3*)
17094      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17095      hardcode_shlibpath_var_GCJ=no
17096      export_dynamic_flag_spec_GCJ='-Bexport'
17097      ;;
17098
17099    sysv4*MP*)
17100      if test -d /usr/nec; then
17101	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102	hardcode_shlibpath_var_GCJ=no
17103	runpath_var=LD_RUN_PATH
17104	hardcode_runpath_var=yes
17105	ld_shlibs_GCJ=yes
17106      fi
17107      ;;
17108
17109    sysv4.2uw2*)
17110      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17111      hardcode_direct_GCJ=yes
17112      hardcode_minus_L_GCJ=no
17113      hardcode_shlibpath_var_GCJ=no
17114      hardcode_runpath_var=yes
17115      runpath_var=LD_RUN_PATH
17116      ;;
17117
17118   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17119      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17120      if test "$GCC" = yes; then
17121	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17122      else
17123	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17124      fi
17125      runpath_var='LD_RUN_PATH'
17126      hardcode_shlibpath_var_GCJ=no
17127      ;;
17128
17129    sysv5*)
17130      no_undefined_flag_GCJ=' -z text'
17131      # $CC -shared without GNU ld will not create a library from C++
17132      # object files and a static libstdc++, better avoid it by now
17133      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17134      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17135  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17136      hardcode_libdir_flag_spec_GCJ=
17137      hardcode_shlibpath_var_GCJ=no
17138      runpath_var='LD_RUN_PATH'
17139      ;;
17140
17141    uts4*)
17142      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17143      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17144      hardcode_shlibpath_var_GCJ=no
17145      ;;
17146
17147    *)
17148      ld_shlibs_GCJ=no
17149      ;;
17150    esac
17151  fi
17152
17153echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17154echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17155test "$ld_shlibs_GCJ" = no && can_build_shared=no
17156
17157variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17158if test "$GCC" = yes; then
17159  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17160fi
17161
17162#
17163# Do we need to explicitly link libc?
17164#
17165case "x$archive_cmds_need_lc_GCJ" in
17166x|xyes)
17167  # Assume -lc should be added
17168  archive_cmds_need_lc_GCJ=yes
17169
17170  if test "$enable_shared" = yes && test "$GCC" = yes; then
17171    case $archive_cmds_GCJ in
17172    *'~'*)
17173      # FIXME: we may have to deal with multi-command sequences.
17174      ;;
17175    '$CC '*)
17176      # Test whether the compiler implicitly links with -lc since on some
17177      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17178      # to ld, don't add -lc before -lgcc.
17179      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17180echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17181      $rm conftest*
17182      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17183
17184      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17185  (eval $ac_compile) 2>&5
17186  ac_status=$?
17187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188  (exit $ac_status); } 2>conftest.err; then
17189        soname=conftest
17190        lib=conftest
17191        libobjs=conftest.$ac_objext
17192        deplibs=
17193        wl=$lt_prog_compiler_wl_GCJ
17194        compiler_flags=-v
17195        linker_flags=-v
17196        verstring=
17197        output_objdir=.
17198        libname=conftest
17199        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17200        allow_undefined_flag_GCJ=
17201        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17202  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17203  ac_status=$?
17204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205  (exit $ac_status); }
17206        then
17207	  archive_cmds_need_lc_GCJ=no
17208        else
17209	  archive_cmds_need_lc_GCJ=yes
17210        fi
17211        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17212      else
17213        cat conftest.err 1>&5
17214      fi
17215      $rm conftest*
17216      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17217echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17218      ;;
17219    esac
17220  fi
17221  ;;
17222esac
17223
17224echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17225echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17226library_names_spec=
17227libname_spec='lib$name'
17228soname_spec=
17229shrext_cmds=".so"
17230postinstall_cmds=
17231postuninstall_cmds=
17232finish_cmds=
17233finish_eval=
17234shlibpath_var=
17235shlibpath_overrides_runpath=unknown
17236version_type=none
17237dynamic_linker="$host_os ld.so"
17238sys_lib_dlsearch_path_spec="/lib /usr/lib"
17239if test "$GCC" = yes; then
17240  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17241  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17242    # if the path contains ";" then we assume it to be the separator
17243    # otherwise default to the standard path separator (i.e. ":") - it is
17244    # assumed that no part of a normal pathname contains ";" but that should
17245    # okay in the real world where ";" in dirpaths is itself problematic.
17246    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17247  else
17248    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17249  fi
17250else
17251  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17252fi
17253need_lib_prefix=unknown
17254hardcode_into_libs=no
17255
17256# when you set need_version to no, make sure it does not cause -set_version
17257# flags to be left without arguments
17258need_version=unknown
17259
17260case $host_os in
17261aix3*)
17262  version_type=linux
17263  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17264  shlibpath_var=LIBPATH
17265
17266  # AIX 3 has no versioning support, so we append a major version to the name.
17267  soname_spec='${libname}${release}${shared_ext}$major'
17268  ;;
17269
17270aix4* | aix5*)
17271  version_type=linux
17272  need_lib_prefix=no
17273  need_version=no
17274  hardcode_into_libs=yes
17275  if test "$host_cpu" = ia64; then
17276    # AIX 5 supports IA64
17277    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17278    shlibpath_var=LD_LIBRARY_PATH
17279  else
17280    # With GCC up to 2.95.x, collect2 would create an import file
17281    # for dependence libraries.  The import file would start with
17282    # the line `#! .'.  This would cause the generated library to
17283    # depend on `.', always an invalid library.  This was fixed in
17284    # development snapshots of GCC prior to 3.0.
17285    case $host_os in
17286      aix4 | aix4.[01] | aix4.[01].*)
17287      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17288	   echo ' yes '
17289	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17290	:
17291      else
17292	can_build_shared=no
17293      fi
17294      ;;
17295    esac
17296    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17297    # soname into executable. Probably we can add versioning support to
17298    # collect2, so additional links can be useful in future.
17299    if test "$aix_use_runtimelinking" = yes; then
17300      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17301      # instead of lib<name>.a to let people know that these are not
17302      # typical AIX shared libraries.
17303      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17304    else
17305      # We preserve .a as extension for shared libraries through AIX4.2
17306      # and later when we are not doing run time linking.
17307      library_names_spec='${libname}${release}.a $libname.a'
17308      soname_spec='${libname}${release}${shared_ext}$major'
17309    fi
17310    shlibpath_var=LIBPATH
17311  fi
17312  ;;
17313
17314amigaos*)
17315  library_names_spec='$libname.ixlibrary $libname.a'
17316  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17317  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'
17318  ;;
17319
17320beos*)
17321  library_names_spec='${libname}${shared_ext}'
17322  dynamic_linker="$host_os ld.so"
17323  shlibpath_var=LIBRARY_PATH
17324  ;;
17325
17326bsdi[45]*)
17327  version_type=linux
17328  need_version=no
17329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330  soname_spec='${libname}${release}${shared_ext}$major'
17331  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17332  shlibpath_var=LD_LIBRARY_PATH
17333  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17334  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17335  # the default ld.so.conf also contains /usr/contrib/lib and
17336  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17337  # libtool to hard-code these into programs
17338  ;;
17339
17340cygwin* | mingw* | pw32*)
17341  version_type=windows
17342  shrext_cmds=".dll"
17343  need_version=no
17344  need_lib_prefix=no
17345
17346  case $GCC,$host_os in
17347  yes,cygwin* | yes,mingw* | yes,pw32*)
17348    library_names_spec='$libname.dll.a'
17349    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17350    postinstall_cmds='base_file=`basename \${file}`~
17351      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17352      dldir=$destdir/`dirname \$dlpath`~
17353      test -d \$dldir || mkdir -p \$dldir~
17354      $install_prog $dir/$dlname \$dldir/$dlname~
17355      chmod a+x \$dldir/$dlname'
17356    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17357      dlpath=$dir/\$dldll~
17358       $rm \$dlpath'
17359    shlibpath_overrides_runpath=yes
17360
17361    case $host_os in
17362    cygwin*)
17363      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17364      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17365      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17366      ;;
17367    mingw*)
17368      # MinGW DLLs use traditional 'lib' prefix
17369      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17370      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17371      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17372        # It is most probably a Windows format PATH printed by
17373        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17374        # path with ; separators, and with drive letters. We can handle the
17375        # drive letters (cygwin fileutils understands them), so leave them,
17376        # especially as we might pass files found there to a mingw objdump,
17377        # which wouldn't understand a cygwinified path. Ahh.
17378        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17379      else
17380        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17381      fi
17382      ;;
17383    pw32*)
17384      # pw32 DLLs use 'pw' prefix rather than 'lib'
17385      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17386      ;;
17387    esac
17388    ;;
17389
17390  *)
17391    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17392    ;;
17393  esac
17394  dynamic_linker='Win32 ld.exe'
17395  # FIXME: first we should search . and the directory the executable is in
17396  shlibpath_var=PATH
17397  ;;
17398
17399darwin* | rhapsody*)
17400  dynamic_linker="$host_os dyld"
17401  version_type=darwin
17402  need_lib_prefix=no
17403  need_version=no
17404  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17405  soname_spec='${libname}${release}${major}$shared_ext'
17406  shlibpath_overrides_runpath=yes
17407  shlibpath_var=DYLD_LIBRARY_PATH
17408  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17409  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17410  if test "$GCC" = yes; then
17411    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"`
17412  else
17413    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17414  fi
17415  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17416  ;;
17417
17418dgux*)
17419  version_type=linux
17420  need_lib_prefix=no
17421  need_version=no
17422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17423  soname_spec='${libname}${release}${shared_ext}$major'
17424  shlibpath_var=LD_LIBRARY_PATH
17425  ;;
17426
17427freebsd1*)
17428  dynamic_linker=no
17429  ;;
17430
17431kfreebsd*-gnu)
17432  version_type=linux
17433  need_lib_prefix=no
17434  need_version=no
17435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17436  soname_spec='${libname}${release}${shared_ext}$major'
17437  shlibpath_var=LD_LIBRARY_PATH
17438  shlibpath_overrides_runpath=no
17439  hardcode_into_libs=yes
17440  dynamic_linker='GNU ld.so'
17441  ;;
17442
17443freebsd* | dragonfly*)
17444  # DragonFly does not have aout.  When/if they implement a new
17445  # versioning mechanism, adjust this.
17446  if test -x /usr/bin/objformat; then
17447    objformat=`/usr/bin/objformat`
17448  else
17449    case $host_os in
17450    freebsd[123]*) objformat=aout ;;
17451    *) objformat=elf ;;
17452    esac
17453  fi
17454  version_type=freebsd-$objformat
17455  case $version_type in
17456    freebsd-elf*)
17457      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17458      need_version=no
17459      need_lib_prefix=no
17460      ;;
17461    freebsd-*)
17462      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17463      need_version=yes
17464      ;;
17465  esac
17466  shlibpath_var=LD_LIBRARY_PATH
17467  case $host_os in
17468  freebsd2*)
17469    shlibpath_overrides_runpath=yes
17470    ;;
17471  freebsd3.[01]* | freebsdelf3.[01]*)
17472    shlibpath_overrides_runpath=yes
17473    hardcode_into_libs=yes
17474    ;;
17475  *) # from 3.2 on
17476    shlibpath_overrides_runpath=no
17477    hardcode_into_libs=yes
17478    ;;
17479  esac
17480  ;;
17481
17482gnu*)
17483  version_type=linux
17484  need_lib_prefix=no
17485  need_version=no
17486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17487  soname_spec='${libname}${release}${shared_ext}$major'
17488  shlibpath_var=LD_LIBRARY_PATH
17489  hardcode_into_libs=yes
17490  ;;
17491
17492hpux9* | hpux10* | hpux11*)
17493  # Give a soname corresponding to the major version so that dld.sl refuses to
17494  # link against other versions.
17495  version_type=sunos
17496  need_lib_prefix=no
17497  need_version=no
17498  case $host_cpu in
17499  ia64*)
17500    shrext_cmds='.so'
17501    hardcode_into_libs=yes
17502    dynamic_linker="$host_os dld.so"
17503    shlibpath_var=LD_LIBRARY_PATH
17504    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17505    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506    soname_spec='${libname}${release}${shared_ext}$major'
17507    if test "X$HPUX_IA64_MODE" = X32; then
17508      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17509    else
17510      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17511    fi
17512    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17513    ;;
17514   hppa*64*)
17515     shrext_cmds='.sl'
17516     hardcode_into_libs=yes
17517     dynamic_linker="$host_os dld.sl"
17518     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17519     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521     soname_spec='${libname}${release}${shared_ext}$major'
17522     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17523     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17524     ;;
17525   *)
17526    shrext_cmds='.sl'
17527    dynamic_linker="$host_os dld.sl"
17528    shlibpath_var=SHLIB_PATH
17529    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17530    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531    soname_spec='${libname}${release}${shared_ext}$major'
17532    ;;
17533  esac
17534  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17535  postinstall_cmds='chmod 555 $lib'
17536  ;;
17537
17538irix5* | irix6* | nonstopux*)
17539  case $host_os in
17540    nonstopux*) version_type=nonstopux ;;
17541    *)
17542	if test "$lt_cv_prog_gnu_ld" = yes; then
17543		version_type=linux
17544	else
17545		version_type=irix
17546	fi ;;
17547  esac
17548  need_lib_prefix=no
17549  need_version=no
17550  soname_spec='${libname}${release}${shared_ext}$major'
17551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17552  case $host_os in
17553  irix5* | nonstopux*)
17554    libsuff= shlibsuff=
17555    ;;
17556  *)
17557    case $LD in # libtool.m4 will add one of these switches to LD
17558    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17559      libsuff= shlibsuff= libmagic=32-bit;;
17560    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17561      libsuff=32 shlibsuff=N32 libmagic=N32;;
17562    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17563      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17564    *) libsuff= shlibsuff= libmagic=never-match;;
17565    esac
17566    ;;
17567  esac
17568  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17569  shlibpath_overrides_runpath=no
17570  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17571  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17572  hardcode_into_libs=yes
17573  ;;
17574
17575# No shared lib support for Linux oldld, aout, or coff.
17576linux*oldld* | linux*aout* | linux*coff*)
17577  dynamic_linker=no
17578  ;;
17579
17580# This must be Linux ELF.
17581linux*)
17582  version_type=linux
17583  need_lib_prefix=no
17584  need_version=no
17585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586  soname_spec='${libname}${release}${shared_ext}$major'
17587  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17588  shlibpath_var=LD_LIBRARY_PATH
17589  shlibpath_overrides_runpath=no
17590  # This implies no fast_install, which is unacceptable.
17591  # Some rework will be needed to allow for fast_install
17592  # before this can be enabled.
17593  hardcode_into_libs=yes
17594
17595  # Append ld.so.conf contents to the search path
17596  if test -f /etc/ld.so.conf; then
17597    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17598    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17599  fi
17600
17601  # We used to test for /lib/ld.so.1 and disable shared libraries on
17602  # powerpc, because MkLinux only supported shared libraries with the
17603  # GNU dynamic linker.  Since this was broken with cross compilers,
17604  # most powerpc-linux boxes support dynamic linking these days and
17605  # people can always --disable-shared, the test was removed, and we
17606  # assume the GNU/Linux dynamic linker is in use.
17607  dynamic_linker='GNU/Linux ld.so'
17608  ;;
17609
17610knetbsd*-gnu)
17611  version_type=linux
17612  need_lib_prefix=no
17613  need_version=no
17614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17615  soname_spec='${libname}${release}${shared_ext}$major'
17616  shlibpath_var=LD_LIBRARY_PATH
17617  shlibpath_overrides_runpath=no
17618  hardcode_into_libs=yes
17619  dynamic_linker='GNU ld.so'
17620  ;;
17621
17622netbsd*)
17623  version_type=sunos
17624  need_lib_prefix=no
17625  need_version=no
17626  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17627    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17628    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17629    dynamic_linker='NetBSD (a.out) ld.so'
17630  else
17631    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17632    soname_spec='${libname}${release}${shared_ext}$major'
17633    dynamic_linker='NetBSD ld.elf_so'
17634  fi
17635  shlibpath_var=LD_LIBRARY_PATH
17636  shlibpath_overrides_runpath=yes
17637  hardcode_into_libs=yes
17638  ;;
17639
17640newsos6)
17641  version_type=linux
17642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643  shlibpath_var=LD_LIBRARY_PATH
17644  shlibpath_overrides_runpath=yes
17645  ;;
17646
17647nto-qnx*)
17648  version_type=linux
17649  need_lib_prefix=no
17650  need_version=no
17651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652  soname_spec='${libname}${release}${shared_ext}$major'
17653  shlibpath_var=LD_LIBRARY_PATH
17654  shlibpath_overrides_runpath=yes
17655  ;;
17656
17657openbsd*)
17658  version_type=sunos
17659  need_lib_prefix=no
17660  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17661  case $host_os in
17662    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17663    *)                         need_version=no  ;;
17664  esac
17665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17666  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17667  shlibpath_var=LD_LIBRARY_PATH
17668  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17669    case $host_os in
17670      openbsd2.[89] | openbsd2.[89].*)
17671	shlibpath_overrides_runpath=no
17672	;;
17673      *)
17674	shlibpath_overrides_runpath=yes
17675	;;
17676      esac
17677  else
17678    shlibpath_overrides_runpath=yes
17679  fi
17680  ;;
17681
17682os2*)
17683  libname_spec='$name'
17684  shrext_cmds=".dll"
17685  need_lib_prefix=no
17686  library_names_spec='$libname${shared_ext} $libname.a'
17687  dynamic_linker='OS/2 ld.exe'
17688  shlibpath_var=LIBPATH
17689  ;;
17690
17691osf3* | osf4* | osf5*)
17692  version_type=osf
17693  need_lib_prefix=no
17694  need_version=no
17695  soname_spec='${libname}${release}${shared_ext}$major'
17696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17697  shlibpath_var=LD_LIBRARY_PATH
17698  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17699  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17700  ;;
17701
17702sco3.2v5*)
17703  version_type=osf
17704  soname_spec='${libname}${release}${shared_ext}$major'
17705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706  shlibpath_var=LD_LIBRARY_PATH
17707  ;;
17708
17709solaris*)
17710  version_type=linux
17711  need_lib_prefix=no
17712  need_version=no
17713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714  soname_spec='${libname}${release}${shared_ext}$major'
17715  shlibpath_var=LD_LIBRARY_PATH
17716  shlibpath_overrides_runpath=yes
17717  hardcode_into_libs=yes
17718  # ldd complains unless libraries are executable
17719  postinstall_cmds='chmod +x $lib'
17720  ;;
17721
17722sunos4*)
17723  version_type=sunos
17724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17725  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17726  shlibpath_var=LD_LIBRARY_PATH
17727  shlibpath_overrides_runpath=yes
17728  if test "$with_gnu_ld" = yes; then
17729    need_lib_prefix=no
17730  fi
17731  need_version=yes
17732  ;;
17733
17734sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17735  version_type=linux
17736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17737  soname_spec='${libname}${release}${shared_ext}$major'
17738  shlibpath_var=LD_LIBRARY_PATH
17739  case $host_vendor in
17740    sni)
17741      shlibpath_overrides_runpath=no
17742      need_lib_prefix=no
17743      export_dynamic_flag_spec='${wl}-Blargedynsym'
17744      runpath_var=LD_RUN_PATH
17745      ;;
17746    siemens)
17747      need_lib_prefix=no
17748      ;;
17749    motorola)
17750      need_lib_prefix=no
17751      need_version=no
17752      shlibpath_overrides_runpath=no
17753      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17754      ;;
17755  esac
17756  ;;
17757
17758sysv4*MP*)
17759  if test -d /usr/nec ;then
17760    version_type=linux
17761    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17762    soname_spec='$libname${shared_ext}.$major'
17763    shlibpath_var=LD_LIBRARY_PATH
17764  fi
17765  ;;
17766
17767uts4*)
17768  version_type=linux
17769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17770  soname_spec='${libname}${release}${shared_ext}$major'
17771  shlibpath_var=LD_LIBRARY_PATH
17772  ;;
17773
17774*)
17775  dynamic_linker=no
17776  ;;
17777esac
17778echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17779echo "${ECHO_T}$dynamic_linker" >&6
17780test "$dynamic_linker" = no && can_build_shared=no
17781
17782echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17783echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17784hardcode_action_GCJ=
17785if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17786   test -n "$runpath_var_GCJ" || \
17787   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17788
17789  # We can hardcode non-existant directories.
17790  if test "$hardcode_direct_GCJ" != no &&
17791     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17792     # have to relink, otherwise we might link with an installed library
17793     # when we should be linking with a yet-to-be-installed one
17794     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17795     test "$hardcode_minus_L_GCJ" != no; then
17796    # Linking always hardcodes the temporary library directory.
17797    hardcode_action_GCJ=relink
17798  else
17799    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17800    hardcode_action_GCJ=immediate
17801  fi
17802else
17803  # We cannot hardcode anything, or else we can only hardcode existing
17804  # directories.
17805  hardcode_action_GCJ=unsupported
17806fi
17807echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17808echo "${ECHO_T}$hardcode_action_GCJ" >&6
17809
17810if test "$hardcode_action_GCJ" = relink; then
17811  # Fast installation is not supported
17812  enable_fast_install=no
17813elif test "$shlibpath_overrides_runpath" = yes ||
17814     test "$enable_shared" = no; then
17815  # Fast installation is not necessary
17816  enable_fast_install=needless
17817fi
17818
17819striplib=
17820old_striplib=
17821echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17822echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17823if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17824  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17825  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17826  echo "$as_me:$LINENO: result: yes" >&5
17827echo "${ECHO_T}yes" >&6
17828else
17829# FIXME - insert some real tests, host_os isn't really good enough
17830  case $host_os in
17831   darwin*)
17832       if test -n "$STRIP" ; then
17833         striplib="$STRIP -x"
17834         echo "$as_me:$LINENO: result: yes" >&5
17835echo "${ECHO_T}yes" >&6
17836       else
17837  echo "$as_me:$LINENO: result: no" >&5
17838echo "${ECHO_T}no" >&6
17839fi
17840       ;;
17841   *)
17842  echo "$as_me:$LINENO: result: no" >&5
17843echo "${ECHO_T}no" >&6
17844    ;;
17845  esac
17846fi
17847
17848if test "x$enable_dlopen" != xyes; then
17849  enable_dlopen=unknown
17850  enable_dlopen_self=unknown
17851  enable_dlopen_self_static=unknown
17852else
17853  lt_cv_dlopen=no
17854  lt_cv_dlopen_libs=
17855
17856  case $host_os in
17857  beos*)
17858    lt_cv_dlopen="load_add_on"
17859    lt_cv_dlopen_libs=
17860    lt_cv_dlopen_self=yes
17861    ;;
17862
17863  mingw* | pw32*)
17864    lt_cv_dlopen="LoadLibrary"
17865    lt_cv_dlopen_libs=
17866   ;;
17867
17868  cygwin*)
17869    lt_cv_dlopen="dlopen"
17870    lt_cv_dlopen_libs=
17871   ;;
17872
17873  darwin*)
17874  # if libdl is installed we need to link against it
17875    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17876echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17877if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17878  echo $ECHO_N "(cached) $ECHO_C" >&6
17879else
17880  ac_check_lib_save_LIBS=$LIBS
17881LIBS="-ldl  $LIBS"
17882cat >conftest.$ac_ext <<_ACEOF
17883/* confdefs.h.  */
17884_ACEOF
17885cat confdefs.h >>conftest.$ac_ext
17886cat >>conftest.$ac_ext <<_ACEOF
17887/* end confdefs.h.  */
17888
17889/* Override any gcc2 internal prototype to avoid an error.  */
17890#ifdef __cplusplus
17891extern "C"
17892#endif
17893/* We use char because int might match the return type of a gcc2
17894   builtin and then its argument prototype would still apply.  */
17895char dlopen ();
17896int
17897main ()
17898{
17899dlopen ();
17900  ;
17901  return 0;
17902}
17903_ACEOF
17904rm -f conftest.$ac_objext conftest$ac_exeext
17905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906  (eval $ac_link) 2>conftest.er1
17907  ac_status=$?
17908  grep -v '^ *+' conftest.er1 >conftest.err
17909  rm -f conftest.er1
17910  cat conftest.err >&5
17911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912  (exit $ac_status); } &&
17913	 { ac_try='test -z "$ac_c_werror_flag"
17914			 || test ! -s conftest.err'
17915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916  (eval $ac_try) 2>&5
17917  ac_status=$?
17918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919  (exit $ac_status); }; } &&
17920	 { ac_try='test -s conftest$ac_exeext'
17921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922  (eval $ac_try) 2>&5
17923  ac_status=$?
17924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925  (exit $ac_status); }; }; then
17926  ac_cv_lib_dl_dlopen=yes
17927else
17928  echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931ac_cv_lib_dl_dlopen=no
17932fi
17933rm -f conftest.err conftest.$ac_objext \
17934      conftest$ac_exeext conftest.$ac_ext
17935LIBS=$ac_check_lib_save_LIBS
17936fi
17937echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17938echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17939if test $ac_cv_lib_dl_dlopen = yes; then
17940  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17941else
17942
17943    lt_cv_dlopen="dyld"
17944    lt_cv_dlopen_libs=
17945    lt_cv_dlopen_self=yes
17946
17947fi
17948
17949   ;;
17950
17951  *)
17952    echo "$as_me:$LINENO: checking for shl_load" >&5
17953echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17954if test "${ac_cv_func_shl_load+set}" = set; then
17955  echo $ECHO_N "(cached) $ECHO_C" >&6
17956else
17957  cat >conftest.$ac_ext <<_ACEOF
17958/* confdefs.h.  */
17959_ACEOF
17960cat confdefs.h >>conftest.$ac_ext
17961cat >>conftest.$ac_ext <<_ACEOF
17962/* end confdefs.h.  */
17963/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17964   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17965#define shl_load innocuous_shl_load
17966
17967/* System header to define __stub macros and hopefully few prototypes,
17968    which can conflict with char shl_load (); below.
17969    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17970    <limits.h> exists even on freestanding compilers.  */
17971
17972#ifdef __STDC__
17973# include <limits.h>
17974#else
17975# include <assert.h>
17976#endif
17977
17978#undef shl_load
17979
17980/* Override any gcc2 internal prototype to avoid an error.  */
17981#ifdef __cplusplus
17982extern "C"
17983{
17984#endif
17985/* We use char because int might match the return type of a gcc2
17986   builtin and then its argument prototype would still apply.  */
17987char shl_load ();
17988/* The GNU C library defines this for functions which it implements
17989    to always fail with ENOSYS.  Some functions are actually named
17990    something starting with __ and the normal name is an alias.  */
17991#if defined (__stub_shl_load) || defined (__stub___shl_load)
17992choke me
17993#else
17994char (*f) () = shl_load;
17995#endif
17996#ifdef __cplusplus
17997}
17998#endif
17999
18000int
18001main ()
18002{
18003return f != shl_load;
18004  ;
18005  return 0;
18006}
18007_ACEOF
18008rm -f conftest.$ac_objext conftest$ac_exeext
18009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18010  (eval $ac_link) 2>conftest.er1
18011  ac_status=$?
18012  grep -v '^ *+' conftest.er1 >conftest.err
18013  rm -f conftest.er1
18014  cat conftest.err >&5
18015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016  (exit $ac_status); } &&
18017	 { ac_try='test -z "$ac_c_werror_flag"
18018			 || test ! -s conftest.err'
18019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020  (eval $ac_try) 2>&5
18021  ac_status=$?
18022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023  (exit $ac_status); }; } &&
18024	 { ac_try='test -s conftest$ac_exeext'
18025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026  (eval $ac_try) 2>&5
18027  ac_status=$?
18028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029  (exit $ac_status); }; }; then
18030  ac_cv_func_shl_load=yes
18031else
18032  echo "$as_me: failed program was:" >&5
18033sed 's/^/| /' conftest.$ac_ext >&5
18034
18035ac_cv_func_shl_load=no
18036fi
18037rm -f conftest.err conftest.$ac_objext \
18038      conftest$ac_exeext conftest.$ac_ext
18039fi
18040echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18041echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18042if test $ac_cv_func_shl_load = yes; then
18043  lt_cv_dlopen="shl_load"
18044else
18045  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18046echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18047if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18048  echo $ECHO_N "(cached) $ECHO_C" >&6
18049else
18050  ac_check_lib_save_LIBS=$LIBS
18051LIBS="-ldld  $LIBS"
18052cat >conftest.$ac_ext <<_ACEOF
18053/* confdefs.h.  */
18054_ACEOF
18055cat confdefs.h >>conftest.$ac_ext
18056cat >>conftest.$ac_ext <<_ACEOF
18057/* end confdefs.h.  */
18058
18059/* Override any gcc2 internal prototype to avoid an error.  */
18060#ifdef __cplusplus
18061extern "C"
18062#endif
18063/* We use char because int might match the return type of a gcc2
18064   builtin and then its argument prototype would still apply.  */
18065char shl_load ();
18066int
18067main ()
18068{
18069shl_load ();
18070  ;
18071  return 0;
18072}
18073_ACEOF
18074rm -f conftest.$ac_objext conftest$ac_exeext
18075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18076  (eval $ac_link) 2>conftest.er1
18077  ac_status=$?
18078  grep -v '^ *+' conftest.er1 >conftest.err
18079  rm -f conftest.er1
18080  cat conftest.err >&5
18081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082  (exit $ac_status); } &&
18083	 { ac_try='test -z "$ac_c_werror_flag"
18084			 || test ! -s conftest.err'
18085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086  (eval $ac_try) 2>&5
18087  ac_status=$?
18088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089  (exit $ac_status); }; } &&
18090	 { ac_try='test -s conftest$ac_exeext'
18091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092  (eval $ac_try) 2>&5
18093  ac_status=$?
18094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095  (exit $ac_status); }; }; then
18096  ac_cv_lib_dld_shl_load=yes
18097else
18098  echo "$as_me: failed program was:" >&5
18099sed 's/^/| /' conftest.$ac_ext >&5
18100
18101ac_cv_lib_dld_shl_load=no
18102fi
18103rm -f conftest.err conftest.$ac_objext \
18104      conftest$ac_exeext conftest.$ac_ext
18105LIBS=$ac_check_lib_save_LIBS
18106fi
18107echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18108echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18109if test $ac_cv_lib_dld_shl_load = yes; then
18110  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18111else
18112  echo "$as_me:$LINENO: checking for dlopen" >&5
18113echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18114if test "${ac_cv_func_dlopen+set}" = set; then
18115  echo $ECHO_N "(cached) $ECHO_C" >&6
18116else
18117  cat >conftest.$ac_ext <<_ACEOF
18118/* confdefs.h.  */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h.  */
18123/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18124   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18125#define dlopen innocuous_dlopen
18126
18127/* System header to define __stub macros and hopefully few prototypes,
18128    which can conflict with char dlopen (); below.
18129    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18130    <limits.h> exists even on freestanding compilers.  */
18131
18132#ifdef __STDC__
18133# include <limits.h>
18134#else
18135# include <assert.h>
18136#endif
18137
18138#undef dlopen
18139
18140/* Override any gcc2 internal prototype to avoid an error.  */
18141#ifdef __cplusplus
18142extern "C"
18143{
18144#endif
18145/* We use char because int might match the return type of a gcc2
18146   builtin and then its argument prototype would still apply.  */
18147char dlopen ();
18148/* The GNU C library defines this for functions which it implements
18149    to always fail with ENOSYS.  Some functions are actually named
18150    something starting with __ and the normal name is an alias.  */
18151#if defined (__stub_dlopen) || defined (__stub___dlopen)
18152choke me
18153#else
18154char (*f) () = dlopen;
18155#endif
18156#ifdef __cplusplus
18157}
18158#endif
18159
18160int
18161main ()
18162{
18163return f != dlopen;
18164  ;
18165  return 0;
18166}
18167_ACEOF
18168rm -f conftest.$ac_objext conftest$ac_exeext
18169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18170  (eval $ac_link) 2>conftest.er1
18171  ac_status=$?
18172  grep -v '^ *+' conftest.er1 >conftest.err
18173  rm -f conftest.er1
18174  cat conftest.err >&5
18175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176  (exit $ac_status); } &&
18177	 { ac_try='test -z "$ac_c_werror_flag"
18178			 || test ! -s conftest.err'
18179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180  (eval $ac_try) 2>&5
18181  ac_status=$?
18182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183  (exit $ac_status); }; } &&
18184	 { ac_try='test -s conftest$ac_exeext'
18185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186  (eval $ac_try) 2>&5
18187  ac_status=$?
18188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189  (exit $ac_status); }; }; then
18190  ac_cv_func_dlopen=yes
18191else
18192  echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
18195ac_cv_func_dlopen=no
18196fi
18197rm -f conftest.err conftest.$ac_objext \
18198      conftest$ac_exeext conftest.$ac_ext
18199fi
18200echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18201echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18202if test $ac_cv_func_dlopen = yes; then
18203  lt_cv_dlopen="dlopen"
18204else
18205  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18206echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18207if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18208  echo $ECHO_N "(cached) $ECHO_C" >&6
18209else
18210  ac_check_lib_save_LIBS=$LIBS
18211LIBS="-ldl  $LIBS"
18212cat >conftest.$ac_ext <<_ACEOF
18213/* confdefs.h.  */
18214_ACEOF
18215cat confdefs.h >>conftest.$ac_ext
18216cat >>conftest.$ac_ext <<_ACEOF
18217/* end confdefs.h.  */
18218
18219/* Override any gcc2 internal prototype to avoid an error.  */
18220#ifdef __cplusplus
18221extern "C"
18222#endif
18223/* We use char because int might match the return type of a gcc2
18224   builtin and then its argument prototype would still apply.  */
18225char dlopen ();
18226int
18227main ()
18228{
18229dlopen ();
18230  ;
18231  return 0;
18232}
18233_ACEOF
18234rm -f conftest.$ac_objext conftest$ac_exeext
18235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236  (eval $ac_link) 2>conftest.er1
18237  ac_status=$?
18238  grep -v '^ *+' conftest.er1 >conftest.err
18239  rm -f conftest.er1
18240  cat conftest.err >&5
18241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242  (exit $ac_status); } &&
18243	 { ac_try='test -z "$ac_c_werror_flag"
18244			 || test ! -s conftest.err'
18245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246  (eval $ac_try) 2>&5
18247  ac_status=$?
18248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249  (exit $ac_status); }; } &&
18250	 { ac_try='test -s conftest$ac_exeext'
18251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252  (eval $ac_try) 2>&5
18253  ac_status=$?
18254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255  (exit $ac_status); }; }; then
18256  ac_cv_lib_dl_dlopen=yes
18257else
18258  echo "$as_me: failed program was:" >&5
18259sed 's/^/| /' conftest.$ac_ext >&5
18260
18261ac_cv_lib_dl_dlopen=no
18262fi
18263rm -f conftest.err conftest.$ac_objext \
18264      conftest$ac_exeext conftest.$ac_ext
18265LIBS=$ac_check_lib_save_LIBS
18266fi
18267echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18268echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18269if test $ac_cv_lib_dl_dlopen = yes; then
18270  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18271else
18272  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18273echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18274if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18275  echo $ECHO_N "(cached) $ECHO_C" >&6
18276else
18277  ac_check_lib_save_LIBS=$LIBS
18278LIBS="-lsvld  $LIBS"
18279cat >conftest.$ac_ext <<_ACEOF
18280/* confdefs.h.  */
18281_ACEOF
18282cat confdefs.h >>conftest.$ac_ext
18283cat >>conftest.$ac_ext <<_ACEOF
18284/* end confdefs.h.  */
18285
18286/* Override any gcc2 internal prototype to avoid an error.  */
18287#ifdef __cplusplus
18288extern "C"
18289#endif
18290/* We use char because int might match the return type of a gcc2
18291   builtin and then its argument prototype would still apply.  */
18292char dlopen ();
18293int
18294main ()
18295{
18296dlopen ();
18297  ;
18298  return 0;
18299}
18300_ACEOF
18301rm -f conftest.$ac_objext conftest$ac_exeext
18302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18303  (eval $ac_link) 2>conftest.er1
18304  ac_status=$?
18305  grep -v '^ *+' conftest.er1 >conftest.err
18306  rm -f conftest.er1
18307  cat conftest.err >&5
18308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309  (exit $ac_status); } &&
18310	 { ac_try='test -z "$ac_c_werror_flag"
18311			 || test ! -s conftest.err'
18312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313  (eval $ac_try) 2>&5
18314  ac_status=$?
18315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316  (exit $ac_status); }; } &&
18317	 { ac_try='test -s conftest$ac_exeext'
18318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319  (eval $ac_try) 2>&5
18320  ac_status=$?
18321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322  (exit $ac_status); }; }; then
18323  ac_cv_lib_svld_dlopen=yes
18324else
18325  echo "$as_me: failed program was:" >&5
18326sed 's/^/| /' conftest.$ac_ext >&5
18327
18328ac_cv_lib_svld_dlopen=no
18329fi
18330rm -f conftest.err conftest.$ac_objext \
18331      conftest$ac_exeext conftest.$ac_ext
18332LIBS=$ac_check_lib_save_LIBS
18333fi
18334echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18335echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18336if test $ac_cv_lib_svld_dlopen = yes; then
18337  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18338else
18339  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18340echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18341if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18342  echo $ECHO_N "(cached) $ECHO_C" >&6
18343else
18344  ac_check_lib_save_LIBS=$LIBS
18345LIBS="-ldld  $LIBS"
18346cat >conftest.$ac_ext <<_ACEOF
18347/* confdefs.h.  */
18348_ACEOF
18349cat confdefs.h >>conftest.$ac_ext
18350cat >>conftest.$ac_ext <<_ACEOF
18351/* end confdefs.h.  */
18352
18353/* Override any gcc2 internal prototype to avoid an error.  */
18354#ifdef __cplusplus
18355extern "C"
18356#endif
18357/* We use char because int might match the return type of a gcc2
18358   builtin and then its argument prototype would still apply.  */
18359char dld_link ();
18360int
18361main ()
18362{
18363dld_link ();
18364  ;
18365  return 0;
18366}
18367_ACEOF
18368rm -f conftest.$ac_objext conftest$ac_exeext
18369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370  (eval $ac_link) 2>conftest.er1
18371  ac_status=$?
18372  grep -v '^ *+' conftest.er1 >conftest.err
18373  rm -f conftest.er1
18374  cat conftest.err >&5
18375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376  (exit $ac_status); } &&
18377	 { ac_try='test -z "$ac_c_werror_flag"
18378			 || test ! -s conftest.err'
18379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380  (eval $ac_try) 2>&5
18381  ac_status=$?
18382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383  (exit $ac_status); }; } &&
18384	 { ac_try='test -s conftest$ac_exeext'
18385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386  (eval $ac_try) 2>&5
18387  ac_status=$?
18388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389  (exit $ac_status); }; }; then
18390  ac_cv_lib_dld_dld_link=yes
18391else
18392  echo "$as_me: failed program was:" >&5
18393sed 's/^/| /' conftest.$ac_ext >&5
18394
18395ac_cv_lib_dld_dld_link=no
18396fi
18397rm -f conftest.err conftest.$ac_objext \
18398      conftest$ac_exeext conftest.$ac_ext
18399LIBS=$ac_check_lib_save_LIBS
18400fi
18401echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18402echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18403if test $ac_cv_lib_dld_dld_link = yes; then
18404  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18405fi
18406
18407
18408fi
18409
18410
18411fi
18412
18413
18414fi
18415
18416
18417fi
18418
18419
18420fi
18421
18422    ;;
18423  esac
18424
18425  if test "x$lt_cv_dlopen" != xno; then
18426    enable_dlopen=yes
18427  else
18428    enable_dlopen=no
18429  fi
18430
18431  case $lt_cv_dlopen in
18432  dlopen)
18433    save_CPPFLAGS="$CPPFLAGS"
18434    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18435
18436    save_LDFLAGS="$LDFLAGS"
18437    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18438
18439    save_LIBS="$LIBS"
18440    LIBS="$lt_cv_dlopen_libs $LIBS"
18441
18442    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18443echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18444if test "${lt_cv_dlopen_self+set}" = set; then
18445  echo $ECHO_N "(cached) $ECHO_C" >&6
18446else
18447  	  if test "$cross_compiling" = yes; then :
18448  lt_cv_dlopen_self=cross
18449else
18450  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18451  lt_status=$lt_dlunknown
18452  cat > conftest.$ac_ext <<EOF
18453#line 18453 "configure"
18454#include "confdefs.h"
18455
18456#if HAVE_DLFCN_H
18457#include <dlfcn.h>
18458#endif
18459
18460#include <stdio.h>
18461
18462#ifdef RTLD_GLOBAL
18463#  define LT_DLGLOBAL		RTLD_GLOBAL
18464#else
18465#  ifdef DL_GLOBAL
18466#    define LT_DLGLOBAL		DL_GLOBAL
18467#  else
18468#    define LT_DLGLOBAL		0
18469#  endif
18470#endif
18471
18472/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18473   find out it does not work in some platform. */
18474#ifndef LT_DLLAZY_OR_NOW
18475#  ifdef RTLD_LAZY
18476#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18477#  else
18478#    ifdef DL_LAZY
18479#      define LT_DLLAZY_OR_NOW		DL_LAZY
18480#    else
18481#      ifdef RTLD_NOW
18482#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18483#      else
18484#        ifdef DL_NOW
18485#          define LT_DLLAZY_OR_NOW	DL_NOW
18486#        else
18487#          define LT_DLLAZY_OR_NOW	0
18488#        endif
18489#      endif
18490#    endif
18491#  endif
18492#endif
18493
18494#ifdef __cplusplus
18495extern "C" void exit (int);
18496#endif
18497
18498void fnord() { int i=42;}
18499int main ()
18500{
18501  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18502  int status = $lt_dlunknown;
18503
18504  if (self)
18505    {
18506      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18507      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18508      /* dlclose (self); */
18509    }
18510
18511    exit (status);
18512}
18513EOF
18514  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18515  (eval $ac_link) 2>&5
18516  ac_status=$?
18517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18519    (./conftest; exit; ) >&5 2>/dev/null
18520    lt_status=$?
18521    case x$lt_status in
18522      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18523      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18524      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18525    esac
18526  else :
18527    # compilation failed
18528    lt_cv_dlopen_self=no
18529  fi
18530fi
18531rm -fr conftest*
18532
18533
18534fi
18535echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18536echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18537
18538    if test "x$lt_cv_dlopen_self" = xyes; then
18539      LDFLAGS="$LDFLAGS $link_static_flag"
18540      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18541echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18542if test "${lt_cv_dlopen_self_static+set}" = set; then
18543  echo $ECHO_N "(cached) $ECHO_C" >&6
18544else
18545  	  if test "$cross_compiling" = yes; then :
18546  lt_cv_dlopen_self_static=cross
18547else
18548  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18549  lt_status=$lt_dlunknown
18550  cat > conftest.$ac_ext <<EOF
18551#line 18551 "configure"
18552#include "confdefs.h"
18553
18554#if HAVE_DLFCN_H
18555#include <dlfcn.h>
18556#endif
18557
18558#include <stdio.h>
18559
18560#ifdef RTLD_GLOBAL
18561#  define LT_DLGLOBAL		RTLD_GLOBAL
18562#else
18563#  ifdef DL_GLOBAL
18564#    define LT_DLGLOBAL		DL_GLOBAL
18565#  else
18566#    define LT_DLGLOBAL		0
18567#  endif
18568#endif
18569
18570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18571   find out it does not work in some platform. */
18572#ifndef LT_DLLAZY_OR_NOW
18573#  ifdef RTLD_LAZY
18574#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18575#  else
18576#    ifdef DL_LAZY
18577#      define LT_DLLAZY_OR_NOW		DL_LAZY
18578#    else
18579#      ifdef RTLD_NOW
18580#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18581#      else
18582#        ifdef DL_NOW
18583#          define LT_DLLAZY_OR_NOW	DL_NOW
18584#        else
18585#          define LT_DLLAZY_OR_NOW	0
18586#        endif
18587#      endif
18588#    endif
18589#  endif
18590#endif
18591
18592#ifdef __cplusplus
18593extern "C" void exit (int);
18594#endif
18595
18596void fnord() { int i=42;}
18597int main ()
18598{
18599  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18600  int status = $lt_dlunknown;
18601
18602  if (self)
18603    {
18604      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18605      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18606      /* dlclose (self); */
18607    }
18608
18609    exit (status);
18610}
18611EOF
18612  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613  (eval $ac_link) 2>&5
18614  ac_status=$?
18615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18617    (./conftest; exit; ) >&5 2>/dev/null
18618    lt_status=$?
18619    case x$lt_status in
18620      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18621      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18622      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18623    esac
18624  else :
18625    # compilation failed
18626    lt_cv_dlopen_self_static=no
18627  fi
18628fi
18629rm -fr conftest*
18630
18631
18632fi
18633echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18634echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18635    fi
18636
18637    CPPFLAGS="$save_CPPFLAGS"
18638    LDFLAGS="$save_LDFLAGS"
18639    LIBS="$save_LIBS"
18640    ;;
18641  esac
18642
18643  case $lt_cv_dlopen_self in
18644  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18645  *) enable_dlopen_self=unknown ;;
18646  esac
18647
18648  case $lt_cv_dlopen_self_static in
18649  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18650  *) enable_dlopen_self_static=unknown ;;
18651  esac
18652fi
18653
18654
18655# The else clause should only fire when bootstrapping the
18656# libtool distribution, otherwise you forgot to ship ltmain.sh
18657# with your package, and you will get complaints that there are
18658# no rules to generate ltmain.sh.
18659if test -f "$ltmain"; then
18660  # See if we are running on zsh, and set the options which allow our commands through
18661  # without removal of \ escapes.
18662  if test -n "${ZSH_VERSION+set}" ; then
18663    setopt NO_GLOB_SUBST
18664  fi
18665  # Now quote all the things that may contain metacharacters while being
18666  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18667  # variables and quote the copies for generation of the libtool script.
18668  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18669    SED SHELL STRIP \
18670    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18671    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18672    deplibs_check_method reload_flag reload_cmds need_locks \
18673    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18674    lt_cv_sys_global_symbol_to_c_name_address \
18675    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18676    old_postinstall_cmds old_postuninstall_cmds \
18677    compiler_GCJ \
18678    CC_GCJ \
18679    LD_GCJ \
18680    lt_prog_compiler_wl_GCJ \
18681    lt_prog_compiler_pic_GCJ \
18682    lt_prog_compiler_static_GCJ \
18683    lt_prog_compiler_no_builtin_flag_GCJ \
18684    export_dynamic_flag_spec_GCJ \
18685    thread_safe_flag_spec_GCJ \
18686    whole_archive_flag_spec_GCJ \
18687    enable_shared_with_static_runtimes_GCJ \
18688    old_archive_cmds_GCJ \
18689    old_archive_from_new_cmds_GCJ \
18690    predep_objects_GCJ \
18691    postdep_objects_GCJ \
18692    predeps_GCJ \
18693    postdeps_GCJ \
18694    compiler_lib_search_path_GCJ \
18695    archive_cmds_GCJ \
18696    archive_expsym_cmds_GCJ \
18697    postinstall_cmds_GCJ \
18698    postuninstall_cmds_GCJ \
18699    old_archive_from_expsyms_cmds_GCJ \
18700    allow_undefined_flag_GCJ \
18701    no_undefined_flag_GCJ \
18702    export_symbols_cmds_GCJ \
18703    hardcode_libdir_flag_spec_GCJ \
18704    hardcode_libdir_flag_spec_ld_GCJ \
18705    hardcode_libdir_separator_GCJ \
18706    hardcode_automatic_GCJ \
18707    module_cmds_GCJ \
18708    module_expsym_cmds_GCJ \
18709    lt_cv_prog_compiler_c_o_GCJ \
18710    exclude_expsyms_GCJ \
18711    include_expsyms_GCJ; do
18712
18713    case $var in
18714    old_archive_cmds_GCJ | \
18715    old_archive_from_new_cmds_GCJ | \
18716    archive_cmds_GCJ | \
18717    archive_expsym_cmds_GCJ | \
18718    module_cmds_GCJ | \
18719    module_expsym_cmds_GCJ | \
18720    old_archive_from_expsyms_cmds_GCJ | \
18721    export_symbols_cmds_GCJ | \
18722    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18723    postinstall_cmds | postuninstall_cmds | \
18724    old_postinstall_cmds | old_postuninstall_cmds | \
18725    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18726      # Double-quote double-evaled strings.
18727      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18728      ;;
18729    *)
18730      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18731      ;;
18732    esac
18733  done
18734
18735  case $lt_echo in
18736  *'\$0 --fallback-echo"')
18737    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18738    ;;
18739  esac
18740
18741cfgfile="$ofile"
18742
18743  cat <<__EOF__ >> "$cfgfile"
18744# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18745
18746# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18747
18748# Shell to use when invoking shell scripts.
18749SHELL=$lt_SHELL
18750
18751# Whether or not to build shared libraries.
18752build_libtool_libs=$enable_shared
18753
18754# Whether or not to build static libraries.
18755build_old_libs=$enable_static
18756
18757# Whether or not to add -lc for building shared libraries.
18758build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18759
18760# Whether or not to disallow shared libs when runtime libs are static
18761allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18762
18763# Whether or not to optimize for fast installation.
18764fast_install=$enable_fast_install
18765
18766# The host system.
18767host_alias=$host_alias
18768host=$host
18769host_os=$host_os
18770
18771# The build system.
18772build_alias=$build_alias
18773build=$build
18774build_os=$build_os
18775
18776# An echo program that does not interpret backslashes.
18777echo=$lt_echo
18778
18779# The archiver.
18780AR=$lt_AR
18781AR_FLAGS=$lt_AR_FLAGS
18782
18783# A C compiler.
18784LTCC=$lt_LTCC
18785
18786# A language-specific compiler.
18787CC=$lt_compiler_GCJ
18788
18789# Is the compiler the GNU C compiler?
18790with_gcc=$GCC_GCJ
18791
18792# An ERE matcher.
18793EGREP=$lt_EGREP
18794
18795# The linker used to build libraries.
18796LD=$lt_LD_GCJ
18797
18798# Whether we need hard or soft links.
18799LN_S=$lt_LN_S
18800
18801# A BSD-compatible nm program.
18802NM=$lt_NM
18803
18804# A symbol stripping program
18805STRIP=$lt_STRIP
18806
18807# Used to examine libraries when file_magic_cmd begins "file"
18808MAGIC_CMD=$MAGIC_CMD
18809
18810# Used on cygwin: DLL creation program.
18811DLLTOOL="$DLLTOOL"
18812
18813# Used on cygwin: object dumper.
18814OBJDUMP="$OBJDUMP"
18815
18816# Used on cygwin: assembler.
18817AS="$AS"
18818
18819# The name of the directory that contains temporary libtool files.
18820objdir=$objdir
18821
18822# How to create reloadable object files.
18823reload_flag=$lt_reload_flag
18824reload_cmds=$lt_reload_cmds
18825
18826# How to pass a linker flag through the compiler.
18827wl=$lt_lt_prog_compiler_wl_GCJ
18828
18829# Object file suffix (normally "o").
18830objext="$ac_objext"
18831
18832# Old archive suffix (normally "a").
18833libext="$libext"
18834
18835# Shared library suffix (normally ".so").
18836shrext_cmds='$shrext_cmds'
18837
18838# Executable file suffix (normally "").
18839exeext="$exeext"
18840
18841# Additional compiler flags for building library objects.
18842pic_flag=$lt_lt_prog_compiler_pic_GCJ
18843pic_mode=$pic_mode
18844
18845# What is the maximum length of a command?
18846max_cmd_len=$lt_cv_sys_max_cmd_len
18847
18848# Does compiler simultaneously support -c and -o options?
18849compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18850
18851# Must we lock files when doing compilation?
18852need_locks=$lt_need_locks
18853
18854# Do we need the lib prefix for modules?
18855need_lib_prefix=$need_lib_prefix
18856
18857# Do we need a version for libraries?
18858need_version=$need_version
18859
18860# Whether dlopen is supported.
18861dlopen_support=$enable_dlopen
18862
18863# Whether dlopen of programs is supported.
18864dlopen_self=$enable_dlopen_self
18865
18866# Whether dlopen of statically linked programs is supported.
18867dlopen_self_static=$enable_dlopen_self_static
18868
18869# Compiler flag to prevent dynamic linking.
18870link_static_flag=$lt_lt_prog_compiler_static_GCJ
18871
18872# Compiler flag to turn off builtin functions.
18873no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18874
18875# Compiler flag to allow reflexive dlopens.
18876export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18877
18878# Compiler flag to generate shared objects directly from archives.
18879whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18880
18881# Compiler flag to generate thread-safe objects.
18882thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18883
18884# Library versioning type.
18885version_type=$version_type
18886
18887# Format of library name prefix.
18888libname_spec=$lt_libname_spec
18889
18890# List of archive names.  First name is the real one, the rest are links.
18891# The last name is the one that the linker finds with -lNAME.
18892library_names_spec=$lt_library_names_spec
18893
18894# The coded name of the library, if different from the real name.
18895soname_spec=$lt_soname_spec
18896
18897# Commands used to build and install an old-style archive.
18898RANLIB=$lt_RANLIB
18899old_archive_cmds=$lt_old_archive_cmds_GCJ
18900old_postinstall_cmds=$lt_old_postinstall_cmds
18901old_postuninstall_cmds=$lt_old_postuninstall_cmds
18902
18903# Create an old-style archive from a shared archive.
18904old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18905
18906# Create a temporary old-style archive to link instead of a shared archive.
18907old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18908
18909# Commands used to build and install a shared archive.
18910archive_cmds=$lt_archive_cmds_GCJ
18911archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18912postinstall_cmds=$lt_postinstall_cmds
18913postuninstall_cmds=$lt_postuninstall_cmds
18914
18915# Commands used to build a loadable module (assumed same as above if empty)
18916module_cmds=$lt_module_cmds_GCJ
18917module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18918
18919# Commands to strip libraries.
18920old_striplib=$lt_old_striplib
18921striplib=$lt_striplib
18922
18923# Dependencies to place before the objects being linked to create a
18924# shared library.
18925predep_objects=$lt_predep_objects_GCJ
18926
18927# Dependencies to place after the objects being linked to create a
18928# shared library.
18929postdep_objects=$lt_postdep_objects_GCJ
18930
18931# Dependencies to place before the objects being linked to create a
18932# shared library.
18933predeps=$lt_predeps_GCJ
18934
18935# Dependencies to place after the objects being linked to create a
18936# shared library.
18937postdeps=$lt_postdeps_GCJ
18938
18939# The library search path used internally by the compiler when linking
18940# a shared library.
18941compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18942
18943# Method to check whether dependent libraries are shared objects.
18944deplibs_check_method=$lt_deplibs_check_method
18945
18946# Command to use when deplibs_check_method == file_magic.
18947file_magic_cmd=$lt_file_magic_cmd
18948
18949# Flag that allows shared libraries with undefined symbols to be built.
18950allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18951
18952# Flag that forces no undefined symbols.
18953no_undefined_flag=$lt_no_undefined_flag_GCJ
18954
18955# Commands used to finish a libtool library installation in a directory.
18956finish_cmds=$lt_finish_cmds
18957
18958# Same as above, but a single script fragment to be evaled but not shown.
18959finish_eval=$lt_finish_eval
18960
18961# Take the output of nm and produce a listing of raw symbols and C names.
18962global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18963
18964# Transform the output of nm in a proper C declaration
18965global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18966
18967# Transform the output of nm in a C name address pair
18968global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18969
18970# This is the shared library runtime path variable.
18971runpath_var=$runpath_var
18972
18973# This is the shared library path variable.
18974shlibpath_var=$shlibpath_var
18975
18976# Is shlibpath searched before the hard-coded library search path?
18977shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18978
18979# How to hardcode a shared library path into an executable.
18980hardcode_action=$hardcode_action_GCJ
18981
18982# Whether we should hardcode library paths into libraries.
18983hardcode_into_libs=$hardcode_into_libs
18984
18985# Flag to hardcode \$libdir into a binary during linking.
18986# This must work even if \$libdir does not exist.
18987hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18988
18989# If ld is used when linking, flag to hardcode \$libdir into
18990# a binary during linking. This must work even if \$libdir does
18991# not exist.
18992hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18993
18994# Whether we need a single -rpath flag with a separated argument.
18995hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18996
18997# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18998# resulting binary.
18999hardcode_direct=$hardcode_direct_GCJ
19000
19001# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19002# resulting binary.
19003hardcode_minus_L=$hardcode_minus_L_GCJ
19004
19005# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19006# the resulting binary.
19007hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19008
19009# Set to yes if building a shared library automatically hardcodes DIR into the library
19010# and all subsequent libraries and executables linked against it.
19011hardcode_automatic=$hardcode_automatic_GCJ
19012
19013# Variables whose values should be saved in libtool wrapper scripts and
19014# restored at relink time.
19015variables_saved_for_relink="$variables_saved_for_relink"
19016
19017# Whether libtool must link a program against all its dependency libraries.
19018link_all_deplibs=$link_all_deplibs_GCJ
19019
19020# Compile-time system search path for libraries
19021sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19022
19023# Run-time system search path for libraries
19024sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19025
19026# Fix the shell variable \$srcfile for the compiler.
19027fix_srcfile_path="$fix_srcfile_path_GCJ"
19028
19029# Set to yes if exported symbols are required.
19030always_export_symbols=$always_export_symbols_GCJ
19031
19032# The commands to list exported symbols.
19033export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19034
19035# The commands to extract the exported symbol list from a shared archive.
19036extract_expsyms_cmds=$lt_extract_expsyms_cmds
19037
19038# Symbols that should not be listed in the preloaded symbols.
19039exclude_expsyms=$lt_exclude_expsyms_GCJ
19040
19041# Symbols that must always be exported.
19042include_expsyms=$lt_include_expsyms_GCJ
19043
19044# ### END LIBTOOL TAG CONFIG: $tagname
19045
19046__EOF__
19047
19048
19049else
19050  # If there is no Makefile yet, we rely on a make rule to execute
19051  # `config.status --recheck' to rerun these tests and create the
19052  # libtool script then.
19053  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19054  if test -f "$ltmain_in"; then
19055    test -f Makefile && make "$ltmain"
19056  fi
19057fi
19058
19059
19060ac_ext=c
19061ac_cpp='$CPP $CPPFLAGS'
19062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19064ac_compiler_gnu=$ac_cv_c_compiler_gnu
19065
19066CC="$lt_save_CC"
19067
19068	else
19069	  tagname=""
19070	fi
19071	;;
19072
19073      RC)
19074
19075
19076
19077# Source file extension for RC test sources.
19078ac_ext=rc
19079
19080# Object file extension for compiled RC test sources.
19081objext=o
19082objext_RC=$objext
19083
19084# Code to be used in simple compile tests
19085lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19086
19087# Code to be used in simple link tests
19088lt_simple_link_test_code="$lt_simple_compile_test_code"
19089
19090# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19091
19092# If no C compiler was specified, use CC.
19093LTCC=${LTCC-"$CC"}
19094
19095# Allow CC to be a program name with arguments.
19096compiler=$CC
19097
19098
19099# save warnings/boilerplate of simple test code
19100ac_outfile=conftest.$ac_objext
19101printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19102eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19103_lt_compiler_boilerplate=`cat conftest.err`
19104$rm conftest*
19105
19106ac_outfile=conftest.$ac_objext
19107printf "$lt_simple_link_test_code" >conftest.$ac_ext
19108eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19109_lt_linker_boilerplate=`cat conftest.err`
19110$rm conftest*
19111
19112
19113# Allow CC to be a program name with arguments.
19114lt_save_CC="$CC"
19115CC=${RC-"windres"}
19116compiler=$CC
19117compiler_RC=$CC
19118for cc_temp in $compiler""; do
19119  case $cc_temp in
19120    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19121    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19122    \-*) ;;
19123    *) break;;
19124  esac
19125done
19126cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19127
19128lt_cv_prog_compiler_c_o_RC=yes
19129
19130# The else clause should only fire when bootstrapping the
19131# libtool distribution, otherwise you forgot to ship ltmain.sh
19132# with your package, and you will get complaints that there are
19133# no rules to generate ltmain.sh.
19134if test -f "$ltmain"; then
19135  # See if we are running on zsh, and set the options which allow our commands through
19136  # without removal of \ escapes.
19137  if test -n "${ZSH_VERSION+set}" ; then
19138    setopt NO_GLOB_SUBST
19139  fi
19140  # Now quote all the things that may contain metacharacters while being
19141  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19142  # variables and quote the copies for generation of the libtool script.
19143  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19144    SED SHELL STRIP \
19145    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19146    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19147    deplibs_check_method reload_flag reload_cmds need_locks \
19148    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19149    lt_cv_sys_global_symbol_to_c_name_address \
19150    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19151    old_postinstall_cmds old_postuninstall_cmds \
19152    compiler_RC \
19153    CC_RC \
19154    LD_RC \
19155    lt_prog_compiler_wl_RC \
19156    lt_prog_compiler_pic_RC \
19157    lt_prog_compiler_static_RC \
19158    lt_prog_compiler_no_builtin_flag_RC \
19159    export_dynamic_flag_spec_RC \
19160    thread_safe_flag_spec_RC \
19161    whole_archive_flag_spec_RC \
19162    enable_shared_with_static_runtimes_RC \
19163    old_archive_cmds_RC \
19164    old_archive_from_new_cmds_RC \
19165    predep_objects_RC \
19166    postdep_objects_RC \
19167    predeps_RC \
19168    postdeps_RC \
19169    compiler_lib_search_path_RC \
19170    archive_cmds_RC \
19171    archive_expsym_cmds_RC \
19172    postinstall_cmds_RC \
19173    postuninstall_cmds_RC \
19174    old_archive_from_expsyms_cmds_RC \
19175    allow_undefined_flag_RC \
19176    no_undefined_flag_RC \
19177    export_symbols_cmds_RC \
19178    hardcode_libdir_flag_spec_RC \
19179    hardcode_libdir_flag_spec_ld_RC \
19180    hardcode_libdir_separator_RC \
19181    hardcode_automatic_RC \
19182    module_cmds_RC \
19183    module_expsym_cmds_RC \
19184    lt_cv_prog_compiler_c_o_RC \
19185    exclude_expsyms_RC \
19186    include_expsyms_RC; do
19187
19188    case $var in
19189    old_archive_cmds_RC | \
19190    old_archive_from_new_cmds_RC | \
19191    archive_cmds_RC | \
19192    archive_expsym_cmds_RC | \
19193    module_cmds_RC | \
19194    module_expsym_cmds_RC | \
19195    old_archive_from_expsyms_cmds_RC | \
19196    export_symbols_cmds_RC | \
19197    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19198    postinstall_cmds | postuninstall_cmds | \
19199    old_postinstall_cmds | old_postuninstall_cmds | \
19200    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19201      # Double-quote double-evaled strings.
19202      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19203      ;;
19204    *)
19205      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19206      ;;
19207    esac
19208  done
19209
19210  case $lt_echo in
19211  *'\$0 --fallback-echo"')
19212    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19213    ;;
19214  esac
19215
19216cfgfile="$ofile"
19217
19218  cat <<__EOF__ >> "$cfgfile"
19219# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19220
19221# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19222
19223# Shell to use when invoking shell scripts.
19224SHELL=$lt_SHELL
19225
19226# Whether or not to build shared libraries.
19227build_libtool_libs=$enable_shared
19228
19229# Whether or not to build static libraries.
19230build_old_libs=$enable_static
19231
19232# Whether or not to add -lc for building shared libraries.
19233build_libtool_need_lc=$archive_cmds_need_lc_RC
19234
19235# Whether or not to disallow shared libs when runtime libs are static
19236allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19237
19238# Whether or not to optimize for fast installation.
19239fast_install=$enable_fast_install
19240
19241# The host system.
19242host_alias=$host_alias
19243host=$host
19244host_os=$host_os
19245
19246# The build system.
19247build_alias=$build_alias
19248build=$build
19249build_os=$build_os
19250
19251# An echo program that does not interpret backslashes.
19252echo=$lt_echo
19253
19254# The archiver.
19255AR=$lt_AR
19256AR_FLAGS=$lt_AR_FLAGS
19257
19258# A C compiler.
19259LTCC=$lt_LTCC
19260
19261# A language-specific compiler.
19262CC=$lt_compiler_RC
19263
19264# Is the compiler the GNU C compiler?
19265with_gcc=$GCC_RC
19266
19267# An ERE matcher.
19268EGREP=$lt_EGREP
19269
19270# The linker used to build libraries.
19271LD=$lt_LD_RC
19272
19273# Whether we need hard or soft links.
19274LN_S=$lt_LN_S
19275
19276# A BSD-compatible nm program.
19277NM=$lt_NM
19278
19279# A symbol stripping program
19280STRIP=$lt_STRIP
19281
19282# Used to examine libraries when file_magic_cmd begins "file"
19283MAGIC_CMD=$MAGIC_CMD
19284
19285# Used on cygwin: DLL creation program.
19286DLLTOOL="$DLLTOOL"
19287
19288# Used on cygwin: object dumper.
19289OBJDUMP="$OBJDUMP"
19290
19291# Used on cygwin: assembler.
19292AS="$AS"
19293
19294# The name of the directory that contains temporary libtool files.
19295objdir=$objdir
19296
19297# How to create reloadable object files.
19298reload_flag=$lt_reload_flag
19299reload_cmds=$lt_reload_cmds
19300
19301# How to pass a linker flag through the compiler.
19302wl=$lt_lt_prog_compiler_wl_RC
19303
19304# Object file suffix (normally "o").
19305objext="$ac_objext"
19306
19307# Old archive suffix (normally "a").
19308libext="$libext"
19309
19310# Shared library suffix (normally ".so").
19311shrext_cmds='$shrext_cmds'
19312
19313# Executable file suffix (normally "").
19314exeext="$exeext"
19315
19316# Additional compiler flags for building library objects.
19317pic_flag=$lt_lt_prog_compiler_pic_RC
19318pic_mode=$pic_mode
19319
19320# What is the maximum length of a command?
19321max_cmd_len=$lt_cv_sys_max_cmd_len
19322
19323# Does compiler simultaneously support -c and -o options?
19324compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19325
19326# Must we lock files when doing compilation?
19327need_locks=$lt_need_locks
19328
19329# Do we need the lib prefix for modules?
19330need_lib_prefix=$need_lib_prefix
19331
19332# Do we need a version for libraries?
19333need_version=$need_version
19334
19335# Whether dlopen is supported.
19336dlopen_support=$enable_dlopen
19337
19338# Whether dlopen of programs is supported.
19339dlopen_self=$enable_dlopen_self
19340
19341# Whether dlopen of statically linked programs is supported.
19342dlopen_self_static=$enable_dlopen_self_static
19343
19344# Compiler flag to prevent dynamic linking.
19345link_static_flag=$lt_lt_prog_compiler_static_RC
19346
19347# Compiler flag to turn off builtin functions.
19348no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19349
19350# Compiler flag to allow reflexive dlopens.
19351export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19352
19353# Compiler flag to generate shared objects directly from archives.
19354whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19355
19356# Compiler flag to generate thread-safe objects.
19357thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19358
19359# Library versioning type.
19360version_type=$version_type
19361
19362# Format of library name prefix.
19363libname_spec=$lt_libname_spec
19364
19365# List of archive names.  First name is the real one, the rest are links.
19366# The last name is the one that the linker finds with -lNAME.
19367library_names_spec=$lt_library_names_spec
19368
19369# The coded name of the library, if different from the real name.
19370soname_spec=$lt_soname_spec
19371
19372# Commands used to build and install an old-style archive.
19373RANLIB=$lt_RANLIB
19374old_archive_cmds=$lt_old_archive_cmds_RC
19375old_postinstall_cmds=$lt_old_postinstall_cmds
19376old_postuninstall_cmds=$lt_old_postuninstall_cmds
19377
19378# Create an old-style archive from a shared archive.
19379old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19380
19381# Create a temporary old-style archive to link instead of a shared archive.
19382old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19383
19384# Commands used to build and install a shared archive.
19385archive_cmds=$lt_archive_cmds_RC
19386archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19387postinstall_cmds=$lt_postinstall_cmds
19388postuninstall_cmds=$lt_postuninstall_cmds
19389
19390# Commands used to build a loadable module (assumed same as above if empty)
19391module_cmds=$lt_module_cmds_RC
19392module_expsym_cmds=$lt_module_expsym_cmds_RC
19393
19394# Commands to strip libraries.
19395old_striplib=$lt_old_striplib
19396striplib=$lt_striplib
19397
19398# Dependencies to place before the objects being linked to create a
19399# shared library.
19400predep_objects=$lt_predep_objects_RC
19401
19402# Dependencies to place after the objects being linked to create a
19403# shared library.
19404postdep_objects=$lt_postdep_objects_RC
19405
19406# Dependencies to place before the objects being linked to create a
19407# shared library.
19408predeps=$lt_predeps_RC
19409
19410# Dependencies to place after the objects being linked to create a
19411# shared library.
19412postdeps=$lt_postdeps_RC
19413
19414# The library search path used internally by the compiler when linking
19415# a shared library.
19416compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19417
19418# Method to check whether dependent libraries are shared objects.
19419deplibs_check_method=$lt_deplibs_check_method
19420
19421# Command to use when deplibs_check_method == file_magic.
19422file_magic_cmd=$lt_file_magic_cmd
19423
19424# Flag that allows shared libraries with undefined symbols to be built.
19425allow_undefined_flag=$lt_allow_undefined_flag_RC
19426
19427# Flag that forces no undefined symbols.
19428no_undefined_flag=$lt_no_undefined_flag_RC
19429
19430# Commands used to finish a libtool library installation in a directory.
19431finish_cmds=$lt_finish_cmds
19432
19433# Same as above, but a single script fragment to be evaled but not shown.
19434finish_eval=$lt_finish_eval
19435
19436# Take the output of nm and produce a listing of raw symbols and C names.
19437global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19438
19439# Transform the output of nm in a proper C declaration
19440global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19441
19442# Transform the output of nm in a C name address pair
19443global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19444
19445# This is the shared library runtime path variable.
19446runpath_var=$runpath_var
19447
19448# This is the shared library path variable.
19449shlibpath_var=$shlibpath_var
19450
19451# Is shlibpath searched before the hard-coded library search path?
19452shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19453
19454# How to hardcode a shared library path into an executable.
19455hardcode_action=$hardcode_action_RC
19456
19457# Whether we should hardcode library paths into libraries.
19458hardcode_into_libs=$hardcode_into_libs
19459
19460# Flag to hardcode \$libdir into a binary during linking.
19461# This must work even if \$libdir does not exist.
19462hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19463
19464# If ld is used when linking, flag to hardcode \$libdir into
19465# a binary during linking. This must work even if \$libdir does
19466# not exist.
19467hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19468
19469# Whether we need a single -rpath flag with a separated argument.
19470hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19471
19472# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19473# resulting binary.
19474hardcode_direct=$hardcode_direct_RC
19475
19476# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19477# resulting binary.
19478hardcode_minus_L=$hardcode_minus_L_RC
19479
19480# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19481# the resulting binary.
19482hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19483
19484# Set to yes if building a shared library automatically hardcodes DIR into the library
19485# and all subsequent libraries and executables linked against it.
19486hardcode_automatic=$hardcode_automatic_RC
19487
19488# Variables whose values should be saved in libtool wrapper scripts and
19489# restored at relink time.
19490variables_saved_for_relink="$variables_saved_for_relink"
19491
19492# Whether libtool must link a program against all its dependency libraries.
19493link_all_deplibs=$link_all_deplibs_RC
19494
19495# Compile-time system search path for libraries
19496sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19497
19498# Run-time system search path for libraries
19499sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19500
19501# Fix the shell variable \$srcfile for the compiler.
19502fix_srcfile_path="$fix_srcfile_path_RC"
19503
19504# Set to yes if exported symbols are required.
19505always_export_symbols=$always_export_symbols_RC
19506
19507# The commands to list exported symbols.
19508export_symbols_cmds=$lt_export_symbols_cmds_RC
19509
19510# The commands to extract the exported symbol list from a shared archive.
19511extract_expsyms_cmds=$lt_extract_expsyms_cmds
19512
19513# Symbols that should not be listed in the preloaded symbols.
19514exclude_expsyms=$lt_exclude_expsyms_RC
19515
19516# Symbols that must always be exported.
19517include_expsyms=$lt_include_expsyms_RC
19518
19519# ### END LIBTOOL TAG CONFIG: $tagname
19520
19521__EOF__
19522
19523
19524else
19525  # If there is no Makefile yet, we rely on a make rule to execute
19526  # `config.status --recheck' to rerun these tests and create the
19527  # libtool script then.
19528  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19529  if test -f "$ltmain_in"; then
19530    test -f Makefile && make "$ltmain"
19531  fi
19532fi
19533
19534
19535ac_ext=c
19536ac_cpp='$CPP $CPPFLAGS'
19537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19539ac_compiler_gnu=$ac_cv_c_compiler_gnu
19540
19541CC="$lt_save_CC"
19542
19543	;;
19544
19545      *)
19546	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19547echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19548   { (exit 1); exit 1; }; }
19549	;;
19550      esac
19551
19552      # Append the new tag name to the list of available tags.
19553      if test -n "$tagname" ; then
19554      available_tags="$available_tags $tagname"
19555    fi
19556    fi
19557  done
19558  IFS="$lt_save_ifs"
19559
19560  # Now substitute the updated list of available tags.
19561  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19562    mv "${ofile}T" "$ofile"
19563    chmod +x "$ofile"
19564  else
19565    rm -f "${ofile}T"
19566    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19567echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19568   { (exit 1); exit 1; }; }
19569  fi
19570fi
19571
19572
19573
19574# This can be used to rebuild libtool when needed
19575LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19576
19577# Always use our own libtool.
19578LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19579
19580# Prevent multiple expansion
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602# NTP has (so far) been relying on leading-edge autogen.
19603# Therefore, by default:
19604# - use the version we ship with
19605# - do not install it
19606# - build a static copy (AC_DISABLE_SHARED - done earlier)
19607case "${enable_local_libopts+set}" in
19608 set) ;;
19609 *) enable_local_libopts=yes ;;
19610esac
19611case "${enable_libopts_install+set}" in
19612 set) ;;
19613 *) enable_libopts_install=no ;;
19614esac
19615
19616  NEED_LIBOPTS_DIR=''
19617
19618  LIBOPTS_DIR=libopts
19619
19620  # Check whether --enable-local-libopts or --disable-local-libopts was given.
19621if test "${enable_local_libopts+set}" = set; then
19622  enableval="$enable_local_libopts"
19623
19624    if test x$enableval = xyes ; then
19625       { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
19626echo "$as_me: Using supplied libopts tearoff" >&6;}
19627       LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
19628       LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
19629       NEED_LIBOPTS_DIR=true
19630    fi
19631fi;
19632
19633  # Check whether --enable-libopts-install or --disable-libopts-install was given.
19634if test "${enable_libopts_install+set}" = set; then
19635  enableval="$enable_libopts_install"
19636
19637fi;
19638
19639
19640if test "X${enable_libopts_install}" != Xno; then
19641  INSTALL_LIBOPTS_TRUE=
19642  INSTALL_LIBOPTS_FALSE='#'
19643else
19644  INSTALL_LIBOPTS_TRUE='#'
19645  INSTALL_LIBOPTS_FALSE=
19646fi
19647
19648
19649  if test -z "${NEED_LIBOPTS_DIR}" ; then
19650     echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
19651echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6
19652
19653# Check whether --with-autoopts-config or --without-autoopts-config was given.
19654if test "${with_autoopts_config+set}" = set; then
19655  withval="$with_autoopts_config"
19656  lo_cv_with_autoopts_config=${with_autoopts_config}
19657else
19658  echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
19659echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6
19660if test "${lo_cv_with_autoopts_config+set}" = set; then
19661  echo $ECHO_N "(cached) $ECHO_C" >&6
19662else
19663  if autoopts-config --help 2>/dev/null 1>&2
19664        then lo_cv_with_autoopts_config=autoopts-config
19665        elif libopts-config --help 2>/dev/null 1>&2
19666        then lo_cv_with_autoopts_config=libopts-config
19667        else lo_cv_with_autoopts_config=no ; fi
19668fi
19669echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
19670echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6
19671
19672fi;  # end of AC_ARG_WITH
19673
19674     if test "${lo_cv_test_autoopts+set}" = set; then
19675  echo $ECHO_N "(cached) $ECHO_C" >&6
19676else
19677
19678        if test -z "${lo_cv_with_autoopts_config}" \
19679                -o X"${lo_cv_with_autoopts_config}" = Xno
19680        then
19681           if autoopts-config --help 2>/dev/null 1>&2
19682           then lo_cv_with_autoopts_config=autoopts-config
19683           elif libopts-config --help 2>/dev/null 1>&2
19684           then lo_cv_with_autoopts_config=libopts-config
19685           else lo_cv_with_autoopts_config=false ; fi
19686        fi
19687        lo_cv_test_autoopts=`
19688            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19689        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19690        then lo_cv_test_autoopts=no ; fi
19691
19692fi
19693 # end of CACHE_VAL
19694     echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
19695echo "${ECHO_T}${lo_cv_test_autoopts}" >&6
19696
19697     if test "X${lo_cv_test_autoopts}" != Xno
19698     then
19699        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19700        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19701     else
19702        LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
19703        LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
19704        NEED_LIBOPTS_DIR=true
19705     fi
19706  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19707
19708
19709
19710if test -n "${NEED_LIBOPTS_DIR}"; then
19711  NEED_LIBOPTS_TRUE=
19712  NEED_LIBOPTS_FALSE='#'
19713else
19714  NEED_LIBOPTS_TRUE='#'
19715  NEED_LIBOPTS_FALSE=
19716fi
19717
19718
19719
19720  LIBOPTS_DIR=libopts
19721
19722            ac_config_files="$ac_config_files libopts/Makefile"
19723
19724
19725
19726  if test -n "${NEED_LIBOPTS_DIR}" ; then
19727
19728
19729if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
19730  # =================
19731  # AC_HEADER_STDC
19732  # =================
19733  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19734echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19735if test "${ac_cv_header_stdc+set}" = set; then
19736  echo $ECHO_N "(cached) $ECHO_C" >&6
19737else
19738  cat >conftest.$ac_ext <<_ACEOF
19739/* confdefs.h.  */
19740_ACEOF
19741cat confdefs.h >>conftest.$ac_ext
19742cat >>conftest.$ac_ext <<_ACEOF
19743/* end confdefs.h.  */
19744#include <stdlib.h>
19745#include <stdarg.h>
19746#include <string.h>
19747#include <float.h>
19748
19749int
19750main ()
19751{
19752
19753  ;
19754  return 0;
19755}
19756_ACEOF
19757rm -f conftest.$ac_objext
19758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19759  (eval $ac_compile) 2>conftest.er1
19760  ac_status=$?
19761  grep -v '^ *+' conftest.er1 >conftest.err
19762  rm -f conftest.er1
19763  cat conftest.err >&5
19764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765  (exit $ac_status); } &&
19766	 { ac_try='test -z "$ac_c_werror_flag"
19767			 || test ! -s conftest.err'
19768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769  (eval $ac_try) 2>&5
19770  ac_status=$?
19771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772  (exit $ac_status); }; } &&
19773	 { ac_try='test -s conftest.$ac_objext'
19774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775  (eval $ac_try) 2>&5
19776  ac_status=$?
19777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778  (exit $ac_status); }; }; then
19779  ac_cv_header_stdc=yes
19780else
19781  echo "$as_me: failed program was:" >&5
19782sed 's/^/| /' conftest.$ac_ext >&5
19783
19784ac_cv_header_stdc=no
19785fi
19786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19787
19788if test $ac_cv_header_stdc = yes; then
19789  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19790  cat >conftest.$ac_ext <<_ACEOF
19791/* confdefs.h.  */
19792_ACEOF
19793cat confdefs.h >>conftest.$ac_ext
19794cat >>conftest.$ac_ext <<_ACEOF
19795/* end confdefs.h.  */
19796#include <string.h>
19797
19798_ACEOF
19799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19800  $EGREP "memchr" >/dev/null 2>&1; then
19801  :
19802else
19803  ac_cv_header_stdc=no
19804fi
19805rm -f conftest*
19806
19807fi
19808
19809if test $ac_cv_header_stdc = yes; then
19810  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19811  cat >conftest.$ac_ext <<_ACEOF
19812/* confdefs.h.  */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h.  */
19817#include <stdlib.h>
19818
19819_ACEOF
19820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19821  $EGREP "free" >/dev/null 2>&1; then
19822  :
19823else
19824  ac_cv_header_stdc=no
19825fi
19826rm -f conftest*
19827
19828fi
19829
19830if test $ac_cv_header_stdc = yes; then
19831  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19832  if test "$cross_compiling" = yes; then
19833  :
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 <ctype.h>
19842#if ((' ' & 0x0FF) == 0x020)
19843# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19844# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19845#else
19846# define ISLOWER(c) \
19847		   (('a' <= (c) && (c) <= 'i') \
19848		     || ('j' <= (c) && (c) <= 'r') \
19849		     || ('s' <= (c) && (c) <= 'z'))
19850# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19851#endif
19852
19853#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19854int
19855main ()
19856{
19857  int i;
19858  for (i = 0; i < 256; i++)
19859    if (XOR (islower (i), ISLOWER (i))
19860	|| toupper (i) != TOUPPER (i))
19861      exit(2);
19862  exit (0);
19863}
19864_ACEOF
19865rm -f conftest$ac_exeext
19866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19867  (eval $ac_link) 2>&5
19868  ac_status=$?
19869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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  :
19877else
19878  echo "$as_me: program exited with status $ac_status" >&5
19879echo "$as_me: failed program was:" >&5
19880sed 's/^/| /' conftest.$ac_ext >&5
19881
19882( exit $ac_status )
19883ac_cv_header_stdc=no
19884fi
19885rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19886fi
19887fi
19888fi
19889echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19890echo "${ECHO_T}$ac_cv_header_stdc" >&6
19891if test $ac_cv_header_stdc = yes; then
19892
19893cat >>confdefs.h <<\_ACEOF
19894#define STDC_HEADERS 1
19895_ACEOF
19896
19897fi
19898
19899  # =================
19900  # AC_HEADER_DIRENT
19901  # =================
19902
19903
19904
19905
19906
19907ac_header_dirent=no
19908for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19909  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19910echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19911echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19912if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913  echo $ECHO_N "(cached) $ECHO_C" >&6
19914else
19915  cat >conftest.$ac_ext <<_ACEOF
19916/* confdefs.h.  */
19917_ACEOF
19918cat confdefs.h >>conftest.$ac_ext
19919cat >>conftest.$ac_ext <<_ACEOF
19920/* end confdefs.h.  */
19921#include <sys/types.h>
19922#include <$ac_hdr>
19923
19924int
19925main ()
19926{
19927if ((DIR *) 0)
19928return 0;
19929  ;
19930  return 0;
19931}
19932_ACEOF
19933rm -f conftest.$ac_objext
19934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19935  (eval $ac_compile) 2>conftest.er1
19936  ac_status=$?
19937  grep -v '^ *+' conftest.er1 >conftest.err
19938  rm -f conftest.er1
19939  cat conftest.err >&5
19940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941  (exit $ac_status); } &&
19942	 { ac_try='test -z "$ac_c_werror_flag"
19943			 || test ! -s conftest.err'
19944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945  (eval $ac_try) 2>&5
19946  ac_status=$?
19947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948  (exit $ac_status); }; } &&
19949	 { ac_try='test -s conftest.$ac_objext'
19950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951  (eval $ac_try) 2>&5
19952  ac_status=$?
19953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954  (exit $ac_status); }; }; then
19955  eval "$as_ac_Header=yes"
19956else
19957  echo "$as_me: failed program was:" >&5
19958sed 's/^/| /' conftest.$ac_ext >&5
19959
19960eval "$as_ac_Header=no"
19961fi
19962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19963fi
19964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19966if test `eval echo '${'$as_ac_Header'}'` = yes; then
19967  cat >>confdefs.h <<_ACEOF
19968#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19969_ACEOF
19970
19971ac_header_dirent=$ac_hdr; break
19972fi
19973
19974done
19975# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19976if test $ac_header_dirent = dirent.h; then
19977  echo "$as_me:$LINENO: checking for library containing opendir" >&5
19978echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19979if test "${ac_cv_search_opendir+set}" = set; then
19980  echo $ECHO_N "(cached) $ECHO_C" >&6
19981else
19982  ac_func_search_save_LIBS=$LIBS
19983ac_cv_search_opendir=no
19984cat >conftest.$ac_ext <<_ACEOF
19985/* confdefs.h.  */
19986_ACEOF
19987cat confdefs.h >>conftest.$ac_ext
19988cat >>conftest.$ac_ext <<_ACEOF
19989/* end confdefs.h.  */
19990
19991/* Override any gcc2 internal prototype to avoid an error.  */
19992#ifdef __cplusplus
19993extern "C"
19994#endif
19995/* We use char because int might match the return type of a gcc2
19996   builtin and then its argument prototype would still apply.  */
19997char opendir ();
19998int
19999main ()
20000{
20001opendir ();
20002  ;
20003  return 0;
20004}
20005_ACEOF
20006rm -f conftest.$ac_objext conftest$ac_exeext
20007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20008  (eval $ac_link) 2>conftest.er1
20009  ac_status=$?
20010  grep -v '^ *+' conftest.er1 >conftest.err
20011  rm -f conftest.er1
20012  cat conftest.err >&5
20013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014  (exit $ac_status); } &&
20015	 { ac_try='test -z "$ac_c_werror_flag"
20016			 || test ! -s conftest.err'
20017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018  (eval $ac_try) 2>&5
20019  ac_status=$?
20020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021  (exit $ac_status); }; } &&
20022	 { ac_try='test -s conftest$ac_exeext'
20023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024  (eval $ac_try) 2>&5
20025  ac_status=$?
20026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027  (exit $ac_status); }; }; then
20028  ac_cv_search_opendir="none required"
20029else
20030  echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033fi
20034rm -f conftest.err conftest.$ac_objext \
20035      conftest$ac_exeext conftest.$ac_ext
20036if test "$ac_cv_search_opendir" = no; then
20037  for ac_lib in dir; do
20038    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20039    cat >conftest.$ac_ext <<_ACEOF
20040/* confdefs.h.  */
20041_ACEOF
20042cat confdefs.h >>conftest.$ac_ext
20043cat >>conftest.$ac_ext <<_ACEOF
20044/* end confdefs.h.  */
20045
20046/* Override any gcc2 internal prototype to avoid an error.  */
20047#ifdef __cplusplus
20048extern "C"
20049#endif
20050/* We use char because int might match the return type of a gcc2
20051   builtin and then its argument prototype would still apply.  */
20052char opendir ();
20053int
20054main ()
20055{
20056opendir ();
20057  ;
20058  return 0;
20059}
20060_ACEOF
20061rm -f conftest.$ac_objext conftest$ac_exeext
20062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20063  (eval $ac_link) 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_exeext'
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_search_opendir="-l$ac_lib"
20084break
20085else
20086  echo "$as_me: failed program was:" >&5
20087sed 's/^/| /' conftest.$ac_ext >&5
20088
20089fi
20090rm -f conftest.err conftest.$ac_objext \
20091      conftest$ac_exeext conftest.$ac_ext
20092  done
20093fi
20094LIBS=$ac_func_search_save_LIBS
20095fi
20096echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20097echo "${ECHO_T}$ac_cv_search_opendir" >&6
20098if test "$ac_cv_search_opendir" != no; then
20099  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20100
20101fi
20102
20103else
20104  echo "$as_me:$LINENO: checking for library containing opendir" >&5
20105echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20106if test "${ac_cv_search_opendir+set}" = set; then
20107  echo $ECHO_N "(cached) $ECHO_C" >&6
20108else
20109  ac_func_search_save_LIBS=$LIBS
20110ac_cv_search_opendir=no
20111cat >conftest.$ac_ext <<_ACEOF
20112/* confdefs.h.  */
20113_ACEOF
20114cat confdefs.h >>conftest.$ac_ext
20115cat >>conftest.$ac_ext <<_ACEOF
20116/* end confdefs.h.  */
20117
20118/* Override any gcc2 internal prototype to avoid an error.  */
20119#ifdef __cplusplus
20120extern "C"
20121#endif
20122/* We use char because int might match the return type of a gcc2
20123   builtin and then its argument prototype would still apply.  */
20124char opendir ();
20125int
20126main ()
20127{
20128opendir ();
20129  ;
20130  return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext conftest$ac_exeext
20134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135  (eval $ac_link) 2>conftest.er1
20136  ac_status=$?
20137  grep -v '^ *+' conftest.er1 >conftest.err
20138  rm -f conftest.er1
20139  cat conftest.err >&5
20140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141  (exit $ac_status); } &&
20142	 { ac_try='test -z "$ac_c_werror_flag"
20143			 || test ! -s conftest.err'
20144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145  (eval $ac_try) 2>&5
20146  ac_status=$?
20147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148  (exit $ac_status); }; } &&
20149	 { ac_try='test -s conftest$ac_exeext'
20150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151  (eval $ac_try) 2>&5
20152  ac_status=$?
20153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154  (exit $ac_status); }; }; then
20155  ac_cv_search_opendir="none required"
20156else
20157  echo "$as_me: failed program was:" >&5
20158sed 's/^/| /' conftest.$ac_ext >&5
20159
20160fi
20161rm -f conftest.err conftest.$ac_objext \
20162      conftest$ac_exeext conftest.$ac_ext
20163if test "$ac_cv_search_opendir" = no; then
20164  for ac_lib in x; do
20165    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20166    cat >conftest.$ac_ext <<_ACEOF
20167/* confdefs.h.  */
20168_ACEOF
20169cat confdefs.h >>conftest.$ac_ext
20170cat >>conftest.$ac_ext <<_ACEOF
20171/* end confdefs.h.  */
20172
20173/* Override any gcc2 internal prototype to avoid an error.  */
20174#ifdef __cplusplus
20175extern "C"
20176#endif
20177/* We use char because int might match the return type of a gcc2
20178   builtin and then its argument prototype would still apply.  */
20179char opendir ();
20180int
20181main ()
20182{
20183opendir ();
20184  ;
20185  return 0;
20186}
20187_ACEOF
20188rm -f conftest.$ac_objext conftest$ac_exeext
20189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20190  (eval $ac_link) 2>conftest.er1
20191  ac_status=$?
20192  grep -v '^ *+' conftest.er1 >conftest.err
20193  rm -f conftest.er1
20194  cat conftest.err >&5
20195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196  (exit $ac_status); } &&
20197	 { ac_try='test -z "$ac_c_werror_flag"
20198			 || test ! -s conftest.err'
20199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200  (eval $ac_try) 2>&5
20201  ac_status=$?
20202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203  (exit $ac_status); }; } &&
20204	 { ac_try='test -s conftest$ac_exeext'
20205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206  (eval $ac_try) 2>&5
20207  ac_status=$?
20208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209  (exit $ac_status); }; }; then
20210  ac_cv_search_opendir="-l$ac_lib"
20211break
20212else
20213  echo "$as_me: failed program was:" >&5
20214sed 's/^/| /' conftest.$ac_ext >&5
20215
20216fi
20217rm -f conftest.err conftest.$ac_objext \
20218      conftest$ac_exeext conftest.$ac_ext
20219  done
20220fi
20221LIBS=$ac_func_search_save_LIBS
20222fi
20223echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20224echo "${ECHO_T}$ac_cv_search_opendir" >&6
20225if test "$ac_cv_search_opendir" != no; then
20226  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20227
20228fi
20229
20230fi
20231
20232
20233  # =================
20234  # AC_CHECK_HEADERS
20235  # =================
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
20257    setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
20258    sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
20259    utime.h sysexits.h
20260do
20261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20262if eval "test \"\${$as_ac_Header+set}\" = set"; then
20263  echo "$as_me:$LINENO: checking for $ac_header" >&5
20264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20265if eval "test \"\${$as_ac_Header+set}\" = set"; then
20266  echo $ECHO_N "(cached) $ECHO_C" >&6
20267fi
20268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20270else
20271  # Is the header compilable?
20272echo "$as_me:$LINENO: checking $ac_header usability" >&5
20273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20274cat >conftest.$ac_ext <<_ACEOF
20275/* confdefs.h.  */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h.  */
20280$ac_includes_default
20281#include <$ac_header>
20282_ACEOF
20283rm -f conftest.$ac_objext
20284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20285  (eval $ac_compile) 2>conftest.er1
20286  ac_status=$?
20287  grep -v '^ *+' conftest.er1 >conftest.err
20288  rm -f conftest.er1
20289  cat conftest.err >&5
20290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291  (exit $ac_status); } &&
20292	 { ac_try='test -z "$ac_c_werror_flag"
20293			 || test ! -s conftest.err'
20294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295  (eval $ac_try) 2>&5
20296  ac_status=$?
20297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298  (exit $ac_status); }; } &&
20299	 { ac_try='test -s conftest.$ac_objext'
20300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301  (eval $ac_try) 2>&5
20302  ac_status=$?
20303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304  (exit $ac_status); }; }; then
20305  ac_header_compiler=yes
20306else
20307  echo "$as_me: failed program was:" >&5
20308sed 's/^/| /' conftest.$ac_ext >&5
20309
20310ac_header_compiler=no
20311fi
20312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20314echo "${ECHO_T}$ac_header_compiler" >&6
20315
20316# Is the header present?
20317echo "$as_me:$LINENO: checking $ac_header presence" >&5
20318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20319cat >conftest.$ac_ext <<_ACEOF
20320/* confdefs.h.  */
20321_ACEOF
20322cat confdefs.h >>conftest.$ac_ext
20323cat >>conftest.$ac_ext <<_ACEOF
20324/* end confdefs.h.  */
20325#include <$ac_header>
20326_ACEOF
20327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20328  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20329  ac_status=$?
20330  grep -v '^ *+' conftest.er1 >conftest.err
20331  rm -f conftest.er1
20332  cat conftest.err >&5
20333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334  (exit $ac_status); } >/dev/null; then
20335  if test -s conftest.err; then
20336    ac_cpp_err=$ac_c_preproc_warn_flag
20337    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20338  else
20339    ac_cpp_err=
20340  fi
20341else
20342  ac_cpp_err=yes
20343fi
20344if test -z "$ac_cpp_err"; then
20345  ac_header_preproc=yes
20346else
20347  echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
20350  ac_header_preproc=no
20351fi
20352rm -f conftest.err conftest.$ac_ext
20353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20354echo "${ECHO_T}$ac_header_preproc" >&6
20355
20356# So?  What about this header?
20357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20358  yes:no: )
20359    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20361    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20363    ac_header_preproc=yes
20364    ;;
20365  no:yes:* )
20366    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20368    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20369echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20370    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20372    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20373echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20376    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20378    (
20379      cat <<\_ASBOX
20380## ------------------------------------------ ##
20381## Report this to the AC_PACKAGE_NAME lists.  ##
20382## ------------------------------------------ ##
20383_ASBOX
20384    ) |
20385      sed "s/^/$as_me: WARNING:     /" >&2
20386    ;;
20387esac
20388echo "$as_me:$LINENO: checking for $ac_header" >&5
20389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20390if eval "test \"\${$as_ac_Header+set}\" = set"; then
20391  echo $ECHO_N "(cached) $ECHO_C" >&6
20392else
20393  eval "$as_ac_Header=\$ac_header_preproc"
20394fi
20395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20397
20398fi
20399if test `eval echo '${'$as_ac_Header'}'` = yes; then
20400  cat >>confdefs.h <<_ACEOF
20401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20402_ACEOF
20403
20404fi
20405
20406done
20407
20408
20409  # --------------------------------------------
20410  # Verify certain entries from AC_CHECK_HEADERS
20411  # --------------------------------------------
20412  for f in sys_types sys_mman sys_param sys_stat sys_wait \
20413           string errno stdlib memory setjmp
20414  do eval as_ac_var=\${ac_cv_header_${f}_h+set}
20415     test "${as_ac_var}" = set || \
20416       { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
20417echo "$as_me: error: You must have ${f}.h on your system" >&2;}
20418   { (exit 1); exit 1; }; }
20419  done
20420
20421  # ================================================
20422  # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
20423  # if varargs.h is present define HAVE_VARARGS_H.
20424  # ================================================
20425
20426
20427for ac_header in stdarg.h varargs.h
20428do
20429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20430if eval "test \"\${$as_ac_Header+set}\" = set"; then
20431  echo "$as_me:$LINENO: checking for $ac_header" >&5
20432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20433if eval "test \"\${$as_ac_Header+set}\" = set"; then
20434  echo $ECHO_N "(cached) $ECHO_C" >&6
20435fi
20436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20438else
20439  # Is the header compilable?
20440echo "$as_me:$LINENO: checking $ac_header usability" >&5
20441echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20442cat >conftest.$ac_ext <<_ACEOF
20443/* confdefs.h.  */
20444_ACEOF
20445cat confdefs.h >>conftest.$ac_ext
20446cat >>conftest.$ac_ext <<_ACEOF
20447/* end confdefs.h.  */
20448$ac_includes_default
20449#include <$ac_header>
20450_ACEOF
20451rm -f conftest.$ac_objext
20452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20453  (eval $ac_compile) 2>conftest.er1
20454  ac_status=$?
20455  grep -v '^ *+' conftest.er1 >conftest.err
20456  rm -f conftest.er1
20457  cat conftest.err >&5
20458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459  (exit $ac_status); } &&
20460	 { ac_try='test -z "$ac_c_werror_flag"
20461			 || test ! -s conftest.err'
20462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463  (eval $ac_try) 2>&5
20464  ac_status=$?
20465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466  (exit $ac_status); }; } &&
20467	 { ac_try='test -s conftest.$ac_objext'
20468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469  (eval $ac_try) 2>&5
20470  ac_status=$?
20471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472  (exit $ac_status); }; }; then
20473  ac_header_compiler=yes
20474else
20475  echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478ac_header_compiler=no
20479fi
20480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20482echo "${ECHO_T}$ac_header_compiler" >&6
20483
20484# Is the header present?
20485echo "$as_me:$LINENO: checking $ac_header presence" >&5
20486echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20487cat >conftest.$ac_ext <<_ACEOF
20488/* confdefs.h.  */
20489_ACEOF
20490cat confdefs.h >>conftest.$ac_ext
20491cat >>conftest.$ac_ext <<_ACEOF
20492/* end confdefs.h.  */
20493#include <$ac_header>
20494_ACEOF
20495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20496  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20497  ac_status=$?
20498  grep -v '^ *+' conftest.er1 >conftest.err
20499  rm -f conftest.er1
20500  cat conftest.err >&5
20501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502  (exit $ac_status); } >/dev/null; then
20503  if test -s conftest.err; then
20504    ac_cpp_err=$ac_c_preproc_warn_flag
20505    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20506  else
20507    ac_cpp_err=
20508  fi
20509else
20510  ac_cpp_err=yes
20511fi
20512if test -z "$ac_cpp_err"; then
20513  ac_header_preproc=yes
20514else
20515  echo "$as_me: failed program was:" >&5
20516sed 's/^/| /' conftest.$ac_ext >&5
20517
20518  ac_header_preproc=no
20519fi
20520rm -f conftest.err conftest.$ac_ext
20521echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20522echo "${ECHO_T}$ac_header_preproc" >&6
20523
20524# So?  What about this header?
20525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20526  yes:no: )
20527    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20529    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20530echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20531    ac_header_preproc=yes
20532    ;;
20533  no:yes:* )
20534    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20536    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20537echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20538    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20539echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20540    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20541echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20542    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20544    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20545echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20546    (
20547      cat <<\_ASBOX
20548## ------------------------------------------ ##
20549## Report this to the AC_PACKAGE_NAME lists.  ##
20550## ------------------------------------------ ##
20551_ASBOX
20552    ) |
20553      sed "s/^/$as_me: WARNING:     /" >&2
20554    ;;
20555esac
20556echo "$as_me:$LINENO: checking for $ac_header" >&5
20557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20558if eval "test \"\${$as_ac_Header+set}\" = set"; then
20559  echo $ECHO_N "(cached) $ECHO_C" >&6
20560else
20561  eval "$as_ac_Header=\$ac_header_preproc"
20562fi
20563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20565
20566fi
20567if test `eval echo '${'$as_ac_Header'}'` = yes; then
20568  cat >>confdefs.h <<_ACEOF
20569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20570_ACEOF
20571 break
20572fi
20573
20574done
20575
20576  if test `eval echo '${'$as_ac_Header'}'` != yes; then
20577    { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
20578echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
20579   { (exit 1); exit 1; }; }
20580  fi
20581
20582  # ================================================
20583  # Similarly for the string.h and strings.h headers
20584  # ================================================
20585
20586
20587for ac_header in string.h strings.h
20588do
20589as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20590if eval "test \"\${$as_ac_Header+set}\" = set"; then
20591  echo "$as_me:$LINENO: checking for $ac_header" >&5
20592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20593if eval "test \"\${$as_ac_Header+set}\" = set"; then
20594  echo $ECHO_N "(cached) $ECHO_C" >&6
20595fi
20596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20598else
20599  # Is the header compilable?
20600echo "$as_me:$LINENO: checking $ac_header usability" >&5
20601echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20602cat >conftest.$ac_ext <<_ACEOF
20603/* confdefs.h.  */
20604_ACEOF
20605cat confdefs.h >>conftest.$ac_ext
20606cat >>conftest.$ac_ext <<_ACEOF
20607/* end confdefs.h.  */
20608$ac_includes_default
20609#include <$ac_header>
20610_ACEOF
20611rm -f conftest.$ac_objext
20612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613  (eval $ac_compile) 2>conftest.er1
20614  ac_status=$?
20615  grep -v '^ *+' conftest.er1 >conftest.err
20616  rm -f conftest.er1
20617  cat conftest.err >&5
20618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619  (exit $ac_status); } &&
20620	 { ac_try='test -z "$ac_c_werror_flag"
20621			 || test ! -s conftest.err'
20622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623  (eval $ac_try) 2>&5
20624  ac_status=$?
20625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626  (exit $ac_status); }; } &&
20627	 { ac_try='test -s conftest.$ac_objext'
20628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629  (eval $ac_try) 2>&5
20630  ac_status=$?
20631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632  (exit $ac_status); }; }; then
20633  ac_header_compiler=yes
20634else
20635  echo "$as_me: failed program was:" >&5
20636sed 's/^/| /' conftest.$ac_ext >&5
20637
20638ac_header_compiler=no
20639fi
20640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20641echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20642echo "${ECHO_T}$ac_header_compiler" >&6
20643
20644# Is the header present?
20645echo "$as_me:$LINENO: checking $ac_header presence" >&5
20646echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20647cat >conftest.$ac_ext <<_ACEOF
20648/* confdefs.h.  */
20649_ACEOF
20650cat confdefs.h >>conftest.$ac_ext
20651cat >>conftest.$ac_ext <<_ACEOF
20652/* end confdefs.h.  */
20653#include <$ac_header>
20654_ACEOF
20655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20656  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20657  ac_status=$?
20658  grep -v '^ *+' conftest.er1 >conftest.err
20659  rm -f conftest.er1
20660  cat conftest.err >&5
20661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662  (exit $ac_status); } >/dev/null; then
20663  if test -s conftest.err; then
20664    ac_cpp_err=$ac_c_preproc_warn_flag
20665    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20666  else
20667    ac_cpp_err=
20668  fi
20669else
20670  ac_cpp_err=yes
20671fi
20672if test -z "$ac_cpp_err"; then
20673  ac_header_preproc=yes
20674else
20675  echo "$as_me: failed program was:" >&5
20676sed 's/^/| /' conftest.$ac_ext >&5
20677
20678  ac_header_preproc=no
20679fi
20680rm -f conftest.err conftest.$ac_ext
20681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20682echo "${ECHO_T}$ac_header_preproc" >&6
20683
20684# So?  What about this header?
20685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20686  yes:no: )
20687    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20689    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20691    ac_header_preproc=yes
20692    ;;
20693  no:yes:* )
20694    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20696    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20697echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20698    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20700    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20701echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20702    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20704    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20706    (
20707      cat <<\_ASBOX
20708## ------------------------------------------ ##
20709## Report this to the AC_PACKAGE_NAME lists.  ##
20710## ------------------------------------------ ##
20711_ASBOX
20712    ) |
20713      sed "s/^/$as_me: WARNING:     /" >&2
20714    ;;
20715esac
20716echo "$as_me:$LINENO: checking for $ac_header" >&5
20717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20718if eval "test \"\${$as_ac_Header+set}\" = set"; then
20719  echo $ECHO_N "(cached) $ECHO_C" >&6
20720else
20721  eval "$as_ac_Header=\$ac_header_preproc"
20722fi
20723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20725
20726fi
20727if test `eval echo '${'$as_ac_Header'}'` = yes; then
20728  cat >>confdefs.h <<_ACEOF
20729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20730_ACEOF
20731 break
20732fi
20733
20734done
20735
20736  if test `eval echo '${'$as_ac_Header'}'` != yes; then
20737    { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
20738echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
20739   { (exit 1); exit 1; }; }
20740  fi
20741
20742  # =====================
20743  # ...and limits headers
20744  # =====================
20745
20746
20747
20748for ac_header in limits.h sys/limits.h values.h
20749do
20750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20751if eval "test \"\${$as_ac_Header+set}\" = set"; then
20752  echo "$as_me:$LINENO: checking for $ac_header" >&5
20753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20754if eval "test \"\${$as_ac_Header+set}\" = set"; then
20755  echo $ECHO_N "(cached) $ECHO_C" >&6
20756fi
20757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20759else
20760  # Is the header compilable?
20761echo "$as_me:$LINENO: checking $ac_header usability" >&5
20762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20763cat >conftest.$ac_ext <<_ACEOF
20764/* confdefs.h.  */
20765_ACEOF
20766cat confdefs.h >>conftest.$ac_ext
20767cat >>conftest.$ac_ext <<_ACEOF
20768/* end confdefs.h.  */
20769$ac_includes_default
20770#include <$ac_header>
20771_ACEOF
20772rm -f conftest.$ac_objext
20773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20774  (eval $ac_compile) 2>conftest.er1
20775  ac_status=$?
20776  grep -v '^ *+' conftest.er1 >conftest.err
20777  rm -f conftest.er1
20778  cat conftest.err >&5
20779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780  (exit $ac_status); } &&
20781	 { ac_try='test -z "$ac_c_werror_flag"
20782			 || test ! -s conftest.err'
20783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784  (eval $ac_try) 2>&5
20785  ac_status=$?
20786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787  (exit $ac_status); }; } &&
20788	 { ac_try='test -s conftest.$ac_objext'
20789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790  (eval $ac_try) 2>&5
20791  ac_status=$?
20792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793  (exit $ac_status); }; }; then
20794  ac_header_compiler=yes
20795else
20796  echo "$as_me: failed program was:" >&5
20797sed 's/^/| /' conftest.$ac_ext >&5
20798
20799ac_header_compiler=no
20800fi
20801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20803echo "${ECHO_T}$ac_header_compiler" >&6
20804
20805# Is the header present?
20806echo "$as_me:$LINENO: checking $ac_header presence" >&5
20807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20808cat >conftest.$ac_ext <<_ACEOF
20809/* confdefs.h.  */
20810_ACEOF
20811cat confdefs.h >>conftest.$ac_ext
20812cat >>conftest.$ac_ext <<_ACEOF
20813/* end confdefs.h.  */
20814#include <$ac_header>
20815_ACEOF
20816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20817  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20818  ac_status=$?
20819  grep -v '^ *+' conftest.er1 >conftest.err
20820  rm -f conftest.er1
20821  cat conftest.err >&5
20822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823  (exit $ac_status); } >/dev/null; then
20824  if test -s conftest.err; then
20825    ac_cpp_err=$ac_c_preproc_warn_flag
20826    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20827  else
20828    ac_cpp_err=
20829  fi
20830else
20831  ac_cpp_err=yes
20832fi
20833if test -z "$ac_cpp_err"; then
20834  ac_header_preproc=yes
20835else
20836  echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
20838
20839  ac_header_preproc=no
20840fi
20841rm -f conftest.err conftest.$ac_ext
20842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20843echo "${ECHO_T}$ac_header_preproc" >&6
20844
20845# So?  What about this header?
20846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20847  yes:no: )
20848    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20852    ac_header_preproc=yes
20853    ;;
20854  no:yes:* )
20855    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20857    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20858echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20859    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20861    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20862echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20863    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20865    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20867    (
20868      cat <<\_ASBOX
20869## ------------------------------------------ ##
20870## Report this to the AC_PACKAGE_NAME lists.  ##
20871## ------------------------------------------ ##
20872_ASBOX
20873    ) |
20874      sed "s/^/$as_me: WARNING:     /" >&2
20875    ;;
20876esac
20877echo "$as_me:$LINENO: checking for $ac_header" >&5
20878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20879if eval "test \"\${$as_ac_Header+set}\" = set"; then
20880  echo $ECHO_N "(cached) $ECHO_C" >&6
20881else
20882  eval "$as_ac_Header=\$ac_header_preproc"
20883fi
20884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20886
20887fi
20888if test `eval echo '${'$as_ac_Header'}'` = yes; then
20889  cat >>confdefs.h <<_ACEOF
20890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20891_ACEOF
20892 break
20893fi
20894
20895done
20896
20897  if test `eval echo '${'$as_ac_Header'}'` != yes; then
20898    { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
20899echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
20900   { (exit 1); exit 1; }; }
20901  fi
20902
20903  # ========================
20904  # ...and int types headers
20905  # ========================
20906
20907
20908for ac_header in stdint.h inttypes.h
20909do
20910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20911if eval "test \"\${$as_ac_Header+set}\" = set"; then
20912  echo "$as_me:$LINENO: checking for $ac_header" >&5
20913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20914if eval "test \"\${$as_ac_Header+set}\" = set"; then
20915  echo $ECHO_N "(cached) $ECHO_C" >&6
20916fi
20917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20919else
20920  # Is the header compilable?
20921echo "$as_me:$LINENO: checking $ac_header usability" >&5
20922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20923cat >conftest.$ac_ext <<_ACEOF
20924/* confdefs.h.  */
20925_ACEOF
20926cat confdefs.h >>conftest.$ac_ext
20927cat >>conftest.$ac_ext <<_ACEOF
20928/* end confdefs.h.  */
20929$ac_includes_default
20930#include <$ac_header>
20931_ACEOF
20932rm -f conftest.$ac_objext
20933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20934  (eval $ac_compile) 2>conftest.er1
20935  ac_status=$?
20936  grep -v '^ *+' conftest.er1 >conftest.err
20937  rm -f conftest.er1
20938  cat conftest.err >&5
20939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940  (exit $ac_status); } &&
20941	 { ac_try='test -z "$ac_c_werror_flag"
20942			 || test ! -s conftest.err'
20943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944  (eval $ac_try) 2>&5
20945  ac_status=$?
20946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947  (exit $ac_status); }; } &&
20948	 { ac_try='test -s conftest.$ac_objext'
20949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950  (eval $ac_try) 2>&5
20951  ac_status=$?
20952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953  (exit $ac_status); }; }; then
20954  ac_header_compiler=yes
20955else
20956  echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
20959ac_header_compiler=no
20960fi
20961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20963echo "${ECHO_T}$ac_header_compiler" >&6
20964
20965# Is the header present?
20966echo "$as_me:$LINENO: checking $ac_header presence" >&5
20967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20968cat >conftest.$ac_ext <<_ACEOF
20969/* confdefs.h.  */
20970_ACEOF
20971cat confdefs.h >>conftest.$ac_ext
20972cat >>conftest.$ac_ext <<_ACEOF
20973/* end confdefs.h.  */
20974#include <$ac_header>
20975_ACEOF
20976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20978  ac_status=$?
20979  grep -v '^ *+' conftest.er1 >conftest.err
20980  rm -f conftest.er1
20981  cat conftest.err >&5
20982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983  (exit $ac_status); } >/dev/null; then
20984  if test -s conftest.err; then
20985    ac_cpp_err=$ac_c_preproc_warn_flag
20986    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20987  else
20988    ac_cpp_err=
20989  fi
20990else
20991  ac_cpp_err=yes
20992fi
20993if test -z "$ac_cpp_err"; then
20994  ac_header_preproc=yes
20995else
20996  echo "$as_me: failed program was:" >&5
20997sed 's/^/| /' conftest.$ac_ext >&5
20998
20999  ac_header_preproc=no
21000fi
21001rm -f conftest.err conftest.$ac_ext
21002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21003echo "${ECHO_T}$ac_header_preproc" >&6
21004
21005# So?  What about this header?
21006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21007  yes:no: )
21008    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21009echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21010    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21011echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21012    ac_header_preproc=yes
21013    ;;
21014  no:yes:* )
21015    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21016echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21017    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21018echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21019    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21020echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21021    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21022echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21023    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21025    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21026echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21027    (
21028      cat <<\_ASBOX
21029## ------------------------------------------ ##
21030## Report this to the AC_PACKAGE_NAME lists.  ##
21031## ------------------------------------------ ##
21032_ASBOX
21033    ) |
21034      sed "s/^/$as_me: WARNING:     /" >&2
21035    ;;
21036esac
21037echo "$as_me:$LINENO: checking for $ac_header" >&5
21038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21039if eval "test \"\${$as_ac_Header+set}\" = set"; then
21040  echo $ECHO_N "(cached) $ECHO_C" >&6
21041else
21042  eval "$as_ac_Header=\$ac_header_preproc"
21043fi
21044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21046
21047fi
21048if test `eval echo '${'$as_ac_Header'}'` = yes; then
21049  cat >>confdefs.h <<_ACEOF
21050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21051_ACEOF
21052 break
21053fi
21054
21055done
21056
21057  echo "$as_me:$LINENO: checking for int8_t" >&5
21058echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
21059if test "${ac_cv_type_int8_t+set}" = set; then
21060  echo $ECHO_N "(cached) $ECHO_C" >&6
21061else
21062  cat >conftest.$ac_ext <<_ACEOF
21063/* confdefs.h.  */
21064_ACEOF
21065cat confdefs.h >>conftest.$ac_ext
21066cat >>conftest.$ac_ext <<_ACEOF
21067/* end confdefs.h.  */
21068$ac_includes_default
21069int
21070main ()
21071{
21072if ((int8_t *) 0)
21073  return 0;
21074if (sizeof (int8_t))
21075  return 0;
21076  ;
21077  return 0;
21078}
21079_ACEOF
21080rm -f conftest.$ac_objext
21081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21082  (eval $ac_compile) 2>conftest.er1
21083  ac_status=$?
21084  grep -v '^ *+' conftest.er1 >conftest.err
21085  rm -f conftest.er1
21086  cat conftest.err >&5
21087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088  (exit $ac_status); } &&
21089	 { ac_try='test -z "$ac_c_werror_flag"
21090			 || test ! -s conftest.err'
21091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092  (eval $ac_try) 2>&5
21093  ac_status=$?
21094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095  (exit $ac_status); }; } &&
21096	 { ac_try='test -s conftest.$ac_objext'
21097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098  (eval $ac_try) 2>&5
21099  ac_status=$?
21100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101  (exit $ac_status); }; }; then
21102  ac_cv_type_int8_t=yes
21103else
21104  echo "$as_me: failed program was:" >&5
21105sed 's/^/| /' conftest.$ac_ext >&5
21106
21107ac_cv_type_int8_t=no
21108fi
21109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21110fi
21111echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
21112echo "${ECHO_T}$ac_cv_type_int8_t" >&6
21113if test $ac_cv_type_int8_t = yes; then
21114
21115cat >>confdefs.h <<_ACEOF
21116#define HAVE_INT8_T 1
21117_ACEOF
21118
21119
21120fi
21121echo "$as_me:$LINENO: checking for uint8_t" >&5
21122echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21123if test "${ac_cv_type_uint8_t+set}" = set; then
21124  echo $ECHO_N "(cached) $ECHO_C" >&6
21125else
21126  cat >conftest.$ac_ext <<_ACEOF
21127/* confdefs.h.  */
21128_ACEOF
21129cat confdefs.h >>conftest.$ac_ext
21130cat >>conftest.$ac_ext <<_ACEOF
21131/* end confdefs.h.  */
21132$ac_includes_default
21133int
21134main ()
21135{
21136if ((uint8_t *) 0)
21137  return 0;
21138if (sizeof (uint8_t))
21139  return 0;
21140  ;
21141  return 0;
21142}
21143_ACEOF
21144rm -f conftest.$ac_objext
21145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21146  (eval $ac_compile) 2>conftest.er1
21147  ac_status=$?
21148  grep -v '^ *+' conftest.er1 >conftest.err
21149  rm -f conftest.er1
21150  cat conftest.err >&5
21151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152  (exit $ac_status); } &&
21153	 { ac_try='test -z "$ac_c_werror_flag"
21154			 || test ! -s conftest.err'
21155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156  (eval $ac_try) 2>&5
21157  ac_status=$?
21158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159  (exit $ac_status); }; } &&
21160	 { ac_try='test -s conftest.$ac_objext'
21161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162  (eval $ac_try) 2>&5
21163  ac_status=$?
21164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165  (exit $ac_status); }; }; then
21166  ac_cv_type_uint8_t=yes
21167else
21168  echo "$as_me: failed program was:" >&5
21169sed 's/^/| /' conftest.$ac_ext >&5
21170
21171ac_cv_type_uint8_t=no
21172fi
21173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21174fi
21175echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21176echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21177if test $ac_cv_type_uint8_t = yes; then
21178
21179cat >>confdefs.h <<_ACEOF
21180#define HAVE_UINT8_T 1
21181_ACEOF
21182
21183
21184fi
21185echo "$as_me:$LINENO: checking for int16_t" >&5
21186echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
21187if test "${ac_cv_type_int16_t+set}" = set; then
21188  echo $ECHO_N "(cached) $ECHO_C" >&6
21189else
21190  cat >conftest.$ac_ext <<_ACEOF
21191/* confdefs.h.  */
21192_ACEOF
21193cat confdefs.h >>conftest.$ac_ext
21194cat >>conftest.$ac_ext <<_ACEOF
21195/* end confdefs.h.  */
21196$ac_includes_default
21197int
21198main ()
21199{
21200if ((int16_t *) 0)
21201  return 0;
21202if (sizeof (int16_t))
21203  return 0;
21204  ;
21205  return 0;
21206}
21207_ACEOF
21208rm -f conftest.$ac_objext
21209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21210  (eval $ac_compile) 2>conftest.er1
21211  ac_status=$?
21212  grep -v '^ *+' conftest.er1 >conftest.err
21213  rm -f conftest.er1
21214  cat conftest.err >&5
21215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216  (exit $ac_status); } &&
21217	 { ac_try='test -z "$ac_c_werror_flag"
21218			 || test ! -s conftest.err'
21219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220  (eval $ac_try) 2>&5
21221  ac_status=$?
21222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223  (exit $ac_status); }; } &&
21224	 { ac_try='test -s conftest.$ac_objext'
21225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226  (eval $ac_try) 2>&5
21227  ac_status=$?
21228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229  (exit $ac_status); }; }; then
21230  ac_cv_type_int16_t=yes
21231else
21232  echo "$as_me: failed program was:" >&5
21233sed 's/^/| /' conftest.$ac_ext >&5
21234
21235ac_cv_type_int16_t=no
21236fi
21237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21238fi
21239echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
21240echo "${ECHO_T}$ac_cv_type_int16_t" >&6
21241if test $ac_cv_type_int16_t = yes; then
21242
21243cat >>confdefs.h <<_ACEOF
21244#define HAVE_INT16_T 1
21245_ACEOF
21246
21247
21248fi
21249echo "$as_me:$LINENO: checking for uint16_t" >&5
21250echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21251if test "${ac_cv_type_uint16_t+set}" = set; then
21252  echo $ECHO_N "(cached) $ECHO_C" >&6
21253else
21254  cat >conftest.$ac_ext <<_ACEOF
21255/* confdefs.h.  */
21256_ACEOF
21257cat confdefs.h >>conftest.$ac_ext
21258cat >>conftest.$ac_ext <<_ACEOF
21259/* end confdefs.h.  */
21260$ac_includes_default
21261int
21262main ()
21263{
21264if ((uint16_t *) 0)
21265  return 0;
21266if (sizeof (uint16_t))
21267  return 0;
21268  ;
21269  return 0;
21270}
21271_ACEOF
21272rm -f conftest.$ac_objext
21273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274  (eval $ac_compile) 2>conftest.er1
21275  ac_status=$?
21276  grep -v '^ *+' conftest.er1 >conftest.err
21277  rm -f conftest.er1
21278  cat conftest.err >&5
21279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280  (exit $ac_status); } &&
21281	 { ac_try='test -z "$ac_c_werror_flag"
21282			 || test ! -s conftest.err'
21283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284  (eval $ac_try) 2>&5
21285  ac_status=$?
21286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287  (exit $ac_status); }; } &&
21288	 { ac_try='test -s conftest.$ac_objext'
21289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290  (eval $ac_try) 2>&5
21291  ac_status=$?
21292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293  (exit $ac_status); }; }; then
21294  ac_cv_type_uint16_t=yes
21295else
21296  echo "$as_me: failed program was:" >&5
21297sed 's/^/| /' conftest.$ac_ext >&5
21298
21299ac_cv_type_uint16_t=no
21300fi
21301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21302fi
21303echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21304echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21305if test $ac_cv_type_uint16_t = yes; then
21306
21307cat >>confdefs.h <<_ACEOF
21308#define HAVE_UINT16_T 1
21309_ACEOF
21310
21311
21312fi
21313echo "$as_me:$LINENO: checking for int32_t" >&5
21314echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
21315if test "${ac_cv_type_int32_t+set}" = set; then
21316  echo $ECHO_N "(cached) $ECHO_C" >&6
21317else
21318  cat >conftest.$ac_ext <<_ACEOF
21319/* confdefs.h.  */
21320_ACEOF
21321cat confdefs.h >>conftest.$ac_ext
21322cat >>conftest.$ac_ext <<_ACEOF
21323/* end confdefs.h.  */
21324$ac_includes_default
21325int
21326main ()
21327{
21328if ((int32_t *) 0)
21329  return 0;
21330if (sizeof (int32_t))
21331  return 0;
21332  ;
21333  return 0;
21334}
21335_ACEOF
21336rm -f conftest.$ac_objext
21337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21338  (eval $ac_compile) 2>conftest.er1
21339  ac_status=$?
21340  grep -v '^ *+' conftest.er1 >conftest.err
21341  rm -f conftest.er1
21342  cat conftest.err >&5
21343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344  (exit $ac_status); } &&
21345	 { ac_try='test -z "$ac_c_werror_flag"
21346			 || test ! -s conftest.err'
21347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348  (eval $ac_try) 2>&5
21349  ac_status=$?
21350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351  (exit $ac_status); }; } &&
21352	 { ac_try='test -s conftest.$ac_objext'
21353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354  (eval $ac_try) 2>&5
21355  ac_status=$?
21356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357  (exit $ac_status); }; }; then
21358  ac_cv_type_int32_t=yes
21359else
21360  echo "$as_me: failed program was:" >&5
21361sed 's/^/| /' conftest.$ac_ext >&5
21362
21363ac_cv_type_int32_t=no
21364fi
21365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21366fi
21367echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
21368echo "${ECHO_T}$ac_cv_type_int32_t" >&6
21369if test $ac_cv_type_int32_t = yes; then
21370
21371cat >>confdefs.h <<_ACEOF
21372#define HAVE_INT32_T 1
21373_ACEOF
21374
21375
21376fi
21377echo "$as_me:$LINENO: checking for uint32_t" >&5
21378echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21379if test "${ac_cv_type_uint32_t+set}" = set; then
21380  echo $ECHO_N "(cached) $ECHO_C" >&6
21381else
21382  cat >conftest.$ac_ext <<_ACEOF
21383/* confdefs.h.  */
21384_ACEOF
21385cat confdefs.h >>conftest.$ac_ext
21386cat >>conftest.$ac_ext <<_ACEOF
21387/* end confdefs.h.  */
21388$ac_includes_default
21389int
21390main ()
21391{
21392if ((uint32_t *) 0)
21393  return 0;
21394if (sizeof (uint32_t))
21395  return 0;
21396  ;
21397  return 0;
21398}
21399_ACEOF
21400rm -f conftest.$ac_objext
21401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21402  (eval $ac_compile) 2>conftest.er1
21403  ac_status=$?
21404  grep -v '^ *+' conftest.er1 >conftest.err
21405  rm -f conftest.er1
21406  cat conftest.err >&5
21407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408  (exit $ac_status); } &&
21409	 { ac_try='test -z "$ac_c_werror_flag"
21410			 || test ! -s conftest.err'
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); }; } &&
21416	 { ac_try='test -s conftest.$ac_objext'
21417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418  (eval $ac_try) 2>&5
21419  ac_status=$?
21420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421  (exit $ac_status); }; }; then
21422  ac_cv_type_uint32_t=yes
21423else
21424  echo "$as_me: failed program was:" >&5
21425sed 's/^/| /' conftest.$ac_ext >&5
21426
21427ac_cv_type_uint32_t=no
21428fi
21429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21430fi
21431echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21432echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21433if test $ac_cv_type_uint32_t = yes; then
21434
21435cat >>confdefs.h <<_ACEOF
21436#define HAVE_UINT32_T 1
21437_ACEOF
21438
21439
21440fi
21441echo "$as_me:$LINENO: checking for intptr_t" >&5
21442echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
21443if test "${ac_cv_type_intptr_t+set}" = set; then
21444  echo $ECHO_N "(cached) $ECHO_C" >&6
21445else
21446  cat >conftest.$ac_ext <<_ACEOF
21447/* confdefs.h.  */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
21451/* end confdefs.h.  */
21452$ac_includes_default
21453int
21454main ()
21455{
21456if ((intptr_t *) 0)
21457  return 0;
21458if (sizeof (intptr_t))
21459  return 0;
21460  ;
21461  return 0;
21462}
21463_ACEOF
21464rm -f conftest.$ac_objext
21465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466  (eval $ac_compile) 2>conftest.er1
21467  ac_status=$?
21468  grep -v '^ *+' conftest.er1 >conftest.err
21469  rm -f conftest.er1
21470  cat conftest.err >&5
21471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472  (exit $ac_status); } &&
21473	 { ac_try='test -z "$ac_c_werror_flag"
21474			 || test ! -s conftest.err'
21475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476  (eval $ac_try) 2>&5
21477  ac_status=$?
21478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479  (exit $ac_status); }; } &&
21480	 { ac_try='test -s conftest.$ac_objext'
21481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482  (eval $ac_try) 2>&5
21483  ac_status=$?
21484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485  (exit $ac_status); }; }; then
21486  ac_cv_type_intptr_t=yes
21487else
21488  echo "$as_me: failed program was:" >&5
21489sed 's/^/| /' conftest.$ac_ext >&5
21490
21491ac_cv_type_intptr_t=no
21492fi
21493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21494fi
21495echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
21496echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
21497if test $ac_cv_type_intptr_t = yes; then
21498
21499cat >>confdefs.h <<_ACEOF
21500#define HAVE_INTPTR_T 1
21501_ACEOF
21502
21503
21504fi
21505echo "$as_me:$LINENO: checking for uint_t" >&5
21506echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
21507if test "${ac_cv_type_uint_t+set}" = set; then
21508  echo $ECHO_N "(cached) $ECHO_C" >&6
21509else
21510  cat >conftest.$ac_ext <<_ACEOF
21511/* confdefs.h.  */
21512_ACEOF
21513cat confdefs.h >>conftest.$ac_ext
21514cat >>conftest.$ac_ext <<_ACEOF
21515/* end confdefs.h.  */
21516$ac_includes_default
21517int
21518main ()
21519{
21520if ((uint_t *) 0)
21521  return 0;
21522if (sizeof (uint_t))
21523  return 0;
21524  ;
21525  return 0;
21526}
21527_ACEOF
21528rm -f conftest.$ac_objext
21529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21530  (eval $ac_compile) 2>conftest.er1
21531  ac_status=$?
21532  grep -v '^ *+' conftest.er1 >conftest.err
21533  rm -f conftest.er1
21534  cat conftest.err >&5
21535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536  (exit $ac_status); } &&
21537	 { ac_try='test -z "$ac_c_werror_flag"
21538			 || test ! -s conftest.err'
21539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540  (eval $ac_try) 2>&5
21541  ac_status=$?
21542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543  (exit $ac_status); }; } &&
21544	 { ac_try='test -s conftest.$ac_objext'
21545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546  (eval $ac_try) 2>&5
21547  ac_status=$?
21548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549  (exit $ac_status); }; }; then
21550  ac_cv_type_uint_t=yes
21551else
21552  echo "$as_me: failed program was:" >&5
21553sed 's/^/| /' conftest.$ac_ext >&5
21554
21555ac_cv_type_uint_t=no
21556fi
21557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21558fi
21559echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
21560echo "${ECHO_T}$ac_cv_type_uint_t" >&6
21561if test $ac_cv_type_uint_t = yes; then
21562
21563cat >>confdefs.h <<_ACEOF
21564#define HAVE_UINT_T 1
21565_ACEOF
21566
21567
21568fi
21569
21570
21571  # ====================
21572  # uintptr type & sizes
21573  # ====================
21574  echo "$as_me:$LINENO: checking for uintptr_t" >&5
21575echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
21576if test "${ac_cv_type_uintptr_t+set}" = set; then
21577  echo $ECHO_N "(cached) $ECHO_C" >&6
21578else
21579  cat >conftest.$ac_ext <<_ACEOF
21580/* confdefs.h.  */
21581_ACEOF
21582cat confdefs.h >>conftest.$ac_ext
21583cat >>conftest.$ac_ext <<_ACEOF
21584/* end confdefs.h.  */
21585$ac_includes_default
21586int
21587main ()
21588{
21589if ((uintptr_t *) 0)
21590  return 0;
21591if (sizeof (uintptr_t))
21592  return 0;
21593  ;
21594  return 0;
21595}
21596_ACEOF
21597rm -f conftest.$ac_objext
21598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21599  (eval $ac_compile) 2>conftest.er1
21600  ac_status=$?
21601  grep -v '^ *+' conftest.er1 >conftest.err
21602  rm -f conftest.er1
21603  cat conftest.err >&5
21604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605  (exit $ac_status); } &&
21606	 { ac_try='test -z "$ac_c_werror_flag"
21607			 || test ! -s conftest.err'
21608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609  (eval $ac_try) 2>&5
21610  ac_status=$?
21611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612  (exit $ac_status); }; } &&
21613	 { ac_try='test -s conftest.$ac_objext'
21614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615  (eval $ac_try) 2>&5
21616  ac_status=$?
21617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618  (exit $ac_status); }; }; then
21619  ac_cv_type_uintptr_t=yes
21620else
21621  echo "$as_me: failed program was:" >&5
21622sed 's/^/| /' conftest.$ac_ext >&5
21623
21624ac_cv_type_uintptr_t=no
21625fi
21626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21627fi
21628echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21629echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
21630if test $ac_cv_type_uintptr_t = yes; then
21631
21632cat >>confdefs.h <<_ACEOF
21633#define HAVE_UINTPTR_T 1
21634_ACEOF
21635
21636
21637else
21638
21639cat >>confdefs.h <<\_ACEOF
21640#define uintptr_t unsigned long
21641_ACEOF
21642
21643fi
21644
21645  echo "$as_me:$LINENO: checking for char*" >&5
21646echo $ECHO_N "checking for char*... $ECHO_C" >&6
21647if test "${ac_cv_type_charp+set}" = set; then
21648  echo $ECHO_N "(cached) $ECHO_C" >&6
21649else
21650  cat >conftest.$ac_ext <<_ACEOF
21651/* confdefs.h.  */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
21655/* end confdefs.h.  */
21656$ac_includes_default
21657int
21658main ()
21659{
21660if ((char* *) 0)
21661  return 0;
21662if (sizeof (char*))
21663  return 0;
21664  ;
21665  return 0;
21666}
21667_ACEOF
21668rm -f conftest.$ac_objext
21669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21670  (eval $ac_compile) 2>conftest.er1
21671  ac_status=$?
21672  grep -v '^ *+' conftest.er1 >conftest.err
21673  rm -f conftest.er1
21674  cat conftest.err >&5
21675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676  (exit $ac_status); } &&
21677	 { ac_try='test -z "$ac_c_werror_flag"
21678			 || test ! -s conftest.err'
21679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680  (eval $ac_try) 2>&5
21681  ac_status=$?
21682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683  (exit $ac_status); }; } &&
21684	 { ac_try='test -s conftest.$ac_objext'
21685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686  (eval $ac_try) 2>&5
21687  ac_status=$?
21688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689  (exit $ac_status); }; }; then
21690  ac_cv_type_charp=yes
21691else
21692  echo "$as_me: failed program was:" >&5
21693sed 's/^/| /' conftest.$ac_ext >&5
21694
21695ac_cv_type_charp=no
21696fi
21697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21698fi
21699echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
21700echo "${ECHO_T}$ac_cv_type_charp" >&6
21701
21702echo "$as_me:$LINENO: checking size of char*" >&5
21703echo $ECHO_N "checking size of char*... $ECHO_C" >&6
21704if test "${ac_cv_sizeof_charp+set}" = set; then
21705  echo $ECHO_N "(cached) $ECHO_C" >&6
21706else
21707  if test "$ac_cv_type_charp" = yes; then
21708  # The cast to unsigned long works around a bug in the HP C Compiler
21709  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21710  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21711  # This bug is HP SR number 8606223364.
21712  if test "$cross_compiling" = yes; then
21713  # Depending upon the size, compute the lo and hi bounds.
21714cat >conftest.$ac_ext <<_ACEOF
21715/* confdefs.h.  */
21716_ACEOF
21717cat confdefs.h >>conftest.$ac_ext
21718cat >>conftest.$ac_ext <<_ACEOF
21719/* end confdefs.h.  */
21720$ac_includes_default
21721int
21722main ()
21723{
21724static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
21725test_array [0] = 0
21726
21727  ;
21728  return 0;
21729}
21730_ACEOF
21731rm -f conftest.$ac_objext
21732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21733  (eval $ac_compile) 2>conftest.er1
21734  ac_status=$?
21735  grep -v '^ *+' conftest.er1 >conftest.err
21736  rm -f conftest.er1
21737  cat conftest.err >&5
21738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739  (exit $ac_status); } &&
21740	 { ac_try='test -z "$ac_c_werror_flag"
21741			 || test ! -s conftest.err'
21742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743  (eval $ac_try) 2>&5
21744  ac_status=$?
21745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746  (exit $ac_status); }; } &&
21747	 { ac_try='test -s conftest.$ac_objext'
21748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749  (eval $ac_try) 2>&5
21750  ac_status=$?
21751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752  (exit $ac_status); }; }; then
21753  ac_lo=0 ac_mid=0
21754  while :; do
21755    cat >conftest.$ac_ext <<_ACEOF
21756/* confdefs.h.  */
21757_ACEOF
21758cat confdefs.h >>conftest.$ac_ext
21759cat >>conftest.$ac_ext <<_ACEOF
21760/* end confdefs.h.  */
21761$ac_includes_default
21762int
21763main ()
21764{
21765static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
21766test_array [0] = 0
21767
21768  ;
21769  return 0;
21770}
21771_ACEOF
21772rm -f conftest.$ac_objext
21773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21774  (eval $ac_compile) 2>conftest.er1
21775  ac_status=$?
21776  grep -v '^ *+' conftest.er1 >conftest.err
21777  rm -f conftest.er1
21778  cat conftest.err >&5
21779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780  (exit $ac_status); } &&
21781	 { ac_try='test -z "$ac_c_werror_flag"
21782			 || test ! -s conftest.err'
21783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784  (eval $ac_try) 2>&5
21785  ac_status=$?
21786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787  (exit $ac_status); }; } &&
21788	 { ac_try='test -s conftest.$ac_objext'
21789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790  (eval $ac_try) 2>&5
21791  ac_status=$?
21792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793  (exit $ac_status); }; }; then
21794  ac_hi=$ac_mid; break
21795else
21796  echo "$as_me: failed program was:" >&5
21797sed 's/^/| /' conftest.$ac_ext >&5
21798
21799ac_lo=`expr $ac_mid + 1`
21800		    if test $ac_lo -le $ac_mid; then
21801		      ac_lo= ac_hi=
21802		      break
21803		    fi
21804		    ac_mid=`expr 2 '*' $ac_mid + 1`
21805fi
21806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21807  done
21808else
21809  echo "$as_me: failed program was:" >&5
21810sed 's/^/| /' conftest.$ac_ext >&5
21811
21812cat >conftest.$ac_ext <<_ACEOF
21813/* confdefs.h.  */
21814_ACEOF
21815cat confdefs.h >>conftest.$ac_ext
21816cat >>conftest.$ac_ext <<_ACEOF
21817/* end confdefs.h.  */
21818$ac_includes_default
21819int
21820main ()
21821{
21822static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
21823test_array [0] = 0
21824
21825  ;
21826  return 0;
21827}
21828_ACEOF
21829rm -f conftest.$ac_objext
21830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21831  (eval $ac_compile) 2>conftest.er1
21832  ac_status=$?
21833  grep -v '^ *+' conftest.er1 >conftest.err
21834  rm -f conftest.er1
21835  cat conftest.err >&5
21836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837  (exit $ac_status); } &&
21838	 { ac_try='test -z "$ac_c_werror_flag"
21839			 || test ! -s conftest.err'
21840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841  (eval $ac_try) 2>&5
21842  ac_status=$?
21843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844  (exit $ac_status); }; } &&
21845	 { ac_try='test -s conftest.$ac_objext'
21846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847  (eval $ac_try) 2>&5
21848  ac_status=$?
21849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850  (exit $ac_status); }; }; then
21851  ac_hi=-1 ac_mid=-1
21852  while :; do
21853    cat >conftest.$ac_ext <<_ACEOF
21854/* confdefs.h.  */
21855_ACEOF
21856cat confdefs.h >>conftest.$ac_ext
21857cat >>conftest.$ac_ext <<_ACEOF
21858/* end confdefs.h.  */
21859$ac_includes_default
21860int
21861main ()
21862{
21863static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
21864test_array [0] = 0
21865
21866  ;
21867  return 0;
21868}
21869_ACEOF
21870rm -f conftest.$ac_objext
21871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21872  (eval $ac_compile) 2>conftest.er1
21873  ac_status=$?
21874  grep -v '^ *+' conftest.er1 >conftest.err
21875  rm -f conftest.er1
21876  cat conftest.err >&5
21877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878  (exit $ac_status); } &&
21879	 { ac_try='test -z "$ac_c_werror_flag"
21880			 || test ! -s conftest.err'
21881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882  (eval $ac_try) 2>&5
21883  ac_status=$?
21884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885  (exit $ac_status); }; } &&
21886	 { ac_try='test -s conftest.$ac_objext'
21887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888  (eval $ac_try) 2>&5
21889  ac_status=$?
21890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891  (exit $ac_status); }; }; then
21892  ac_lo=$ac_mid; break
21893else
21894  echo "$as_me: failed program was:" >&5
21895sed 's/^/| /' conftest.$ac_ext >&5
21896
21897ac_hi=`expr '(' $ac_mid ')' - 1`
21898		       if test $ac_mid -le $ac_hi; then
21899			 ac_lo= ac_hi=
21900			 break
21901		       fi
21902		       ac_mid=`expr 2 '*' $ac_mid`
21903fi
21904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21905  done
21906else
21907  echo "$as_me: failed program was:" >&5
21908sed 's/^/| /' conftest.$ac_ext >&5
21909
21910ac_lo= ac_hi=
21911fi
21912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21913fi
21914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21915# Binary search between lo and hi bounds.
21916while test "x$ac_lo" != "x$ac_hi"; do
21917  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21918  cat >conftest.$ac_ext <<_ACEOF
21919/* confdefs.h.  */
21920_ACEOF
21921cat confdefs.h >>conftest.$ac_ext
21922cat >>conftest.$ac_ext <<_ACEOF
21923/* end confdefs.h.  */
21924$ac_includes_default
21925int
21926main ()
21927{
21928static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
21929test_array [0] = 0
21930
21931  ;
21932  return 0;
21933}
21934_ACEOF
21935rm -f conftest.$ac_objext
21936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21937  (eval $ac_compile) 2>conftest.er1
21938  ac_status=$?
21939  grep -v '^ *+' conftest.er1 >conftest.err
21940  rm -f conftest.er1
21941  cat conftest.err >&5
21942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943  (exit $ac_status); } &&
21944	 { ac_try='test -z "$ac_c_werror_flag"
21945			 || test ! -s conftest.err'
21946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947  (eval $ac_try) 2>&5
21948  ac_status=$?
21949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950  (exit $ac_status); }; } &&
21951	 { ac_try='test -s conftest.$ac_objext'
21952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21953  (eval $ac_try) 2>&5
21954  ac_status=$?
21955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956  (exit $ac_status); }; }; then
21957  ac_hi=$ac_mid
21958else
21959  echo "$as_me: failed program was:" >&5
21960sed 's/^/| /' conftest.$ac_ext >&5
21961
21962ac_lo=`expr '(' $ac_mid ')' + 1`
21963fi
21964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21965done
21966case $ac_lo in
21967?*) ac_cv_sizeof_charp=$ac_lo;;
21968'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
21969See \`config.log' for more details." >&5
21970echo "$as_me: error: cannot compute sizeof (char*), 77
21971See \`config.log' for more details." >&2;}
21972   { (exit 1); exit 1; }; } ;;
21973esac
21974else
21975  if test "$cross_compiling" = yes; then
21976  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21977See \`config.log' for more details." >&5
21978echo "$as_me: error: cannot run test program while cross compiling
21979See \`config.log' for more details." >&2;}
21980   { (exit 1); exit 1; }; }
21981else
21982  cat >conftest.$ac_ext <<_ACEOF
21983/* confdefs.h.  */
21984_ACEOF
21985cat confdefs.h >>conftest.$ac_ext
21986cat >>conftest.$ac_ext <<_ACEOF
21987/* end confdefs.h.  */
21988$ac_includes_default
21989long longval () { return (long) (sizeof (char*)); }
21990unsigned long ulongval () { return (long) (sizeof (char*)); }
21991#include <stdio.h>
21992#include <stdlib.h>
21993int
21994main ()
21995{
21996
21997  FILE *f = fopen ("conftest.val", "w");
21998  if (! f)
21999    exit (1);
22000  if (((long) (sizeof (char*))) < 0)
22001    {
22002      long i = longval ();
22003      if (i != ((long) (sizeof (char*))))
22004	exit (1);
22005      fprintf (f, "%ld\n", i);
22006    }
22007  else
22008    {
22009      unsigned long i = ulongval ();
22010      if (i != ((long) (sizeof (char*))))
22011	exit (1);
22012      fprintf (f, "%lu\n", i);
22013    }
22014  exit (ferror (f) || fclose (f) != 0);
22015
22016  ;
22017  return 0;
22018}
22019_ACEOF
22020rm -f conftest$ac_exeext
22021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22022  (eval $ac_link) 2>&5
22023  ac_status=$?
22024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027  (eval $ac_try) 2>&5
22028  ac_status=$?
22029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030  (exit $ac_status); }; }; then
22031  ac_cv_sizeof_charp=`cat conftest.val`
22032else
22033  echo "$as_me: program exited with status $ac_status" >&5
22034echo "$as_me: failed program was:" >&5
22035sed 's/^/| /' conftest.$ac_ext >&5
22036
22037( exit $ac_status )
22038{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
22039See \`config.log' for more details." >&5
22040echo "$as_me: error: cannot compute sizeof (char*), 77
22041See \`config.log' for more details." >&2;}
22042   { (exit 1); exit 1; }; }
22043fi
22044rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22045fi
22046fi
22047rm -f conftest.val
22048else
22049  ac_cv_sizeof_charp=0
22050fi
22051fi
22052echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
22053echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
22054cat >>confdefs.h <<_ACEOF
22055#define SIZEOF_CHARP $ac_cv_sizeof_charp
22056_ACEOF
22057
22058
22059  echo "$as_me:$LINENO: checking for int" >&5
22060echo $ECHO_N "checking for int... $ECHO_C" >&6
22061if test "${ac_cv_type_int+set}" = set; then
22062  echo $ECHO_N "(cached) $ECHO_C" >&6
22063else
22064  cat >conftest.$ac_ext <<_ACEOF
22065/* confdefs.h.  */
22066_ACEOF
22067cat confdefs.h >>conftest.$ac_ext
22068cat >>conftest.$ac_ext <<_ACEOF
22069/* end confdefs.h.  */
22070$ac_includes_default
22071int
22072main ()
22073{
22074if ((int *) 0)
22075  return 0;
22076if (sizeof (int))
22077  return 0;
22078  ;
22079  return 0;
22080}
22081_ACEOF
22082rm -f conftest.$ac_objext
22083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22084  (eval $ac_compile) 2>conftest.er1
22085  ac_status=$?
22086  grep -v '^ *+' conftest.er1 >conftest.err
22087  rm -f conftest.er1
22088  cat conftest.err >&5
22089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090  (exit $ac_status); } &&
22091	 { ac_try='test -z "$ac_c_werror_flag"
22092			 || test ! -s conftest.err'
22093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094  (eval $ac_try) 2>&5
22095  ac_status=$?
22096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097  (exit $ac_status); }; } &&
22098	 { ac_try='test -s conftest.$ac_objext'
22099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100  (eval $ac_try) 2>&5
22101  ac_status=$?
22102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103  (exit $ac_status); }; }; then
22104  ac_cv_type_int=yes
22105else
22106  echo "$as_me: failed program was:" >&5
22107sed 's/^/| /' conftest.$ac_ext >&5
22108
22109ac_cv_type_int=no
22110fi
22111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22112fi
22113echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22114echo "${ECHO_T}$ac_cv_type_int" >&6
22115
22116echo "$as_me:$LINENO: checking size of int" >&5
22117echo $ECHO_N "checking size of int... $ECHO_C" >&6
22118if test "${ac_cv_sizeof_int+set}" = set; then
22119  echo $ECHO_N "(cached) $ECHO_C" >&6
22120else
22121  if test "$ac_cv_type_int" = yes; then
22122  # The cast to unsigned long works around a bug in the HP C Compiler
22123  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22124  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22125  # This bug is HP SR number 8606223364.
22126  if test "$cross_compiling" = yes; then
22127  # Depending upon the size, compute the lo and hi bounds.
22128cat >conftest.$ac_ext <<_ACEOF
22129/* confdefs.h.  */
22130_ACEOF
22131cat confdefs.h >>conftest.$ac_ext
22132cat >>conftest.$ac_ext <<_ACEOF
22133/* end confdefs.h.  */
22134$ac_includes_default
22135int
22136main ()
22137{
22138static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
22139test_array [0] = 0
22140
22141  ;
22142  return 0;
22143}
22144_ACEOF
22145rm -f conftest.$ac_objext
22146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22147  (eval $ac_compile) 2>conftest.er1
22148  ac_status=$?
22149  grep -v '^ *+' conftest.er1 >conftest.err
22150  rm -f conftest.er1
22151  cat conftest.err >&5
22152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153  (exit $ac_status); } &&
22154	 { ac_try='test -z "$ac_c_werror_flag"
22155			 || test ! -s conftest.err'
22156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157  (eval $ac_try) 2>&5
22158  ac_status=$?
22159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160  (exit $ac_status); }; } &&
22161	 { ac_try='test -s conftest.$ac_objext'
22162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163  (eval $ac_try) 2>&5
22164  ac_status=$?
22165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166  (exit $ac_status); }; }; then
22167  ac_lo=0 ac_mid=0
22168  while :; do
22169    cat >conftest.$ac_ext <<_ACEOF
22170/* confdefs.h.  */
22171_ACEOF
22172cat confdefs.h >>conftest.$ac_ext
22173cat >>conftest.$ac_ext <<_ACEOF
22174/* end confdefs.h.  */
22175$ac_includes_default
22176int
22177main ()
22178{
22179static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
22180test_array [0] = 0
22181
22182  ;
22183  return 0;
22184}
22185_ACEOF
22186rm -f conftest.$ac_objext
22187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22188  (eval $ac_compile) 2>conftest.er1
22189  ac_status=$?
22190  grep -v '^ *+' conftest.er1 >conftest.err
22191  rm -f conftest.er1
22192  cat conftest.err >&5
22193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194  (exit $ac_status); } &&
22195	 { ac_try='test -z "$ac_c_werror_flag"
22196			 || test ! -s conftest.err'
22197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198  (eval $ac_try) 2>&5
22199  ac_status=$?
22200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201  (exit $ac_status); }; } &&
22202	 { ac_try='test -s conftest.$ac_objext'
22203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204  (eval $ac_try) 2>&5
22205  ac_status=$?
22206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207  (exit $ac_status); }; }; then
22208  ac_hi=$ac_mid; break
22209else
22210  echo "$as_me: failed program was:" >&5
22211sed 's/^/| /' conftest.$ac_ext >&5
22212
22213ac_lo=`expr $ac_mid + 1`
22214		    if test $ac_lo -le $ac_mid; then
22215		      ac_lo= ac_hi=
22216		      break
22217		    fi
22218		    ac_mid=`expr 2 '*' $ac_mid + 1`
22219fi
22220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22221  done
22222else
22223  echo "$as_me: failed program was:" >&5
22224sed 's/^/| /' conftest.$ac_ext >&5
22225
22226cat >conftest.$ac_ext <<_ACEOF
22227/* confdefs.h.  */
22228_ACEOF
22229cat confdefs.h >>conftest.$ac_ext
22230cat >>conftest.$ac_ext <<_ACEOF
22231/* end confdefs.h.  */
22232$ac_includes_default
22233int
22234main ()
22235{
22236static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
22237test_array [0] = 0
22238
22239  ;
22240  return 0;
22241}
22242_ACEOF
22243rm -f conftest.$ac_objext
22244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22245  (eval $ac_compile) 2>conftest.er1
22246  ac_status=$?
22247  grep -v '^ *+' conftest.er1 >conftest.err
22248  rm -f conftest.er1
22249  cat conftest.err >&5
22250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251  (exit $ac_status); } &&
22252	 { ac_try='test -z "$ac_c_werror_flag"
22253			 || test ! -s conftest.err'
22254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255  (eval $ac_try) 2>&5
22256  ac_status=$?
22257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258  (exit $ac_status); }; } &&
22259	 { ac_try='test -s conftest.$ac_objext'
22260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261  (eval $ac_try) 2>&5
22262  ac_status=$?
22263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264  (exit $ac_status); }; }; then
22265  ac_hi=-1 ac_mid=-1
22266  while :; do
22267    cat >conftest.$ac_ext <<_ACEOF
22268/* confdefs.h.  */
22269_ACEOF
22270cat confdefs.h >>conftest.$ac_ext
22271cat >>conftest.$ac_ext <<_ACEOF
22272/* end confdefs.h.  */
22273$ac_includes_default
22274int
22275main ()
22276{
22277static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
22278test_array [0] = 0
22279
22280  ;
22281  return 0;
22282}
22283_ACEOF
22284rm -f conftest.$ac_objext
22285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22286  (eval $ac_compile) 2>conftest.er1
22287  ac_status=$?
22288  grep -v '^ *+' conftest.er1 >conftest.err
22289  rm -f conftest.er1
22290  cat conftest.err >&5
22291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292  (exit $ac_status); } &&
22293	 { ac_try='test -z "$ac_c_werror_flag"
22294			 || test ! -s conftest.err'
22295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296  (eval $ac_try) 2>&5
22297  ac_status=$?
22298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299  (exit $ac_status); }; } &&
22300	 { ac_try='test -s conftest.$ac_objext'
22301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302  (eval $ac_try) 2>&5
22303  ac_status=$?
22304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305  (exit $ac_status); }; }; then
22306  ac_lo=$ac_mid; break
22307else
22308  echo "$as_me: failed program was:" >&5
22309sed 's/^/| /' conftest.$ac_ext >&5
22310
22311ac_hi=`expr '(' $ac_mid ')' - 1`
22312		       if test $ac_mid -le $ac_hi; then
22313			 ac_lo= ac_hi=
22314			 break
22315		       fi
22316		       ac_mid=`expr 2 '*' $ac_mid`
22317fi
22318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22319  done
22320else
22321  echo "$as_me: failed program was:" >&5
22322sed 's/^/| /' conftest.$ac_ext >&5
22323
22324ac_lo= ac_hi=
22325fi
22326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22327fi
22328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22329# Binary search between lo and hi bounds.
22330while test "x$ac_lo" != "x$ac_hi"; do
22331  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22332  cat >conftest.$ac_ext <<_ACEOF
22333/* confdefs.h.  */
22334_ACEOF
22335cat confdefs.h >>conftest.$ac_ext
22336cat >>conftest.$ac_ext <<_ACEOF
22337/* end confdefs.h.  */
22338$ac_includes_default
22339int
22340main ()
22341{
22342static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
22343test_array [0] = 0
22344
22345  ;
22346  return 0;
22347}
22348_ACEOF
22349rm -f conftest.$ac_objext
22350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22351  (eval $ac_compile) 2>conftest.er1
22352  ac_status=$?
22353  grep -v '^ *+' conftest.er1 >conftest.err
22354  rm -f conftest.er1
22355  cat conftest.err >&5
22356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357  (exit $ac_status); } &&
22358	 { ac_try='test -z "$ac_c_werror_flag"
22359			 || test ! -s conftest.err'
22360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361  (eval $ac_try) 2>&5
22362  ac_status=$?
22363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364  (exit $ac_status); }; } &&
22365	 { ac_try='test -s conftest.$ac_objext'
22366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367  (eval $ac_try) 2>&5
22368  ac_status=$?
22369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370  (exit $ac_status); }; }; then
22371  ac_hi=$ac_mid
22372else
22373  echo "$as_me: failed program was:" >&5
22374sed 's/^/| /' conftest.$ac_ext >&5
22375
22376ac_lo=`expr '(' $ac_mid ')' + 1`
22377fi
22378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22379done
22380case $ac_lo in
22381?*) ac_cv_sizeof_int=$ac_lo;;
22382'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
22383See \`config.log' for more details." >&5
22384echo "$as_me: error: cannot compute sizeof (int), 77
22385See \`config.log' for more details." >&2;}
22386   { (exit 1); exit 1; }; } ;;
22387esac
22388else
22389  if test "$cross_compiling" = yes; then
22390  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22391See \`config.log' for more details." >&5
22392echo "$as_me: error: cannot run test program while cross compiling
22393See \`config.log' for more details." >&2;}
22394   { (exit 1); exit 1; }; }
22395else
22396  cat >conftest.$ac_ext <<_ACEOF
22397/* confdefs.h.  */
22398_ACEOF
22399cat confdefs.h >>conftest.$ac_ext
22400cat >>conftest.$ac_ext <<_ACEOF
22401/* end confdefs.h.  */
22402$ac_includes_default
22403long longval () { return (long) (sizeof (int)); }
22404unsigned long ulongval () { return (long) (sizeof (int)); }
22405#include <stdio.h>
22406#include <stdlib.h>
22407int
22408main ()
22409{
22410
22411  FILE *f = fopen ("conftest.val", "w");
22412  if (! f)
22413    exit (1);
22414  if (((long) (sizeof (int))) < 0)
22415    {
22416      long i = longval ();
22417      if (i != ((long) (sizeof (int))))
22418	exit (1);
22419      fprintf (f, "%ld\n", i);
22420    }
22421  else
22422    {
22423      unsigned long i = ulongval ();
22424      if (i != ((long) (sizeof (int))))
22425	exit (1);
22426      fprintf (f, "%lu\n", i);
22427    }
22428  exit (ferror (f) || fclose (f) != 0);
22429
22430  ;
22431  return 0;
22432}
22433_ACEOF
22434rm -f conftest$ac_exeext
22435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22436  (eval $ac_link) 2>&5
22437  ac_status=$?
22438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441  (eval $ac_try) 2>&5
22442  ac_status=$?
22443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444  (exit $ac_status); }; }; then
22445  ac_cv_sizeof_int=`cat conftest.val`
22446else
22447  echo "$as_me: program exited with status $ac_status" >&5
22448echo "$as_me: failed program was:" >&5
22449sed 's/^/| /' conftest.$ac_ext >&5
22450
22451( exit $ac_status )
22452{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
22453See \`config.log' for more details." >&5
22454echo "$as_me: error: cannot compute sizeof (int), 77
22455See \`config.log' for more details." >&2;}
22456   { (exit 1); exit 1; }; }
22457fi
22458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22459fi
22460fi
22461rm -f conftest.val
22462else
22463  ac_cv_sizeof_int=0
22464fi
22465fi
22466echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22467echo "${ECHO_T}$ac_cv_sizeof_int" >&6
22468cat >>confdefs.h <<_ACEOF
22469#define SIZEOF_INT $ac_cv_sizeof_int
22470_ACEOF
22471
22472
22473  echo "$as_me:$LINENO: checking for long" >&5
22474echo $ECHO_N "checking for long... $ECHO_C" >&6
22475if test "${ac_cv_type_long+set}" = set; then
22476  echo $ECHO_N "(cached) $ECHO_C" >&6
22477else
22478  cat >conftest.$ac_ext <<_ACEOF
22479/* confdefs.h.  */
22480_ACEOF
22481cat confdefs.h >>conftest.$ac_ext
22482cat >>conftest.$ac_ext <<_ACEOF
22483/* end confdefs.h.  */
22484$ac_includes_default
22485int
22486main ()
22487{
22488if ((long *) 0)
22489  return 0;
22490if (sizeof (long))
22491  return 0;
22492  ;
22493  return 0;
22494}
22495_ACEOF
22496rm -f conftest.$ac_objext
22497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22498  (eval $ac_compile) 2>conftest.er1
22499  ac_status=$?
22500  grep -v '^ *+' conftest.er1 >conftest.err
22501  rm -f conftest.er1
22502  cat conftest.err >&5
22503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504  (exit $ac_status); } &&
22505	 { ac_try='test -z "$ac_c_werror_flag"
22506			 || test ! -s conftest.err'
22507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508  (eval $ac_try) 2>&5
22509  ac_status=$?
22510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511  (exit $ac_status); }; } &&
22512	 { ac_try='test -s conftest.$ac_objext'
22513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514  (eval $ac_try) 2>&5
22515  ac_status=$?
22516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517  (exit $ac_status); }; }; then
22518  ac_cv_type_long=yes
22519else
22520  echo "$as_me: failed program was:" >&5
22521sed 's/^/| /' conftest.$ac_ext >&5
22522
22523ac_cv_type_long=no
22524fi
22525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22526fi
22527echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22528echo "${ECHO_T}$ac_cv_type_long" >&6
22529
22530echo "$as_me:$LINENO: checking size of long" >&5
22531echo $ECHO_N "checking size of long... $ECHO_C" >&6
22532if test "${ac_cv_sizeof_long+set}" = set; then
22533  echo $ECHO_N "(cached) $ECHO_C" >&6
22534else
22535  if test "$ac_cv_type_long" = yes; then
22536  # The cast to unsigned long works around a bug in the HP C Compiler
22537  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22538  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22539  # This bug is HP SR number 8606223364.
22540  if test "$cross_compiling" = yes; then
22541  # Depending upon the size, compute the lo and hi bounds.
22542cat >conftest.$ac_ext <<_ACEOF
22543/* confdefs.h.  */
22544_ACEOF
22545cat confdefs.h >>conftest.$ac_ext
22546cat >>conftest.$ac_ext <<_ACEOF
22547/* end confdefs.h.  */
22548$ac_includes_default
22549int
22550main ()
22551{
22552static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
22553test_array [0] = 0
22554
22555  ;
22556  return 0;
22557}
22558_ACEOF
22559rm -f conftest.$ac_objext
22560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22561  (eval $ac_compile) 2>conftest.er1
22562  ac_status=$?
22563  grep -v '^ *+' conftest.er1 >conftest.err
22564  rm -f conftest.er1
22565  cat conftest.err >&5
22566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567  (exit $ac_status); } &&
22568	 { ac_try='test -z "$ac_c_werror_flag"
22569			 || test ! -s conftest.err'
22570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571  (eval $ac_try) 2>&5
22572  ac_status=$?
22573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574  (exit $ac_status); }; } &&
22575	 { ac_try='test -s conftest.$ac_objext'
22576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577  (eval $ac_try) 2>&5
22578  ac_status=$?
22579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580  (exit $ac_status); }; }; then
22581  ac_lo=0 ac_mid=0
22582  while :; do
22583    cat >conftest.$ac_ext <<_ACEOF
22584/* confdefs.h.  */
22585_ACEOF
22586cat confdefs.h >>conftest.$ac_ext
22587cat >>conftest.$ac_ext <<_ACEOF
22588/* end confdefs.h.  */
22589$ac_includes_default
22590int
22591main ()
22592{
22593static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
22594test_array [0] = 0
22595
22596  ;
22597  return 0;
22598}
22599_ACEOF
22600rm -f conftest.$ac_objext
22601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22602  (eval $ac_compile) 2>conftest.er1
22603  ac_status=$?
22604  grep -v '^ *+' conftest.er1 >conftest.err
22605  rm -f conftest.er1
22606  cat conftest.err >&5
22607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608  (exit $ac_status); } &&
22609	 { ac_try='test -z "$ac_c_werror_flag"
22610			 || test ! -s conftest.err'
22611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612  (eval $ac_try) 2>&5
22613  ac_status=$?
22614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615  (exit $ac_status); }; } &&
22616	 { ac_try='test -s conftest.$ac_objext'
22617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618  (eval $ac_try) 2>&5
22619  ac_status=$?
22620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621  (exit $ac_status); }; }; then
22622  ac_hi=$ac_mid; break
22623else
22624  echo "$as_me: failed program was:" >&5
22625sed 's/^/| /' conftest.$ac_ext >&5
22626
22627ac_lo=`expr $ac_mid + 1`
22628		    if test $ac_lo -le $ac_mid; then
22629		      ac_lo= ac_hi=
22630		      break
22631		    fi
22632		    ac_mid=`expr 2 '*' $ac_mid + 1`
22633fi
22634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22635  done
22636else
22637  echo "$as_me: failed program was:" >&5
22638sed 's/^/| /' conftest.$ac_ext >&5
22639
22640cat >conftest.$ac_ext <<_ACEOF
22641/* confdefs.h.  */
22642_ACEOF
22643cat confdefs.h >>conftest.$ac_ext
22644cat >>conftest.$ac_ext <<_ACEOF
22645/* end confdefs.h.  */
22646$ac_includes_default
22647int
22648main ()
22649{
22650static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
22651test_array [0] = 0
22652
22653  ;
22654  return 0;
22655}
22656_ACEOF
22657rm -f conftest.$ac_objext
22658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22659  (eval $ac_compile) 2>conftest.er1
22660  ac_status=$?
22661  grep -v '^ *+' conftest.er1 >conftest.err
22662  rm -f conftest.er1
22663  cat conftest.err >&5
22664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665  (exit $ac_status); } &&
22666	 { ac_try='test -z "$ac_c_werror_flag"
22667			 || test ! -s conftest.err'
22668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669  (eval $ac_try) 2>&5
22670  ac_status=$?
22671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672  (exit $ac_status); }; } &&
22673	 { ac_try='test -s conftest.$ac_objext'
22674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675  (eval $ac_try) 2>&5
22676  ac_status=$?
22677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678  (exit $ac_status); }; }; then
22679  ac_hi=-1 ac_mid=-1
22680  while :; do
22681    cat >conftest.$ac_ext <<_ACEOF
22682/* confdefs.h.  */
22683_ACEOF
22684cat confdefs.h >>conftest.$ac_ext
22685cat >>conftest.$ac_ext <<_ACEOF
22686/* end confdefs.h.  */
22687$ac_includes_default
22688int
22689main ()
22690{
22691static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
22692test_array [0] = 0
22693
22694  ;
22695  return 0;
22696}
22697_ACEOF
22698rm -f conftest.$ac_objext
22699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700  (eval $ac_compile) 2>conftest.er1
22701  ac_status=$?
22702  grep -v '^ *+' conftest.er1 >conftest.err
22703  rm -f conftest.er1
22704  cat conftest.err >&5
22705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706  (exit $ac_status); } &&
22707	 { ac_try='test -z "$ac_c_werror_flag"
22708			 || test ! -s conftest.err'
22709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710  (eval $ac_try) 2>&5
22711  ac_status=$?
22712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713  (exit $ac_status); }; } &&
22714	 { ac_try='test -s conftest.$ac_objext'
22715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716  (eval $ac_try) 2>&5
22717  ac_status=$?
22718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719  (exit $ac_status); }; }; then
22720  ac_lo=$ac_mid; break
22721else
22722  echo "$as_me: failed program was:" >&5
22723sed 's/^/| /' conftest.$ac_ext >&5
22724
22725ac_hi=`expr '(' $ac_mid ')' - 1`
22726		       if test $ac_mid -le $ac_hi; then
22727			 ac_lo= ac_hi=
22728			 break
22729		       fi
22730		       ac_mid=`expr 2 '*' $ac_mid`
22731fi
22732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22733  done
22734else
22735  echo "$as_me: failed program was:" >&5
22736sed 's/^/| /' conftest.$ac_ext >&5
22737
22738ac_lo= ac_hi=
22739fi
22740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22741fi
22742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22743# Binary search between lo and hi bounds.
22744while test "x$ac_lo" != "x$ac_hi"; do
22745  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22746  cat >conftest.$ac_ext <<_ACEOF
22747/* confdefs.h.  */
22748_ACEOF
22749cat confdefs.h >>conftest.$ac_ext
22750cat >>conftest.$ac_ext <<_ACEOF
22751/* end confdefs.h.  */
22752$ac_includes_default
22753int
22754main ()
22755{
22756static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
22757test_array [0] = 0
22758
22759  ;
22760  return 0;
22761}
22762_ACEOF
22763rm -f conftest.$ac_objext
22764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22765  (eval $ac_compile) 2>conftest.er1
22766  ac_status=$?
22767  grep -v '^ *+' conftest.er1 >conftest.err
22768  rm -f conftest.er1
22769  cat conftest.err >&5
22770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771  (exit $ac_status); } &&
22772	 { ac_try='test -z "$ac_c_werror_flag"
22773			 || test ! -s conftest.err'
22774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775  (eval $ac_try) 2>&5
22776  ac_status=$?
22777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778  (exit $ac_status); }; } &&
22779	 { ac_try='test -s conftest.$ac_objext'
22780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781  (eval $ac_try) 2>&5
22782  ac_status=$?
22783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784  (exit $ac_status); }; }; then
22785  ac_hi=$ac_mid
22786else
22787  echo "$as_me: failed program was:" >&5
22788sed 's/^/| /' conftest.$ac_ext >&5
22789
22790ac_lo=`expr '(' $ac_mid ')' + 1`
22791fi
22792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22793done
22794case $ac_lo in
22795?*) ac_cv_sizeof_long=$ac_lo;;
22796'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
22797See \`config.log' for more details." >&5
22798echo "$as_me: error: cannot compute sizeof (long), 77
22799See \`config.log' for more details." >&2;}
22800   { (exit 1); exit 1; }; } ;;
22801esac
22802else
22803  if test "$cross_compiling" = yes; then
22804  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22805See \`config.log' for more details." >&5
22806echo "$as_me: error: cannot run test program while cross compiling
22807See \`config.log' for more details." >&2;}
22808   { (exit 1); exit 1; }; }
22809else
22810  cat >conftest.$ac_ext <<_ACEOF
22811/* confdefs.h.  */
22812_ACEOF
22813cat confdefs.h >>conftest.$ac_ext
22814cat >>conftest.$ac_ext <<_ACEOF
22815/* end confdefs.h.  */
22816$ac_includes_default
22817long longval () { return (long) (sizeof (long)); }
22818unsigned long ulongval () { return (long) (sizeof (long)); }
22819#include <stdio.h>
22820#include <stdlib.h>
22821int
22822main ()
22823{
22824
22825  FILE *f = fopen ("conftest.val", "w");
22826  if (! f)
22827    exit (1);
22828  if (((long) (sizeof (long))) < 0)
22829    {
22830      long i = longval ();
22831      if (i != ((long) (sizeof (long))))
22832	exit (1);
22833      fprintf (f, "%ld\n", i);
22834    }
22835  else
22836    {
22837      unsigned long i = ulongval ();
22838      if (i != ((long) (sizeof (long))))
22839	exit (1);
22840      fprintf (f, "%lu\n", i);
22841    }
22842  exit (ferror (f) || fclose (f) != 0);
22843
22844  ;
22845  return 0;
22846}
22847_ACEOF
22848rm -f conftest$ac_exeext
22849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22850  (eval $ac_link) 2>&5
22851  ac_status=$?
22852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855  (eval $ac_try) 2>&5
22856  ac_status=$?
22857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858  (exit $ac_status); }; }; then
22859  ac_cv_sizeof_long=`cat conftest.val`
22860else
22861  echo "$as_me: program exited with status $ac_status" >&5
22862echo "$as_me: failed program was:" >&5
22863sed 's/^/| /' conftest.$ac_ext >&5
22864
22865( exit $ac_status )
22866{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
22867See \`config.log' for more details." >&5
22868echo "$as_me: error: cannot compute sizeof (long), 77
22869See \`config.log' for more details." >&2;}
22870   { (exit 1); exit 1; }; }
22871fi
22872rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22873fi
22874fi
22875rm -f conftest.val
22876else
22877  ac_cv_sizeof_long=0
22878fi
22879fi
22880echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22881echo "${ECHO_T}$ac_cv_sizeof_long" >&6
22882cat >>confdefs.h <<_ACEOF
22883#define SIZEOF_LONG $ac_cv_sizeof_long
22884_ACEOF
22885
22886
22887  echo "$as_me:$LINENO: checking for short" >&5
22888echo $ECHO_N "checking for short... $ECHO_C" >&6
22889if test "${ac_cv_type_short+set}" = set; then
22890  echo $ECHO_N "(cached) $ECHO_C" >&6
22891else
22892  cat >conftest.$ac_ext <<_ACEOF
22893/* confdefs.h.  */
22894_ACEOF
22895cat confdefs.h >>conftest.$ac_ext
22896cat >>conftest.$ac_ext <<_ACEOF
22897/* end confdefs.h.  */
22898$ac_includes_default
22899int
22900main ()
22901{
22902if ((short *) 0)
22903  return 0;
22904if (sizeof (short))
22905  return 0;
22906  ;
22907  return 0;
22908}
22909_ACEOF
22910rm -f conftest.$ac_objext
22911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22912  (eval $ac_compile) 2>conftest.er1
22913  ac_status=$?
22914  grep -v '^ *+' conftest.er1 >conftest.err
22915  rm -f conftest.er1
22916  cat conftest.err >&5
22917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918  (exit $ac_status); } &&
22919	 { ac_try='test -z "$ac_c_werror_flag"
22920			 || test ! -s conftest.err'
22921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922  (eval $ac_try) 2>&5
22923  ac_status=$?
22924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925  (exit $ac_status); }; } &&
22926	 { ac_try='test -s conftest.$ac_objext'
22927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928  (eval $ac_try) 2>&5
22929  ac_status=$?
22930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931  (exit $ac_status); }; }; then
22932  ac_cv_type_short=yes
22933else
22934  echo "$as_me: failed program was:" >&5
22935sed 's/^/| /' conftest.$ac_ext >&5
22936
22937ac_cv_type_short=no
22938fi
22939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22940fi
22941echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22942echo "${ECHO_T}$ac_cv_type_short" >&6
22943
22944echo "$as_me:$LINENO: checking size of short" >&5
22945echo $ECHO_N "checking size of short... $ECHO_C" >&6
22946if test "${ac_cv_sizeof_short+set}" = set; then
22947  echo $ECHO_N "(cached) $ECHO_C" >&6
22948else
22949  if test "$ac_cv_type_short" = yes; then
22950  # The cast to unsigned long works around a bug in the HP C Compiler
22951  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22952  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22953  # This bug is HP SR number 8606223364.
22954  if test "$cross_compiling" = yes; then
22955  # Depending upon the size, compute the lo and hi bounds.
22956cat >conftest.$ac_ext <<_ACEOF
22957/* confdefs.h.  */
22958_ACEOF
22959cat confdefs.h >>conftest.$ac_ext
22960cat >>conftest.$ac_ext <<_ACEOF
22961/* end confdefs.h.  */
22962$ac_includes_default
22963int
22964main ()
22965{
22966static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
22967test_array [0] = 0
22968
22969  ;
22970  return 0;
22971}
22972_ACEOF
22973rm -f conftest.$ac_objext
22974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22975  (eval $ac_compile) 2>conftest.er1
22976  ac_status=$?
22977  grep -v '^ *+' conftest.er1 >conftest.err
22978  rm -f conftest.er1
22979  cat conftest.err >&5
22980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981  (exit $ac_status); } &&
22982	 { ac_try='test -z "$ac_c_werror_flag"
22983			 || test ! -s conftest.err'
22984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985  (eval $ac_try) 2>&5
22986  ac_status=$?
22987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988  (exit $ac_status); }; } &&
22989	 { ac_try='test -s conftest.$ac_objext'
22990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991  (eval $ac_try) 2>&5
22992  ac_status=$?
22993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994  (exit $ac_status); }; }; then
22995  ac_lo=0 ac_mid=0
22996  while :; do
22997    cat >conftest.$ac_ext <<_ACEOF
22998/* confdefs.h.  */
22999_ACEOF
23000cat confdefs.h >>conftest.$ac_ext
23001cat >>conftest.$ac_ext <<_ACEOF
23002/* end confdefs.h.  */
23003$ac_includes_default
23004int
23005main ()
23006{
23007static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
23008test_array [0] = 0
23009
23010  ;
23011  return 0;
23012}
23013_ACEOF
23014rm -f conftest.$ac_objext
23015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23016  (eval $ac_compile) 2>conftest.er1
23017  ac_status=$?
23018  grep -v '^ *+' conftest.er1 >conftest.err
23019  rm -f conftest.er1
23020  cat conftest.err >&5
23021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022  (exit $ac_status); } &&
23023	 { ac_try='test -z "$ac_c_werror_flag"
23024			 || test ! -s conftest.err'
23025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026  (eval $ac_try) 2>&5
23027  ac_status=$?
23028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029  (exit $ac_status); }; } &&
23030	 { ac_try='test -s conftest.$ac_objext'
23031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032  (eval $ac_try) 2>&5
23033  ac_status=$?
23034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035  (exit $ac_status); }; }; then
23036  ac_hi=$ac_mid; break
23037else
23038  echo "$as_me: failed program was:" >&5
23039sed 's/^/| /' conftest.$ac_ext >&5
23040
23041ac_lo=`expr $ac_mid + 1`
23042		    if test $ac_lo -le $ac_mid; then
23043		      ac_lo= ac_hi=
23044		      break
23045		    fi
23046		    ac_mid=`expr 2 '*' $ac_mid + 1`
23047fi
23048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23049  done
23050else
23051  echo "$as_me: failed program was:" >&5
23052sed 's/^/| /' conftest.$ac_ext >&5
23053
23054cat >conftest.$ac_ext <<_ACEOF
23055/* confdefs.h.  */
23056_ACEOF
23057cat confdefs.h >>conftest.$ac_ext
23058cat >>conftest.$ac_ext <<_ACEOF
23059/* end confdefs.h.  */
23060$ac_includes_default
23061int
23062main ()
23063{
23064static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
23065test_array [0] = 0
23066
23067  ;
23068  return 0;
23069}
23070_ACEOF
23071rm -f conftest.$ac_objext
23072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23073  (eval $ac_compile) 2>conftest.er1
23074  ac_status=$?
23075  grep -v '^ *+' conftest.er1 >conftest.err
23076  rm -f conftest.er1
23077  cat conftest.err >&5
23078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079  (exit $ac_status); } &&
23080	 { ac_try='test -z "$ac_c_werror_flag"
23081			 || test ! -s conftest.err'
23082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083  (eval $ac_try) 2>&5
23084  ac_status=$?
23085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086  (exit $ac_status); }; } &&
23087	 { ac_try='test -s conftest.$ac_objext'
23088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089  (eval $ac_try) 2>&5
23090  ac_status=$?
23091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092  (exit $ac_status); }; }; then
23093  ac_hi=-1 ac_mid=-1
23094  while :; do
23095    cat >conftest.$ac_ext <<_ACEOF
23096/* confdefs.h.  */
23097_ACEOF
23098cat confdefs.h >>conftest.$ac_ext
23099cat >>conftest.$ac_ext <<_ACEOF
23100/* end confdefs.h.  */
23101$ac_includes_default
23102int
23103main ()
23104{
23105static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
23106test_array [0] = 0
23107
23108  ;
23109  return 0;
23110}
23111_ACEOF
23112rm -f conftest.$ac_objext
23113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23114  (eval $ac_compile) 2>conftest.er1
23115  ac_status=$?
23116  grep -v '^ *+' conftest.er1 >conftest.err
23117  rm -f conftest.er1
23118  cat conftest.err >&5
23119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120  (exit $ac_status); } &&
23121	 { ac_try='test -z "$ac_c_werror_flag"
23122			 || test ! -s conftest.err'
23123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124  (eval $ac_try) 2>&5
23125  ac_status=$?
23126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127  (exit $ac_status); }; } &&
23128	 { ac_try='test -s conftest.$ac_objext'
23129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130  (eval $ac_try) 2>&5
23131  ac_status=$?
23132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133  (exit $ac_status); }; }; then
23134  ac_lo=$ac_mid; break
23135else
23136  echo "$as_me: failed program was:" >&5
23137sed 's/^/| /' conftest.$ac_ext >&5
23138
23139ac_hi=`expr '(' $ac_mid ')' - 1`
23140		       if test $ac_mid -le $ac_hi; then
23141			 ac_lo= ac_hi=
23142			 break
23143		       fi
23144		       ac_mid=`expr 2 '*' $ac_mid`
23145fi
23146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23147  done
23148else
23149  echo "$as_me: failed program was:" >&5
23150sed 's/^/| /' conftest.$ac_ext >&5
23151
23152ac_lo= ac_hi=
23153fi
23154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23155fi
23156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23157# Binary search between lo and hi bounds.
23158while test "x$ac_lo" != "x$ac_hi"; do
23159  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23160  cat >conftest.$ac_ext <<_ACEOF
23161/* confdefs.h.  */
23162_ACEOF
23163cat confdefs.h >>conftest.$ac_ext
23164cat >>conftest.$ac_ext <<_ACEOF
23165/* end confdefs.h.  */
23166$ac_includes_default
23167int
23168main ()
23169{
23170static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
23171test_array [0] = 0
23172
23173  ;
23174  return 0;
23175}
23176_ACEOF
23177rm -f conftest.$ac_objext
23178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23179  (eval $ac_compile) 2>conftest.er1
23180  ac_status=$?
23181  grep -v '^ *+' conftest.er1 >conftest.err
23182  rm -f conftest.er1
23183  cat conftest.err >&5
23184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185  (exit $ac_status); } &&
23186	 { ac_try='test -z "$ac_c_werror_flag"
23187			 || test ! -s conftest.err'
23188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189  (eval $ac_try) 2>&5
23190  ac_status=$?
23191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192  (exit $ac_status); }; } &&
23193	 { ac_try='test -s conftest.$ac_objext'
23194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195  (eval $ac_try) 2>&5
23196  ac_status=$?
23197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198  (exit $ac_status); }; }; then
23199  ac_hi=$ac_mid
23200else
23201  echo "$as_me: failed program was:" >&5
23202sed 's/^/| /' conftest.$ac_ext >&5
23203
23204ac_lo=`expr '(' $ac_mid ')' + 1`
23205fi
23206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23207done
23208case $ac_lo in
23209?*) ac_cv_sizeof_short=$ac_lo;;
23210'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
23211See \`config.log' for more details." >&5
23212echo "$as_me: error: cannot compute sizeof (short), 77
23213See \`config.log' for more details." >&2;}
23214   { (exit 1); exit 1; }; } ;;
23215esac
23216else
23217  if test "$cross_compiling" = yes; then
23218  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23219See \`config.log' for more details." >&5
23220echo "$as_me: error: cannot run test program while cross compiling
23221See \`config.log' for more details." >&2;}
23222   { (exit 1); exit 1; }; }
23223else
23224  cat >conftest.$ac_ext <<_ACEOF
23225/* confdefs.h.  */
23226_ACEOF
23227cat confdefs.h >>conftest.$ac_ext
23228cat >>conftest.$ac_ext <<_ACEOF
23229/* end confdefs.h.  */
23230$ac_includes_default
23231long longval () { return (long) (sizeof (short)); }
23232unsigned long ulongval () { return (long) (sizeof (short)); }
23233#include <stdio.h>
23234#include <stdlib.h>
23235int
23236main ()
23237{
23238
23239  FILE *f = fopen ("conftest.val", "w");
23240  if (! f)
23241    exit (1);
23242  if (((long) (sizeof (short))) < 0)
23243    {
23244      long i = longval ();
23245      if (i != ((long) (sizeof (short))))
23246	exit (1);
23247      fprintf (f, "%ld\n", i);
23248    }
23249  else
23250    {
23251      unsigned long i = ulongval ();
23252      if (i != ((long) (sizeof (short))))
23253	exit (1);
23254      fprintf (f, "%lu\n", i);
23255    }
23256  exit (ferror (f) || fclose (f) != 0);
23257
23258  ;
23259  return 0;
23260}
23261_ACEOF
23262rm -f conftest$ac_exeext
23263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23264  (eval $ac_link) 2>&5
23265  ac_status=$?
23266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269  (eval $ac_try) 2>&5
23270  ac_status=$?
23271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272  (exit $ac_status); }; }; then
23273  ac_cv_sizeof_short=`cat conftest.val`
23274else
23275  echo "$as_me: program exited with status $ac_status" >&5
23276echo "$as_me: failed program was:" >&5
23277sed 's/^/| /' conftest.$ac_ext >&5
23278
23279( exit $ac_status )
23280{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
23281See \`config.log' for more details." >&5
23282echo "$as_me: error: cannot compute sizeof (short), 77
23283See \`config.log' for more details." >&2;}
23284   { (exit 1); exit 1; }; }
23285fi
23286rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23287fi
23288fi
23289rm -f conftest.val
23290else
23291  ac_cv_sizeof_short=0
23292fi
23293fi
23294echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
23295echo "${ECHO_T}$ac_cv_sizeof_short" >&6
23296cat >>confdefs.h <<_ACEOF
23297#define SIZEOF_SHORT $ac_cv_sizeof_short
23298_ACEOF
23299
23300
23301
23302  # ----------------------------------------------------------------------
23303  # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
23304  # ----------------------------------------------------------------------
23305
23306echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
23307echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
23308if test "${ac_cv_lib_gen_pathfind+set}" = set; then
23309  echo $ECHO_N "(cached) $ECHO_C" >&6
23310else
23311  ac_check_lib_save_LIBS=$LIBS
23312LIBS="-lgen  $LIBS"
23313cat >conftest.$ac_ext <<_ACEOF
23314/* confdefs.h.  */
23315_ACEOF
23316cat confdefs.h >>conftest.$ac_ext
23317cat >>conftest.$ac_ext <<_ACEOF
23318/* end confdefs.h.  */
23319
23320/* Override any gcc2 internal prototype to avoid an error.  */
23321#ifdef __cplusplus
23322extern "C"
23323#endif
23324/* We use char because int might match the return type of a gcc2
23325   builtin and then its argument prototype would still apply.  */
23326char pathfind ();
23327int
23328main ()
23329{
23330pathfind ();
23331  ;
23332  return 0;
23333}
23334_ACEOF
23335rm -f conftest.$ac_objext conftest$ac_exeext
23336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23337  (eval $ac_link) 2>conftest.er1
23338  ac_status=$?
23339  grep -v '^ *+' conftest.er1 >conftest.err
23340  rm -f conftest.er1
23341  cat conftest.err >&5
23342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343  (exit $ac_status); } &&
23344	 { ac_try='test -z "$ac_c_werror_flag"
23345			 || test ! -s conftest.err'
23346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347  (eval $ac_try) 2>&5
23348  ac_status=$?
23349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350  (exit $ac_status); }; } &&
23351	 { ac_try='test -s conftest$ac_exeext'
23352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353  (eval $ac_try) 2>&5
23354  ac_status=$?
23355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356  (exit $ac_status); }; }; then
23357  ac_cv_lib_gen_pathfind=yes
23358else
23359  echo "$as_me: failed program was:" >&5
23360sed 's/^/| /' conftest.$ac_ext >&5
23361
23362ac_cv_lib_gen_pathfind=no
23363fi
23364rm -f conftest.err conftest.$ac_objext \
23365      conftest$ac_exeext conftest.$ac_ext
23366LIBS=$ac_check_lib_save_LIBS
23367fi
23368echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
23369echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
23370if test $ac_cv_lib_gen_pathfind = yes; then
23371  cat >>confdefs.h <<_ACEOF
23372#define HAVE_LIBGEN 1
23373_ACEOF
23374
23375  LIBS="-lgen $LIBS"
23376
23377fi
23378
23379
23380for ac_func in vprintf
23381do
23382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23383echo "$as_me:$LINENO: checking for $ac_func" >&5
23384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23385if eval "test \"\${$as_ac_var+set}\" = set"; then
23386  echo $ECHO_N "(cached) $ECHO_C" >&6
23387else
23388  cat >conftest.$ac_ext <<_ACEOF
23389/* confdefs.h.  */
23390_ACEOF
23391cat confdefs.h >>conftest.$ac_ext
23392cat >>conftest.$ac_ext <<_ACEOF
23393/* end confdefs.h.  */
23394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23395   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23396#define $ac_func innocuous_$ac_func
23397
23398/* System header to define __stub macros and hopefully few prototypes,
23399    which can conflict with char $ac_func (); below.
23400    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23401    <limits.h> exists even on freestanding compilers.  */
23402
23403#ifdef __STDC__
23404# include <limits.h>
23405#else
23406# include <assert.h>
23407#endif
23408
23409#undef $ac_func
23410
23411/* Override any gcc2 internal prototype to avoid an error.  */
23412#ifdef __cplusplus
23413extern "C"
23414{
23415#endif
23416/* We use char because int might match the return type of a gcc2
23417   builtin and then its argument prototype would still apply.  */
23418char $ac_func ();
23419/* The GNU C library defines this for functions which it implements
23420    to always fail with ENOSYS.  Some functions are actually named
23421    something starting with __ and the normal name is an alias.  */
23422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23423choke me
23424#else
23425char (*f) () = $ac_func;
23426#endif
23427#ifdef __cplusplus
23428}
23429#endif
23430
23431int
23432main ()
23433{
23434return f != $ac_func;
23435  ;
23436  return 0;
23437}
23438_ACEOF
23439rm -f conftest.$ac_objext conftest$ac_exeext
23440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23441  (eval $ac_link) 2>conftest.er1
23442  ac_status=$?
23443  grep -v '^ *+' conftest.er1 >conftest.err
23444  rm -f conftest.er1
23445  cat conftest.err >&5
23446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447  (exit $ac_status); } &&
23448	 { ac_try='test -z "$ac_c_werror_flag"
23449			 || test ! -s conftest.err'
23450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451  (eval $ac_try) 2>&5
23452  ac_status=$?
23453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454  (exit $ac_status); }; } &&
23455	 { ac_try='test -s conftest$ac_exeext'
23456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457  (eval $ac_try) 2>&5
23458  ac_status=$?
23459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460  (exit $ac_status); }; }; then
23461  eval "$as_ac_var=yes"
23462else
23463  echo "$as_me: failed program was:" >&5
23464sed 's/^/| /' conftest.$ac_ext >&5
23465
23466eval "$as_ac_var=no"
23467fi
23468rm -f conftest.err conftest.$ac_objext \
23469      conftest$ac_exeext conftest.$ac_ext
23470fi
23471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23472echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23473if test `eval echo '${'$as_ac_var'}'` = yes; then
23474  cat >>confdefs.h <<_ACEOF
23475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23476_ACEOF
23477
23478echo "$as_me:$LINENO: checking for _doprnt" >&5
23479echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
23480if test "${ac_cv_func__doprnt+set}" = set; then
23481  echo $ECHO_N "(cached) $ECHO_C" >&6
23482else
23483  cat >conftest.$ac_ext <<_ACEOF
23484/* confdefs.h.  */
23485_ACEOF
23486cat confdefs.h >>conftest.$ac_ext
23487cat >>conftest.$ac_ext <<_ACEOF
23488/* end confdefs.h.  */
23489/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
23490   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23491#define _doprnt innocuous__doprnt
23492
23493/* System header to define __stub macros and hopefully few prototypes,
23494    which can conflict with char _doprnt (); below.
23495    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23496    <limits.h> exists even on freestanding compilers.  */
23497
23498#ifdef __STDC__
23499# include <limits.h>
23500#else
23501# include <assert.h>
23502#endif
23503
23504#undef _doprnt
23505
23506/* Override any gcc2 internal prototype to avoid an error.  */
23507#ifdef __cplusplus
23508extern "C"
23509{
23510#endif
23511/* We use char because int might match the return type of a gcc2
23512   builtin and then its argument prototype would still apply.  */
23513char _doprnt ();
23514/* The GNU C library defines this for functions which it implements
23515    to always fail with ENOSYS.  Some functions are actually named
23516    something starting with __ and the normal name is an alias.  */
23517#if defined (__stub__doprnt) || defined (__stub____doprnt)
23518choke me
23519#else
23520char (*f) () = _doprnt;
23521#endif
23522#ifdef __cplusplus
23523}
23524#endif
23525
23526int
23527main ()
23528{
23529return f != _doprnt;
23530  ;
23531  return 0;
23532}
23533_ACEOF
23534rm -f conftest.$ac_objext conftest$ac_exeext
23535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23536  (eval $ac_link) 2>conftest.er1
23537  ac_status=$?
23538  grep -v '^ *+' conftest.er1 >conftest.err
23539  rm -f conftest.er1
23540  cat conftest.err >&5
23541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542  (exit $ac_status); } &&
23543	 { ac_try='test -z "$ac_c_werror_flag"
23544			 || test ! -s conftest.err'
23545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546  (eval $ac_try) 2>&5
23547  ac_status=$?
23548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549  (exit $ac_status); }; } &&
23550	 { ac_try='test -s conftest$ac_exeext'
23551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552  (eval $ac_try) 2>&5
23553  ac_status=$?
23554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555  (exit $ac_status); }; }; then
23556  ac_cv_func__doprnt=yes
23557else
23558  echo "$as_me: failed program was:" >&5
23559sed 's/^/| /' conftest.$ac_ext >&5
23560
23561ac_cv_func__doprnt=no
23562fi
23563rm -f conftest.err conftest.$ac_objext \
23564      conftest$ac_exeext conftest.$ac_ext
23565fi
23566echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
23567echo "${ECHO_T}$ac_cv_func__doprnt" >&6
23568if test $ac_cv_func__doprnt = yes; then
23569
23570cat >>confdefs.h <<\_ACEOF
23571#define HAVE_DOPRNT 1
23572_ACEOF
23573
23574fi
23575
23576fi
23577done
23578
23579
23580
23581
23582
23583
23584
23585
23586for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
23587do
23588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23589echo "$as_me:$LINENO: checking for $ac_func" >&5
23590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23591if eval "test \"\${$as_ac_var+set}\" = set"; then
23592  echo $ECHO_N "(cached) $ECHO_C" >&6
23593else
23594  cat >conftest.$ac_ext <<_ACEOF
23595/* confdefs.h.  */
23596_ACEOF
23597cat confdefs.h >>conftest.$ac_ext
23598cat >>conftest.$ac_ext <<_ACEOF
23599/* end confdefs.h.  */
23600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23601   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23602#define $ac_func innocuous_$ac_func
23603
23604/* System header to define __stub macros and hopefully few prototypes,
23605    which can conflict with char $ac_func (); below.
23606    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23607    <limits.h> exists even on freestanding compilers.  */
23608
23609#ifdef __STDC__
23610# include <limits.h>
23611#else
23612# include <assert.h>
23613#endif
23614
23615#undef $ac_func
23616
23617/* Override any gcc2 internal prototype to avoid an error.  */
23618#ifdef __cplusplus
23619extern "C"
23620{
23621#endif
23622/* We use char because int might match the return type of a gcc2
23623   builtin and then its argument prototype would still apply.  */
23624char $ac_func ();
23625/* The GNU C library defines this for functions which it implements
23626    to always fail with ENOSYS.  Some functions are actually named
23627    something starting with __ and the normal name is an alias.  */
23628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23629choke me
23630#else
23631char (*f) () = $ac_func;
23632#endif
23633#ifdef __cplusplus
23634}
23635#endif
23636
23637int
23638main ()
23639{
23640return f != $ac_func;
23641  ;
23642  return 0;
23643}
23644_ACEOF
23645rm -f conftest.$ac_objext conftest$ac_exeext
23646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647  (eval $ac_link) 2>conftest.er1
23648  ac_status=$?
23649  grep -v '^ *+' conftest.er1 >conftest.err
23650  rm -f conftest.er1
23651  cat conftest.err >&5
23652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653  (exit $ac_status); } &&
23654	 { ac_try='test -z "$ac_c_werror_flag"
23655			 || test ! -s conftest.err'
23656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657  (eval $ac_try) 2>&5
23658  ac_status=$?
23659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660  (exit $ac_status); }; } &&
23661	 { ac_try='test -s conftest$ac_exeext'
23662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663  (eval $ac_try) 2>&5
23664  ac_status=$?
23665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666  (exit $ac_status); }; }; then
23667  eval "$as_ac_var=yes"
23668else
23669  echo "$as_me: failed program was:" >&5
23670sed 's/^/| /' conftest.$ac_ext >&5
23671
23672eval "$as_ac_var=no"
23673fi
23674rm -f conftest.err conftest.$ac_objext \
23675      conftest$ac_exeext conftest.$ac_ext
23676fi
23677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23679if test `eval echo '${'$as_ac_var'}'` = yes; then
23680  cat >>confdefs.h <<_ACEOF
23681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23682_ACEOF
23683
23684fi
23685done
23686
23687  INVOKE_LIBOPTS_MACROS_FIRST_done=yes
23688fi
23689  # Check to see if a reg expr header is specified.
23690
23691
23692# Check whether --with-regex-header or --without-regex-header was given.
23693if test "${with_regex_header+set}" = set; then
23694  withval="$with_regex_header"
23695  libopts_cv_with_regex_header=${with_regex_header}
23696else
23697  echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
23698echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
23699if test "${libopts_cv_with_regex_header+set}" = set; then
23700  echo $ECHO_N "(cached) $ECHO_C" >&6
23701else
23702  libopts_cv_with_regex_header=no
23703fi
23704echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
23705echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
23706
23707fi;  # end of AC_ARG_WITH
23708
23709  if test "X${libopts_cv_with_regex_header}" != Xno
23710  then
23711    cat >>confdefs.h <<_ACEOF
23712#define REGEX_HEADER <${libopts_cv_with_regex_header}>
23713_ACEOF
23714
23715  else
23716
23717cat >>confdefs.h <<\_ACEOF
23718#define REGEX_HEADER <regex.h>
23719_ACEOF
23720
23721  fi
23722
23723
23724
23725  # Check to see if a working libregex can be found.
23726
23727
23728# Check whether --with-libregex or --without-libregex was given.
23729if test "${with_libregex+set}" = set; then
23730  withval="$with_libregex"
23731  libopts_cv_with_libregex_root=${with_libregex}
23732else
23733  echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
23734echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
23735if test "${libopts_cv_with_libregex_root+set}" = set; then
23736  echo $ECHO_N "(cached) $ECHO_C" >&6
23737else
23738  libopts_cv_with_libregex_root=no
23739fi
23740echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
23741echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
23742
23743fi;  # end of AC_ARG_WITH libregex
23744
23745  if test "${with_libguile+set}" = set && \
23746     test "${withval}" = no
23747  then ## disabled by request
23748    libopts_cv_with_libregex_root=no
23749    libopts_cv_with_libregex_cflags=no
23750    libopts_cv_with_libregex_libs=no
23751  else
23752
23753
23754# Check whether --with-libregex-cflags or --without-libregex-cflags was given.
23755if test "${with_libregex_cflags+set}" = set; then
23756  withval="$with_libregex_cflags"
23757  libopts_cv_with_libregex_cflags=${with_regex_cflags}
23758else
23759  echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
23760echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
23761if test "${libopts_cv_with_libregex_cflags+set}" = set; then
23762  echo $ECHO_N "(cached) $ECHO_C" >&6
23763else
23764  libopts_cv_with_libregex_cflags=no
23765fi
23766echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
23767echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
23768
23769fi;  # end of AC_ARG_WITH libregex-cflags
23770
23771
23772# Check whether --with-libregex-libs or --without-libregex-libs was given.
23773if test "${with_libregex_libs+set}" = set; then
23774  withval="$with_libregex_libs"
23775  libopts_cv_with_libregex_libs=${with_regex_libs}
23776else
23777  echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
23778echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
23779if test "${libopts_cv_with_libregex_libs+set}" = set; then
23780  echo $ECHO_N "(cached) $ECHO_C" >&6
23781else
23782  libopts_cv_with_libregex_libs=no
23783fi
23784echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
23785echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
23786
23787fi;  # end of AC_ARG_WITH libregex-libs
23788
23789  case "X${libopts_cv_with_libregex_cflags}" in
23790  Xyes|Xno|X )
23791    case "X${libopts_cv_with_libregex_root}" in
23792    Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
23793    * )        libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
23794    esac
23795  esac
23796  case "X${libopts_cv_with_libregex_libs}" in
23797  Xyes|Xno|X )
23798    case "X${libopts_cv_with_libregex_root}" in
23799    Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
23800    * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
23801    esac
23802  esac
23803  libopts_save_CPPFLAGS="${CPPFLAGS}"
23804  libopts_save_LIBS="${LIBS}"
23805  fi ## disabled by request
23806
23807  case "X${libopts_cv_with_libregex_cflags}" in
23808  Xyes|Xno|X )
23809    libopts_cv_with_libregex_cflags="" ;;
23810  * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
23811  esac
23812  case "X${libopts_cv_with_libregex_libs}" in
23813  Xyes|Xno|X )
23814    libopts_cv_with_libregex_libs="" ;;
23815  * )
23816    LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
23817  esac
23818  LIBREGEX_CFLAGS=""
23819  LIBREGEX_LIBS=""
23820  echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
23821echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
23822  if test "${libopts_cv_with_libregex+set}" = set; then
23823  echo $ECHO_N "(cached) $ECHO_C" >&6
23824else
23825
23826  if test "$cross_compiling" = yes; then
23827  libopts_cv_with_libregex=no
23828else
23829  cat >conftest.$ac_ext <<_ACEOF
23830/* confdefs.h.  */
23831_ACEOF
23832cat confdefs.h >>conftest.$ac_ext
23833cat >>conftest.$ac_ext <<_ACEOF
23834/* end confdefs.h.  */
23835#include <stdio.h>
23836#include <stdlib.h>
23837#include <sys/types.h>
23838#include REGEX_HEADER
23839static regex_t re;
23840void comp_re( char const* pzPat ) {
23841  int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
23842  if (res == 0) return;
23843  exit( res ); }
23844int main() {
23845  regmatch_t m[2];
23846  comp_re( "^.*\$"   );
23847  comp_re( "()|no.*" );
23848  comp_re( "."       );
23849  if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
23850  if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
23851    fputs( "error: regex -->.<-- did not match\n", stderr );
23852    return 1;
23853  }
23854  return 0; }
23855_ACEOF
23856rm -f conftest$ac_exeext
23857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23858  (eval $ac_link) 2>&5
23859  ac_status=$?
23860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863  (eval $ac_try) 2>&5
23864  ac_status=$?
23865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866  (exit $ac_status); }; }; then
23867  libopts_cv_with_libregex=yes
23868else
23869  echo "$as_me: program exited with status $ac_status" >&5
23870echo "$as_me: failed program was:" >&5
23871sed 's/^/| /' conftest.$ac_ext >&5
23872
23873( exit $ac_status )
23874libopts_cv_with_libregex=no
23875fi
23876rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23877fi # end of AC_TRY_RUN
23878
23879fi
23880 # end of AC_CACHE_VAL for libopts_cv_with_libregex
23881  echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
23882echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
23883
23884  if test "X${libopts_cv_with_libregex}" != Xno
23885  then
23886
23887cat >>confdefs.h <<\_ACEOF
23888#define WITH_LIBREGEX 1
23889_ACEOF
23890
23891  else
23892    CPPFLAGS="${libopts_save_CPPFLAGS}"
23893    LIBS="${libopts_save_LIBS}"
23894  fi
23895
23896
23897
23898  # Check to see if pathfind(3) works.
23899
23900  echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
23901echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
23902  if test "${libopts_cv_run_pathfind+set}" = set; then
23903  echo $ECHO_N "(cached) $ECHO_C" >&6
23904else
23905
23906  if test "$cross_compiling" = yes; then
23907  libopts_cv_run_pathfind=no
23908
23909else
23910  cat >conftest.$ac_ext <<_ACEOF
23911/* confdefs.h.  */
23912_ACEOF
23913cat confdefs.h >>conftest.$ac_ext
23914cat >>conftest.$ac_ext <<_ACEOF
23915/* end confdefs.h.  */
23916#include <string.h>
23917#include <stdlib.h>
23918int main (int argc, char** argv) {
23919   char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
23920   return (pz == 0) ? 1 : 0;
23921}
23922_ACEOF
23923rm -f conftest$ac_exeext
23924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23925  (eval $ac_link) 2>&5
23926  ac_status=$?
23927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23930  (eval $ac_try) 2>&5
23931  ac_status=$?
23932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933  (exit $ac_status); }; }; then
23934  libopts_cv_run_pathfind=yes
23935else
23936  echo "$as_me: program exited with status $ac_status" >&5
23937echo "$as_me: failed program was:" >&5
23938sed 's/^/| /' conftest.$ac_ext >&5
23939
23940( exit $ac_status )
23941libopts_cv_run_pathfind=no
23942fi
23943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23944fi # end of TRY_RUN
23945
23946fi
23947 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
23948  echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
23949echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
23950
23951  if test "X${libopts_cv_run_pathfind}" != Xno
23952  then
23953
23954cat >>confdefs.h <<\_ACEOF
23955#define HAVE_PATHFIND 1
23956_ACEOF
23957
23958  fi
23959
23960
23961
23962  # Check to see if /dev/zero is readable device.
23963
23964  echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
23965echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6
23966  if test "${libopts_cv_test_dev_zero+set}" = set; then
23967  echo $ECHO_N "(cached) $ECHO_C" >&6
23968else
23969
23970    libopts_cv_test_dev_zero=`exec 2> /dev/null
23971dzero=\`ls -lL /dev/zero | egrep ^c......r\`
23972test -z "${dzero}" && exit 1
23973echo ${dzero}`
23974    if test $? -ne 0
23975    then libopts_cv_test_dev_zero=no
23976    elif test -z "$libopts_cv_test_dev_zero"
23977    then libopts_cv_test_dev_zero=no
23978    fi
23979
23980fi
23981 # end of CACHE_VAL of libopts_cv_test_dev_zero
23982  echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
23983echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6
23984
23985  if test "X${libopts_cv_test_dev_zero}" != Xno
23986  then
23987
23988cat >>confdefs.h <<\_ACEOF
23989#define HAVE_DEV_ZERO 1
23990_ACEOF
23991
23992  fi
23993
23994
23995
23996  # Check to see if we have a functional realpath(3C).
23997
23998  echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
23999echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6
24000  if test "${libopts_cv_run_realpath+set}" = set; then
24001  echo $ECHO_N "(cached) $ECHO_C" >&6
24002else
24003
24004  if test "$cross_compiling" = yes; then
24005  libopts_cv_run_realpath=no
24006
24007else
24008  cat >conftest.$ac_ext <<_ACEOF
24009/* confdefs.h.  */
24010_ACEOF
24011cat confdefs.h >>conftest.$ac_ext
24012cat >>conftest.$ac_ext <<_ACEOF
24013/* end confdefs.h.  */
24014#include <limits.h>
24015#include <stdlib.h>
24016int main (int argc, char** argv) {
24017#ifndef PATH_MAX
24018choke me!!
24019#else
24020   char zPath[PATH_MAX+1];
24021#endif
24022   char *pz = realpath(argv[0], zPath);
24023   return (pz == zPath) ? 0 : 1;
24024}
24025_ACEOF
24026rm -f conftest$ac_exeext
24027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24028  (eval $ac_link) 2>&5
24029  ac_status=$?
24030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033  (eval $ac_try) 2>&5
24034  ac_status=$?
24035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036  (exit $ac_status); }; }; then
24037  libopts_cv_run_realpath=yes
24038else
24039  echo "$as_me: program exited with status $ac_status" >&5
24040echo "$as_me: failed program was:" >&5
24041sed 's/^/| /' conftest.$ac_ext >&5
24042
24043( exit $ac_status )
24044libopts_cv_run_realpath=no
24045fi
24046rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24047fi # end of TRY_RUN
24048
24049fi
24050 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24051  echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
24052echo "${ECHO_T}${libopts_cv_run_realpath}" >&6
24053
24054  if test "X${libopts_cv_run_realpath}" != Xno
24055  then
24056
24057cat >>confdefs.h <<\_ACEOF
24058#define HAVE_REALPATH 1
24059_ACEOF
24060
24061  fi
24062
24063
24064
24065  # Check to see if strftime() works.
24066
24067  echo "$as_me:$LINENO: checking whether strftime() works" >&5
24068echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
24069  if test "${libopts_cv_run_strftime+set}" = set; then
24070  echo $ECHO_N "(cached) $ECHO_C" >&6
24071else
24072
24073  if test "$cross_compiling" = yes; then
24074  libopts_cv_run_strftime=no
24075
24076else
24077  cat >conftest.$ac_ext <<_ACEOF
24078/* confdefs.h.  */
24079_ACEOF
24080cat confdefs.h >>conftest.$ac_ext
24081cat >>conftest.$ac_ext <<_ACEOF
24082/* end confdefs.h.  */
24083#include <time.h>
24084#include <string.h>
24085char t_buf[ 64 ];
24086int main() {
24087  static char const z[] = "Thursday Aug 28 240";
24088  struct tm tm;
24089  tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
24090  tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
24091  tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
24092  tm.tm_mday  = 28;  /* day of the month [1, 31] */
24093  tm.tm_mon   =  7;  /* months since January [0, 11] */
24094  tm.tm_year  = 86;  /* years since 1900 */
24095  tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
24096  tm.tm_yday  = 239; /* days since January 1 [0, 365] */
24097  tm.tm_isdst =  1;  /* flag for daylight savings time */
24098  strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24099  return (strcmp( t_buf, z ) != 0); }
24100_ACEOF
24101rm -f conftest$ac_exeext
24102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24103  (eval $ac_link) 2>&5
24104  ac_status=$?
24105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108  (eval $ac_try) 2>&5
24109  ac_status=$?
24110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111  (exit $ac_status); }; }; then
24112  libopts_cv_run_strftime=yes
24113else
24114  echo "$as_me: program exited with status $ac_status" >&5
24115echo "$as_me: failed program was:" >&5
24116sed 's/^/| /' conftest.$ac_ext >&5
24117
24118( exit $ac_status )
24119libopts_cv_run_strftime=no
24120fi
24121rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24122fi # end of TRY_RUN
24123
24124fi
24125 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24126  echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
24127echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
24128
24129  if test "X${libopts_cv_run_strftime}" != Xno
24130  then
24131
24132cat >>confdefs.h <<\_ACEOF
24133#define HAVE_STRFTIME 1
24134_ACEOF
24135
24136  fi
24137
24138
24139
24140  # Check to see if fopen accepts "b" mode.
24141
24142  echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
24143echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
24144  if test "${libopts_cv_run_fopen_binary+set}" = set; then
24145  echo $ECHO_N "(cached) $ECHO_C" >&6
24146else
24147
24148  if test "$cross_compiling" = yes; then
24149  libopts_cv_run_fopen_binary=no
24150
24151else
24152  cat >conftest.$ac_ext <<_ACEOF
24153/* confdefs.h.  */
24154_ACEOF
24155cat confdefs.h >>conftest.$ac_ext
24156cat >>conftest.$ac_ext <<_ACEOF
24157/* end confdefs.h.  */
24158#include <stdio.h>
24159int main (int argc, char** argv) {
24160FILE* fp = fopen("conftest.$ac_ext", "rb");
24161return (fp == NULL) ? 1 : fclose(fp); }
24162_ACEOF
24163rm -f conftest$ac_exeext
24164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24165  (eval $ac_link) 2>&5
24166  ac_status=$?
24167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170  (eval $ac_try) 2>&5
24171  ac_status=$?
24172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173  (exit $ac_status); }; }; then
24174  libopts_cv_run_fopen_binary=yes
24175else
24176  echo "$as_me: program exited with status $ac_status" >&5
24177echo "$as_me: failed program was:" >&5
24178sed 's/^/| /' conftest.$ac_ext >&5
24179
24180( exit $ac_status )
24181libopts_cv_run_fopen_binary=no
24182fi
24183rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24184fi # end of TRY_RUN
24185
24186fi
24187 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24188  echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
24189echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
24190
24191  if test "X${libopts_cv_run_fopen_binary}" != Xno
24192  then
24193
24194cat >>confdefs.h <<\_ACEOF
24195#define FOPEN_BINARY_FLAG "b"
24196_ACEOF
24197
24198  else
24199
24200cat >>confdefs.h <<\_ACEOF
24201#define FOPEN_BINARY_FLAG ""
24202_ACEOF
24203
24204  fi
24205
24206
24207
24208  # Check to see if fopen accepts "t" mode.
24209
24210  echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
24211echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
24212  if test "${libopts_cv_run_fopen_text+set}" = set; then
24213  echo $ECHO_N "(cached) $ECHO_C" >&6
24214else
24215
24216  if test "$cross_compiling" = yes; then
24217  libopts_cv_run_fopen_text=no
24218
24219else
24220  cat >conftest.$ac_ext <<_ACEOF
24221/* confdefs.h.  */
24222_ACEOF
24223cat confdefs.h >>conftest.$ac_ext
24224cat >>conftest.$ac_ext <<_ACEOF
24225/* end confdefs.h.  */
24226#include <stdio.h>
24227int main (int argc, char** argv) {
24228FILE* fp = fopen("conftest.$ac_ext", "rt");
24229return (fp == NULL) ? 1 : fclose(fp); }
24230_ACEOF
24231rm -f conftest$ac_exeext
24232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233  (eval $ac_link) 2>&5
24234  ac_status=$?
24235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238  (eval $ac_try) 2>&5
24239  ac_status=$?
24240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241  (exit $ac_status); }; }; then
24242  libopts_cv_run_fopen_text=yes
24243else
24244  echo "$as_me: program exited with status $ac_status" >&5
24245echo "$as_me: failed program was:" >&5
24246sed 's/^/| /' conftest.$ac_ext >&5
24247
24248( exit $ac_status )
24249libopts_cv_run_fopen_text=no
24250fi
24251rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24252fi # end of TRY_RUN
24253
24254fi
24255 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24256  echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
24257echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
24258
24259  if test "X${libopts_cv_run_fopen_text}" != Xno
24260  then
24261
24262cat >>confdefs.h <<\_ACEOF
24263#define FOPEN_TEXT_FLAG "t"
24264_ACEOF
24265
24266  else
24267
24268cat >>confdefs.h <<\_ACEOF
24269#define FOPEN_TEXT_FLAG ""
24270_ACEOF
24271
24272  fi
24273
24274
24275
24276  # Check to see if not wanting optional option args.
24277
24278  # Check whether --enable-optional-args or --disable-optional-args was given.
24279if test "${enable_optional_args+set}" = set; then
24280  enableval="$enable_optional_args"
24281  libopts_cv_enable_optional_args=${enable_optional_args}
24282else
24283  echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
24284echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6
24285if test "${libopts_cv_enable_optional_args+set}" = set; then
24286  echo $ECHO_N "(cached) $ECHO_C" >&6
24287else
24288  libopts_cv_enable_optional_args=yes
24289fi
24290echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
24291echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6
24292
24293fi;  # end of AC_ARG_ENABLE
24294
24295  if test "X${libopts_cv_enable_optional_args}" = Xno
24296  then
24297
24298cat >>confdefs.h <<\_ACEOF
24299#define NO_OPTIONAL_OPT_ARGS 1
24300_ACEOF
24301
24302  fi
24303
24304
24305
24306
24307  else
24308
24309if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
24310  # =================
24311  # AC_HEADER_STDC
24312  # =================
24313  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24314echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
24315if test "${ac_cv_header_stdc+set}" = set; then
24316  echo $ECHO_N "(cached) $ECHO_C" >&6
24317else
24318  cat >conftest.$ac_ext <<_ACEOF
24319/* confdefs.h.  */
24320_ACEOF
24321cat confdefs.h >>conftest.$ac_ext
24322cat >>conftest.$ac_ext <<_ACEOF
24323/* end confdefs.h.  */
24324#include <stdlib.h>
24325#include <stdarg.h>
24326#include <string.h>
24327#include <float.h>
24328
24329int
24330main ()
24331{
24332
24333  ;
24334  return 0;
24335}
24336_ACEOF
24337rm -f conftest.$ac_objext
24338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24339  (eval $ac_compile) 2>conftest.er1
24340  ac_status=$?
24341  grep -v '^ *+' conftest.er1 >conftest.err
24342  rm -f conftest.er1
24343  cat conftest.err >&5
24344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345  (exit $ac_status); } &&
24346	 { ac_try='test -z "$ac_c_werror_flag"
24347			 || test ! -s conftest.err'
24348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24349  (eval $ac_try) 2>&5
24350  ac_status=$?
24351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352  (exit $ac_status); }; } &&
24353	 { ac_try='test -s conftest.$ac_objext'
24354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355  (eval $ac_try) 2>&5
24356  ac_status=$?
24357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358  (exit $ac_status); }; }; then
24359  ac_cv_header_stdc=yes
24360else
24361  echo "$as_me: failed program was:" >&5
24362sed 's/^/| /' conftest.$ac_ext >&5
24363
24364ac_cv_header_stdc=no
24365fi
24366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24367
24368if test $ac_cv_header_stdc = yes; then
24369  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24370  cat >conftest.$ac_ext <<_ACEOF
24371/* confdefs.h.  */
24372_ACEOF
24373cat confdefs.h >>conftest.$ac_ext
24374cat >>conftest.$ac_ext <<_ACEOF
24375/* end confdefs.h.  */
24376#include <string.h>
24377
24378_ACEOF
24379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24380  $EGREP "memchr" >/dev/null 2>&1; then
24381  :
24382else
24383  ac_cv_header_stdc=no
24384fi
24385rm -f conftest*
24386
24387fi
24388
24389if test $ac_cv_header_stdc = yes; then
24390  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24391  cat >conftest.$ac_ext <<_ACEOF
24392/* confdefs.h.  */
24393_ACEOF
24394cat confdefs.h >>conftest.$ac_ext
24395cat >>conftest.$ac_ext <<_ACEOF
24396/* end confdefs.h.  */
24397#include <stdlib.h>
24398
24399_ACEOF
24400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24401  $EGREP "free" >/dev/null 2>&1; then
24402  :
24403else
24404  ac_cv_header_stdc=no
24405fi
24406rm -f conftest*
24407
24408fi
24409
24410if test $ac_cv_header_stdc = yes; then
24411  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24412  if test "$cross_compiling" = yes; then
24413  :
24414else
24415  cat >conftest.$ac_ext <<_ACEOF
24416/* confdefs.h.  */
24417_ACEOF
24418cat confdefs.h >>conftest.$ac_ext
24419cat >>conftest.$ac_ext <<_ACEOF
24420/* end confdefs.h.  */
24421#include <ctype.h>
24422#if ((' ' & 0x0FF) == 0x020)
24423# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24424# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24425#else
24426# define ISLOWER(c) \
24427		   (('a' <= (c) && (c) <= 'i') \
24428		     || ('j' <= (c) && (c) <= 'r') \
24429		     || ('s' <= (c) && (c) <= 'z'))
24430# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24431#endif
24432
24433#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24434int
24435main ()
24436{
24437  int i;
24438  for (i = 0; i < 256; i++)
24439    if (XOR (islower (i), ISLOWER (i))
24440	|| toupper (i) != TOUPPER (i))
24441      exit(2);
24442  exit (0);
24443}
24444_ACEOF
24445rm -f conftest$ac_exeext
24446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24447  (eval $ac_link) 2>&5
24448  ac_status=$?
24449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452  (eval $ac_try) 2>&5
24453  ac_status=$?
24454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455  (exit $ac_status); }; }; then
24456  :
24457else
24458  echo "$as_me: program exited with status $ac_status" >&5
24459echo "$as_me: failed program was:" >&5
24460sed 's/^/| /' conftest.$ac_ext >&5
24461
24462( exit $ac_status )
24463ac_cv_header_stdc=no
24464fi
24465rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24466fi
24467fi
24468fi
24469echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24470echo "${ECHO_T}$ac_cv_header_stdc" >&6
24471if test $ac_cv_header_stdc = yes; then
24472
24473cat >>confdefs.h <<\_ACEOF
24474#define STDC_HEADERS 1
24475_ACEOF
24476
24477fi
24478
24479  # =================
24480  # AC_HEADER_DIRENT
24481  # =================
24482
24483
24484
24485
24486
24487ac_header_dirent=no
24488for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24489  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24490echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24491echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
24492if eval "test \"\${$as_ac_Header+set}\" = set"; then
24493  echo $ECHO_N "(cached) $ECHO_C" >&6
24494else
24495  cat >conftest.$ac_ext <<_ACEOF
24496/* confdefs.h.  */
24497_ACEOF
24498cat confdefs.h >>conftest.$ac_ext
24499cat >>conftest.$ac_ext <<_ACEOF
24500/* end confdefs.h.  */
24501#include <sys/types.h>
24502#include <$ac_hdr>
24503
24504int
24505main ()
24506{
24507if ((DIR *) 0)
24508return 0;
24509  ;
24510  return 0;
24511}
24512_ACEOF
24513rm -f conftest.$ac_objext
24514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24515  (eval $ac_compile) 2>conftest.er1
24516  ac_status=$?
24517  grep -v '^ *+' conftest.er1 >conftest.err
24518  rm -f conftest.er1
24519  cat conftest.err >&5
24520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521  (exit $ac_status); } &&
24522	 { ac_try='test -z "$ac_c_werror_flag"
24523			 || test ! -s conftest.err'
24524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525  (eval $ac_try) 2>&5
24526  ac_status=$?
24527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528  (exit $ac_status); }; } &&
24529	 { ac_try='test -s conftest.$ac_objext'
24530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24531  (eval $ac_try) 2>&5
24532  ac_status=$?
24533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534  (exit $ac_status); }; }; then
24535  eval "$as_ac_Header=yes"
24536else
24537  echo "$as_me: failed program was:" >&5
24538sed 's/^/| /' conftest.$ac_ext >&5
24539
24540eval "$as_ac_Header=no"
24541fi
24542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24543fi
24544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24546if test `eval echo '${'$as_ac_Header'}'` = yes; then
24547  cat >>confdefs.h <<_ACEOF
24548#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24549_ACEOF
24550
24551ac_header_dirent=$ac_hdr; break
24552fi
24553
24554done
24555# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24556if test $ac_header_dirent = dirent.h; then
24557  echo "$as_me:$LINENO: checking for library containing opendir" >&5
24558echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
24559if test "${ac_cv_search_opendir+set}" = set; then
24560  echo $ECHO_N "(cached) $ECHO_C" >&6
24561else
24562  ac_func_search_save_LIBS=$LIBS
24563ac_cv_search_opendir=no
24564cat >conftest.$ac_ext <<_ACEOF
24565/* confdefs.h.  */
24566_ACEOF
24567cat confdefs.h >>conftest.$ac_ext
24568cat >>conftest.$ac_ext <<_ACEOF
24569/* end confdefs.h.  */
24570
24571/* Override any gcc2 internal prototype to avoid an error.  */
24572#ifdef __cplusplus
24573extern "C"
24574#endif
24575/* We use char because int might match the return type of a gcc2
24576   builtin and then its argument prototype would still apply.  */
24577char opendir ();
24578int
24579main ()
24580{
24581opendir ();
24582  ;
24583  return 0;
24584}
24585_ACEOF
24586rm -f conftest.$ac_objext conftest$ac_exeext
24587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24588  (eval $ac_link) 2>conftest.er1
24589  ac_status=$?
24590  grep -v '^ *+' conftest.er1 >conftest.err
24591  rm -f conftest.er1
24592  cat conftest.err >&5
24593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594  (exit $ac_status); } &&
24595	 { ac_try='test -z "$ac_c_werror_flag"
24596			 || test ! -s conftest.err'
24597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598  (eval $ac_try) 2>&5
24599  ac_status=$?
24600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601  (exit $ac_status); }; } &&
24602	 { ac_try='test -s conftest$ac_exeext'
24603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24604  (eval $ac_try) 2>&5
24605  ac_status=$?
24606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607  (exit $ac_status); }; }; then
24608  ac_cv_search_opendir="none required"
24609else
24610  echo "$as_me: failed program was:" >&5
24611sed 's/^/| /' conftest.$ac_ext >&5
24612
24613fi
24614rm -f conftest.err conftest.$ac_objext \
24615      conftest$ac_exeext conftest.$ac_ext
24616if test "$ac_cv_search_opendir" = no; then
24617  for ac_lib in dir; do
24618    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24619    cat >conftest.$ac_ext <<_ACEOF
24620/* confdefs.h.  */
24621_ACEOF
24622cat confdefs.h >>conftest.$ac_ext
24623cat >>conftest.$ac_ext <<_ACEOF
24624/* end confdefs.h.  */
24625
24626/* Override any gcc2 internal prototype to avoid an error.  */
24627#ifdef __cplusplus
24628extern "C"
24629#endif
24630/* We use char because int might match the return type of a gcc2
24631   builtin and then its argument prototype would still apply.  */
24632char opendir ();
24633int
24634main ()
24635{
24636opendir ();
24637  ;
24638  return 0;
24639}
24640_ACEOF
24641rm -f conftest.$ac_objext conftest$ac_exeext
24642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24643  (eval $ac_link) 2>conftest.er1
24644  ac_status=$?
24645  grep -v '^ *+' conftest.er1 >conftest.err
24646  rm -f conftest.er1
24647  cat conftest.err >&5
24648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649  (exit $ac_status); } &&
24650	 { ac_try='test -z "$ac_c_werror_flag"
24651			 || test ! -s conftest.err'
24652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653  (eval $ac_try) 2>&5
24654  ac_status=$?
24655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656  (exit $ac_status); }; } &&
24657	 { ac_try='test -s conftest$ac_exeext'
24658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659  (eval $ac_try) 2>&5
24660  ac_status=$?
24661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662  (exit $ac_status); }; }; then
24663  ac_cv_search_opendir="-l$ac_lib"
24664break
24665else
24666  echo "$as_me: failed program was:" >&5
24667sed 's/^/| /' conftest.$ac_ext >&5
24668
24669fi
24670rm -f conftest.err conftest.$ac_objext \
24671      conftest$ac_exeext conftest.$ac_ext
24672  done
24673fi
24674LIBS=$ac_func_search_save_LIBS
24675fi
24676echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24677echo "${ECHO_T}$ac_cv_search_opendir" >&6
24678if test "$ac_cv_search_opendir" != no; then
24679  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24680
24681fi
24682
24683else
24684  echo "$as_me:$LINENO: checking for library containing opendir" >&5
24685echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
24686if test "${ac_cv_search_opendir+set}" = set; then
24687  echo $ECHO_N "(cached) $ECHO_C" >&6
24688else
24689  ac_func_search_save_LIBS=$LIBS
24690ac_cv_search_opendir=no
24691cat >conftest.$ac_ext <<_ACEOF
24692/* confdefs.h.  */
24693_ACEOF
24694cat confdefs.h >>conftest.$ac_ext
24695cat >>conftest.$ac_ext <<_ACEOF
24696/* end confdefs.h.  */
24697
24698/* Override any gcc2 internal prototype to avoid an error.  */
24699#ifdef __cplusplus
24700extern "C"
24701#endif
24702/* We use char because int might match the return type of a gcc2
24703   builtin and then its argument prototype would still apply.  */
24704char opendir ();
24705int
24706main ()
24707{
24708opendir ();
24709  ;
24710  return 0;
24711}
24712_ACEOF
24713rm -f conftest.$ac_objext conftest$ac_exeext
24714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24715  (eval $ac_link) 2>conftest.er1
24716  ac_status=$?
24717  grep -v '^ *+' conftest.er1 >conftest.err
24718  rm -f conftest.er1
24719  cat conftest.err >&5
24720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721  (exit $ac_status); } &&
24722	 { ac_try='test -z "$ac_c_werror_flag"
24723			 || test ! -s conftest.err'
24724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725  (eval $ac_try) 2>&5
24726  ac_status=$?
24727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728  (exit $ac_status); }; } &&
24729	 { ac_try='test -s conftest$ac_exeext'
24730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731  (eval $ac_try) 2>&5
24732  ac_status=$?
24733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734  (exit $ac_status); }; }; then
24735  ac_cv_search_opendir="none required"
24736else
24737  echo "$as_me: failed program was:" >&5
24738sed 's/^/| /' conftest.$ac_ext >&5
24739
24740fi
24741rm -f conftest.err conftest.$ac_objext \
24742      conftest$ac_exeext conftest.$ac_ext
24743if test "$ac_cv_search_opendir" = no; then
24744  for ac_lib in x; do
24745    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24746    cat >conftest.$ac_ext <<_ACEOF
24747/* confdefs.h.  */
24748_ACEOF
24749cat confdefs.h >>conftest.$ac_ext
24750cat >>conftest.$ac_ext <<_ACEOF
24751/* end confdefs.h.  */
24752
24753/* Override any gcc2 internal prototype to avoid an error.  */
24754#ifdef __cplusplus
24755extern "C"
24756#endif
24757/* We use char because int might match the return type of a gcc2
24758   builtin and then its argument prototype would still apply.  */
24759char opendir ();
24760int
24761main ()
24762{
24763opendir ();
24764  ;
24765  return 0;
24766}
24767_ACEOF
24768rm -f conftest.$ac_objext conftest$ac_exeext
24769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24770  (eval $ac_link) 2>conftest.er1
24771  ac_status=$?
24772  grep -v '^ *+' conftest.er1 >conftest.err
24773  rm -f conftest.er1
24774  cat conftest.err >&5
24775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776  (exit $ac_status); } &&
24777	 { ac_try='test -z "$ac_c_werror_flag"
24778			 || test ! -s conftest.err'
24779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24780  (eval $ac_try) 2>&5
24781  ac_status=$?
24782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783  (exit $ac_status); }; } &&
24784	 { ac_try='test -s conftest$ac_exeext'
24785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786  (eval $ac_try) 2>&5
24787  ac_status=$?
24788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789  (exit $ac_status); }; }; then
24790  ac_cv_search_opendir="-l$ac_lib"
24791break
24792else
24793  echo "$as_me: failed program was:" >&5
24794sed 's/^/| /' conftest.$ac_ext >&5
24795
24796fi
24797rm -f conftest.err conftest.$ac_objext \
24798      conftest$ac_exeext conftest.$ac_ext
24799  done
24800fi
24801LIBS=$ac_func_search_save_LIBS
24802fi
24803echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24804echo "${ECHO_T}$ac_cv_search_opendir" >&6
24805if test "$ac_cv_search_opendir" != no; then
24806  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24807
24808fi
24809
24810fi
24811
24812
24813  # =================
24814  # AC_CHECK_HEADERS
24815  # =================
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
24837    setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
24838    sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
24839    utime.h sysexits.h
24840do
24841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24842if eval "test \"\${$as_ac_Header+set}\" = set"; then
24843  echo "$as_me:$LINENO: checking for $ac_header" >&5
24844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24845if eval "test \"\${$as_ac_Header+set}\" = set"; then
24846  echo $ECHO_N "(cached) $ECHO_C" >&6
24847fi
24848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24850else
24851  # Is the header compilable?
24852echo "$as_me:$LINENO: checking $ac_header usability" >&5
24853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24854cat >conftest.$ac_ext <<_ACEOF
24855/* confdefs.h.  */
24856_ACEOF
24857cat confdefs.h >>conftest.$ac_ext
24858cat >>conftest.$ac_ext <<_ACEOF
24859/* end confdefs.h.  */
24860$ac_includes_default
24861#include <$ac_header>
24862_ACEOF
24863rm -f conftest.$ac_objext
24864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24865  (eval $ac_compile) 2>conftest.er1
24866  ac_status=$?
24867  grep -v '^ *+' conftest.er1 >conftest.err
24868  rm -f conftest.er1
24869  cat conftest.err >&5
24870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871  (exit $ac_status); } &&
24872	 { ac_try='test -z "$ac_c_werror_flag"
24873			 || test ! -s conftest.err'
24874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875  (eval $ac_try) 2>&5
24876  ac_status=$?
24877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878  (exit $ac_status); }; } &&
24879	 { ac_try='test -s conftest.$ac_objext'
24880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881  (eval $ac_try) 2>&5
24882  ac_status=$?
24883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884  (exit $ac_status); }; }; then
24885  ac_header_compiler=yes
24886else
24887  echo "$as_me: failed program was:" >&5
24888sed 's/^/| /' conftest.$ac_ext >&5
24889
24890ac_header_compiler=no
24891fi
24892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24894echo "${ECHO_T}$ac_header_compiler" >&6
24895
24896# Is the header present?
24897echo "$as_me:$LINENO: checking $ac_header presence" >&5
24898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24899cat >conftest.$ac_ext <<_ACEOF
24900/* confdefs.h.  */
24901_ACEOF
24902cat confdefs.h >>conftest.$ac_ext
24903cat >>conftest.$ac_ext <<_ACEOF
24904/* end confdefs.h.  */
24905#include <$ac_header>
24906_ACEOF
24907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24908  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24909  ac_status=$?
24910  grep -v '^ *+' conftest.er1 >conftest.err
24911  rm -f conftest.er1
24912  cat conftest.err >&5
24913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914  (exit $ac_status); } >/dev/null; then
24915  if test -s conftest.err; then
24916    ac_cpp_err=$ac_c_preproc_warn_flag
24917    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24918  else
24919    ac_cpp_err=
24920  fi
24921else
24922  ac_cpp_err=yes
24923fi
24924if test -z "$ac_cpp_err"; then
24925  ac_header_preproc=yes
24926else
24927  echo "$as_me: failed program was:" >&5
24928sed 's/^/| /' conftest.$ac_ext >&5
24929
24930  ac_header_preproc=no
24931fi
24932rm -f conftest.err conftest.$ac_ext
24933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24934echo "${ECHO_T}$ac_header_preproc" >&6
24935
24936# So?  What about this header?
24937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24938  yes:no: )
24939    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24941    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24943    ac_header_preproc=yes
24944    ;;
24945  no:yes:* )
24946    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24948    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24949echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24950    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24952    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24953echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24954    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24956    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24958    (
24959      cat <<\_ASBOX
24960## ------------------------------------------ ##
24961## Report this to the AC_PACKAGE_NAME lists.  ##
24962## ------------------------------------------ ##
24963_ASBOX
24964    ) |
24965      sed "s/^/$as_me: WARNING:     /" >&2
24966    ;;
24967esac
24968echo "$as_me:$LINENO: checking for $ac_header" >&5
24969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24970if eval "test \"\${$as_ac_Header+set}\" = set"; then
24971  echo $ECHO_N "(cached) $ECHO_C" >&6
24972else
24973  eval "$as_ac_Header=\$ac_header_preproc"
24974fi
24975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24977
24978fi
24979if test `eval echo '${'$as_ac_Header'}'` = yes; then
24980  cat >>confdefs.h <<_ACEOF
24981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24982_ACEOF
24983
24984fi
24985
24986done
24987
24988
24989  # --------------------------------------------
24990  # Verify certain entries from AC_CHECK_HEADERS
24991  # --------------------------------------------
24992  for f in sys_types sys_mman sys_param sys_stat sys_wait \
24993           string errno stdlib memory setjmp
24994  do eval as_ac_var=\${ac_cv_header_${f}_h+set}
24995     test "${as_ac_var}" = set || \
24996       { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
24997echo "$as_me: error: You must have ${f}.h on your system" >&2;}
24998   { (exit 1); exit 1; }; }
24999  done
25000
25001  # ================================================
25002  # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
25003  # if varargs.h is present define HAVE_VARARGS_H.
25004  # ================================================
25005
25006
25007for ac_header in stdarg.h varargs.h
25008do
25009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25010if eval "test \"\${$as_ac_Header+set}\" = set"; then
25011  echo "$as_me:$LINENO: checking for $ac_header" >&5
25012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25013if eval "test \"\${$as_ac_Header+set}\" = set"; then
25014  echo $ECHO_N "(cached) $ECHO_C" >&6
25015fi
25016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25018else
25019  # Is the header compilable?
25020echo "$as_me:$LINENO: checking $ac_header usability" >&5
25021echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25022cat >conftest.$ac_ext <<_ACEOF
25023/* confdefs.h.  */
25024_ACEOF
25025cat confdefs.h >>conftest.$ac_ext
25026cat >>conftest.$ac_ext <<_ACEOF
25027/* end confdefs.h.  */
25028$ac_includes_default
25029#include <$ac_header>
25030_ACEOF
25031rm -f conftest.$ac_objext
25032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25033  (eval $ac_compile) 2>conftest.er1
25034  ac_status=$?
25035  grep -v '^ *+' conftest.er1 >conftest.err
25036  rm -f conftest.er1
25037  cat conftest.err >&5
25038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039  (exit $ac_status); } &&
25040	 { ac_try='test -z "$ac_c_werror_flag"
25041			 || test ! -s conftest.err'
25042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043  (eval $ac_try) 2>&5
25044  ac_status=$?
25045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046  (exit $ac_status); }; } &&
25047	 { ac_try='test -s conftest.$ac_objext'
25048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049  (eval $ac_try) 2>&5
25050  ac_status=$?
25051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052  (exit $ac_status); }; }; then
25053  ac_header_compiler=yes
25054else
25055  echo "$as_me: failed program was:" >&5
25056sed 's/^/| /' conftest.$ac_ext >&5
25057
25058ac_header_compiler=no
25059fi
25060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25061echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25062echo "${ECHO_T}$ac_header_compiler" >&6
25063
25064# Is the header present?
25065echo "$as_me:$LINENO: checking $ac_header presence" >&5
25066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25067cat >conftest.$ac_ext <<_ACEOF
25068/* confdefs.h.  */
25069_ACEOF
25070cat confdefs.h >>conftest.$ac_ext
25071cat >>conftest.$ac_ext <<_ACEOF
25072/* end confdefs.h.  */
25073#include <$ac_header>
25074_ACEOF
25075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25076  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25077  ac_status=$?
25078  grep -v '^ *+' conftest.er1 >conftest.err
25079  rm -f conftest.er1
25080  cat conftest.err >&5
25081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082  (exit $ac_status); } >/dev/null; then
25083  if test -s conftest.err; then
25084    ac_cpp_err=$ac_c_preproc_warn_flag
25085    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25086  else
25087    ac_cpp_err=
25088  fi
25089else
25090  ac_cpp_err=yes
25091fi
25092if test -z "$ac_cpp_err"; then
25093  ac_header_preproc=yes
25094else
25095  echo "$as_me: failed program was:" >&5
25096sed 's/^/| /' conftest.$ac_ext >&5
25097
25098  ac_header_preproc=no
25099fi
25100rm -f conftest.err conftest.$ac_ext
25101echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25102echo "${ECHO_T}$ac_header_preproc" >&6
25103
25104# So?  What about this header?
25105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25106  yes:no: )
25107    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25109    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25111    ac_header_preproc=yes
25112    ;;
25113  no:yes:* )
25114    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25116    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25117echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25118    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25120    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25121echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25122    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25124    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25126    (
25127      cat <<\_ASBOX
25128## ------------------------------------------ ##
25129## Report this to the AC_PACKAGE_NAME lists.  ##
25130## ------------------------------------------ ##
25131_ASBOX
25132    ) |
25133      sed "s/^/$as_me: WARNING:     /" >&2
25134    ;;
25135esac
25136echo "$as_me:$LINENO: checking for $ac_header" >&5
25137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25138if eval "test \"\${$as_ac_Header+set}\" = set"; then
25139  echo $ECHO_N "(cached) $ECHO_C" >&6
25140else
25141  eval "$as_ac_Header=\$ac_header_preproc"
25142fi
25143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25144echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25145
25146fi
25147if test `eval echo '${'$as_ac_Header'}'` = yes; then
25148  cat >>confdefs.h <<_ACEOF
25149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25150_ACEOF
25151 break
25152fi
25153
25154done
25155
25156  if test `eval echo '${'$as_ac_Header'}'` != yes; then
25157    { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
25158echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
25159   { (exit 1); exit 1; }; }
25160  fi
25161
25162  # ================================================
25163  # Similarly for the string.h and strings.h headers
25164  # ================================================
25165
25166
25167for ac_header in string.h strings.h
25168do
25169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25170if eval "test \"\${$as_ac_Header+set}\" = set"; then
25171  echo "$as_me:$LINENO: checking for $ac_header" >&5
25172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25173if eval "test \"\${$as_ac_Header+set}\" = set"; then
25174  echo $ECHO_N "(cached) $ECHO_C" >&6
25175fi
25176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25178else
25179  # Is the header compilable?
25180echo "$as_me:$LINENO: checking $ac_header usability" >&5
25181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25182cat >conftest.$ac_ext <<_ACEOF
25183/* confdefs.h.  */
25184_ACEOF
25185cat confdefs.h >>conftest.$ac_ext
25186cat >>conftest.$ac_ext <<_ACEOF
25187/* end confdefs.h.  */
25188$ac_includes_default
25189#include <$ac_header>
25190_ACEOF
25191rm -f conftest.$ac_objext
25192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25193  (eval $ac_compile) 2>conftest.er1
25194  ac_status=$?
25195  grep -v '^ *+' conftest.er1 >conftest.err
25196  rm -f conftest.er1
25197  cat conftest.err >&5
25198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199  (exit $ac_status); } &&
25200	 { ac_try='test -z "$ac_c_werror_flag"
25201			 || test ! -s conftest.err'
25202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203  (eval $ac_try) 2>&5
25204  ac_status=$?
25205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206  (exit $ac_status); }; } &&
25207	 { ac_try='test -s conftest.$ac_objext'
25208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209  (eval $ac_try) 2>&5
25210  ac_status=$?
25211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212  (exit $ac_status); }; }; then
25213  ac_header_compiler=yes
25214else
25215  echo "$as_me: failed program was:" >&5
25216sed 's/^/| /' conftest.$ac_ext >&5
25217
25218ac_header_compiler=no
25219fi
25220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25221echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25222echo "${ECHO_T}$ac_header_compiler" >&6
25223
25224# Is the header present?
25225echo "$as_me:$LINENO: checking $ac_header presence" >&5
25226echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25227cat >conftest.$ac_ext <<_ACEOF
25228/* confdefs.h.  */
25229_ACEOF
25230cat confdefs.h >>conftest.$ac_ext
25231cat >>conftest.$ac_ext <<_ACEOF
25232/* end confdefs.h.  */
25233#include <$ac_header>
25234_ACEOF
25235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25236  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25237  ac_status=$?
25238  grep -v '^ *+' conftest.er1 >conftest.err
25239  rm -f conftest.er1
25240  cat conftest.err >&5
25241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242  (exit $ac_status); } >/dev/null; then
25243  if test -s conftest.err; then
25244    ac_cpp_err=$ac_c_preproc_warn_flag
25245    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25246  else
25247    ac_cpp_err=
25248  fi
25249else
25250  ac_cpp_err=yes
25251fi
25252if test -z "$ac_cpp_err"; then
25253  ac_header_preproc=yes
25254else
25255  echo "$as_me: failed program was:" >&5
25256sed 's/^/| /' conftest.$ac_ext >&5
25257
25258  ac_header_preproc=no
25259fi
25260rm -f conftest.err conftest.$ac_ext
25261echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25262echo "${ECHO_T}$ac_header_preproc" >&6
25263
25264# So?  What about this header?
25265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25266  yes:no: )
25267    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25268echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25269    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25270echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25271    ac_header_preproc=yes
25272    ;;
25273  no:yes:* )
25274    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25276    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25277echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25278    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25279echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25280    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25281echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25282    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25284    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25285echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25286    (
25287      cat <<\_ASBOX
25288## ------------------------------------------ ##
25289## Report this to the AC_PACKAGE_NAME lists.  ##
25290## ------------------------------------------ ##
25291_ASBOX
25292    ) |
25293      sed "s/^/$as_me: WARNING:     /" >&2
25294    ;;
25295esac
25296echo "$as_me:$LINENO: checking for $ac_header" >&5
25297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25298if eval "test \"\${$as_ac_Header+set}\" = set"; then
25299  echo $ECHO_N "(cached) $ECHO_C" >&6
25300else
25301  eval "$as_ac_Header=\$ac_header_preproc"
25302fi
25303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25305
25306fi
25307if test `eval echo '${'$as_ac_Header'}'` = yes; then
25308  cat >>confdefs.h <<_ACEOF
25309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25310_ACEOF
25311 break
25312fi
25313
25314done
25315
25316  if test `eval echo '${'$as_ac_Header'}'` != yes; then
25317    { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
25318echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
25319   { (exit 1); exit 1; }; }
25320  fi
25321
25322  # =====================
25323  # ...and limits headers
25324  # =====================
25325
25326
25327
25328for ac_header in limits.h sys/limits.h values.h
25329do
25330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25331if eval "test \"\${$as_ac_Header+set}\" = set"; then
25332  echo "$as_me:$LINENO: checking for $ac_header" >&5
25333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25334if eval "test \"\${$as_ac_Header+set}\" = set"; then
25335  echo $ECHO_N "(cached) $ECHO_C" >&6
25336fi
25337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25339else
25340  # Is the header compilable?
25341echo "$as_me:$LINENO: checking $ac_header usability" >&5
25342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25343cat >conftest.$ac_ext <<_ACEOF
25344/* confdefs.h.  */
25345_ACEOF
25346cat confdefs.h >>conftest.$ac_ext
25347cat >>conftest.$ac_ext <<_ACEOF
25348/* end confdefs.h.  */
25349$ac_includes_default
25350#include <$ac_header>
25351_ACEOF
25352rm -f conftest.$ac_objext
25353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25354  (eval $ac_compile) 2>conftest.er1
25355  ac_status=$?
25356  grep -v '^ *+' conftest.er1 >conftest.err
25357  rm -f conftest.er1
25358  cat conftest.err >&5
25359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360  (exit $ac_status); } &&
25361	 { ac_try='test -z "$ac_c_werror_flag"
25362			 || test ! -s conftest.err'
25363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25364  (eval $ac_try) 2>&5
25365  ac_status=$?
25366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367  (exit $ac_status); }; } &&
25368	 { ac_try='test -s conftest.$ac_objext'
25369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370  (eval $ac_try) 2>&5
25371  ac_status=$?
25372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373  (exit $ac_status); }; }; then
25374  ac_header_compiler=yes
25375else
25376  echo "$as_me: failed program was:" >&5
25377sed 's/^/| /' conftest.$ac_ext >&5
25378
25379ac_header_compiler=no
25380fi
25381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25382echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25383echo "${ECHO_T}$ac_header_compiler" >&6
25384
25385# Is the header present?
25386echo "$as_me:$LINENO: checking $ac_header presence" >&5
25387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25388cat >conftest.$ac_ext <<_ACEOF
25389/* confdefs.h.  */
25390_ACEOF
25391cat confdefs.h >>conftest.$ac_ext
25392cat >>conftest.$ac_ext <<_ACEOF
25393/* end confdefs.h.  */
25394#include <$ac_header>
25395_ACEOF
25396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25397  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25398  ac_status=$?
25399  grep -v '^ *+' conftest.er1 >conftest.err
25400  rm -f conftest.er1
25401  cat conftest.err >&5
25402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403  (exit $ac_status); } >/dev/null; then
25404  if test -s conftest.err; then
25405    ac_cpp_err=$ac_c_preproc_warn_flag
25406    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25407  else
25408    ac_cpp_err=
25409  fi
25410else
25411  ac_cpp_err=yes
25412fi
25413if test -z "$ac_cpp_err"; then
25414  ac_header_preproc=yes
25415else
25416  echo "$as_me: failed program was:" >&5
25417sed 's/^/| /' conftest.$ac_ext >&5
25418
25419  ac_header_preproc=no
25420fi
25421rm -f conftest.err conftest.$ac_ext
25422echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25423echo "${ECHO_T}$ac_header_preproc" >&6
25424
25425# So?  What about this header?
25426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25427  yes:no: )
25428    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25430    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25432    ac_header_preproc=yes
25433    ;;
25434  no:yes:* )
25435    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25437    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25438echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25439    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25441    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25442echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25443    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25445    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25447    (
25448      cat <<\_ASBOX
25449## ------------------------------------------ ##
25450## Report this to the AC_PACKAGE_NAME lists.  ##
25451## ------------------------------------------ ##
25452_ASBOX
25453    ) |
25454      sed "s/^/$as_me: WARNING:     /" >&2
25455    ;;
25456esac
25457echo "$as_me:$LINENO: checking for $ac_header" >&5
25458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25459if eval "test \"\${$as_ac_Header+set}\" = set"; then
25460  echo $ECHO_N "(cached) $ECHO_C" >&6
25461else
25462  eval "$as_ac_Header=\$ac_header_preproc"
25463fi
25464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25466
25467fi
25468if test `eval echo '${'$as_ac_Header'}'` = yes; then
25469  cat >>confdefs.h <<_ACEOF
25470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25471_ACEOF
25472 break
25473fi
25474
25475done
25476
25477  if test `eval echo '${'$as_ac_Header'}'` != yes; then
25478    { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
25479echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
25480   { (exit 1); exit 1; }; }
25481  fi
25482
25483  # ========================
25484  # ...and int types headers
25485  # ========================
25486
25487
25488for ac_header in stdint.h inttypes.h
25489do
25490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25491if eval "test \"\${$as_ac_Header+set}\" = set"; then
25492  echo "$as_me:$LINENO: checking for $ac_header" >&5
25493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25494if eval "test \"\${$as_ac_Header+set}\" = set"; then
25495  echo $ECHO_N "(cached) $ECHO_C" >&6
25496fi
25497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25499else
25500  # Is the header compilable?
25501echo "$as_me:$LINENO: checking $ac_header usability" >&5
25502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25503cat >conftest.$ac_ext <<_ACEOF
25504/* confdefs.h.  */
25505_ACEOF
25506cat confdefs.h >>conftest.$ac_ext
25507cat >>conftest.$ac_ext <<_ACEOF
25508/* end confdefs.h.  */
25509$ac_includes_default
25510#include <$ac_header>
25511_ACEOF
25512rm -f conftest.$ac_objext
25513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25514  (eval $ac_compile) 2>conftest.er1
25515  ac_status=$?
25516  grep -v '^ *+' conftest.er1 >conftest.err
25517  rm -f conftest.er1
25518  cat conftest.err >&5
25519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520  (exit $ac_status); } &&
25521	 { ac_try='test -z "$ac_c_werror_flag"
25522			 || test ! -s conftest.err'
25523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524  (eval $ac_try) 2>&5
25525  ac_status=$?
25526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527  (exit $ac_status); }; } &&
25528	 { ac_try='test -s conftest.$ac_objext'
25529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530  (eval $ac_try) 2>&5
25531  ac_status=$?
25532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533  (exit $ac_status); }; }; then
25534  ac_header_compiler=yes
25535else
25536  echo "$as_me: failed program was:" >&5
25537sed 's/^/| /' conftest.$ac_ext >&5
25538
25539ac_header_compiler=no
25540fi
25541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25543echo "${ECHO_T}$ac_header_compiler" >&6
25544
25545# Is the header present?
25546echo "$as_me:$LINENO: checking $ac_header presence" >&5
25547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25548cat >conftest.$ac_ext <<_ACEOF
25549/* confdefs.h.  */
25550_ACEOF
25551cat confdefs.h >>conftest.$ac_ext
25552cat >>conftest.$ac_ext <<_ACEOF
25553/* end confdefs.h.  */
25554#include <$ac_header>
25555_ACEOF
25556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25557  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25558  ac_status=$?
25559  grep -v '^ *+' conftest.er1 >conftest.err
25560  rm -f conftest.er1
25561  cat conftest.err >&5
25562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563  (exit $ac_status); } >/dev/null; then
25564  if test -s conftest.err; then
25565    ac_cpp_err=$ac_c_preproc_warn_flag
25566    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25567  else
25568    ac_cpp_err=
25569  fi
25570else
25571  ac_cpp_err=yes
25572fi
25573if test -z "$ac_cpp_err"; then
25574  ac_header_preproc=yes
25575else
25576  echo "$as_me: failed program was:" >&5
25577sed 's/^/| /' conftest.$ac_ext >&5
25578
25579  ac_header_preproc=no
25580fi
25581rm -f conftest.err conftest.$ac_ext
25582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25583echo "${ECHO_T}$ac_header_preproc" >&6
25584
25585# So?  What about this header?
25586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25587  yes:no: )
25588    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25590    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25592    ac_header_preproc=yes
25593    ;;
25594  no:yes:* )
25595    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25597    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25598echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25599    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25601    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25602echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25603    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25605    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25607    (
25608      cat <<\_ASBOX
25609## ------------------------------------------ ##
25610## Report this to the AC_PACKAGE_NAME lists.  ##
25611## ------------------------------------------ ##
25612_ASBOX
25613    ) |
25614      sed "s/^/$as_me: WARNING:     /" >&2
25615    ;;
25616esac
25617echo "$as_me:$LINENO: checking for $ac_header" >&5
25618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25619if eval "test \"\${$as_ac_Header+set}\" = set"; then
25620  echo $ECHO_N "(cached) $ECHO_C" >&6
25621else
25622  eval "$as_ac_Header=\$ac_header_preproc"
25623fi
25624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25626
25627fi
25628if test `eval echo '${'$as_ac_Header'}'` = yes; then
25629  cat >>confdefs.h <<_ACEOF
25630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25631_ACEOF
25632 break
25633fi
25634
25635done
25636
25637  echo "$as_me:$LINENO: checking for int8_t" >&5
25638echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
25639if test "${ac_cv_type_int8_t+set}" = set; then
25640  echo $ECHO_N "(cached) $ECHO_C" >&6
25641else
25642  cat >conftest.$ac_ext <<_ACEOF
25643/* confdefs.h.  */
25644_ACEOF
25645cat confdefs.h >>conftest.$ac_ext
25646cat >>conftest.$ac_ext <<_ACEOF
25647/* end confdefs.h.  */
25648$ac_includes_default
25649int
25650main ()
25651{
25652if ((int8_t *) 0)
25653  return 0;
25654if (sizeof (int8_t))
25655  return 0;
25656  ;
25657  return 0;
25658}
25659_ACEOF
25660rm -f conftest.$ac_objext
25661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25662  (eval $ac_compile) 2>conftest.er1
25663  ac_status=$?
25664  grep -v '^ *+' conftest.er1 >conftest.err
25665  rm -f conftest.er1
25666  cat conftest.err >&5
25667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668  (exit $ac_status); } &&
25669	 { ac_try='test -z "$ac_c_werror_flag"
25670			 || test ! -s conftest.err'
25671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672  (eval $ac_try) 2>&5
25673  ac_status=$?
25674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675  (exit $ac_status); }; } &&
25676	 { ac_try='test -s conftest.$ac_objext'
25677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25678  (eval $ac_try) 2>&5
25679  ac_status=$?
25680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681  (exit $ac_status); }; }; then
25682  ac_cv_type_int8_t=yes
25683else
25684  echo "$as_me: failed program was:" >&5
25685sed 's/^/| /' conftest.$ac_ext >&5
25686
25687ac_cv_type_int8_t=no
25688fi
25689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25690fi
25691echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
25692echo "${ECHO_T}$ac_cv_type_int8_t" >&6
25693if test $ac_cv_type_int8_t = yes; then
25694
25695cat >>confdefs.h <<_ACEOF
25696#define HAVE_INT8_T 1
25697_ACEOF
25698
25699
25700fi
25701echo "$as_me:$LINENO: checking for uint8_t" >&5
25702echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
25703if test "${ac_cv_type_uint8_t+set}" = set; then
25704  echo $ECHO_N "(cached) $ECHO_C" >&6
25705else
25706  cat >conftest.$ac_ext <<_ACEOF
25707/* confdefs.h.  */
25708_ACEOF
25709cat confdefs.h >>conftest.$ac_ext
25710cat >>conftest.$ac_ext <<_ACEOF
25711/* end confdefs.h.  */
25712$ac_includes_default
25713int
25714main ()
25715{
25716if ((uint8_t *) 0)
25717  return 0;
25718if (sizeof (uint8_t))
25719  return 0;
25720  ;
25721  return 0;
25722}
25723_ACEOF
25724rm -f conftest.$ac_objext
25725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25726  (eval $ac_compile) 2>conftest.er1
25727  ac_status=$?
25728  grep -v '^ *+' conftest.er1 >conftest.err
25729  rm -f conftest.er1
25730  cat conftest.err >&5
25731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732  (exit $ac_status); } &&
25733	 { ac_try='test -z "$ac_c_werror_flag"
25734			 || test ! -s conftest.err'
25735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736  (eval $ac_try) 2>&5
25737  ac_status=$?
25738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739  (exit $ac_status); }; } &&
25740	 { ac_try='test -s conftest.$ac_objext'
25741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742  (eval $ac_try) 2>&5
25743  ac_status=$?
25744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745  (exit $ac_status); }; }; then
25746  ac_cv_type_uint8_t=yes
25747else
25748  echo "$as_me: failed program was:" >&5
25749sed 's/^/| /' conftest.$ac_ext >&5
25750
25751ac_cv_type_uint8_t=no
25752fi
25753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25754fi
25755echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
25756echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
25757if test $ac_cv_type_uint8_t = yes; then
25758
25759cat >>confdefs.h <<_ACEOF
25760#define HAVE_UINT8_T 1
25761_ACEOF
25762
25763
25764fi
25765echo "$as_me:$LINENO: checking for int16_t" >&5
25766echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
25767if test "${ac_cv_type_int16_t+set}" = set; then
25768  echo $ECHO_N "(cached) $ECHO_C" >&6
25769else
25770  cat >conftest.$ac_ext <<_ACEOF
25771/* confdefs.h.  */
25772_ACEOF
25773cat confdefs.h >>conftest.$ac_ext
25774cat >>conftest.$ac_ext <<_ACEOF
25775/* end confdefs.h.  */
25776$ac_includes_default
25777int
25778main ()
25779{
25780if ((int16_t *) 0)
25781  return 0;
25782if (sizeof (int16_t))
25783  return 0;
25784  ;
25785  return 0;
25786}
25787_ACEOF
25788rm -f conftest.$ac_objext
25789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25790  (eval $ac_compile) 2>conftest.er1
25791  ac_status=$?
25792  grep -v '^ *+' conftest.er1 >conftest.err
25793  rm -f conftest.er1
25794  cat conftest.err >&5
25795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796  (exit $ac_status); } &&
25797	 { ac_try='test -z "$ac_c_werror_flag"
25798			 || test ! -s conftest.err'
25799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800  (eval $ac_try) 2>&5
25801  ac_status=$?
25802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803  (exit $ac_status); }; } &&
25804	 { ac_try='test -s conftest.$ac_objext'
25805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806  (eval $ac_try) 2>&5
25807  ac_status=$?
25808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809  (exit $ac_status); }; }; then
25810  ac_cv_type_int16_t=yes
25811else
25812  echo "$as_me: failed program was:" >&5
25813sed 's/^/| /' conftest.$ac_ext >&5
25814
25815ac_cv_type_int16_t=no
25816fi
25817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25818fi
25819echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
25820echo "${ECHO_T}$ac_cv_type_int16_t" >&6
25821if test $ac_cv_type_int16_t = yes; then
25822
25823cat >>confdefs.h <<_ACEOF
25824#define HAVE_INT16_T 1
25825_ACEOF
25826
25827
25828fi
25829echo "$as_me:$LINENO: checking for uint16_t" >&5
25830echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
25831if test "${ac_cv_type_uint16_t+set}" = set; then
25832  echo $ECHO_N "(cached) $ECHO_C" >&6
25833else
25834  cat >conftest.$ac_ext <<_ACEOF
25835/* confdefs.h.  */
25836_ACEOF
25837cat confdefs.h >>conftest.$ac_ext
25838cat >>conftest.$ac_ext <<_ACEOF
25839/* end confdefs.h.  */
25840$ac_includes_default
25841int
25842main ()
25843{
25844if ((uint16_t *) 0)
25845  return 0;
25846if (sizeof (uint16_t))
25847  return 0;
25848  ;
25849  return 0;
25850}
25851_ACEOF
25852rm -f conftest.$ac_objext
25853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25854  (eval $ac_compile) 2>conftest.er1
25855  ac_status=$?
25856  grep -v '^ *+' conftest.er1 >conftest.err
25857  rm -f conftest.er1
25858  cat conftest.err >&5
25859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860  (exit $ac_status); } &&
25861	 { ac_try='test -z "$ac_c_werror_flag"
25862			 || test ! -s conftest.err'
25863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25864  (eval $ac_try) 2>&5
25865  ac_status=$?
25866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867  (exit $ac_status); }; } &&
25868	 { ac_try='test -s conftest.$ac_objext'
25869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870  (eval $ac_try) 2>&5
25871  ac_status=$?
25872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873  (exit $ac_status); }; }; then
25874  ac_cv_type_uint16_t=yes
25875else
25876  echo "$as_me: failed program was:" >&5
25877sed 's/^/| /' conftest.$ac_ext >&5
25878
25879ac_cv_type_uint16_t=no
25880fi
25881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25882fi
25883echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
25884echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
25885if test $ac_cv_type_uint16_t = yes; then
25886
25887cat >>confdefs.h <<_ACEOF
25888#define HAVE_UINT16_T 1
25889_ACEOF
25890
25891
25892fi
25893echo "$as_me:$LINENO: checking for int32_t" >&5
25894echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
25895if test "${ac_cv_type_int32_t+set}" = set; then
25896  echo $ECHO_N "(cached) $ECHO_C" >&6
25897else
25898  cat >conftest.$ac_ext <<_ACEOF
25899/* confdefs.h.  */
25900_ACEOF
25901cat confdefs.h >>conftest.$ac_ext
25902cat >>conftest.$ac_ext <<_ACEOF
25903/* end confdefs.h.  */
25904$ac_includes_default
25905int
25906main ()
25907{
25908if ((int32_t *) 0)
25909  return 0;
25910if (sizeof (int32_t))
25911  return 0;
25912  ;
25913  return 0;
25914}
25915_ACEOF
25916rm -f conftest.$ac_objext
25917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25918  (eval $ac_compile) 2>conftest.er1
25919  ac_status=$?
25920  grep -v '^ *+' conftest.er1 >conftest.err
25921  rm -f conftest.er1
25922  cat conftest.err >&5
25923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924  (exit $ac_status); } &&
25925	 { ac_try='test -z "$ac_c_werror_flag"
25926			 || test ! -s conftest.err'
25927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25928  (eval $ac_try) 2>&5
25929  ac_status=$?
25930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931  (exit $ac_status); }; } &&
25932	 { ac_try='test -s conftest.$ac_objext'
25933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934  (eval $ac_try) 2>&5
25935  ac_status=$?
25936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937  (exit $ac_status); }; }; then
25938  ac_cv_type_int32_t=yes
25939else
25940  echo "$as_me: failed program was:" >&5
25941sed 's/^/| /' conftest.$ac_ext >&5
25942
25943ac_cv_type_int32_t=no
25944fi
25945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25946fi
25947echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
25948echo "${ECHO_T}$ac_cv_type_int32_t" >&6
25949if test $ac_cv_type_int32_t = yes; then
25950
25951cat >>confdefs.h <<_ACEOF
25952#define HAVE_INT32_T 1
25953_ACEOF
25954
25955
25956fi
25957echo "$as_me:$LINENO: checking for uint32_t" >&5
25958echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
25959if test "${ac_cv_type_uint32_t+set}" = set; then
25960  echo $ECHO_N "(cached) $ECHO_C" >&6
25961else
25962  cat >conftest.$ac_ext <<_ACEOF
25963/* confdefs.h.  */
25964_ACEOF
25965cat confdefs.h >>conftest.$ac_ext
25966cat >>conftest.$ac_ext <<_ACEOF
25967/* end confdefs.h.  */
25968$ac_includes_default
25969int
25970main ()
25971{
25972if ((uint32_t *) 0)
25973  return 0;
25974if (sizeof (uint32_t))
25975  return 0;
25976  ;
25977  return 0;
25978}
25979_ACEOF
25980rm -f conftest.$ac_objext
25981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25982  (eval $ac_compile) 2>conftest.er1
25983  ac_status=$?
25984  grep -v '^ *+' conftest.er1 >conftest.err
25985  rm -f conftest.er1
25986  cat conftest.err >&5
25987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988  (exit $ac_status); } &&
25989	 { ac_try='test -z "$ac_c_werror_flag"
25990			 || test ! -s conftest.err'
25991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992  (eval $ac_try) 2>&5
25993  ac_status=$?
25994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995  (exit $ac_status); }; } &&
25996	 { ac_try='test -s conftest.$ac_objext'
25997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998  (eval $ac_try) 2>&5
25999  ac_status=$?
26000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001  (exit $ac_status); }; }; then
26002  ac_cv_type_uint32_t=yes
26003else
26004  echo "$as_me: failed program was:" >&5
26005sed 's/^/| /' conftest.$ac_ext >&5
26006
26007ac_cv_type_uint32_t=no
26008fi
26009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26010fi
26011echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
26012echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
26013if test $ac_cv_type_uint32_t = yes; then
26014
26015cat >>confdefs.h <<_ACEOF
26016#define HAVE_UINT32_T 1
26017_ACEOF
26018
26019
26020fi
26021echo "$as_me:$LINENO: checking for intptr_t" >&5
26022echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
26023if test "${ac_cv_type_intptr_t+set}" = set; then
26024  echo $ECHO_N "(cached) $ECHO_C" >&6
26025else
26026  cat >conftest.$ac_ext <<_ACEOF
26027/* confdefs.h.  */
26028_ACEOF
26029cat confdefs.h >>conftest.$ac_ext
26030cat >>conftest.$ac_ext <<_ACEOF
26031/* end confdefs.h.  */
26032$ac_includes_default
26033int
26034main ()
26035{
26036if ((intptr_t *) 0)
26037  return 0;
26038if (sizeof (intptr_t))
26039  return 0;
26040  ;
26041  return 0;
26042}
26043_ACEOF
26044rm -f conftest.$ac_objext
26045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26046  (eval $ac_compile) 2>conftest.er1
26047  ac_status=$?
26048  grep -v '^ *+' conftest.er1 >conftest.err
26049  rm -f conftest.er1
26050  cat conftest.err >&5
26051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052  (exit $ac_status); } &&
26053	 { ac_try='test -z "$ac_c_werror_flag"
26054			 || test ! -s conftest.err'
26055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056  (eval $ac_try) 2>&5
26057  ac_status=$?
26058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059  (exit $ac_status); }; } &&
26060	 { ac_try='test -s conftest.$ac_objext'
26061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062  (eval $ac_try) 2>&5
26063  ac_status=$?
26064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065  (exit $ac_status); }; }; then
26066  ac_cv_type_intptr_t=yes
26067else
26068  echo "$as_me: failed program was:" >&5
26069sed 's/^/| /' conftest.$ac_ext >&5
26070
26071ac_cv_type_intptr_t=no
26072fi
26073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26074fi
26075echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
26076echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
26077if test $ac_cv_type_intptr_t = yes; then
26078
26079cat >>confdefs.h <<_ACEOF
26080#define HAVE_INTPTR_T 1
26081_ACEOF
26082
26083
26084fi
26085echo "$as_me:$LINENO: checking for uint_t" >&5
26086echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
26087if test "${ac_cv_type_uint_t+set}" = set; then
26088  echo $ECHO_N "(cached) $ECHO_C" >&6
26089else
26090  cat >conftest.$ac_ext <<_ACEOF
26091/* confdefs.h.  */
26092_ACEOF
26093cat confdefs.h >>conftest.$ac_ext
26094cat >>conftest.$ac_ext <<_ACEOF
26095/* end confdefs.h.  */
26096$ac_includes_default
26097int
26098main ()
26099{
26100if ((uint_t *) 0)
26101  return 0;
26102if (sizeof (uint_t))
26103  return 0;
26104  ;
26105  return 0;
26106}
26107_ACEOF
26108rm -f conftest.$ac_objext
26109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26110  (eval $ac_compile) 2>conftest.er1
26111  ac_status=$?
26112  grep -v '^ *+' conftest.er1 >conftest.err
26113  rm -f conftest.er1
26114  cat conftest.err >&5
26115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116  (exit $ac_status); } &&
26117	 { ac_try='test -z "$ac_c_werror_flag"
26118			 || test ! -s conftest.err'
26119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120  (eval $ac_try) 2>&5
26121  ac_status=$?
26122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123  (exit $ac_status); }; } &&
26124	 { ac_try='test -s conftest.$ac_objext'
26125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26126  (eval $ac_try) 2>&5
26127  ac_status=$?
26128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129  (exit $ac_status); }; }; then
26130  ac_cv_type_uint_t=yes
26131else
26132  echo "$as_me: failed program was:" >&5
26133sed 's/^/| /' conftest.$ac_ext >&5
26134
26135ac_cv_type_uint_t=no
26136fi
26137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26138fi
26139echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
26140echo "${ECHO_T}$ac_cv_type_uint_t" >&6
26141if test $ac_cv_type_uint_t = yes; then
26142
26143cat >>confdefs.h <<_ACEOF
26144#define HAVE_UINT_T 1
26145_ACEOF
26146
26147
26148fi
26149
26150
26151  # ====================
26152  # uintptr type & sizes
26153  # ====================
26154  echo "$as_me:$LINENO: checking for uintptr_t" >&5
26155echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
26156if test "${ac_cv_type_uintptr_t+set}" = set; then
26157  echo $ECHO_N "(cached) $ECHO_C" >&6
26158else
26159  cat >conftest.$ac_ext <<_ACEOF
26160/* confdefs.h.  */
26161_ACEOF
26162cat confdefs.h >>conftest.$ac_ext
26163cat >>conftest.$ac_ext <<_ACEOF
26164/* end confdefs.h.  */
26165$ac_includes_default
26166int
26167main ()
26168{
26169if ((uintptr_t *) 0)
26170  return 0;
26171if (sizeof (uintptr_t))
26172  return 0;
26173  ;
26174  return 0;
26175}
26176_ACEOF
26177rm -f conftest.$ac_objext
26178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26179  (eval $ac_compile) 2>conftest.er1
26180  ac_status=$?
26181  grep -v '^ *+' conftest.er1 >conftest.err
26182  rm -f conftest.er1
26183  cat conftest.err >&5
26184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185  (exit $ac_status); } &&
26186	 { ac_try='test -z "$ac_c_werror_flag"
26187			 || test ! -s conftest.err'
26188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26189  (eval $ac_try) 2>&5
26190  ac_status=$?
26191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192  (exit $ac_status); }; } &&
26193	 { ac_try='test -s conftest.$ac_objext'
26194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195  (eval $ac_try) 2>&5
26196  ac_status=$?
26197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198  (exit $ac_status); }; }; then
26199  ac_cv_type_uintptr_t=yes
26200else
26201  echo "$as_me: failed program was:" >&5
26202sed 's/^/| /' conftest.$ac_ext >&5
26203
26204ac_cv_type_uintptr_t=no
26205fi
26206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26207fi
26208echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
26209echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
26210if test $ac_cv_type_uintptr_t = yes; then
26211
26212cat >>confdefs.h <<_ACEOF
26213#define HAVE_UINTPTR_T 1
26214_ACEOF
26215
26216
26217else
26218
26219cat >>confdefs.h <<\_ACEOF
26220#define uintptr_t unsigned long
26221_ACEOF
26222
26223fi
26224
26225  echo "$as_me:$LINENO: checking for char*" >&5
26226echo $ECHO_N "checking for char*... $ECHO_C" >&6
26227if test "${ac_cv_type_charp+set}" = set; then
26228  echo $ECHO_N "(cached) $ECHO_C" >&6
26229else
26230  cat >conftest.$ac_ext <<_ACEOF
26231/* confdefs.h.  */
26232_ACEOF
26233cat confdefs.h >>conftest.$ac_ext
26234cat >>conftest.$ac_ext <<_ACEOF
26235/* end confdefs.h.  */
26236$ac_includes_default
26237int
26238main ()
26239{
26240if ((char* *) 0)
26241  return 0;
26242if (sizeof (char*))
26243  return 0;
26244  ;
26245  return 0;
26246}
26247_ACEOF
26248rm -f conftest.$ac_objext
26249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26250  (eval $ac_compile) 2>conftest.er1
26251  ac_status=$?
26252  grep -v '^ *+' conftest.er1 >conftest.err
26253  rm -f conftest.er1
26254  cat conftest.err >&5
26255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256  (exit $ac_status); } &&
26257	 { ac_try='test -z "$ac_c_werror_flag"
26258			 || test ! -s conftest.err'
26259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260  (eval $ac_try) 2>&5
26261  ac_status=$?
26262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263  (exit $ac_status); }; } &&
26264	 { ac_try='test -s conftest.$ac_objext'
26265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266  (eval $ac_try) 2>&5
26267  ac_status=$?
26268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269  (exit $ac_status); }; }; then
26270  ac_cv_type_charp=yes
26271else
26272  echo "$as_me: failed program was:" >&5
26273sed 's/^/| /' conftest.$ac_ext >&5
26274
26275ac_cv_type_charp=no
26276fi
26277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26278fi
26279echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
26280echo "${ECHO_T}$ac_cv_type_charp" >&6
26281
26282echo "$as_me:$LINENO: checking size of char*" >&5
26283echo $ECHO_N "checking size of char*... $ECHO_C" >&6
26284if test "${ac_cv_sizeof_charp+set}" = set; then
26285  echo $ECHO_N "(cached) $ECHO_C" >&6
26286else
26287  if test "$ac_cv_type_charp" = yes; then
26288  # The cast to unsigned long works around a bug in the HP C Compiler
26289  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26290  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26291  # This bug is HP SR number 8606223364.
26292  if test "$cross_compiling" = yes; then
26293  # Depending upon the size, compute the lo and hi bounds.
26294cat >conftest.$ac_ext <<_ACEOF
26295/* confdefs.h.  */
26296_ACEOF
26297cat confdefs.h >>conftest.$ac_ext
26298cat >>conftest.$ac_ext <<_ACEOF
26299/* end confdefs.h.  */
26300$ac_includes_default
26301int
26302main ()
26303{
26304static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
26305test_array [0] = 0
26306
26307  ;
26308  return 0;
26309}
26310_ACEOF
26311rm -f conftest.$ac_objext
26312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26313  (eval $ac_compile) 2>conftest.er1
26314  ac_status=$?
26315  grep -v '^ *+' conftest.er1 >conftest.err
26316  rm -f conftest.er1
26317  cat conftest.err >&5
26318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319  (exit $ac_status); } &&
26320	 { ac_try='test -z "$ac_c_werror_flag"
26321			 || test ! -s conftest.err'
26322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26323  (eval $ac_try) 2>&5
26324  ac_status=$?
26325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326  (exit $ac_status); }; } &&
26327	 { ac_try='test -s conftest.$ac_objext'
26328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26329  (eval $ac_try) 2>&5
26330  ac_status=$?
26331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332  (exit $ac_status); }; }; then
26333  ac_lo=0 ac_mid=0
26334  while :; do
26335    cat >conftest.$ac_ext <<_ACEOF
26336/* confdefs.h.  */
26337_ACEOF
26338cat confdefs.h >>conftest.$ac_ext
26339cat >>conftest.$ac_ext <<_ACEOF
26340/* end confdefs.h.  */
26341$ac_includes_default
26342int
26343main ()
26344{
26345static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
26346test_array [0] = 0
26347
26348  ;
26349  return 0;
26350}
26351_ACEOF
26352rm -f conftest.$ac_objext
26353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26354  (eval $ac_compile) 2>conftest.er1
26355  ac_status=$?
26356  grep -v '^ *+' conftest.er1 >conftest.err
26357  rm -f conftest.er1
26358  cat conftest.err >&5
26359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360  (exit $ac_status); } &&
26361	 { ac_try='test -z "$ac_c_werror_flag"
26362			 || test ! -s conftest.err'
26363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364  (eval $ac_try) 2>&5
26365  ac_status=$?
26366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367  (exit $ac_status); }; } &&
26368	 { ac_try='test -s conftest.$ac_objext'
26369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370  (eval $ac_try) 2>&5
26371  ac_status=$?
26372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373  (exit $ac_status); }; }; then
26374  ac_hi=$ac_mid; break
26375else
26376  echo "$as_me: failed program was:" >&5
26377sed 's/^/| /' conftest.$ac_ext >&5
26378
26379ac_lo=`expr $ac_mid + 1`
26380		    if test $ac_lo -le $ac_mid; then
26381		      ac_lo= ac_hi=
26382		      break
26383		    fi
26384		    ac_mid=`expr 2 '*' $ac_mid + 1`
26385fi
26386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26387  done
26388else
26389  echo "$as_me: failed program was:" >&5
26390sed 's/^/| /' conftest.$ac_ext >&5
26391
26392cat >conftest.$ac_ext <<_ACEOF
26393/* confdefs.h.  */
26394_ACEOF
26395cat confdefs.h >>conftest.$ac_ext
26396cat >>conftest.$ac_ext <<_ACEOF
26397/* end confdefs.h.  */
26398$ac_includes_default
26399int
26400main ()
26401{
26402static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
26403test_array [0] = 0
26404
26405  ;
26406  return 0;
26407}
26408_ACEOF
26409rm -f conftest.$ac_objext
26410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26411  (eval $ac_compile) 2>conftest.er1
26412  ac_status=$?
26413  grep -v '^ *+' conftest.er1 >conftest.err
26414  rm -f conftest.er1
26415  cat conftest.err >&5
26416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417  (exit $ac_status); } &&
26418	 { ac_try='test -z "$ac_c_werror_flag"
26419			 || test ! -s conftest.err'
26420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421  (eval $ac_try) 2>&5
26422  ac_status=$?
26423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424  (exit $ac_status); }; } &&
26425	 { ac_try='test -s conftest.$ac_objext'
26426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427  (eval $ac_try) 2>&5
26428  ac_status=$?
26429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430  (exit $ac_status); }; }; then
26431  ac_hi=-1 ac_mid=-1
26432  while :; do
26433    cat >conftest.$ac_ext <<_ACEOF
26434/* confdefs.h.  */
26435_ACEOF
26436cat confdefs.h >>conftest.$ac_ext
26437cat >>conftest.$ac_ext <<_ACEOF
26438/* end confdefs.h.  */
26439$ac_includes_default
26440int
26441main ()
26442{
26443static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
26444test_array [0] = 0
26445
26446  ;
26447  return 0;
26448}
26449_ACEOF
26450rm -f conftest.$ac_objext
26451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26452  (eval $ac_compile) 2>conftest.er1
26453  ac_status=$?
26454  grep -v '^ *+' conftest.er1 >conftest.err
26455  rm -f conftest.er1
26456  cat conftest.err >&5
26457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458  (exit $ac_status); } &&
26459	 { ac_try='test -z "$ac_c_werror_flag"
26460			 || test ! -s conftest.err'
26461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26462  (eval $ac_try) 2>&5
26463  ac_status=$?
26464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465  (exit $ac_status); }; } &&
26466	 { ac_try='test -s conftest.$ac_objext'
26467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468  (eval $ac_try) 2>&5
26469  ac_status=$?
26470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471  (exit $ac_status); }; }; then
26472  ac_lo=$ac_mid; break
26473else
26474  echo "$as_me: failed program was:" >&5
26475sed 's/^/| /' conftest.$ac_ext >&5
26476
26477ac_hi=`expr '(' $ac_mid ')' - 1`
26478		       if test $ac_mid -le $ac_hi; then
26479			 ac_lo= ac_hi=
26480			 break
26481		       fi
26482		       ac_mid=`expr 2 '*' $ac_mid`
26483fi
26484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26485  done
26486else
26487  echo "$as_me: failed program was:" >&5
26488sed 's/^/| /' conftest.$ac_ext >&5
26489
26490ac_lo= ac_hi=
26491fi
26492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26493fi
26494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26495# Binary search between lo and hi bounds.
26496while test "x$ac_lo" != "x$ac_hi"; do
26497  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26498  cat >conftest.$ac_ext <<_ACEOF
26499/* confdefs.h.  */
26500_ACEOF
26501cat confdefs.h >>conftest.$ac_ext
26502cat >>conftest.$ac_ext <<_ACEOF
26503/* end confdefs.h.  */
26504$ac_includes_default
26505int
26506main ()
26507{
26508static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
26509test_array [0] = 0
26510
26511  ;
26512  return 0;
26513}
26514_ACEOF
26515rm -f conftest.$ac_objext
26516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26517  (eval $ac_compile) 2>conftest.er1
26518  ac_status=$?
26519  grep -v '^ *+' conftest.er1 >conftest.err
26520  rm -f conftest.er1
26521  cat conftest.err >&5
26522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523  (exit $ac_status); } &&
26524	 { ac_try='test -z "$ac_c_werror_flag"
26525			 || test ! -s conftest.err'
26526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26527  (eval $ac_try) 2>&5
26528  ac_status=$?
26529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530  (exit $ac_status); }; } &&
26531	 { ac_try='test -s conftest.$ac_objext'
26532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533  (eval $ac_try) 2>&5
26534  ac_status=$?
26535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536  (exit $ac_status); }; }; then
26537  ac_hi=$ac_mid
26538else
26539  echo "$as_me: failed program was:" >&5
26540sed 's/^/| /' conftest.$ac_ext >&5
26541
26542ac_lo=`expr '(' $ac_mid ')' + 1`
26543fi
26544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26545done
26546case $ac_lo in
26547?*) ac_cv_sizeof_charp=$ac_lo;;
26548'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
26549See \`config.log' for more details." >&5
26550echo "$as_me: error: cannot compute sizeof (char*), 77
26551See \`config.log' for more details." >&2;}
26552   { (exit 1); exit 1; }; } ;;
26553esac
26554else
26555  if test "$cross_compiling" = yes; then
26556  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26557See \`config.log' for more details." >&5
26558echo "$as_me: error: cannot run test program while cross compiling
26559See \`config.log' for more details." >&2;}
26560   { (exit 1); exit 1; }; }
26561else
26562  cat >conftest.$ac_ext <<_ACEOF
26563/* confdefs.h.  */
26564_ACEOF
26565cat confdefs.h >>conftest.$ac_ext
26566cat >>conftest.$ac_ext <<_ACEOF
26567/* end confdefs.h.  */
26568$ac_includes_default
26569long longval () { return (long) (sizeof (char*)); }
26570unsigned long ulongval () { return (long) (sizeof (char*)); }
26571#include <stdio.h>
26572#include <stdlib.h>
26573int
26574main ()
26575{
26576
26577  FILE *f = fopen ("conftest.val", "w");
26578  if (! f)
26579    exit (1);
26580  if (((long) (sizeof (char*))) < 0)
26581    {
26582      long i = longval ();
26583      if (i != ((long) (sizeof (char*))))
26584	exit (1);
26585      fprintf (f, "%ld\n", i);
26586    }
26587  else
26588    {
26589      unsigned long i = ulongval ();
26590      if (i != ((long) (sizeof (char*))))
26591	exit (1);
26592      fprintf (f, "%lu\n", i);
26593    }
26594  exit (ferror (f) || fclose (f) != 0);
26595
26596  ;
26597  return 0;
26598}
26599_ACEOF
26600rm -f conftest$ac_exeext
26601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26602  (eval $ac_link) 2>&5
26603  ac_status=$?
26604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607  (eval $ac_try) 2>&5
26608  ac_status=$?
26609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610  (exit $ac_status); }; }; then
26611  ac_cv_sizeof_charp=`cat conftest.val`
26612else
26613  echo "$as_me: program exited with status $ac_status" >&5
26614echo "$as_me: failed program was:" >&5
26615sed 's/^/| /' conftest.$ac_ext >&5
26616
26617( exit $ac_status )
26618{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
26619See \`config.log' for more details." >&5
26620echo "$as_me: error: cannot compute sizeof (char*), 77
26621See \`config.log' for more details." >&2;}
26622   { (exit 1); exit 1; }; }
26623fi
26624rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26625fi
26626fi
26627rm -f conftest.val
26628else
26629  ac_cv_sizeof_charp=0
26630fi
26631fi
26632echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
26633echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
26634cat >>confdefs.h <<_ACEOF
26635#define SIZEOF_CHARP $ac_cv_sizeof_charp
26636_ACEOF
26637
26638
26639  echo "$as_me:$LINENO: checking for int" >&5
26640echo $ECHO_N "checking for int... $ECHO_C" >&6
26641if test "${ac_cv_type_int+set}" = set; then
26642  echo $ECHO_N "(cached) $ECHO_C" >&6
26643else
26644  cat >conftest.$ac_ext <<_ACEOF
26645/* confdefs.h.  */
26646_ACEOF
26647cat confdefs.h >>conftest.$ac_ext
26648cat >>conftest.$ac_ext <<_ACEOF
26649/* end confdefs.h.  */
26650$ac_includes_default
26651int
26652main ()
26653{
26654if ((int *) 0)
26655  return 0;
26656if (sizeof (int))
26657  return 0;
26658  ;
26659  return 0;
26660}
26661_ACEOF
26662rm -f conftest.$ac_objext
26663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26664  (eval $ac_compile) 2>conftest.er1
26665  ac_status=$?
26666  grep -v '^ *+' conftest.er1 >conftest.err
26667  rm -f conftest.er1
26668  cat conftest.err >&5
26669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670  (exit $ac_status); } &&
26671	 { ac_try='test -z "$ac_c_werror_flag"
26672			 || test ! -s conftest.err'
26673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674  (eval $ac_try) 2>&5
26675  ac_status=$?
26676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677  (exit $ac_status); }; } &&
26678	 { ac_try='test -s conftest.$ac_objext'
26679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680  (eval $ac_try) 2>&5
26681  ac_status=$?
26682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683  (exit $ac_status); }; }; then
26684  ac_cv_type_int=yes
26685else
26686  echo "$as_me: failed program was:" >&5
26687sed 's/^/| /' conftest.$ac_ext >&5
26688
26689ac_cv_type_int=no
26690fi
26691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26692fi
26693echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26694echo "${ECHO_T}$ac_cv_type_int" >&6
26695
26696echo "$as_me:$LINENO: checking size of int" >&5
26697echo $ECHO_N "checking size of int... $ECHO_C" >&6
26698if test "${ac_cv_sizeof_int+set}" = set; then
26699  echo $ECHO_N "(cached) $ECHO_C" >&6
26700else
26701  if test "$ac_cv_type_int" = yes; then
26702  # The cast to unsigned long works around a bug in the HP C Compiler
26703  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26704  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26705  # This bug is HP SR number 8606223364.
26706  if test "$cross_compiling" = yes; then
26707  # Depending upon the size, compute the lo and hi bounds.
26708cat >conftest.$ac_ext <<_ACEOF
26709/* confdefs.h.  */
26710_ACEOF
26711cat confdefs.h >>conftest.$ac_ext
26712cat >>conftest.$ac_ext <<_ACEOF
26713/* end confdefs.h.  */
26714$ac_includes_default
26715int
26716main ()
26717{
26718static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26719test_array [0] = 0
26720
26721  ;
26722  return 0;
26723}
26724_ACEOF
26725rm -f conftest.$ac_objext
26726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26727  (eval $ac_compile) 2>conftest.er1
26728  ac_status=$?
26729  grep -v '^ *+' conftest.er1 >conftest.err
26730  rm -f conftest.er1
26731  cat conftest.err >&5
26732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733  (exit $ac_status); } &&
26734	 { ac_try='test -z "$ac_c_werror_flag"
26735			 || test ! -s conftest.err'
26736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737  (eval $ac_try) 2>&5
26738  ac_status=$?
26739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740  (exit $ac_status); }; } &&
26741	 { ac_try='test -s conftest.$ac_objext'
26742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743  (eval $ac_try) 2>&5
26744  ac_status=$?
26745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746  (exit $ac_status); }; }; then
26747  ac_lo=0 ac_mid=0
26748  while :; do
26749    cat >conftest.$ac_ext <<_ACEOF
26750/* confdefs.h.  */
26751_ACEOF
26752cat confdefs.h >>conftest.$ac_ext
26753cat >>conftest.$ac_ext <<_ACEOF
26754/* end confdefs.h.  */
26755$ac_includes_default
26756int
26757main ()
26758{
26759static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26760test_array [0] = 0
26761
26762  ;
26763  return 0;
26764}
26765_ACEOF
26766rm -f conftest.$ac_objext
26767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26768  (eval $ac_compile) 2>conftest.er1
26769  ac_status=$?
26770  grep -v '^ *+' conftest.er1 >conftest.err
26771  rm -f conftest.er1
26772  cat conftest.err >&5
26773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774  (exit $ac_status); } &&
26775	 { ac_try='test -z "$ac_c_werror_flag"
26776			 || test ! -s conftest.err'
26777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778  (eval $ac_try) 2>&5
26779  ac_status=$?
26780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781  (exit $ac_status); }; } &&
26782	 { ac_try='test -s conftest.$ac_objext'
26783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784  (eval $ac_try) 2>&5
26785  ac_status=$?
26786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787  (exit $ac_status); }; }; then
26788  ac_hi=$ac_mid; break
26789else
26790  echo "$as_me: failed program was:" >&5
26791sed 's/^/| /' conftest.$ac_ext >&5
26792
26793ac_lo=`expr $ac_mid + 1`
26794		    if test $ac_lo -le $ac_mid; then
26795		      ac_lo= ac_hi=
26796		      break
26797		    fi
26798		    ac_mid=`expr 2 '*' $ac_mid + 1`
26799fi
26800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26801  done
26802else
26803  echo "$as_me: failed program was:" >&5
26804sed 's/^/| /' conftest.$ac_ext >&5
26805
26806cat >conftest.$ac_ext <<_ACEOF
26807/* confdefs.h.  */
26808_ACEOF
26809cat confdefs.h >>conftest.$ac_ext
26810cat >>conftest.$ac_ext <<_ACEOF
26811/* end confdefs.h.  */
26812$ac_includes_default
26813int
26814main ()
26815{
26816static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26817test_array [0] = 0
26818
26819  ;
26820  return 0;
26821}
26822_ACEOF
26823rm -f conftest.$ac_objext
26824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26825  (eval $ac_compile) 2>conftest.er1
26826  ac_status=$?
26827  grep -v '^ *+' conftest.er1 >conftest.err
26828  rm -f conftest.er1
26829  cat conftest.err >&5
26830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831  (exit $ac_status); } &&
26832	 { ac_try='test -z "$ac_c_werror_flag"
26833			 || test ! -s conftest.err'
26834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835  (eval $ac_try) 2>&5
26836  ac_status=$?
26837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838  (exit $ac_status); }; } &&
26839	 { ac_try='test -s conftest.$ac_objext'
26840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26841  (eval $ac_try) 2>&5
26842  ac_status=$?
26843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844  (exit $ac_status); }; }; then
26845  ac_hi=-1 ac_mid=-1
26846  while :; do
26847    cat >conftest.$ac_ext <<_ACEOF
26848/* confdefs.h.  */
26849_ACEOF
26850cat confdefs.h >>conftest.$ac_ext
26851cat >>conftest.$ac_ext <<_ACEOF
26852/* end confdefs.h.  */
26853$ac_includes_default
26854int
26855main ()
26856{
26857static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26858test_array [0] = 0
26859
26860  ;
26861  return 0;
26862}
26863_ACEOF
26864rm -f conftest.$ac_objext
26865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26866  (eval $ac_compile) 2>conftest.er1
26867  ac_status=$?
26868  grep -v '^ *+' conftest.er1 >conftest.err
26869  rm -f conftest.er1
26870  cat conftest.err >&5
26871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872  (exit $ac_status); } &&
26873	 { ac_try='test -z "$ac_c_werror_flag"
26874			 || test ! -s conftest.err'
26875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876  (eval $ac_try) 2>&5
26877  ac_status=$?
26878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879  (exit $ac_status); }; } &&
26880	 { ac_try='test -s conftest.$ac_objext'
26881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882  (eval $ac_try) 2>&5
26883  ac_status=$?
26884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885  (exit $ac_status); }; }; then
26886  ac_lo=$ac_mid; break
26887else
26888  echo "$as_me: failed program was:" >&5
26889sed 's/^/| /' conftest.$ac_ext >&5
26890
26891ac_hi=`expr '(' $ac_mid ')' - 1`
26892		       if test $ac_mid -le $ac_hi; then
26893			 ac_lo= ac_hi=
26894			 break
26895		       fi
26896		       ac_mid=`expr 2 '*' $ac_mid`
26897fi
26898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26899  done
26900else
26901  echo "$as_me: failed program was:" >&5
26902sed 's/^/| /' conftest.$ac_ext >&5
26903
26904ac_lo= ac_hi=
26905fi
26906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26907fi
26908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26909# Binary search between lo and hi bounds.
26910while test "x$ac_lo" != "x$ac_hi"; do
26911  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26912  cat >conftest.$ac_ext <<_ACEOF
26913/* confdefs.h.  */
26914_ACEOF
26915cat confdefs.h >>conftest.$ac_ext
26916cat >>conftest.$ac_ext <<_ACEOF
26917/* end confdefs.h.  */
26918$ac_includes_default
26919int
26920main ()
26921{
26922static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26923test_array [0] = 0
26924
26925  ;
26926  return 0;
26927}
26928_ACEOF
26929rm -f conftest.$ac_objext
26930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26931  (eval $ac_compile) 2>conftest.er1
26932  ac_status=$?
26933  grep -v '^ *+' conftest.er1 >conftest.err
26934  rm -f conftest.er1
26935  cat conftest.err >&5
26936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937  (exit $ac_status); } &&
26938	 { ac_try='test -z "$ac_c_werror_flag"
26939			 || test ! -s conftest.err'
26940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941  (eval $ac_try) 2>&5
26942  ac_status=$?
26943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944  (exit $ac_status); }; } &&
26945	 { ac_try='test -s conftest.$ac_objext'
26946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26947  (eval $ac_try) 2>&5
26948  ac_status=$?
26949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950  (exit $ac_status); }; }; then
26951  ac_hi=$ac_mid
26952else
26953  echo "$as_me: failed program was:" >&5
26954sed 's/^/| /' conftest.$ac_ext >&5
26955
26956ac_lo=`expr '(' $ac_mid ')' + 1`
26957fi
26958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26959done
26960case $ac_lo in
26961?*) ac_cv_sizeof_int=$ac_lo;;
26962'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26963See \`config.log' for more details." >&5
26964echo "$as_me: error: cannot compute sizeof (int), 77
26965See \`config.log' for more details." >&2;}
26966   { (exit 1); exit 1; }; } ;;
26967esac
26968else
26969  if test "$cross_compiling" = yes; then
26970  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26971See \`config.log' for more details." >&5
26972echo "$as_me: error: cannot run test program while cross compiling
26973See \`config.log' for more details." >&2;}
26974   { (exit 1); exit 1; }; }
26975else
26976  cat >conftest.$ac_ext <<_ACEOF
26977/* confdefs.h.  */
26978_ACEOF
26979cat confdefs.h >>conftest.$ac_ext
26980cat >>conftest.$ac_ext <<_ACEOF
26981/* end confdefs.h.  */
26982$ac_includes_default
26983long longval () { return (long) (sizeof (int)); }
26984unsigned long ulongval () { return (long) (sizeof (int)); }
26985#include <stdio.h>
26986#include <stdlib.h>
26987int
26988main ()
26989{
26990
26991  FILE *f = fopen ("conftest.val", "w");
26992  if (! f)
26993    exit (1);
26994  if (((long) (sizeof (int))) < 0)
26995    {
26996      long i = longval ();
26997      if (i != ((long) (sizeof (int))))
26998	exit (1);
26999      fprintf (f, "%ld\n", i);
27000    }
27001  else
27002    {
27003      unsigned long i = ulongval ();
27004      if (i != ((long) (sizeof (int))))
27005	exit (1);
27006      fprintf (f, "%lu\n", i);
27007    }
27008  exit (ferror (f) || fclose (f) != 0);
27009
27010  ;
27011  return 0;
27012}
27013_ACEOF
27014rm -f conftest$ac_exeext
27015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27016  (eval $ac_link) 2>&5
27017  ac_status=$?
27018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021  (eval $ac_try) 2>&5
27022  ac_status=$?
27023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024  (exit $ac_status); }; }; then
27025  ac_cv_sizeof_int=`cat conftest.val`
27026else
27027  echo "$as_me: program exited with status $ac_status" >&5
27028echo "$as_me: failed program was:" >&5
27029sed 's/^/| /' conftest.$ac_ext >&5
27030
27031( exit $ac_status )
27032{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27033See \`config.log' for more details." >&5
27034echo "$as_me: error: cannot compute sizeof (int), 77
27035See \`config.log' for more details." >&2;}
27036   { (exit 1); exit 1; }; }
27037fi
27038rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27039fi
27040fi
27041rm -f conftest.val
27042else
27043  ac_cv_sizeof_int=0
27044fi
27045fi
27046echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27047echo "${ECHO_T}$ac_cv_sizeof_int" >&6
27048cat >>confdefs.h <<_ACEOF
27049#define SIZEOF_INT $ac_cv_sizeof_int
27050_ACEOF
27051
27052
27053  echo "$as_me:$LINENO: checking for long" >&5
27054echo $ECHO_N "checking for long... $ECHO_C" >&6
27055if test "${ac_cv_type_long+set}" = set; then
27056  echo $ECHO_N "(cached) $ECHO_C" >&6
27057else
27058  cat >conftest.$ac_ext <<_ACEOF
27059/* confdefs.h.  */
27060_ACEOF
27061cat confdefs.h >>conftest.$ac_ext
27062cat >>conftest.$ac_ext <<_ACEOF
27063/* end confdefs.h.  */
27064$ac_includes_default
27065int
27066main ()
27067{
27068if ((long *) 0)
27069  return 0;
27070if (sizeof (long))
27071  return 0;
27072  ;
27073  return 0;
27074}
27075_ACEOF
27076rm -f conftest.$ac_objext
27077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27078  (eval $ac_compile) 2>conftest.er1
27079  ac_status=$?
27080  grep -v '^ *+' conftest.er1 >conftest.err
27081  rm -f conftest.er1
27082  cat conftest.err >&5
27083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084  (exit $ac_status); } &&
27085	 { ac_try='test -z "$ac_c_werror_flag"
27086			 || test ! -s conftest.err'
27087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088  (eval $ac_try) 2>&5
27089  ac_status=$?
27090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091  (exit $ac_status); }; } &&
27092	 { ac_try='test -s conftest.$ac_objext'
27093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094  (eval $ac_try) 2>&5
27095  ac_status=$?
27096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097  (exit $ac_status); }; }; then
27098  ac_cv_type_long=yes
27099else
27100  echo "$as_me: failed program was:" >&5
27101sed 's/^/| /' conftest.$ac_ext >&5
27102
27103ac_cv_type_long=no
27104fi
27105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27106fi
27107echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27108echo "${ECHO_T}$ac_cv_type_long" >&6
27109
27110echo "$as_me:$LINENO: checking size of long" >&5
27111echo $ECHO_N "checking size of long... $ECHO_C" >&6
27112if test "${ac_cv_sizeof_long+set}" = set; then
27113  echo $ECHO_N "(cached) $ECHO_C" >&6
27114else
27115  if test "$ac_cv_type_long" = yes; then
27116  # The cast to unsigned long works around a bug in the HP C Compiler
27117  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27118  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27119  # This bug is HP SR number 8606223364.
27120  if test "$cross_compiling" = yes; then
27121  # Depending upon the size, compute the lo and hi bounds.
27122cat >conftest.$ac_ext <<_ACEOF
27123/* confdefs.h.  */
27124_ACEOF
27125cat confdefs.h >>conftest.$ac_ext
27126cat >>conftest.$ac_ext <<_ACEOF
27127/* end confdefs.h.  */
27128$ac_includes_default
27129int
27130main ()
27131{
27132static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
27133test_array [0] = 0
27134
27135  ;
27136  return 0;
27137}
27138_ACEOF
27139rm -f conftest.$ac_objext
27140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27141  (eval $ac_compile) 2>conftest.er1
27142  ac_status=$?
27143  grep -v '^ *+' conftest.er1 >conftest.err
27144  rm -f conftest.er1
27145  cat conftest.err >&5
27146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147  (exit $ac_status); } &&
27148	 { ac_try='test -z "$ac_c_werror_flag"
27149			 || test ! -s conftest.err'
27150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151  (eval $ac_try) 2>&5
27152  ac_status=$?
27153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154  (exit $ac_status); }; } &&
27155	 { ac_try='test -s conftest.$ac_objext'
27156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157  (eval $ac_try) 2>&5
27158  ac_status=$?
27159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160  (exit $ac_status); }; }; then
27161  ac_lo=0 ac_mid=0
27162  while :; do
27163    cat >conftest.$ac_ext <<_ACEOF
27164/* confdefs.h.  */
27165_ACEOF
27166cat confdefs.h >>conftest.$ac_ext
27167cat >>conftest.$ac_ext <<_ACEOF
27168/* end confdefs.h.  */
27169$ac_includes_default
27170int
27171main ()
27172{
27173static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27174test_array [0] = 0
27175
27176  ;
27177  return 0;
27178}
27179_ACEOF
27180rm -f conftest.$ac_objext
27181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182  (eval $ac_compile) 2>conftest.er1
27183  ac_status=$?
27184  grep -v '^ *+' conftest.er1 >conftest.err
27185  rm -f conftest.er1
27186  cat conftest.err >&5
27187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188  (exit $ac_status); } &&
27189	 { ac_try='test -z "$ac_c_werror_flag"
27190			 || test ! -s conftest.err'
27191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192  (eval $ac_try) 2>&5
27193  ac_status=$?
27194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195  (exit $ac_status); }; } &&
27196	 { ac_try='test -s conftest.$ac_objext'
27197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198  (eval $ac_try) 2>&5
27199  ac_status=$?
27200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201  (exit $ac_status); }; }; then
27202  ac_hi=$ac_mid; break
27203else
27204  echo "$as_me: failed program was:" >&5
27205sed 's/^/| /' conftest.$ac_ext >&5
27206
27207ac_lo=`expr $ac_mid + 1`
27208		    if test $ac_lo -le $ac_mid; then
27209		      ac_lo= ac_hi=
27210		      break
27211		    fi
27212		    ac_mid=`expr 2 '*' $ac_mid + 1`
27213fi
27214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27215  done
27216else
27217  echo "$as_me: failed program was:" >&5
27218sed 's/^/| /' conftest.$ac_ext >&5
27219
27220cat >conftest.$ac_ext <<_ACEOF
27221/* confdefs.h.  */
27222_ACEOF
27223cat confdefs.h >>conftest.$ac_ext
27224cat >>conftest.$ac_ext <<_ACEOF
27225/* end confdefs.h.  */
27226$ac_includes_default
27227int
27228main ()
27229{
27230static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
27231test_array [0] = 0
27232
27233  ;
27234  return 0;
27235}
27236_ACEOF
27237rm -f conftest.$ac_objext
27238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27239  (eval $ac_compile) 2>conftest.er1
27240  ac_status=$?
27241  grep -v '^ *+' conftest.er1 >conftest.err
27242  rm -f conftest.er1
27243  cat conftest.err >&5
27244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245  (exit $ac_status); } &&
27246	 { ac_try='test -z "$ac_c_werror_flag"
27247			 || test ! -s conftest.err'
27248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249  (eval $ac_try) 2>&5
27250  ac_status=$?
27251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252  (exit $ac_status); }; } &&
27253	 { ac_try='test -s conftest.$ac_objext'
27254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255  (eval $ac_try) 2>&5
27256  ac_status=$?
27257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258  (exit $ac_status); }; }; then
27259  ac_hi=-1 ac_mid=-1
27260  while :; do
27261    cat >conftest.$ac_ext <<_ACEOF
27262/* confdefs.h.  */
27263_ACEOF
27264cat confdefs.h >>conftest.$ac_ext
27265cat >>conftest.$ac_ext <<_ACEOF
27266/* end confdefs.h.  */
27267$ac_includes_default
27268int
27269main ()
27270{
27271static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
27272test_array [0] = 0
27273
27274  ;
27275  return 0;
27276}
27277_ACEOF
27278rm -f conftest.$ac_objext
27279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27280  (eval $ac_compile) 2>conftest.er1
27281  ac_status=$?
27282  grep -v '^ *+' conftest.er1 >conftest.err
27283  rm -f conftest.er1
27284  cat conftest.err >&5
27285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286  (exit $ac_status); } &&
27287	 { ac_try='test -z "$ac_c_werror_flag"
27288			 || test ! -s conftest.err'
27289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27290  (eval $ac_try) 2>&5
27291  ac_status=$?
27292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293  (exit $ac_status); }; } &&
27294	 { ac_try='test -s conftest.$ac_objext'
27295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27296  (eval $ac_try) 2>&5
27297  ac_status=$?
27298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299  (exit $ac_status); }; }; then
27300  ac_lo=$ac_mid; break
27301else
27302  echo "$as_me: failed program was:" >&5
27303sed 's/^/| /' conftest.$ac_ext >&5
27304
27305ac_hi=`expr '(' $ac_mid ')' - 1`
27306		       if test $ac_mid -le $ac_hi; then
27307			 ac_lo= ac_hi=
27308			 break
27309		       fi
27310		       ac_mid=`expr 2 '*' $ac_mid`
27311fi
27312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27313  done
27314else
27315  echo "$as_me: failed program was:" >&5
27316sed 's/^/| /' conftest.$ac_ext >&5
27317
27318ac_lo= ac_hi=
27319fi
27320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27321fi
27322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27323# Binary search between lo and hi bounds.
27324while test "x$ac_lo" != "x$ac_hi"; do
27325  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27326  cat >conftest.$ac_ext <<_ACEOF
27327/* confdefs.h.  */
27328_ACEOF
27329cat confdefs.h >>conftest.$ac_ext
27330cat >>conftest.$ac_ext <<_ACEOF
27331/* end confdefs.h.  */
27332$ac_includes_default
27333int
27334main ()
27335{
27336static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27337test_array [0] = 0
27338
27339  ;
27340  return 0;
27341}
27342_ACEOF
27343rm -f conftest.$ac_objext
27344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27345  (eval $ac_compile) 2>conftest.er1
27346  ac_status=$?
27347  grep -v '^ *+' conftest.er1 >conftest.err
27348  rm -f conftest.er1
27349  cat conftest.err >&5
27350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351  (exit $ac_status); } &&
27352	 { ac_try='test -z "$ac_c_werror_flag"
27353			 || test ! -s conftest.err'
27354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27355  (eval $ac_try) 2>&5
27356  ac_status=$?
27357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358  (exit $ac_status); }; } &&
27359	 { ac_try='test -s conftest.$ac_objext'
27360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361  (eval $ac_try) 2>&5
27362  ac_status=$?
27363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364  (exit $ac_status); }; }; then
27365  ac_hi=$ac_mid
27366else
27367  echo "$as_me: failed program was:" >&5
27368sed 's/^/| /' conftest.$ac_ext >&5
27369
27370ac_lo=`expr '(' $ac_mid ')' + 1`
27371fi
27372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27373done
27374case $ac_lo in
27375?*) ac_cv_sizeof_long=$ac_lo;;
27376'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27377See \`config.log' for more details." >&5
27378echo "$as_me: error: cannot compute sizeof (long), 77
27379See \`config.log' for more details." >&2;}
27380   { (exit 1); exit 1; }; } ;;
27381esac
27382else
27383  if test "$cross_compiling" = yes; then
27384  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27385See \`config.log' for more details." >&5
27386echo "$as_me: error: cannot run test program while cross compiling
27387See \`config.log' for more details." >&2;}
27388   { (exit 1); exit 1; }; }
27389else
27390  cat >conftest.$ac_ext <<_ACEOF
27391/* confdefs.h.  */
27392_ACEOF
27393cat confdefs.h >>conftest.$ac_ext
27394cat >>conftest.$ac_ext <<_ACEOF
27395/* end confdefs.h.  */
27396$ac_includes_default
27397long longval () { return (long) (sizeof (long)); }
27398unsigned long ulongval () { return (long) (sizeof (long)); }
27399#include <stdio.h>
27400#include <stdlib.h>
27401int
27402main ()
27403{
27404
27405  FILE *f = fopen ("conftest.val", "w");
27406  if (! f)
27407    exit (1);
27408  if (((long) (sizeof (long))) < 0)
27409    {
27410      long i = longval ();
27411      if (i != ((long) (sizeof (long))))
27412	exit (1);
27413      fprintf (f, "%ld\n", i);
27414    }
27415  else
27416    {
27417      unsigned long i = ulongval ();
27418      if (i != ((long) (sizeof (long))))
27419	exit (1);
27420      fprintf (f, "%lu\n", i);
27421    }
27422  exit (ferror (f) || fclose (f) != 0);
27423
27424  ;
27425  return 0;
27426}
27427_ACEOF
27428rm -f conftest$ac_exeext
27429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27430  (eval $ac_link) 2>&5
27431  ac_status=$?
27432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435  (eval $ac_try) 2>&5
27436  ac_status=$?
27437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438  (exit $ac_status); }; }; then
27439  ac_cv_sizeof_long=`cat conftest.val`
27440else
27441  echo "$as_me: program exited with status $ac_status" >&5
27442echo "$as_me: failed program was:" >&5
27443sed 's/^/| /' conftest.$ac_ext >&5
27444
27445( exit $ac_status )
27446{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27447See \`config.log' for more details." >&5
27448echo "$as_me: error: cannot compute sizeof (long), 77
27449See \`config.log' for more details." >&2;}
27450   { (exit 1); exit 1; }; }
27451fi
27452rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27453fi
27454fi
27455rm -f conftest.val
27456else
27457  ac_cv_sizeof_long=0
27458fi
27459fi
27460echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27461echo "${ECHO_T}$ac_cv_sizeof_long" >&6
27462cat >>confdefs.h <<_ACEOF
27463#define SIZEOF_LONG $ac_cv_sizeof_long
27464_ACEOF
27465
27466
27467  echo "$as_me:$LINENO: checking for short" >&5
27468echo $ECHO_N "checking for short... $ECHO_C" >&6
27469if test "${ac_cv_type_short+set}" = set; then
27470  echo $ECHO_N "(cached) $ECHO_C" >&6
27471else
27472  cat >conftest.$ac_ext <<_ACEOF
27473/* confdefs.h.  */
27474_ACEOF
27475cat confdefs.h >>conftest.$ac_ext
27476cat >>conftest.$ac_ext <<_ACEOF
27477/* end confdefs.h.  */
27478$ac_includes_default
27479int
27480main ()
27481{
27482if ((short *) 0)
27483  return 0;
27484if (sizeof (short))
27485  return 0;
27486  ;
27487  return 0;
27488}
27489_ACEOF
27490rm -f conftest.$ac_objext
27491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27492  (eval $ac_compile) 2>conftest.er1
27493  ac_status=$?
27494  grep -v '^ *+' conftest.er1 >conftest.err
27495  rm -f conftest.er1
27496  cat conftest.err >&5
27497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498  (exit $ac_status); } &&
27499	 { ac_try='test -z "$ac_c_werror_flag"
27500			 || test ! -s conftest.err'
27501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27502  (eval $ac_try) 2>&5
27503  ac_status=$?
27504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505  (exit $ac_status); }; } &&
27506	 { ac_try='test -s conftest.$ac_objext'
27507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27508  (eval $ac_try) 2>&5
27509  ac_status=$?
27510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511  (exit $ac_status); }; }; then
27512  ac_cv_type_short=yes
27513else
27514  echo "$as_me: failed program was:" >&5
27515sed 's/^/| /' conftest.$ac_ext >&5
27516
27517ac_cv_type_short=no
27518fi
27519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27520fi
27521echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27522echo "${ECHO_T}$ac_cv_type_short" >&6
27523
27524echo "$as_me:$LINENO: checking size of short" >&5
27525echo $ECHO_N "checking size of short... $ECHO_C" >&6
27526if test "${ac_cv_sizeof_short+set}" = set; then
27527  echo $ECHO_N "(cached) $ECHO_C" >&6
27528else
27529  if test "$ac_cv_type_short" = yes; then
27530  # The cast to unsigned long works around a bug in the HP C Compiler
27531  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27532  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27533  # This bug is HP SR number 8606223364.
27534  if test "$cross_compiling" = yes; then
27535  # Depending upon the size, compute the lo and hi bounds.
27536cat >conftest.$ac_ext <<_ACEOF
27537/* confdefs.h.  */
27538_ACEOF
27539cat confdefs.h >>conftest.$ac_ext
27540cat >>conftest.$ac_ext <<_ACEOF
27541/* end confdefs.h.  */
27542$ac_includes_default
27543int
27544main ()
27545{
27546static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
27547test_array [0] = 0
27548
27549  ;
27550  return 0;
27551}
27552_ACEOF
27553rm -f conftest.$ac_objext
27554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27555  (eval $ac_compile) 2>conftest.er1
27556  ac_status=$?
27557  grep -v '^ *+' conftest.er1 >conftest.err
27558  rm -f conftest.er1
27559  cat conftest.err >&5
27560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561  (exit $ac_status); } &&
27562	 { ac_try='test -z "$ac_c_werror_flag"
27563			 || test ! -s conftest.err'
27564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565  (eval $ac_try) 2>&5
27566  ac_status=$?
27567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568  (exit $ac_status); }; } &&
27569	 { ac_try='test -s conftest.$ac_objext'
27570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571  (eval $ac_try) 2>&5
27572  ac_status=$?
27573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574  (exit $ac_status); }; }; then
27575  ac_lo=0 ac_mid=0
27576  while :; do
27577    cat >conftest.$ac_ext <<_ACEOF
27578/* confdefs.h.  */
27579_ACEOF
27580cat confdefs.h >>conftest.$ac_ext
27581cat >>conftest.$ac_ext <<_ACEOF
27582/* end confdefs.h.  */
27583$ac_includes_default
27584int
27585main ()
27586{
27587static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27588test_array [0] = 0
27589
27590  ;
27591  return 0;
27592}
27593_ACEOF
27594rm -f conftest.$ac_objext
27595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27596  (eval $ac_compile) 2>conftest.er1
27597  ac_status=$?
27598  grep -v '^ *+' conftest.er1 >conftest.err
27599  rm -f conftest.er1
27600  cat conftest.err >&5
27601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602  (exit $ac_status); } &&
27603	 { ac_try='test -z "$ac_c_werror_flag"
27604			 || test ! -s conftest.err'
27605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606  (eval $ac_try) 2>&5
27607  ac_status=$?
27608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609  (exit $ac_status); }; } &&
27610	 { ac_try='test -s conftest.$ac_objext'
27611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612  (eval $ac_try) 2>&5
27613  ac_status=$?
27614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615  (exit $ac_status); }; }; then
27616  ac_hi=$ac_mid; break
27617else
27618  echo "$as_me: failed program was:" >&5
27619sed 's/^/| /' conftest.$ac_ext >&5
27620
27621ac_lo=`expr $ac_mid + 1`
27622		    if test $ac_lo -le $ac_mid; then
27623		      ac_lo= ac_hi=
27624		      break
27625		    fi
27626		    ac_mid=`expr 2 '*' $ac_mid + 1`
27627fi
27628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27629  done
27630else
27631  echo "$as_me: failed program was:" >&5
27632sed 's/^/| /' conftest.$ac_ext >&5
27633
27634cat >conftest.$ac_ext <<_ACEOF
27635/* confdefs.h.  */
27636_ACEOF
27637cat confdefs.h >>conftest.$ac_ext
27638cat >>conftest.$ac_ext <<_ACEOF
27639/* end confdefs.h.  */
27640$ac_includes_default
27641int
27642main ()
27643{
27644static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
27645test_array [0] = 0
27646
27647  ;
27648  return 0;
27649}
27650_ACEOF
27651rm -f conftest.$ac_objext
27652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27653  (eval $ac_compile) 2>conftest.er1
27654  ac_status=$?
27655  grep -v '^ *+' conftest.er1 >conftest.err
27656  rm -f conftest.er1
27657  cat conftest.err >&5
27658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659  (exit $ac_status); } &&
27660	 { ac_try='test -z "$ac_c_werror_flag"
27661			 || test ! -s conftest.err'
27662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27663  (eval $ac_try) 2>&5
27664  ac_status=$?
27665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666  (exit $ac_status); }; } &&
27667	 { ac_try='test -s conftest.$ac_objext'
27668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669  (eval $ac_try) 2>&5
27670  ac_status=$?
27671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672  (exit $ac_status); }; }; then
27673  ac_hi=-1 ac_mid=-1
27674  while :; do
27675    cat >conftest.$ac_ext <<_ACEOF
27676/* confdefs.h.  */
27677_ACEOF
27678cat confdefs.h >>conftest.$ac_ext
27679cat >>conftest.$ac_ext <<_ACEOF
27680/* end confdefs.h.  */
27681$ac_includes_default
27682int
27683main ()
27684{
27685static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
27686test_array [0] = 0
27687
27688  ;
27689  return 0;
27690}
27691_ACEOF
27692rm -f conftest.$ac_objext
27693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27694  (eval $ac_compile) 2>conftest.er1
27695  ac_status=$?
27696  grep -v '^ *+' conftest.er1 >conftest.err
27697  rm -f conftest.er1
27698  cat conftest.err >&5
27699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700  (exit $ac_status); } &&
27701	 { ac_try='test -z "$ac_c_werror_flag"
27702			 || test ! -s conftest.err'
27703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27704  (eval $ac_try) 2>&5
27705  ac_status=$?
27706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707  (exit $ac_status); }; } &&
27708	 { ac_try='test -s conftest.$ac_objext'
27709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27710  (eval $ac_try) 2>&5
27711  ac_status=$?
27712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713  (exit $ac_status); }; }; then
27714  ac_lo=$ac_mid; break
27715else
27716  echo "$as_me: failed program was:" >&5
27717sed 's/^/| /' conftest.$ac_ext >&5
27718
27719ac_hi=`expr '(' $ac_mid ')' - 1`
27720		       if test $ac_mid -le $ac_hi; then
27721			 ac_lo= ac_hi=
27722			 break
27723		       fi
27724		       ac_mid=`expr 2 '*' $ac_mid`
27725fi
27726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27727  done
27728else
27729  echo "$as_me: failed program was:" >&5
27730sed 's/^/| /' conftest.$ac_ext >&5
27731
27732ac_lo= ac_hi=
27733fi
27734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27735fi
27736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27737# Binary search between lo and hi bounds.
27738while test "x$ac_lo" != "x$ac_hi"; do
27739  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27740  cat >conftest.$ac_ext <<_ACEOF
27741/* confdefs.h.  */
27742_ACEOF
27743cat confdefs.h >>conftest.$ac_ext
27744cat >>conftest.$ac_ext <<_ACEOF
27745/* end confdefs.h.  */
27746$ac_includes_default
27747int
27748main ()
27749{
27750static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27751test_array [0] = 0
27752
27753  ;
27754  return 0;
27755}
27756_ACEOF
27757rm -f conftest.$ac_objext
27758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27759  (eval $ac_compile) 2>conftest.er1
27760  ac_status=$?
27761  grep -v '^ *+' conftest.er1 >conftest.err
27762  rm -f conftest.er1
27763  cat conftest.err >&5
27764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765  (exit $ac_status); } &&
27766	 { ac_try='test -z "$ac_c_werror_flag"
27767			 || test ! -s conftest.err'
27768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27769  (eval $ac_try) 2>&5
27770  ac_status=$?
27771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772  (exit $ac_status); }; } &&
27773	 { ac_try='test -s conftest.$ac_objext'
27774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27775  (eval $ac_try) 2>&5
27776  ac_status=$?
27777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778  (exit $ac_status); }; }; then
27779  ac_hi=$ac_mid
27780else
27781  echo "$as_me: failed program was:" >&5
27782sed 's/^/| /' conftest.$ac_ext >&5
27783
27784ac_lo=`expr '(' $ac_mid ')' + 1`
27785fi
27786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27787done
27788case $ac_lo in
27789?*) ac_cv_sizeof_short=$ac_lo;;
27790'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27791See \`config.log' for more details." >&5
27792echo "$as_me: error: cannot compute sizeof (short), 77
27793See \`config.log' for more details." >&2;}
27794   { (exit 1); exit 1; }; } ;;
27795esac
27796else
27797  if test "$cross_compiling" = yes; then
27798  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27799See \`config.log' for more details." >&5
27800echo "$as_me: error: cannot run test program while cross compiling
27801See \`config.log' for more details." >&2;}
27802   { (exit 1); exit 1; }; }
27803else
27804  cat >conftest.$ac_ext <<_ACEOF
27805/* confdefs.h.  */
27806_ACEOF
27807cat confdefs.h >>conftest.$ac_ext
27808cat >>conftest.$ac_ext <<_ACEOF
27809/* end confdefs.h.  */
27810$ac_includes_default
27811long longval () { return (long) (sizeof (short)); }
27812unsigned long ulongval () { return (long) (sizeof (short)); }
27813#include <stdio.h>
27814#include <stdlib.h>
27815int
27816main ()
27817{
27818
27819  FILE *f = fopen ("conftest.val", "w");
27820  if (! f)
27821    exit (1);
27822  if (((long) (sizeof (short))) < 0)
27823    {
27824      long i = longval ();
27825      if (i != ((long) (sizeof (short))))
27826	exit (1);
27827      fprintf (f, "%ld\n", i);
27828    }
27829  else
27830    {
27831      unsigned long i = ulongval ();
27832      if (i != ((long) (sizeof (short))))
27833	exit (1);
27834      fprintf (f, "%lu\n", i);
27835    }
27836  exit (ferror (f) || fclose (f) != 0);
27837
27838  ;
27839  return 0;
27840}
27841_ACEOF
27842rm -f conftest$ac_exeext
27843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27844  (eval $ac_link) 2>&5
27845  ac_status=$?
27846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27849  (eval $ac_try) 2>&5
27850  ac_status=$?
27851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852  (exit $ac_status); }; }; then
27853  ac_cv_sizeof_short=`cat conftest.val`
27854else
27855  echo "$as_me: program exited with status $ac_status" >&5
27856echo "$as_me: failed program was:" >&5
27857sed 's/^/| /' conftest.$ac_ext >&5
27858
27859( exit $ac_status )
27860{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27861See \`config.log' for more details." >&5
27862echo "$as_me: error: cannot compute sizeof (short), 77
27863See \`config.log' for more details." >&2;}
27864   { (exit 1); exit 1; }; }
27865fi
27866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27867fi
27868fi
27869rm -f conftest.val
27870else
27871  ac_cv_sizeof_short=0
27872fi
27873fi
27874echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27875echo "${ECHO_T}$ac_cv_sizeof_short" >&6
27876cat >>confdefs.h <<_ACEOF
27877#define SIZEOF_SHORT $ac_cv_sizeof_short
27878_ACEOF
27879
27880
27881
27882  # ----------------------------------------------------------------------
27883  # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
27884  # ----------------------------------------------------------------------
27885
27886echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
27887echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
27888if test "${ac_cv_lib_gen_pathfind+set}" = set; then
27889  echo $ECHO_N "(cached) $ECHO_C" >&6
27890else
27891  ac_check_lib_save_LIBS=$LIBS
27892LIBS="-lgen  $LIBS"
27893cat >conftest.$ac_ext <<_ACEOF
27894/* confdefs.h.  */
27895_ACEOF
27896cat confdefs.h >>conftest.$ac_ext
27897cat >>conftest.$ac_ext <<_ACEOF
27898/* end confdefs.h.  */
27899
27900/* Override any gcc2 internal prototype to avoid an error.  */
27901#ifdef __cplusplus
27902extern "C"
27903#endif
27904/* We use char because int might match the return type of a gcc2
27905   builtin and then its argument prototype would still apply.  */
27906char pathfind ();
27907int
27908main ()
27909{
27910pathfind ();
27911  ;
27912  return 0;
27913}
27914_ACEOF
27915rm -f conftest.$ac_objext conftest$ac_exeext
27916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27917  (eval $ac_link) 2>conftest.er1
27918  ac_status=$?
27919  grep -v '^ *+' conftest.er1 >conftest.err
27920  rm -f conftest.er1
27921  cat conftest.err >&5
27922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923  (exit $ac_status); } &&
27924	 { ac_try='test -z "$ac_c_werror_flag"
27925			 || test ! -s conftest.err'
27926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927  (eval $ac_try) 2>&5
27928  ac_status=$?
27929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930  (exit $ac_status); }; } &&
27931	 { ac_try='test -s conftest$ac_exeext'
27932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933  (eval $ac_try) 2>&5
27934  ac_status=$?
27935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936  (exit $ac_status); }; }; then
27937  ac_cv_lib_gen_pathfind=yes
27938else
27939  echo "$as_me: failed program was:" >&5
27940sed 's/^/| /' conftest.$ac_ext >&5
27941
27942ac_cv_lib_gen_pathfind=no
27943fi
27944rm -f conftest.err conftest.$ac_objext \
27945      conftest$ac_exeext conftest.$ac_ext
27946LIBS=$ac_check_lib_save_LIBS
27947fi
27948echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
27949echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
27950if test $ac_cv_lib_gen_pathfind = yes; then
27951  cat >>confdefs.h <<_ACEOF
27952#define HAVE_LIBGEN 1
27953_ACEOF
27954
27955  LIBS="-lgen $LIBS"
27956
27957fi
27958
27959
27960for ac_func in vprintf
27961do
27962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27963echo "$as_me:$LINENO: checking for $ac_func" >&5
27964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27965if eval "test \"\${$as_ac_var+set}\" = set"; then
27966  echo $ECHO_N "(cached) $ECHO_C" >&6
27967else
27968  cat >conftest.$ac_ext <<_ACEOF
27969/* confdefs.h.  */
27970_ACEOF
27971cat confdefs.h >>conftest.$ac_ext
27972cat >>conftest.$ac_ext <<_ACEOF
27973/* end confdefs.h.  */
27974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27975   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27976#define $ac_func innocuous_$ac_func
27977
27978/* System header to define __stub macros and hopefully few prototypes,
27979    which can conflict with char $ac_func (); below.
27980    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27981    <limits.h> exists even on freestanding compilers.  */
27982
27983#ifdef __STDC__
27984# include <limits.h>
27985#else
27986# include <assert.h>
27987#endif
27988
27989#undef $ac_func
27990
27991/* Override any gcc2 internal prototype to avoid an error.  */
27992#ifdef __cplusplus
27993extern "C"
27994{
27995#endif
27996/* We use char because int might match the return type of a gcc2
27997   builtin and then its argument prototype would still apply.  */
27998char $ac_func ();
27999/* The GNU C library defines this for functions which it implements
28000    to always fail with ENOSYS.  Some functions are actually named
28001    something starting with __ and the normal name is an alias.  */
28002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28003choke me
28004#else
28005char (*f) () = $ac_func;
28006#endif
28007#ifdef __cplusplus
28008}
28009#endif
28010
28011int
28012main ()
28013{
28014return f != $ac_func;
28015  ;
28016  return 0;
28017}
28018_ACEOF
28019rm -f conftest.$ac_objext conftest$ac_exeext
28020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28021  (eval $ac_link) 2>conftest.er1
28022  ac_status=$?
28023  grep -v '^ *+' conftest.er1 >conftest.err
28024  rm -f conftest.er1
28025  cat conftest.err >&5
28026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027  (exit $ac_status); } &&
28028	 { ac_try='test -z "$ac_c_werror_flag"
28029			 || test ! -s conftest.err'
28030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031  (eval $ac_try) 2>&5
28032  ac_status=$?
28033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034  (exit $ac_status); }; } &&
28035	 { ac_try='test -s conftest$ac_exeext'
28036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037  (eval $ac_try) 2>&5
28038  ac_status=$?
28039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040  (exit $ac_status); }; }; then
28041  eval "$as_ac_var=yes"
28042else
28043  echo "$as_me: failed program was:" >&5
28044sed 's/^/| /' conftest.$ac_ext >&5
28045
28046eval "$as_ac_var=no"
28047fi
28048rm -f conftest.err conftest.$ac_objext \
28049      conftest$ac_exeext conftest.$ac_ext
28050fi
28051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28052echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28053if test `eval echo '${'$as_ac_var'}'` = yes; then
28054  cat >>confdefs.h <<_ACEOF
28055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28056_ACEOF
28057
28058echo "$as_me:$LINENO: checking for _doprnt" >&5
28059echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28060if test "${ac_cv_func__doprnt+set}" = set; then
28061  echo $ECHO_N "(cached) $ECHO_C" >&6
28062else
28063  cat >conftest.$ac_ext <<_ACEOF
28064/* confdefs.h.  */
28065_ACEOF
28066cat confdefs.h >>conftest.$ac_ext
28067cat >>conftest.$ac_ext <<_ACEOF
28068/* end confdefs.h.  */
28069/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28070   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28071#define _doprnt innocuous__doprnt
28072
28073/* System header to define __stub macros and hopefully few prototypes,
28074    which can conflict with char _doprnt (); below.
28075    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28076    <limits.h> exists even on freestanding compilers.  */
28077
28078#ifdef __STDC__
28079# include <limits.h>
28080#else
28081# include <assert.h>
28082#endif
28083
28084#undef _doprnt
28085
28086/* Override any gcc2 internal prototype to avoid an error.  */
28087#ifdef __cplusplus
28088extern "C"
28089{
28090#endif
28091/* We use char because int might match the return type of a gcc2
28092   builtin and then its argument prototype would still apply.  */
28093char _doprnt ();
28094/* The GNU C library defines this for functions which it implements
28095    to always fail with ENOSYS.  Some functions are actually named
28096    something starting with __ and the normal name is an alias.  */
28097#if defined (__stub__doprnt) || defined (__stub____doprnt)
28098choke me
28099#else
28100char (*f) () = _doprnt;
28101#endif
28102#ifdef __cplusplus
28103}
28104#endif
28105
28106int
28107main ()
28108{
28109return f != _doprnt;
28110  ;
28111  return 0;
28112}
28113_ACEOF
28114rm -f conftest.$ac_objext conftest$ac_exeext
28115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28116  (eval $ac_link) 2>conftest.er1
28117  ac_status=$?
28118  grep -v '^ *+' conftest.er1 >conftest.err
28119  rm -f conftest.er1
28120  cat conftest.err >&5
28121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122  (exit $ac_status); } &&
28123	 { ac_try='test -z "$ac_c_werror_flag"
28124			 || test ! -s conftest.err'
28125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126  (eval $ac_try) 2>&5
28127  ac_status=$?
28128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129  (exit $ac_status); }; } &&
28130	 { ac_try='test -s conftest$ac_exeext'
28131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132  (eval $ac_try) 2>&5
28133  ac_status=$?
28134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135  (exit $ac_status); }; }; then
28136  ac_cv_func__doprnt=yes
28137else
28138  echo "$as_me: failed program was:" >&5
28139sed 's/^/| /' conftest.$ac_ext >&5
28140
28141ac_cv_func__doprnt=no
28142fi
28143rm -f conftest.err conftest.$ac_objext \
28144      conftest$ac_exeext conftest.$ac_ext
28145fi
28146echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28147echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28148if test $ac_cv_func__doprnt = yes; then
28149
28150cat >>confdefs.h <<\_ACEOF
28151#define HAVE_DOPRNT 1
28152_ACEOF
28153
28154fi
28155
28156fi
28157done
28158
28159
28160
28161
28162
28163
28164
28165
28166for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
28167do
28168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28169echo "$as_me:$LINENO: checking for $ac_func" >&5
28170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28171if eval "test \"\${$as_ac_var+set}\" = set"; then
28172  echo $ECHO_N "(cached) $ECHO_C" >&6
28173else
28174  cat >conftest.$ac_ext <<_ACEOF
28175/* confdefs.h.  */
28176_ACEOF
28177cat confdefs.h >>conftest.$ac_ext
28178cat >>conftest.$ac_ext <<_ACEOF
28179/* end confdefs.h.  */
28180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28181   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28182#define $ac_func innocuous_$ac_func
28183
28184/* System header to define __stub macros and hopefully few prototypes,
28185    which can conflict with char $ac_func (); below.
28186    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28187    <limits.h> exists even on freestanding compilers.  */
28188
28189#ifdef __STDC__
28190# include <limits.h>
28191#else
28192# include <assert.h>
28193#endif
28194
28195#undef $ac_func
28196
28197/* Override any gcc2 internal prototype to avoid an error.  */
28198#ifdef __cplusplus
28199extern "C"
28200{
28201#endif
28202/* We use char because int might match the return type of a gcc2
28203   builtin and then its argument prototype would still apply.  */
28204char $ac_func ();
28205/* The GNU C library defines this for functions which it implements
28206    to always fail with ENOSYS.  Some functions are actually named
28207    something starting with __ and the normal name is an alias.  */
28208#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28209choke me
28210#else
28211char (*f) () = $ac_func;
28212#endif
28213#ifdef __cplusplus
28214}
28215#endif
28216
28217int
28218main ()
28219{
28220return f != $ac_func;
28221  ;
28222  return 0;
28223}
28224_ACEOF
28225rm -f conftest.$ac_objext conftest$ac_exeext
28226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28227  (eval $ac_link) 2>conftest.er1
28228  ac_status=$?
28229  grep -v '^ *+' conftest.er1 >conftest.err
28230  rm -f conftest.er1
28231  cat conftest.err >&5
28232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233  (exit $ac_status); } &&
28234	 { ac_try='test -z "$ac_c_werror_flag"
28235			 || test ! -s conftest.err'
28236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237  (eval $ac_try) 2>&5
28238  ac_status=$?
28239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240  (exit $ac_status); }; } &&
28241	 { ac_try='test -s conftest$ac_exeext'
28242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243  (eval $ac_try) 2>&5
28244  ac_status=$?
28245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246  (exit $ac_status); }; }; then
28247  eval "$as_ac_var=yes"
28248else
28249  echo "$as_me: failed program was:" >&5
28250sed 's/^/| /' conftest.$ac_ext >&5
28251
28252eval "$as_ac_var=no"
28253fi
28254rm -f conftest.err conftest.$ac_objext \
28255      conftest$ac_exeext conftest.$ac_ext
28256fi
28257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28259if test `eval echo '${'$as_ac_var'}'` = yes; then
28260  cat >>confdefs.h <<_ACEOF
28261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28262_ACEOF
28263
28264fi
28265done
28266
28267  INVOKE_LIBOPTS_MACROS_FIRST_done=yes
28268fi
28269  fi
28270# end of AC_DEFUN of LIBOPTS_CHECK
28271
28272
28273echo "$as_me:$LINENO: checking if $CC can handle #warning" >&5
28274echo $ECHO_N "checking if $CC can handle #warning... $ECHO_C" >&6
28275cat >conftest.$ac_ext <<_ACEOF
28276/* confdefs.h.  */
28277_ACEOF
28278cat confdefs.h >>conftest.$ac_ext
28279cat >>conftest.$ac_ext <<_ACEOF
28280/* end confdefs.h.  */
28281
28282int
28283main ()
28284{
28285#warning foo
28286  ;
28287  return 0;
28288}
28289_ACEOF
28290rm -f conftest.$ac_objext
28291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28292  (eval $ac_compile) 2>conftest.er1
28293  ac_status=$?
28294  grep -v '^ *+' conftest.er1 >conftest.err
28295  rm -f conftest.er1
28296  cat conftest.err >&5
28297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298  (exit $ac_status); } &&
28299	 { ac_try='test -z "$ac_c_werror_flag"
28300			 || test ! -s conftest.err'
28301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28302  (eval $ac_try) 2>&5
28303  ac_status=$?
28304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305  (exit $ac_status); }; } &&
28306	 { ac_try='test -s conftest.$ac_objext'
28307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28308  (eval $ac_try) 2>&5
28309  ac_status=$?
28310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311  (exit $ac_status); }; }; then
28312  ac_cv_cpp_warning=yes
28313else
28314  echo "$as_me: failed program was:" >&5
28315sed 's/^/| /' conftest.$ac_ext >&5
28316
28317ac_cv_cpp_warning=no
28318fi
28319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28320echo "$as_me:$LINENO: result: $ac_cv_cpp_warning" >&5
28321echo "${ECHO_T}$ac_cv_cpp_warning" >&6
28322
28323case "$ac_cv_cpp_warning" in
28324 no)
28325
28326cat >>confdefs.h <<\_ACEOF
28327#define NO_OPTION_NAME_WARNINGS 1
28328_ACEOF
28329
28330    echo "$as_me:$LINENO: result: Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&5
28331echo "${ECHO_T}Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&6
28332    ;;
28333esac
28334
28335# Checks for libraries.
28336
28337# Checks for header files.
28338echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28339echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
28340if test "${ac_cv_header_stdc+set}" = set; then
28341  echo $ECHO_N "(cached) $ECHO_C" >&6
28342else
28343  cat >conftest.$ac_ext <<_ACEOF
28344/* confdefs.h.  */
28345_ACEOF
28346cat confdefs.h >>conftest.$ac_ext
28347cat >>conftest.$ac_ext <<_ACEOF
28348/* end confdefs.h.  */
28349#include <stdlib.h>
28350#include <stdarg.h>
28351#include <string.h>
28352#include <float.h>
28353
28354int
28355main ()
28356{
28357
28358  ;
28359  return 0;
28360}
28361_ACEOF
28362rm -f conftest.$ac_objext
28363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28364  (eval $ac_compile) 2>conftest.er1
28365  ac_status=$?
28366  grep -v '^ *+' conftest.er1 >conftest.err
28367  rm -f conftest.er1
28368  cat conftest.err >&5
28369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370  (exit $ac_status); } &&
28371	 { ac_try='test -z "$ac_c_werror_flag"
28372			 || test ! -s conftest.err'
28373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374  (eval $ac_try) 2>&5
28375  ac_status=$?
28376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377  (exit $ac_status); }; } &&
28378	 { ac_try='test -s conftest.$ac_objext'
28379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28380  (eval $ac_try) 2>&5
28381  ac_status=$?
28382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383  (exit $ac_status); }; }; then
28384  ac_cv_header_stdc=yes
28385else
28386  echo "$as_me: failed program was:" >&5
28387sed 's/^/| /' conftest.$ac_ext >&5
28388
28389ac_cv_header_stdc=no
28390fi
28391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28392
28393if test $ac_cv_header_stdc = yes; then
28394  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28395  cat >conftest.$ac_ext <<_ACEOF
28396/* confdefs.h.  */
28397_ACEOF
28398cat confdefs.h >>conftest.$ac_ext
28399cat >>conftest.$ac_ext <<_ACEOF
28400/* end confdefs.h.  */
28401#include <string.h>
28402
28403_ACEOF
28404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28405  $EGREP "memchr" >/dev/null 2>&1; then
28406  :
28407else
28408  ac_cv_header_stdc=no
28409fi
28410rm -f conftest*
28411
28412fi
28413
28414if test $ac_cv_header_stdc = yes; then
28415  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28416  cat >conftest.$ac_ext <<_ACEOF
28417/* confdefs.h.  */
28418_ACEOF
28419cat confdefs.h >>conftest.$ac_ext
28420cat >>conftest.$ac_ext <<_ACEOF
28421/* end confdefs.h.  */
28422#include <stdlib.h>
28423
28424_ACEOF
28425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28426  $EGREP "free" >/dev/null 2>&1; then
28427  :
28428else
28429  ac_cv_header_stdc=no
28430fi
28431rm -f conftest*
28432
28433fi
28434
28435if test $ac_cv_header_stdc = yes; then
28436  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28437  if test "$cross_compiling" = yes; then
28438  :
28439else
28440  cat >conftest.$ac_ext <<_ACEOF
28441/* confdefs.h.  */
28442_ACEOF
28443cat confdefs.h >>conftest.$ac_ext
28444cat >>conftest.$ac_ext <<_ACEOF
28445/* end confdefs.h.  */
28446#include <ctype.h>
28447#if ((' ' & 0x0FF) == 0x020)
28448# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28449# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28450#else
28451# define ISLOWER(c) \
28452		   (('a' <= (c) && (c) <= 'i') \
28453		     || ('j' <= (c) && (c) <= 'r') \
28454		     || ('s' <= (c) && (c) <= 'z'))
28455# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28456#endif
28457
28458#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28459int
28460main ()
28461{
28462  int i;
28463  for (i = 0; i < 256; i++)
28464    if (XOR (islower (i), ISLOWER (i))
28465	|| toupper (i) != TOUPPER (i))
28466      exit(2);
28467  exit (0);
28468}
28469_ACEOF
28470rm -f conftest$ac_exeext
28471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28472  (eval $ac_link) 2>&5
28473  ac_status=$?
28474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28477  (eval $ac_try) 2>&5
28478  ac_status=$?
28479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480  (exit $ac_status); }; }; then
28481  :
28482else
28483  echo "$as_me: program exited with status $ac_status" >&5
28484echo "$as_me: failed program was:" >&5
28485sed 's/^/| /' conftest.$ac_ext >&5
28486
28487( exit $ac_status )
28488ac_cv_header_stdc=no
28489fi
28490rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28491fi
28492fi
28493fi
28494echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28495echo "${ECHO_T}$ac_cv_header_stdc" >&6
28496if test $ac_cv_header_stdc = yes; then
28497
28498cat >>confdefs.h <<\_ACEOF
28499#define STDC_HEADERS 1
28500_ACEOF
28501
28502fi
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516for ac_header in arpa/inet.h fcntl.h float.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h
28517do
28518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28519if eval "test \"\${$as_ac_Header+set}\" = set"; then
28520  echo "$as_me:$LINENO: checking for $ac_header" >&5
28521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28522if eval "test \"\${$as_ac_Header+set}\" = set"; then
28523  echo $ECHO_N "(cached) $ECHO_C" >&6
28524fi
28525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28527else
28528  # Is the header compilable?
28529echo "$as_me:$LINENO: checking $ac_header usability" >&5
28530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28531cat >conftest.$ac_ext <<_ACEOF
28532/* confdefs.h.  */
28533_ACEOF
28534cat confdefs.h >>conftest.$ac_ext
28535cat >>conftest.$ac_ext <<_ACEOF
28536/* end confdefs.h.  */
28537$ac_includes_default
28538#include <$ac_header>
28539_ACEOF
28540rm -f conftest.$ac_objext
28541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28542  (eval $ac_compile) 2>conftest.er1
28543  ac_status=$?
28544  grep -v '^ *+' conftest.er1 >conftest.err
28545  rm -f conftest.er1
28546  cat conftest.err >&5
28547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548  (exit $ac_status); } &&
28549	 { ac_try='test -z "$ac_c_werror_flag"
28550			 || test ! -s conftest.err'
28551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552  (eval $ac_try) 2>&5
28553  ac_status=$?
28554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555  (exit $ac_status); }; } &&
28556	 { ac_try='test -s conftest.$ac_objext'
28557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28558  (eval $ac_try) 2>&5
28559  ac_status=$?
28560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561  (exit $ac_status); }; }; then
28562  ac_header_compiler=yes
28563else
28564  echo "$as_me: failed program was:" >&5
28565sed 's/^/| /' conftest.$ac_ext >&5
28566
28567ac_header_compiler=no
28568fi
28569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28571echo "${ECHO_T}$ac_header_compiler" >&6
28572
28573# Is the header present?
28574echo "$as_me:$LINENO: checking $ac_header presence" >&5
28575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28576cat >conftest.$ac_ext <<_ACEOF
28577/* confdefs.h.  */
28578_ACEOF
28579cat confdefs.h >>conftest.$ac_ext
28580cat >>conftest.$ac_ext <<_ACEOF
28581/* end confdefs.h.  */
28582#include <$ac_header>
28583_ACEOF
28584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28585  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28586  ac_status=$?
28587  grep -v '^ *+' conftest.er1 >conftest.err
28588  rm -f conftest.er1
28589  cat conftest.err >&5
28590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591  (exit $ac_status); } >/dev/null; then
28592  if test -s conftest.err; then
28593    ac_cpp_err=$ac_c_preproc_warn_flag
28594    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28595  else
28596    ac_cpp_err=
28597  fi
28598else
28599  ac_cpp_err=yes
28600fi
28601if test -z "$ac_cpp_err"; then
28602  ac_header_preproc=yes
28603else
28604  echo "$as_me: failed program was:" >&5
28605sed 's/^/| /' conftest.$ac_ext >&5
28606
28607  ac_header_preproc=no
28608fi
28609rm -f conftest.err conftest.$ac_ext
28610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28611echo "${ECHO_T}$ac_header_preproc" >&6
28612
28613# So?  What about this header?
28614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28615  yes:no: )
28616    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28618    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28620    ac_header_preproc=yes
28621    ;;
28622  no:yes:* )
28623    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28625    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28626echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28627    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28629    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28630echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28631    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28633    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28635    (
28636      cat <<\_ASBOX
28637## ------------------------------------------ ##
28638## Report this to the AC_PACKAGE_NAME lists.  ##
28639## ------------------------------------------ ##
28640_ASBOX
28641    ) |
28642      sed "s/^/$as_me: WARNING:     /" >&2
28643    ;;
28644esac
28645echo "$as_me:$LINENO: checking for $ac_header" >&5
28646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28647if eval "test \"\${$as_ac_Header+set}\" = set"; then
28648  echo $ECHO_N "(cached) $ECHO_C" >&6
28649else
28650  eval "$as_ac_Header=\$ac_header_preproc"
28651fi
28652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28654
28655fi
28656if test `eval echo '${'$as_ac_Header'}'` = yes; then
28657  cat >>confdefs.h <<_ACEOF
28658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28659_ACEOF
28660
28661fi
28662
28663done
28664
28665
28666# Checks for typedefs, structures, and compiler characteristics.
28667echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
28668echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
28669if test "${ac_cv_c_const+set}" = set; then
28670  echo $ECHO_N "(cached) $ECHO_C" >&6
28671else
28672  cat >conftest.$ac_ext <<_ACEOF
28673/* confdefs.h.  */
28674_ACEOF
28675cat confdefs.h >>conftest.$ac_ext
28676cat >>conftest.$ac_ext <<_ACEOF
28677/* end confdefs.h.  */
28678
28679int
28680main ()
28681{
28682/* FIXME: Include the comments suggested by Paul. */
28683#ifndef __cplusplus
28684  /* Ultrix mips cc rejects this.  */
28685  typedef int charset[2];
28686  const charset x;
28687  /* SunOS 4.1.1 cc rejects this.  */
28688  char const *const *ccp;
28689  char **p;
28690  /* NEC SVR4.0.2 mips cc rejects this.  */
28691  struct point {int x, y;};
28692  static struct point const zero = {0,0};
28693  /* AIX XL C 1.02.0.0 rejects this.
28694     It does not let you subtract one const X* pointer from another in
28695     an arm of an if-expression whose if-part is not a constant
28696     expression */
28697  const char *g = "string";
28698  ccp = &g + (g ? g-g : 0);
28699  /* HPUX 7.0 cc rejects these. */
28700  ++ccp;
28701  p = (char**) ccp;
28702  ccp = (char const *const *) p;
28703  { /* SCO 3.2v4 cc rejects this.  */
28704    char *t;
28705    char const *s = 0 ? (char *) 0 : (char const *) 0;
28706
28707    *t++ = 0;
28708  }
28709  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
28710    int x[] = {25, 17};
28711    const int *foo = &x[0];
28712    ++foo;
28713  }
28714  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28715    typedef const int *iptr;
28716    iptr p = 0;
28717    ++p;
28718  }
28719  { /* AIX XL C 1.02.0.0 rejects this saying
28720       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28721    struct s { int j; const int *ap[3]; };
28722    struct s *b; b->j = 5;
28723  }
28724  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28725    const int foo = 10;
28726  }
28727#endif
28728
28729  ;
28730  return 0;
28731}
28732_ACEOF
28733rm -f conftest.$ac_objext
28734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28735  (eval $ac_compile) 2>conftest.er1
28736  ac_status=$?
28737  grep -v '^ *+' conftest.er1 >conftest.err
28738  rm -f conftest.er1
28739  cat conftest.err >&5
28740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741  (exit $ac_status); } &&
28742	 { ac_try='test -z "$ac_c_werror_flag"
28743			 || test ! -s conftest.err'
28744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745  (eval $ac_try) 2>&5
28746  ac_status=$?
28747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748  (exit $ac_status); }; } &&
28749	 { ac_try='test -s conftest.$ac_objext'
28750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751  (eval $ac_try) 2>&5
28752  ac_status=$?
28753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754  (exit $ac_status); }; }; then
28755  ac_cv_c_const=yes
28756else
28757  echo "$as_me: failed program was:" >&5
28758sed 's/^/| /' conftest.$ac_ext >&5
28759
28760ac_cv_c_const=no
28761fi
28762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28763fi
28764echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
28765echo "${ECHO_T}$ac_cv_c_const" >&6
28766if test $ac_cv_c_const = no; then
28767
28768cat >>confdefs.h <<\_ACEOF
28769#define const
28770_ACEOF
28771
28772fi
28773
28774echo "$as_me:$LINENO: checking for size_t" >&5
28775echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28776if test "${ac_cv_type_size_t+set}" = set; then
28777  echo $ECHO_N "(cached) $ECHO_C" >&6
28778else
28779  cat >conftest.$ac_ext <<_ACEOF
28780/* confdefs.h.  */
28781_ACEOF
28782cat confdefs.h >>conftest.$ac_ext
28783cat >>conftest.$ac_ext <<_ACEOF
28784/* end confdefs.h.  */
28785$ac_includes_default
28786int
28787main ()
28788{
28789if ((size_t *) 0)
28790  return 0;
28791if (sizeof (size_t))
28792  return 0;
28793  ;
28794  return 0;
28795}
28796_ACEOF
28797rm -f conftest.$ac_objext
28798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28799  (eval $ac_compile) 2>conftest.er1
28800  ac_status=$?
28801  grep -v '^ *+' conftest.er1 >conftest.err
28802  rm -f conftest.er1
28803  cat conftest.err >&5
28804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805  (exit $ac_status); } &&
28806	 { ac_try='test -z "$ac_c_werror_flag"
28807			 || test ! -s conftest.err'
28808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809  (eval $ac_try) 2>&5
28810  ac_status=$?
28811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812  (exit $ac_status); }; } &&
28813	 { ac_try='test -s conftest.$ac_objext'
28814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28815  (eval $ac_try) 2>&5
28816  ac_status=$?
28817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818  (exit $ac_status); }; }; then
28819  ac_cv_type_size_t=yes
28820else
28821  echo "$as_me: failed program was:" >&5
28822sed 's/^/| /' conftest.$ac_ext >&5
28823
28824ac_cv_type_size_t=no
28825fi
28826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28827fi
28828echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28829echo "${ECHO_T}$ac_cv_type_size_t" >&6
28830if test $ac_cv_type_size_t = yes; then
28831  :
28832else
28833
28834cat >>confdefs.h <<_ACEOF
28835#define size_t unsigned
28836_ACEOF
28837
28838fi
28839
28840echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28841echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
28842if test "${ac_cv_header_time+set}" = set; then
28843  echo $ECHO_N "(cached) $ECHO_C" >&6
28844else
28845  cat >conftest.$ac_ext <<_ACEOF
28846/* confdefs.h.  */
28847_ACEOF
28848cat confdefs.h >>conftest.$ac_ext
28849cat >>conftest.$ac_ext <<_ACEOF
28850/* end confdefs.h.  */
28851#include <sys/types.h>
28852#include <sys/time.h>
28853#include <time.h>
28854
28855int
28856main ()
28857{
28858if ((struct tm *) 0)
28859return 0;
28860  ;
28861  return 0;
28862}
28863_ACEOF
28864rm -f conftest.$ac_objext
28865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28866  (eval $ac_compile) 2>conftest.er1
28867  ac_status=$?
28868  grep -v '^ *+' conftest.er1 >conftest.err
28869  rm -f conftest.er1
28870  cat conftest.err >&5
28871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872  (exit $ac_status); } &&
28873	 { ac_try='test -z "$ac_c_werror_flag"
28874			 || test ! -s conftest.err'
28875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876  (eval $ac_try) 2>&5
28877  ac_status=$?
28878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879  (exit $ac_status); }; } &&
28880	 { ac_try='test -s conftest.$ac_objext'
28881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882  (eval $ac_try) 2>&5
28883  ac_status=$?
28884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885  (exit $ac_status); }; }; then
28886  ac_cv_header_time=yes
28887else
28888  echo "$as_me: failed program was:" >&5
28889sed 's/^/| /' conftest.$ac_ext >&5
28890
28891ac_cv_header_time=no
28892fi
28893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28894fi
28895echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28896echo "${ECHO_T}$ac_cv_header_time" >&6
28897if test $ac_cv_header_time = yes; then
28898
28899cat >>confdefs.h <<\_ACEOF
28900#define TIME_WITH_SYS_TIME 1
28901_ACEOF
28902
28903fi
28904
28905echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28906echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
28907if test "${ac_cv_struct_tm+set}" = set; then
28908  echo $ECHO_N "(cached) $ECHO_C" >&6
28909else
28910  cat >conftest.$ac_ext <<_ACEOF
28911/* confdefs.h.  */
28912_ACEOF
28913cat confdefs.h >>conftest.$ac_ext
28914cat >>conftest.$ac_ext <<_ACEOF
28915/* end confdefs.h.  */
28916#include <sys/types.h>
28917#include <time.h>
28918
28919int
28920main ()
28921{
28922struct tm *tp; tp->tm_sec;
28923  ;
28924  return 0;
28925}
28926_ACEOF
28927rm -f conftest.$ac_objext
28928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28929  (eval $ac_compile) 2>conftest.er1
28930  ac_status=$?
28931  grep -v '^ *+' conftest.er1 >conftest.err
28932  rm -f conftest.er1
28933  cat conftest.err >&5
28934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935  (exit $ac_status); } &&
28936	 { ac_try='test -z "$ac_c_werror_flag"
28937			 || test ! -s conftest.err'
28938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28939  (eval $ac_try) 2>&5
28940  ac_status=$?
28941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942  (exit $ac_status); }; } &&
28943	 { ac_try='test -s conftest.$ac_objext'
28944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945  (eval $ac_try) 2>&5
28946  ac_status=$?
28947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948  (exit $ac_status); }; }; then
28949  ac_cv_struct_tm=time.h
28950else
28951  echo "$as_me: failed program was:" >&5
28952sed 's/^/| /' conftest.$ac_ext >&5
28953
28954ac_cv_struct_tm=sys/time.h
28955fi
28956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28957fi
28958echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28959echo "${ECHO_T}$ac_cv_struct_tm" >&6
28960if test $ac_cv_struct_tm = sys/time.h; then
28961
28962cat >>confdefs.h <<\_ACEOF
28963#define TM_IN_SYS_TIME 1
28964_ACEOF
28965
28966fi
28967
28968
28969echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
28970echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
28971if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
28972  echo $ECHO_N "(cached) $ECHO_C" >&6
28973else
28974
28975	cat >conftest.$ac_ext <<_ACEOF
28976/* confdefs.h.  */
28977_ACEOF
28978cat confdefs.h >>conftest.$ac_ext
28979cat >>conftest.$ac_ext <<_ACEOF
28980/* end confdefs.h.  */
28981
28982#include <sys/types.h>
28983#include <sys/socket.h>
28984
28985int
28986main ()
28987{
28988 struct sockaddr_storage s; s.ss_family = 1;
28989  ;
28990  return 0;
28991}
28992_ACEOF
28993rm -f conftest.$ac_objext
28994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28995  (eval $ac_compile) 2>conftest.er1
28996  ac_status=$?
28997  grep -v '^ *+' conftest.er1 >conftest.err
28998  rm -f conftest.er1
28999  cat conftest.err >&5
29000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001  (exit $ac_status); } &&
29002	 { ac_try='test -z "$ac_c_werror_flag"
29003			 || test ! -s conftest.err'
29004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005  (eval $ac_try) 2>&5
29006  ac_status=$?
29007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008  (exit $ac_status); }; } &&
29009	 { ac_try='test -s conftest.$ac_objext'
29010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29011  (eval $ac_try) 2>&5
29012  ac_status=$?
29013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014  (exit $ac_status); }; }; then
29015   ac_cv_have_ss_family_in_struct_ss="yes"
29016else
29017  echo "$as_me: failed program was:" >&5
29018sed 's/^/| /' conftest.$ac_ext >&5
29019
29020 ac_cv_have_ss_family_in_struct_ss="no"
29021fi
29022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29023
29024fi
29025echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
29026echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
29027case "$ac_cv_have_ss_family_in_struct_ss" in
29028 yes)
29029
29030cat >>confdefs.h <<\_ACEOF
29031#define HAVE_SS_FAMILY_IN_SS 1
29032_ACEOF
29033
29034    ;;
29035esac
29036
29037echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
29038echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
29039if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
29040  echo $ECHO_N "(cached) $ECHO_C" >&6
29041else
29042
29043	cat >conftest.$ac_ext <<_ACEOF
29044/* confdefs.h.  */
29045_ACEOF
29046cat confdefs.h >>conftest.$ac_ext
29047cat >>conftest.$ac_ext <<_ACEOF
29048/* end confdefs.h.  */
29049
29050#include <sys/types.h>
29051#include <sys/socket.h>
29052
29053int
29054main ()
29055{
29056 struct sockaddr_storage s; s.__ss_family = 1;
29057  ;
29058  return 0;
29059}
29060_ACEOF
29061rm -f conftest.$ac_objext
29062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29063  (eval $ac_compile) 2>conftest.er1
29064  ac_status=$?
29065  grep -v '^ *+' conftest.er1 >conftest.err
29066  rm -f conftest.er1
29067  cat conftest.err >&5
29068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069  (exit $ac_status); } &&
29070	 { ac_try='test -z "$ac_c_werror_flag"
29071			 || test ! -s conftest.err'
29072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073  (eval $ac_try) 2>&5
29074  ac_status=$?
29075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076  (exit $ac_status); }; } &&
29077	 { ac_try='test -s conftest.$ac_objext'
29078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29079  (eval $ac_try) 2>&5
29080  ac_status=$?
29081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082  (exit $ac_status); }; }; then
29083   ac_cv_have___ss_family_in_struct_ss="yes"
29084else
29085  echo "$as_me: failed program was:" >&5
29086sed 's/^/| /' conftest.$ac_ext >&5
29087
29088 ac_cv_have___ss_family_in_struct_ss="no"
29089
29090fi
29091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29092
29093fi
29094echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
29095echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
29096case "$ac_cv_have___ss_family_in_struct_ss" in
29097 yes)
29098
29099cat >>confdefs.h <<\_ACEOF
29100#define HAVE___SS_FAMILY_IN_SS 1
29101_ACEOF
29102
29103    ;;
29104esac
29105
29106case "$ac_cv_have_ss_family_in_struct_ss$ac_cv_have___ss_family_in_struct_ss" in
29107 noyes)
29108
29109cat >>confdefs.h <<_ACEOF
29110#define ss_family __ss_family
29111_ACEOF
29112
29113
29114cat >>confdefs.h <<_ACEOF
29115#define ss_len __ss_len
29116_ACEOF
29117
29118    ;;
29119esac
29120
29121# Checks for library functions.
29122echo "$as_me:$LINENO: checking for working memcmp" >&5
29123echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
29124if test "${ac_cv_func_memcmp_working+set}" = set; then
29125  echo $ECHO_N "(cached) $ECHO_C" >&6
29126else
29127  if test "$cross_compiling" = yes; then
29128  ac_cv_func_memcmp_working=no
29129else
29130  cat >conftest.$ac_ext <<_ACEOF
29131/* confdefs.h.  */
29132_ACEOF
29133cat confdefs.h >>conftest.$ac_ext
29134cat >>conftest.$ac_ext <<_ACEOF
29135/* end confdefs.h.  */
29136$ac_includes_default
29137int
29138main ()
29139{
29140
29141  /* Some versions of memcmp are not 8-bit clean.  */
29142  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
29143  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
29144    exit (1);
29145
29146  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
29147     or more and with at least one buffer not starting on a 4-byte boundary.
29148     William Lewis provided this test program.   */
29149  {
29150    char foo[21];
29151    char bar[21];
29152    int i;
29153    for (i = 0; i < 4; i++)
29154      {
29155	char *a = foo + i;
29156	char *b = bar + i;
29157	strcpy (a, "--------01111111");
29158	strcpy (b, "--------10000000");
29159	if (memcmp (a, b, 16) >= 0)
29160	  exit (1);
29161      }
29162    exit (0);
29163  }
29164
29165  ;
29166  return 0;
29167}
29168_ACEOF
29169rm -f conftest$ac_exeext
29170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29171  (eval $ac_link) 2>&5
29172  ac_status=$?
29173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176  (eval $ac_try) 2>&5
29177  ac_status=$?
29178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179  (exit $ac_status); }; }; then
29180  ac_cv_func_memcmp_working=yes
29181else
29182  echo "$as_me: program exited with status $ac_status" >&5
29183echo "$as_me: failed program was:" >&5
29184sed 's/^/| /' conftest.$ac_ext >&5
29185
29186( exit $ac_status )
29187ac_cv_func_memcmp_working=no
29188fi
29189rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29190fi
29191fi
29192echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
29193echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
29194test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
29195    "memcmp.$ac_objext"   | \
29196  *" memcmp.$ac_objext"   | \
29197    "memcmp.$ac_objext "* | \
29198  *" memcmp.$ac_objext "* ) ;;
29199  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
29200esac
29201
29202
29203echo "$as_me:$LINENO: checking for function prototypes" >&5
29204echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
29205if test "$ac_cv_prog_cc_stdc" != no; then
29206  echo "$as_me:$LINENO: result: yes" >&5
29207echo "${ECHO_T}yes" >&6
29208
29209cat >>confdefs.h <<\_ACEOF
29210#define PROTOTYPES 1
29211_ACEOF
29212
29213
29214cat >>confdefs.h <<\_ACEOF
29215#define __PROTOTYPES 1
29216_ACEOF
29217
29218else
29219  echo "$as_me:$LINENO: result: no" >&5
29220echo "${ECHO_T}no" >&6
29221fi
29222
29223echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
29224echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
29225if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
29226  echo $ECHO_N "(cached) $ECHO_C" >&6
29227else
29228  ac_cv_func_setvbuf_reversed=no
29229   cat >conftest.$ac_ext <<_ACEOF
29230/* confdefs.h.  */
29231_ACEOF
29232cat confdefs.h >>conftest.$ac_ext
29233cat >>conftest.$ac_ext <<_ACEOF
29234/* end confdefs.h.  */
29235#include <stdio.h>
29236#	  if PROTOTYPES
29237	   int (setvbuf) (FILE *, int, char *, size_t);
29238#	  endif
29239int
29240main ()
29241{
29242char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
29243  ;
29244  return 0;
29245}
29246_ACEOF
29247rm -f conftest.$ac_objext conftest$ac_exeext
29248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29249  (eval $ac_link) 2>conftest.er1
29250  ac_status=$?
29251  grep -v '^ *+' conftest.er1 >conftest.err
29252  rm -f conftest.er1
29253  cat conftest.err >&5
29254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255  (exit $ac_status); } &&
29256	 { ac_try='test -z "$ac_c_werror_flag"
29257			 || test ! -s conftest.err'
29258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259  (eval $ac_try) 2>&5
29260  ac_status=$?
29261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262  (exit $ac_status); }; } &&
29263	 { ac_try='test -s conftest$ac_exeext'
29264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265  (eval $ac_try) 2>&5
29266  ac_status=$?
29267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268  (exit $ac_status); }; }; then
29269  cat >conftest.$ac_ext <<_ACEOF
29270/* confdefs.h.  */
29271_ACEOF
29272cat confdefs.h >>conftest.$ac_ext
29273cat >>conftest.$ac_ext <<_ACEOF
29274/* end confdefs.h.  */
29275#include <stdio.h>
29276#	     if PROTOTYPES
29277	      int (setvbuf) (FILE *, int, char *, size_t);
29278#	     endif
29279int
29280main ()
29281{
29282char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
29283  ;
29284  return 0;
29285}
29286_ACEOF
29287rm -f conftest.$ac_objext conftest$ac_exeext
29288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29289  (eval $ac_link) 2>conftest.er1
29290  ac_status=$?
29291  grep -v '^ *+' conftest.er1 >conftest.err
29292  rm -f conftest.er1
29293  cat conftest.err >&5
29294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295  (exit $ac_status); } &&
29296	 { ac_try='test -z "$ac_c_werror_flag"
29297			 || test ! -s conftest.err'
29298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29299  (eval $ac_try) 2>&5
29300  ac_status=$?
29301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302  (exit $ac_status); }; } &&
29303	 { ac_try='test -s conftest$ac_exeext'
29304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29305  (eval $ac_try) 2>&5
29306  ac_status=$?
29307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308  (exit $ac_status); }; }; then
29309  # It compiles and links either way, so it must not be declared
29310	 # with a prototype and most likely this is a K&R C compiler.
29311	 # Try running it.
29312	 if test "$cross_compiling" = yes; then
29313  : # Assume setvbuf is not reversed when cross-compiling.
29314else
29315  cat >conftest.$ac_ext <<_ACEOF
29316/* confdefs.h.  */
29317_ACEOF
29318cat confdefs.h >>conftest.$ac_ext
29319cat >>conftest.$ac_ext <<_ACEOF
29320/* end confdefs.h.  */
29321#include <stdio.h>
29322int
29323main ()
29324{
29325/* This call has the arguments reversed.
29326		   A reversed system may check and see that the address of buf
29327		   is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
29328		char buf;
29329		if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
29330		  exit (1);
29331		putchar ('\r');
29332		exit (0); /* Non-reversed systems SEGV here.  */
29333  ;
29334  return 0;
29335}
29336_ACEOF
29337rm -f conftest$ac_exeext
29338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29339  (eval $ac_link) 2>&5
29340  ac_status=$?
29341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344  (eval $ac_try) 2>&5
29345  ac_status=$?
29346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347  (exit $ac_status); }; }; then
29348  ac_cv_func_setvbuf_reversed=yes
29349else
29350  echo "$as_me: program exited with status $ac_status" >&5
29351echo "$as_me: failed program was:" >&5
29352sed 's/^/| /' conftest.$ac_ext >&5
29353
29354( exit $ac_status )
29355rm -f core *.core
29356fi
29357rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29358fi
29359	ac_cv_func_setvbuf_reversed=yes
29360else
29361  echo "$as_me: failed program was:" >&5
29362sed 's/^/| /' conftest.$ac_ext >&5
29363
29364fi
29365rm -f conftest.err conftest.$ac_objext \
29366      conftest$ac_exeext conftest.$ac_ext
29367else
29368  echo "$as_me: failed program was:" >&5
29369sed 's/^/| /' conftest.$ac_ext >&5
29370
29371fi
29372rm -f conftest.err conftest.$ac_objext \
29373      conftest$ac_exeext conftest.$ac_ext
29374fi
29375echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
29376echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
29377if test $ac_cv_func_setvbuf_reversed = yes; then
29378
29379cat >>confdefs.h <<\_ACEOF
29380#define SETVBUF_REVERSED 1
29381_ACEOF
29382
29383fi
29384
29385echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29386echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
29387if test "${ac_cv_type_signal+set}" = set; then
29388  echo $ECHO_N "(cached) $ECHO_C" >&6
29389else
29390  cat >conftest.$ac_ext <<_ACEOF
29391/* confdefs.h.  */
29392_ACEOF
29393cat confdefs.h >>conftest.$ac_ext
29394cat >>conftest.$ac_ext <<_ACEOF
29395/* end confdefs.h.  */
29396#include <sys/types.h>
29397#include <signal.h>
29398#ifdef signal
29399# undef signal
29400#endif
29401#ifdef __cplusplus
29402extern "C" void (*signal (int, void (*)(int)))(int);
29403#else
29404void (*signal ()) ();
29405#endif
29406
29407int
29408main ()
29409{
29410int i;
29411  ;
29412  return 0;
29413}
29414_ACEOF
29415rm -f conftest.$ac_objext
29416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29417  (eval $ac_compile) 2>conftest.er1
29418  ac_status=$?
29419  grep -v '^ *+' conftest.er1 >conftest.err
29420  rm -f conftest.er1
29421  cat conftest.err >&5
29422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423  (exit $ac_status); } &&
29424	 { ac_try='test -z "$ac_c_werror_flag"
29425			 || test ! -s conftest.err'
29426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427  (eval $ac_try) 2>&5
29428  ac_status=$?
29429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430  (exit $ac_status); }; } &&
29431	 { ac_try='test -s conftest.$ac_objext'
29432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433  (eval $ac_try) 2>&5
29434  ac_status=$?
29435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436  (exit $ac_status); }; }; then
29437  ac_cv_type_signal=void
29438else
29439  echo "$as_me: failed program was:" >&5
29440sed 's/^/| /' conftest.$ac_ext >&5
29441
29442ac_cv_type_signal=int
29443fi
29444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29445fi
29446echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29447echo "${ECHO_T}$ac_cv_type_signal" >&6
29448
29449cat >>confdefs.h <<_ACEOF
29450#define RETSIGTYPE $ac_cv_type_signal
29451_ACEOF
29452
29453
29454
29455for ac_func in alarm
29456do
29457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29458echo "$as_me:$LINENO: checking for $ac_func" >&5
29459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29460if eval "test \"\${$as_ac_var+set}\" = set"; then
29461  echo $ECHO_N "(cached) $ECHO_C" >&6
29462else
29463  cat >conftest.$ac_ext <<_ACEOF
29464/* confdefs.h.  */
29465_ACEOF
29466cat confdefs.h >>conftest.$ac_ext
29467cat >>conftest.$ac_ext <<_ACEOF
29468/* end confdefs.h.  */
29469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29470   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29471#define $ac_func innocuous_$ac_func
29472
29473/* System header to define __stub macros and hopefully few prototypes,
29474    which can conflict with char $ac_func (); below.
29475    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29476    <limits.h> exists even on freestanding compilers.  */
29477
29478#ifdef __STDC__
29479# include <limits.h>
29480#else
29481# include <assert.h>
29482#endif
29483
29484#undef $ac_func
29485
29486/* Override any gcc2 internal prototype to avoid an error.  */
29487#ifdef __cplusplus
29488extern "C"
29489{
29490#endif
29491/* We use char because int might match the return type of a gcc2
29492   builtin and then its argument prototype would still apply.  */
29493char $ac_func ();
29494/* The GNU C library defines this for functions which it implements
29495    to always fail with ENOSYS.  Some functions are actually named
29496    something starting with __ and the normal name is an alias.  */
29497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29498choke me
29499#else
29500char (*f) () = $ac_func;
29501#endif
29502#ifdef __cplusplus
29503}
29504#endif
29505
29506int
29507main ()
29508{
29509return f != $ac_func;
29510  ;
29511  return 0;
29512}
29513_ACEOF
29514rm -f conftest.$ac_objext conftest$ac_exeext
29515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29516  (eval $ac_link) 2>conftest.er1
29517  ac_status=$?
29518  grep -v '^ *+' conftest.er1 >conftest.err
29519  rm -f conftest.er1
29520  cat conftest.err >&5
29521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522  (exit $ac_status); } &&
29523	 { ac_try='test -z "$ac_c_werror_flag"
29524			 || test ! -s conftest.err'
29525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29526  (eval $ac_try) 2>&5
29527  ac_status=$?
29528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529  (exit $ac_status); }; } &&
29530	 { ac_try='test -s conftest$ac_exeext'
29531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532  (eval $ac_try) 2>&5
29533  ac_status=$?
29534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535  (exit $ac_status); }; }; then
29536  eval "$as_ac_var=yes"
29537else
29538  echo "$as_me: failed program was:" >&5
29539sed 's/^/| /' conftest.$ac_ext >&5
29540
29541eval "$as_ac_var=no"
29542fi
29543rm -f conftest.err conftest.$ac_objext \
29544      conftest$ac_exeext conftest.$ac_ext
29545fi
29546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29548if test `eval echo '${'$as_ac_var'}'` = yes; then
29549  cat >>confdefs.h <<_ACEOF
29550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29551_ACEOF
29552
29553fi
29554done
29555
29556echo "$as_me:$LINENO: checking for gethostent" >&5
29557echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
29558if test "${ac_cv_func_gethostent+set}" = set; then
29559  echo $ECHO_N "(cached) $ECHO_C" >&6
29560else
29561  cat >conftest.$ac_ext <<_ACEOF
29562/* confdefs.h.  */
29563_ACEOF
29564cat confdefs.h >>conftest.$ac_ext
29565cat >>conftest.$ac_ext <<_ACEOF
29566/* end confdefs.h.  */
29567/* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
29568   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29569#define gethostent innocuous_gethostent
29570
29571/* System header to define __stub macros and hopefully few prototypes,
29572    which can conflict with char gethostent (); below.
29573    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29574    <limits.h> exists even on freestanding compilers.  */
29575
29576#ifdef __STDC__
29577# include <limits.h>
29578#else
29579# include <assert.h>
29580#endif
29581
29582#undef gethostent
29583
29584/* Override any gcc2 internal prototype to avoid an error.  */
29585#ifdef __cplusplus
29586extern "C"
29587{
29588#endif
29589/* We use char because int might match the return type of a gcc2
29590   builtin and then its argument prototype would still apply.  */
29591char gethostent ();
29592/* The GNU C library defines this for functions which it implements
29593    to always fail with ENOSYS.  Some functions are actually named
29594    something starting with __ and the normal name is an alias.  */
29595#if defined (__stub_gethostent) || defined (__stub___gethostent)
29596choke me
29597#else
29598char (*f) () = gethostent;
29599#endif
29600#ifdef __cplusplus
29601}
29602#endif
29603
29604int
29605main ()
29606{
29607return f != gethostent;
29608  ;
29609  return 0;
29610}
29611_ACEOF
29612rm -f conftest.$ac_objext conftest$ac_exeext
29613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29614  (eval $ac_link) 2>conftest.er1
29615  ac_status=$?
29616  grep -v '^ *+' conftest.er1 >conftest.err
29617  rm -f conftest.er1
29618  cat conftest.err >&5
29619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620  (exit $ac_status); } &&
29621	 { ac_try='test -z "$ac_c_werror_flag"
29622			 || test ! -s conftest.err'
29623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29624  (eval $ac_try) 2>&5
29625  ac_status=$?
29626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627  (exit $ac_status); }; } &&
29628	 { ac_try='test -s conftest$ac_exeext'
29629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29630  (eval $ac_try) 2>&5
29631  ac_status=$?
29632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633  (exit $ac_status); }; }; then
29634  ac_cv_func_gethostent=yes
29635else
29636  echo "$as_me: failed program was:" >&5
29637sed 's/^/| /' conftest.$ac_ext >&5
29638
29639ac_cv_func_gethostent=no
29640fi
29641rm -f conftest.err conftest.$ac_objext \
29642      conftest$ac_exeext conftest.$ac_ext
29643fi
29644echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
29645echo "${ECHO_T}$ac_cv_func_gethostent" >&6
29646if test $ac_cv_func_gethostent = yes; then
29647  :
29648else
29649
29650echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
29651echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
29652if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
29653  echo $ECHO_N "(cached) $ECHO_C" >&6
29654else
29655  ac_check_lib_save_LIBS=$LIBS
29656LIBS="-lnsl -lsocket $LIBS"
29657cat >conftest.$ac_ext <<_ACEOF
29658/* confdefs.h.  */
29659_ACEOF
29660cat confdefs.h >>conftest.$ac_ext
29661cat >>conftest.$ac_ext <<_ACEOF
29662/* end confdefs.h.  */
29663
29664/* Override any gcc2 internal prototype to avoid an error.  */
29665#ifdef __cplusplus
29666extern "C"
29667#endif
29668/* We use char because int might match the return type of a gcc2
29669   builtin and then its argument prototype would still apply.  */
29670char gethostent ();
29671int
29672main ()
29673{
29674gethostent ();
29675  ;
29676  return 0;
29677}
29678_ACEOF
29679rm -f conftest.$ac_objext conftest$ac_exeext
29680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29681  (eval $ac_link) 2>conftest.er1
29682  ac_status=$?
29683  grep -v '^ *+' conftest.er1 >conftest.err
29684  rm -f conftest.er1
29685  cat conftest.err >&5
29686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687  (exit $ac_status); } &&
29688	 { ac_try='test -z "$ac_c_werror_flag"
29689			 || test ! -s conftest.err'
29690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691  (eval $ac_try) 2>&5
29692  ac_status=$?
29693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694  (exit $ac_status); }; } &&
29695	 { ac_try='test -s conftest$ac_exeext'
29696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697  (eval $ac_try) 2>&5
29698  ac_status=$?
29699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700  (exit $ac_status); }; }; then
29701  ac_cv_lib_nsl_gethostent=yes
29702else
29703  echo "$as_me: failed program was:" >&5
29704sed 's/^/| /' conftest.$ac_ext >&5
29705
29706ac_cv_lib_nsl_gethostent=no
29707fi
29708rm -f conftest.err conftest.$ac_objext \
29709      conftest$ac_exeext conftest.$ac_ext
29710LIBS=$ac_check_lib_save_LIBS
29711fi
29712echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
29713echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
29714if test $ac_cv_lib_nsl_gethostent = yes; then
29715  cat >>confdefs.h <<_ACEOF
29716#define HAVE_LIBNSL 1
29717_ACEOF
29718
29719  LIBS="-lnsl $LIBS"
29720
29721fi
29722
29723fi
29724
29725
29726
29727
29728for ac_func in gettimeofday inet_ntoa memset
29729do
29730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29731echo "$as_me:$LINENO: checking for $ac_func" >&5
29732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29733if eval "test \"\${$as_ac_var+set}\" = set"; then
29734  echo $ECHO_N "(cached) $ECHO_C" >&6
29735else
29736  cat >conftest.$ac_ext <<_ACEOF
29737/* confdefs.h.  */
29738_ACEOF
29739cat confdefs.h >>conftest.$ac_ext
29740cat >>conftest.$ac_ext <<_ACEOF
29741/* end confdefs.h.  */
29742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29743   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29744#define $ac_func innocuous_$ac_func
29745
29746/* System header to define __stub macros and hopefully few prototypes,
29747    which can conflict with char $ac_func (); below.
29748    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29749    <limits.h> exists even on freestanding compilers.  */
29750
29751#ifdef __STDC__
29752# include <limits.h>
29753#else
29754# include <assert.h>
29755#endif
29756
29757#undef $ac_func
29758
29759/* Override any gcc2 internal prototype to avoid an error.  */
29760#ifdef __cplusplus
29761extern "C"
29762{
29763#endif
29764/* We use char because int might match the return type of a gcc2
29765   builtin and then its argument prototype would still apply.  */
29766char $ac_func ();
29767/* The GNU C library defines this for functions which it implements
29768    to always fail with ENOSYS.  Some functions are actually named
29769    something starting with __ and the normal name is an alias.  */
29770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29771choke me
29772#else
29773char (*f) () = $ac_func;
29774#endif
29775#ifdef __cplusplus
29776}
29777#endif
29778
29779int
29780main ()
29781{
29782return f != $ac_func;
29783  ;
29784  return 0;
29785}
29786_ACEOF
29787rm -f conftest.$ac_objext conftest$ac_exeext
29788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29789  (eval $ac_link) 2>conftest.er1
29790  ac_status=$?
29791  grep -v '^ *+' conftest.er1 >conftest.err
29792  rm -f conftest.er1
29793  cat conftest.err >&5
29794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795  (exit $ac_status); } &&
29796	 { ac_try='test -z "$ac_c_werror_flag"
29797			 || test ! -s conftest.err'
29798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29799  (eval $ac_try) 2>&5
29800  ac_status=$?
29801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802  (exit $ac_status); }; } &&
29803	 { ac_try='test -s conftest$ac_exeext'
29804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805  (eval $ac_try) 2>&5
29806  ac_status=$?
29807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808  (exit $ac_status); }; }; then
29809  eval "$as_ac_var=yes"
29810else
29811  echo "$as_me: failed program was:" >&5
29812sed 's/^/| /' conftest.$ac_ext >&5
29813
29814eval "$as_ac_var=no"
29815fi
29816rm -f conftest.err conftest.$ac_objext \
29817      conftest$ac_exeext conftest.$ac_ext
29818fi
29819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29820echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29821if test `eval echo '${'$as_ac_var'}'` = yes; then
29822  cat >>confdefs.h <<_ACEOF
29823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29824_ACEOF
29825
29826fi
29827done
29828
29829
29830for ac_func in socket
29831do
29832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29833echo "$as_me:$LINENO: checking for $ac_func" >&5
29834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29835if eval "test \"\${$as_ac_var+set}\" = set"; then
29836  echo $ECHO_N "(cached) $ECHO_C" >&6
29837else
29838  cat >conftest.$ac_ext <<_ACEOF
29839/* confdefs.h.  */
29840_ACEOF
29841cat confdefs.h >>conftest.$ac_ext
29842cat >>conftest.$ac_ext <<_ACEOF
29843/* end confdefs.h.  */
29844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29846#define $ac_func innocuous_$ac_func
29847
29848/* System header to define __stub macros and hopefully few prototypes,
29849    which can conflict with char $ac_func (); below.
29850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29851    <limits.h> exists even on freestanding compilers.  */
29852
29853#ifdef __STDC__
29854# include <limits.h>
29855#else
29856# include <assert.h>
29857#endif
29858
29859#undef $ac_func
29860
29861/* Override any gcc2 internal prototype to avoid an error.  */
29862#ifdef __cplusplus
29863extern "C"
29864{
29865#endif
29866/* We use char because int might match the return type of a gcc2
29867   builtin and then its argument prototype would still apply.  */
29868char $ac_func ();
29869/* The GNU C library defines this for functions which it implements
29870    to always fail with ENOSYS.  Some functions are actually named
29871    something starting with __ and the normal name is an alias.  */
29872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29873choke me
29874#else
29875char (*f) () = $ac_func;
29876#endif
29877#ifdef __cplusplus
29878}
29879#endif
29880
29881int
29882main ()
29883{
29884return f != $ac_func;
29885  ;
29886  return 0;
29887}
29888_ACEOF
29889rm -f conftest.$ac_objext conftest$ac_exeext
29890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29891  (eval $ac_link) 2>conftest.er1
29892  ac_status=$?
29893  grep -v '^ *+' conftest.er1 >conftest.err
29894  rm -f conftest.er1
29895  cat conftest.err >&5
29896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897  (exit $ac_status); } &&
29898	 { ac_try='test -z "$ac_c_werror_flag"
29899			 || test ! -s conftest.err'
29900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901  (eval $ac_try) 2>&5
29902  ac_status=$?
29903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904  (exit $ac_status); }; } &&
29905	 { ac_try='test -s conftest$ac_exeext'
29906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907  (eval $ac_try) 2>&5
29908  ac_status=$?
29909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910  (exit $ac_status); }; }; then
29911  eval "$as_ac_var=yes"
29912else
29913  echo "$as_me: failed program was:" >&5
29914sed 's/^/| /' conftest.$ac_ext >&5
29915
29916eval "$as_ac_var=no"
29917fi
29918rm -f conftest.err conftest.$ac_objext \
29919      conftest$ac_exeext conftest.$ac_ext
29920fi
29921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29923if test `eval echo '${'$as_ac_var'}'` = yes; then
29924  cat >>confdefs.h <<_ACEOF
29925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29926_ACEOF
29927
29928else
29929
29930echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
29931echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
29932if test "${ac_cv_lib_socket_socket+set}" = set; then
29933  echo $ECHO_N "(cached) $ECHO_C" >&6
29934else
29935  ac_check_lib_save_LIBS=$LIBS
29936LIBS="-lsocket  $LIBS"
29937cat >conftest.$ac_ext <<_ACEOF
29938/* confdefs.h.  */
29939_ACEOF
29940cat confdefs.h >>conftest.$ac_ext
29941cat >>conftest.$ac_ext <<_ACEOF
29942/* end confdefs.h.  */
29943
29944/* Override any gcc2 internal prototype to avoid an error.  */
29945#ifdef __cplusplus
29946extern "C"
29947#endif
29948/* We use char because int might match the return type of a gcc2
29949   builtin and then its argument prototype would still apply.  */
29950char socket ();
29951int
29952main ()
29953{
29954socket ();
29955  ;
29956  return 0;
29957}
29958_ACEOF
29959rm -f conftest.$ac_objext conftest$ac_exeext
29960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29961  (eval $ac_link) 2>conftest.er1
29962  ac_status=$?
29963  grep -v '^ *+' conftest.er1 >conftest.err
29964  rm -f conftest.er1
29965  cat conftest.err >&5
29966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967  (exit $ac_status); } &&
29968	 { ac_try='test -z "$ac_c_werror_flag"
29969			 || test ! -s conftest.err'
29970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29971  (eval $ac_try) 2>&5
29972  ac_status=$?
29973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974  (exit $ac_status); }; } &&
29975	 { ac_try='test -s conftest$ac_exeext'
29976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977  (eval $ac_try) 2>&5
29978  ac_status=$?
29979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980  (exit $ac_status); }; }; then
29981  ac_cv_lib_socket_socket=yes
29982else
29983  echo "$as_me: failed program was:" >&5
29984sed 's/^/| /' conftest.$ac_ext >&5
29985
29986ac_cv_lib_socket_socket=no
29987fi
29988rm -f conftest.err conftest.$ac_objext \
29989      conftest$ac_exeext conftest.$ac_ext
29990LIBS=$ac_check_lib_save_LIBS
29991fi
29992echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
29993echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
29994if test $ac_cv_lib_socket_socket = yes; then
29995  cat >>confdefs.h <<_ACEOF
29996#define HAVE_LIBSOCKET 1
29997_ACEOF
29998
29999  LIBS="-lsocket $LIBS"
30000
30001fi
30002
30003fi
30004done
30005
30006
30007for ac_func in sqrt
30008do
30009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30010echo "$as_me:$LINENO: checking for $ac_func" >&5
30011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30012if eval "test \"\${$as_ac_var+set}\" = set"; then
30013  echo $ECHO_N "(cached) $ECHO_C" >&6
30014else
30015  cat >conftest.$ac_ext <<_ACEOF
30016/* confdefs.h.  */
30017_ACEOF
30018cat confdefs.h >>conftest.$ac_ext
30019cat >>conftest.$ac_ext <<_ACEOF
30020/* end confdefs.h.  */
30021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30022   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30023#define $ac_func innocuous_$ac_func
30024
30025/* System header to define __stub macros and hopefully few prototypes,
30026    which can conflict with char $ac_func (); below.
30027    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30028    <limits.h> exists even on freestanding compilers.  */
30029
30030#ifdef __STDC__
30031# include <limits.h>
30032#else
30033# include <assert.h>
30034#endif
30035
30036#undef $ac_func
30037
30038/* Override any gcc2 internal prototype to avoid an error.  */
30039#ifdef __cplusplus
30040extern "C"
30041{
30042#endif
30043/* We use char because int might match the return type of a gcc2
30044   builtin and then its argument prototype would still apply.  */
30045char $ac_func ();
30046/* The GNU C library defines this for functions which it implements
30047    to always fail with ENOSYS.  Some functions are actually named
30048    something starting with __ and the normal name is an alias.  */
30049#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30050choke me
30051#else
30052char (*f) () = $ac_func;
30053#endif
30054#ifdef __cplusplus
30055}
30056#endif
30057
30058int
30059main ()
30060{
30061return f != $ac_func;
30062  ;
30063  return 0;
30064}
30065_ACEOF
30066rm -f conftest.$ac_objext conftest$ac_exeext
30067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30068  (eval $ac_link) 2>conftest.er1
30069  ac_status=$?
30070  grep -v '^ *+' conftest.er1 >conftest.err
30071  rm -f conftest.er1
30072  cat conftest.err >&5
30073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074  (exit $ac_status); } &&
30075	 { ac_try='test -z "$ac_c_werror_flag"
30076			 || test ! -s conftest.err'
30077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30078  (eval $ac_try) 2>&5
30079  ac_status=$?
30080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081  (exit $ac_status); }; } &&
30082	 { ac_try='test -s conftest$ac_exeext'
30083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30084  (eval $ac_try) 2>&5
30085  ac_status=$?
30086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087  (exit $ac_status); }; }; then
30088  eval "$as_ac_var=yes"
30089else
30090  echo "$as_me: failed program was:" >&5
30091sed 's/^/| /' conftest.$ac_ext >&5
30092
30093eval "$as_ac_var=no"
30094fi
30095rm -f conftest.err conftest.$ac_objext \
30096      conftest$ac_exeext conftest.$ac_ext
30097fi
30098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30099echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30100if test `eval echo '${'$as_ac_var'}'` = yes; then
30101  cat >>confdefs.h <<_ACEOF
30102#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30103_ACEOF
30104
30105else
30106
30107echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
30108echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
30109if test "${ac_cv_lib_m_sqrt+set}" = set; then
30110  echo $ECHO_N "(cached) $ECHO_C" >&6
30111else
30112  ac_check_lib_save_LIBS=$LIBS
30113LIBS="-lm  $LIBS"
30114cat >conftest.$ac_ext <<_ACEOF
30115/* confdefs.h.  */
30116_ACEOF
30117cat confdefs.h >>conftest.$ac_ext
30118cat >>conftest.$ac_ext <<_ACEOF
30119/* end confdefs.h.  */
30120
30121/* Override any gcc2 internal prototype to avoid an error.  */
30122#ifdef __cplusplus
30123extern "C"
30124#endif
30125/* We use char because int might match the return type of a gcc2
30126   builtin and then its argument prototype would still apply.  */
30127char sqrt ();
30128int
30129main ()
30130{
30131sqrt ();
30132  ;
30133  return 0;
30134}
30135_ACEOF
30136rm -f conftest.$ac_objext conftest$ac_exeext
30137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30138  (eval $ac_link) 2>conftest.er1
30139  ac_status=$?
30140  grep -v '^ *+' conftest.er1 >conftest.err
30141  rm -f conftest.er1
30142  cat conftest.err >&5
30143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144  (exit $ac_status); } &&
30145	 { ac_try='test -z "$ac_c_werror_flag"
30146			 || test ! -s conftest.err'
30147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148  (eval $ac_try) 2>&5
30149  ac_status=$?
30150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151  (exit $ac_status); }; } &&
30152	 { ac_try='test -s conftest$ac_exeext'
30153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154  (eval $ac_try) 2>&5
30155  ac_status=$?
30156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157  (exit $ac_status); }; }; then
30158  ac_cv_lib_m_sqrt=yes
30159else
30160  echo "$as_me: failed program was:" >&5
30161sed 's/^/| /' conftest.$ac_ext >&5
30162
30163ac_cv_lib_m_sqrt=no
30164fi
30165rm -f conftest.err conftest.$ac_objext \
30166      conftest$ac_exeext conftest.$ac_ext
30167LIBS=$ac_check_lib_save_LIBS
30168fi
30169echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
30170echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
30171if test $ac_cv_lib_m_sqrt = yes; then
30172  cat >>confdefs.h <<_ACEOF
30173#define HAVE_LIBM 1
30174_ACEOF
30175
30176  LIBS="-lm $LIBS"
30177
30178fi
30179
30180fi
30181done
30182
30183
30184for ac_func in strrchr
30185do
30186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30187echo "$as_me:$LINENO: checking for $ac_func" >&5
30188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30189if eval "test \"\${$as_ac_var+set}\" = set"; then
30190  echo $ECHO_N "(cached) $ECHO_C" >&6
30191else
30192  cat >conftest.$ac_ext <<_ACEOF
30193/* confdefs.h.  */
30194_ACEOF
30195cat confdefs.h >>conftest.$ac_ext
30196cat >>conftest.$ac_ext <<_ACEOF
30197/* end confdefs.h.  */
30198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30199   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30200#define $ac_func innocuous_$ac_func
30201
30202/* System header to define __stub macros and hopefully few prototypes,
30203    which can conflict with char $ac_func (); below.
30204    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30205    <limits.h> exists even on freestanding compilers.  */
30206
30207#ifdef __STDC__
30208# include <limits.h>
30209#else
30210# include <assert.h>
30211#endif
30212
30213#undef $ac_func
30214
30215/* Override any gcc2 internal prototype to avoid an error.  */
30216#ifdef __cplusplus
30217extern "C"
30218{
30219#endif
30220/* We use char because int might match the return type of a gcc2
30221   builtin and then its argument prototype would still apply.  */
30222char $ac_func ();
30223/* The GNU C library defines this for functions which it implements
30224    to always fail with ENOSYS.  Some functions are actually named
30225    something starting with __ and the normal name is an alias.  */
30226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30227choke me
30228#else
30229char (*f) () = $ac_func;
30230#endif
30231#ifdef __cplusplus
30232}
30233#endif
30234
30235int
30236main ()
30237{
30238return f != $ac_func;
30239  ;
30240  return 0;
30241}
30242_ACEOF
30243rm -f conftest.$ac_objext conftest$ac_exeext
30244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30245  (eval $ac_link) 2>conftest.er1
30246  ac_status=$?
30247  grep -v '^ *+' conftest.er1 >conftest.err
30248  rm -f conftest.er1
30249  cat conftest.err >&5
30250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251  (exit $ac_status); } &&
30252	 { ac_try='test -z "$ac_c_werror_flag"
30253			 || test ! -s conftest.err'
30254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30255  (eval $ac_try) 2>&5
30256  ac_status=$?
30257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258  (exit $ac_status); }; } &&
30259	 { ac_try='test -s conftest$ac_exeext'
30260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30261  (eval $ac_try) 2>&5
30262  ac_status=$?
30263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264  (exit $ac_status); }; }; then
30265  eval "$as_ac_var=yes"
30266else
30267  echo "$as_me: failed program was:" >&5
30268sed 's/^/| /' conftest.$ac_ext >&5
30269
30270eval "$as_ac_var=no"
30271fi
30272rm -f conftest.err conftest.$ac_objext \
30273      conftest$ac_exeext conftest.$ac_ext
30274fi
30275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30277if test `eval echo '${'$as_ac_var'}'` = yes; then
30278  cat >>confdefs.h <<_ACEOF
30279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30280_ACEOF
30281
30282fi
30283done
30284
30285
30286case "$host" in
30287 *-*-hpux10.*)	# at least for hppa2.0-hp-hpux10.20
30288    case "$GCC" in
30289     yes)
30290	;;
30291     *) CFLAGS="$CFLAGS -Wp,-H18816"
30292	;;
30293    esac
30294    ;;
30295 *-*-linux*)
30296    CFLAGS="$CFLAGS -DADJTIME_MISSING"
30297    ;;
30298 *-*-sunos*)
30299    CFLAGS="$CFLAGS -DNONBLOCK_BROKEN"
30300    ;;
30301esac
30302
30303echo "$as_me:$LINENO: checking for bin subdirectory" >&5
30304echo $ECHO_N "checking for bin subdirectory... $ECHO_C" >&6
30305
30306# Check whether --with-binsubdir or --without-binsubdir was given.
30307if test "${with_binsubdir+set}" = set; then
30308  withval="$with_binsubdir"
30309  use_binsubdir="$withval"
30310else
30311  use_binsubdir="bin"
30312fi;
30313
30314case "$use_binsubdir" in
30315 bin)
30316    ;;
30317 sbin)
30318    ;;
30319 *)
30320    { { echo "$as_me:$LINENO: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&5
30321echo "$as_me: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&2;}
30322   { (exit 1); exit 1; }; }
30323    ;;
30324esac
30325echo "$as_me:$LINENO: result: $use_binsubdir" >&5
30326echo "${ECHO_T}$use_binsubdir" >&6
30327BINSUBDIR=$use_binsubdir
30328
30329
30330          ac_config_files="$ac_config_files Makefile"
30331
30332cat >confcache <<\_ACEOF
30333# This file is a shell script that caches the results of configure
30334# tests run on this system so they can be shared between configure
30335# scripts and configure runs, see configure's option --config-cache.
30336# It is not useful on other systems.  If it contains results you don't
30337# want to keep, you may remove or edit it.
30338#
30339# config.status only pays attention to the cache file if you give it
30340# the --recheck option to rerun configure.
30341#
30342# `ac_cv_env_foo' variables (set or unset) will be overridden when
30343# loading this file, other *unset* `ac_cv_foo' will be assigned the
30344# following values.
30345
30346_ACEOF
30347
30348# The following way of writing the cache mishandles newlines in values,
30349# but we know of no workaround that is simple, portable, and efficient.
30350# So, don't put newlines in cache variables' values.
30351# Ultrix sh set writes to stderr and can't be redirected directly,
30352# and sets the high bit in the cache file unless we assign to the vars.
30353{
30354  (set) 2>&1 |
30355    case `(ac_space=' '; set | grep ac_space) 2>&1` in
30356    *ac_space=\ *)
30357      # `set' does not quote correctly, so add quotes (double-quote
30358      # substitution turns \\\\ into \\, and sed turns \\ into \).
30359      sed -n \
30360	"s/'/'\\\\''/g;
30361	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30362      ;;
30363    *)
30364      # `set' quotes correctly as required by POSIX, so do not add quotes.
30365      sed -n \
30366	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30367      ;;
30368    esac;
30369} |
30370  sed '
30371     t clear
30372     : clear
30373     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30374     t end
30375     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30376     : end' >>confcache
30377if diff $cache_file confcache >/dev/null 2>&1; then :; else
30378  if test -w $cache_file; then
30379    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30380    cat confcache >$cache_file
30381  else
30382    echo "not updating unwritable cache $cache_file"
30383  fi
30384fi
30385rm -f confcache
30386
30387test "x$prefix" = xNONE && prefix=$ac_default_prefix
30388# Let make expand exec_prefix.
30389test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30390
30391# VPATH may cause trouble with some makes, so we remove $(srcdir),
30392# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30393# trailing colons and then remove the whole line if VPATH becomes empty
30394# (actually we leave an empty line to preserve line numbers).
30395if test "x$srcdir" = x.; then
30396  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
30397s/:*\$(srcdir):*/:/;
30398s/:*\${srcdir}:*/:/;
30399s/:*@srcdir@:*/:/;
30400s/^\([^=]*=[	 ]*\):*/\1/;
30401s/:*$//;
30402s/^[^=]*=[	 ]*$//;
30403}'
30404fi
30405
30406DEFS=-DHAVE_CONFIG_H
30407
30408ac_libobjs=
30409ac_ltlibobjs=
30410for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30411  # 1. Remove the extension, and $U if already installed.
30412  ac_i=`echo "$ac_i" |
30413	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30414  # 2. Add them.
30415  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30416  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30417done
30418LIBOBJS=$ac_libobjs
30419
30420LTLIBOBJS=$ac_ltlibobjs
30421
30422
30423if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30424  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30425Usually this means the macro was only invoked conditionally." >&5
30426echo "$as_me: error: conditional \"AMDEP\" was never defined.
30427Usually this means the macro was only invoked conditionally." >&2;}
30428   { (exit 1); exit 1; }; }
30429fi
30430if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30431  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30432Usually this means the macro was only invoked conditionally." >&5
30433echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30434Usually this means the macro was only invoked conditionally." >&2;}
30435   { (exit 1); exit 1; }; }
30436fi
30437if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30438  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30439Usually this means the macro was only invoked conditionally." >&5
30440echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30441Usually this means the macro was only invoked conditionally." >&2;}
30442   { (exit 1); exit 1; }; }
30443fi
30444if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
30445  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
30446Usually this means the macro was only invoked conditionally." >&5
30447echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
30448Usually this means the macro was only invoked conditionally." >&2;}
30449   { (exit 1); exit 1; }; }
30450fi
30451if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
30452  { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
30453Usually this means the macro was only invoked conditionally." >&5
30454echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
30455Usually this means the macro was only invoked conditionally." >&2;}
30456   { (exit 1); exit 1; }; }
30457fi
30458
30459: ${CONFIG_STATUS=./config.status}
30460ac_clean_files_save=$ac_clean_files
30461ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30462{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30463echo "$as_me: creating $CONFIG_STATUS" >&6;}
30464cat >$CONFIG_STATUS <<_ACEOF
30465#! $SHELL
30466# Generated by $as_me.
30467# Run this file to recreate the current configuration.
30468# Compiler output produced by configure, useful for debugging
30469# configure, is in config.log if it exists.
30470
30471debug=false
30472ac_cs_recheck=false
30473ac_cs_silent=false
30474SHELL=\${CONFIG_SHELL-$SHELL}
30475_ACEOF
30476
30477cat >>$CONFIG_STATUS <<\_ACEOF
30478## --------------------- ##
30479## M4sh Initialization.  ##
30480## --------------------- ##
30481
30482# Be Bourne compatible
30483if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30484  emulate sh
30485  NULLCMD=:
30486  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30487  # is contrary to our usage.  Disable this feature.
30488  alias -g '${1+"$@"}'='"$@"'
30489elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30490  set -o posix
30491fi
30492DUALCASE=1; export DUALCASE # for MKS sh
30493
30494# Support unset when possible.
30495if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30496  as_unset=unset
30497else
30498  as_unset=false
30499fi
30500
30501
30502# Work around bugs in pre-3.0 UWIN ksh.
30503$as_unset ENV MAIL MAILPATH
30504PS1='$ '
30505PS2='> '
30506PS4='+ '
30507
30508# NLS nuisances.
30509for as_var in \
30510  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30511  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30512  LC_TELEPHONE LC_TIME
30513do
30514  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30515    eval $as_var=C; export $as_var
30516  else
30517    $as_unset $as_var
30518  fi
30519done
30520
30521# Required to use basename.
30522if expr a : '\(a\)' >/dev/null 2>&1; then
30523  as_expr=expr
30524else
30525  as_expr=false
30526fi
30527
30528if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30529  as_basename=basename
30530else
30531  as_basename=false
30532fi
30533
30534
30535# Name of the executable.
30536as_me=`$as_basename "$0" ||
30537$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30538	 X"$0" : 'X\(//\)$' \| \
30539	 X"$0" : 'X\(/\)$' \| \
30540	 .     : '\(.\)' 2>/dev/null ||
30541echo X/"$0" |
30542    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30543  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
30544  	  /^X\/\(\/\).*/{ s//\1/; q; }
30545  	  s/.*/./; q'`
30546
30547
30548# PATH needs CR, and LINENO needs CR and PATH.
30549# Avoid depending upon Character Ranges.
30550as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30551as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30552as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30553as_cr_digits='0123456789'
30554as_cr_alnum=$as_cr_Letters$as_cr_digits
30555
30556# The user is always right.
30557if test "${PATH_SEPARATOR+set}" != set; then
30558  echo "#! /bin/sh" >conf$$.sh
30559  echo  "exit 0"   >>conf$$.sh
30560  chmod +x conf$$.sh
30561  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30562    PATH_SEPARATOR=';'
30563  else
30564    PATH_SEPARATOR=:
30565  fi
30566  rm -f conf$$.sh
30567fi
30568
30569
30570  as_lineno_1=$LINENO
30571  as_lineno_2=$LINENO
30572  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30573  test "x$as_lineno_1" != "x$as_lineno_2" &&
30574  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30575  # Find who we are.  Look in the path if we contain no path at all
30576  # relative or not.
30577  case $0 in
30578    *[\\/]* ) as_myself=$0 ;;
30579    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580for as_dir in $PATH
30581do
30582  IFS=$as_save_IFS
30583  test -z "$as_dir" && as_dir=.
30584  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30585done
30586
30587       ;;
30588  esac
30589  # We did not find ourselves, most probably we were run as `sh COMMAND'
30590  # in which case we are not to be found in the path.
30591  if test "x$as_myself" = x; then
30592    as_myself=$0
30593  fi
30594  if test ! -f "$as_myself"; then
30595    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30596echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30597   { (exit 1); exit 1; }; }
30598  fi
30599  case $CONFIG_SHELL in
30600  '')
30601    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30602for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30603do
30604  IFS=$as_save_IFS
30605  test -z "$as_dir" && as_dir=.
30606  for as_base in sh bash ksh sh5; do
30607	 case $as_dir in
30608	 /*)
30609	   if ("$as_dir/$as_base" -c '
30610  as_lineno_1=$LINENO
30611  as_lineno_2=$LINENO
30612  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30613  test "x$as_lineno_1" != "x$as_lineno_2" &&
30614  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30615	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30616	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30617	     CONFIG_SHELL=$as_dir/$as_base
30618	     export CONFIG_SHELL
30619	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30620	   fi;;
30621	 esac
30622       done
30623done
30624;;
30625  esac
30626
30627  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30628  # uniformly replaced by the line number.  The first 'sed' inserts a
30629  # line-number line before each line; the second 'sed' does the real
30630  # work.  The second script uses 'N' to pair each line-number line
30631  # with the numbered line, and appends trailing '-' during
30632  # substitution so that $LINENO is not a special case at line end.
30633  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30634  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30635  sed '=' <$as_myself |
30636    sed '
30637      N
30638      s,$,-,
30639      : loop
30640      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30641      t loop
30642      s,-$,,
30643      s,^['$as_cr_digits']*\n,,
30644    ' >$as_me.lineno &&
30645  chmod +x $as_me.lineno ||
30646    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30647echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30648   { (exit 1); exit 1; }; }
30649
30650  # Don't try to exec as it changes $[0], causing all sort of problems
30651  # (the dirname of $[0] is not the place where we might find the
30652  # original and so on.  Autoconf is especially sensible to this).
30653  . ./$as_me.lineno
30654  # Exit status is that of the last command.
30655  exit
30656}
30657
30658
30659case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30660  *c*,-n*) ECHO_N= ECHO_C='
30661' ECHO_T='	' ;;
30662  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30663  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30664esac
30665
30666if expr a : '\(a\)' >/dev/null 2>&1; then
30667  as_expr=expr
30668else
30669  as_expr=false
30670fi
30671
30672rm -f conf$$ conf$$.exe conf$$.file
30673echo >conf$$.file
30674if ln -s conf$$.file conf$$ 2>/dev/null; then
30675  # We could just check for DJGPP; but this test a) works b) is more generic
30676  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30677  if test -f conf$$.exe; then
30678    # Don't use ln at all; we don't have any links
30679    as_ln_s='cp -p'
30680  else
30681    as_ln_s='ln -s'
30682  fi
30683elif ln conf$$.file conf$$ 2>/dev/null; then
30684  as_ln_s=ln
30685else
30686  as_ln_s='cp -p'
30687fi
30688rm -f conf$$ conf$$.exe conf$$.file
30689
30690if mkdir -p . 2>/dev/null; then
30691  as_mkdir_p=:
30692else
30693  test -d ./-p && rmdir ./-p
30694  as_mkdir_p=false
30695fi
30696
30697as_executable_p="test -f"
30698
30699# Sed expression to map a string onto a valid CPP name.
30700as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30701
30702# Sed expression to map a string onto a valid variable name.
30703as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30704
30705
30706# IFS
30707# We need space, tab and new line, in precisely that order.
30708as_nl='
30709'
30710IFS=" 	$as_nl"
30711
30712# CDPATH.
30713$as_unset CDPATH
30714
30715exec 6>&1
30716
30717# Open the log real soon, to keep \$[0] and so on meaningful, and to
30718# report actual input values of CONFIG_FILES etc. instead of their
30719# values after options handling.  Logging --version etc. is OK.
30720exec 5>>config.log
30721{
30722  echo
30723  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30724## Running $as_me. ##
30725_ASBOX
30726} >&5
30727cat >&5 <<_CSEOF
30728
30729This file was extended by $as_me, which was
30730generated by GNU Autoconf 2.59.  Invocation command line was
30731
30732  CONFIG_FILES    = $CONFIG_FILES
30733  CONFIG_HEADERS  = $CONFIG_HEADERS
30734  CONFIG_LINKS    = $CONFIG_LINKS
30735  CONFIG_COMMANDS = $CONFIG_COMMANDS
30736  $ $0 $@
30737
30738_CSEOF
30739echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30740echo >&5
30741_ACEOF
30742
30743# Files that config.status was made for.
30744if test -n "$ac_config_files"; then
30745  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30746fi
30747
30748if test -n "$ac_config_headers"; then
30749  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30750fi
30751
30752if test -n "$ac_config_links"; then
30753  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30754fi
30755
30756if test -n "$ac_config_commands"; then
30757  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30758fi
30759
30760cat >>$CONFIG_STATUS <<\_ACEOF
30761
30762ac_cs_usage="\
30763\`$as_me' instantiates files from templates according to the
30764current configuration.
30765
30766Usage: $0 [OPTIONS] [FILE]...
30767
30768  -h, --help       print this help, then exit
30769  -V, --version    print version number, then exit
30770  -q, --quiet      do not print progress messages
30771  -d, --debug      don't remove temporary files
30772      --recheck    update $as_me by reconfiguring in the same conditions
30773  --file=FILE[:TEMPLATE]
30774		   instantiate the configuration file FILE
30775  --header=FILE[:TEMPLATE]
30776		   instantiate the configuration header FILE
30777
30778Configuration files:
30779$config_files
30780
30781Configuration headers:
30782$config_headers
30783
30784Configuration commands:
30785$config_commands
30786
30787Report bugs to <bug-autoconf@gnu.org>."
30788_ACEOF
30789
30790cat >>$CONFIG_STATUS <<_ACEOF
30791ac_cs_version="\\
30792config.status
30793configured by $0, generated by GNU Autoconf 2.59,
30794  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30795
30796Copyright (C) 2003 Free Software Foundation, Inc.
30797This config.status script is free software; the Free Software Foundation
30798gives unlimited permission to copy, distribute and modify it."
30799srcdir=$srcdir
30800INSTALL="$INSTALL"
30801_ACEOF
30802
30803cat >>$CONFIG_STATUS <<\_ACEOF
30804# If no file are specified by the user, then we need to provide default
30805# value.  By we need to know if files were specified by the user.
30806ac_need_defaults=:
30807while test $# != 0
30808do
30809  case $1 in
30810  --*=*)
30811    ac_option=`expr "x$1" : 'x\([^=]*\)='`
30812    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30813    ac_shift=:
30814    ;;
30815  -*)
30816    ac_option=$1
30817    ac_optarg=$2
30818    ac_shift=shift
30819    ;;
30820  *) # This is not an option, so the user has probably given explicit
30821     # arguments.
30822     ac_option=$1
30823     ac_need_defaults=false;;
30824  esac
30825
30826  case $ac_option in
30827  # Handling of the options.
30828_ACEOF
30829cat >>$CONFIG_STATUS <<\_ACEOF
30830  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30831    ac_cs_recheck=: ;;
30832  --version | --vers* | -V )
30833    echo "$ac_cs_version"; exit 0 ;;
30834  --he | --h)
30835    # Conflict between --help and --header
30836    { { echo "$as_me:$LINENO: error: ambiguous option: $1
30837Try \`$0 --help' for more information." >&5
30838echo "$as_me: error: ambiguous option: $1
30839Try \`$0 --help' for more information." >&2;}
30840   { (exit 1); exit 1; }; };;
30841  --help | --hel | -h )
30842    echo "$ac_cs_usage"; exit 0 ;;
30843  --debug | --d* | -d )
30844    debug=: ;;
30845  --file | --fil | --fi | --f )
30846    $ac_shift
30847    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30848    ac_need_defaults=false;;
30849  --header | --heade | --head | --hea )
30850    $ac_shift
30851    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30852    ac_need_defaults=false;;
30853  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30854  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30855    ac_cs_silent=: ;;
30856
30857  # This is an error.
30858  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30859Try \`$0 --help' for more information." >&5
30860echo "$as_me: error: unrecognized option: $1
30861Try \`$0 --help' for more information." >&2;}
30862   { (exit 1); exit 1; }; } ;;
30863
30864  *) ac_config_targets="$ac_config_targets $1" ;;
30865
30866  esac
30867  shift
30868done
30869
30870ac_configure_extra_args=
30871
30872if $ac_cs_silent; then
30873  exec 6>/dev/null
30874  ac_configure_extra_args="$ac_configure_extra_args --silent"
30875fi
30876
30877_ACEOF
30878cat >>$CONFIG_STATUS <<_ACEOF
30879if \$ac_cs_recheck; then
30880  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30881  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30882fi
30883
30884_ACEOF
30885
30886cat >>$CONFIG_STATUS <<_ACEOF
30887#
30888# INIT-COMMANDS section.
30889#
30890
30891AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30892
30893_ACEOF
30894
30895
30896
30897cat >>$CONFIG_STATUS <<\_ACEOF
30898for ac_config_target in $ac_config_targets
30899do
30900  case "$ac_config_target" in
30901  # Handling of arguments.
30902  "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
30903  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30904  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30905  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30906  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30907echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30908   { (exit 1); exit 1; }; };;
30909  esac
30910done
30911
30912# If the user did not use the arguments to specify the items to instantiate,
30913# then the envvar interface is used.  Set only those that are not.
30914# We use the long form for the default assignment because of an extremely
30915# bizarre bug on SunOS 4.1.3.
30916if $ac_need_defaults; then
30917  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30918  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30919  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30920fi
30921
30922# Have a temporary directory for convenience.  Make it in the build tree
30923# simply because there is no reason to put it here, and in addition,
30924# creating and moving files from /tmp can sometimes cause problems.
30925# Create a temporary directory, and hook for its removal unless debugging.
30926$debug ||
30927{
30928  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30929  trap '{ (exit 1); exit 1; }' 1 2 13 15
30930}
30931
30932# Create a (secure) tmp directory for tmp files.
30933
30934{
30935  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30936  test -n "$tmp" && test -d "$tmp"
30937}  ||
30938{
30939  tmp=./confstat$$-$RANDOM
30940  (umask 077 && mkdir $tmp)
30941} ||
30942{
30943   echo "$me: cannot create a temporary directory in ." >&2
30944   { (exit 1); exit 1; }
30945}
30946
30947_ACEOF
30948
30949cat >>$CONFIG_STATUS <<_ACEOF
30950
30951#
30952# CONFIG_FILES section.
30953#
30954
30955# No need to generate the scripts if there are no CONFIG_FILES.
30956# This happens for instance when ./config.status config.h
30957if test -n "\$CONFIG_FILES"; then
30958  # Protect against being on the right side of a sed subst in config.status.
30959  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30960   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30961s,@SHELL@,$SHELL,;t t
30962s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30963s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30964s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30965s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30966s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30967s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30968s,@exec_prefix@,$exec_prefix,;t t
30969s,@prefix@,$prefix,;t t
30970s,@program_transform_name@,$program_transform_name,;t t
30971s,@bindir@,$bindir,;t t
30972s,@sbindir@,$sbindir,;t t
30973s,@libexecdir@,$libexecdir,;t t
30974s,@datadir@,$datadir,;t t
30975s,@sysconfdir@,$sysconfdir,;t t
30976s,@sharedstatedir@,$sharedstatedir,;t t
30977s,@localstatedir@,$localstatedir,;t t
30978s,@libdir@,$libdir,;t t
30979s,@includedir@,$includedir,;t t
30980s,@oldincludedir@,$oldincludedir,;t t
30981s,@infodir@,$infodir,;t t
30982s,@mandir@,$mandir,;t t
30983s,@build_alias@,$build_alias,;t t
30984s,@host_alias@,$host_alias,;t t
30985s,@target_alias@,$target_alias,;t t
30986s,@DEFS@,$DEFS,;t t
30987s,@ECHO_C@,$ECHO_C,;t t
30988s,@ECHO_N@,$ECHO_N,;t t
30989s,@ECHO_T@,$ECHO_T,;t t
30990s,@LIBS@,$LIBS,;t t
30991s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30992s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30993s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30994s,@CYGPATH_W@,$CYGPATH_W,;t t
30995s,@PACKAGE@,$PACKAGE,;t t
30996s,@VERSION@,$VERSION,;t t
30997s,@ACLOCAL@,$ACLOCAL,;t t
30998s,@AUTOCONF@,$AUTOCONF,;t t
30999s,@AUTOMAKE@,$AUTOMAKE,;t t
31000s,@AUTOHEADER@,$AUTOHEADER,;t t
31001s,@MAKEINFO@,$MAKEINFO,;t t
31002s,@install_sh@,$install_sh,;t t
31003s,@STRIP@,$STRIP,;t t
31004s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31005s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31006s,@mkdir_p@,$mkdir_p,;t t
31007s,@AWK@,$AWK,;t t
31008s,@SET_MAKE@,$SET_MAKE,;t t
31009s,@am__leading_dot@,$am__leading_dot,;t t
31010s,@AMTAR@,$AMTAR,;t t
31011s,@am__tar@,$am__tar,;t t
31012s,@am__untar@,$am__untar,;t t
31013s,@build@,$build,;t t
31014s,@build_cpu@,$build_cpu,;t t
31015s,@build_vendor@,$build_vendor,;t t
31016s,@build_os@,$build_os,;t t
31017s,@host@,$host,;t t
31018s,@host_cpu@,$host_cpu,;t t
31019s,@host_vendor@,$host_vendor,;t t
31020s,@host_os@,$host_os,;t t
31021s,@CC@,$CC,;t t
31022s,@CFLAGS@,$CFLAGS,;t t
31023s,@LDFLAGS@,$LDFLAGS,;t t
31024s,@CPPFLAGS@,$CPPFLAGS,;t t
31025s,@ac_ct_CC@,$ac_ct_CC,;t t
31026s,@EXEEXT@,$EXEEXT,;t t
31027s,@OBJEXT@,$OBJEXT,;t t
31028s,@DEPDIR@,$DEPDIR,;t t
31029s,@am__include@,$am__include,;t t
31030s,@am__quote@,$am__quote,;t t
31031s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31032s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31033s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31034s,@CCDEPMODE@,$CCDEPMODE,;t t
31035s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31036s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31037s,@EGREP@,$EGREP,;t t
31038s,@LN_S@,$LN_S,;t t
31039s,@ECHO@,$ECHO,;t t
31040s,@AR@,$AR,;t t
31041s,@ac_ct_AR@,$ac_ct_AR,;t t
31042s,@RANLIB@,$RANLIB,;t t
31043s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31044s,@CPP@,$CPP,;t t
31045s,@CXX@,$CXX,;t t
31046s,@CXXFLAGS@,$CXXFLAGS,;t t
31047s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31048s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31049s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31050s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31051s,@CXXCPP@,$CXXCPP,;t t
31052s,@F77@,$F77,;t t
31053s,@FFLAGS@,$FFLAGS,;t t
31054s,@ac_ct_F77@,$ac_ct_F77,;t t
31055s,@LIBTOOL@,$LIBTOOL,;t t
31056s,@LIBOPTS_DIR@,$LIBOPTS_DIR,;t t
31057s,@INSTALL_LIBOPTS_TRUE@,$INSTALL_LIBOPTS_TRUE,;t t
31058s,@INSTALL_LIBOPTS_FALSE@,$INSTALL_LIBOPTS_FALSE,;t t
31059s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t
31060s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t
31061s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t
31062s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t
31063s,@LIBOBJS@,$LIBOBJS,;t t
31064s,@BINSUBDIR@,$BINSUBDIR,;t t
31065s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31066CEOF
31067
31068_ACEOF
31069
31070  cat >>$CONFIG_STATUS <<\_ACEOF
31071  # Split the substitutions into bite-sized pieces for seds with
31072  # small command number limits, like on Digital OSF/1 and HP-UX.
31073  ac_max_sed_lines=48
31074  ac_sed_frag=1 # Number of current file.
31075  ac_beg=1 # First line for current file.
31076  ac_end=$ac_max_sed_lines # Line after last line for current file.
31077  ac_more_lines=:
31078  ac_sed_cmds=
31079  while $ac_more_lines; do
31080    if test $ac_beg -gt 1; then
31081      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31082    else
31083      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31084    fi
31085    if test ! -s $tmp/subs.frag; then
31086      ac_more_lines=false
31087    else
31088      # The purpose of the label and of the branching condition is to
31089      # speed up the sed processing (if there are no `@' at all, there
31090      # is no need to browse any of the substitutions).
31091      # These are the two extra sed commands mentioned above.
31092      (echo ':t
31093  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31094      if test -z "$ac_sed_cmds"; then
31095	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31096      else
31097	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31098      fi
31099      ac_sed_frag=`expr $ac_sed_frag + 1`
31100      ac_beg=$ac_end
31101      ac_end=`expr $ac_end + $ac_max_sed_lines`
31102    fi
31103  done
31104  if test -z "$ac_sed_cmds"; then
31105    ac_sed_cmds=cat
31106  fi
31107fi # test -n "$CONFIG_FILES"
31108
31109_ACEOF
31110cat >>$CONFIG_STATUS <<\_ACEOF
31111for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31112  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31113  case $ac_file in
31114  - | *:- | *:-:* ) # input from stdin
31115	cat >$tmp/stdin
31116	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31117	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31118  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31119	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31120  * )   ac_file_in=$ac_file.in ;;
31121  esac
31122
31123  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31124  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31125$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31126	 X"$ac_file" : 'X\(//\)[^/]' \| \
31127	 X"$ac_file" : 'X\(//\)$' \| \
31128	 X"$ac_file" : 'X\(/\)' \| \
31129	 .     : '\(.\)' 2>/dev/null ||
31130echo X"$ac_file" |
31131    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31132  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31133  	  /^X\(\/\/\)$/{ s//\1/; q; }
31134  	  /^X\(\/\).*/{ s//\1/; q; }
31135  	  s/.*/./; q'`
31136  { if $as_mkdir_p; then
31137    mkdir -p "$ac_dir"
31138  else
31139    as_dir="$ac_dir"
31140    as_dirs=
31141    while test ! -d "$as_dir"; do
31142      as_dirs="$as_dir $as_dirs"
31143      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31144$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31145	 X"$as_dir" : 'X\(//\)[^/]' \| \
31146	 X"$as_dir" : 'X\(//\)$' \| \
31147	 X"$as_dir" : 'X\(/\)' \| \
31148	 .     : '\(.\)' 2>/dev/null ||
31149echo X"$as_dir" |
31150    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31151  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31152  	  /^X\(\/\/\)$/{ s//\1/; q; }
31153  	  /^X\(\/\).*/{ s//\1/; q; }
31154  	  s/.*/./; q'`
31155    done
31156    test ! -n "$as_dirs" || mkdir $as_dirs
31157  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31158echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31159   { (exit 1); exit 1; }; }; }
31160
31161  ac_builddir=.
31162
31163if test "$ac_dir" != .; then
31164  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31165  # A "../" for each directory in $ac_dir_suffix.
31166  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31167else
31168  ac_dir_suffix= ac_top_builddir=
31169fi
31170
31171case $srcdir in
31172  .)  # No --srcdir option.  We are building in place.
31173    ac_srcdir=.
31174    if test -z "$ac_top_builddir"; then
31175       ac_top_srcdir=.
31176    else
31177       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31178    fi ;;
31179  [\\/]* | ?:[\\/]* )  # Absolute path.
31180    ac_srcdir=$srcdir$ac_dir_suffix;
31181    ac_top_srcdir=$srcdir ;;
31182  *) # Relative path.
31183    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31184    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31185esac
31186
31187# Do not use `cd foo && pwd` to compute absolute paths, because
31188# the directories may not exist.
31189case `pwd` in
31190.) ac_abs_builddir="$ac_dir";;
31191*)
31192  case "$ac_dir" in
31193  .) ac_abs_builddir=`pwd`;;
31194  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31195  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31196  esac;;
31197esac
31198case $ac_abs_builddir in
31199.) ac_abs_top_builddir=${ac_top_builddir}.;;
31200*)
31201  case ${ac_top_builddir}. in
31202  .) ac_abs_top_builddir=$ac_abs_builddir;;
31203  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31204  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31205  esac;;
31206esac
31207case $ac_abs_builddir in
31208.) ac_abs_srcdir=$ac_srcdir;;
31209*)
31210  case $ac_srcdir in
31211  .) ac_abs_srcdir=$ac_abs_builddir;;
31212  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31213  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31214  esac;;
31215esac
31216case $ac_abs_builddir in
31217.) ac_abs_top_srcdir=$ac_top_srcdir;;
31218*)
31219  case $ac_top_srcdir in
31220  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31221  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31222  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31223  esac;;
31224esac
31225
31226
31227  case $INSTALL in
31228  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31229  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31230  esac
31231
31232  if test x"$ac_file" != x-; then
31233    { echo "$as_me:$LINENO: creating $ac_file" >&5
31234echo "$as_me: creating $ac_file" >&6;}
31235    rm -f "$ac_file"
31236  fi
31237  # Let's still pretend it is `configure' which instantiates (i.e., don't
31238  # use $as_me), people would be surprised to read:
31239  #    /* config.h.  Generated by config.status.  */
31240  if test x"$ac_file" = x-; then
31241    configure_input=
31242  else
31243    configure_input="$ac_file.  "
31244  fi
31245  configure_input=$configure_input"Generated from `echo $ac_file_in |
31246				     sed 's,.*/,,'` by configure."
31247
31248  # First look for the input files in the build tree, otherwise in the
31249  # src tree.
31250  ac_file_inputs=`IFS=:
31251    for f in $ac_file_in; do
31252      case $f in
31253      -) echo $tmp/stdin ;;
31254      [\\/$]*)
31255	 # Absolute (can't be DOS-style, as IFS=:)
31256	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31257echo "$as_me: error: cannot find input file: $f" >&2;}
31258   { (exit 1); exit 1; }; }
31259	 echo "$f";;
31260      *) # Relative
31261	 if test -f "$f"; then
31262	   # Build tree
31263	   echo "$f"
31264	 elif test -f "$srcdir/$f"; then
31265	   # Source tree
31266	   echo "$srcdir/$f"
31267	 else
31268	   # /dev/null tree
31269	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31270echo "$as_me: error: cannot find input file: $f" >&2;}
31271   { (exit 1); exit 1; }; }
31272	 fi;;
31273      esac
31274    done` || { (exit 1); exit 1; }
31275_ACEOF
31276cat >>$CONFIG_STATUS <<_ACEOF
31277  sed "$ac_vpsub
31278$extrasub
31279_ACEOF
31280cat >>$CONFIG_STATUS <<\_ACEOF
31281:t
31282/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31283s,@configure_input@,$configure_input,;t t
31284s,@srcdir@,$ac_srcdir,;t t
31285s,@abs_srcdir@,$ac_abs_srcdir,;t t
31286s,@top_srcdir@,$ac_top_srcdir,;t t
31287s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31288s,@builddir@,$ac_builddir,;t t
31289s,@abs_builddir@,$ac_abs_builddir,;t t
31290s,@top_builddir@,$ac_top_builddir,;t t
31291s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31292s,@INSTALL@,$ac_INSTALL,;t t
31293" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31294  rm -f $tmp/stdin
31295  if test x"$ac_file" != x-; then
31296    mv $tmp/out $ac_file
31297  else
31298    cat $tmp/out
31299    rm -f $tmp/out
31300  fi
31301
31302done
31303_ACEOF
31304cat >>$CONFIG_STATUS <<\_ACEOF
31305
31306#
31307# CONFIG_HEADER section.
31308#
31309
31310# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31311# NAME is the cpp macro being defined and VALUE is the value it is being given.
31312#
31313# ac_d sets the value in "#define NAME VALUE" lines.
31314ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
31315ac_dB='[	 ].*$,\1#\2'
31316ac_dC=' '
31317ac_dD=',;t'
31318# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31319ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
31320ac_uB='$,\1#\2define\3'
31321ac_uC=' '
31322ac_uD=',;t'
31323
31324for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31325  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31326  case $ac_file in
31327  - | *:- | *:-:* ) # input from stdin
31328	cat >$tmp/stdin
31329	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31330	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31331  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31332	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31333  * )   ac_file_in=$ac_file.in ;;
31334  esac
31335
31336  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31337echo "$as_me: creating $ac_file" >&6;}
31338
31339  # First look for the input files in the build tree, otherwise in the
31340  # src tree.
31341  ac_file_inputs=`IFS=:
31342    for f in $ac_file_in; do
31343      case $f in
31344      -) echo $tmp/stdin ;;
31345      [\\/$]*)
31346	 # Absolute (can't be DOS-style, as IFS=:)
31347	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31348echo "$as_me: error: cannot find input file: $f" >&2;}
31349   { (exit 1); exit 1; }; }
31350	 # Do quote $f, to prevent DOS paths from being IFS'd.
31351	 echo "$f";;
31352      *) # Relative
31353	 if test -f "$f"; then
31354	   # Build tree
31355	   echo "$f"
31356	 elif test -f "$srcdir/$f"; then
31357	   # Source tree
31358	   echo "$srcdir/$f"
31359	 else
31360	   # /dev/null tree
31361	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31362echo "$as_me: error: cannot find input file: $f" >&2;}
31363   { (exit 1); exit 1; }; }
31364	 fi;;
31365      esac
31366    done` || { (exit 1); exit 1; }
31367  # Remove the trailing spaces.
31368  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
31369
31370_ACEOF
31371
31372# Transform confdefs.h into two sed scripts, `conftest.defines' and
31373# `conftest.undefs', that substitutes the proper values into
31374# config.h.in to produce config.h.  The first handles `#define'
31375# templates, and the second `#undef' templates.
31376# And first: Protect against being on the right side of a sed subst in
31377# config.status.  Protect against being in an unquoted here document
31378# in config.status.
31379rm -f conftest.defines conftest.undefs
31380# Using a here document instead of a string reduces the quoting nightmare.
31381# Putting comments in sed scripts is not portable.
31382#
31383# `end' is used to avoid that the second main sed command (meant for
31384# 0-ary CPP macros) applies to n-ary macro definitions.
31385# See the Autoconf documentation for `clear'.
31386cat >confdef2sed.sed <<\_ACEOF
31387s/[\\&,]/\\&/g
31388s,[\\$`],\\&,g
31389t clear
31390: clear
31391s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31392t end
31393s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31394: end
31395_ACEOF
31396# If some macros were called several times there might be several times
31397# the same #defines, which is useless.  Nevertheless, we may not want to
31398# sort them, since we want the *last* AC-DEFINE to be honored.
31399uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31400sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31401rm -f confdef2sed.sed
31402
31403# This sed command replaces #undef with comments.  This is necessary, for
31404# example, in the case of _POSIX_SOURCE, which is predefined and required
31405# on some systems where configure will not decide to define it.
31406cat >>conftest.undefs <<\_ACEOF
31407s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31408_ACEOF
31409
31410# Break up conftest.defines because some shells have a limit on the size
31411# of here documents, and old seds have small limits too (100 cmds).
31412echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31413echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31414echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31415echo '  :' >>$CONFIG_STATUS
31416rm -f conftest.tail
31417while grep . conftest.defines >/dev/null
31418do
31419  # Write a limited-size here document to $tmp/defines.sed.
31420  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31421  # Speed up: don't consider the non `#define' lines.
31422  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
31423  # Work around the forget-to-reset-the-flag bug.
31424  echo 't clr' >>$CONFIG_STATUS
31425  echo ': clr' >>$CONFIG_STATUS
31426  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31427  echo 'CEOF
31428  sed -f $tmp/defines.sed $tmp/in >$tmp/out
31429  rm -f $tmp/in
31430  mv $tmp/out $tmp/in
31431' >>$CONFIG_STATUS
31432  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31433  rm -f conftest.defines
31434  mv conftest.tail conftest.defines
31435done
31436rm -f conftest.defines
31437echo '  fi # grep' >>$CONFIG_STATUS
31438echo >>$CONFIG_STATUS
31439
31440# Break up conftest.undefs because some shells have a limit on the size
31441# of here documents, and old seds have small limits too (100 cmds).
31442echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31443rm -f conftest.tail
31444while grep . conftest.undefs >/dev/null
31445do
31446  # Write a limited-size here document to $tmp/undefs.sed.
31447  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31448  # Speed up: don't consider the non `#undef'
31449  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
31450  # Work around the forget-to-reset-the-flag bug.
31451  echo 't clr' >>$CONFIG_STATUS
31452  echo ': clr' >>$CONFIG_STATUS
31453  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31454  echo 'CEOF
31455  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31456  rm -f $tmp/in
31457  mv $tmp/out $tmp/in
31458' >>$CONFIG_STATUS
31459  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31460  rm -f conftest.undefs
31461  mv conftest.tail conftest.undefs
31462done
31463rm -f conftest.undefs
31464
31465cat >>$CONFIG_STATUS <<\_ACEOF
31466  # Let's still pretend it is `configure' which instantiates (i.e., don't
31467  # use $as_me), people would be surprised to read:
31468  #    /* config.h.  Generated by config.status.  */
31469  if test x"$ac_file" = x-; then
31470    echo "/* Generated by configure.  */" >$tmp/config.h
31471  else
31472    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31473  fi
31474  cat $tmp/in >>$tmp/config.h
31475  rm -f $tmp/in
31476  if test x"$ac_file" != x-; then
31477    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31478      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31479echo "$as_me: $ac_file is unchanged" >&6;}
31480    else
31481      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31483	 X"$ac_file" : 'X\(//\)[^/]' \| \
31484	 X"$ac_file" : 'X\(//\)$' \| \
31485	 X"$ac_file" : 'X\(/\)' \| \
31486	 .     : '\(.\)' 2>/dev/null ||
31487echo X"$ac_file" |
31488    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31489  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31490  	  /^X\(\/\/\)$/{ s//\1/; q; }
31491  	  /^X\(\/\).*/{ s//\1/; q; }
31492  	  s/.*/./; q'`
31493      { if $as_mkdir_p; then
31494    mkdir -p "$ac_dir"
31495  else
31496    as_dir="$ac_dir"
31497    as_dirs=
31498    while test ! -d "$as_dir"; do
31499      as_dirs="$as_dir $as_dirs"
31500      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31501$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31502	 X"$as_dir" : 'X\(//\)[^/]' \| \
31503	 X"$as_dir" : 'X\(//\)$' \| \
31504	 X"$as_dir" : 'X\(/\)' \| \
31505	 .     : '\(.\)' 2>/dev/null ||
31506echo X"$as_dir" |
31507    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31508  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31509  	  /^X\(\/\/\)$/{ s//\1/; q; }
31510  	  /^X\(\/\).*/{ s//\1/; q; }
31511  	  s/.*/./; q'`
31512    done
31513    test ! -n "$as_dirs" || mkdir $as_dirs
31514  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31515echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31516   { (exit 1); exit 1; }; }; }
31517
31518      rm -f $ac_file
31519      mv $tmp/config.h $ac_file
31520    fi
31521  else
31522    cat $tmp/config.h
31523    rm -f $tmp/config.h
31524  fi
31525# Compute $ac_file's index in $config_headers.
31526_am_stamp_count=1
31527for _am_header in $config_headers :; do
31528  case $_am_header in
31529    $ac_file | $ac_file:* )
31530      break ;;
31531    * )
31532      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31533  esac
31534done
31535echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31536$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31537	 X$ac_file : 'X\(//\)[^/]' \| \
31538	 X$ac_file : 'X\(//\)$' \| \
31539	 X$ac_file : 'X\(/\)' \| \
31540	 .     : '\(.\)' 2>/dev/null ||
31541echo X$ac_file |
31542    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31543  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31544  	  /^X\(\/\/\)$/{ s//\1/; q; }
31545  	  /^X\(\/\).*/{ s//\1/; q; }
31546  	  s/.*/./; q'`/stamp-h$_am_stamp_count
31547done
31548_ACEOF
31549cat >>$CONFIG_STATUS <<\_ACEOF
31550
31551#
31552# CONFIG_COMMANDS section.
31553#
31554for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31555  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31556  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31557  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31558$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31559	 X"$ac_dest" : 'X\(//\)[^/]' \| \
31560	 X"$ac_dest" : 'X\(//\)$' \| \
31561	 X"$ac_dest" : 'X\(/\)' \| \
31562	 .     : '\(.\)' 2>/dev/null ||
31563echo X"$ac_dest" |
31564    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31565  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31566  	  /^X\(\/\/\)$/{ s//\1/; q; }
31567  	  /^X\(\/\).*/{ s//\1/; q; }
31568  	  s/.*/./; q'`
31569  { if $as_mkdir_p; then
31570    mkdir -p "$ac_dir"
31571  else
31572    as_dir="$ac_dir"
31573    as_dirs=
31574    while test ! -d "$as_dir"; do
31575      as_dirs="$as_dir $as_dirs"
31576      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31577$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31578	 X"$as_dir" : 'X\(//\)[^/]' \| \
31579	 X"$as_dir" : 'X\(//\)$' \| \
31580	 X"$as_dir" : 'X\(/\)' \| \
31581	 .     : '\(.\)' 2>/dev/null ||
31582echo X"$as_dir" |
31583    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31584  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31585  	  /^X\(\/\/\)$/{ s//\1/; q; }
31586  	  /^X\(\/\).*/{ s//\1/; q; }
31587  	  s/.*/./; q'`
31588    done
31589    test ! -n "$as_dirs" || mkdir $as_dirs
31590  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31591echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31592   { (exit 1); exit 1; }; }; }
31593
31594  ac_builddir=.
31595
31596if test "$ac_dir" != .; then
31597  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31598  # A "../" for each directory in $ac_dir_suffix.
31599  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31600else
31601  ac_dir_suffix= ac_top_builddir=
31602fi
31603
31604case $srcdir in
31605  .)  # No --srcdir option.  We are building in place.
31606    ac_srcdir=.
31607    if test -z "$ac_top_builddir"; then
31608       ac_top_srcdir=.
31609    else
31610       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31611    fi ;;
31612  [\\/]* | ?:[\\/]* )  # Absolute path.
31613    ac_srcdir=$srcdir$ac_dir_suffix;
31614    ac_top_srcdir=$srcdir ;;
31615  *) # Relative path.
31616    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31617    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31618esac
31619
31620# Do not use `cd foo && pwd` to compute absolute paths, because
31621# the directories may not exist.
31622case `pwd` in
31623.) ac_abs_builddir="$ac_dir";;
31624*)
31625  case "$ac_dir" in
31626  .) ac_abs_builddir=`pwd`;;
31627  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31628  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31629  esac;;
31630esac
31631case $ac_abs_builddir in
31632.) ac_abs_top_builddir=${ac_top_builddir}.;;
31633*)
31634  case ${ac_top_builddir}. in
31635  .) ac_abs_top_builddir=$ac_abs_builddir;;
31636  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31637  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31638  esac;;
31639esac
31640case $ac_abs_builddir in
31641.) ac_abs_srcdir=$ac_srcdir;;
31642*)
31643  case $ac_srcdir in
31644  .) ac_abs_srcdir=$ac_abs_builddir;;
31645  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31646  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31647  esac;;
31648esac
31649case $ac_abs_builddir in
31650.) ac_abs_top_srcdir=$ac_top_srcdir;;
31651*)
31652  case $ac_top_srcdir in
31653  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31654  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31655  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31656  esac;;
31657esac
31658
31659
31660  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31661echo "$as_me: executing $ac_dest commands" >&6;}
31662  case $ac_dest in
31663    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31664  # Strip MF so we end up with the name of the file.
31665  mf=`echo "$mf" | sed -e 's/:.*$//'`
31666  # Check whether this is an Automake generated Makefile or not.
31667  # We used to match only the files named `Makefile.in', but
31668  # some people rename them; so instead we look at the file content.
31669  # Grep'ing the first line is not enough: some people post-process
31670  # each Makefile.in and add a new line on top of each file to say so.
31671  # So let's grep whole file.
31672  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31673    dirpart=`(dirname "$mf") 2>/dev/null ||
31674$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31675	 X"$mf" : 'X\(//\)[^/]' \| \
31676	 X"$mf" : 'X\(//\)$' \| \
31677	 X"$mf" : 'X\(/\)' \| \
31678	 .     : '\(.\)' 2>/dev/null ||
31679echo X"$mf" |
31680    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31681  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31682  	  /^X\(\/\/\)$/{ s//\1/; q; }
31683  	  /^X\(\/\).*/{ s//\1/; q; }
31684  	  s/.*/./; q'`
31685  else
31686    continue
31687  fi
31688  # Extract the definition of DEPDIR, am__include, and am__quote
31689  # from the Makefile without running `make'.
31690  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31691  test -z "$DEPDIR" && continue
31692  am__include=`sed -n 's/^am__include = //p' < "$mf"`
31693  test -z "am__include" && continue
31694  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31695  # When using ansi2knr, U may be empty or an underscore; expand it
31696  U=`sed -n 's/^U = //p' < "$mf"`
31697  # Find all dependency output files, they are included files with
31698  # $(DEPDIR) in their names.  We invoke sed twice because it is the
31699  # simplest approach to changing $(DEPDIR) to its actual value in the
31700  # expansion.
31701  for file in `sed -n "
31702    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31703       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31704    # Make sure the directory exists.
31705    test -f "$dirpart/$file" && continue
31706    fdir=`(dirname "$file") 2>/dev/null ||
31707$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31708	 X"$file" : 'X\(//\)[^/]' \| \
31709	 X"$file" : 'X\(//\)$' \| \
31710	 X"$file" : 'X\(/\)' \| \
31711	 .     : '\(.\)' 2>/dev/null ||
31712echo X"$file" |
31713    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31714  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31715  	  /^X\(\/\/\)$/{ s//\1/; q; }
31716  	  /^X\(\/\).*/{ s//\1/; q; }
31717  	  s/.*/./; q'`
31718    { if $as_mkdir_p; then
31719    mkdir -p $dirpart/$fdir
31720  else
31721    as_dir=$dirpart/$fdir
31722    as_dirs=
31723    while test ! -d "$as_dir"; do
31724      as_dirs="$as_dir $as_dirs"
31725      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31726$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31727	 X"$as_dir" : 'X\(//\)[^/]' \| \
31728	 X"$as_dir" : 'X\(//\)$' \| \
31729	 X"$as_dir" : 'X\(/\)' \| \
31730	 .     : '\(.\)' 2>/dev/null ||
31731echo X"$as_dir" |
31732    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31733  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31734  	  /^X\(\/\/\)$/{ s//\1/; q; }
31735  	  /^X\(\/\).*/{ s//\1/; q; }
31736  	  s/.*/./; q'`
31737    done
31738    test ! -n "$as_dirs" || mkdir $as_dirs
31739  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
31740echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
31741   { (exit 1); exit 1; }; }; }
31742
31743    # echo "creating $dirpart/$file"
31744    echo '# dummy' > "$dirpart/$file"
31745  done
31746done
31747 ;;
31748  esac
31749done
31750_ACEOF
31751
31752cat >>$CONFIG_STATUS <<\_ACEOF
31753
31754{ (exit 0); exit 0; }
31755_ACEOF
31756chmod +x $CONFIG_STATUS
31757ac_clean_files=$ac_clean_files_save
31758
31759
31760# configure is writing to config.log, and then calls config.status.
31761# config.status does its own redirection, appending to config.log.
31762# Unfortunately, on DOS this fails, as config.log is still kept open
31763# by configure, so config.status won't be able to write to it; its
31764# output is simply discarded.  So we exec the FD to /dev/null,
31765# effectively closing config.log, so it can be properly (re)opened and
31766# appended to by config.status.  When coming back to configure, we
31767# need to make the FD available again.
31768if test "$no_create" != yes; then
31769  ac_cs_success=:
31770  ac_config_status_args=
31771  test "$silent" = yes &&
31772    ac_config_status_args="$ac_config_status_args --quiet"
31773  exec 5>/dev/null
31774  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31775  exec 5>>config.log
31776  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31777  # would make configure fail if this is the last instruction.
31778  $ac_cs_success || { (exit 1); exit 1; }
31779fi
31780
31781