1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for lzo 2.03.
4#
5# Report bugs to <markus@oberhumer.com>.
6#
7# Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer.
8# All Rights Reserved.
9# This configure script may be copied, distributed and modified under the
10# terms of the GNU General Public License; see COPYING for more details.
11#
12# Copyright (C) 2003 Free Software Foundation, Inc.
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## --------------------- ##
16## M4sh Initialization.  ##
17## --------------------- ##
18
19# Be Bourne compatible
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21  emulate sh
22  NULLCMD=:
23  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27  set -o posix
28fi
29DUALCASE=1; export DUALCASE # for MKS sh
30
31# Support unset when possible.
32if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33  as_unset=unset
34else
35  as_unset=false
36fi
37
38
39# Work around bugs in pre-3.0 UWIN ksh.
40$as_unset ENV MAIL MAILPATH
41PS1='$ '
42PS2='> '
43PS4='+ '
44
45# NLS nuisances.
46for as_var in \
47  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49  LC_TELEPHONE LC_TIME
50do
51  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52    eval $as_var=C; export $as_var
53  else
54    $as_unset $as_var
55  fi
56done
57
58# Required to use basename.
59if expr a : '\(a\)' >/dev/null 2>&1; then
60  as_expr=expr
61else
62  as_expr=false
63fi
64
65if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66  as_basename=basename
67else
68  as_basename=false
69fi
70
71
72# Name of the executable.
73as_me=`$as_basename "$0" ||
74$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
75	 X"$0" : 'X\(//\)$' \| \
76	 X"$0" : 'X\(/\)$' \| \
77	 .     : '\(.\)' 2>/dev/null ||
78echo X/"$0" |
79    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
80  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
81  	  /^X\/\(\/\).*/{ s//\1/; q; }
82  	  s/.*/./; q'`
83
84
85# PATH needs CR, and LINENO needs CR and PATH.
86# Avoid depending upon Character Ranges.
87as_cr_letters='abcdefghijklmnopqrstuvwxyz'
88as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
89as_cr_Letters=$as_cr_letters$as_cr_LETTERS
90as_cr_digits='0123456789'
91as_cr_alnum=$as_cr_Letters$as_cr_digits
92
93# The user is always right.
94if test "${PATH_SEPARATOR+set}" != set; then
95  echo "#! /bin/sh" >conf$$.sh
96  echo  "exit 0"   >>conf$$.sh
97  chmod +x conf$$.sh
98  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
99    PATH_SEPARATOR=';'
100  else
101    PATH_SEPARATOR=:
102  fi
103  rm -f conf$$.sh
104fi
105
106
107  as_lineno_1=$LINENO
108  as_lineno_2=$LINENO
109  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
110  test "x$as_lineno_1" != "x$as_lineno_2" &&
111  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
112  # Find who we are.  Look in the path if we contain no path at all
113  # relative or not.
114  case $0 in
115    *[\\/]* ) as_myself=$0 ;;
116    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117for as_dir in $PATH
118do
119  IFS=$as_save_IFS
120  test -z "$as_dir" && as_dir=.
121  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122done
123
124       ;;
125  esac
126  # We did not find ourselves, most probably we were run as `sh COMMAND'
127  # in which case we are not to be found in the path.
128  if test "x$as_myself" = x; then
129    as_myself=$0
130  fi
131  if test ! -f "$as_myself"; then
132    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
133   { (exit 1); exit 1; }; }
134  fi
135  case $CONFIG_SHELL in
136  '')
137    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
139do
140  IFS=$as_save_IFS
141  test -z "$as_dir" && as_dir=.
142  for as_base in sh bash ksh sh5; do
143	 case $as_dir in
144	 /*)
145	   if ("$as_dir/$as_base" -c '
146  as_lineno_1=$LINENO
147  as_lineno_2=$LINENO
148  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
149  test "x$as_lineno_1" != "x$as_lineno_2" &&
150  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
151	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
152	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
153	     CONFIG_SHELL=$as_dir/$as_base
154	     export CONFIG_SHELL
155	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156	   fi;;
157	 esac
158       done
159done
160;;
161  esac
162
163  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
164  # uniformly replaced by the line number.  The first 'sed' inserts a
165  # line-number line before each line; the second 'sed' does the real
166  # work.  The second script uses 'N' to pair each line-number line
167  # with the numbered line, and appends trailing '-' during
168  # substitution so that $LINENO is not a special case at line end.
169  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
170  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
171  sed '=' <$as_myself |
172    sed '
173      N
174      s,$,-,
175      : loop
176      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
177      t loop
178      s,-$,,
179      s,^['$as_cr_digits']*\n,,
180    ' >$as_me.lineno &&
181  chmod +x $as_me.lineno ||
182    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
183   { (exit 1); exit 1; }; }
184
185  # Don't try to exec as it changes $[0], causing all sort of problems
186  # (the dirname of $[0] is not the place where we might find the
187  # original and so on.  Autoconf is especially sensible to this).
188  . ./$as_me.lineno
189  # Exit status is that of the last command.
190  exit
191}
192
193
194case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
195  *c*,-n*) ECHO_N= ECHO_C='
196' ECHO_T='	' ;;
197  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
198  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
199esac
200
201if expr a : '\(a\)' >/dev/null 2>&1; then
202  as_expr=expr
203else
204  as_expr=false
205fi
206
207rm -f conf$$ conf$$.exe conf$$.file
208echo >conf$$.file
209if ln -s conf$$.file conf$$ 2>/dev/null; then
210  # We could just check for DJGPP; but this test a) works b) is more generic
211  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
212  if test -f conf$$.exe; then
213    # Don't use ln at all; we don't have any links
214    as_ln_s='cp -p'
215  else
216    as_ln_s='ln -s'
217  fi
218elif ln conf$$.file conf$$ 2>/dev/null; then
219  as_ln_s=ln
220else
221  as_ln_s='cp -p'
222fi
223rm -f conf$$ conf$$.exe conf$$.file
224
225if mkdir -p . 2>/dev/null; then
226  as_mkdir_p=:
227else
228  test -d ./-p && rmdir ./-p
229  as_mkdir_p=false
230fi
231
232as_executable_p="test -f"
233
234# Sed expression to map a string onto a valid CPP name.
235as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
236
237# Sed expression to map a string onto a valid variable name.
238as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239
240
241# IFS
242# We need space, tab and new line, in precisely that order.
243as_nl='
244'
245IFS=" 	$as_nl"
246
247# CDPATH.
248$as_unset CDPATH
249
250
251
252# Check that we are running under the correct shell.
253SHELL=${CONFIG_SHELL-/bin/sh}
254
255case X$ECHO in
256X*--fallback-echo)
257  # Remove one level of quotation (which was required for Make).
258  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259  ;;
260esac
261
262echo=${ECHO-echo}
263if test "X$1" = X--no-reexec; then
264  # Discard the --no-reexec flag, and continue.
265  shift
266elif test "X$1" = X--fallback-echo; then
267  # Avoid inline document here, it may be left over
268  :
269elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
270  # Yippee, $echo works!
271  :
272else
273  # Restart under the correct shell.
274  exec $SHELL "$0" --no-reexec ${1+"$@"}
275fi
276
277if test "X$1" = X--fallback-echo; then
278  # used as fallback echo
279  shift
280  cat <<EOF
281$*
282EOF
283  exit 0
284fi
285
286# The HP-UX ksh and POSIX shell print the target directory to stdout
287# if CDPATH is set.
288(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
289
290if test -z "$ECHO"; then
291if test "X${echo_test_string+set}" != Xset; then
292# find a string as large as possible, as long as the shell can cope with it
293  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
296       echo_test_string=`eval $cmd` &&
297       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298    then
299      break
300    fi
301  done
302fi
303
304if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306   test "X$echo_testing_string" = "X$echo_test_string"; then
307  :
308else
309  # The Solaris, AIX, and Digital Unix default echo programs unquote
310  # backslashes.  This makes it impossible to quote backslashes using
311  #   echo "$something" | sed 's/\\/\\\\/g'
312  #
313  # So, first we look for a working echo in the user's PATH.
314
315  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316  for dir in $PATH /usr/ucb; do
317    IFS="$lt_save_ifs"
318    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
319       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
320       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
321       test "X$echo_testing_string" = "X$echo_test_string"; then
322      echo="$dir/echo"
323      break
324    fi
325  done
326  IFS="$lt_save_ifs"
327
328  if test "X$echo" = Xecho; then
329    # We didn't find a better echo, so look for alternatives.
330    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
331       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
332       test "X$echo_testing_string" = "X$echo_test_string"; then
333      # This shell has a builtin print -r that does the trick.
334      echo='print -r'
335    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
336	 test "X$CONFIG_SHELL" != X/bin/ksh; then
337      # If we have ksh, try running configure again with it.
338      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
339      export ORIGINAL_CONFIG_SHELL
340      CONFIG_SHELL=/bin/ksh
341      export CONFIG_SHELL
342      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343    else
344      # Try using printf.
345      echo='printf %s\n'
346      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
347	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
348	 test "X$echo_testing_string" = "X$echo_test_string"; then
349	# Cool, printf works
350	:
351      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
352	   test "X$echo_testing_string" = 'X\t' &&
353	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
354	   test "X$echo_testing_string" = "X$echo_test_string"; then
355	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
356	export CONFIG_SHELL
357	SHELL="$CONFIG_SHELL"
358	export SHELL
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
361	   test "X$echo_testing_string" = 'X\t' &&
362	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
363	   test "X$echo_testing_string" = "X$echo_test_string"; then
364	echo="$CONFIG_SHELL $0 --fallback-echo"
365      else
366	# maybe with a smaller string...
367	prev=:
368
369	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
370	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371	  then
372	    break
373	  fi
374	  prev="$cmd"
375	done
376
377	if test "$prev" != 'sed 50q "$0"'; then
378	  echo_test_string=`eval $prev`
379	  export echo_test_string
380	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
381	else
382	  # Oops.  We lost completely, so just stick with echo.
383	  echo=echo
384	fi
385      fi
386    fi
387  fi
388fi
389fi
390
391# Copy echo and quote the copy suitably for passing to libtool from
392# the Makefile, instead of quoting the original, which is used later.
393ECHO=$echo
394if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
395   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396fi
397
398
399
400
401tagnames=${tagnames+${tagnames},}CXX
402
403tagnames=${tagnames+${tagnames},}F77
404
405# Name of the host.
406# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
407# so uname gets run too.
408ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409
410exec 6>&1
411
412#
413# Initializations.
414#
415ac_default_prefix=/usr/local
416ac_config_libobj_dir=.
417cross_compiling=no
418subdirs=
419MFLAGS=
420MAKEFLAGS=
421SHELL=${CONFIG_SHELL-/bin/sh}
422
423# Maximum number of lines to put in a shell here document.
424# This variable seems obsolete.  It should probably be removed, and
425# only ac_max_sed_lines should be used.
426: ${ac_max_here_lines=38}
427
428# Identity of this package.
429PACKAGE_NAME='lzo'
430PACKAGE_TARNAME='lzo'
431PACKAGE_VERSION='2.03'
432PACKAGE_STRING='lzo 2.03'
433PACKAGE_BUGREPORT='markus@oberhumer.com'
434
435ac_unique_file="src/lzo_init.c"
436ac_default_prefix=/usr/local
437# Factoring default headers for most tests.
438ac_includes_default="\
439#include <stdio.h>
440#if HAVE_SYS_TYPES_H
441# include <sys/types.h>
442#endif
443#if HAVE_SYS_STAT_H
444# include <sys/stat.h>
445#endif
446#if STDC_HEADERS
447# include <stdlib.h>
448# include <stddef.h>
449#else
450# if HAVE_STDLIB_H
451#  include <stdlib.h>
452# endif
453#endif
454#if HAVE_STRING_H
455# if !STDC_HEADERS && HAVE_MEMORY_H
456#  include <memory.h>
457# endif
458# include <string.h>
459#endif
460#if HAVE_STRINGS_H
461# include <strings.h>
462#endif
463#if HAVE_INTTYPES_H
464# include <inttypes.h>
465#else
466# if HAVE_STDINT_H
467#  include <stdint.h>
468# endif
469#endif
470#if HAVE_UNISTD_H
471# include <unistd.h>
472#endif"
473
474ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LZO_USE_ASM_TRUE LZO_USE_ASM_FALSE LZO_ASM_VPATH LZO_CPPFLAGS LZO_EXTRA_CPPFLAGS LZO_CFLAGS LZO_EXTRA_CFLAGS configure_CPPFLAGS configure_CFLAGS LIBOBJS LTLIBOBJS'
475ac_subst_files=''
476
477# Initialize some variables set by options.
478ac_init_help=
479ac_init_version=false
480# The variables have the same names as the options, with
481# dashes changed to underlines.
482cache_file=/dev/null
483exec_prefix=NONE
484no_create=
485no_recursion=
486prefix=NONE
487program_prefix=NONE
488program_suffix=NONE
489program_transform_name=s,x,x,
490silent=
491site=
492srcdir=
493verbose=
494x_includes=NONE
495x_libraries=NONE
496
497# Installation directory options.
498# These are left unexpanded so users can "make install exec_prefix=/foo"
499# and all the variables that are supposed to be based on exec_prefix
500# by default will actually change.
501# Use braces instead of parens because sh, perl, etc. also accept them.
502bindir='${exec_prefix}/bin'
503sbindir='${exec_prefix}/sbin'
504libexecdir='${exec_prefix}/libexec'
505datadir='${prefix}/share'
506sysconfdir='${prefix}/etc'
507sharedstatedir='${prefix}/com'
508localstatedir='${prefix}/var'
509libdir='${exec_prefix}/lib'
510includedir='${prefix}/include'
511oldincludedir='/usr/include'
512infodir='${prefix}/info'
513mandir='${prefix}/man'
514
515ac_prev=
516for ac_option
517do
518  # If the previous option needs an argument, assign it.
519  if test -n "$ac_prev"; then
520    eval "$ac_prev=\$ac_option"
521    ac_prev=
522    continue
523  fi
524
525  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
526
527  # Accept the important Cygnus configure options, so we can diagnose typos.
528
529  case $ac_option in
530
531  -bindir | --bindir | --bindi | --bind | --bin | --bi)
532    ac_prev=bindir ;;
533  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
534    bindir=$ac_optarg ;;
535
536  -build | --build | --buil | --bui | --bu)
537    ac_prev=build_alias ;;
538  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
539    build_alias=$ac_optarg ;;
540
541  -cache-file | --cache-file | --cache-fil | --cache-fi \
542  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
543    ac_prev=cache_file ;;
544  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
545  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
546    cache_file=$ac_optarg ;;
547
548  --config-cache | -C)
549    cache_file=config.cache ;;
550
551  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
552    ac_prev=datadir ;;
553  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
554  | --da=*)
555    datadir=$ac_optarg ;;
556
557  -disable-* | --disable-*)
558    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
559    # Reject names that are not valid shell variable names.
560    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562   { (exit 1); exit 1; }; }
563    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564    eval "enable_$ac_feature=no" ;;
565
566  -enable-* | --enable-*)
567    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
568    # Reject names that are not valid shell variable names.
569    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
571   { (exit 1); exit 1; }; }
572    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573    case $ac_option in
574      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
575      *) ac_optarg=yes ;;
576    esac
577    eval "enable_$ac_feature='$ac_optarg'" ;;
578
579  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
580  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
581  | --exec | --exe | --ex)
582    ac_prev=exec_prefix ;;
583  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
584  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
585  | --exec=* | --exe=* | --ex=*)
586    exec_prefix=$ac_optarg ;;
587
588  -gas | --gas | --ga | --g)
589    # Obsolete; use --with-gas.
590    with_gas=yes ;;
591
592  -help | --help | --hel | --he | -h)
593    ac_init_help=long ;;
594  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
595    ac_init_help=recursive ;;
596  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
597    ac_init_help=short ;;
598
599  -host | --host | --hos | --ho)
600    ac_prev=host_alias ;;
601  -host=* | --host=* | --hos=* | --ho=*)
602    host_alias=$ac_optarg ;;
603
604  -includedir | --includedir | --includedi | --included | --include \
605  | --includ | --inclu | --incl | --inc)
606    ac_prev=includedir ;;
607  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
608  | --includ=* | --inclu=* | --incl=* | --inc=*)
609    includedir=$ac_optarg ;;
610
611  -infodir | --infodir | --infodi | --infod | --info | --inf)
612    ac_prev=infodir ;;
613  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
614    infodir=$ac_optarg ;;
615
616  -libdir | --libdir | --libdi | --libd)
617    ac_prev=libdir ;;
618  -libdir=* | --libdir=* | --libdi=* | --libd=*)
619    libdir=$ac_optarg ;;
620
621  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
622  | --libexe | --libex | --libe)
623    ac_prev=libexecdir ;;
624  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
625  | --libexe=* | --libex=* | --libe=*)
626    libexecdir=$ac_optarg ;;
627
628  -localstatedir | --localstatedir | --localstatedi | --localstated \
629  | --localstate | --localstat | --localsta | --localst \
630  | --locals | --local | --loca | --loc | --lo)
631    ac_prev=localstatedir ;;
632  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
633  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
634  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
635    localstatedir=$ac_optarg ;;
636
637  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
638    ac_prev=mandir ;;
639  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640    mandir=$ac_optarg ;;
641
642  -nfp | --nfp | --nf)
643    # Obsolete; use --without-fp.
644    with_fp=no ;;
645
646  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
647  | --no-cr | --no-c | -n)
648    no_create=yes ;;
649
650  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
651  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
652    no_recursion=yes ;;
653
654  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
655  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
656  | --oldin | --oldi | --old | --ol | --o)
657    ac_prev=oldincludedir ;;
658  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
659  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
660  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
661    oldincludedir=$ac_optarg ;;
662
663  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
664    ac_prev=prefix ;;
665  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
666    prefix=$ac_optarg ;;
667
668  -program-prefix | --program-prefix | --program-prefi | --program-pref \
669  | --program-pre | --program-pr | --program-p)
670    ac_prev=program_prefix ;;
671  -program-prefix=* | --program-prefix=* | --program-prefi=* \
672  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
673    program_prefix=$ac_optarg ;;
674
675  -program-suffix | --program-suffix | --program-suffi | --program-suff \
676  | --program-suf | --program-su | --program-s)
677    ac_prev=program_suffix ;;
678  -program-suffix=* | --program-suffix=* | --program-suffi=* \
679  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
680    program_suffix=$ac_optarg ;;
681
682  -program-transform-name | --program-transform-name \
683  | --program-transform-nam | --program-transform-na \
684  | --program-transform-n | --program-transform- \
685  | --program-transform | --program-transfor \
686  | --program-transfo | --program-transf \
687  | --program-trans | --program-tran \
688  | --progr-tra | --program-tr | --program-t)
689    ac_prev=program_transform_name ;;
690  -program-transform-name=* | --program-transform-name=* \
691  | --program-transform-nam=* | --program-transform-na=* \
692  | --program-transform-n=* | --program-transform-=* \
693  | --program-transform=* | --program-transfor=* \
694  | --program-transfo=* | --program-transf=* \
695  | --program-trans=* | --program-tran=* \
696  | --progr-tra=* | --program-tr=* | --program-t=*)
697    program_transform_name=$ac_optarg ;;
698
699  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
700  | -silent | --silent | --silen | --sile | --sil)
701    silent=yes ;;
702
703  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
704    ac_prev=sbindir ;;
705  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
706  | --sbi=* | --sb=*)
707    sbindir=$ac_optarg ;;
708
709  -sharedstatedir | --sharedstatedir | --sharedstatedi \
710  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
711  | --sharedst | --shareds | --shared | --share | --shar \
712  | --sha | --sh)
713    ac_prev=sharedstatedir ;;
714  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
715  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
716  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
717  | --sha=* | --sh=*)
718    sharedstatedir=$ac_optarg ;;
719
720  -site | --site | --sit)
721    ac_prev=site ;;
722  -site=* | --site=* | --sit=*)
723    site=$ac_optarg ;;
724
725  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
726    ac_prev=srcdir ;;
727  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
728    srcdir=$ac_optarg ;;
729
730  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
731  | --syscon | --sysco | --sysc | --sys | --sy)
732    ac_prev=sysconfdir ;;
733  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
734  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
735    sysconfdir=$ac_optarg ;;
736
737  -target | --target | --targe | --targ | --tar | --ta | --t)
738    ac_prev=target_alias ;;
739  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
740    target_alias=$ac_optarg ;;
741
742  -v | -verbose | --verbose | --verbos | --verbo | --verb)
743    verbose=yes ;;
744
745  -version | --version | --versio | --versi | --vers | -V)
746    ac_init_version=: ;;
747
748  -with-* | --with-*)
749    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
750    # Reject names that are not valid shell variable names.
751    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752      { echo "$as_me: error: invalid package name: $ac_package" >&2
753   { (exit 1); exit 1; }; }
754    ac_package=`echo $ac_package| sed 's/-/_/g'`
755    case $ac_option in
756      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
757      *) ac_optarg=yes ;;
758    esac
759    eval "with_$ac_package='$ac_optarg'" ;;
760
761  -without-* | --without-*)
762    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
763    # Reject names that are not valid shell variable names.
764    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
765      { echo "$as_me: error: invalid package name: $ac_package" >&2
766   { (exit 1); exit 1; }; }
767    ac_package=`echo $ac_package | sed 's/-/_/g'`
768    eval "with_$ac_package=no" ;;
769
770  --x)
771    # Obsolete; use --with-x.
772    with_x=yes ;;
773
774  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
775  | --x-incl | --x-inc | --x-in | --x-i)
776    ac_prev=x_includes ;;
777  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
778  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
779    x_includes=$ac_optarg ;;
780
781  -x-libraries | --x-libraries | --x-librarie | --x-librari \
782  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
783    ac_prev=x_libraries ;;
784  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
785  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
786    x_libraries=$ac_optarg ;;
787
788  -*) { echo "$as_me: error: unrecognized option: $ac_option
789Try \`$0 --help' for more information." >&2
790   { (exit 1); exit 1; }; }
791    ;;
792
793  *=*)
794    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
795    # Reject names that are not valid shell variable names.
796    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
797      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
798   { (exit 1); exit 1; }; }
799    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
800    eval "$ac_envvar='$ac_optarg'"
801    export $ac_envvar ;;
802
803  *)
804    # FIXME: should be removed in autoconf 3.0.
805    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
806    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
807      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
808    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809    ;;
810
811  esac
812done
813
814if test -n "$ac_prev"; then
815  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
816  { echo "$as_me: error: missing argument to $ac_option" >&2
817   { (exit 1); exit 1; }; }
818fi
819
820# Be sure to have absolute paths.
821for ac_var in exec_prefix prefix
822do
823  eval ac_val=$`echo $ac_var`
824  case $ac_val in
825    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
826    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827   { (exit 1); exit 1; }; };;
828  esac
829done
830
831# Be sure to have absolute paths.
832for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
833	      localstatedir libdir includedir oldincludedir infodir mandir
834do
835  eval ac_val=$`echo $ac_var`
836  case $ac_val in
837    [\\/$]* | ?:[\\/]* ) ;;
838    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
839   { (exit 1); exit 1; }; };;
840  esac
841done
842
843# There might be people who depend on the old broken behavior: `$host'
844# used to hold the argument of --host etc.
845# FIXME: To remove some day.
846build=$build_alias
847host=$host_alias
848target=$target_alias
849
850# FIXME: To remove some day.
851if test "x$host_alias" != x; then
852  if test "x$build_alias" = x; then
853    cross_compiling=maybe
854    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
855    If a cross compiler is detected then cross compile mode will be used." >&2
856  elif test "x$build_alias" != "x$host_alias"; then
857    cross_compiling=yes
858  fi
859fi
860
861ac_tool_prefix=
862test -n "$host_alias" && ac_tool_prefix=$host_alias-
863
864test "$silent" = yes && exec 6>/dev/null
865
866
867# Find the source files, if location was not specified.
868if test -z "$srcdir"; then
869  ac_srcdir_defaulted=yes
870  # Try the directory containing this script, then its parent.
871  ac_confdir=`(dirname "$0") 2>/dev/null ||
872$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
873	 X"$0" : 'X\(//\)[^/]' \| \
874	 X"$0" : 'X\(//\)$' \| \
875	 X"$0" : 'X\(/\)' \| \
876	 .     : '\(.\)' 2>/dev/null ||
877echo X"$0" |
878    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
879  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
880  	  /^X\(\/\/\)$/{ s//\1/; q; }
881  	  /^X\(\/\).*/{ s//\1/; q; }
882  	  s/.*/./; q'`
883  srcdir=$ac_confdir
884  if test ! -r $srcdir/$ac_unique_file; then
885    srcdir=..
886  fi
887else
888  ac_srcdir_defaulted=no
889fi
890if test ! -r $srcdir/$ac_unique_file; then
891  if test "$ac_srcdir_defaulted" = yes; then
892    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
893   { (exit 1); exit 1; }; }
894  else
895    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
896   { (exit 1); exit 1; }; }
897  fi
898fi
899(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
900  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
901   { (exit 1); exit 1; }; }
902srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
903ac_env_build_alias_set=${build_alias+set}
904ac_env_build_alias_value=$build_alias
905ac_cv_env_build_alias_set=${build_alias+set}
906ac_cv_env_build_alias_value=$build_alias
907ac_env_host_alias_set=${host_alias+set}
908ac_env_host_alias_value=$host_alias
909ac_cv_env_host_alias_set=${host_alias+set}
910ac_cv_env_host_alias_value=$host_alias
911ac_env_target_alias_set=${target_alias+set}
912ac_env_target_alias_value=$target_alias
913ac_cv_env_target_alias_set=${target_alias+set}
914ac_cv_env_target_alias_value=$target_alias
915ac_env_CC_set=${CC+set}
916ac_env_CC_value=$CC
917ac_cv_env_CC_set=${CC+set}
918ac_cv_env_CC_value=$CC
919ac_env_CFLAGS_set=${CFLAGS+set}
920ac_env_CFLAGS_value=$CFLAGS
921ac_cv_env_CFLAGS_set=${CFLAGS+set}
922ac_cv_env_CFLAGS_value=$CFLAGS
923ac_env_LDFLAGS_set=${LDFLAGS+set}
924ac_env_LDFLAGS_value=$LDFLAGS
925ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
926ac_cv_env_LDFLAGS_value=$LDFLAGS
927ac_env_CPPFLAGS_set=${CPPFLAGS+set}
928ac_env_CPPFLAGS_value=$CPPFLAGS
929ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
930ac_cv_env_CPPFLAGS_value=$CPPFLAGS
931ac_env_CPP_set=${CPP+set}
932ac_env_CPP_value=$CPP
933ac_cv_env_CPP_set=${CPP+set}
934ac_cv_env_CPP_value=$CPP
935ac_env_CXX_set=${CXX+set}
936ac_env_CXX_value=$CXX
937ac_cv_env_CXX_set=${CXX+set}
938ac_cv_env_CXX_value=$CXX
939ac_env_CXXFLAGS_set=${CXXFLAGS+set}
940ac_env_CXXFLAGS_value=$CXXFLAGS
941ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
942ac_cv_env_CXXFLAGS_value=$CXXFLAGS
943ac_env_CXXCPP_set=${CXXCPP+set}
944ac_env_CXXCPP_value=$CXXCPP
945ac_cv_env_CXXCPP_set=${CXXCPP+set}
946ac_cv_env_CXXCPP_value=$CXXCPP
947ac_env_F77_set=${F77+set}
948ac_env_F77_value=$F77
949ac_cv_env_F77_set=${F77+set}
950ac_cv_env_F77_value=$F77
951ac_env_FFLAGS_set=${FFLAGS+set}
952ac_env_FFLAGS_value=$FFLAGS
953ac_cv_env_FFLAGS_set=${FFLAGS+set}
954ac_cv_env_FFLAGS_value=$FFLAGS
955
956#
957# Report the --help message.
958#
959if test "$ac_init_help" = "long"; then
960  # Omit some internal or obsolete options to make the list less imposing.
961  # This message is too long to be a string in the A/UX 3.1 sh.
962  cat <<_ACEOF
963\`configure' configures lzo 2.03 to adapt to many kinds of systems.
964
965Usage: $0 [OPTION]... [VAR=VALUE]...
966
967To assign environment variables (e.g., CC, CFLAGS...), specify them as
968VAR=VALUE.  See below for descriptions of some of the useful variables.
969
970Defaults for the options are specified in brackets.
971
972Configuration:
973  -h, --help              display this help and exit
974      --help=short        display options specific to this package
975      --help=recursive    display the short help of all the included packages
976  -V, --version           display version information and exit
977  -q, --quiet, --silent   do not print \`checking...' messages
978      --cache-file=FILE   cache test results in FILE [disabled]
979  -C, --config-cache      alias for \`--cache-file=config.cache'
980  -n, --no-create         do not create output files
981      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
982
983_ACEOF
984
985  cat <<_ACEOF
986Installation directories:
987  --prefix=PREFIX         install architecture-independent files in PREFIX
988			  [$ac_default_prefix]
989  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
990			  [PREFIX]
991
992By default, \`make install' will install all the files in
993\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
994an installation prefix other than \`$ac_default_prefix' using \`--prefix',
995for instance \`--prefix=\$HOME'.
996
997For better control, use the options below.
998
999Fine tuning of the installation directories:
1000  --bindir=DIR           user executables [EPREFIX/bin]
1001  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1002  --libexecdir=DIR       program executables [EPREFIX/libexec]
1003  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1004  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1005  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1006  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1007  --libdir=DIR           object code libraries [EPREFIX/lib]
1008  --includedir=DIR       C header files [PREFIX/include]
1009  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1010  --infodir=DIR          info documentation [PREFIX/info]
1011  --mandir=DIR           man documentation [PREFIX/man]
1012_ACEOF
1013
1014  cat <<\_ACEOF
1015
1016Program names:
1017  --program-prefix=PREFIX            prepend PREFIX to installed program names
1018  --program-suffix=SUFFIX            append SUFFIX to installed program names
1019  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1020
1021System types:
1022  --build=BUILD     configure for building on BUILD [guessed]
1023  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024  --target=TARGET   configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029  case $ac_init_help in
1030     short | recursive ) echo "Configuration of lzo 2.03:";;
1031   esac
1032  cat <<\_ACEOF
1033
1034Optional Features:
1035  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037  --enable-maintainer-mode  enable make rules and dependencies not useful
1038			  (and sometimes confusing) to the casual installer
1039  --disable-largefile     omit support for large files
1040  --disable-dependency-tracking  speeds up one-time build
1041  --enable-dependency-tracking   do not reject slow dependency extractors
1042  --enable-static[=PKGS]
1043                          build static libraries [default=yes]
1044  --enable-shared[=PKGS]
1045                          build shared libraries [default=no]
1046  --enable-fast-install[=PKGS]
1047                          optimize for fast installation [default=yes]
1048  --disable-libtool-lock  avoid locking (might break parallel builds)
1049  --disable-asm           disable assembly versions
1050
1051Optional Packages:
1052  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1055  --with-pic              try to use only PIC/non-PIC objects [default=use
1056                          both]
1057  --with-tags[=TAGS]
1058                          include additional configurations [automatic]
1059
1060Some influential environment variables:
1061  CC          C compiler command
1062  CFLAGS      C compiler flags
1063  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064              nonstandard directory <lib dir>
1065  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066              headers in a nonstandard directory <include dir>
1067  CPP         C preprocessor
1068  CXX         C++ compiler command
1069  CXXFLAGS    C++ compiler flags
1070  CXXCPP      C++ preprocessor
1071  F77         Fortran 77 compiler command
1072  FFLAGS      Fortran 77 compiler flags
1073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077Report bugs to <markus@oberhumer.com>.
1078_ACEOF
1079fi
1080
1081if test "$ac_init_help" = "recursive"; then
1082  # If there are subdirs, report their specific --help.
1083  ac_popdir=`pwd`
1084  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085    test -d $ac_dir || continue
1086    ac_builddir=.
1087
1088if test "$ac_dir" != .; then
1089  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090  # A "../" for each directory in $ac_dir_suffix.
1091  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092else
1093  ac_dir_suffix= ac_top_builddir=
1094fi
1095
1096case $srcdir in
1097  .)  # No --srcdir option.  We are building in place.
1098    ac_srcdir=.
1099    if test -z "$ac_top_builddir"; then
1100       ac_top_srcdir=.
1101    else
1102       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103    fi ;;
1104  [\\/]* | ?:[\\/]* )  # Absolute path.
1105    ac_srcdir=$srcdir$ac_dir_suffix;
1106    ac_top_srcdir=$srcdir ;;
1107  *) # Relative path.
1108    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110esac
1111
1112# Do not use `cd foo && pwd` to compute absolute paths, because
1113# the directories may not exist.
1114case `pwd` in
1115.) ac_abs_builddir="$ac_dir";;
1116*)
1117  case "$ac_dir" in
1118  .) ac_abs_builddir=`pwd`;;
1119  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121  esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125*)
1126  case ${ac_top_builddir}. in
1127  .) ac_abs_top_builddir=$ac_abs_builddir;;
1128  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130  esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_srcdir=$ac_srcdir;;
1134*)
1135  case $ac_srcdir in
1136  .) ac_abs_srcdir=$ac_abs_builddir;;
1137  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139  esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143*)
1144  case $ac_top_srcdir in
1145  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148  esac;;
1149esac
1150
1151    cd $ac_dir
1152    # Check for guested configure; otherwise get Cygnus style configure.
1153    if test -f $ac_srcdir/configure.gnu; then
1154      echo
1155      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1156    elif test -f $ac_srcdir/configure; then
1157      echo
1158      $SHELL $ac_srcdir/configure  --help=recursive
1159    elif test -f $ac_srcdir/configure.ac ||
1160	   test -f $ac_srcdir/configure.in; then
1161      echo
1162      $ac_configure --help
1163    else
1164      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165    fi
1166    cd "$ac_popdir"
1167  done
1168fi
1169
1170test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then
1172  cat <<\_ACEOF
1173lzo configure 2.03
1174generated by GNU Autoconf 2.59
1175
1176Copyright (C) 2003 Free Software Foundation, Inc.
1177This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it.
1179
1180Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer.
1181All Rights Reserved.
1182This configure script may be copied, distributed and modified under the
1183terms of the GNU General Public License; see COPYING for more details.
1184_ACEOF
1185  exit 0
1186fi
1187exec 5>config.log
1188cat >&5 <<_ACEOF
1189This file contains any messages produced by compilers while
1190running configure, to aid debugging if configure makes a mistake.
1191
1192It was created by lzo $as_me 2.03, which was
1193generated by GNU Autoconf 2.59.  Invocation command line was
1194
1195  $ $0 $@
1196
1197_ACEOF
1198{
1199cat <<_ASUNAME
1200## --------- ##
1201## Platform. ##
1202## --------- ##
1203
1204hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209
1210/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1212
1213/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1214/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1215/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1217/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1218/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1219/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1220
1221_ASUNAME
1222
1223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224for as_dir in $PATH
1225do
1226  IFS=$as_save_IFS
1227  test -z "$as_dir" && as_dir=.
1228  echo "PATH: $as_dir"
1229done
1230
1231} >&5
1232
1233cat >&5 <<_ACEOF
1234
1235
1236## ----------- ##
1237## Core tests. ##
1238## ----------- ##
1239
1240_ACEOF
1241
1242
1243# Keep a trace of the command line.
1244# Strip out --no-create and --no-recursion so they do not pile up.
1245# Strip out --silent because we don't want to record it for future runs.
1246# Also quote any args containing shell meta-characters.
1247# Make two passes to allow for proper duplicate-argument suppression.
1248ac_configure_args=
1249ac_configure_args0=
1250ac_configure_args1=
1251ac_sep=
1252ac_must_keep_next=false
1253for ac_pass in 1 2
1254do
1255  for ac_arg
1256  do
1257    case $ac_arg in
1258    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260    | -silent | --silent | --silen | --sile | --sil)
1261      continue ;;
1262    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264    esac
1265    case $ac_pass in
1266    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267    2)
1268      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269      if test $ac_must_keep_next = true; then
1270	ac_must_keep_next=false # Got value, back to normal.
1271      else
1272	case $ac_arg in
1273	  *=* | --config-cache | -C | -disable-* | --disable-* \
1274	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276	  | -with-* | --with-* | -without-* | --without-* | --x)
1277	    case "$ac_configure_args0 " in
1278	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279	    esac
1280	    ;;
1281	  -* ) ac_must_keep_next=true ;;
1282	esac
1283      fi
1284      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285      # Get rid of the leading space.
1286      ac_sep=" "
1287      ;;
1288    esac
1289  done
1290done
1291$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293
1294# When interrupted or exit'd, cleanup temporary files, and complete
1295# config.log.  We remove comments because anyway the quotes in there
1296# would cause problems or look ugly.
1297# WARNING: Be sure not to use single quotes in there, as some shells,
1298# such as our DU 5.0 friend, will then `close' the trap.
1299trap 'exit_status=$?
1300  # Save into config.log some information that might help in debugging.
1301  {
1302    echo
1303
1304    cat <<\_ASBOX
1305## ---------------- ##
1306## Cache variables. ##
1307## ---------------- ##
1308_ASBOX
1309    echo
1310    # The following way of writing the cache mishandles newlines in values,
1311{
1312  (set) 2>&1 |
1313    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314    *ac_space=\ *)
1315      sed -n \
1316	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318      ;;
1319    *)
1320      sed -n \
1321	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322      ;;
1323    esac;
1324}
1325    echo
1326
1327    cat <<\_ASBOX
1328## ----------------- ##
1329## Output variables. ##
1330## ----------------- ##
1331_ASBOX
1332    echo
1333    for ac_var in $ac_subst_vars
1334    do
1335      eval ac_val=$`echo $ac_var`
1336      echo "$ac_var='"'"'$ac_val'"'"'"
1337    done | sort
1338    echo
1339
1340    if test -n "$ac_subst_files"; then
1341      cat <<\_ASBOX
1342## ------------- ##
1343## Output files. ##
1344## ------------- ##
1345_ASBOX
1346      echo
1347      for ac_var in $ac_subst_files
1348      do
1349	eval ac_val=$`echo $ac_var`
1350	echo "$ac_var='"'"'$ac_val'"'"'"
1351      done | sort
1352      echo
1353    fi
1354
1355    if test -s confdefs.h; then
1356      cat <<\_ASBOX
1357## ----------- ##
1358## confdefs.h. ##
1359## ----------- ##
1360_ASBOX
1361      echo
1362      sed "/^$/d" confdefs.h | sort
1363      echo
1364    fi
1365    test "$ac_signal" != 0 &&
1366      echo "$as_me: caught signal $ac_signal"
1367    echo "$as_me: exit $exit_status"
1368  } >&5
1369  rm -f core *.core &&
1370  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371    exit $exit_status
1372     ' 0
1373for ac_signal in 1 2 13 15; do
1374  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375done
1376ac_signal=0
1377
1378# confdefs.h avoids OS command line length limits that DEFS can exceed.
1379rm -rf conftest* confdefs.h
1380# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381echo >confdefs.h
1382
1383# Predefined preprocessor variables.
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_NAME "$PACKAGE_NAME"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_VERSION "$PACKAGE_VERSION"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_STRING "$PACKAGE_STRING"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407_ACEOF
1408
1409
1410# Let the site file select an alternate cache file if it wants to.
1411# Prefer explicitly selected file to automatically selected ones.
1412if test -z "$CONFIG_SITE"; then
1413  if test "x$prefix" != xNONE; then
1414    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415  else
1416    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417  fi
1418fi
1419for ac_site_file in $CONFIG_SITE; do
1420  if test -r "$ac_site_file"; then
1421    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422echo "$as_me: loading site script $ac_site_file" >&6;}
1423    sed 's/^/| /' "$ac_site_file" >&5
1424    . "$ac_site_file"
1425  fi
1426done
1427
1428if test -r "$cache_file"; then
1429  # Some versions of bash will fail to source /dev/null (special
1430  # files actually), so we avoid doing that.
1431  if test -f "$cache_file"; then
1432    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433echo "$as_me: loading cache $cache_file" >&6;}
1434    case $cache_file in
1435      [\\/]* | ?:[\\/]* ) . $cache_file;;
1436      *)                      . ./$cache_file;;
1437    esac
1438  fi
1439else
1440  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441echo "$as_me: creating cache $cache_file" >&6;}
1442  >$cache_file
1443fi
1444
1445# Check that the precious variables saved in the cache have kept the same
1446# value.
1447ac_cache_corrupted=false
1448for ac_var in `(set) 2>&1 |
1449	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1450  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451  eval ac_new_set=\$ac_env_${ac_var}_set
1452  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453  eval ac_new_val="\$ac_env_${ac_var}_value"
1454  case $ac_old_set,$ac_new_set in
1455    set,)
1456      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458      ac_cache_corrupted=: ;;
1459    ,set)
1460      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462      ac_cache_corrupted=: ;;
1463    ,);;
1464    *)
1465      if test "x$ac_old_val" != "x$ac_new_val"; then
1466	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1467echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1468	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1469echo "$as_me:   former value:  $ac_old_val" >&2;}
1470	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1471echo "$as_me:   current value: $ac_new_val" >&2;}
1472	ac_cache_corrupted=:
1473      fi;;
1474  esac
1475  # Pass precious variables to config.status.
1476  if test "$ac_new_set" = set; then
1477    case $ac_new_val in
1478    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480    *) ac_arg=$ac_var=$ac_new_val ;;
1481    esac
1482    case " $ac_configure_args " in
1483      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1484      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485    esac
1486  fi
1487done
1488if $ac_cache_corrupted; then
1489  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493   { (exit 1); exit 1; }; }
1494fi
1495
1496ac_ext=c
1497ac_cpp='$CPP $CPPFLAGS'
1498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500ac_compiler_gnu=$ac_cv_c_compiler_gnu
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528{ echo "$as_me:$LINENO: Configuring LZO $PACKAGE_VERSION" >&5
1529echo "$as_me: Configuring LZO $PACKAGE_VERSION" >&6;}
1530
1531ac_aux_dir=
1532for ac_dir in autoconf $srcdir/autoconf; do
1533  if test -f $ac_dir/install-sh; then
1534    ac_aux_dir=$ac_dir
1535    ac_install_sh="$ac_aux_dir/install-sh -c"
1536    break
1537  elif test -f $ac_dir/install.sh; then
1538    ac_aux_dir=$ac_dir
1539    ac_install_sh="$ac_aux_dir/install.sh -c"
1540    break
1541  elif test -f $ac_dir/shtool; then
1542    ac_aux_dir=$ac_dir
1543    ac_install_sh="$ac_aux_dir/shtool install -c"
1544    break
1545  fi
1546done
1547if test -z "$ac_aux_dir"; then
1548  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1549echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1550   { (exit 1); exit 1; }; }
1551fi
1552ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555
1556
1557# Make sure we can run config.sub.
1558$ac_config_sub sun4 >/dev/null 2>&1 ||
1559  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561   { (exit 1); exit 1; }; }
1562
1563echo "$as_me:$LINENO: checking build system type" >&5
1564echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565if test "${ac_cv_build+set}" = set; then
1566  echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568  ac_cv_build_alias=$build_alias
1569test -z "$ac_cv_build_alias" &&
1570  ac_cv_build_alias=`$ac_config_guess`
1571test -z "$ac_cv_build_alias" &&
1572  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574   { (exit 1); exit 1; }; }
1575ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578   { (exit 1); exit 1; }; }
1579
1580fi
1581echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582echo "${ECHO_T}$ac_cv_build" >&6
1583build=$ac_cv_build
1584build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589echo "$as_me:$LINENO: checking host system type" >&5
1590echo $ECHO_N "checking host system type... $ECHO_C" >&6
1591if test "${ac_cv_host+set}" = set; then
1592  echo $ECHO_N "(cached) $ECHO_C" >&6
1593else
1594  ac_cv_host_alias=$host_alias
1595test -z "$ac_cv_host_alias" &&
1596  ac_cv_host_alias=$ac_cv_build_alias
1597ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1598  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1600   { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1604echo "${ECHO_T}$ac_cv_host" >&6
1605host=$ac_cv_host
1606host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611echo "$as_me:$LINENO: checking target system type" >&5
1612echo $ECHO_N "checking target system type... $ECHO_C" >&6
1613if test "${ac_cv_target+set}" = set; then
1614  echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616  ac_cv_target_alias=$target_alias
1617test "x$ac_cv_target_alias" = "x" &&
1618  ac_cv_target_alias=$ac_cv_host_alias
1619ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1620  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1622   { (exit 1); exit 1; }; }
1623
1624fi
1625echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1626echo "${ECHO_T}$ac_cv_target" >&6
1627target=$ac_cv_target
1628target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633# The aliases save the names the user supplied, while $host etc.
1634# will get canonicalized.
1635test -n "$target_alias" &&
1636  test "$program_prefix$program_suffix$program_transform_name" = \
1637    NONENONEs,x,x, &&
1638  program_prefix=${target_alias}-
1639echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1640echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1641    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1642if test "${enable_maintainer_mode+set}" = set; then
1643  enableval="$enable_maintainer_mode"
1644  USE_MAINTAINER_MODE=$enableval
1645else
1646  USE_MAINTAINER_MODE=no
1647fi;
1648  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1649echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1650
1651
1652if test $USE_MAINTAINER_MODE = yes; then
1653  MAINTAINER_MODE_TRUE=
1654  MAINTAINER_MODE_FALSE='#'
1655else
1656  MAINTAINER_MODE_TRUE='#'
1657  MAINTAINER_MODE_FALSE=
1658fi
1659
1660  MAINT=$MAINTAINER_MODE_TRUE
1661
1662
1663
1664if test -z "$ac_abs_top_srcdir"; then
1665    ac_builddir=.
1666
1667if test . != .; then
1668  ac_dir_suffix=/`echo . | sed 's,^\.[\\/],,'`
1669  # A "../" for each directory in $ac_dir_suffix.
1670  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1671else
1672  ac_dir_suffix= ac_top_builddir=
1673fi
1674
1675case $srcdir in
1676  .)  # No --srcdir option.  We are building in place.
1677    ac_srcdir=.
1678    if test -z "$ac_top_builddir"; then
1679       ac_top_srcdir=.
1680    else
1681       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1682    fi ;;
1683  [\\/]* | ?:[\\/]* )  # Absolute path.
1684    ac_srcdir=$srcdir$ac_dir_suffix;
1685    ac_top_srcdir=$srcdir ;;
1686  *) # Relative path.
1687    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1688    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1689esac
1690
1691# Do not use `cd foo && pwd` to compute absolute paths, because
1692# the directories may not exist.
1693case `pwd` in
1694.) ac_abs_builddir=.;;
1695*)
1696  case . in
1697  .) ac_abs_builddir=`pwd`;;
1698  [\\/]* | ?:[\\/]* ) ac_abs_builddir=.;;
1699  *) ac_abs_builddir=`pwd`/.;;
1700  esac;;
1701esac
1702case $ac_abs_builddir in
1703.) ac_abs_top_builddir=${ac_top_builddir}.;;
1704*)
1705  case ${ac_top_builddir}. in
1706  .) ac_abs_top_builddir=$ac_abs_builddir;;
1707  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1708  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1709  esac;;
1710esac
1711case $ac_abs_builddir in
1712.) ac_abs_srcdir=$ac_srcdir;;
1713*)
1714  case $ac_srcdir in
1715  .) ac_abs_srcdir=$ac_abs_builddir;;
1716  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1717  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1718  esac;;
1719esac
1720case $ac_abs_builddir in
1721.) ac_abs_top_srcdir=$ac_top_srcdir;;
1722*)
1723  case $ac_top_srcdir in
1724  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1725  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1726  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1727  esac;;
1728esac
1729
1730fi
1731if test -r .Conf.settings1; then
1732    . ./.Conf.settings1
1733fi
1734
1735ac_ext=c
1736ac_cpp='$CPP $CPPFLAGS'
1737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1739ac_compiler_gnu=$ac_cv_c_compiler_gnu
1740if test -n "$ac_tool_prefix"; then
1741  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1742set dummy ${ac_tool_prefix}gcc; ac_word=$2
1743echo "$as_me:$LINENO: checking for $ac_word" >&5
1744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745if test "${ac_cv_prog_CC+set}" = set; then
1746  echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748  if test -n "$CC"; then
1749  ac_cv_prog_CC="$CC" # Let the user override the test.
1750else
1751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752for as_dir in $PATH
1753do
1754  IFS=$as_save_IFS
1755  test -z "$as_dir" && as_dir=.
1756  for ac_exec_ext in '' $ac_executable_extensions; do
1757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760    break 2
1761  fi
1762done
1763done
1764
1765fi
1766fi
1767CC=$ac_cv_prog_CC
1768if test -n "$CC"; then
1769  echo "$as_me:$LINENO: result: $CC" >&5
1770echo "${ECHO_T}$CC" >&6
1771else
1772  echo "$as_me:$LINENO: result: no" >&5
1773echo "${ECHO_T}no" >&6
1774fi
1775
1776fi
1777if test -z "$ac_cv_prog_CC"; then
1778  ac_ct_CC=$CC
1779  # Extract the first word of "gcc", so it can be a program name with args.
1780set dummy gcc; ac_word=$2
1781echo "$as_me:$LINENO: checking for $ac_word" >&5
1782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1784  echo $ECHO_N "(cached) $ECHO_C" >&6
1785else
1786  if test -n "$ac_ct_CC"; then
1787  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1788else
1789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790for as_dir in $PATH
1791do
1792  IFS=$as_save_IFS
1793  test -z "$as_dir" && as_dir=.
1794  for ac_exec_ext in '' $ac_executable_extensions; do
1795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796    ac_cv_prog_ac_ct_CC="gcc"
1797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798    break 2
1799  fi
1800done
1801done
1802
1803fi
1804fi
1805ac_ct_CC=$ac_cv_prog_ac_ct_CC
1806if test -n "$ac_ct_CC"; then
1807  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1808echo "${ECHO_T}$ac_ct_CC" >&6
1809else
1810  echo "$as_me:$LINENO: result: no" >&5
1811echo "${ECHO_T}no" >&6
1812fi
1813
1814  CC=$ac_ct_CC
1815else
1816  CC="$ac_cv_prog_CC"
1817fi
1818
1819if test -z "$CC"; then
1820  if test -n "$ac_tool_prefix"; then
1821  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1822set dummy ${ac_tool_prefix}cc; ac_word=$2
1823echo "$as_me:$LINENO: checking for $ac_word" >&5
1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825if test "${ac_cv_prog_CC+set}" = set; then
1826  echo $ECHO_N "(cached) $ECHO_C" >&6
1827else
1828  if test -n "$CC"; then
1829  ac_cv_prog_CC="$CC" # Let the user override the test.
1830else
1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834  IFS=$as_save_IFS
1835  test -z "$as_dir" && as_dir=.
1836  for ac_exec_ext in '' $ac_executable_extensions; do
1837  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838    ac_cv_prog_CC="${ac_tool_prefix}cc"
1839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840    break 2
1841  fi
1842done
1843done
1844
1845fi
1846fi
1847CC=$ac_cv_prog_CC
1848if test -n "$CC"; then
1849  echo "$as_me:$LINENO: result: $CC" >&5
1850echo "${ECHO_T}$CC" >&6
1851else
1852  echo "$as_me:$LINENO: result: no" >&5
1853echo "${ECHO_T}no" >&6
1854fi
1855
1856fi
1857if test -z "$ac_cv_prog_CC"; then
1858  ac_ct_CC=$CC
1859  # Extract the first word of "cc", so it can be a program name with args.
1860set dummy cc; ac_word=$2
1861echo "$as_me:$LINENO: checking for $ac_word" >&5
1862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1864  echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866  if test -n "$ac_ct_CC"; then
1867  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868else
1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870for as_dir in $PATH
1871do
1872  IFS=$as_save_IFS
1873  test -z "$as_dir" && as_dir=.
1874  for ac_exec_ext in '' $ac_executable_extensions; do
1875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876    ac_cv_prog_ac_ct_CC="cc"
1877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878    break 2
1879  fi
1880done
1881done
1882
1883fi
1884fi
1885ac_ct_CC=$ac_cv_prog_ac_ct_CC
1886if test -n "$ac_ct_CC"; then
1887  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1888echo "${ECHO_T}$ac_ct_CC" >&6
1889else
1890  echo "$as_me:$LINENO: result: no" >&5
1891echo "${ECHO_T}no" >&6
1892fi
1893
1894  CC=$ac_ct_CC
1895else
1896  CC="$ac_cv_prog_CC"
1897fi
1898
1899fi
1900if test -z "$CC"; then
1901  # Extract the first word of "cc", so it can be a program name with args.
1902set dummy cc; ac_word=$2
1903echo "$as_me:$LINENO: checking for $ac_word" >&5
1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905if test "${ac_cv_prog_CC+set}" = set; then
1906  echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908  if test -n "$CC"; then
1909  ac_cv_prog_CC="$CC" # Let the user override the test.
1910else
1911  ac_prog_rejected=no
1912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913for as_dir in $PATH
1914do
1915  IFS=$as_save_IFS
1916  test -z "$as_dir" && as_dir=.
1917  for ac_exec_ext in '' $ac_executable_extensions; do
1918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1920       ac_prog_rejected=yes
1921       continue
1922     fi
1923    ac_cv_prog_CC="cc"
1924    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925    break 2
1926  fi
1927done
1928done
1929
1930if test $ac_prog_rejected = yes; then
1931  # We found a bogon in the path, so make sure we never use it.
1932  set dummy $ac_cv_prog_CC
1933  shift
1934  if test $# != 0; then
1935    # We chose a different compiler from the bogus one.
1936    # However, it has the same basename, so the bogon will be chosen
1937    # first if we set CC to just the basename; use the full file name.
1938    shift
1939    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1940  fi
1941fi
1942fi
1943fi
1944CC=$ac_cv_prog_CC
1945if test -n "$CC"; then
1946  echo "$as_me:$LINENO: result: $CC" >&5
1947echo "${ECHO_T}$CC" >&6
1948else
1949  echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6
1951fi
1952
1953fi
1954if test -z "$CC"; then
1955  if test -n "$ac_tool_prefix"; then
1956  for ac_prog in cl
1957  do
1958    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1960echo "$as_me:$LINENO: checking for $ac_word" >&5
1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962if test "${ac_cv_prog_CC+set}" = set; then
1963  echo $ECHO_N "(cached) $ECHO_C" >&6
1964else
1965  if test -n "$CC"; then
1966  ac_cv_prog_CC="$CC" # Let the user override the test.
1967else
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971  IFS=$as_save_IFS
1972  test -z "$as_dir" && as_dir=.
1973  for ac_exec_ext in '' $ac_executable_extensions; do
1974  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977    break 2
1978  fi
1979done
1980done
1981
1982fi
1983fi
1984CC=$ac_cv_prog_CC
1985if test -n "$CC"; then
1986  echo "$as_me:$LINENO: result: $CC" >&5
1987echo "${ECHO_T}$CC" >&6
1988else
1989  echo "$as_me:$LINENO: result: no" >&5
1990echo "${ECHO_T}no" >&6
1991fi
1992
1993    test -n "$CC" && break
1994  done
1995fi
1996if test -z "$CC"; then
1997  ac_ct_CC=$CC
1998  for ac_prog in cl
1999do
2000  # Extract the first word of "$ac_prog", so it can be a program name with args.
2001set dummy $ac_prog; ac_word=$2
2002echo "$as_me:$LINENO: checking for $ac_word" >&5
2003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2005  echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007  if test -n "$ac_ct_CC"; then
2008  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2009else
2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011for as_dir in $PATH
2012do
2013  IFS=$as_save_IFS
2014  test -z "$as_dir" && as_dir=.
2015  for ac_exec_ext in '' $ac_executable_extensions; do
2016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017    ac_cv_prog_ac_ct_CC="$ac_prog"
2018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019    break 2
2020  fi
2021done
2022done
2023
2024fi
2025fi
2026ac_ct_CC=$ac_cv_prog_ac_ct_CC
2027if test -n "$ac_ct_CC"; then
2028  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2029echo "${ECHO_T}$ac_ct_CC" >&6
2030else
2031  echo "$as_me:$LINENO: result: no" >&5
2032echo "${ECHO_T}no" >&6
2033fi
2034
2035  test -n "$ac_ct_CC" && break
2036done
2037
2038  CC=$ac_ct_CC
2039fi
2040
2041fi
2042
2043
2044test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2045See \`config.log' for more details." >&5
2046echo "$as_me: error: no acceptable C compiler found in \$PATH
2047See \`config.log' for more details." >&2;}
2048   { (exit 1); exit 1; }; }
2049
2050# Provide some information about the compiler.
2051echo "$as_me:$LINENO:" \
2052     "checking for C compiler version" >&5
2053ac_compiler=`set X $ac_compile; echo $2`
2054{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2055  (eval $ac_compiler --version </dev/null >&5) 2>&5
2056  ac_status=$?
2057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058  (exit $ac_status); }
2059{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2060  (eval $ac_compiler -v </dev/null >&5) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }
2064{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2065  (eval $ac_compiler -V </dev/null >&5) 2>&5
2066  ac_status=$?
2067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068  (exit $ac_status); }
2069
2070cat >conftest.$ac_ext <<_ACEOF
2071/* confdefs.h.  */
2072_ACEOF
2073cat confdefs.h >>conftest.$ac_ext
2074cat >>conftest.$ac_ext <<_ACEOF
2075/* end confdefs.h.  */
2076
2077int
2078main ()
2079{
2080
2081  ;
2082  return 0;
2083}
2084_ACEOF
2085ac_clean_files_save=$ac_clean_files
2086ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087# Try to create an executable without -o first, disregard a.out.
2088# It will help us diagnose broken compilers, and finding out an intuition
2089# of exeext.
2090echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2091echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2092ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094  (eval $ac_link_default) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; then
2098  # Find the output, starting from the most likely.  This scheme is
2099# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100# resort.
2101
2102# Be careful to initialize this variable, since it used to be cached.
2103# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104ac_cv_exeext=
2105# b.out is created by i960 compilers.
2106for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107do
2108  test -f "$ac_file" || continue
2109  case $ac_file in
2110    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111	;;
2112    conftest.$ac_ext )
2113	# This is the source file.
2114	;;
2115    [ab].out )
2116	# We found the default executable, but exeext='' is most
2117	# certainly right.
2118	break;;
2119    *.* )
2120	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121	# FIXME: I believe we export ac_cv_exeext for Libtool,
2122	# but it would be cool to find out if it's true.  Does anybody
2123	# maintain Libtool? --akim.
2124	export ac_cv_exeext
2125	break;;
2126    * )
2127	break;;
2128  esac
2129done
2130else
2131  echo "$as_me: failed program was:" >&5
2132sed 's/^/| /' conftest.$ac_ext >&5
2133
2134{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135See \`config.log' for more details." >&5
2136echo "$as_me: error: C compiler cannot create executables
2137See \`config.log' for more details." >&2;}
2138   { (exit 77); exit 77; }; }
2139fi
2140
2141ac_exeext=$ac_cv_exeext
2142echo "$as_me:$LINENO: result: $ac_file" >&5
2143echo "${ECHO_T}$ac_file" >&6
2144
2145# Check the compiler produces executables we can run.  If not, either
2146# the compiler is broken, or we cross compile.
2147echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150# If not cross compiling, check that we can run a simple program.
2151if test "$cross_compiling" != yes; then
2152  if { ac_try='./$ac_file'
2153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154  (eval $ac_try) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }; }; then
2158    cross_compiling=no
2159  else
2160    if test "$cross_compiling" = maybe; then
2161	cross_compiling=yes
2162    else
2163	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164If you meant to cross compile, use \`--host'.
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot run C compiled programs.
2167If you meant to cross compile, use \`--host'.
2168See \`config.log' for more details." >&2;}
2169   { (exit 1); exit 1; }; }
2170    fi
2171  fi
2172fi
2173echo "$as_me:$LINENO: result: yes" >&5
2174echo "${ECHO_T}yes" >&6
2175
2176rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177ac_clean_files=$ac_clean_files_save
2178# Check the compiler produces executables we can run.  If not, either
2179# the compiler is broken, or we cross compile.
2180echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183echo "${ECHO_T}$cross_compiling" >&6
2184
2185echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188  (eval $ac_link) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; then
2192  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2194# work properly (i.e., refer to `conftest.exe'), while it won't with
2195# `rm'.
2196for ac_file in conftest.exe conftest conftest.*; do
2197  test -f "$ac_file" || continue
2198  case $ac_file in
2199    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201	  export ac_cv_exeext
2202	  break;;
2203    * ) break;;
2204  esac
2205done
2206else
2207  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208See \`config.log' for more details." >&5
2209echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210See \`config.log' for more details." >&2;}
2211   { (exit 1); exit 1; }; }
2212fi
2213
2214rm -f conftest$ac_cv_exeext
2215echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216echo "${ECHO_T}$ac_cv_exeext" >&6
2217
2218rm -f conftest.$ac_ext
2219EXEEXT=$ac_cv_exeext
2220ac_exeext=$EXEEXT
2221echo "$as_me:$LINENO: checking for suffix of object files" >&5
2222echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2223if test "${ac_cv_objext+set}" = set; then
2224  echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
2226  cat >conftest.$ac_ext <<_ACEOF
2227/* confdefs.h.  */
2228_ACEOF
2229cat confdefs.h >>conftest.$ac_ext
2230cat >>conftest.$ac_ext <<_ACEOF
2231/* end confdefs.h.  */
2232
2233int
2234main ()
2235{
2236
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241rm -f conftest.o conftest.obj
2242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243  (eval $ac_compile) 2>&5
2244  ac_status=$?
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); }; then
2247  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2248  case $ac_file in
2249    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2250    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2251       break;;
2252  esac
2253done
2254else
2255  echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
2258{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: cannot compute suffix of object files: cannot compile
2261See \`config.log' for more details." >&2;}
2262   { (exit 1); exit 1; }; }
2263fi
2264
2265rm -f conftest.$ac_cv_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2268echo "${ECHO_T}$ac_cv_objext" >&6
2269OBJEXT=$ac_cv_objext
2270ac_objext=$OBJEXT
2271echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2272echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2273if test "${ac_cv_c_compiler_gnu+set}" = set; then
2274  echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276  cat >conftest.$ac_ext <<_ACEOF
2277/* confdefs.h.  */
2278_ACEOF
2279cat confdefs.h >>conftest.$ac_ext
2280cat >>conftest.$ac_ext <<_ACEOF
2281/* end confdefs.h.  */
2282
2283int
2284main ()
2285{
2286#ifndef __GNUC__
2287       choke me
2288#endif
2289
2290  ;
2291  return 0;
2292}
2293_ACEOF
2294rm -f conftest.$ac_objext
2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296  (eval $ac_compile) 2>conftest.er1
2297  ac_status=$?
2298  grep -v '^ *+' conftest.er1 >conftest.err
2299  rm -f conftest.er1
2300  cat conftest.err >&5
2301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302  (exit $ac_status); } &&
2303	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305  (eval $ac_try) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; } &&
2309	 { ac_try='test -s conftest.$ac_objext'
2310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311  (eval $ac_try) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; }; then
2315  ac_compiler_gnu=yes
2316else
2317  echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320ac_compiler_gnu=no
2321fi
2322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323ac_cv_c_compiler_gnu=$ac_compiler_gnu
2324
2325fi
2326echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2327echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2328GCC=`test $ac_compiler_gnu = yes && echo yes`
2329ac_test_CFLAGS=${CFLAGS+set}
2330ac_save_CFLAGS=$CFLAGS
2331CFLAGS="-g"
2332echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2333echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2334if test "${ac_cv_prog_cc_g+set}" = set; then
2335  echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337  cat >conftest.$ac_ext <<_ACEOF
2338/* confdefs.h.  */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h.  */
2343
2344int
2345main ()
2346{
2347
2348  ;
2349  return 0;
2350}
2351_ACEOF
2352rm -f conftest.$ac_objext
2353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354  (eval $ac_compile) 2>conftest.er1
2355  ac_status=$?
2356  grep -v '^ *+' conftest.er1 >conftest.err
2357  rm -f conftest.er1
2358  cat conftest.err >&5
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); } &&
2361	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363  (eval $ac_try) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; } &&
2367	 { ac_try='test -s conftest.$ac_objext'
2368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369  (eval $ac_try) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; }; then
2373  ac_cv_prog_cc_g=yes
2374else
2375  echo "$as_me: failed program was:" >&5
2376sed 's/^/| /' conftest.$ac_ext >&5
2377
2378ac_cv_prog_cc_g=no
2379fi
2380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381fi
2382echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2383echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2384if test "$ac_test_CFLAGS" = set; then
2385  CFLAGS=$ac_save_CFLAGS
2386elif test $ac_cv_prog_cc_g = yes; then
2387  if test "$GCC" = yes; then
2388    CFLAGS="-g -O2"
2389  else
2390    CFLAGS="-g"
2391  fi
2392else
2393  if test "$GCC" = yes; then
2394    CFLAGS="-O2"
2395  else
2396    CFLAGS=
2397  fi
2398fi
2399echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2400echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2401if test "${ac_cv_prog_cc_stdc+set}" = set; then
2402  echo $ECHO_N "(cached) $ECHO_C" >&6
2403else
2404  ac_cv_prog_cc_stdc=no
2405ac_save_CC=$CC
2406cat >conftest.$ac_ext <<_ACEOF
2407/* confdefs.h.  */
2408_ACEOF
2409cat confdefs.h >>conftest.$ac_ext
2410cat >>conftest.$ac_ext <<_ACEOF
2411/* end confdefs.h.  */
2412#include <stdarg.h>
2413#include <stdio.h>
2414#include <sys/types.h>
2415#include <sys/stat.h>
2416/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2417struct buf { int x; };
2418FILE * (*rcsopen) (struct buf *, struct stat *, int);
2419static char *e (p, i)
2420     char **p;
2421     int i;
2422{
2423  return p[i];
2424}
2425static char *f (char * (*g) (char **, int), char **p, ...)
2426{
2427  char *s;
2428  va_list v;
2429  va_start (v,p);
2430  s = g (p, va_arg (v,int));
2431  va_end (v);
2432  return s;
2433}
2434
2435/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2436   function prototypes and stuff, but not '\xHH' hex character constants.
2437   These don't provoke an error unfortunately, instead are silently treated
2438   as 'x'.  The following induces an error, until -std1 is added to get
2439   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2440   array size at least.  It's necessary to write '\x00'==0 to get something
2441   that's true only with -std1.  */
2442int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2443
2444int test (int i, double x);
2445struct s1 {int (*f) (int a);};
2446struct s2 {int (*f) (double a);};
2447int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2448int argc;
2449char **argv;
2450int
2451main ()
2452{
2453return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2454  ;
2455  return 0;
2456}
2457_ACEOF
2458# Don't try gcc -ansi; that turns off useful extensions and
2459# breaks some systems' header files.
2460# AIX			-qlanglvl=ansi
2461# Ultrix and OSF/1	-std1
2462# HP-UX 10.20 and later	-Ae
2463# HP-UX older versions	-Aa -D_HPUX_SOURCE
2464# SVR4			-Xc -D__EXTENSIONS__
2465for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2466do
2467  CC="$ac_save_CC $ac_arg"
2468  rm -f conftest.$ac_objext
2469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470  (eval $ac_compile) 2>conftest.er1
2471  ac_status=$?
2472  grep -v '^ *+' conftest.er1 >conftest.err
2473  rm -f conftest.er1
2474  cat conftest.err >&5
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); } &&
2477	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479  (eval $ac_try) 2>&5
2480  ac_status=$?
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); }; } &&
2483	 { ac_try='test -s conftest.$ac_objext'
2484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485  (eval $ac_try) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; }; then
2489  ac_cv_prog_cc_stdc=$ac_arg
2490break
2491else
2492  echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495fi
2496rm -f conftest.err conftest.$ac_objext
2497done
2498rm -f conftest.$ac_ext conftest.$ac_objext
2499CC=$ac_save_CC
2500
2501fi
2502
2503case "x$ac_cv_prog_cc_stdc" in
2504  x|xno)
2505    echo "$as_me:$LINENO: result: none needed" >&5
2506echo "${ECHO_T}none needed" >&6 ;;
2507  *)
2508    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2509echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2510    CC="$CC $ac_cv_prog_cc_stdc" ;;
2511esac
2512
2513# Some people use a C++ compiler to compile C.  Since we use `exit',
2514# in C++ we need to declare it.  In case someone uses the same compiler
2515# for both compiling C and C++ we need to have the C++ compiler decide
2516# the declaration of exit, since it's the most demanding environment.
2517cat >conftest.$ac_ext <<_ACEOF
2518#ifndef __cplusplus
2519  choke me
2520#endif
2521_ACEOF
2522rm -f conftest.$ac_objext
2523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524  (eval $ac_compile) 2>conftest.er1
2525  ac_status=$?
2526  grep -v '^ *+' conftest.er1 >conftest.err
2527  rm -f conftest.er1
2528  cat conftest.err >&5
2529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530  (exit $ac_status); } &&
2531	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533  (eval $ac_try) 2>&5
2534  ac_status=$?
2535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536  (exit $ac_status); }; } &&
2537	 { ac_try='test -s conftest.$ac_objext'
2538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539  (eval $ac_try) 2>&5
2540  ac_status=$?
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); }; }; then
2543  for ac_declaration in \
2544   '' \
2545   'extern "C" void std::exit (int) throw (); using std::exit;' \
2546   'extern "C" void std::exit (int); using std::exit;' \
2547   'extern "C" void exit (int) throw ();' \
2548   'extern "C" void exit (int);' \
2549   'void exit (int);'
2550do
2551  cat >conftest.$ac_ext <<_ACEOF
2552/* confdefs.h.  */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h.  */
2557$ac_declaration
2558#include <stdlib.h>
2559int
2560main ()
2561{
2562exit (42);
2563  ;
2564  return 0;
2565}
2566_ACEOF
2567rm -f conftest.$ac_objext
2568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569  (eval $ac_compile) 2>conftest.er1
2570  ac_status=$?
2571  grep -v '^ *+' conftest.er1 >conftest.err
2572  rm -f conftest.er1
2573  cat conftest.err >&5
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); } &&
2576	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; } &&
2582	 { ac_try='test -s conftest.$ac_objext'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  :
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593continue
2594fi
2595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596  cat >conftest.$ac_ext <<_ACEOF
2597/* confdefs.h.  */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h.  */
2602$ac_declaration
2603int
2604main ()
2605{
2606exit (42);
2607  ;
2608  return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613  (eval $ac_compile) 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; } &&
2626	 { ac_try='test -s conftest.$ac_objext'
2627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628  (eval $ac_try) 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); }; }; then
2632  break
2633else
2634  echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637fi
2638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2639done
2640rm -f conftest*
2641if test -n "$ac_declaration"; then
2642  echo '#ifdef __cplusplus' >>confdefs.h
2643  echo $ac_declaration      >>confdefs.h
2644  echo '#endif'             >>confdefs.h
2645fi
2646
2647else
2648  echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651fi
2652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653ac_ext=c
2654ac_cpp='$CPP $CPPFLAGS'
2655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659ac_ext=c
2660ac_cpp='$CPP $CPPFLAGS'
2661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2665echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2666# On Suns, sometimes $CPP names a directory.
2667if test -n "$CPP" && test -d "$CPP"; then
2668  CPP=
2669fi
2670if test -z "$CPP"; then
2671  if test "${ac_cv_prog_CPP+set}" = set; then
2672  echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674      # Double quotes because CPP needs to be expanded
2675    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2676    do
2677      ac_preproc_ok=false
2678for ac_c_preproc_warn_flag in '' yes
2679do
2680  # Use a header file that comes with gcc, so configuring glibc
2681  # with a fresh cross-compiler works.
2682  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683  # <limits.h> exists even on freestanding compilers.
2684  # On the NeXT, cc -E runs the code through the compiler's parser,
2685  # not just through cpp. "Syntax error" is here to catch this case.
2686  cat >conftest.$ac_ext <<_ACEOF
2687/* confdefs.h.  */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h.  */
2692#ifdef __STDC__
2693# include <limits.h>
2694#else
2695# include <assert.h>
2696#endif
2697		     Syntax error
2698_ACEOF
2699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2700  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2701  ac_status=$?
2702  grep -v '^ *+' conftest.er1 >conftest.err
2703  rm -f conftest.er1
2704  cat conftest.err >&5
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); } >/dev/null; then
2707  if test -s conftest.err; then
2708    ac_cpp_err=$ac_c_preproc_warn_flag
2709    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2710  else
2711    ac_cpp_err=
2712  fi
2713else
2714  ac_cpp_err=yes
2715fi
2716if test -z "$ac_cpp_err"; then
2717  :
2718else
2719  echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722  # Broken: fails on valid input.
2723continue
2724fi
2725rm -f conftest.err conftest.$ac_ext
2726
2727  # OK, works on sane cases.  Now check whether non-existent headers
2728  # can be detected and how.
2729  cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h.  */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h.  */
2735#include <ac_nonexistent.h>
2736_ACEOF
2737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2738  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2739  ac_status=$?
2740  grep -v '^ *+' conftest.er1 >conftest.err
2741  rm -f conftest.er1
2742  cat conftest.err >&5
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } >/dev/null; then
2745  if test -s conftest.err; then
2746    ac_cpp_err=$ac_c_preproc_warn_flag
2747    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2748  else
2749    ac_cpp_err=
2750  fi
2751else
2752  ac_cpp_err=yes
2753fi
2754if test -z "$ac_cpp_err"; then
2755  # Broken: success on invalid input.
2756continue
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761  # Passes both tests.
2762ac_preproc_ok=:
2763break
2764fi
2765rm -f conftest.err conftest.$ac_ext
2766
2767done
2768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2769rm -f conftest.err conftest.$ac_ext
2770if $ac_preproc_ok; then
2771  break
2772fi
2773
2774    done
2775    ac_cv_prog_CPP=$CPP
2776
2777fi
2778  CPP=$ac_cv_prog_CPP
2779else
2780  ac_cv_prog_CPP=$CPP
2781fi
2782echo "$as_me:$LINENO: result: $CPP" >&5
2783echo "${ECHO_T}$CPP" >&6
2784ac_preproc_ok=false
2785for ac_c_preproc_warn_flag in '' yes
2786do
2787  # Use a header file that comes with gcc, so configuring glibc
2788  # with a fresh cross-compiler works.
2789  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2790  # <limits.h> exists even on freestanding compilers.
2791  # On the NeXT, cc -E runs the code through the compiler's parser,
2792  # not just through cpp. "Syntax error" is here to catch this case.
2793  cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h.  */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h.  */
2799#ifdef __STDC__
2800# include <limits.h>
2801#else
2802# include <assert.h>
2803#endif
2804		     Syntax error
2805_ACEOF
2806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2807  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2808  ac_status=$?
2809  grep -v '^ *+' conftest.er1 >conftest.err
2810  rm -f conftest.er1
2811  cat conftest.err >&5
2812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813  (exit $ac_status); } >/dev/null; then
2814  if test -s conftest.err; then
2815    ac_cpp_err=$ac_c_preproc_warn_flag
2816    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2817  else
2818    ac_cpp_err=
2819  fi
2820else
2821  ac_cpp_err=yes
2822fi
2823if test -z "$ac_cpp_err"; then
2824  :
2825else
2826  echo "$as_me: failed program was:" >&5
2827sed 's/^/| /' conftest.$ac_ext >&5
2828
2829  # Broken: fails on valid input.
2830continue
2831fi
2832rm -f conftest.err conftest.$ac_ext
2833
2834  # OK, works on sane cases.  Now check whether non-existent headers
2835  # can be detected and how.
2836  cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h.  */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h.  */
2842#include <ac_nonexistent.h>
2843_ACEOF
2844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2845  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2846  ac_status=$?
2847  grep -v '^ *+' conftest.er1 >conftest.err
2848  rm -f conftest.er1
2849  cat conftest.err >&5
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); } >/dev/null; then
2852  if test -s conftest.err; then
2853    ac_cpp_err=$ac_c_preproc_warn_flag
2854    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2855  else
2856    ac_cpp_err=
2857  fi
2858else
2859  ac_cpp_err=yes
2860fi
2861if test -z "$ac_cpp_err"; then
2862  # Broken: success on invalid input.
2863continue
2864else
2865  echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868  # Passes both tests.
2869ac_preproc_ok=:
2870break
2871fi
2872rm -f conftest.err conftest.$ac_ext
2873
2874done
2875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2876rm -f conftest.err conftest.$ac_ext
2877if $ac_preproc_ok; then
2878  :
2879else
2880  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2881See \`config.log' for more details." >&5
2882echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2883See \`config.log' for more details." >&2;}
2884   { (exit 1); exit 1; }; }
2885fi
2886
2887ac_ext=c
2888ac_cpp='$CPP $CPPFLAGS'
2889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892
2893
2894echo "$as_me:$LINENO: checking whether the C preprocessor needs special flags" >&5
2895echo $ECHO_N "checking whether the C preprocessor needs special flags... $ECHO_C" >&6
2896
2897cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h.  */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h.  */
2903#include <limits.h>
2904#if (32767 >= 4294967295ul) || (65535u >= 4294967295ul)
2905#  include "your C preprocessor is broken 1"
2906#elif (0xffffu == 0xfffffffful)
2907#  include "your C preprocessor is broken 2"
2908#elif (32767 >= ULONG_MAX) || (65535u >= ULONG_MAX)
2909#  include "your C preprocessor is broken 3"
2910#endif
2911
2912int
2913main ()
2914{
2915
2916
2917  ;
2918  return 0;
2919}
2920_ACEOF
2921
2922mfx_save_CPPFLAGS=$CPPFLAGS
2923mfx_tmp=ERROR
2924for mfx_arg in "" -no-cpp-precomp
2925do
2926  CPPFLAGS="$mfx_arg $mfx_save_CPPFLAGS"
2927  rm -f conftest.$ac_objext
2928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929  (eval $ac_compile) 2>conftest.er1
2930  ac_status=$?
2931  grep -v '^ *+' conftest.er1 >conftest.err
2932  rm -f conftest.er1
2933  cat conftest.err >&5
2934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935  (exit $ac_status); } &&
2936	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938  (eval $ac_try) 2>&5
2939  ac_status=$?
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); }; } &&
2942	 { ac_try='test -s conftest.$ac_objext'
2943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944  (eval $ac_try) 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; }; then
2948  mfx_tmp=$mfx_arg
2949break
2950else
2951  echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954fi
2955rm -f conftest.err conftest.$ac_objext
2956done
2957CPPFLAGS=$mfx_save_CPPFLAGS
2958rm -f conftest.$ac_ext conftest.$ac_objext
2959case x$mfx_tmp in
2960  x)
2961    echo "$as_me:$LINENO: result: none needed" >&5
2962echo "${ECHO_T}none needed" >&6 ;;
2963  xERROR)
2964    echo "$as_me:$LINENO: result: ERROR" >&5
2965echo "${ECHO_T}ERROR" >&6
2966    { { echo "$as_me:$LINENO: error: your C preprocessor is broken - for details see config.log" >&5
2967echo "$as_me: error: your C preprocessor is broken - for details see config.log" >&2;}
2968   { (exit 1); exit 1; }; }
2969    ;;
2970  *)
2971    echo "$as_me:$LINENO: result: $mfx_tmp" >&5
2972echo "${ECHO_T}$mfx_tmp" >&6
2973    CPPFLAGS="$mfx_tmp $CPPFLAGS"
2974    ;;
2975esac
2976
2977
2978echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2979echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2980if test "${ac_cv_c_const+set}" = set; then
2981  echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983  cat >conftest.$ac_ext <<_ACEOF
2984/* confdefs.h.  */
2985_ACEOF
2986cat confdefs.h >>conftest.$ac_ext
2987cat >>conftest.$ac_ext <<_ACEOF
2988/* end confdefs.h.  */
2989
2990int
2991main ()
2992{
2993/* FIXME: Include the comments suggested by Paul. */
2994#ifndef __cplusplus
2995  /* Ultrix mips cc rejects this.  */
2996  typedef int charset[2];
2997  const charset x;
2998  /* SunOS 4.1.1 cc rejects this.  */
2999  char const *const *ccp;
3000  char **p;
3001  /* NEC SVR4.0.2 mips cc rejects this.  */
3002  struct point {int x, y;};
3003  static struct point const zero = {0,0};
3004  /* AIX XL C 1.02.0.0 rejects this.
3005     It does not let you subtract one const X* pointer from another in
3006     an arm of an if-expression whose if-part is not a constant
3007     expression */
3008  const char *g = "string";
3009  ccp = &g + (g ? g-g : 0);
3010  /* HPUX 7.0 cc rejects these. */
3011  ++ccp;
3012  p = (char**) ccp;
3013  ccp = (char const *const *) p;
3014  { /* SCO 3.2v4 cc rejects this.  */
3015    char *t;
3016    char const *s = 0 ? (char *) 0 : (char const *) 0;
3017
3018    *t++ = 0;
3019  }
3020  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3021    int x[] = {25, 17};
3022    const int *foo = &x[0];
3023    ++foo;
3024  }
3025  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3026    typedef const int *iptr;
3027    iptr p = 0;
3028    ++p;
3029  }
3030  { /* AIX XL C 1.02.0.0 rejects this saying
3031       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3032    struct s { int j; const int *ap[3]; };
3033    struct s *b; b->j = 5;
3034  }
3035  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3036    const int foo = 10;
3037  }
3038#endif
3039
3040  ;
3041  return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext
3045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046  (eval $ac_compile) 2>conftest.er1
3047  ac_status=$?
3048  grep -v '^ *+' conftest.er1 >conftest.err
3049  rm -f conftest.er1
3050  cat conftest.err >&5
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); } &&
3053	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055  (eval $ac_try) 2>&5
3056  ac_status=$?
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); }; } &&
3059	 { ac_try='test -s conftest.$ac_objext'
3060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061  (eval $ac_try) 2>&5
3062  ac_status=$?
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); }; }; then
3065  ac_cv_c_const=yes
3066else
3067  echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070ac_cv_c_const=no
3071fi
3072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073fi
3074echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3075echo "${ECHO_T}$ac_cv_c_const" >&6
3076if test $ac_cv_c_const = no; then
3077
3078cat >>confdefs.h <<\_ACEOF
3079#define const
3080_ACEOF
3081
3082fi
3083
3084
3085echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3086echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3087if test "${ac_cv_c_bigendian+set}" = set; then
3088  echo $ECHO_N "(cached) $ECHO_C" >&6
3089else
3090  # See if sys/param.h defines the BYTE_ORDER macro.
3091cat >conftest.$ac_ext <<_ACEOF
3092/* confdefs.h.  */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h.  */
3097#include <sys/types.h>
3098#include <sys/param.h>
3099
3100int
3101main ()
3102{
3103#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3104 bogus endian macros
3105#endif
3106
3107  ;
3108  return 0;
3109}
3110_ACEOF
3111rm -f conftest.$ac_objext
3112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3113  (eval $ac_compile) 2>conftest.er1
3114  ac_status=$?
3115  grep -v '^ *+' conftest.er1 >conftest.err
3116  rm -f conftest.er1
3117  cat conftest.err >&5
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); } &&
3120	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122  (eval $ac_try) 2>&5
3123  ac_status=$?
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); }; } &&
3126	 { ac_try='test -s conftest.$ac_objext'
3127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128  (eval $ac_try) 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; }; then
3132  # It does; now see whether it defined to BIG_ENDIAN or not.
3133cat >conftest.$ac_ext <<_ACEOF
3134/* confdefs.h.  */
3135_ACEOF
3136cat confdefs.h >>conftest.$ac_ext
3137cat >>conftest.$ac_ext <<_ACEOF
3138/* end confdefs.h.  */
3139#include <sys/types.h>
3140#include <sys/param.h>
3141
3142int
3143main ()
3144{
3145#if BYTE_ORDER != BIG_ENDIAN
3146 not big endian
3147#endif
3148
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153rm -f conftest.$ac_objext
3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155  (eval $ac_compile) 2>conftest.er1
3156  ac_status=$?
3157  grep -v '^ *+' conftest.er1 >conftest.err
3158  rm -f conftest.er1
3159  cat conftest.err >&5
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); } &&
3162	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164  (eval $ac_try) 2>&5
3165  ac_status=$?
3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); }; } &&
3168	 { ac_try='test -s conftest.$ac_objext'
3169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170  (eval $ac_try) 2>&5
3171  ac_status=$?
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); }; }; then
3174  ac_cv_c_bigendian=yes
3175else
3176  echo "$as_me: failed program was:" >&5
3177sed 's/^/| /' conftest.$ac_ext >&5
3178
3179ac_cv_c_bigendian=no
3180fi
3181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3182else
3183  echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186# It does not; compile a test program.
3187if test "$cross_compiling" = yes; then
3188  # try to guess the endianness by grepping values into an object file
3189  ac_cv_c_bigendian=unknown
3190  cat >conftest.$ac_ext <<_ACEOF
3191/* confdefs.h.  */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h.  */
3196short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3197short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3198void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3199short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3200short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3201void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3202int
3203main ()
3204{
3205 _ascii (); _ebcdic ();
3206  ;
3207  return 0;
3208}
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212  (eval $ac_compile) 2>conftest.er1
3213  ac_status=$?
3214  grep -v '^ *+' conftest.er1 >conftest.err
3215  rm -f conftest.er1
3216  cat conftest.err >&5
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); } &&
3219	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221  (eval $ac_try) 2>&5
3222  ac_status=$?
3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224  (exit $ac_status); }; } &&
3225	 { ac_try='test -s conftest.$ac_objext'
3226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227  (eval $ac_try) 2>&5
3228  ac_status=$?
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }; }; then
3231  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3232  ac_cv_c_bigendian=yes
3233fi
3234if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3235  if test "$ac_cv_c_bigendian" = unknown; then
3236    ac_cv_c_bigendian=no
3237  else
3238    # finding both strings is unlikely to happen, but who knows?
3239    ac_cv_c_bigendian=unknown
3240  fi
3241fi
3242else
3243  echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246fi
3247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248else
3249  cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h.  */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h.  */
3255int
3256main ()
3257{
3258  /* Are we little or big endian?  From Harbison&Steele.  */
3259  union
3260  {
3261    long l;
3262    char c[sizeof (long)];
3263  } u;
3264  u.l = 1;
3265  exit (u.c[sizeof (long) - 1] == 1);
3266}
3267_ACEOF
3268rm -f conftest$ac_exeext
3269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3270  (eval $ac_link) 2>&5
3271  ac_status=$?
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275  (eval $ac_try) 2>&5
3276  ac_status=$?
3277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278  (exit $ac_status); }; }; then
3279  ac_cv_c_bigendian=no
3280else
3281  echo "$as_me: program exited with status $ac_status" >&5
3282echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
3284
3285( exit $ac_status )
3286ac_cv_c_bigendian=yes
3287fi
3288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3289fi
3290fi
3291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292fi
3293echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3294echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3295case $ac_cv_c_bigendian in
3296  yes)
3297
3298cat >>confdefs.h <<\_ACEOF
3299#define LZO_ABI_BIG_ENDIAN 1
3300_ACEOF
3301 ;;
3302  no)
3303
3304cat >>confdefs.h <<\_ACEOF
3305#define LZO_ABI_LITTLE_ENDIAN 1
3306_ACEOF
3307 ;;
3308  *)
3309    { { echo "$as_me:$LINENO: error: unknown endianness
3310presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3311echo "$as_me: error: unknown endianness
3312presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3313   { (exit 1); exit 1; }; } ;;
3314esac
3315
3316
3317# Check whether --enable-largefile or --disable-largefile was given.
3318if test "${enable_largefile+set}" = set; then
3319  enableval="$enable_largefile"
3320
3321fi;
3322if test "$enable_largefile" != no; then
3323
3324  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3325echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3326if test "${ac_cv_sys_largefile_CC+set}" = set; then
3327  echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329  ac_cv_sys_largefile_CC=no
3330     if test "$GCC" != yes; then
3331       ac_save_CC=$CC
3332       while :; do
3333     	 # IRIX 6.2 and later do not support large files by default,
3334     	 # so use the C compiler's -n32 option if that helps.
3335	 cat >conftest.$ac_ext <<_ACEOF
3336/* confdefs.h.  */
3337_ACEOF
3338cat confdefs.h >>conftest.$ac_ext
3339cat >>conftest.$ac_ext <<_ACEOF
3340/* end confdefs.h.  */
3341#include <sys/types.h>
3342 /* Check that off_t can represent 2**63 - 1 correctly.
3343    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3344    since some C++ compilers masquerading as C compilers
3345    incorrectly reject 9223372036854775807.  */
3346#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3347  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3348		       && LARGE_OFF_T % 2147483647 == 1)
3349		      ? 1 : -1];
3350int
3351main ()
3352{
3353
3354  ;
3355  return 0;
3356}
3357_ACEOF
3358     	 rm -f conftest.$ac_objext
3359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360  (eval $ac_compile) 2>conftest.er1
3361  ac_status=$?
3362  grep -v '^ *+' conftest.er1 >conftest.err
3363  rm -f conftest.er1
3364  cat conftest.err >&5
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); } &&
3367	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369  (eval $ac_try) 2>&5
3370  ac_status=$?
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); }; } &&
3373	 { ac_try='test -s conftest.$ac_objext'
3374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375  (eval $ac_try) 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }; }; then
3379  break
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384fi
3385rm -f conftest.err conftest.$ac_objext
3386     	 CC="$CC -n32"
3387     	 rm -f conftest.$ac_objext
3388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389  (eval $ac_compile) 2>conftest.er1
3390  ac_status=$?
3391  grep -v '^ *+' conftest.er1 >conftest.err
3392  rm -f conftest.er1
3393  cat conftest.err >&5
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); } &&
3396	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; } &&
3402	 { ac_try='test -s conftest.$ac_objext'
3403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404  (eval $ac_try) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }; }; then
3408  ac_cv_sys_largefile_CC=' -n32'; break
3409else
3410  echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413fi
3414rm -f conftest.err conftest.$ac_objext
3415	 break
3416       done
3417       CC=$ac_save_CC
3418       rm -f conftest.$ac_ext
3419    fi
3420fi
3421echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3422echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3423  if test "$ac_cv_sys_largefile_CC" != no; then
3424    CC=$CC$ac_cv_sys_largefile_CC
3425  fi
3426
3427  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3428echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3429if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3430  echo $ECHO_N "(cached) $ECHO_C" >&6
3431else
3432  while :; do
3433  ac_cv_sys_file_offset_bits=no
3434  cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h.  */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h.  */
3440#include <sys/types.h>
3441 /* Check that off_t can represent 2**63 - 1 correctly.
3442    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3443    since some C++ compilers masquerading as C compilers
3444    incorrectly reject 9223372036854775807.  */
3445#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3446  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3447		       && LARGE_OFF_T % 2147483647 == 1)
3448		      ? 1 : -1];
3449int
3450main ()
3451{
3452
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext
3458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459  (eval $ac_compile) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } &&
3466	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468  (eval $ac_try) 2>&5
3469  ac_status=$?
3470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471  (exit $ac_status); }; } &&
3472	 { ac_try='test -s conftest.$ac_objext'
3473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474  (eval $ac_try) 2>&5
3475  ac_status=$?
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); }; }; then
3478  break
3479else
3480  echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483fi
3484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3485  cat >conftest.$ac_ext <<_ACEOF
3486/* confdefs.h.  */
3487_ACEOF
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h.  */
3491#define _FILE_OFFSET_BITS 64
3492#include <sys/types.h>
3493 /* Check that off_t can represent 2**63 - 1 correctly.
3494    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3495    since some C++ compilers masquerading as C compilers
3496    incorrectly reject 9223372036854775807.  */
3497#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3498  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3499		       && LARGE_OFF_T % 2147483647 == 1)
3500		      ? 1 : -1];
3501int
3502main ()
3503{
3504
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509rm -f conftest.$ac_objext
3510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511  (eval $ac_compile) 2>conftest.er1
3512  ac_status=$?
3513  grep -v '^ *+' conftest.er1 >conftest.err
3514  rm -f conftest.er1
3515  cat conftest.err >&5
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } &&
3518	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520  (eval $ac_try) 2>&5
3521  ac_status=$?
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); }; } &&
3524	 { ac_try='test -s conftest.$ac_objext'
3525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526  (eval $ac_try) 2>&5
3527  ac_status=$?
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); }; }; then
3530  ac_cv_sys_file_offset_bits=64; break
3531else
3532  echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
3535fi
3536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537  break
3538done
3539fi
3540echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3541echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3542if test "$ac_cv_sys_file_offset_bits" != no; then
3543
3544cat >>confdefs.h <<_ACEOF
3545#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3546_ACEOF
3547
3548fi
3549rm -f conftest*
3550  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3551echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3552if test "${ac_cv_sys_large_files+set}" = set; then
3553  echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555  while :; do
3556  ac_cv_sys_large_files=no
3557  cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h.  */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h.  */
3563#include <sys/types.h>
3564 /* Check that off_t can represent 2**63 - 1 correctly.
3565    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3566    since some C++ compilers masquerading as C compilers
3567    incorrectly reject 9223372036854775807.  */
3568#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3569  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3570		       && LARGE_OFF_T % 2147483647 == 1)
3571		      ? 1 : -1];
3572int
3573main ()
3574{
3575
3576  ;
3577  return 0;
3578}
3579_ACEOF
3580rm -f conftest.$ac_objext
3581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582  (eval $ac_compile) 2>conftest.er1
3583  ac_status=$?
3584  grep -v '^ *+' conftest.er1 >conftest.err
3585  rm -f conftest.er1
3586  cat conftest.err >&5
3587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588  (exit $ac_status); } &&
3589	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591  (eval $ac_try) 2>&5
3592  ac_status=$?
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); }; } &&
3595	 { ac_try='test -s conftest.$ac_objext'
3596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597  (eval $ac_try) 2>&5
3598  ac_status=$?
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); }; }; then
3601  break
3602else
3603  echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
3606fi
3607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608  cat >conftest.$ac_ext <<_ACEOF
3609/* confdefs.h.  */
3610_ACEOF
3611cat confdefs.h >>conftest.$ac_ext
3612cat >>conftest.$ac_ext <<_ACEOF
3613/* end confdefs.h.  */
3614#define _LARGE_FILES 1
3615#include <sys/types.h>
3616 /* Check that off_t can represent 2**63 - 1 correctly.
3617    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3618    since some C++ compilers masquerading as C compilers
3619    incorrectly reject 9223372036854775807.  */
3620#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3621  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3622		       && LARGE_OFF_T % 2147483647 == 1)
3623		      ? 1 : -1];
3624int
3625main ()
3626{
3627
3628  ;
3629  return 0;
3630}
3631_ACEOF
3632rm -f conftest.$ac_objext
3633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634  (eval $ac_compile) 2>conftest.er1
3635  ac_status=$?
3636  grep -v '^ *+' conftest.er1 >conftest.err
3637  rm -f conftest.er1
3638  cat conftest.err >&5
3639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640  (exit $ac_status); } &&
3641	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643  (eval $ac_try) 2>&5
3644  ac_status=$?
3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646  (exit $ac_status); }; } &&
3647	 { ac_try='test -s conftest.$ac_objext'
3648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649  (eval $ac_try) 2>&5
3650  ac_status=$?
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); }; }; then
3653  ac_cv_sys_large_files=1; break
3654else
3655  echo "$as_me: failed program was:" >&5
3656sed 's/^/| /' conftest.$ac_ext >&5
3657
3658fi
3659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660  break
3661done
3662fi
3663echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3664echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3665if test "$ac_cv_sys_large_files" != no; then
3666
3667cat >>confdefs.h <<_ACEOF
3668#define _LARGE_FILES $ac_cv_sys_large_files
3669_ACEOF
3670
3671fi
3672rm -f conftest*
3673fi
3674
3675
3676am__api_version="1.9"
3677# Find a good install program.  We prefer a C program (faster),
3678# so one script is as good as another.  But avoid the broken or
3679# incompatible versions:
3680# SysV /etc/install, /usr/sbin/install
3681# SunOS /usr/etc/install
3682# IRIX /sbin/install
3683# AIX /bin/install
3684# AmigaOS /C/install, which installs bootblocks on floppy discs
3685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3686# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3688# OS/2's system install, which has a completely different semantic
3689# ./install, which can be erroneously created by make from ./install.sh.
3690echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3691echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3692if test -z "$INSTALL"; then
3693if test "${ac_cv_path_install+set}" = set; then
3694  echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
3696  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH
3698do
3699  IFS=$as_save_IFS
3700  test -z "$as_dir" && as_dir=.
3701  # Account for people who put trailing slashes in PATH elements.
3702case $as_dir/ in
3703  ./ | .// | /cC/* | \
3704  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3705  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3706  /usr/ucb/* ) ;;
3707  *)
3708    # OSF1 and SCO ODT 3.0 have their own names for install.
3709    # Don't use installbsd from OSF since it installs stuff as root
3710    # by default.
3711    for ac_prog in ginstall scoinst install; do
3712      for ac_exec_ext in '' $ac_executable_extensions; do
3713	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3714	  if test $ac_prog = install &&
3715	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3716	    # AIX install.  It has an incompatible calling convention.
3717	    :
3718	  elif test $ac_prog = install &&
3719	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720	    # program-specific install script used by HP pwplus--don't use.
3721	    :
3722	  else
3723	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3724	    break 3
3725	  fi
3726	fi
3727      done
3728    done
3729    ;;
3730esac
3731done
3732
3733
3734fi
3735  if test "${ac_cv_path_install+set}" = set; then
3736    INSTALL=$ac_cv_path_install
3737  else
3738    # As a last resort, use the slow shell script.  We don't cache a
3739    # path for INSTALL within a source directory, because that will
3740    # break other packages using the cache if that directory is
3741    # removed, or if the path is relative.
3742    INSTALL=$ac_install_sh
3743  fi
3744fi
3745echo "$as_me:$LINENO: result: $INSTALL" >&5
3746echo "${ECHO_T}$INSTALL" >&6
3747
3748# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3749# It thinks the first close brace ends the variable substitution.
3750test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3751
3752test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3753
3754test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3755
3756echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3757echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3758# Just in case
3759sleep 1
3760echo timestamp > conftest.file
3761# Do `set' in a subshell so we don't clobber the current shell's
3762# arguments.  Must try -L first in case configure is actually a
3763# symlink; some systems play weird games with the mod time of symlinks
3764# (eg FreeBSD returns the mod time of the symlink's containing
3765# directory).
3766if (
3767   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3768   if test "$*" = "X"; then
3769      # -L didn't work.
3770      set X `ls -t $srcdir/configure conftest.file`
3771   fi
3772   rm -f conftest.file
3773   if test "$*" != "X $srcdir/configure conftest.file" \
3774      && test "$*" != "X conftest.file $srcdir/configure"; then
3775
3776      # If neither matched, then we have a broken ls.  This can happen
3777      # if, for instance, CONFIG_SHELL is bash and it inherits a
3778      # broken ls alias from the environment.  This has actually
3779      # happened.  Such a system could not be considered "sane".
3780      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3781alias in your environment" >&5
3782echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3783alias in your environment" >&2;}
3784   { (exit 1); exit 1; }; }
3785   fi
3786
3787   test "$2" = conftest.file
3788   )
3789then
3790   # Ok.
3791   :
3792else
3793   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3794Check your system clock" >&5
3795echo "$as_me: error: newly created file is older than distributed files!
3796Check your system clock" >&2;}
3797   { (exit 1); exit 1; }; }
3798fi
3799echo "$as_me:$LINENO: result: yes" >&5
3800echo "${ECHO_T}yes" >&6
3801test "$program_prefix" != NONE &&
3802  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3803# Use a double $ so make ignores it.
3804test "$program_suffix" != NONE &&
3805  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3806# Double any \ or $.  echo might interpret backslashes.
3807# By default was `s,x,x', remove it if useless.
3808cat <<\_ACEOF >conftest.sed
3809s/[\\$]/&&/g;s/;s,x,x,$//
3810_ACEOF
3811program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3812rm conftest.sed
3813
3814# expand $ac_aux_dir to an absolute path
3815am_aux_dir=`cd $ac_aux_dir && pwd`
3816
3817test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3818# Use eval to expand $SHELL
3819if eval "$MISSING --run true"; then
3820  am_missing_run="$MISSING --run "
3821else
3822  am_missing_run=
3823  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3824echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3825fi
3826
3827if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3828  # We used to keeping the `.' as first argument, in order to
3829  # allow $(mkdir_p) to be used without argument.  As in
3830  #   $(mkdir_p) $(somedir)
3831  # where $(somedir) is conditionally defined.  However this is wrong
3832  # for two reasons:
3833  #  1. if the package is installed by a user who cannot write `.'
3834  #     make install will fail,
3835  #  2. the above comment should most certainly read
3836  #     $(mkdir_p) $(DESTDIR)$(somedir)
3837  #     so it does not work when $(somedir) is undefined and
3838  #     $(DESTDIR) is not.
3839  #  To support the latter case, we have to write
3840  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3841  #  so the `.' trick is pointless.
3842  mkdir_p='mkdir -p --'
3843else
3844  # On NextStep and OpenStep, the `mkdir' command does not
3845  # recognize any option.  It will interpret all options as
3846  # directories to create, and then abort because `.' already
3847  # exists.
3848  for d in ./-p ./--version;
3849  do
3850    test -d $d && rmdir $d
3851  done
3852  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3853  if test -f "$ac_aux_dir/mkinstalldirs"; then
3854    mkdir_p='$(mkinstalldirs)'
3855  else
3856    mkdir_p='$(install_sh) -d'
3857  fi
3858fi
3859
3860for ac_prog in gawk mawk nawk awk
3861do
3862  # Extract the first word of "$ac_prog", so it can be a program name with args.
3863set dummy $ac_prog; ac_word=$2
3864echo "$as_me:$LINENO: checking for $ac_word" >&5
3865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866if test "${ac_cv_prog_AWK+set}" = set; then
3867  echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869  if test -n "$AWK"; then
3870  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3871else
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875  IFS=$as_save_IFS
3876  test -z "$as_dir" && as_dir=.
3877  for ac_exec_ext in '' $ac_executable_extensions; do
3878  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879    ac_cv_prog_AWK="$ac_prog"
3880    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881    break 2
3882  fi
3883done
3884done
3885
3886fi
3887fi
3888AWK=$ac_cv_prog_AWK
3889if test -n "$AWK"; then
3890  echo "$as_me:$LINENO: result: $AWK" >&5
3891echo "${ECHO_T}$AWK" >&6
3892else
3893  echo "$as_me:$LINENO: result: no" >&5
3894echo "${ECHO_T}no" >&6
3895fi
3896
3897  test -n "$AWK" && break
3898done
3899
3900echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3901echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3902set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3903if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3904  echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906  cat >conftest.make <<\_ACEOF
3907all:
3908	@echo 'ac_maketemp="$(MAKE)"'
3909_ACEOF
3910# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3911eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3912if test -n "$ac_maketemp"; then
3913  eval ac_cv_prog_make_${ac_make}_set=yes
3914else
3915  eval ac_cv_prog_make_${ac_make}_set=no
3916fi
3917rm -f conftest.make
3918fi
3919if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3920  echo "$as_me:$LINENO: result: yes" >&5
3921echo "${ECHO_T}yes" >&6
3922  SET_MAKE=
3923else
3924  echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
3926  SET_MAKE="MAKE=${MAKE-make}"
3927fi
3928
3929rm -rf .tst 2>/dev/null
3930mkdir .tst 2>/dev/null
3931if test -d .tst; then
3932  am__leading_dot=.
3933else
3934  am__leading_dot=_
3935fi
3936rmdir .tst 2>/dev/null
3937
3938DEPDIR="${am__leading_dot}deps"
3939
3940          ac_config_commands="$ac_config_commands depfiles"
3941
3942
3943am_make=${MAKE-make}
3944cat > confinc << 'END'
3945am__doit:
3946	@echo done
3947.PHONY: am__doit
3948END
3949# If we don't find an include directive, just comment out the code.
3950echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3951echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3952am__include="#"
3953am__quote=
3954_am_result=none
3955# First try GNU make style include.
3956echo "include confinc" > confmf
3957# We grep out `Entering directory' and `Leaving directory'
3958# messages which can occur if `w' ends up in MAKEFLAGS.
3959# In particular we don't look at `^make:' because GNU make might
3960# be invoked under some other name (usually "gmake"), in which
3961# case it prints its new name instead of `make'.
3962if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3963   am__include=include
3964   am__quote=
3965   _am_result=GNU
3966fi
3967# Now try BSD make style include.
3968if test "$am__include" = "#"; then
3969   echo '.include "confinc"' > confmf
3970   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3971      am__include=.include
3972      am__quote="\""
3973      _am_result=BSD
3974   fi
3975fi
3976
3977
3978echo "$as_me:$LINENO: result: $_am_result" >&5
3979echo "${ECHO_T}$_am_result" >&6
3980rm -f confinc confmf
3981
3982# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3983if test "${enable_dependency_tracking+set}" = set; then
3984  enableval="$enable_dependency_tracking"
3985
3986fi;
3987if test "x$enable_dependency_tracking" != xno; then
3988  am_depcomp="$ac_aux_dir/depcomp"
3989  AMDEPBACKSLASH='\'
3990fi
3991
3992
3993if test "x$enable_dependency_tracking" != xno; then
3994  AMDEP_TRUE=
3995  AMDEP_FALSE='#'
3996else
3997  AMDEP_TRUE='#'
3998  AMDEP_FALSE=
3999fi
4000
4001
4002
4003# test to see if srcdir already configured
4004if test "`cd $srcdir && pwd`" != "`pwd`" &&
4005   test -f $srcdir/config.status; then
4006  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4007echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4008   { (exit 1); exit 1; }; }
4009fi
4010
4011# test whether we have cygpath
4012if test -z "$CYGPATH_W"; then
4013  if (cygpath --version) >/dev/null 2>/dev/null; then
4014    CYGPATH_W='cygpath -w'
4015  else
4016    CYGPATH_W=echo
4017  fi
4018fi
4019
4020
4021# Define the identity of the package.
4022 PACKAGE='lzo'
4023 VERSION='2.03'
4024
4025
4026cat >>confdefs.h <<_ACEOF
4027#define PACKAGE "$PACKAGE"
4028_ACEOF
4029
4030
4031cat >>confdefs.h <<_ACEOF
4032#define VERSION "$VERSION"
4033_ACEOF
4034
4035# Some tools Automake needs.
4036
4037ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4038
4039
4040AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4041
4042
4043AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4044
4045
4046AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4047
4048
4049MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4050
4051install_sh=${install_sh-"$am_aux_dir/install-sh"}
4052
4053# Installed binaries are usually stripped using `strip' when the user
4054# run `make install-strip'.  However `strip' might not be the right
4055# tool to use in cross-compilation environments, therefore Automake
4056# will honor the `STRIP' environment variable to overrule this program.
4057if test "$cross_compiling" != no; then
4058  if test -n "$ac_tool_prefix"; then
4059  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4060set dummy ${ac_tool_prefix}strip; ac_word=$2
4061echo "$as_me:$LINENO: checking for $ac_word" >&5
4062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063if test "${ac_cv_prog_STRIP+set}" = set; then
4064  echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066  if test -n "$STRIP"; then
4067  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4068else
4069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH
4071do
4072  IFS=$as_save_IFS
4073  test -z "$as_dir" && as_dir=.
4074  for ac_exec_ext in '' $ac_executable_extensions; do
4075  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4077    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078    break 2
4079  fi
4080done
4081done
4082
4083fi
4084fi
4085STRIP=$ac_cv_prog_STRIP
4086if test -n "$STRIP"; then
4087  echo "$as_me:$LINENO: result: $STRIP" >&5
4088echo "${ECHO_T}$STRIP" >&6
4089else
4090  echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6
4092fi
4093
4094fi
4095if test -z "$ac_cv_prog_STRIP"; then
4096  ac_ct_STRIP=$STRIP
4097  # Extract the first word of "strip", so it can be a program name with args.
4098set dummy strip; ac_word=$2
4099echo "$as_me:$LINENO: checking for $ac_word" >&5
4100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4102  echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104  if test -n "$ac_ct_STRIP"; then
4105  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110  IFS=$as_save_IFS
4111  test -z "$as_dir" && as_dir=.
4112  for ac_exec_ext in '' $ac_executable_extensions; do
4113  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114    ac_cv_prog_ac_ct_STRIP="strip"
4115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116    break 2
4117  fi
4118done
4119done
4120
4121  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4122fi
4123fi
4124ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4125if test -n "$ac_ct_STRIP"; then
4126  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4127echo "${ECHO_T}$ac_ct_STRIP" >&6
4128else
4129  echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
4131fi
4132
4133  STRIP=$ac_ct_STRIP
4134else
4135  STRIP="$ac_cv_prog_STRIP"
4136fi
4137
4138fi
4139INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4140
4141# We need awk for the "check" target.  The system "awk" is bad on
4142# some platforms.
4143# Always define AMTAR for backward compatibility.
4144
4145AMTAR=${AMTAR-"${am_missing_run}tar"}
4146
4147am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4148
4149
4150
4151
4152depcc="$CC"   am_compiler_list=
4153
4154echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4155echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4156if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4157  echo $ECHO_N "(cached) $ECHO_C" >&6
4158else
4159  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4160  # We make a subdir and do the tests there.  Otherwise we can end up
4161  # making bogus files that we don't know about and never remove.  For
4162  # instance it was reported that on HP-UX the gcc test will end up
4163  # making a dummy file named `D' -- because `-MD' means `put the output
4164  # in D'.
4165  mkdir conftest.dir
4166  # Copy depcomp to subdir because otherwise we won't find it if we're
4167  # using a relative directory.
4168  cp "$am_depcomp" conftest.dir
4169  cd conftest.dir
4170  # We will build objects and dependencies in a subdirectory because
4171  # it helps to detect inapplicable dependency modes.  For instance
4172  # both Tru64's cc and ICC support -MD to output dependencies as a
4173  # side effect of compilation, but ICC will put the dependencies in
4174  # the current directory while Tru64 will put them in the object
4175  # directory.
4176  mkdir sub
4177
4178  am_cv_CC_dependencies_compiler_type=none
4179  if test "$am_compiler_list" = ""; then
4180     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4181  fi
4182  for depmode in $am_compiler_list; do
4183    # Setup a source with many dependencies, because some compilers
4184    # like to wrap large dependency lists on column 80 (with \), and
4185    # we should not choose a depcomp mode which is confused by this.
4186    #
4187    # We need to recreate these files for each test, as the compiler may
4188    # overwrite some of them when testing with obscure command lines.
4189    # This happens at least with the AIX C compiler.
4190    : > sub/conftest.c
4191    for i in 1 2 3 4 5 6; do
4192      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4193      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4194      # Solaris 8's {/usr,}/bin/sh.
4195      touch sub/conftst$i.h
4196    done
4197    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4198
4199    case $depmode in
4200    nosideeffect)
4201      # after this tag, mechanisms are not by side-effect, so they'll
4202      # only be used when explicitly requested
4203      if test "x$enable_dependency_tracking" = xyes; then
4204	continue
4205      else
4206	break
4207      fi
4208      ;;
4209    none) break ;;
4210    esac
4211    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4212    # mode.  It turns out that the SunPro C++ compiler does not properly
4213    # handle `-M -o', and we need to detect this.
4214    if depmode=$depmode \
4215       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4216       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4217       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4218         >/dev/null 2>conftest.err &&
4219       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4220       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4221       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4222      # icc doesn't choke on unknown options, it will just issue warnings
4223      # or remarks (even with -Werror).  So we grep stderr for any message
4224      # that says an option was ignored or not supported.
4225      # When given -MP, icc 7.0 and 7.1 complain thusly:
4226      #   icc: Command line warning: ignoring option '-M'; no argument required
4227      # The diagnosis changed in icc 8.0:
4228      #   icc: Command line remark: option '-MP' not supported
4229      if (grep 'ignoring option' conftest.err ||
4230          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4231        am_cv_CC_dependencies_compiler_type=$depmode
4232        break
4233      fi
4234    fi
4235  done
4236
4237  cd ..
4238  rm -rf conftest.dir
4239else
4240  am_cv_CC_dependencies_compiler_type=none
4241fi
4242
4243fi
4244echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4245echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4246CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4247
4248
4249
4250if
4251  test "x$enable_dependency_tracking" != xno \
4252  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4253  am__fastdepCC_TRUE=
4254  am__fastdepCC_FALSE='#'
4255else
4256  am__fastdepCC_TRUE='#'
4257  am__fastdepCC_FALSE=
4258fi
4259
4260
4261
4262          ac_config_headers="$ac_config_headers config.h:config.hin"
4263
4264
4265# Check whether --enable-static or --disable-static was given.
4266if test "${enable_static+set}" = set; then
4267  enableval="$enable_static"
4268  p=${PACKAGE-default}
4269    case $enableval in
4270    yes) enable_static=yes ;;
4271    no) enable_static=no ;;
4272    *)
4273     enable_static=no
4274      # Look at the argument we got.  We use all the common list separators.
4275      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4276      for pkg in $enableval; do
4277	IFS="$lt_save_ifs"
4278	if test "X$pkg" = "X$p"; then
4279	  enable_static=yes
4280	fi
4281      done
4282      IFS="$lt_save_ifs"
4283      ;;
4284    esac
4285else
4286  enable_static=yes
4287fi;
4288
4289# Check whether --enable-shared or --disable-shared was given.
4290if test "${enable_shared+set}" = set; then
4291  enableval="$enable_shared"
4292  p=${PACKAGE-default}
4293    case $enableval in
4294    yes) enable_shared=yes ;;
4295    no) enable_shared=no ;;
4296    *)
4297      enable_shared=no
4298      # Look at the argument we got.  We use all the common list separators.
4299      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4300      for pkg in $enableval; do
4301	IFS="$lt_save_ifs"
4302	if test "X$pkg" = "X$p"; then
4303	  enable_shared=yes
4304	fi
4305      done
4306      IFS="$lt_save_ifs"
4307      ;;
4308    esac
4309else
4310  enable_shared=no
4311fi;
4312
4313
4314# Check whether --enable-fast-install or --disable-fast-install was given.
4315if test "${enable_fast_install+set}" = set; then
4316  enableval="$enable_fast_install"
4317  p=${PACKAGE-default}
4318    case $enableval in
4319    yes) enable_fast_install=yes ;;
4320    no) enable_fast_install=no ;;
4321    *)
4322      enable_fast_install=no
4323      # Look at the argument we got.  We use all the common list separators.
4324      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4325      for pkg in $enableval; do
4326	IFS="$lt_save_ifs"
4327	if test "X$pkg" = "X$p"; then
4328	  enable_fast_install=yes
4329	fi
4330      done
4331      IFS="$lt_save_ifs"
4332      ;;
4333    esac
4334else
4335  enable_fast_install=yes
4336fi;
4337
4338echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4339echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4340if test "${lt_cv_path_SED+set}" = set; then
4341  echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
4343  # Loop through the user's path and test for sed and gsed.
4344# Then use that list of sed's as ones to test for truncation.
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348  IFS=$as_save_IFS
4349  test -z "$as_dir" && as_dir=.
4350  for lt_ac_prog in sed gsed; do
4351    for ac_exec_ext in '' $ac_executable_extensions; do
4352      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4353        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4354      fi
4355    done
4356  done
4357done
4358lt_ac_max=0
4359lt_ac_count=0
4360# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4361# along with /bin/sed that truncates output.
4362for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4363  test ! -f $lt_ac_sed && continue
4364  cat /dev/null > conftest.in
4365  lt_ac_count=0
4366  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4367  # Check for GNU sed and select it if it is found.
4368  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4369    lt_cv_path_SED=$lt_ac_sed
4370    break
4371  fi
4372  while true; do
4373    cat conftest.in conftest.in >conftest.tmp
4374    mv conftest.tmp conftest.in
4375    cp conftest.in conftest.nl
4376    echo >>conftest.nl
4377    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4378    cmp -s conftest.out conftest.nl || break
4379    # 10000 chars as input seems more than enough
4380    test $lt_ac_count -gt 10 && break
4381    lt_ac_count=`expr $lt_ac_count + 1`
4382    if test $lt_ac_count -gt $lt_ac_max; then
4383      lt_ac_max=$lt_ac_count
4384      lt_cv_path_SED=$lt_ac_sed
4385    fi
4386  done
4387done
4388
4389fi
4390
4391SED=$lt_cv_path_SED
4392echo "$as_me:$LINENO: result: $SED" >&5
4393echo "${ECHO_T}$SED" >&6
4394
4395echo "$as_me:$LINENO: checking for egrep" >&5
4396echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4397if test "${ac_cv_prog_egrep+set}" = set; then
4398  echo $ECHO_N "(cached) $ECHO_C" >&6
4399else
4400  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4401    then ac_cv_prog_egrep='grep -E'
4402    else ac_cv_prog_egrep='egrep'
4403    fi
4404fi
4405echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4406echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4407 EGREP=$ac_cv_prog_egrep
4408
4409
4410
4411# Check whether --with-gnu-ld or --without-gnu-ld was given.
4412if test "${with_gnu_ld+set}" = set; then
4413  withval="$with_gnu_ld"
4414  test "$withval" = no || with_gnu_ld=yes
4415else
4416  with_gnu_ld=no
4417fi;
4418ac_prog=ld
4419if test "$GCC" = yes; then
4420  # Check if gcc -print-prog-name=ld gives a path.
4421  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4422echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4423  case $host in
4424  *-*-mingw*)
4425    # gcc leaves a trailing carriage return which upsets mingw
4426    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4427  *)
4428    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4429  esac
4430  case $ac_prog in
4431    # Accept absolute paths.
4432    [\\/]* | ?:[\\/]*)
4433      re_direlt='/[^/][^/]*/\.\./'
4434      # Canonicalize the pathname of ld
4435      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4436      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4437	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4438      done
4439      test -z "$LD" && LD="$ac_prog"
4440      ;;
4441  "")
4442    # If it fails, then pretend we aren't using GCC.
4443    ac_prog=ld
4444    ;;
4445  *)
4446    # If it is relative, then search for the first ld in PATH.
4447    with_gnu_ld=unknown
4448    ;;
4449  esac
4450elif test "$with_gnu_ld" = yes; then
4451  echo "$as_me:$LINENO: checking for GNU ld" >&5
4452echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4453else
4454  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4455echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4456fi
4457if test "${lt_cv_path_LD+set}" = set; then
4458  echo $ECHO_N "(cached) $ECHO_C" >&6
4459else
4460  if test -z "$LD"; then
4461  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4462  for ac_dir in $PATH; do
4463    IFS="$lt_save_ifs"
4464    test -z "$ac_dir" && ac_dir=.
4465    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4466      lt_cv_path_LD="$ac_dir/$ac_prog"
4467      # Check to see if the program is GNU ld.  I'd rather use --version,
4468      # but apparently some variants of GNU ld only accept -v.
4469      # Break only if it was the GNU/non-GNU ld that we prefer.
4470      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4471      *GNU* | *'with BFD'*)
4472	test "$with_gnu_ld" != no && break
4473	;;
4474      *)
4475	test "$with_gnu_ld" != yes && break
4476	;;
4477      esac
4478    fi
4479  done
4480  IFS="$lt_save_ifs"
4481else
4482  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4483fi
4484fi
4485
4486LD="$lt_cv_path_LD"
4487if test -n "$LD"; then
4488  echo "$as_me:$LINENO: result: $LD" >&5
4489echo "${ECHO_T}$LD" >&6
4490else
4491  echo "$as_me:$LINENO: result: no" >&5
4492echo "${ECHO_T}no" >&6
4493fi
4494test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4495echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4496   { (exit 1); exit 1; }; }
4497echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4498echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4499if test "${lt_cv_prog_gnu_ld+set}" = set; then
4500  echo $ECHO_N "(cached) $ECHO_C" >&6
4501else
4502  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4503case `$LD -v 2>&1 </dev/null` in
4504*GNU* | *'with BFD'*)
4505  lt_cv_prog_gnu_ld=yes
4506  ;;
4507*)
4508  lt_cv_prog_gnu_ld=no
4509  ;;
4510esac
4511fi
4512echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4513echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4514with_gnu_ld=$lt_cv_prog_gnu_ld
4515
4516
4517echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4518echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4519if test "${lt_cv_ld_reload_flag+set}" = set; then
4520  echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522  lt_cv_ld_reload_flag='-r'
4523fi
4524echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4525echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4526reload_flag=$lt_cv_ld_reload_flag
4527case $reload_flag in
4528"" | " "*) ;;
4529*) reload_flag=" $reload_flag" ;;
4530esac
4531reload_cmds='$LD$reload_flag -o $output$reload_objs'
4532case $host_os in
4533  darwin*)
4534    if test "$GCC" = yes; then
4535      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4536    else
4537      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4538    fi
4539    ;;
4540esac
4541
4542echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4543echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4544if test "${lt_cv_path_NM+set}" = set; then
4545  echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547  if test -n "$NM"; then
4548  # Let the user override the test.
4549  lt_cv_path_NM="$NM"
4550else
4551  lt_nm_to_check="${ac_tool_prefix}nm"
4552  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4553    lt_nm_to_check="$lt_nm_to_check nm"
4554  fi
4555  for lt_tmp_nm in $lt_nm_to_check; do
4556    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4557    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4558      IFS="$lt_save_ifs"
4559      test -z "$ac_dir" && ac_dir=.
4560      tmp_nm="$ac_dir/$lt_tmp_nm"
4561      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4562	# Check to see if the nm accepts a BSD-compat flag.
4563	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4564	#   nm: unknown option "B" ignored
4565	# Tru64's nm complains that /dev/null is an invalid object file
4566	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4567	*/dev/null* | *'Invalid file or object type'*)
4568	  lt_cv_path_NM="$tmp_nm -B"
4569	  break
4570	  ;;
4571	*)
4572	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4573	  */dev/null*)
4574	    lt_cv_path_NM="$tmp_nm -p"
4575	    break
4576	    ;;
4577	  *)
4578	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4579	    continue # so that we can try to find one that supports BSD flags
4580	    ;;
4581	  esac
4582	  ;;
4583	esac
4584      fi
4585    done
4586    IFS="$lt_save_ifs"
4587  done
4588  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4589fi
4590fi
4591echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4592echo "${ECHO_T}$lt_cv_path_NM" >&6
4593NM="$lt_cv_path_NM"
4594
4595echo "$as_me:$LINENO: checking whether ln -s works" >&5
4596echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4597LN_S=$as_ln_s
4598if test "$LN_S" = "ln -s"; then
4599  echo "$as_me:$LINENO: result: yes" >&5
4600echo "${ECHO_T}yes" >&6
4601else
4602  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4603echo "${ECHO_T}no, using $LN_S" >&6
4604fi
4605
4606echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4607echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4608if test "${lt_cv_deplibs_check_method+set}" = set; then
4609  echo $ECHO_N "(cached) $ECHO_C" >&6
4610else
4611  lt_cv_file_magic_cmd='$MAGIC_CMD'
4612lt_cv_file_magic_test_file=
4613lt_cv_deplibs_check_method='unknown'
4614# Need to set the preceding variable on all platforms that support
4615# interlibrary dependencies.
4616# 'none' -- dependencies not supported.
4617# `unknown' -- same as none, but documents that we really don't know.
4618# 'pass_all' -- all dependencies passed with no checks.
4619# 'test_compile' -- check by making test program.
4620# 'file_magic [[regex]]' -- check by looking for files in library path
4621# which responds to the $file_magic_cmd with a given extended regex.
4622# If you have `file' or equivalent on your system and you're not sure
4623# whether `pass_all' will *always* work, you probably want this one.
4624
4625case $host_os in
4626aix4* | aix5*)
4627  lt_cv_deplibs_check_method=pass_all
4628  ;;
4629
4630beos*)
4631  lt_cv_deplibs_check_method=pass_all
4632  ;;
4633
4634bsdi[45]*)
4635  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4636  lt_cv_file_magic_cmd='/usr/bin/file -L'
4637  lt_cv_file_magic_test_file=/shlib/libc.so
4638  ;;
4639
4640cygwin*)
4641  # func_win32_libid is a shell function defined in ltmain.sh
4642  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4643  lt_cv_file_magic_cmd='func_win32_libid'
4644  ;;
4645
4646mingw* | pw32*)
4647  # Base MSYS/MinGW do not provide the 'file' command needed by
4648  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4649  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4650  lt_cv_file_magic_cmd='$OBJDUMP -f'
4651  ;;
4652
4653darwin* | rhapsody*)
4654  lt_cv_deplibs_check_method=pass_all
4655  ;;
4656
4657freebsd* | kfreebsd*-gnu | dragonfly*)
4658  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4659    case $host_cpu in
4660    i*86 )
4661      # Not sure whether the presence of OpenBSD here was a mistake.
4662      # Let's accept both of them until this is cleared up.
4663      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4664      lt_cv_file_magic_cmd=/usr/bin/file
4665      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4666      ;;
4667    esac
4668  else
4669    lt_cv_deplibs_check_method=pass_all
4670  fi
4671  ;;
4672
4673gnu*)
4674  lt_cv_deplibs_check_method=pass_all
4675  ;;
4676
4677hpux10.20* | hpux11*)
4678  lt_cv_file_magic_cmd=/usr/bin/file
4679  case $host_cpu in
4680  ia64*)
4681    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4682    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4683    ;;
4684  hppa*64*)
4685    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]'
4686    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4687    ;;
4688  *)
4689    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4690    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4691    ;;
4692  esac
4693  ;;
4694
4695interix3*)
4696  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4697  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4698  ;;
4699
4700irix5* | irix6* | nonstopux*)
4701  case $LD in
4702  *-32|*"-32 ") libmagic=32-bit;;
4703  *-n32|*"-n32 ") libmagic=N32;;
4704  *-64|*"-64 ") libmagic=64-bit;;
4705  *) libmagic=never-match;;
4706  esac
4707  lt_cv_deplibs_check_method=pass_all
4708  ;;
4709
4710# This must be Linux ELF.
4711linux*)
4712  lt_cv_deplibs_check_method=pass_all
4713  ;;
4714
4715netbsd*)
4716  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4717    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4718  else
4719    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4720  fi
4721  ;;
4722
4723newos6*)
4724  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4725  lt_cv_file_magic_cmd=/usr/bin/file
4726  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4727  ;;
4728
4729nto-qnx*)
4730  lt_cv_deplibs_check_method=unknown
4731  ;;
4732
4733openbsd*)
4734  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4735    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4736  else
4737    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4738  fi
4739  ;;
4740
4741osf3* | osf4* | osf5*)
4742  lt_cv_deplibs_check_method=pass_all
4743  ;;
4744
4745solaris*)
4746  lt_cv_deplibs_check_method=pass_all
4747  ;;
4748
4749sysv4 | sysv4.3*)
4750  case $host_vendor in
4751  motorola)
4752    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]'
4753    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4754    ;;
4755  ncr)
4756    lt_cv_deplibs_check_method=pass_all
4757    ;;
4758  sequent)
4759    lt_cv_file_magic_cmd='/bin/file'
4760    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4761    ;;
4762  sni)
4763    lt_cv_file_magic_cmd='/bin/file'
4764    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4765    lt_cv_file_magic_test_file=/lib/libc.so
4766    ;;
4767  siemens)
4768    lt_cv_deplibs_check_method=pass_all
4769    ;;
4770  pc)
4771    lt_cv_deplibs_check_method=pass_all
4772    ;;
4773  esac
4774  ;;
4775
4776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4777  lt_cv_deplibs_check_method=pass_all
4778  ;;
4779esac
4780
4781fi
4782echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4783echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4784file_magic_cmd=$lt_cv_file_magic_cmd
4785deplibs_check_method=$lt_cv_deplibs_check_method
4786test -z "$deplibs_check_method" && deplibs_check_method=unknown
4787
4788
4789
4790
4791# If no C compiler was specified, use CC.
4792LTCC=${LTCC-"$CC"}
4793
4794# If no C compiler flags were specified, use CFLAGS.
4795LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4796
4797# Allow CC to be a program name with arguments.
4798compiler=$CC
4799
4800# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4801if test "${enable_libtool_lock+set}" = set; then
4802  enableval="$enable_libtool_lock"
4803
4804fi;
4805test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4806
4807# Some flags need to be propagated to the compiler or linker for good
4808# libtool support.
4809case $host in
4810ia64-*-hpux*)
4811  # Find out which ABI we are using.
4812  echo 'int i;' > conftest.$ac_ext
4813  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814  (eval $ac_compile) 2>&5
4815  ac_status=$?
4816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817  (exit $ac_status); }; then
4818    case `/usr/bin/file conftest.$ac_objext` in
4819    *ELF-32*)
4820      HPUX_IA64_MODE="32"
4821      ;;
4822    *ELF-64*)
4823      HPUX_IA64_MODE="64"
4824      ;;
4825    esac
4826  fi
4827  rm -rf conftest*
4828  ;;
4829*-*-irix6*)
4830  # Find out which ABI we are using.
4831  echo '#line 4831 "configure"' > conftest.$ac_ext
4832  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833  (eval $ac_compile) 2>&5
4834  ac_status=$?
4835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836  (exit $ac_status); }; then
4837   if test "$lt_cv_prog_gnu_ld" = yes; then
4838    case `/usr/bin/file conftest.$ac_objext` in
4839    *32-bit*)
4840      LD="${LD-ld} -melf32bsmip"
4841      ;;
4842    *N32*)
4843      LD="${LD-ld} -melf32bmipn32"
4844      ;;
4845    *64-bit*)
4846      LD="${LD-ld} -melf64bmip"
4847      ;;
4848    esac
4849   else
4850    case `/usr/bin/file conftest.$ac_objext` in
4851    *32-bit*)
4852      LD="${LD-ld} -32"
4853      ;;
4854    *N32*)
4855      LD="${LD-ld} -n32"
4856      ;;
4857    *64-bit*)
4858      LD="${LD-ld} -64"
4859      ;;
4860    esac
4861   fi
4862  fi
4863  rm -rf conftest*
4864  ;;
4865
4866x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4867  # Find out which ABI we are using.
4868  echo 'int i;' > conftest.$ac_ext
4869  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870  (eval $ac_compile) 2>&5
4871  ac_status=$?
4872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873  (exit $ac_status); }; then
4874    case `/usr/bin/file conftest.o` in
4875    *32-bit*)
4876      case $host in
4877        x86_64-*linux*)
4878          LD="${LD-ld} -m elf_i386"
4879          ;;
4880        ppc64-*linux*|powerpc64-*linux*)
4881          LD="${LD-ld} -m elf32ppclinux"
4882          ;;
4883        s390x-*linux*)
4884          LD="${LD-ld} -m elf_s390"
4885          ;;
4886        sparc64-*linux*)
4887          LD="${LD-ld} -m elf32_sparc"
4888          ;;
4889      esac
4890      ;;
4891    *64-bit*)
4892      case $host in
4893        x86_64-*linux*)
4894          LD="${LD-ld} -m elf_x86_64"
4895          ;;
4896        ppc*-*linux*|powerpc*-*linux*)
4897          LD="${LD-ld} -m elf64ppc"
4898          ;;
4899        s390*-*linux*)
4900          LD="${LD-ld} -m elf64_s390"
4901          ;;
4902        sparc*-*linux*)
4903          LD="${LD-ld} -m elf64_sparc"
4904          ;;
4905      esac
4906      ;;
4907    esac
4908  fi
4909  rm -rf conftest*
4910  ;;
4911
4912*-*-sco3.2v5*)
4913  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4914  SAVE_CFLAGS="$CFLAGS"
4915  CFLAGS="$CFLAGS -belf"
4916  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4917echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4918if test "${lt_cv_cc_needs_belf+set}" = set; then
4919  echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921  ac_ext=c
4922ac_cpp='$CPP $CPPFLAGS'
4923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927     cat >conftest.$ac_ext <<_ACEOF
4928/* confdefs.h.  */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h.  */
4933
4934int
4935main ()
4936{
4937
4938  ;
4939  return 0;
4940}
4941_ACEOF
4942rm -f conftest.$ac_objext conftest$ac_exeext
4943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4944  (eval $ac_link) 2>conftest.er1
4945  ac_status=$?
4946  grep -v '^ *+' conftest.er1 >conftest.err
4947  rm -f conftest.er1
4948  cat conftest.err >&5
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); } &&
4951	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953  (eval $ac_try) 2>&5
4954  ac_status=$?
4955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956  (exit $ac_status); }; } &&
4957	 { ac_try='test -s conftest$ac_exeext'
4958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959  (eval $ac_try) 2>&5
4960  ac_status=$?
4961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962  (exit $ac_status); }; }; then
4963  lt_cv_cc_needs_belf=yes
4964else
4965  echo "$as_me: failed program was:" >&5
4966sed 's/^/| /' conftest.$ac_ext >&5
4967
4968lt_cv_cc_needs_belf=no
4969fi
4970rm -f conftest.err conftest.$ac_objext \
4971      conftest$ac_exeext conftest.$ac_ext
4972     ac_ext=c
4973ac_cpp='$CPP $CPPFLAGS'
4974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978fi
4979echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4980echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4981  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4982    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4983    CFLAGS="$SAVE_CFLAGS"
4984  fi
4985  ;;
4986sparc*-*solaris*)
4987  # Find out which ABI we are using.
4988  echo 'int i;' > conftest.$ac_ext
4989  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990  (eval $ac_compile) 2>&5
4991  ac_status=$?
4992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993  (exit $ac_status); }; then
4994    case `/usr/bin/file conftest.o` in
4995    *64-bit*)
4996      case $lt_cv_prog_gnu_ld in
4997      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4998      *)    LD="${LD-ld} -64" ;;
4999      esac
5000      ;;
5001    esac
5002  fi
5003  rm -rf conftest*
5004  ;;
5005
5006
5007esac
5008
5009need_locks="$enable_libtool_lock"
5010
5011
5012
5013echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5014echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5015if test "${ac_cv_header_stdc+set}" = set; then
5016  echo $ECHO_N "(cached) $ECHO_C" >&6
5017else
5018  cat >conftest.$ac_ext <<_ACEOF
5019/* confdefs.h.  */
5020_ACEOF
5021cat confdefs.h >>conftest.$ac_ext
5022cat >>conftest.$ac_ext <<_ACEOF
5023/* end confdefs.h.  */
5024#include <stdlib.h>
5025#include <stdarg.h>
5026#include <string.h>
5027#include <float.h>
5028
5029int
5030main ()
5031{
5032
5033  ;
5034  return 0;
5035}
5036_ACEOF
5037rm -f conftest.$ac_objext
5038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039  (eval $ac_compile) 2>conftest.er1
5040  ac_status=$?
5041  grep -v '^ *+' conftest.er1 >conftest.err
5042  rm -f conftest.er1
5043  cat conftest.err >&5
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); } &&
5046	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048  (eval $ac_try) 2>&5
5049  ac_status=$?
5050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051  (exit $ac_status); }; } &&
5052	 { ac_try='test -s conftest.$ac_objext'
5053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054  (eval $ac_try) 2>&5
5055  ac_status=$?
5056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057  (exit $ac_status); }; }; then
5058  ac_cv_header_stdc=yes
5059else
5060  echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063ac_cv_header_stdc=no
5064fi
5065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066
5067if test $ac_cv_header_stdc = yes; then
5068  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5069  cat >conftest.$ac_ext <<_ACEOF
5070/* confdefs.h.  */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h.  */
5075#include <string.h>
5076
5077_ACEOF
5078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5079  $EGREP "memchr" >/dev/null 2>&1; then
5080  :
5081else
5082  ac_cv_header_stdc=no
5083fi
5084rm -f conftest*
5085
5086fi
5087
5088if test $ac_cv_header_stdc = yes; then
5089  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5090  cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h.  */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h.  */
5096#include <stdlib.h>
5097
5098_ACEOF
5099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5100  $EGREP "free" >/dev/null 2>&1; then
5101  :
5102else
5103  ac_cv_header_stdc=no
5104fi
5105rm -f conftest*
5106
5107fi
5108
5109if test $ac_cv_header_stdc = yes; then
5110  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5111  if test "$cross_compiling" = yes; then
5112  :
5113else
5114  cat >conftest.$ac_ext <<_ACEOF
5115/* confdefs.h.  */
5116_ACEOF
5117cat confdefs.h >>conftest.$ac_ext
5118cat >>conftest.$ac_ext <<_ACEOF
5119/* end confdefs.h.  */
5120#include <ctype.h>
5121#if ((' ' & 0x0FF) == 0x020)
5122# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5123# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5124#else
5125# define ISLOWER(c) \
5126		   (('a' <= (c) && (c) <= 'i') \
5127		     || ('j' <= (c) && (c) <= 'r') \
5128		     || ('s' <= (c) && (c) <= 'z'))
5129# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5130#endif
5131
5132#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5133int
5134main ()
5135{
5136  int i;
5137  for (i = 0; i < 256; i++)
5138    if (XOR (islower (i), ISLOWER (i))
5139	|| toupper (i) != TOUPPER (i))
5140      exit(2);
5141  exit (0);
5142}
5143_ACEOF
5144rm -f conftest$ac_exeext
5145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146  (eval $ac_link) 2>&5
5147  ac_status=$?
5148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151  (eval $ac_try) 2>&5
5152  ac_status=$?
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); }; }; then
5155  :
5156else
5157  echo "$as_me: program exited with status $ac_status" >&5
5158echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161( exit $ac_status )
5162ac_cv_header_stdc=no
5163fi
5164rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5165fi
5166fi
5167fi
5168echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5169echo "${ECHO_T}$ac_cv_header_stdc" >&6
5170if test $ac_cv_header_stdc = yes; then
5171
5172cat >>confdefs.h <<\_ACEOF
5173#define STDC_HEADERS 1
5174_ACEOF
5175
5176fi
5177
5178# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5189		  inttypes.h stdint.h unistd.h
5190do
5191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5192echo "$as_me:$LINENO: checking for $ac_header" >&5
5193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5194if eval "test \"\${$as_ac_Header+set}\" = set"; then
5195  echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197  cat >conftest.$ac_ext <<_ACEOF
5198/* confdefs.h.  */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h.  */
5203$ac_includes_default
5204
5205#include <$ac_header>
5206_ACEOF
5207rm -f conftest.$ac_objext
5208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5209  (eval $ac_compile) 2>conftest.er1
5210  ac_status=$?
5211  grep -v '^ *+' conftest.er1 >conftest.err
5212  rm -f conftest.er1
5213  cat conftest.err >&5
5214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215  (exit $ac_status); } &&
5216	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218  (eval $ac_try) 2>&5
5219  ac_status=$?
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); }; } &&
5222	 { ac_try='test -s conftest.$ac_objext'
5223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224  (eval $ac_try) 2>&5
5225  ac_status=$?
5226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227  (exit $ac_status); }; }; then
5228  eval "$as_ac_Header=yes"
5229else
5230  echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233eval "$as_ac_Header=no"
5234fi
5235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236fi
5237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5239if test `eval echo '${'$as_ac_Header'}'` = yes; then
5240  cat >>confdefs.h <<_ACEOF
5241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5242_ACEOF
5243
5244fi
5245
5246done
5247
5248
5249
5250for ac_header in dlfcn.h
5251do
5252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5253if eval "test \"\${$as_ac_Header+set}\" = set"; then
5254  echo "$as_me:$LINENO: checking for $ac_header" >&5
5255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5256if eval "test \"\${$as_ac_Header+set}\" = set"; then
5257  echo $ECHO_N "(cached) $ECHO_C" >&6
5258fi
5259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5261else
5262  # Is the header compilable?
5263echo "$as_me:$LINENO: checking $ac_header usability" >&5
5264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5265cat >conftest.$ac_ext <<_ACEOF
5266/* confdefs.h.  */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h.  */
5271$ac_includes_default
5272#include <$ac_header>
5273_ACEOF
5274rm -f conftest.$ac_objext
5275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276  (eval $ac_compile) 2>conftest.er1
5277  ac_status=$?
5278  grep -v '^ *+' conftest.er1 >conftest.err
5279  rm -f conftest.er1
5280  cat conftest.err >&5
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); } &&
5283	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285  (eval $ac_try) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); }; } &&
5289	 { ac_try='test -s conftest.$ac_objext'
5290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291  (eval $ac_try) 2>&5
5292  ac_status=$?
5293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); }; }; then
5295  ac_header_compiler=yes
5296else
5297  echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
5300ac_header_compiler=no
5301fi
5302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5304echo "${ECHO_T}$ac_header_compiler" >&6
5305
5306# Is the header present?
5307echo "$as_me:$LINENO: checking $ac_header presence" >&5
5308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5309cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h.  */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h.  */
5315#include <$ac_header>
5316_ACEOF
5317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5319  ac_status=$?
5320  grep -v '^ *+' conftest.er1 >conftest.err
5321  rm -f conftest.er1
5322  cat conftest.err >&5
5323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324  (exit $ac_status); } >/dev/null; then
5325  if test -s conftest.err; then
5326    ac_cpp_err=$ac_c_preproc_warn_flag
5327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5328  else
5329    ac_cpp_err=
5330  fi
5331else
5332  ac_cpp_err=yes
5333fi
5334if test -z "$ac_cpp_err"; then
5335  ac_header_preproc=yes
5336else
5337  echo "$as_me: failed program was:" >&5
5338sed 's/^/| /' conftest.$ac_ext >&5
5339
5340  ac_header_preproc=no
5341fi
5342rm -f conftest.err conftest.$ac_ext
5343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5344echo "${ECHO_T}$ac_header_preproc" >&6
5345
5346# So?  What about this header?
5347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5348  yes:no: )
5349    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5351    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5353    ac_header_preproc=yes
5354    ;;
5355  no:yes:* )
5356    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5358    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5359echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5360    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5362    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5363echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5364    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5366    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5368    (
5369      cat <<\_ASBOX
5370## ----------------------------------- ##
5371## Report this to markus@oberhumer.com ##
5372## ----------------------------------- ##
5373_ASBOX
5374    ) |
5375      sed "s/^/$as_me: WARNING:     /" >&2
5376    ;;
5377esac
5378echo "$as_me:$LINENO: checking for $ac_header" >&5
5379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5380if eval "test \"\${$as_ac_Header+set}\" = set"; then
5381  echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383  eval "$as_ac_Header=\$ac_header_preproc"
5384fi
5385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387
5388fi
5389if test `eval echo '${'$as_ac_Header'}'` = yes; then
5390  cat >>confdefs.h <<_ACEOF
5391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5392_ACEOF
5393
5394fi
5395
5396done
5397
5398ac_ext=cc
5399ac_cpp='$CXXCPP $CPPFLAGS'
5400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5403if test -n "$ac_tool_prefix"; then
5404  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5405  do
5406    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5407set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5408echo "$as_me:$LINENO: checking for $ac_word" >&5
5409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410if test "${ac_cv_prog_CXX+set}" = set; then
5411  echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413  if test -n "$CXX"; then
5414  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5415else
5416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417for as_dir in $PATH
5418do
5419  IFS=$as_save_IFS
5420  test -z "$as_dir" && as_dir=.
5421  for ac_exec_ext in '' $ac_executable_extensions; do
5422  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5424    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425    break 2
5426  fi
5427done
5428done
5429
5430fi
5431fi
5432CXX=$ac_cv_prog_CXX
5433if test -n "$CXX"; then
5434  echo "$as_me:$LINENO: result: $CXX" >&5
5435echo "${ECHO_T}$CXX" >&6
5436else
5437  echo "$as_me:$LINENO: result: no" >&5
5438echo "${ECHO_T}no" >&6
5439fi
5440
5441    test -n "$CXX" && break
5442  done
5443fi
5444if test -z "$CXX"; then
5445  ac_ct_CXX=$CXX
5446  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5447do
5448  # Extract the first word of "$ac_prog", so it can be a program name with args.
5449set dummy $ac_prog; ac_word=$2
5450echo "$as_me:$LINENO: checking for $ac_word" >&5
5451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5452if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5453  echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455  if test -n "$ac_ct_CXX"; then
5456  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461  IFS=$as_save_IFS
5462  test -z "$as_dir" && as_dir=.
5463  for ac_exec_ext in '' $ac_executable_extensions; do
5464  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465    ac_cv_prog_ac_ct_CXX="$ac_prog"
5466    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467    break 2
5468  fi
5469done
5470done
5471
5472fi
5473fi
5474ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5475if test -n "$ac_ct_CXX"; then
5476  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5477echo "${ECHO_T}$ac_ct_CXX" >&6
5478else
5479  echo "$as_me:$LINENO: result: no" >&5
5480echo "${ECHO_T}no" >&6
5481fi
5482
5483  test -n "$ac_ct_CXX" && break
5484done
5485test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5486
5487  CXX=$ac_ct_CXX
5488fi
5489
5490
5491# Provide some information about the compiler.
5492echo "$as_me:$LINENO:" \
5493     "checking for C++ compiler version" >&5
5494ac_compiler=`set X $ac_compile; echo $2`
5495{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5496  (eval $ac_compiler --version </dev/null >&5) 2>&5
5497  ac_status=$?
5498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499  (exit $ac_status); }
5500{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5501  (eval $ac_compiler -v </dev/null >&5) 2>&5
5502  ac_status=$?
5503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504  (exit $ac_status); }
5505{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5506  (eval $ac_compiler -V </dev/null >&5) 2>&5
5507  ac_status=$?
5508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509  (exit $ac_status); }
5510
5511echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5512echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5513if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5514  echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516  cat >conftest.$ac_ext <<_ACEOF
5517/* confdefs.h.  */
5518_ACEOF
5519cat confdefs.h >>conftest.$ac_ext
5520cat >>conftest.$ac_ext <<_ACEOF
5521/* end confdefs.h.  */
5522
5523int
5524main ()
5525{
5526#ifndef __GNUC__
5527       choke me
5528#endif
5529
5530  ;
5531  return 0;
5532}
5533_ACEOF
5534rm -f conftest.$ac_objext
5535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5536  (eval $ac_compile) 2>conftest.er1
5537  ac_status=$?
5538  grep -v '^ *+' conftest.er1 >conftest.err
5539  rm -f conftest.er1
5540  cat conftest.err >&5
5541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542  (exit $ac_status); } &&
5543	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545  (eval $ac_try) 2>&5
5546  ac_status=$?
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); }; } &&
5549	 { ac_try='test -s conftest.$ac_objext'
5550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551  (eval $ac_try) 2>&5
5552  ac_status=$?
5553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554  (exit $ac_status); }; }; then
5555  ac_compiler_gnu=yes
5556else
5557  echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
5560ac_compiler_gnu=no
5561fi
5562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5563ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5564
5565fi
5566echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5567echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5568GXX=`test $ac_compiler_gnu = yes && echo yes`
5569ac_test_CXXFLAGS=${CXXFLAGS+set}
5570ac_save_CXXFLAGS=$CXXFLAGS
5571CXXFLAGS="-g"
5572echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5573echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5574if test "${ac_cv_prog_cxx_g+set}" = set; then
5575  echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577  cat >conftest.$ac_ext <<_ACEOF
5578/* confdefs.h.  */
5579_ACEOF
5580cat confdefs.h >>conftest.$ac_ext
5581cat >>conftest.$ac_ext <<_ACEOF
5582/* end confdefs.h.  */
5583
5584int
5585main ()
5586{
5587
5588  ;
5589  return 0;
5590}
5591_ACEOF
5592rm -f conftest.$ac_objext
5593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594  (eval $ac_compile) 2>conftest.er1
5595  ac_status=$?
5596  grep -v '^ *+' conftest.er1 >conftest.err
5597  rm -f conftest.er1
5598  cat conftest.err >&5
5599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600  (exit $ac_status); } &&
5601	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603  (eval $ac_try) 2>&5
5604  ac_status=$?
5605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606  (exit $ac_status); }; } &&
5607	 { ac_try='test -s conftest.$ac_objext'
5608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609  (eval $ac_try) 2>&5
5610  ac_status=$?
5611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612  (exit $ac_status); }; }; then
5613  ac_cv_prog_cxx_g=yes
5614else
5615  echo "$as_me: failed program was:" >&5
5616sed 's/^/| /' conftest.$ac_ext >&5
5617
5618ac_cv_prog_cxx_g=no
5619fi
5620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5621fi
5622echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5623echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5624if test "$ac_test_CXXFLAGS" = set; then
5625  CXXFLAGS=$ac_save_CXXFLAGS
5626elif test $ac_cv_prog_cxx_g = yes; then
5627  if test "$GXX" = yes; then
5628    CXXFLAGS="-g -O2"
5629  else
5630    CXXFLAGS="-g"
5631  fi
5632else
5633  if test "$GXX" = yes; then
5634    CXXFLAGS="-O2"
5635  else
5636    CXXFLAGS=
5637  fi
5638fi
5639for ac_declaration in \
5640   '' \
5641   'extern "C" void std::exit (int) throw (); using std::exit;' \
5642   'extern "C" void std::exit (int); using std::exit;' \
5643   'extern "C" void exit (int) throw ();' \
5644   'extern "C" void exit (int);' \
5645   'void exit (int);'
5646do
5647  cat >conftest.$ac_ext <<_ACEOF
5648/* confdefs.h.  */
5649_ACEOF
5650cat confdefs.h >>conftest.$ac_ext
5651cat >>conftest.$ac_ext <<_ACEOF
5652/* end confdefs.h.  */
5653$ac_declaration
5654#include <stdlib.h>
5655int
5656main ()
5657{
5658exit (42);
5659  ;
5660  return 0;
5661}
5662_ACEOF
5663rm -f conftest.$ac_objext
5664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665  (eval $ac_compile) 2>conftest.er1
5666  ac_status=$?
5667  grep -v '^ *+' conftest.er1 >conftest.err
5668  rm -f conftest.er1
5669  cat conftest.err >&5
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); } &&
5672	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674  (eval $ac_try) 2>&5
5675  ac_status=$?
5676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677  (exit $ac_status); }; } &&
5678	 { ac_try='test -s conftest.$ac_objext'
5679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680  (eval $ac_try) 2>&5
5681  ac_status=$?
5682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683  (exit $ac_status); }; }; then
5684  :
5685else
5686  echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689continue
5690fi
5691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5692  cat >conftest.$ac_ext <<_ACEOF
5693/* confdefs.h.  */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h.  */
5698$ac_declaration
5699int
5700main ()
5701{
5702exit (42);
5703  ;
5704  return 0;
5705}
5706_ACEOF
5707rm -f conftest.$ac_objext
5708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709  (eval $ac_compile) 2>conftest.er1
5710  ac_status=$?
5711  grep -v '^ *+' conftest.er1 >conftest.err
5712  rm -f conftest.er1
5713  cat conftest.err >&5
5714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715  (exit $ac_status); } &&
5716	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718  (eval $ac_try) 2>&5
5719  ac_status=$?
5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721  (exit $ac_status); }; } &&
5722	 { ac_try='test -s conftest.$ac_objext'
5723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724  (eval $ac_try) 2>&5
5725  ac_status=$?
5726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727  (exit $ac_status); }; }; then
5728  break
5729else
5730  echo "$as_me: failed program was:" >&5
5731sed 's/^/| /' conftest.$ac_ext >&5
5732
5733fi
5734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735done
5736rm -f conftest*
5737if test -n "$ac_declaration"; then
5738  echo '#ifdef __cplusplus' >>confdefs.h
5739  echo $ac_declaration      >>confdefs.h
5740  echo '#endif'             >>confdefs.h
5741fi
5742
5743ac_ext=cc
5744ac_cpp='$CXXCPP $CPPFLAGS'
5745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5748
5749depcc="$CXX"  am_compiler_list=
5750
5751echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5752echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5753if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5754  echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5757  # We make a subdir and do the tests there.  Otherwise we can end up
5758  # making bogus files that we don't know about and never remove.  For
5759  # instance it was reported that on HP-UX the gcc test will end up
5760  # making a dummy file named `D' -- because `-MD' means `put the output
5761  # in D'.
5762  mkdir conftest.dir
5763  # Copy depcomp to subdir because otherwise we won't find it if we're
5764  # using a relative directory.
5765  cp "$am_depcomp" conftest.dir
5766  cd conftest.dir
5767  # We will build objects and dependencies in a subdirectory because
5768  # it helps to detect inapplicable dependency modes.  For instance
5769  # both Tru64's cc and ICC support -MD to output dependencies as a
5770  # side effect of compilation, but ICC will put the dependencies in
5771  # the current directory while Tru64 will put them in the object
5772  # directory.
5773  mkdir sub
5774
5775  am_cv_CXX_dependencies_compiler_type=none
5776  if test "$am_compiler_list" = ""; then
5777     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5778  fi
5779  for depmode in $am_compiler_list; do
5780    # Setup a source with many dependencies, because some compilers
5781    # like to wrap large dependency lists on column 80 (with \), and
5782    # we should not choose a depcomp mode which is confused by this.
5783    #
5784    # We need to recreate these files for each test, as the compiler may
5785    # overwrite some of them when testing with obscure command lines.
5786    # This happens at least with the AIX C compiler.
5787    : > sub/conftest.c
5788    for i in 1 2 3 4 5 6; do
5789      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5790      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5791      # Solaris 8's {/usr,}/bin/sh.
5792      touch sub/conftst$i.h
5793    done
5794    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5795
5796    case $depmode in
5797    nosideeffect)
5798      # after this tag, mechanisms are not by side-effect, so they'll
5799      # only be used when explicitly requested
5800      if test "x$enable_dependency_tracking" = xyes; then
5801	continue
5802      else
5803	break
5804      fi
5805      ;;
5806    none) break ;;
5807    esac
5808    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5809    # mode.  It turns out that the SunPro C++ compiler does not properly
5810    # handle `-M -o', and we need to detect this.
5811    if depmode=$depmode \
5812       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5813       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5814       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5815         >/dev/null 2>conftest.err &&
5816       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5817       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5818       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5819      # icc doesn't choke on unknown options, it will just issue warnings
5820      # or remarks (even with -Werror).  So we grep stderr for any message
5821      # that says an option was ignored or not supported.
5822      # When given -MP, icc 7.0 and 7.1 complain thusly:
5823      #   icc: Command line warning: ignoring option '-M'; no argument required
5824      # The diagnosis changed in icc 8.0:
5825      #   icc: Command line remark: option '-MP' not supported
5826      if (grep 'ignoring option' conftest.err ||
5827          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5828        am_cv_CXX_dependencies_compiler_type=$depmode
5829        break
5830      fi
5831    fi
5832  done
5833
5834  cd ..
5835  rm -rf conftest.dir
5836else
5837  am_cv_CXX_dependencies_compiler_type=none
5838fi
5839
5840fi
5841echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5842echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5843CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5844
5845
5846
5847if
5848  test "x$enable_dependency_tracking" != xno \
5849  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5850  am__fastdepCXX_TRUE=
5851  am__fastdepCXX_FALSE='#'
5852else
5853  am__fastdepCXX_TRUE='#'
5854  am__fastdepCXX_FALSE=
5855fi
5856
5857
5858
5859
5860if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5861    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5862    (test "X$CXX" != "Xg++"))) ; then
5863  ac_ext=cc
5864ac_cpp='$CXXCPP $CPPFLAGS'
5865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5868echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5869echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5870if test -z "$CXXCPP"; then
5871  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5872  echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874      # Double quotes because CXXCPP needs to be expanded
5875    for CXXCPP in "$CXX -E" "/lib/cpp"
5876    do
5877      ac_preproc_ok=false
5878for ac_cxx_preproc_warn_flag in '' yes
5879do
5880  # Use a header file that comes with gcc, so configuring glibc
5881  # with a fresh cross-compiler works.
5882  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5883  # <limits.h> exists even on freestanding compilers.
5884  # On the NeXT, cc -E runs the code through the compiler's parser,
5885  # not just through cpp. "Syntax error" is here to catch this case.
5886  cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h.  */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h.  */
5892#ifdef __STDC__
5893# include <limits.h>
5894#else
5895# include <assert.h>
5896#endif
5897		     Syntax error
5898_ACEOF
5899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5900  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5901  ac_status=$?
5902  grep -v '^ *+' conftest.er1 >conftest.err
5903  rm -f conftest.er1
5904  cat conftest.err >&5
5905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906  (exit $ac_status); } >/dev/null; then
5907  if test -s conftest.err; then
5908    ac_cpp_err=$ac_cxx_preproc_warn_flag
5909    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5910  else
5911    ac_cpp_err=
5912  fi
5913else
5914  ac_cpp_err=yes
5915fi
5916if test -z "$ac_cpp_err"; then
5917  :
5918else
5919  echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922  # Broken: fails on valid input.
5923continue
5924fi
5925rm -f conftest.err conftest.$ac_ext
5926
5927  # OK, works on sane cases.  Now check whether non-existent headers
5928  # can be detected and how.
5929  cat >conftest.$ac_ext <<_ACEOF
5930/* confdefs.h.  */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
5934/* end confdefs.h.  */
5935#include <ac_nonexistent.h>
5936_ACEOF
5937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5938  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5939  ac_status=$?
5940  grep -v '^ *+' conftest.er1 >conftest.err
5941  rm -f conftest.er1
5942  cat conftest.err >&5
5943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944  (exit $ac_status); } >/dev/null; then
5945  if test -s conftest.err; then
5946    ac_cpp_err=$ac_cxx_preproc_warn_flag
5947    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5948  else
5949    ac_cpp_err=
5950  fi
5951else
5952  ac_cpp_err=yes
5953fi
5954if test -z "$ac_cpp_err"; then
5955  # Broken: success on invalid input.
5956continue
5957else
5958  echo "$as_me: failed program was:" >&5
5959sed 's/^/| /' conftest.$ac_ext >&5
5960
5961  # Passes both tests.
5962ac_preproc_ok=:
5963break
5964fi
5965rm -f conftest.err conftest.$ac_ext
5966
5967done
5968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5969rm -f conftest.err conftest.$ac_ext
5970if $ac_preproc_ok; then
5971  break
5972fi
5973
5974    done
5975    ac_cv_prog_CXXCPP=$CXXCPP
5976
5977fi
5978  CXXCPP=$ac_cv_prog_CXXCPP
5979else
5980  ac_cv_prog_CXXCPP=$CXXCPP
5981fi
5982echo "$as_me:$LINENO: result: $CXXCPP" >&5
5983echo "${ECHO_T}$CXXCPP" >&6
5984ac_preproc_ok=false
5985for ac_cxx_preproc_warn_flag in '' yes
5986do
5987  # Use a header file that comes with gcc, so configuring glibc
5988  # with a fresh cross-compiler works.
5989  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990  # <limits.h> exists even on freestanding compilers.
5991  # On the NeXT, cc -E runs the code through the compiler's parser,
5992  # not just through cpp. "Syntax error" is here to catch this case.
5993  cat >conftest.$ac_ext <<_ACEOF
5994/* confdefs.h.  */
5995_ACEOF
5996cat confdefs.h >>conftest.$ac_ext
5997cat >>conftest.$ac_ext <<_ACEOF
5998/* end confdefs.h.  */
5999#ifdef __STDC__
6000# include <limits.h>
6001#else
6002# include <assert.h>
6003#endif
6004		     Syntax error
6005_ACEOF
6006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6007  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6008  ac_status=$?
6009  grep -v '^ *+' conftest.er1 >conftest.err
6010  rm -f conftest.er1
6011  cat conftest.err >&5
6012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); } >/dev/null; then
6014  if test -s conftest.err; then
6015    ac_cpp_err=$ac_cxx_preproc_warn_flag
6016    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6017  else
6018    ac_cpp_err=
6019  fi
6020else
6021  ac_cpp_err=yes
6022fi
6023if test -z "$ac_cpp_err"; then
6024  :
6025else
6026  echo "$as_me: failed program was:" >&5
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
6029  # Broken: fails on valid input.
6030continue
6031fi
6032rm -f conftest.err conftest.$ac_ext
6033
6034  # OK, works on sane cases.  Now check whether non-existent headers
6035  # can be detected and how.
6036  cat >conftest.$ac_ext <<_ACEOF
6037/* confdefs.h.  */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h.  */
6042#include <ac_nonexistent.h>
6043_ACEOF
6044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046  ac_status=$?
6047  grep -v '^ *+' conftest.er1 >conftest.err
6048  rm -f conftest.er1
6049  cat conftest.err >&5
6050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051  (exit $ac_status); } >/dev/null; then
6052  if test -s conftest.err; then
6053    ac_cpp_err=$ac_cxx_preproc_warn_flag
6054    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6055  else
6056    ac_cpp_err=
6057  fi
6058else
6059  ac_cpp_err=yes
6060fi
6061if test -z "$ac_cpp_err"; then
6062  # Broken: success on invalid input.
6063continue
6064else
6065  echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
6067
6068  # Passes both tests.
6069ac_preproc_ok=:
6070break
6071fi
6072rm -f conftest.err conftest.$ac_ext
6073
6074done
6075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6076rm -f conftest.err conftest.$ac_ext
6077if $ac_preproc_ok; then
6078  :
6079else
6080  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6081See \`config.log' for more details." >&5
6082echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6083See \`config.log' for more details." >&2;}
6084   { (exit 1); exit 1; }; }
6085fi
6086
6087ac_ext=cc
6088ac_cpp='$CXXCPP $CPPFLAGS'
6089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092
6093fi
6094
6095
6096ac_ext=f
6097ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6098ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6100if test -n "$ac_tool_prefix"; then
6101  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6102  do
6103    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6105echo "$as_me:$LINENO: checking for $ac_word" >&5
6106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6107if test "${ac_cv_prog_F77+set}" = set; then
6108  echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
6110  if test -n "$F77"; then
6111  ac_cv_prog_F77="$F77" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116  IFS=$as_save_IFS
6117  test -z "$as_dir" && as_dir=.
6118  for ac_exec_ext in '' $ac_executable_extensions; do
6119  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122    break 2
6123  fi
6124done
6125done
6126
6127fi
6128fi
6129F77=$ac_cv_prog_F77
6130if test -n "$F77"; then
6131  echo "$as_me:$LINENO: result: $F77" >&5
6132echo "${ECHO_T}$F77" >&6
6133else
6134  echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6
6136fi
6137
6138    test -n "$F77" && break
6139  done
6140fi
6141if test -z "$F77"; then
6142  ac_ct_F77=$F77
6143  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6144do
6145  # Extract the first word of "$ac_prog", so it can be a program name with args.
6146set dummy $ac_prog; ac_word=$2
6147echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6149if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6150  echo $ECHO_N "(cached) $ECHO_C" >&6
6151else
6152  if test -n "$ac_ct_F77"; then
6153  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158  IFS=$as_save_IFS
6159  test -z "$as_dir" && as_dir=.
6160  for ac_exec_ext in '' $ac_executable_extensions; do
6161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6162    ac_cv_prog_ac_ct_F77="$ac_prog"
6163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164    break 2
6165  fi
6166done
6167done
6168
6169fi
6170fi
6171ac_ct_F77=$ac_cv_prog_ac_ct_F77
6172if test -n "$ac_ct_F77"; then
6173  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6174echo "${ECHO_T}$ac_ct_F77" >&6
6175else
6176  echo "$as_me:$LINENO: result: no" >&5
6177echo "${ECHO_T}no" >&6
6178fi
6179
6180  test -n "$ac_ct_F77" && break
6181done
6182
6183  F77=$ac_ct_F77
6184fi
6185
6186
6187# Provide some information about the compiler.
6188echo "$as_me:6188:" \
6189     "checking for Fortran 77 compiler version" >&5
6190ac_compiler=`set X $ac_compile; echo $2`
6191{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6192  (eval $ac_compiler --version </dev/null >&5) 2>&5
6193  ac_status=$?
6194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); }
6196{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6197  (eval $ac_compiler -v </dev/null >&5) 2>&5
6198  ac_status=$?
6199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200  (exit $ac_status); }
6201{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6202  (eval $ac_compiler -V </dev/null >&5) 2>&5
6203  ac_status=$?
6204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205  (exit $ac_status); }
6206rm -f a.out
6207
6208# If we don't use `.F' as extension, the preprocessor is not run on the
6209# input file.  (Note that this only needs to work for GNU compilers.)
6210ac_save_ext=$ac_ext
6211ac_ext=F
6212echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6213echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6214if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6215  echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217  cat >conftest.$ac_ext <<_ACEOF
6218      program main
6219#ifndef __GNUC__
6220       choke me
6221#endif
6222
6223      end
6224_ACEOF
6225rm -f conftest.$ac_objext
6226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6227  (eval $ac_compile) 2>conftest.er1
6228  ac_status=$?
6229  grep -v '^ *+' conftest.er1 >conftest.err
6230  rm -f conftest.er1
6231  cat conftest.err >&5
6232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233  (exit $ac_status); } &&
6234	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
6235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236  (eval $ac_try) 2>&5
6237  ac_status=$?
6238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239  (exit $ac_status); }; } &&
6240	 { ac_try='test -s conftest.$ac_objext'
6241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242  (eval $ac_try) 2>&5
6243  ac_status=$?
6244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245  (exit $ac_status); }; }; then
6246  ac_compiler_gnu=yes
6247else
6248  echo "$as_me: failed program was:" >&5
6249sed 's/^/| /' conftest.$ac_ext >&5
6250
6251ac_compiler_gnu=no
6252fi
6253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6255
6256fi
6257echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6258echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6259ac_ext=$ac_save_ext
6260ac_test_FFLAGS=${FFLAGS+set}
6261ac_save_FFLAGS=$FFLAGS
6262FFLAGS=
6263echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6264echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6265if test "${ac_cv_prog_f77_g+set}" = set; then
6266  echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268  FFLAGS=-g
6269cat >conftest.$ac_ext <<_ACEOF
6270      program main
6271
6272      end
6273_ACEOF
6274rm -f conftest.$ac_objext
6275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276  (eval $ac_compile) 2>conftest.er1
6277  ac_status=$?
6278  grep -v '^ *+' conftest.er1 >conftest.err
6279  rm -f conftest.er1
6280  cat conftest.err >&5
6281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282  (exit $ac_status); } &&
6283	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
6284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285  (eval $ac_try) 2>&5
6286  ac_status=$?
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); }; } &&
6289	 { ac_try='test -s conftest.$ac_objext'
6290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291  (eval $ac_try) 2>&5
6292  ac_status=$?
6293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294  (exit $ac_status); }; }; then
6295  ac_cv_prog_f77_g=yes
6296else
6297  echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
6300ac_cv_prog_f77_g=no
6301fi
6302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303
6304fi
6305echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6306echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6307if test "$ac_test_FFLAGS" = set; then
6308  FFLAGS=$ac_save_FFLAGS
6309elif test $ac_cv_prog_f77_g = yes; then
6310  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6311    FFLAGS="-g -O2"
6312  else
6313    FFLAGS="-g"
6314  fi
6315else
6316  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6317    FFLAGS="-O2"
6318  else
6319    FFLAGS=
6320  fi
6321fi
6322
6323G77=`test $ac_compiler_gnu = yes && echo yes`
6324ac_ext=c
6325ac_cpp='$CPP $CPPFLAGS'
6326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6328ac_compiler_gnu=$ac_cv_c_compiler_gnu
6329
6330
6331
6332# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6333
6334# find the maximum length of command line arguments
6335echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6336echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6337if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6338  echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340    i=0
6341  teststring="ABCD"
6342
6343  case $build_os in
6344  msdosdjgpp*)
6345    # On DJGPP, this test can blow up pretty badly due to problems in libc
6346    # (any single argument exceeding 2000 bytes causes a buffer overrun
6347    # during glob expansion).  Even if it were fixed, the result of this
6348    # check would be larger than it should be.
6349    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6350    ;;
6351
6352  gnu*)
6353    # Under GNU Hurd, this test is not required because there is
6354    # no limit to the length of command line arguments.
6355    # Libtool will interpret -1 as no limit whatsoever
6356    lt_cv_sys_max_cmd_len=-1;
6357    ;;
6358
6359  cygwin* | mingw*)
6360    # On Win9x/ME, this test blows up -- it succeeds, but takes
6361    # about 5 minutes as the teststring grows exponentially.
6362    # Worse, since 9x/ME are not pre-emptively multitasking,
6363    # you end up with a "frozen" computer, even though with patience
6364    # the test eventually succeeds (with a max line length of 256k).
6365    # Instead, let's just punt: use the minimum linelength reported by
6366    # all of the supported platforms: 8192 (on NT/2K/XP).
6367    lt_cv_sys_max_cmd_len=8192;
6368    ;;
6369
6370  amigaos*)
6371    # On AmigaOS with pdksh, this test takes hours, literally.
6372    # So we just punt and use a minimum line length of 8192.
6373    lt_cv_sys_max_cmd_len=8192;
6374    ;;
6375
6376  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6377    # This has been around since 386BSD, at least.  Likely further.
6378    if test -x /sbin/sysctl; then
6379      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6380    elif test -x /usr/sbin/sysctl; then
6381      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6382    else
6383      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6384    fi
6385    # And add a safety zone
6386    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6387    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6388    ;;
6389
6390  interix*)
6391    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6392    lt_cv_sys_max_cmd_len=196608
6393    ;;
6394
6395  osf*)
6396    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6397    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6398    # nice to cause kernel panics so lets avoid the loop below.
6399    # First set a reasonable default.
6400    lt_cv_sys_max_cmd_len=16384
6401    #
6402    if test -x /sbin/sysconfig; then
6403      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6404        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6405      esac
6406    fi
6407    ;;
6408  sco3.2v5*)
6409    lt_cv_sys_max_cmd_len=102400
6410    ;;
6411  sysv5* | sco5v6* | sysv4.2uw2*)
6412    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6413    if test -n "$kargmax"; then
6414      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6415    else
6416      lt_cv_sys_max_cmd_len=32768
6417    fi
6418    ;;
6419  *)
6420    # If test is not a shell built-in, we'll probably end up computing a
6421    # maximum length that is only half of the actual maximum length, but
6422    # we can't tell.
6423    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6424    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6425	       = "XX$teststring") >/dev/null 2>&1 &&
6426	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6427	    lt_cv_sys_max_cmd_len=$new_result &&
6428	    test $i != 17 # 1/2 MB should be enough
6429    do
6430      i=`expr $i + 1`
6431      teststring=$teststring$teststring
6432    done
6433    teststring=
6434    # Add a significant safety factor because C++ compilers can tack on massive
6435    # amounts of additional arguments before passing them to the linker.
6436    # It appears as though 1/2 is a usable value.
6437    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6438    ;;
6439  esac
6440
6441fi
6442
6443if test -n $lt_cv_sys_max_cmd_len ; then
6444  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6445echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6446else
6447  echo "$as_me:$LINENO: result: none" >&5
6448echo "${ECHO_T}none" >&6
6449fi
6450
6451
6452
6453
6454# Check for command to grab the raw symbol name followed by C symbol from nm.
6455echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6456echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6457if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6458  echo $ECHO_N "(cached) $ECHO_C" >&6
6459else
6460
6461# These are sane defaults that work on at least a few old systems.
6462# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6463
6464# Character class describing NM global symbol codes.
6465symcode='[BCDEGRST]'
6466
6467# Regexp to match symbols that can be accessed directly from C.
6468sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6469
6470# Transform an extracted symbol line into a proper C declaration
6471lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6472
6473# Transform an extracted symbol line into symbol name and symbol address
6474lt_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'"
6475
6476# Define system-specific variables.
6477case $host_os in
6478aix*)
6479  symcode='[BCDT]'
6480  ;;
6481cygwin* | mingw* | pw32*)
6482  symcode='[ABCDGISTW]'
6483  ;;
6484hpux*) # Its linker distinguishes data from code symbols
6485  if test "$host_cpu" = ia64; then
6486    symcode='[ABCDEGRST]'
6487  fi
6488  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6489  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'"
6490  ;;
6491linux*)
6492  if test "$host_cpu" = ia64; then
6493    symcode='[ABCDGIRSTW]'
6494    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6495    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'"
6496  fi
6497  ;;
6498irix* | nonstopux*)
6499  symcode='[BCDEGRST]'
6500  ;;
6501osf*)
6502  symcode='[BCDEGQRST]'
6503  ;;
6504solaris*)
6505  symcode='[BDRT]'
6506  ;;
6507sco3.2v5*)
6508  symcode='[DT]'
6509  ;;
6510sysv4.2uw2*)
6511  symcode='[DT]'
6512  ;;
6513sysv5* | sco5v6* | unixware* | OpenUNIX*)
6514  symcode='[ABDT]'
6515  ;;
6516sysv4)
6517  symcode='[DFNSTU]'
6518  ;;
6519esac
6520
6521# Handle CRLF in mingw tool chain
6522opt_cr=
6523case $build_os in
6524mingw*)
6525  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6526  ;;
6527esac
6528
6529# If we're using GNU nm, then use its standard symbol codes.
6530case `$NM -V 2>&1` in
6531*GNU* | *'with BFD'*)
6532  symcode='[ABCDGIRSTW]' ;;
6533esac
6534
6535# Try without a prefix undercore, then with it.
6536for ac_symprfx in "" "_"; do
6537
6538  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6539  symxfrm="\\1 $ac_symprfx\\2 \\2"
6540
6541  # Write the raw and C identifiers.
6542  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6543
6544  # Check to see that the pipe works correctly.
6545  pipe_works=no
6546
6547  rm -f conftest*
6548  cat > conftest.$ac_ext <<EOF
6549#ifdef __cplusplus
6550extern "C" {
6551#endif
6552char nm_test_var;
6553void nm_test_func(){}
6554#ifdef __cplusplus
6555}
6556#endif
6557int main(){nm_test_var='a';nm_test_func();return(0);}
6558EOF
6559
6560  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561  (eval $ac_compile) 2>&5
6562  ac_status=$?
6563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564  (exit $ac_status); }; then
6565    # Now try to grab the symbols.
6566    nlist=conftest.nm
6567    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6568  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6569  ac_status=$?
6570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571  (exit $ac_status); } && test -s "$nlist"; then
6572      # Try sorting and uniquifying the output.
6573      if sort "$nlist" | uniq > "$nlist"T; then
6574	mv -f "$nlist"T "$nlist"
6575      else
6576	rm -f "$nlist"T
6577      fi
6578
6579      # Make sure that we snagged all the symbols we need.
6580      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6581	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6582	  cat <<EOF > conftest.$ac_ext
6583#ifdef __cplusplus
6584extern "C" {
6585#endif
6586
6587EOF
6588	  # Now generate the symbol file.
6589	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6590
6591	  cat <<EOF >> conftest.$ac_ext
6592#if defined (__STDC__) && __STDC__
6593# define lt_ptr_t void *
6594#else
6595# define lt_ptr_t char *
6596# define const
6597#endif
6598
6599/* The mapping between symbol names and symbols. */
6600const struct {
6601  const char *name;
6602  lt_ptr_t address;
6603}
6604lt_preloaded_symbols[] =
6605{
6606EOF
6607	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6608	  cat <<\EOF >> conftest.$ac_ext
6609  {0, (lt_ptr_t) 0}
6610};
6611
6612#ifdef __cplusplus
6613}
6614#endif
6615EOF
6616	  # Now try linking the two files.
6617	  mv conftest.$ac_objext conftstm.$ac_objext
6618	  lt_save_LIBS="$LIBS"
6619	  lt_save_CFLAGS="$CFLAGS"
6620	  LIBS="conftstm.$ac_objext"
6621	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6622	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623  (eval $ac_link) 2>&5
6624  ac_status=$?
6625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6627	    pipe_works=yes
6628	  fi
6629	  LIBS="$lt_save_LIBS"
6630	  CFLAGS="$lt_save_CFLAGS"
6631	else
6632	  echo "cannot find nm_test_func in $nlist" >&5
6633	fi
6634      else
6635	echo "cannot find nm_test_var in $nlist" >&5
6636      fi
6637    else
6638      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6639    fi
6640  else
6641    echo "$progname: failed program was:" >&5
6642    cat conftest.$ac_ext >&5
6643  fi
6644  rm -f conftest* conftst*
6645
6646  # Do not use the global_symbol_pipe unless it works.
6647  if test "$pipe_works" = yes; then
6648    break
6649  else
6650    lt_cv_sys_global_symbol_pipe=
6651  fi
6652done
6653
6654fi
6655
6656if test -z "$lt_cv_sys_global_symbol_pipe"; then
6657  lt_cv_sys_global_symbol_to_cdecl=
6658fi
6659if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6660  echo "$as_me:$LINENO: result: failed" >&5
6661echo "${ECHO_T}failed" >&6
6662else
6663  echo "$as_me:$LINENO: result: ok" >&5
6664echo "${ECHO_T}ok" >&6
6665fi
6666
6667echo "$as_me:$LINENO: checking for objdir" >&5
6668echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6669if test "${lt_cv_objdir+set}" = set; then
6670  echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672  rm -f .libs 2>/dev/null
6673mkdir .libs 2>/dev/null
6674if test -d .libs; then
6675  lt_cv_objdir=.libs
6676else
6677  # MS-DOS does not allow filenames that begin with a dot.
6678  lt_cv_objdir=_libs
6679fi
6680rmdir .libs 2>/dev/null
6681fi
6682echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6683echo "${ECHO_T}$lt_cv_objdir" >&6
6684objdir=$lt_cv_objdir
6685
6686
6687
6688
6689
6690case $host_os in
6691aix3*)
6692  # AIX sometimes has problems with the GCC collect2 program.  For some
6693  # reason, if we set the COLLECT_NAMES environment variable, the problems
6694  # vanish in a puff of smoke.
6695  if test "X${COLLECT_NAMES+set}" != Xset; then
6696    COLLECT_NAMES=
6697    export COLLECT_NAMES
6698  fi
6699  ;;
6700esac
6701
6702# Sed substitution that helps us do robust quoting.  It backslashifies
6703# metacharacters that are still active within double-quoted strings.
6704Xsed='sed -e 1s/^X//'
6705sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6706
6707# Same as above, but do not quote variable references.
6708double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6709
6710# Sed substitution to delay expansion of an escaped shell variable in a
6711# double_quote_subst'ed string.
6712delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6713
6714# Sed substitution to avoid accidental globbing in evaled expressions
6715no_glob_subst='s/\*/\\\*/g'
6716
6717# Constants:
6718rm="rm -f"
6719
6720# Global variables:
6721default_ofile=libtool
6722can_build_shared=yes
6723
6724# All known linkers require a `.a' archive for static linking (except MSVC,
6725# which needs '.lib').
6726libext=a
6727ltmain="$ac_aux_dir/ltmain.sh"
6728ofile="$default_ofile"
6729with_gnu_ld="$lt_cv_prog_gnu_ld"
6730
6731if test -n "$ac_tool_prefix"; then
6732  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6733set dummy ${ac_tool_prefix}ar; ac_word=$2
6734echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6736if test "${ac_cv_prog_AR+set}" = set; then
6737  echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739  if test -n "$AR"; then
6740  ac_cv_prog_AR="$AR" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747  for ac_exec_ext in '' $ac_executable_extensions; do
6748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749    ac_cv_prog_AR="${ac_tool_prefix}ar"
6750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754done
6755
6756fi
6757fi
6758AR=$ac_cv_prog_AR
6759if test -n "$AR"; then
6760  echo "$as_me:$LINENO: result: $AR" >&5
6761echo "${ECHO_T}$AR" >&6
6762else
6763  echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
6765fi
6766
6767fi
6768if test -z "$ac_cv_prog_AR"; then
6769  ac_ct_AR=$AR
6770  # Extract the first word of "ar", so it can be a program name with args.
6771set dummy ar; ac_word=$2
6772echo "$as_me:$LINENO: checking for $ac_word" >&5
6773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6774if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6775  echo $ECHO_N "(cached) $ECHO_C" >&6
6776else
6777  if test -n "$ac_ct_AR"; then
6778  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6779else
6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783  IFS=$as_save_IFS
6784  test -z "$as_dir" && as_dir=.
6785  for ac_exec_ext in '' $ac_executable_extensions; do
6786  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787    ac_cv_prog_ac_ct_AR="ar"
6788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789    break 2
6790  fi
6791done
6792done
6793
6794  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6795fi
6796fi
6797ac_ct_AR=$ac_cv_prog_ac_ct_AR
6798if test -n "$ac_ct_AR"; then
6799  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6800echo "${ECHO_T}$ac_ct_AR" >&6
6801else
6802  echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6
6804fi
6805
6806  AR=$ac_ct_AR
6807else
6808  AR="$ac_cv_prog_AR"
6809fi
6810
6811if test -n "$ac_tool_prefix"; then
6812  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6813set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6814echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6816if test "${ac_cv_prog_RANLIB+set}" = set; then
6817  echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819  if test -n "$RANLIB"; then
6820  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825  IFS=$as_save_IFS
6826  test -z "$as_dir" && as_dir=.
6827  for ac_exec_ext in '' $ac_executable_extensions; do
6828  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831    break 2
6832  fi
6833done
6834done
6835
6836fi
6837fi
6838RANLIB=$ac_cv_prog_RANLIB
6839if test -n "$RANLIB"; then
6840  echo "$as_me:$LINENO: result: $RANLIB" >&5
6841echo "${ECHO_T}$RANLIB" >&6
6842else
6843  echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6
6845fi
6846
6847fi
6848if test -z "$ac_cv_prog_RANLIB"; then
6849  ac_ct_RANLIB=$RANLIB
6850  # Extract the first word of "ranlib", so it can be a program name with args.
6851set dummy ranlib; ac_word=$2
6852echo "$as_me:$LINENO: checking for $ac_word" >&5
6853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6854if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6855  echo $ECHO_N "(cached) $ECHO_C" >&6
6856else
6857  if test -n "$ac_ct_RANLIB"; then
6858  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6859else
6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863  IFS=$as_save_IFS
6864  test -z "$as_dir" && as_dir=.
6865  for ac_exec_ext in '' $ac_executable_extensions; do
6866  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867    ac_cv_prog_ac_ct_RANLIB="ranlib"
6868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869    break 2
6870  fi
6871done
6872done
6873
6874  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6875fi
6876fi
6877ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6878if test -n "$ac_ct_RANLIB"; then
6879  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6880echo "${ECHO_T}$ac_ct_RANLIB" >&6
6881else
6882  echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6
6884fi
6885
6886  RANLIB=$ac_ct_RANLIB
6887else
6888  RANLIB="$ac_cv_prog_RANLIB"
6889fi
6890
6891if test -n "$ac_tool_prefix"; then
6892  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6893set dummy ${ac_tool_prefix}strip; ac_word=$2
6894echo "$as_me:$LINENO: checking for $ac_word" >&5
6895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6896if test "${ac_cv_prog_STRIP+set}" = set; then
6897  echo $ECHO_N "(cached) $ECHO_C" >&6
6898else
6899  if test -n "$STRIP"; then
6900  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6901else
6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905  IFS=$as_save_IFS
6906  test -z "$as_dir" && as_dir=.
6907  for ac_exec_ext in '' $ac_executable_extensions; do
6908  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911    break 2
6912  fi
6913done
6914done
6915
6916fi
6917fi
6918STRIP=$ac_cv_prog_STRIP
6919if test -n "$STRIP"; then
6920  echo "$as_me:$LINENO: result: $STRIP" >&5
6921echo "${ECHO_T}$STRIP" >&6
6922else
6923  echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6
6925fi
6926
6927fi
6928if test -z "$ac_cv_prog_STRIP"; then
6929  ac_ct_STRIP=$STRIP
6930  # Extract the first word of "strip", so it can be a program name with args.
6931set dummy strip; ac_word=$2
6932echo "$as_me:$LINENO: checking for $ac_word" >&5
6933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6934if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6935  echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937  if test -n "$ac_ct_STRIP"; then
6938  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6939else
6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943  IFS=$as_save_IFS
6944  test -z "$as_dir" && as_dir=.
6945  for ac_exec_ext in '' $ac_executable_extensions; do
6946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947    ac_cv_prog_ac_ct_STRIP="strip"
6948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949    break 2
6950  fi
6951done
6952done
6953
6954  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6955fi
6956fi
6957ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6958if test -n "$ac_ct_STRIP"; then
6959  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6960echo "${ECHO_T}$ac_ct_STRIP" >&6
6961else
6962  echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6
6964fi
6965
6966  STRIP=$ac_ct_STRIP
6967else
6968  STRIP="$ac_cv_prog_STRIP"
6969fi
6970
6971
6972old_CC="$CC"
6973old_CFLAGS="$CFLAGS"
6974
6975# Set sane defaults for various variables
6976test -z "$AR" && AR=ar
6977test -z "$AR_FLAGS" && AR_FLAGS=cru
6978test -z "$AS" && AS=as
6979test -z "$CC" && CC=cc
6980test -z "$LTCC" && LTCC=$CC
6981test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6982test -z "$DLLTOOL" && DLLTOOL=dlltool
6983test -z "$LD" && LD=ld
6984test -z "$LN_S" && LN_S="ln -s"
6985test -z "$MAGIC_CMD" && MAGIC_CMD=file
6986test -z "$NM" && NM=nm
6987test -z "$SED" && SED=sed
6988test -z "$OBJDUMP" && OBJDUMP=objdump
6989test -z "$RANLIB" && RANLIB=:
6990test -z "$STRIP" && STRIP=:
6991test -z "$ac_objext" && ac_objext=o
6992
6993# Determine commands to create old-style static archives.
6994old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6995old_postinstall_cmds='chmod 644 $oldlib'
6996old_postuninstall_cmds=
6997
6998if test -n "$RANLIB"; then
6999  case $host_os in
7000  openbsd*)
7001    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7002    ;;
7003  *)
7004    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7005    ;;
7006  esac
7007  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7008fi
7009
7010for cc_temp in $compiler""; do
7011  case $cc_temp in
7012    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7013    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7014    \-*) ;;
7015    *) break;;
7016  esac
7017done
7018cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7019
7020
7021# Only perform the check for file, if the check method requires it
7022case $deplibs_check_method in
7023file_magic*)
7024  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7025    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7026echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7027if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7028  echo $ECHO_N "(cached) $ECHO_C" >&6
7029else
7030  case $MAGIC_CMD in
7031[\\/*] |  ?:[\\/]*)
7032  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7033  ;;
7034*)
7035  lt_save_MAGIC_CMD="$MAGIC_CMD"
7036  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7037  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7038  for ac_dir in $ac_dummy; do
7039    IFS="$lt_save_ifs"
7040    test -z "$ac_dir" && ac_dir=.
7041    if test -f $ac_dir/${ac_tool_prefix}file; then
7042      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7043      if test -n "$file_magic_test_file"; then
7044	case $deplibs_check_method in
7045	"file_magic "*)
7046	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7047	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7048	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7049	    $EGREP "$file_magic_regex" > /dev/null; then
7050	    :
7051	  else
7052	    cat <<EOF 1>&2
7053
7054*** Warning: the command libtool uses to detect shared libraries,
7055*** $file_magic_cmd, produces output that libtool cannot recognize.
7056*** The result is that libtool may fail to recognize shared libraries
7057*** as such.  This will affect the creation of libtool libraries that
7058*** depend on shared libraries, but programs linked with such libtool
7059*** libraries will work regardless of this problem.  Nevertheless, you
7060*** may want to report the problem to your system manager and/or to
7061*** bug-libtool@gnu.org
7062
7063EOF
7064	  fi ;;
7065	esac
7066      fi
7067      break
7068    fi
7069  done
7070  IFS="$lt_save_ifs"
7071  MAGIC_CMD="$lt_save_MAGIC_CMD"
7072  ;;
7073esac
7074fi
7075
7076MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7077if test -n "$MAGIC_CMD"; then
7078  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7079echo "${ECHO_T}$MAGIC_CMD" >&6
7080else
7081  echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6
7083fi
7084
7085if test -z "$lt_cv_path_MAGIC_CMD"; then
7086  if test -n "$ac_tool_prefix"; then
7087    echo "$as_me:$LINENO: checking for file" >&5
7088echo $ECHO_N "checking for file... $ECHO_C" >&6
7089if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7090  echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092  case $MAGIC_CMD in
7093[\\/*] |  ?:[\\/]*)
7094  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7095  ;;
7096*)
7097  lt_save_MAGIC_CMD="$MAGIC_CMD"
7098  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7099  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7100  for ac_dir in $ac_dummy; do
7101    IFS="$lt_save_ifs"
7102    test -z "$ac_dir" && ac_dir=.
7103    if test -f $ac_dir/file; then
7104      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7105      if test -n "$file_magic_test_file"; then
7106	case $deplibs_check_method in
7107	"file_magic "*)
7108	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7109	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7110	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7111	    $EGREP "$file_magic_regex" > /dev/null; then
7112	    :
7113	  else
7114	    cat <<EOF 1>&2
7115
7116*** Warning: the command libtool uses to detect shared libraries,
7117*** $file_magic_cmd, produces output that libtool cannot recognize.
7118*** The result is that libtool may fail to recognize shared libraries
7119*** as such.  This will affect the creation of libtool libraries that
7120*** depend on shared libraries, but programs linked with such libtool
7121*** libraries will work regardless of this problem.  Nevertheless, you
7122*** may want to report the problem to your system manager and/or to
7123*** bug-libtool@gnu.org
7124
7125EOF
7126	  fi ;;
7127	esac
7128      fi
7129      break
7130    fi
7131  done
7132  IFS="$lt_save_ifs"
7133  MAGIC_CMD="$lt_save_MAGIC_CMD"
7134  ;;
7135esac
7136fi
7137
7138MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7139if test -n "$MAGIC_CMD"; then
7140  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7141echo "${ECHO_T}$MAGIC_CMD" >&6
7142else
7143  echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
7145fi
7146
7147  else
7148    MAGIC_CMD=:
7149  fi
7150fi
7151
7152  fi
7153  ;;
7154esac
7155
7156enable_dlopen=no
7157enable_win32_dll=no
7158
7159# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7160if test "${enable_libtool_lock+set}" = set; then
7161  enableval="$enable_libtool_lock"
7162
7163fi;
7164test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7165
7166
7167# Check whether --with-pic or --without-pic was given.
7168if test "${with_pic+set}" = set; then
7169  withval="$with_pic"
7170  pic_mode="$withval"
7171else
7172  pic_mode=default
7173fi;
7174test -z "$pic_mode" && pic_mode=default
7175
7176# Use C for the default configuration in the libtool script
7177tagname=
7178lt_save_CC="$CC"
7179ac_ext=c
7180ac_cpp='$CPP $CPPFLAGS'
7181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183ac_compiler_gnu=$ac_cv_c_compiler_gnu
7184
7185
7186# Source file extension for C test sources.
7187ac_ext=c
7188
7189# Object file extension for compiled C test sources.
7190objext=o
7191objext=$objext
7192
7193# Code to be used in simple compile tests
7194lt_simple_compile_test_code="int some_variable = 0;\n"
7195
7196# Code to be used in simple link tests
7197lt_simple_link_test_code='int main(){return(0);}\n'
7198
7199
7200# If no C compiler was specified, use CC.
7201LTCC=${LTCC-"$CC"}
7202
7203# If no C compiler flags were specified, use CFLAGS.
7204LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7205
7206# Allow CC to be a program name with arguments.
7207compiler=$CC
7208
7209
7210# save warnings/boilerplate of simple test code
7211ac_outfile=conftest.$ac_objext
7212printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7213eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7214_lt_compiler_boilerplate=`cat conftest.err`
7215$rm conftest*
7216
7217ac_outfile=conftest.$ac_objext
7218printf "$lt_simple_link_test_code" >conftest.$ac_ext
7219eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7220_lt_linker_boilerplate=`cat conftest.err`
7221$rm conftest*
7222
7223
7224
7225lt_prog_compiler_no_builtin_flag=
7226
7227if test "$GCC" = yes; then
7228  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7229
7230
7231echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7232echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7233if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7234  echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236  lt_cv_prog_compiler_rtti_exceptions=no
7237  ac_outfile=conftest.$ac_objext
7238   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7239   lt_compiler_flag="-fno-rtti -fno-exceptions"
7240   # Insert the option either (1) after the last *FLAGS variable, or
7241   # (2) before a word containing "conftest.", or (3) at the end.
7242   # Note that $ac_compile itself does not contain backslashes and begins
7243   # with a dollar sign (not a hyphen), so the echo should work correctly.
7244   # The option is referenced via a variable to avoid confusing sed.
7245   lt_compile=`echo "$ac_compile" | $SED \
7246   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7247   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7248   -e 's:$: $lt_compiler_flag:'`
7249   (eval echo "\"\$as_me:7249: $lt_compile\"" >&5)
7250   (eval "$lt_compile" 2>conftest.err)
7251   ac_status=$?
7252   cat conftest.err >&5
7253   echo "$as_me:7253: \$? = $ac_status" >&5
7254   if (exit $ac_status) && test -s "$ac_outfile"; then
7255     # The compiler can only warn and ignore the option if not recognized
7256     # So say no if there are warnings other than the usual output.
7257     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7258     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7259     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7260       lt_cv_prog_compiler_rtti_exceptions=yes
7261     fi
7262   fi
7263   $rm conftest*
7264
7265fi
7266echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7267echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7268
7269if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7270    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7271else
7272    :
7273fi
7274
7275fi
7276
7277lt_prog_compiler_wl=
7278lt_prog_compiler_pic=
7279lt_prog_compiler_static=
7280
7281echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7282echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7283
7284  if test "$GCC" = yes; then
7285    lt_prog_compiler_wl='-Wl,'
7286    lt_prog_compiler_static='-static'
7287
7288    case $host_os in
7289      aix*)
7290      # All AIX code is PIC.
7291      if test "$host_cpu" = ia64; then
7292	# AIX 5 now supports IA64 processor
7293	lt_prog_compiler_static='-Bstatic'
7294      fi
7295      ;;
7296
7297    amigaos*)
7298      # FIXME: we need at least 68020 code to build shared libraries, but
7299      # adding the `-m68020' flag to GCC prevents building anything better,
7300      # like `-m68040'.
7301      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7302      ;;
7303
7304    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7305      # PIC is the default for these OSes.
7306      ;;
7307
7308    mingw* | pw32* | os2*)
7309      # This hack is so that the source file can tell whether it is being
7310      # built for inclusion in a dll (and should export symbols for example).
7311      lt_prog_compiler_pic='-DDLL_EXPORT'
7312      ;;
7313
7314    darwin* | rhapsody*)
7315      # PIC is the default on this platform
7316      # Common symbols not allowed in MH_DYLIB files
7317      lt_prog_compiler_pic='-fno-common'
7318      ;;
7319
7320    interix3*)
7321      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7322      # Instead, we relocate shared libraries at runtime.
7323      ;;
7324
7325    msdosdjgpp*)
7326      # Just because we use GCC doesn't mean we suddenly get shared libraries
7327      # on systems that don't support them.
7328      lt_prog_compiler_can_build_shared=no
7329      enable_shared=no
7330      ;;
7331
7332    sysv4*MP*)
7333      if test -d /usr/nec; then
7334	lt_prog_compiler_pic=-Kconform_pic
7335      fi
7336      ;;
7337
7338    hpux*)
7339      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7340      # not for PA HP-UX.
7341      case $host_cpu in
7342      hppa*64*|ia64*)
7343	# +Z the default
7344	;;
7345      *)
7346	lt_prog_compiler_pic='-fPIC'
7347	;;
7348      esac
7349      ;;
7350
7351    *)
7352      lt_prog_compiler_pic='-fPIC'
7353      ;;
7354    esac
7355  else
7356    # PORTME Check for flag to pass linker flags through the system compiler.
7357    case $host_os in
7358    aix*)
7359      lt_prog_compiler_wl='-Wl,'
7360      if test "$host_cpu" = ia64; then
7361	# AIX 5 now supports IA64 processor
7362	lt_prog_compiler_static='-Bstatic'
7363      else
7364	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7365      fi
7366      ;;
7367      darwin*)
7368        # PIC is the default on this platform
7369        # Common symbols not allowed in MH_DYLIB files
7370       case $cc_basename in
7371         xlc*)
7372         lt_prog_compiler_pic='-qnocommon'
7373         lt_prog_compiler_wl='-Wl,'
7374         ;;
7375       esac
7376       ;;
7377
7378    mingw* | pw32* | os2*)
7379      # This hack is so that the source file can tell whether it is being
7380      # built for inclusion in a dll (and should export symbols for example).
7381      lt_prog_compiler_pic='-DDLL_EXPORT'
7382      ;;
7383
7384    hpux9* | hpux10* | hpux11*)
7385      lt_prog_compiler_wl='-Wl,'
7386      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7387      # not for PA HP-UX.
7388      case $host_cpu in
7389      hppa*64*|ia64*)
7390	# +Z the default
7391	;;
7392      *)
7393	lt_prog_compiler_pic='+Z'
7394	;;
7395      esac
7396      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7397      lt_prog_compiler_static='${wl}-a ${wl}archive'
7398      ;;
7399
7400    irix5* | irix6* | nonstopux*)
7401      lt_prog_compiler_wl='-Wl,'
7402      # PIC (with -KPIC) is the default.
7403      lt_prog_compiler_static='-non_shared'
7404      ;;
7405
7406    newsos6)
7407      lt_prog_compiler_pic='-KPIC'
7408      lt_prog_compiler_static='-Bstatic'
7409      ;;
7410
7411    linux*)
7412      case $cc_basename in
7413      icc* | ecc*)
7414	lt_prog_compiler_wl='-Wl,'
7415	lt_prog_compiler_pic='-KPIC'
7416	lt_prog_compiler_static='-static'
7417        ;;
7418      pgcc* | pgf77* | pgf90* | pgf95*)
7419        # Portland Group compilers (*not* the Pentium gcc compiler,
7420	# which looks to be a dead project)
7421	lt_prog_compiler_wl='-Wl,'
7422	lt_prog_compiler_pic='-fpic'
7423	lt_prog_compiler_static='-Bstatic'
7424        ;;
7425      ccc*)
7426        lt_prog_compiler_wl='-Wl,'
7427        # All Alpha code is PIC.
7428        lt_prog_compiler_static='-non_shared'
7429        ;;
7430      esac
7431      ;;
7432
7433    osf3* | osf4* | osf5*)
7434      lt_prog_compiler_wl='-Wl,'
7435      # All OSF/1 code is PIC.
7436      lt_prog_compiler_static='-non_shared'
7437      ;;
7438
7439    solaris*)
7440      lt_prog_compiler_pic='-KPIC'
7441      lt_prog_compiler_static='-Bstatic'
7442      case $cc_basename in
7443      f77* | f90* | f95*)
7444	lt_prog_compiler_wl='-Qoption ld ';;
7445      *)
7446	lt_prog_compiler_wl='-Wl,';;
7447      esac
7448      ;;
7449
7450    sunos4*)
7451      lt_prog_compiler_wl='-Qoption ld '
7452      lt_prog_compiler_pic='-PIC'
7453      lt_prog_compiler_static='-Bstatic'
7454      ;;
7455
7456    sysv4 | sysv4.2uw2* | sysv4.3*)
7457      lt_prog_compiler_wl='-Wl,'
7458      lt_prog_compiler_pic='-KPIC'
7459      lt_prog_compiler_static='-Bstatic'
7460      ;;
7461
7462    sysv4*MP*)
7463      if test -d /usr/nec ;then
7464	lt_prog_compiler_pic='-Kconform_pic'
7465	lt_prog_compiler_static='-Bstatic'
7466      fi
7467      ;;
7468
7469    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7470      lt_prog_compiler_wl='-Wl,'
7471      lt_prog_compiler_pic='-KPIC'
7472      lt_prog_compiler_static='-Bstatic'
7473      ;;
7474
7475    unicos*)
7476      lt_prog_compiler_wl='-Wl,'
7477      lt_prog_compiler_can_build_shared=no
7478      ;;
7479
7480    uts4*)
7481      lt_prog_compiler_pic='-pic'
7482      lt_prog_compiler_static='-Bstatic'
7483      ;;
7484
7485    *)
7486      lt_prog_compiler_can_build_shared=no
7487      ;;
7488    esac
7489  fi
7490
7491echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7492echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7493
7494#
7495# Check to make sure the PIC flag actually works.
7496#
7497if test -n "$lt_prog_compiler_pic"; then
7498
7499echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7500echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7501if test "${lt_prog_compiler_pic_works+set}" = set; then
7502  echo $ECHO_N "(cached) $ECHO_C" >&6
7503else
7504  lt_prog_compiler_pic_works=no
7505  ac_outfile=conftest.$ac_objext
7506   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7507   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7508   # Insert the option either (1) after the last *FLAGS variable, or
7509   # (2) before a word containing "conftest.", or (3) at the end.
7510   # Note that $ac_compile itself does not contain backslashes and begins
7511   # with a dollar sign (not a hyphen), so the echo should work correctly.
7512   # The option is referenced via a variable to avoid confusing sed.
7513   lt_compile=`echo "$ac_compile" | $SED \
7514   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7515   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7516   -e 's:$: $lt_compiler_flag:'`
7517   (eval echo "\"\$as_me:7517: $lt_compile\"" >&5)
7518   (eval "$lt_compile" 2>conftest.err)
7519   ac_status=$?
7520   cat conftest.err >&5
7521   echo "$as_me:7521: \$? = $ac_status" >&5
7522   if (exit $ac_status) && test -s "$ac_outfile"; then
7523     # The compiler can only warn and ignore the option if not recognized
7524     # So say no if there are warnings other than the usual output.
7525     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7526     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7527     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7528       lt_prog_compiler_pic_works=yes
7529     fi
7530   fi
7531   $rm conftest*
7532
7533fi
7534echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7535echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7536
7537if test x"$lt_prog_compiler_pic_works" = xyes; then
7538    case $lt_prog_compiler_pic in
7539     "" | " "*) ;;
7540     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7541     esac
7542else
7543    lt_prog_compiler_pic=
7544     lt_prog_compiler_can_build_shared=no
7545fi
7546
7547fi
7548case $host_os in
7549  # For platforms which do not support PIC, -DPIC is meaningless:
7550  *djgpp*)
7551    lt_prog_compiler_pic=
7552    ;;
7553  *)
7554    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7555    ;;
7556esac
7557
7558#
7559# Check to make sure the static flag actually works.
7560#
7561wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7562echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7563echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7564if test "${lt_prog_compiler_static_works+set}" = set; then
7565  echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567  lt_prog_compiler_static_works=no
7568   save_LDFLAGS="$LDFLAGS"
7569   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7570   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7571   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7572     # The linker can only warn and ignore the option if not recognized
7573     # So say no if there are warnings
7574     if test -s conftest.err; then
7575       # Append any errors to the config.log.
7576       cat conftest.err 1>&5
7577       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7578       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7579       if diff conftest.exp conftest.er2 >/dev/null; then
7580         lt_prog_compiler_static_works=yes
7581       fi
7582     else
7583       lt_prog_compiler_static_works=yes
7584     fi
7585   fi
7586   $rm conftest*
7587   LDFLAGS="$save_LDFLAGS"
7588
7589fi
7590echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7591echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7592
7593if test x"$lt_prog_compiler_static_works" = xyes; then
7594    :
7595else
7596    lt_prog_compiler_static=
7597fi
7598
7599
7600echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7601echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7602if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7603  echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605  lt_cv_prog_compiler_c_o=no
7606   $rm -r conftest 2>/dev/null
7607   mkdir conftest
7608   cd conftest
7609   mkdir out
7610   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7611
7612   lt_compiler_flag="-o out/conftest2.$ac_objext"
7613   # Insert the option either (1) after the last *FLAGS variable, or
7614   # (2) before a word containing "conftest.", or (3) at the end.
7615   # Note that $ac_compile itself does not contain backslashes and begins
7616   # with a dollar sign (not a hyphen), so the echo should work correctly.
7617   lt_compile=`echo "$ac_compile" | $SED \
7618   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7619   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7620   -e 's:$: $lt_compiler_flag:'`
7621   (eval echo "\"\$as_me:7621: $lt_compile\"" >&5)
7622   (eval "$lt_compile" 2>out/conftest.err)
7623   ac_status=$?
7624   cat out/conftest.err >&5
7625   echo "$as_me:7625: \$? = $ac_status" >&5
7626   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7627   then
7628     # The compiler can only warn and ignore the option if not recognized
7629     # So say no if there are warnings
7630     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7631     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7632     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7633       lt_cv_prog_compiler_c_o=yes
7634     fi
7635   fi
7636   chmod u+w . 2>&5
7637   $rm conftest*
7638   # SGI C++ compiler will create directory out/ii_files/ for
7639   # template instantiation
7640   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7641   $rm out/* && rmdir out
7642   cd ..
7643   rmdir conftest
7644   $rm conftest*
7645
7646fi
7647echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7648echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7649
7650
7651hard_links="nottested"
7652if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7653  # do not overwrite the value of need_locks provided by the user
7654  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7655echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7656  hard_links=yes
7657  $rm conftest*
7658  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7659  touch conftest.a
7660  ln conftest.a conftest.b 2>&5 || hard_links=no
7661  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7662  echo "$as_me:$LINENO: result: $hard_links" >&5
7663echo "${ECHO_T}$hard_links" >&6
7664  if test "$hard_links" = no; then
7665    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7666echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7667    need_locks=warn
7668  fi
7669else
7670  need_locks=no
7671fi
7672
7673echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7674echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7675
7676  runpath_var=
7677  allow_undefined_flag=
7678  enable_shared_with_static_runtimes=no
7679  archive_cmds=
7680  archive_expsym_cmds=
7681  old_archive_From_new_cmds=
7682  old_archive_from_expsyms_cmds=
7683  export_dynamic_flag_spec=
7684  whole_archive_flag_spec=
7685  thread_safe_flag_spec=
7686  hardcode_libdir_flag_spec=
7687  hardcode_libdir_flag_spec_ld=
7688  hardcode_libdir_separator=
7689  hardcode_direct=no
7690  hardcode_minus_L=no
7691  hardcode_shlibpath_var=unsupported
7692  link_all_deplibs=unknown
7693  hardcode_automatic=no
7694  module_cmds=
7695  module_expsym_cmds=
7696  always_export_symbols=no
7697  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7698  # include_expsyms should be a list of space-separated symbols to be *always*
7699  # included in the symbol list
7700  include_expsyms=
7701  # exclude_expsyms can be an extended regexp of symbols to exclude
7702  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7703  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7704  # as well as any symbol that contains `d'.
7705  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7706  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7707  # platforms (ab)use it in PIC code, but their linkers get confused if
7708  # the symbol is explicitly referenced.  Since portable code cannot
7709  # rely on this symbol name, it's probably fine to never include it in
7710  # preloaded symbol tables.
7711  extract_expsyms_cmds=
7712  # Just being paranoid about ensuring that cc_basename is set.
7713  for cc_temp in $compiler""; do
7714  case $cc_temp in
7715    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7716    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7717    \-*) ;;
7718    *) break;;
7719  esac
7720done
7721cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7722
7723  case $host_os in
7724  cygwin* | mingw* | pw32*)
7725    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7726    # When not using gcc, we currently assume that we are using
7727    # Microsoft Visual C++.
7728    if test "$GCC" != yes; then
7729      with_gnu_ld=no
7730    fi
7731    ;;
7732  interix*)
7733    # we just hope/assume this is gcc and not c89 (= MSVC++)
7734    with_gnu_ld=yes
7735    ;;
7736  openbsd*)
7737    with_gnu_ld=no
7738    ;;
7739  esac
7740
7741  ld_shlibs=yes
7742  if test "$with_gnu_ld" = yes; then
7743    # If archive_cmds runs LD, not CC, wlarc should be empty
7744    wlarc='${wl}'
7745
7746    # Set some defaults for GNU ld with shared library support. These
7747    # are reset later if shared libraries are not supported. Putting them
7748    # here allows them to be overridden if necessary.
7749    runpath_var=LD_RUN_PATH
7750    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7751    export_dynamic_flag_spec='${wl}--export-dynamic'
7752    # ancient GNU ld didn't support --whole-archive et. al.
7753    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7754	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7755      else
7756  	whole_archive_flag_spec=
7757    fi
7758    supports_anon_versioning=no
7759    case `$LD -v 2>/dev/null` in
7760      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7761      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7762      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7763      *\ 2.11.*) ;; # other 2.11 versions
7764      *) supports_anon_versioning=yes ;;
7765    esac
7766
7767    # See if GNU ld supports shared libraries.
7768    case $host_os in
7769    aix3* | aix4* | aix5*)
7770      # On AIX/PPC, the GNU linker is very broken
7771      if test "$host_cpu" != ia64; then
7772	ld_shlibs=no
7773	cat <<EOF 1>&2
7774
7775*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7776*** to be unable to reliably create shared libraries on AIX.
7777*** Therefore, libtool is disabling shared libraries support.  If you
7778*** really care for shared libraries, you may want to modify your PATH
7779*** so that a non-GNU linker is found, and then restart.
7780
7781EOF
7782      fi
7783      ;;
7784
7785    amigaos*)
7786      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)'
7787      hardcode_libdir_flag_spec='-L$libdir'
7788      hardcode_minus_L=yes
7789
7790      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7791      # that the semantics of dynamic libraries on AmigaOS, at least up
7792      # to version 4, is to share data among multiple programs linked
7793      # with the same dynamic library.  Since this doesn't match the
7794      # behavior of shared libraries on other platforms, we can't use
7795      # them.
7796      ld_shlibs=no
7797      ;;
7798
7799    beos*)
7800      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7801	allow_undefined_flag=unsupported
7802	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7803	# support --undefined.  This deserves some investigation.  FIXME
7804	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7805      else
7806	ld_shlibs=no
7807      fi
7808      ;;
7809
7810    cygwin* | mingw* | pw32*)
7811      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7812      # as there is no search path for DLLs.
7813      hardcode_libdir_flag_spec='-L$libdir'
7814      allow_undefined_flag=unsupported
7815      always_export_symbols=no
7816      enable_shared_with_static_runtimes=yes
7817      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7818
7819      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7820        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7821	# If the export-symbols file already is a .def file (1st line
7822	# is EXPORTS), use it as is; otherwise, prepend...
7823	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7824	  cp $export_symbols $output_objdir/$soname.def;
7825	else
7826	  echo EXPORTS > $output_objdir/$soname.def;
7827	  cat $export_symbols >> $output_objdir/$soname.def;
7828	fi~
7829	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7830      else
7831	ld_shlibs=no
7832      fi
7833      ;;
7834
7835    interix3*)
7836      hardcode_direct=no
7837      hardcode_shlibpath_var=no
7838      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7839      export_dynamic_flag_spec='${wl}-E'
7840      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7841      # Instead, shared libraries are loaded at an image base (0x10000000 by
7842      # default) and relocated if they conflict, which is a slow very memory
7843      # consuming and fragmenting process.  To avoid this, we pick a random,
7844      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7845      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7846      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7847      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7848      ;;
7849
7850    linux*)
7851      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7852	tmp_addflag=
7853	case $cc_basename,$host_cpu in
7854	pgcc*)				# Portland Group C compiler
7855	  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'
7856	  tmp_addflag=' $pic_flag'
7857	  ;;
7858	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7859	  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'
7860	  tmp_addflag=' $pic_flag -Mnomain' ;;
7861	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7862	  tmp_addflag=' -i_dynamic' ;;
7863	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7864	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7865	ifc* | ifort*)			# Intel Fortran compiler
7866	  tmp_addflag=' -nofor_main' ;;
7867	esac
7868	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7869
7870	if test $supports_anon_versioning = yes; then
7871	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7872  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7873  $echo "local: *; };" >> $output_objdir/$libname.ver~
7874	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7875	fi
7876      else
7877	ld_shlibs=no
7878      fi
7879      ;;
7880
7881    netbsd*)
7882      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7883	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7884	wlarc=
7885      else
7886	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7887	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7888      fi
7889      ;;
7890
7891    solaris*)
7892      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7893	ld_shlibs=no
7894	cat <<EOF 1>&2
7895
7896*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7897*** create shared libraries on Solaris systems.  Therefore, libtool
7898*** is disabling shared libraries support.  We urge you to upgrade GNU
7899*** binutils to release 2.9.1 or newer.  Another option is to modify
7900*** your PATH or compiler configuration so that the native linker is
7901*** used, and then restart.
7902
7903EOF
7904      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7905	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7907      else
7908	ld_shlibs=no
7909      fi
7910      ;;
7911
7912    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7913      case `$LD -v 2>&1` in
7914        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7915	ld_shlibs=no
7916	cat <<_LT_EOF 1>&2
7917
7918*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7919*** reliably create shared libraries on SCO systems.  Therefore, libtool
7920*** is disabling shared libraries support.  We urge you to upgrade GNU
7921*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7922*** your PATH or compiler configuration so that the native linker is
7923*** used, and then restart.
7924
7925_LT_EOF
7926	;;
7927	*)
7928	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7929	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7930	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7931	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7932	  else
7933	    ld_shlibs=no
7934	  fi
7935	;;
7936      esac
7937      ;;
7938
7939    sunos4*)
7940      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7941      wlarc=
7942      hardcode_direct=yes
7943      hardcode_shlibpath_var=no
7944      ;;
7945
7946    *)
7947      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7948	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7949	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7950      else
7951	ld_shlibs=no
7952      fi
7953      ;;
7954    esac
7955
7956    if test "$ld_shlibs" = no; then
7957      runpath_var=
7958      hardcode_libdir_flag_spec=
7959      export_dynamic_flag_spec=
7960      whole_archive_flag_spec=
7961    fi
7962  else
7963    # PORTME fill in a description of your system's linker (not GNU ld)
7964    case $host_os in
7965    aix3*)
7966      allow_undefined_flag=unsupported
7967      always_export_symbols=yes
7968      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'
7969      # Note: this linker hardcodes the directories in LIBPATH if there
7970      # are no directories specified by -L.
7971      hardcode_minus_L=yes
7972      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7973	# Neither direct hardcoding nor static linking is supported with a
7974	# broken collect2.
7975	hardcode_direct=unsupported
7976      fi
7977      ;;
7978
7979    aix4* | aix5*)
7980      if test "$host_cpu" = ia64; then
7981	# On IA64, the linker does run time linking by default, so we don't
7982	# have to do anything special.
7983	aix_use_runtimelinking=no
7984	exp_sym_flag='-Bexport'
7985	no_entry_flag=""
7986      else
7987	# If we're using GNU nm, then we don't want the "-C" option.
7988	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7989	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7990	  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'
7991	else
7992	  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'
7993	fi
7994	aix_use_runtimelinking=no
7995
7996	# Test if we are trying to use run time linking or normal
7997	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7998	# need to do runtime linking.
7999	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8000	  for ld_flag in $LDFLAGS; do
8001  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8002  	    aix_use_runtimelinking=yes
8003  	    break
8004  	  fi
8005	  done
8006	  ;;
8007	esac
8008
8009	exp_sym_flag='-bexport'
8010	no_entry_flag='-bnoentry'
8011      fi
8012
8013      # When large executables or shared objects are built, AIX ld can
8014      # have problems creating the table of contents.  If linking a library
8015      # or program results in "error TOC overflow" add -mminimal-toc to
8016      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8017      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8018
8019      archive_cmds=''
8020      hardcode_direct=yes
8021      hardcode_libdir_separator=':'
8022      link_all_deplibs=yes
8023
8024      if test "$GCC" = yes; then
8025	case $host_os in aix4.[012]|aix4.[012].*)
8026	# We only want to do this on AIX 4.2 and lower, the check
8027	# below for broken collect2 doesn't work under 4.3+
8028	  collect2name=`${CC} -print-prog-name=collect2`
8029	  if test -f "$collect2name" && \
8030  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8031	  then
8032  	  # We have reworked collect2
8033  	  hardcode_direct=yes
8034	  else
8035  	  # We have old collect2
8036  	  hardcode_direct=unsupported
8037  	  # It fails to find uninstalled libraries when the uninstalled
8038  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8039  	  # to unsupported forces relinking
8040  	  hardcode_minus_L=yes
8041  	  hardcode_libdir_flag_spec='-L$libdir'
8042  	  hardcode_libdir_separator=
8043	  fi
8044	  ;;
8045	esac
8046	shared_flag='-shared'
8047	if test "$aix_use_runtimelinking" = yes; then
8048	  shared_flag="$shared_flag "'${wl}-G'
8049	fi
8050      else
8051	# not using gcc
8052	if test "$host_cpu" = ia64; then
8053  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8054  	# chokes on -Wl,-G. The following line is correct:
8055	  shared_flag='-G'
8056	else
8057	  if test "$aix_use_runtimelinking" = yes; then
8058	    shared_flag='${wl}-G'
8059	  else
8060	    shared_flag='${wl}-bM:SRE'
8061	  fi
8062	fi
8063      fi
8064
8065      # It seems that -bexpall does not export symbols beginning with
8066      # underscore (_), so it is better to generate a list of symbols to export.
8067      always_export_symbols=yes
8068      if test "$aix_use_runtimelinking" = yes; then
8069	# Warning - without using the other runtime loading flags (-brtl),
8070	# -berok will link without error, but may produce a broken library.
8071	allow_undefined_flag='-berok'
8072       # Determine the default libpath from the value encoded in an empty executable.
8073       cat >conftest.$ac_ext <<_ACEOF
8074/* confdefs.h.  */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h.  */
8079
8080int
8081main ()
8082{
8083
8084  ;
8085  return 0;
8086}
8087_ACEOF
8088rm -f conftest.$ac_objext conftest$ac_exeext
8089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090  (eval $ac_link) 2>conftest.er1
8091  ac_status=$?
8092  grep -v '^ *+' conftest.er1 >conftest.err
8093  rm -f conftest.er1
8094  cat conftest.err >&5
8095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096  (exit $ac_status); } &&
8097	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099  (eval $ac_try) 2>&5
8100  ac_status=$?
8101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102  (exit $ac_status); }; } &&
8103	 { ac_try='test -s conftest$ac_exeext'
8104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105  (eval $ac_try) 2>&5
8106  ac_status=$?
8107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108  (exit $ac_status); }; }; then
8109
8110aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8111}'`
8112# Check for a 64-bit object if we didn't find anything.
8113if 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; }
8114}'`; fi
8115else
8116  echo "$as_me: failed program was:" >&5
8117sed 's/^/| /' conftest.$ac_ext >&5
8118
8119fi
8120rm -f conftest.err conftest.$ac_objext \
8121      conftest$ac_exeext conftest.$ac_ext
8122if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8123
8124       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8125	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8126       else
8127	if test "$host_cpu" = ia64; then
8128	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8129	  allow_undefined_flag="-z nodefs"
8130	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8131	else
8132	 # Determine the default libpath from the value encoded in an empty executable.
8133	 cat >conftest.$ac_ext <<_ACEOF
8134/* confdefs.h.  */
8135_ACEOF
8136cat confdefs.h >>conftest.$ac_ext
8137cat >>conftest.$ac_ext <<_ACEOF
8138/* end confdefs.h.  */
8139
8140int
8141main ()
8142{
8143
8144  ;
8145  return 0;
8146}
8147_ACEOF
8148rm -f conftest.$ac_objext conftest$ac_exeext
8149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8150  (eval $ac_link) 2>conftest.er1
8151  ac_status=$?
8152  grep -v '^ *+' conftest.er1 >conftest.err
8153  rm -f conftest.er1
8154  cat conftest.err >&5
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); } &&
8157	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159  (eval $ac_try) 2>&5
8160  ac_status=$?
8161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162  (exit $ac_status); }; } &&
8163	 { ac_try='test -s conftest$ac_exeext'
8164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165  (eval $ac_try) 2>&5
8166  ac_status=$?
8167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168  (exit $ac_status); }; }; then
8169
8170aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8171}'`
8172# Check for a 64-bit object if we didn't find anything.
8173if 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; }
8174}'`; fi
8175else
8176  echo "$as_me: failed program was:" >&5
8177sed 's/^/| /' conftest.$ac_ext >&5
8178
8179fi
8180rm -f conftest.err conftest.$ac_objext \
8181      conftest$ac_exeext conftest.$ac_ext
8182if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8183
8184	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8185	  # Warning - without using the other run time loading flags,
8186	  # -berok will link without error, but may produce a broken library.
8187	  no_undefined_flag=' ${wl}-bernotok'
8188	  allow_undefined_flag=' ${wl}-berok'
8189	  # Exported symbols can be pulled into shared objects from archives
8190	  whole_archive_flag_spec='$convenience'
8191	  archive_cmds_need_lc=yes
8192	  # This is similar to how AIX traditionally builds its shared libraries.
8193	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8194	fi
8195      fi
8196      ;;
8197
8198    amigaos*)
8199      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)'
8200      hardcode_libdir_flag_spec='-L$libdir'
8201      hardcode_minus_L=yes
8202      # see comment about different semantics on the GNU ld section
8203      ld_shlibs=no
8204      ;;
8205
8206    bsdi[45]*)
8207      export_dynamic_flag_spec=-rdynamic
8208      ;;
8209
8210    cygwin* | mingw* | pw32*)
8211      # When not using gcc, we currently assume that we are using
8212      # Microsoft Visual C++.
8213      # hardcode_libdir_flag_spec is actually meaningless, as there is
8214      # no search path for DLLs.
8215      hardcode_libdir_flag_spec=' '
8216      allow_undefined_flag=unsupported
8217      # Tell ltmain to make .lib files, not .a files.
8218      libext=lib
8219      # Tell ltmain to make .dll files, not .so files.
8220      shrext_cmds=".dll"
8221      # FIXME: Setting linknames here is a bad hack.
8222      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8223      # The linker will automatically build a .lib file if we build a DLL.
8224      old_archive_From_new_cmds='true'
8225      # FIXME: Should let the user specify the lib program.
8226      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8227      fix_srcfile_path='`cygpath -w "$srcfile"`'
8228      enable_shared_with_static_runtimes=yes
8229      ;;
8230
8231    darwin* | rhapsody*)
8232      case $host_os in
8233        rhapsody* | darwin1.[012])
8234         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8235         ;;
8236       *) # Darwin 1.3 on
8237         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8238           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8239         else
8240           case ${MACOSX_DEPLOYMENT_TARGET} in
8241             10.[012])
8242               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8243               ;;
8244             10.*)
8245               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8246               ;;
8247           esac
8248         fi
8249         ;;
8250      esac
8251      archive_cmds_need_lc=no
8252      hardcode_direct=no
8253      hardcode_automatic=yes
8254      hardcode_shlibpath_var=unsupported
8255      whole_archive_flag_spec=''
8256      link_all_deplibs=yes
8257    if test "$GCC" = yes ; then
8258    	output_verbose_link_cmd='echo'
8259        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8260      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8261      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8262      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}'
8263      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}'
8264    else
8265      case $cc_basename in
8266        xlc*)
8267         output_verbose_link_cmd='echo'
8268         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8269         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8270          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8271         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}'
8272          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}'
8273          ;;
8274       *)
8275         ld_shlibs=no
8276          ;;
8277      esac
8278    fi
8279      ;;
8280
8281    dgux*)
8282      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8283      hardcode_libdir_flag_spec='-L$libdir'
8284      hardcode_shlibpath_var=no
8285      ;;
8286
8287    freebsd1*)
8288      ld_shlibs=no
8289      ;;
8290
8291    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8292    # support.  Future versions do this automatically, but an explicit c++rt0.o
8293    # does not break anything, and helps significantly (at the cost of a little
8294    # extra space).
8295    freebsd2.2*)
8296      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8297      hardcode_libdir_flag_spec='-R$libdir'
8298      hardcode_direct=yes
8299      hardcode_shlibpath_var=no
8300      ;;
8301
8302    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8303    freebsd2*)
8304      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8305      hardcode_direct=yes
8306      hardcode_minus_L=yes
8307      hardcode_shlibpath_var=no
8308      ;;
8309
8310    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8311    freebsd* | kfreebsd*-gnu | dragonfly*)
8312      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8313      hardcode_libdir_flag_spec='-R$libdir'
8314      hardcode_direct=yes
8315      hardcode_shlibpath_var=no
8316      ;;
8317
8318    hpux9*)
8319      if test "$GCC" = yes; then
8320	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'
8321      else
8322	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'
8323      fi
8324      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8325      hardcode_libdir_separator=:
8326      hardcode_direct=yes
8327
8328      # hardcode_minus_L: Not really in the search PATH,
8329      # but as the default location of the library.
8330      hardcode_minus_L=yes
8331      export_dynamic_flag_spec='${wl}-E'
8332      ;;
8333
8334    hpux10*)
8335      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8336	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8337      else
8338	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8339      fi
8340      if test "$with_gnu_ld" = no; then
8341	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8342	hardcode_libdir_separator=:
8343
8344	hardcode_direct=yes
8345	export_dynamic_flag_spec='${wl}-E'
8346
8347	# hardcode_minus_L: Not really in the search PATH,
8348	# but as the default location of the library.
8349	hardcode_minus_L=yes
8350      fi
8351      ;;
8352
8353    hpux11*)
8354      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8355	case $host_cpu in
8356	hppa*64*)
8357	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8358	  ;;
8359	ia64*)
8360	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8361	  ;;
8362	*)
8363	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8364	  ;;
8365	esac
8366      else
8367	case $host_cpu in
8368	hppa*64*)
8369	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8370	  ;;
8371	ia64*)
8372	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8373	  ;;
8374	*)
8375	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8376	  ;;
8377	esac
8378      fi
8379      if test "$with_gnu_ld" = no; then
8380	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8381	hardcode_libdir_separator=:
8382
8383	case $host_cpu in
8384	hppa*64*|ia64*)
8385	  hardcode_libdir_flag_spec_ld='+b $libdir'
8386	  hardcode_direct=no
8387	  hardcode_shlibpath_var=no
8388	  ;;
8389	*)
8390	  hardcode_direct=yes
8391	  export_dynamic_flag_spec='${wl}-E'
8392
8393	  # hardcode_minus_L: Not really in the search PATH,
8394	  # but as the default location of the library.
8395	  hardcode_minus_L=yes
8396	  ;;
8397	esac
8398      fi
8399      ;;
8400
8401    irix5* | irix6* | nonstopux*)
8402      if test "$GCC" = yes; then
8403	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'
8404      else
8405	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'
8406	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8407      fi
8408      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8409      hardcode_libdir_separator=:
8410      link_all_deplibs=yes
8411      ;;
8412
8413    netbsd*)
8414      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8415	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8416      else
8417	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8418      fi
8419      hardcode_libdir_flag_spec='-R$libdir'
8420      hardcode_direct=yes
8421      hardcode_shlibpath_var=no
8422      ;;
8423
8424    newsos6)
8425      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8426      hardcode_direct=yes
8427      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8428      hardcode_libdir_separator=:
8429      hardcode_shlibpath_var=no
8430      ;;
8431
8432    openbsd*)
8433      hardcode_direct=yes
8434      hardcode_shlibpath_var=no
8435      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8436	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8437	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8438	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8439	export_dynamic_flag_spec='${wl}-E'
8440      else
8441       case $host_os in
8442	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8443	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8444	   hardcode_libdir_flag_spec='-R$libdir'
8445	   ;;
8446	 *)
8447	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8448	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8449	   ;;
8450       esac
8451      fi
8452      ;;
8453
8454    os2*)
8455      hardcode_libdir_flag_spec='-L$libdir'
8456      hardcode_minus_L=yes
8457      allow_undefined_flag=unsupported
8458      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'
8459      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8460      ;;
8461
8462    osf3*)
8463      if test "$GCC" = yes; then
8464	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8465	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'
8466      else
8467	allow_undefined_flag=' -expect_unresolved \*'
8468	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'
8469      fi
8470      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8471      hardcode_libdir_separator=:
8472      ;;
8473
8474    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8475      if test "$GCC" = yes; then
8476	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8477	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'
8478	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8479      else
8480	allow_undefined_flag=' -expect_unresolved \*'
8481	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'
8482	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8483	$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'
8484
8485	# Both c and cxx compiler support -rpath directly
8486	hardcode_libdir_flag_spec='-rpath $libdir'
8487      fi
8488      hardcode_libdir_separator=:
8489      ;;
8490
8491    solaris*)
8492      no_undefined_flag=' -z text'
8493      if test "$GCC" = yes; then
8494	wlarc='${wl}'
8495	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8496	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8497	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8498      else
8499	wlarc=''
8500	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8502  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8503      fi
8504      hardcode_libdir_flag_spec='-R$libdir'
8505      hardcode_shlibpath_var=no
8506      case $host_os in
8507      solaris2.[0-5] | solaris2.[0-5].*) ;;
8508      *)
8509 	# The compiler driver will combine linker options so we
8510 	# cannot just pass the convience library names through
8511 	# without $wl, iff we do not link with $LD.
8512 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8513 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8514 	case $wlarc in
8515 	'')
8516 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8517 	*)
8518 	  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' ;;
8519 	esac ;;
8520      esac
8521      link_all_deplibs=yes
8522      ;;
8523
8524    sunos4*)
8525      if test "x$host_vendor" = xsequent; then
8526	# Use $CC to link under sequent, because it throws in some extra .o
8527	# files that make .init and .fini sections work.
8528	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8529      else
8530	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8531      fi
8532      hardcode_libdir_flag_spec='-L$libdir'
8533      hardcode_direct=yes
8534      hardcode_minus_L=yes
8535      hardcode_shlibpath_var=no
8536      ;;
8537
8538    sysv4)
8539      case $host_vendor in
8540	sni)
8541	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542	  hardcode_direct=yes # is this really true???
8543	;;
8544	siemens)
8545	  ## LD is ld it makes a PLAMLIB
8546	  ## CC just makes a GrossModule.
8547	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8548	  reload_cmds='$CC -r -o $output$reload_objs'
8549	  hardcode_direct=no
8550        ;;
8551	motorola)
8552	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8553	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8554	;;
8555      esac
8556      runpath_var='LD_RUN_PATH'
8557      hardcode_shlibpath_var=no
8558      ;;
8559
8560    sysv4.3*)
8561      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562      hardcode_shlibpath_var=no
8563      export_dynamic_flag_spec='-Bexport'
8564      ;;
8565
8566    sysv4*MP*)
8567      if test -d /usr/nec; then
8568	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8569	hardcode_shlibpath_var=no
8570	runpath_var=LD_RUN_PATH
8571	hardcode_runpath_var=yes
8572	ld_shlibs=yes
8573      fi
8574      ;;
8575
8576    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8577      no_undefined_flag='${wl}-z,text'
8578      archive_cmds_need_lc=no
8579      hardcode_shlibpath_var=no
8580      runpath_var='LD_RUN_PATH'
8581
8582      if test "$GCC" = yes; then
8583	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8584	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8585      else
8586	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8587	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8588      fi
8589      ;;
8590
8591    sysv5* | sco3.2v5* | sco5v6*)
8592      # Note: We can NOT use -z defs as we might desire, because we do not
8593      # link with -lc, and that would cause any symbols used from libc to
8594      # always be unresolved, which means just about no library would
8595      # ever link correctly.  If we're not using GNU ld we use -z text
8596      # though, which does catch some bad symbols but isn't as heavy-handed
8597      # as -z defs.
8598      no_undefined_flag='${wl}-z,text'
8599      allow_undefined_flag='${wl}-z,nodefs'
8600      archive_cmds_need_lc=no
8601      hardcode_shlibpath_var=no
8602      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8603      hardcode_libdir_separator=':'
8604      link_all_deplibs=yes
8605      export_dynamic_flag_spec='${wl}-Bexport'
8606      runpath_var='LD_RUN_PATH'
8607
8608      if test "$GCC" = yes; then
8609	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8611      else
8612	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8613	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8614      fi
8615      ;;
8616
8617    uts4*)
8618      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8619      hardcode_libdir_flag_spec='-L$libdir'
8620      hardcode_shlibpath_var=no
8621      ;;
8622
8623    *)
8624      ld_shlibs=no
8625      ;;
8626    esac
8627  fi
8628
8629echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8630echo "${ECHO_T}$ld_shlibs" >&6
8631test "$ld_shlibs" = no && can_build_shared=no
8632
8633#
8634# Do we need to explicitly link libc?
8635#
8636case "x$archive_cmds_need_lc" in
8637x|xyes)
8638  # Assume -lc should be added
8639  archive_cmds_need_lc=yes
8640
8641  if test "$enable_shared" = yes && test "$GCC" = yes; then
8642    case $archive_cmds in
8643    *'~'*)
8644      # FIXME: we may have to deal with multi-command sequences.
8645      ;;
8646    '$CC '*)
8647      # Test whether the compiler implicitly links with -lc since on some
8648      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8649      # to ld, don't add -lc before -lgcc.
8650      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8651echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8652      $rm conftest*
8653      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8654
8655      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8656  (eval $ac_compile) 2>&5
8657  ac_status=$?
8658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659  (exit $ac_status); } 2>conftest.err; then
8660        soname=conftest
8661        lib=conftest
8662        libobjs=conftest.$ac_objext
8663        deplibs=
8664        wl=$lt_prog_compiler_wl
8665	pic_flag=$lt_prog_compiler_pic
8666        compiler_flags=-v
8667        linker_flags=-v
8668        verstring=
8669        output_objdir=.
8670        libname=conftest
8671        lt_save_allow_undefined_flag=$allow_undefined_flag
8672        allow_undefined_flag=
8673        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8674  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8675  ac_status=$?
8676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677  (exit $ac_status); }
8678        then
8679	  archive_cmds_need_lc=no
8680        else
8681	  archive_cmds_need_lc=yes
8682        fi
8683        allow_undefined_flag=$lt_save_allow_undefined_flag
8684      else
8685        cat conftest.err 1>&5
8686      fi
8687      $rm conftest*
8688      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8689echo "${ECHO_T}$archive_cmds_need_lc" >&6
8690      ;;
8691    esac
8692  fi
8693  ;;
8694esac
8695
8696echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8697echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8698library_names_spec=
8699libname_spec='lib$name'
8700soname_spec=
8701shrext_cmds=".so"
8702postinstall_cmds=
8703postuninstall_cmds=
8704finish_cmds=
8705finish_eval=
8706shlibpath_var=
8707shlibpath_overrides_runpath=unknown
8708version_type=none
8709dynamic_linker="$host_os ld.so"
8710sys_lib_dlsearch_path_spec="/lib /usr/lib"
8711if test "$GCC" = yes; then
8712  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8713  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8714    # if the path contains ";" then we assume it to be the separator
8715    # otherwise default to the standard path separator (i.e. ":") - it is
8716    # assumed that no part of a normal pathname contains ";" but that should
8717    # okay in the real world where ";" in dirpaths is itself problematic.
8718    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8719  else
8720    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8721  fi
8722else
8723  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8724fi
8725need_lib_prefix=unknown
8726hardcode_into_libs=no
8727
8728# when you set need_version to no, make sure it does not cause -set_version
8729# flags to be left without arguments
8730need_version=unknown
8731
8732case $host_os in
8733aix3*)
8734  version_type=linux
8735  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8736  shlibpath_var=LIBPATH
8737
8738  # AIX 3 has no versioning support, so we append a major version to the name.
8739  soname_spec='${libname}${release}${shared_ext}$major'
8740  ;;
8741
8742aix4* | aix5*)
8743  version_type=linux
8744  need_lib_prefix=no
8745  need_version=no
8746  hardcode_into_libs=yes
8747  if test "$host_cpu" = ia64; then
8748    # AIX 5 supports IA64
8749    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8750    shlibpath_var=LD_LIBRARY_PATH
8751  else
8752    # With GCC up to 2.95.x, collect2 would create an import file
8753    # for dependence libraries.  The import file would start with
8754    # the line `#! .'.  This would cause the generated library to
8755    # depend on `.', always an invalid library.  This was fixed in
8756    # development snapshots of GCC prior to 3.0.
8757    case $host_os in
8758      aix4 | aix4.[01] | aix4.[01].*)
8759      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8760	   echo ' yes '
8761	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8762	:
8763      else
8764	can_build_shared=no
8765      fi
8766      ;;
8767    esac
8768    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8769    # soname into executable. Probably we can add versioning support to
8770    # collect2, so additional links can be useful in future.
8771    if test "$aix_use_runtimelinking" = yes; then
8772      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8773      # instead of lib<name>.a to let people know that these are not
8774      # typical AIX shared libraries.
8775      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8776    else
8777      # We preserve .a as extension for shared libraries through AIX4.2
8778      # and later when we are not doing run time linking.
8779      library_names_spec='${libname}${release}.a $libname.a'
8780      soname_spec='${libname}${release}${shared_ext}$major'
8781    fi
8782    shlibpath_var=LIBPATH
8783  fi
8784  ;;
8785
8786amigaos*)
8787  library_names_spec='$libname.ixlibrary $libname.a'
8788  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8789  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'
8790  ;;
8791
8792beos*)
8793  library_names_spec='${libname}${shared_ext}'
8794  dynamic_linker="$host_os ld.so"
8795  shlibpath_var=LIBRARY_PATH
8796  ;;
8797
8798bsdi[45]*)
8799  version_type=linux
8800  need_version=no
8801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802  soname_spec='${libname}${release}${shared_ext}$major'
8803  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8804  shlibpath_var=LD_LIBRARY_PATH
8805  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8806  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8807  # the default ld.so.conf also contains /usr/contrib/lib and
8808  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8809  # libtool to hard-code these into programs
8810  ;;
8811
8812cygwin* | mingw* | pw32*)
8813  version_type=windows
8814  shrext_cmds=".dll"
8815  need_version=no
8816  need_lib_prefix=no
8817
8818  case $GCC,$host_os in
8819  yes,cygwin* | yes,mingw* | yes,pw32*)
8820    library_names_spec='$libname.dll.a'
8821    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8822    postinstall_cmds='base_file=`basename \${file}`~
8823      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8824      dldir=$destdir/`dirname \$dlpath`~
8825      test -d \$dldir || mkdir -p \$dldir~
8826      $install_prog $dir/$dlname \$dldir/$dlname~
8827      chmod a+x \$dldir/$dlname'
8828    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8829      dlpath=$dir/\$dldll~
8830       $rm \$dlpath'
8831    shlibpath_overrides_runpath=yes
8832
8833    case $host_os in
8834    cygwin*)
8835      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8836      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8837      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8838      ;;
8839    mingw*)
8840      # MinGW DLLs use traditional 'lib' prefix
8841      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8842      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8843      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8844        # It is most probably a Windows format PATH printed by
8845        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8846        # path with ; separators, and with drive letters. We can handle the
8847        # drive letters (cygwin fileutils understands them), so leave them,
8848        # especially as we might pass files found there to a mingw objdump,
8849        # which wouldn't understand a cygwinified path. Ahh.
8850        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8851      else
8852        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8853      fi
8854      ;;
8855    pw32*)
8856      # pw32 DLLs use 'pw' prefix rather than 'lib'
8857      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8858      ;;
8859    esac
8860    ;;
8861
8862  *)
8863    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8864    ;;
8865  esac
8866  dynamic_linker='Win32 ld.exe'
8867  # FIXME: first we should search . and the directory the executable is in
8868  shlibpath_var=PATH
8869  ;;
8870
8871darwin* | rhapsody*)
8872  dynamic_linker="$host_os dyld"
8873  version_type=darwin
8874  need_lib_prefix=no
8875  need_version=no
8876  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8877  soname_spec='${libname}${release}${major}$shared_ext'
8878  shlibpath_overrides_runpath=yes
8879  shlibpath_var=DYLD_LIBRARY_PATH
8880  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8881  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8882  if test "$GCC" = yes; then
8883    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"`
8884  else
8885    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8886  fi
8887  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8888  ;;
8889
8890dgux*)
8891  version_type=linux
8892  need_lib_prefix=no
8893  need_version=no
8894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8895  soname_spec='${libname}${release}${shared_ext}$major'
8896  shlibpath_var=LD_LIBRARY_PATH
8897  ;;
8898
8899freebsd1*)
8900  dynamic_linker=no
8901  ;;
8902
8903kfreebsd*-gnu)
8904  version_type=linux
8905  need_lib_prefix=no
8906  need_version=no
8907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908  soname_spec='${libname}${release}${shared_ext}$major'
8909  shlibpath_var=LD_LIBRARY_PATH
8910  shlibpath_overrides_runpath=no
8911  hardcode_into_libs=yes
8912  dynamic_linker='GNU ld.so'
8913  ;;
8914
8915freebsd* | dragonfly*)
8916  # DragonFly does not have aout.  When/if they implement a new
8917  # versioning mechanism, adjust this.
8918  if test -x /usr/bin/objformat; then
8919    objformat=`/usr/bin/objformat`
8920  else
8921    case $host_os in
8922    freebsd[123]*) objformat=aout ;;
8923    *) objformat=elf ;;
8924    esac
8925  fi
8926  version_type=freebsd-$objformat
8927  case $version_type in
8928    freebsd-elf*)
8929      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8930      need_version=no
8931      need_lib_prefix=no
8932      ;;
8933    freebsd-*)
8934      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8935      need_version=yes
8936      ;;
8937  esac
8938  shlibpath_var=LD_LIBRARY_PATH
8939  case $host_os in
8940  freebsd2*)
8941    shlibpath_overrides_runpath=yes
8942    ;;
8943  freebsd3.[01]* | freebsdelf3.[01]*)
8944    shlibpath_overrides_runpath=yes
8945    hardcode_into_libs=yes
8946    ;;
8947  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8948  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8949    shlibpath_overrides_runpath=no
8950    hardcode_into_libs=yes
8951    ;;
8952  freebsd*) # from 4.6 on
8953    shlibpath_overrides_runpath=yes
8954    hardcode_into_libs=yes
8955    ;;
8956  esac
8957  ;;
8958
8959gnu*)
8960  version_type=linux
8961  need_lib_prefix=no
8962  need_version=no
8963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8964  soname_spec='${libname}${release}${shared_ext}$major'
8965  shlibpath_var=LD_LIBRARY_PATH
8966  hardcode_into_libs=yes
8967  ;;
8968
8969hpux9* | hpux10* | hpux11*)
8970  # Give a soname corresponding to the major version so that dld.sl refuses to
8971  # link against other versions.
8972  version_type=sunos
8973  need_lib_prefix=no
8974  need_version=no
8975  case $host_cpu in
8976  ia64*)
8977    shrext_cmds='.so'
8978    hardcode_into_libs=yes
8979    dynamic_linker="$host_os dld.so"
8980    shlibpath_var=LD_LIBRARY_PATH
8981    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8982    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8983    soname_spec='${libname}${release}${shared_ext}$major'
8984    if test "X$HPUX_IA64_MODE" = X32; then
8985      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8986    else
8987      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8988    fi
8989    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8990    ;;
8991   hppa*64*)
8992     shrext_cmds='.sl'
8993     hardcode_into_libs=yes
8994     dynamic_linker="$host_os dld.sl"
8995     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8996     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998     soname_spec='${libname}${release}${shared_ext}$major'
8999     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9000     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9001     ;;
9002   *)
9003    shrext_cmds='.sl'
9004    dynamic_linker="$host_os dld.sl"
9005    shlibpath_var=SHLIB_PATH
9006    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9007    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008    soname_spec='${libname}${release}${shared_ext}$major'
9009    ;;
9010  esac
9011  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9012  postinstall_cmds='chmod 555 $lib'
9013  ;;
9014
9015interix3*)
9016  version_type=linux
9017  need_lib_prefix=no
9018  need_version=no
9019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9020  soname_spec='${libname}${release}${shared_ext}$major'
9021  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9022  shlibpath_var=LD_LIBRARY_PATH
9023  shlibpath_overrides_runpath=no
9024  hardcode_into_libs=yes
9025  ;;
9026
9027irix5* | irix6* | nonstopux*)
9028  case $host_os in
9029    nonstopux*) version_type=nonstopux ;;
9030    *)
9031	if test "$lt_cv_prog_gnu_ld" = yes; then
9032		version_type=linux
9033	else
9034		version_type=irix
9035	fi ;;
9036  esac
9037  need_lib_prefix=no
9038  need_version=no
9039  soname_spec='${libname}${release}${shared_ext}$major'
9040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9041  case $host_os in
9042  irix5* | nonstopux*)
9043    libsuff= shlibsuff=
9044    ;;
9045  *)
9046    case $LD in # libtool.m4 will add one of these switches to LD
9047    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9048      libsuff= shlibsuff= libmagic=32-bit;;
9049    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9050      libsuff=32 shlibsuff=N32 libmagic=N32;;
9051    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9052      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9053    *) libsuff= shlibsuff= libmagic=never-match;;
9054    esac
9055    ;;
9056  esac
9057  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9058  shlibpath_overrides_runpath=no
9059  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9060  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9061  hardcode_into_libs=yes
9062  ;;
9063
9064# No shared lib support for Linux oldld, aout, or coff.
9065linux*oldld* | linux*aout* | linux*coff*)
9066  dynamic_linker=no
9067  ;;
9068
9069# This must be Linux ELF.
9070linux*)
9071  version_type=linux
9072  need_lib_prefix=no
9073  need_version=no
9074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075  soname_spec='${libname}${release}${shared_ext}$major'
9076  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9077  shlibpath_var=LD_LIBRARY_PATH
9078  shlibpath_overrides_runpath=no
9079  # This implies no fast_install, which is unacceptable.
9080  # Some rework will be needed to allow for fast_install
9081  # before this can be enabled.
9082  hardcode_into_libs=yes
9083
9084  # find out which ABI we are using
9085  libsuff=
9086  case "$host_cpu" in
9087  x86_64*|s390x*|powerpc64*)
9088    echo '#line 9088 "configure"' > conftest.$ac_ext
9089    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9090  (eval $ac_compile) 2>&5
9091  ac_status=$?
9092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093  (exit $ac_status); }; then
9094      case `/usr/bin/file conftest.$ac_objext` in
9095      *64-bit*)
9096        libsuff=64
9097        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9098        ;;
9099      esac
9100    fi
9101    rm -rf conftest*
9102    ;;
9103  esac
9104
9105  # Append ld.so.conf contents to the search path
9106  if test -f /etc/ld.so.conf; then
9107    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' ' '`
9108    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9109  fi
9110
9111  # We used to test for /lib/ld.so.1 and disable shared libraries on
9112  # powerpc, because MkLinux only supported shared libraries with the
9113  # GNU dynamic linker.  Since this was broken with cross compilers,
9114  # most powerpc-linux boxes support dynamic linking these days and
9115  # people can always --disable-shared, the test was removed, and we
9116  # assume the GNU/Linux dynamic linker is in use.
9117  dynamic_linker='GNU/Linux ld.so'
9118  ;;
9119
9120knetbsd*-gnu)
9121  version_type=linux
9122  need_lib_prefix=no
9123  need_version=no
9124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9125  soname_spec='${libname}${release}${shared_ext}$major'
9126  shlibpath_var=LD_LIBRARY_PATH
9127  shlibpath_overrides_runpath=no
9128  hardcode_into_libs=yes
9129  dynamic_linker='GNU ld.so'
9130  ;;
9131
9132netbsd*)
9133  version_type=sunos
9134  need_lib_prefix=no
9135  need_version=no
9136  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9137    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9138    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9139    dynamic_linker='NetBSD (a.out) ld.so'
9140  else
9141    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9142    soname_spec='${libname}${release}${shared_ext}$major'
9143    dynamic_linker='NetBSD ld.elf_so'
9144  fi
9145  shlibpath_var=LD_LIBRARY_PATH
9146  shlibpath_overrides_runpath=yes
9147  hardcode_into_libs=yes
9148  ;;
9149
9150newsos6)
9151  version_type=linux
9152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153  shlibpath_var=LD_LIBRARY_PATH
9154  shlibpath_overrides_runpath=yes
9155  ;;
9156
9157nto-qnx*)
9158  version_type=linux
9159  need_lib_prefix=no
9160  need_version=no
9161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162  soname_spec='${libname}${release}${shared_ext}$major'
9163  shlibpath_var=LD_LIBRARY_PATH
9164  shlibpath_overrides_runpath=yes
9165  ;;
9166
9167openbsd*)
9168  version_type=sunos
9169  sys_lib_dlsearch_path_spec="/usr/lib"
9170  need_lib_prefix=no
9171  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9172  case $host_os in
9173    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9174    *)                         need_version=no  ;;
9175  esac
9176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9177  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9178  shlibpath_var=LD_LIBRARY_PATH
9179  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9180    case $host_os in
9181      openbsd2.[89] | openbsd2.[89].*)
9182	shlibpath_overrides_runpath=no
9183	;;
9184      *)
9185	shlibpath_overrides_runpath=yes
9186	;;
9187      esac
9188  else
9189    shlibpath_overrides_runpath=yes
9190  fi
9191  ;;
9192
9193os2*)
9194  libname_spec='$name'
9195  shrext_cmds=".dll"
9196  need_lib_prefix=no
9197  library_names_spec='$libname${shared_ext} $libname.a'
9198  dynamic_linker='OS/2 ld.exe'
9199  shlibpath_var=LIBPATH
9200  ;;
9201
9202osf3* | osf4* | osf5*)
9203  version_type=osf
9204  need_lib_prefix=no
9205  need_version=no
9206  soname_spec='${libname}${release}${shared_ext}$major'
9207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208  shlibpath_var=LD_LIBRARY_PATH
9209  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9210  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9211  ;;
9212
9213solaris*)
9214  version_type=linux
9215  need_lib_prefix=no
9216  need_version=no
9217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218  soname_spec='${libname}${release}${shared_ext}$major'
9219  shlibpath_var=LD_LIBRARY_PATH
9220  shlibpath_overrides_runpath=yes
9221  hardcode_into_libs=yes
9222  # ldd complains unless libraries are executable
9223  postinstall_cmds='chmod +x $lib'
9224  ;;
9225
9226sunos4*)
9227  version_type=sunos
9228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9229  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9230  shlibpath_var=LD_LIBRARY_PATH
9231  shlibpath_overrides_runpath=yes
9232  if test "$with_gnu_ld" = yes; then
9233    need_lib_prefix=no
9234  fi
9235  need_version=yes
9236  ;;
9237
9238sysv4 | sysv4.3*)
9239  version_type=linux
9240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241  soname_spec='${libname}${release}${shared_ext}$major'
9242  shlibpath_var=LD_LIBRARY_PATH
9243  case $host_vendor in
9244    sni)
9245      shlibpath_overrides_runpath=no
9246      need_lib_prefix=no
9247      export_dynamic_flag_spec='${wl}-Blargedynsym'
9248      runpath_var=LD_RUN_PATH
9249      ;;
9250    siemens)
9251      need_lib_prefix=no
9252      ;;
9253    motorola)
9254      need_lib_prefix=no
9255      need_version=no
9256      shlibpath_overrides_runpath=no
9257      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9258      ;;
9259  esac
9260  ;;
9261
9262sysv4*MP*)
9263  if test -d /usr/nec ;then
9264    version_type=linux
9265    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9266    soname_spec='$libname${shared_ext}.$major'
9267    shlibpath_var=LD_LIBRARY_PATH
9268  fi
9269  ;;
9270
9271sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9272  version_type=freebsd-elf
9273  need_lib_prefix=no
9274  need_version=no
9275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9276  soname_spec='${libname}${release}${shared_ext}$major'
9277  shlibpath_var=LD_LIBRARY_PATH
9278  hardcode_into_libs=yes
9279  if test "$with_gnu_ld" = yes; then
9280    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9281    shlibpath_overrides_runpath=no
9282  else
9283    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9284    shlibpath_overrides_runpath=yes
9285    case $host_os in
9286      sco3.2v5*)
9287        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9288	;;
9289    esac
9290  fi
9291  sys_lib_dlsearch_path_spec='/usr/lib'
9292  ;;
9293
9294uts4*)
9295  version_type=linux
9296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297  soname_spec='${libname}${release}${shared_ext}$major'
9298  shlibpath_var=LD_LIBRARY_PATH
9299  ;;
9300
9301*)
9302  dynamic_linker=no
9303  ;;
9304esac
9305echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9306echo "${ECHO_T}$dynamic_linker" >&6
9307test "$dynamic_linker" = no && can_build_shared=no
9308
9309variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9310if test "$GCC" = yes; then
9311  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9312fi
9313
9314echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9315echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9316hardcode_action=
9317if test -n "$hardcode_libdir_flag_spec" || \
9318   test -n "$runpath_var" || \
9319   test "X$hardcode_automatic" = "Xyes" ; then
9320
9321  # We can hardcode non-existant directories.
9322  if test "$hardcode_direct" != no &&
9323     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9324     # have to relink, otherwise we might link with an installed library
9325     # when we should be linking with a yet-to-be-installed one
9326     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9327     test "$hardcode_minus_L" != no; then
9328    # Linking always hardcodes the temporary library directory.
9329    hardcode_action=relink
9330  else
9331    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9332    hardcode_action=immediate
9333  fi
9334else
9335  # We cannot hardcode anything, or else we can only hardcode existing
9336  # directories.
9337  hardcode_action=unsupported
9338fi
9339echo "$as_me:$LINENO: result: $hardcode_action" >&5
9340echo "${ECHO_T}$hardcode_action" >&6
9341
9342if test "$hardcode_action" = relink; then
9343  # Fast installation is not supported
9344  enable_fast_install=no
9345elif test "$shlibpath_overrides_runpath" = yes ||
9346     test "$enable_shared" = no; then
9347  # Fast installation is not necessary
9348  enable_fast_install=needless
9349fi
9350
9351striplib=
9352old_striplib=
9353echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9354echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9355if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9356  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9357  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9358  echo "$as_me:$LINENO: result: yes" >&5
9359echo "${ECHO_T}yes" >&6
9360else
9361# FIXME - insert some real tests, host_os isn't really good enough
9362  case $host_os in
9363   darwin*)
9364       if test -n "$STRIP" ; then
9365         striplib="$STRIP -x"
9366         echo "$as_me:$LINENO: result: yes" >&5
9367echo "${ECHO_T}yes" >&6
9368       else
9369  echo "$as_me:$LINENO: result: no" >&5
9370echo "${ECHO_T}no" >&6
9371fi
9372       ;;
9373   *)
9374  echo "$as_me:$LINENO: result: no" >&5
9375echo "${ECHO_T}no" >&6
9376    ;;
9377  esac
9378fi
9379
9380if test "x$enable_dlopen" != xyes; then
9381  enable_dlopen=unknown
9382  enable_dlopen_self=unknown
9383  enable_dlopen_self_static=unknown
9384else
9385  lt_cv_dlopen=no
9386  lt_cv_dlopen_libs=
9387
9388  case $host_os in
9389  beos*)
9390    lt_cv_dlopen="load_add_on"
9391    lt_cv_dlopen_libs=
9392    lt_cv_dlopen_self=yes
9393    ;;
9394
9395  mingw* | pw32*)
9396    lt_cv_dlopen="LoadLibrary"
9397    lt_cv_dlopen_libs=
9398   ;;
9399
9400  cygwin*)
9401    lt_cv_dlopen="dlopen"
9402    lt_cv_dlopen_libs=
9403   ;;
9404
9405  darwin*)
9406  # if libdl is installed we need to link against it
9407    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9408echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9409if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9410  echo $ECHO_N "(cached) $ECHO_C" >&6
9411else
9412  ac_check_lib_save_LIBS=$LIBS
9413LIBS="-ldl  $LIBS"
9414cat >conftest.$ac_ext <<_ACEOF
9415/* confdefs.h.  */
9416_ACEOF
9417cat confdefs.h >>conftest.$ac_ext
9418cat >>conftest.$ac_ext <<_ACEOF
9419/* end confdefs.h.  */
9420
9421/* Override any gcc2 internal prototype to avoid an error.  */
9422#ifdef __cplusplus
9423extern "C"
9424#endif
9425/* We use char because int might match the return type of a gcc2
9426   builtin and then its argument prototype would still apply.  */
9427char dlopen ();
9428int
9429main ()
9430{
9431dlopen ();
9432  ;
9433  return 0;
9434}
9435_ACEOF
9436rm -f conftest.$ac_objext conftest$ac_exeext
9437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438  (eval $ac_link) 2>conftest.er1
9439  ac_status=$?
9440  grep -v '^ *+' conftest.er1 >conftest.err
9441  rm -f conftest.er1
9442  cat conftest.err >&5
9443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444  (exit $ac_status); } &&
9445	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447  (eval $ac_try) 2>&5
9448  ac_status=$?
9449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450  (exit $ac_status); }; } &&
9451	 { ac_try='test -s conftest$ac_exeext'
9452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453  (eval $ac_try) 2>&5
9454  ac_status=$?
9455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456  (exit $ac_status); }; }; then
9457  ac_cv_lib_dl_dlopen=yes
9458else
9459  echo "$as_me: failed program was:" >&5
9460sed 's/^/| /' conftest.$ac_ext >&5
9461
9462ac_cv_lib_dl_dlopen=no
9463fi
9464rm -f conftest.err conftest.$ac_objext \
9465      conftest$ac_exeext conftest.$ac_ext
9466LIBS=$ac_check_lib_save_LIBS
9467fi
9468echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9469echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9470if test $ac_cv_lib_dl_dlopen = yes; then
9471  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9472else
9473
9474    lt_cv_dlopen="dyld"
9475    lt_cv_dlopen_libs=
9476    lt_cv_dlopen_self=yes
9477
9478fi
9479
9480   ;;
9481
9482  *)
9483    echo "$as_me:$LINENO: checking for shl_load" >&5
9484echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9485if test "${ac_cv_func_shl_load+set}" = set; then
9486  echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488  cat >conftest.$ac_ext <<_ACEOF
9489/* confdefs.h.  */
9490_ACEOF
9491cat confdefs.h >>conftest.$ac_ext
9492cat >>conftest.$ac_ext <<_ACEOF
9493/* end confdefs.h.  */
9494/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9495   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9496#define shl_load innocuous_shl_load
9497
9498/* System header to define __stub macros and hopefully few prototypes,
9499    which can conflict with char shl_load (); below.
9500    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501    <limits.h> exists even on freestanding compilers.  */
9502
9503#ifdef __STDC__
9504# include <limits.h>
9505#else
9506# include <assert.h>
9507#endif
9508
9509#undef shl_load
9510
9511/* Override any gcc2 internal prototype to avoid an error.  */
9512#ifdef __cplusplus
9513extern "C"
9514{
9515#endif
9516/* We use char because int might match the return type of a gcc2
9517   builtin and then its argument prototype would still apply.  */
9518char shl_load ();
9519/* The GNU C library defines this for functions which it implements
9520    to always fail with ENOSYS.  Some functions are actually named
9521    something starting with __ and the normal name is an alias.  */
9522#if defined (__stub_shl_load) || defined (__stub___shl_load)
9523choke me
9524#else
9525char (*f) () = shl_load;
9526#endif
9527#ifdef __cplusplus
9528}
9529#endif
9530
9531int
9532main ()
9533{
9534return f != shl_load;
9535  ;
9536  return 0;
9537}
9538_ACEOF
9539rm -f conftest.$ac_objext conftest$ac_exeext
9540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9541  (eval $ac_link) 2>conftest.er1
9542  ac_status=$?
9543  grep -v '^ *+' conftest.er1 >conftest.err
9544  rm -f conftest.er1
9545  cat conftest.err >&5
9546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547  (exit $ac_status); } &&
9548	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550  (eval $ac_try) 2>&5
9551  ac_status=$?
9552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553  (exit $ac_status); }; } &&
9554	 { ac_try='test -s conftest$ac_exeext'
9555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556  (eval $ac_try) 2>&5
9557  ac_status=$?
9558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559  (exit $ac_status); }; }; then
9560  ac_cv_func_shl_load=yes
9561else
9562  echo "$as_me: failed program was:" >&5
9563sed 's/^/| /' conftest.$ac_ext >&5
9564
9565ac_cv_func_shl_load=no
9566fi
9567rm -f conftest.err conftest.$ac_objext \
9568      conftest$ac_exeext conftest.$ac_ext
9569fi
9570echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9571echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9572if test $ac_cv_func_shl_load = yes; then
9573  lt_cv_dlopen="shl_load"
9574else
9575  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9576echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9577if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9578  echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580  ac_check_lib_save_LIBS=$LIBS
9581LIBS="-ldld  $LIBS"
9582cat >conftest.$ac_ext <<_ACEOF
9583/* confdefs.h.  */
9584_ACEOF
9585cat confdefs.h >>conftest.$ac_ext
9586cat >>conftest.$ac_ext <<_ACEOF
9587/* end confdefs.h.  */
9588
9589/* Override any gcc2 internal prototype to avoid an error.  */
9590#ifdef __cplusplus
9591extern "C"
9592#endif
9593/* We use char because int might match the return type of a gcc2
9594   builtin and then its argument prototype would still apply.  */
9595char shl_load ();
9596int
9597main ()
9598{
9599shl_load ();
9600  ;
9601  return 0;
9602}
9603_ACEOF
9604rm -f conftest.$ac_objext conftest$ac_exeext
9605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606  (eval $ac_link) 2>conftest.er1
9607  ac_status=$?
9608  grep -v '^ *+' conftest.er1 >conftest.err
9609  rm -f conftest.er1
9610  cat conftest.err >&5
9611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612  (exit $ac_status); } &&
9613	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615  (eval $ac_try) 2>&5
9616  ac_status=$?
9617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618  (exit $ac_status); }; } &&
9619	 { ac_try='test -s conftest$ac_exeext'
9620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621  (eval $ac_try) 2>&5
9622  ac_status=$?
9623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624  (exit $ac_status); }; }; then
9625  ac_cv_lib_dld_shl_load=yes
9626else
9627  echo "$as_me: failed program was:" >&5
9628sed 's/^/| /' conftest.$ac_ext >&5
9629
9630ac_cv_lib_dld_shl_load=no
9631fi
9632rm -f conftest.err conftest.$ac_objext \
9633      conftest$ac_exeext conftest.$ac_ext
9634LIBS=$ac_check_lib_save_LIBS
9635fi
9636echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9637echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9638if test $ac_cv_lib_dld_shl_load = yes; then
9639  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9640else
9641  echo "$as_me:$LINENO: checking for dlopen" >&5
9642echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9643if test "${ac_cv_func_dlopen+set}" = set; then
9644  echo $ECHO_N "(cached) $ECHO_C" >&6
9645else
9646  cat >conftest.$ac_ext <<_ACEOF
9647/* confdefs.h.  */
9648_ACEOF
9649cat confdefs.h >>conftest.$ac_ext
9650cat >>conftest.$ac_ext <<_ACEOF
9651/* end confdefs.h.  */
9652/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9653   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9654#define dlopen innocuous_dlopen
9655
9656/* System header to define __stub macros and hopefully few prototypes,
9657    which can conflict with char dlopen (); below.
9658    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9659    <limits.h> exists even on freestanding compilers.  */
9660
9661#ifdef __STDC__
9662# include <limits.h>
9663#else
9664# include <assert.h>
9665#endif
9666
9667#undef dlopen
9668
9669/* Override any gcc2 internal prototype to avoid an error.  */
9670#ifdef __cplusplus
9671extern "C"
9672{
9673#endif
9674/* We use char because int might match the return type of a gcc2
9675   builtin and then its argument prototype would still apply.  */
9676char dlopen ();
9677/* The GNU C library defines this for functions which it implements
9678    to always fail with ENOSYS.  Some functions are actually named
9679    something starting with __ and the normal name is an alias.  */
9680#if defined (__stub_dlopen) || defined (__stub___dlopen)
9681choke me
9682#else
9683char (*f) () = dlopen;
9684#endif
9685#ifdef __cplusplus
9686}
9687#endif
9688
9689int
9690main ()
9691{
9692return f != dlopen;
9693  ;
9694  return 0;
9695}
9696_ACEOF
9697rm -f conftest.$ac_objext conftest$ac_exeext
9698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9699  (eval $ac_link) 2>conftest.er1
9700  ac_status=$?
9701  grep -v '^ *+' conftest.er1 >conftest.err
9702  rm -f conftest.er1
9703  cat conftest.err >&5
9704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705  (exit $ac_status); } &&
9706	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708  (eval $ac_try) 2>&5
9709  ac_status=$?
9710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711  (exit $ac_status); }; } &&
9712	 { ac_try='test -s conftest$ac_exeext'
9713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714  (eval $ac_try) 2>&5
9715  ac_status=$?
9716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717  (exit $ac_status); }; }; then
9718  ac_cv_func_dlopen=yes
9719else
9720  echo "$as_me: failed program was:" >&5
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
9723ac_cv_func_dlopen=no
9724fi
9725rm -f conftest.err conftest.$ac_objext \
9726      conftest$ac_exeext conftest.$ac_ext
9727fi
9728echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9729echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9730if test $ac_cv_func_dlopen = yes; then
9731  lt_cv_dlopen="dlopen"
9732else
9733  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9734echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9735if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9736  echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738  ac_check_lib_save_LIBS=$LIBS
9739LIBS="-ldl  $LIBS"
9740cat >conftest.$ac_ext <<_ACEOF
9741/* confdefs.h.  */
9742_ACEOF
9743cat confdefs.h >>conftest.$ac_ext
9744cat >>conftest.$ac_ext <<_ACEOF
9745/* end confdefs.h.  */
9746
9747/* Override any gcc2 internal prototype to avoid an error.  */
9748#ifdef __cplusplus
9749extern "C"
9750#endif
9751/* We use char because int might match the return type of a gcc2
9752   builtin and then its argument prototype would still apply.  */
9753char dlopen ();
9754int
9755main ()
9756{
9757dlopen ();
9758  ;
9759  return 0;
9760}
9761_ACEOF
9762rm -f conftest.$ac_objext conftest$ac_exeext
9763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764  (eval $ac_link) 2>conftest.er1
9765  ac_status=$?
9766  grep -v '^ *+' conftest.er1 >conftest.err
9767  rm -f conftest.er1
9768  cat conftest.err >&5
9769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770  (exit $ac_status); } &&
9771	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773  (eval $ac_try) 2>&5
9774  ac_status=$?
9775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776  (exit $ac_status); }; } &&
9777	 { ac_try='test -s conftest$ac_exeext'
9778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779  (eval $ac_try) 2>&5
9780  ac_status=$?
9781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782  (exit $ac_status); }; }; then
9783  ac_cv_lib_dl_dlopen=yes
9784else
9785  echo "$as_me: failed program was:" >&5
9786sed 's/^/| /' conftest.$ac_ext >&5
9787
9788ac_cv_lib_dl_dlopen=no
9789fi
9790rm -f conftest.err conftest.$ac_objext \
9791      conftest$ac_exeext conftest.$ac_ext
9792LIBS=$ac_check_lib_save_LIBS
9793fi
9794echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9795echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9796if test $ac_cv_lib_dl_dlopen = yes; then
9797  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9798else
9799  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9800echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9801if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9802  echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804  ac_check_lib_save_LIBS=$LIBS
9805LIBS="-lsvld  $LIBS"
9806cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h.  */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h.  */
9812
9813/* Override any gcc2 internal prototype to avoid an error.  */
9814#ifdef __cplusplus
9815extern "C"
9816#endif
9817/* We use char because int might match the return type of a gcc2
9818   builtin and then its argument prototype would still apply.  */
9819char dlopen ();
9820int
9821main ()
9822{
9823dlopen ();
9824  ;
9825  return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext conftest$ac_exeext
9829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830  (eval $ac_link) 2>conftest.er1
9831  ac_status=$?
9832  grep -v '^ *+' conftest.er1 >conftest.err
9833  rm -f conftest.er1
9834  cat conftest.err >&5
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); } &&
9837	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839  (eval $ac_try) 2>&5
9840  ac_status=$?
9841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842  (exit $ac_status); }; } &&
9843	 { ac_try='test -s conftest$ac_exeext'
9844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845  (eval $ac_try) 2>&5
9846  ac_status=$?
9847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848  (exit $ac_status); }; }; then
9849  ac_cv_lib_svld_dlopen=yes
9850else
9851  echo "$as_me: failed program was:" >&5
9852sed 's/^/| /' conftest.$ac_ext >&5
9853
9854ac_cv_lib_svld_dlopen=no
9855fi
9856rm -f conftest.err conftest.$ac_objext \
9857      conftest$ac_exeext conftest.$ac_ext
9858LIBS=$ac_check_lib_save_LIBS
9859fi
9860echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9861echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9862if test $ac_cv_lib_svld_dlopen = yes; then
9863  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9864else
9865  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9866echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9867if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9868  echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870  ac_check_lib_save_LIBS=$LIBS
9871LIBS="-ldld  $LIBS"
9872cat >conftest.$ac_ext <<_ACEOF
9873/* confdefs.h.  */
9874_ACEOF
9875cat confdefs.h >>conftest.$ac_ext
9876cat >>conftest.$ac_ext <<_ACEOF
9877/* end confdefs.h.  */
9878
9879/* Override any gcc2 internal prototype to avoid an error.  */
9880#ifdef __cplusplus
9881extern "C"
9882#endif
9883/* We use char because int might match the return type of a gcc2
9884   builtin and then its argument prototype would still apply.  */
9885char dld_link ();
9886int
9887main ()
9888{
9889dld_link ();
9890  ;
9891  return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext conftest$ac_exeext
9895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896  (eval $ac_link) 2>conftest.er1
9897  ac_status=$?
9898  grep -v '^ *+' conftest.er1 >conftest.err
9899  rm -f conftest.er1
9900  cat conftest.err >&5
9901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902  (exit $ac_status); } &&
9903	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905  (eval $ac_try) 2>&5
9906  ac_status=$?
9907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908  (exit $ac_status); }; } &&
9909	 { ac_try='test -s conftest$ac_exeext'
9910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911  (eval $ac_try) 2>&5
9912  ac_status=$?
9913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914  (exit $ac_status); }; }; then
9915  ac_cv_lib_dld_dld_link=yes
9916else
9917  echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
9919
9920ac_cv_lib_dld_dld_link=no
9921fi
9922rm -f conftest.err conftest.$ac_objext \
9923      conftest$ac_exeext conftest.$ac_ext
9924LIBS=$ac_check_lib_save_LIBS
9925fi
9926echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9927echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9928if test $ac_cv_lib_dld_dld_link = yes; then
9929  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9930fi
9931
9932
9933fi
9934
9935
9936fi
9937
9938
9939fi
9940
9941
9942fi
9943
9944
9945fi
9946
9947    ;;
9948  esac
9949
9950  if test "x$lt_cv_dlopen" != xno; then
9951    enable_dlopen=yes
9952  else
9953    enable_dlopen=no
9954  fi
9955
9956  case $lt_cv_dlopen in
9957  dlopen)
9958    save_CPPFLAGS="$CPPFLAGS"
9959    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9960
9961    save_LDFLAGS="$LDFLAGS"
9962    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9963
9964    save_LIBS="$LIBS"
9965    LIBS="$lt_cv_dlopen_libs $LIBS"
9966
9967    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9968echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9969if test "${lt_cv_dlopen_self+set}" = set; then
9970  echo $ECHO_N "(cached) $ECHO_C" >&6
9971else
9972  	  if test "$cross_compiling" = yes; then :
9973  lt_cv_dlopen_self=cross
9974else
9975  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9976  lt_status=$lt_dlunknown
9977  cat > conftest.$ac_ext <<EOF
9978#line 9978 "configure"
9979#include "confdefs.h"
9980
9981#if HAVE_DLFCN_H
9982#include <dlfcn.h>
9983#endif
9984
9985#include <stdio.h>
9986
9987#ifdef RTLD_GLOBAL
9988#  define LT_DLGLOBAL		RTLD_GLOBAL
9989#else
9990#  ifdef DL_GLOBAL
9991#    define LT_DLGLOBAL		DL_GLOBAL
9992#  else
9993#    define LT_DLGLOBAL		0
9994#  endif
9995#endif
9996
9997/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9998   find out it does not work in some platform. */
9999#ifndef LT_DLLAZY_OR_NOW
10000#  ifdef RTLD_LAZY
10001#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10002#  else
10003#    ifdef DL_LAZY
10004#      define LT_DLLAZY_OR_NOW		DL_LAZY
10005#    else
10006#      ifdef RTLD_NOW
10007#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10008#      else
10009#        ifdef DL_NOW
10010#          define LT_DLLAZY_OR_NOW	DL_NOW
10011#        else
10012#          define LT_DLLAZY_OR_NOW	0
10013#        endif
10014#      endif
10015#    endif
10016#  endif
10017#endif
10018
10019#ifdef __cplusplus
10020extern "C" void exit (int);
10021#endif
10022
10023void fnord() { int i=42;}
10024int main ()
10025{
10026  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10027  int status = $lt_dlunknown;
10028
10029  if (self)
10030    {
10031      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10032      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10033      /* dlclose (self); */
10034    }
10035  else
10036    puts (dlerror ());
10037
10038    exit (status);
10039}
10040EOF
10041  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042  (eval $ac_link) 2>&5
10043  ac_status=$?
10044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10046    (./conftest; exit; ) >&5 2>/dev/null
10047    lt_status=$?
10048    case x$lt_status in
10049      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10050      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10051      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10052    esac
10053  else :
10054    # compilation failed
10055    lt_cv_dlopen_self=no
10056  fi
10057fi
10058rm -fr conftest*
10059
10060
10061fi
10062echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10063echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10064
10065    if test "x$lt_cv_dlopen_self" = xyes; then
10066      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10067      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10068echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10069if test "${lt_cv_dlopen_self_static+set}" = set; then
10070  echo $ECHO_N "(cached) $ECHO_C" >&6
10071else
10072  	  if test "$cross_compiling" = yes; then :
10073  lt_cv_dlopen_self_static=cross
10074else
10075  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10076  lt_status=$lt_dlunknown
10077  cat > conftest.$ac_ext <<EOF
10078#line 10078 "configure"
10079#include "confdefs.h"
10080
10081#if HAVE_DLFCN_H
10082#include <dlfcn.h>
10083#endif
10084
10085#include <stdio.h>
10086
10087#ifdef RTLD_GLOBAL
10088#  define LT_DLGLOBAL		RTLD_GLOBAL
10089#else
10090#  ifdef DL_GLOBAL
10091#    define LT_DLGLOBAL		DL_GLOBAL
10092#  else
10093#    define LT_DLGLOBAL		0
10094#  endif
10095#endif
10096
10097/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10098   find out it does not work in some platform. */
10099#ifndef LT_DLLAZY_OR_NOW
10100#  ifdef RTLD_LAZY
10101#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10102#  else
10103#    ifdef DL_LAZY
10104#      define LT_DLLAZY_OR_NOW		DL_LAZY
10105#    else
10106#      ifdef RTLD_NOW
10107#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10108#      else
10109#        ifdef DL_NOW
10110#          define LT_DLLAZY_OR_NOW	DL_NOW
10111#        else
10112#          define LT_DLLAZY_OR_NOW	0
10113#        endif
10114#      endif
10115#    endif
10116#  endif
10117#endif
10118
10119#ifdef __cplusplus
10120extern "C" void exit (int);
10121#endif
10122
10123void fnord() { int i=42;}
10124int main ()
10125{
10126  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10127  int status = $lt_dlunknown;
10128
10129  if (self)
10130    {
10131      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10132      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10133      /* dlclose (self); */
10134    }
10135  else
10136    puts (dlerror ());
10137
10138    exit (status);
10139}
10140EOF
10141  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142  (eval $ac_link) 2>&5
10143  ac_status=$?
10144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10146    (./conftest; exit; ) >&5 2>/dev/null
10147    lt_status=$?
10148    case x$lt_status in
10149      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10150      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10151      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10152    esac
10153  else :
10154    # compilation failed
10155    lt_cv_dlopen_self_static=no
10156  fi
10157fi
10158rm -fr conftest*
10159
10160
10161fi
10162echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10163echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10164    fi
10165
10166    CPPFLAGS="$save_CPPFLAGS"
10167    LDFLAGS="$save_LDFLAGS"
10168    LIBS="$save_LIBS"
10169    ;;
10170  esac
10171
10172  case $lt_cv_dlopen_self in
10173  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10174  *) enable_dlopen_self=unknown ;;
10175  esac
10176
10177  case $lt_cv_dlopen_self_static in
10178  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10179  *) enable_dlopen_self_static=unknown ;;
10180  esac
10181fi
10182
10183
10184# Report which library types will actually be built
10185echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10186echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10187echo "$as_me:$LINENO: result: $can_build_shared" >&5
10188echo "${ECHO_T}$can_build_shared" >&6
10189
10190echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10191echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10192test "$can_build_shared" = "no" && enable_shared=no
10193
10194# On AIX, shared libraries and static libraries use the same namespace, and
10195# are all built from PIC.
10196case $host_os in
10197aix3*)
10198  test "$enable_shared" = yes && enable_static=no
10199  if test -n "$RANLIB"; then
10200    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10201    postinstall_cmds='$RANLIB $lib'
10202  fi
10203  ;;
10204
10205aix4* | aix5*)
10206  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10207    test "$enable_shared" = yes && enable_static=no
10208  fi
10209    ;;
10210esac
10211echo "$as_me:$LINENO: result: $enable_shared" >&5
10212echo "${ECHO_T}$enable_shared" >&6
10213
10214echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10215echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10216# Make sure either enable_shared or enable_static is yes.
10217test "$enable_shared" = yes || enable_static=yes
10218echo "$as_me:$LINENO: result: $enable_static" >&5
10219echo "${ECHO_T}$enable_static" >&6
10220
10221# The else clause should only fire when bootstrapping the
10222# libtool distribution, otherwise you forgot to ship ltmain.sh
10223# with your package, and you will get complaints that there are
10224# no rules to generate ltmain.sh.
10225if test -f "$ltmain"; then
10226  # See if we are running on zsh, and set the options which allow our commands through
10227  # without removal of \ escapes.
10228  if test -n "${ZSH_VERSION+set}" ; then
10229    setopt NO_GLOB_SUBST
10230  fi
10231  # Now quote all the things that may contain metacharacters while being
10232  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10233  # variables and quote the copies for generation of the libtool script.
10234  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10235    SED SHELL STRIP \
10236    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10237    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10238    deplibs_check_method reload_flag reload_cmds need_locks \
10239    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10240    lt_cv_sys_global_symbol_to_c_name_address \
10241    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10242    old_postinstall_cmds old_postuninstall_cmds \
10243    compiler \
10244    CC \
10245    LD \
10246    lt_prog_compiler_wl \
10247    lt_prog_compiler_pic \
10248    lt_prog_compiler_static \
10249    lt_prog_compiler_no_builtin_flag \
10250    export_dynamic_flag_spec \
10251    thread_safe_flag_spec \
10252    whole_archive_flag_spec \
10253    enable_shared_with_static_runtimes \
10254    old_archive_cmds \
10255    old_archive_from_new_cmds \
10256    predep_objects \
10257    postdep_objects \
10258    predeps \
10259    postdeps \
10260    compiler_lib_search_path \
10261    archive_cmds \
10262    archive_expsym_cmds \
10263    postinstall_cmds \
10264    postuninstall_cmds \
10265    old_archive_from_expsyms_cmds \
10266    allow_undefined_flag \
10267    no_undefined_flag \
10268    export_symbols_cmds \
10269    hardcode_libdir_flag_spec \
10270    hardcode_libdir_flag_spec_ld \
10271    hardcode_libdir_separator \
10272    hardcode_automatic \
10273    module_cmds \
10274    module_expsym_cmds \
10275    lt_cv_prog_compiler_c_o \
10276    exclude_expsyms \
10277    include_expsyms; do
10278
10279    case $var in
10280    old_archive_cmds | \
10281    old_archive_from_new_cmds | \
10282    archive_cmds | \
10283    archive_expsym_cmds | \
10284    module_cmds | \
10285    module_expsym_cmds | \
10286    old_archive_from_expsyms_cmds | \
10287    export_symbols_cmds | \
10288    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10289    postinstall_cmds | postuninstall_cmds | \
10290    old_postinstall_cmds | old_postuninstall_cmds | \
10291    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10292      # Double-quote double-evaled strings.
10293      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10294      ;;
10295    *)
10296      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10297      ;;
10298    esac
10299  done
10300
10301  case $lt_echo in
10302  *'\$0 --fallback-echo"')
10303    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10304    ;;
10305  esac
10306
10307cfgfile="${ofile}T"
10308  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10309  $rm -f "$cfgfile"
10310  { echo "$as_me:$LINENO: creating $ofile" >&5
10311echo "$as_me: creating $ofile" >&6;}
10312
10313  cat <<__EOF__ >> "$cfgfile"
10314#! $SHELL
10315
10316# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10317# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10318# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10319#
10320# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10321# Free Software Foundation, Inc.
10322#
10323# This file is part of GNU Libtool:
10324# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10325#
10326# This program is free software; you can redistribute it and/or modify
10327# it under the terms of the GNU General Public License as published by
10328# the Free Software Foundation; either version 2 of the License, or
10329# (at your option) any later version.
10330#
10331# This program is distributed in the hope that it will be useful, but
10332# WITHOUT ANY WARRANTY; without even the implied warranty of
10333# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10334# General Public License for more details.
10335#
10336# You should have received a copy of the GNU General Public License
10337# along with this program; if not, write to the Free Software
10338# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10339#
10340# As a special exception to the GNU General Public License, if you
10341# distribute this file as part of a program that contains a
10342# configuration script generated by Autoconf, you may include it under
10343# the same distribution terms that you use for the rest of that program.
10344
10345# A sed program that does not truncate output.
10346SED=$lt_SED
10347
10348# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10349Xsed="$SED -e 1s/^X//"
10350
10351# The HP-UX ksh and POSIX shell print the target directory to stdout
10352# if CDPATH is set.
10353(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10354
10355# The names of the tagged configurations supported by this script.
10356available_tags=
10357
10358# ### BEGIN LIBTOOL CONFIG
10359
10360# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10361
10362# Shell to use when invoking shell scripts.
10363SHELL=$lt_SHELL
10364
10365# Whether or not to build shared libraries.
10366build_libtool_libs=$enable_shared
10367
10368# Whether or not to build static libraries.
10369build_old_libs=$enable_static
10370
10371# Whether or not to add -lc for building shared libraries.
10372build_libtool_need_lc=$archive_cmds_need_lc
10373
10374# Whether or not to disallow shared libs when runtime libs are static
10375allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10376
10377# Whether or not to optimize for fast installation.
10378fast_install=$enable_fast_install
10379
10380# The host system.
10381host_alias=$host_alias
10382host=$host
10383host_os=$host_os
10384
10385# The build system.
10386build_alias=$build_alias
10387build=$build
10388build_os=$build_os
10389
10390# An echo program that does not interpret backslashes.
10391echo=$lt_echo
10392
10393# The archiver.
10394AR=$lt_AR
10395AR_FLAGS=$lt_AR_FLAGS
10396
10397# A C compiler.
10398LTCC=$lt_LTCC
10399
10400# LTCC compiler flags.
10401LTCFLAGS=$lt_LTCFLAGS
10402
10403# A language-specific compiler.
10404CC=$lt_compiler
10405
10406# Is the compiler the GNU C compiler?
10407with_gcc=$GCC
10408
10409# An ERE matcher.
10410EGREP=$lt_EGREP
10411
10412# The linker used to build libraries.
10413LD=$lt_LD
10414
10415# Whether we need hard or soft links.
10416LN_S=$lt_LN_S
10417
10418# A BSD-compatible nm program.
10419NM=$lt_NM
10420
10421# A symbol stripping program
10422STRIP=$lt_STRIP
10423
10424# Used to examine libraries when file_magic_cmd begins "file"
10425MAGIC_CMD=$MAGIC_CMD
10426
10427# Used on cygwin: DLL creation program.
10428DLLTOOL="$DLLTOOL"
10429
10430# Used on cygwin: object dumper.
10431OBJDUMP="$OBJDUMP"
10432
10433# Used on cygwin: assembler.
10434AS="$AS"
10435
10436# The name of the directory that contains temporary libtool files.
10437objdir=$objdir
10438
10439# How to create reloadable object files.
10440reload_flag=$lt_reload_flag
10441reload_cmds=$lt_reload_cmds
10442
10443# How to pass a linker flag through the compiler.
10444wl=$lt_lt_prog_compiler_wl
10445
10446# Object file suffix (normally "o").
10447objext="$ac_objext"
10448
10449# Old archive suffix (normally "a").
10450libext="$libext"
10451
10452# Shared library suffix (normally ".so").
10453shrext_cmds='$shrext_cmds'
10454
10455# Executable file suffix (normally "").
10456exeext="$exeext"
10457
10458# Additional compiler flags for building library objects.
10459pic_flag=$lt_lt_prog_compiler_pic
10460pic_mode=$pic_mode
10461
10462# What is the maximum length of a command?
10463max_cmd_len=$lt_cv_sys_max_cmd_len
10464
10465# Does compiler simultaneously support -c and -o options?
10466compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10467
10468# Must we lock files when doing compilation?
10469need_locks=$lt_need_locks
10470
10471# Do we need the lib prefix for modules?
10472need_lib_prefix=$need_lib_prefix
10473
10474# Do we need a version for libraries?
10475need_version=$need_version
10476
10477# Whether dlopen is supported.
10478dlopen_support=$enable_dlopen
10479
10480# Whether dlopen of programs is supported.
10481dlopen_self=$enable_dlopen_self
10482
10483# Whether dlopen of statically linked programs is supported.
10484dlopen_self_static=$enable_dlopen_self_static
10485
10486# Compiler flag to prevent dynamic linking.
10487link_static_flag=$lt_lt_prog_compiler_static
10488
10489# Compiler flag to turn off builtin functions.
10490no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10491
10492# Compiler flag to allow reflexive dlopens.
10493export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10494
10495# Compiler flag to generate shared objects directly from archives.
10496whole_archive_flag_spec=$lt_whole_archive_flag_spec
10497
10498# Compiler flag to generate thread-safe objects.
10499thread_safe_flag_spec=$lt_thread_safe_flag_spec
10500
10501# Library versioning type.
10502version_type=$version_type
10503
10504# Format of library name prefix.
10505libname_spec=$lt_libname_spec
10506
10507# List of archive names.  First name is the real one, the rest are links.
10508# The last name is the one that the linker finds with -lNAME.
10509library_names_spec=$lt_library_names_spec
10510
10511# The coded name of the library, if different from the real name.
10512soname_spec=$lt_soname_spec
10513
10514# Commands used to build and install an old-style archive.
10515RANLIB=$lt_RANLIB
10516old_archive_cmds=$lt_old_archive_cmds
10517old_postinstall_cmds=$lt_old_postinstall_cmds
10518old_postuninstall_cmds=$lt_old_postuninstall_cmds
10519
10520# Create an old-style archive from a shared archive.
10521old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10522
10523# Create a temporary old-style archive to link instead of a shared archive.
10524old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10525
10526# Commands used to build and install a shared archive.
10527archive_cmds=$lt_archive_cmds
10528archive_expsym_cmds=$lt_archive_expsym_cmds
10529postinstall_cmds=$lt_postinstall_cmds
10530postuninstall_cmds=$lt_postuninstall_cmds
10531
10532# Commands used to build a loadable module (assumed same as above if empty)
10533module_cmds=$lt_module_cmds
10534module_expsym_cmds=$lt_module_expsym_cmds
10535
10536# Commands to strip libraries.
10537old_striplib=$lt_old_striplib
10538striplib=$lt_striplib
10539
10540# Dependencies to place before the objects being linked to create a
10541# shared library.
10542predep_objects=$lt_predep_objects
10543
10544# Dependencies to place after the objects being linked to create a
10545# shared library.
10546postdep_objects=$lt_postdep_objects
10547
10548# Dependencies to place before the objects being linked to create a
10549# shared library.
10550predeps=$lt_predeps
10551
10552# Dependencies to place after the objects being linked to create a
10553# shared library.
10554postdeps=$lt_postdeps
10555
10556# The library search path used internally by the compiler when linking
10557# a shared library.
10558compiler_lib_search_path=$lt_compiler_lib_search_path
10559
10560# Method to check whether dependent libraries are shared objects.
10561deplibs_check_method=$lt_deplibs_check_method
10562
10563# Command to use when deplibs_check_method == file_magic.
10564file_magic_cmd=$lt_file_magic_cmd
10565
10566# Flag that allows shared libraries with undefined symbols to be built.
10567allow_undefined_flag=$lt_allow_undefined_flag
10568
10569# Flag that forces no undefined symbols.
10570no_undefined_flag=$lt_no_undefined_flag
10571
10572# Commands used to finish a libtool library installation in a directory.
10573finish_cmds=$lt_finish_cmds
10574
10575# Same as above, but a single script fragment to be evaled but not shown.
10576finish_eval=$lt_finish_eval
10577
10578# Take the output of nm and produce a listing of raw symbols and C names.
10579global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10580
10581# Transform the output of nm in a proper C declaration
10582global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10583
10584# Transform the output of nm in a C name address pair
10585global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10586
10587# This is the shared library runtime path variable.
10588runpath_var=$runpath_var
10589
10590# This is the shared library path variable.
10591shlibpath_var=$shlibpath_var
10592
10593# Is shlibpath searched before the hard-coded library search path?
10594shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10595
10596# How to hardcode a shared library path into an executable.
10597hardcode_action=$hardcode_action
10598
10599# Whether we should hardcode library paths into libraries.
10600hardcode_into_libs=$hardcode_into_libs
10601
10602# Flag to hardcode \$libdir into a binary during linking.
10603# This must work even if \$libdir does not exist.
10604hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10605
10606# If ld is used when linking, flag to hardcode \$libdir into
10607# a binary during linking. This must work even if \$libdir does
10608# not exist.
10609hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10610
10611# Whether we need a single -rpath flag with a separated argument.
10612hardcode_libdir_separator=$lt_hardcode_libdir_separator
10613
10614# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10615# resulting binary.
10616hardcode_direct=$hardcode_direct
10617
10618# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10619# resulting binary.
10620hardcode_minus_L=$hardcode_minus_L
10621
10622# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10623# the resulting binary.
10624hardcode_shlibpath_var=$hardcode_shlibpath_var
10625
10626# Set to yes if building a shared library automatically hardcodes DIR into the library
10627# and all subsequent libraries and executables linked against it.
10628hardcode_automatic=$hardcode_automatic
10629
10630# Variables whose values should be saved in libtool wrapper scripts and
10631# restored at relink time.
10632variables_saved_for_relink="$variables_saved_for_relink"
10633
10634# Whether libtool must link a program against all its dependency libraries.
10635link_all_deplibs=$link_all_deplibs
10636
10637# Compile-time system search path for libraries
10638sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10639
10640# Run-time system search path for libraries
10641sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10642
10643# Fix the shell variable \$srcfile for the compiler.
10644fix_srcfile_path="$fix_srcfile_path"
10645
10646# Set to yes if exported symbols are required.
10647always_export_symbols=$always_export_symbols
10648
10649# The commands to list exported symbols.
10650export_symbols_cmds=$lt_export_symbols_cmds
10651
10652# The commands to extract the exported symbol list from a shared archive.
10653extract_expsyms_cmds=$lt_extract_expsyms_cmds
10654
10655# Symbols that should not be listed in the preloaded symbols.
10656exclude_expsyms=$lt_exclude_expsyms
10657
10658# Symbols that must always be exported.
10659include_expsyms=$lt_include_expsyms
10660
10661# ### END LIBTOOL CONFIG
10662
10663__EOF__
10664
10665
10666  case $host_os in
10667  aix3*)
10668    cat <<\EOF >> "$cfgfile"
10669
10670# AIX sometimes has problems with the GCC collect2 program.  For some
10671# reason, if we set the COLLECT_NAMES environment variable, the problems
10672# vanish in a puff of smoke.
10673if test "X${COLLECT_NAMES+set}" != Xset; then
10674  COLLECT_NAMES=
10675  export COLLECT_NAMES
10676fi
10677EOF
10678    ;;
10679  esac
10680
10681  # We use sed instead of cat because bash on DJGPP gets confused if
10682  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10683  # text mode, it properly converts lines to CR/LF.  This bash problem
10684  # is reportedly fixed, but why not run on old versions too?
10685  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10686
10687  mv -f "$cfgfile" "$ofile" || \
10688    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10689  chmod +x "$ofile"
10690
10691else
10692  # If there is no Makefile yet, we rely on a make rule to execute
10693  # `config.status --recheck' to rerun these tests and create the
10694  # libtool script then.
10695  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10696  if test -f "$ltmain_in"; then
10697    test -f Makefile && make "$ltmain"
10698  fi
10699fi
10700
10701
10702ac_ext=c
10703ac_cpp='$CPP $CPPFLAGS'
10704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706ac_compiler_gnu=$ac_cv_c_compiler_gnu
10707
10708CC="$lt_save_CC"
10709
10710
10711# Check whether --with-tags or --without-tags was given.
10712if test "${with_tags+set}" = set; then
10713  withval="$with_tags"
10714  tagnames="$withval"
10715fi;
10716
10717if test -f "$ltmain" && test -n "$tagnames"; then
10718  if test ! -f "${ofile}"; then
10719    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10720echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10721  fi
10722
10723  if test -z "$LTCC"; then
10724    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10725    if test -z "$LTCC"; then
10726      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10727echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10728    else
10729      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10730echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10731    fi
10732  fi
10733  if test -z "$LTCFLAGS"; then
10734    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10735  fi
10736
10737  # Extract list of available tagged configurations in $ofile.
10738  # Note that this assumes the entire list is on one line.
10739  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10740
10741  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10742  for tagname in $tagnames; do
10743    IFS="$lt_save_ifs"
10744    # Check whether tagname contains only valid characters
10745    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10746    "") ;;
10747    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10748echo "$as_me: error: invalid tag name: $tagname" >&2;}
10749   { (exit 1); exit 1; }; }
10750	;;
10751    esac
10752
10753    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10754    then
10755      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10756echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10757   { (exit 1); exit 1; }; }
10758    fi
10759
10760    # Update the list of available tags.
10761    if test -n "$tagname"; then
10762      echo appending configuration tag \"$tagname\" to $ofile
10763
10764      case $tagname in
10765      CXX)
10766	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10767	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10768	    (test "X$CXX" != "Xg++"))) ; then
10769	  ac_ext=cc
10770ac_cpp='$CXXCPP $CPPFLAGS'
10771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10774
10775
10776
10777
10778archive_cmds_need_lc_CXX=no
10779allow_undefined_flag_CXX=
10780always_export_symbols_CXX=no
10781archive_expsym_cmds_CXX=
10782export_dynamic_flag_spec_CXX=
10783hardcode_direct_CXX=no
10784hardcode_libdir_flag_spec_CXX=
10785hardcode_libdir_flag_spec_ld_CXX=
10786hardcode_libdir_separator_CXX=
10787hardcode_minus_L_CXX=no
10788hardcode_shlibpath_var_CXX=unsupported
10789hardcode_automatic_CXX=no
10790module_cmds_CXX=
10791module_expsym_cmds_CXX=
10792link_all_deplibs_CXX=unknown
10793old_archive_cmds_CXX=$old_archive_cmds
10794no_undefined_flag_CXX=
10795whole_archive_flag_spec_CXX=
10796enable_shared_with_static_runtimes_CXX=no
10797
10798# Dependencies to place before and after the object being linked:
10799predep_objects_CXX=
10800postdep_objects_CXX=
10801predeps_CXX=
10802postdeps_CXX=
10803compiler_lib_search_path_CXX=
10804
10805# Source file extension for C++ test sources.
10806ac_ext=cpp
10807
10808# Object file extension for compiled C++ test sources.
10809objext=o
10810objext_CXX=$objext
10811
10812# Code to be used in simple compile tests
10813lt_simple_compile_test_code="int some_variable = 0;\n"
10814
10815# Code to be used in simple link tests
10816lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10817
10818# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10819
10820# If no C compiler was specified, use CC.
10821LTCC=${LTCC-"$CC"}
10822
10823# If no C compiler flags were specified, use CFLAGS.
10824LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10825
10826# Allow CC to be a program name with arguments.
10827compiler=$CC
10828
10829
10830# save warnings/boilerplate of simple test code
10831ac_outfile=conftest.$ac_objext
10832printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10833eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10834_lt_compiler_boilerplate=`cat conftest.err`
10835$rm conftest*
10836
10837ac_outfile=conftest.$ac_objext
10838printf "$lt_simple_link_test_code" >conftest.$ac_ext
10839eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10840_lt_linker_boilerplate=`cat conftest.err`
10841$rm conftest*
10842
10843
10844# Allow CC to be a program name with arguments.
10845lt_save_CC=$CC
10846lt_save_LD=$LD
10847lt_save_GCC=$GCC
10848GCC=$GXX
10849lt_save_with_gnu_ld=$with_gnu_ld
10850lt_save_path_LD=$lt_cv_path_LD
10851if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10852  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10853else
10854  $as_unset lt_cv_prog_gnu_ld
10855fi
10856if test -n "${lt_cv_path_LDCXX+set}"; then
10857  lt_cv_path_LD=$lt_cv_path_LDCXX
10858else
10859  $as_unset lt_cv_path_LD
10860fi
10861test -z "${LDCXX+set}" || LD=$LDCXX
10862CC=${CXX-"c++"}
10863compiler=$CC
10864compiler_CXX=$CC
10865for cc_temp in $compiler""; do
10866  case $cc_temp in
10867    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10868    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10869    \-*) ;;
10870    *) break;;
10871  esac
10872done
10873cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10874
10875
10876# We don't want -fno-exception wen compiling C++ code, so set the
10877# no_builtin_flag separately
10878if test "$GXX" = yes; then
10879  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10880else
10881  lt_prog_compiler_no_builtin_flag_CXX=
10882fi
10883
10884if test "$GXX" = yes; then
10885  # Set up default GNU C++ configuration
10886
10887
10888# Check whether --with-gnu-ld or --without-gnu-ld was given.
10889if test "${with_gnu_ld+set}" = set; then
10890  withval="$with_gnu_ld"
10891  test "$withval" = no || with_gnu_ld=yes
10892else
10893  with_gnu_ld=no
10894fi;
10895ac_prog=ld
10896if test "$GCC" = yes; then
10897  # Check if gcc -print-prog-name=ld gives a path.
10898  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10899echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10900  case $host in
10901  *-*-mingw*)
10902    # gcc leaves a trailing carriage return which upsets mingw
10903    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10904  *)
10905    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10906  esac
10907  case $ac_prog in
10908    # Accept absolute paths.
10909    [\\/]* | ?:[\\/]*)
10910      re_direlt='/[^/][^/]*/\.\./'
10911      # Canonicalize the pathname of ld
10912      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10913      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10914	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10915      done
10916      test -z "$LD" && LD="$ac_prog"
10917      ;;
10918  "")
10919    # If it fails, then pretend we aren't using GCC.
10920    ac_prog=ld
10921    ;;
10922  *)
10923    # If it is relative, then search for the first ld in PATH.
10924    with_gnu_ld=unknown
10925    ;;
10926  esac
10927elif test "$with_gnu_ld" = yes; then
10928  echo "$as_me:$LINENO: checking for GNU ld" >&5
10929echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10930else
10931  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10932echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10933fi
10934if test "${lt_cv_path_LD+set}" = set; then
10935  echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937  if test -z "$LD"; then
10938  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10939  for ac_dir in $PATH; do
10940    IFS="$lt_save_ifs"
10941    test -z "$ac_dir" && ac_dir=.
10942    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10943      lt_cv_path_LD="$ac_dir/$ac_prog"
10944      # Check to see if the program is GNU ld.  I'd rather use --version,
10945      # but apparently some variants of GNU ld only accept -v.
10946      # Break only if it was the GNU/non-GNU ld that we prefer.
10947      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10948      *GNU* | *'with BFD'*)
10949	test "$with_gnu_ld" != no && break
10950	;;
10951      *)
10952	test "$with_gnu_ld" != yes && break
10953	;;
10954      esac
10955    fi
10956  done
10957  IFS="$lt_save_ifs"
10958else
10959  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10960fi
10961fi
10962
10963LD="$lt_cv_path_LD"
10964if test -n "$LD"; then
10965  echo "$as_me:$LINENO: result: $LD" >&5
10966echo "${ECHO_T}$LD" >&6
10967else
10968  echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6
10970fi
10971test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10972echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10973   { (exit 1); exit 1; }; }
10974echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10975echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10976if test "${lt_cv_prog_gnu_ld+set}" = set; then
10977  echo $ECHO_N "(cached) $ECHO_C" >&6
10978else
10979  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10980case `$LD -v 2>&1 </dev/null` in
10981*GNU* | *'with BFD'*)
10982  lt_cv_prog_gnu_ld=yes
10983  ;;
10984*)
10985  lt_cv_prog_gnu_ld=no
10986  ;;
10987esac
10988fi
10989echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10990echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10991with_gnu_ld=$lt_cv_prog_gnu_ld
10992
10993
10994
10995  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10996  # archiving commands below assume that GNU ld is being used.
10997  if test "$with_gnu_ld" = yes; then
10998    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10999    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'
11000
11001    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11002    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11003
11004    # If archive_cmds runs LD, not CC, wlarc should be empty
11005    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11006    #     investigate it a little bit more. (MM)
11007    wlarc='${wl}'
11008
11009    # ancient GNU ld didn't support --whole-archive et. al.
11010    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11011	grep 'no-whole-archive' > /dev/null; then
11012      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11013    else
11014      whole_archive_flag_spec_CXX=
11015    fi
11016  else
11017    with_gnu_ld=no
11018    wlarc=
11019
11020    # A generic and very simple default shared library creation
11021    # command for GNU C++ for the case where it uses the native
11022    # linker, instead of GNU ld.  If possible, this setting should
11023    # overridden to take advantage of the native linker features on
11024    # the platform it is being used on.
11025    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11026  fi
11027
11028  # Commands to make compiler produce verbose output that lists
11029  # what "hidden" libraries, object files and flags are used when
11030  # linking a shared library.
11031  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11032
11033else
11034  GXX=no
11035  with_gnu_ld=no
11036  wlarc=
11037fi
11038
11039# PORTME: fill in a description of your system's C++ link characteristics
11040echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11041echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11042ld_shlibs_CXX=yes
11043case $host_os in
11044  aix3*)
11045    # FIXME: insert proper C++ library support
11046    ld_shlibs_CXX=no
11047    ;;
11048  aix4* | aix5*)
11049    if test "$host_cpu" = ia64; then
11050      # On IA64, the linker does run time linking by default, so we don't
11051      # have to do anything special.
11052      aix_use_runtimelinking=no
11053      exp_sym_flag='-Bexport'
11054      no_entry_flag=""
11055    else
11056      aix_use_runtimelinking=no
11057
11058      # Test if we are trying to use run time linking or normal
11059      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11060      # need to do runtime linking.
11061      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11062	for ld_flag in $LDFLAGS; do
11063	  case $ld_flag in
11064	  *-brtl*)
11065	    aix_use_runtimelinking=yes
11066	    break
11067	    ;;
11068	  esac
11069	done
11070	;;
11071      esac
11072
11073      exp_sym_flag='-bexport'
11074      no_entry_flag='-bnoentry'
11075    fi
11076
11077    # When large executables or shared objects are built, AIX ld can
11078    # have problems creating the table of contents.  If linking a library
11079    # or program results in "error TOC overflow" add -mminimal-toc to
11080    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11081    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11082
11083    archive_cmds_CXX=''
11084    hardcode_direct_CXX=yes
11085    hardcode_libdir_separator_CXX=':'
11086    link_all_deplibs_CXX=yes
11087
11088    if test "$GXX" = yes; then
11089      case $host_os in aix4.[012]|aix4.[012].*)
11090      # We only want to do this on AIX 4.2 and lower, the check
11091      # below for broken collect2 doesn't work under 4.3+
11092	collect2name=`${CC} -print-prog-name=collect2`
11093	if test -f "$collect2name" && \
11094	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11095	then
11096	  # We have reworked collect2
11097	  hardcode_direct_CXX=yes
11098	else
11099	  # We have old collect2
11100	  hardcode_direct_CXX=unsupported
11101	  # It fails to find uninstalled libraries when the uninstalled
11102	  # path is not listed in the libpath.  Setting hardcode_minus_L
11103	  # to unsupported forces relinking
11104	  hardcode_minus_L_CXX=yes
11105	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11106	  hardcode_libdir_separator_CXX=
11107	fi
11108	;;
11109      esac
11110      shared_flag='-shared'
11111      if test "$aix_use_runtimelinking" = yes; then
11112	shared_flag="$shared_flag "'${wl}-G'
11113      fi
11114    else
11115      # not using gcc
11116      if test "$host_cpu" = ia64; then
11117	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11118	# chokes on -Wl,-G. The following line is correct:
11119	shared_flag='-G'
11120      else
11121	if test "$aix_use_runtimelinking" = yes; then
11122	  shared_flag='${wl}-G'
11123	else
11124	  shared_flag='${wl}-bM:SRE'
11125	fi
11126      fi
11127    fi
11128
11129    # It seems that -bexpall does not export symbols beginning with
11130    # underscore (_), so it is better to generate a list of symbols to export.
11131    always_export_symbols_CXX=yes
11132    if test "$aix_use_runtimelinking" = yes; then
11133      # Warning - without using the other runtime loading flags (-brtl),
11134      # -berok will link without error, but may produce a broken library.
11135      allow_undefined_flag_CXX='-berok'
11136      # Determine the default libpath from the value encoded in an empty executable.
11137      cat >conftest.$ac_ext <<_ACEOF
11138/* confdefs.h.  */
11139_ACEOF
11140cat confdefs.h >>conftest.$ac_ext
11141cat >>conftest.$ac_ext <<_ACEOF
11142/* end confdefs.h.  */
11143
11144int
11145main ()
11146{
11147
11148  ;
11149  return 0;
11150}
11151_ACEOF
11152rm -f conftest.$ac_objext conftest$ac_exeext
11153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11154  (eval $ac_link) 2>conftest.er1
11155  ac_status=$?
11156  grep -v '^ *+' conftest.er1 >conftest.err
11157  rm -f conftest.er1
11158  cat conftest.err >&5
11159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160  (exit $ac_status); } &&
11161	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163  (eval $ac_try) 2>&5
11164  ac_status=$?
11165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166  (exit $ac_status); }; } &&
11167	 { ac_try='test -s conftest$ac_exeext'
11168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169  (eval $ac_try) 2>&5
11170  ac_status=$?
11171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172  (exit $ac_status); }; }; then
11173
11174aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11175}'`
11176# Check for a 64-bit object if we didn't find anything.
11177if 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; }
11178}'`; fi
11179else
11180  echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183fi
11184rm -f conftest.err conftest.$ac_objext \
11185      conftest$ac_exeext conftest.$ac_ext
11186if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11187
11188      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11189
11190      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11191     else
11192      if test "$host_cpu" = ia64; then
11193	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11194	allow_undefined_flag_CXX="-z nodefs"
11195	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11196      else
11197	# Determine the default libpath from the value encoded in an empty executable.
11198	cat >conftest.$ac_ext <<_ACEOF
11199/* confdefs.h.  */
11200_ACEOF
11201cat confdefs.h >>conftest.$ac_ext
11202cat >>conftest.$ac_ext <<_ACEOF
11203/* end confdefs.h.  */
11204
11205int
11206main ()
11207{
11208
11209  ;
11210  return 0;
11211}
11212_ACEOF
11213rm -f conftest.$ac_objext conftest$ac_exeext
11214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215  (eval $ac_link) 2>conftest.er1
11216  ac_status=$?
11217  grep -v '^ *+' conftest.er1 >conftest.err
11218  rm -f conftest.er1
11219  cat conftest.err >&5
11220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221  (exit $ac_status); } &&
11222	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224  (eval $ac_try) 2>&5
11225  ac_status=$?
11226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227  (exit $ac_status); }; } &&
11228	 { ac_try='test -s conftest$ac_exeext'
11229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230  (eval $ac_try) 2>&5
11231  ac_status=$?
11232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233  (exit $ac_status); }; }; then
11234
11235aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11236}'`
11237# Check for a 64-bit object if we didn't find anything.
11238if 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; }
11239}'`; fi
11240else
11241  echo "$as_me: failed program was:" >&5
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
11244fi
11245rm -f conftest.err conftest.$ac_objext \
11246      conftest$ac_exeext conftest.$ac_ext
11247if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11248
11249	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11250	# Warning - without using the other run time loading flags,
11251	# -berok will link without error, but may produce a broken library.
11252	no_undefined_flag_CXX=' ${wl}-bernotok'
11253	allow_undefined_flag_CXX=' ${wl}-berok'
11254	# Exported symbols can be pulled into shared objects from archives
11255	whole_archive_flag_spec_CXX='$convenience'
11256	archive_cmds_need_lc_CXX=yes
11257	# This is similar to how AIX traditionally builds its shared libraries.
11258	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11259      fi
11260    fi
11261    ;;
11262
11263  beos*)
11264    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11265      allow_undefined_flag_CXX=unsupported
11266      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11267      # support --undefined.  This deserves some investigation.  FIXME
11268      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11269    else
11270      ld_shlibs_CXX=no
11271    fi
11272    ;;
11273
11274  chorus*)
11275    case $cc_basename in
11276      *)
11277	# FIXME: insert proper C++ library support
11278	ld_shlibs_CXX=no
11279	;;
11280    esac
11281    ;;
11282
11283  cygwin* | mingw* | pw32*)
11284    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11285    # as there is no search path for DLLs.
11286    hardcode_libdir_flag_spec_CXX='-L$libdir'
11287    allow_undefined_flag_CXX=unsupported
11288    always_export_symbols_CXX=no
11289    enable_shared_with_static_runtimes_CXX=yes
11290
11291    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11292      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11293      # If the export-symbols file already is a .def file (1st line
11294      # is EXPORTS), use it as is; otherwise, prepend...
11295      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11296	cp $export_symbols $output_objdir/$soname.def;
11297      else
11298	echo EXPORTS > $output_objdir/$soname.def;
11299	cat $export_symbols >> $output_objdir/$soname.def;
11300      fi~
11301      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11302    else
11303      ld_shlibs_CXX=no
11304    fi
11305  ;;
11306      darwin* | rhapsody*)
11307        case $host_os in
11308        rhapsody* | darwin1.[012])
11309         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11310         ;;
11311       *) # Darwin 1.3 on
11312         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11313           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11314         else
11315           case ${MACOSX_DEPLOYMENT_TARGET} in
11316             10.[012])
11317               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11318               ;;
11319             10.*)
11320               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11321               ;;
11322           esac
11323         fi
11324         ;;
11325        esac
11326      archive_cmds_need_lc_CXX=no
11327      hardcode_direct_CXX=no
11328      hardcode_automatic_CXX=yes
11329      hardcode_shlibpath_var_CXX=unsupported
11330      whole_archive_flag_spec_CXX=''
11331      link_all_deplibs_CXX=yes
11332
11333    if test "$GXX" = yes ; then
11334      lt_int_apple_cc_single_mod=no
11335      output_verbose_link_cmd='echo'
11336      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11337       lt_int_apple_cc_single_mod=yes
11338      fi
11339      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11340       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11341      else
11342          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'
11343        fi
11344        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11345        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11346          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11347            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}'
11348          else
11349            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}'
11350          fi
11351            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}'
11352      else
11353      case $cc_basename in
11354        xlc*)
11355         output_verbose_link_cmd='echo'
11356          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'
11357          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11358          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11359          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}'
11360          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}'
11361          ;;
11362       *)
11363         ld_shlibs_CXX=no
11364          ;;
11365      esac
11366      fi
11367        ;;
11368
11369  dgux*)
11370    case $cc_basename in
11371      ec++*)
11372	# FIXME: insert proper C++ library support
11373	ld_shlibs_CXX=no
11374	;;
11375      ghcx*)
11376	# Green Hills C++ Compiler
11377	# FIXME: insert proper C++ library support
11378	ld_shlibs_CXX=no
11379	;;
11380      *)
11381	# FIXME: insert proper C++ library support
11382	ld_shlibs_CXX=no
11383	;;
11384    esac
11385    ;;
11386  freebsd[12]*)
11387    # C++ shared libraries reported to be fairly broken before switch to ELF
11388    ld_shlibs_CXX=no
11389    ;;
11390  freebsd-elf*)
11391    archive_cmds_need_lc_CXX=no
11392    ;;
11393  freebsd* | kfreebsd*-gnu | dragonfly*)
11394    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11395    # conventions
11396    ld_shlibs_CXX=yes
11397    ;;
11398  gnu*)
11399    ;;
11400  hpux9*)
11401    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11402    hardcode_libdir_separator_CXX=:
11403    export_dynamic_flag_spec_CXX='${wl}-E'
11404    hardcode_direct_CXX=yes
11405    hardcode_minus_L_CXX=yes # Not in the search PATH,
11406				# but as the default
11407				# location of the library.
11408
11409    case $cc_basename in
11410    CC*)
11411      # FIXME: insert proper C++ library support
11412      ld_shlibs_CXX=no
11413      ;;
11414    aCC*)
11415      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'
11416      # Commands to make compiler produce verbose output that lists
11417      # what "hidden" libraries, object files and flags are used when
11418      # linking a shared library.
11419      #
11420      # There doesn't appear to be a way to prevent this compiler from
11421      # explicitly linking system object files so we need to strip them
11422      # from the output so that they don't get included in the library
11423      # dependencies.
11424      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'
11425      ;;
11426    *)
11427      if test "$GXX" = yes; then
11428        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'
11429      else
11430        # FIXME: insert proper C++ library support
11431        ld_shlibs_CXX=no
11432      fi
11433      ;;
11434    esac
11435    ;;
11436  hpux10*|hpux11*)
11437    if test $with_gnu_ld = no; then
11438      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11439      hardcode_libdir_separator_CXX=:
11440
11441      case $host_cpu in
11442      hppa*64*|ia64*)
11443	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11444        ;;
11445      *)
11446	export_dynamic_flag_spec_CXX='${wl}-E'
11447        ;;
11448      esac
11449    fi
11450    case $host_cpu in
11451    hppa*64*|ia64*)
11452      hardcode_direct_CXX=no
11453      hardcode_shlibpath_var_CXX=no
11454      ;;
11455    *)
11456      hardcode_direct_CXX=yes
11457      hardcode_minus_L_CXX=yes # Not in the search PATH,
11458					      # but as the default
11459					      # location of the library.
11460      ;;
11461    esac
11462
11463    case $cc_basename in
11464      CC*)
11465	# FIXME: insert proper C++ library support
11466	ld_shlibs_CXX=no
11467	;;
11468      aCC*)
11469	case $host_cpu in
11470	hppa*64*)
11471	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11472	  ;;
11473	ia64*)
11474	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11475	  ;;
11476	*)
11477	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11478	  ;;
11479	esac
11480	# Commands to make compiler produce verbose output that lists
11481	# what "hidden" libraries, object files and flags are used when
11482	# linking a shared library.
11483	#
11484	# There doesn't appear to be a way to prevent this compiler from
11485	# explicitly linking system object files so we need to strip them
11486	# from the output so that they don't get included in the library
11487	# dependencies.
11488	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'
11489	;;
11490      *)
11491	if test "$GXX" = yes; then
11492	  if test $with_gnu_ld = no; then
11493	    case $host_cpu in
11494	    hppa*64*)
11495	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11496	      ;;
11497	    ia64*)
11498	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11499	      ;;
11500	    *)
11501	      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'
11502	      ;;
11503	    esac
11504	  fi
11505	else
11506	  # FIXME: insert proper C++ library support
11507	  ld_shlibs_CXX=no
11508	fi
11509	;;
11510    esac
11511    ;;
11512  interix3*)
11513    hardcode_direct_CXX=no
11514    hardcode_shlibpath_var_CXX=no
11515    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11516    export_dynamic_flag_spec_CXX='${wl}-E'
11517    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11518    # Instead, shared libraries are loaded at an image base (0x10000000 by
11519    # default) and relocated if they conflict, which is a slow very memory
11520    # consuming and fragmenting process.  To avoid this, we pick a random,
11521    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11522    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11523    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11524    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11525    ;;
11526  irix5* | irix6*)
11527    case $cc_basename in
11528      CC*)
11529	# SGI C++
11530	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'
11531
11532	# Archives containing C++ object files must be created using
11533	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11534	# necessary to make sure instantiated templates are included
11535	# in the archive.
11536	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11537	;;
11538      *)
11539	if test "$GXX" = yes; then
11540	  if test "$with_gnu_ld" = no; then
11541	    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'
11542	  else
11543	    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'
11544	  fi
11545	fi
11546	link_all_deplibs_CXX=yes
11547	;;
11548    esac
11549    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11550    hardcode_libdir_separator_CXX=:
11551    ;;
11552  linux*)
11553    case $cc_basename in
11554      KCC*)
11555	# Kuck and Associates, Inc. (KAI) C++ Compiler
11556
11557	# KCC will only create a shared library if the output file
11558	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11559	# to its proper name (with version) after linking.
11560	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'
11561	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'
11562	# Commands to make compiler produce verbose output that lists
11563	# what "hidden" libraries, object files and flags are used when
11564	# linking a shared library.
11565	#
11566	# There doesn't appear to be a way to prevent this compiler from
11567	# explicitly linking system object files so we need to strip them
11568	# from the output so that they don't get included in the library
11569	# dependencies.
11570	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'
11571
11572	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11573	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11574
11575	# Archives containing C++ object files must be created using
11576	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11577	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11578	;;
11579      icpc*)
11580	# Intel C++
11581	with_gnu_ld=yes
11582	# version 8.0 and above of icpc choke on multiply defined symbols
11583	# if we add $predep_objects and $postdep_objects, however 7.1 and
11584	# earlier do not add the objects themselves.
11585	case `$CC -V 2>&1` in
11586	*"Version 7."*)
11587  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11588  	  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'
11589	  ;;
11590	*)  # Version 8.0 or newer
11591	  tmp_idyn=
11592	  case $host_cpu in
11593	    ia64*) tmp_idyn=' -i_dynamic';;
11594	  esac
11595  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11596	  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'
11597	  ;;
11598	esac
11599	archive_cmds_need_lc_CXX=no
11600	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11601	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11602	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11603	;;
11604      pgCC*)
11605        # Portland Group C++ compiler
11606	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11607  	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'
11608
11609	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11610	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11611	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'
11612        ;;
11613      cxx*)
11614	# Compaq C++
11615	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11616	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'
11617
11618	runpath_var=LD_RUN_PATH
11619	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11620	hardcode_libdir_separator_CXX=:
11621
11622	# Commands to make compiler produce verbose output that lists
11623	# what "hidden" libraries, object files and flags are used when
11624	# linking a shared library.
11625	#
11626	# There doesn't appear to be a way to prevent this compiler from
11627	# explicitly linking system object files so we need to strip them
11628	# from the output so that they don't get included in the library
11629	# dependencies.
11630	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'
11631	;;
11632    esac
11633    ;;
11634  lynxos*)
11635    # FIXME: insert proper C++ library support
11636    ld_shlibs_CXX=no
11637    ;;
11638  m88k*)
11639    # FIXME: insert proper C++ library support
11640    ld_shlibs_CXX=no
11641    ;;
11642  mvs*)
11643    case $cc_basename in
11644      cxx*)
11645	# FIXME: insert proper C++ library support
11646	ld_shlibs_CXX=no
11647	;;
11648      *)
11649	# FIXME: insert proper C++ library support
11650	ld_shlibs_CXX=no
11651	;;
11652    esac
11653    ;;
11654  netbsd*)
11655    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11656      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11657      wlarc=
11658      hardcode_libdir_flag_spec_CXX='-R$libdir'
11659      hardcode_direct_CXX=yes
11660      hardcode_shlibpath_var_CXX=no
11661    fi
11662    # Workaround some broken pre-1.5 toolchains
11663    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11664    ;;
11665  openbsd2*)
11666    # C++ shared libraries are fairly broken
11667    ld_shlibs_CXX=no
11668    ;;
11669  openbsd*)
11670    hardcode_direct_CXX=yes
11671    hardcode_shlibpath_var_CXX=no
11672    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11673    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11674    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11675      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11676      export_dynamic_flag_spec_CXX='${wl}-E'
11677      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11678    fi
11679    output_verbose_link_cmd='echo'
11680    ;;
11681  osf3*)
11682    case $cc_basename in
11683      KCC*)
11684	# Kuck and Associates, Inc. (KAI) C++ Compiler
11685
11686	# KCC will only create a shared library if the output file
11687	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11688	# to its proper name (with version) after linking.
11689	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'
11690
11691	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11692	hardcode_libdir_separator_CXX=:
11693
11694	# Archives containing C++ object files must be created using
11695	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11696	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11697
11698	;;
11699      RCC*)
11700	# Rational C++ 2.4.1
11701	# FIXME: insert proper C++ library support
11702	ld_shlibs_CXX=no
11703	;;
11704      cxx*)
11705	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11706	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'
11707
11708	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11709	hardcode_libdir_separator_CXX=:
11710
11711	# Commands to make compiler produce verbose output that lists
11712	# what "hidden" libraries, object files and flags are used when
11713	# linking a shared library.
11714	#
11715	# There doesn't appear to be a way to prevent this compiler from
11716	# explicitly linking system object files so we need to strip them
11717	# from the output so that they don't get included in the library
11718	# dependencies.
11719	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'
11720	;;
11721      *)
11722	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11723	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11724	  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'
11725
11726	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11727	  hardcode_libdir_separator_CXX=:
11728
11729	  # Commands to make compiler produce verbose output that lists
11730	  # what "hidden" libraries, object files and flags are used when
11731	  # linking a shared library.
11732	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11733
11734	else
11735	  # FIXME: insert proper C++ library support
11736	  ld_shlibs_CXX=no
11737	fi
11738	;;
11739    esac
11740    ;;
11741  osf4* | osf5*)
11742    case $cc_basename in
11743      KCC*)
11744	# Kuck and Associates, Inc. (KAI) C++ Compiler
11745
11746	# KCC will only create a shared library if the output file
11747	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11748	# to its proper name (with version) after linking.
11749	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'
11750
11751	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11752	hardcode_libdir_separator_CXX=:
11753
11754	# Archives containing C++ object files must be created using
11755	# the KAI C++ compiler.
11756	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11757	;;
11758      RCC*)
11759	# Rational C++ 2.4.1
11760	# FIXME: insert proper C++ library support
11761	ld_shlibs_CXX=no
11762	;;
11763      cxx*)
11764	allow_undefined_flag_CXX=' -expect_unresolved \*'
11765	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'
11766	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11767	  echo "-hidden">> $lib.exp~
11768	  $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~
11769	  $rm $lib.exp'
11770
11771	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11772	hardcode_libdir_separator_CXX=:
11773
11774	# Commands to make compiler produce verbose output that lists
11775	# what "hidden" libraries, object files and flags are used when
11776	# linking a shared library.
11777	#
11778	# There doesn't appear to be a way to prevent this compiler from
11779	# explicitly linking system object files so we need to strip them
11780	# from the output so that they don't get included in the library
11781	# dependencies.
11782	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'
11783	;;
11784      *)
11785	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11786	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11787	 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'
11788
11789	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11790	  hardcode_libdir_separator_CXX=:
11791
11792	  # Commands to make compiler produce verbose output that lists
11793	  # what "hidden" libraries, object files and flags are used when
11794	  # linking a shared library.
11795	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11796
11797	else
11798	  # FIXME: insert proper C++ library support
11799	  ld_shlibs_CXX=no
11800	fi
11801	;;
11802    esac
11803    ;;
11804  psos*)
11805    # FIXME: insert proper C++ library support
11806    ld_shlibs_CXX=no
11807    ;;
11808  sunos4*)
11809    case $cc_basename in
11810      CC*)
11811	# Sun C++ 4.x
11812	# FIXME: insert proper C++ library support
11813	ld_shlibs_CXX=no
11814	;;
11815      lcc*)
11816	# Lucid
11817	# FIXME: insert proper C++ library support
11818	ld_shlibs_CXX=no
11819	;;
11820      *)
11821	# FIXME: insert proper C++ library support
11822	ld_shlibs_CXX=no
11823	;;
11824    esac
11825    ;;
11826  solaris*)
11827    case $cc_basename in
11828      CC*)
11829	# Sun C++ 4.2, 5.x and Centerline C++
11830        archive_cmds_need_lc_CXX=yes
11831	no_undefined_flag_CXX=' -zdefs'
11832	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11833	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11834	$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'
11835
11836	hardcode_libdir_flag_spec_CXX='-R$libdir'
11837	hardcode_shlibpath_var_CXX=no
11838	case $host_os in
11839	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11840	  *)
11841	    # The C++ compiler is used as linker so we must use $wl
11842	    # flag to pass the commands to the underlying system
11843	    # linker. We must also pass each convience library through
11844	    # to the system linker between allextract/defaultextract.
11845	    # The C++ compiler will combine linker options so we
11846	    # cannot just pass the convience library names through
11847	    # without $wl.
11848	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11849	    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'
11850	    ;;
11851	esac
11852	link_all_deplibs_CXX=yes
11853
11854	output_verbose_link_cmd='echo'
11855
11856	# Archives containing C++ object files must be created using
11857	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11858	# necessary to make sure instantiated templates are included
11859	# in the archive.
11860	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11861	;;
11862      gcx*)
11863	# Green Hills C++ Compiler
11864	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11865
11866	# The C++ compiler must be used to create the archive.
11867	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11868	;;
11869      *)
11870	# GNU C++ compiler with Solaris linker
11871	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11872	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11873	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11874	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11875	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11876		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11877
11878	    # Commands to make compiler produce verbose output that lists
11879	    # what "hidden" libraries, object files and flags are used when
11880	    # linking a shared library.
11881	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11882	  else
11883	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11884	    # platform.
11885	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11886	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11887		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11888
11889	    # Commands to make compiler produce verbose output that lists
11890	    # what "hidden" libraries, object files and flags are used when
11891	    # linking a shared library.
11892	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11893	  fi
11894
11895	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11896	fi
11897	;;
11898    esac
11899    ;;
11900  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11901    no_undefined_flag_CXX='${wl}-z,text'
11902    archive_cmds_need_lc_CXX=no
11903    hardcode_shlibpath_var_CXX=no
11904    runpath_var='LD_RUN_PATH'
11905
11906    case $cc_basename in
11907      CC*)
11908	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11909	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11910	;;
11911      *)
11912	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11913	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11914	;;
11915    esac
11916    ;;
11917  sysv5* | sco3.2v5* | sco5v6*)
11918    # Note: We can NOT use -z defs as we might desire, because we do not
11919    # link with -lc, and that would cause any symbols used from libc to
11920    # always be unresolved, which means just about no library would
11921    # ever link correctly.  If we're not using GNU ld we use -z text
11922    # though, which does catch some bad symbols but isn't as heavy-handed
11923    # as -z defs.
11924    # For security reasons, it is highly recommended that you always
11925    # use absolute paths for naming shared libraries, and exclude the
11926    # DT_RUNPATH tag from executables and libraries.  But doing so
11927    # requires that you compile everything twice, which is a pain.
11928    # So that behaviour is only enabled if SCOABSPATH is set to a
11929    # non-empty value in the environment.  Most likely only useful for
11930    # creating official distributions of packages.
11931    # This is a hack until libtool officially supports absolute path
11932    # names for shared libraries.
11933    no_undefined_flag_CXX='${wl}-z,text'
11934    allow_undefined_flag_CXX='${wl}-z,nodefs'
11935    archive_cmds_need_lc_CXX=no
11936    hardcode_shlibpath_var_CXX=no
11937    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11938    hardcode_libdir_separator_CXX=':'
11939    link_all_deplibs_CXX=yes
11940    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11941    runpath_var='LD_RUN_PATH'
11942
11943    case $cc_basename in
11944      CC*)
11945	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11946	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11947	;;
11948      *)
11949	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11950	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11951	;;
11952    esac
11953    ;;
11954  tandem*)
11955    case $cc_basename in
11956      NCC*)
11957	# NonStop-UX NCC 3.20
11958	# FIXME: insert proper C++ library support
11959	ld_shlibs_CXX=no
11960	;;
11961      *)
11962	# FIXME: insert proper C++ library support
11963	ld_shlibs_CXX=no
11964	;;
11965    esac
11966    ;;
11967  vxworks*)
11968    # FIXME: insert proper C++ library support
11969    ld_shlibs_CXX=no
11970    ;;
11971  *)
11972    # FIXME: insert proper C++ library support
11973    ld_shlibs_CXX=no
11974    ;;
11975esac
11976echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11977echo "${ECHO_T}$ld_shlibs_CXX" >&6
11978test "$ld_shlibs_CXX" = no && can_build_shared=no
11979
11980GCC_CXX="$GXX"
11981LD_CXX="$LD"
11982
11983
11984cat > conftest.$ac_ext <<EOF
11985class Foo
11986{
11987public:
11988  Foo (void) { a = 0; }
11989private:
11990  int a;
11991};
11992EOF
11993
11994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995  (eval $ac_compile) 2>&5
11996  ac_status=$?
11997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998  (exit $ac_status); }; then
11999  # Parse the compiler output and extract the necessary
12000  # objects, libraries and library flags.
12001
12002  # Sentinel used to keep track of whether or not we are before
12003  # the conftest object file.
12004  pre_test_object_deps_done=no
12005
12006  # The `*' in the case matches for architectures that use `case' in
12007  # $output_verbose_cmd can trigger glob expansion during the loop
12008  # eval without this substitution.
12009  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12010
12011  for p in `eval $output_verbose_link_cmd`; do
12012    case $p in
12013
12014    -L* | -R* | -l*)
12015       # Some compilers place space between "-{L,R}" and the path.
12016       # Remove the space.
12017       if test $p = "-L" \
12018	  || test $p = "-R"; then
12019	 prev=$p
12020	 continue
12021       else
12022	 prev=
12023       fi
12024
12025       if test "$pre_test_object_deps_done" = no; then
12026	 case $p in
12027	 -L* | -R*)
12028	   # Internal compiler library paths should come after those
12029	   # provided the user.  The postdeps already come after the
12030	   # user supplied libs so there is no need to process them.
12031	   if test -z "$compiler_lib_search_path_CXX"; then
12032	     compiler_lib_search_path_CXX="${prev}${p}"
12033	   else
12034	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12035	   fi
12036	   ;;
12037	 # The "-l" case would never come before the object being
12038	 # linked, so don't bother handling this case.
12039	 esac
12040       else
12041	 if test -z "$postdeps_CXX"; then
12042	   postdeps_CXX="${prev}${p}"
12043	 else
12044	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12045	 fi
12046       fi
12047       ;;
12048
12049    *.$objext)
12050       # This assumes that the test object file only shows up
12051       # once in the compiler output.
12052       if test "$p" = "conftest.$objext"; then
12053	 pre_test_object_deps_done=yes
12054	 continue
12055       fi
12056
12057       if test "$pre_test_object_deps_done" = no; then
12058	 if test -z "$predep_objects_CXX"; then
12059	   predep_objects_CXX="$p"
12060	 else
12061	   predep_objects_CXX="$predep_objects_CXX $p"
12062	 fi
12063       else
12064	 if test -z "$postdep_objects_CXX"; then
12065	   postdep_objects_CXX="$p"
12066	 else
12067	   postdep_objects_CXX="$postdep_objects_CXX $p"
12068	 fi
12069       fi
12070       ;;
12071
12072    *) ;; # Ignore the rest.
12073
12074    esac
12075  done
12076
12077  # Clean up.
12078  rm -f a.out a.exe
12079else
12080  echo "libtool.m4: error: problem compiling CXX test program"
12081fi
12082
12083$rm -f confest.$objext
12084
12085# PORTME: override above test on systems where it is broken
12086case $host_os in
12087interix3*)
12088  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12089  # hack all around it, let's just trust "g++" to DTRT.
12090  predep_objects_CXX=
12091  postdep_objects_CXX=
12092  postdeps_CXX=
12093  ;;
12094
12095solaris*)
12096  case $cc_basename in
12097  CC*)
12098    # Adding this requires a known-good setup of shared libraries for
12099    # Sun compiler versions before 5.6, else PIC objects from an old
12100    # archive will be linked into the output, leading to subtle bugs.
12101    postdeps_CXX='-lCstd -lCrun'
12102    ;;
12103  esac
12104  ;;
12105esac
12106
12107
12108case " $postdeps_CXX " in
12109*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12110esac
12111
12112lt_prog_compiler_wl_CXX=
12113lt_prog_compiler_pic_CXX=
12114lt_prog_compiler_static_CXX=
12115
12116echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12117echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12118
12119  # C++ specific cases for pic, static, wl, etc.
12120  if test "$GXX" = yes; then
12121    lt_prog_compiler_wl_CXX='-Wl,'
12122    lt_prog_compiler_static_CXX='-static'
12123
12124    case $host_os in
12125    aix*)
12126      # All AIX code is PIC.
12127      if test "$host_cpu" = ia64; then
12128	# AIX 5 now supports IA64 processor
12129	lt_prog_compiler_static_CXX='-Bstatic'
12130      fi
12131      ;;
12132    amigaos*)
12133      # FIXME: we need at least 68020 code to build shared libraries, but
12134      # adding the `-m68020' flag to GCC prevents building anything better,
12135      # like `-m68040'.
12136      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12137      ;;
12138    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12139      # PIC is the default for these OSes.
12140      ;;
12141    mingw* | os2* | pw32*)
12142      # This hack is so that the source file can tell whether it is being
12143      # built for inclusion in a dll (and should export symbols for example).
12144      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12145      ;;
12146    darwin* | rhapsody*)
12147      # PIC is the default on this platform
12148      # Common symbols not allowed in MH_DYLIB files
12149      lt_prog_compiler_pic_CXX='-fno-common'
12150      ;;
12151    *djgpp*)
12152      # DJGPP does not support shared libraries at all
12153      lt_prog_compiler_pic_CXX=
12154      ;;
12155    interix3*)
12156      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12157      # Instead, we relocate shared libraries at runtime.
12158      ;;
12159    sysv4*MP*)
12160      if test -d /usr/nec; then
12161	lt_prog_compiler_pic_CXX=-Kconform_pic
12162      fi
12163      ;;
12164    hpux*)
12165      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12166      # not for PA HP-UX.
12167      case $host_cpu in
12168      hppa*64*|ia64*)
12169	;;
12170      *)
12171	lt_prog_compiler_pic_CXX='-fPIC'
12172	;;
12173      esac
12174      ;;
12175    *)
12176      lt_prog_compiler_pic_CXX='-fPIC'
12177      ;;
12178    esac
12179  else
12180    case $host_os in
12181      aix4* | aix5*)
12182	# All AIX code is PIC.
12183	if test "$host_cpu" = ia64; then
12184	  # AIX 5 now supports IA64 processor
12185	  lt_prog_compiler_static_CXX='-Bstatic'
12186	else
12187	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12188	fi
12189	;;
12190      chorus*)
12191	case $cc_basename in
12192	cxch68*)
12193	  # Green Hills C++ Compiler
12194	  # _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"
12195	  ;;
12196	esac
12197	;;
12198       darwin*)
12199         # PIC is the default on this platform
12200         # Common symbols not allowed in MH_DYLIB files
12201         case $cc_basename in
12202           xlc*)
12203           lt_prog_compiler_pic_CXX='-qnocommon'
12204           lt_prog_compiler_wl_CXX='-Wl,'
12205           ;;
12206         esac
12207       ;;
12208      dgux*)
12209	case $cc_basename in
12210	  ec++*)
12211	    lt_prog_compiler_pic_CXX='-KPIC'
12212	    ;;
12213	  ghcx*)
12214	    # Green Hills C++ Compiler
12215	    lt_prog_compiler_pic_CXX='-pic'
12216	    ;;
12217	  *)
12218	    ;;
12219	esac
12220	;;
12221      freebsd* | kfreebsd*-gnu | dragonfly*)
12222	# FreeBSD uses GNU C++
12223	;;
12224      hpux9* | hpux10* | hpux11*)
12225	case $cc_basename in
12226	  CC*)
12227	    lt_prog_compiler_wl_CXX='-Wl,'
12228	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12229	    if test "$host_cpu" != ia64; then
12230	      lt_prog_compiler_pic_CXX='+Z'
12231	    fi
12232	    ;;
12233	  aCC*)
12234	    lt_prog_compiler_wl_CXX='-Wl,'
12235	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12236	    case $host_cpu in
12237	    hppa*64*|ia64*)
12238	      # +Z the default
12239	      ;;
12240	    *)
12241	      lt_prog_compiler_pic_CXX='+Z'
12242	      ;;
12243	    esac
12244	    ;;
12245	  *)
12246	    ;;
12247	esac
12248	;;
12249      interix*)
12250	# This is c89, which is MS Visual C++ (no shared libs)
12251	# Anyone wants to do a port?
12252	;;
12253      irix5* | irix6* | nonstopux*)
12254	case $cc_basename in
12255	  CC*)
12256	    lt_prog_compiler_wl_CXX='-Wl,'
12257	    lt_prog_compiler_static_CXX='-non_shared'
12258	    # CC pic flag -KPIC is the default.
12259	    ;;
12260	  *)
12261	    ;;
12262	esac
12263	;;
12264      linux*)
12265	case $cc_basename in
12266	  KCC*)
12267	    # KAI C++ Compiler
12268	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12269	    lt_prog_compiler_pic_CXX='-fPIC'
12270	    ;;
12271	  icpc* | ecpc*)
12272	    # Intel C++
12273	    lt_prog_compiler_wl_CXX='-Wl,'
12274	    lt_prog_compiler_pic_CXX='-KPIC'
12275	    lt_prog_compiler_static_CXX='-static'
12276	    ;;
12277	  pgCC*)
12278	    # Portland Group C++ compiler.
12279	    lt_prog_compiler_wl_CXX='-Wl,'
12280	    lt_prog_compiler_pic_CXX='-fpic'
12281	    lt_prog_compiler_static_CXX='-Bstatic'
12282	    ;;
12283	  cxx*)
12284	    # Compaq C++
12285	    # Make sure the PIC flag is empty.  It appears that all Alpha
12286	    # Linux and Compaq Tru64 Unix objects are PIC.
12287	    lt_prog_compiler_pic_CXX=
12288	    lt_prog_compiler_static_CXX='-non_shared'
12289	    ;;
12290	  *)
12291	    ;;
12292	esac
12293	;;
12294      lynxos*)
12295	;;
12296      m88k*)
12297	;;
12298      mvs*)
12299	case $cc_basename in
12300	  cxx*)
12301	    lt_prog_compiler_pic_CXX='-W c,exportall'
12302	    ;;
12303	  *)
12304	    ;;
12305	esac
12306	;;
12307      netbsd*)
12308	;;
12309      osf3* | osf4* | osf5*)
12310	case $cc_basename in
12311	  KCC*)
12312	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12313	    ;;
12314	  RCC*)
12315	    # Rational C++ 2.4.1
12316	    lt_prog_compiler_pic_CXX='-pic'
12317	    ;;
12318	  cxx*)
12319	    # Digital/Compaq C++
12320	    lt_prog_compiler_wl_CXX='-Wl,'
12321	    # Make sure the PIC flag is empty.  It appears that all Alpha
12322	    # Linux and Compaq Tru64 Unix objects are PIC.
12323	    lt_prog_compiler_pic_CXX=
12324	    lt_prog_compiler_static_CXX='-non_shared'
12325	    ;;
12326	  *)
12327	    ;;
12328	esac
12329	;;
12330      psos*)
12331	;;
12332      solaris*)
12333	case $cc_basename in
12334	  CC*)
12335	    # Sun C++ 4.2, 5.x and Centerline C++
12336	    lt_prog_compiler_pic_CXX='-KPIC'
12337	    lt_prog_compiler_static_CXX='-Bstatic'
12338	    lt_prog_compiler_wl_CXX='-Qoption ld '
12339	    ;;
12340	  gcx*)
12341	    # Green Hills C++ Compiler
12342	    lt_prog_compiler_pic_CXX='-PIC'
12343	    ;;
12344	  *)
12345	    ;;
12346	esac
12347	;;
12348      sunos4*)
12349	case $cc_basename in
12350	  CC*)
12351	    # Sun C++ 4.x
12352	    lt_prog_compiler_pic_CXX='-pic'
12353	    lt_prog_compiler_static_CXX='-Bstatic'
12354	    ;;
12355	  lcc*)
12356	    # Lucid
12357	    lt_prog_compiler_pic_CXX='-pic'
12358	    ;;
12359	  *)
12360	    ;;
12361	esac
12362	;;
12363      tandem*)
12364	case $cc_basename in
12365	  NCC*)
12366	    # NonStop-UX NCC 3.20
12367	    lt_prog_compiler_pic_CXX='-KPIC'
12368	    ;;
12369	  *)
12370	    ;;
12371	esac
12372	;;
12373      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12374	case $cc_basename in
12375	  CC*)
12376	    lt_prog_compiler_wl_CXX='-Wl,'
12377	    lt_prog_compiler_pic_CXX='-KPIC'
12378	    lt_prog_compiler_static_CXX='-Bstatic'
12379	    ;;
12380	esac
12381	;;
12382      vxworks*)
12383	;;
12384      *)
12385	lt_prog_compiler_can_build_shared_CXX=no
12386	;;
12387    esac
12388  fi
12389
12390echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12391echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12392
12393#
12394# Check to make sure the PIC flag actually works.
12395#
12396if test -n "$lt_prog_compiler_pic_CXX"; then
12397
12398echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12399echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12400if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12401  echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403  lt_prog_compiler_pic_works_CXX=no
12404  ac_outfile=conftest.$ac_objext
12405   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12406   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12407   # Insert the option either (1) after the last *FLAGS variable, or
12408   # (2) before a word containing "conftest.", or (3) at the end.
12409   # Note that $ac_compile itself does not contain backslashes and begins
12410   # with a dollar sign (not a hyphen), so the echo should work correctly.
12411   # The option is referenced via a variable to avoid confusing sed.
12412   lt_compile=`echo "$ac_compile" | $SED \
12413   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12415   -e 's:$: $lt_compiler_flag:'`
12416   (eval echo "\"\$as_me:12416: $lt_compile\"" >&5)
12417   (eval "$lt_compile" 2>conftest.err)
12418   ac_status=$?
12419   cat conftest.err >&5
12420   echo "$as_me:12420: \$? = $ac_status" >&5
12421   if (exit $ac_status) && test -s "$ac_outfile"; then
12422     # The compiler can only warn and ignore the option if not recognized
12423     # So say no if there are warnings other than the usual output.
12424     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12425     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12426     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12427       lt_prog_compiler_pic_works_CXX=yes
12428     fi
12429   fi
12430   $rm conftest*
12431
12432fi
12433echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12434echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12435
12436if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12437    case $lt_prog_compiler_pic_CXX in
12438     "" | " "*) ;;
12439     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12440     esac
12441else
12442    lt_prog_compiler_pic_CXX=
12443     lt_prog_compiler_can_build_shared_CXX=no
12444fi
12445
12446fi
12447case $host_os in
12448  # For platforms which do not support PIC, -DPIC is meaningless:
12449  *djgpp*)
12450    lt_prog_compiler_pic_CXX=
12451    ;;
12452  *)
12453    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12454    ;;
12455esac
12456
12457#
12458# Check to make sure the static flag actually works.
12459#
12460wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12461echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12462echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12463if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12464  echo $ECHO_N "(cached) $ECHO_C" >&6
12465else
12466  lt_prog_compiler_static_works_CXX=no
12467   save_LDFLAGS="$LDFLAGS"
12468   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12469   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12470   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12471     # The linker can only warn and ignore the option if not recognized
12472     # So say no if there are warnings
12473     if test -s conftest.err; then
12474       # Append any errors to the config.log.
12475       cat conftest.err 1>&5
12476       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12477       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12478       if diff conftest.exp conftest.er2 >/dev/null; then
12479         lt_prog_compiler_static_works_CXX=yes
12480       fi
12481     else
12482       lt_prog_compiler_static_works_CXX=yes
12483     fi
12484   fi
12485   $rm conftest*
12486   LDFLAGS="$save_LDFLAGS"
12487
12488fi
12489echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12490echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12491
12492if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12493    :
12494else
12495    lt_prog_compiler_static_CXX=
12496fi
12497
12498
12499echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12500echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12501if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12502  echo $ECHO_N "(cached) $ECHO_C" >&6
12503else
12504  lt_cv_prog_compiler_c_o_CXX=no
12505   $rm -r conftest 2>/dev/null
12506   mkdir conftest
12507   cd conftest
12508   mkdir out
12509   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12510
12511   lt_compiler_flag="-o out/conftest2.$ac_objext"
12512   # Insert the option either (1) after the last *FLAGS variable, or
12513   # (2) before a word containing "conftest.", or (3) at the end.
12514   # Note that $ac_compile itself does not contain backslashes and begins
12515   # with a dollar sign (not a hyphen), so the echo should work correctly.
12516   lt_compile=`echo "$ac_compile" | $SED \
12517   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12518   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12519   -e 's:$: $lt_compiler_flag:'`
12520   (eval echo "\"\$as_me:12520: $lt_compile\"" >&5)
12521   (eval "$lt_compile" 2>out/conftest.err)
12522   ac_status=$?
12523   cat out/conftest.err >&5
12524   echo "$as_me:12524: \$? = $ac_status" >&5
12525   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12526   then
12527     # The compiler can only warn and ignore the option if not recognized
12528     # So say no if there are warnings
12529     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12530     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12531     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12532       lt_cv_prog_compiler_c_o_CXX=yes
12533     fi
12534   fi
12535   chmod u+w . 2>&5
12536   $rm conftest*
12537   # SGI C++ compiler will create directory out/ii_files/ for
12538   # template instantiation
12539   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12540   $rm out/* && rmdir out
12541   cd ..
12542   rmdir conftest
12543   $rm conftest*
12544
12545fi
12546echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12547echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12548
12549
12550hard_links="nottested"
12551if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12552  # do not overwrite the value of need_locks provided by the user
12553  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12554echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12555  hard_links=yes
12556  $rm conftest*
12557  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12558  touch conftest.a
12559  ln conftest.a conftest.b 2>&5 || hard_links=no
12560  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12561  echo "$as_me:$LINENO: result: $hard_links" >&5
12562echo "${ECHO_T}$hard_links" >&6
12563  if test "$hard_links" = no; then
12564    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12565echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12566    need_locks=warn
12567  fi
12568else
12569  need_locks=no
12570fi
12571
12572echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12573echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12574
12575  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12576  case $host_os in
12577  aix4* | aix5*)
12578    # If we're using GNU nm, then we don't want the "-C" option.
12579    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12580    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12581      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'
12582    else
12583      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'
12584    fi
12585    ;;
12586  pw32*)
12587    export_symbols_cmds_CXX="$ltdll_cmds"
12588  ;;
12589  cygwin* | mingw*)
12590    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'
12591  ;;
12592  *)
12593    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12594  ;;
12595  esac
12596
12597echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12598echo "${ECHO_T}$ld_shlibs_CXX" >&6
12599test "$ld_shlibs_CXX" = no && can_build_shared=no
12600
12601#
12602# Do we need to explicitly link libc?
12603#
12604case "x$archive_cmds_need_lc_CXX" in
12605x|xyes)
12606  # Assume -lc should be added
12607  archive_cmds_need_lc_CXX=yes
12608
12609  if test "$enable_shared" = yes && test "$GCC" = yes; then
12610    case $archive_cmds_CXX in
12611    *'~'*)
12612      # FIXME: we may have to deal with multi-command sequences.
12613      ;;
12614    '$CC '*)
12615      # Test whether the compiler implicitly links with -lc since on some
12616      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12617      # to ld, don't add -lc before -lgcc.
12618      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12619echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12620      $rm conftest*
12621      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12622
12623      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12624  (eval $ac_compile) 2>&5
12625  ac_status=$?
12626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627  (exit $ac_status); } 2>conftest.err; then
12628        soname=conftest
12629        lib=conftest
12630        libobjs=conftest.$ac_objext
12631        deplibs=
12632        wl=$lt_prog_compiler_wl_CXX
12633	pic_flag=$lt_prog_compiler_pic_CXX
12634        compiler_flags=-v
12635        linker_flags=-v
12636        verstring=
12637        output_objdir=.
12638        libname=conftest
12639        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12640        allow_undefined_flag_CXX=
12641        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12642  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12643  ac_status=$?
12644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645  (exit $ac_status); }
12646        then
12647	  archive_cmds_need_lc_CXX=no
12648        else
12649	  archive_cmds_need_lc_CXX=yes
12650        fi
12651        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12652      else
12653        cat conftest.err 1>&5
12654      fi
12655      $rm conftest*
12656      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12657echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12658      ;;
12659    esac
12660  fi
12661  ;;
12662esac
12663
12664echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12665echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12666library_names_spec=
12667libname_spec='lib$name'
12668soname_spec=
12669shrext_cmds=".so"
12670postinstall_cmds=
12671postuninstall_cmds=
12672finish_cmds=
12673finish_eval=
12674shlibpath_var=
12675shlibpath_overrides_runpath=unknown
12676version_type=none
12677dynamic_linker="$host_os ld.so"
12678sys_lib_dlsearch_path_spec="/lib /usr/lib"
12679if test "$GCC" = yes; then
12680  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12681  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12682    # if the path contains ";" then we assume it to be the separator
12683    # otherwise default to the standard path separator (i.e. ":") - it is
12684    # assumed that no part of a normal pathname contains ";" but that should
12685    # okay in the real world where ";" in dirpaths is itself problematic.
12686    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12687  else
12688    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12689  fi
12690else
12691  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12692fi
12693need_lib_prefix=unknown
12694hardcode_into_libs=no
12695
12696# when you set need_version to no, make sure it does not cause -set_version
12697# flags to be left without arguments
12698need_version=unknown
12699
12700case $host_os in
12701aix3*)
12702  version_type=linux
12703  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12704  shlibpath_var=LIBPATH
12705
12706  # AIX 3 has no versioning support, so we append a major version to the name.
12707  soname_spec='${libname}${release}${shared_ext}$major'
12708  ;;
12709
12710aix4* | aix5*)
12711  version_type=linux
12712  need_lib_prefix=no
12713  need_version=no
12714  hardcode_into_libs=yes
12715  if test "$host_cpu" = ia64; then
12716    # AIX 5 supports IA64
12717    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12718    shlibpath_var=LD_LIBRARY_PATH
12719  else
12720    # With GCC up to 2.95.x, collect2 would create an import file
12721    # for dependence libraries.  The import file would start with
12722    # the line `#! .'.  This would cause the generated library to
12723    # depend on `.', always an invalid library.  This was fixed in
12724    # development snapshots of GCC prior to 3.0.
12725    case $host_os in
12726      aix4 | aix4.[01] | aix4.[01].*)
12727      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12728	   echo ' yes '
12729	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12730	:
12731      else
12732	can_build_shared=no
12733      fi
12734      ;;
12735    esac
12736    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12737    # soname into executable. Probably we can add versioning support to
12738    # collect2, so additional links can be useful in future.
12739    if test "$aix_use_runtimelinking" = yes; then
12740      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12741      # instead of lib<name>.a to let people know that these are not
12742      # typical AIX shared libraries.
12743      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12744    else
12745      # We preserve .a as extension for shared libraries through AIX4.2
12746      # and later when we are not doing run time linking.
12747      library_names_spec='${libname}${release}.a $libname.a'
12748      soname_spec='${libname}${release}${shared_ext}$major'
12749    fi
12750    shlibpath_var=LIBPATH
12751  fi
12752  ;;
12753
12754amigaos*)
12755  library_names_spec='$libname.ixlibrary $libname.a'
12756  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12757  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'
12758  ;;
12759
12760beos*)
12761  library_names_spec='${libname}${shared_ext}'
12762  dynamic_linker="$host_os ld.so"
12763  shlibpath_var=LIBRARY_PATH
12764  ;;
12765
12766bsdi[45]*)
12767  version_type=linux
12768  need_version=no
12769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12770  soname_spec='${libname}${release}${shared_ext}$major'
12771  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12772  shlibpath_var=LD_LIBRARY_PATH
12773  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12774  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12775  # the default ld.so.conf also contains /usr/contrib/lib and
12776  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12777  # libtool to hard-code these into programs
12778  ;;
12779
12780cygwin* | mingw* | pw32*)
12781  version_type=windows
12782  shrext_cmds=".dll"
12783  need_version=no
12784  need_lib_prefix=no
12785
12786  case $GCC,$host_os in
12787  yes,cygwin* | yes,mingw* | yes,pw32*)
12788    library_names_spec='$libname.dll.a'
12789    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12790    postinstall_cmds='base_file=`basename \${file}`~
12791      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12792      dldir=$destdir/`dirname \$dlpath`~
12793      test -d \$dldir || mkdir -p \$dldir~
12794      $install_prog $dir/$dlname \$dldir/$dlname~
12795      chmod a+x \$dldir/$dlname'
12796    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12797      dlpath=$dir/\$dldll~
12798       $rm \$dlpath'
12799    shlibpath_overrides_runpath=yes
12800
12801    case $host_os in
12802    cygwin*)
12803      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12804      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12805      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12806      ;;
12807    mingw*)
12808      # MinGW DLLs use traditional 'lib' prefix
12809      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12810      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12811      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12812        # It is most probably a Windows format PATH printed by
12813        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12814        # path with ; separators, and with drive letters. We can handle the
12815        # drive letters (cygwin fileutils understands them), so leave them,
12816        # especially as we might pass files found there to a mingw objdump,
12817        # which wouldn't understand a cygwinified path. Ahh.
12818        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12819      else
12820        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12821      fi
12822      ;;
12823    pw32*)
12824      # pw32 DLLs use 'pw' prefix rather than 'lib'
12825      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12826      ;;
12827    esac
12828    ;;
12829
12830  *)
12831    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12832    ;;
12833  esac
12834  dynamic_linker='Win32 ld.exe'
12835  # FIXME: first we should search . and the directory the executable is in
12836  shlibpath_var=PATH
12837  ;;
12838
12839darwin* | rhapsody*)
12840  dynamic_linker="$host_os dyld"
12841  version_type=darwin
12842  need_lib_prefix=no
12843  need_version=no
12844  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12845  soname_spec='${libname}${release}${major}$shared_ext'
12846  shlibpath_overrides_runpath=yes
12847  shlibpath_var=DYLD_LIBRARY_PATH
12848  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12849  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12850  if test "$GCC" = yes; then
12851    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"`
12852  else
12853    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12854  fi
12855  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12856  ;;
12857
12858dgux*)
12859  version_type=linux
12860  need_lib_prefix=no
12861  need_version=no
12862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12863  soname_spec='${libname}${release}${shared_ext}$major'
12864  shlibpath_var=LD_LIBRARY_PATH
12865  ;;
12866
12867freebsd1*)
12868  dynamic_linker=no
12869  ;;
12870
12871kfreebsd*-gnu)
12872  version_type=linux
12873  need_lib_prefix=no
12874  need_version=no
12875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12876  soname_spec='${libname}${release}${shared_ext}$major'
12877  shlibpath_var=LD_LIBRARY_PATH
12878  shlibpath_overrides_runpath=no
12879  hardcode_into_libs=yes
12880  dynamic_linker='GNU ld.so'
12881  ;;
12882
12883freebsd* | dragonfly*)
12884  # DragonFly does not have aout.  When/if they implement a new
12885  # versioning mechanism, adjust this.
12886  if test -x /usr/bin/objformat; then
12887    objformat=`/usr/bin/objformat`
12888  else
12889    case $host_os in
12890    freebsd[123]*) objformat=aout ;;
12891    *) objformat=elf ;;
12892    esac
12893  fi
12894  version_type=freebsd-$objformat
12895  case $version_type in
12896    freebsd-elf*)
12897      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12898      need_version=no
12899      need_lib_prefix=no
12900      ;;
12901    freebsd-*)
12902      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12903      need_version=yes
12904      ;;
12905  esac
12906  shlibpath_var=LD_LIBRARY_PATH
12907  case $host_os in
12908  freebsd2*)
12909    shlibpath_overrides_runpath=yes
12910    ;;
12911  freebsd3.[01]* | freebsdelf3.[01]*)
12912    shlibpath_overrides_runpath=yes
12913    hardcode_into_libs=yes
12914    ;;
12915  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12916  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12917    shlibpath_overrides_runpath=no
12918    hardcode_into_libs=yes
12919    ;;
12920  freebsd*) # from 4.6 on
12921    shlibpath_overrides_runpath=yes
12922    hardcode_into_libs=yes
12923    ;;
12924  esac
12925  ;;
12926
12927gnu*)
12928  version_type=linux
12929  need_lib_prefix=no
12930  need_version=no
12931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12932  soname_spec='${libname}${release}${shared_ext}$major'
12933  shlibpath_var=LD_LIBRARY_PATH
12934  hardcode_into_libs=yes
12935  ;;
12936
12937hpux9* | hpux10* | hpux11*)
12938  # Give a soname corresponding to the major version so that dld.sl refuses to
12939  # link against other versions.
12940  version_type=sunos
12941  need_lib_prefix=no
12942  need_version=no
12943  case $host_cpu in
12944  ia64*)
12945    shrext_cmds='.so'
12946    hardcode_into_libs=yes
12947    dynamic_linker="$host_os dld.so"
12948    shlibpath_var=LD_LIBRARY_PATH
12949    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12950    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12951    soname_spec='${libname}${release}${shared_ext}$major'
12952    if test "X$HPUX_IA64_MODE" = X32; then
12953      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12954    else
12955      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12956    fi
12957    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12958    ;;
12959   hppa*64*)
12960     shrext_cmds='.sl'
12961     hardcode_into_libs=yes
12962     dynamic_linker="$host_os dld.sl"
12963     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12964     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12966     soname_spec='${libname}${release}${shared_ext}$major'
12967     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12968     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12969     ;;
12970   *)
12971    shrext_cmds='.sl'
12972    dynamic_linker="$host_os dld.sl"
12973    shlibpath_var=SHLIB_PATH
12974    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12975    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976    soname_spec='${libname}${release}${shared_ext}$major'
12977    ;;
12978  esac
12979  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12980  postinstall_cmds='chmod 555 $lib'
12981  ;;
12982
12983interix3*)
12984  version_type=linux
12985  need_lib_prefix=no
12986  need_version=no
12987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12988  soname_spec='${libname}${release}${shared_ext}$major'
12989  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12990  shlibpath_var=LD_LIBRARY_PATH
12991  shlibpath_overrides_runpath=no
12992  hardcode_into_libs=yes
12993  ;;
12994
12995irix5* | irix6* | nonstopux*)
12996  case $host_os in
12997    nonstopux*) version_type=nonstopux ;;
12998    *)
12999	if test "$lt_cv_prog_gnu_ld" = yes; then
13000		version_type=linux
13001	else
13002		version_type=irix
13003	fi ;;
13004  esac
13005  need_lib_prefix=no
13006  need_version=no
13007  soname_spec='${libname}${release}${shared_ext}$major'
13008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13009  case $host_os in
13010  irix5* | nonstopux*)
13011    libsuff= shlibsuff=
13012    ;;
13013  *)
13014    case $LD in # libtool.m4 will add one of these switches to LD
13015    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13016      libsuff= shlibsuff= libmagic=32-bit;;
13017    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13018      libsuff=32 shlibsuff=N32 libmagic=N32;;
13019    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13020      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13021    *) libsuff= shlibsuff= libmagic=never-match;;
13022    esac
13023    ;;
13024  esac
13025  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13026  shlibpath_overrides_runpath=no
13027  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13028  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13029  hardcode_into_libs=yes
13030  ;;
13031
13032# No shared lib support for Linux oldld, aout, or coff.
13033linux*oldld* | linux*aout* | linux*coff*)
13034  dynamic_linker=no
13035  ;;
13036
13037# This must be Linux ELF.
13038linux*)
13039  version_type=linux
13040  need_lib_prefix=no
13041  need_version=no
13042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043  soname_spec='${libname}${release}${shared_ext}$major'
13044  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13045  shlibpath_var=LD_LIBRARY_PATH
13046  shlibpath_overrides_runpath=no
13047  # This implies no fast_install, which is unacceptable.
13048  # Some rework will be needed to allow for fast_install
13049  # before this can be enabled.
13050  hardcode_into_libs=yes
13051
13052  # find out which ABI we are using
13053  libsuff=
13054  case "$host_cpu" in
13055  x86_64*|s390x*|powerpc64*)
13056    echo '#line 13056 "configure"' > conftest.$ac_ext
13057    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058  (eval $ac_compile) 2>&5
13059  ac_status=$?
13060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061  (exit $ac_status); }; then
13062      case `/usr/bin/file conftest.$ac_objext` in
13063      *64-bit*)
13064        libsuff=64
13065        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13066        ;;
13067      esac
13068    fi
13069    rm -rf conftest*
13070    ;;
13071  esac
13072
13073  # Append ld.so.conf contents to the search path
13074  if test -f /etc/ld.so.conf; then
13075    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' ' '`
13076    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13077  fi
13078
13079  # We used to test for /lib/ld.so.1 and disable shared libraries on
13080  # powerpc, because MkLinux only supported shared libraries with the
13081  # GNU dynamic linker.  Since this was broken with cross compilers,
13082  # most powerpc-linux boxes support dynamic linking these days and
13083  # people can always --disable-shared, the test was removed, and we
13084  # assume the GNU/Linux dynamic linker is in use.
13085  dynamic_linker='GNU/Linux ld.so'
13086  ;;
13087
13088knetbsd*-gnu)
13089  version_type=linux
13090  need_lib_prefix=no
13091  need_version=no
13092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13093  soname_spec='${libname}${release}${shared_ext}$major'
13094  shlibpath_var=LD_LIBRARY_PATH
13095  shlibpath_overrides_runpath=no
13096  hardcode_into_libs=yes
13097  dynamic_linker='GNU ld.so'
13098  ;;
13099
13100netbsd*)
13101  version_type=sunos
13102  need_lib_prefix=no
13103  need_version=no
13104  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13105    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13106    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13107    dynamic_linker='NetBSD (a.out) ld.so'
13108  else
13109    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13110    soname_spec='${libname}${release}${shared_ext}$major'
13111    dynamic_linker='NetBSD ld.elf_so'
13112  fi
13113  shlibpath_var=LD_LIBRARY_PATH
13114  shlibpath_overrides_runpath=yes
13115  hardcode_into_libs=yes
13116  ;;
13117
13118newsos6)
13119  version_type=linux
13120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13121  shlibpath_var=LD_LIBRARY_PATH
13122  shlibpath_overrides_runpath=yes
13123  ;;
13124
13125nto-qnx*)
13126  version_type=linux
13127  need_lib_prefix=no
13128  need_version=no
13129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13130  soname_spec='${libname}${release}${shared_ext}$major'
13131  shlibpath_var=LD_LIBRARY_PATH
13132  shlibpath_overrides_runpath=yes
13133  ;;
13134
13135openbsd*)
13136  version_type=sunos
13137  sys_lib_dlsearch_path_spec="/usr/lib"
13138  need_lib_prefix=no
13139  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13140  case $host_os in
13141    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13142    *)                         need_version=no  ;;
13143  esac
13144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13145  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13146  shlibpath_var=LD_LIBRARY_PATH
13147  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13148    case $host_os in
13149      openbsd2.[89] | openbsd2.[89].*)
13150	shlibpath_overrides_runpath=no
13151	;;
13152      *)
13153	shlibpath_overrides_runpath=yes
13154	;;
13155      esac
13156  else
13157    shlibpath_overrides_runpath=yes
13158  fi
13159  ;;
13160
13161os2*)
13162  libname_spec='$name'
13163  shrext_cmds=".dll"
13164  need_lib_prefix=no
13165  library_names_spec='$libname${shared_ext} $libname.a'
13166  dynamic_linker='OS/2 ld.exe'
13167  shlibpath_var=LIBPATH
13168  ;;
13169
13170osf3* | osf4* | osf5*)
13171  version_type=osf
13172  need_lib_prefix=no
13173  need_version=no
13174  soname_spec='${libname}${release}${shared_ext}$major'
13175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13176  shlibpath_var=LD_LIBRARY_PATH
13177  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13178  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13179  ;;
13180
13181solaris*)
13182  version_type=linux
13183  need_lib_prefix=no
13184  need_version=no
13185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186  soname_spec='${libname}${release}${shared_ext}$major'
13187  shlibpath_var=LD_LIBRARY_PATH
13188  shlibpath_overrides_runpath=yes
13189  hardcode_into_libs=yes
13190  # ldd complains unless libraries are executable
13191  postinstall_cmds='chmod +x $lib'
13192  ;;
13193
13194sunos4*)
13195  version_type=sunos
13196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13197  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13198  shlibpath_var=LD_LIBRARY_PATH
13199  shlibpath_overrides_runpath=yes
13200  if test "$with_gnu_ld" = yes; then
13201    need_lib_prefix=no
13202  fi
13203  need_version=yes
13204  ;;
13205
13206sysv4 | sysv4.3*)
13207  version_type=linux
13208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13209  soname_spec='${libname}${release}${shared_ext}$major'
13210  shlibpath_var=LD_LIBRARY_PATH
13211  case $host_vendor in
13212    sni)
13213      shlibpath_overrides_runpath=no
13214      need_lib_prefix=no
13215      export_dynamic_flag_spec='${wl}-Blargedynsym'
13216      runpath_var=LD_RUN_PATH
13217      ;;
13218    siemens)
13219      need_lib_prefix=no
13220      ;;
13221    motorola)
13222      need_lib_prefix=no
13223      need_version=no
13224      shlibpath_overrides_runpath=no
13225      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13226      ;;
13227  esac
13228  ;;
13229
13230sysv4*MP*)
13231  if test -d /usr/nec ;then
13232    version_type=linux
13233    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13234    soname_spec='$libname${shared_ext}.$major'
13235    shlibpath_var=LD_LIBRARY_PATH
13236  fi
13237  ;;
13238
13239sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13240  version_type=freebsd-elf
13241  need_lib_prefix=no
13242  need_version=no
13243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13244  soname_spec='${libname}${release}${shared_ext}$major'
13245  shlibpath_var=LD_LIBRARY_PATH
13246  hardcode_into_libs=yes
13247  if test "$with_gnu_ld" = yes; then
13248    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13249    shlibpath_overrides_runpath=no
13250  else
13251    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13252    shlibpath_overrides_runpath=yes
13253    case $host_os in
13254      sco3.2v5*)
13255        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13256	;;
13257    esac
13258  fi
13259  sys_lib_dlsearch_path_spec='/usr/lib'
13260  ;;
13261
13262uts4*)
13263  version_type=linux
13264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13265  soname_spec='${libname}${release}${shared_ext}$major'
13266  shlibpath_var=LD_LIBRARY_PATH
13267  ;;
13268
13269*)
13270  dynamic_linker=no
13271  ;;
13272esac
13273echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13274echo "${ECHO_T}$dynamic_linker" >&6
13275test "$dynamic_linker" = no && can_build_shared=no
13276
13277variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13278if test "$GCC" = yes; then
13279  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13280fi
13281
13282echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13283echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13284hardcode_action_CXX=
13285if test -n "$hardcode_libdir_flag_spec_CXX" || \
13286   test -n "$runpath_var_CXX" || \
13287   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13288
13289  # We can hardcode non-existant directories.
13290  if test "$hardcode_direct_CXX" != no &&
13291     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13292     # have to relink, otherwise we might link with an installed library
13293     # when we should be linking with a yet-to-be-installed one
13294     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13295     test "$hardcode_minus_L_CXX" != no; then
13296    # Linking always hardcodes the temporary library directory.
13297    hardcode_action_CXX=relink
13298  else
13299    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13300    hardcode_action_CXX=immediate
13301  fi
13302else
13303  # We cannot hardcode anything, or else we can only hardcode existing
13304  # directories.
13305  hardcode_action_CXX=unsupported
13306fi
13307echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13308echo "${ECHO_T}$hardcode_action_CXX" >&6
13309
13310if test "$hardcode_action_CXX" = relink; then
13311  # Fast installation is not supported
13312  enable_fast_install=no
13313elif test "$shlibpath_overrides_runpath" = yes ||
13314     test "$enable_shared" = no; then
13315  # Fast installation is not necessary
13316  enable_fast_install=needless
13317fi
13318
13319
13320# The else clause should only fire when bootstrapping the
13321# libtool distribution, otherwise you forgot to ship ltmain.sh
13322# with your package, and you will get complaints that there are
13323# no rules to generate ltmain.sh.
13324if test -f "$ltmain"; then
13325  # See if we are running on zsh, and set the options which allow our commands through
13326  # without removal of \ escapes.
13327  if test -n "${ZSH_VERSION+set}" ; then
13328    setopt NO_GLOB_SUBST
13329  fi
13330  # Now quote all the things that may contain metacharacters while being
13331  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13332  # variables and quote the copies for generation of the libtool script.
13333  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13334    SED SHELL STRIP \
13335    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13336    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13337    deplibs_check_method reload_flag reload_cmds need_locks \
13338    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13339    lt_cv_sys_global_symbol_to_c_name_address \
13340    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13341    old_postinstall_cmds old_postuninstall_cmds \
13342    compiler_CXX \
13343    CC_CXX \
13344    LD_CXX \
13345    lt_prog_compiler_wl_CXX \
13346    lt_prog_compiler_pic_CXX \
13347    lt_prog_compiler_static_CXX \
13348    lt_prog_compiler_no_builtin_flag_CXX \
13349    export_dynamic_flag_spec_CXX \
13350    thread_safe_flag_spec_CXX \
13351    whole_archive_flag_spec_CXX \
13352    enable_shared_with_static_runtimes_CXX \
13353    old_archive_cmds_CXX \
13354    old_archive_from_new_cmds_CXX \
13355    predep_objects_CXX \
13356    postdep_objects_CXX \
13357    predeps_CXX \
13358    postdeps_CXX \
13359    compiler_lib_search_path_CXX \
13360    archive_cmds_CXX \
13361    archive_expsym_cmds_CXX \
13362    postinstall_cmds_CXX \
13363    postuninstall_cmds_CXX \
13364    old_archive_from_expsyms_cmds_CXX \
13365    allow_undefined_flag_CXX \
13366    no_undefined_flag_CXX \
13367    export_symbols_cmds_CXX \
13368    hardcode_libdir_flag_spec_CXX \
13369    hardcode_libdir_flag_spec_ld_CXX \
13370    hardcode_libdir_separator_CXX \
13371    hardcode_automatic_CXX \
13372    module_cmds_CXX \
13373    module_expsym_cmds_CXX \
13374    lt_cv_prog_compiler_c_o_CXX \
13375    exclude_expsyms_CXX \
13376    include_expsyms_CXX; do
13377
13378    case $var in
13379    old_archive_cmds_CXX | \
13380    old_archive_from_new_cmds_CXX | \
13381    archive_cmds_CXX | \
13382    archive_expsym_cmds_CXX | \
13383    module_cmds_CXX | \
13384    module_expsym_cmds_CXX | \
13385    old_archive_from_expsyms_cmds_CXX | \
13386    export_symbols_cmds_CXX | \
13387    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13388    postinstall_cmds | postuninstall_cmds | \
13389    old_postinstall_cmds | old_postuninstall_cmds | \
13390    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13391      # Double-quote double-evaled strings.
13392      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13393      ;;
13394    *)
13395      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13396      ;;
13397    esac
13398  done
13399
13400  case $lt_echo in
13401  *'\$0 --fallback-echo"')
13402    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13403    ;;
13404  esac
13405
13406cfgfile="$ofile"
13407
13408  cat <<__EOF__ >> "$cfgfile"
13409# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13410
13411# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13412
13413# Shell to use when invoking shell scripts.
13414SHELL=$lt_SHELL
13415
13416# Whether or not to build shared libraries.
13417build_libtool_libs=$enable_shared
13418
13419# Whether or not to build static libraries.
13420build_old_libs=$enable_static
13421
13422# Whether or not to add -lc for building shared libraries.
13423build_libtool_need_lc=$archive_cmds_need_lc_CXX
13424
13425# Whether or not to disallow shared libs when runtime libs are static
13426allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13427
13428# Whether or not to optimize for fast installation.
13429fast_install=$enable_fast_install
13430
13431# The host system.
13432host_alias=$host_alias
13433host=$host
13434host_os=$host_os
13435
13436# The build system.
13437build_alias=$build_alias
13438build=$build
13439build_os=$build_os
13440
13441# An echo program that does not interpret backslashes.
13442echo=$lt_echo
13443
13444# The archiver.
13445AR=$lt_AR
13446AR_FLAGS=$lt_AR_FLAGS
13447
13448# A C compiler.
13449LTCC=$lt_LTCC
13450
13451# LTCC compiler flags.
13452LTCFLAGS=$lt_LTCFLAGS
13453
13454# A language-specific compiler.
13455CC=$lt_compiler_CXX
13456
13457# Is the compiler the GNU C compiler?
13458with_gcc=$GCC_CXX
13459
13460# An ERE matcher.
13461EGREP=$lt_EGREP
13462
13463# The linker used to build libraries.
13464LD=$lt_LD_CXX
13465
13466# Whether we need hard or soft links.
13467LN_S=$lt_LN_S
13468
13469# A BSD-compatible nm program.
13470NM=$lt_NM
13471
13472# A symbol stripping program
13473STRIP=$lt_STRIP
13474
13475# Used to examine libraries when file_magic_cmd begins "file"
13476MAGIC_CMD=$MAGIC_CMD
13477
13478# Used on cygwin: DLL creation program.
13479DLLTOOL="$DLLTOOL"
13480
13481# Used on cygwin: object dumper.
13482OBJDUMP="$OBJDUMP"
13483
13484# Used on cygwin: assembler.
13485AS="$AS"
13486
13487# The name of the directory that contains temporary libtool files.
13488objdir=$objdir
13489
13490# How to create reloadable object files.
13491reload_flag=$lt_reload_flag
13492reload_cmds=$lt_reload_cmds
13493
13494# How to pass a linker flag through the compiler.
13495wl=$lt_lt_prog_compiler_wl_CXX
13496
13497# Object file suffix (normally "o").
13498objext="$ac_objext"
13499
13500# Old archive suffix (normally "a").
13501libext="$libext"
13502
13503# Shared library suffix (normally ".so").
13504shrext_cmds='$shrext_cmds'
13505
13506# Executable file suffix (normally "").
13507exeext="$exeext"
13508
13509# Additional compiler flags for building library objects.
13510pic_flag=$lt_lt_prog_compiler_pic_CXX
13511pic_mode=$pic_mode
13512
13513# What is the maximum length of a command?
13514max_cmd_len=$lt_cv_sys_max_cmd_len
13515
13516# Does compiler simultaneously support -c and -o options?
13517compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13518
13519# Must we lock files when doing compilation?
13520need_locks=$lt_need_locks
13521
13522# Do we need the lib prefix for modules?
13523need_lib_prefix=$need_lib_prefix
13524
13525# Do we need a version for libraries?
13526need_version=$need_version
13527
13528# Whether dlopen is supported.
13529dlopen_support=$enable_dlopen
13530
13531# Whether dlopen of programs is supported.
13532dlopen_self=$enable_dlopen_self
13533
13534# Whether dlopen of statically linked programs is supported.
13535dlopen_self_static=$enable_dlopen_self_static
13536
13537# Compiler flag to prevent dynamic linking.
13538link_static_flag=$lt_lt_prog_compiler_static_CXX
13539
13540# Compiler flag to turn off builtin functions.
13541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13542
13543# Compiler flag to allow reflexive dlopens.
13544export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13545
13546# Compiler flag to generate shared objects directly from archives.
13547whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13548
13549# Compiler flag to generate thread-safe objects.
13550thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13551
13552# Library versioning type.
13553version_type=$version_type
13554
13555# Format of library name prefix.
13556libname_spec=$lt_libname_spec
13557
13558# List of archive names.  First name is the real one, the rest are links.
13559# The last name is the one that the linker finds with -lNAME.
13560library_names_spec=$lt_library_names_spec
13561
13562# The coded name of the library, if different from the real name.
13563soname_spec=$lt_soname_spec
13564
13565# Commands used to build and install an old-style archive.
13566RANLIB=$lt_RANLIB
13567old_archive_cmds=$lt_old_archive_cmds_CXX
13568old_postinstall_cmds=$lt_old_postinstall_cmds
13569old_postuninstall_cmds=$lt_old_postuninstall_cmds
13570
13571# Create an old-style archive from a shared archive.
13572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13573
13574# Create a temporary old-style archive to link instead of a shared archive.
13575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13576
13577# Commands used to build and install a shared archive.
13578archive_cmds=$lt_archive_cmds_CXX
13579archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13580postinstall_cmds=$lt_postinstall_cmds
13581postuninstall_cmds=$lt_postuninstall_cmds
13582
13583# Commands used to build a loadable module (assumed same as above if empty)
13584module_cmds=$lt_module_cmds_CXX
13585module_expsym_cmds=$lt_module_expsym_cmds_CXX
13586
13587# Commands to strip libraries.
13588old_striplib=$lt_old_striplib
13589striplib=$lt_striplib
13590
13591# Dependencies to place before the objects being linked to create a
13592# shared library.
13593predep_objects=$lt_predep_objects_CXX
13594
13595# Dependencies to place after the objects being linked to create a
13596# shared library.
13597postdep_objects=$lt_postdep_objects_CXX
13598
13599# Dependencies to place before the objects being linked to create a
13600# shared library.
13601predeps=$lt_predeps_CXX
13602
13603# Dependencies to place after the objects being linked to create a
13604# shared library.
13605postdeps=$lt_postdeps_CXX
13606
13607# The library search path used internally by the compiler when linking
13608# a shared library.
13609compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13610
13611# Method to check whether dependent libraries are shared objects.
13612deplibs_check_method=$lt_deplibs_check_method
13613
13614# Command to use when deplibs_check_method == file_magic.
13615file_magic_cmd=$lt_file_magic_cmd
13616
13617# Flag that allows shared libraries with undefined symbols to be built.
13618allow_undefined_flag=$lt_allow_undefined_flag_CXX
13619
13620# Flag that forces no undefined symbols.
13621no_undefined_flag=$lt_no_undefined_flag_CXX
13622
13623# Commands used to finish a libtool library installation in a directory.
13624finish_cmds=$lt_finish_cmds
13625
13626# Same as above, but a single script fragment to be evaled but not shown.
13627finish_eval=$lt_finish_eval
13628
13629# Take the output of nm and produce a listing of raw symbols and C names.
13630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13631
13632# Transform the output of nm in a proper C declaration
13633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13634
13635# Transform the output of nm in a C name address pair
13636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13637
13638# This is the shared library runtime path variable.
13639runpath_var=$runpath_var
13640
13641# This is the shared library path variable.
13642shlibpath_var=$shlibpath_var
13643
13644# Is shlibpath searched before the hard-coded library search path?
13645shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13646
13647# How to hardcode a shared library path into an executable.
13648hardcode_action=$hardcode_action_CXX
13649
13650# Whether we should hardcode library paths into libraries.
13651hardcode_into_libs=$hardcode_into_libs
13652
13653# Flag to hardcode \$libdir into a binary during linking.
13654# This must work even if \$libdir does not exist.
13655hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13656
13657# If ld is used when linking, flag to hardcode \$libdir into
13658# a binary during linking. This must work even if \$libdir does
13659# not exist.
13660hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13661
13662# Whether we need a single -rpath flag with a separated argument.
13663hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13664
13665# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13666# resulting binary.
13667hardcode_direct=$hardcode_direct_CXX
13668
13669# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13670# resulting binary.
13671hardcode_minus_L=$hardcode_minus_L_CXX
13672
13673# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13674# the resulting binary.
13675hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13676
13677# Set to yes if building a shared library automatically hardcodes DIR into the library
13678# and all subsequent libraries and executables linked against it.
13679hardcode_automatic=$hardcode_automatic_CXX
13680
13681# Variables whose values should be saved in libtool wrapper scripts and
13682# restored at relink time.
13683variables_saved_for_relink="$variables_saved_for_relink"
13684
13685# Whether libtool must link a program against all its dependency libraries.
13686link_all_deplibs=$link_all_deplibs_CXX
13687
13688# Compile-time system search path for libraries
13689sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13690
13691# Run-time system search path for libraries
13692sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13693
13694# Fix the shell variable \$srcfile for the compiler.
13695fix_srcfile_path="$fix_srcfile_path_CXX"
13696
13697# Set to yes if exported symbols are required.
13698always_export_symbols=$always_export_symbols_CXX
13699
13700# The commands to list exported symbols.
13701export_symbols_cmds=$lt_export_symbols_cmds_CXX
13702
13703# The commands to extract the exported symbol list from a shared archive.
13704extract_expsyms_cmds=$lt_extract_expsyms_cmds
13705
13706# Symbols that should not be listed in the preloaded symbols.
13707exclude_expsyms=$lt_exclude_expsyms_CXX
13708
13709# Symbols that must always be exported.
13710include_expsyms=$lt_include_expsyms_CXX
13711
13712# ### END LIBTOOL TAG CONFIG: $tagname
13713
13714__EOF__
13715
13716
13717else
13718  # If there is no Makefile yet, we rely on a make rule to execute
13719  # `config.status --recheck' to rerun these tests and create the
13720  # libtool script then.
13721  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13722  if test -f "$ltmain_in"; then
13723    test -f Makefile && make "$ltmain"
13724  fi
13725fi
13726
13727
13728ac_ext=c
13729ac_cpp='$CPP $CPPFLAGS'
13730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13732ac_compiler_gnu=$ac_cv_c_compiler_gnu
13733
13734CC=$lt_save_CC
13735LDCXX=$LD
13736LD=$lt_save_LD
13737GCC=$lt_save_GCC
13738with_gnu_ldcxx=$with_gnu_ld
13739with_gnu_ld=$lt_save_with_gnu_ld
13740lt_cv_path_LDCXX=$lt_cv_path_LD
13741lt_cv_path_LD=$lt_save_path_LD
13742lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13743lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13744
13745	else
13746	  tagname=""
13747	fi
13748	;;
13749
13750      F77)
13751	if test -n "$F77" && test "X$F77" != "Xno"; then
13752
13753ac_ext=f
13754ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13755ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13756ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13757
13758
13759archive_cmds_need_lc_F77=no
13760allow_undefined_flag_F77=
13761always_export_symbols_F77=no
13762archive_expsym_cmds_F77=
13763export_dynamic_flag_spec_F77=
13764hardcode_direct_F77=no
13765hardcode_libdir_flag_spec_F77=
13766hardcode_libdir_flag_spec_ld_F77=
13767hardcode_libdir_separator_F77=
13768hardcode_minus_L_F77=no
13769hardcode_automatic_F77=no
13770module_cmds_F77=
13771module_expsym_cmds_F77=
13772link_all_deplibs_F77=unknown
13773old_archive_cmds_F77=$old_archive_cmds
13774no_undefined_flag_F77=
13775whole_archive_flag_spec_F77=
13776enable_shared_with_static_runtimes_F77=no
13777
13778# Source file extension for f77 test sources.
13779ac_ext=f
13780
13781# Object file extension for compiled f77 test sources.
13782objext=o
13783objext_F77=$objext
13784
13785# Code to be used in simple compile tests
13786lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13787
13788# Code to be used in simple link tests
13789lt_simple_link_test_code="      program t\n      end\n"
13790
13791# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13792
13793# If no C compiler was specified, use CC.
13794LTCC=${LTCC-"$CC"}
13795
13796# If no C compiler flags were specified, use CFLAGS.
13797LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13798
13799# Allow CC to be a program name with arguments.
13800compiler=$CC
13801
13802
13803# save warnings/boilerplate of simple test code
13804ac_outfile=conftest.$ac_objext
13805printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13806eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13807_lt_compiler_boilerplate=`cat conftest.err`
13808$rm conftest*
13809
13810ac_outfile=conftest.$ac_objext
13811printf "$lt_simple_link_test_code" >conftest.$ac_ext
13812eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13813_lt_linker_boilerplate=`cat conftest.err`
13814$rm conftest*
13815
13816
13817# Allow CC to be a program name with arguments.
13818lt_save_CC="$CC"
13819CC=${F77-"f77"}
13820compiler=$CC
13821compiler_F77=$CC
13822for cc_temp in $compiler""; do
13823  case $cc_temp in
13824    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13825    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13826    \-*) ;;
13827    *) break;;
13828  esac
13829done
13830cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13831
13832
13833echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13834echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13835echo "$as_me:$LINENO: result: $can_build_shared" >&5
13836echo "${ECHO_T}$can_build_shared" >&6
13837
13838echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13839echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13840test "$can_build_shared" = "no" && enable_shared=no
13841
13842# On AIX, shared libraries and static libraries use the same namespace, and
13843# are all built from PIC.
13844case $host_os in
13845aix3*)
13846  test "$enable_shared" = yes && enable_static=no
13847  if test -n "$RANLIB"; then
13848    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13849    postinstall_cmds='$RANLIB $lib'
13850  fi
13851  ;;
13852aix4* | aix5*)
13853  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13854    test "$enable_shared" = yes && enable_static=no
13855  fi
13856  ;;
13857esac
13858echo "$as_me:$LINENO: result: $enable_shared" >&5
13859echo "${ECHO_T}$enable_shared" >&6
13860
13861echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13862echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13863# Make sure either enable_shared or enable_static is yes.
13864test "$enable_shared" = yes || enable_static=yes
13865echo "$as_me:$LINENO: result: $enable_static" >&5
13866echo "${ECHO_T}$enable_static" >&6
13867
13868GCC_F77="$G77"
13869LD_F77="$LD"
13870
13871lt_prog_compiler_wl_F77=
13872lt_prog_compiler_pic_F77=
13873lt_prog_compiler_static_F77=
13874
13875echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13876echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13877
13878  if test "$GCC" = yes; then
13879    lt_prog_compiler_wl_F77='-Wl,'
13880    lt_prog_compiler_static_F77='-static'
13881
13882    case $host_os in
13883      aix*)
13884      # All AIX code is PIC.
13885      if test "$host_cpu" = ia64; then
13886	# AIX 5 now supports IA64 processor
13887	lt_prog_compiler_static_F77='-Bstatic'
13888      fi
13889      ;;
13890
13891    amigaos*)
13892      # FIXME: we need at least 68020 code to build shared libraries, but
13893      # adding the `-m68020' flag to GCC prevents building anything better,
13894      # like `-m68040'.
13895      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13896      ;;
13897
13898    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13899      # PIC is the default for these OSes.
13900      ;;
13901
13902    mingw* | pw32* | os2*)
13903      # This hack is so that the source file can tell whether it is being
13904      # built for inclusion in a dll (and should export symbols for example).
13905      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13906      ;;
13907
13908    darwin* | rhapsody*)
13909      # PIC is the default on this platform
13910      # Common symbols not allowed in MH_DYLIB files
13911      lt_prog_compiler_pic_F77='-fno-common'
13912      ;;
13913
13914    interix3*)
13915      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13916      # Instead, we relocate shared libraries at runtime.
13917      ;;
13918
13919    msdosdjgpp*)
13920      # Just because we use GCC doesn't mean we suddenly get shared libraries
13921      # on systems that don't support them.
13922      lt_prog_compiler_can_build_shared_F77=no
13923      enable_shared=no
13924      ;;
13925
13926    sysv4*MP*)
13927      if test -d /usr/nec; then
13928	lt_prog_compiler_pic_F77=-Kconform_pic
13929      fi
13930      ;;
13931
13932    hpux*)
13933      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13934      # not for PA HP-UX.
13935      case $host_cpu in
13936      hppa*64*|ia64*)
13937	# +Z the default
13938	;;
13939      *)
13940	lt_prog_compiler_pic_F77='-fPIC'
13941	;;
13942      esac
13943      ;;
13944
13945    *)
13946      lt_prog_compiler_pic_F77='-fPIC'
13947      ;;
13948    esac
13949  else
13950    # PORTME Check for flag to pass linker flags through the system compiler.
13951    case $host_os in
13952    aix*)
13953      lt_prog_compiler_wl_F77='-Wl,'
13954      if test "$host_cpu" = ia64; then
13955	# AIX 5 now supports IA64 processor
13956	lt_prog_compiler_static_F77='-Bstatic'
13957      else
13958	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13959      fi
13960      ;;
13961      darwin*)
13962        # PIC is the default on this platform
13963        # Common symbols not allowed in MH_DYLIB files
13964       case $cc_basename in
13965         xlc*)
13966         lt_prog_compiler_pic_F77='-qnocommon'
13967         lt_prog_compiler_wl_F77='-Wl,'
13968         ;;
13969       esac
13970       ;;
13971
13972    mingw* | pw32* | os2*)
13973      # This hack is so that the source file can tell whether it is being
13974      # built for inclusion in a dll (and should export symbols for example).
13975      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13976      ;;
13977
13978    hpux9* | hpux10* | hpux11*)
13979      lt_prog_compiler_wl_F77='-Wl,'
13980      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13981      # not for PA HP-UX.
13982      case $host_cpu in
13983      hppa*64*|ia64*)
13984	# +Z the default
13985	;;
13986      *)
13987	lt_prog_compiler_pic_F77='+Z'
13988	;;
13989      esac
13990      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13991      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13992      ;;
13993
13994    irix5* | irix6* | nonstopux*)
13995      lt_prog_compiler_wl_F77='-Wl,'
13996      # PIC (with -KPIC) is the default.
13997      lt_prog_compiler_static_F77='-non_shared'
13998      ;;
13999
14000    newsos6)
14001      lt_prog_compiler_pic_F77='-KPIC'
14002      lt_prog_compiler_static_F77='-Bstatic'
14003      ;;
14004
14005    linux*)
14006      case $cc_basename in
14007      icc* | ecc*)
14008	lt_prog_compiler_wl_F77='-Wl,'
14009	lt_prog_compiler_pic_F77='-KPIC'
14010	lt_prog_compiler_static_F77='-static'
14011        ;;
14012      pgcc* | pgf77* | pgf90* | pgf95*)
14013        # Portland Group compilers (*not* the Pentium gcc compiler,
14014	# which looks to be a dead project)
14015	lt_prog_compiler_wl_F77='-Wl,'
14016	lt_prog_compiler_pic_F77='-fpic'
14017	lt_prog_compiler_static_F77='-Bstatic'
14018        ;;
14019      ccc*)
14020        lt_prog_compiler_wl_F77='-Wl,'
14021        # All Alpha code is PIC.
14022        lt_prog_compiler_static_F77='-non_shared'
14023        ;;
14024      esac
14025      ;;
14026
14027    osf3* | osf4* | osf5*)
14028      lt_prog_compiler_wl_F77='-Wl,'
14029      # All OSF/1 code is PIC.
14030      lt_prog_compiler_static_F77='-non_shared'
14031      ;;
14032
14033    solaris*)
14034      lt_prog_compiler_pic_F77='-KPIC'
14035      lt_prog_compiler_static_F77='-Bstatic'
14036      case $cc_basename in
14037      f77* | f90* | f95*)
14038	lt_prog_compiler_wl_F77='-Qoption ld ';;
14039      *)
14040	lt_prog_compiler_wl_F77='-Wl,';;
14041      esac
14042      ;;
14043
14044    sunos4*)
14045      lt_prog_compiler_wl_F77='-Qoption ld '
14046      lt_prog_compiler_pic_F77='-PIC'
14047      lt_prog_compiler_static_F77='-Bstatic'
14048      ;;
14049
14050    sysv4 | sysv4.2uw2* | sysv4.3*)
14051      lt_prog_compiler_wl_F77='-Wl,'
14052      lt_prog_compiler_pic_F77='-KPIC'
14053      lt_prog_compiler_static_F77='-Bstatic'
14054      ;;
14055
14056    sysv4*MP*)
14057      if test -d /usr/nec ;then
14058	lt_prog_compiler_pic_F77='-Kconform_pic'
14059	lt_prog_compiler_static_F77='-Bstatic'
14060      fi
14061      ;;
14062
14063    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14064      lt_prog_compiler_wl_F77='-Wl,'
14065      lt_prog_compiler_pic_F77='-KPIC'
14066      lt_prog_compiler_static_F77='-Bstatic'
14067      ;;
14068
14069    unicos*)
14070      lt_prog_compiler_wl_F77='-Wl,'
14071      lt_prog_compiler_can_build_shared_F77=no
14072      ;;
14073
14074    uts4*)
14075      lt_prog_compiler_pic_F77='-pic'
14076      lt_prog_compiler_static_F77='-Bstatic'
14077      ;;
14078
14079    *)
14080      lt_prog_compiler_can_build_shared_F77=no
14081      ;;
14082    esac
14083  fi
14084
14085echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14086echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14087
14088#
14089# Check to make sure the PIC flag actually works.
14090#
14091if test -n "$lt_prog_compiler_pic_F77"; then
14092
14093echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14094echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14095if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14096  echo $ECHO_N "(cached) $ECHO_C" >&6
14097else
14098  lt_prog_compiler_pic_works_F77=no
14099  ac_outfile=conftest.$ac_objext
14100   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14101   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14102   # Insert the option either (1) after the last *FLAGS variable, or
14103   # (2) before a word containing "conftest.", or (3) at the end.
14104   # Note that $ac_compile itself does not contain backslashes and begins
14105   # with a dollar sign (not a hyphen), so the echo should work correctly.
14106   # The option is referenced via a variable to avoid confusing sed.
14107   lt_compile=`echo "$ac_compile" | $SED \
14108   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14109   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14110   -e 's:$: $lt_compiler_flag:'`
14111   (eval echo "\"\$as_me:14111: $lt_compile\"" >&5)
14112   (eval "$lt_compile" 2>conftest.err)
14113   ac_status=$?
14114   cat conftest.err >&5
14115   echo "$as_me:14115: \$? = $ac_status" >&5
14116   if (exit $ac_status) && test -s "$ac_outfile"; then
14117     # The compiler can only warn and ignore the option if not recognized
14118     # So say no if there are warnings other than the usual output.
14119     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14120     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14121     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14122       lt_prog_compiler_pic_works_F77=yes
14123     fi
14124   fi
14125   $rm conftest*
14126
14127fi
14128echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14129echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14130
14131if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14132    case $lt_prog_compiler_pic_F77 in
14133     "" | " "*) ;;
14134     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14135     esac
14136else
14137    lt_prog_compiler_pic_F77=
14138     lt_prog_compiler_can_build_shared_F77=no
14139fi
14140
14141fi
14142case $host_os in
14143  # For platforms which do not support PIC, -DPIC is meaningless:
14144  *djgpp*)
14145    lt_prog_compiler_pic_F77=
14146    ;;
14147  *)
14148    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14149    ;;
14150esac
14151
14152#
14153# Check to make sure the static flag actually works.
14154#
14155wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14156echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14157echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14158if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14159  echo $ECHO_N "(cached) $ECHO_C" >&6
14160else
14161  lt_prog_compiler_static_works_F77=no
14162   save_LDFLAGS="$LDFLAGS"
14163   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14164   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14165   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14166     # The linker can only warn and ignore the option if not recognized
14167     # So say no if there are warnings
14168     if test -s conftest.err; then
14169       # Append any errors to the config.log.
14170       cat conftest.err 1>&5
14171       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14172       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14173       if diff conftest.exp conftest.er2 >/dev/null; then
14174         lt_prog_compiler_static_works_F77=yes
14175       fi
14176     else
14177       lt_prog_compiler_static_works_F77=yes
14178     fi
14179   fi
14180   $rm conftest*
14181   LDFLAGS="$save_LDFLAGS"
14182
14183fi
14184echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14185echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14186
14187if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14188    :
14189else
14190    lt_prog_compiler_static_F77=
14191fi
14192
14193
14194echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14195echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14196if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14197  echo $ECHO_N "(cached) $ECHO_C" >&6
14198else
14199  lt_cv_prog_compiler_c_o_F77=no
14200   $rm -r conftest 2>/dev/null
14201   mkdir conftest
14202   cd conftest
14203   mkdir out
14204   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14205
14206   lt_compiler_flag="-o out/conftest2.$ac_objext"
14207   # Insert the option either (1) after the last *FLAGS variable, or
14208   # (2) before a word containing "conftest.", or (3) at the end.
14209   # Note that $ac_compile itself does not contain backslashes and begins
14210   # with a dollar sign (not a hyphen), so the echo should work correctly.
14211   lt_compile=`echo "$ac_compile" | $SED \
14212   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14213   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14214   -e 's:$: $lt_compiler_flag:'`
14215   (eval echo "\"\$as_me:14215: $lt_compile\"" >&5)
14216   (eval "$lt_compile" 2>out/conftest.err)
14217   ac_status=$?
14218   cat out/conftest.err >&5
14219   echo "$as_me:14219: \$? = $ac_status" >&5
14220   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14221   then
14222     # The compiler can only warn and ignore the option if not recognized
14223     # So say no if there are warnings
14224     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14225     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14226     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14227       lt_cv_prog_compiler_c_o_F77=yes
14228     fi
14229   fi
14230   chmod u+w . 2>&5
14231   $rm conftest*
14232   # SGI C++ compiler will create directory out/ii_files/ for
14233   # template instantiation
14234   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14235   $rm out/* && rmdir out
14236   cd ..
14237   rmdir conftest
14238   $rm conftest*
14239
14240fi
14241echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14242echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14243
14244
14245hard_links="nottested"
14246if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14247  # do not overwrite the value of need_locks provided by the user
14248  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14249echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14250  hard_links=yes
14251  $rm conftest*
14252  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14253  touch conftest.a
14254  ln conftest.a conftest.b 2>&5 || hard_links=no
14255  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14256  echo "$as_me:$LINENO: result: $hard_links" >&5
14257echo "${ECHO_T}$hard_links" >&6
14258  if test "$hard_links" = no; then
14259    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14260echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14261    need_locks=warn
14262  fi
14263else
14264  need_locks=no
14265fi
14266
14267echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14268echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14269
14270  runpath_var=
14271  allow_undefined_flag_F77=
14272  enable_shared_with_static_runtimes_F77=no
14273  archive_cmds_F77=
14274  archive_expsym_cmds_F77=
14275  old_archive_From_new_cmds_F77=
14276  old_archive_from_expsyms_cmds_F77=
14277  export_dynamic_flag_spec_F77=
14278  whole_archive_flag_spec_F77=
14279  thread_safe_flag_spec_F77=
14280  hardcode_libdir_flag_spec_F77=
14281  hardcode_libdir_flag_spec_ld_F77=
14282  hardcode_libdir_separator_F77=
14283  hardcode_direct_F77=no
14284  hardcode_minus_L_F77=no
14285  hardcode_shlibpath_var_F77=unsupported
14286  link_all_deplibs_F77=unknown
14287  hardcode_automatic_F77=no
14288  module_cmds_F77=
14289  module_expsym_cmds_F77=
14290  always_export_symbols_F77=no
14291  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14292  # include_expsyms should be a list of space-separated symbols to be *always*
14293  # included in the symbol list
14294  include_expsyms_F77=
14295  # exclude_expsyms can be an extended regexp of symbols to exclude
14296  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14297  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14298  # as well as any symbol that contains `d'.
14299  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14300  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14301  # platforms (ab)use it in PIC code, but their linkers get confused if
14302  # the symbol is explicitly referenced.  Since portable code cannot
14303  # rely on this symbol name, it's probably fine to never include it in
14304  # preloaded symbol tables.
14305  extract_expsyms_cmds=
14306  # Just being paranoid about ensuring that cc_basename is set.
14307  for cc_temp in $compiler""; do
14308  case $cc_temp in
14309    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14310    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14311    \-*) ;;
14312    *) break;;
14313  esac
14314done
14315cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14316
14317  case $host_os in
14318  cygwin* | mingw* | pw32*)
14319    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14320    # When not using gcc, we currently assume that we are using
14321    # Microsoft Visual C++.
14322    if test "$GCC" != yes; then
14323      with_gnu_ld=no
14324    fi
14325    ;;
14326  interix*)
14327    # we just hope/assume this is gcc and not c89 (= MSVC++)
14328    with_gnu_ld=yes
14329    ;;
14330  openbsd*)
14331    with_gnu_ld=no
14332    ;;
14333  esac
14334
14335  ld_shlibs_F77=yes
14336  if test "$with_gnu_ld" = yes; then
14337    # If archive_cmds runs LD, not CC, wlarc should be empty
14338    wlarc='${wl}'
14339
14340    # Set some defaults for GNU ld with shared library support. These
14341    # are reset later if shared libraries are not supported. Putting them
14342    # here allows them to be overridden if necessary.
14343    runpath_var=LD_RUN_PATH
14344    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14345    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14346    # ancient GNU ld didn't support --whole-archive et. al.
14347    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14348	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14349      else
14350  	whole_archive_flag_spec_F77=
14351    fi
14352    supports_anon_versioning=no
14353    case `$LD -v 2>/dev/null` in
14354      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14355      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14356      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14357      *\ 2.11.*) ;; # other 2.11 versions
14358      *) supports_anon_versioning=yes ;;
14359    esac
14360
14361    # See if GNU ld supports shared libraries.
14362    case $host_os in
14363    aix3* | aix4* | aix5*)
14364      # On AIX/PPC, the GNU linker is very broken
14365      if test "$host_cpu" != ia64; then
14366	ld_shlibs_F77=no
14367	cat <<EOF 1>&2
14368
14369*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14370*** to be unable to reliably create shared libraries on AIX.
14371*** Therefore, libtool is disabling shared libraries support.  If you
14372*** really care for shared libraries, you may want to modify your PATH
14373*** so that a non-GNU linker is found, and then restart.
14374
14375EOF
14376      fi
14377      ;;
14378
14379    amigaos*)
14380      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)'
14381      hardcode_libdir_flag_spec_F77='-L$libdir'
14382      hardcode_minus_L_F77=yes
14383
14384      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14385      # that the semantics of dynamic libraries on AmigaOS, at least up
14386      # to version 4, is to share data among multiple programs linked
14387      # with the same dynamic library.  Since this doesn't match the
14388      # behavior of shared libraries on other platforms, we can't use
14389      # them.
14390      ld_shlibs_F77=no
14391      ;;
14392
14393    beos*)
14394      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14395	allow_undefined_flag_F77=unsupported
14396	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14397	# support --undefined.  This deserves some investigation.  FIXME
14398	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14399      else
14400	ld_shlibs_F77=no
14401      fi
14402      ;;
14403
14404    cygwin* | mingw* | pw32*)
14405      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14406      # as there is no search path for DLLs.
14407      hardcode_libdir_flag_spec_F77='-L$libdir'
14408      allow_undefined_flag_F77=unsupported
14409      always_export_symbols_F77=no
14410      enable_shared_with_static_runtimes_F77=yes
14411      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14412
14413      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14414        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14415	# If the export-symbols file already is a .def file (1st line
14416	# is EXPORTS), use it as is; otherwise, prepend...
14417	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14418	  cp $export_symbols $output_objdir/$soname.def;
14419	else
14420	  echo EXPORTS > $output_objdir/$soname.def;
14421	  cat $export_symbols >> $output_objdir/$soname.def;
14422	fi~
14423	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14424      else
14425	ld_shlibs_F77=no
14426      fi
14427      ;;
14428
14429    interix3*)
14430      hardcode_direct_F77=no
14431      hardcode_shlibpath_var_F77=no
14432      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14433      export_dynamic_flag_spec_F77='${wl}-E'
14434      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14435      # Instead, shared libraries are loaded at an image base (0x10000000 by
14436      # default) and relocated if they conflict, which is a slow very memory
14437      # consuming and fragmenting process.  To avoid this, we pick a random,
14438      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14439      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14440      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14441      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14442      ;;
14443
14444    linux*)
14445      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14446	tmp_addflag=
14447	case $cc_basename,$host_cpu in
14448	pgcc*)				# Portland Group C compiler
14449	  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'
14450	  tmp_addflag=' $pic_flag'
14451	  ;;
14452	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14453	  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'
14454	  tmp_addflag=' $pic_flag -Mnomain' ;;
14455	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14456	  tmp_addflag=' -i_dynamic' ;;
14457	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14458	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14459	ifc* | ifort*)			# Intel Fortran compiler
14460	  tmp_addflag=' -nofor_main' ;;
14461	esac
14462	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14463
14464	if test $supports_anon_versioning = yes; then
14465	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14466  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14467  $echo "local: *; };" >> $output_objdir/$libname.ver~
14468	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14469	fi
14470      else
14471	ld_shlibs_F77=no
14472      fi
14473      ;;
14474
14475    netbsd*)
14476      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14477	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14478	wlarc=
14479      else
14480	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14482      fi
14483      ;;
14484
14485    solaris*)
14486      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14487	ld_shlibs_F77=no
14488	cat <<EOF 1>&2
14489
14490*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14491*** create shared libraries on Solaris systems.  Therefore, libtool
14492*** is disabling shared libraries support.  We urge you to upgrade GNU
14493*** binutils to release 2.9.1 or newer.  Another option is to modify
14494*** your PATH or compiler configuration so that the native linker is
14495*** used, and then restart.
14496
14497EOF
14498      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14499	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14500	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14501      else
14502	ld_shlibs_F77=no
14503      fi
14504      ;;
14505
14506    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14507      case `$LD -v 2>&1` in
14508        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14509	ld_shlibs_F77=no
14510	cat <<_LT_EOF 1>&2
14511
14512*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14513*** reliably create shared libraries on SCO systems.  Therefore, libtool
14514*** is disabling shared libraries support.  We urge you to upgrade GNU
14515*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14516*** your PATH or compiler configuration so that the native linker is
14517*** used, and then restart.
14518
14519_LT_EOF
14520	;;
14521	*)
14522	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14523	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14524	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14525	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14526	  else
14527	    ld_shlibs_F77=no
14528	  fi
14529	;;
14530      esac
14531      ;;
14532
14533    sunos4*)
14534      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14535      wlarc=
14536      hardcode_direct_F77=yes
14537      hardcode_shlibpath_var_F77=no
14538      ;;
14539
14540    *)
14541      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14542	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14543	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14544      else
14545	ld_shlibs_F77=no
14546      fi
14547      ;;
14548    esac
14549
14550    if test "$ld_shlibs_F77" = no; then
14551      runpath_var=
14552      hardcode_libdir_flag_spec_F77=
14553      export_dynamic_flag_spec_F77=
14554      whole_archive_flag_spec_F77=
14555    fi
14556  else
14557    # PORTME fill in a description of your system's linker (not GNU ld)
14558    case $host_os in
14559    aix3*)
14560      allow_undefined_flag_F77=unsupported
14561      always_export_symbols_F77=yes
14562      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'
14563      # Note: this linker hardcodes the directories in LIBPATH if there
14564      # are no directories specified by -L.
14565      hardcode_minus_L_F77=yes
14566      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14567	# Neither direct hardcoding nor static linking is supported with a
14568	# broken collect2.
14569	hardcode_direct_F77=unsupported
14570      fi
14571      ;;
14572
14573    aix4* | aix5*)
14574      if test "$host_cpu" = ia64; then
14575	# On IA64, the linker does run time linking by default, so we don't
14576	# have to do anything special.
14577	aix_use_runtimelinking=no
14578	exp_sym_flag='-Bexport'
14579	no_entry_flag=""
14580      else
14581	# If we're using GNU nm, then we don't want the "-C" option.
14582	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14583	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14584	  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'
14585	else
14586	  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'
14587	fi
14588	aix_use_runtimelinking=no
14589
14590	# Test if we are trying to use run time linking or normal
14591	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14592	# need to do runtime linking.
14593	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14594	  for ld_flag in $LDFLAGS; do
14595  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14596  	    aix_use_runtimelinking=yes
14597  	    break
14598  	  fi
14599	  done
14600	  ;;
14601	esac
14602
14603	exp_sym_flag='-bexport'
14604	no_entry_flag='-bnoentry'
14605      fi
14606
14607      # When large executables or shared objects are built, AIX ld can
14608      # have problems creating the table of contents.  If linking a library
14609      # or program results in "error TOC overflow" add -mminimal-toc to
14610      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14611      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14612
14613      archive_cmds_F77=''
14614      hardcode_direct_F77=yes
14615      hardcode_libdir_separator_F77=':'
14616      link_all_deplibs_F77=yes
14617
14618      if test "$GCC" = yes; then
14619	case $host_os in aix4.[012]|aix4.[012].*)
14620	# We only want to do this on AIX 4.2 and lower, the check
14621	# below for broken collect2 doesn't work under 4.3+
14622	  collect2name=`${CC} -print-prog-name=collect2`
14623	  if test -f "$collect2name" && \
14624  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14625	  then
14626  	  # We have reworked collect2
14627  	  hardcode_direct_F77=yes
14628	  else
14629  	  # We have old collect2
14630  	  hardcode_direct_F77=unsupported
14631  	  # It fails to find uninstalled libraries when the uninstalled
14632  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14633  	  # to unsupported forces relinking
14634  	  hardcode_minus_L_F77=yes
14635  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14636  	  hardcode_libdir_separator_F77=
14637	  fi
14638	  ;;
14639	esac
14640	shared_flag='-shared'
14641	if test "$aix_use_runtimelinking" = yes; then
14642	  shared_flag="$shared_flag "'${wl}-G'
14643	fi
14644      else
14645	# not using gcc
14646	if test "$host_cpu" = ia64; then
14647  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14648  	# chokes on -Wl,-G. The following line is correct:
14649	  shared_flag='-G'
14650	else
14651	  if test "$aix_use_runtimelinking" = yes; then
14652	    shared_flag='${wl}-G'
14653	  else
14654	    shared_flag='${wl}-bM:SRE'
14655	  fi
14656	fi
14657      fi
14658
14659      # It seems that -bexpall does not export symbols beginning with
14660      # underscore (_), so it is better to generate a list of symbols to export.
14661      always_export_symbols_F77=yes
14662      if test "$aix_use_runtimelinking" = yes; then
14663	# Warning - without using the other runtime loading flags (-brtl),
14664	# -berok will link without error, but may produce a broken library.
14665	allow_undefined_flag_F77='-berok'
14666       # Determine the default libpath from the value encoded in an empty executable.
14667       cat >conftest.$ac_ext <<_ACEOF
14668      program main
14669
14670      end
14671_ACEOF
14672rm -f conftest.$ac_objext conftest$ac_exeext
14673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674  (eval $ac_link) 2>conftest.er1
14675  ac_status=$?
14676  grep -v '^ *+' conftest.er1 >conftest.err
14677  rm -f conftest.er1
14678  cat conftest.err >&5
14679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680  (exit $ac_status); } &&
14681	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
14682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683  (eval $ac_try) 2>&5
14684  ac_status=$?
14685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686  (exit $ac_status); }; } &&
14687	 { ac_try='test -s conftest$ac_exeext'
14688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689  (eval $ac_try) 2>&5
14690  ac_status=$?
14691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692  (exit $ac_status); }; }; then
14693
14694aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14695}'`
14696# Check for a 64-bit object if we didn't find anything.
14697if 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; }
14698}'`; fi
14699else
14700  echo "$as_me: failed program was:" >&5
14701sed 's/^/| /' conftest.$ac_ext >&5
14702
14703fi
14704rm -f conftest.err conftest.$ac_objext \
14705      conftest$ac_exeext conftest.$ac_ext
14706if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14707
14708       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14709	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14710       else
14711	if test "$host_cpu" = ia64; then
14712	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14713	  allow_undefined_flag_F77="-z nodefs"
14714	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14715	else
14716	 # Determine the default libpath from the value encoded in an empty executable.
14717	 cat >conftest.$ac_ext <<_ACEOF
14718      program main
14719
14720      end
14721_ACEOF
14722rm -f conftest.$ac_objext conftest$ac_exeext
14723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14724  (eval $ac_link) 2>conftest.er1
14725  ac_status=$?
14726  grep -v '^ *+' conftest.er1 >conftest.err
14727  rm -f conftest.er1
14728  cat conftest.err >&5
14729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730  (exit $ac_status); } &&
14731	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
14732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733  (eval $ac_try) 2>&5
14734  ac_status=$?
14735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736  (exit $ac_status); }; } &&
14737	 { ac_try='test -s conftest$ac_exeext'
14738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739  (eval $ac_try) 2>&5
14740  ac_status=$?
14741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742  (exit $ac_status); }; }; then
14743
14744aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14745}'`
14746# Check for a 64-bit object if we didn't find anything.
14747if 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; }
14748}'`; fi
14749else
14750  echo "$as_me: failed program was:" >&5
14751sed 's/^/| /' conftest.$ac_ext >&5
14752
14753fi
14754rm -f conftest.err conftest.$ac_objext \
14755      conftest$ac_exeext conftest.$ac_ext
14756if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14757
14758	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14759	  # Warning - without using the other run time loading flags,
14760	  # -berok will link without error, but may produce a broken library.
14761	  no_undefined_flag_F77=' ${wl}-bernotok'
14762	  allow_undefined_flag_F77=' ${wl}-berok'
14763	  # Exported symbols can be pulled into shared objects from archives
14764	  whole_archive_flag_spec_F77='$convenience'
14765	  archive_cmds_need_lc_F77=yes
14766	  # This is similar to how AIX traditionally builds its shared libraries.
14767	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14768	fi
14769      fi
14770      ;;
14771
14772    amigaos*)
14773      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)'
14774      hardcode_libdir_flag_spec_F77='-L$libdir'
14775      hardcode_minus_L_F77=yes
14776      # see comment about different semantics on the GNU ld section
14777      ld_shlibs_F77=no
14778      ;;
14779
14780    bsdi[45]*)
14781      export_dynamic_flag_spec_F77=-rdynamic
14782      ;;
14783
14784    cygwin* | mingw* | pw32*)
14785      # When not using gcc, we currently assume that we are using
14786      # Microsoft Visual C++.
14787      # hardcode_libdir_flag_spec is actually meaningless, as there is
14788      # no search path for DLLs.
14789      hardcode_libdir_flag_spec_F77=' '
14790      allow_undefined_flag_F77=unsupported
14791      # Tell ltmain to make .lib files, not .a files.
14792      libext=lib
14793      # Tell ltmain to make .dll files, not .so files.
14794      shrext_cmds=".dll"
14795      # FIXME: Setting linknames here is a bad hack.
14796      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14797      # The linker will automatically build a .lib file if we build a DLL.
14798      old_archive_From_new_cmds_F77='true'
14799      # FIXME: Should let the user specify the lib program.
14800      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14801      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14802      enable_shared_with_static_runtimes_F77=yes
14803      ;;
14804
14805    darwin* | rhapsody*)
14806      case $host_os in
14807        rhapsody* | darwin1.[012])
14808         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14809         ;;
14810       *) # Darwin 1.3 on
14811         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14812           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14813         else
14814           case ${MACOSX_DEPLOYMENT_TARGET} in
14815             10.[012])
14816               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14817               ;;
14818             10.*)
14819               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14820               ;;
14821           esac
14822         fi
14823         ;;
14824      esac
14825      archive_cmds_need_lc_F77=no
14826      hardcode_direct_F77=no
14827      hardcode_automatic_F77=yes
14828      hardcode_shlibpath_var_F77=unsupported
14829      whole_archive_flag_spec_F77=''
14830      link_all_deplibs_F77=yes
14831    if test "$GCC" = yes ; then
14832    	output_verbose_link_cmd='echo'
14833        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14834      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14835      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14836      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}'
14837      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}'
14838    else
14839      case $cc_basename in
14840        xlc*)
14841         output_verbose_link_cmd='echo'
14842         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14843         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14844          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14845         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}'
14846          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}'
14847          ;;
14848       *)
14849         ld_shlibs_F77=no
14850          ;;
14851      esac
14852    fi
14853      ;;
14854
14855    dgux*)
14856      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14857      hardcode_libdir_flag_spec_F77='-L$libdir'
14858      hardcode_shlibpath_var_F77=no
14859      ;;
14860
14861    freebsd1*)
14862      ld_shlibs_F77=no
14863      ;;
14864
14865    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14866    # support.  Future versions do this automatically, but an explicit c++rt0.o
14867    # does not break anything, and helps significantly (at the cost of a little
14868    # extra space).
14869    freebsd2.2*)
14870      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14871      hardcode_libdir_flag_spec_F77='-R$libdir'
14872      hardcode_direct_F77=yes
14873      hardcode_shlibpath_var_F77=no
14874      ;;
14875
14876    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14877    freebsd2*)
14878      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14879      hardcode_direct_F77=yes
14880      hardcode_minus_L_F77=yes
14881      hardcode_shlibpath_var_F77=no
14882      ;;
14883
14884    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14885    freebsd* | kfreebsd*-gnu | dragonfly*)
14886      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14887      hardcode_libdir_flag_spec_F77='-R$libdir'
14888      hardcode_direct_F77=yes
14889      hardcode_shlibpath_var_F77=no
14890      ;;
14891
14892    hpux9*)
14893      if test "$GCC" = yes; then
14894	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'
14895      else
14896	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'
14897      fi
14898      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14899      hardcode_libdir_separator_F77=:
14900      hardcode_direct_F77=yes
14901
14902      # hardcode_minus_L: Not really in the search PATH,
14903      # but as the default location of the library.
14904      hardcode_minus_L_F77=yes
14905      export_dynamic_flag_spec_F77='${wl}-E'
14906      ;;
14907
14908    hpux10*)
14909      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14910	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14911      else
14912	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14913      fi
14914      if test "$with_gnu_ld" = no; then
14915	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14916	hardcode_libdir_separator_F77=:
14917
14918	hardcode_direct_F77=yes
14919	export_dynamic_flag_spec_F77='${wl}-E'
14920
14921	# hardcode_minus_L: Not really in the search PATH,
14922	# but as the default location of the library.
14923	hardcode_minus_L_F77=yes
14924      fi
14925      ;;
14926
14927    hpux11*)
14928      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14929	case $host_cpu in
14930	hppa*64*)
14931	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14932	  ;;
14933	ia64*)
14934	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14935	  ;;
14936	*)
14937	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14938	  ;;
14939	esac
14940      else
14941	case $host_cpu in
14942	hppa*64*)
14943	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14944	  ;;
14945	ia64*)
14946	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14947	  ;;
14948	*)
14949	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14950	  ;;
14951	esac
14952      fi
14953      if test "$with_gnu_ld" = no; then
14954	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14955	hardcode_libdir_separator_F77=:
14956
14957	case $host_cpu in
14958	hppa*64*|ia64*)
14959	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14960	  hardcode_direct_F77=no
14961	  hardcode_shlibpath_var_F77=no
14962	  ;;
14963	*)
14964	  hardcode_direct_F77=yes
14965	  export_dynamic_flag_spec_F77='${wl}-E'
14966
14967	  # hardcode_minus_L: Not really in the search PATH,
14968	  # but as the default location of the library.
14969	  hardcode_minus_L_F77=yes
14970	  ;;
14971	esac
14972      fi
14973      ;;
14974
14975    irix5* | irix6* | nonstopux*)
14976      if test "$GCC" = yes; then
14977	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'
14978      else
14979	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'
14980	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14981      fi
14982      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14983      hardcode_libdir_separator_F77=:
14984      link_all_deplibs_F77=yes
14985      ;;
14986
14987    netbsd*)
14988      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14989	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14990      else
14991	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14992      fi
14993      hardcode_libdir_flag_spec_F77='-R$libdir'
14994      hardcode_direct_F77=yes
14995      hardcode_shlibpath_var_F77=no
14996      ;;
14997
14998    newsos6)
14999      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15000      hardcode_direct_F77=yes
15001      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15002      hardcode_libdir_separator_F77=:
15003      hardcode_shlibpath_var_F77=no
15004      ;;
15005
15006    openbsd*)
15007      hardcode_direct_F77=yes
15008      hardcode_shlibpath_var_F77=no
15009      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15010	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15011	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15012	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15013	export_dynamic_flag_spec_F77='${wl}-E'
15014      else
15015       case $host_os in
15016	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15017	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15018	   hardcode_libdir_flag_spec_F77='-R$libdir'
15019	   ;;
15020	 *)
15021	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15022	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15023	   ;;
15024       esac
15025      fi
15026      ;;
15027
15028    os2*)
15029      hardcode_libdir_flag_spec_F77='-L$libdir'
15030      hardcode_minus_L_F77=yes
15031      allow_undefined_flag_F77=unsupported
15032      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'
15033      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15034      ;;
15035
15036    osf3*)
15037      if test "$GCC" = yes; then
15038	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15039	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'
15040      else
15041	allow_undefined_flag_F77=' -expect_unresolved \*'
15042	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'
15043      fi
15044      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15045      hardcode_libdir_separator_F77=:
15046      ;;
15047
15048    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15049      if test "$GCC" = yes; then
15050	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15051	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'
15052	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15053      else
15054	allow_undefined_flag_F77=' -expect_unresolved \*'
15055	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'
15056	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~
15057	$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'
15058
15059	# Both c and cxx compiler support -rpath directly
15060	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15061      fi
15062      hardcode_libdir_separator_F77=:
15063      ;;
15064
15065    solaris*)
15066      no_undefined_flag_F77=' -z text'
15067      if test "$GCC" = yes; then
15068	wlarc='${wl}'
15069	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15070	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15071	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15072      else
15073	wlarc=''
15074	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15076  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15077      fi
15078      hardcode_libdir_flag_spec_F77='-R$libdir'
15079      hardcode_shlibpath_var_F77=no
15080      case $host_os in
15081      solaris2.[0-5] | solaris2.[0-5].*) ;;
15082      *)
15083 	# The compiler driver will combine linker options so we
15084 	# cannot just pass the convience library names through
15085 	# without $wl, iff we do not link with $LD.
15086 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15087 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15088 	case $wlarc in
15089 	'')
15090 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15091 	*)
15092 	  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' ;;
15093 	esac ;;
15094      esac
15095      link_all_deplibs_F77=yes
15096      ;;
15097
15098    sunos4*)
15099      if test "x$host_vendor" = xsequent; then
15100	# Use $CC to link under sequent, because it throws in some extra .o
15101	# files that make .init and .fini sections work.
15102	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15103      else
15104	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15105      fi
15106      hardcode_libdir_flag_spec_F77='-L$libdir'
15107      hardcode_direct_F77=yes
15108      hardcode_minus_L_F77=yes
15109      hardcode_shlibpath_var_F77=no
15110      ;;
15111
15112    sysv4)
15113      case $host_vendor in
15114	sni)
15115	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15116	  hardcode_direct_F77=yes # is this really true???
15117	;;
15118	siemens)
15119	  ## LD is ld it makes a PLAMLIB
15120	  ## CC just makes a GrossModule.
15121	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15122	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15123	  hardcode_direct_F77=no
15124        ;;
15125	motorola)
15126	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15127	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15128	;;
15129      esac
15130      runpath_var='LD_RUN_PATH'
15131      hardcode_shlibpath_var_F77=no
15132      ;;
15133
15134    sysv4.3*)
15135      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136      hardcode_shlibpath_var_F77=no
15137      export_dynamic_flag_spec_F77='-Bexport'
15138      ;;
15139
15140    sysv4*MP*)
15141      if test -d /usr/nec; then
15142	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143	hardcode_shlibpath_var_F77=no
15144	runpath_var=LD_RUN_PATH
15145	hardcode_runpath_var=yes
15146	ld_shlibs_F77=yes
15147      fi
15148      ;;
15149
15150    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15151      no_undefined_flag_F77='${wl}-z,text'
15152      archive_cmds_need_lc_F77=no
15153      hardcode_shlibpath_var_F77=no
15154      runpath_var='LD_RUN_PATH'
15155
15156      if test "$GCC" = yes; then
15157	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15158	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15159      else
15160	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15161	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15162      fi
15163      ;;
15164
15165    sysv5* | sco3.2v5* | sco5v6*)
15166      # Note: We can NOT use -z defs as we might desire, because we do not
15167      # link with -lc, and that would cause any symbols used from libc to
15168      # always be unresolved, which means just about no library would
15169      # ever link correctly.  If we're not using GNU ld we use -z text
15170      # though, which does catch some bad symbols but isn't as heavy-handed
15171      # as -z defs.
15172      no_undefined_flag_F77='${wl}-z,text'
15173      allow_undefined_flag_F77='${wl}-z,nodefs'
15174      archive_cmds_need_lc_F77=no
15175      hardcode_shlibpath_var_F77=no
15176      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15177      hardcode_libdir_separator_F77=':'
15178      link_all_deplibs_F77=yes
15179      export_dynamic_flag_spec_F77='${wl}-Bexport'
15180      runpath_var='LD_RUN_PATH'
15181
15182      if test "$GCC" = yes; then
15183	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15184	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15185      else
15186	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15187	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15188      fi
15189      ;;
15190
15191    uts4*)
15192      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15193      hardcode_libdir_flag_spec_F77='-L$libdir'
15194      hardcode_shlibpath_var_F77=no
15195      ;;
15196
15197    *)
15198      ld_shlibs_F77=no
15199      ;;
15200    esac
15201  fi
15202
15203echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15204echo "${ECHO_T}$ld_shlibs_F77" >&6
15205test "$ld_shlibs_F77" = no && can_build_shared=no
15206
15207#
15208# Do we need to explicitly link libc?
15209#
15210case "x$archive_cmds_need_lc_F77" in
15211x|xyes)
15212  # Assume -lc should be added
15213  archive_cmds_need_lc_F77=yes
15214
15215  if test "$enable_shared" = yes && test "$GCC" = yes; then
15216    case $archive_cmds_F77 in
15217    *'~'*)
15218      # FIXME: we may have to deal with multi-command sequences.
15219      ;;
15220    '$CC '*)
15221      # Test whether the compiler implicitly links with -lc since on some
15222      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15223      # to ld, don't add -lc before -lgcc.
15224      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15225echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15226      $rm conftest*
15227      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15228
15229      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230  (eval $ac_compile) 2>&5
15231  ac_status=$?
15232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233  (exit $ac_status); } 2>conftest.err; then
15234        soname=conftest
15235        lib=conftest
15236        libobjs=conftest.$ac_objext
15237        deplibs=
15238        wl=$lt_prog_compiler_wl_F77
15239	pic_flag=$lt_prog_compiler_pic_F77
15240        compiler_flags=-v
15241        linker_flags=-v
15242        verstring=
15243        output_objdir=.
15244        libname=conftest
15245        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15246        allow_undefined_flag_F77=
15247        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15248  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15249  ac_status=$?
15250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251  (exit $ac_status); }
15252        then
15253	  archive_cmds_need_lc_F77=no
15254        else
15255	  archive_cmds_need_lc_F77=yes
15256        fi
15257        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15258      else
15259        cat conftest.err 1>&5
15260      fi
15261      $rm conftest*
15262      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15263echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15264      ;;
15265    esac
15266  fi
15267  ;;
15268esac
15269
15270echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15271echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15272library_names_spec=
15273libname_spec='lib$name'
15274soname_spec=
15275shrext_cmds=".so"
15276postinstall_cmds=
15277postuninstall_cmds=
15278finish_cmds=
15279finish_eval=
15280shlibpath_var=
15281shlibpath_overrides_runpath=unknown
15282version_type=none
15283dynamic_linker="$host_os ld.so"
15284sys_lib_dlsearch_path_spec="/lib /usr/lib"
15285if test "$GCC" = yes; then
15286  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15287  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15288    # if the path contains ";" then we assume it to be the separator
15289    # otherwise default to the standard path separator (i.e. ":") - it is
15290    # assumed that no part of a normal pathname contains ";" but that should
15291    # okay in the real world where ";" in dirpaths is itself problematic.
15292    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15293  else
15294    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15295  fi
15296else
15297  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15298fi
15299need_lib_prefix=unknown
15300hardcode_into_libs=no
15301
15302# when you set need_version to no, make sure it does not cause -set_version
15303# flags to be left without arguments
15304need_version=unknown
15305
15306case $host_os in
15307aix3*)
15308  version_type=linux
15309  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15310  shlibpath_var=LIBPATH
15311
15312  # AIX 3 has no versioning support, so we append a major version to the name.
15313  soname_spec='${libname}${release}${shared_ext}$major'
15314  ;;
15315
15316aix4* | aix5*)
15317  version_type=linux
15318  need_lib_prefix=no
15319  need_version=no
15320  hardcode_into_libs=yes
15321  if test "$host_cpu" = ia64; then
15322    # AIX 5 supports IA64
15323    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15324    shlibpath_var=LD_LIBRARY_PATH
15325  else
15326    # With GCC up to 2.95.x, collect2 would create an import file
15327    # for dependence libraries.  The import file would start with
15328    # the line `#! .'.  This would cause the generated library to
15329    # depend on `.', always an invalid library.  This was fixed in
15330    # development snapshots of GCC prior to 3.0.
15331    case $host_os in
15332      aix4 | aix4.[01] | aix4.[01].*)
15333      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15334	   echo ' yes '
15335	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15336	:
15337      else
15338	can_build_shared=no
15339      fi
15340      ;;
15341    esac
15342    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15343    # soname into executable. Probably we can add versioning support to
15344    # collect2, so additional links can be useful in future.
15345    if test "$aix_use_runtimelinking" = yes; then
15346      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15347      # instead of lib<name>.a to let people know that these are not
15348      # typical AIX shared libraries.
15349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350    else
15351      # We preserve .a as extension for shared libraries through AIX4.2
15352      # and later when we are not doing run time linking.
15353      library_names_spec='${libname}${release}.a $libname.a'
15354      soname_spec='${libname}${release}${shared_ext}$major'
15355    fi
15356    shlibpath_var=LIBPATH
15357  fi
15358  ;;
15359
15360amigaos*)
15361  library_names_spec='$libname.ixlibrary $libname.a'
15362  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15363  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'
15364  ;;
15365
15366beos*)
15367  library_names_spec='${libname}${shared_ext}'
15368  dynamic_linker="$host_os ld.so"
15369  shlibpath_var=LIBRARY_PATH
15370  ;;
15371
15372bsdi[45]*)
15373  version_type=linux
15374  need_version=no
15375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376  soname_spec='${libname}${release}${shared_ext}$major'
15377  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15378  shlibpath_var=LD_LIBRARY_PATH
15379  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15380  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15381  # the default ld.so.conf also contains /usr/contrib/lib and
15382  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15383  # libtool to hard-code these into programs
15384  ;;
15385
15386cygwin* | mingw* | pw32*)
15387  version_type=windows
15388  shrext_cmds=".dll"
15389  need_version=no
15390  need_lib_prefix=no
15391
15392  case $GCC,$host_os in
15393  yes,cygwin* | yes,mingw* | yes,pw32*)
15394    library_names_spec='$libname.dll.a'
15395    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15396    postinstall_cmds='base_file=`basename \${file}`~
15397      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15398      dldir=$destdir/`dirname \$dlpath`~
15399      test -d \$dldir || mkdir -p \$dldir~
15400      $install_prog $dir/$dlname \$dldir/$dlname~
15401      chmod a+x \$dldir/$dlname'
15402    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15403      dlpath=$dir/\$dldll~
15404       $rm \$dlpath'
15405    shlibpath_overrides_runpath=yes
15406
15407    case $host_os in
15408    cygwin*)
15409      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15410      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15411      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15412      ;;
15413    mingw*)
15414      # MinGW DLLs use traditional 'lib' prefix
15415      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15416      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15417      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15418        # It is most probably a Windows format PATH printed by
15419        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15420        # path with ; separators, and with drive letters. We can handle the
15421        # drive letters (cygwin fileutils understands them), so leave them,
15422        # especially as we might pass files found there to a mingw objdump,
15423        # which wouldn't understand a cygwinified path. Ahh.
15424        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15425      else
15426        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15427      fi
15428      ;;
15429    pw32*)
15430      # pw32 DLLs use 'pw' prefix rather than 'lib'
15431      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15432      ;;
15433    esac
15434    ;;
15435
15436  *)
15437    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15438    ;;
15439  esac
15440  dynamic_linker='Win32 ld.exe'
15441  # FIXME: first we should search . and the directory the executable is in
15442  shlibpath_var=PATH
15443  ;;
15444
15445darwin* | rhapsody*)
15446  dynamic_linker="$host_os dyld"
15447  version_type=darwin
15448  need_lib_prefix=no
15449  need_version=no
15450  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15451  soname_spec='${libname}${release}${major}$shared_ext'
15452  shlibpath_overrides_runpath=yes
15453  shlibpath_var=DYLD_LIBRARY_PATH
15454  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15455  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15456  if test "$GCC" = yes; then
15457    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"`
15458  else
15459    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15460  fi
15461  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15462  ;;
15463
15464dgux*)
15465  version_type=linux
15466  need_lib_prefix=no
15467  need_version=no
15468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15469  soname_spec='${libname}${release}${shared_ext}$major'
15470  shlibpath_var=LD_LIBRARY_PATH
15471  ;;
15472
15473freebsd1*)
15474  dynamic_linker=no
15475  ;;
15476
15477kfreebsd*-gnu)
15478  version_type=linux
15479  need_lib_prefix=no
15480  need_version=no
15481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15482  soname_spec='${libname}${release}${shared_ext}$major'
15483  shlibpath_var=LD_LIBRARY_PATH
15484  shlibpath_overrides_runpath=no
15485  hardcode_into_libs=yes
15486  dynamic_linker='GNU ld.so'
15487  ;;
15488
15489freebsd* | dragonfly*)
15490  # DragonFly does not have aout.  When/if they implement a new
15491  # versioning mechanism, adjust this.
15492  if test -x /usr/bin/objformat; then
15493    objformat=`/usr/bin/objformat`
15494  else
15495    case $host_os in
15496    freebsd[123]*) objformat=aout ;;
15497    *) objformat=elf ;;
15498    esac
15499  fi
15500  version_type=freebsd-$objformat
15501  case $version_type in
15502    freebsd-elf*)
15503      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15504      need_version=no
15505      need_lib_prefix=no
15506      ;;
15507    freebsd-*)
15508      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15509      need_version=yes
15510      ;;
15511  esac
15512  shlibpath_var=LD_LIBRARY_PATH
15513  case $host_os in
15514  freebsd2*)
15515    shlibpath_overrides_runpath=yes
15516    ;;
15517  freebsd3.[01]* | freebsdelf3.[01]*)
15518    shlibpath_overrides_runpath=yes
15519    hardcode_into_libs=yes
15520    ;;
15521  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15522  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15523    shlibpath_overrides_runpath=no
15524    hardcode_into_libs=yes
15525    ;;
15526  freebsd*) # from 4.6 on
15527    shlibpath_overrides_runpath=yes
15528    hardcode_into_libs=yes
15529    ;;
15530  esac
15531  ;;
15532
15533gnu*)
15534  version_type=linux
15535  need_lib_prefix=no
15536  need_version=no
15537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15538  soname_spec='${libname}${release}${shared_ext}$major'
15539  shlibpath_var=LD_LIBRARY_PATH
15540  hardcode_into_libs=yes
15541  ;;
15542
15543hpux9* | hpux10* | hpux11*)
15544  # Give a soname corresponding to the major version so that dld.sl refuses to
15545  # link against other versions.
15546  version_type=sunos
15547  need_lib_prefix=no
15548  need_version=no
15549  case $host_cpu in
15550  ia64*)
15551    shrext_cmds='.so'
15552    hardcode_into_libs=yes
15553    dynamic_linker="$host_os dld.so"
15554    shlibpath_var=LD_LIBRARY_PATH
15555    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15556    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557    soname_spec='${libname}${release}${shared_ext}$major'
15558    if test "X$HPUX_IA64_MODE" = X32; then
15559      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15560    else
15561      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15562    fi
15563    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15564    ;;
15565   hppa*64*)
15566     shrext_cmds='.sl'
15567     hardcode_into_libs=yes
15568     dynamic_linker="$host_os dld.sl"
15569     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15570     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15572     soname_spec='${libname}${release}${shared_ext}$major'
15573     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15574     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15575     ;;
15576   *)
15577    shrext_cmds='.sl'
15578    dynamic_linker="$host_os dld.sl"
15579    shlibpath_var=SHLIB_PATH
15580    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15581    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582    soname_spec='${libname}${release}${shared_ext}$major'
15583    ;;
15584  esac
15585  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15586  postinstall_cmds='chmod 555 $lib'
15587  ;;
15588
15589interix3*)
15590  version_type=linux
15591  need_lib_prefix=no
15592  need_version=no
15593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15594  soname_spec='${libname}${release}${shared_ext}$major'
15595  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15596  shlibpath_var=LD_LIBRARY_PATH
15597  shlibpath_overrides_runpath=no
15598  hardcode_into_libs=yes
15599  ;;
15600
15601irix5* | irix6* | nonstopux*)
15602  case $host_os in
15603    nonstopux*) version_type=nonstopux ;;
15604    *)
15605	if test "$lt_cv_prog_gnu_ld" = yes; then
15606		version_type=linux
15607	else
15608		version_type=irix
15609	fi ;;
15610  esac
15611  need_lib_prefix=no
15612  need_version=no
15613  soname_spec='${libname}${release}${shared_ext}$major'
15614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15615  case $host_os in
15616  irix5* | nonstopux*)
15617    libsuff= shlibsuff=
15618    ;;
15619  *)
15620    case $LD in # libtool.m4 will add one of these switches to LD
15621    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15622      libsuff= shlibsuff= libmagic=32-bit;;
15623    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15624      libsuff=32 shlibsuff=N32 libmagic=N32;;
15625    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15626      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15627    *) libsuff= shlibsuff= libmagic=never-match;;
15628    esac
15629    ;;
15630  esac
15631  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15632  shlibpath_overrides_runpath=no
15633  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15634  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15635  hardcode_into_libs=yes
15636  ;;
15637
15638# No shared lib support for Linux oldld, aout, or coff.
15639linux*oldld* | linux*aout* | linux*coff*)
15640  dynamic_linker=no
15641  ;;
15642
15643# This must be Linux ELF.
15644linux*)
15645  version_type=linux
15646  need_lib_prefix=no
15647  need_version=no
15648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649  soname_spec='${libname}${release}${shared_ext}$major'
15650  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15651  shlibpath_var=LD_LIBRARY_PATH
15652  shlibpath_overrides_runpath=no
15653  # This implies no fast_install, which is unacceptable.
15654  # Some rework will be needed to allow for fast_install
15655  # before this can be enabled.
15656  hardcode_into_libs=yes
15657
15658  # find out which ABI we are using
15659  libsuff=
15660  case "$host_cpu" in
15661  x86_64*|s390x*|powerpc64*)
15662    echo '#line 15662 "configure"' > conftest.$ac_ext
15663    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15664  (eval $ac_compile) 2>&5
15665  ac_status=$?
15666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667  (exit $ac_status); }; then
15668      case `/usr/bin/file conftest.$ac_objext` in
15669      *64-bit*)
15670        libsuff=64
15671        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15672        ;;
15673      esac
15674    fi
15675    rm -rf conftest*
15676    ;;
15677  esac
15678
15679  # Append ld.so.conf contents to the search path
15680  if test -f /etc/ld.so.conf; then
15681    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' ' '`
15682    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15683  fi
15684
15685  # We used to test for /lib/ld.so.1 and disable shared libraries on
15686  # powerpc, because MkLinux only supported shared libraries with the
15687  # GNU dynamic linker.  Since this was broken with cross compilers,
15688  # most powerpc-linux boxes support dynamic linking these days and
15689  # people can always --disable-shared, the test was removed, and we
15690  # assume the GNU/Linux dynamic linker is in use.
15691  dynamic_linker='GNU/Linux ld.so'
15692  ;;
15693
15694knetbsd*-gnu)
15695  version_type=linux
15696  need_lib_prefix=no
15697  need_version=no
15698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15699  soname_spec='${libname}${release}${shared_ext}$major'
15700  shlibpath_var=LD_LIBRARY_PATH
15701  shlibpath_overrides_runpath=no
15702  hardcode_into_libs=yes
15703  dynamic_linker='GNU ld.so'
15704  ;;
15705
15706netbsd*)
15707  version_type=sunos
15708  need_lib_prefix=no
15709  need_version=no
15710  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15711    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15713    dynamic_linker='NetBSD (a.out) ld.so'
15714  else
15715    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15716    soname_spec='${libname}${release}${shared_ext}$major'
15717    dynamic_linker='NetBSD ld.elf_so'
15718  fi
15719  shlibpath_var=LD_LIBRARY_PATH
15720  shlibpath_overrides_runpath=yes
15721  hardcode_into_libs=yes
15722  ;;
15723
15724newsos6)
15725  version_type=linux
15726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727  shlibpath_var=LD_LIBRARY_PATH
15728  shlibpath_overrides_runpath=yes
15729  ;;
15730
15731nto-qnx*)
15732  version_type=linux
15733  need_lib_prefix=no
15734  need_version=no
15735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736  soname_spec='${libname}${release}${shared_ext}$major'
15737  shlibpath_var=LD_LIBRARY_PATH
15738  shlibpath_overrides_runpath=yes
15739  ;;
15740
15741openbsd*)
15742  version_type=sunos
15743  sys_lib_dlsearch_path_spec="/usr/lib"
15744  need_lib_prefix=no
15745  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15746  case $host_os in
15747    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15748    *)                         need_version=no  ;;
15749  esac
15750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15751  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15752  shlibpath_var=LD_LIBRARY_PATH
15753  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15754    case $host_os in
15755      openbsd2.[89] | openbsd2.[89].*)
15756	shlibpath_overrides_runpath=no
15757	;;
15758      *)
15759	shlibpath_overrides_runpath=yes
15760	;;
15761      esac
15762  else
15763    shlibpath_overrides_runpath=yes
15764  fi
15765  ;;
15766
15767os2*)
15768  libname_spec='$name'
15769  shrext_cmds=".dll"
15770  need_lib_prefix=no
15771  library_names_spec='$libname${shared_ext} $libname.a'
15772  dynamic_linker='OS/2 ld.exe'
15773  shlibpath_var=LIBPATH
15774  ;;
15775
15776osf3* | osf4* | osf5*)
15777  version_type=osf
15778  need_lib_prefix=no
15779  need_version=no
15780  soname_spec='${libname}${release}${shared_ext}$major'
15781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782  shlibpath_var=LD_LIBRARY_PATH
15783  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15784  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15785  ;;
15786
15787solaris*)
15788  version_type=linux
15789  need_lib_prefix=no
15790  need_version=no
15791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792  soname_spec='${libname}${release}${shared_ext}$major'
15793  shlibpath_var=LD_LIBRARY_PATH
15794  shlibpath_overrides_runpath=yes
15795  hardcode_into_libs=yes
15796  # ldd complains unless libraries are executable
15797  postinstall_cmds='chmod +x $lib'
15798  ;;
15799
15800sunos4*)
15801  version_type=sunos
15802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15803  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15804  shlibpath_var=LD_LIBRARY_PATH
15805  shlibpath_overrides_runpath=yes
15806  if test "$with_gnu_ld" = yes; then
15807    need_lib_prefix=no
15808  fi
15809  need_version=yes
15810  ;;
15811
15812sysv4 | sysv4.3*)
15813  version_type=linux
15814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15815  soname_spec='${libname}${release}${shared_ext}$major'
15816  shlibpath_var=LD_LIBRARY_PATH
15817  case $host_vendor in
15818    sni)
15819      shlibpath_overrides_runpath=no
15820      need_lib_prefix=no
15821      export_dynamic_flag_spec='${wl}-Blargedynsym'
15822      runpath_var=LD_RUN_PATH
15823      ;;
15824    siemens)
15825      need_lib_prefix=no
15826      ;;
15827    motorola)
15828      need_lib_prefix=no
15829      need_version=no
15830      shlibpath_overrides_runpath=no
15831      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15832      ;;
15833  esac
15834  ;;
15835
15836sysv4*MP*)
15837  if test -d /usr/nec ;then
15838    version_type=linux
15839    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15840    soname_spec='$libname${shared_ext}.$major'
15841    shlibpath_var=LD_LIBRARY_PATH
15842  fi
15843  ;;
15844
15845sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15846  version_type=freebsd-elf
15847  need_lib_prefix=no
15848  need_version=no
15849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15850  soname_spec='${libname}${release}${shared_ext}$major'
15851  shlibpath_var=LD_LIBRARY_PATH
15852  hardcode_into_libs=yes
15853  if test "$with_gnu_ld" = yes; then
15854    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15855    shlibpath_overrides_runpath=no
15856  else
15857    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15858    shlibpath_overrides_runpath=yes
15859    case $host_os in
15860      sco3.2v5*)
15861        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15862	;;
15863    esac
15864  fi
15865  sys_lib_dlsearch_path_spec='/usr/lib'
15866  ;;
15867
15868uts4*)
15869  version_type=linux
15870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871  soname_spec='${libname}${release}${shared_ext}$major'
15872  shlibpath_var=LD_LIBRARY_PATH
15873  ;;
15874
15875*)
15876  dynamic_linker=no
15877  ;;
15878esac
15879echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15880echo "${ECHO_T}$dynamic_linker" >&6
15881test "$dynamic_linker" = no && can_build_shared=no
15882
15883variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15884if test "$GCC" = yes; then
15885  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15886fi
15887
15888echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15889echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15890hardcode_action_F77=
15891if test -n "$hardcode_libdir_flag_spec_F77" || \
15892   test -n "$runpath_var_F77" || \
15893   test "X$hardcode_automatic_F77" = "Xyes" ; then
15894
15895  # We can hardcode non-existant directories.
15896  if test "$hardcode_direct_F77" != no &&
15897     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15898     # have to relink, otherwise we might link with an installed library
15899     # when we should be linking with a yet-to-be-installed one
15900     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15901     test "$hardcode_minus_L_F77" != no; then
15902    # Linking always hardcodes the temporary library directory.
15903    hardcode_action_F77=relink
15904  else
15905    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15906    hardcode_action_F77=immediate
15907  fi
15908else
15909  # We cannot hardcode anything, or else we can only hardcode existing
15910  # directories.
15911  hardcode_action_F77=unsupported
15912fi
15913echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15914echo "${ECHO_T}$hardcode_action_F77" >&6
15915
15916if test "$hardcode_action_F77" = relink; then
15917  # Fast installation is not supported
15918  enable_fast_install=no
15919elif test "$shlibpath_overrides_runpath" = yes ||
15920     test "$enable_shared" = no; then
15921  # Fast installation is not necessary
15922  enable_fast_install=needless
15923fi
15924
15925
15926# The else clause should only fire when bootstrapping the
15927# libtool distribution, otherwise you forgot to ship ltmain.sh
15928# with your package, and you will get complaints that there are
15929# no rules to generate ltmain.sh.
15930if test -f "$ltmain"; then
15931  # See if we are running on zsh, and set the options which allow our commands through
15932  # without removal of \ escapes.
15933  if test -n "${ZSH_VERSION+set}" ; then
15934    setopt NO_GLOB_SUBST
15935  fi
15936  # Now quote all the things that may contain metacharacters while being
15937  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15938  # variables and quote the copies for generation of the libtool script.
15939  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15940    SED SHELL STRIP \
15941    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15942    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15943    deplibs_check_method reload_flag reload_cmds need_locks \
15944    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15945    lt_cv_sys_global_symbol_to_c_name_address \
15946    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15947    old_postinstall_cmds old_postuninstall_cmds \
15948    compiler_F77 \
15949    CC_F77 \
15950    LD_F77 \
15951    lt_prog_compiler_wl_F77 \
15952    lt_prog_compiler_pic_F77 \
15953    lt_prog_compiler_static_F77 \
15954    lt_prog_compiler_no_builtin_flag_F77 \
15955    export_dynamic_flag_spec_F77 \
15956    thread_safe_flag_spec_F77 \
15957    whole_archive_flag_spec_F77 \
15958    enable_shared_with_static_runtimes_F77 \
15959    old_archive_cmds_F77 \
15960    old_archive_from_new_cmds_F77 \
15961    predep_objects_F77 \
15962    postdep_objects_F77 \
15963    predeps_F77 \
15964    postdeps_F77 \
15965    compiler_lib_search_path_F77 \
15966    archive_cmds_F77 \
15967    archive_expsym_cmds_F77 \
15968    postinstall_cmds_F77 \
15969    postuninstall_cmds_F77 \
15970    old_archive_from_expsyms_cmds_F77 \
15971    allow_undefined_flag_F77 \
15972    no_undefined_flag_F77 \
15973    export_symbols_cmds_F77 \
15974    hardcode_libdir_flag_spec_F77 \
15975    hardcode_libdir_flag_spec_ld_F77 \
15976    hardcode_libdir_separator_F77 \
15977    hardcode_automatic_F77 \
15978    module_cmds_F77 \
15979    module_expsym_cmds_F77 \
15980    lt_cv_prog_compiler_c_o_F77 \
15981    exclude_expsyms_F77 \
15982    include_expsyms_F77; do
15983
15984    case $var in
15985    old_archive_cmds_F77 | \
15986    old_archive_from_new_cmds_F77 | \
15987    archive_cmds_F77 | \
15988    archive_expsym_cmds_F77 | \
15989    module_cmds_F77 | \
15990    module_expsym_cmds_F77 | \
15991    old_archive_from_expsyms_cmds_F77 | \
15992    export_symbols_cmds_F77 | \
15993    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15994    postinstall_cmds | postuninstall_cmds | \
15995    old_postinstall_cmds | old_postuninstall_cmds | \
15996    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15997      # Double-quote double-evaled strings.
15998      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15999      ;;
16000    *)
16001      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16002      ;;
16003    esac
16004  done
16005
16006  case $lt_echo in
16007  *'\$0 --fallback-echo"')
16008    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16009    ;;
16010  esac
16011
16012cfgfile="$ofile"
16013
16014  cat <<__EOF__ >> "$cfgfile"
16015# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16016
16017# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16018
16019# Shell to use when invoking shell scripts.
16020SHELL=$lt_SHELL
16021
16022# Whether or not to build shared libraries.
16023build_libtool_libs=$enable_shared
16024
16025# Whether or not to build static libraries.
16026build_old_libs=$enable_static
16027
16028# Whether or not to add -lc for building shared libraries.
16029build_libtool_need_lc=$archive_cmds_need_lc_F77
16030
16031# Whether or not to disallow shared libs when runtime libs are static
16032allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16033
16034# Whether or not to optimize for fast installation.
16035fast_install=$enable_fast_install
16036
16037# The host system.
16038host_alias=$host_alias
16039host=$host
16040host_os=$host_os
16041
16042# The build system.
16043build_alias=$build_alias
16044build=$build
16045build_os=$build_os
16046
16047# An echo program that does not interpret backslashes.
16048echo=$lt_echo
16049
16050# The archiver.
16051AR=$lt_AR
16052AR_FLAGS=$lt_AR_FLAGS
16053
16054# A C compiler.
16055LTCC=$lt_LTCC
16056
16057# LTCC compiler flags.
16058LTCFLAGS=$lt_LTCFLAGS
16059
16060# A language-specific compiler.
16061CC=$lt_compiler_F77
16062
16063# Is the compiler the GNU C compiler?
16064with_gcc=$GCC_F77
16065
16066# An ERE matcher.
16067EGREP=$lt_EGREP
16068
16069# The linker used to build libraries.
16070LD=$lt_LD_F77
16071
16072# Whether we need hard or soft links.
16073LN_S=$lt_LN_S
16074
16075# A BSD-compatible nm program.
16076NM=$lt_NM
16077
16078# A symbol stripping program
16079STRIP=$lt_STRIP
16080
16081# Used to examine libraries when file_magic_cmd begins "file"
16082MAGIC_CMD=$MAGIC_CMD
16083
16084# Used on cygwin: DLL creation program.
16085DLLTOOL="$DLLTOOL"
16086
16087# Used on cygwin: object dumper.
16088OBJDUMP="$OBJDUMP"
16089
16090# Used on cygwin: assembler.
16091AS="$AS"
16092
16093# The name of the directory that contains temporary libtool files.
16094objdir=$objdir
16095
16096# How to create reloadable object files.
16097reload_flag=$lt_reload_flag
16098reload_cmds=$lt_reload_cmds
16099
16100# How to pass a linker flag through the compiler.
16101wl=$lt_lt_prog_compiler_wl_F77
16102
16103# Object file suffix (normally "o").
16104objext="$ac_objext"
16105
16106# Old archive suffix (normally "a").
16107libext="$libext"
16108
16109# Shared library suffix (normally ".so").
16110shrext_cmds='$shrext_cmds'
16111
16112# Executable file suffix (normally "").
16113exeext="$exeext"
16114
16115# Additional compiler flags for building library objects.
16116pic_flag=$lt_lt_prog_compiler_pic_F77
16117pic_mode=$pic_mode
16118
16119# What is the maximum length of a command?
16120max_cmd_len=$lt_cv_sys_max_cmd_len
16121
16122# Does compiler simultaneously support -c and -o options?
16123compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16124
16125# Must we lock files when doing compilation?
16126need_locks=$lt_need_locks
16127
16128# Do we need the lib prefix for modules?
16129need_lib_prefix=$need_lib_prefix
16130
16131# Do we need a version for libraries?
16132need_version=$need_version
16133
16134# Whether dlopen is supported.
16135dlopen_support=$enable_dlopen
16136
16137# Whether dlopen of programs is supported.
16138dlopen_self=$enable_dlopen_self
16139
16140# Whether dlopen of statically linked programs is supported.
16141dlopen_self_static=$enable_dlopen_self_static
16142
16143# Compiler flag to prevent dynamic linking.
16144link_static_flag=$lt_lt_prog_compiler_static_F77
16145
16146# Compiler flag to turn off builtin functions.
16147no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16148
16149# Compiler flag to allow reflexive dlopens.
16150export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16151
16152# Compiler flag to generate shared objects directly from archives.
16153whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16154
16155# Compiler flag to generate thread-safe objects.
16156thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16157
16158# Library versioning type.
16159version_type=$version_type
16160
16161# Format of library name prefix.
16162libname_spec=$lt_libname_spec
16163
16164# List of archive names.  First name is the real one, the rest are links.
16165# The last name is the one that the linker finds with -lNAME.
16166library_names_spec=$lt_library_names_spec
16167
16168# The coded name of the library, if different from the real name.
16169soname_spec=$lt_soname_spec
16170
16171# Commands used to build and install an old-style archive.
16172RANLIB=$lt_RANLIB
16173old_archive_cmds=$lt_old_archive_cmds_F77
16174old_postinstall_cmds=$lt_old_postinstall_cmds
16175old_postuninstall_cmds=$lt_old_postuninstall_cmds
16176
16177# Create an old-style archive from a shared archive.
16178old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16179
16180# Create a temporary old-style archive to link instead of a shared archive.
16181old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16182
16183# Commands used to build and install a shared archive.
16184archive_cmds=$lt_archive_cmds_F77
16185archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16186postinstall_cmds=$lt_postinstall_cmds
16187postuninstall_cmds=$lt_postuninstall_cmds
16188
16189# Commands used to build a loadable module (assumed same as above if empty)
16190module_cmds=$lt_module_cmds_F77
16191module_expsym_cmds=$lt_module_expsym_cmds_F77
16192
16193# Commands to strip libraries.
16194old_striplib=$lt_old_striplib
16195striplib=$lt_striplib
16196
16197# Dependencies to place before the objects being linked to create a
16198# shared library.
16199predep_objects=$lt_predep_objects_F77
16200
16201# Dependencies to place after the objects being linked to create a
16202# shared library.
16203postdep_objects=$lt_postdep_objects_F77
16204
16205# Dependencies to place before the objects being linked to create a
16206# shared library.
16207predeps=$lt_predeps_F77
16208
16209# Dependencies to place after the objects being linked to create a
16210# shared library.
16211postdeps=$lt_postdeps_F77
16212
16213# The library search path used internally by the compiler when linking
16214# a shared library.
16215compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16216
16217# Method to check whether dependent libraries are shared objects.
16218deplibs_check_method=$lt_deplibs_check_method
16219
16220# Command to use when deplibs_check_method == file_magic.
16221file_magic_cmd=$lt_file_magic_cmd
16222
16223# Flag that allows shared libraries with undefined symbols to be built.
16224allow_undefined_flag=$lt_allow_undefined_flag_F77
16225
16226# Flag that forces no undefined symbols.
16227no_undefined_flag=$lt_no_undefined_flag_F77
16228
16229# Commands used to finish a libtool library installation in a directory.
16230finish_cmds=$lt_finish_cmds
16231
16232# Same as above, but a single script fragment to be evaled but not shown.
16233finish_eval=$lt_finish_eval
16234
16235# Take the output of nm and produce a listing of raw symbols and C names.
16236global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16237
16238# Transform the output of nm in a proper C declaration
16239global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16240
16241# Transform the output of nm in a C name address pair
16242global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16243
16244# This is the shared library runtime path variable.
16245runpath_var=$runpath_var
16246
16247# This is the shared library path variable.
16248shlibpath_var=$shlibpath_var
16249
16250# Is shlibpath searched before the hard-coded library search path?
16251shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16252
16253# How to hardcode a shared library path into an executable.
16254hardcode_action=$hardcode_action_F77
16255
16256# Whether we should hardcode library paths into libraries.
16257hardcode_into_libs=$hardcode_into_libs
16258
16259# Flag to hardcode \$libdir into a binary during linking.
16260# This must work even if \$libdir does not exist.
16261hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16262
16263# If ld is used when linking, flag to hardcode \$libdir into
16264# a binary during linking. This must work even if \$libdir does
16265# not exist.
16266hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16267
16268# Whether we need a single -rpath flag with a separated argument.
16269hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16270
16271# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16272# resulting binary.
16273hardcode_direct=$hardcode_direct_F77
16274
16275# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16276# resulting binary.
16277hardcode_minus_L=$hardcode_minus_L_F77
16278
16279# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16280# the resulting binary.
16281hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16282
16283# Set to yes if building a shared library automatically hardcodes DIR into the library
16284# and all subsequent libraries and executables linked against it.
16285hardcode_automatic=$hardcode_automatic_F77
16286
16287# Variables whose values should be saved in libtool wrapper scripts and
16288# restored at relink time.
16289variables_saved_for_relink="$variables_saved_for_relink"
16290
16291# Whether libtool must link a program against all its dependency libraries.
16292link_all_deplibs=$link_all_deplibs_F77
16293
16294# Compile-time system search path for libraries
16295sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16296
16297# Run-time system search path for libraries
16298sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16299
16300# Fix the shell variable \$srcfile for the compiler.
16301fix_srcfile_path="$fix_srcfile_path_F77"
16302
16303# Set to yes if exported symbols are required.
16304always_export_symbols=$always_export_symbols_F77
16305
16306# The commands to list exported symbols.
16307export_symbols_cmds=$lt_export_symbols_cmds_F77
16308
16309# The commands to extract the exported symbol list from a shared archive.
16310extract_expsyms_cmds=$lt_extract_expsyms_cmds
16311
16312# Symbols that should not be listed in the preloaded symbols.
16313exclude_expsyms=$lt_exclude_expsyms_F77
16314
16315# Symbols that must always be exported.
16316include_expsyms=$lt_include_expsyms_F77
16317
16318# ### END LIBTOOL TAG CONFIG: $tagname
16319
16320__EOF__
16321
16322
16323else
16324  # If there is no Makefile yet, we rely on a make rule to execute
16325  # `config.status --recheck' to rerun these tests and create the
16326  # libtool script then.
16327  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16328  if test -f "$ltmain_in"; then
16329    test -f Makefile && make "$ltmain"
16330  fi
16331fi
16332
16333
16334ac_ext=c
16335ac_cpp='$CPP $CPPFLAGS'
16336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16338ac_compiler_gnu=$ac_cv_c_compiler_gnu
16339
16340CC="$lt_save_CC"
16341
16342	else
16343	  tagname=""
16344	fi
16345	;;
16346
16347      GCJ)
16348	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16349
16350
16351
16352# Source file extension for Java test sources.
16353ac_ext=java
16354
16355# Object file extension for compiled Java test sources.
16356objext=o
16357objext_GCJ=$objext
16358
16359# Code to be used in simple compile tests
16360lt_simple_compile_test_code="class foo {}\n"
16361
16362# Code to be used in simple link tests
16363lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16364
16365# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16366
16367# If no C compiler was specified, use CC.
16368LTCC=${LTCC-"$CC"}
16369
16370# If no C compiler flags were specified, use CFLAGS.
16371LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16372
16373# Allow CC to be a program name with arguments.
16374compiler=$CC
16375
16376
16377# save warnings/boilerplate of simple test code
16378ac_outfile=conftest.$ac_objext
16379printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16380eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16381_lt_compiler_boilerplate=`cat conftest.err`
16382$rm conftest*
16383
16384ac_outfile=conftest.$ac_objext
16385printf "$lt_simple_link_test_code" >conftest.$ac_ext
16386eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16387_lt_linker_boilerplate=`cat conftest.err`
16388$rm conftest*
16389
16390
16391# Allow CC to be a program name with arguments.
16392lt_save_CC="$CC"
16393CC=${GCJ-"gcj"}
16394compiler=$CC
16395compiler_GCJ=$CC
16396for cc_temp in $compiler""; do
16397  case $cc_temp in
16398    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16399    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16400    \-*) ;;
16401    *) break;;
16402  esac
16403done
16404cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16405
16406
16407# GCJ did not exist at the time GCC didn't implicitly link libc in.
16408archive_cmds_need_lc_GCJ=no
16409
16410old_archive_cmds_GCJ=$old_archive_cmds
16411
16412
16413lt_prog_compiler_no_builtin_flag_GCJ=
16414
16415if test "$GCC" = yes; then
16416  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16417
16418
16419echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16420echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16421if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16422  echo $ECHO_N "(cached) $ECHO_C" >&6
16423else
16424  lt_cv_prog_compiler_rtti_exceptions=no
16425  ac_outfile=conftest.$ac_objext
16426   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16427   lt_compiler_flag="-fno-rtti -fno-exceptions"
16428   # Insert the option either (1) after the last *FLAGS variable, or
16429   # (2) before a word containing "conftest.", or (3) at the end.
16430   # Note that $ac_compile itself does not contain backslashes and begins
16431   # with a dollar sign (not a hyphen), so the echo should work correctly.
16432   # The option is referenced via a variable to avoid confusing sed.
16433   lt_compile=`echo "$ac_compile" | $SED \
16434   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16435   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16436   -e 's:$: $lt_compiler_flag:'`
16437   (eval echo "\"\$as_me:16437: $lt_compile\"" >&5)
16438   (eval "$lt_compile" 2>conftest.err)
16439   ac_status=$?
16440   cat conftest.err >&5
16441   echo "$as_me:16441: \$? = $ac_status" >&5
16442   if (exit $ac_status) && test -s "$ac_outfile"; then
16443     # The compiler can only warn and ignore the option if not recognized
16444     # So say no if there are warnings other than the usual output.
16445     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16446     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16447     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16448       lt_cv_prog_compiler_rtti_exceptions=yes
16449     fi
16450   fi
16451   $rm conftest*
16452
16453fi
16454echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16455echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16456
16457if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16458    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16459else
16460    :
16461fi
16462
16463fi
16464
16465lt_prog_compiler_wl_GCJ=
16466lt_prog_compiler_pic_GCJ=
16467lt_prog_compiler_static_GCJ=
16468
16469echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16470echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16471
16472  if test "$GCC" = yes; then
16473    lt_prog_compiler_wl_GCJ='-Wl,'
16474    lt_prog_compiler_static_GCJ='-static'
16475
16476    case $host_os in
16477      aix*)
16478      # All AIX code is PIC.
16479      if test "$host_cpu" = ia64; then
16480	# AIX 5 now supports IA64 processor
16481	lt_prog_compiler_static_GCJ='-Bstatic'
16482      fi
16483      ;;
16484
16485    amigaos*)
16486      # FIXME: we need at least 68020 code to build shared libraries, but
16487      # adding the `-m68020' flag to GCC prevents building anything better,
16488      # like `-m68040'.
16489      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16490      ;;
16491
16492    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16493      # PIC is the default for these OSes.
16494      ;;
16495
16496    mingw* | pw32* | os2*)
16497      # This hack is so that the source file can tell whether it is being
16498      # built for inclusion in a dll (and should export symbols for example).
16499      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16500      ;;
16501
16502    darwin* | rhapsody*)
16503      # PIC is the default on this platform
16504      # Common symbols not allowed in MH_DYLIB files
16505      lt_prog_compiler_pic_GCJ='-fno-common'
16506      ;;
16507
16508    interix3*)
16509      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16510      # Instead, we relocate shared libraries at runtime.
16511      ;;
16512
16513    msdosdjgpp*)
16514      # Just because we use GCC doesn't mean we suddenly get shared libraries
16515      # on systems that don't support them.
16516      lt_prog_compiler_can_build_shared_GCJ=no
16517      enable_shared=no
16518      ;;
16519
16520    sysv4*MP*)
16521      if test -d /usr/nec; then
16522	lt_prog_compiler_pic_GCJ=-Kconform_pic
16523      fi
16524      ;;
16525
16526    hpux*)
16527      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16528      # not for PA HP-UX.
16529      case $host_cpu in
16530      hppa*64*|ia64*)
16531	# +Z the default
16532	;;
16533      *)
16534	lt_prog_compiler_pic_GCJ='-fPIC'
16535	;;
16536      esac
16537      ;;
16538
16539    *)
16540      lt_prog_compiler_pic_GCJ='-fPIC'
16541      ;;
16542    esac
16543  else
16544    # PORTME Check for flag to pass linker flags through the system compiler.
16545    case $host_os in
16546    aix*)
16547      lt_prog_compiler_wl_GCJ='-Wl,'
16548      if test "$host_cpu" = ia64; then
16549	# AIX 5 now supports IA64 processor
16550	lt_prog_compiler_static_GCJ='-Bstatic'
16551      else
16552	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16553      fi
16554      ;;
16555      darwin*)
16556        # PIC is the default on this platform
16557        # Common symbols not allowed in MH_DYLIB files
16558       case $cc_basename in
16559         xlc*)
16560         lt_prog_compiler_pic_GCJ='-qnocommon'
16561         lt_prog_compiler_wl_GCJ='-Wl,'
16562         ;;
16563       esac
16564       ;;
16565
16566    mingw* | pw32* | os2*)
16567      # This hack is so that the source file can tell whether it is being
16568      # built for inclusion in a dll (and should export symbols for example).
16569      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16570      ;;
16571
16572    hpux9* | hpux10* | hpux11*)
16573      lt_prog_compiler_wl_GCJ='-Wl,'
16574      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16575      # not for PA HP-UX.
16576      case $host_cpu in
16577      hppa*64*|ia64*)
16578	# +Z the default
16579	;;
16580      *)
16581	lt_prog_compiler_pic_GCJ='+Z'
16582	;;
16583      esac
16584      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16585      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16586      ;;
16587
16588    irix5* | irix6* | nonstopux*)
16589      lt_prog_compiler_wl_GCJ='-Wl,'
16590      # PIC (with -KPIC) is the default.
16591      lt_prog_compiler_static_GCJ='-non_shared'
16592      ;;
16593
16594    newsos6)
16595      lt_prog_compiler_pic_GCJ='-KPIC'
16596      lt_prog_compiler_static_GCJ='-Bstatic'
16597      ;;
16598
16599    linux*)
16600      case $cc_basename in
16601      icc* | ecc*)
16602	lt_prog_compiler_wl_GCJ='-Wl,'
16603	lt_prog_compiler_pic_GCJ='-KPIC'
16604	lt_prog_compiler_static_GCJ='-static'
16605        ;;
16606      pgcc* | pgf77* | pgf90* | pgf95*)
16607        # Portland Group compilers (*not* the Pentium gcc compiler,
16608	# which looks to be a dead project)
16609	lt_prog_compiler_wl_GCJ='-Wl,'
16610	lt_prog_compiler_pic_GCJ='-fpic'
16611	lt_prog_compiler_static_GCJ='-Bstatic'
16612        ;;
16613      ccc*)
16614        lt_prog_compiler_wl_GCJ='-Wl,'
16615        # All Alpha code is PIC.
16616        lt_prog_compiler_static_GCJ='-non_shared'
16617        ;;
16618      esac
16619      ;;
16620
16621    osf3* | osf4* | osf5*)
16622      lt_prog_compiler_wl_GCJ='-Wl,'
16623      # All OSF/1 code is PIC.
16624      lt_prog_compiler_static_GCJ='-non_shared'
16625      ;;
16626
16627    solaris*)
16628      lt_prog_compiler_pic_GCJ='-KPIC'
16629      lt_prog_compiler_static_GCJ='-Bstatic'
16630      case $cc_basename in
16631      f77* | f90* | f95*)
16632	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16633      *)
16634	lt_prog_compiler_wl_GCJ='-Wl,';;
16635      esac
16636      ;;
16637
16638    sunos4*)
16639      lt_prog_compiler_wl_GCJ='-Qoption ld '
16640      lt_prog_compiler_pic_GCJ='-PIC'
16641      lt_prog_compiler_static_GCJ='-Bstatic'
16642      ;;
16643
16644    sysv4 | sysv4.2uw2* | sysv4.3*)
16645      lt_prog_compiler_wl_GCJ='-Wl,'
16646      lt_prog_compiler_pic_GCJ='-KPIC'
16647      lt_prog_compiler_static_GCJ='-Bstatic'
16648      ;;
16649
16650    sysv4*MP*)
16651      if test -d /usr/nec ;then
16652	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16653	lt_prog_compiler_static_GCJ='-Bstatic'
16654      fi
16655      ;;
16656
16657    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16658      lt_prog_compiler_wl_GCJ='-Wl,'
16659      lt_prog_compiler_pic_GCJ='-KPIC'
16660      lt_prog_compiler_static_GCJ='-Bstatic'
16661      ;;
16662
16663    unicos*)
16664      lt_prog_compiler_wl_GCJ='-Wl,'
16665      lt_prog_compiler_can_build_shared_GCJ=no
16666      ;;
16667
16668    uts4*)
16669      lt_prog_compiler_pic_GCJ='-pic'
16670      lt_prog_compiler_static_GCJ='-Bstatic'
16671      ;;
16672
16673    *)
16674      lt_prog_compiler_can_build_shared_GCJ=no
16675      ;;
16676    esac
16677  fi
16678
16679echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16680echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16681
16682#
16683# Check to make sure the PIC flag actually works.
16684#
16685if test -n "$lt_prog_compiler_pic_GCJ"; then
16686
16687echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16688echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16689if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16690  echo $ECHO_N "(cached) $ECHO_C" >&6
16691else
16692  lt_prog_compiler_pic_works_GCJ=no
16693  ac_outfile=conftest.$ac_objext
16694   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16695   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16696   # Insert the option either (1) after the last *FLAGS variable, or
16697   # (2) before a word containing "conftest.", or (3) at the end.
16698   # Note that $ac_compile itself does not contain backslashes and begins
16699   # with a dollar sign (not a hyphen), so the echo should work correctly.
16700   # The option is referenced via a variable to avoid confusing sed.
16701   lt_compile=`echo "$ac_compile" | $SED \
16702   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16704   -e 's:$: $lt_compiler_flag:'`
16705   (eval echo "\"\$as_me:16705: $lt_compile\"" >&5)
16706   (eval "$lt_compile" 2>conftest.err)
16707   ac_status=$?
16708   cat conftest.err >&5
16709   echo "$as_me:16709: \$? = $ac_status" >&5
16710   if (exit $ac_status) && test -s "$ac_outfile"; then
16711     # The compiler can only warn and ignore the option if not recognized
16712     # So say no if there are warnings other than the usual output.
16713     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16714     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16715     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16716       lt_prog_compiler_pic_works_GCJ=yes
16717     fi
16718   fi
16719   $rm conftest*
16720
16721fi
16722echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16723echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16724
16725if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16726    case $lt_prog_compiler_pic_GCJ in
16727     "" | " "*) ;;
16728     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16729     esac
16730else
16731    lt_prog_compiler_pic_GCJ=
16732     lt_prog_compiler_can_build_shared_GCJ=no
16733fi
16734
16735fi
16736case $host_os in
16737  # For platforms which do not support PIC, -DPIC is meaningless:
16738  *djgpp*)
16739    lt_prog_compiler_pic_GCJ=
16740    ;;
16741  *)
16742    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16743    ;;
16744esac
16745
16746#
16747# Check to make sure the static flag actually works.
16748#
16749wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16750echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16751echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16752if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16753  echo $ECHO_N "(cached) $ECHO_C" >&6
16754else
16755  lt_prog_compiler_static_works_GCJ=no
16756   save_LDFLAGS="$LDFLAGS"
16757   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16758   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16759   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16760     # The linker can only warn and ignore the option if not recognized
16761     # So say no if there are warnings
16762     if test -s conftest.err; then
16763       # Append any errors to the config.log.
16764       cat conftest.err 1>&5
16765       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16766       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16767       if diff conftest.exp conftest.er2 >/dev/null; then
16768         lt_prog_compiler_static_works_GCJ=yes
16769       fi
16770     else
16771       lt_prog_compiler_static_works_GCJ=yes
16772     fi
16773   fi
16774   $rm conftest*
16775   LDFLAGS="$save_LDFLAGS"
16776
16777fi
16778echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16779echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16780
16781if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16782    :
16783else
16784    lt_prog_compiler_static_GCJ=
16785fi
16786
16787
16788echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16789echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16790if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16791  echo $ECHO_N "(cached) $ECHO_C" >&6
16792else
16793  lt_cv_prog_compiler_c_o_GCJ=no
16794   $rm -r conftest 2>/dev/null
16795   mkdir conftest
16796   cd conftest
16797   mkdir out
16798   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16799
16800   lt_compiler_flag="-o out/conftest2.$ac_objext"
16801   # Insert the option either (1) after the last *FLAGS variable, or
16802   # (2) before a word containing "conftest.", or (3) at the end.
16803   # Note that $ac_compile itself does not contain backslashes and begins
16804   # with a dollar sign (not a hyphen), so the echo should work correctly.
16805   lt_compile=`echo "$ac_compile" | $SED \
16806   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16807   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16808   -e 's:$: $lt_compiler_flag:'`
16809   (eval echo "\"\$as_me:16809: $lt_compile\"" >&5)
16810   (eval "$lt_compile" 2>out/conftest.err)
16811   ac_status=$?
16812   cat out/conftest.err >&5
16813   echo "$as_me:16813: \$? = $ac_status" >&5
16814   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16815   then
16816     # The compiler can only warn and ignore the option if not recognized
16817     # So say no if there are warnings
16818     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16819     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16820     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16821       lt_cv_prog_compiler_c_o_GCJ=yes
16822     fi
16823   fi
16824   chmod u+w . 2>&5
16825   $rm conftest*
16826   # SGI C++ compiler will create directory out/ii_files/ for
16827   # template instantiation
16828   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16829   $rm out/* && rmdir out
16830   cd ..
16831   rmdir conftest
16832   $rm conftest*
16833
16834fi
16835echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16836echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16837
16838
16839hard_links="nottested"
16840if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16841  # do not overwrite the value of need_locks provided by the user
16842  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16843echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16844  hard_links=yes
16845  $rm conftest*
16846  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16847  touch conftest.a
16848  ln conftest.a conftest.b 2>&5 || hard_links=no
16849  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16850  echo "$as_me:$LINENO: result: $hard_links" >&5
16851echo "${ECHO_T}$hard_links" >&6
16852  if test "$hard_links" = no; then
16853    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16854echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16855    need_locks=warn
16856  fi
16857else
16858  need_locks=no
16859fi
16860
16861echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16862echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16863
16864  runpath_var=
16865  allow_undefined_flag_GCJ=
16866  enable_shared_with_static_runtimes_GCJ=no
16867  archive_cmds_GCJ=
16868  archive_expsym_cmds_GCJ=
16869  old_archive_From_new_cmds_GCJ=
16870  old_archive_from_expsyms_cmds_GCJ=
16871  export_dynamic_flag_spec_GCJ=
16872  whole_archive_flag_spec_GCJ=
16873  thread_safe_flag_spec_GCJ=
16874  hardcode_libdir_flag_spec_GCJ=
16875  hardcode_libdir_flag_spec_ld_GCJ=
16876  hardcode_libdir_separator_GCJ=
16877  hardcode_direct_GCJ=no
16878  hardcode_minus_L_GCJ=no
16879  hardcode_shlibpath_var_GCJ=unsupported
16880  link_all_deplibs_GCJ=unknown
16881  hardcode_automatic_GCJ=no
16882  module_cmds_GCJ=
16883  module_expsym_cmds_GCJ=
16884  always_export_symbols_GCJ=no
16885  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16886  # include_expsyms should be a list of space-separated symbols to be *always*
16887  # included in the symbol list
16888  include_expsyms_GCJ=
16889  # exclude_expsyms can be an extended regexp of symbols to exclude
16890  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16891  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16892  # as well as any symbol that contains `d'.
16893  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16894  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16895  # platforms (ab)use it in PIC code, but their linkers get confused if
16896  # the symbol is explicitly referenced.  Since portable code cannot
16897  # rely on this symbol name, it's probably fine to never include it in
16898  # preloaded symbol tables.
16899  extract_expsyms_cmds=
16900  # Just being paranoid about ensuring that cc_basename is set.
16901  for cc_temp in $compiler""; do
16902  case $cc_temp in
16903    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16904    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16905    \-*) ;;
16906    *) break;;
16907  esac
16908done
16909cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16910
16911  case $host_os in
16912  cygwin* | mingw* | pw32*)
16913    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16914    # When not using gcc, we currently assume that we are using
16915    # Microsoft Visual C++.
16916    if test "$GCC" != yes; then
16917      with_gnu_ld=no
16918    fi
16919    ;;
16920  interix*)
16921    # we just hope/assume this is gcc and not c89 (= MSVC++)
16922    with_gnu_ld=yes
16923    ;;
16924  openbsd*)
16925    with_gnu_ld=no
16926    ;;
16927  esac
16928
16929  ld_shlibs_GCJ=yes
16930  if test "$with_gnu_ld" = yes; then
16931    # If archive_cmds runs LD, not CC, wlarc should be empty
16932    wlarc='${wl}'
16933
16934    # Set some defaults for GNU ld with shared library support. These
16935    # are reset later if shared libraries are not supported. Putting them
16936    # here allows them to be overridden if necessary.
16937    runpath_var=LD_RUN_PATH
16938    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16939    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16940    # ancient GNU ld didn't support --whole-archive et. al.
16941    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16942	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16943      else
16944  	whole_archive_flag_spec_GCJ=
16945    fi
16946    supports_anon_versioning=no
16947    case `$LD -v 2>/dev/null` in
16948      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16949      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16950      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16951      *\ 2.11.*) ;; # other 2.11 versions
16952      *) supports_anon_versioning=yes ;;
16953    esac
16954
16955    # See if GNU ld supports shared libraries.
16956    case $host_os in
16957    aix3* | aix4* | aix5*)
16958      # On AIX/PPC, the GNU linker is very broken
16959      if test "$host_cpu" != ia64; then
16960	ld_shlibs_GCJ=no
16961	cat <<EOF 1>&2
16962
16963*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16964*** to be unable to reliably create shared libraries on AIX.
16965*** Therefore, libtool is disabling shared libraries support.  If you
16966*** really care for shared libraries, you may want to modify your PATH
16967*** so that a non-GNU linker is found, and then restart.
16968
16969EOF
16970      fi
16971      ;;
16972
16973    amigaos*)
16974      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)'
16975      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16976      hardcode_minus_L_GCJ=yes
16977
16978      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16979      # that the semantics of dynamic libraries on AmigaOS, at least up
16980      # to version 4, is to share data among multiple programs linked
16981      # with the same dynamic library.  Since this doesn't match the
16982      # behavior of shared libraries on other platforms, we can't use
16983      # them.
16984      ld_shlibs_GCJ=no
16985      ;;
16986
16987    beos*)
16988      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16989	allow_undefined_flag_GCJ=unsupported
16990	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16991	# support --undefined.  This deserves some investigation.  FIXME
16992	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16993      else
16994	ld_shlibs_GCJ=no
16995      fi
16996      ;;
16997
16998    cygwin* | mingw* | pw32*)
16999      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17000      # as there is no search path for DLLs.
17001      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17002      allow_undefined_flag_GCJ=unsupported
17003      always_export_symbols_GCJ=no
17004      enable_shared_with_static_runtimes_GCJ=yes
17005      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17006
17007      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17008        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17009	# If the export-symbols file already is a .def file (1st line
17010	# is EXPORTS), use it as is; otherwise, prepend...
17011	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17012	  cp $export_symbols $output_objdir/$soname.def;
17013	else
17014	  echo EXPORTS > $output_objdir/$soname.def;
17015	  cat $export_symbols >> $output_objdir/$soname.def;
17016	fi~
17017	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17018      else
17019	ld_shlibs_GCJ=no
17020      fi
17021      ;;
17022
17023    interix3*)
17024      hardcode_direct_GCJ=no
17025      hardcode_shlibpath_var_GCJ=no
17026      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17027      export_dynamic_flag_spec_GCJ='${wl}-E'
17028      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17029      # Instead, shared libraries are loaded at an image base (0x10000000 by
17030      # default) and relocated if they conflict, which is a slow very memory
17031      # consuming and fragmenting process.  To avoid this, we pick a random,
17032      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17033      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17034      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17035      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17036      ;;
17037
17038    linux*)
17039      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17040	tmp_addflag=
17041	case $cc_basename,$host_cpu in
17042	pgcc*)				# Portland Group C compiler
17043	  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'
17044	  tmp_addflag=' $pic_flag'
17045	  ;;
17046	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17047	  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'
17048	  tmp_addflag=' $pic_flag -Mnomain' ;;
17049	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17050	  tmp_addflag=' -i_dynamic' ;;
17051	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17052	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17053	ifc* | ifort*)			# Intel Fortran compiler
17054	  tmp_addflag=' -nofor_main' ;;
17055	esac
17056	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17057
17058	if test $supports_anon_versioning = yes; then
17059	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17060  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17061  $echo "local: *; };" >> $output_objdir/$libname.ver~
17062	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17063	fi
17064      else
17065	ld_shlibs_GCJ=no
17066      fi
17067      ;;
17068
17069    netbsd*)
17070      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17071	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17072	wlarc=
17073      else
17074	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17075	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17076      fi
17077      ;;
17078
17079    solaris*)
17080      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17081	ld_shlibs_GCJ=no
17082	cat <<EOF 1>&2
17083
17084*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17085*** create shared libraries on Solaris systems.  Therefore, libtool
17086*** is disabling shared libraries support.  We urge you to upgrade GNU
17087*** binutils to release 2.9.1 or newer.  Another option is to modify
17088*** your PATH or compiler configuration so that the native linker is
17089*** used, and then restart.
17090
17091EOF
17092      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17093	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17094	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17095      else
17096	ld_shlibs_GCJ=no
17097      fi
17098      ;;
17099
17100    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17101      case `$LD -v 2>&1` in
17102        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17103	ld_shlibs_GCJ=no
17104	cat <<_LT_EOF 1>&2
17105
17106*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17107*** reliably create shared libraries on SCO systems.  Therefore, libtool
17108*** is disabling shared libraries support.  We urge you to upgrade GNU
17109*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17110*** your PATH or compiler configuration so that the native linker is
17111*** used, and then restart.
17112
17113_LT_EOF
17114	;;
17115	*)
17116	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17117	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17118	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17119	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17120	  else
17121	    ld_shlibs_GCJ=no
17122	  fi
17123	;;
17124      esac
17125      ;;
17126
17127    sunos4*)
17128      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17129      wlarc=
17130      hardcode_direct_GCJ=yes
17131      hardcode_shlibpath_var_GCJ=no
17132      ;;
17133
17134    *)
17135      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17136	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17137	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17138      else
17139	ld_shlibs_GCJ=no
17140      fi
17141      ;;
17142    esac
17143
17144    if test "$ld_shlibs_GCJ" = no; then
17145      runpath_var=
17146      hardcode_libdir_flag_spec_GCJ=
17147      export_dynamic_flag_spec_GCJ=
17148      whole_archive_flag_spec_GCJ=
17149    fi
17150  else
17151    # PORTME fill in a description of your system's linker (not GNU ld)
17152    case $host_os in
17153    aix3*)
17154      allow_undefined_flag_GCJ=unsupported
17155      always_export_symbols_GCJ=yes
17156      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'
17157      # Note: this linker hardcodes the directories in LIBPATH if there
17158      # are no directories specified by -L.
17159      hardcode_minus_L_GCJ=yes
17160      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17161	# Neither direct hardcoding nor static linking is supported with a
17162	# broken collect2.
17163	hardcode_direct_GCJ=unsupported
17164      fi
17165      ;;
17166
17167    aix4* | aix5*)
17168      if test "$host_cpu" = ia64; then
17169	# On IA64, the linker does run time linking by default, so we don't
17170	# have to do anything special.
17171	aix_use_runtimelinking=no
17172	exp_sym_flag='-Bexport'
17173	no_entry_flag=""
17174      else
17175	# If we're using GNU nm, then we don't want the "-C" option.
17176	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17177	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17178	  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'
17179	else
17180	  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'
17181	fi
17182	aix_use_runtimelinking=no
17183
17184	# Test if we are trying to use run time linking or normal
17185	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17186	# need to do runtime linking.
17187	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17188	  for ld_flag in $LDFLAGS; do
17189  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17190  	    aix_use_runtimelinking=yes
17191  	    break
17192  	  fi
17193	  done
17194	  ;;
17195	esac
17196
17197	exp_sym_flag='-bexport'
17198	no_entry_flag='-bnoentry'
17199      fi
17200
17201      # When large executables or shared objects are built, AIX ld can
17202      # have problems creating the table of contents.  If linking a library
17203      # or program results in "error TOC overflow" add -mminimal-toc to
17204      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17205      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17206
17207      archive_cmds_GCJ=''
17208      hardcode_direct_GCJ=yes
17209      hardcode_libdir_separator_GCJ=':'
17210      link_all_deplibs_GCJ=yes
17211
17212      if test "$GCC" = yes; then
17213	case $host_os in aix4.[012]|aix4.[012].*)
17214	# We only want to do this on AIX 4.2 and lower, the check
17215	# below for broken collect2 doesn't work under 4.3+
17216	  collect2name=`${CC} -print-prog-name=collect2`
17217	  if test -f "$collect2name" && \
17218  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17219	  then
17220  	  # We have reworked collect2
17221  	  hardcode_direct_GCJ=yes
17222	  else
17223  	  # We have old collect2
17224  	  hardcode_direct_GCJ=unsupported
17225  	  # It fails to find uninstalled libraries when the uninstalled
17226  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17227  	  # to unsupported forces relinking
17228  	  hardcode_minus_L_GCJ=yes
17229  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17230  	  hardcode_libdir_separator_GCJ=
17231	  fi
17232	  ;;
17233	esac
17234	shared_flag='-shared'
17235	if test "$aix_use_runtimelinking" = yes; then
17236	  shared_flag="$shared_flag "'${wl}-G'
17237	fi
17238      else
17239	# not using gcc
17240	if test "$host_cpu" = ia64; then
17241  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17242  	# chokes on -Wl,-G. The following line is correct:
17243	  shared_flag='-G'
17244	else
17245	  if test "$aix_use_runtimelinking" = yes; then
17246	    shared_flag='${wl}-G'
17247	  else
17248	    shared_flag='${wl}-bM:SRE'
17249	  fi
17250	fi
17251      fi
17252
17253      # It seems that -bexpall does not export symbols beginning with
17254      # underscore (_), so it is better to generate a list of symbols to export.
17255      always_export_symbols_GCJ=yes
17256      if test "$aix_use_runtimelinking" = yes; then
17257	# Warning - without using the other runtime loading flags (-brtl),
17258	# -berok will link without error, but may produce a broken library.
17259	allow_undefined_flag_GCJ='-berok'
17260       # Determine the default libpath from the value encoded in an empty executable.
17261       cat >conftest.$ac_ext <<_ACEOF
17262/* confdefs.h.  */
17263_ACEOF
17264cat confdefs.h >>conftest.$ac_ext
17265cat >>conftest.$ac_ext <<_ACEOF
17266/* end confdefs.h.  */
17267
17268int
17269main ()
17270{
17271
17272  ;
17273  return 0;
17274}
17275_ACEOF
17276rm -f conftest.$ac_objext conftest$ac_exeext
17277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278  (eval $ac_link) 2>conftest.er1
17279  ac_status=$?
17280  grep -v '^ *+' conftest.er1 >conftest.err
17281  rm -f conftest.er1
17282  cat conftest.err >&5
17283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284  (exit $ac_status); } &&
17285	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287  (eval $ac_try) 2>&5
17288  ac_status=$?
17289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290  (exit $ac_status); }; } &&
17291	 { ac_try='test -s conftest$ac_exeext'
17292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293  (eval $ac_try) 2>&5
17294  ac_status=$?
17295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296  (exit $ac_status); }; }; then
17297
17298aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17299}'`
17300# Check for a 64-bit object if we didn't find anything.
17301if 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; }
17302}'`; fi
17303else
17304  echo "$as_me: failed program was:" >&5
17305sed 's/^/| /' conftest.$ac_ext >&5
17306
17307fi
17308rm -f conftest.err conftest.$ac_objext \
17309      conftest$ac_exeext conftest.$ac_ext
17310if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17311
17312       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17313	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17314       else
17315	if test "$host_cpu" = ia64; then
17316	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17317	  allow_undefined_flag_GCJ="-z nodefs"
17318	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17319	else
17320	 # Determine the default libpath from the value encoded in an empty executable.
17321	 cat >conftest.$ac_ext <<_ACEOF
17322/* confdefs.h.  */
17323_ACEOF
17324cat confdefs.h >>conftest.$ac_ext
17325cat >>conftest.$ac_ext <<_ACEOF
17326/* end confdefs.h.  */
17327
17328int
17329main ()
17330{
17331
17332  ;
17333  return 0;
17334}
17335_ACEOF
17336rm -f conftest.$ac_objext conftest$ac_exeext
17337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17338  (eval $ac_link) 2>conftest.er1
17339  ac_status=$?
17340  grep -v '^ *+' conftest.er1 >conftest.err
17341  rm -f conftest.er1
17342  cat conftest.err >&5
17343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344  (exit $ac_status); } &&
17345	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347  (eval $ac_try) 2>&5
17348  ac_status=$?
17349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350  (exit $ac_status); }; } &&
17351	 { ac_try='test -s conftest$ac_exeext'
17352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353  (eval $ac_try) 2>&5
17354  ac_status=$?
17355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356  (exit $ac_status); }; }; then
17357
17358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17359}'`
17360# Check for a 64-bit object if we didn't find anything.
17361if 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; }
17362}'`; fi
17363else
17364  echo "$as_me: failed program was:" >&5
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
17367fi
17368rm -f conftest.err conftest.$ac_objext \
17369      conftest$ac_exeext conftest.$ac_ext
17370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17371
17372	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17373	  # Warning - without using the other run time loading flags,
17374	  # -berok will link without error, but may produce a broken library.
17375	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17376	  allow_undefined_flag_GCJ=' ${wl}-berok'
17377	  # Exported symbols can be pulled into shared objects from archives
17378	  whole_archive_flag_spec_GCJ='$convenience'
17379	  archive_cmds_need_lc_GCJ=yes
17380	  # This is similar to how AIX traditionally builds its shared libraries.
17381	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17382	fi
17383      fi
17384      ;;
17385
17386    amigaos*)
17387      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)'
17388      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17389      hardcode_minus_L_GCJ=yes
17390      # see comment about different semantics on the GNU ld section
17391      ld_shlibs_GCJ=no
17392      ;;
17393
17394    bsdi[45]*)
17395      export_dynamic_flag_spec_GCJ=-rdynamic
17396      ;;
17397
17398    cygwin* | mingw* | pw32*)
17399      # When not using gcc, we currently assume that we are using
17400      # Microsoft Visual C++.
17401      # hardcode_libdir_flag_spec is actually meaningless, as there is
17402      # no search path for DLLs.
17403      hardcode_libdir_flag_spec_GCJ=' '
17404      allow_undefined_flag_GCJ=unsupported
17405      # Tell ltmain to make .lib files, not .a files.
17406      libext=lib
17407      # Tell ltmain to make .dll files, not .so files.
17408      shrext_cmds=".dll"
17409      # FIXME: Setting linknames here is a bad hack.
17410      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17411      # The linker will automatically build a .lib file if we build a DLL.
17412      old_archive_From_new_cmds_GCJ='true'
17413      # FIXME: Should let the user specify the lib program.
17414      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17415      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17416      enable_shared_with_static_runtimes_GCJ=yes
17417      ;;
17418
17419    darwin* | rhapsody*)
17420      case $host_os in
17421        rhapsody* | darwin1.[012])
17422         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17423         ;;
17424       *) # Darwin 1.3 on
17425         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17426           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17427         else
17428           case ${MACOSX_DEPLOYMENT_TARGET} in
17429             10.[012])
17430               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17431               ;;
17432             10.*)
17433               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17434               ;;
17435           esac
17436         fi
17437         ;;
17438      esac
17439      archive_cmds_need_lc_GCJ=no
17440      hardcode_direct_GCJ=no
17441      hardcode_automatic_GCJ=yes
17442      hardcode_shlibpath_var_GCJ=unsupported
17443      whole_archive_flag_spec_GCJ=''
17444      link_all_deplibs_GCJ=yes
17445    if test "$GCC" = yes ; then
17446    	output_verbose_link_cmd='echo'
17447        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17448      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17449      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17450      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}'
17451      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}'
17452    else
17453      case $cc_basename in
17454        xlc*)
17455         output_verbose_link_cmd='echo'
17456         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17457         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17458          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17459         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}'
17460          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}'
17461          ;;
17462       *)
17463         ld_shlibs_GCJ=no
17464          ;;
17465      esac
17466    fi
17467      ;;
17468
17469    dgux*)
17470      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17471      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17472      hardcode_shlibpath_var_GCJ=no
17473      ;;
17474
17475    freebsd1*)
17476      ld_shlibs_GCJ=no
17477      ;;
17478
17479    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17480    # support.  Future versions do this automatically, but an explicit c++rt0.o
17481    # does not break anything, and helps significantly (at the cost of a little
17482    # extra space).
17483    freebsd2.2*)
17484      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17485      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17486      hardcode_direct_GCJ=yes
17487      hardcode_shlibpath_var_GCJ=no
17488      ;;
17489
17490    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17491    freebsd2*)
17492      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17493      hardcode_direct_GCJ=yes
17494      hardcode_minus_L_GCJ=yes
17495      hardcode_shlibpath_var_GCJ=no
17496      ;;
17497
17498    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17499    freebsd* | kfreebsd*-gnu | dragonfly*)
17500      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17501      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17502      hardcode_direct_GCJ=yes
17503      hardcode_shlibpath_var_GCJ=no
17504      ;;
17505
17506    hpux9*)
17507      if test "$GCC" = yes; then
17508	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'
17509      else
17510	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'
17511      fi
17512      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17513      hardcode_libdir_separator_GCJ=:
17514      hardcode_direct_GCJ=yes
17515
17516      # hardcode_minus_L: Not really in the search PATH,
17517      # but as the default location of the library.
17518      hardcode_minus_L_GCJ=yes
17519      export_dynamic_flag_spec_GCJ='${wl}-E'
17520      ;;
17521
17522    hpux10*)
17523      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17524	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17525      else
17526	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17527      fi
17528      if test "$with_gnu_ld" = no; then
17529	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17530	hardcode_libdir_separator_GCJ=:
17531
17532	hardcode_direct_GCJ=yes
17533	export_dynamic_flag_spec_GCJ='${wl}-E'
17534
17535	# hardcode_minus_L: Not really in the search PATH,
17536	# but as the default location of the library.
17537	hardcode_minus_L_GCJ=yes
17538      fi
17539      ;;
17540
17541    hpux11*)
17542      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17543	case $host_cpu in
17544	hppa*64*)
17545	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17546	  ;;
17547	ia64*)
17548	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17549	  ;;
17550	*)
17551	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17552	  ;;
17553	esac
17554      else
17555	case $host_cpu in
17556	hppa*64*)
17557	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17558	  ;;
17559	ia64*)
17560	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17561	  ;;
17562	*)
17563	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17564	  ;;
17565	esac
17566      fi
17567      if test "$with_gnu_ld" = no; then
17568	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17569	hardcode_libdir_separator_GCJ=:
17570
17571	case $host_cpu in
17572	hppa*64*|ia64*)
17573	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17574	  hardcode_direct_GCJ=no
17575	  hardcode_shlibpath_var_GCJ=no
17576	  ;;
17577	*)
17578	  hardcode_direct_GCJ=yes
17579	  export_dynamic_flag_spec_GCJ='${wl}-E'
17580
17581	  # hardcode_minus_L: Not really in the search PATH,
17582	  # but as the default location of the library.
17583	  hardcode_minus_L_GCJ=yes
17584	  ;;
17585	esac
17586      fi
17587      ;;
17588
17589    irix5* | irix6* | nonstopux*)
17590      if test "$GCC" = yes; then
17591	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'
17592      else
17593	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'
17594	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17595      fi
17596      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17597      hardcode_libdir_separator_GCJ=:
17598      link_all_deplibs_GCJ=yes
17599      ;;
17600
17601    netbsd*)
17602      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17603	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17604      else
17605	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17606      fi
17607      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17608      hardcode_direct_GCJ=yes
17609      hardcode_shlibpath_var_GCJ=no
17610      ;;
17611
17612    newsos6)
17613      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17614      hardcode_direct_GCJ=yes
17615      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17616      hardcode_libdir_separator_GCJ=:
17617      hardcode_shlibpath_var_GCJ=no
17618      ;;
17619
17620    openbsd*)
17621      hardcode_direct_GCJ=yes
17622      hardcode_shlibpath_var_GCJ=no
17623      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17624	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17625	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17626	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17627	export_dynamic_flag_spec_GCJ='${wl}-E'
17628      else
17629       case $host_os in
17630	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17631	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17632	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17633	   ;;
17634	 *)
17635	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17636	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17637	   ;;
17638       esac
17639      fi
17640      ;;
17641
17642    os2*)
17643      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17644      hardcode_minus_L_GCJ=yes
17645      allow_undefined_flag_GCJ=unsupported
17646      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'
17647      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17648      ;;
17649
17650    osf3*)
17651      if test "$GCC" = yes; then
17652	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17653	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'
17654      else
17655	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17656	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'
17657      fi
17658      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17659      hardcode_libdir_separator_GCJ=:
17660      ;;
17661
17662    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17663      if test "$GCC" = yes; then
17664	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17665	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'
17666	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17667      else
17668	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17669	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'
17670	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~
17671	$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'
17672
17673	# Both c and cxx compiler support -rpath directly
17674	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17675      fi
17676      hardcode_libdir_separator_GCJ=:
17677      ;;
17678
17679    solaris*)
17680      no_undefined_flag_GCJ=' -z text'
17681      if test "$GCC" = yes; then
17682	wlarc='${wl}'
17683	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17684	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17685	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17686      else
17687	wlarc=''
17688	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17689	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17690  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17691      fi
17692      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17693      hardcode_shlibpath_var_GCJ=no
17694      case $host_os in
17695      solaris2.[0-5] | solaris2.[0-5].*) ;;
17696      *)
17697 	# The compiler driver will combine linker options so we
17698 	# cannot just pass the convience library names through
17699 	# without $wl, iff we do not link with $LD.
17700 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17701 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17702 	case $wlarc in
17703 	'')
17704 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17705 	*)
17706 	  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' ;;
17707 	esac ;;
17708      esac
17709      link_all_deplibs_GCJ=yes
17710      ;;
17711
17712    sunos4*)
17713      if test "x$host_vendor" = xsequent; then
17714	# Use $CC to link under sequent, because it throws in some extra .o
17715	# files that make .init and .fini sections work.
17716	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17717      else
17718	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17719      fi
17720      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17721      hardcode_direct_GCJ=yes
17722      hardcode_minus_L_GCJ=yes
17723      hardcode_shlibpath_var_GCJ=no
17724      ;;
17725
17726    sysv4)
17727      case $host_vendor in
17728	sni)
17729	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17730	  hardcode_direct_GCJ=yes # is this really true???
17731	;;
17732	siemens)
17733	  ## LD is ld it makes a PLAMLIB
17734	  ## CC just makes a GrossModule.
17735	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17736	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17737	  hardcode_direct_GCJ=no
17738        ;;
17739	motorola)
17740	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17742	;;
17743      esac
17744      runpath_var='LD_RUN_PATH'
17745      hardcode_shlibpath_var_GCJ=no
17746      ;;
17747
17748    sysv4.3*)
17749      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17750      hardcode_shlibpath_var_GCJ=no
17751      export_dynamic_flag_spec_GCJ='-Bexport'
17752      ;;
17753
17754    sysv4*MP*)
17755      if test -d /usr/nec; then
17756	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17757	hardcode_shlibpath_var_GCJ=no
17758	runpath_var=LD_RUN_PATH
17759	hardcode_runpath_var=yes
17760	ld_shlibs_GCJ=yes
17761      fi
17762      ;;
17763
17764    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17765      no_undefined_flag_GCJ='${wl}-z,text'
17766      archive_cmds_need_lc_GCJ=no
17767      hardcode_shlibpath_var_GCJ=no
17768      runpath_var='LD_RUN_PATH'
17769
17770      if test "$GCC" = yes; then
17771	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17772	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17773      else
17774	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17775	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17776      fi
17777      ;;
17778
17779    sysv5* | sco3.2v5* | sco5v6*)
17780      # Note: We can NOT use -z defs as we might desire, because we do not
17781      # link with -lc, and that would cause any symbols used from libc to
17782      # always be unresolved, which means just about no library would
17783      # ever link correctly.  If we're not using GNU ld we use -z text
17784      # though, which does catch some bad symbols but isn't as heavy-handed
17785      # as -z defs.
17786      no_undefined_flag_GCJ='${wl}-z,text'
17787      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17788      archive_cmds_need_lc_GCJ=no
17789      hardcode_shlibpath_var_GCJ=no
17790      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17791      hardcode_libdir_separator_GCJ=':'
17792      link_all_deplibs_GCJ=yes
17793      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17794      runpath_var='LD_RUN_PATH'
17795
17796      if test "$GCC" = yes; then
17797	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17798	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17799      else
17800	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17801	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17802      fi
17803      ;;
17804
17805    uts4*)
17806      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17807      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17808      hardcode_shlibpath_var_GCJ=no
17809      ;;
17810
17811    *)
17812      ld_shlibs_GCJ=no
17813      ;;
17814    esac
17815  fi
17816
17817echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17818echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17819test "$ld_shlibs_GCJ" = no && can_build_shared=no
17820
17821#
17822# Do we need to explicitly link libc?
17823#
17824case "x$archive_cmds_need_lc_GCJ" in
17825x|xyes)
17826  # Assume -lc should be added
17827  archive_cmds_need_lc_GCJ=yes
17828
17829  if test "$enable_shared" = yes && test "$GCC" = yes; then
17830    case $archive_cmds_GCJ in
17831    *'~'*)
17832      # FIXME: we may have to deal with multi-command sequences.
17833      ;;
17834    '$CC '*)
17835      # Test whether the compiler implicitly links with -lc since on some
17836      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17837      # to ld, don't add -lc before -lgcc.
17838      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17839echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17840      $rm conftest*
17841      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17842
17843      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17844  (eval $ac_compile) 2>&5
17845  ac_status=$?
17846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847  (exit $ac_status); } 2>conftest.err; then
17848        soname=conftest
17849        lib=conftest
17850        libobjs=conftest.$ac_objext
17851        deplibs=
17852        wl=$lt_prog_compiler_wl_GCJ
17853	pic_flag=$lt_prog_compiler_pic_GCJ
17854        compiler_flags=-v
17855        linker_flags=-v
17856        verstring=
17857        output_objdir=.
17858        libname=conftest
17859        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17860        allow_undefined_flag_GCJ=
17861        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17862  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17863  ac_status=$?
17864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865  (exit $ac_status); }
17866        then
17867	  archive_cmds_need_lc_GCJ=no
17868        else
17869	  archive_cmds_need_lc_GCJ=yes
17870        fi
17871        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17872      else
17873        cat conftest.err 1>&5
17874      fi
17875      $rm conftest*
17876      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17877echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17878      ;;
17879    esac
17880  fi
17881  ;;
17882esac
17883
17884echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17885echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17886library_names_spec=
17887libname_spec='lib$name'
17888soname_spec=
17889shrext_cmds=".so"
17890postinstall_cmds=
17891postuninstall_cmds=
17892finish_cmds=
17893finish_eval=
17894shlibpath_var=
17895shlibpath_overrides_runpath=unknown
17896version_type=none
17897dynamic_linker="$host_os ld.so"
17898sys_lib_dlsearch_path_spec="/lib /usr/lib"
17899if test "$GCC" = yes; then
17900  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17901  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17902    # if the path contains ";" then we assume it to be the separator
17903    # otherwise default to the standard path separator (i.e. ":") - it is
17904    # assumed that no part of a normal pathname contains ";" but that should
17905    # okay in the real world where ";" in dirpaths is itself problematic.
17906    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17907  else
17908    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17909  fi
17910else
17911  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17912fi
17913need_lib_prefix=unknown
17914hardcode_into_libs=no
17915
17916# when you set need_version to no, make sure it does not cause -set_version
17917# flags to be left without arguments
17918need_version=unknown
17919
17920case $host_os in
17921aix3*)
17922  version_type=linux
17923  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17924  shlibpath_var=LIBPATH
17925
17926  # AIX 3 has no versioning support, so we append a major version to the name.
17927  soname_spec='${libname}${release}${shared_ext}$major'
17928  ;;
17929
17930aix4* | aix5*)
17931  version_type=linux
17932  need_lib_prefix=no
17933  need_version=no
17934  hardcode_into_libs=yes
17935  if test "$host_cpu" = ia64; then
17936    # AIX 5 supports IA64
17937    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17938    shlibpath_var=LD_LIBRARY_PATH
17939  else
17940    # With GCC up to 2.95.x, collect2 would create an import file
17941    # for dependence libraries.  The import file would start with
17942    # the line `#! .'.  This would cause the generated library to
17943    # depend on `.', always an invalid library.  This was fixed in
17944    # development snapshots of GCC prior to 3.0.
17945    case $host_os in
17946      aix4 | aix4.[01] | aix4.[01].*)
17947      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17948	   echo ' yes '
17949	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17950	:
17951      else
17952	can_build_shared=no
17953      fi
17954      ;;
17955    esac
17956    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17957    # soname into executable. Probably we can add versioning support to
17958    # collect2, so additional links can be useful in future.
17959    if test "$aix_use_runtimelinking" = yes; then
17960      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17961      # instead of lib<name>.a to let people know that these are not
17962      # typical AIX shared libraries.
17963      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17964    else
17965      # We preserve .a as extension for shared libraries through AIX4.2
17966      # and later when we are not doing run time linking.
17967      library_names_spec='${libname}${release}.a $libname.a'
17968      soname_spec='${libname}${release}${shared_ext}$major'
17969    fi
17970    shlibpath_var=LIBPATH
17971  fi
17972  ;;
17973
17974amigaos*)
17975  library_names_spec='$libname.ixlibrary $libname.a'
17976  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17977  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'
17978  ;;
17979
17980beos*)
17981  library_names_spec='${libname}${shared_ext}'
17982  dynamic_linker="$host_os ld.so"
17983  shlibpath_var=LIBRARY_PATH
17984  ;;
17985
17986bsdi[45]*)
17987  version_type=linux
17988  need_version=no
17989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990  soname_spec='${libname}${release}${shared_ext}$major'
17991  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17992  shlibpath_var=LD_LIBRARY_PATH
17993  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17994  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17995  # the default ld.so.conf also contains /usr/contrib/lib and
17996  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17997  # libtool to hard-code these into programs
17998  ;;
17999
18000cygwin* | mingw* | pw32*)
18001  version_type=windows
18002  shrext_cmds=".dll"
18003  need_version=no
18004  need_lib_prefix=no
18005
18006  case $GCC,$host_os in
18007  yes,cygwin* | yes,mingw* | yes,pw32*)
18008    library_names_spec='$libname.dll.a'
18009    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18010    postinstall_cmds='base_file=`basename \${file}`~
18011      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18012      dldir=$destdir/`dirname \$dlpath`~
18013      test -d \$dldir || mkdir -p \$dldir~
18014      $install_prog $dir/$dlname \$dldir/$dlname~
18015      chmod a+x \$dldir/$dlname'
18016    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18017      dlpath=$dir/\$dldll~
18018       $rm \$dlpath'
18019    shlibpath_overrides_runpath=yes
18020
18021    case $host_os in
18022    cygwin*)
18023      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18024      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18025      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18026      ;;
18027    mingw*)
18028      # MinGW DLLs use traditional 'lib' prefix
18029      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18030      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18031      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18032        # It is most probably a Windows format PATH printed by
18033        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18034        # path with ; separators, and with drive letters. We can handle the
18035        # drive letters (cygwin fileutils understands them), so leave them,
18036        # especially as we might pass files found there to a mingw objdump,
18037        # which wouldn't understand a cygwinified path. Ahh.
18038        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18039      else
18040        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18041      fi
18042      ;;
18043    pw32*)
18044      # pw32 DLLs use 'pw' prefix rather than 'lib'
18045      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18046      ;;
18047    esac
18048    ;;
18049
18050  *)
18051    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18052    ;;
18053  esac
18054  dynamic_linker='Win32 ld.exe'
18055  # FIXME: first we should search . and the directory the executable is in
18056  shlibpath_var=PATH
18057  ;;
18058
18059darwin* | rhapsody*)
18060  dynamic_linker="$host_os dyld"
18061  version_type=darwin
18062  need_lib_prefix=no
18063  need_version=no
18064  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18065  soname_spec='${libname}${release}${major}$shared_ext'
18066  shlibpath_overrides_runpath=yes
18067  shlibpath_var=DYLD_LIBRARY_PATH
18068  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18069  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18070  if test "$GCC" = yes; then
18071    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"`
18072  else
18073    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18074  fi
18075  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18076  ;;
18077
18078dgux*)
18079  version_type=linux
18080  need_lib_prefix=no
18081  need_version=no
18082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18083  soname_spec='${libname}${release}${shared_ext}$major'
18084  shlibpath_var=LD_LIBRARY_PATH
18085  ;;
18086
18087freebsd1*)
18088  dynamic_linker=no
18089  ;;
18090
18091kfreebsd*-gnu)
18092  version_type=linux
18093  need_lib_prefix=no
18094  need_version=no
18095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18096  soname_spec='${libname}${release}${shared_ext}$major'
18097  shlibpath_var=LD_LIBRARY_PATH
18098  shlibpath_overrides_runpath=no
18099  hardcode_into_libs=yes
18100  dynamic_linker='GNU ld.so'
18101  ;;
18102
18103freebsd* | dragonfly*)
18104  # DragonFly does not have aout.  When/if they implement a new
18105  # versioning mechanism, adjust this.
18106  if test -x /usr/bin/objformat; then
18107    objformat=`/usr/bin/objformat`
18108  else
18109    case $host_os in
18110    freebsd[123]*) objformat=aout ;;
18111    *) objformat=elf ;;
18112    esac
18113  fi
18114  version_type=freebsd-$objformat
18115  case $version_type in
18116    freebsd-elf*)
18117      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18118      need_version=no
18119      need_lib_prefix=no
18120      ;;
18121    freebsd-*)
18122      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18123      need_version=yes
18124      ;;
18125  esac
18126  shlibpath_var=LD_LIBRARY_PATH
18127  case $host_os in
18128  freebsd2*)
18129    shlibpath_overrides_runpath=yes
18130    ;;
18131  freebsd3.[01]* | freebsdelf3.[01]*)
18132    shlibpath_overrides_runpath=yes
18133    hardcode_into_libs=yes
18134    ;;
18135  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18136  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18137    shlibpath_overrides_runpath=no
18138    hardcode_into_libs=yes
18139    ;;
18140  freebsd*) # from 4.6 on
18141    shlibpath_overrides_runpath=yes
18142    hardcode_into_libs=yes
18143    ;;
18144  esac
18145  ;;
18146
18147gnu*)
18148  version_type=linux
18149  need_lib_prefix=no
18150  need_version=no
18151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18152  soname_spec='${libname}${release}${shared_ext}$major'
18153  shlibpath_var=LD_LIBRARY_PATH
18154  hardcode_into_libs=yes
18155  ;;
18156
18157hpux9* | hpux10* | hpux11*)
18158  # Give a soname corresponding to the major version so that dld.sl refuses to
18159  # link against other versions.
18160  version_type=sunos
18161  need_lib_prefix=no
18162  need_version=no
18163  case $host_cpu in
18164  ia64*)
18165    shrext_cmds='.so'
18166    hardcode_into_libs=yes
18167    dynamic_linker="$host_os dld.so"
18168    shlibpath_var=LD_LIBRARY_PATH
18169    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171    soname_spec='${libname}${release}${shared_ext}$major'
18172    if test "X$HPUX_IA64_MODE" = X32; then
18173      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18174    else
18175      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18176    fi
18177    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18178    ;;
18179   hppa*64*)
18180     shrext_cmds='.sl'
18181     hardcode_into_libs=yes
18182     dynamic_linker="$host_os dld.sl"
18183     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18184     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18186     soname_spec='${libname}${release}${shared_ext}$major'
18187     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18188     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18189     ;;
18190   *)
18191    shrext_cmds='.sl'
18192    dynamic_linker="$host_os dld.sl"
18193    shlibpath_var=SHLIB_PATH
18194    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18195    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196    soname_spec='${libname}${release}${shared_ext}$major'
18197    ;;
18198  esac
18199  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18200  postinstall_cmds='chmod 555 $lib'
18201  ;;
18202
18203interix3*)
18204  version_type=linux
18205  need_lib_prefix=no
18206  need_version=no
18207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18208  soname_spec='${libname}${release}${shared_ext}$major'
18209  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18210  shlibpath_var=LD_LIBRARY_PATH
18211  shlibpath_overrides_runpath=no
18212  hardcode_into_libs=yes
18213  ;;
18214
18215irix5* | irix6* | nonstopux*)
18216  case $host_os in
18217    nonstopux*) version_type=nonstopux ;;
18218    *)
18219	if test "$lt_cv_prog_gnu_ld" = yes; then
18220		version_type=linux
18221	else
18222		version_type=irix
18223	fi ;;
18224  esac
18225  need_lib_prefix=no
18226  need_version=no
18227  soname_spec='${libname}${release}${shared_ext}$major'
18228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18229  case $host_os in
18230  irix5* | nonstopux*)
18231    libsuff= shlibsuff=
18232    ;;
18233  *)
18234    case $LD in # libtool.m4 will add one of these switches to LD
18235    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18236      libsuff= shlibsuff= libmagic=32-bit;;
18237    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18238      libsuff=32 shlibsuff=N32 libmagic=N32;;
18239    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18240      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18241    *) libsuff= shlibsuff= libmagic=never-match;;
18242    esac
18243    ;;
18244  esac
18245  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18246  shlibpath_overrides_runpath=no
18247  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18248  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18249  hardcode_into_libs=yes
18250  ;;
18251
18252# No shared lib support for Linux oldld, aout, or coff.
18253linux*oldld* | linux*aout* | linux*coff*)
18254  dynamic_linker=no
18255  ;;
18256
18257# This must be Linux ELF.
18258linux*)
18259  version_type=linux
18260  need_lib_prefix=no
18261  need_version=no
18262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263  soname_spec='${libname}${release}${shared_ext}$major'
18264  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18265  shlibpath_var=LD_LIBRARY_PATH
18266  shlibpath_overrides_runpath=no
18267  # This implies no fast_install, which is unacceptable.
18268  # Some rework will be needed to allow for fast_install
18269  # before this can be enabled.
18270  hardcode_into_libs=yes
18271
18272  # find out which ABI we are using
18273  libsuff=
18274  case "$host_cpu" in
18275  x86_64*|s390x*|powerpc64*)
18276    echo '#line 18276 "configure"' > conftest.$ac_ext
18277    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18278  (eval $ac_compile) 2>&5
18279  ac_status=$?
18280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281  (exit $ac_status); }; then
18282      case `/usr/bin/file conftest.$ac_objext` in
18283      *64-bit*)
18284        libsuff=64
18285        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18286        ;;
18287      esac
18288    fi
18289    rm -rf conftest*
18290    ;;
18291  esac
18292
18293  # Append ld.so.conf contents to the search path
18294  if test -f /etc/ld.so.conf; then
18295    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' ' '`
18296    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18297  fi
18298
18299  # We used to test for /lib/ld.so.1 and disable shared libraries on
18300  # powerpc, because MkLinux only supported shared libraries with the
18301  # GNU dynamic linker.  Since this was broken with cross compilers,
18302  # most powerpc-linux boxes support dynamic linking these days and
18303  # people can always --disable-shared, the test was removed, and we
18304  # assume the GNU/Linux dynamic linker is in use.
18305  dynamic_linker='GNU/Linux ld.so'
18306  ;;
18307
18308knetbsd*-gnu)
18309  version_type=linux
18310  need_lib_prefix=no
18311  need_version=no
18312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18313  soname_spec='${libname}${release}${shared_ext}$major'
18314  shlibpath_var=LD_LIBRARY_PATH
18315  shlibpath_overrides_runpath=no
18316  hardcode_into_libs=yes
18317  dynamic_linker='GNU ld.so'
18318  ;;
18319
18320netbsd*)
18321  version_type=sunos
18322  need_lib_prefix=no
18323  need_version=no
18324  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18325    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18326    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18327    dynamic_linker='NetBSD (a.out) ld.so'
18328  else
18329    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18330    soname_spec='${libname}${release}${shared_ext}$major'
18331    dynamic_linker='NetBSD ld.elf_so'
18332  fi
18333  shlibpath_var=LD_LIBRARY_PATH
18334  shlibpath_overrides_runpath=yes
18335  hardcode_into_libs=yes
18336  ;;
18337
18338newsos6)
18339  version_type=linux
18340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18341  shlibpath_var=LD_LIBRARY_PATH
18342  shlibpath_overrides_runpath=yes
18343  ;;
18344
18345nto-qnx*)
18346  version_type=linux
18347  need_lib_prefix=no
18348  need_version=no
18349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18350  soname_spec='${libname}${release}${shared_ext}$major'
18351  shlibpath_var=LD_LIBRARY_PATH
18352  shlibpath_overrides_runpath=yes
18353  ;;
18354
18355openbsd*)
18356  version_type=sunos
18357  sys_lib_dlsearch_path_spec="/usr/lib"
18358  need_lib_prefix=no
18359  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18360  case $host_os in
18361    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18362    *)                         need_version=no  ;;
18363  esac
18364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18365  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18366  shlibpath_var=LD_LIBRARY_PATH
18367  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18368    case $host_os in
18369      openbsd2.[89] | openbsd2.[89].*)
18370	shlibpath_overrides_runpath=no
18371	;;
18372      *)
18373	shlibpath_overrides_runpath=yes
18374	;;
18375      esac
18376  else
18377    shlibpath_overrides_runpath=yes
18378  fi
18379  ;;
18380
18381os2*)
18382  libname_spec='$name'
18383  shrext_cmds=".dll"
18384  need_lib_prefix=no
18385  library_names_spec='$libname${shared_ext} $libname.a'
18386  dynamic_linker='OS/2 ld.exe'
18387  shlibpath_var=LIBPATH
18388  ;;
18389
18390osf3* | osf4* | osf5*)
18391  version_type=osf
18392  need_lib_prefix=no
18393  need_version=no
18394  soname_spec='${libname}${release}${shared_ext}$major'
18395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396  shlibpath_var=LD_LIBRARY_PATH
18397  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18398  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18399  ;;
18400
18401solaris*)
18402  version_type=linux
18403  need_lib_prefix=no
18404  need_version=no
18405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406  soname_spec='${libname}${release}${shared_ext}$major'
18407  shlibpath_var=LD_LIBRARY_PATH
18408  shlibpath_overrides_runpath=yes
18409  hardcode_into_libs=yes
18410  # ldd complains unless libraries are executable
18411  postinstall_cmds='chmod +x $lib'
18412  ;;
18413
18414sunos4*)
18415  version_type=sunos
18416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18417  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18418  shlibpath_var=LD_LIBRARY_PATH
18419  shlibpath_overrides_runpath=yes
18420  if test "$with_gnu_ld" = yes; then
18421    need_lib_prefix=no
18422  fi
18423  need_version=yes
18424  ;;
18425
18426sysv4 | sysv4.3*)
18427  version_type=linux
18428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18429  soname_spec='${libname}${release}${shared_ext}$major'
18430  shlibpath_var=LD_LIBRARY_PATH
18431  case $host_vendor in
18432    sni)
18433      shlibpath_overrides_runpath=no
18434      need_lib_prefix=no
18435      export_dynamic_flag_spec='${wl}-Blargedynsym'
18436      runpath_var=LD_RUN_PATH
18437      ;;
18438    siemens)
18439      need_lib_prefix=no
18440      ;;
18441    motorola)
18442      need_lib_prefix=no
18443      need_version=no
18444      shlibpath_overrides_runpath=no
18445      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18446      ;;
18447  esac
18448  ;;
18449
18450sysv4*MP*)
18451  if test -d /usr/nec ;then
18452    version_type=linux
18453    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18454    soname_spec='$libname${shared_ext}.$major'
18455    shlibpath_var=LD_LIBRARY_PATH
18456  fi
18457  ;;
18458
18459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18460  version_type=freebsd-elf
18461  need_lib_prefix=no
18462  need_version=no
18463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18464  soname_spec='${libname}${release}${shared_ext}$major'
18465  shlibpath_var=LD_LIBRARY_PATH
18466  hardcode_into_libs=yes
18467  if test "$with_gnu_ld" = yes; then
18468    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18469    shlibpath_overrides_runpath=no
18470  else
18471    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18472    shlibpath_overrides_runpath=yes
18473    case $host_os in
18474      sco3.2v5*)
18475        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18476	;;
18477    esac
18478  fi
18479  sys_lib_dlsearch_path_spec='/usr/lib'
18480  ;;
18481
18482uts4*)
18483  version_type=linux
18484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18485  soname_spec='${libname}${release}${shared_ext}$major'
18486  shlibpath_var=LD_LIBRARY_PATH
18487  ;;
18488
18489*)
18490  dynamic_linker=no
18491  ;;
18492esac
18493echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18494echo "${ECHO_T}$dynamic_linker" >&6
18495test "$dynamic_linker" = no && can_build_shared=no
18496
18497variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18498if test "$GCC" = yes; then
18499  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18500fi
18501
18502echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18503echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18504hardcode_action_GCJ=
18505if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18506   test -n "$runpath_var_GCJ" || \
18507   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18508
18509  # We can hardcode non-existant directories.
18510  if test "$hardcode_direct_GCJ" != no &&
18511     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18512     # have to relink, otherwise we might link with an installed library
18513     # when we should be linking with a yet-to-be-installed one
18514     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18515     test "$hardcode_minus_L_GCJ" != no; then
18516    # Linking always hardcodes the temporary library directory.
18517    hardcode_action_GCJ=relink
18518  else
18519    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18520    hardcode_action_GCJ=immediate
18521  fi
18522else
18523  # We cannot hardcode anything, or else we can only hardcode existing
18524  # directories.
18525  hardcode_action_GCJ=unsupported
18526fi
18527echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18528echo "${ECHO_T}$hardcode_action_GCJ" >&6
18529
18530if test "$hardcode_action_GCJ" = relink; then
18531  # Fast installation is not supported
18532  enable_fast_install=no
18533elif test "$shlibpath_overrides_runpath" = yes ||
18534     test "$enable_shared" = no; then
18535  # Fast installation is not necessary
18536  enable_fast_install=needless
18537fi
18538
18539
18540# The else clause should only fire when bootstrapping the
18541# libtool distribution, otherwise you forgot to ship ltmain.sh
18542# with your package, and you will get complaints that there are
18543# no rules to generate ltmain.sh.
18544if test -f "$ltmain"; then
18545  # See if we are running on zsh, and set the options which allow our commands through
18546  # without removal of \ escapes.
18547  if test -n "${ZSH_VERSION+set}" ; then
18548    setopt NO_GLOB_SUBST
18549  fi
18550  # Now quote all the things that may contain metacharacters while being
18551  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18552  # variables and quote the copies for generation of the libtool script.
18553  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18554    SED SHELL STRIP \
18555    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18556    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18557    deplibs_check_method reload_flag reload_cmds need_locks \
18558    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18559    lt_cv_sys_global_symbol_to_c_name_address \
18560    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18561    old_postinstall_cmds old_postuninstall_cmds \
18562    compiler_GCJ \
18563    CC_GCJ \
18564    LD_GCJ \
18565    lt_prog_compiler_wl_GCJ \
18566    lt_prog_compiler_pic_GCJ \
18567    lt_prog_compiler_static_GCJ \
18568    lt_prog_compiler_no_builtin_flag_GCJ \
18569    export_dynamic_flag_spec_GCJ \
18570    thread_safe_flag_spec_GCJ \
18571    whole_archive_flag_spec_GCJ \
18572    enable_shared_with_static_runtimes_GCJ \
18573    old_archive_cmds_GCJ \
18574    old_archive_from_new_cmds_GCJ \
18575    predep_objects_GCJ \
18576    postdep_objects_GCJ \
18577    predeps_GCJ \
18578    postdeps_GCJ \
18579    compiler_lib_search_path_GCJ \
18580    archive_cmds_GCJ \
18581    archive_expsym_cmds_GCJ \
18582    postinstall_cmds_GCJ \
18583    postuninstall_cmds_GCJ \
18584    old_archive_from_expsyms_cmds_GCJ \
18585    allow_undefined_flag_GCJ \
18586    no_undefined_flag_GCJ \
18587    export_symbols_cmds_GCJ \
18588    hardcode_libdir_flag_spec_GCJ \
18589    hardcode_libdir_flag_spec_ld_GCJ \
18590    hardcode_libdir_separator_GCJ \
18591    hardcode_automatic_GCJ \
18592    module_cmds_GCJ \
18593    module_expsym_cmds_GCJ \
18594    lt_cv_prog_compiler_c_o_GCJ \
18595    exclude_expsyms_GCJ \
18596    include_expsyms_GCJ; do
18597
18598    case $var in
18599    old_archive_cmds_GCJ | \
18600    old_archive_from_new_cmds_GCJ | \
18601    archive_cmds_GCJ | \
18602    archive_expsym_cmds_GCJ | \
18603    module_cmds_GCJ | \
18604    module_expsym_cmds_GCJ | \
18605    old_archive_from_expsyms_cmds_GCJ | \
18606    export_symbols_cmds_GCJ | \
18607    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18608    postinstall_cmds | postuninstall_cmds | \
18609    old_postinstall_cmds | old_postuninstall_cmds | \
18610    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18611      # Double-quote double-evaled strings.
18612      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18613      ;;
18614    *)
18615      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18616      ;;
18617    esac
18618  done
18619
18620  case $lt_echo in
18621  *'\$0 --fallback-echo"')
18622    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18623    ;;
18624  esac
18625
18626cfgfile="$ofile"
18627
18628  cat <<__EOF__ >> "$cfgfile"
18629# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18630
18631# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18632
18633# Shell to use when invoking shell scripts.
18634SHELL=$lt_SHELL
18635
18636# Whether or not to build shared libraries.
18637build_libtool_libs=$enable_shared
18638
18639# Whether or not to build static libraries.
18640build_old_libs=$enable_static
18641
18642# Whether or not to add -lc for building shared libraries.
18643build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18644
18645# Whether or not to disallow shared libs when runtime libs are static
18646allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18647
18648# Whether or not to optimize for fast installation.
18649fast_install=$enable_fast_install
18650
18651# The host system.
18652host_alias=$host_alias
18653host=$host
18654host_os=$host_os
18655
18656# The build system.
18657build_alias=$build_alias
18658build=$build
18659build_os=$build_os
18660
18661# An echo program that does not interpret backslashes.
18662echo=$lt_echo
18663
18664# The archiver.
18665AR=$lt_AR
18666AR_FLAGS=$lt_AR_FLAGS
18667
18668# A C compiler.
18669LTCC=$lt_LTCC
18670
18671# LTCC compiler flags.
18672LTCFLAGS=$lt_LTCFLAGS
18673
18674# A language-specific compiler.
18675CC=$lt_compiler_GCJ
18676
18677# Is the compiler the GNU C compiler?
18678with_gcc=$GCC_GCJ
18679
18680# An ERE matcher.
18681EGREP=$lt_EGREP
18682
18683# The linker used to build libraries.
18684LD=$lt_LD_GCJ
18685
18686# Whether we need hard or soft links.
18687LN_S=$lt_LN_S
18688
18689# A BSD-compatible nm program.
18690NM=$lt_NM
18691
18692# A symbol stripping program
18693STRIP=$lt_STRIP
18694
18695# Used to examine libraries when file_magic_cmd begins "file"
18696MAGIC_CMD=$MAGIC_CMD
18697
18698# Used on cygwin: DLL creation program.
18699DLLTOOL="$DLLTOOL"
18700
18701# Used on cygwin: object dumper.
18702OBJDUMP="$OBJDUMP"
18703
18704# Used on cygwin: assembler.
18705AS="$AS"
18706
18707# The name of the directory that contains temporary libtool files.
18708objdir=$objdir
18709
18710# How to create reloadable object files.
18711reload_flag=$lt_reload_flag
18712reload_cmds=$lt_reload_cmds
18713
18714# How to pass a linker flag through the compiler.
18715wl=$lt_lt_prog_compiler_wl_GCJ
18716
18717# Object file suffix (normally "o").
18718objext="$ac_objext"
18719
18720# Old archive suffix (normally "a").
18721libext="$libext"
18722
18723# Shared library suffix (normally ".so").
18724shrext_cmds='$shrext_cmds'
18725
18726# Executable file suffix (normally "").
18727exeext="$exeext"
18728
18729# Additional compiler flags for building library objects.
18730pic_flag=$lt_lt_prog_compiler_pic_GCJ
18731pic_mode=$pic_mode
18732
18733# What is the maximum length of a command?
18734max_cmd_len=$lt_cv_sys_max_cmd_len
18735
18736# Does compiler simultaneously support -c and -o options?
18737compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18738
18739# Must we lock files when doing compilation?
18740need_locks=$lt_need_locks
18741
18742# Do we need the lib prefix for modules?
18743need_lib_prefix=$need_lib_prefix
18744
18745# Do we need a version for libraries?
18746need_version=$need_version
18747
18748# Whether dlopen is supported.
18749dlopen_support=$enable_dlopen
18750
18751# Whether dlopen of programs is supported.
18752dlopen_self=$enable_dlopen_self
18753
18754# Whether dlopen of statically linked programs is supported.
18755dlopen_self_static=$enable_dlopen_self_static
18756
18757# Compiler flag to prevent dynamic linking.
18758link_static_flag=$lt_lt_prog_compiler_static_GCJ
18759
18760# Compiler flag to turn off builtin functions.
18761no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18762
18763# Compiler flag to allow reflexive dlopens.
18764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18765
18766# Compiler flag to generate shared objects directly from archives.
18767whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18768
18769# Compiler flag to generate thread-safe objects.
18770thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18771
18772# Library versioning type.
18773version_type=$version_type
18774
18775# Format of library name prefix.
18776libname_spec=$lt_libname_spec
18777
18778# List of archive names.  First name is the real one, the rest are links.
18779# The last name is the one that the linker finds with -lNAME.
18780library_names_spec=$lt_library_names_spec
18781
18782# The coded name of the library, if different from the real name.
18783soname_spec=$lt_soname_spec
18784
18785# Commands used to build and install an old-style archive.
18786RANLIB=$lt_RANLIB
18787old_archive_cmds=$lt_old_archive_cmds_GCJ
18788old_postinstall_cmds=$lt_old_postinstall_cmds
18789old_postuninstall_cmds=$lt_old_postuninstall_cmds
18790
18791# Create an old-style archive from a shared archive.
18792old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18793
18794# Create a temporary old-style archive to link instead of a shared archive.
18795old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18796
18797# Commands used to build and install a shared archive.
18798archive_cmds=$lt_archive_cmds_GCJ
18799archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18800postinstall_cmds=$lt_postinstall_cmds
18801postuninstall_cmds=$lt_postuninstall_cmds
18802
18803# Commands used to build a loadable module (assumed same as above if empty)
18804module_cmds=$lt_module_cmds_GCJ
18805module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18806
18807# Commands to strip libraries.
18808old_striplib=$lt_old_striplib
18809striplib=$lt_striplib
18810
18811# Dependencies to place before the objects being linked to create a
18812# shared library.
18813predep_objects=$lt_predep_objects_GCJ
18814
18815# Dependencies to place after the objects being linked to create a
18816# shared library.
18817postdep_objects=$lt_postdep_objects_GCJ
18818
18819# Dependencies to place before the objects being linked to create a
18820# shared library.
18821predeps=$lt_predeps_GCJ
18822
18823# Dependencies to place after the objects being linked to create a
18824# shared library.
18825postdeps=$lt_postdeps_GCJ
18826
18827# The library search path used internally by the compiler when linking
18828# a shared library.
18829compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18830
18831# Method to check whether dependent libraries are shared objects.
18832deplibs_check_method=$lt_deplibs_check_method
18833
18834# Command to use when deplibs_check_method == file_magic.
18835file_magic_cmd=$lt_file_magic_cmd
18836
18837# Flag that allows shared libraries with undefined symbols to be built.
18838allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18839
18840# Flag that forces no undefined symbols.
18841no_undefined_flag=$lt_no_undefined_flag_GCJ
18842
18843# Commands used to finish a libtool library installation in a directory.
18844finish_cmds=$lt_finish_cmds
18845
18846# Same as above, but a single script fragment to be evaled but not shown.
18847finish_eval=$lt_finish_eval
18848
18849# Take the output of nm and produce a listing of raw symbols and C names.
18850global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18851
18852# Transform the output of nm in a proper C declaration
18853global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18854
18855# Transform the output of nm in a C name address pair
18856global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18857
18858# This is the shared library runtime path variable.
18859runpath_var=$runpath_var
18860
18861# This is the shared library path variable.
18862shlibpath_var=$shlibpath_var
18863
18864# Is shlibpath searched before the hard-coded library search path?
18865shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18866
18867# How to hardcode a shared library path into an executable.
18868hardcode_action=$hardcode_action_GCJ
18869
18870# Whether we should hardcode library paths into libraries.
18871hardcode_into_libs=$hardcode_into_libs
18872
18873# Flag to hardcode \$libdir into a binary during linking.
18874# This must work even if \$libdir does not exist.
18875hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18876
18877# If ld is used when linking, flag to hardcode \$libdir into
18878# a binary during linking. This must work even if \$libdir does
18879# not exist.
18880hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18881
18882# Whether we need a single -rpath flag with a separated argument.
18883hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18884
18885# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18886# resulting binary.
18887hardcode_direct=$hardcode_direct_GCJ
18888
18889# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18890# resulting binary.
18891hardcode_minus_L=$hardcode_minus_L_GCJ
18892
18893# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18894# the resulting binary.
18895hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18896
18897# Set to yes if building a shared library automatically hardcodes DIR into the library
18898# and all subsequent libraries and executables linked against it.
18899hardcode_automatic=$hardcode_automatic_GCJ
18900
18901# Variables whose values should be saved in libtool wrapper scripts and
18902# restored at relink time.
18903variables_saved_for_relink="$variables_saved_for_relink"
18904
18905# Whether libtool must link a program against all its dependency libraries.
18906link_all_deplibs=$link_all_deplibs_GCJ
18907
18908# Compile-time system search path for libraries
18909sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18910
18911# Run-time system search path for libraries
18912sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18913
18914# Fix the shell variable \$srcfile for the compiler.
18915fix_srcfile_path="$fix_srcfile_path_GCJ"
18916
18917# Set to yes if exported symbols are required.
18918always_export_symbols=$always_export_symbols_GCJ
18919
18920# The commands to list exported symbols.
18921export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18922
18923# The commands to extract the exported symbol list from a shared archive.
18924extract_expsyms_cmds=$lt_extract_expsyms_cmds
18925
18926# Symbols that should not be listed in the preloaded symbols.
18927exclude_expsyms=$lt_exclude_expsyms_GCJ
18928
18929# Symbols that must always be exported.
18930include_expsyms=$lt_include_expsyms_GCJ
18931
18932# ### END LIBTOOL TAG CONFIG: $tagname
18933
18934__EOF__
18935
18936
18937else
18938  # If there is no Makefile yet, we rely on a make rule to execute
18939  # `config.status --recheck' to rerun these tests and create the
18940  # libtool script then.
18941  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18942  if test -f "$ltmain_in"; then
18943    test -f Makefile && make "$ltmain"
18944  fi
18945fi
18946
18947
18948ac_ext=c
18949ac_cpp='$CPP $CPPFLAGS'
18950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18952ac_compiler_gnu=$ac_cv_c_compiler_gnu
18953
18954CC="$lt_save_CC"
18955
18956	else
18957	  tagname=""
18958	fi
18959	;;
18960
18961      RC)
18962
18963
18964
18965# Source file extension for RC test sources.
18966ac_ext=rc
18967
18968# Object file extension for compiled RC test sources.
18969objext=o
18970objext_RC=$objext
18971
18972# Code to be used in simple compile tests
18973lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18974
18975# Code to be used in simple link tests
18976lt_simple_link_test_code="$lt_simple_compile_test_code"
18977
18978# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18979
18980# If no C compiler was specified, use CC.
18981LTCC=${LTCC-"$CC"}
18982
18983# If no C compiler flags were specified, use CFLAGS.
18984LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18985
18986# Allow CC to be a program name with arguments.
18987compiler=$CC
18988
18989
18990# save warnings/boilerplate of simple test code
18991ac_outfile=conftest.$ac_objext
18992printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18993eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18994_lt_compiler_boilerplate=`cat conftest.err`
18995$rm conftest*
18996
18997ac_outfile=conftest.$ac_objext
18998printf "$lt_simple_link_test_code" >conftest.$ac_ext
18999eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19000_lt_linker_boilerplate=`cat conftest.err`
19001$rm conftest*
19002
19003
19004# Allow CC to be a program name with arguments.
19005lt_save_CC="$CC"
19006CC=${RC-"windres"}
19007compiler=$CC
19008compiler_RC=$CC
19009for cc_temp in $compiler""; do
19010  case $cc_temp in
19011    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19012    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19013    \-*) ;;
19014    *) break;;
19015  esac
19016done
19017cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19018
19019lt_cv_prog_compiler_c_o_RC=yes
19020
19021# The else clause should only fire when bootstrapping the
19022# libtool distribution, otherwise you forgot to ship ltmain.sh
19023# with your package, and you will get complaints that there are
19024# no rules to generate ltmain.sh.
19025if test -f "$ltmain"; then
19026  # See if we are running on zsh, and set the options which allow our commands through
19027  # without removal of \ escapes.
19028  if test -n "${ZSH_VERSION+set}" ; then
19029    setopt NO_GLOB_SUBST
19030  fi
19031  # Now quote all the things that may contain metacharacters while being
19032  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19033  # variables and quote the copies for generation of the libtool script.
19034  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19035    SED SHELL STRIP \
19036    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19037    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19038    deplibs_check_method reload_flag reload_cmds need_locks \
19039    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19040    lt_cv_sys_global_symbol_to_c_name_address \
19041    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19042    old_postinstall_cmds old_postuninstall_cmds \
19043    compiler_RC \
19044    CC_RC \
19045    LD_RC \
19046    lt_prog_compiler_wl_RC \
19047    lt_prog_compiler_pic_RC \
19048    lt_prog_compiler_static_RC \
19049    lt_prog_compiler_no_builtin_flag_RC \
19050    export_dynamic_flag_spec_RC \
19051    thread_safe_flag_spec_RC \
19052    whole_archive_flag_spec_RC \
19053    enable_shared_with_static_runtimes_RC \
19054    old_archive_cmds_RC \
19055    old_archive_from_new_cmds_RC \
19056    predep_objects_RC \
19057    postdep_objects_RC \
19058    predeps_RC \
19059    postdeps_RC \
19060    compiler_lib_search_path_RC \
19061    archive_cmds_RC \
19062    archive_expsym_cmds_RC \
19063    postinstall_cmds_RC \
19064    postuninstall_cmds_RC \
19065    old_archive_from_expsyms_cmds_RC \
19066    allow_undefined_flag_RC \
19067    no_undefined_flag_RC \
19068    export_symbols_cmds_RC \
19069    hardcode_libdir_flag_spec_RC \
19070    hardcode_libdir_flag_spec_ld_RC \
19071    hardcode_libdir_separator_RC \
19072    hardcode_automatic_RC \
19073    module_cmds_RC \
19074    module_expsym_cmds_RC \
19075    lt_cv_prog_compiler_c_o_RC \
19076    exclude_expsyms_RC \
19077    include_expsyms_RC; do
19078
19079    case $var in
19080    old_archive_cmds_RC | \
19081    old_archive_from_new_cmds_RC | \
19082    archive_cmds_RC | \
19083    archive_expsym_cmds_RC | \
19084    module_cmds_RC | \
19085    module_expsym_cmds_RC | \
19086    old_archive_from_expsyms_cmds_RC | \
19087    export_symbols_cmds_RC | \
19088    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19089    postinstall_cmds | postuninstall_cmds | \
19090    old_postinstall_cmds | old_postuninstall_cmds | \
19091    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19092      # Double-quote double-evaled strings.
19093      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19094      ;;
19095    *)
19096      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19097      ;;
19098    esac
19099  done
19100
19101  case $lt_echo in
19102  *'\$0 --fallback-echo"')
19103    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19104    ;;
19105  esac
19106
19107cfgfile="$ofile"
19108
19109  cat <<__EOF__ >> "$cfgfile"
19110# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19111
19112# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19113
19114# Shell to use when invoking shell scripts.
19115SHELL=$lt_SHELL
19116
19117# Whether or not to build shared libraries.
19118build_libtool_libs=$enable_shared
19119
19120# Whether or not to build static libraries.
19121build_old_libs=$enable_static
19122
19123# Whether or not to add -lc for building shared libraries.
19124build_libtool_need_lc=$archive_cmds_need_lc_RC
19125
19126# Whether or not to disallow shared libs when runtime libs are static
19127allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19128
19129# Whether or not to optimize for fast installation.
19130fast_install=$enable_fast_install
19131
19132# The host system.
19133host_alias=$host_alias
19134host=$host
19135host_os=$host_os
19136
19137# The build system.
19138build_alias=$build_alias
19139build=$build
19140build_os=$build_os
19141
19142# An echo program that does not interpret backslashes.
19143echo=$lt_echo
19144
19145# The archiver.
19146AR=$lt_AR
19147AR_FLAGS=$lt_AR_FLAGS
19148
19149# A C compiler.
19150LTCC=$lt_LTCC
19151
19152# LTCC compiler flags.
19153LTCFLAGS=$lt_LTCFLAGS
19154
19155# A language-specific compiler.
19156CC=$lt_compiler_RC
19157
19158# Is the compiler the GNU C compiler?
19159with_gcc=$GCC_RC
19160
19161# An ERE matcher.
19162EGREP=$lt_EGREP
19163
19164# The linker used to build libraries.
19165LD=$lt_LD_RC
19166
19167# Whether we need hard or soft links.
19168LN_S=$lt_LN_S
19169
19170# A BSD-compatible nm program.
19171NM=$lt_NM
19172
19173# A symbol stripping program
19174STRIP=$lt_STRIP
19175
19176# Used to examine libraries when file_magic_cmd begins "file"
19177MAGIC_CMD=$MAGIC_CMD
19178
19179# Used on cygwin: DLL creation program.
19180DLLTOOL="$DLLTOOL"
19181
19182# Used on cygwin: object dumper.
19183OBJDUMP="$OBJDUMP"
19184
19185# Used on cygwin: assembler.
19186AS="$AS"
19187
19188# The name of the directory that contains temporary libtool files.
19189objdir=$objdir
19190
19191# How to create reloadable object files.
19192reload_flag=$lt_reload_flag
19193reload_cmds=$lt_reload_cmds
19194
19195# How to pass a linker flag through the compiler.
19196wl=$lt_lt_prog_compiler_wl_RC
19197
19198# Object file suffix (normally "o").
19199objext="$ac_objext"
19200
19201# Old archive suffix (normally "a").
19202libext="$libext"
19203
19204# Shared library suffix (normally ".so").
19205shrext_cmds='$shrext_cmds'
19206
19207# Executable file suffix (normally "").
19208exeext="$exeext"
19209
19210# Additional compiler flags for building library objects.
19211pic_flag=$lt_lt_prog_compiler_pic_RC
19212pic_mode=$pic_mode
19213
19214# What is the maximum length of a command?
19215max_cmd_len=$lt_cv_sys_max_cmd_len
19216
19217# Does compiler simultaneously support -c and -o options?
19218compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19219
19220# Must we lock files when doing compilation?
19221need_locks=$lt_need_locks
19222
19223# Do we need the lib prefix for modules?
19224need_lib_prefix=$need_lib_prefix
19225
19226# Do we need a version for libraries?
19227need_version=$need_version
19228
19229# Whether dlopen is supported.
19230dlopen_support=$enable_dlopen
19231
19232# Whether dlopen of programs is supported.
19233dlopen_self=$enable_dlopen_self
19234
19235# Whether dlopen of statically linked programs is supported.
19236dlopen_self_static=$enable_dlopen_self_static
19237
19238# Compiler flag to prevent dynamic linking.
19239link_static_flag=$lt_lt_prog_compiler_static_RC
19240
19241# Compiler flag to turn off builtin functions.
19242no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19243
19244# Compiler flag to allow reflexive dlopens.
19245export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19246
19247# Compiler flag to generate shared objects directly from archives.
19248whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19249
19250# Compiler flag to generate thread-safe objects.
19251thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19252
19253# Library versioning type.
19254version_type=$version_type
19255
19256# Format of library name prefix.
19257libname_spec=$lt_libname_spec
19258
19259# List of archive names.  First name is the real one, the rest are links.
19260# The last name is the one that the linker finds with -lNAME.
19261library_names_spec=$lt_library_names_spec
19262
19263# The coded name of the library, if different from the real name.
19264soname_spec=$lt_soname_spec
19265
19266# Commands used to build and install an old-style archive.
19267RANLIB=$lt_RANLIB
19268old_archive_cmds=$lt_old_archive_cmds_RC
19269old_postinstall_cmds=$lt_old_postinstall_cmds
19270old_postuninstall_cmds=$lt_old_postuninstall_cmds
19271
19272# Create an old-style archive from a shared archive.
19273old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19274
19275# Create a temporary old-style archive to link instead of a shared archive.
19276old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19277
19278# Commands used to build and install a shared archive.
19279archive_cmds=$lt_archive_cmds_RC
19280archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19281postinstall_cmds=$lt_postinstall_cmds
19282postuninstall_cmds=$lt_postuninstall_cmds
19283
19284# Commands used to build a loadable module (assumed same as above if empty)
19285module_cmds=$lt_module_cmds_RC
19286module_expsym_cmds=$lt_module_expsym_cmds_RC
19287
19288# Commands to strip libraries.
19289old_striplib=$lt_old_striplib
19290striplib=$lt_striplib
19291
19292# Dependencies to place before the objects being linked to create a
19293# shared library.
19294predep_objects=$lt_predep_objects_RC
19295
19296# Dependencies to place after the objects being linked to create a
19297# shared library.
19298postdep_objects=$lt_postdep_objects_RC
19299
19300# Dependencies to place before the objects being linked to create a
19301# shared library.
19302predeps=$lt_predeps_RC
19303
19304# Dependencies to place after the objects being linked to create a
19305# shared library.
19306postdeps=$lt_postdeps_RC
19307
19308# The library search path used internally by the compiler when linking
19309# a shared library.
19310compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19311
19312# Method to check whether dependent libraries are shared objects.
19313deplibs_check_method=$lt_deplibs_check_method
19314
19315# Command to use when deplibs_check_method == file_magic.
19316file_magic_cmd=$lt_file_magic_cmd
19317
19318# Flag that allows shared libraries with undefined symbols to be built.
19319allow_undefined_flag=$lt_allow_undefined_flag_RC
19320
19321# Flag that forces no undefined symbols.
19322no_undefined_flag=$lt_no_undefined_flag_RC
19323
19324# Commands used to finish a libtool library installation in a directory.
19325finish_cmds=$lt_finish_cmds
19326
19327# Same as above, but a single script fragment to be evaled but not shown.
19328finish_eval=$lt_finish_eval
19329
19330# Take the output of nm and produce a listing of raw symbols and C names.
19331global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19332
19333# Transform the output of nm in a proper C declaration
19334global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19335
19336# Transform the output of nm in a C name address pair
19337global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19338
19339# This is the shared library runtime path variable.
19340runpath_var=$runpath_var
19341
19342# This is the shared library path variable.
19343shlibpath_var=$shlibpath_var
19344
19345# Is shlibpath searched before the hard-coded library search path?
19346shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19347
19348# How to hardcode a shared library path into an executable.
19349hardcode_action=$hardcode_action_RC
19350
19351# Whether we should hardcode library paths into libraries.
19352hardcode_into_libs=$hardcode_into_libs
19353
19354# Flag to hardcode \$libdir into a binary during linking.
19355# This must work even if \$libdir does not exist.
19356hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19357
19358# If ld is used when linking, flag to hardcode \$libdir into
19359# a binary during linking. This must work even if \$libdir does
19360# not exist.
19361hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19362
19363# Whether we need a single -rpath flag with a separated argument.
19364hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19365
19366# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19367# resulting binary.
19368hardcode_direct=$hardcode_direct_RC
19369
19370# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19371# resulting binary.
19372hardcode_minus_L=$hardcode_minus_L_RC
19373
19374# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19375# the resulting binary.
19376hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19377
19378# Set to yes if building a shared library automatically hardcodes DIR into the library
19379# and all subsequent libraries and executables linked against it.
19380hardcode_automatic=$hardcode_automatic_RC
19381
19382# Variables whose values should be saved in libtool wrapper scripts and
19383# restored at relink time.
19384variables_saved_for_relink="$variables_saved_for_relink"
19385
19386# Whether libtool must link a program against all its dependency libraries.
19387link_all_deplibs=$link_all_deplibs_RC
19388
19389# Compile-time system search path for libraries
19390sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19391
19392# Run-time system search path for libraries
19393sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19394
19395# Fix the shell variable \$srcfile for the compiler.
19396fix_srcfile_path="$fix_srcfile_path_RC"
19397
19398# Set to yes if exported symbols are required.
19399always_export_symbols=$always_export_symbols_RC
19400
19401# The commands to list exported symbols.
19402export_symbols_cmds=$lt_export_symbols_cmds_RC
19403
19404# The commands to extract the exported symbol list from a shared archive.
19405extract_expsyms_cmds=$lt_extract_expsyms_cmds
19406
19407# Symbols that should not be listed in the preloaded symbols.
19408exclude_expsyms=$lt_exclude_expsyms_RC
19409
19410# Symbols that must always be exported.
19411include_expsyms=$lt_include_expsyms_RC
19412
19413# ### END LIBTOOL TAG CONFIG: $tagname
19414
19415__EOF__
19416
19417
19418else
19419  # If there is no Makefile yet, we rely on a make rule to execute
19420  # `config.status --recheck' to rerun these tests and create the
19421  # libtool script then.
19422  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19423  if test -f "$ltmain_in"; then
19424    test -f Makefile && make "$ltmain"
19425  fi
19426fi
19427
19428
19429ac_ext=c
19430ac_cpp='$CPP $CPPFLAGS'
19431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19433ac_compiler_gnu=$ac_cv_c_compiler_gnu
19434
19435CC="$lt_save_CC"
19436
19437	;;
19438
19439      *)
19440	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19441echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19442   { (exit 1); exit 1; }; }
19443	;;
19444      esac
19445
19446      # Append the new tag name to the list of available tags.
19447      if test -n "$tagname" ; then
19448      available_tags="$available_tags $tagname"
19449    fi
19450    fi
19451  done
19452  IFS="$lt_save_ifs"
19453
19454  # Now substitute the updated list of available tags.
19455  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19456    mv "${ofile}T" "$ofile"
19457    chmod +x "$ofile"
19458  else
19459    rm -f "${ofile}T"
19460    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19461echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19462   { (exit 1); exit 1; }; }
19463  fi
19464fi
19465
19466
19467
19468# This can be used to rebuild libtool when needed
19469LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19470
19471# Always use our own libtool.
19472LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19473
19474# Prevent multiple expansion
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497# /***********************************************************************
19498# // Checks for assembler
19499# ************************************************************************/
19500
19501# Check whether --enable-asm or --disable-asm was given.
19502if test "${enable_asm+set}" = set; then
19503  enableval="$enable_asm"
19504
19505fi;
19506
19507asm_arch=
19508asm_dir=
19509asm_msg_amd64=no
19510asm_msg_i386=no
19511
19512case $host_cpu in
19513    amd64 | x86_64) asm_arch="amd64"; asm_dir="asm/amd64/src_gas/elf64" ;;
19514    i?86) asm_arch="i386"; asm_dir="asm/i386/src_gas" ;;
19515    *) enable_asm=no ;;
19516esac
19517LZO_ASM_VPATH=
19518
19519echo "$as_me:$LINENO: checking whether to build assembly versions" >&5
19520echo $ECHO_N "checking whether to build assembly versions... $ECHO_C" >&6
19521if test "X$enable_asm" != Xno; then
19522mfx_compile_S='${CC-cc} -c conftest.S 1>&5'
19523cat > conftest.S <<EOF
19524#include "$ac_abs_top_srcdir/$asm_dir/lzo1x_f1.S"
19525EOF
19526enable_asm=no
19527if { (eval echo "$as_me:$LINENO: \"$mfx_compile_S\"") >&5
19528  (eval $mfx_compile_S) 2>&5
19529  ac_status=$?
19530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531  (exit $ac_status); }; then
19532    if { ac_try='test -s conftest.$ac_objext'
19533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534  (eval $ac_try) 2>&5
19535  ac_status=$?
19536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537  (exit $ac_status); }; }; then
19538        enable_asm=yes
19539        eval asm_msg_$asm_arch="'yes [$asm_dir]'"
19540        LZO_ASM_VPATH=":$ac_abs_top_srcdir/$asm_dir"
19541    fi
19542fi
19543if test "X$enable_asm" = Xno; then
19544    echo "configure: failed program was:" >&5
19545    cat conftest.S >&5
19546fi
19547rm -rf conftest*
19548fi
19549echo "$as_me:$LINENO: result: $enable_asm" >&5
19550echo "${ECHO_T}$enable_asm" >&6
19551
19552
19553
19554if test "X$enable_asm" != Xno; then
19555  LZO_USE_ASM_TRUE=
19556  LZO_USE_ASM_FALSE='#'
19557else
19558  LZO_USE_ASM_TRUE='#'
19559  LZO_USE_ASM_FALSE=
19560fi
19561
19562
19563
19564
19565# /***********************************************************************
19566# // Checks for header files
19567# ************************************************************************/
19568
19569
19570echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19571echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19572if test "${ac_cv_header_time+set}" = set; then
19573  echo $ECHO_N "(cached) $ECHO_C" >&6
19574else
19575  cat >conftest.$ac_ext <<_ACEOF
19576/* confdefs.h.  */
19577_ACEOF
19578cat confdefs.h >>conftest.$ac_ext
19579cat >>conftest.$ac_ext <<_ACEOF
19580/* end confdefs.h.  */
19581#include <sys/types.h>
19582#include <sys/time.h>
19583#include <time.h>
19584
19585int
19586main ()
19587{
19588if ((struct tm *) 0)
19589return 0;
19590  ;
19591  return 0;
19592}
19593_ACEOF
19594rm -f conftest.$ac_objext
19595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19596  (eval $ac_compile) 2>conftest.er1
19597  ac_status=$?
19598  grep -v '^ *+' conftest.er1 >conftest.err
19599  rm -f conftest.er1
19600  cat conftest.err >&5
19601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602  (exit $ac_status); } &&
19603	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605  (eval $ac_try) 2>&5
19606  ac_status=$?
19607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608  (exit $ac_status); }; } &&
19609	 { ac_try='test -s conftest.$ac_objext'
19610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611  (eval $ac_try) 2>&5
19612  ac_status=$?
19613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614  (exit $ac_status); }; }; then
19615  ac_cv_header_time=yes
19616else
19617  echo "$as_me: failed program was:" >&5
19618sed 's/^/| /' conftest.$ac_ext >&5
19619
19620ac_cv_header_time=no
19621fi
19622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19623fi
19624echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19625echo "${ECHO_T}$ac_cv_header_time" >&6
19626if test $ac_cv_header_time = yes; then
19627
19628cat >>confdefs.h <<\_ACEOF
19629#define TIME_WITH_SYS_TIME 1
19630_ACEOF
19631
19632fi
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661for ac_header in assert.h ctype.h dirent.h errno.h fcntl.h float.h limits.h malloc.h memory.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h string.h strings.h time.h unistd.h utime.h sys/mman.h sys/resource.h sys/stat.h sys/time.h sys/types.h sys/wait.h
19662do
19663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19664if eval "test \"\${$as_ac_Header+set}\" = set"; then
19665  echo "$as_me:$LINENO: checking for $ac_header" >&5
19666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19667if eval "test \"\${$as_ac_Header+set}\" = set"; then
19668  echo $ECHO_N "(cached) $ECHO_C" >&6
19669fi
19670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19672else
19673  # Is the header compilable?
19674echo "$as_me:$LINENO: checking $ac_header usability" >&5
19675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19676cat >conftest.$ac_ext <<_ACEOF
19677/* confdefs.h.  */
19678_ACEOF
19679cat confdefs.h >>conftest.$ac_ext
19680cat >>conftest.$ac_ext <<_ACEOF
19681/* end confdefs.h.  */
19682$ac_includes_default
19683#include <$ac_header>
19684_ACEOF
19685rm -f conftest.$ac_objext
19686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19687  (eval $ac_compile) 2>conftest.er1
19688  ac_status=$?
19689  grep -v '^ *+' conftest.er1 >conftest.err
19690  rm -f conftest.er1
19691  cat conftest.err >&5
19692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693  (exit $ac_status); } &&
19694	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696  (eval $ac_try) 2>&5
19697  ac_status=$?
19698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699  (exit $ac_status); }; } &&
19700	 { ac_try='test -s conftest.$ac_objext'
19701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702  (eval $ac_try) 2>&5
19703  ac_status=$?
19704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705  (exit $ac_status); }; }; then
19706  ac_header_compiler=yes
19707else
19708  echo "$as_me: failed program was:" >&5
19709sed 's/^/| /' conftest.$ac_ext >&5
19710
19711ac_header_compiler=no
19712fi
19713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19715echo "${ECHO_T}$ac_header_compiler" >&6
19716
19717# Is the header present?
19718echo "$as_me:$LINENO: checking $ac_header presence" >&5
19719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19720cat >conftest.$ac_ext <<_ACEOF
19721/* confdefs.h.  */
19722_ACEOF
19723cat confdefs.h >>conftest.$ac_ext
19724cat >>conftest.$ac_ext <<_ACEOF
19725/* end confdefs.h.  */
19726#include <$ac_header>
19727_ACEOF
19728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19729  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19730  ac_status=$?
19731  grep -v '^ *+' conftest.er1 >conftest.err
19732  rm -f conftest.er1
19733  cat conftest.err >&5
19734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735  (exit $ac_status); } >/dev/null; then
19736  if test -s conftest.err; then
19737    ac_cpp_err=$ac_c_preproc_warn_flag
19738    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19739  else
19740    ac_cpp_err=
19741  fi
19742else
19743  ac_cpp_err=yes
19744fi
19745if test -z "$ac_cpp_err"; then
19746  ac_header_preproc=yes
19747else
19748  echo "$as_me: failed program was:" >&5
19749sed 's/^/| /' conftest.$ac_ext >&5
19750
19751  ac_header_preproc=no
19752fi
19753rm -f conftest.err conftest.$ac_ext
19754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19755echo "${ECHO_T}$ac_header_preproc" >&6
19756
19757# So?  What about this header?
19758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19759  yes:no: )
19760    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19762    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19764    ac_header_preproc=yes
19765    ;;
19766  no:yes:* )
19767    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19769    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19770echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19771    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19773    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19774echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19775    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19777    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19779    (
19780      cat <<\_ASBOX
19781## ----------------------------------- ##
19782## Report this to markus@oberhumer.com ##
19783## ----------------------------------- ##
19784_ASBOX
19785    ) |
19786      sed "s/^/$as_me: WARNING:     /" >&2
19787    ;;
19788esac
19789echo "$as_me:$LINENO: checking for $ac_header" >&5
19790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19791if eval "test \"\${$as_ac_Header+set}\" = set"; then
19792  echo $ECHO_N "(cached) $ECHO_C" >&6
19793else
19794  eval "$as_ac_Header=\$ac_header_preproc"
19795fi
19796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19798
19799fi
19800if test `eval echo '${'$as_ac_Header'}'` = yes; then
19801  cat >>confdefs.h <<_ACEOF
19802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19803_ACEOF
19804
19805fi
19806
19807done
19808
19809
19810if test "X$ac_cv_header_limits_h" != Xyes; then
19811    { { echo "$as_me:$LINENO: error: <limits.h> header not found" >&5
19812echo "$as_me: error: <limits.h> header not found" >&2;}
19813   { (exit 1); exit 1; }; }
19814fi
19815
19816echo "$as_me:$LINENO: checking whether limits.h is sane" >&5
19817echo $ECHO_N "checking whether limits.h is sane... $ECHO_C" >&6
19818if test "${mfx_cv_header_sane_limits_h+set}" = set; then
19819  echo $ECHO_N "(cached) $ECHO_C" >&6
19820else
19821  cat >conftest.$ac_ext <<_ACEOF
19822/* confdefs.h.  */
19823_ACEOF
19824cat confdefs.h >>conftest.$ac_ext
19825cat >>conftest.$ac_ext <<_ACEOF
19826/* end confdefs.h.  */
19827#include <limits.h>
19828#if (32767 >= 4294967295ul) || (65535u >= 4294967295ul)
19829#  if defined(__APPLE__) && defined(__GNUC__)
19830#    error "your preprocessor is broken - use compiler option -no-cpp-precomp"
19831#  else
19832#    include "your preprocessor is broken"
19833#  endif
19834#endif
19835#define MFX_0xffff          0xffff
19836#define MFX_0xffffffffL     4294967295ul
19837#if !defined(CHAR_BIT) || (CHAR_BIT != 8)
19838#  include "error CHAR_BIT"
19839#endif
19840#if !defined(UCHAR_MAX)
19841#  include "error UCHAR_MAX 1"
19842#endif
19843#if !defined(USHRT_MAX)
19844#  include "error USHRT_MAX 1"
19845#endif
19846#if !defined(UINT_MAX)
19847#  include "error UINT_MAX 1"
19848#endif
19849#if !defined(ULONG_MAX)
19850#  include "error ULONG_MAX 1"
19851#endif
19852#if !defined(SHRT_MAX)
19853#  include "error SHRT_MAX 1"
19854#endif
19855#if !defined(INT_MAX)
19856#  include "error INT_MAX 1"
19857#endif
19858#if !defined(LONG_MAX)
19859#  include "error LONG_MAX 1"
19860#endif
19861#if (UCHAR_MAX < 1)
19862#  include "error UCHAR_MAX 2"
19863#endif
19864#if (USHRT_MAX < 1)
19865#  include "error USHRT_MAX 2"
19866#endif
19867#if (UINT_MAX < 1)
19868#  include "error UINT_MAX 2"
19869#endif
19870#if (ULONG_MAX < 1)
19871#  include "error ULONG_MAX 2"
19872#endif
19873#if (UCHAR_MAX < 0xff)
19874#  include "error UCHAR_MAX 3"
19875#endif
19876#if (USHRT_MAX < MFX_0xffff)
19877#  include "error USHRT_MAX 3"
19878#endif
19879#if (UINT_MAX < MFX_0xffff)
19880#  include "error UINT_MAX 3"
19881#endif
19882#if (ULONG_MAX < MFX_0xffffffffL)
19883#  include "error ULONG_MAX 3"
19884#endif
19885#if (USHRT_MAX > UINT_MAX)
19886#  include "error USHRT_MAX vs UINT_MAX"
19887#endif
19888#if (UINT_MAX > ULONG_MAX)
19889#  include "error UINT_MAX vs ULONG_MAX"
19890#endif
19891
19892int
19893main ()
19894{
19895
19896#if (USHRT_MAX == MFX_0xffff)
19897{ typedef char a_short2a[1 - 2 * !(sizeof(short) == 2)]; }
19898#elif (USHRT_MAX >= MFX_0xffff)
19899{ typedef char a_short2b[1 - 2 * !(sizeof(short) > 2)]; }
19900#endif
19901#if (UINT_MAX == MFX_0xffff)
19902{ typedef char a_int2a[1 - 2 * !(sizeof(int) == 2)]; }
19903#elif (UINT_MAX >= MFX_0xffff)
19904{ typedef char a_int2b[1 - 2 * !(sizeof(int) > 2)]; }
19905#endif
19906#if (ULONG_MAX == MFX_0xffff)
19907{ typedef char a_long2a[1 - 2 * !(sizeof(long) == 2)]; }
19908#elif (ULONG_MAX >= MFX_0xffff)
19909{ typedef char a_long2b[1 - 2 * !(sizeof(long) > 2)]; }
19910#endif
19911#if !defined(_CRAY1) /* CRAY PVP systems */
19912#if (USHRT_MAX == MFX_0xffffffffL)
19913{ typedef char a_short4a[1 - 2 * !(sizeof(short) == 4)]; }
19914#elif (USHRT_MAX >= MFX_0xffffffffL)
19915{ typedef char a_short4b[1 - 2 * !(sizeof(short) > 4)]; }
19916#endif
19917#endif /* _CRAY1 */
19918#if (UINT_MAX == MFX_0xffffffffL)
19919{ typedef char a_int4a[1 - 2 * !(sizeof(int) == 4)]; }
19920#elif (UINT_MAX >= MFX_0xffffffffL)
19921{ typedef char a_int4b[1 - 2 * !(sizeof(int) > 4)]; }
19922#endif
19923#if (ULONG_MAX == MFX_0xffffffffL)
19924{ typedef char a_long4a[1 - 2 * !(sizeof(long) == 4)]; }
19925#elif (ULONG_MAX >= MFX_0xffffffffL)
19926{ typedef char a_long4b[1 - 2 * !(sizeof(long) > 4)]; }
19927#endif
19928
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"			 || test ! -s conftest.err'
19943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944  (eval $ac_try) 2>&5
19945  ac_status=$?
19946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947  (exit $ac_status); }; } &&
19948	 { ac_try='test -s conftest.$ac_objext'
19949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950  (eval $ac_try) 2>&5
19951  ac_status=$?
19952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953  (exit $ac_status); }; }; then
19954  mfx_cv_header_sane_limits_h=yes
19955else
19956  echo "$as_me: failed program was:" >&5
19957sed 's/^/| /' conftest.$ac_ext >&5
19958
19959mfx_cv_header_sane_limits_h=no
19960fi
19961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19962fi
19963echo "$as_me:$LINENO: result: $mfx_cv_header_sane_limits_h" >&5
19964echo "${ECHO_T}$mfx_cv_header_sane_limits_h" >&6
19965
19966if test "X$mfx_cv_header_sane_limits_h" != Xyes; then
19967    { { echo "$as_me:$LINENO: error: your <limits.h> header is broken - for details see config.log" >&5
19968echo "$as_me: error: your <limits.h> header is broken - for details see config.log" >&2;}
19969   { (exit 1); exit 1; }; }
19970fi
19971
19972
19973# /***********************************************************************
19974# // Checks for typedefs and structures
19975# ************************************************************************/
19976
19977echo "$as_me:$LINENO: checking for off_t" >&5
19978echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19979if test "${ac_cv_type_off_t+set}" = set; then
19980  echo $ECHO_N "(cached) $ECHO_C" >&6
19981else
19982  cat >conftest.$ac_ext <<_ACEOF
19983/* confdefs.h.  */
19984_ACEOF
19985cat confdefs.h >>conftest.$ac_ext
19986cat >>conftest.$ac_ext <<_ACEOF
19987/* end confdefs.h.  */
19988$ac_includes_default
19989int
19990main ()
19991{
19992if ((off_t *) 0)
19993  return 0;
19994if (sizeof (off_t))
19995  return 0;
19996  ;
19997  return 0;
19998}
19999_ACEOF
20000rm -f conftest.$ac_objext
20001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002  (eval $ac_compile) 2>conftest.er1
20003  ac_status=$?
20004  grep -v '^ *+' conftest.er1 >conftest.err
20005  rm -f conftest.er1
20006  cat conftest.err >&5
20007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008  (exit $ac_status); } &&
20009	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011  (eval $ac_try) 2>&5
20012  ac_status=$?
20013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014  (exit $ac_status); }; } &&
20015	 { ac_try='test -s conftest.$ac_objext'
20016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017  (eval $ac_try) 2>&5
20018  ac_status=$?
20019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020  (exit $ac_status); }; }; then
20021  ac_cv_type_off_t=yes
20022else
20023  echo "$as_me: failed program was:" >&5
20024sed 's/^/| /' conftest.$ac_ext >&5
20025
20026ac_cv_type_off_t=no
20027fi
20028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20029fi
20030echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20031echo "${ECHO_T}$ac_cv_type_off_t" >&6
20032if test $ac_cv_type_off_t = yes; then
20033  :
20034else
20035
20036cat >>confdefs.h <<_ACEOF
20037#define off_t long
20038_ACEOF
20039
20040fi
20041
20042echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
20043echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
20044if test "${ac_cv_type_ptrdiff_t+set}" = set; then
20045  echo $ECHO_N "(cached) $ECHO_C" >&6
20046else
20047  cat >conftest.$ac_ext <<_ACEOF
20048/* confdefs.h.  */
20049_ACEOF
20050cat confdefs.h >>conftest.$ac_ext
20051cat >>conftest.$ac_ext <<_ACEOF
20052/* end confdefs.h.  */
20053$ac_includes_default
20054int
20055main ()
20056{
20057if ((ptrdiff_t *) 0)
20058  return 0;
20059if (sizeof (ptrdiff_t))
20060  return 0;
20061  ;
20062  return 0;
20063}
20064_ACEOF
20065rm -f conftest.$ac_objext
20066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20067  (eval $ac_compile) 2>conftest.er1
20068  ac_status=$?
20069  grep -v '^ *+' conftest.er1 >conftest.err
20070  rm -f conftest.er1
20071  cat conftest.err >&5
20072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073  (exit $ac_status); } &&
20074	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076  (eval $ac_try) 2>&5
20077  ac_status=$?
20078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079  (exit $ac_status); }; } &&
20080	 { ac_try='test -s conftest.$ac_objext'
20081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20082  (eval $ac_try) 2>&5
20083  ac_status=$?
20084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085  (exit $ac_status); }; }; then
20086  ac_cv_type_ptrdiff_t=yes
20087else
20088  echo "$as_me: failed program was:" >&5
20089sed 's/^/| /' conftest.$ac_ext >&5
20090
20091ac_cv_type_ptrdiff_t=no
20092fi
20093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20094fi
20095echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
20096echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
20097if test $ac_cv_type_ptrdiff_t = yes; then
20098  :
20099else
20100
20101cat >>confdefs.h <<_ACEOF
20102#define ptrdiff_t long
20103_ACEOF
20104
20105fi
20106
20107echo "$as_me:$LINENO: checking for size_t" >&5
20108echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20109if test "${ac_cv_type_size_t+set}" = set; then
20110  echo $ECHO_N "(cached) $ECHO_C" >&6
20111else
20112  cat >conftest.$ac_ext <<_ACEOF
20113/* confdefs.h.  */
20114_ACEOF
20115cat confdefs.h >>conftest.$ac_ext
20116cat >>conftest.$ac_ext <<_ACEOF
20117/* end confdefs.h.  */
20118$ac_includes_default
20119int
20120main ()
20121{
20122if ((size_t *) 0)
20123  return 0;
20124if (sizeof (size_t))
20125  return 0;
20126  ;
20127  return 0;
20128}
20129_ACEOF
20130rm -f conftest.$ac_objext
20131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20132  (eval $ac_compile) 2>conftest.er1
20133  ac_status=$?
20134  grep -v '^ *+' conftest.er1 >conftest.err
20135  rm -f conftest.er1
20136  cat conftest.err >&5
20137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138  (exit $ac_status); } &&
20139	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141  (eval $ac_try) 2>&5
20142  ac_status=$?
20143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144  (exit $ac_status); }; } &&
20145	 { ac_try='test -s conftest.$ac_objext'
20146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147  (eval $ac_try) 2>&5
20148  ac_status=$?
20149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150  (exit $ac_status); }; }; then
20151  ac_cv_type_size_t=yes
20152else
20153  echo "$as_me: failed program was:" >&5
20154sed 's/^/| /' conftest.$ac_ext >&5
20155
20156ac_cv_type_size_t=no
20157fi
20158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20159fi
20160echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20161echo "${ECHO_T}$ac_cv_type_size_t" >&6
20162if test $ac_cv_type_size_t = yes; then
20163  :
20164else
20165
20166cat >>confdefs.h <<_ACEOF
20167#define size_t unsigned
20168_ACEOF
20169
20170fi
20171
20172echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20173echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20174if test "${ac_cv_type_signal+set}" = set; then
20175  echo $ECHO_N "(cached) $ECHO_C" >&6
20176else
20177  cat >conftest.$ac_ext <<_ACEOF
20178/* confdefs.h.  */
20179_ACEOF
20180cat confdefs.h >>conftest.$ac_ext
20181cat >>conftest.$ac_ext <<_ACEOF
20182/* end confdefs.h.  */
20183#include <sys/types.h>
20184#include <signal.h>
20185#ifdef signal
20186# undef signal
20187#endif
20188#ifdef __cplusplus
20189extern "C" void (*signal (int, void (*)(int)))(int);
20190#else
20191void (*signal ()) ();
20192#endif
20193
20194int
20195main ()
20196{
20197int i;
20198  ;
20199  return 0;
20200}
20201_ACEOF
20202rm -f conftest.$ac_objext
20203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20204  (eval $ac_compile) 2>conftest.er1
20205  ac_status=$?
20206  grep -v '^ *+' conftest.er1 >conftest.err
20207  rm -f conftest.er1
20208  cat conftest.err >&5
20209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210  (exit $ac_status); } &&
20211	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213  (eval $ac_try) 2>&5
20214  ac_status=$?
20215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216  (exit $ac_status); }; } &&
20217	 { ac_try='test -s conftest.$ac_objext'
20218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219  (eval $ac_try) 2>&5
20220  ac_status=$?
20221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222  (exit $ac_status); }; }; then
20223  ac_cv_type_signal=void
20224else
20225  echo "$as_me: failed program was:" >&5
20226sed 's/^/| /' conftest.$ac_ext >&5
20227
20228ac_cv_type_signal=int
20229fi
20230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20231fi
20232echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20233echo "${ECHO_T}$ac_cv_type_signal" >&6
20234
20235cat >>confdefs.h <<_ACEOF
20236#define RETSIGTYPE $ac_cv_type_signal
20237_ACEOF
20238
20239
20240
20241
20242echo "$as_me:$LINENO: checking for short" >&5
20243echo $ECHO_N "checking for short... $ECHO_C" >&6
20244if test "${ac_cv_type_short+set}" = set; then
20245  echo $ECHO_N "(cached) $ECHO_C" >&6
20246else
20247  cat >conftest.$ac_ext <<_ACEOF
20248/* confdefs.h.  */
20249_ACEOF
20250cat confdefs.h >>conftest.$ac_ext
20251cat >>conftest.$ac_ext <<_ACEOF
20252/* end confdefs.h.  */
20253$ac_includes_default
20254int
20255main ()
20256{
20257if ((short *) 0)
20258  return 0;
20259if (sizeof (short))
20260  return 0;
20261  ;
20262  return 0;
20263}
20264_ACEOF
20265rm -f conftest.$ac_objext
20266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267  (eval $ac_compile) 2>conftest.er1
20268  ac_status=$?
20269  grep -v '^ *+' conftest.er1 >conftest.err
20270  rm -f conftest.er1
20271  cat conftest.err >&5
20272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273  (exit $ac_status); } &&
20274	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276  (eval $ac_try) 2>&5
20277  ac_status=$?
20278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279  (exit $ac_status); }; } &&
20280	 { ac_try='test -s conftest.$ac_objext'
20281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282  (eval $ac_try) 2>&5
20283  ac_status=$?
20284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285  (exit $ac_status); }; }; then
20286  ac_cv_type_short=yes
20287else
20288  echo "$as_me: failed program was:" >&5
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
20291ac_cv_type_short=no
20292fi
20293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294fi
20295echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20296echo "${ECHO_T}$ac_cv_type_short" >&6
20297
20298echo "$as_me:$LINENO: checking size of short" >&5
20299echo $ECHO_N "checking size of short... $ECHO_C" >&6
20300if test "${ac_cv_sizeof_short+set}" = set; then
20301  echo $ECHO_N "(cached) $ECHO_C" >&6
20302else
20303  if test "$ac_cv_type_short" = yes; then
20304  # The cast to unsigned long works around a bug in the HP C Compiler
20305  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20306  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20307  # This bug is HP SR number 8606223364.
20308  if test "$cross_compiling" = yes; then
20309  # Depending upon the size, compute the lo and hi bounds.
20310cat >conftest.$ac_ext <<_ACEOF
20311/* confdefs.h.  */
20312_ACEOF
20313cat confdefs.h >>conftest.$ac_ext
20314cat >>conftest.$ac_ext <<_ACEOF
20315/* end confdefs.h.  */
20316$ac_includes_default
20317int
20318main ()
20319{
20320static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
20321test_array [0] = 0
20322
20323  ;
20324  return 0;
20325}
20326_ACEOF
20327rm -f conftest.$ac_objext
20328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329  (eval $ac_compile) 2>conftest.er1
20330  ac_status=$?
20331  grep -v '^ *+' conftest.er1 >conftest.err
20332  rm -f conftest.er1
20333  cat conftest.err >&5
20334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335  (exit $ac_status); } &&
20336	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338  (eval $ac_try) 2>&5
20339  ac_status=$?
20340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341  (exit $ac_status); }; } &&
20342	 { ac_try='test -s conftest.$ac_objext'
20343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344  (eval $ac_try) 2>&5
20345  ac_status=$?
20346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347  (exit $ac_status); }; }; then
20348  ac_lo=0 ac_mid=0
20349  while :; do
20350    cat >conftest.$ac_ext <<_ACEOF
20351/* confdefs.h.  */
20352_ACEOF
20353cat confdefs.h >>conftest.$ac_ext
20354cat >>conftest.$ac_ext <<_ACEOF
20355/* end confdefs.h.  */
20356$ac_includes_default
20357int
20358main ()
20359{
20360static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20361test_array [0] = 0
20362
20363  ;
20364  return 0;
20365}
20366_ACEOF
20367rm -f conftest.$ac_objext
20368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20369  (eval $ac_compile) 2>conftest.er1
20370  ac_status=$?
20371  grep -v '^ *+' conftest.er1 >conftest.err
20372  rm -f conftest.er1
20373  cat conftest.err >&5
20374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375  (exit $ac_status); } &&
20376	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378  (eval $ac_try) 2>&5
20379  ac_status=$?
20380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381  (exit $ac_status); }; } &&
20382	 { ac_try='test -s conftest.$ac_objext'
20383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384  (eval $ac_try) 2>&5
20385  ac_status=$?
20386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387  (exit $ac_status); }; }; then
20388  ac_hi=$ac_mid; break
20389else
20390  echo "$as_me: failed program was:" >&5
20391sed 's/^/| /' conftest.$ac_ext >&5
20392
20393ac_lo=`expr $ac_mid + 1`
20394		    if test $ac_lo -le $ac_mid; then
20395		      ac_lo= ac_hi=
20396		      break
20397		    fi
20398		    ac_mid=`expr 2 '*' $ac_mid + 1`
20399fi
20400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20401  done
20402else
20403  echo "$as_me: failed program was:" >&5
20404sed 's/^/| /' conftest.$ac_ext >&5
20405
20406cat >conftest.$ac_ext <<_ACEOF
20407/* confdefs.h.  */
20408_ACEOF
20409cat confdefs.h >>conftest.$ac_ext
20410cat >>conftest.$ac_ext <<_ACEOF
20411/* end confdefs.h.  */
20412$ac_includes_default
20413int
20414main ()
20415{
20416static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
20417test_array [0] = 0
20418
20419  ;
20420  return 0;
20421}
20422_ACEOF
20423rm -f conftest.$ac_objext
20424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20425  (eval $ac_compile) 2>conftest.er1
20426  ac_status=$?
20427  grep -v '^ *+' conftest.er1 >conftest.err
20428  rm -f conftest.er1
20429  cat conftest.err >&5
20430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431  (exit $ac_status); } &&
20432	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434  (eval $ac_try) 2>&5
20435  ac_status=$?
20436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437  (exit $ac_status); }; } &&
20438	 { ac_try='test -s conftest.$ac_objext'
20439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440  (eval $ac_try) 2>&5
20441  ac_status=$?
20442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443  (exit $ac_status); }; }; then
20444  ac_hi=-1 ac_mid=-1
20445  while :; do
20446    cat >conftest.$ac_ext <<_ACEOF
20447/* confdefs.h.  */
20448_ACEOF
20449cat confdefs.h >>conftest.$ac_ext
20450cat >>conftest.$ac_ext <<_ACEOF
20451/* end confdefs.h.  */
20452$ac_includes_default
20453int
20454main ()
20455{
20456static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
20457test_array [0] = 0
20458
20459  ;
20460  return 0;
20461}
20462_ACEOF
20463rm -f conftest.$ac_objext
20464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465  (eval $ac_compile) 2>conftest.er1
20466  ac_status=$?
20467  grep -v '^ *+' conftest.er1 >conftest.err
20468  rm -f conftest.er1
20469  cat conftest.err >&5
20470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471  (exit $ac_status); } &&
20472	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474  (eval $ac_try) 2>&5
20475  ac_status=$?
20476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477  (exit $ac_status); }; } &&
20478	 { ac_try='test -s conftest.$ac_objext'
20479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480  (eval $ac_try) 2>&5
20481  ac_status=$?
20482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483  (exit $ac_status); }; }; then
20484  ac_lo=$ac_mid; break
20485else
20486  echo "$as_me: failed program was:" >&5
20487sed 's/^/| /' conftest.$ac_ext >&5
20488
20489ac_hi=`expr '(' $ac_mid ')' - 1`
20490		       if test $ac_mid -le $ac_hi; then
20491			 ac_lo= ac_hi=
20492			 break
20493		       fi
20494		       ac_mid=`expr 2 '*' $ac_mid`
20495fi
20496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20497  done
20498else
20499  echo "$as_me: failed program was:" >&5
20500sed 's/^/| /' conftest.$ac_ext >&5
20501
20502ac_lo= ac_hi=
20503fi
20504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20505fi
20506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20507# Binary search between lo and hi bounds.
20508while test "x$ac_lo" != "x$ac_hi"; do
20509  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20510  cat >conftest.$ac_ext <<_ACEOF
20511/* confdefs.h.  */
20512_ACEOF
20513cat confdefs.h >>conftest.$ac_ext
20514cat >>conftest.$ac_ext <<_ACEOF
20515/* end confdefs.h.  */
20516$ac_includes_default
20517int
20518main ()
20519{
20520static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20521test_array [0] = 0
20522
20523  ;
20524  return 0;
20525}
20526_ACEOF
20527rm -f conftest.$ac_objext
20528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20529  (eval $ac_compile) 2>conftest.er1
20530  ac_status=$?
20531  grep -v '^ *+' conftest.er1 >conftest.err
20532  rm -f conftest.er1
20533  cat conftest.err >&5
20534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535  (exit $ac_status); } &&
20536	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538  (eval $ac_try) 2>&5
20539  ac_status=$?
20540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541  (exit $ac_status); }; } &&
20542	 { ac_try='test -s conftest.$ac_objext'
20543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544  (eval $ac_try) 2>&5
20545  ac_status=$?
20546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547  (exit $ac_status); }; }; then
20548  ac_hi=$ac_mid
20549else
20550  echo "$as_me: failed program was:" >&5
20551sed 's/^/| /' conftest.$ac_ext >&5
20552
20553ac_lo=`expr '(' $ac_mid ')' + 1`
20554fi
20555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20556done
20557case $ac_lo in
20558?*) ac_cv_sizeof_short=$ac_lo;;
20559'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
20560See \`config.log' for more details." >&5
20561echo "$as_me: error: cannot compute sizeof (short), 77
20562See \`config.log' for more details." >&2;}
20563   { (exit 1); exit 1; }; } ;;
20564esac
20565else
20566  if test "$cross_compiling" = yes; then
20567  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20568echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20569   { (exit 1); exit 1; }; }
20570else
20571  cat >conftest.$ac_ext <<_ACEOF
20572/* confdefs.h.  */
20573_ACEOF
20574cat confdefs.h >>conftest.$ac_ext
20575cat >>conftest.$ac_ext <<_ACEOF
20576/* end confdefs.h.  */
20577$ac_includes_default
20578long longval () { return (long) (sizeof (short)); }
20579unsigned long ulongval () { return (long) (sizeof (short)); }
20580#include <stdio.h>
20581#include <stdlib.h>
20582int
20583main ()
20584{
20585
20586  FILE *f = fopen ("conftest.val", "w");
20587  if (! f)
20588    exit (1);
20589  if (((long) (sizeof (short))) < 0)
20590    {
20591      long i = longval ();
20592      if (i != ((long) (sizeof (short))))
20593	exit (1);
20594      fprintf (f, "%ld\n", i);
20595    }
20596  else
20597    {
20598      unsigned long i = ulongval ();
20599      if (i != ((long) (sizeof (short))))
20600	exit (1);
20601      fprintf (f, "%lu\n", i);
20602    }
20603  exit (ferror (f) || fclose (f) != 0);
20604
20605  ;
20606  return 0;
20607}
20608_ACEOF
20609rm -f conftest$ac_exeext
20610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20611  (eval $ac_link) 2>&5
20612  ac_status=$?
20613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616  (eval $ac_try) 2>&5
20617  ac_status=$?
20618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619  (exit $ac_status); }; }; then
20620  ac_cv_sizeof_short=`cat conftest.val`
20621else
20622  echo "$as_me: program exited with status $ac_status" >&5
20623echo "$as_me: failed program was:" >&5
20624sed 's/^/| /' conftest.$ac_ext >&5
20625
20626( exit $ac_status )
20627{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
20628See \`config.log' for more details." >&5
20629echo "$as_me: error: cannot compute sizeof (short), 77
20630See \`config.log' for more details." >&2;}
20631   { (exit 1); exit 1; }; }
20632fi
20633rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20634fi
20635fi
20636rm -f conftest.val
20637else
20638  ac_cv_sizeof_short=0
20639fi
20640fi
20641echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20642echo "${ECHO_T}$ac_cv_sizeof_short" >&6
20643cat >>confdefs.h <<_ACEOF
20644#define SIZEOF_SHORT $ac_cv_sizeof_short
20645_ACEOF
20646
20647
20648echo "$as_me:$LINENO: checking for int" >&5
20649echo $ECHO_N "checking for int... $ECHO_C" >&6
20650if test "${ac_cv_type_int+set}" = set; then
20651  echo $ECHO_N "(cached) $ECHO_C" >&6
20652else
20653  cat >conftest.$ac_ext <<_ACEOF
20654/* confdefs.h.  */
20655_ACEOF
20656cat confdefs.h >>conftest.$ac_ext
20657cat >>conftest.$ac_ext <<_ACEOF
20658/* end confdefs.h.  */
20659$ac_includes_default
20660int
20661main ()
20662{
20663if ((int *) 0)
20664  return 0;
20665if (sizeof (int))
20666  return 0;
20667  ;
20668  return 0;
20669}
20670_ACEOF
20671rm -f conftest.$ac_objext
20672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20673  (eval $ac_compile) 2>conftest.er1
20674  ac_status=$?
20675  grep -v '^ *+' conftest.er1 >conftest.err
20676  rm -f conftest.er1
20677  cat conftest.err >&5
20678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679  (exit $ac_status); } &&
20680	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682  (eval $ac_try) 2>&5
20683  ac_status=$?
20684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685  (exit $ac_status); }; } &&
20686	 { ac_try='test -s conftest.$ac_objext'
20687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688  (eval $ac_try) 2>&5
20689  ac_status=$?
20690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691  (exit $ac_status); }; }; then
20692  ac_cv_type_int=yes
20693else
20694  echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697ac_cv_type_int=no
20698fi
20699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20700fi
20701echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20702echo "${ECHO_T}$ac_cv_type_int" >&6
20703
20704echo "$as_me:$LINENO: checking size of int" >&5
20705echo $ECHO_N "checking size of int... $ECHO_C" >&6
20706if test "${ac_cv_sizeof_int+set}" = set; then
20707  echo $ECHO_N "(cached) $ECHO_C" >&6
20708else
20709  if test "$ac_cv_type_int" = yes; then
20710  # The cast to unsigned long works around a bug in the HP C Compiler
20711  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20712  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20713  # This bug is HP SR number 8606223364.
20714  if test "$cross_compiling" = yes; then
20715  # Depending upon the size, compute the lo and hi bounds.
20716cat >conftest.$ac_ext <<_ACEOF
20717/* confdefs.h.  */
20718_ACEOF
20719cat confdefs.h >>conftest.$ac_ext
20720cat >>conftest.$ac_ext <<_ACEOF
20721/* end confdefs.h.  */
20722$ac_includes_default
20723int
20724main ()
20725{
20726static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
20727test_array [0] = 0
20728
20729  ;
20730  return 0;
20731}
20732_ACEOF
20733rm -f conftest.$ac_objext
20734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20735  (eval $ac_compile) 2>conftest.er1
20736  ac_status=$?
20737  grep -v '^ *+' conftest.er1 >conftest.err
20738  rm -f conftest.er1
20739  cat conftest.err >&5
20740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741  (exit $ac_status); } &&
20742	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744  (eval $ac_try) 2>&5
20745  ac_status=$?
20746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747  (exit $ac_status); }; } &&
20748	 { ac_try='test -s conftest.$ac_objext'
20749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750  (eval $ac_try) 2>&5
20751  ac_status=$?
20752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753  (exit $ac_status); }; }; then
20754  ac_lo=0 ac_mid=0
20755  while :; do
20756    cat >conftest.$ac_ext <<_ACEOF
20757/* confdefs.h.  */
20758_ACEOF
20759cat confdefs.h >>conftest.$ac_ext
20760cat >>conftest.$ac_ext <<_ACEOF
20761/* end confdefs.h.  */
20762$ac_includes_default
20763int
20764main ()
20765{
20766static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20767test_array [0] = 0
20768
20769  ;
20770  return 0;
20771}
20772_ACEOF
20773rm -f conftest.$ac_objext
20774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20775  (eval $ac_compile) 2>conftest.er1
20776  ac_status=$?
20777  grep -v '^ *+' conftest.er1 >conftest.err
20778  rm -f conftest.er1
20779  cat conftest.err >&5
20780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781  (exit $ac_status); } &&
20782	 { ac_try='test -z "$ac_c_werror_flag"			 || 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_hi=$ac_mid; break
20795else
20796  echo "$as_me: failed program was:" >&5
20797sed 's/^/| /' conftest.$ac_ext >&5
20798
20799ac_lo=`expr $ac_mid + 1`
20800		    if test $ac_lo -le $ac_mid; then
20801		      ac_lo= ac_hi=
20802		      break
20803		    fi
20804		    ac_mid=`expr 2 '*' $ac_mid + 1`
20805fi
20806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20807  done
20808else
20809  echo "$as_me: failed program was:" >&5
20810sed 's/^/| /' conftest.$ac_ext >&5
20811
20812cat >conftest.$ac_ext <<_ACEOF
20813/* confdefs.h.  */
20814_ACEOF
20815cat confdefs.h >>conftest.$ac_ext
20816cat >>conftest.$ac_ext <<_ACEOF
20817/* end confdefs.h.  */
20818$ac_includes_default
20819int
20820main ()
20821{
20822static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
20823test_array [0] = 0
20824
20825  ;
20826  return 0;
20827}
20828_ACEOF
20829rm -f conftest.$ac_objext
20830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20831  (eval $ac_compile) 2>conftest.er1
20832  ac_status=$?
20833  grep -v '^ *+' conftest.er1 >conftest.err
20834  rm -f conftest.er1
20835  cat conftest.err >&5
20836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837  (exit $ac_status); } &&
20838	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840  (eval $ac_try) 2>&5
20841  ac_status=$?
20842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843  (exit $ac_status); }; } &&
20844	 { ac_try='test -s conftest.$ac_objext'
20845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846  (eval $ac_try) 2>&5
20847  ac_status=$?
20848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849  (exit $ac_status); }; }; then
20850  ac_hi=-1 ac_mid=-1
20851  while :; do
20852    cat >conftest.$ac_ext <<_ACEOF
20853/* confdefs.h.  */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
20857/* end confdefs.h.  */
20858$ac_includes_default
20859int
20860main ()
20861{
20862static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
20863test_array [0] = 0
20864
20865  ;
20866  return 0;
20867}
20868_ACEOF
20869rm -f conftest.$ac_objext
20870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20871  (eval $ac_compile) 2>conftest.er1
20872  ac_status=$?
20873  grep -v '^ *+' conftest.er1 >conftest.err
20874  rm -f conftest.er1
20875  cat conftest.err >&5
20876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877  (exit $ac_status); } &&
20878	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880  (eval $ac_try) 2>&5
20881  ac_status=$?
20882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883  (exit $ac_status); }; } &&
20884	 { ac_try='test -s conftest.$ac_objext'
20885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886  (eval $ac_try) 2>&5
20887  ac_status=$?
20888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889  (exit $ac_status); }; }; then
20890  ac_lo=$ac_mid; break
20891else
20892  echo "$as_me: failed program was:" >&5
20893sed 's/^/| /' conftest.$ac_ext >&5
20894
20895ac_hi=`expr '(' $ac_mid ')' - 1`
20896		       if test $ac_mid -le $ac_hi; then
20897			 ac_lo= ac_hi=
20898			 break
20899		       fi
20900		       ac_mid=`expr 2 '*' $ac_mid`
20901fi
20902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20903  done
20904else
20905  echo "$as_me: failed program was:" >&5
20906sed 's/^/| /' conftest.$ac_ext >&5
20907
20908ac_lo= ac_hi=
20909fi
20910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20911fi
20912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20913# Binary search between lo and hi bounds.
20914while test "x$ac_lo" != "x$ac_hi"; do
20915  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20916  cat >conftest.$ac_ext <<_ACEOF
20917/* confdefs.h.  */
20918_ACEOF
20919cat confdefs.h >>conftest.$ac_ext
20920cat >>conftest.$ac_ext <<_ACEOF
20921/* end confdefs.h.  */
20922$ac_includes_default
20923int
20924main ()
20925{
20926static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20927test_array [0] = 0
20928
20929  ;
20930  return 0;
20931}
20932_ACEOF
20933rm -f conftest.$ac_objext
20934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20935  (eval $ac_compile) 2>conftest.er1
20936  ac_status=$?
20937  grep -v '^ *+' conftest.er1 >conftest.err
20938  rm -f conftest.er1
20939  cat conftest.err >&5
20940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941  (exit $ac_status); } &&
20942	 { ac_try='test -z "$ac_c_werror_flag"			 || 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_hi=$ac_mid
20955else
20956  echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
20959ac_lo=`expr '(' $ac_mid ')' + 1`
20960fi
20961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20962done
20963case $ac_lo in
20964?*) ac_cv_sizeof_int=$ac_lo;;
20965'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20966See \`config.log' for more details." >&5
20967echo "$as_me: error: cannot compute sizeof (int), 77
20968See \`config.log' for more details." >&2;}
20969   { (exit 1); exit 1; }; } ;;
20970esac
20971else
20972  if test "$cross_compiling" = yes; then
20973  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20974echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20975   { (exit 1); exit 1; }; }
20976else
20977  cat >conftest.$ac_ext <<_ACEOF
20978/* confdefs.h.  */
20979_ACEOF
20980cat confdefs.h >>conftest.$ac_ext
20981cat >>conftest.$ac_ext <<_ACEOF
20982/* end confdefs.h.  */
20983$ac_includes_default
20984long longval () { return (long) (sizeof (int)); }
20985unsigned long ulongval () { return (long) (sizeof (int)); }
20986#include <stdio.h>
20987#include <stdlib.h>
20988int
20989main ()
20990{
20991
20992  FILE *f = fopen ("conftest.val", "w");
20993  if (! f)
20994    exit (1);
20995  if (((long) (sizeof (int))) < 0)
20996    {
20997      long i = longval ();
20998      if (i != ((long) (sizeof (int))))
20999	exit (1);
21000      fprintf (f, "%ld\n", i);
21001    }
21002  else
21003    {
21004      unsigned long i = ulongval ();
21005      if (i != ((long) (sizeof (int))))
21006	exit (1);
21007      fprintf (f, "%lu\n", i);
21008    }
21009  exit (ferror (f) || fclose (f) != 0);
21010
21011  ;
21012  return 0;
21013}
21014_ACEOF
21015rm -f conftest$ac_exeext
21016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017  (eval $ac_link) 2>&5
21018  ac_status=$?
21019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022  (eval $ac_try) 2>&5
21023  ac_status=$?
21024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025  (exit $ac_status); }; }; then
21026  ac_cv_sizeof_int=`cat conftest.val`
21027else
21028  echo "$as_me: program exited with status $ac_status" >&5
21029echo "$as_me: failed program was:" >&5
21030sed 's/^/| /' conftest.$ac_ext >&5
21031
21032( exit $ac_status )
21033{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
21034See \`config.log' for more details." >&5
21035echo "$as_me: error: cannot compute sizeof (int), 77
21036See \`config.log' for more details." >&2;}
21037   { (exit 1); exit 1; }; }
21038fi
21039rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21040fi
21041fi
21042rm -f conftest.val
21043else
21044  ac_cv_sizeof_int=0
21045fi
21046fi
21047echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21048echo "${ECHO_T}$ac_cv_sizeof_int" >&6
21049cat >>confdefs.h <<_ACEOF
21050#define SIZEOF_INT $ac_cv_sizeof_int
21051_ACEOF
21052
21053
21054echo "$as_me:$LINENO: checking for long" >&5
21055echo $ECHO_N "checking for long... $ECHO_C" >&6
21056if test "${ac_cv_type_long+set}" = set; then
21057  echo $ECHO_N "(cached) $ECHO_C" >&6
21058else
21059  cat >conftest.$ac_ext <<_ACEOF
21060/* confdefs.h.  */
21061_ACEOF
21062cat confdefs.h >>conftest.$ac_ext
21063cat >>conftest.$ac_ext <<_ACEOF
21064/* end confdefs.h.  */
21065$ac_includes_default
21066int
21067main ()
21068{
21069if ((long *) 0)
21070  return 0;
21071if (sizeof (long))
21072  return 0;
21073  ;
21074  return 0;
21075}
21076_ACEOF
21077rm -f conftest.$ac_objext
21078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21079  (eval $ac_compile) 2>conftest.er1
21080  ac_status=$?
21081  grep -v '^ *+' conftest.er1 >conftest.err
21082  rm -f conftest.er1
21083  cat conftest.err >&5
21084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085  (exit $ac_status); } &&
21086	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088  (eval $ac_try) 2>&5
21089  ac_status=$?
21090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091  (exit $ac_status); }; } &&
21092	 { ac_try='test -s conftest.$ac_objext'
21093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094  (eval $ac_try) 2>&5
21095  ac_status=$?
21096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097  (exit $ac_status); }; }; then
21098  ac_cv_type_long=yes
21099else
21100  echo "$as_me: failed program was:" >&5
21101sed 's/^/| /' conftest.$ac_ext >&5
21102
21103ac_cv_type_long=no
21104fi
21105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21106fi
21107echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21108echo "${ECHO_T}$ac_cv_type_long" >&6
21109
21110echo "$as_me:$LINENO: checking size of long" >&5
21111echo $ECHO_N "checking size of long... $ECHO_C" >&6
21112if test "${ac_cv_sizeof_long+set}" = set; then
21113  echo $ECHO_N "(cached) $ECHO_C" >&6
21114else
21115  if test "$ac_cv_type_long" = yes; then
21116  # The cast to unsigned long works around a bug in the HP C Compiler
21117  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21118  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21119  # This bug is HP SR number 8606223364.
21120  if test "$cross_compiling" = yes; then
21121  # Depending upon the size, compute the lo and hi bounds.
21122cat >conftest.$ac_ext <<_ACEOF
21123/* confdefs.h.  */
21124_ACEOF
21125cat confdefs.h >>conftest.$ac_ext
21126cat >>conftest.$ac_ext <<_ACEOF
21127/* end confdefs.h.  */
21128$ac_includes_default
21129int
21130main ()
21131{
21132static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
21133test_array [0] = 0
21134
21135  ;
21136  return 0;
21137}
21138_ACEOF
21139rm -f conftest.$ac_objext
21140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21141  (eval $ac_compile) 2>conftest.er1
21142  ac_status=$?
21143  grep -v '^ *+' conftest.er1 >conftest.err
21144  rm -f conftest.er1
21145  cat conftest.err >&5
21146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147  (exit $ac_status); } &&
21148	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150  (eval $ac_try) 2>&5
21151  ac_status=$?
21152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153  (exit $ac_status); }; } &&
21154	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21160  ac_lo=0 ac_mid=0
21161  while :; do
21162    cat >conftest.$ac_ext <<_ACEOF
21163/* confdefs.h.  */
21164_ACEOF
21165cat confdefs.h >>conftest.$ac_ext
21166cat >>conftest.$ac_ext <<_ACEOF
21167/* end confdefs.h.  */
21168$ac_includes_default
21169int
21170main ()
21171{
21172static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21173test_array [0] = 0
21174
21175  ;
21176  return 0;
21177}
21178_ACEOF
21179rm -f conftest.$ac_objext
21180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21181  (eval $ac_compile) 2>conftest.er1
21182  ac_status=$?
21183  grep -v '^ *+' conftest.er1 >conftest.err
21184  rm -f conftest.er1
21185  cat conftest.err >&5
21186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187  (exit $ac_status); } &&
21188	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190  (eval $ac_try) 2>&5
21191  ac_status=$?
21192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193  (exit $ac_status); }; } &&
21194	 { ac_try='test -s conftest.$ac_objext'
21195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196  (eval $ac_try) 2>&5
21197  ac_status=$?
21198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199  (exit $ac_status); }; }; then
21200  ac_hi=$ac_mid; break
21201else
21202  echo "$as_me: failed program was:" >&5
21203sed 's/^/| /' conftest.$ac_ext >&5
21204
21205ac_lo=`expr $ac_mid + 1`
21206		    if test $ac_lo -le $ac_mid; then
21207		      ac_lo= ac_hi=
21208		      break
21209		    fi
21210		    ac_mid=`expr 2 '*' $ac_mid + 1`
21211fi
21212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21213  done
21214else
21215  echo "$as_me: failed program was:" >&5
21216sed 's/^/| /' conftest.$ac_ext >&5
21217
21218cat >conftest.$ac_ext <<_ACEOF
21219/* confdefs.h.  */
21220_ACEOF
21221cat confdefs.h >>conftest.$ac_ext
21222cat >>conftest.$ac_ext <<_ACEOF
21223/* end confdefs.h.  */
21224$ac_includes_default
21225int
21226main ()
21227{
21228static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
21229test_array [0] = 0
21230
21231  ;
21232  return 0;
21233}
21234_ACEOF
21235rm -f conftest.$ac_objext
21236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21237  (eval $ac_compile) 2>conftest.er1
21238  ac_status=$?
21239  grep -v '^ *+' conftest.er1 >conftest.err
21240  rm -f conftest.er1
21241  cat conftest.err >&5
21242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243  (exit $ac_status); } &&
21244	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246  (eval $ac_try) 2>&5
21247  ac_status=$?
21248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249  (exit $ac_status); }; } &&
21250	 { ac_try='test -s conftest.$ac_objext'
21251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252  (eval $ac_try) 2>&5
21253  ac_status=$?
21254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255  (exit $ac_status); }; }; then
21256  ac_hi=-1 ac_mid=-1
21257  while :; do
21258    cat >conftest.$ac_ext <<_ACEOF
21259/* confdefs.h.  */
21260_ACEOF
21261cat confdefs.h >>conftest.$ac_ext
21262cat >>conftest.$ac_ext <<_ACEOF
21263/* end confdefs.h.  */
21264$ac_includes_default
21265int
21266main ()
21267{
21268static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
21269test_array [0] = 0
21270
21271  ;
21272  return 0;
21273}
21274_ACEOF
21275rm -f conftest.$ac_objext
21276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21277  (eval $ac_compile) 2>conftest.er1
21278  ac_status=$?
21279  grep -v '^ *+' conftest.er1 >conftest.err
21280  rm -f conftest.er1
21281  cat conftest.err >&5
21282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283  (exit $ac_status); } &&
21284	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286  (eval $ac_try) 2>&5
21287  ac_status=$?
21288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289  (exit $ac_status); }; } &&
21290	 { ac_try='test -s conftest.$ac_objext'
21291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292  (eval $ac_try) 2>&5
21293  ac_status=$?
21294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295  (exit $ac_status); }; }; then
21296  ac_lo=$ac_mid; break
21297else
21298  echo "$as_me: failed program was:" >&5
21299sed 's/^/| /' conftest.$ac_ext >&5
21300
21301ac_hi=`expr '(' $ac_mid ')' - 1`
21302		       if test $ac_mid -le $ac_hi; then
21303			 ac_lo= ac_hi=
21304			 break
21305		       fi
21306		       ac_mid=`expr 2 '*' $ac_mid`
21307fi
21308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21309  done
21310else
21311  echo "$as_me: failed program was:" >&5
21312sed 's/^/| /' conftest.$ac_ext >&5
21313
21314ac_lo= ac_hi=
21315fi
21316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21317fi
21318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21319# Binary search between lo and hi bounds.
21320while test "x$ac_lo" != "x$ac_hi"; do
21321  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21322  cat >conftest.$ac_ext <<_ACEOF
21323/* confdefs.h.  */
21324_ACEOF
21325cat confdefs.h >>conftest.$ac_ext
21326cat >>conftest.$ac_ext <<_ACEOF
21327/* end confdefs.h.  */
21328$ac_includes_default
21329int
21330main ()
21331{
21332static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21333test_array [0] = 0
21334
21335  ;
21336  return 0;
21337}
21338_ACEOF
21339rm -f conftest.$ac_objext
21340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21341  (eval $ac_compile) 2>conftest.er1
21342  ac_status=$?
21343  grep -v '^ *+' conftest.er1 >conftest.err
21344  rm -f conftest.er1
21345  cat conftest.err >&5
21346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347  (exit $ac_status); } &&
21348	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350  (eval $ac_try) 2>&5
21351  ac_status=$?
21352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353  (exit $ac_status); }; } &&
21354	 { ac_try='test -s conftest.$ac_objext'
21355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356  (eval $ac_try) 2>&5
21357  ac_status=$?
21358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359  (exit $ac_status); }; }; then
21360  ac_hi=$ac_mid
21361else
21362  echo "$as_me: failed program was:" >&5
21363sed 's/^/| /' conftest.$ac_ext >&5
21364
21365ac_lo=`expr '(' $ac_mid ')' + 1`
21366fi
21367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21368done
21369case $ac_lo in
21370?*) ac_cv_sizeof_long=$ac_lo;;
21371'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21372See \`config.log' for more details." >&5
21373echo "$as_me: error: cannot compute sizeof (long), 77
21374See \`config.log' for more details." >&2;}
21375   { (exit 1); exit 1; }; } ;;
21376esac
21377else
21378  if test "$cross_compiling" = yes; then
21379  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21380echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21381   { (exit 1); exit 1; }; }
21382else
21383  cat >conftest.$ac_ext <<_ACEOF
21384/* confdefs.h.  */
21385_ACEOF
21386cat confdefs.h >>conftest.$ac_ext
21387cat >>conftest.$ac_ext <<_ACEOF
21388/* end confdefs.h.  */
21389$ac_includes_default
21390long longval () { return (long) (sizeof (long)); }
21391unsigned long ulongval () { return (long) (sizeof (long)); }
21392#include <stdio.h>
21393#include <stdlib.h>
21394int
21395main ()
21396{
21397
21398  FILE *f = fopen ("conftest.val", "w");
21399  if (! f)
21400    exit (1);
21401  if (((long) (sizeof (long))) < 0)
21402    {
21403      long i = longval ();
21404      if (i != ((long) (sizeof (long))))
21405	exit (1);
21406      fprintf (f, "%ld\n", i);
21407    }
21408  else
21409    {
21410      unsigned long i = ulongval ();
21411      if (i != ((long) (sizeof (long))))
21412	exit (1);
21413      fprintf (f, "%lu\n", i);
21414    }
21415  exit (ferror (f) || fclose (f) != 0);
21416
21417  ;
21418  return 0;
21419}
21420_ACEOF
21421rm -f conftest$ac_exeext
21422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21423  (eval $ac_link) 2>&5
21424  ac_status=$?
21425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428  (eval $ac_try) 2>&5
21429  ac_status=$?
21430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431  (exit $ac_status); }; }; then
21432  ac_cv_sizeof_long=`cat conftest.val`
21433else
21434  echo "$as_me: program exited with status $ac_status" >&5
21435echo "$as_me: failed program was:" >&5
21436sed 's/^/| /' conftest.$ac_ext >&5
21437
21438( exit $ac_status )
21439{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21440See \`config.log' for more details." >&5
21441echo "$as_me: error: cannot compute sizeof (long), 77
21442See \`config.log' for more details." >&2;}
21443   { (exit 1); exit 1; }; }
21444fi
21445rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21446fi
21447fi
21448rm -f conftest.val
21449else
21450  ac_cv_sizeof_long=0
21451fi
21452fi
21453echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21454echo "${ECHO_T}$ac_cv_sizeof_long" >&6
21455cat >>confdefs.h <<_ACEOF
21456#define SIZEOF_LONG $ac_cv_sizeof_long
21457_ACEOF
21458
21459
21460
21461echo "$as_me:$LINENO: checking for long long" >&5
21462echo $ECHO_N "checking for long long... $ECHO_C" >&6
21463if test "${ac_cv_type_long_long+set}" = set; then
21464  echo $ECHO_N "(cached) $ECHO_C" >&6
21465else
21466  cat >conftest.$ac_ext <<_ACEOF
21467/* confdefs.h.  */
21468_ACEOF
21469cat confdefs.h >>conftest.$ac_ext
21470cat >>conftest.$ac_ext <<_ACEOF
21471/* end confdefs.h.  */
21472$ac_includes_default
21473int
21474main ()
21475{
21476if ((long long *) 0)
21477  return 0;
21478if (sizeof (long long))
21479  return 0;
21480  ;
21481  return 0;
21482}
21483_ACEOF
21484rm -f conftest.$ac_objext
21485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21486  (eval $ac_compile) 2>conftest.er1
21487  ac_status=$?
21488  grep -v '^ *+' conftest.er1 >conftest.err
21489  rm -f conftest.er1
21490  cat conftest.err >&5
21491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492  (exit $ac_status); } &&
21493	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495  (eval $ac_try) 2>&5
21496  ac_status=$?
21497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498  (exit $ac_status); }; } &&
21499	 { ac_try='test -s conftest.$ac_objext'
21500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501  (eval $ac_try) 2>&5
21502  ac_status=$?
21503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504  (exit $ac_status); }; }; then
21505  ac_cv_type_long_long=yes
21506else
21507  echo "$as_me: failed program was:" >&5
21508sed 's/^/| /' conftest.$ac_ext >&5
21509
21510ac_cv_type_long_long=no
21511fi
21512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21513fi
21514echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21515echo "${ECHO_T}$ac_cv_type_long_long" >&6
21516
21517echo "$as_me:$LINENO: checking size of long long" >&5
21518echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21519if test "${ac_cv_sizeof_long_long+set}" = set; then
21520  echo $ECHO_N "(cached) $ECHO_C" >&6
21521else
21522  if test "$ac_cv_type_long_long" = yes; then
21523  # The cast to unsigned long works around a bug in the HP C Compiler
21524  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21525  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21526  # This bug is HP SR number 8606223364.
21527  if test "$cross_compiling" = yes; then
21528  # Depending upon the size, compute the lo and hi bounds.
21529cat >conftest.$ac_ext <<_ACEOF
21530/* confdefs.h.  */
21531_ACEOF
21532cat confdefs.h >>conftest.$ac_ext
21533cat >>conftest.$ac_ext <<_ACEOF
21534/* end confdefs.h.  */
21535$ac_includes_default
21536int
21537main ()
21538{
21539static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21540test_array [0] = 0
21541
21542  ;
21543  return 0;
21544}
21545_ACEOF
21546rm -f conftest.$ac_objext
21547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21548  (eval $ac_compile) 2>conftest.er1
21549  ac_status=$?
21550  grep -v '^ *+' conftest.er1 >conftest.err
21551  rm -f conftest.er1
21552  cat conftest.err >&5
21553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554  (exit $ac_status); } &&
21555	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557  (eval $ac_try) 2>&5
21558  ac_status=$?
21559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560  (exit $ac_status); }; } &&
21561	 { ac_try='test -s conftest.$ac_objext'
21562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563  (eval $ac_try) 2>&5
21564  ac_status=$?
21565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566  (exit $ac_status); }; }; then
21567  ac_lo=0 ac_mid=0
21568  while :; do
21569    cat >conftest.$ac_ext <<_ACEOF
21570/* confdefs.h.  */
21571_ACEOF
21572cat confdefs.h >>conftest.$ac_ext
21573cat >>conftest.$ac_ext <<_ACEOF
21574/* end confdefs.h.  */
21575$ac_includes_default
21576int
21577main ()
21578{
21579static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21580test_array [0] = 0
21581
21582  ;
21583  return 0;
21584}
21585_ACEOF
21586rm -f conftest.$ac_objext
21587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21588  (eval $ac_compile) 2>conftest.er1
21589  ac_status=$?
21590  grep -v '^ *+' conftest.er1 >conftest.err
21591  rm -f conftest.er1
21592  cat conftest.err >&5
21593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594  (exit $ac_status); } &&
21595	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597  (eval $ac_try) 2>&5
21598  ac_status=$?
21599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600  (exit $ac_status); }; } &&
21601	 { ac_try='test -s conftest.$ac_objext'
21602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603  (eval $ac_try) 2>&5
21604  ac_status=$?
21605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606  (exit $ac_status); }; }; then
21607  ac_hi=$ac_mid; break
21608else
21609  echo "$as_me: failed program was:" >&5
21610sed 's/^/| /' conftest.$ac_ext >&5
21611
21612ac_lo=`expr $ac_mid + 1`
21613		    if test $ac_lo -le $ac_mid; then
21614		      ac_lo= ac_hi=
21615		      break
21616		    fi
21617		    ac_mid=`expr 2 '*' $ac_mid + 1`
21618fi
21619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21620  done
21621else
21622  echo "$as_me: failed program was:" >&5
21623sed 's/^/| /' conftest.$ac_ext >&5
21624
21625cat >conftest.$ac_ext <<_ACEOF
21626/* confdefs.h.  */
21627_ACEOF
21628cat confdefs.h >>conftest.$ac_ext
21629cat >>conftest.$ac_ext <<_ACEOF
21630/* end confdefs.h.  */
21631$ac_includes_default
21632int
21633main ()
21634{
21635static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21636test_array [0] = 0
21637
21638  ;
21639  return 0;
21640}
21641_ACEOF
21642rm -f conftest.$ac_objext
21643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21644  (eval $ac_compile) 2>conftest.er1
21645  ac_status=$?
21646  grep -v '^ *+' conftest.er1 >conftest.err
21647  rm -f conftest.er1
21648  cat conftest.err >&5
21649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650  (exit $ac_status); } &&
21651	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653  (eval $ac_try) 2>&5
21654  ac_status=$?
21655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656  (exit $ac_status); }; } &&
21657	 { ac_try='test -s conftest.$ac_objext'
21658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659  (eval $ac_try) 2>&5
21660  ac_status=$?
21661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662  (exit $ac_status); }; }; then
21663  ac_hi=-1 ac_mid=-1
21664  while :; do
21665    cat >conftest.$ac_ext <<_ACEOF
21666/* confdefs.h.  */
21667_ACEOF
21668cat confdefs.h >>conftest.$ac_ext
21669cat >>conftest.$ac_ext <<_ACEOF
21670/* end confdefs.h.  */
21671$ac_includes_default
21672int
21673main ()
21674{
21675static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21676test_array [0] = 0
21677
21678  ;
21679  return 0;
21680}
21681_ACEOF
21682rm -f conftest.$ac_objext
21683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21684  (eval $ac_compile) 2>conftest.er1
21685  ac_status=$?
21686  grep -v '^ *+' conftest.er1 >conftest.err
21687  rm -f conftest.er1
21688  cat conftest.err >&5
21689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690  (exit $ac_status); } &&
21691	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693  (eval $ac_try) 2>&5
21694  ac_status=$?
21695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696  (exit $ac_status); }; } &&
21697	 { ac_try='test -s conftest.$ac_objext'
21698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699  (eval $ac_try) 2>&5
21700  ac_status=$?
21701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702  (exit $ac_status); }; }; then
21703  ac_lo=$ac_mid; break
21704else
21705  echo "$as_me: failed program was:" >&5
21706sed 's/^/| /' conftest.$ac_ext >&5
21707
21708ac_hi=`expr '(' $ac_mid ')' - 1`
21709		       if test $ac_mid -le $ac_hi; then
21710			 ac_lo= ac_hi=
21711			 break
21712		       fi
21713		       ac_mid=`expr 2 '*' $ac_mid`
21714fi
21715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21716  done
21717else
21718  echo "$as_me: failed program was:" >&5
21719sed 's/^/| /' conftest.$ac_ext >&5
21720
21721ac_lo= ac_hi=
21722fi
21723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21724fi
21725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21726# Binary search between lo and hi bounds.
21727while test "x$ac_lo" != "x$ac_hi"; do
21728  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21729  cat >conftest.$ac_ext <<_ACEOF
21730/* confdefs.h.  */
21731_ACEOF
21732cat confdefs.h >>conftest.$ac_ext
21733cat >>conftest.$ac_ext <<_ACEOF
21734/* end confdefs.h.  */
21735$ac_includes_default
21736int
21737main ()
21738{
21739static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21740test_array [0] = 0
21741
21742  ;
21743  return 0;
21744}
21745_ACEOF
21746rm -f conftest.$ac_objext
21747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21748  (eval $ac_compile) 2>conftest.er1
21749  ac_status=$?
21750  grep -v '^ *+' conftest.er1 >conftest.err
21751  rm -f conftest.er1
21752  cat conftest.err >&5
21753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754  (exit $ac_status); } &&
21755	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757  (eval $ac_try) 2>&5
21758  ac_status=$?
21759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760  (exit $ac_status); }; } &&
21761	 { ac_try='test -s conftest.$ac_objext'
21762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763  (eval $ac_try) 2>&5
21764  ac_status=$?
21765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766  (exit $ac_status); }; }; then
21767  ac_hi=$ac_mid
21768else
21769  echo "$as_me: failed program was:" >&5
21770sed 's/^/| /' conftest.$ac_ext >&5
21771
21772ac_lo=`expr '(' $ac_mid ')' + 1`
21773fi
21774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21775done
21776case $ac_lo in
21777?*) ac_cv_sizeof_long_long=$ac_lo;;
21778'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21779See \`config.log' for more details." >&5
21780echo "$as_me: error: cannot compute sizeof (long long), 77
21781See \`config.log' for more details." >&2;}
21782   { (exit 1); exit 1; }; } ;;
21783esac
21784else
21785  if test "$cross_compiling" = yes; then
21786  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21787echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21788   { (exit 1); exit 1; }; }
21789else
21790  cat >conftest.$ac_ext <<_ACEOF
21791/* confdefs.h.  */
21792_ACEOF
21793cat confdefs.h >>conftest.$ac_ext
21794cat >>conftest.$ac_ext <<_ACEOF
21795/* end confdefs.h.  */
21796$ac_includes_default
21797long longval () { return (long) (sizeof (long long)); }
21798unsigned long ulongval () { return (long) (sizeof (long long)); }
21799#include <stdio.h>
21800#include <stdlib.h>
21801int
21802main ()
21803{
21804
21805  FILE *f = fopen ("conftest.val", "w");
21806  if (! f)
21807    exit (1);
21808  if (((long) (sizeof (long long))) < 0)
21809    {
21810      long i = longval ();
21811      if (i != ((long) (sizeof (long long))))
21812	exit (1);
21813      fprintf (f, "%ld\n", i);
21814    }
21815  else
21816    {
21817      unsigned long i = ulongval ();
21818      if (i != ((long) (sizeof (long long))))
21819	exit (1);
21820      fprintf (f, "%lu\n", i);
21821    }
21822  exit (ferror (f) || fclose (f) != 0);
21823
21824  ;
21825  return 0;
21826}
21827_ACEOF
21828rm -f conftest$ac_exeext
21829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21830  (eval $ac_link) 2>&5
21831  ac_status=$?
21832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835  (eval $ac_try) 2>&5
21836  ac_status=$?
21837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838  (exit $ac_status); }; }; then
21839  ac_cv_sizeof_long_long=`cat conftest.val`
21840else
21841  echo "$as_me: program exited with status $ac_status" >&5
21842echo "$as_me: failed program was:" >&5
21843sed 's/^/| /' conftest.$ac_ext >&5
21844
21845( exit $ac_status )
21846{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21847See \`config.log' for more details." >&5
21848echo "$as_me: error: cannot compute sizeof (long long), 77
21849See \`config.log' for more details." >&2;}
21850   { (exit 1); exit 1; }; }
21851fi
21852rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21853fi
21854fi
21855rm -f conftest.val
21856else
21857  ac_cv_sizeof_long_long=0
21858fi
21859fi
21860echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21861echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21862cat >>confdefs.h <<_ACEOF
21863#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21864_ACEOF
21865
21866
21867echo "$as_me:$LINENO: checking for __int16" >&5
21868echo $ECHO_N "checking for __int16... $ECHO_C" >&6
21869if test "${ac_cv_type___int16+set}" = set; then
21870  echo $ECHO_N "(cached) $ECHO_C" >&6
21871else
21872  cat >conftest.$ac_ext <<_ACEOF
21873/* confdefs.h.  */
21874_ACEOF
21875cat confdefs.h >>conftest.$ac_ext
21876cat >>conftest.$ac_ext <<_ACEOF
21877/* end confdefs.h.  */
21878$ac_includes_default
21879int
21880main ()
21881{
21882if ((__int16 *) 0)
21883  return 0;
21884if (sizeof (__int16))
21885  return 0;
21886  ;
21887  return 0;
21888}
21889_ACEOF
21890rm -f conftest.$ac_objext
21891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21892  (eval $ac_compile) 2>conftest.er1
21893  ac_status=$?
21894  grep -v '^ *+' conftest.er1 >conftest.err
21895  rm -f conftest.er1
21896  cat conftest.err >&5
21897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898  (exit $ac_status); } &&
21899	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901  (eval $ac_try) 2>&5
21902  ac_status=$?
21903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904  (exit $ac_status); }; } &&
21905	 { ac_try='test -s conftest.$ac_objext'
21906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907  (eval $ac_try) 2>&5
21908  ac_status=$?
21909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910  (exit $ac_status); }; }; then
21911  ac_cv_type___int16=yes
21912else
21913  echo "$as_me: failed program was:" >&5
21914sed 's/^/| /' conftest.$ac_ext >&5
21915
21916ac_cv_type___int16=no
21917fi
21918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21919fi
21920echo "$as_me:$LINENO: result: $ac_cv_type___int16" >&5
21921echo "${ECHO_T}$ac_cv_type___int16" >&6
21922
21923echo "$as_me:$LINENO: checking size of __int16" >&5
21924echo $ECHO_N "checking size of __int16... $ECHO_C" >&6
21925if test "${ac_cv_sizeof___int16+set}" = set; then
21926  echo $ECHO_N "(cached) $ECHO_C" >&6
21927else
21928  if test "$ac_cv_type___int16" = yes; then
21929  # The cast to unsigned long works around a bug in the HP C Compiler
21930  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21931  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21932  # This bug is HP SR number 8606223364.
21933  if test "$cross_compiling" = yes; then
21934  # Depending upon the size, compute the lo and hi bounds.
21935cat >conftest.$ac_ext <<_ACEOF
21936/* confdefs.h.  */
21937_ACEOF
21938cat confdefs.h >>conftest.$ac_ext
21939cat >>conftest.$ac_ext <<_ACEOF
21940/* end confdefs.h.  */
21941$ac_includes_default
21942int
21943main ()
21944{
21945static int test_array [1 - 2 * !(((long) (sizeof (__int16))) >= 0)];
21946test_array [0] = 0
21947
21948  ;
21949  return 0;
21950}
21951_ACEOF
21952rm -f conftest.$ac_objext
21953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21954  (eval $ac_compile) 2>conftest.er1
21955  ac_status=$?
21956  grep -v '^ *+' conftest.er1 >conftest.err
21957  rm -f conftest.er1
21958  cat conftest.err >&5
21959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960  (exit $ac_status); } &&
21961	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963  (eval $ac_try) 2>&5
21964  ac_status=$?
21965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966  (exit $ac_status); }; } &&
21967	 { ac_try='test -s conftest.$ac_objext'
21968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969  (eval $ac_try) 2>&5
21970  ac_status=$?
21971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972  (exit $ac_status); }; }; then
21973  ac_lo=0 ac_mid=0
21974  while :; do
21975    cat >conftest.$ac_ext <<_ACEOF
21976/* confdefs.h.  */
21977_ACEOF
21978cat confdefs.h >>conftest.$ac_ext
21979cat >>conftest.$ac_ext <<_ACEOF
21980/* end confdefs.h.  */
21981$ac_includes_default
21982int
21983main ()
21984{
21985static int test_array [1 - 2 * !(((long) (sizeof (__int16))) <= $ac_mid)];
21986test_array [0] = 0
21987
21988  ;
21989  return 0;
21990}
21991_ACEOF
21992rm -f conftest.$ac_objext
21993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21994  (eval $ac_compile) 2>conftest.er1
21995  ac_status=$?
21996  grep -v '^ *+' conftest.er1 >conftest.err
21997  rm -f conftest.er1
21998  cat conftest.err >&5
21999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000  (exit $ac_status); } &&
22001	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003  (eval $ac_try) 2>&5
22004  ac_status=$?
22005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006  (exit $ac_status); }; } &&
22007	 { ac_try='test -s conftest.$ac_objext'
22008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009  (eval $ac_try) 2>&5
22010  ac_status=$?
22011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012  (exit $ac_status); }; }; then
22013  ac_hi=$ac_mid; break
22014else
22015  echo "$as_me: failed program was:" >&5
22016sed 's/^/| /' conftest.$ac_ext >&5
22017
22018ac_lo=`expr $ac_mid + 1`
22019		    if test $ac_lo -le $ac_mid; then
22020		      ac_lo= ac_hi=
22021		      break
22022		    fi
22023		    ac_mid=`expr 2 '*' $ac_mid + 1`
22024fi
22025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22026  done
22027else
22028  echo "$as_me: failed program was:" >&5
22029sed 's/^/| /' conftest.$ac_ext >&5
22030
22031cat >conftest.$ac_ext <<_ACEOF
22032/* confdefs.h.  */
22033_ACEOF
22034cat confdefs.h >>conftest.$ac_ext
22035cat >>conftest.$ac_ext <<_ACEOF
22036/* end confdefs.h.  */
22037$ac_includes_default
22038int
22039main ()
22040{
22041static int test_array [1 - 2 * !(((long) (sizeof (__int16))) < 0)];
22042test_array [0] = 0
22043
22044  ;
22045  return 0;
22046}
22047_ACEOF
22048rm -f conftest.$ac_objext
22049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22050  (eval $ac_compile) 2>conftest.er1
22051  ac_status=$?
22052  grep -v '^ *+' conftest.er1 >conftest.err
22053  rm -f conftest.er1
22054  cat conftest.err >&5
22055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056  (exit $ac_status); } &&
22057	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059  (eval $ac_try) 2>&5
22060  ac_status=$?
22061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062  (exit $ac_status); }; } &&
22063	 { ac_try='test -s conftest.$ac_objext'
22064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065  (eval $ac_try) 2>&5
22066  ac_status=$?
22067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068  (exit $ac_status); }; }; then
22069  ac_hi=-1 ac_mid=-1
22070  while :; do
22071    cat >conftest.$ac_ext <<_ACEOF
22072/* confdefs.h.  */
22073_ACEOF
22074cat confdefs.h >>conftest.$ac_ext
22075cat >>conftest.$ac_ext <<_ACEOF
22076/* end confdefs.h.  */
22077$ac_includes_default
22078int
22079main ()
22080{
22081static int test_array [1 - 2 * !(((long) (sizeof (__int16))) >= $ac_mid)];
22082test_array [0] = 0
22083
22084  ;
22085  return 0;
22086}
22087_ACEOF
22088rm -f conftest.$ac_objext
22089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22090  (eval $ac_compile) 2>conftest.er1
22091  ac_status=$?
22092  grep -v '^ *+' conftest.er1 >conftest.err
22093  rm -f conftest.er1
22094  cat conftest.err >&5
22095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096  (exit $ac_status); } &&
22097	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099  (eval $ac_try) 2>&5
22100  ac_status=$?
22101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102  (exit $ac_status); }; } &&
22103	 { ac_try='test -s conftest.$ac_objext'
22104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105  (eval $ac_try) 2>&5
22106  ac_status=$?
22107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108  (exit $ac_status); }; }; then
22109  ac_lo=$ac_mid; break
22110else
22111  echo "$as_me: failed program was:" >&5
22112sed 's/^/| /' conftest.$ac_ext >&5
22113
22114ac_hi=`expr '(' $ac_mid ')' - 1`
22115		       if test $ac_mid -le $ac_hi; then
22116			 ac_lo= ac_hi=
22117			 break
22118		       fi
22119		       ac_mid=`expr 2 '*' $ac_mid`
22120fi
22121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22122  done
22123else
22124  echo "$as_me: failed program was:" >&5
22125sed 's/^/| /' conftest.$ac_ext >&5
22126
22127ac_lo= ac_hi=
22128fi
22129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22130fi
22131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22132# Binary search between lo and hi bounds.
22133while test "x$ac_lo" != "x$ac_hi"; do
22134  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22135  cat >conftest.$ac_ext <<_ACEOF
22136/* confdefs.h.  */
22137_ACEOF
22138cat confdefs.h >>conftest.$ac_ext
22139cat >>conftest.$ac_ext <<_ACEOF
22140/* end confdefs.h.  */
22141$ac_includes_default
22142int
22143main ()
22144{
22145static int test_array [1 - 2 * !(((long) (sizeof (__int16))) <= $ac_mid)];
22146test_array [0] = 0
22147
22148  ;
22149  return 0;
22150}
22151_ACEOF
22152rm -f conftest.$ac_objext
22153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22154  (eval $ac_compile) 2>conftest.er1
22155  ac_status=$?
22156  grep -v '^ *+' conftest.er1 >conftest.err
22157  rm -f conftest.er1
22158  cat conftest.err >&5
22159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160  (exit $ac_status); } &&
22161	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
22167	 { ac_try='test -s conftest.$ac_objext'
22168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169  (eval $ac_try) 2>&5
22170  ac_status=$?
22171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172  (exit $ac_status); }; }; then
22173  ac_hi=$ac_mid
22174else
22175  echo "$as_me: failed program was:" >&5
22176sed 's/^/| /' conftest.$ac_ext >&5
22177
22178ac_lo=`expr '(' $ac_mid ')' + 1`
22179fi
22180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22181done
22182case $ac_lo in
22183?*) ac_cv_sizeof___int16=$ac_lo;;
22184'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int16), 77
22185See \`config.log' for more details." >&5
22186echo "$as_me: error: cannot compute sizeof (__int16), 77
22187See \`config.log' for more details." >&2;}
22188   { (exit 1); exit 1; }; } ;;
22189esac
22190else
22191  if test "$cross_compiling" = yes; then
22192  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22193echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22194   { (exit 1); exit 1; }; }
22195else
22196  cat >conftest.$ac_ext <<_ACEOF
22197/* confdefs.h.  */
22198_ACEOF
22199cat confdefs.h >>conftest.$ac_ext
22200cat >>conftest.$ac_ext <<_ACEOF
22201/* end confdefs.h.  */
22202$ac_includes_default
22203long longval () { return (long) (sizeof (__int16)); }
22204unsigned long ulongval () { return (long) (sizeof (__int16)); }
22205#include <stdio.h>
22206#include <stdlib.h>
22207int
22208main ()
22209{
22210
22211  FILE *f = fopen ("conftest.val", "w");
22212  if (! f)
22213    exit (1);
22214  if (((long) (sizeof (__int16))) < 0)
22215    {
22216      long i = longval ();
22217      if (i != ((long) (sizeof (__int16))))
22218	exit (1);
22219      fprintf (f, "%ld\n", i);
22220    }
22221  else
22222    {
22223      unsigned long i = ulongval ();
22224      if (i != ((long) (sizeof (__int16))))
22225	exit (1);
22226      fprintf (f, "%lu\n", i);
22227    }
22228  exit (ferror (f) || fclose (f) != 0);
22229
22230  ;
22231  return 0;
22232}
22233_ACEOF
22234rm -f conftest$ac_exeext
22235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22236  (eval $ac_link) 2>&5
22237  ac_status=$?
22238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241  (eval $ac_try) 2>&5
22242  ac_status=$?
22243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244  (exit $ac_status); }; }; then
22245  ac_cv_sizeof___int16=`cat conftest.val`
22246else
22247  echo "$as_me: program exited with status $ac_status" >&5
22248echo "$as_me: failed program was:" >&5
22249sed 's/^/| /' conftest.$ac_ext >&5
22250
22251( exit $ac_status )
22252{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int16), 77
22253See \`config.log' for more details." >&5
22254echo "$as_me: error: cannot compute sizeof (__int16), 77
22255See \`config.log' for more details." >&2;}
22256   { (exit 1); exit 1; }; }
22257fi
22258rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22259fi
22260fi
22261rm -f conftest.val
22262else
22263  ac_cv_sizeof___int16=0
22264fi
22265fi
22266echo "$as_me:$LINENO: result: $ac_cv_sizeof___int16" >&5
22267echo "${ECHO_T}$ac_cv_sizeof___int16" >&6
22268cat >>confdefs.h <<_ACEOF
22269#define SIZEOF___INT16 $ac_cv_sizeof___int16
22270_ACEOF
22271
22272
22273echo "$as_me:$LINENO: checking for __int32" >&5
22274echo $ECHO_N "checking for __int32... $ECHO_C" >&6
22275if test "${ac_cv_type___int32+set}" = set; then
22276  echo $ECHO_N "(cached) $ECHO_C" >&6
22277else
22278  cat >conftest.$ac_ext <<_ACEOF
22279/* confdefs.h.  */
22280_ACEOF
22281cat confdefs.h >>conftest.$ac_ext
22282cat >>conftest.$ac_ext <<_ACEOF
22283/* end confdefs.h.  */
22284$ac_includes_default
22285int
22286main ()
22287{
22288if ((__int32 *) 0)
22289  return 0;
22290if (sizeof (__int32))
22291  return 0;
22292  ;
22293  return 0;
22294}
22295_ACEOF
22296rm -f conftest.$ac_objext
22297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22298  (eval $ac_compile) 2>conftest.er1
22299  ac_status=$?
22300  grep -v '^ *+' conftest.er1 >conftest.err
22301  rm -f conftest.er1
22302  cat conftest.err >&5
22303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304  (exit $ac_status); } &&
22305	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307  (eval $ac_try) 2>&5
22308  ac_status=$?
22309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310  (exit $ac_status); }; } &&
22311	 { ac_try='test -s conftest.$ac_objext'
22312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313  (eval $ac_try) 2>&5
22314  ac_status=$?
22315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316  (exit $ac_status); }; }; then
22317  ac_cv_type___int32=yes
22318else
22319  echo "$as_me: failed program was:" >&5
22320sed 's/^/| /' conftest.$ac_ext >&5
22321
22322ac_cv_type___int32=no
22323fi
22324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22325fi
22326echo "$as_me:$LINENO: result: $ac_cv_type___int32" >&5
22327echo "${ECHO_T}$ac_cv_type___int32" >&6
22328
22329echo "$as_me:$LINENO: checking size of __int32" >&5
22330echo $ECHO_N "checking size of __int32... $ECHO_C" >&6
22331if test "${ac_cv_sizeof___int32+set}" = set; then
22332  echo $ECHO_N "(cached) $ECHO_C" >&6
22333else
22334  if test "$ac_cv_type___int32" = yes; then
22335  # The cast to unsigned long works around a bug in the HP C Compiler
22336  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22337  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22338  # This bug is HP SR number 8606223364.
22339  if test "$cross_compiling" = yes; then
22340  # Depending upon the size, compute the lo and hi bounds.
22341cat >conftest.$ac_ext <<_ACEOF
22342/* confdefs.h.  */
22343_ACEOF
22344cat confdefs.h >>conftest.$ac_ext
22345cat >>conftest.$ac_ext <<_ACEOF
22346/* end confdefs.h.  */
22347$ac_includes_default
22348int
22349main ()
22350{
22351static int test_array [1 - 2 * !(((long) (sizeof (__int32))) >= 0)];
22352test_array [0] = 0
22353
22354  ;
22355  return 0;
22356}
22357_ACEOF
22358rm -f conftest.$ac_objext
22359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360  (eval $ac_compile) 2>conftest.er1
22361  ac_status=$?
22362  grep -v '^ *+' conftest.er1 >conftest.err
22363  rm -f conftest.er1
22364  cat conftest.err >&5
22365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366  (exit $ac_status); } &&
22367	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369  (eval $ac_try) 2>&5
22370  ac_status=$?
22371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372  (exit $ac_status); }; } &&
22373	 { ac_try='test -s conftest.$ac_objext'
22374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375  (eval $ac_try) 2>&5
22376  ac_status=$?
22377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378  (exit $ac_status); }; }; then
22379  ac_lo=0 ac_mid=0
22380  while :; do
22381    cat >conftest.$ac_ext <<_ACEOF
22382/* confdefs.h.  */
22383_ACEOF
22384cat confdefs.h >>conftest.$ac_ext
22385cat >>conftest.$ac_ext <<_ACEOF
22386/* end confdefs.h.  */
22387$ac_includes_default
22388int
22389main ()
22390{
22391static int test_array [1 - 2 * !(((long) (sizeof (__int32))) <= $ac_mid)];
22392test_array [0] = 0
22393
22394  ;
22395  return 0;
22396}
22397_ACEOF
22398rm -f conftest.$ac_objext
22399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22400  (eval $ac_compile) 2>conftest.er1
22401  ac_status=$?
22402  grep -v '^ *+' conftest.er1 >conftest.err
22403  rm -f conftest.er1
22404  cat conftest.err >&5
22405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406  (exit $ac_status); } &&
22407	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22409  (eval $ac_try) 2>&5
22410  ac_status=$?
22411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412  (exit $ac_status); }; } &&
22413	 { ac_try='test -s conftest.$ac_objext'
22414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415  (eval $ac_try) 2>&5
22416  ac_status=$?
22417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418  (exit $ac_status); }; }; then
22419  ac_hi=$ac_mid; break
22420else
22421  echo "$as_me: failed program was:" >&5
22422sed 's/^/| /' conftest.$ac_ext >&5
22423
22424ac_lo=`expr $ac_mid + 1`
22425		    if test $ac_lo -le $ac_mid; then
22426		      ac_lo= ac_hi=
22427		      break
22428		    fi
22429		    ac_mid=`expr 2 '*' $ac_mid + 1`
22430fi
22431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22432  done
22433else
22434  echo "$as_me: failed program was:" >&5
22435sed 's/^/| /' conftest.$ac_ext >&5
22436
22437cat >conftest.$ac_ext <<_ACEOF
22438/* confdefs.h.  */
22439_ACEOF
22440cat confdefs.h >>conftest.$ac_ext
22441cat >>conftest.$ac_ext <<_ACEOF
22442/* end confdefs.h.  */
22443$ac_includes_default
22444int
22445main ()
22446{
22447static int test_array [1 - 2 * !(((long) (sizeof (__int32))) < 0)];
22448test_array [0] = 0
22449
22450  ;
22451  return 0;
22452}
22453_ACEOF
22454rm -f conftest.$ac_objext
22455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22456  (eval $ac_compile) 2>conftest.er1
22457  ac_status=$?
22458  grep -v '^ *+' conftest.er1 >conftest.err
22459  rm -f conftest.er1
22460  cat conftest.err >&5
22461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462  (exit $ac_status); } &&
22463	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465  (eval $ac_try) 2>&5
22466  ac_status=$?
22467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468  (exit $ac_status); }; } &&
22469	 { ac_try='test -s conftest.$ac_objext'
22470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471  (eval $ac_try) 2>&5
22472  ac_status=$?
22473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474  (exit $ac_status); }; }; then
22475  ac_hi=-1 ac_mid=-1
22476  while :; do
22477    cat >conftest.$ac_ext <<_ACEOF
22478/* confdefs.h.  */
22479_ACEOF
22480cat confdefs.h >>conftest.$ac_ext
22481cat >>conftest.$ac_ext <<_ACEOF
22482/* end confdefs.h.  */
22483$ac_includes_default
22484int
22485main ()
22486{
22487static int test_array [1 - 2 * !(((long) (sizeof (__int32))) >= $ac_mid)];
22488test_array [0] = 0
22489
22490  ;
22491  return 0;
22492}
22493_ACEOF
22494rm -f conftest.$ac_objext
22495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22496  (eval $ac_compile) 2>conftest.er1
22497  ac_status=$?
22498  grep -v '^ *+' conftest.er1 >conftest.err
22499  rm -f conftest.er1
22500  cat conftest.err >&5
22501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502  (exit $ac_status); } &&
22503	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22505  (eval $ac_try) 2>&5
22506  ac_status=$?
22507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508  (exit $ac_status); }; } &&
22509	 { ac_try='test -s conftest.$ac_objext'
22510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511  (eval $ac_try) 2>&5
22512  ac_status=$?
22513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514  (exit $ac_status); }; }; then
22515  ac_lo=$ac_mid; break
22516else
22517  echo "$as_me: failed program was:" >&5
22518sed 's/^/| /' conftest.$ac_ext >&5
22519
22520ac_hi=`expr '(' $ac_mid ')' - 1`
22521		       if test $ac_mid -le $ac_hi; then
22522			 ac_lo= ac_hi=
22523			 break
22524		       fi
22525		       ac_mid=`expr 2 '*' $ac_mid`
22526fi
22527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22528  done
22529else
22530  echo "$as_me: failed program was:" >&5
22531sed 's/^/| /' conftest.$ac_ext >&5
22532
22533ac_lo= ac_hi=
22534fi
22535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22536fi
22537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22538# Binary search between lo and hi bounds.
22539while test "x$ac_lo" != "x$ac_hi"; do
22540  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22541  cat >conftest.$ac_ext <<_ACEOF
22542/* confdefs.h.  */
22543_ACEOF
22544cat confdefs.h >>conftest.$ac_ext
22545cat >>conftest.$ac_ext <<_ACEOF
22546/* end confdefs.h.  */
22547$ac_includes_default
22548int
22549main ()
22550{
22551static int test_array [1 - 2 * !(((long) (sizeof (__int32))) <= $ac_mid)];
22552test_array [0] = 0
22553
22554  ;
22555  return 0;
22556}
22557_ACEOF
22558rm -f conftest.$ac_objext
22559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22560  (eval $ac_compile) 2>conftest.er1
22561  ac_status=$?
22562  grep -v '^ *+' conftest.er1 >conftest.err
22563  rm -f conftest.er1
22564  cat conftest.err >&5
22565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566  (exit $ac_status); } &&
22567	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569  (eval $ac_try) 2>&5
22570  ac_status=$?
22571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572  (exit $ac_status); }; } &&
22573	 { ac_try='test -s conftest.$ac_objext'
22574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575  (eval $ac_try) 2>&5
22576  ac_status=$?
22577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578  (exit $ac_status); }; }; then
22579  ac_hi=$ac_mid
22580else
22581  echo "$as_me: failed program was:" >&5
22582sed 's/^/| /' conftest.$ac_ext >&5
22583
22584ac_lo=`expr '(' $ac_mid ')' + 1`
22585fi
22586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22587done
22588case $ac_lo in
22589?*) ac_cv_sizeof___int32=$ac_lo;;
22590'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int32), 77
22591See \`config.log' for more details." >&5
22592echo "$as_me: error: cannot compute sizeof (__int32), 77
22593See \`config.log' for more details." >&2;}
22594   { (exit 1); exit 1; }; } ;;
22595esac
22596else
22597  if test "$cross_compiling" = yes; then
22598  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22599echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22600   { (exit 1); exit 1; }; }
22601else
22602  cat >conftest.$ac_ext <<_ACEOF
22603/* confdefs.h.  */
22604_ACEOF
22605cat confdefs.h >>conftest.$ac_ext
22606cat >>conftest.$ac_ext <<_ACEOF
22607/* end confdefs.h.  */
22608$ac_includes_default
22609long longval () { return (long) (sizeof (__int32)); }
22610unsigned long ulongval () { return (long) (sizeof (__int32)); }
22611#include <stdio.h>
22612#include <stdlib.h>
22613int
22614main ()
22615{
22616
22617  FILE *f = fopen ("conftest.val", "w");
22618  if (! f)
22619    exit (1);
22620  if (((long) (sizeof (__int32))) < 0)
22621    {
22622      long i = longval ();
22623      if (i != ((long) (sizeof (__int32))))
22624	exit (1);
22625      fprintf (f, "%ld\n", i);
22626    }
22627  else
22628    {
22629      unsigned long i = ulongval ();
22630      if (i != ((long) (sizeof (__int32))))
22631	exit (1);
22632      fprintf (f, "%lu\n", i);
22633    }
22634  exit (ferror (f) || fclose (f) != 0);
22635
22636  ;
22637  return 0;
22638}
22639_ACEOF
22640rm -f conftest$ac_exeext
22641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22642  (eval $ac_link) 2>&5
22643  ac_status=$?
22644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22647  (eval $ac_try) 2>&5
22648  ac_status=$?
22649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650  (exit $ac_status); }; }; then
22651  ac_cv_sizeof___int32=`cat conftest.val`
22652else
22653  echo "$as_me: program exited with status $ac_status" >&5
22654echo "$as_me: failed program was:" >&5
22655sed 's/^/| /' conftest.$ac_ext >&5
22656
22657( exit $ac_status )
22658{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int32), 77
22659See \`config.log' for more details." >&5
22660echo "$as_me: error: cannot compute sizeof (__int32), 77
22661See \`config.log' for more details." >&2;}
22662   { (exit 1); exit 1; }; }
22663fi
22664rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22665fi
22666fi
22667rm -f conftest.val
22668else
22669  ac_cv_sizeof___int32=0
22670fi
22671fi
22672echo "$as_me:$LINENO: result: $ac_cv_sizeof___int32" >&5
22673echo "${ECHO_T}$ac_cv_sizeof___int32" >&6
22674cat >>confdefs.h <<_ACEOF
22675#define SIZEOF___INT32 $ac_cv_sizeof___int32
22676_ACEOF
22677
22678
22679echo "$as_me:$LINENO: checking for __int64" >&5
22680echo $ECHO_N "checking for __int64... $ECHO_C" >&6
22681if test "${ac_cv_type___int64+set}" = set; then
22682  echo $ECHO_N "(cached) $ECHO_C" >&6
22683else
22684  cat >conftest.$ac_ext <<_ACEOF
22685/* confdefs.h.  */
22686_ACEOF
22687cat confdefs.h >>conftest.$ac_ext
22688cat >>conftest.$ac_ext <<_ACEOF
22689/* end confdefs.h.  */
22690$ac_includes_default
22691int
22692main ()
22693{
22694if ((__int64 *) 0)
22695  return 0;
22696if (sizeof (__int64))
22697  return 0;
22698  ;
22699  return 0;
22700}
22701_ACEOF
22702rm -f conftest.$ac_objext
22703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22704  (eval $ac_compile) 2>conftest.er1
22705  ac_status=$?
22706  grep -v '^ *+' conftest.er1 >conftest.err
22707  rm -f conftest.er1
22708  cat conftest.err >&5
22709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710  (exit $ac_status); } &&
22711	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713  (eval $ac_try) 2>&5
22714  ac_status=$?
22715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716  (exit $ac_status); }; } &&
22717	 { ac_try='test -s conftest.$ac_objext'
22718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719  (eval $ac_try) 2>&5
22720  ac_status=$?
22721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722  (exit $ac_status); }; }; then
22723  ac_cv_type___int64=yes
22724else
22725  echo "$as_me: failed program was:" >&5
22726sed 's/^/| /' conftest.$ac_ext >&5
22727
22728ac_cv_type___int64=no
22729fi
22730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22731fi
22732echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
22733echo "${ECHO_T}$ac_cv_type___int64" >&6
22734
22735echo "$as_me:$LINENO: checking size of __int64" >&5
22736echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
22737if test "${ac_cv_sizeof___int64+set}" = set; then
22738  echo $ECHO_N "(cached) $ECHO_C" >&6
22739else
22740  if test "$ac_cv_type___int64" = yes; then
22741  # The cast to unsigned long works around a bug in the HP C Compiler
22742  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22743  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22744  # This bug is HP SR number 8606223364.
22745  if test "$cross_compiling" = yes; then
22746  # Depending upon the size, compute the lo and hi bounds.
22747cat >conftest.$ac_ext <<_ACEOF
22748/* confdefs.h.  */
22749_ACEOF
22750cat confdefs.h >>conftest.$ac_ext
22751cat >>conftest.$ac_ext <<_ACEOF
22752/* end confdefs.h.  */
22753$ac_includes_default
22754int
22755main ()
22756{
22757static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
22758test_array [0] = 0
22759
22760  ;
22761  return 0;
22762}
22763_ACEOF
22764rm -f conftest.$ac_objext
22765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766  (eval $ac_compile) 2>conftest.er1
22767  ac_status=$?
22768  grep -v '^ *+' conftest.er1 >conftest.err
22769  rm -f conftest.er1
22770  cat conftest.err >&5
22771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772  (exit $ac_status); } &&
22773	 { ac_try='test -z "$ac_c_werror_flag"			 || 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_lo=0 ac_mid=0
22786  while :; do
22787    cat >conftest.$ac_ext <<_ACEOF
22788/* confdefs.h.  */
22789_ACEOF
22790cat confdefs.h >>conftest.$ac_ext
22791cat >>conftest.$ac_ext <<_ACEOF
22792/* end confdefs.h.  */
22793$ac_includes_default
22794int
22795main ()
22796{
22797static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
22798test_array [0] = 0
22799
22800  ;
22801  return 0;
22802}
22803_ACEOF
22804rm -f conftest.$ac_objext
22805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806  (eval $ac_compile) 2>conftest.er1
22807  ac_status=$?
22808  grep -v '^ *+' conftest.er1 >conftest.err
22809  rm -f conftest.er1
22810  cat conftest.err >&5
22811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812  (exit $ac_status); } &&
22813	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815  (eval $ac_try) 2>&5
22816  ac_status=$?
22817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818  (exit $ac_status); }; } &&
22819	 { ac_try='test -s conftest.$ac_objext'
22820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821  (eval $ac_try) 2>&5
22822  ac_status=$?
22823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824  (exit $ac_status); }; }; then
22825  ac_hi=$ac_mid; break
22826else
22827  echo "$as_me: failed program was:" >&5
22828sed 's/^/| /' conftest.$ac_ext >&5
22829
22830ac_lo=`expr $ac_mid + 1`
22831		    if test $ac_lo -le $ac_mid; then
22832		      ac_lo= ac_hi=
22833		      break
22834		    fi
22835		    ac_mid=`expr 2 '*' $ac_mid + 1`
22836fi
22837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22838  done
22839else
22840  echo "$as_me: failed program was:" >&5
22841sed 's/^/| /' conftest.$ac_ext >&5
22842
22843cat >conftest.$ac_ext <<_ACEOF
22844/* confdefs.h.  */
22845_ACEOF
22846cat confdefs.h >>conftest.$ac_ext
22847cat >>conftest.$ac_ext <<_ACEOF
22848/* end confdefs.h.  */
22849$ac_includes_default
22850int
22851main ()
22852{
22853static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
22854test_array [0] = 0
22855
22856  ;
22857  return 0;
22858}
22859_ACEOF
22860rm -f conftest.$ac_objext
22861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22862  (eval $ac_compile) 2>conftest.er1
22863  ac_status=$?
22864  grep -v '^ *+' conftest.er1 >conftest.err
22865  rm -f conftest.er1
22866  cat conftest.err >&5
22867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868  (exit $ac_status); } &&
22869	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871  (eval $ac_try) 2>&5
22872  ac_status=$?
22873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874  (exit $ac_status); }; } &&
22875	 { ac_try='test -s conftest.$ac_objext'
22876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877  (eval $ac_try) 2>&5
22878  ac_status=$?
22879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880  (exit $ac_status); }; }; then
22881  ac_hi=-1 ac_mid=-1
22882  while :; do
22883    cat >conftest.$ac_ext <<_ACEOF
22884/* confdefs.h.  */
22885_ACEOF
22886cat confdefs.h >>conftest.$ac_ext
22887cat >>conftest.$ac_ext <<_ACEOF
22888/* end confdefs.h.  */
22889$ac_includes_default
22890int
22891main ()
22892{
22893static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
22894test_array [0] = 0
22895
22896  ;
22897  return 0;
22898}
22899_ACEOF
22900rm -f conftest.$ac_objext
22901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22902  (eval $ac_compile) 2>conftest.er1
22903  ac_status=$?
22904  grep -v '^ *+' conftest.er1 >conftest.err
22905  rm -f conftest.er1
22906  cat conftest.err >&5
22907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908  (exit $ac_status); } &&
22909	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911  (eval $ac_try) 2>&5
22912  ac_status=$?
22913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914  (exit $ac_status); }; } &&
22915	 { ac_try='test -s conftest.$ac_objext'
22916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917  (eval $ac_try) 2>&5
22918  ac_status=$?
22919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920  (exit $ac_status); }; }; then
22921  ac_lo=$ac_mid; break
22922else
22923  echo "$as_me: failed program was:" >&5
22924sed 's/^/| /' conftest.$ac_ext >&5
22925
22926ac_hi=`expr '(' $ac_mid ')' - 1`
22927		       if test $ac_mid -le $ac_hi; then
22928			 ac_lo= ac_hi=
22929			 break
22930		       fi
22931		       ac_mid=`expr 2 '*' $ac_mid`
22932fi
22933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22934  done
22935else
22936  echo "$as_me: failed program was:" >&5
22937sed 's/^/| /' conftest.$ac_ext >&5
22938
22939ac_lo= ac_hi=
22940fi
22941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22942fi
22943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22944# Binary search between lo and hi bounds.
22945while test "x$ac_lo" != "x$ac_hi"; do
22946  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22947  cat >conftest.$ac_ext <<_ACEOF
22948/* confdefs.h.  */
22949_ACEOF
22950cat confdefs.h >>conftest.$ac_ext
22951cat >>conftest.$ac_ext <<_ACEOF
22952/* end confdefs.h.  */
22953$ac_includes_default
22954int
22955main ()
22956{
22957static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
22958test_array [0] = 0
22959
22960  ;
22961  return 0;
22962}
22963_ACEOF
22964rm -f conftest.$ac_objext
22965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22966  (eval $ac_compile) 2>conftest.er1
22967  ac_status=$?
22968  grep -v '^ *+' conftest.er1 >conftest.err
22969  rm -f conftest.er1
22970  cat conftest.err >&5
22971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972  (exit $ac_status); } &&
22973	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22975  (eval $ac_try) 2>&5
22976  ac_status=$?
22977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978  (exit $ac_status); }; } &&
22979	 { ac_try='test -s conftest.$ac_objext'
22980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981  (eval $ac_try) 2>&5
22982  ac_status=$?
22983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984  (exit $ac_status); }; }; then
22985  ac_hi=$ac_mid
22986else
22987  echo "$as_me: failed program was:" >&5
22988sed 's/^/| /' conftest.$ac_ext >&5
22989
22990ac_lo=`expr '(' $ac_mid ')' + 1`
22991fi
22992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22993done
22994case $ac_lo in
22995?*) ac_cv_sizeof___int64=$ac_lo;;
22996'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
22997See \`config.log' for more details." >&5
22998echo "$as_me: error: cannot compute sizeof (__int64), 77
22999See \`config.log' for more details." >&2;}
23000   { (exit 1); exit 1; }; } ;;
23001esac
23002else
23003  if test "$cross_compiling" = yes; then
23004  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23005echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23006   { (exit 1); exit 1; }; }
23007else
23008  cat >conftest.$ac_ext <<_ACEOF
23009/* confdefs.h.  */
23010_ACEOF
23011cat confdefs.h >>conftest.$ac_ext
23012cat >>conftest.$ac_ext <<_ACEOF
23013/* end confdefs.h.  */
23014$ac_includes_default
23015long longval () { return (long) (sizeof (__int64)); }
23016unsigned long ulongval () { return (long) (sizeof (__int64)); }
23017#include <stdio.h>
23018#include <stdlib.h>
23019int
23020main ()
23021{
23022
23023  FILE *f = fopen ("conftest.val", "w");
23024  if (! f)
23025    exit (1);
23026  if (((long) (sizeof (__int64))) < 0)
23027    {
23028      long i = longval ();
23029      if (i != ((long) (sizeof (__int64))))
23030	exit (1);
23031      fprintf (f, "%ld\n", i);
23032    }
23033  else
23034    {
23035      unsigned long i = ulongval ();
23036      if (i != ((long) (sizeof (__int64))))
23037	exit (1);
23038      fprintf (f, "%lu\n", i);
23039    }
23040  exit (ferror (f) || fclose (f) != 0);
23041
23042  ;
23043  return 0;
23044}
23045_ACEOF
23046rm -f conftest$ac_exeext
23047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23048  (eval $ac_link) 2>&5
23049  ac_status=$?
23050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053  (eval $ac_try) 2>&5
23054  ac_status=$?
23055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056  (exit $ac_status); }; }; then
23057  ac_cv_sizeof___int64=`cat conftest.val`
23058else
23059  echo "$as_me: program exited with status $ac_status" >&5
23060echo "$as_me: failed program was:" >&5
23061sed 's/^/| /' conftest.$ac_ext >&5
23062
23063( exit $ac_status )
23064{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
23065See \`config.log' for more details." >&5
23066echo "$as_me: error: cannot compute sizeof (__int64), 77
23067See \`config.log' for more details." >&2;}
23068   { (exit 1); exit 1; }; }
23069fi
23070rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23071fi
23072fi
23073rm -f conftest.val
23074else
23075  ac_cv_sizeof___int64=0
23076fi
23077fi
23078echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
23079echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
23080cat >>confdefs.h <<_ACEOF
23081#define SIZEOF___INT64 $ac_cv_sizeof___int64
23082_ACEOF
23083
23084
23085
23086echo "$as_me:$LINENO: checking for void *" >&5
23087echo $ECHO_N "checking for void *... $ECHO_C" >&6
23088if test "${ac_cv_type_void_p+set}" = set; then
23089  echo $ECHO_N "(cached) $ECHO_C" >&6
23090else
23091  cat >conftest.$ac_ext <<_ACEOF
23092/* confdefs.h.  */
23093_ACEOF
23094cat confdefs.h >>conftest.$ac_ext
23095cat >>conftest.$ac_ext <<_ACEOF
23096/* end confdefs.h.  */
23097$ac_includes_default
23098int
23099main ()
23100{
23101if ((void * *) 0)
23102  return 0;
23103if (sizeof (void *))
23104  return 0;
23105  ;
23106  return 0;
23107}
23108_ACEOF
23109rm -f conftest.$ac_objext
23110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23111  (eval $ac_compile) 2>conftest.er1
23112  ac_status=$?
23113  grep -v '^ *+' conftest.er1 >conftest.err
23114  rm -f conftest.er1
23115  cat conftest.err >&5
23116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117  (exit $ac_status); } &&
23118	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120  (eval $ac_try) 2>&5
23121  ac_status=$?
23122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123  (exit $ac_status); }; } &&
23124	 { ac_try='test -s conftest.$ac_objext'
23125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126  (eval $ac_try) 2>&5
23127  ac_status=$?
23128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129  (exit $ac_status); }; }; then
23130  ac_cv_type_void_p=yes
23131else
23132  echo "$as_me: failed program was:" >&5
23133sed 's/^/| /' conftest.$ac_ext >&5
23134
23135ac_cv_type_void_p=no
23136fi
23137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23138fi
23139echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
23140echo "${ECHO_T}$ac_cv_type_void_p" >&6
23141
23142echo "$as_me:$LINENO: checking size of void *" >&5
23143echo $ECHO_N "checking size of void *... $ECHO_C" >&6
23144if test "${ac_cv_sizeof_void_p+set}" = set; then
23145  echo $ECHO_N "(cached) $ECHO_C" >&6
23146else
23147  if test "$ac_cv_type_void_p" = yes; then
23148  # The cast to unsigned long works around a bug in the HP C Compiler
23149  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23150  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23151  # This bug is HP SR number 8606223364.
23152  if test "$cross_compiling" = yes; then
23153  # Depending upon the size, compute the lo and hi bounds.
23154cat >conftest.$ac_ext <<_ACEOF
23155/* confdefs.h.  */
23156_ACEOF
23157cat confdefs.h >>conftest.$ac_ext
23158cat >>conftest.$ac_ext <<_ACEOF
23159/* end confdefs.h.  */
23160$ac_includes_default
23161int
23162main ()
23163{
23164static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
23165test_array [0] = 0
23166
23167  ;
23168  return 0;
23169}
23170_ACEOF
23171rm -f conftest.$ac_objext
23172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23173  (eval $ac_compile) 2>conftest.er1
23174  ac_status=$?
23175  grep -v '^ *+' conftest.er1 >conftest.err
23176  rm -f conftest.er1
23177  cat conftest.err >&5
23178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179  (exit $ac_status); } &&
23180	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182  (eval $ac_try) 2>&5
23183  ac_status=$?
23184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185  (exit $ac_status); }; } &&
23186	 { ac_try='test -s conftest.$ac_objext'
23187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188  (eval $ac_try) 2>&5
23189  ac_status=$?
23190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191  (exit $ac_status); }; }; then
23192  ac_lo=0 ac_mid=0
23193  while :; do
23194    cat >conftest.$ac_ext <<_ACEOF
23195/* confdefs.h.  */
23196_ACEOF
23197cat confdefs.h >>conftest.$ac_ext
23198cat >>conftest.$ac_ext <<_ACEOF
23199/* end confdefs.h.  */
23200$ac_includes_default
23201int
23202main ()
23203{
23204static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
23205test_array [0] = 0
23206
23207  ;
23208  return 0;
23209}
23210_ACEOF
23211rm -f conftest.$ac_objext
23212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23213  (eval $ac_compile) 2>conftest.er1
23214  ac_status=$?
23215  grep -v '^ *+' conftest.er1 >conftest.err
23216  rm -f conftest.er1
23217  cat conftest.err >&5
23218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219  (exit $ac_status); } &&
23220	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222  (eval $ac_try) 2>&5
23223  ac_status=$?
23224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225  (exit $ac_status); }; } &&
23226	 { ac_try='test -s conftest.$ac_objext'
23227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228  (eval $ac_try) 2>&5
23229  ac_status=$?
23230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231  (exit $ac_status); }; }; then
23232  ac_hi=$ac_mid; break
23233else
23234  echo "$as_me: failed program was:" >&5
23235sed 's/^/| /' conftest.$ac_ext >&5
23236
23237ac_lo=`expr $ac_mid + 1`
23238		    if test $ac_lo -le $ac_mid; then
23239		      ac_lo= ac_hi=
23240		      break
23241		    fi
23242		    ac_mid=`expr 2 '*' $ac_mid + 1`
23243fi
23244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23245  done
23246else
23247  echo "$as_me: failed program was:" >&5
23248sed 's/^/| /' conftest.$ac_ext >&5
23249
23250cat >conftest.$ac_ext <<_ACEOF
23251/* confdefs.h.  */
23252_ACEOF
23253cat confdefs.h >>conftest.$ac_ext
23254cat >>conftest.$ac_ext <<_ACEOF
23255/* end confdefs.h.  */
23256$ac_includes_default
23257int
23258main ()
23259{
23260static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
23261test_array [0] = 0
23262
23263  ;
23264  return 0;
23265}
23266_ACEOF
23267rm -f conftest.$ac_objext
23268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23269  (eval $ac_compile) 2>conftest.er1
23270  ac_status=$?
23271  grep -v '^ *+' conftest.er1 >conftest.err
23272  rm -f conftest.er1
23273  cat conftest.err >&5
23274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275  (exit $ac_status); } &&
23276	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278  (eval $ac_try) 2>&5
23279  ac_status=$?
23280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281  (exit $ac_status); }; } &&
23282	 { ac_try='test -s conftest.$ac_objext'
23283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284  (eval $ac_try) 2>&5
23285  ac_status=$?
23286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287  (exit $ac_status); }; }; then
23288  ac_hi=-1 ac_mid=-1
23289  while :; do
23290    cat >conftest.$ac_ext <<_ACEOF
23291/* confdefs.h.  */
23292_ACEOF
23293cat confdefs.h >>conftest.$ac_ext
23294cat >>conftest.$ac_ext <<_ACEOF
23295/* end confdefs.h.  */
23296$ac_includes_default
23297int
23298main ()
23299{
23300static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
23301test_array [0] = 0
23302
23303  ;
23304  return 0;
23305}
23306_ACEOF
23307rm -f conftest.$ac_objext
23308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23309  (eval $ac_compile) 2>conftest.er1
23310  ac_status=$?
23311  grep -v '^ *+' conftest.er1 >conftest.err
23312  rm -f conftest.er1
23313  cat conftest.err >&5
23314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315  (exit $ac_status); } &&
23316	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318  (eval $ac_try) 2>&5
23319  ac_status=$?
23320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321  (exit $ac_status); }; } &&
23322	 { ac_try='test -s conftest.$ac_objext'
23323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324  (eval $ac_try) 2>&5
23325  ac_status=$?
23326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327  (exit $ac_status); }; }; then
23328  ac_lo=$ac_mid; break
23329else
23330  echo "$as_me: failed program was:" >&5
23331sed 's/^/| /' conftest.$ac_ext >&5
23332
23333ac_hi=`expr '(' $ac_mid ')' - 1`
23334		       if test $ac_mid -le $ac_hi; then
23335			 ac_lo= ac_hi=
23336			 break
23337		       fi
23338		       ac_mid=`expr 2 '*' $ac_mid`
23339fi
23340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23341  done
23342else
23343  echo "$as_me: failed program was:" >&5
23344sed 's/^/| /' conftest.$ac_ext >&5
23345
23346ac_lo= ac_hi=
23347fi
23348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23349fi
23350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23351# Binary search between lo and hi bounds.
23352while test "x$ac_lo" != "x$ac_hi"; do
23353  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23354  cat >conftest.$ac_ext <<_ACEOF
23355/* confdefs.h.  */
23356_ACEOF
23357cat confdefs.h >>conftest.$ac_ext
23358cat >>conftest.$ac_ext <<_ACEOF
23359/* end confdefs.h.  */
23360$ac_includes_default
23361int
23362main ()
23363{
23364static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
23365test_array [0] = 0
23366
23367  ;
23368  return 0;
23369}
23370_ACEOF
23371rm -f conftest.$ac_objext
23372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23373  (eval $ac_compile) 2>conftest.er1
23374  ac_status=$?
23375  grep -v '^ *+' conftest.er1 >conftest.err
23376  rm -f conftest.er1
23377  cat conftest.err >&5
23378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379  (exit $ac_status); } &&
23380	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23382  (eval $ac_try) 2>&5
23383  ac_status=$?
23384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385  (exit $ac_status); }; } &&
23386	 { ac_try='test -s conftest.$ac_objext'
23387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388  (eval $ac_try) 2>&5
23389  ac_status=$?
23390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391  (exit $ac_status); }; }; then
23392  ac_hi=$ac_mid
23393else
23394  echo "$as_me: failed program was:" >&5
23395sed 's/^/| /' conftest.$ac_ext >&5
23396
23397ac_lo=`expr '(' $ac_mid ')' + 1`
23398fi
23399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23400done
23401case $ac_lo in
23402?*) ac_cv_sizeof_void_p=$ac_lo;;
23403'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
23404See \`config.log' for more details." >&5
23405echo "$as_me: error: cannot compute sizeof (void *), 77
23406See \`config.log' for more details." >&2;}
23407   { (exit 1); exit 1; }; } ;;
23408esac
23409else
23410  if test "$cross_compiling" = yes; then
23411  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23412echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23413   { (exit 1); exit 1; }; }
23414else
23415  cat >conftest.$ac_ext <<_ACEOF
23416/* confdefs.h.  */
23417_ACEOF
23418cat confdefs.h >>conftest.$ac_ext
23419cat >>conftest.$ac_ext <<_ACEOF
23420/* end confdefs.h.  */
23421$ac_includes_default
23422long longval () { return (long) (sizeof (void *)); }
23423unsigned long ulongval () { return (long) (sizeof (void *)); }
23424#include <stdio.h>
23425#include <stdlib.h>
23426int
23427main ()
23428{
23429
23430  FILE *f = fopen ("conftest.val", "w");
23431  if (! f)
23432    exit (1);
23433  if (((long) (sizeof (void *))) < 0)
23434    {
23435      long i = longval ();
23436      if (i != ((long) (sizeof (void *))))
23437	exit (1);
23438      fprintf (f, "%ld\n", i);
23439    }
23440  else
23441    {
23442      unsigned long i = ulongval ();
23443      if (i != ((long) (sizeof (void *))))
23444	exit (1);
23445      fprintf (f, "%lu\n", i);
23446    }
23447  exit (ferror (f) || fclose (f) != 0);
23448
23449  ;
23450  return 0;
23451}
23452_ACEOF
23453rm -f conftest$ac_exeext
23454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23455  (eval $ac_link) 2>&5
23456  ac_status=$?
23457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460  (eval $ac_try) 2>&5
23461  ac_status=$?
23462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463  (exit $ac_status); }; }; then
23464  ac_cv_sizeof_void_p=`cat conftest.val`
23465else
23466  echo "$as_me: program exited with status $ac_status" >&5
23467echo "$as_me: failed program was:" >&5
23468sed 's/^/| /' conftest.$ac_ext >&5
23469
23470( exit $ac_status )
23471{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
23472See \`config.log' for more details." >&5
23473echo "$as_me: error: cannot compute sizeof (void *), 77
23474See \`config.log' for more details." >&2;}
23475   { (exit 1); exit 1; }; }
23476fi
23477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23478fi
23479fi
23480rm -f conftest.val
23481else
23482  ac_cv_sizeof_void_p=0
23483fi
23484fi
23485echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23486echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
23487cat >>confdefs.h <<_ACEOF
23488#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23489_ACEOF
23490
23491
23492echo "$as_me:$LINENO: checking for size_t" >&5
23493echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23494if test "${ac_cv_type_size_t+set}" = set; then
23495  echo $ECHO_N "(cached) $ECHO_C" >&6
23496else
23497  cat >conftest.$ac_ext <<_ACEOF
23498/* confdefs.h.  */
23499_ACEOF
23500cat confdefs.h >>conftest.$ac_ext
23501cat >>conftest.$ac_ext <<_ACEOF
23502/* end confdefs.h.  */
23503$ac_includes_default
23504int
23505main ()
23506{
23507if ((size_t *) 0)
23508  return 0;
23509if (sizeof (size_t))
23510  return 0;
23511  ;
23512  return 0;
23513}
23514_ACEOF
23515rm -f conftest.$ac_objext
23516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23517  (eval $ac_compile) 2>conftest.er1
23518  ac_status=$?
23519  grep -v '^ *+' conftest.er1 >conftest.err
23520  rm -f conftest.er1
23521  cat conftest.err >&5
23522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523  (exit $ac_status); } &&
23524	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23526  (eval $ac_try) 2>&5
23527  ac_status=$?
23528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529  (exit $ac_status); }; } &&
23530	 { ac_try='test -s conftest.$ac_objext'
23531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532  (eval $ac_try) 2>&5
23533  ac_status=$?
23534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535  (exit $ac_status); }; }; then
23536  ac_cv_type_size_t=yes
23537else
23538  echo "$as_me: failed program was:" >&5
23539sed 's/^/| /' conftest.$ac_ext >&5
23540
23541ac_cv_type_size_t=no
23542fi
23543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23544fi
23545echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23546echo "${ECHO_T}$ac_cv_type_size_t" >&6
23547
23548echo "$as_me:$LINENO: checking size of size_t" >&5
23549echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
23550if test "${ac_cv_sizeof_size_t+set}" = set; then
23551  echo $ECHO_N "(cached) $ECHO_C" >&6
23552else
23553  if test "$ac_cv_type_size_t" = yes; then
23554  # The cast to unsigned long works around a bug in the HP C Compiler
23555  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23556  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23557  # This bug is HP SR number 8606223364.
23558  if test "$cross_compiling" = yes; then
23559  # Depending upon the size, compute the lo and hi bounds.
23560cat >conftest.$ac_ext <<_ACEOF
23561/* confdefs.h.  */
23562_ACEOF
23563cat confdefs.h >>conftest.$ac_ext
23564cat >>conftest.$ac_ext <<_ACEOF
23565/* end confdefs.h.  */
23566$ac_includes_default
23567int
23568main ()
23569{
23570static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
23571test_array [0] = 0
23572
23573  ;
23574  return 0;
23575}
23576_ACEOF
23577rm -f conftest.$ac_objext
23578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23579  (eval $ac_compile) 2>conftest.er1
23580  ac_status=$?
23581  grep -v '^ *+' conftest.er1 >conftest.err
23582  rm -f conftest.er1
23583  cat conftest.err >&5
23584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585  (exit $ac_status); } &&
23586	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588  (eval $ac_try) 2>&5
23589  ac_status=$?
23590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591  (exit $ac_status); }; } &&
23592	 { ac_try='test -s conftest.$ac_objext'
23593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594  (eval $ac_try) 2>&5
23595  ac_status=$?
23596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597  (exit $ac_status); }; }; then
23598  ac_lo=0 ac_mid=0
23599  while :; do
23600    cat >conftest.$ac_ext <<_ACEOF
23601/* confdefs.h.  */
23602_ACEOF
23603cat confdefs.h >>conftest.$ac_ext
23604cat >>conftest.$ac_ext <<_ACEOF
23605/* end confdefs.h.  */
23606$ac_includes_default
23607int
23608main ()
23609{
23610static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
23611test_array [0] = 0
23612
23613  ;
23614  return 0;
23615}
23616_ACEOF
23617rm -f conftest.$ac_objext
23618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23619  (eval $ac_compile) 2>conftest.er1
23620  ac_status=$?
23621  grep -v '^ *+' conftest.er1 >conftest.err
23622  rm -f conftest.er1
23623  cat conftest.err >&5
23624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625  (exit $ac_status); } &&
23626	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628  (eval $ac_try) 2>&5
23629  ac_status=$?
23630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631  (exit $ac_status); }; } &&
23632	 { ac_try='test -s conftest.$ac_objext'
23633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634  (eval $ac_try) 2>&5
23635  ac_status=$?
23636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637  (exit $ac_status); }; }; then
23638  ac_hi=$ac_mid; break
23639else
23640  echo "$as_me: failed program was:" >&5
23641sed 's/^/| /' conftest.$ac_ext >&5
23642
23643ac_lo=`expr $ac_mid + 1`
23644		    if test $ac_lo -le $ac_mid; then
23645		      ac_lo= ac_hi=
23646		      break
23647		    fi
23648		    ac_mid=`expr 2 '*' $ac_mid + 1`
23649fi
23650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23651  done
23652else
23653  echo "$as_me: failed program was:" >&5
23654sed 's/^/| /' conftest.$ac_ext >&5
23655
23656cat >conftest.$ac_ext <<_ACEOF
23657/* confdefs.h.  */
23658_ACEOF
23659cat confdefs.h >>conftest.$ac_ext
23660cat >>conftest.$ac_ext <<_ACEOF
23661/* end confdefs.h.  */
23662$ac_includes_default
23663int
23664main ()
23665{
23666static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
23667test_array [0] = 0
23668
23669  ;
23670  return 0;
23671}
23672_ACEOF
23673rm -f conftest.$ac_objext
23674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23675  (eval $ac_compile) 2>conftest.er1
23676  ac_status=$?
23677  grep -v '^ *+' conftest.er1 >conftest.err
23678  rm -f conftest.er1
23679  cat conftest.err >&5
23680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681  (exit $ac_status); } &&
23682	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684  (eval $ac_try) 2>&5
23685  ac_status=$?
23686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687  (exit $ac_status); }; } &&
23688	 { ac_try='test -s conftest.$ac_objext'
23689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690  (eval $ac_try) 2>&5
23691  ac_status=$?
23692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693  (exit $ac_status); }; }; then
23694  ac_hi=-1 ac_mid=-1
23695  while :; do
23696    cat >conftest.$ac_ext <<_ACEOF
23697/* confdefs.h.  */
23698_ACEOF
23699cat confdefs.h >>conftest.$ac_ext
23700cat >>conftest.$ac_ext <<_ACEOF
23701/* end confdefs.h.  */
23702$ac_includes_default
23703int
23704main ()
23705{
23706static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
23707test_array [0] = 0
23708
23709  ;
23710  return 0;
23711}
23712_ACEOF
23713rm -f conftest.$ac_objext
23714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23715  (eval $ac_compile) 2>conftest.er1
23716  ac_status=$?
23717  grep -v '^ *+' conftest.er1 >conftest.err
23718  rm -f conftest.er1
23719  cat conftest.err >&5
23720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721  (exit $ac_status); } &&
23722	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724  (eval $ac_try) 2>&5
23725  ac_status=$?
23726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727  (exit $ac_status); }; } &&
23728	 { ac_try='test -s conftest.$ac_objext'
23729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730  (eval $ac_try) 2>&5
23731  ac_status=$?
23732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733  (exit $ac_status); }; }; then
23734  ac_lo=$ac_mid; break
23735else
23736  echo "$as_me: failed program was:" >&5
23737sed 's/^/| /' conftest.$ac_ext >&5
23738
23739ac_hi=`expr '(' $ac_mid ')' - 1`
23740		       if test $ac_mid -le $ac_hi; then
23741			 ac_lo= ac_hi=
23742			 break
23743		       fi
23744		       ac_mid=`expr 2 '*' $ac_mid`
23745fi
23746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23747  done
23748else
23749  echo "$as_me: failed program was:" >&5
23750sed 's/^/| /' conftest.$ac_ext >&5
23751
23752ac_lo= ac_hi=
23753fi
23754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23755fi
23756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23757# Binary search between lo and hi bounds.
23758while test "x$ac_lo" != "x$ac_hi"; do
23759  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23760  cat >conftest.$ac_ext <<_ACEOF
23761/* confdefs.h.  */
23762_ACEOF
23763cat confdefs.h >>conftest.$ac_ext
23764cat >>conftest.$ac_ext <<_ACEOF
23765/* end confdefs.h.  */
23766$ac_includes_default
23767int
23768main ()
23769{
23770static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
23771test_array [0] = 0
23772
23773  ;
23774  return 0;
23775}
23776_ACEOF
23777rm -f conftest.$ac_objext
23778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23779  (eval $ac_compile) 2>conftest.er1
23780  ac_status=$?
23781  grep -v '^ *+' conftest.er1 >conftest.err
23782  rm -f conftest.er1
23783  cat conftest.err >&5
23784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785  (exit $ac_status); } &&
23786	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788  (eval $ac_try) 2>&5
23789  ac_status=$?
23790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791  (exit $ac_status); }; } &&
23792	 { ac_try='test -s conftest.$ac_objext'
23793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794  (eval $ac_try) 2>&5
23795  ac_status=$?
23796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797  (exit $ac_status); }; }; then
23798  ac_hi=$ac_mid
23799else
23800  echo "$as_me: failed program was:" >&5
23801sed 's/^/| /' conftest.$ac_ext >&5
23802
23803ac_lo=`expr '(' $ac_mid ')' + 1`
23804fi
23805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23806done
23807case $ac_lo in
23808?*) ac_cv_sizeof_size_t=$ac_lo;;
23809'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
23810See \`config.log' for more details." >&5
23811echo "$as_me: error: cannot compute sizeof (size_t), 77
23812See \`config.log' for more details." >&2;}
23813   { (exit 1); exit 1; }; } ;;
23814esac
23815else
23816  if test "$cross_compiling" = yes; then
23817  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23818echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23819   { (exit 1); exit 1; }; }
23820else
23821  cat >conftest.$ac_ext <<_ACEOF
23822/* confdefs.h.  */
23823_ACEOF
23824cat confdefs.h >>conftest.$ac_ext
23825cat >>conftest.$ac_ext <<_ACEOF
23826/* end confdefs.h.  */
23827$ac_includes_default
23828long longval () { return (long) (sizeof (size_t)); }
23829unsigned long ulongval () { return (long) (sizeof (size_t)); }
23830#include <stdio.h>
23831#include <stdlib.h>
23832int
23833main ()
23834{
23835
23836  FILE *f = fopen ("conftest.val", "w");
23837  if (! f)
23838    exit (1);
23839  if (((long) (sizeof (size_t))) < 0)
23840    {
23841      long i = longval ();
23842      if (i != ((long) (sizeof (size_t))))
23843	exit (1);
23844      fprintf (f, "%ld\n", i);
23845    }
23846  else
23847    {
23848      unsigned long i = ulongval ();
23849      if (i != ((long) (sizeof (size_t))))
23850	exit (1);
23851      fprintf (f, "%lu\n", i);
23852    }
23853  exit (ferror (f) || fclose (f) != 0);
23854
23855  ;
23856  return 0;
23857}
23858_ACEOF
23859rm -f conftest$ac_exeext
23860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23861  (eval $ac_link) 2>&5
23862  ac_status=$?
23863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23866  (eval $ac_try) 2>&5
23867  ac_status=$?
23868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869  (exit $ac_status); }; }; then
23870  ac_cv_sizeof_size_t=`cat conftest.val`
23871else
23872  echo "$as_me: program exited with status $ac_status" >&5
23873echo "$as_me: failed program was:" >&5
23874sed 's/^/| /' conftest.$ac_ext >&5
23875
23876( exit $ac_status )
23877{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
23878See \`config.log' for more details." >&5
23879echo "$as_me: error: cannot compute sizeof (size_t), 77
23880See \`config.log' for more details." >&2;}
23881   { (exit 1); exit 1; }; }
23882fi
23883rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23884fi
23885fi
23886rm -f conftest.val
23887else
23888  ac_cv_sizeof_size_t=0
23889fi
23890fi
23891echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23892echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
23893cat >>confdefs.h <<_ACEOF
23894#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23895_ACEOF
23896
23897
23898echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
23899echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
23900if test "${ac_cv_type_ptrdiff_t+set}" = set; then
23901  echo $ECHO_N "(cached) $ECHO_C" >&6
23902else
23903  cat >conftest.$ac_ext <<_ACEOF
23904/* confdefs.h.  */
23905_ACEOF
23906cat confdefs.h >>conftest.$ac_ext
23907cat >>conftest.$ac_ext <<_ACEOF
23908/* end confdefs.h.  */
23909$ac_includes_default
23910int
23911main ()
23912{
23913if ((ptrdiff_t *) 0)
23914  return 0;
23915if (sizeof (ptrdiff_t))
23916  return 0;
23917  ;
23918  return 0;
23919}
23920_ACEOF
23921rm -f conftest.$ac_objext
23922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23923  (eval $ac_compile) 2>conftest.er1
23924  ac_status=$?
23925  grep -v '^ *+' conftest.er1 >conftest.err
23926  rm -f conftest.er1
23927  cat conftest.err >&5
23928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929  (exit $ac_status); } &&
23930	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932  (eval $ac_try) 2>&5
23933  ac_status=$?
23934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935  (exit $ac_status); }; } &&
23936	 { ac_try='test -s conftest.$ac_objext'
23937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938  (eval $ac_try) 2>&5
23939  ac_status=$?
23940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941  (exit $ac_status); }; }; then
23942  ac_cv_type_ptrdiff_t=yes
23943else
23944  echo "$as_me: failed program was:" >&5
23945sed 's/^/| /' conftest.$ac_ext >&5
23946
23947ac_cv_type_ptrdiff_t=no
23948fi
23949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23950fi
23951echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
23952echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
23953
23954echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
23955echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
23956if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
23957  echo $ECHO_N "(cached) $ECHO_C" >&6
23958else
23959  if test "$ac_cv_type_ptrdiff_t" = yes; then
23960  # The cast to unsigned long works around a bug in the HP C Compiler
23961  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23962  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23963  # This bug is HP SR number 8606223364.
23964  if test "$cross_compiling" = yes; then
23965  # Depending upon the size, compute the lo and hi bounds.
23966cat >conftest.$ac_ext <<_ACEOF
23967/* confdefs.h.  */
23968_ACEOF
23969cat confdefs.h >>conftest.$ac_ext
23970cat >>conftest.$ac_ext <<_ACEOF
23971/* end confdefs.h.  */
23972$ac_includes_default
23973int
23974main ()
23975{
23976static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= 0)];
23977test_array [0] = 0
23978
23979  ;
23980  return 0;
23981}
23982_ACEOF
23983rm -f conftest.$ac_objext
23984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23985  (eval $ac_compile) 2>conftest.er1
23986  ac_status=$?
23987  grep -v '^ *+' conftest.er1 >conftest.err
23988  rm -f conftest.er1
23989  cat conftest.err >&5
23990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991  (exit $ac_status); } &&
23992	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994  (eval $ac_try) 2>&5
23995  ac_status=$?
23996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997  (exit $ac_status); }; } &&
23998	 { ac_try='test -s conftest.$ac_objext'
23999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000  (eval $ac_try) 2>&5
24001  ac_status=$?
24002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003  (exit $ac_status); }; }; then
24004  ac_lo=0 ac_mid=0
24005  while :; do
24006    cat >conftest.$ac_ext <<_ACEOF
24007/* confdefs.h.  */
24008_ACEOF
24009cat confdefs.h >>conftest.$ac_ext
24010cat >>conftest.$ac_ext <<_ACEOF
24011/* end confdefs.h.  */
24012$ac_includes_default
24013int
24014main ()
24015{
24016static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
24017test_array [0] = 0
24018
24019  ;
24020  return 0;
24021}
24022_ACEOF
24023rm -f conftest.$ac_objext
24024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24025  (eval $ac_compile) 2>conftest.er1
24026  ac_status=$?
24027  grep -v '^ *+' conftest.er1 >conftest.err
24028  rm -f conftest.er1
24029  cat conftest.err >&5
24030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031  (exit $ac_status); } &&
24032	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24034  (eval $ac_try) 2>&5
24035  ac_status=$?
24036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037  (exit $ac_status); }; } &&
24038	 { ac_try='test -s conftest.$ac_objext'
24039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24040  (eval $ac_try) 2>&5
24041  ac_status=$?
24042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043  (exit $ac_status); }; }; then
24044  ac_hi=$ac_mid; break
24045else
24046  echo "$as_me: failed program was:" >&5
24047sed 's/^/| /' conftest.$ac_ext >&5
24048
24049ac_lo=`expr $ac_mid + 1`
24050		    if test $ac_lo -le $ac_mid; then
24051		      ac_lo= ac_hi=
24052		      break
24053		    fi
24054		    ac_mid=`expr 2 '*' $ac_mid + 1`
24055fi
24056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24057  done
24058else
24059  echo "$as_me: failed program was:" >&5
24060sed 's/^/| /' conftest.$ac_ext >&5
24061
24062cat >conftest.$ac_ext <<_ACEOF
24063/* confdefs.h.  */
24064_ACEOF
24065cat confdefs.h >>conftest.$ac_ext
24066cat >>conftest.$ac_ext <<_ACEOF
24067/* end confdefs.h.  */
24068$ac_includes_default
24069int
24070main ()
24071{
24072static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) < 0)];
24073test_array [0] = 0
24074
24075  ;
24076  return 0;
24077}
24078_ACEOF
24079rm -f conftest.$ac_objext
24080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24081  (eval $ac_compile) 2>conftest.er1
24082  ac_status=$?
24083  grep -v '^ *+' conftest.er1 >conftest.err
24084  rm -f conftest.er1
24085  cat conftest.err >&5
24086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087  (exit $ac_status); } &&
24088	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090  (eval $ac_try) 2>&5
24091  ac_status=$?
24092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093  (exit $ac_status); }; } &&
24094	 { ac_try='test -s conftest.$ac_objext'
24095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096  (eval $ac_try) 2>&5
24097  ac_status=$?
24098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099  (exit $ac_status); }; }; then
24100  ac_hi=-1 ac_mid=-1
24101  while :; do
24102    cat >conftest.$ac_ext <<_ACEOF
24103/* confdefs.h.  */
24104_ACEOF
24105cat confdefs.h >>conftest.$ac_ext
24106cat >>conftest.$ac_ext <<_ACEOF
24107/* end confdefs.h.  */
24108$ac_includes_default
24109int
24110main ()
24111{
24112static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= $ac_mid)];
24113test_array [0] = 0
24114
24115  ;
24116  return 0;
24117}
24118_ACEOF
24119rm -f conftest.$ac_objext
24120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24121  (eval $ac_compile) 2>conftest.er1
24122  ac_status=$?
24123  grep -v '^ *+' conftest.er1 >conftest.err
24124  rm -f conftest.er1
24125  cat conftest.err >&5
24126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127  (exit $ac_status); } &&
24128	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130  (eval $ac_try) 2>&5
24131  ac_status=$?
24132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133  (exit $ac_status); }; } &&
24134	 { ac_try='test -s conftest.$ac_objext'
24135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24136  (eval $ac_try) 2>&5
24137  ac_status=$?
24138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139  (exit $ac_status); }; }; then
24140  ac_lo=$ac_mid; break
24141else
24142  echo "$as_me: failed program was:" >&5
24143sed 's/^/| /' conftest.$ac_ext >&5
24144
24145ac_hi=`expr '(' $ac_mid ')' - 1`
24146		       if test $ac_mid -le $ac_hi; then
24147			 ac_lo= ac_hi=
24148			 break
24149		       fi
24150		       ac_mid=`expr 2 '*' $ac_mid`
24151fi
24152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24153  done
24154else
24155  echo "$as_me: failed program was:" >&5
24156sed 's/^/| /' conftest.$ac_ext >&5
24157
24158ac_lo= ac_hi=
24159fi
24160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24161fi
24162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24163# Binary search between lo and hi bounds.
24164while test "x$ac_lo" != "x$ac_hi"; do
24165  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24166  cat >conftest.$ac_ext <<_ACEOF
24167/* confdefs.h.  */
24168_ACEOF
24169cat confdefs.h >>conftest.$ac_ext
24170cat >>conftest.$ac_ext <<_ACEOF
24171/* end confdefs.h.  */
24172$ac_includes_default
24173int
24174main ()
24175{
24176static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
24177test_array [0] = 0
24178
24179  ;
24180  return 0;
24181}
24182_ACEOF
24183rm -f conftest.$ac_objext
24184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24185  (eval $ac_compile) 2>conftest.er1
24186  ac_status=$?
24187  grep -v '^ *+' conftest.er1 >conftest.err
24188  rm -f conftest.er1
24189  cat conftest.err >&5
24190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191  (exit $ac_status); } &&
24192	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194  (eval $ac_try) 2>&5
24195  ac_status=$?
24196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197  (exit $ac_status); }; } &&
24198	 { ac_try='test -s conftest.$ac_objext'
24199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200  (eval $ac_try) 2>&5
24201  ac_status=$?
24202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203  (exit $ac_status); }; }; then
24204  ac_hi=$ac_mid
24205else
24206  echo "$as_me: failed program was:" >&5
24207sed 's/^/| /' conftest.$ac_ext >&5
24208
24209ac_lo=`expr '(' $ac_mid ')' + 1`
24210fi
24211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24212done
24213case $ac_lo in
24214?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
24215'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
24216See \`config.log' for more details." >&5
24217echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
24218See \`config.log' for more details." >&2;}
24219   { (exit 1); exit 1; }; } ;;
24220esac
24221else
24222  if test "$cross_compiling" = yes; then
24223  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
24224echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
24225   { (exit 1); exit 1; }; }
24226else
24227  cat >conftest.$ac_ext <<_ACEOF
24228/* confdefs.h.  */
24229_ACEOF
24230cat confdefs.h >>conftest.$ac_ext
24231cat >>conftest.$ac_ext <<_ACEOF
24232/* end confdefs.h.  */
24233$ac_includes_default
24234long longval () { return (long) (sizeof (ptrdiff_t)); }
24235unsigned long ulongval () { return (long) (sizeof (ptrdiff_t)); }
24236#include <stdio.h>
24237#include <stdlib.h>
24238int
24239main ()
24240{
24241
24242  FILE *f = fopen ("conftest.val", "w");
24243  if (! f)
24244    exit (1);
24245  if (((long) (sizeof (ptrdiff_t))) < 0)
24246    {
24247      long i = longval ();
24248      if (i != ((long) (sizeof (ptrdiff_t))))
24249	exit (1);
24250      fprintf (f, "%ld\n", i);
24251    }
24252  else
24253    {
24254      unsigned long i = ulongval ();
24255      if (i != ((long) (sizeof (ptrdiff_t))))
24256	exit (1);
24257      fprintf (f, "%lu\n", i);
24258    }
24259  exit (ferror (f) || fclose (f) != 0);
24260
24261  ;
24262  return 0;
24263}
24264_ACEOF
24265rm -f conftest$ac_exeext
24266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24267  (eval $ac_link) 2>&5
24268  ac_status=$?
24269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272  (eval $ac_try) 2>&5
24273  ac_status=$?
24274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275  (exit $ac_status); }; }; then
24276  ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
24277else
24278  echo "$as_me: program exited with status $ac_status" >&5
24279echo "$as_me: failed program was:" >&5
24280sed 's/^/| /' conftest.$ac_ext >&5
24281
24282( exit $ac_status )
24283{ { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
24284See \`config.log' for more details." >&5
24285echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
24286See \`config.log' for more details." >&2;}
24287   { (exit 1); exit 1; }; }
24288fi
24289rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24290fi
24291fi
24292rm -f conftest.val
24293else
24294  ac_cv_sizeof_ptrdiff_t=0
24295fi
24296fi
24297echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
24298echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6
24299cat >>confdefs.h <<_ACEOF
24300#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
24301_ACEOF
24302
24303
24304
24305
24306echo "$as_me:$LINENO: checking for __int32" >&5
24307echo $ECHO_N "checking for __int32... $ECHO_C" >&6
24308if test "${ac_cv_type___int32+set}" = set; then
24309  echo $ECHO_N "(cached) $ECHO_C" >&6
24310else
24311  cat >conftest.$ac_ext <<_ACEOF
24312/* confdefs.h.  */
24313_ACEOF
24314cat confdefs.h >>conftest.$ac_ext
24315cat >>conftest.$ac_ext <<_ACEOF
24316/* end confdefs.h.  */
24317$ac_includes_default
24318int
24319main ()
24320{
24321if ((__int32 *) 0)
24322  return 0;
24323if (sizeof (__int32))
24324  return 0;
24325  ;
24326  return 0;
24327}
24328_ACEOF
24329rm -f conftest.$ac_objext
24330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24331  (eval $ac_compile) 2>conftest.er1
24332  ac_status=$?
24333  grep -v '^ *+' conftest.er1 >conftest.err
24334  rm -f conftest.er1
24335  cat conftest.err >&5
24336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337  (exit $ac_status); } &&
24338	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340  (eval $ac_try) 2>&5
24341  ac_status=$?
24342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343  (exit $ac_status); }; } &&
24344	 { ac_try='test -s conftest.$ac_objext'
24345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24346  (eval $ac_try) 2>&5
24347  ac_status=$?
24348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349  (exit $ac_status); }; }; then
24350  ac_cv_type___int32=yes
24351else
24352  echo "$as_me: failed program was:" >&5
24353sed 's/^/| /' conftest.$ac_ext >&5
24354
24355ac_cv_type___int32=no
24356fi
24357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24358fi
24359echo "$as_me:$LINENO: result: $ac_cv_type___int32" >&5
24360echo "${ECHO_T}$ac_cv_type___int32" >&6
24361
24362echo "$as_me:$LINENO: checking size of __int32" >&5
24363echo $ECHO_N "checking size of __int32... $ECHO_C" >&6
24364if test "${ac_cv_sizeof___int32+set}" = set; then
24365  echo $ECHO_N "(cached) $ECHO_C" >&6
24366else
24367  if test "$ac_cv_type___int32" = yes; then
24368  # The cast to unsigned long works around a bug in the HP C Compiler
24369  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24370  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24371  # This bug is HP SR number 8606223364.
24372  if test "$cross_compiling" = yes; then
24373  # Depending upon the size, compute the lo and hi bounds.
24374cat >conftest.$ac_ext <<_ACEOF
24375/* confdefs.h.  */
24376_ACEOF
24377cat confdefs.h >>conftest.$ac_ext
24378cat >>conftest.$ac_ext <<_ACEOF
24379/* end confdefs.h.  */
24380$ac_includes_default
24381int
24382main ()
24383{
24384static int test_array [1 - 2 * !(((long) (sizeof (__int32))) >= 0)];
24385test_array [0] = 0
24386
24387  ;
24388  return 0;
24389}
24390_ACEOF
24391rm -f conftest.$ac_objext
24392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24393  (eval $ac_compile) 2>conftest.er1
24394  ac_status=$?
24395  grep -v '^ *+' conftest.er1 >conftest.err
24396  rm -f conftest.er1
24397  cat conftest.err >&5
24398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399  (exit $ac_status); } &&
24400	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24402  (eval $ac_try) 2>&5
24403  ac_status=$?
24404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405  (exit $ac_status); }; } &&
24406	 { ac_try='test -s conftest.$ac_objext'
24407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408  (eval $ac_try) 2>&5
24409  ac_status=$?
24410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411  (exit $ac_status); }; }; then
24412  ac_lo=0 ac_mid=0
24413  while :; do
24414    cat >conftest.$ac_ext <<_ACEOF
24415/* confdefs.h.  */
24416_ACEOF
24417cat confdefs.h >>conftest.$ac_ext
24418cat >>conftest.$ac_ext <<_ACEOF
24419/* end confdefs.h.  */
24420$ac_includes_default
24421int
24422main ()
24423{
24424static int test_array [1 - 2 * !(((long) (sizeof (__int32))) <= $ac_mid)];
24425test_array [0] = 0
24426
24427  ;
24428  return 0;
24429}
24430_ACEOF
24431rm -f conftest.$ac_objext
24432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24433  (eval $ac_compile) 2>conftest.er1
24434  ac_status=$?
24435  grep -v '^ *+' conftest.er1 >conftest.err
24436  rm -f conftest.er1
24437  cat conftest.err >&5
24438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439  (exit $ac_status); } &&
24440	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442  (eval $ac_try) 2>&5
24443  ac_status=$?
24444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445  (exit $ac_status); }; } &&
24446	 { ac_try='test -s conftest.$ac_objext'
24447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448  (eval $ac_try) 2>&5
24449  ac_status=$?
24450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451  (exit $ac_status); }; }; then
24452  ac_hi=$ac_mid; break
24453else
24454  echo "$as_me: failed program was:" >&5
24455sed 's/^/| /' conftest.$ac_ext >&5
24456
24457ac_lo=`expr $ac_mid + 1`
24458		    if test $ac_lo -le $ac_mid; then
24459		      ac_lo= ac_hi=
24460		      break
24461		    fi
24462		    ac_mid=`expr 2 '*' $ac_mid + 1`
24463fi
24464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24465  done
24466else
24467  echo "$as_me: failed program was:" >&5
24468sed 's/^/| /' conftest.$ac_ext >&5
24469
24470cat >conftest.$ac_ext <<_ACEOF
24471/* confdefs.h.  */
24472_ACEOF
24473cat confdefs.h >>conftest.$ac_ext
24474cat >>conftest.$ac_ext <<_ACEOF
24475/* end confdefs.h.  */
24476$ac_includes_default
24477int
24478main ()
24479{
24480static int test_array [1 - 2 * !(((long) (sizeof (__int32))) < 0)];
24481test_array [0] = 0
24482
24483  ;
24484  return 0;
24485}
24486_ACEOF
24487rm -f conftest.$ac_objext
24488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24489  (eval $ac_compile) 2>conftest.er1
24490  ac_status=$?
24491  grep -v '^ *+' conftest.er1 >conftest.err
24492  rm -f conftest.er1
24493  cat conftest.err >&5
24494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495  (exit $ac_status); } &&
24496	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498  (eval $ac_try) 2>&5
24499  ac_status=$?
24500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501  (exit $ac_status); }; } &&
24502	 { ac_try='test -s conftest.$ac_objext'
24503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504  (eval $ac_try) 2>&5
24505  ac_status=$?
24506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507  (exit $ac_status); }; }; then
24508  ac_hi=-1 ac_mid=-1
24509  while :; do
24510    cat >conftest.$ac_ext <<_ACEOF
24511/* confdefs.h.  */
24512_ACEOF
24513cat confdefs.h >>conftest.$ac_ext
24514cat >>conftest.$ac_ext <<_ACEOF
24515/* end confdefs.h.  */
24516$ac_includes_default
24517int
24518main ()
24519{
24520static int test_array [1 - 2 * !(((long) (sizeof (__int32))) >= $ac_mid)];
24521test_array [0] = 0
24522
24523  ;
24524  return 0;
24525}
24526_ACEOF
24527rm -f conftest.$ac_objext
24528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24529  (eval $ac_compile) 2>conftest.er1
24530  ac_status=$?
24531  grep -v '^ *+' conftest.er1 >conftest.err
24532  rm -f conftest.er1
24533  cat conftest.err >&5
24534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535  (exit $ac_status); } &&
24536	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538  (eval $ac_try) 2>&5
24539  ac_status=$?
24540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541  (exit $ac_status); }; } &&
24542	 { ac_try='test -s conftest.$ac_objext'
24543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24544  (eval $ac_try) 2>&5
24545  ac_status=$?
24546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547  (exit $ac_status); }; }; then
24548  ac_lo=$ac_mid; break
24549else
24550  echo "$as_me: failed program was:" >&5
24551sed 's/^/| /' conftest.$ac_ext >&5
24552
24553ac_hi=`expr '(' $ac_mid ')' - 1`
24554		       if test $ac_mid -le $ac_hi; then
24555			 ac_lo= ac_hi=
24556			 break
24557		       fi
24558		       ac_mid=`expr 2 '*' $ac_mid`
24559fi
24560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24561  done
24562else
24563  echo "$as_me: failed program was:" >&5
24564sed 's/^/| /' conftest.$ac_ext >&5
24565
24566ac_lo= ac_hi=
24567fi
24568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24569fi
24570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24571# Binary search between lo and hi bounds.
24572while test "x$ac_lo" != "x$ac_hi"; do
24573  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24574  cat >conftest.$ac_ext <<_ACEOF
24575/* confdefs.h.  */
24576_ACEOF
24577cat confdefs.h >>conftest.$ac_ext
24578cat >>conftest.$ac_ext <<_ACEOF
24579/* end confdefs.h.  */
24580$ac_includes_default
24581int
24582main ()
24583{
24584static int test_array [1 - 2 * !(((long) (sizeof (__int32))) <= $ac_mid)];
24585test_array [0] = 0
24586
24587  ;
24588  return 0;
24589}
24590_ACEOF
24591rm -f conftest.$ac_objext
24592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24593  (eval $ac_compile) 2>conftest.er1
24594  ac_status=$?
24595  grep -v '^ *+' conftest.er1 >conftest.err
24596  rm -f conftest.er1
24597  cat conftest.err >&5
24598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599  (exit $ac_status); } &&
24600	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24602  (eval $ac_try) 2>&5
24603  ac_status=$?
24604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605  (exit $ac_status); }; } &&
24606	 { ac_try='test -s conftest.$ac_objext'
24607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608  (eval $ac_try) 2>&5
24609  ac_status=$?
24610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611  (exit $ac_status); }; }; then
24612  ac_hi=$ac_mid
24613else
24614  echo "$as_me: failed program was:" >&5
24615sed 's/^/| /' conftest.$ac_ext >&5
24616
24617ac_lo=`expr '(' $ac_mid ')' + 1`
24618fi
24619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24620done
24621case $ac_lo in
24622?*) ac_cv_sizeof___int32=$ac_lo;;
24623'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int32), 77
24624See \`config.log' for more details." >&5
24625echo "$as_me: error: cannot compute sizeof (__int32), 77
24626See \`config.log' for more details." >&2;}
24627   { (exit 1); exit 1; }; } ;;
24628esac
24629else
24630  if test "$cross_compiling" = yes; then
24631  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
24632echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
24633   { (exit 1); exit 1; }; }
24634else
24635  cat >conftest.$ac_ext <<_ACEOF
24636/* confdefs.h.  */
24637_ACEOF
24638cat confdefs.h >>conftest.$ac_ext
24639cat >>conftest.$ac_ext <<_ACEOF
24640/* end confdefs.h.  */
24641$ac_includes_default
24642long longval () { return (long) (sizeof (__int32)); }
24643unsigned long ulongval () { return (long) (sizeof (__int32)); }
24644#include <stdio.h>
24645#include <stdlib.h>
24646int
24647main ()
24648{
24649
24650  FILE *f = fopen ("conftest.val", "w");
24651  if (! f)
24652    exit (1);
24653  if (((long) (sizeof (__int32))) < 0)
24654    {
24655      long i = longval ();
24656      if (i != ((long) (sizeof (__int32))))
24657	exit (1);
24658      fprintf (f, "%ld\n", i);
24659    }
24660  else
24661    {
24662      unsigned long i = ulongval ();
24663      if (i != ((long) (sizeof (__int32))))
24664	exit (1);
24665      fprintf (f, "%lu\n", i);
24666    }
24667  exit (ferror (f) || fclose (f) != 0);
24668
24669  ;
24670  return 0;
24671}
24672_ACEOF
24673rm -f conftest$ac_exeext
24674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24675  (eval $ac_link) 2>&5
24676  ac_status=$?
24677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24680  (eval $ac_try) 2>&5
24681  ac_status=$?
24682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683  (exit $ac_status); }; }; then
24684  ac_cv_sizeof___int32=`cat conftest.val`
24685else
24686  echo "$as_me: program exited with status $ac_status" >&5
24687echo "$as_me: failed program was:" >&5
24688sed 's/^/| /' conftest.$ac_ext >&5
24689
24690( exit $ac_status )
24691{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int32), 77
24692See \`config.log' for more details." >&5
24693echo "$as_me: error: cannot compute sizeof (__int32), 77
24694See \`config.log' for more details." >&2;}
24695   { (exit 1); exit 1; }; }
24696fi
24697rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24698fi
24699fi
24700rm -f conftest.val
24701else
24702  ac_cv_sizeof___int32=0
24703fi
24704fi
24705echo "$as_me:$LINENO: result: $ac_cv_sizeof___int32" >&5
24706echo "${ECHO_T}$ac_cv_sizeof___int32" >&6
24707cat >>confdefs.h <<_ACEOF
24708#define SIZEOF___INT32 $ac_cv_sizeof___int32
24709_ACEOF
24710
24711
24712echo "$as_me:$LINENO: checking for intmax_t" >&5
24713echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
24714if test "${ac_cv_type_intmax_t+set}" = set; then
24715  echo $ECHO_N "(cached) $ECHO_C" >&6
24716else
24717  cat >conftest.$ac_ext <<_ACEOF
24718/* confdefs.h.  */
24719_ACEOF
24720cat confdefs.h >>conftest.$ac_ext
24721cat >>conftest.$ac_ext <<_ACEOF
24722/* end confdefs.h.  */
24723$ac_includes_default
24724int
24725main ()
24726{
24727if ((intmax_t *) 0)
24728  return 0;
24729if (sizeof (intmax_t))
24730  return 0;
24731  ;
24732  return 0;
24733}
24734_ACEOF
24735rm -f conftest.$ac_objext
24736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24737  (eval $ac_compile) 2>conftest.er1
24738  ac_status=$?
24739  grep -v '^ *+' conftest.er1 >conftest.err
24740  rm -f conftest.er1
24741  cat conftest.err >&5
24742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743  (exit $ac_status); } &&
24744	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746  (eval $ac_try) 2>&5
24747  ac_status=$?
24748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749  (exit $ac_status); }; } &&
24750	 { ac_try='test -s conftest.$ac_objext'
24751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752  (eval $ac_try) 2>&5
24753  ac_status=$?
24754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755  (exit $ac_status); }; }; then
24756  ac_cv_type_intmax_t=yes
24757else
24758  echo "$as_me: failed program was:" >&5
24759sed 's/^/| /' conftest.$ac_ext >&5
24760
24761ac_cv_type_intmax_t=no
24762fi
24763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24764fi
24765echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
24766echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
24767
24768echo "$as_me:$LINENO: checking size of intmax_t" >&5
24769echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
24770if test "${ac_cv_sizeof_intmax_t+set}" = set; then
24771  echo $ECHO_N "(cached) $ECHO_C" >&6
24772else
24773  if test "$ac_cv_type_intmax_t" = yes; then
24774  # The cast to unsigned long works around a bug in the HP C Compiler
24775  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24776  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24777  # This bug is HP SR number 8606223364.
24778  if test "$cross_compiling" = yes; then
24779  # Depending upon the size, compute the lo and hi bounds.
24780cat >conftest.$ac_ext <<_ACEOF
24781/* confdefs.h.  */
24782_ACEOF
24783cat confdefs.h >>conftest.$ac_ext
24784cat >>conftest.$ac_ext <<_ACEOF
24785/* end confdefs.h.  */
24786$ac_includes_default
24787int
24788main ()
24789{
24790static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
24791test_array [0] = 0
24792
24793  ;
24794  return 0;
24795}
24796_ACEOF
24797rm -f conftest.$ac_objext
24798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24799  (eval $ac_compile) 2>conftest.er1
24800  ac_status=$?
24801  grep -v '^ *+' conftest.er1 >conftest.err
24802  rm -f conftest.er1
24803  cat conftest.err >&5
24804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805  (exit $ac_status); } &&
24806	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808  (eval $ac_try) 2>&5
24809  ac_status=$?
24810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811  (exit $ac_status); }; } &&
24812	 { ac_try='test -s conftest.$ac_objext'
24813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814  (eval $ac_try) 2>&5
24815  ac_status=$?
24816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817  (exit $ac_status); }; }; then
24818  ac_lo=0 ac_mid=0
24819  while :; do
24820    cat >conftest.$ac_ext <<_ACEOF
24821/* confdefs.h.  */
24822_ACEOF
24823cat confdefs.h >>conftest.$ac_ext
24824cat >>conftest.$ac_ext <<_ACEOF
24825/* end confdefs.h.  */
24826$ac_includes_default
24827int
24828main ()
24829{
24830static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
24831test_array [0] = 0
24832
24833  ;
24834  return 0;
24835}
24836_ACEOF
24837rm -f conftest.$ac_objext
24838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24839  (eval $ac_compile) 2>conftest.er1
24840  ac_status=$?
24841  grep -v '^ *+' conftest.er1 >conftest.err
24842  rm -f conftest.er1
24843  cat conftest.err >&5
24844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845  (exit $ac_status); } &&
24846	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848  (eval $ac_try) 2>&5
24849  ac_status=$?
24850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851  (exit $ac_status); }; } &&
24852	 { ac_try='test -s conftest.$ac_objext'
24853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24854  (eval $ac_try) 2>&5
24855  ac_status=$?
24856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857  (exit $ac_status); }; }; then
24858  ac_hi=$ac_mid; break
24859else
24860  echo "$as_me: failed program was:" >&5
24861sed 's/^/| /' conftest.$ac_ext >&5
24862
24863ac_lo=`expr $ac_mid + 1`
24864		    if test $ac_lo -le $ac_mid; then
24865		      ac_lo= ac_hi=
24866		      break
24867		    fi
24868		    ac_mid=`expr 2 '*' $ac_mid + 1`
24869fi
24870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24871  done
24872else
24873  echo "$as_me: failed program was:" >&5
24874sed 's/^/| /' conftest.$ac_ext >&5
24875
24876cat >conftest.$ac_ext <<_ACEOF
24877/* confdefs.h.  */
24878_ACEOF
24879cat confdefs.h >>conftest.$ac_ext
24880cat >>conftest.$ac_ext <<_ACEOF
24881/* end confdefs.h.  */
24882$ac_includes_default
24883int
24884main ()
24885{
24886static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
24887test_array [0] = 0
24888
24889  ;
24890  return 0;
24891}
24892_ACEOF
24893rm -f conftest.$ac_objext
24894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24895  (eval $ac_compile) 2>conftest.er1
24896  ac_status=$?
24897  grep -v '^ *+' conftest.er1 >conftest.err
24898  rm -f conftest.er1
24899  cat conftest.err >&5
24900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901  (exit $ac_status); } &&
24902	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904  (eval $ac_try) 2>&5
24905  ac_status=$?
24906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907  (exit $ac_status); }; } &&
24908	 { ac_try='test -s conftest.$ac_objext'
24909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910  (eval $ac_try) 2>&5
24911  ac_status=$?
24912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913  (exit $ac_status); }; }; then
24914  ac_hi=-1 ac_mid=-1
24915  while :; do
24916    cat >conftest.$ac_ext <<_ACEOF
24917/* confdefs.h.  */
24918_ACEOF
24919cat confdefs.h >>conftest.$ac_ext
24920cat >>conftest.$ac_ext <<_ACEOF
24921/* end confdefs.h.  */
24922$ac_includes_default
24923int
24924main ()
24925{
24926static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
24927test_array [0] = 0
24928
24929  ;
24930  return 0;
24931}
24932_ACEOF
24933rm -f conftest.$ac_objext
24934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24935  (eval $ac_compile) 2>conftest.er1
24936  ac_status=$?
24937  grep -v '^ *+' conftest.er1 >conftest.err
24938  rm -f conftest.er1
24939  cat conftest.err >&5
24940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941  (exit $ac_status); } &&
24942	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944  (eval $ac_try) 2>&5
24945  ac_status=$?
24946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947  (exit $ac_status); }; } &&
24948	 { ac_try='test -s conftest.$ac_objext'
24949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950  (eval $ac_try) 2>&5
24951  ac_status=$?
24952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953  (exit $ac_status); }; }; then
24954  ac_lo=$ac_mid; break
24955else
24956  echo "$as_me: failed program was:" >&5
24957sed 's/^/| /' conftest.$ac_ext >&5
24958
24959ac_hi=`expr '(' $ac_mid ')' - 1`
24960		       if test $ac_mid -le $ac_hi; then
24961			 ac_lo= ac_hi=
24962			 break
24963		       fi
24964		       ac_mid=`expr 2 '*' $ac_mid`
24965fi
24966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24967  done
24968else
24969  echo "$as_me: failed program was:" >&5
24970sed 's/^/| /' conftest.$ac_ext >&5
24971
24972ac_lo= ac_hi=
24973fi
24974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24975fi
24976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24977# Binary search between lo and hi bounds.
24978while test "x$ac_lo" != "x$ac_hi"; do
24979  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24980  cat >conftest.$ac_ext <<_ACEOF
24981/* confdefs.h.  */
24982_ACEOF
24983cat confdefs.h >>conftest.$ac_ext
24984cat >>conftest.$ac_ext <<_ACEOF
24985/* end confdefs.h.  */
24986$ac_includes_default
24987int
24988main ()
24989{
24990static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
24991test_array [0] = 0
24992
24993  ;
24994  return 0;
24995}
24996_ACEOF
24997rm -f conftest.$ac_objext
24998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24999  (eval $ac_compile) 2>conftest.er1
25000  ac_status=$?
25001  grep -v '^ *+' conftest.er1 >conftest.err
25002  rm -f conftest.er1
25003  cat conftest.err >&5
25004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005  (exit $ac_status); } &&
25006	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25008  (eval $ac_try) 2>&5
25009  ac_status=$?
25010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011  (exit $ac_status); }; } &&
25012	 { ac_try='test -s conftest.$ac_objext'
25013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014  (eval $ac_try) 2>&5
25015  ac_status=$?
25016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017  (exit $ac_status); }; }; then
25018  ac_hi=$ac_mid
25019else
25020  echo "$as_me: failed program was:" >&5
25021sed 's/^/| /' conftest.$ac_ext >&5
25022
25023ac_lo=`expr '(' $ac_mid ')' + 1`
25024fi
25025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25026done
25027case $ac_lo in
25028?*) ac_cv_sizeof_intmax_t=$ac_lo;;
25029'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
25030See \`config.log' for more details." >&5
25031echo "$as_me: error: cannot compute sizeof (intmax_t), 77
25032See \`config.log' for more details." >&2;}
25033   { (exit 1); exit 1; }; } ;;
25034esac
25035else
25036  if test "$cross_compiling" = yes; then
25037  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25038echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25039   { (exit 1); exit 1; }; }
25040else
25041  cat >conftest.$ac_ext <<_ACEOF
25042/* confdefs.h.  */
25043_ACEOF
25044cat confdefs.h >>conftest.$ac_ext
25045cat >>conftest.$ac_ext <<_ACEOF
25046/* end confdefs.h.  */
25047$ac_includes_default
25048long longval () { return (long) (sizeof (intmax_t)); }
25049unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
25050#include <stdio.h>
25051#include <stdlib.h>
25052int
25053main ()
25054{
25055
25056  FILE *f = fopen ("conftest.val", "w");
25057  if (! f)
25058    exit (1);
25059  if (((long) (sizeof (intmax_t))) < 0)
25060    {
25061      long i = longval ();
25062      if (i != ((long) (sizeof (intmax_t))))
25063	exit (1);
25064      fprintf (f, "%ld\n", i);
25065    }
25066  else
25067    {
25068      unsigned long i = ulongval ();
25069      if (i != ((long) (sizeof (intmax_t))))
25070	exit (1);
25071      fprintf (f, "%lu\n", i);
25072    }
25073  exit (ferror (f) || fclose (f) != 0);
25074
25075  ;
25076  return 0;
25077}
25078_ACEOF
25079rm -f conftest$ac_exeext
25080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25081  (eval $ac_link) 2>&5
25082  ac_status=$?
25083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086  (eval $ac_try) 2>&5
25087  ac_status=$?
25088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089  (exit $ac_status); }; }; then
25090  ac_cv_sizeof_intmax_t=`cat conftest.val`
25091else
25092  echo "$as_me: program exited with status $ac_status" >&5
25093echo "$as_me: failed program was:" >&5
25094sed 's/^/| /' conftest.$ac_ext >&5
25095
25096( exit $ac_status )
25097{ { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
25098See \`config.log' for more details." >&5
25099echo "$as_me: error: cannot compute sizeof (intmax_t), 77
25100See \`config.log' for more details." >&2;}
25101   { (exit 1); exit 1; }; }
25102fi
25103rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25104fi
25105fi
25106rm -f conftest.val
25107else
25108  ac_cv_sizeof_intmax_t=0
25109fi
25110fi
25111echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
25112echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
25113cat >>confdefs.h <<_ACEOF
25114#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
25115_ACEOF
25116
25117
25118echo "$as_me:$LINENO: checking for uintmax_t" >&5
25119echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
25120if test "${ac_cv_type_uintmax_t+set}" = set; then
25121  echo $ECHO_N "(cached) $ECHO_C" >&6
25122else
25123  cat >conftest.$ac_ext <<_ACEOF
25124/* confdefs.h.  */
25125_ACEOF
25126cat confdefs.h >>conftest.$ac_ext
25127cat >>conftest.$ac_ext <<_ACEOF
25128/* end confdefs.h.  */
25129$ac_includes_default
25130int
25131main ()
25132{
25133if ((uintmax_t *) 0)
25134  return 0;
25135if (sizeof (uintmax_t))
25136  return 0;
25137  ;
25138  return 0;
25139}
25140_ACEOF
25141rm -f conftest.$ac_objext
25142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25143  (eval $ac_compile) 2>conftest.er1
25144  ac_status=$?
25145  grep -v '^ *+' conftest.er1 >conftest.err
25146  rm -f conftest.er1
25147  cat conftest.err >&5
25148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149  (exit $ac_status); } &&
25150	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25152  (eval $ac_try) 2>&5
25153  ac_status=$?
25154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155  (exit $ac_status); }; } &&
25156	 { ac_try='test -s conftest.$ac_objext'
25157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25158  (eval $ac_try) 2>&5
25159  ac_status=$?
25160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161  (exit $ac_status); }; }; then
25162  ac_cv_type_uintmax_t=yes
25163else
25164  echo "$as_me: failed program was:" >&5
25165sed 's/^/| /' conftest.$ac_ext >&5
25166
25167ac_cv_type_uintmax_t=no
25168fi
25169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25170fi
25171echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
25172echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
25173
25174echo "$as_me:$LINENO: checking size of uintmax_t" >&5
25175echo $ECHO_N "checking size of uintmax_t... $ECHO_C" >&6
25176if test "${ac_cv_sizeof_uintmax_t+set}" = set; then
25177  echo $ECHO_N "(cached) $ECHO_C" >&6
25178else
25179  if test "$ac_cv_type_uintmax_t" = yes; then
25180  # The cast to unsigned long works around a bug in the HP C Compiler
25181  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25182  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25183  # This bug is HP SR number 8606223364.
25184  if test "$cross_compiling" = yes; then
25185  # Depending upon the size, compute the lo and hi bounds.
25186cat >conftest.$ac_ext <<_ACEOF
25187/* confdefs.h.  */
25188_ACEOF
25189cat confdefs.h >>conftest.$ac_ext
25190cat >>conftest.$ac_ext <<_ACEOF
25191/* end confdefs.h.  */
25192$ac_includes_default
25193int
25194main ()
25195{
25196static int test_array [1 - 2 * !(((long) (sizeof (uintmax_t))) >= 0)];
25197test_array [0] = 0
25198
25199  ;
25200  return 0;
25201}
25202_ACEOF
25203rm -f conftest.$ac_objext
25204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25205  (eval $ac_compile) 2>conftest.er1
25206  ac_status=$?
25207  grep -v '^ *+' conftest.er1 >conftest.err
25208  rm -f conftest.er1
25209  cat conftest.err >&5
25210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211  (exit $ac_status); } &&
25212	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25214  (eval $ac_try) 2>&5
25215  ac_status=$?
25216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217  (exit $ac_status); }; } &&
25218	 { ac_try='test -s conftest.$ac_objext'
25219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25220  (eval $ac_try) 2>&5
25221  ac_status=$?
25222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223  (exit $ac_status); }; }; then
25224  ac_lo=0 ac_mid=0
25225  while :; do
25226    cat >conftest.$ac_ext <<_ACEOF
25227/* confdefs.h.  */
25228_ACEOF
25229cat confdefs.h >>conftest.$ac_ext
25230cat >>conftest.$ac_ext <<_ACEOF
25231/* end confdefs.h.  */
25232$ac_includes_default
25233int
25234main ()
25235{
25236static int test_array [1 - 2 * !(((long) (sizeof (uintmax_t))) <= $ac_mid)];
25237test_array [0] = 0
25238
25239  ;
25240  return 0;
25241}
25242_ACEOF
25243rm -f conftest.$ac_objext
25244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25245  (eval $ac_compile) 2>conftest.er1
25246  ac_status=$?
25247  grep -v '^ *+' conftest.er1 >conftest.err
25248  rm -f conftest.er1
25249  cat conftest.err >&5
25250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251  (exit $ac_status); } &&
25252	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254  (eval $ac_try) 2>&5
25255  ac_status=$?
25256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257  (exit $ac_status); }; } &&
25258	 { ac_try='test -s conftest.$ac_objext'
25259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25260  (eval $ac_try) 2>&5
25261  ac_status=$?
25262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263  (exit $ac_status); }; }; then
25264  ac_hi=$ac_mid; break
25265else
25266  echo "$as_me: failed program was:" >&5
25267sed 's/^/| /' conftest.$ac_ext >&5
25268
25269ac_lo=`expr $ac_mid + 1`
25270		    if test $ac_lo -le $ac_mid; then
25271		      ac_lo= ac_hi=
25272		      break
25273		    fi
25274		    ac_mid=`expr 2 '*' $ac_mid + 1`
25275fi
25276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25277  done
25278else
25279  echo "$as_me: failed program was:" >&5
25280sed 's/^/| /' conftest.$ac_ext >&5
25281
25282cat >conftest.$ac_ext <<_ACEOF
25283/* confdefs.h.  */
25284_ACEOF
25285cat confdefs.h >>conftest.$ac_ext
25286cat >>conftest.$ac_ext <<_ACEOF
25287/* end confdefs.h.  */
25288$ac_includes_default
25289int
25290main ()
25291{
25292static int test_array [1 - 2 * !(((long) (sizeof (uintmax_t))) < 0)];
25293test_array [0] = 0
25294
25295  ;
25296  return 0;
25297}
25298_ACEOF
25299rm -f conftest.$ac_objext
25300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25301  (eval $ac_compile) 2>conftest.er1
25302  ac_status=$?
25303  grep -v '^ *+' conftest.er1 >conftest.err
25304  rm -f conftest.er1
25305  cat conftest.err >&5
25306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307  (exit $ac_status); } &&
25308	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25310  (eval $ac_try) 2>&5
25311  ac_status=$?
25312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313  (exit $ac_status); }; } &&
25314	 { ac_try='test -s conftest.$ac_objext'
25315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316  (eval $ac_try) 2>&5
25317  ac_status=$?
25318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319  (exit $ac_status); }; }; then
25320  ac_hi=-1 ac_mid=-1
25321  while :; do
25322    cat >conftest.$ac_ext <<_ACEOF
25323/* confdefs.h.  */
25324_ACEOF
25325cat confdefs.h >>conftest.$ac_ext
25326cat >>conftest.$ac_ext <<_ACEOF
25327/* end confdefs.h.  */
25328$ac_includes_default
25329int
25330main ()
25331{
25332static int test_array [1 - 2 * !(((long) (sizeof (uintmax_t))) >= $ac_mid)];
25333test_array [0] = 0
25334
25335  ;
25336  return 0;
25337}
25338_ACEOF
25339rm -f conftest.$ac_objext
25340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25341  (eval $ac_compile) 2>conftest.er1
25342  ac_status=$?
25343  grep -v '^ *+' conftest.er1 >conftest.err
25344  rm -f conftest.er1
25345  cat conftest.err >&5
25346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347  (exit $ac_status); } &&
25348	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350  (eval $ac_try) 2>&5
25351  ac_status=$?
25352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353  (exit $ac_status); }; } &&
25354	 { ac_try='test -s conftest.$ac_objext'
25355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356  (eval $ac_try) 2>&5
25357  ac_status=$?
25358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359  (exit $ac_status); }; }; then
25360  ac_lo=$ac_mid; break
25361else
25362  echo "$as_me: failed program was:" >&5
25363sed 's/^/| /' conftest.$ac_ext >&5
25364
25365ac_hi=`expr '(' $ac_mid ')' - 1`
25366		       if test $ac_mid -le $ac_hi; then
25367			 ac_lo= ac_hi=
25368			 break
25369		       fi
25370		       ac_mid=`expr 2 '*' $ac_mid`
25371fi
25372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25373  done
25374else
25375  echo "$as_me: failed program was:" >&5
25376sed 's/^/| /' conftest.$ac_ext >&5
25377
25378ac_lo= ac_hi=
25379fi
25380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25381fi
25382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25383# Binary search between lo and hi bounds.
25384while test "x$ac_lo" != "x$ac_hi"; do
25385  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25386  cat >conftest.$ac_ext <<_ACEOF
25387/* confdefs.h.  */
25388_ACEOF
25389cat confdefs.h >>conftest.$ac_ext
25390cat >>conftest.$ac_ext <<_ACEOF
25391/* end confdefs.h.  */
25392$ac_includes_default
25393int
25394main ()
25395{
25396static int test_array [1 - 2 * !(((long) (sizeof (uintmax_t))) <= $ac_mid)];
25397test_array [0] = 0
25398
25399  ;
25400  return 0;
25401}
25402_ACEOF
25403rm -f conftest.$ac_objext
25404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25405  (eval $ac_compile) 2>conftest.er1
25406  ac_status=$?
25407  grep -v '^ *+' conftest.er1 >conftest.err
25408  rm -f conftest.er1
25409  cat conftest.err >&5
25410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411  (exit $ac_status); } &&
25412	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414  (eval $ac_try) 2>&5
25415  ac_status=$?
25416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417  (exit $ac_status); }; } &&
25418	 { ac_try='test -s conftest.$ac_objext'
25419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420  (eval $ac_try) 2>&5
25421  ac_status=$?
25422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423  (exit $ac_status); }; }; then
25424  ac_hi=$ac_mid
25425else
25426  echo "$as_me: failed program was:" >&5
25427sed 's/^/| /' conftest.$ac_ext >&5
25428
25429ac_lo=`expr '(' $ac_mid ')' + 1`
25430fi
25431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25432done
25433case $ac_lo in
25434?*) ac_cv_sizeof_uintmax_t=$ac_lo;;
25435'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintmax_t), 77
25436See \`config.log' for more details." >&5
25437echo "$as_me: error: cannot compute sizeof (uintmax_t), 77
25438See \`config.log' for more details." >&2;}
25439   { (exit 1); exit 1; }; } ;;
25440esac
25441else
25442  if test "$cross_compiling" = yes; then
25443  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25444echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25445   { (exit 1); exit 1; }; }
25446else
25447  cat >conftest.$ac_ext <<_ACEOF
25448/* confdefs.h.  */
25449_ACEOF
25450cat confdefs.h >>conftest.$ac_ext
25451cat >>conftest.$ac_ext <<_ACEOF
25452/* end confdefs.h.  */
25453$ac_includes_default
25454long longval () { return (long) (sizeof (uintmax_t)); }
25455unsigned long ulongval () { return (long) (sizeof (uintmax_t)); }
25456#include <stdio.h>
25457#include <stdlib.h>
25458int
25459main ()
25460{
25461
25462  FILE *f = fopen ("conftest.val", "w");
25463  if (! f)
25464    exit (1);
25465  if (((long) (sizeof (uintmax_t))) < 0)
25466    {
25467      long i = longval ();
25468      if (i != ((long) (sizeof (uintmax_t))))
25469	exit (1);
25470      fprintf (f, "%ld\n", i);
25471    }
25472  else
25473    {
25474      unsigned long i = ulongval ();
25475      if (i != ((long) (sizeof (uintmax_t))))
25476	exit (1);
25477      fprintf (f, "%lu\n", i);
25478    }
25479  exit (ferror (f) || fclose (f) != 0);
25480
25481  ;
25482  return 0;
25483}
25484_ACEOF
25485rm -f conftest$ac_exeext
25486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25487  (eval $ac_link) 2>&5
25488  ac_status=$?
25489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492  (eval $ac_try) 2>&5
25493  ac_status=$?
25494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495  (exit $ac_status); }; }; then
25496  ac_cv_sizeof_uintmax_t=`cat conftest.val`
25497else
25498  echo "$as_me: program exited with status $ac_status" >&5
25499echo "$as_me: failed program was:" >&5
25500sed 's/^/| /' conftest.$ac_ext >&5
25501
25502( exit $ac_status )
25503{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uintmax_t), 77
25504See \`config.log' for more details." >&5
25505echo "$as_me: error: cannot compute sizeof (uintmax_t), 77
25506See \`config.log' for more details." >&2;}
25507   { (exit 1); exit 1; }; }
25508fi
25509rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25510fi
25511fi
25512rm -f conftest.val
25513else
25514  ac_cv_sizeof_uintmax_t=0
25515fi
25516fi
25517echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintmax_t" >&5
25518echo "${ECHO_T}$ac_cv_sizeof_uintmax_t" >&6
25519cat >>confdefs.h <<_ACEOF
25520#define SIZEOF_UINTMAX_T $ac_cv_sizeof_uintmax_t
25521_ACEOF
25522
25523
25524echo "$as_me:$LINENO: checking for intptr_t" >&5
25525echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
25526if test "${ac_cv_type_intptr_t+set}" = set; then
25527  echo $ECHO_N "(cached) $ECHO_C" >&6
25528else
25529  cat >conftest.$ac_ext <<_ACEOF
25530/* confdefs.h.  */
25531_ACEOF
25532cat confdefs.h >>conftest.$ac_ext
25533cat >>conftest.$ac_ext <<_ACEOF
25534/* end confdefs.h.  */
25535$ac_includes_default
25536int
25537main ()
25538{
25539if ((intptr_t *) 0)
25540  return 0;
25541if (sizeof (intptr_t))
25542  return 0;
25543  ;
25544  return 0;
25545}
25546_ACEOF
25547rm -f conftest.$ac_objext
25548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25549  (eval $ac_compile) 2>conftest.er1
25550  ac_status=$?
25551  grep -v '^ *+' conftest.er1 >conftest.err
25552  rm -f conftest.er1
25553  cat conftest.err >&5
25554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555  (exit $ac_status); } &&
25556	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25558  (eval $ac_try) 2>&5
25559  ac_status=$?
25560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561  (exit $ac_status); }; } &&
25562	 { ac_try='test -s conftest.$ac_objext'
25563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25564  (eval $ac_try) 2>&5
25565  ac_status=$?
25566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567  (exit $ac_status); }; }; then
25568  ac_cv_type_intptr_t=yes
25569else
25570  echo "$as_me: failed program was:" >&5
25571sed 's/^/| /' conftest.$ac_ext >&5
25572
25573ac_cv_type_intptr_t=no
25574fi
25575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25576fi
25577echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
25578echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
25579
25580echo "$as_me:$LINENO: checking size of intptr_t" >&5
25581echo $ECHO_N "checking size of intptr_t... $ECHO_C" >&6
25582if test "${ac_cv_sizeof_intptr_t+set}" = set; then
25583  echo $ECHO_N "(cached) $ECHO_C" >&6
25584else
25585  if test "$ac_cv_type_intptr_t" = yes; then
25586  # The cast to unsigned long works around a bug in the HP C Compiler
25587  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25588  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25589  # This bug is HP SR number 8606223364.
25590  if test "$cross_compiling" = yes; then
25591  # Depending upon the size, compute the lo and hi bounds.
25592cat >conftest.$ac_ext <<_ACEOF
25593/* confdefs.h.  */
25594_ACEOF
25595cat confdefs.h >>conftest.$ac_ext
25596cat >>conftest.$ac_ext <<_ACEOF
25597/* end confdefs.h.  */
25598$ac_includes_default
25599int
25600main ()
25601{
25602static int test_array [1 - 2 * !(((long) (sizeof (intptr_t))) >= 0)];
25603test_array [0] = 0
25604
25605  ;
25606  return 0;
25607}
25608_ACEOF
25609rm -f conftest.$ac_objext
25610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25611  (eval $ac_compile) 2>conftest.er1
25612  ac_status=$?
25613  grep -v '^ *+' conftest.er1 >conftest.err
25614  rm -f conftest.er1
25615  cat conftest.err >&5
25616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617  (exit $ac_status); } &&
25618	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620  (eval $ac_try) 2>&5
25621  ac_status=$?
25622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623  (exit $ac_status); }; } &&
25624	 { ac_try='test -s conftest.$ac_objext'
25625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626  (eval $ac_try) 2>&5
25627  ac_status=$?
25628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629  (exit $ac_status); }; }; then
25630  ac_lo=0 ac_mid=0
25631  while :; do
25632    cat >conftest.$ac_ext <<_ACEOF
25633/* confdefs.h.  */
25634_ACEOF
25635cat confdefs.h >>conftest.$ac_ext
25636cat >>conftest.$ac_ext <<_ACEOF
25637/* end confdefs.h.  */
25638$ac_includes_default
25639int
25640main ()
25641{
25642static int test_array [1 - 2 * !(((long) (sizeof (intptr_t))) <= $ac_mid)];
25643test_array [0] = 0
25644
25645  ;
25646  return 0;
25647}
25648_ACEOF
25649rm -f conftest.$ac_objext
25650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25651  (eval $ac_compile) 2>conftest.er1
25652  ac_status=$?
25653  grep -v '^ *+' conftest.er1 >conftest.err
25654  rm -f conftest.er1
25655  cat conftest.err >&5
25656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657  (exit $ac_status); } &&
25658	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660  (eval $ac_try) 2>&5
25661  ac_status=$?
25662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663  (exit $ac_status); }; } &&
25664	 { ac_try='test -s conftest.$ac_objext'
25665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666  (eval $ac_try) 2>&5
25667  ac_status=$?
25668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669  (exit $ac_status); }; }; then
25670  ac_hi=$ac_mid; break
25671else
25672  echo "$as_me: failed program was:" >&5
25673sed 's/^/| /' conftest.$ac_ext >&5
25674
25675ac_lo=`expr $ac_mid + 1`
25676		    if test $ac_lo -le $ac_mid; then
25677		      ac_lo= ac_hi=
25678		      break
25679		    fi
25680		    ac_mid=`expr 2 '*' $ac_mid + 1`
25681fi
25682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25683  done
25684else
25685  echo "$as_me: failed program was:" >&5
25686sed 's/^/| /' conftest.$ac_ext >&5
25687
25688cat >conftest.$ac_ext <<_ACEOF
25689/* confdefs.h.  */
25690_ACEOF
25691cat confdefs.h >>conftest.$ac_ext
25692cat >>conftest.$ac_ext <<_ACEOF
25693/* end confdefs.h.  */
25694$ac_includes_default
25695int
25696main ()
25697{
25698static int test_array [1 - 2 * !(((long) (sizeof (intptr_t))) < 0)];
25699test_array [0] = 0
25700
25701  ;
25702  return 0;
25703}
25704_ACEOF
25705rm -f conftest.$ac_objext
25706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25707  (eval $ac_compile) 2>conftest.er1
25708  ac_status=$?
25709  grep -v '^ *+' conftest.er1 >conftest.err
25710  rm -f conftest.er1
25711  cat conftest.err >&5
25712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713  (exit $ac_status); } &&
25714	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716  (eval $ac_try) 2>&5
25717  ac_status=$?
25718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719  (exit $ac_status); }; } &&
25720	 { ac_try='test -s conftest.$ac_objext'
25721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722  (eval $ac_try) 2>&5
25723  ac_status=$?
25724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725  (exit $ac_status); }; }; then
25726  ac_hi=-1 ac_mid=-1
25727  while :; do
25728    cat >conftest.$ac_ext <<_ACEOF
25729/* confdefs.h.  */
25730_ACEOF
25731cat confdefs.h >>conftest.$ac_ext
25732cat >>conftest.$ac_ext <<_ACEOF
25733/* end confdefs.h.  */
25734$ac_includes_default
25735int
25736main ()
25737{
25738static int test_array [1 - 2 * !(((long) (sizeof (intptr_t))) >= $ac_mid)];
25739test_array [0] = 0
25740
25741  ;
25742  return 0;
25743}
25744_ACEOF
25745rm -f conftest.$ac_objext
25746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25747  (eval $ac_compile) 2>conftest.er1
25748  ac_status=$?
25749  grep -v '^ *+' conftest.er1 >conftest.err
25750  rm -f conftest.er1
25751  cat conftest.err >&5
25752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753  (exit $ac_status); } &&
25754	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756  (eval $ac_try) 2>&5
25757  ac_status=$?
25758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759  (exit $ac_status); }; } &&
25760	 { ac_try='test -s conftest.$ac_objext'
25761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762  (eval $ac_try) 2>&5
25763  ac_status=$?
25764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765  (exit $ac_status); }; }; then
25766  ac_lo=$ac_mid; break
25767else
25768  echo "$as_me: failed program was:" >&5
25769sed 's/^/| /' conftest.$ac_ext >&5
25770
25771ac_hi=`expr '(' $ac_mid ')' - 1`
25772		       if test $ac_mid -le $ac_hi; then
25773			 ac_lo= ac_hi=
25774			 break
25775		       fi
25776		       ac_mid=`expr 2 '*' $ac_mid`
25777fi
25778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25779  done
25780else
25781  echo "$as_me: failed program was:" >&5
25782sed 's/^/| /' conftest.$ac_ext >&5
25783
25784ac_lo= ac_hi=
25785fi
25786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25787fi
25788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25789# Binary search between lo and hi bounds.
25790while test "x$ac_lo" != "x$ac_hi"; do
25791  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25792  cat >conftest.$ac_ext <<_ACEOF
25793/* confdefs.h.  */
25794_ACEOF
25795cat confdefs.h >>conftest.$ac_ext
25796cat >>conftest.$ac_ext <<_ACEOF
25797/* end confdefs.h.  */
25798$ac_includes_default
25799int
25800main ()
25801{
25802static int test_array [1 - 2 * !(((long) (sizeof (intptr_t))) <= $ac_mid)];
25803test_array [0] = 0
25804
25805  ;
25806  return 0;
25807}
25808_ACEOF
25809rm -f conftest.$ac_objext
25810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25811  (eval $ac_compile) 2>conftest.er1
25812  ac_status=$?
25813  grep -v '^ *+' conftest.er1 >conftest.err
25814  rm -f conftest.er1
25815  cat conftest.err >&5
25816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817  (exit $ac_status); } &&
25818	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820  (eval $ac_try) 2>&5
25821  ac_status=$?
25822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823  (exit $ac_status); }; } &&
25824	 { ac_try='test -s conftest.$ac_objext'
25825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826  (eval $ac_try) 2>&5
25827  ac_status=$?
25828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829  (exit $ac_status); }; }; then
25830  ac_hi=$ac_mid
25831else
25832  echo "$as_me: failed program was:" >&5
25833sed 's/^/| /' conftest.$ac_ext >&5
25834
25835ac_lo=`expr '(' $ac_mid ')' + 1`
25836fi
25837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25838done
25839case $ac_lo in
25840?*) ac_cv_sizeof_intptr_t=$ac_lo;;
25841'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t), 77
25842See \`config.log' for more details." >&5
25843echo "$as_me: error: cannot compute sizeof (intptr_t), 77
25844See \`config.log' for more details." >&2;}
25845   { (exit 1); exit 1; }; } ;;
25846esac
25847else
25848  if test "$cross_compiling" = yes; then
25849  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25850echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25851   { (exit 1); exit 1; }; }
25852else
25853  cat >conftest.$ac_ext <<_ACEOF
25854/* confdefs.h.  */
25855_ACEOF
25856cat confdefs.h >>conftest.$ac_ext
25857cat >>conftest.$ac_ext <<_ACEOF
25858/* end confdefs.h.  */
25859$ac_includes_default
25860long longval () { return (long) (sizeof (intptr_t)); }
25861unsigned long ulongval () { return (long) (sizeof (intptr_t)); }
25862#include <stdio.h>
25863#include <stdlib.h>
25864int
25865main ()
25866{
25867
25868  FILE *f = fopen ("conftest.val", "w");
25869  if (! f)
25870    exit (1);
25871  if (((long) (sizeof (intptr_t))) < 0)
25872    {
25873      long i = longval ();
25874      if (i != ((long) (sizeof (intptr_t))))
25875	exit (1);
25876      fprintf (f, "%ld\n", i);
25877    }
25878  else
25879    {
25880      unsigned long i = ulongval ();
25881      if (i != ((long) (sizeof (intptr_t))))
25882	exit (1);
25883      fprintf (f, "%lu\n", i);
25884    }
25885  exit (ferror (f) || fclose (f) != 0);
25886
25887  ;
25888  return 0;
25889}
25890_ACEOF
25891rm -f conftest$ac_exeext
25892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25893  (eval $ac_link) 2>&5
25894  ac_status=$?
25895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898  (eval $ac_try) 2>&5
25899  ac_status=$?
25900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901  (exit $ac_status); }; }; then
25902  ac_cv_sizeof_intptr_t=`cat conftest.val`
25903else
25904  echo "$as_me: program exited with status $ac_status" >&5
25905echo "$as_me: failed program was:" >&5
25906sed 's/^/| /' conftest.$ac_ext >&5
25907
25908( exit $ac_status )
25909{ { echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t), 77
25910See \`config.log' for more details." >&5
25911echo "$as_me: error: cannot compute sizeof (intptr_t), 77
25912See \`config.log' for more details." >&2;}
25913   { (exit 1); exit 1; }; }
25914fi
25915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25916fi
25917fi
25918rm -f conftest.val
25919else
25920  ac_cv_sizeof_intptr_t=0
25921fi
25922fi
25923echo "$as_me:$LINENO: result: $ac_cv_sizeof_intptr_t" >&5
25924echo "${ECHO_T}$ac_cv_sizeof_intptr_t" >&6
25925cat >>confdefs.h <<_ACEOF
25926#define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t
25927_ACEOF
25928
25929
25930echo "$as_me:$LINENO: checking for uintptr_t" >&5
25931echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
25932if test "${ac_cv_type_uintptr_t+set}" = set; then
25933  echo $ECHO_N "(cached) $ECHO_C" >&6
25934else
25935  cat >conftest.$ac_ext <<_ACEOF
25936/* confdefs.h.  */
25937_ACEOF
25938cat confdefs.h >>conftest.$ac_ext
25939cat >>conftest.$ac_ext <<_ACEOF
25940/* end confdefs.h.  */
25941$ac_includes_default
25942int
25943main ()
25944{
25945if ((uintptr_t *) 0)
25946  return 0;
25947if (sizeof (uintptr_t))
25948  return 0;
25949  ;
25950  return 0;
25951}
25952_ACEOF
25953rm -f conftest.$ac_objext
25954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25955  (eval $ac_compile) 2>conftest.er1
25956  ac_status=$?
25957  grep -v '^ *+' conftest.er1 >conftest.err
25958  rm -f conftest.er1
25959  cat conftest.err >&5
25960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961  (exit $ac_status); } &&
25962	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964  (eval $ac_try) 2>&5
25965  ac_status=$?
25966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967  (exit $ac_status); }; } &&
25968	 { ac_try='test -s conftest.$ac_objext'
25969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970  (eval $ac_try) 2>&5
25971  ac_status=$?
25972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973  (exit $ac_status); }; }; then
25974  ac_cv_type_uintptr_t=yes
25975else
25976  echo "$as_me: failed program was:" >&5
25977sed 's/^/| /' conftest.$ac_ext >&5
25978
25979ac_cv_type_uintptr_t=no
25980fi
25981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25982fi
25983echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
25984echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
25985
25986echo "$as_me:$LINENO: checking size of uintptr_t" >&5
25987echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
25988if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
25989  echo $ECHO_N "(cached) $ECHO_C" >&6
25990else
25991  if test "$ac_cv_type_uintptr_t" = yes; then
25992  # The cast to unsigned long works around a bug in the HP C Compiler
25993  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25994  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25995  # This bug is HP SR number 8606223364.
25996  if test "$cross_compiling" = yes; then
25997  # Depending upon the size, compute the lo and hi bounds.
25998cat >conftest.$ac_ext <<_ACEOF
25999/* confdefs.h.  */
26000_ACEOF
26001cat confdefs.h >>conftest.$ac_ext
26002cat >>conftest.$ac_ext <<_ACEOF
26003/* end confdefs.h.  */
26004$ac_includes_default
26005int
26006main ()
26007{
26008static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
26009test_array [0] = 0
26010
26011  ;
26012  return 0;
26013}
26014_ACEOF
26015rm -f conftest.$ac_objext
26016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26017  (eval $ac_compile) 2>conftest.er1
26018  ac_status=$?
26019  grep -v '^ *+' conftest.er1 >conftest.err
26020  rm -f conftest.er1
26021  cat conftest.err >&5
26022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023  (exit $ac_status); } &&
26024	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026  (eval $ac_try) 2>&5
26027  ac_status=$?
26028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029  (exit $ac_status); }; } &&
26030	 { ac_try='test -s conftest.$ac_objext'
26031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26032  (eval $ac_try) 2>&5
26033  ac_status=$?
26034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035  (exit $ac_status); }; }; then
26036  ac_lo=0 ac_mid=0
26037  while :; do
26038    cat >conftest.$ac_ext <<_ACEOF
26039/* confdefs.h.  */
26040_ACEOF
26041cat confdefs.h >>conftest.$ac_ext
26042cat >>conftest.$ac_ext <<_ACEOF
26043/* end confdefs.h.  */
26044$ac_includes_default
26045int
26046main ()
26047{
26048static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
26049test_array [0] = 0
26050
26051  ;
26052  return 0;
26053}
26054_ACEOF
26055rm -f conftest.$ac_objext
26056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26057  (eval $ac_compile) 2>conftest.er1
26058  ac_status=$?
26059  grep -v '^ *+' conftest.er1 >conftest.err
26060  rm -f conftest.er1
26061  cat conftest.err >&5
26062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063  (exit $ac_status); } &&
26064	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26066  (eval $ac_try) 2>&5
26067  ac_status=$?
26068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069  (exit $ac_status); }; } &&
26070	 { ac_try='test -s conftest.$ac_objext'
26071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26072  (eval $ac_try) 2>&5
26073  ac_status=$?
26074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075  (exit $ac_status); }; }; then
26076  ac_hi=$ac_mid; break
26077else
26078  echo "$as_me: failed program was:" >&5
26079sed 's/^/| /' conftest.$ac_ext >&5
26080
26081ac_lo=`expr $ac_mid + 1`
26082		    if test $ac_lo -le $ac_mid; then
26083		      ac_lo= ac_hi=
26084		      break
26085		    fi
26086		    ac_mid=`expr 2 '*' $ac_mid + 1`
26087fi
26088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26089  done
26090else
26091  echo "$as_me: failed program was:" >&5
26092sed 's/^/| /' conftest.$ac_ext >&5
26093
26094cat >conftest.$ac_ext <<_ACEOF
26095/* confdefs.h.  */
26096_ACEOF
26097cat confdefs.h >>conftest.$ac_ext
26098cat >>conftest.$ac_ext <<_ACEOF
26099/* end confdefs.h.  */
26100$ac_includes_default
26101int
26102main ()
26103{
26104static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
26105test_array [0] = 0
26106
26107  ;
26108  return 0;
26109}
26110_ACEOF
26111rm -f conftest.$ac_objext
26112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26113  (eval $ac_compile) 2>conftest.er1
26114  ac_status=$?
26115  grep -v '^ *+' conftest.er1 >conftest.err
26116  rm -f conftest.er1
26117  cat conftest.err >&5
26118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119  (exit $ac_status); } &&
26120	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122  (eval $ac_try) 2>&5
26123  ac_status=$?
26124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125  (exit $ac_status); }; } &&
26126	 { ac_try='test -s conftest.$ac_objext'
26127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128  (eval $ac_try) 2>&5
26129  ac_status=$?
26130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131  (exit $ac_status); }; }; then
26132  ac_hi=-1 ac_mid=-1
26133  while :; do
26134    cat >conftest.$ac_ext <<_ACEOF
26135/* confdefs.h.  */
26136_ACEOF
26137cat confdefs.h >>conftest.$ac_ext
26138cat >>conftest.$ac_ext <<_ACEOF
26139/* end confdefs.h.  */
26140$ac_includes_default
26141int
26142main ()
26143{
26144static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
26145test_array [0] = 0
26146
26147  ;
26148  return 0;
26149}
26150_ACEOF
26151rm -f conftest.$ac_objext
26152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26153  (eval $ac_compile) 2>conftest.er1
26154  ac_status=$?
26155  grep -v '^ *+' conftest.er1 >conftest.err
26156  rm -f conftest.er1
26157  cat conftest.err >&5
26158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159  (exit $ac_status); } &&
26160	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162  (eval $ac_try) 2>&5
26163  ac_status=$?
26164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165  (exit $ac_status); }; } &&
26166	 { ac_try='test -s conftest.$ac_objext'
26167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168  (eval $ac_try) 2>&5
26169  ac_status=$?
26170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171  (exit $ac_status); }; }; then
26172  ac_lo=$ac_mid; break
26173else
26174  echo "$as_me: failed program was:" >&5
26175sed 's/^/| /' conftest.$ac_ext >&5
26176
26177ac_hi=`expr '(' $ac_mid ')' - 1`
26178		       if test $ac_mid -le $ac_hi; then
26179			 ac_lo= ac_hi=
26180			 break
26181		       fi
26182		       ac_mid=`expr 2 '*' $ac_mid`
26183fi
26184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26185  done
26186else
26187  echo "$as_me: failed program was:" >&5
26188sed 's/^/| /' conftest.$ac_ext >&5
26189
26190ac_lo= ac_hi=
26191fi
26192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26193fi
26194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26195# Binary search between lo and hi bounds.
26196while test "x$ac_lo" != "x$ac_hi"; do
26197  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26198  cat >conftest.$ac_ext <<_ACEOF
26199/* confdefs.h.  */
26200_ACEOF
26201cat confdefs.h >>conftest.$ac_ext
26202cat >>conftest.$ac_ext <<_ACEOF
26203/* end confdefs.h.  */
26204$ac_includes_default
26205int
26206main ()
26207{
26208static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
26209test_array [0] = 0
26210
26211  ;
26212  return 0;
26213}
26214_ACEOF
26215rm -f conftest.$ac_objext
26216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26217  (eval $ac_compile) 2>conftest.er1
26218  ac_status=$?
26219  grep -v '^ *+' conftest.er1 >conftest.err
26220  rm -f conftest.er1
26221  cat conftest.err >&5
26222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223  (exit $ac_status); } &&
26224	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226  (eval $ac_try) 2>&5
26227  ac_status=$?
26228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229  (exit $ac_status); }; } &&
26230	 { ac_try='test -s conftest.$ac_objext'
26231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232  (eval $ac_try) 2>&5
26233  ac_status=$?
26234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235  (exit $ac_status); }; }; then
26236  ac_hi=$ac_mid
26237else
26238  echo "$as_me: failed program was:" >&5
26239sed 's/^/| /' conftest.$ac_ext >&5
26240
26241ac_lo=`expr '(' $ac_mid ')' + 1`
26242fi
26243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26244done
26245case $ac_lo in
26246?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
26247'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
26248See \`config.log' for more details." >&5
26249echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
26250See \`config.log' for more details." >&2;}
26251   { (exit 1); exit 1; }; } ;;
26252esac
26253else
26254  if test "$cross_compiling" = yes; then
26255  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26256echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26257   { (exit 1); exit 1; }; }
26258else
26259  cat >conftest.$ac_ext <<_ACEOF
26260/* confdefs.h.  */
26261_ACEOF
26262cat confdefs.h >>conftest.$ac_ext
26263cat >>conftest.$ac_ext <<_ACEOF
26264/* end confdefs.h.  */
26265$ac_includes_default
26266long longval () { return (long) (sizeof (uintptr_t)); }
26267unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
26268#include <stdio.h>
26269#include <stdlib.h>
26270int
26271main ()
26272{
26273
26274  FILE *f = fopen ("conftest.val", "w");
26275  if (! f)
26276    exit (1);
26277  if (((long) (sizeof (uintptr_t))) < 0)
26278    {
26279      long i = longval ();
26280      if (i != ((long) (sizeof (uintptr_t))))
26281	exit (1);
26282      fprintf (f, "%ld\n", i);
26283    }
26284  else
26285    {
26286      unsigned long i = ulongval ();
26287      if (i != ((long) (sizeof (uintptr_t))))
26288	exit (1);
26289      fprintf (f, "%lu\n", i);
26290    }
26291  exit (ferror (f) || fclose (f) != 0);
26292
26293  ;
26294  return 0;
26295}
26296_ACEOF
26297rm -f conftest$ac_exeext
26298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26299  (eval $ac_link) 2>&5
26300  ac_status=$?
26301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304  (eval $ac_try) 2>&5
26305  ac_status=$?
26306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307  (exit $ac_status); }; }; then
26308  ac_cv_sizeof_uintptr_t=`cat conftest.val`
26309else
26310  echo "$as_me: program exited with status $ac_status" >&5
26311echo "$as_me: failed program was:" >&5
26312sed 's/^/| /' conftest.$ac_ext >&5
26313
26314( exit $ac_status )
26315{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
26316See \`config.log' for more details." >&5
26317echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
26318See \`config.log' for more details." >&2;}
26319   { (exit 1); exit 1; }; }
26320fi
26321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26322fi
26323fi
26324rm -f conftest.val
26325else
26326  ac_cv_sizeof_uintptr_t=0
26327fi
26328fi
26329echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
26330echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
26331cat >>confdefs.h <<_ACEOF
26332#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
26333_ACEOF
26334
26335
26336
26337echo "$as_me:$LINENO: checking for float" >&5
26338echo $ECHO_N "checking for float... $ECHO_C" >&6
26339if test "${ac_cv_type_float+set}" = set; then
26340  echo $ECHO_N "(cached) $ECHO_C" >&6
26341else
26342  cat >conftest.$ac_ext <<_ACEOF
26343/* confdefs.h.  */
26344_ACEOF
26345cat confdefs.h >>conftest.$ac_ext
26346cat >>conftest.$ac_ext <<_ACEOF
26347/* end confdefs.h.  */
26348$ac_includes_default
26349int
26350main ()
26351{
26352if ((float *) 0)
26353  return 0;
26354if (sizeof (float))
26355  return 0;
26356  ;
26357  return 0;
26358}
26359_ACEOF
26360rm -f conftest.$ac_objext
26361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26362  (eval $ac_compile) 2>conftest.er1
26363  ac_status=$?
26364  grep -v '^ *+' conftest.er1 >conftest.err
26365  rm -f conftest.er1
26366  cat conftest.err >&5
26367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368  (exit $ac_status); } &&
26369	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26371  (eval $ac_try) 2>&5
26372  ac_status=$?
26373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374  (exit $ac_status); }; } &&
26375	 { ac_try='test -s conftest.$ac_objext'
26376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26377  (eval $ac_try) 2>&5
26378  ac_status=$?
26379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380  (exit $ac_status); }; }; then
26381  ac_cv_type_float=yes
26382else
26383  echo "$as_me: failed program was:" >&5
26384sed 's/^/| /' conftest.$ac_ext >&5
26385
26386ac_cv_type_float=no
26387fi
26388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26389fi
26390echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
26391echo "${ECHO_T}$ac_cv_type_float" >&6
26392
26393echo "$as_me:$LINENO: checking size of float" >&5
26394echo $ECHO_N "checking size of float... $ECHO_C" >&6
26395if test "${ac_cv_sizeof_float+set}" = set; then
26396  echo $ECHO_N "(cached) $ECHO_C" >&6
26397else
26398  if test "$ac_cv_type_float" = yes; then
26399  # The cast to unsigned long works around a bug in the HP C Compiler
26400  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26401  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26402  # This bug is HP SR number 8606223364.
26403  if test "$cross_compiling" = yes; then
26404  # Depending upon the size, compute the lo and hi bounds.
26405cat >conftest.$ac_ext <<_ACEOF
26406/* confdefs.h.  */
26407_ACEOF
26408cat confdefs.h >>conftest.$ac_ext
26409cat >>conftest.$ac_ext <<_ACEOF
26410/* end confdefs.h.  */
26411$ac_includes_default
26412int
26413main ()
26414{
26415static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
26416test_array [0] = 0
26417
26418  ;
26419  return 0;
26420}
26421_ACEOF
26422rm -f conftest.$ac_objext
26423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26424  (eval $ac_compile) 2>conftest.er1
26425  ac_status=$?
26426  grep -v '^ *+' conftest.er1 >conftest.err
26427  rm -f conftest.er1
26428  cat conftest.err >&5
26429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430  (exit $ac_status); } &&
26431	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433  (eval $ac_try) 2>&5
26434  ac_status=$?
26435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436  (exit $ac_status); }; } &&
26437	 { ac_try='test -s conftest.$ac_objext'
26438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26439  (eval $ac_try) 2>&5
26440  ac_status=$?
26441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442  (exit $ac_status); }; }; then
26443  ac_lo=0 ac_mid=0
26444  while :; do
26445    cat >conftest.$ac_ext <<_ACEOF
26446/* confdefs.h.  */
26447_ACEOF
26448cat confdefs.h >>conftest.$ac_ext
26449cat >>conftest.$ac_ext <<_ACEOF
26450/* end confdefs.h.  */
26451$ac_includes_default
26452int
26453main ()
26454{
26455static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
26456test_array [0] = 0
26457
26458  ;
26459  return 0;
26460}
26461_ACEOF
26462rm -f conftest.$ac_objext
26463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26464  (eval $ac_compile) 2>conftest.er1
26465  ac_status=$?
26466  grep -v '^ *+' conftest.er1 >conftest.err
26467  rm -f conftest.er1
26468  cat conftest.err >&5
26469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470  (exit $ac_status); } &&
26471	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26473  (eval $ac_try) 2>&5
26474  ac_status=$?
26475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476  (exit $ac_status); }; } &&
26477	 { ac_try='test -s conftest.$ac_objext'
26478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26479  (eval $ac_try) 2>&5
26480  ac_status=$?
26481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482  (exit $ac_status); }; }; then
26483  ac_hi=$ac_mid; break
26484else
26485  echo "$as_me: failed program was:" >&5
26486sed 's/^/| /' conftest.$ac_ext >&5
26487
26488ac_lo=`expr $ac_mid + 1`
26489		    if test $ac_lo -le $ac_mid; then
26490		      ac_lo= ac_hi=
26491		      break
26492		    fi
26493		    ac_mid=`expr 2 '*' $ac_mid + 1`
26494fi
26495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26496  done
26497else
26498  echo "$as_me: failed program was:" >&5
26499sed 's/^/| /' conftest.$ac_ext >&5
26500
26501cat >conftest.$ac_ext <<_ACEOF
26502/* confdefs.h.  */
26503_ACEOF
26504cat confdefs.h >>conftest.$ac_ext
26505cat >>conftest.$ac_ext <<_ACEOF
26506/* end confdefs.h.  */
26507$ac_includes_default
26508int
26509main ()
26510{
26511static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
26512test_array [0] = 0
26513
26514  ;
26515  return 0;
26516}
26517_ACEOF
26518rm -f conftest.$ac_objext
26519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26520  (eval $ac_compile) 2>conftest.er1
26521  ac_status=$?
26522  grep -v '^ *+' conftest.er1 >conftest.err
26523  rm -f conftest.er1
26524  cat conftest.err >&5
26525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526  (exit $ac_status); } &&
26527	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529  (eval $ac_try) 2>&5
26530  ac_status=$?
26531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532  (exit $ac_status); }; } &&
26533	 { ac_try='test -s conftest.$ac_objext'
26534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535  (eval $ac_try) 2>&5
26536  ac_status=$?
26537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538  (exit $ac_status); }; }; then
26539  ac_hi=-1 ac_mid=-1
26540  while :; do
26541    cat >conftest.$ac_ext <<_ACEOF
26542/* confdefs.h.  */
26543_ACEOF
26544cat confdefs.h >>conftest.$ac_ext
26545cat >>conftest.$ac_ext <<_ACEOF
26546/* end confdefs.h.  */
26547$ac_includes_default
26548int
26549main ()
26550{
26551static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
26552test_array [0] = 0
26553
26554  ;
26555  return 0;
26556}
26557_ACEOF
26558rm -f conftest.$ac_objext
26559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26560  (eval $ac_compile) 2>conftest.er1
26561  ac_status=$?
26562  grep -v '^ *+' conftest.er1 >conftest.err
26563  rm -f conftest.er1
26564  cat conftest.err >&5
26565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566  (exit $ac_status); } &&
26567	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569  (eval $ac_try) 2>&5
26570  ac_status=$?
26571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572  (exit $ac_status); }; } &&
26573	 { ac_try='test -s conftest.$ac_objext'
26574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26575  (eval $ac_try) 2>&5
26576  ac_status=$?
26577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578  (exit $ac_status); }; }; then
26579  ac_lo=$ac_mid; break
26580else
26581  echo "$as_me: failed program was:" >&5
26582sed 's/^/| /' conftest.$ac_ext >&5
26583
26584ac_hi=`expr '(' $ac_mid ')' - 1`
26585		       if test $ac_mid -le $ac_hi; then
26586			 ac_lo= ac_hi=
26587			 break
26588		       fi
26589		       ac_mid=`expr 2 '*' $ac_mid`
26590fi
26591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26592  done
26593else
26594  echo "$as_me: failed program was:" >&5
26595sed 's/^/| /' conftest.$ac_ext >&5
26596
26597ac_lo= ac_hi=
26598fi
26599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26600fi
26601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26602# Binary search between lo and hi bounds.
26603while test "x$ac_lo" != "x$ac_hi"; do
26604  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26605  cat >conftest.$ac_ext <<_ACEOF
26606/* confdefs.h.  */
26607_ACEOF
26608cat confdefs.h >>conftest.$ac_ext
26609cat >>conftest.$ac_ext <<_ACEOF
26610/* end confdefs.h.  */
26611$ac_includes_default
26612int
26613main ()
26614{
26615static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
26616test_array [0] = 0
26617
26618  ;
26619  return 0;
26620}
26621_ACEOF
26622rm -f conftest.$ac_objext
26623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26624  (eval $ac_compile) 2>conftest.er1
26625  ac_status=$?
26626  grep -v '^ *+' conftest.er1 >conftest.err
26627  rm -f conftest.er1
26628  cat conftest.err >&5
26629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630  (exit $ac_status); } &&
26631	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633  (eval $ac_try) 2>&5
26634  ac_status=$?
26635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636  (exit $ac_status); }; } &&
26637	 { ac_try='test -s conftest.$ac_objext'
26638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26639  (eval $ac_try) 2>&5
26640  ac_status=$?
26641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642  (exit $ac_status); }; }; then
26643  ac_hi=$ac_mid
26644else
26645  echo "$as_me: failed program was:" >&5
26646sed 's/^/| /' conftest.$ac_ext >&5
26647
26648ac_lo=`expr '(' $ac_mid ')' + 1`
26649fi
26650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26651done
26652case $ac_lo in
26653?*) ac_cv_sizeof_float=$ac_lo;;
26654'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
26655See \`config.log' for more details." >&5
26656echo "$as_me: error: cannot compute sizeof (float), 77
26657See \`config.log' for more details." >&2;}
26658   { (exit 1); exit 1; }; } ;;
26659esac
26660else
26661  if test "$cross_compiling" = yes; then
26662  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26663echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26664   { (exit 1); exit 1; }; }
26665else
26666  cat >conftest.$ac_ext <<_ACEOF
26667/* confdefs.h.  */
26668_ACEOF
26669cat confdefs.h >>conftest.$ac_ext
26670cat >>conftest.$ac_ext <<_ACEOF
26671/* end confdefs.h.  */
26672$ac_includes_default
26673long longval () { return (long) (sizeof (float)); }
26674unsigned long ulongval () { return (long) (sizeof (float)); }
26675#include <stdio.h>
26676#include <stdlib.h>
26677int
26678main ()
26679{
26680
26681  FILE *f = fopen ("conftest.val", "w");
26682  if (! f)
26683    exit (1);
26684  if (((long) (sizeof (float))) < 0)
26685    {
26686      long i = longval ();
26687      if (i != ((long) (sizeof (float))))
26688	exit (1);
26689      fprintf (f, "%ld\n", i);
26690    }
26691  else
26692    {
26693      unsigned long i = ulongval ();
26694      if (i != ((long) (sizeof (float))))
26695	exit (1);
26696      fprintf (f, "%lu\n", i);
26697    }
26698  exit (ferror (f) || fclose (f) != 0);
26699
26700  ;
26701  return 0;
26702}
26703_ACEOF
26704rm -f conftest$ac_exeext
26705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26706  (eval $ac_link) 2>&5
26707  ac_status=$?
26708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26711  (eval $ac_try) 2>&5
26712  ac_status=$?
26713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714  (exit $ac_status); }; }; then
26715  ac_cv_sizeof_float=`cat conftest.val`
26716else
26717  echo "$as_me: program exited with status $ac_status" >&5
26718echo "$as_me: failed program was:" >&5
26719sed 's/^/| /' conftest.$ac_ext >&5
26720
26721( exit $ac_status )
26722{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
26723See \`config.log' for more details." >&5
26724echo "$as_me: error: cannot compute sizeof (float), 77
26725See \`config.log' for more details." >&2;}
26726   { (exit 1); exit 1; }; }
26727fi
26728rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26729fi
26730fi
26731rm -f conftest.val
26732else
26733  ac_cv_sizeof_float=0
26734fi
26735fi
26736echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
26737echo "${ECHO_T}$ac_cv_sizeof_float" >&6
26738cat >>confdefs.h <<_ACEOF
26739#define SIZEOF_FLOAT $ac_cv_sizeof_float
26740_ACEOF
26741
26742
26743echo "$as_me:$LINENO: checking for double" >&5
26744echo $ECHO_N "checking for double... $ECHO_C" >&6
26745if test "${ac_cv_type_double+set}" = set; then
26746  echo $ECHO_N "(cached) $ECHO_C" >&6
26747else
26748  cat >conftest.$ac_ext <<_ACEOF
26749/* confdefs.h.  */
26750_ACEOF
26751cat confdefs.h >>conftest.$ac_ext
26752cat >>conftest.$ac_ext <<_ACEOF
26753/* end confdefs.h.  */
26754$ac_includes_default
26755int
26756main ()
26757{
26758if ((double *) 0)
26759  return 0;
26760if (sizeof (double))
26761  return 0;
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"			 || test ! -s conftest.err'
26776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777  (eval $ac_try) 2>&5
26778  ac_status=$?
26779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780  (exit $ac_status); }; } &&
26781	 { ac_try='test -s conftest.$ac_objext'
26782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26783  (eval $ac_try) 2>&5
26784  ac_status=$?
26785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786  (exit $ac_status); }; }; then
26787  ac_cv_type_double=yes
26788else
26789  echo "$as_me: failed program was:" >&5
26790sed 's/^/| /' conftest.$ac_ext >&5
26791
26792ac_cv_type_double=no
26793fi
26794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26795fi
26796echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
26797echo "${ECHO_T}$ac_cv_type_double" >&6
26798
26799echo "$as_me:$LINENO: checking size of double" >&5
26800echo $ECHO_N "checking size of double... $ECHO_C" >&6
26801if test "${ac_cv_sizeof_double+set}" = set; then
26802  echo $ECHO_N "(cached) $ECHO_C" >&6
26803else
26804  if test "$ac_cv_type_double" = yes; then
26805  # The cast to unsigned long works around a bug in the HP C Compiler
26806  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26807  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26808  # This bug is HP SR number 8606223364.
26809  if test "$cross_compiling" = yes; then
26810  # Depending upon the size, compute the lo and hi bounds.
26811cat >conftest.$ac_ext <<_ACEOF
26812/* confdefs.h.  */
26813_ACEOF
26814cat confdefs.h >>conftest.$ac_ext
26815cat >>conftest.$ac_ext <<_ACEOF
26816/* end confdefs.h.  */
26817$ac_includes_default
26818int
26819main ()
26820{
26821static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
26822test_array [0] = 0
26823
26824  ;
26825  return 0;
26826}
26827_ACEOF
26828rm -f conftest.$ac_objext
26829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26830  (eval $ac_compile) 2>conftest.er1
26831  ac_status=$?
26832  grep -v '^ *+' conftest.er1 >conftest.err
26833  rm -f conftest.er1
26834  cat conftest.err >&5
26835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836  (exit $ac_status); } &&
26837	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839  (eval $ac_try) 2>&5
26840  ac_status=$?
26841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842  (exit $ac_status); }; } &&
26843	 { ac_try='test -s conftest.$ac_objext'
26844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845  (eval $ac_try) 2>&5
26846  ac_status=$?
26847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848  (exit $ac_status); }; }; then
26849  ac_lo=0 ac_mid=0
26850  while :; do
26851    cat >conftest.$ac_ext <<_ACEOF
26852/* confdefs.h.  */
26853_ACEOF
26854cat confdefs.h >>conftest.$ac_ext
26855cat >>conftest.$ac_ext <<_ACEOF
26856/* end confdefs.h.  */
26857$ac_includes_default
26858int
26859main ()
26860{
26861static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
26862test_array [0] = 0
26863
26864  ;
26865  return 0;
26866}
26867_ACEOF
26868rm -f conftest.$ac_objext
26869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26870  (eval $ac_compile) 2>conftest.er1
26871  ac_status=$?
26872  grep -v '^ *+' conftest.er1 >conftest.err
26873  rm -f conftest.er1
26874  cat conftest.err >&5
26875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876  (exit $ac_status); } &&
26877	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879  (eval $ac_try) 2>&5
26880  ac_status=$?
26881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882  (exit $ac_status); }; } &&
26883	 { ac_try='test -s conftest.$ac_objext'
26884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885  (eval $ac_try) 2>&5
26886  ac_status=$?
26887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888  (exit $ac_status); }; }; then
26889  ac_hi=$ac_mid; break
26890else
26891  echo "$as_me: failed program was:" >&5
26892sed 's/^/| /' conftest.$ac_ext >&5
26893
26894ac_lo=`expr $ac_mid + 1`
26895		    if test $ac_lo -le $ac_mid; then
26896		      ac_lo= ac_hi=
26897		      break
26898		    fi
26899		    ac_mid=`expr 2 '*' $ac_mid + 1`
26900fi
26901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26902  done
26903else
26904  echo "$as_me: failed program was:" >&5
26905sed 's/^/| /' conftest.$ac_ext >&5
26906
26907cat >conftest.$ac_ext <<_ACEOF
26908/* confdefs.h.  */
26909_ACEOF
26910cat confdefs.h >>conftest.$ac_ext
26911cat >>conftest.$ac_ext <<_ACEOF
26912/* end confdefs.h.  */
26913$ac_includes_default
26914int
26915main ()
26916{
26917static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
26918test_array [0] = 0
26919
26920  ;
26921  return 0;
26922}
26923_ACEOF
26924rm -f conftest.$ac_objext
26925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26926  (eval $ac_compile) 2>conftest.er1
26927  ac_status=$?
26928  grep -v '^ *+' conftest.er1 >conftest.err
26929  rm -f conftest.er1
26930  cat conftest.err >&5
26931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932  (exit $ac_status); } &&
26933	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935  (eval $ac_try) 2>&5
26936  ac_status=$?
26937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938  (exit $ac_status); }; } &&
26939	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26945  ac_hi=-1 ac_mid=-1
26946  while :; do
26947    cat >conftest.$ac_ext <<_ACEOF
26948/* confdefs.h.  */
26949_ACEOF
26950cat confdefs.h >>conftest.$ac_ext
26951cat >>conftest.$ac_ext <<_ACEOF
26952/* end confdefs.h.  */
26953$ac_includes_default
26954int
26955main ()
26956{
26957static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
26958test_array [0] = 0
26959
26960  ;
26961  return 0;
26962}
26963_ACEOF
26964rm -f conftest.$ac_objext
26965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26966  (eval $ac_compile) 2>conftest.er1
26967  ac_status=$?
26968  grep -v '^ *+' conftest.er1 >conftest.err
26969  rm -f conftest.er1
26970  cat conftest.err >&5
26971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972  (exit $ac_status); } &&
26973	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975  (eval $ac_try) 2>&5
26976  ac_status=$?
26977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978  (exit $ac_status); }; } &&
26979	 { ac_try='test -s conftest.$ac_objext'
26980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981  (eval $ac_try) 2>&5
26982  ac_status=$?
26983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984  (exit $ac_status); }; }; then
26985  ac_lo=$ac_mid; break
26986else
26987  echo "$as_me: failed program was:" >&5
26988sed 's/^/| /' conftest.$ac_ext >&5
26989
26990ac_hi=`expr '(' $ac_mid ')' - 1`
26991		       if test $ac_mid -le $ac_hi; then
26992			 ac_lo= ac_hi=
26993			 break
26994		       fi
26995		       ac_mid=`expr 2 '*' $ac_mid`
26996fi
26997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26998  done
26999else
27000  echo "$as_me: failed program was:" >&5
27001sed 's/^/| /' conftest.$ac_ext >&5
27002
27003ac_lo= ac_hi=
27004fi
27005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27006fi
27007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27008# Binary search between lo and hi bounds.
27009while test "x$ac_lo" != "x$ac_hi"; do
27010  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27011  cat >conftest.$ac_ext <<_ACEOF
27012/* confdefs.h.  */
27013_ACEOF
27014cat confdefs.h >>conftest.$ac_ext
27015cat >>conftest.$ac_ext <<_ACEOF
27016/* end confdefs.h.  */
27017$ac_includes_default
27018int
27019main ()
27020{
27021static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
27022test_array [0] = 0
27023
27024  ;
27025  return 0;
27026}
27027_ACEOF
27028rm -f conftest.$ac_objext
27029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27030  (eval $ac_compile) 2>conftest.er1
27031  ac_status=$?
27032  grep -v '^ *+' conftest.er1 >conftest.err
27033  rm -f conftest.er1
27034  cat conftest.err >&5
27035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036  (exit $ac_status); } &&
27037	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039  (eval $ac_try) 2>&5
27040  ac_status=$?
27041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042  (exit $ac_status); }; } &&
27043	 { ac_try='test -s conftest.$ac_objext'
27044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045  (eval $ac_try) 2>&5
27046  ac_status=$?
27047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048  (exit $ac_status); }; }; then
27049  ac_hi=$ac_mid
27050else
27051  echo "$as_me: failed program was:" >&5
27052sed 's/^/| /' conftest.$ac_ext >&5
27053
27054ac_lo=`expr '(' $ac_mid ')' + 1`
27055fi
27056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27057done
27058case $ac_lo in
27059?*) ac_cv_sizeof_double=$ac_lo;;
27060'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
27061See \`config.log' for more details." >&5
27062echo "$as_me: error: cannot compute sizeof (double), 77
27063See \`config.log' for more details." >&2;}
27064   { (exit 1); exit 1; }; } ;;
27065esac
27066else
27067  if test "$cross_compiling" = yes; then
27068  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27069echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27070   { (exit 1); exit 1; }; }
27071else
27072  cat >conftest.$ac_ext <<_ACEOF
27073/* confdefs.h.  */
27074_ACEOF
27075cat confdefs.h >>conftest.$ac_ext
27076cat >>conftest.$ac_ext <<_ACEOF
27077/* end confdefs.h.  */
27078$ac_includes_default
27079long longval () { return (long) (sizeof (double)); }
27080unsigned long ulongval () { return (long) (sizeof (double)); }
27081#include <stdio.h>
27082#include <stdlib.h>
27083int
27084main ()
27085{
27086
27087  FILE *f = fopen ("conftest.val", "w");
27088  if (! f)
27089    exit (1);
27090  if (((long) (sizeof (double))) < 0)
27091    {
27092      long i = longval ();
27093      if (i != ((long) (sizeof (double))))
27094	exit (1);
27095      fprintf (f, "%ld\n", i);
27096    }
27097  else
27098    {
27099      unsigned long i = ulongval ();
27100      if (i != ((long) (sizeof (double))))
27101	exit (1);
27102      fprintf (f, "%lu\n", i);
27103    }
27104  exit (ferror (f) || fclose (f) != 0);
27105
27106  ;
27107  return 0;
27108}
27109_ACEOF
27110rm -f conftest$ac_exeext
27111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27112  (eval $ac_link) 2>&5
27113  ac_status=$?
27114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117  (eval $ac_try) 2>&5
27118  ac_status=$?
27119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120  (exit $ac_status); }; }; then
27121  ac_cv_sizeof_double=`cat conftest.val`
27122else
27123  echo "$as_me: program exited with status $ac_status" >&5
27124echo "$as_me: failed program was:" >&5
27125sed 's/^/| /' conftest.$ac_ext >&5
27126
27127( exit $ac_status )
27128{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
27129See \`config.log' for more details." >&5
27130echo "$as_me: error: cannot compute sizeof (double), 77
27131See \`config.log' for more details." >&2;}
27132   { (exit 1); exit 1; }; }
27133fi
27134rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27135fi
27136fi
27137rm -f conftest.val
27138else
27139  ac_cv_sizeof_double=0
27140fi
27141fi
27142echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
27143echo "${ECHO_T}$ac_cv_sizeof_double" >&6
27144cat >>confdefs.h <<_ACEOF
27145#define SIZEOF_DOUBLE $ac_cv_sizeof_double
27146_ACEOF
27147
27148
27149echo "$as_me:$LINENO: checking for long double" >&5
27150echo $ECHO_N "checking for long double... $ECHO_C" >&6
27151if test "${ac_cv_type_long_double+set}" = set; then
27152  echo $ECHO_N "(cached) $ECHO_C" >&6
27153else
27154  cat >conftest.$ac_ext <<_ACEOF
27155/* confdefs.h.  */
27156_ACEOF
27157cat confdefs.h >>conftest.$ac_ext
27158cat >>conftest.$ac_ext <<_ACEOF
27159/* end confdefs.h.  */
27160$ac_includes_default
27161int
27162main ()
27163{
27164if ((long double *) 0)
27165  return 0;
27166if (sizeof (long double))
27167  return 0;
27168  ;
27169  return 0;
27170}
27171_ACEOF
27172rm -f conftest.$ac_objext
27173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27174  (eval $ac_compile) 2>conftest.er1
27175  ac_status=$?
27176  grep -v '^ *+' conftest.er1 >conftest.err
27177  rm -f conftest.er1
27178  cat conftest.err >&5
27179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180  (exit $ac_status); } &&
27181	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183  (eval $ac_try) 2>&5
27184  ac_status=$?
27185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186  (exit $ac_status); }; } &&
27187	 { ac_try='test -s conftest.$ac_objext'
27188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189  (eval $ac_try) 2>&5
27190  ac_status=$?
27191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192  (exit $ac_status); }; }; then
27193  ac_cv_type_long_double=yes
27194else
27195  echo "$as_me: failed program was:" >&5
27196sed 's/^/| /' conftest.$ac_ext >&5
27197
27198ac_cv_type_long_double=no
27199fi
27200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27201fi
27202echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
27203echo "${ECHO_T}$ac_cv_type_long_double" >&6
27204
27205echo "$as_me:$LINENO: checking size of long double" >&5
27206echo $ECHO_N "checking size of long double... $ECHO_C" >&6
27207if test "${ac_cv_sizeof_long_double+set}" = set; then
27208  echo $ECHO_N "(cached) $ECHO_C" >&6
27209else
27210  if test "$ac_cv_type_long_double" = yes; then
27211  # The cast to unsigned long works around a bug in the HP C Compiler
27212  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27213  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27214  # This bug is HP SR number 8606223364.
27215  if test "$cross_compiling" = yes; then
27216  # Depending upon the size, compute the lo and hi bounds.
27217cat >conftest.$ac_ext <<_ACEOF
27218/* confdefs.h.  */
27219_ACEOF
27220cat confdefs.h >>conftest.$ac_ext
27221cat >>conftest.$ac_ext <<_ACEOF
27222/* end confdefs.h.  */
27223$ac_includes_default
27224int
27225main ()
27226{
27227static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
27228test_array [0] = 0
27229
27230  ;
27231  return 0;
27232}
27233_ACEOF
27234rm -f conftest.$ac_objext
27235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27236  (eval $ac_compile) 2>conftest.er1
27237  ac_status=$?
27238  grep -v '^ *+' conftest.er1 >conftest.err
27239  rm -f conftest.er1
27240  cat conftest.err >&5
27241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242  (exit $ac_status); } &&
27243	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245  (eval $ac_try) 2>&5
27246  ac_status=$?
27247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248  (exit $ac_status); }; } &&
27249	 { ac_try='test -s conftest.$ac_objext'
27250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27251  (eval $ac_try) 2>&5
27252  ac_status=$?
27253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254  (exit $ac_status); }; }; then
27255  ac_lo=0 ac_mid=0
27256  while :; do
27257    cat >conftest.$ac_ext <<_ACEOF
27258/* confdefs.h.  */
27259_ACEOF
27260cat confdefs.h >>conftest.$ac_ext
27261cat >>conftest.$ac_ext <<_ACEOF
27262/* end confdefs.h.  */
27263$ac_includes_default
27264int
27265main ()
27266{
27267static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
27268test_array [0] = 0
27269
27270  ;
27271  return 0;
27272}
27273_ACEOF
27274rm -f conftest.$ac_objext
27275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27276  (eval $ac_compile) 2>conftest.er1
27277  ac_status=$?
27278  grep -v '^ *+' conftest.er1 >conftest.err
27279  rm -f conftest.er1
27280  cat conftest.err >&5
27281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282  (exit $ac_status); } &&
27283	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27285  (eval $ac_try) 2>&5
27286  ac_status=$?
27287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288  (exit $ac_status); }; } &&
27289	 { ac_try='test -s conftest.$ac_objext'
27290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27291  (eval $ac_try) 2>&5
27292  ac_status=$?
27293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294  (exit $ac_status); }; }; then
27295  ac_hi=$ac_mid; break
27296else
27297  echo "$as_me: failed program was:" >&5
27298sed 's/^/| /' conftest.$ac_ext >&5
27299
27300ac_lo=`expr $ac_mid + 1`
27301		    if test $ac_lo -le $ac_mid; then
27302		      ac_lo= ac_hi=
27303		      break
27304		    fi
27305		    ac_mid=`expr 2 '*' $ac_mid + 1`
27306fi
27307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27308  done
27309else
27310  echo "$as_me: failed program was:" >&5
27311sed 's/^/| /' conftest.$ac_ext >&5
27312
27313cat >conftest.$ac_ext <<_ACEOF
27314/* confdefs.h.  */
27315_ACEOF
27316cat confdefs.h >>conftest.$ac_ext
27317cat >>conftest.$ac_ext <<_ACEOF
27318/* end confdefs.h.  */
27319$ac_includes_default
27320int
27321main ()
27322{
27323static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
27324test_array [0] = 0
27325
27326  ;
27327  return 0;
27328}
27329_ACEOF
27330rm -f conftest.$ac_objext
27331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27332  (eval $ac_compile) 2>conftest.er1
27333  ac_status=$?
27334  grep -v '^ *+' conftest.er1 >conftest.err
27335  rm -f conftest.er1
27336  cat conftest.err >&5
27337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338  (exit $ac_status); } &&
27339	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341  (eval $ac_try) 2>&5
27342  ac_status=$?
27343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344  (exit $ac_status); }; } &&
27345	 { ac_try='test -s conftest.$ac_objext'
27346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347  (eval $ac_try) 2>&5
27348  ac_status=$?
27349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350  (exit $ac_status); }; }; then
27351  ac_hi=-1 ac_mid=-1
27352  while :; do
27353    cat >conftest.$ac_ext <<_ACEOF
27354/* confdefs.h.  */
27355_ACEOF
27356cat confdefs.h >>conftest.$ac_ext
27357cat >>conftest.$ac_ext <<_ACEOF
27358/* end confdefs.h.  */
27359$ac_includes_default
27360int
27361main ()
27362{
27363static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
27364test_array [0] = 0
27365
27366  ;
27367  return 0;
27368}
27369_ACEOF
27370rm -f conftest.$ac_objext
27371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27372  (eval $ac_compile) 2>conftest.er1
27373  ac_status=$?
27374  grep -v '^ *+' conftest.er1 >conftest.err
27375  rm -f conftest.er1
27376  cat conftest.err >&5
27377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378  (exit $ac_status); } &&
27379	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381  (eval $ac_try) 2>&5
27382  ac_status=$?
27383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384  (exit $ac_status); }; } &&
27385	 { ac_try='test -s conftest.$ac_objext'
27386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387  (eval $ac_try) 2>&5
27388  ac_status=$?
27389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390  (exit $ac_status); }; }; then
27391  ac_lo=$ac_mid; break
27392else
27393  echo "$as_me: failed program was:" >&5
27394sed 's/^/| /' conftest.$ac_ext >&5
27395
27396ac_hi=`expr '(' $ac_mid ')' - 1`
27397		       if test $ac_mid -le $ac_hi; then
27398			 ac_lo= ac_hi=
27399			 break
27400		       fi
27401		       ac_mid=`expr 2 '*' $ac_mid`
27402fi
27403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27404  done
27405else
27406  echo "$as_me: failed program was:" >&5
27407sed 's/^/| /' conftest.$ac_ext >&5
27408
27409ac_lo= ac_hi=
27410fi
27411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27412fi
27413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27414# Binary search between lo and hi bounds.
27415while test "x$ac_lo" != "x$ac_hi"; do
27416  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27417  cat >conftest.$ac_ext <<_ACEOF
27418/* confdefs.h.  */
27419_ACEOF
27420cat confdefs.h >>conftest.$ac_ext
27421cat >>conftest.$ac_ext <<_ACEOF
27422/* end confdefs.h.  */
27423$ac_includes_default
27424int
27425main ()
27426{
27427static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
27428test_array [0] = 0
27429
27430  ;
27431  return 0;
27432}
27433_ACEOF
27434rm -f conftest.$ac_objext
27435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27436  (eval $ac_compile) 2>conftest.er1
27437  ac_status=$?
27438  grep -v '^ *+' conftest.er1 >conftest.err
27439  rm -f conftest.er1
27440  cat conftest.err >&5
27441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442  (exit $ac_status); } &&
27443	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27445  (eval $ac_try) 2>&5
27446  ac_status=$?
27447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448  (exit $ac_status); }; } &&
27449	 { ac_try='test -s conftest.$ac_objext'
27450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451  (eval $ac_try) 2>&5
27452  ac_status=$?
27453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454  (exit $ac_status); }; }; then
27455  ac_hi=$ac_mid
27456else
27457  echo "$as_me: failed program was:" >&5
27458sed 's/^/| /' conftest.$ac_ext >&5
27459
27460ac_lo=`expr '(' $ac_mid ')' + 1`
27461fi
27462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27463done
27464case $ac_lo in
27465?*) ac_cv_sizeof_long_double=$ac_lo;;
27466'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
27467See \`config.log' for more details." >&5
27468echo "$as_me: error: cannot compute sizeof (long double), 77
27469See \`config.log' for more details." >&2;}
27470   { (exit 1); exit 1; }; } ;;
27471esac
27472else
27473  if test "$cross_compiling" = yes; then
27474  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27475echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27476   { (exit 1); exit 1; }; }
27477else
27478  cat >conftest.$ac_ext <<_ACEOF
27479/* confdefs.h.  */
27480_ACEOF
27481cat confdefs.h >>conftest.$ac_ext
27482cat >>conftest.$ac_ext <<_ACEOF
27483/* end confdefs.h.  */
27484$ac_includes_default
27485long longval () { return (long) (sizeof (long double)); }
27486unsigned long ulongval () { return (long) (sizeof (long double)); }
27487#include <stdio.h>
27488#include <stdlib.h>
27489int
27490main ()
27491{
27492
27493  FILE *f = fopen ("conftest.val", "w");
27494  if (! f)
27495    exit (1);
27496  if (((long) (sizeof (long double))) < 0)
27497    {
27498      long i = longval ();
27499      if (i != ((long) (sizeof (long double))))
27500	exit (1);
27501      fprintf (f, "%ld\n", i);
27502    }
27503  else
27504    {
27505      unsigned long i = ulongval ();
27506      if (i != ((long) (sizeof (long double))))
27507	exit (1);
27508      fprintf (f, "%lu\n", i);
27509    }
27510  exit (ferror (f) || fclose (f) != 0);
27511
27512  ;
27513  return 0;
27514}
27515_ACEOF
27516rm -f conftest$ac_exeext
27517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27518  (eval $ac_link) 2>&5
27519  ac_status=$?
27520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27523  (eval $ac_try) 2>&5
27524  ac_status=$?
27525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526  (exit $ac_status); }; }; then
27527  ac_cv_sizeof_long_double=`cat conftest.val`
27528else
27529  echo "$as_me: program exited with status $ac_status" >&5
27530echo "$as_me: failed program was:" >&5
27531sed 's/^/| /' conftest.$ac_ext >&5
27532
27533( exit $ac_status )
27534{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
27535See \`config.log' for more details." >&5
27536echo "$as_me: error: cannot compute sizeof (long double), 77
27537See \`config.log' for more details." >&2;}
27538   { (exit 1); exit 1; }; }
27539fi
27540rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27541fi
27542fi
27543rm -f conftest.val
27544else
27545  ac_cv_sizeof_long_double=0
27546fi
27547fi
27548echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
27549echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
27550cat >>confdefs.h <<_ACEOF
27551#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
27552_ACEOF
27553
27554
27555
27556echo "$as_me:$LINENO: checking for dev_t" >&5
27557echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
27558if test "${ac_cv_type_dev_t+set}" = set; then
27559  echo $ECHO_N "(cached) $ECHO_C" >&6
27560else
27561  cat >conftest.$ac_ext <<_ACEOF
27562/* confdefs.h.  */
27563_ACEOF
27564cat confdefs.h >>conftest.$ac_ext
27565cat >>conftest.$ac_ext <<_ACEOF
27566/* end confdefs.h.  */
27567$ac_includes_default
27568int
27569main ()
27570{
27571if ((dev_t *) 0)
27572  return 0;
27573if (sizeof (dev_t))
27574  return 0;
27575  ;
27576  return 0;
27577}
27578_ACEOF
27579rm -f conftest.$ac_objext
27580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27581  (eval $ac_compile) 2>conftest.er1
27582  ac_status=$?
27583  grep -v '^ *+' conftest.er1 >conftest.err
27584  rm -f conftest.er1
27585  cat conftest.err >&5
27586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587  (exit $ac_status); } &&
27588	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590  (eval $ac_try) 2>&5
27591  ac_status=$?
27592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593  (exit $ac_status); }; } &&
27594	 { ac_try='test -s conftest.$ac_objext'
27595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596  (eval $ac_try) 2>&5
27597  ac_status=$?
27598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599  (exit $ac_status); }; }; then
27600  ac_cv_type_dev_t=yes
27601else
27602  echo "$as_me: failed program was:" >&5
27603sed 's/^/| /' conftest.$ac_ext >&5
27604
27605ac_cv_type_dev_t=no
27606fi
27607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27608fi
27609echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
27610echo "${ECHO_T}$ac_cv_type_dev_t" >&6
27611
27612echo "$as_me:$LINENO: checking size of dev_t" >&5
27613echo $ECHO_N "checking size of dev_t... $ECHO_C" >&6
27614if test "${ac_cv_sizeof_dev_t+set}" = set; then
27615  echo $ECHO_N "(cached) $ECHO_C" >&6
27616else
27617  if test "$ac_cv_type_dev_t" = yes; then
27618  # The cast to unsigned long works around a bug in the HP C Compiler
27619  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27620  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27621  # This bug is HP SR number 8606223364.
27622  if test "$cross_compiling" = yes; then
27623  # Depending upon the size, compute the lo and hi bounds.
27624cat >conftest.$ac_ext <<_ACEOF
27625/* confdefs.h.  */
27626_ACEOF
27627cat confdefs.h >>conftest.$ac_ext
27628cat >>conftest.$ac_ext <<_ACEOF
27629/* end confdefs.h.  */
27630$ac_includes_default
27631int
27632main ()
27633{
27634static int test_array [1 - 2 * !(((long) (sizeof (dev_t))) >= 0)];
27635test_array [0] = 0
27636
27637  ;
27638  return 0;
27639}
27640_ACEOF
27641rm -f conftest.$ac_objext
27642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27643  (eval $ac_compile) 2>conftest.er1
27644  ac_status=$?
27645  grep -v '^ *+' conftest.er1 >conftest.err
27646  rm -f conftest.er1
27647  cat conftest.err >&5
27648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649  (exit $ac_status); } &&
27650	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27652  (eval $ac_try) 2>&5
27653  ac_status=$?
27654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655  (exit $ac_status); }; } &&
27656	 { ac_try='test -s conftest.$ac_objext'
27657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658  (eval $ac_try) 2>&5
27659  ac_status=$?
27660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661  (exit $ac_status); }; }; then
27662  ac_lo=0 ac_mid=0
27663  while :; do
27664    cat >conftest.$ac_ext <<_ACEOF
27665/* confdefs.h.  */
27666_ACEOF
27667cat confdefs.h >>conftest.$ac_ext
27668cat >>conftest.$ac_ext <<_ACEOF
27669/* end confdefs.h.  */
27670$ac_includes_default
27671int
27672main ()
27673{
27674static int test_array [1 - 2 * !(((long) (sizeof (dev_t))) <= $ac_mid)];
27675test_array [0] = 0
27676
27677  ;
27678  return 0;
27679}
27680_ACEOF
27681rm -f conftest.$ac_objext
27682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27683  (eval $ac_compile) 2>conftest.er1
27684  ac_status=$?
27685  grep -v '^ *+' conftest.er1 >conftest.err
27686  rm -f conftest.er1
27687  cat conftest.err >&5
27688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689  (exit $ac_status); } &&
27690	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692  (eval $ac_try) 2>&5
27693  ac_status=$?
27694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695  (exit $ac_status); }; } &&
27696	 { ac_try='test -s conftest.$ac_objext'
27697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698  (eval $ac_try) 2>&5
27699  ac_status=$?
27700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701  (exit $ac_status); }; }; then
27702  ac_hi=$ac_mid; break
27703else
27704  echo "$as_me: failed program was:" >&5
27705sed 's/^/| /' conftest.$ac_ext >&5
27706
27707ac_lo=`expr $ac_mid + 1`
27708		    if test $ac_lo -le $ac_mid; then
27709		      ac_lo= ac_hi=
27710		      break
27711		    fi
27712		    ac_mid=`expr 2 '*' $ac_mid + 1`
27713fi
27714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27715  done
27716else
27717  echo "$as_me: failed program was:" >&5
27718sed 's/^/| /' conftest.$ac_ext >&5
27719
27720cat >conftest.$ac_ext <<_ACEOF
27721/* confdefs.h.  */
27722_ACEOF
27723cat confdefs.h >>conftest.$ac_ext
27724cat >>conftest.$ac_ext <<_ACEOF
27725/* end confdefs.h.  */
27726$ac_includes_default
27727int
27728main ()
27729{
27730static int test_array [1 - 2 * !(((long) (sizeof (dev_t))) < 0)];
27731test_array [0] = 0
27732
27733  ;
27734  return 0;
27735}
27736_ACEOF
27737rm -f conftest.$ac_objext
27738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27739  (eval $ac_compile) 2>conftest.er1
27740  ac_status=$?
27741  grep -v '^ *+' conftest.er1 >conftest.err
27742  rm -f conftest.er1
27743  cat conftest.err >&5
27744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745  (exit $ac_status); } &&
27746	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748  (eval $ac_try) 2>&5
27749  ac_status=$?
27750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751  (exit $ac_status); }; } &&
27752	 { ac_try='test -s conftest.$ac_objext'
27753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754  (eval $ac_try) 2>&5
27755  ac_status=$?
27756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757  (exit $ac_status); }; }; then
27758  ac_hi=-1 ac_mid=-1
27759  while :; do
27760    cat >conftest.$ac_ext <<_ACEOF
27761/* confdefs.h.  */
27762_ACEOF
27763cat confdefs.h >>conftest.$ac_ext
27764cat >>conftest.$ac_ext <<_ACEOF
27765/* end confdefs.h.  */
27766$ac_includes_default
27767int
27768main ()
27769{
27770static int test_array [1 - 2 * !(((long) (sizeof (dev_t))) >= $ac_mid)];
27771test_array [0] = 0
27772
27773  ;
27774  return 0;
27775}
27776_ACEOF
27777rm -f conftest.$ac_objext
27778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27779  (eval $ac_compile) 2>conftest.er1
27780  ac_status=$?
27781  grep -v '^ *+' conftest.er1 >conftest.err
27782  rm -f conftest.er1
27783  cat conftest.err >&5
27784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785  (exit $ac_status); } &&
27786	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788  (eval $ac_try) 2>&5
27789  ac_status=$?
27790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791  (exit $ac_status); }; } &&
27792	 { ac_try='test -s conftest.$ac_objext'
27793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27794  (eval $ac_try) 2>&5
27795  ac_status=$?
27796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797  (exit $ac_status); }; }; then
27798  ac_lo=$ac_mid; break
27799else
27800  echo "$as_me: failed program was:" >&5
27801sed 's/^/| /' conftest.$ac_ext >&5
27802
27803ac_hi=`expr '(' $ac_mid ')' - 1`
27804		       if test $ac_mid -le $ac_hi; then
27805			 ac_lo= ac_hi=
27806			 break
27807		       fi
27808		       ac_mid=`expr 2 '*' $ac_mid`
27809fi
27810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27811  done
27812else
27813  echo "$as_me: failed program was:" >&5
27814sed 's/^/| /' conftest.$ac_ext >&5
27815
27816ac_lo= ac_hi=
27817fi
27818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27819fi
27820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27821# Binary search between lo and hi bounds.
27822while test "x$ac_lo" != "x$ac_hi"; do
27823  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27824  cat >conftest.$ac_ext <<_ACEOF
27825/* confdefs.h.  */
27826_ACEOF
27827cat confdefs.h >>conftest.$ac_ext
27828cat >>conftest.$ac_ext <<_ACEOF
27829/* end confdefs.h.  */
27830$ac_includes_default
27831int
27832main ()
27833{
27834static int test_array [1 - 2 * !(((long) (sizeof (dev_t))) <= $ac_mid)];
27835test_array [0] = 0
27836
27837  ;
27838  return 0;
27839}
27840_ACEOF
27841rm -f conftest.$ac_objext
27842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27843  (eval $ac_compile) 2>conftest.er1
27844  ac_status=$?
27845  grep -v '^ *+' conftest.er1 >conftest.err
27846  rm -f conftest.er1
27847  cat conftest.err >&5
27848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849  (exit $ac_status); } &&
27850	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852  (eval $ac_try) 2>&5
27853  ac_status=$?
27854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855  (exit $ac_status); }; } &&
27856	 { ac_try='test -s conftest.$ac_objext'
27857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858  (eval $ac_try) 2>&5
27859  ac_status=$?
27860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861  (exit $ac_status); }; }; then
27862  ac_hi=$ac_mid
27863else
27864  echo "$as_me: failed program was:" >&5
27865sed 's/^/| /' conftest.$ac_ext >&5
27866
27867ac_lo=`expr '(' $ac_mid ')' + 1`
27868fi
27869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27870done
27871case $ac_lo in
27872?*) ac_cv_sizeof_dev_t=$ac_lo;;
27873'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (dev_t), 77
27874See \`config.log' for more details." >&5
27875echo "$as_me: error: cannot compute sizeof (dev_t), 77
27876See \`config.log' for more details." >&2;}
27877   { (exit 1); exit 1; }; } ;;
27878esac
27879else
27880  if test "$cross_compiling" = yes; then
27881  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27882echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27883   { (exit 1); exit 1; }; }
27884else
27885  cat >conftest.$ac_ext <<_ACEOF
27886/* confdefs.h.  */
27887_ACEOF
27888cat confdefs.h >>conftest.$ac_ext
27889cat >>conftest.$ac_ext <<_ACEOF
27890/* end confdefs.h.  */
27891$ac_includes_default
27892long longval () { return (long) (sizeof (dev_t)); }
27893unsigned long ulongval () { return (long) (sizeof (dev_t)); }
27894#include <stdio.h>
27895#include <stdlib.h>
27896int
27897main ()
27898{
27899
27900  FILE *f = fopen ("conftest.val", "w");
27901  if (! f)
27902    exit (1);
27903  if (((long) (sizeof (dev_t))) < 0)
27904    {
27905      long i = longval ();
27906      if (i != ((long) (sizeof (dev_t))))
27907	exit (1);
27908      fprintf (f, "%ld\n", i);
27909    }
27910  else
27911    {
27912      unsigned long i = ulongval ();
27913      if (i != ((long) (sizeof (dev_t))))
27914	exit (1);
27915      fprintf (f, "%lu\n", i);
27916    }
27917  exit (ferror (f) || fclose (f) != 0);
27918
27919  ;
27920  return 0;
27921}
27922_ACEOF
27923rm -f conftest$ac_exeext
27924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27925  (eval $ac_link) 2>&5
27926  ac_status=$?
27927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930  (eval $ac_try) 2>&5
27931  ac_status=$?
27932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933  (exit $ac_status); }; }; then
27934  ac_cv_sizeof_dev_t=`cat conftest.val`
27935else
27936  echo "$as_me: program exited with status $ac_status" >&5
27937echo "$as_me: failed program was:" >&5
27938sed 's/^/| /' conftest.$ac_ext >&5
27939
27940( exit $ac_status )
27941{ { echo "$as_me:$LINENO: error: cannot compute sizeof (dev_t), 77
27942See \`config.log' for more details." >&5
27943echo "$as_me: error: cannot compute sizeof (dev_t), 77
27944See \`config.log' for more details." >&2;}
27945   { (exit 1); exit 1; }; }
27946fi
27947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27948fi
27949fi
27950rm -f conftest.val
27951else
27952  ac_cv_sizeof_dev_t=0
27953fi
27954fi
27955echo "$as_me:$LINENO: result: $ac_cv_sizeof_dev_t" >&5
27956echo "${ECHO_T}$ac_cv_sizeof_dev_t" >&6
27957cat >>confdefs.h <<_ACEOF
27958#define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
27959_ACEOF
27960
27961
27962echo "$as_me:$LINENO: checking for fpos_t" >&5
27963echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
27964if test "${ac_cv_type_fpos_t+set}" = set; then
27965  echo $ECHO_N "(cached) $ECHO_C" >&6
27966else
27967  cat >conftest.$ac_ext <<_ACEOF
27968/* confdefs.h.  */
27969_ACEOF
27970cat confdefs.h >>conftest.$ac_ext
27971cat >>conftest.$ac_ext <<_ACEOF
27972/* end confdefs.h.  */
27973$ac_includes_default
27974int
27975main ()
27976{
27977if ((fpos_t *) 0)
27978  return 0;
27979if (sizeof (fpos_t))
27980  return 0;
27981  ;
27982  return 0;
27983}
27984_ACEOF
27985rm -f conftest.$ac_objext
27986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27987  (eval $ac_compile) 2>conftest.er1
27988  ac_status=$?
27989  grep -v '^ *+' conftest.er1 >conftest.err
27990  rm -f conftest.er1
27991  cat conftest.err >&5
27992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993  (exit $ac_status); } &&
27994	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996  (eval $ac_try) 2>&5
27997  ac_status=$?
27998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999  (exit $ac_status); }; } &&
28000	 { ac_try='test -s conftest.$ac_objext'
28001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28002  (eval $ac_try) 2>&5
28003  ac_status=$?
28004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005  (exit $ac_status); }; }; then
28006  ac_cv_type_fpos_t=yes
28007else
28008  echo "$as_me: failed program was:" >&5
28009sed 's/^/| /' conftest.$ac_ext >&5
28010
28011ac_cv_type_fpos_t=no
28012fi
28013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28014fi
28015echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
28016echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
28017
28018echo "$as_me:$LINENO: checking size of fpos_t" >&5
28019echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
28020if test "${ac_cv_sizeof_fpos_t+set}" = set; then
28021  echo $ECHO_N "(cached) $ECHO_C" >&6
28022else
28023  if test "$ac_cv_type_fpos_t" = yes; then
28024  # The cast to unsigned long works around a bug in the HP C Compiler
28025  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28026  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28027  # This bug is HP SR number 8606223364.
28028  if test "$cross_compiling" = yes; then
28029  # Depending upon the size, compute the lo and hi bounds.
28030cat >conftest.$ac_ext <<_ACEOF
28031/* confdefs.h.  */
28032_ACEOF
28033cat confdefs.h >>conftest.$ac_ext
28034cat >>conftest.$ac_ext <<_ACEOF
28035/* end confdefs.h.  */
28036$ac_includes_default
28037int
28038main ()
28039{
28040static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
28041test_array [0] = 0
28042
28043  ;
28044  return 0;
28045}
28046_ACEOF
28047rm -f conftest.$ac_objext
28048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28049  (eval $ac_compile) 2>conftest.er1
28050  ac_status=$?
28051  grep -v '^ *+' conftest.er1 >conftest.err
28052  rm -f conftest.er1
28053  cat conftest.err >&5
28054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055  (exit $ac_status); } &&
28056	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058  (eval $ac_try) 2>&5
28059  ac_status=$?
28060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061  (exit $ac_status); }; } &&
28062	 { ac_try='test -s conftest.$ac_objext'
28063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064  (eval $ac_try) 2>&5
28065  ac_status=$?
28066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067  (exit $ac_status); }; }; then
28068  ac_lo=0 ac_mid=0
28069  while :; do
28070    cat >conftest.$ac_ext <<_ACEOF
28071/* confdefs.h.  */
28072_ACEOF
28073cat confdefs.h >>conftest.$ac_ext
28074cat >>conftest.$ac_ext <<_ACEOF
28075/* end confdefs.h.  */
28076$ac_includes_default
28077int
28078main ()
28079{
28080static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
28081test_array [0] = 0
28082
28083  ;
28084  return 0;
28085}
28086_ACEOF
28087rm -f conftest.$ac_objext
28088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28089  (eval $ac_compile) 2>conftest.er1
28090  ac_status=$?
28091  grep -v '^ *+' conftest.er1 >conftest.err
28092  rm -f conftest.er1
28093  cat conftest.err >&5
28094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095  (exit $ac_status); } &&
28096	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098  (eval $ac_try) 2>&5
28099  ac_status=$?
28100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101  (exit $ac_status); }; } &&
28102	 { ac_try='test -s conftest.$ac_objext'
28103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104  (eval $ac_try) 2>&5
28105  ac_status=$?
28106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107  (exit $ac_status); }; }; then
28108  ac_hi=$ac_mid; break
28109else
28110  echo "$as_me: failed program was:" >&5
28111sed 's/^/| /' conftest.$ac_ext >&5
28112
28113ac_lo=`expr $ac_mid + 1`
28114		    if test $ac_lo -le $ac_mid; then
28115		      ac_lo= ac_hi=
28116		      break
28117		    fi
28118		    ac_mid=`expr 2 '*' $ac_mid + 1`
28119fi
28120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28121  done
28122else
28123  echo "$as_me: failed program was:" >&5
28124sed 's/^/| /' conftest.$ac_ext >&5
28125
28126cat >conftest.$ac_ext <<_ACEOF
28127/* confdefs.h.  */
28128_ACEOF
28129cat confdefs.h >>conftest.$ac_ext
28130cat >>conftest.$ac_ext <<_ACEOF
28131/* end confdefs.h.  */
28132$ac_includes_default
28133int
28134main ()
28135{
28136static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
28137test_array [0] = 0
28138
28139  ;
28140  return 0;
28141}
28142_ACEOF
28143rm -f conftest.$ac_objext
28144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28145  (eval $ac_compile) 2>conftest.er1
28146  ac_status=$?
28147  grep -v '^ *+' conftest.er1 >conftest.err
28148  rm -f conftest.er1
28149  cat conftest.err >&5
28150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151  (exit $ac_status); } &&
28152	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28154  (eval $ac_try) 2>&5
28155  ac_status=$?
28156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157  (exit $ac_status); }; } &&
28158	 { ac_try='test -s conftest.$ac_objext'
28159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160  (eval $ac_try) 2>&5
28161  ac_status=$?
28162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163  (exit $ac_status); }; }; then
28164  ac_hi=-1 ac_mid=-1
28165  while :; do
28166    cat >conftest.$ac_ext <<_ACEOF
28167/* confdefs.h.  */
28168_ACEOF
28169cat confdefs.h >>conftest.$ac_ext
28170cat >>conftest.$ac_ext <<_ACEOF
28171/* end confdefs.h.  */
28172$ac_includes_default
28173int
28174main ()
28175{
28176static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
28177test_array [0] = 0
28178
28179  ;
28180  return 0;
28181}
28182_ACEOF
28183rm -f conftest.$ac_objext
28184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28185  (eval $ac_compile) 2>conftest.er1
28186  ac_status=$?
28187  grep -v '^ *+' conftest.er1 >conftest.err
28188  rm -f conftest.er1
28189  cat conftest.err >&5
28190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191  (exit $ac_status); } &&
28192	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194  (eval $ac_try) 2>&5
28195  ac_status=$?
28196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197  (exit $ac_status); }; } &&
28198	 { ac_try='test -s conftest.$ac_objext'
28199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200  (eval $ac_try) 2>&5
28201  ac_status=$?
28202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203  (exit $ac_status); }; }; then
28204  ac_lo=$ac_mid; break
28205else
28206  echo "$as_me: failed program was:" >&5
28207sed 's/^/| /' conftest.$ac_ext >&5
28208
28209ac_hi=`expr '(' $ac_mid ')' - 1`
28210		       if test $ac_mid -le $ac_hi; then
28211			 ac_lo= ac_hi=
28212			 break
28213		       fi
28214		       ac_mid=`expr 2 '*' $ac_mid`
28215fi
28216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28217  done
28218else
28219  echo "$as_me: failed program was:" >&5
28220sed 's/^/| /' conftest.$ac_ext >&5
28221
28222ac_lo= ac_hi=
28223fi
28224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28225fi
28226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28227# Binary search between lo and hi bounds.
28228while test "x$ac_lo" != "x$ac_hi"; do
28229  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28230  cat >conftest.$ac_ext <<_ACEOF
28231/* confdefs.h.  */
28232_ACEOF
28233cat confdefs.h >>conftest.$ac_ext
28234cat >>conftest.$ac_ext <<_ACEOF
28235/* end confdefs.h.  */
28236$ac_includes_default
28237int
28238main ()
28239{
28240static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
28241test_array [0] = 0
28242
28243  ;
28244  return 0;
28245}
28246_ACEOF
28247rm -f conftest.$ac_objext
28248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28249  (eval $ac_compile) 2>conftest.er1
28250  ac_status=$?
28251  grep -v '^ *+' conftest.er1 >conftest.err
28252  rm -f conftest.er1
28253  cat conftest.err >&5
28254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255  (exit $ac_status); } &&
28256	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28258  (eval $ac_try) 2>&5
28259  ac_status=$?
28260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261  (exit $ac_status); }; } &&
28262	 { ac_try='test -s conftest.$ac_objext'
28263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264  (eval $ac_try) 2>&5
28265  ac_status=$?
28266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267  (exit $ac_status); }; }; then
28268  ac_hi=$ac_mid
28269else
28270  echo "$as_me: failed program was:" >&5
28271sed 's/^/| /' conftest.$ac_ext >&5
28272
28273ac_lo=`expr '(' $ac_mid ')' + 1`
28274fi
28275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28276done
28277case $ac_lo in
28278?*) ac_cv_sizeof_fpos_t=$ac_lo;;
28279'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
28280See \`config.log' for more details." >&5
28281echo "$as_me: error: cannot compute sizeof (fpos_t), 77
28282See \`config.log' for more details." >&2;}
28283   { (exit 1); exit 1; }; } ;;
28284esac
28285else
28286  if test "$cross_compiling" = yes; then
28287  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
28288echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
28289   { (exit 1); exit 1; }; }
28290else
28291  cat >conftest.$ac_ext <<_ACEOF
28292/* confdefs.h.  */
28293_ACEOF
28294cat confdefs.h >>conftest.$ac_ext
28295cat >>conftest.$ac_ext <<_ACEOF
28296/* end confdefs.h.  */
28297$ac_includes_default
28298long longval () { return (long) (sizeof (fpos_t)); }
28299unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
28300#include <stdio.h>
28301#include <stdlib.h>
28302int
28303main ()
28304{
28305
28306  FILE *f = fopen ("conftest.val", "w");
28307  if (! f)
28308    exit (1);
28309  if (((long) (sizeof (fpos_t))) < 0)
28310    {
28311      long i = longval ();
28312      if (i != ((long) (sizeof (fpos_t))))
28313	exit (1);
28314      fprintf (f, "%ld\n", i);
28315    }
28316  else
28317    {
28318      unsigned long i = ulongval ();
28319      if (i != ((long) (sizeof (fpos_t))))
28320	exit (1);
28321      fprintf (f, "%lu\n", i);
28322    }
28323  exit (ferror (f) || fclose (f) != 0);
28324
28325  ;
28326  return 0;
28327}
28328_ACEOF
28329rm -f conftest$ac_exeext
28330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28331  (eval $ac_link) 2>&5
28332  ac_status=$?
28333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28336  (eval $ac_try) 2>&5
28337  ac_status=$?
28338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339  (exit $ac_status); }; }; then
28340  ac_cv_sizeof_fpos_t=`cat conftest.val`
28341else
28342  echo "$as_me: program exited with status $ac_status" >&5
28343echo "$as_me: failed program was:" >&5
28344sed 's/^/| /' conftest.$ac_ext >&5
28345
28346( exit $ac_status )
28347{ { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
28348See \`config.log' for more details." >&5
28349echo "$as_me: error: cannot compute sizeof (fpos_t), 77
28350See \`config.log' for more details." >&2;}
28351   { (exit 1); exit 1; }; }
28352fi
28353rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28354fi
28355fi
28356rm -f conftest.val
28357else
28358  ac_cv_sizeof_fpos_t=0
28359fi
28360fi
28361echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
28362echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
28363cat >>confdefs.h <<_ACEOF
28364#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
28365_ACEOF
28366
28367
28368echo "$as_me:$LINENO: checking for mode_t" >&5
28369echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28370if test "${ac_cv_type_mode_t+set}" = set; then
28371  echo $ECHO_N "(cached) $ECHO_C" >&6
28372else
28373  cat >conftest.$ac_ext <<_ACEOF
28374/* confdefs.h.  */
28375_ACEOF
28376cat confdefs.h >>conftest.$ac_ext
28377cat >>conftest.$ac_ext <<_ACEOF
28378/* end confdefs.h.  */
28379$ac_includes_default
28380int
28381main ()
28382{
28383if ((mode_t *) 0)
28384  return 0;
28385if (sizeof (mode_t))
28386  return 0;
28387  ;
28388  return 0;
28389}
28390_ACEOF
28391rm -f conftest.$ac_objext
28392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28393  (eval $ac_compile) 2>conftest.er1
28394  ac_status=$?
28395  grep -v '^ *+' conftest.er1 >conftest.err
28396  rm -f conftest.er1
28397  cat conftest.err >&5
28398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399  (exit $ac_status); } &&
28400	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402  (eval $ac_try) 2>&5
28403  ac_status=$?
28404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405  (exit $ac_status); }; } &&
28406	 { ac_try='test -s conftest.$ac_objext'
28407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408  (eval $ac_try) 2>&5
28409  ac_status=$?
28410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411  (exit $ac_status); }; }; then
28412  ac_cv_type_mode_t=yes
28413else
28414  echo "$as_me: failed program was:" >&5
28415sed 's/^/| /' conftest.$ac_ext >&5
28416
28417ac_cv_type_mode_t=no
28418fi
28419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28420fi
28421echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28422echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28423
28424echo "$as_me:$LINENO: checking size of mode_t" >&5
28425echo $ECHO_N "checking size of mode_t... $ECHO_C" >&6
28426if test "${ac_cv_sizeof_mode_t+set}" = set; then
28427  echo $ECHO_N "(cached) $ECHO_C" >&6
28428else
28429  if test "$ac_cv_type_mode_t" = yes; then
28430  # The cast to unsigned long works around a bug in the HP C Compiler
28431  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28432  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28433  # This bug is HP SR number 8606223364.
28434  if test "$cross_compiling" = yes; then
28435  # Depending upon the size, compute the lo and hi bounds.
28436cat >conftest.$ac_ext <<_ACEOF
28437/* confdefs.h.  */
28438_ACEOF
28439cat confdefs.h >>conftest.$ac_ext
28440cat >>conftest.$ac_ext <<_ACEOF
28441/* end confdefs.h.  */
28442$ac_includes_default
28443int
28444main ()
28445{
28446static int test_array [1 - 2 * !(((long) (sizeof (mode_t))) >= 0)];
28447test_array [0] = 0
28448
28449  ;
28450  return 0;
28451}
28452_ACEOF
28453rm -f conftest.$ac_objext
28454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28455  (eval $ac_compile) 2>conftest.er1
28456  ac_status=$?
28457  grep -v '^ *+' conftest.er1 >conftest.err
28458  rm -f conftest.er1
28459  cat conftest.err >&5
28460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461  (exit $ac_status); } &&
28462	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464  (eval $ac_try) 2>&5
28465  ac_status=$?
28466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467  (exit $ac_status); }; } &&
28468	 { ac_try='test -s conftest.$ac_objext'
28469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470  (eval $ac_try) 2>&5
28471  ac_status=$?
28472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473  (exit $ac_status); }; }; then
28474  ac_lo=0 ac_mid=0
28475  while :; do
28476    cat >conftest.$ac_ext <<_ACEOF
28477/* confdefs.h.  */
28478_ACEOF
28479cat confdefs.h >>conftest.$ac_ext
28480cat >>conftest.$ac_ext <<_ACEOF
28481/* end confdefs.h.  */
28482$ac_includes_default
28483int
28484main ()
28485{
28486static int test_array [1 - 2 * !(((long) (sizeof (mode_t))) <= $ac_mid)];
28487test_array [0] = 0
28488
28489  ;
28490  return 0;
28491}
28492_ACEOF
28493rm -f conftest.$ac_objext
28494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28495  (eval $ac_compile) 2>conftest.er1
28496  ac_status=$?
28497  grep -v '^ *+' conftest.er1 >conftest.err
28498  rm -f conftest.er1
28499  cat conftest.err >&5
28500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501  (exit $ac_status); } &&
28502	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504  (eval $ac_try) 2>&5
28505  ac_status=$?
28506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507  (exit $ac_status); }; } &&
28508	 { ac_try='test -s conftest.$ac_objext'
28509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510  (eval $ac_try) 2>&5
28511  ac_status=$?
28512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513  (exit $ac_status); }; }; then
28514  ac_hi=$ac_mid; break
28515else
28516  echo "$as_me: failed program was:" >&5
28517sed 's/^/| /' conftest.$ac_ext >&5
28518
28519ac_lo=`expr $ac_mid + 1`
28520		    if test $ac_lo -le $ac_mid; then
28521		      ac_lo= ac_hi=
28522		      break
28523		    fi
28524		    ac_mid=`expr 2 '*' $ac_mid + 1`
28525fi
28526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28527  done
28528else
28529  echo "$as_me: failed program was:" >&5
28530sed 's/^/| /' conftest.$ac_ext >&5
28531
28532cat >conftest.$ac_ext <<_ACEOF
28533/* confdefs.h.  */
28534_ACEOF
28535cat confdefs.h >>conftest.$ac_ext
28536cat >>conftest.$ac_ext <<_ACEOF
28537/* end confdefs.h.  */
28538$ac_includes_default
28539int
28540main ()
28541{
28542static int test_array [1 - 2 * !(((long) (sizeof (mode_t))) < 0)];
28543test_array [0] = 0
28544
28545  ;
28546  return 0;
28547}
28548_ACEOF
28549rm -f conftest.$ac_objext
28550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28551  (eval $ac_compile) 2>conftest.er1
28552  ac_status=$?
28553  grep -v '^ *+' conftest.er1 >conftest.err
28554  rm -f conftest.er1
28555  cat conftest.err >&5
28556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557  (exit $ac_status); } &&
28558	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28560  (eval $ac_try) 2>&5
28561  ac_status=$?
28562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563  (exit $ac_status); }; } &&
28564	 { ac_try='test -s conftest.$ac_objext'
28565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566  (eval $ac_try) 2>&5
28567  ac_status=$?
28568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569  (exit $ac_status); }; }; then
28570  ac_hi=-1 ac_mid=-1
28571  while :; do
28572    cat >conftest.$ac_ext <<_ACEOF
28573/* confdefs.h.  */
28574_ACEOF
28575cat confdefs.h >>conftest.$ac_ext
28576cat >>conftest.$ac_ext <<_ACEOF
28577/* end confdefs.h.  */
28578$ac_includes_default
28579int
28580main ()
28581{
28582static int test_array [1 - 2 * !(((long) (sizeof (mode_t))) >= $ac_mid)];
28583test_array [0] = 0
28584
28585  ;
28586  return 0;
28587}
28588_ACEOF
28589rm -f conftest.$ac_objext
28590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28591  (eval $ac_compile) 2>conftest.er1
28592  ac_status=$?
28593  grep -v '^ *+' conftest.er1 >conftest.err
28594  rm -f conftest.er1
28595  cat conftest.err >&5
28596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597  (exit $ac_status); } &&
28598	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600  (eval $ac_try) 2>&5
28601  ac_status=$?
28602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603  (exit $ac_status); }; } &&
28604	 { ac_try='test -s conftest.$ac_objext'
28605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606  (eval $ac_try) 2>&5
28607  ac_status=$?
28608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609  (exit $ac_status); }; }; then
28610  ac_lo=$ac_mid; break
28611else
28612  echo "$as_me: failed program was:" >&5
28613sed 's/^/| /' conftest.$ac_ext >&5
28614
28615ac_hi=`expr '(' $ac_mid ')' - 1`
28616		       if test $ac_mid -le $ac_hi; then
28617			 ac_lo= ac_hi=
28618			 break
28619		       fi
28620		       ac_mid=`expr 2 '*' $ac_mid`
28621fi
28622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28623  done
28624else
28625  echo "$as_me: failed program was:" >&5
28626sed 's/^/| /' conftest.$ac_ext >&5
28627
28628ac_lo= ac_hi=
28629fi
28630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28631fi
28632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28633# Binary search between lo and hi bounds.
28634while test "x$ac_lo" != "x$ac_hi"; do
28635  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28636  cat >conftest.$ac_ext <<_ACEOF
28637/* confdefs.h.  */
28638_ACEOF
28639cat confdefs.h >>conftest.$ac_ext
28640cat >>conftest.$ac_ext <<_ACEOF
28641/* end confdefs.h.  */
28642$ac_includes_default
28643int
28644main ()
28645{
28646static int test_array [1 - 2 * !(((long) (sizeof (mode_t))) <= $ac_mid)];
28647test_array [0] = 0
28648
28649  ;
28650  return 0;
28651}
28652_ACEOF
28653rm -f conftest.$ac_objext
28654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28655  (eval $ac_compile) 2>conftest.er1
28656  ac_status=$?
28657  grep -v '^ *+' conftest.er1 >conftest.err
28658  rm -f conftest.er1
28659  cat conftest.err >&5
28660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661  (exit $ac_status); } &&
28662	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664  (eval $ac_try) 2>&5
28665  ac_status=$?
28666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667  (exit $ac_status); }; } &&
28668	 { ac_try='test -s conftest.$ac_objext'
28669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670  (eval $ac_try) 2>&5
28671  ac_status=$?
28672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673  (exit $ac_status); }; }; then
28674  ac_hi=$ac_mid
28675else
28676  echo "$as_me: failed program was:" >&5
28677sed 's/^/| /' conftest.$ac_ext >&5
28678
28679ac_lo=`expr '(' $ac_mid ')' + 1`
28680fi
28681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28682done
28683case $ac_lo in
28684?*) ac_cv_sizeof_mode_t=$ac_lo;;
28685'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (mode_t), 77
28686See \`config.log' for more details." >&5
28687echo "$as_me: error: cannot compute sizeof (mode_t), 77
28688See \`config.log' for more details." >&2;}
28689   { (exit 1); exit 1; }; } ;;
28690esac
28691else
28692  if test "$cross_compiling" = yes; then
28693  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
28694echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
28695   { (exit 1); exit 1; }; }
28696else
28697  cat >conftest.$ac_ext <<_ACEOF
28698/* confdefs.h.  */
28699_ACEOF
28700cat confdefs.h >>conftest.$ac_ext
28701cat >>conftest.$ac_ext <<_ACEOF
28702/* end confdefs.h.  */
28703$ac_includes_default
28704long longval () { return (long) (sizeof (mode_t)); }
28705unsigned long ulongval () { return (long) (sizeof (mode_t)); }
28706#include <stdio.h>
28707#include <stdlib.h>
28708int
28709main ()
28710{
28711
28712  FILE *f = fopen ("conftest.val", "w");
28713  if (! f)
28714    exit (1);
28715  if (((long) (sizeof (mode_t))) < 0)
28716    {
28717      long i = longval ();
28718      if (i != ((long) (sizeof (mode_t))))
28719	exit (1);
28720      fprintf (f, "%ld\n", i);
28721    }
28722  else
28723    {
28724      unsigned long i = ulongval ();
28725      if (i != ((long) (sizeof (mode_t))))
28726	exit (1);
28727      fprintf (f, "%lu\n", i);
28728    }
28729  exit (ferror (f) || fclose (f) != 0);
28730
28731  ;
28732  return 0;
28733}
28734_ACEOF
28735rm -f conftest$ac_exeext
28736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737  (eval $ac_link) 2>&5
28738  ac_status=$?
28739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742  (eval $ac_try) 2>&5
28743  ac_status=$?
28744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745  (exit $ac_status); }; }; then
28746  ac_cv_sizeof_mode_t=`cat conftest.val`
28747else
28748  echo "$as_me: program exited with status $ac_status" >&5
28749echo "$as_me: failed program was:" >&5
28750sed 's/^/| /' conftest.$ac_ext >&5
28751
28752( exit $ac_status )
28753{ { echo "$as_me:$LINENO: error: cannot compute sizeof (mode_t), 77
28754See \`config.log' for more details." >&5
28755echo "$as_me: error: cannot compute sizeof (mode_t), 77
28756See \`config.log' for more details." >&2;}
28757   { (exit 1); exit 1; }; }
28758fi
28759rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28760fi
28761fi
28762rm -f conftest.val
28763else
28764  ac_cv_sizeof_mode_t=0
28765fi
28766fi
28767echo "$as_me:$LINENO: result: $ac_cv_sizeof_mode_t" >&5
28768echo "${ECHO_T}$ac_cv_sizeof_mode_t" >&6
28769cat >>confdefs.h <<_ACEOF
28770#define SIZEOF_MODE_T $ac_cv_sizeof_mode_t
28771_ACEOF
28772
28773
28774echo "$as_me:$LINENO: checking for off_t" >&5
28775echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28776if test "${ac_cv_type_off_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 ((off_t *) 0)
28790  return 0;
28791if (sizeof (off_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"			 || test ! -s conftest.err'
28807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28808  (eval $ac_try) 2>&5
28809  ac_status=$?
28810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811  (exit $ac_status); }; } &&
28812	 { ac_try='test -s conftest.$ac_objext'
28813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28814  (eval $ac_try) 2>&5
28815  ac_status=$?
28816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817  (exit $ac_status); }; }; then
28818  ac_cv_type_off_t=yes
28819else
28820  echo "$as_me: failed program was:" >&5
28821sed 's/^/| /' conftest.$ac_ext >&5
28822
28823ac_cv_type_off_t=no
28824fi
28825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28826fi
28827echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28828echo "${ECHO_T}$ac_cv_type_off_t" >&6
28829
28830echo "$as_me:$LINENO: checking size of off_t" >&5
28831echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
28832if test "${ac_cv_sizeof_off_t+set}" = set; then
28833  echo $ECHO_N "(cached) $ECHO_C" >&6
28834else
28835  if test "$ac_cv_type_off_t" = yes; then
28836  # The cast to unsigned long works around a bug in the HP C Compiler
28837  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28838  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28839  # This bug is HP SR number 8606223364.
28840  if test "$cross_compiling" = yes; then
28841  # Depending upon the size, compute the lo and hi bounds.
28842cat >conftest.$ac_ext <<_ACEOF
28843/* confdefs.h.  */
28844_ACEOF
28845cat confdefs.h >>conftest.$ac_ext
28846cat >>conftest.$ac_ext <<_ACEOF
28847/* end confdefs.h.  */
28848$ac_includes_default
28849int
28850main ()
28851{
28852static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
28853test_array [0] = 0
28854
28855  ;
28856  return 0;
28857}
28858_ACEOF
28859rm -f conftest.$ac_objext
28860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28861  (eval $ac_compile) 2>conftest.er1
28862  ac_status=$?
28863  grep -v '^ *+' conftest.er1 >conftest.err
28864  rm -f conftest.er1
28865  cat conftest.err >&5
28866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867  (exit $ac_status); } &&
28868	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870  (eval $ac_try) 2>&5
28871  ac_status=$?
28872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873  (exit $ac_status); }; } &&
28874	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28880  ac_lo=0 ac_mid=0
28881  while :; do
28882    cat >conftest.$ac_ext <<_ACEOF
28883/* confdefs.h.  */
28884_ACEOF
28885cat confdefs.h >>conftest.$ac_ext
28886cat >>conftest.$ac_ext <<_ACEOF
28887/* end confdefs.h.  */
28888$ac_includes_default
28889int
28890main ()
28891{
28892static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
28893test_array [0] = 0
28894
28895  ;
28896  return 0;
28897}
28898_ACEOF
28899rm -f conftest.$ac_objext
28900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28901  (eval $ac_compile) 2>conftest.er1
28902  ac_status=$?
28903  grep -v '^ *+' conftest.er1 >conftest.err
28904  rm -f conftest.er1
28905  cat conftest.err >&5
28906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907  (exit $ac_status); } &&
28908	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910  (eval $ac_try) 2>&5
28911  ac_status=$?
28912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913  (exit $ac_status); }; } &&
28914	 { ac_try='test -s conftest.$ac_objext'
28915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28916  (eval $ac_try) 2>&5
28917  ac_status=$?
28918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919  (exit $ac_status); }; }; then
28920  ac_hi=$ac_mid; break
28921else
28922  echo "$as_me: failed program was:" >&5
28923sed 's/^/| /' conftest.$ac_ext >&5
28924
28925ac_lo=`expr $ac_mid + 1`
28926		    if test $ac_lo -le $ac_mid; then
28927		      ac_lo= ac_hi=
28928		      break
28929		    fi
28930		    ac_mid=`expr 2 '*' $ac_mid + 1`
28931fi
28932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28933  done
28934else
28935  echo "$as_me: failed program was:" >&5
28936sed 's/^/| /' conftest.$ac_ext >&5
28937
28938cat >conftest.$ac_ext <<_ACEOF
28939/* confdefs.h.  */
28940_ACEOF
28941cat confdefs.h >>conftest.$ac_ext
28942cat >>conftest.$ac_ext <<_ACEOF
28943/* end confdefs.h.  */
28944$ac_includes_default
28945int
28946main ()
28947{
28948static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
28949test_array [0] = 0
28950
28951  ;
28952  return 0;
28953}
28954_ACEOF
28955rm -f conftest.$ac_objext
28956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28957  (eval $ac_compile) 2>conftest.er1
28958  ac_status=$?
28959  grep -v '^ *+' conftest.er1 >conftest.err
28960  rm -f conftest.er1
28961  cat conftest.err >&5
28962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963  (exit $ac_status); } &&
28964	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28966  (eval $ac_try) 2>&5
28967  ac_status=$?
28968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969  (exit $ac_status); }; } &&
28970	 { ac_try='test -s conftest.$ac_objext'
28971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28972  (eval $ac_try) 2>&5
28973  ac_status=$?
28974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975  (exit $ac_status); }; }; then
28976  ac_hi=-1 ac_mid=-1
28977  while :; do
28978    cat >conftest.$ac_ext <<_ACEOF
28979/* confdefs.h.  */
28980_ACEOF
28981cat confdefs.h >>conftest.$ac_ext
28982cat >>conftest.$ac_ext <<_ACEOF
28983/* end confdefs.h.  */
28984$ac_includes_default
28985int
28986main ()
28987{
28988static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
28989test_array [0] = 0
28990
28991  ;
28992  return 0;
28993}
28994_ACEOF
28995rm -f conftest.$ac_objext
28996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28997  (eval $ac_compile) 2>conftest.er1
28998  ac_status=$?
28999  grep -v '^ *+' conftest.er1 >conftest.err
29000  rm -f conftest.er1
29001  cat conftest.err >&5
29002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003  (exit $ac_status); } &&
29004	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006  (eval $ac_try) 2>&5
29007  ac_status=$?
29008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009  (exit $ac_status); }; } &&
29010	 { ac_try='test -s conftest.$ac_objext'
29011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012  (eval $ac_try) 2>&5
29013  ac_status=$?
29014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015  (exit $ac_status); }; }; then
29016  ac_lo=$ac_mid; break
29017else
29018  echo "$as_me: failed program was:" >&5
29019sed 's/^/| /' conftest.$ac_ext >&5
29020
29021ac_hi=`expr '(' $ac_mid ')' - 1`
29022		       if test $ac_mid -le $ac_hi; then
29023			 ac_lo= ac_hi=
29024			 break
29025		       fi
29026		       ac_mid=`expr 2 '*' $ac_mid`
29027fi
29028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29029  done
29030else
29031  echo "$as_me: failed program was:" >&5
29032sed 's/^/| /' conftest.$ac_ext >&5
29033
29034ac_lo= ac_hi=
29035fi
29036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29037fi
29038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29039# Binary search between lo and hi bounds.
29040while test "x$ac_lo" != "x$ac_hi"; do
29041  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29042  cat >conftest.$ac_ext <<_ACEOF
29043/* confdefs.h.  */
29044_ACEOF
29045cat confdefs.h >>conftest.$ac_ext
29046cat >>conftest.$ac_ext <<_ACEOF
29047/* end confdefs.h.  */
29048$ac_includes_default
29049int
29050main ()
29051{
29052static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
29053test_array [0] = 0
29054
29055  ;
29056  return 0;
29057}
29058_ACEOF
29059rm -f conftest.$ac_objext
29060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29061  (eval $ac_compile) 2>conftest.er1
29062  ac_status=$?
29063  grep -v '^ *+' conftest.er1 >conftest.err
29064  rm -f conftest.er1
29065  cat conftest.err >&5
29066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067  (exit $ac_status); } &&
29068	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29070  (eval $ac_try) 2>&5
29071  ac_status=$?
29072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073  (exit $ac_status); }; } &&
29074	 { ac_try='test -s conftest.$ac_objext'
29075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29076  (eval $ac_try) 2>&5
29077  ac_status=$?
29078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079  (exit $ac_status); }; }; then
29080  ac_hi=$ac_mid
29081else
29082  echo "$as_me: failed program was:" >&5
29083sed 's/^/| /' conftest.$ac_ext >&5
29084
29085ac_lo=`expr '(' $ac_mid ')' + 1`
29086fi
29087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29088done
29089case $ac_lo in
29090?*) ac_cv_sizeof_off_t=$ac_lo;;
29091'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
29092See \`config.log' for more details." >&5
29093echo "$as_me: error: cannot compute sizeof (off_t), 77
29094See \`config.log' for more details." >&2;}
29095   { (exit 1); exit 1; }; } ;;
29096esac
29097else
29098  if test "$cross_compiling" = yes; then
29099  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
29100echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
29101   { (exit 1); exit 1; }; }
29102else
29103  cat >conftest.$ac_ext <<_ACEOF
29104/* confdefs.h.  */
29105_ACEOF
29106cat confdefs.h >>conftest.$ac_ext
29107cat >>conftest.$ac_ext <<_ACEOF
29108/* end confdefs.h.  */
29109$ac_includes_default
29110long longval () { return (long) (sizeof (off_t)); }
29111unsigned long ulongval () { return (long) (sizeof (off_t)); }
29112#include <stdio.h>
29113#include <stdlib.h>
29114int
29115main ()
29116{
29117
29118  FILE *f = fopen ("conftest.val", "w");
29119  if (! f)
29120    exit (1);
29121  if (((long) (sizeof (off_t))) < 0)
29122    {
29123      long i = longval ();
29124      if (i != ((long) (sizeof (off_t))))
29125	exit (1);
29126      fprintf (f, "%ld\n", i);
29127    }
29128  else
29129    {
29130      unsigned long i = ulongval ();
29131      if (i != ((long) (sizeof (off_t))))
29132	exit (1);
29133      fprintf (f, "%lu\n", i);
29134    }
29135  exit (ferror (f) || fclose (f) != 0);
29136
29137  ;
29138  return 0;
29139}
29140_ACEOF
29141rm -f conftest$ac_exeext
29142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29143  (eval $ac_link) 2>&5
29144  ac_status=$?
29145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148  (eval $ac_try) 2>&5
29149  ac_status=$?
29150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151  (exit $ac_status); }; }; then
29152  ac_cv_sizeof_off_t=`cat conftest.val`
29153else
29154  echo "$as_me: program exited with status $ac_status" >&5
29155echo "$as_me: failed program was:" >&5
29156sed 's/^/| /' conftest.$ac_ext >&5
29157
29158( exit $ac_status )
29159{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
29160See \`config.log' for more details." >&5
29161echo "$as_me: error: cannot compute sizeof (off_t), 77
29162See \`config.log' for more details." >&2;}
29163   { (exit 1); exit 1; }; }
29164fi
29165rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29166fi
29167fi
29168rm -f conftest.val
29169else
29170  ac_cv_sizeof_off_t=0
29171fi
29172fi
29173echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
29174echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
29175cat >>confdefs.h <<_ACEOF
29176#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
29177_ACEOF
29178
29179
29180echo "$as_me:$LINENO: checking for ssize_t" >&5
29181echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29182if test "${ac_cv_type_ssize_t+set}" = set; then
29183  echo $ECHO_N "(cached) $ECHO_C" >&6
29184else
29185  cat >conftest.$ac_ext <<_ACEOF
29186/* confdefs.h.  */
29187_ACEOF
29188cat confdefs.h >>conftest.$ac_ext
29189cat >>conftest.$ac_ext <<_ACEOF
29190/* end confdefs.h.  */
29191$ac_includes_default
29192int
29193main ()
29194{
29195if ((ssize_t *) 0)
29196  return 0;
29197if (sizeof (ssize_t))
29198  return 0;
29199  ;
29200  return 0;
29201}
29202_ACEOF
29203rm -f conftest.$ac_objext
29204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29205  (eval $ac_compile) 2>conftest.er1
29206  ac_status=$?
29207  grep -v '^ *+' conftest.er1 >conftest.err
29208  rm -f conftest.er1
29209  cat conftest.err >&5
29210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211  (exit $ac_status); } &&
29212	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214  (eval $ac_try) 2>&5
29215  ac_status=$?
29216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217  (exit $ac_status); }; } &&
29218	 { ac_try='test -s conftest.$ac_objext'
29219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220  (eval $ac_try) 2>&5
29221  ac_status=$?
29222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223  (exit $ac_status); }; }; then
29224  ac_cv_type_ssize_t=yes
29225else
29226  echo "$as_me: failed program was:" >&5
29227sed 's/^/| /' conftest.$ac_ext >&5
29228
29229ac_cv_type_ssize_t=no
29230fi
29231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29232fi
29233echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29234echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29235
29236echo "$as_me:$LINENO: checking size of ssize_t" >&5
29237echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
29238if test "${ac_cv_sizeof_ssize_t+set}" = set; then
29239  echo $ECHO_N "(cached) $ECHO_C" >&6
29240else
29241  if test "$ac_cv_type_ssize_t" = yes; then
29242  # The cast to unsigned long works around a bug in the HP C Compiler
29243  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29244  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29245  # This bug is HP SR number 8606223364.
29246  if test "$cross_compiling" = yes; then
29247  # Depending upon the size, compute the lo and hi bounds.
29248cat >conftest.$ac_ext <<_ACEOF
29249/* confdefs.h.  */
29250_ACEOF
29251cat confdefs.h >>conftest.$ac_ext
29252cat >>conftest.$ac_ext <<_ACEOF
29253/* end confdefs.h.  */
29254$ac_includes_default
29255int
29256main ()
29257{
29258static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
29259test_array [0] = 0
29260
29261  ;
29262  return 0;
29263}
29264_ACEOF
29265rm -f conftest.$ac_objext
29266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29267  (eval $ac_compile) 2>conftest.er1
29268  ac_status=$?
29269  grep -v '^ *+' conftest.er1 >conftest.err
29270  rm -f conftest.er1
29271  cat conftest.err >&5
29272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273  (exit $ac_status); } &&
29274	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276  (eval $ac_try) 2>&5
29277  ac_status=$?
29278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279  (exit $ac_status); }; } &&
29280	 { ac_try='test -s conftest.$ac_objext'
29281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282  (eval $ac_try) 2>&5
29283  ac_status=$?
29284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285  (exit $ac_status); }; }; then
29286  ac_lo=0 ac_mid=0
29287  while :; do
29288    cat >conftest.$ac_ext <<_ACEOF
29289/* confdefs.h.  */
29290_ACEOF
29291cat confdefs.h >>conftest.$ac_ext
29292cat >>conftest.$ac_ext <<_ACEOF
29293/* end confdefs.h.  */
29294$ac_includes_default
29295int
29296main ()
29297{
29298static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
29299test_array [0] = 0
29300
29301  ;
29302  return 0;
29303}
29304_ACEOF
29305rm -f conftest.$ac_objext
29306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29307  (eval $ac_compile) 2>conftest.er1
29308  ac_status=$?
29309  grep -v '^ *+' conftest.er1 >conftest.err
29310  rm -f conftest.er1
29311  cat conftest.err >&5
29312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313  (exit $ac_status); } &&
29314	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29316  (eval $ac_try) 2>&5
29317  ac_status=$?
29318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319  (exit $ac_status); }; } &&
29320	 { ac_try='test -s conftest.$ac_objext'
29321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322  (eval $ac_try) 2>&5
29323  ac_status=$?
29324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325  (exit $ac_status); }; }; then
29326  ac_hi=$ac_mid; break
29327else
29328  echo "$as_me: failed program was:" >&5
29329sed 's/^/| /' conftest.$ac_ext >&5
29330
29331ac_lo=`expr $ac_mid + 1`
29332		    if test $ac_lo -le $ac_mid; then
29333		      ac_lo= ac_hi=
29334		      break
29335		    fi
29336		    ac_mid=`expr 2 '*' $ac_mid + 1`
29337fi
29338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29339  done
29340else
29341  echo "$as_me: failed program was:" >&5
29342sed 's/^/| /' conftest.$ac_ext >&5
29343
29344cat >conftest.$ac_ext <<_ACEOF
29345/* confdefs.h.  */
29346_ACEOF
29347cat confdefs.h >>conftest.$ac_ext
29348cat >>conftest.$ac_ext <<_ACEOF
29349/* end confdefs.h.  */
29350$ac_includes_default
29351int
29352main ()
29353{
29354static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
29355test_array [0] = 0
29356
29357  ;
29358  return 0;
29359}
29360_ACEOF
29361rm -f conftest.$ac_objext
29362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29363  (eval $ac_compile) 2>conftest.er1
29364  ac_status=$?
29365  grep -v '^ *+' conftest.er1 >conftest.err
29366  rm -f conftest.er1
29367  cat conftest.err >&5
29368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369  (exit $ac_status); } &&
29370	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29372  (eval $ac_try) 2>&5
29373  ac_status=$?
29374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375  (exit $ac_status); }; } &&
29376	 { ac_try='test -s conftest.$ac_objext'
29377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29378  (eval $ac_try) 2>&5
29379  ac_status=$?
29380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381  (exit $ac_status); }; }; then
29382  ac_hi=-1 ac_mid=-1
29383  while :; do
29384    cat >conftest.$ac_ext <<_ACEOF
29385/* confdefs.h.  */
29386_ACEOF
29387cat confdefs.h >>conftest.$ac_ext
29388cat >>conftest.$ac_ext <<_ACEOF
29389/* end confdefs.h.  */
29390$ac_includes_default
29391int
29392main ()
29393{
29394static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
29395test_array [0] = 0
29396
29397  ;
29398  return 0;
29399}
29400_ACEOF
29401rm -f conftest.$ac_objext
29402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29403  (eval $ac_compile) 2>conftest.er1
29404  ac_status=$?
29405  grep -v '^ *+' conftest.er1 >conftest.err
29406  rm -f conftest.er1
29407  cat conftest.err >&5
29408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409  (exit $ac_status); } &&
29410	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29412  (eval $ac_try) 2>&5
29413  ac_status=$?
29414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415  (exit $ac_status); }; } &&
29416	 { ac_try='test -s conftest.$ac_objext'
29417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29418  (eval $ac_try) 2>&5
29419  ac_status=$?
29420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421  (exit $ac_status); }; }; then
29422  ac_lo=$ac_mid; break
29423else
29424  echo "$as_me: failed program was:" >&5
29425sed 's/^/| /' conftest.$ac_ext >&5
29426
29427ac_hi=`expr '(' $ac_mid ')' - 1`
29428		       if test $ac_mid -le $ac_hi; then
29429			 ac_lo= ac_hi=
29430			 break
29431		       fi
29432		       ac_mid=`expr 2 '*' $ac_mid`
29433fi
29434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29435  done
29436else
29437  echo "$as_me: failed program was:" >&5
29438sed 's/^/| /' conftest.$ac_ext >&5
29439
29440ac_lo= ac_hi=
29441fi
29442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29443fi
29444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29445# Binary search between lo and hi bounds.
29446while test "x$ac_lo" != "x$ac_hi"; do
29447  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29448  cat >conftest.$ac_ext <<_ACEOF
29449/* confdefs.h.  */
29450_ACEOF
29451cat confdefs.h >>conftest.$ac_ext
29452cat >>conftest.$ac_ext <<_ACEOF
29453/* end confdefs.h.  */
29454$ac_includes_default
29455int
29456main ()
29457{
29458static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
29459test_array [0] = 0
29460
29461  ;
29462  return 0;
29463}
29464_ACEOF
29465rm -f conftest.$ac_objext
29466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29467  (eval $ac_compile) 2>conftest.er1
29468  ac_status=$?
29469  grep -v '^ *+' conftest.er1 >conftest.err
29470  rm -f conftest.er1
29471  cat conftest.err >&5
29472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473  (exit $ac_status); } &&
29474	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29476  (eval $ac_try) 2>&5
29477  ac_status=$?
29478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479  (exit $ac_status); }; } &&
29480	 { ac_try='test -s conftest.$ac_objext'
29481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482  (eval $ac_try) 2>&5
29483  ac_status=$?
29484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485  (exit $ac_status); }; }; then
29486  ac_hi=$ac_mid
29487else
29488  echo "$as_me: failed program was:" >&5
29489sed 's/^/| /' conftest.$ac_ext >&5
29490
29491ac_lo=`expr '(' $ac_mid ')' + 1`
29492fi
29493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29494done
29495case $ac_lo in
29496?*) ac_cv_sizeof_ssize_t=$ac_lo;;
29497'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
29498See \`config.log' for more details." >&5
29499echo "$as_me: error: cannot compute sizeof (ssize_t), 77
29500See \`config.log' for more details." >&2;}
29501   { (exit 1); exit 1; }; } ;;
29502esac
29503else
29504  if test "$cross_compiling" = yes; then
29505  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
29506echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
29507   { (exit 1); exit 1; }; }
29508else
29509  cat >conftest.$ac_ext <<_ACEOF
29510/* confdefs.h.  */
29511_ACEOF
29512cat confdefs.h >>conftest.$ac_ext
29513cat >>conftest.$ac_ext <<_ACEOF
29514/* end confdefs.h.  */
29515$ac_includes_default
29516long longval () { return (long) (sizeof (ssize_t)); }
29517unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
29518#include <stdio.h>
29519#include <stdlib.h>
29520int
29521main ()
29522{
29523
29524  FILE *f = fopen ("conftest.val", "w");
29525  if (! f)
29526    exit (1);
29527  if (((long) (sizeof (ssize_t))) < 0)
29528    {
29529      long i = longval ();
29530      if (i != ((long) (sizeof (ssize_t))))
29531	exit (1);
29532      fprintf (f, "%ld\n", i);
29533    }
29534  else
29535    {
29536      unsigned long i = ulongval ();
29537      if (i != ((long) (sizeof (ssize_t))))
29538	exit (1);
29539      fprintf (f, "%lu\n", i);
29540    }
29541  exit (ferror (f) || fclose (f) != 0);
29542
29543  ;
29544  return 0;
29545}
29546_ACEOF
29547rm -f conftest$ac_exeext
29548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29549  (eval $ac_link) 2>&5
29550  ac_status=$?
29551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554  (eval $ac_try) 2>&5
29555  ac_status=$?
29556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557  (exit $ac_status); }; }; then
29558  ac_cv_sizeof_ssize_t=`cat conftest.val`
29559else
29560  echo "$as_me: program exited with status $ac_status" >&5
29561echo "$as_me: failed program was:" >&5
29562sed 's/^/| /' conftest.$ac_ext >&5
29563
29564( exit $ac_status )
29565{ { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
29566See \`config.log' for more details." >&5
29567echo "$as_me: error: cannot compute sizeof (ssize_t), 77
29568See \`config.log' for more details." >&2;}
29569   { (exit 1); exit 1; }; }
29570fi
29571rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29572fi
29573fi
29574rm -f conftest.val
29575else
29576  ac_cv_sizeof_ssize_t=0
29577fi
29578fi
29579echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
29580echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
29581cat >>confdefs.h <<_ACEOF
29582#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
29583_ACEOF
29584
29585
29586echo "$as_me:$LINENO: checking for time_t" >&5
29587echo $ECHO_N "checking for time_t... $ECHO_C" >&6
29588if test "${ac_cv_type_time_t+set}" = set; then
29589  echo $ECHO_N "(cached) $ECHO_C" >&6
29590else
29591  cat >conftest.$ac_ext <<_ACEOF
29592/* confdefs.h.  */
29593_ACEOF
29594cat confdefs.h >>conftest.$ac_ext
29595cat >>conftest.$ac_ext <<_ACEOF
29596/* end confdefs.h.  */
29597$ac_includes_default
29598int
29599main ()
29600{
29601if ((time_t *) 0)
29602  return 0;
29603if (sizeof (time_t))
29604  return 0;
29605  ;
29606  return 0;
29607}
29608_ACEOF
29609rm -f conftest.$ac_objext
29610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29611  (eval $ac_compile) 2>conftest.er1
29612  ac_status=$?
29613  grep -v '^ *+' conftest.er1 >conftest.err
29614  rm -f conftest.er1
29615  cat conftest.err >&5
29616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617  (exit $ac_status); } &&
29618	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29620  (eval $ac_try) 2>&5
29621  ac_status=$?
29622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623  (exit $ac_status); }; } &&
29624	 { ac_try='test -s conftest.$ac_objext'
29625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29626  (eval $ac_try) 2>&5
29627  ac_status=$?
29628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629  (exit $ac_status); }; }; then
29630  ac_cv_type_time_t=yes
29631else
29632  echo "$as_me: failed program was:" >&5
29633sed 's/^/| /' conftest.$ac_ext >&5
29634
29635ac_cv_type_time_t=no
29636fi
29637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29638fi
29639echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
29640echo "${ECHO_T}$ac_cv_type_time_t" >&6
29641
29642echo "$as_me:$LINENO: checking size of time_t" >&5
29643echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
29644if test "${ac_cv_sizeof_time_t+set}" = set; then
29645  echo $ECHO_N "(cached) $ECHO_C" >&6
29646else
29647  if test "$ac_cv_type_time_t" = yes; then
29648  # The cast to unsigned long works around a bug in the HP C Compiler
29649  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29650  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29651  # This bug is HP SR number 8606223364.
29652  if test "$cross_compiling" = yes; then
29653  # Depending upon the size, compute the lo and hi bounds.
29654cat >conftest.$ac_ext <<_ACEOF
29655/* confdefs.h.  */
29656_ACEOF
29657cat confdefs.h >>conftest.$ac_ext
29658cat >>conftest.$ac_ext <<_ACEOF
29659/* end confdefs.h.  */
29660$ac_includes_default
29661int
29662main ()
29663{
29664static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
29665test_array [0] = 0
29666
29667  ;
29668  return 0;
29669}
29670_ACEOF
29671rm -f conftest.$ac_objext
29672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29673  (eval $ac_compile) 2>conftest.er1
29674  ac_status=$?
29675  grep -v '^ *+' conftest.er1 >conftest.err
29676  rm -f conftest.er1
29677  cat conftest.err >&5
29678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679  (exit $ac_status); } &&
29680	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682  (eval $ac_try) 2>&5
29683  ac_status=$?
29684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685  (exit $ac_status); }; } &&
29686	 { ac_try='test -s conftest.$ac_objext'
29687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29688  (eval $ac_try) 2>&5
29689  ac_status=$?
29690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691  (exit $ac_status); }; }; then
29692  ac_lo=0 ac_mid=0
29693  while :; do
29694    cat >conftest.$ac_ext <<_ACEOF
29695/* confdefs.h.  */
29696_ACEOF
29697cat confdefs.h >>conftest.$ac_ext
29698cat >>conftest.$ac_ext <<_ACEOF
29699/* end confdefs.h.  */
29700$ac_includes_default
29701int
29702main ()
29703{
29704static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
29705test_array [0] = 0
29706
29707  ;
29708  return 0;
29709}
29710_ACEOF
29711rm -f conftest.$ac_objext
29712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29713  (eval $ac_compile) 2>conftest.er1
29714  ac_status=$?
29715  grep -v '^ *+' conftest.er1 >conftest.err
29716  rm -f conftest.er1
29717  cat conftest.err >&5
29718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719  (exit $ac_status); } &&
29720	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722  (eval $ac_try) 2>&5
29723  ac_status=$?
29724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725  (exit $ac_status); }; } &&
29726	 { ac_try='test -s conftest.$ac_objext'
29727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728  (eval $ac_try) 2>&5
29729  ac_status=$?
29730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731  (exit $ac_status); }; }; then
29732  ac_hi=$ac_mid; break
29733else
29734  echo "$as_me: failed program was:" >&5
29735sed 's/^/| /' conftest.$ac_ext >&5
29736
29737ac_lo=`expr $ac_mid + 1`
29738		    if test $ac_lo -le $ac_mid; then
29739		      ac_lo= ac_hi=
29740		      break
29741		    fi
29742		    ac_mid=`expr 2 '*' $ac_mid + 1`
29743fi
29744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29745  done
29746else
29747  echo "$as_me: failed program was:" >&5
29748sed 's/^/| /' conftest.$ac_ext >&5
29749
29750cat >conftest.$ac_ext <<_ACEOF
29751/* confdefs.h.  */
29752_ACEOF
29753cat confdefs.h >>conftest.$ac_ext
29754cat >>conftest.$ac_ext <<_ACEOF
29755/* end confdefs.h.  */
29756$ac_includes_default
29757int
29758main ()
29759{
29760static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
29761test_array [0] = 0
29762
29763  ;
29764  return 0;
29765}
29766_ACEOF
29767rm -f conftest.$ac_objext
29768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29769  (eval $ac_compile) 2>conftest.er1
29770  ac_status=$?
29771  grep -v '^ *+' conftest.er1 >conftest.err
29772  rm -f conftest.er1
29773  cat conftest.err >&5
29774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775  (exit $ac_status); } &&
29776	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29778  (eval $ac_try) 2>&5
29779  ac_status=$?
29780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781  (exit $ac_status); }; } &&
29782	 { ac_try='test -s conftest.$ac_objext'
29783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29784  (eval $ac_try) 2>&5
29785  ac_status=$?
29786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787  (exit $ac_status); }; }; then
29788  ac_hi=-1 ac_mid=-1
29789  while :; do
29790    cat >conftest.$ac_ext <<_ACEOF
29791/* confdefs.h.  */
29792_ACEOF
29793cat confdefs.h >>conftest.$ac_ext
29794cat >>conftest.$ac_ext <<_ACEOF
29795/* end confdefs.h.  */
29796$ac_includes_default
29797int
29798main ()
29799{
29800static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
29801test_array [0] = 0
29802
29803  ;
29804  return 0;
29805}
29806_ACEOF
29807rm -f conftest.$ac_objext
29808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29809  (eval $ac_compile) 2>conftest.er1
29810  ac_status=$?
29811  grep -v '^ *+' conftest.er1 >conftest.err
29812  rm -f conftest.er1
29813  cat conftest.err >&5
29814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815  (exit $ac_status); } &&
29816	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818  (eval $ac_try) 2>&5
29819  ac_status=$?
29820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821  (exit $ac_status); }; } &&
29822	 { ac_try='test -s conftest.$ac_objext'
29823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824  (eval $ac_try) 2>&5
29825  ac_status=$?
29826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827  (exit $ac_status); }; }; then
29828  ac_lo=$ac_mid; break
29829else
29830  echo "$as_me: failed program was:" >&5
29831sed 's/^/| /' conftest.$ac_ext >&5
29832
29833ac_hi=`expr '(' $ac_mid ')' - 1`
29834		       if test $ac_mid -le $ac_hi; then
29835			 ac_lo= ac_hi=
29836			 break
29837		       fi
29838		       ac_mid=`expr 2 '*' $ac_mid`
29839fi
29840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29841  done
29842else
29843  echo "$as_me: failed program was:" >&5
29844sed 's/^/| /' conftest.$ac_ext >&5
29845
29846ac_lo= ac_hi=
29847fi
29848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29849fi
29850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29851# Binary search between lo and hi bounds.
29852while test "x$ac_lo" != "x$ac_hi"; do
29853  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29854  cat >conftest.$ac_ext <<_ACEOF
29855/* confdefs.h.  */
29856_ACEOF
29857cat confdefs.h >>conftest.$ac_ext
29858cat >>conftest.$ac_ext <<_ACEOF
29859/* end confdefs.h.  */
29860$ac_includes_default
29861int
29862main ()
29863{
29864static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
29865test_array [0] = 0
29866
29867  ;
29868  return 0;
29869}
29870_ACEOF
29871rm -f conftest.$ac_objext
29872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29873  (eval $ac_compile) 2>conftest.er1
29874  ac_status=$?
29875  grep -v '^ *+' conftest.er1 >conftest.err
29876  rm -f conftest.er1
29877  cat conftest.err >&5
29878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879  (exit $ac_status); } &&
29880	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29882  (eval $ac_try) 2>&5
29883  ac_status=$?
29884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885  (exit $ac_status); }; } &&
29886	 { ac_try='test -s conftest.$ac_objext'
29887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888  (eval $ac_try) 2>&5
29889  ac_status=$?
29890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891  (exit $ac_status); }; }; then
29892  ac_hi=$ac_mid
29893else
29894  echo "$as_me: failed program was:" >&5
29895sed 's/^/| /' conftest.$ac_ext >&5
29896
29897ac_lo=`expr '(' $ac_mid ')' + 1`
29898fi
29899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29900done
29901case $ac_lo in
29902?*) ac_cv_sizeof_time_t=$ac_lo;;
29903'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
29904See \`config.log' for more details." >&5
29905echo "$as_me: error: cannot compute sizeof (time_t), 77
29906See \`config.log' for more details." >&2;}
29907   { (exit 1); exit 1; }; } ;;
29908esac
29909else
29910  if test "$cross_compiling" = yes; then
29911  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
29912echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
29913   { (exit 1); exit 1; }; }
29914else
29915  cat >conftest.$ac_ext <<_ACEOF
29916/* confdefs.h.  */
29917_ACEOF
29918cat confdefs.h >>conftest.$ac_ext
29919cat >>conftest.$ac_ext <<_ACEOF
29920/* end confdefs.h.  */
29921$ac_includes_default
29922long longval () { return (long) (sizeof (time_t)); }
29923unsigned long ulongval () { return (long) (sizeof (time_t)); }
29924#include <stdio.h>
29925#include <stdlib.h>
29926int
29927main ()
29928{
29929
29930  FILE *f = fopen ("conftest.val", "w");
29931  if (! f)
29932    exit (1);
29933  if (((long) (sizeof (time_t))) < 0)
29934    {
29935      long i = longval ();
29936      if (i != ((long) (sizeof (time_t))))
29937	exit (1);
29938      fprintf (f, "%ld\n", i);
29939    }
29940  else
29941    {
29942      unsigned long i = ulongval ();
29943      if (i != ((long) (sizeof (time_t))))
29944	exit (1);
29945      fprintf (f, "%lu\n", i);
29946    }
29947  exit (ferror (f) || fclose (f) != 0);
29948
29949  ;
29950  return 0;
29951}
29952_ACEOF
29953rm -f conftest$ac_exeext
29954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29955  (eval $ac_link) 2>&5
29956  ac_status=$?
29957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29960  (eval $ac_try) 2>&5
29961  ac_status=$?
29962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963  (exit $ac_status); }; }; then
29964  ac_cv_sizeof_time_t=`cat conftest.val`
29965else
29966  echo "$as_me: program exited with status $ac_status" >&5
29967echo "$as_me: failed program was:" >&5
29968sed 's/^/| /' conftest.$ac_ext >&5
29969
29970( exit $ac_status )
29971{ { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
29972See \`config.log' for more details." >&5
29973echo "$as_me: error: cannot compute sizeof (time_t), 77
29974See \`config.log' for more details." >&2;}
29975   { (exit 1); exit 1; }; }
29976fi
29977rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29978fi
29979fi
29980rm -f conftest.val
29981else
29982  ac_cv_sizeof_time_t=0
29983fi
29984fi
29985echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
29986echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
29987cat >>confdefs.h <<_ACEOF
29988#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
29989_ACEOF
29990
29991
29992
29993
29994
29995# /***********************************************************************
29996# // Checks for library functions
29997# ************************************************************************/
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051for ac_func in access alloca atexit atoi atol chmod chown clock_getcpuclockid clock_getres clock_gettime ctime difftime fstat getenv getpagesize getrusage gettimeofday gmtime isatty localtime longjmp lstat memcmp memcpy memmove memset mkdir mktime mmap mprotect munmap qsort raise rmdir setjmp signal snprintf strcasecmp strchr strdup strerror strftime stricmp strncasecmp strnicmp strrchr strstr time umask utime vsnprintf
30052do
30053as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30054echo "$as_me:$LINENO: checking for $ac_func" >&5
30055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30056if eval "test \"\${$as_ac_var+set}\" = set"; then
30057  echo $ECHO_N "(cached) $ECHO_C" >&6
30058else
30059  cat >conftest.$ac_ext <<_ACEOF
30060/* confdefs.h.  */
30061_ACEOF
30062cat confdefs.h >>conftest.$ac_ext
30063cat >>conftest.$ac_ext <<_ACEOF
30064/* end confdefs.h.  */
30065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30066   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30067#define $ac_func innocuous_$ac_func
30068
30069/* System header to define __stub macros and hopefully few prototypes,
30070    which can conflict with char $ac_func (); below.
30071    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30072    <limits.h> exists even on freestanding compilers.  */
30073
30074#ifdef __STDC__
30075# include <limits.h>
30076#else
30077# include <assert.h>
30078#endif
30079
30080#undef $ac_func
30081
30082/* Override any gcc2 internal prototype to avoid an error.  */
30083#ifdef __cplusplus
30084extern "C"
30085{
30086#endif
30087/* We use char because int might match the return type of a gcc2
30088   builtin and then its argument prototype would still apply.  */
30089char $ac_func ();
30090/* The GNU C library defines this for functions which it implements
30091    to always fail with ENOSYS.  Some functions are actually named
30092    something starting with __ and the normal name is an alias.  */
30093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30094choke me
30095#else
30096char (*f) () = $ac_func;
30097#endif
30098#ifdef __cplusplus
30099}
30100#endif
30101
30102int
30103main ()
30104{
30105return f != $ac_func;
30106  ;
30107  return 0;
30108}
30109_ACEOF
30110rm -f conftest.$ac_objext conftest$ac_exeext
30111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30112  (eval $ac_link) 2>conftest.er1
30113  ac_status=$?
30114  grep -v '^ *+' conftest.er1 >conftest.err
30115  rm -f conftest.er1
30116  cat conftest.err >&5
30117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118  (exit $ac_status); } &&
30119	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30121  (eval $ac_try) 2>&5
30122  ac_status=$?
30123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124  (exit $ac_status); }; } &&
30125	 { ac_try='test -s conftest$ac_exeext'
30126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127  (eval $ac_try) 2>&5
30128  ac_status=$?
30129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130  (exit $ac_status); }; }; then
30131  eval "$as_ac_var=yes"
30132else
30133  echo "$as_me: failed program was:" >&5
30134sed 's/^/| /' conftest.$ac_ext >&5
30135
30136eval "$as_ac_var=no"
30137fi
30138rm -f conftest.err conftest.$ac_objext \
30139      conftest$ac_exeext conftest.$ac_ext
30140fi
30141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30142echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30143if test `eval echo '${'$as_ac_var'}'` = yes; then
30144  cat >>confdefs.h <<_ACEOF
30145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30146_ACEOF
30147
30148fi
30149done
30150
30151
30152
30153if test "X$GCC" = Xyes; then
30154case $host_os in
30155cygwin* | mingw* | pw32*)
30156     test "X$LIBS" != "X" && LIBS="$LIBS "
30157     LIBS="${LIBS}-lwinmm" ;;
30158*)
30159     ;;
30160esac
30161fi
30162
30163
30164
30165# /***********************************************************************
30166# // Write output files
30167# ************************************************************************/
30168
30169
30170mfx_tmp="-I$srcdir"
30171mfx_save_CPPFLAGS=$CPPFLAGS
30172test "X$mfx_tmp" = "X" || CPPFLAGS="$mfx_tmp $CPPFLAGS"
30173
30174echo "$as_me:$LINENO: checking whether your compiler passes the ACC conformance test" >&5
30175echo $ECHO_N "checking whether your compiler passes the ACC conformance test... $ECHO_C" >&6
30176
30177cat >conftest.$ac_ext <<_ACEOF
30178/* confdefs.h.  */
30179_ACEOF
30180cat confdefs.h >>conftest.$ac_ext
30181cat >>conftest.$ac_ext <<_ACEOF
30182/* end confdefs.h.  */
30183#define ACC_CONFIG_NO_HEADER 1
30184#define ACC_WANT_ACC_INCD_H 1
30185#include "src/miniacc.h"
30186
30187#define ACC_WANT_ACC_CHK_CH 1
30188#undef ACCCHK_ASSERT
30189#define ACCCHK_ASSERT(expr)     ACC_COMPILE_TIME_ASSERT_HEADER(expr)
30190#include "src/miniacc.h"
30191
30192#define ACC_WANT_ACC_CHK_CH 1
30193#undef ACCCHK_ASSERT
30194#define ACCCHK_ASSERT(expr)     ACC_COMPILE_TIME_ASSERT(expr)
30195static void test_acc_compile_time_assert(void) {
30196#include "src/miniacc.h"
30197}
30198
30199#undef NDEBUG
30200#include <assert.h>
30201#define ACC_WANT_ACC_CHK_CH 1
30202#undef ACCCHK_ASSERT
30203#define ACCCHK_ASSERT(expr)  assert(expr);
30204static int test_acc_run_time_assert(int r) {
30205#include "src/miniacc.h"
30206return r;
30207}
30208
30209int
30210main ()
30211{
30212
30213test_acc_compile_time_assert();
30214if (test_acc_run_time_assert(1) != 1) return 1;
30215
30216
30217  ;
30218  return 0;
30219}
30220_ACEOF
30221
30222mfx_tmp=FAILED
30223rm -f conftest.$ac_objext
30224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30225  (eval $ac_compile) 2>conftest.er1
30226  ac_status=$?
30227  grep -v '^ *+' conftest.er1 >conftest.err
30228  rm -f conftest.er1
30229  cat conftest.err >&5
30230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231  (exit $ac_status); } &&
30232	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30234  (eval $ac_try) 2>&5
30235  ac_status=$?
30236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237  (exit $ac_status); }; } &&
30238	 { ac_try='test -s conftest.$ac_objext'
30239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30240  (eval $ac_try) 2>&5
30241  ac_status=$?
30242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243  (exit $ac_status); }; }; then
30244  mfx_tmp=yes
30245else
30246  echo "$as_me: failed program was:" >&5
30247sed 's/^/| /' conftest.$ac_ext >&5
30248
30249fi
30250rm -f conftest.err conftest.$ac_objext
30251rm -f conftest.$ac_ext conftest.$ac_objext
30252
30253CPPFLAGS=$mfx_save_CPPFLAGS
30254
30255echo "$as_me:$LINENO: result: $mfx_tmp" >&5
30256echo "${ECHO_T}$mfx_tmp" >&6
30257case x$mfx_tmp in
30258  xpassed | xyes) ;;
30259  *)
30260    { echo "$as_me:$LINENO: " >&5
30261echo "$as_me: " >&6;}
30262    { echo "$as_me:$LINENO: Your compiler failed the ACC conformance test - for details see " >&5
30263echo "$as_me: Your compiler failed the ACC conformance test - for details see " >&6;}
30264    { echo "$as_me:$LINENO: \`config.log'. Please check that log file and consider sending" >&5
30265echo "$as_me: \`config.log'. Please check that log file and consider sending" >&6;}
30266    { echo "$as_me:$LINENO: a patch or bug-report to <${PACKAGE_BUGREPORT}>." >&5
30267echo "$as_me: a patch or bug-report to <${PACKAGE_BUGREPORT}>." >&6;}
30268    { echo "$as_me:$LINENO: Thanks for your support." >&5
30269echo "$as_me: Thanks for your support." >&6;}
30270    { echo "$as_me:$LINENO: " >&5
30271echo "$as_me: " >&6;}
30272    { { echo "$as_me:$LINENO: error: ACC conformance test failed. Stop." >&5
30273echo "$as_me: error: ACC conformance test failed. Stop." >&2;}
30274   { (exit 1); exit 1; }; }
30275    ;;
30276esac
30277
30278
30279if test -r .Conf.settings2; then
30280    . ./.Conf.settings2
30281fi
30282
30283test "X$CPPFLAGS" != "X" && CPPFLAGS="$CPPFLAGS "
30284CPPFLAGS="${CPPFLAGS}-DLZO_HAVE_CONFIG_H"
30285if test "X$enable_asm" != Xno; then
30286    CPPFLAGS="$CPPFLAGS -DLZO_USE_ASM"
30287fi
30288
30289
30290
30291
30292
30293configure_CPPFLAGS=$CPPFLAGS
30294configure_CFLAGS=$CFLAGS
30295
30296
30297
30298                                                                                ac_config_files="$ac_config_files Makefile examples/Makefile include/Makefile include/lzo/Makefile lzotest/Makefile minilzo/Makefile src/Makefile tests/Makefile"
30299
30300cat >confcache <<\_ACEOF
30301# This file is a shell script that caches the results of configure
30302# tests run on this system so they can be shared between configure
30303# scripts and configure runs, see configure's option --config-cache.
30304# It is not useful on other systems.  If it contains results you don't
30305# want to keep, you may remove or edit it.
30306#
30307# config.status only pays attention to the cache file if you give it
30308# the --recheck option to rerun configure.
30309#
30310# `ac_cv_env_foo' variables (set or unset) will be overridden when
30311# loading this file, other *unset* `ac_cv_foo' will be assigned the
30312# following values.
30313
30314_ACEOF
30315
30316# The following way of writing the cache mishandles newlines in values,
30317# but we know of no workaround that is simple, portable, and efficient.
30318# So, don't put newlines in cache variables' values.
30319# Ultrix sh set writes to stderr and can't be redirected directly,
30320# and sets the high bit in the cache file unless we assign to the vars.
30321{
30322  (set) 2>&1 |
30323    case `(ac_space=' '; set | grep ac_space) 2>&1` in
30324    *ac_space=\ *)
30325      # `set' does not quote correctly, so add quotes (double-quote
30326      # substitution turns \\\\ into \\, and sed turns \\ into \).
30327      sed -n \
30328	"s/'/'\\\\''/g;
30329	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30330      ;;
30331    *)
30332      # `set' quotes correctly as required by POSIX, so do not add quotes.
30333      sed -n \
30334	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30335      ;;
30336    esac;
30337} |
30338  sed '
30339     t clear
30340     : clear
30341     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30342     t end
30343     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30344     : end' >>confcache
30345if diff $cache_file confcache >/dev/null 2>&1; then :; else
30346  if test -w $cache_file; then
30347    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30348    cat confcache >$cache_file
30349  else
30350    echo "not updating unwritable cache $cache_file"
30351  fi
30352fi
30353rm -f confcache
30354
30355test "x$prefix" = xNONE && prefix=$ac_default_prefix
30356# Let make expand exec_prefix.
30357test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30358
30359# VPATH may cause trouble with some makes, so we remove $(srcdir),
30360# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30361# trailing colons and then remove the whole line if VPATH becomes empty
30362# (actually we leave an empty line to preserve line numbers).
30363if test "x$srcdir" = x.; then
30364  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
30365s/:*\$(srcdir):*/:/;
30366s/:*\${srcdir}:*/:/;
30367s/:*@srcdir@:*/:/;
30368s/^\([^=]*=[	 ]*\):*/\1/;
30369s/:*$//;
30370s/^[^=]*=[	 ]*$//;
30371}'
30372fi
30373
30374DEFS=-DHAVE_CONFIG_H
30375
30376ac_libobjs=
30377ac_ltlibobjs=
30378for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30379  # 1. Remove the extension, and $U if already installed.
30380  ac_i=`echo "$ac_i" |
30381	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30382  # 2. Add them.
30383  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30384  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30385done
30386LIBOBJS=$ac_libobjs
30387
30388LTLIBOBJS=$ac_ltlibobjs
30389
30390
30391if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30392  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30393Usually this means the macro was only invoked conditionally." >&5
30394echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30395Usually this means the macro was only invoked conditionally." >&2;}
30396   { (exit 1); exit 1; }; }
30397fi
30398if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30399  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30400Usually this means the macro was only invoked conditionally." >&5
30401echo "$as_me: error: conditional \"AMDEP\" was never defined.
30402Usually this means the macro was only invoked conditionally." >&2;}
30403   { (exit 1); exit 1; }; }
30404fi
30405if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30406  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30407Usually this means the macro was only invoked conditionally." >&5
30408echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30409Usually this means the macro was only invoked conditionally." >&2;}
30410   { (exit 1); exit 1; }; }
30411fi
30412if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30413  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30414Usually this means the macro was only invoked conditionally." >&5
30415echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30416Usually this means the macro was only invoked conditionally." >&2;}
30417   { (exit 1); exit 1; }; }
30418fi
30419if test -z "${LZO_USE_ASM_TRUE}" && test -z "${LZO_USE_ASM_FALSE}"; then
30420  { { echo "$as_me:$LINENO: error: conditional \"LZO_USE_ASM\" was never defined.
30421Usually this means the macro was only invoked conditionally." >&5
30422echo "$as_me: error: conditional \"LZO_USE_ASM\" was never defined.
30423Usually this means the macro was only invoked conditionally." >&2;}
30424   { (exit 1); exit 1; }; }
30425fi
30426
30427: ${CONFIG_STATUS=./config.status}
30428ac_clean_files_save=$ac_clean_files
30429ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30430{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30431echo "$as_me: creating $CONFIG_STATUS" >&6;}
30432cat >$CONFIG_STATUS <<_ACEOF
30433#! $SHELL
30434# Generated by $as_me.
30435# Run this file to recreate the current configuration.
30436# Compiler output produced by configure, useful for debugging
30437# configure, is in config.log if it exists.
30438
30439debug=false
30440ac_cs_recheck=false
30441ac_cs_silent=false
30442SHELL=\${CONFIG_SHELL-$SHELL}
30443_ACEOF
30444
30445cat >>$CONFIG_STATUS <<\_ACEOF
30446## --------------------- ##
30447## M4sh Initialization.  ##
30448## --------------------- ##
30449
30450# Be Bourne compatible
30451if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30452  emulate sh
30453  NULLCMD=:
30454  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30455  # is contrary to our usage.  Disable this feature.
30456  alias -g '${1+"$@"}'='"$@"'
30457elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30458  set -o posix
30459fi
30460DUALCASE=1; export DUALCASE # for MKS sh
30461
30462# Support unset when possible.
30463if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30464  as_unset=unset
30465else
30466  as_unset=false
30467fi
30468
30469
30470# Work around bugs in pre-3.0 UWIN ksh.
30471$as_unset ENV MAIL MAILPATH
30472PS1='$ '
30473PS2='> '
30474PS4='+ '
30475
30476# NLS nuisances.
30477for as_var in \
30478  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30479  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30480  LC_TELEPHONE LC_TIME
30481do
30482  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30483    eval $as_var=C; export $as_var
30484  else
30485    $as_unset $as_var
30486  fi
30487done
30488
30489# Required to use basename.
30490if expr a : '\(a\)' >/dev/null 2>&1; then
30491  as_expr=expr
30492else
30493  as_expr=false
30494fi
30495
30496if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30497  as_basename=basename
30498else
30499  as_basename=false
30500fi
30501
30502
30503# Name of the executable.
30504as_me=`$as_basename "$0" ||
30505$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30506	 X"$0" : 'X\(//\)$' \| \
30507	 X"$0" : 'X\(/\)$' \| \
30508	 .     : '\(.\)' 2>/dev/null ||
30509echo X/"$0" |
30510    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30511  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
30512  	  /^X\/\(\/\).*/{ s//\1/; q; }
30513  	  s/.*/./; q'`
30514
30515
30516# PATH needs CR, and LINENO needs CR and PATH.
30517# Avoid depending upon Character Ranges.
30518as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30519as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30520as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30521as_cr_digits='0123456789'
30522as_cr_alnum=$as_cr_Letters$as_cr_digits
30523
30524# The user is always right.
30525if test "${PATH_SEPARATOR+set}" != set; then
30526  echo "#! /bin/sh" >conf$$.sh
30527  echo  "exit 0"   >>conf$$.sh
30528  chmod +x conf$$.sh
30529  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30530    PATH_SEPARATOR=';'
30531  else
30532    PATH_SEPARATOR=:
30533  fi
30534  rm -f conf$$.sh
30535fi
30536
30537
30538  as_lineno_1=$LINENO
30539  as_lineno_2=$LINENO
30540  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30541  test "x$as_lineno_1" != "x$as_lineno_2" &&
30542  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30543  # Find who we are.  Look in the path if we contain no path at all
30544  # relative or not.
30545  case $0 in
30546    *[\\/]* ) as_myself=$0 ;;
30547    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30548for as_dir in $PATH
30549do
30550  IFS=$as_save_IFS
30551  test -z "$as_dir" && as_dir=.
30552  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30553done
30554
30555       ;;
30556  esac
30557  # We did not find ourselves, most probably we were run as `sh COMMAND'
30558  # in which case we are not to be found in the path.
30559  if test "x$as_myself" = x; then
30560    as_myself=$0
30561  fi
30562  if test ! -f "$as_myself"; then
30563    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30564echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30565   { (exit 1); exit 1; }; }
30566  fi
30567  case $CONFIG_SHELL in
30568  '')
30569    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30570for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30571do
30572  IFS=$as_save_IFS
30573  test -z "$as_dir" && as_dir=.
30574  for as_base in sh bash ksh sh5; do
30575	 case $as_dir in
30576	 /*)
30577	   if ("$as_dir/$as_base" -c '
30578  as_lineno_1=$LINENO
30579  as_lineno_2=$LINENO
30580  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30581  test "x$as_lineno_1" != "x$as_lineno_2" &&
30582  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30583	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30584	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30585	     CONFIG_SHELL=$as_dir/$as_base
30586	     export CONFIG_SHELL
30587	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30588	   fi;;
30589	 esac
30590       done
30591done
30592;;
30593  esac
30594
30595  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30596  # uniformly replaced by the line number.  The first 'sed' inserts a
30597  # line-number line before each line; the second 'sed' does the real
30598  # work.  The second script uses 'N' to pair each line-number line
30599  # with the numbered line, and appends trailing '-' during
30600  # substitution so that $LINENO is not a special case at line end.
30601  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30602  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30603  sed '=' <$as_myself |
30604    sed '
30605      N
30606      s,$,-,
30607      : loop
30608      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30609      t loop
30610      s,-$,,
30611      s,^['$as_cr_digits']*\n,,
30612    ' >$as_me.lineno &&
30613  chmod +x $as_me.lineno ||
30614    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30615echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30616   { (exit 1); exit 1; }; }
30617
30618  # Don't try to exec as it changes $[0], causing all sort of problems
30619  # (the dirname of $[0] is not the place where we might find the
30620  # original and so on.  Autoconf is especially sensible to this).
30621  . ./$as_me.lineno
30622  # Exit status is that of the last command.
30623  exit
30624}
30625
30626
30627case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30628  *c*,-n*) ECHO_N= ECHO_C='
30629' ECHO_T='	' ;;
30630  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30631  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30632esac
30633
30634if expr a : '\(a\)' >/dev/null 2>&1; then
30635  as_expr=expr
30636else
30637  as_expr=false
30638fi
30639
30640rm -f conf$$ conf$$.exe conf$$.file
30641echo >conf$$.file
30642if ln -s conf$$.file conf$$ 2>/dev/null; then
30643  # We could just check for DJGPP; but this test a) works b) is more generic
30644  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30645  if test -f conf$$.exe; then
30646    # Don't use ln at all; we don't have any links
30647    as_ln_s='cp -p'
30648  else
30649    as_ln_s='ln -s'
30650  fi
30651elif ln conf$$.file conf$$ 2>/dev/null; then
30652  as_ln_s=ln
30653else
30654  as_ln_s='cp -p'
30655fi
30656rm -f conf$$ conf$$.exe conf$$.file
30657
30658if mkdir -p . 2>/dev/null; then
30659  as_mkdir_p=:
30660else
30661  test -d ./-p && rmdir ./-p
30662  as_mkdir_p=false
30663fi
30664
30665as_executable_p="test -f"
30666
30667# Sed expression to map a string onto a valid CPP name.
30668as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30669
30670# Sed expression to map a string onto a valid variable name.
30671as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30672
30673
30674# IFS
30675# We need space, tab and new line, in precisely that order.
30676as_nl='
30677'
30678IFS=" 	$as_nl"
30679
30680# CDPATH.
30681$as_unset CDPATH
30682
30683exec 6>&1
30684
30685# Open the log real soon, to keep \$[0] and so on meaningful, and to
30686# report actual input values of CONFIG_FILES etc. instead of their
30687# values after options handling.  Logging --version etc. is OK.
30688exec 5>>config.log
30689{
30690  echo
30691  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30692## Running $as_me. ##
30693_ASBOX
30694} >&5
30695cat >&5 <<_CSEOF
30696
30697This file was extended by lzo $as_me 2.03, which was
30698generated by GNU Autoconf 2.59.  Invocation command line was
30699
30700  CONFIG_FILES    = $CONFIG_FILES
30701  CONFIG_HEADERS  = $CONFIG_HEADERS
30702  CONFIG_LINKS    = $CONFIG_LINKS
30703  CONFIG_COMMANDS = $CONFIG_COMMANDS
30704  $ $0 $@
30705
30706_CSEOF
30707echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30708echo >&5
30709_ACEOF
30710
30711# Files that config.status was made for.
30712if test -n "$ac_config_files"; then
30713  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30714fi
30715
30716if test -n "$ac_config_headers"; then
30717  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30718fi
30719
30720if test -n "$ac_config_links"; then
30721  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30722fi
30723
30724if test -n "$ac_config_commands"; then
30725  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30726fi
30727
30728cat >>$CONFIG_STATUS <<\_ACEOF
30729
30730ac_cs_usage="\
30731\`$as_me' instantiates files from templates according to the
30732current configuration.
30733
30734Usage: $0 [OPTIONS] [FILE]...
30735
30736  -h, --help       print this help, then exit
30737  -V, --version    print version number, then exit
30738  -q, --quiet      do not print progress messages
30739  -d, --debug      don't remove temporary files
30740      --recheck    update $as_me by reconfiguring in the same conditions
30741  --file=FILE[:TEMPLATE]
30742		   instantiate the configuration file FILE
30743  --header=FILE[:TEMPLATE]
30744		   instantiate the configuration header FILE
30745
30746Configuration files:
30747$config_files
30748
30749Configuration headers:
30750$config_headers
30751
30752Configuration commands:
30753$config_commands
30754
30755Report bugs to <bug-autoconf@gnu.org>."
30756_ACEOF
30757
30758cat >>$CONFIG_STATUS <<_ACEOF
30759ac_cs_version="\\
30760lzo config.status 2.03
30761configured by $0, generated by GNU Autoconf 2.59,
30762  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30763
30764Copyright (C) 2003 Free Software Foundation, Inc.
30765This config.status script is free software; the Free Software Foundation
30766gives unlimited permission to copy, distribute and modify it."
30767srcdir=$srcdir
30768INSTALL="$INSTALL"
30769_ACEOF
30770
30771cat >>$CONFIG_STATUS <<\_ACEOF
30772# If no file are specified by the user, then we need to provide default
30773# value.  By we need to know if files were specified by the user.
30774ac_need_defaults=:
30775while test $# != 0
30776do
30777  case $1 in
30778  --*=*)
30779    ac_option=`expr "x$1" : 'x\([^=]*\)='`
30780    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30781    ac_shift=:
30782    ;;
30783  -*)
30784    ac_option=$1
30785    ac_optarg=$2
30786    ac_shift=shift
30787    ;;
30788  *) # This is not an option, so the user has probably given explicit
30789     # arguments.
30790     ac_option=$1
30791     ac_need_defaults=false;;
30792  esac
30793
30794  case $ac_option in
30795  # Handling of the options.
30796_ACEOF
30797cat >>$CONFIG_STATUS <<\_ACEOF
30798  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30799    ac_cs_recheck=: ;;
30800  --version | --vers* | -V )
30801    echo "$ac_cs_version"; exit 0 ;;
30802  --he | --h)
30803    # Conflict between --help and --header
30804    { { echo "$as_me:$LINENO: error: ambiguous option: $1
30805Try \`$0 --help' for more information." >&5
30806echo "$as_me: error: ambiguous option: $1
30807Try \`$0 --help' for more information." >&2;}
30808   { (exit 1); exit 1; }; };;
30809  --help | --hel | -h )
30810    echo "$ac_cs_usage"; exit 0 ;;
30811  --debug | --d* | -d )
30812    debug=: ;;
30813  --file | --fil | --fi | --f )
30814    $ac_shift
30815    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30816    ac_need_defaults=false;;
30817  --header | --heade | --head | --hea )
30818    $ac_shift
30819    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30820    ac_need_defaults=false;;
30821  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30822  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30823    ac_cs_silent=: ;;
30824
30825  # This is an error.
30826  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30827Try \`$0 --help' for more information." >&5
30828echo "$as_me: error: unrecognized option: $1
30829Try \`$0 --help' for more information." >&2;}
30830   { (exit 1); exit 1; }; } ;;
30831
30832  *) ac_config_targets="$ac_config_targets $1" ;;
30833
30834  esac
30835  shift
30836done
30837
30838ac_configure_extra_args=
30839
30840if $ac_cs_silent; then
30841  exec 6>/dev/null
30842  ac_configure_extra_args="$ac_configure_extra_args --silent"
30843fi
30844
30845_ACEOF
30846cat >>$CONFIG_STATUS <<_ACEOF
30847if \$ac_cs_recheck; then
30848  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30849  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30850fi
30851
30852_ACEOF
30853
30854cat >>$CONFIG_STATUS <<_ACEOF
30855#
30856# INIT-COMMANDS section.
30857#
30858
30859AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30860
30861_ACEOF
30862
30863
30864
30865cat >>$CONFIG_STATUS <<\_ACEOF
30866for ac_config_target in $ac_config_targets
30867do
30868  case "$ac_config_target" in
30869  # Handling of arguments.
30870  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30871  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
30872  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
30873  "include/lzo/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/lzo/Makefile" ;;
30874  "lzotest/Makefile" ) CONFIG_FILES="$CONFIG_FILES lzotest/Makefile" ;;
30875  "minilzo/Makefile" ) CONFIG_FILES="$CONFIG_FILES minilzo/Makefile" ;;
30876  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30877  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30878  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30879  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
30880  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30881echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30882   { (exit 1); exit 1; }; };;
30883  esac
30884done
30885
30886# If the user did not use the arguments to specify the items to instantiate,
30887# then the envvar interface is used.  Set only those that are not.
30888# We use the long form for the default assignment because of an extremely
30889# bizarre bug on SunOS 4.1.3.
30890if $ac_need_defaults; then
30891  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30892  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30893  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30894fi
30895
30896# Have a temporary directory for convenience.  Make it in the build tree
30897# simply because there is no reason to put it here, and in addition,
30898# creating and moving files from /tmp can sometimes cause problems.
30899# Create a temporary directory, and hook for its removal unless debugging.
30900$debug ||
30901{
30902  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30903  trap '{ (exit 1); exit 1; }' 1 2 13 15
30904}
30905
30906# Create a (secure) tmp directory for tmp files.
30907
30908{
30909  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30910  test -n "$tmp" && test -d "$tmp"
30911}  ||
30912{
30913  tmp=./confstat$$-$RANDOM
30914  (umask 077 && mkdir $tmp)
30915} ||
30916{
30917   echo "$me: cannot create a temporary directory in ." >&2
30918   { (exit 1); exit 1; }
30919}
30920
30921_ACEOF
30922
30923cat >>$CONFIG_STATUS <<_ACEOF
30924
30925#
30926# CONFIG_FILES section.
30927#
30928
30929# No need to generate the scripts if there are no CONFIG_FILES.
30930# This happens for instance when ./config.status config.h
30931if test -n "\$CONFIG_FILES"; then
30932  # Protect against being on the right side of a sed subst in config.status.
30933  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30934   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30935s,@SHELL@,$SHELL,;t t
30936s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30937s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30938s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30939s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30940s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30941s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30942s,@exec_prefix@,$exec_prefix,;t t
30943s,@prefix@,$prefix,;t t
30944s,@program_transform_name@,$program_transform_name,;t t
30945s,@bindir@,$bindir,;t t
30946s,@sbindir@,$sbindir,;t t
30947s,@libexecdir@,$libexecdir,;t t
30948s,@datadir@,$datadir,;t t
30949s,@sysconfdir@,$sysconfdir,;t t
30950s,@sharedstatedir@,$sharedstatedir,;t t
30951s,@localstatedir@,$localstatedir,;t t
30952s,@libdir@,$libdir,;t t
30953s,@includedir@,$includedir,;t t
30954s,@oldincludedir@,$oldincludedir,;t t
30955s,@infodir@,$infodir,;t t
30956s,@mandir@,$mandir,;t t
30957s,@build_alias@,$build_alias,;t t
30958s,@host_alias@,$host_alias,;t t
30959s,@target_alias@,$target_alias,;t t
30960s,@DEFS@,$DEFS,;t t
30961s,@ECHO_C@,$ECHO_C,;t t
30962s,@ECHO_N@,$ECHO_N,;t t
30963s,@ECHO_T@,$ECHO_T,;t t
30964s,@LIBS@,$LIBS,;t t
30965s,@build@,$build,;t t
30966s,@build_cpu@,$build_cpu,;t t
30967s,@build_vendor@,$build_vendor,;t t
30968s,@build_os@,$build_os,;t t
30969s,@host@,$host,;t t
30970s,@host_cpu@,$host_cpu,;t t
30971s,@host_vendor@,$host_vendor,;t t
30972s,@host_os@,$host_os,;t t
30973s,@target@,$target,;t t
30974s,@target_cpu@,$target_cpu,;t t
30975s,@target_vendor@,$target_vendor,;t t
30976s,@target_os@,$target_os,;t t
30977s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
30978s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
30979s,@MAINT@,$MAINT,;t t
30980s,@CC@,$CC,;t t
30981s,@CFLAGS@,$CFLAGS,;t t
30982s,@LDFLAGS@,$LDFLAGS,;t t
30983s,@CPPFLAGS@,$CPPFLAGS,;t t
30984s,@ac_ct_CC@,$ac_ct_CC,;t t
30985s,@EXEEXT@,$EXEEXT,;t t
30986s,@OBJEXT@,$OBJEXT,;t t
30987s,@CPP@,$CPP,;t t
30988s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30989s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30990s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30991s,@CYGPATH_W@,$CYGPATH_W,;t t
30992s,@PACKAGE@,$PACKAGE,;t t
30993s,@VERSION@,$VERSION,;t t
30994s,@ACLOCAL@,$ACLOCAL,;t t
30995s,@AUTOCONF@,$AUTOCONF,;t t
30996s,@AUTOMAKE@,$AUTOMAKE,;t t
30997s,@AUTOHEADER@,$AUTOHEADER,;t t
30998s,@MAKEINFO@,$MAKEINFO,;t t
30999s,@install_sh@,$install_sh,;t t
31000s,@STRIP@,$STRIP,;t t
31001s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31002s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31003s,@mkdir_p@,$mkdir_p,;t t
31004s,@AWK@,$AWK,;t t
31005s,@SET_MAKE@,$SET_MAKE,;t t
31006s,@am__leading_dot@,$am__leading_dot,;t t
31007s,@AMTAR@,$AMTAR,;t t
31008s,@am__tar@,$am__tar,;t t
31009s,@am__untar@,$am__untar,;t t
31010s,@DEPDIR@,$DEPDIR,;t t
31011s,@am__include@,$am__include,;t t
31012s,@am__quote@,$am__quote,;t t
31013s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31014s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31015s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31016s,@CCDEPMODE@,$CCDEPMODE,;t t
31017s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31018s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31019s,@EGREP@,$EGREP,;t t
31020s,@LN_S@,$LN_S,;t t
31021s,@ECHO@,$ECHO,;t t
31022s,@AR@,$AR,;t t
31023s,@ac_ct_AR@,$ac_ct_AR,;t t
31024s,@RANLIB@,$RANLIB,;t t
31025s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31026s,@CXX@,$CXX,;t t
31027s,@CXXFLAGS@,$CXXFLAGS,;t t
31028s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31029s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31030s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31031s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31032s,@CXXCPP@,$CXXCPP,;t t
31033s,@F77@,$F77,;t t
31034s,@FFLAGS@,$FFLAGS,;t t
31035s,@ac_ct_F77@,$ac_ct_F77,;t t
31036s,@LIBTOOL@,$LIBTOOL,;t t
31037s,@LZO_USE_ASM_TRUE@,$LZO_USE_ASM_TRUE,;t t
31038s,@LZO_USE_ASM_FALSE@,$LZO_USE_ASM_FALSE,;t t
31039s,@LZO_ASM_VPATH@,$LZO_ASM_VPATH,;t t
31040s,@LZO_CPPFLAGS@,$LZO_CPPFLAGS,;t t
31041s,@LZO_EXTRA_CPPFLAGS@,$LZO_EXTRA_CPPFLAGS,;t t
31042s,@LZO_CFLAGS@,$LZO_CFLAGS,;t t
31043s,@LZO_EXTRA_CFLAGS@,$LZO_EXTRA_CFLAGS,;t t
31044s,@configure_CPPFLAGS@,$configure_CPPFLAGS,;t t
31045s,@configure_CFLAGS@,$configure_CFLAGS,;t t
31046s,@LIBOBJS@,$LIBOBJS,;t t
31047s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31048CEOF
31049
31050_ACEOF
31051
31052  cat >>$CONFIG_STATUS <<\_ACEOF
31053  # Split the substitutions into bite-sized pieces for seds with
31054  # small command number limits, like on Digital OSF/1 and HP-UX.
31055  ac_max_sed_lines=48
31056  ac_sed_frag=1 # Number of current file.
31057  ac_beg=1 # First line for current file.
31058  ac_end=$ac_max_sed_lines # Line after last line for current file.
31059  ac_more_lines=:
31060  ac_sed_cmds=
31061  while $ac_more_lines; do
31062    if test $ac_beg -gt 1; then
31063      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31064    else
31065      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31066    fi
31067    if test ! -s $tmp/subs.frag; then
31068      ac_more_lines=false
31069    else
31070      # The purpose of the label and of the branching condition is to
31071      # speed up the sed processing (if there are no `@' at all, there
31072      # is no need to browse any of the substitutions).
31073      # These are the two extra sed commands mentioned above.
31074      (echo ':t
31075  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31076      if test -z "$ac_sed_cmds"; then
31077	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31078      else
31079	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31080      fi
31081      ac_sed_frag=`expr $ac_sed_frag + 1`
31082      ac_beg=$ac_end
31083      ac_end=`expr $ac_end + $ac_max_sed_lines`
31084    fi
31085  done
31086  if test -z "$ac_sed_cmds"; then
31087    ac_sed_cmds=cat
31088  fi
31089fi # test -n "$CONFIG_FILES"
31090
31091_ACEOF
31092cat >>$CONFIG_STATUS <<\_ACEOF
31093for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31094  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31095  case $ac_file in
31096  - | *:- | *:-:* ) # input from stdin
31097	cat >$tmp/stdin
31098	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31099	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31100  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31101	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31102  * )   ac_file_in=$ac_file.in ;;
31103  esac
31104
31105  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31106  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31107$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31108	 X"$ac_file" : 'X\(//\)[^/]' \| \
31109	 X"$ac_file" : 'X\(//\)$' \| \
31110	 X"$ac_file" : 'X\(/\)' \| \
31111	 .     : '\(.\)' 2>/dev/null ||
31112echo X"$ac_file" |
31113    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31114  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31115  	  /^X\(\/\/\)$/{ s//\1/; q; }
31116  	  /^X\(\/\).*/{ s//\1/; q; }
31117  	  s/.*/./; q'`
31118  { if $as_mkdir_p; then
31119    mkdir -p "$ac_dir"
31120  else
31121    as_dir="$ac_dir"
31122    as_dirs=
31123    while test ! -d "$as_dir"; do
31124      as_dirs="$as_dir $as_dirs"
31125      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31126$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31127	 X"$as_dir" : 'X\(//\)[^/]' \| \
31128	 X"$as_dir" : 'X\(//\)$' \| \
31129	 X"$as_dir" : 'X\(/\)' \| \
31130	 .     : '\(.\)' 2>/dev/null ||
31131echo X"$as_dir" |
31132    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31133  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31134  	  /^X\(\/\/\)$/{ s//\1/; q; }
31135  	  /^X\(\/\).*/{ s//\1/; q; }
31136  	  s/.*/./; q'`
31137    done
31138    test ! -n "$as_dirs" || mkdir $as_dirs
31139  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31140echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31141   { (exit 1); exit 1; }; }; }
31142
31143  ac_builddir=.
31144
31145if test "$ac_dir" != .; then
31146  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31147  # A "../" for each directory in $ac_dir_suffix.
31148  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31149else
31150  ac_dir_suffix= ac_top_builddir=
31151fi
31152
31153case $srcdir in
31154  .)  # No --srcdir option.  We are building in place.
31155    ac_srcdir=.
31156    if test -z "$ac_top_builddir"; then
31157       ac_top_srcdir=.
31158    else
31159       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31160    fi ;;
31161  [\\/]* | ?:[\\/]* )  # Absolute path.
31162    ac_srcdir=$srcdir$ac_dir_suffix;
31163    ac_top_srcdir=$srcdir ;;
31164  *) # Relative path.
31165    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31166    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31167esac
31168
31169# Do not use `cd foo && pwd` to compute absolute paths, because
31170# the directories may not exist.
31171case `pwd` in
31172.) ac_abs_builddir="$ac_dir";;
31173*)
31174  case "$ac_dir" in
31175  .) ac_abs_builddir=`pwd`;;
31176  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31177  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31178  esac;;
31179esac
31180case $ac_abs_builddir in
31181.) ac_abs_top_builddir=${ac_top_builddir}.;;
31182*)
31183  case ${ac_top_builddir}. in
31184  .) ac_abs_top_builddir=$ac_abs_builddir;;
31185  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31186  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31187  esac;;
31188esac
31189case $ac_abs_builddir in
31190.) ac_abs_srcdir=$ac_srcdir;;
31191*)
31192  case $ac_srcdir in
31193  .) ac_abs_srcdir=$ac_abs_builddir;;
31194  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31195  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31196  esac;;
31197esac
31198case $ac_abs_builddir in
31199.) ac_abs_top_srcdir=$ac_top_srcdir;;
31200*)
31201  case $ac_top_srcdir in
31202  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31203  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31204  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31205  esac;;
31206esac
31207
31208
31209  case $INSTALL in
31210  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31211  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31212  esac
31213
31214  # Let's still pretend it is `configure' which instantiates (i.e., don't
31215  # use $as_me), people would be surprised to read:
31216  #    /* config.h.  Generated by config.status.  */
31217  if test x"$ac_file" = x-; then
31218    configure_input=
31219  else
31220    configure_input="$ac_file.  "
31221  fi
31222  configure_input=$configure_input"Generated from `echo $ac_file_in |
31223				     sed 's,.*/,,'` by configure."
31224
31225  # First look for the input files in the build tree, otherwise in the
31226  # src tree.
31227  ac_file_inputs=`IFS=:
31228    for f in $ac_file_in; do
31229      case $f in
31230      -) echo $tmp/stdin ;;
31231      [\\/$]*)
31232	 # Absolute (can't be DOS-style, as IFS=:)
31233	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31234echo "$as_me: error: cannot find input file: $f" >&2;}
31235   { (exit 1); exit 1; }; }
31236	 echo "$f";;
31237      *) # Relative
31238	 if test -f "$f"; then
31239	   # Build tree
31240	   echo "$f"
31241	 elif test -f "$srcdir/$f"; then
31242	   # Source tree
31243	   echo "$srcdir/$f"
31244	 else
31245	   # /dev/null tree
31246	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31247echo "$as_me: error: cannot find input file: $f" >&2;}
31248   { (exit 1); exit 1; }; }
31249	 fi;;
31250      esac
31251    done` || { (exit 1); exit 1; }
31252
31253  if test x"$ac_file" != x-; then
31254    { echo "$as_me:$LINENO: creating $ac_file" >&5
31255echo "$as_me: creating $ac_file" >&6;}
31256    rm -f "$ac_file"
31257  fi
31258_ACEOF
31259cat >>$CONFIG_STATUS <<_ACEOF
31260  sed "$ac_vpsub
31261$extrasub
31262_ACEOF
31263cat >>$CONFIG_STATUS <<\_ACEOF
31264:t
31265/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31266s,@configure_input@,$configure_input,;t t
31267s,@srcdir@,$ac_srcdir,;t t
31268s,@abs_srcdir@,$ac_abs_srcdir,;t t
31269s,@top_srcdir@,$ac_top_srcdir,;t t
31270s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31271s,@builddir@,$ac_builddir,;t t
31272s,@abs_builddir@,$ac_abs_builddir,;t t
31273s,@top_builddir@,$ac_top_builddir,;t t
31274s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31275s,@INSTALL@,$ac_INSTALL,;t t
31276" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31277  rm -f $tmp/stdin
31278  if test x"$ac_file" != x-; then
31279    mv $tmp/out $ac_file
31280  else
31281    cat $tmp/out
31282    rm -f $tmp/out
31283  fi
31284
31285done
31286_ACEOF
31287cat >>$CONFIG_STATUS <<\_ACEOF
31288
31289#
31290# CONFIG_HEADER section.
31291#
31292
31293# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31294# NAME is the cpp macro being defined and VALUE is the value it is being given.
31295#
31296# ac_d sets the value in "#define NAME VALUE" lines.
31297ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
31298ac_dB='[	 ].*$,\1#\2'
31299ac_dC=' '
31300ac_dD=',;t'
31301# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31302ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
31303ac_uB='$,\1#\2define\3'
31304ac_uC=' '
31305ac_uD=',;t'
31306
31307for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31308  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31309  case $ac_file in
31310  - | *:- | *:-:* ) # input from stdin
31311	cat >$tmp/stdin
31312	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31313	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31314  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31315	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31316  * )   ac_file_in=$ac_file.in ;;
31317  esac
31318
31319  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31320echo "$as_me: creating $ac_file" >&6;}
31321
31322  # First look for the input files in the build tree, otherwise in the
31323  # src tree.
31324  ac_file_inputs=`IFS=:
31325    for f in $ac_file_in; do
31326      case $f in
31327      -) echo $tmp/stdin ;;
31328      [\\/$]*)
31329	 # Absolute (can't be DOS-style, as IFS=:)
31330	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31331echo "$as_me: error: cannot find input file: $f" >&2;}
31332   { (exit 1); exit 1; }; }
31333	 # Do quote $f, to prevent DOS paths from being IFS'd.
31334	 echo "$f";;
31335      *) # Relative
31336	 if test -f "$f"; then
31337	   # Build tree
31338	   echo "$f"
31339	 elif test -f "$srcdir/$f"; then
31340	   # Source tree
31341	   echo "$srcdir/$f"
31342	 else
31343	   # /dev/null tree
31344	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31345echo "$as_me: error: cannot find input file: $f" >&2;}
31346   { (exit 1); exit 1; }; }
31347	 fi;;
31348      esac
31349    done` || { (exit 1); exit 1; }
31350  # Remove the trailing spaces.
31351  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
31352
31353_ACEOF
31354
31355# Transform confdefs.h into two sed scripts, `conftest.defines' and
31356# `conftest.undefs', that substitutes the proper values into
31357# config.h.in to produce config.h.  The first handles `#define'
31358# templates, and the second `#undef' templates.
31359# And first: Protect against being on the right side of a sed subst in
31360# config.status.  Protect against being in an unquoted here document
31361# in config.status.
31362rm -f conftest.defines conftest.undefs
31363# Using a here document instead of a string reduces the quoting nightmare.
31364# Putting comments in sed scripts is not portable.
31365#
31366# `end' is used to avoid that the second main sed command (meant for
31367# 0-ary CPP macros) applies to n-ary macro definitions.
31368# See the Autoconf documentation for `clear'.
31369cat >confdef2sed.sed <<\_ACEOF
31370s/[\\&,]/\\&/g
31371s,[\\$`],\\&,g
31372t clear
31373: clear
31374s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31375t end
31376s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31377: end
31378_ACEOF
31379# If some macros were called several times there might be several times
31380# the same #defines, which is useless.  Nevertheless, we may not want to
31381# sort them, since we want the *last* AC-DEFINE to be honored.
31382uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31383sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31384rm -f confdef2sed.sed
31385
31386# This sed command replaces #undef with comments.  This is necessary, for
31387# example, in the case of _POSIX_SOURCE, which is predefined and required
31388# on some systems where configure will not decide to define it.
31389cat >>conftest.undefs <<\_ACEOF
31390s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31391_ACEOF
31392
31393# Break up conftest.defines because some shells have a limit on the size
31394# of here documents, and old seds have small limits too (100 cmds).
31395echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31396echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31397echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31398echo '  :' >>$CONFIG_STATUS
31399rm -f conftest.tail
31400while grep . conftest.defines >/dev/null
31401do
31402  # Write a limited-size here document to $tmp/defines.sed.
31403  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31404  # Speed up: don't consider the non `#define' lines.
31405  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
31406  # Work around the forget-to-reset-the-flag bug.
31407  echo 't clr' >>$CONFIG_STATUS
31408  echo ': clr' >>$CONFIG_STATUS
31409  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31410  echo 'CEOF
31411  sed -f $tmp/defines.sed $tmp/in >$tmp/out
31412  rm -f $tmp/in
31413  mv $tmp/out $tmp/in
31414' >>$CONFIG_STATUS
31415  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31416  rm -f conftest.defines
31417  mv conftest.tail conftest.defines
31418done
31419rm -f conftest.defines
31420echo '  fi # grep' >>$CONFIG_STATUS
31421echo >>$CONFIG_STATUS
31422
31423# Break up conftest.undefs because some shells have a limit on the size
31424# of here documents, and old seds have small limits too (100 cmds).
31425echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31426rm -f conftest.tail
31427while grep . conftest.undefs >/dev/null
31428do
31429  # Write a limited-size here document to $tmp/undefs.sed.
31430  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31431  # Speed up: don't consider the non `#undef'
31432  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
31433  # Work around the forget-to-reset-the-flag bug.
31434  echo 't clr' >>$CONFIG_STATUS
31435  echo ': clr' >>$CONFIG_STATUS
31436  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31437  echo 'CEOF
31438  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31439  rm -f $tmp/in
31440  mv $tmp/out $tmp/in
31441' >>$CONFIG_STATUS
31442  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31443  rm -f conftest.undefs
31444  mv conftest.tail conftest.undefs
31445done
31446rm -f conftest.undefs
31447
31448cat >>$CONFIG_STATUS <<\_ACEOF
31449  # Let's still pretend it is `configure' which instantiates (i.e., don't
31450  # use $as_me), people would be surprised to read:
31451  #    /* config.h.  Generated by config.status.  */
31452  if test x"$ac_file" = x-; then
31453    echo "/* Generated by configure.  */" >$tmp/config.h
31454  else
31455    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31456  fi
31457  cat $tmp/in >>$tmp/config.h
31458  rm -f $tmp/in
31459  if test x"$ac_file" != x-; then
31460    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31461      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31462echo "$as_me: $ac_file is unchanged" >&6;}
31463    else
31464      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31465$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31466	 X"$ac_file" : 'X\(//\)[^/]' \| \
31467	 X"$ac_file" : 'X\(//\)$' \| \
31468	 X"$ac_file" : 'X\(/\)' \| \
31469	 .     : '\(.\)' 2>/dev/null ||
31470echo X"$ac_file" |
31471    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31472  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31473  	  /^X\(\/\/\)$/{ s//\1/; q; }
31474  	  /^X\(\/\).*/{ s//\1/; q; }
31475  	  s/.*/./; q'`
31476      { if $as_mkdir_p; then
31477    mkdir -p "$ac_dir"
31478  else
31479    as_dir="$ac_dir"
31480    as_dirs=
31481    while test ! -d "$as_dir"; do
31482      as_dirs="$as_dir $as_dirs"
31483      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31485	 X"$as_dir" : 'X\(//\)[^/]' \| \
31486	 X"$as_dir" : 'X\(//\)$' \| \
31487	 X"$as_dir" : 'X\(/\)' \| \
31488	 .     : '\(.\)' 2>/dev/null ||
31489echo X"$as_dir" |
31490    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31491  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31492  	  /^X\(\/\/\)$/{ s//\1/; q; }
31493  	  /^X\(\/\).*/{ s//\1/; q; }
31494  	  s/.*/./; q'`
31495    done
31496    test ! -n "$as_dirs" || mkdir $as_dirs
31497  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31498echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31499   { (exit 1); exit 1; }; }; }
31500
31501      rm -f $ac_file
31502      mv $tmp/config.h $ac_file
31503    fi
31504  else
31505    cat $tmp/config.h
31506    rm -f $tmp/config.h
31507  fi
31508# Compute $ac_file's index in $config_headers.
31509_am_stamp_count=1
31510for _am_header in $config_headers :; do
31511  case $_am_header in
31512    $ac_file | $ac_file:* )
31513      break ;;
31514    * )
31515      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31516  esac
31517done
31518echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31519$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31520	 X$ac_file : 'X\(//\)[^/]' \| \
31521	 X$ac_file : 'X\(//\)$' \| \
31522	 X$ac_file : 'X\(/\)' \| \
31523	 .     : '\(.\)' 2>/dev/null ||
31524echo X$ac_file |
31525    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31526  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31527  	  /^X\(\/\/\)$/{ s//\1/; q; }
31528  	  /^X\(\/\).*/{ s//\1/; q; }
31529  	  s/.*/./; q'`/stamp-h$_am_stamp_count
31530done
31531_ACEOF
31532cat >>$CONFIG_STATUS <<\_ACEOF
31533
31534#
31535# CONFIG_COMMANDS section.
31536#
31537for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31538  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31539  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31540  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31541$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31542	 X"$ac_dest" : 'X\(//\)[^/]' \| \
31543	 X"$ac_dest" : 'X\(//\)$' \| \
31544	 X"$ac_dest" : 'X\(/\)' \| \
31545	 .     : '\(.\)' 2>/dev/null ||
31546echo X"$ac_dest" |
31547    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31548  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31549  	  /^X\(\/\/\)$/{ s//\1/; q; }
31550  	  /^X\(\/\).*/{ s//\1/; q; }
31551  	  s/.*/./; q'`
31552  { if $as_mkdir_p; then
31553    mkdir -p "$ac_dir"
31554  else
31555    as_dir="$ac_dir"
31556    as_dirs=
31557    while test ! -d "$as_dir"; do
31558      as_dirs="$as_dir $as_dirs"
31559      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31560$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31561	 X"$as_dir" : 'X\(//\)[^/]' \| \
31562	 X"$as_dir" : 'X\(//\)$' \| \
31563	 X"$as_dir" : 'X\(/\)' \| \
31564	 .     : '\(.\)' 2>/dev/null ||
31565echo X"$as_dir" |
31566    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31567  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31568  	  /^X\(\/\/\)$/{ s//\1/; q; }
31569  	  /^X\(\/\).*/{ s//\1/; q; }
31570  	  s/.*/./; q'`
31571    done
31572    test ! -n "$as_dirs" || mkdir $as_dirs
31573  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31574echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31575   { (exit 1); exit 1; }; }; }
31576
31577  ac_builddir=.
31578
31579if test "$ac_dir" != .; then
31580  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31581  # A "../" for each directory in $ac_dir_suffix.
31582  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31583else
31584  ac_dir_suffix= ac_top_builddir=
31585fi
31586
31587case $srcdir in
31588  .)  # No --srcdir option.  We are building in place.
31589    ac_srcdir=.
31590    if test -z "$ac_top_builddir"; then
31591       ac_top_srcdir=.
31592    else
31593       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31594    fi ;;
31595  [\\/]* | ?:[\\/]* )  # Absolute path.
31596    ac_srcdir=$srcdir$ac_dir_suffix;
31597    ac_top_srcdir=$srcdir ;;
31598  *) # Relative path.
31599    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31600    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31601esac
31602
31603# Do not use `cd foo && pwd` to compute absolute paths, because
31604# the directories may not exist.
31605case `pwd` in
31606.) ac_abs_builddir="$ac_dir";;
31607*)
31608  case "$ac_dir" in
31609  .) ac_abs_builddir=`pwd`;;
31610  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31611  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31612  esac;;
31613esac
31614case $ac_abs_builddir in
31615.) ac_abs_top_builddir=${ac_top_builddir}.;;
31616*)
31617  case ${ac_top_builddir}. in
31618  .) ac_abs_top_builddir=$ac_abs_builddir;;
31619  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31620  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31621  esac;;
31622esac
31623case $ac_abs_builddir in
31624.) ac_abs_srcdir=$ac_srcdir;;
31625*)
31626  case $ac_srcdir in
31627  .) ac_abs_srcdir=$ac_abs_builddir;;
31628  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31629  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31630  esac;;
31631esac
31632case $ac_abs_builddir in
31633.) ac_abs_top_srcdir=$ac_top_srcdir;;
31634*)
31635  case $ac_top_srcdir in
31636  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31637  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31638  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31639  esac;;
31640esac
31641
31642
31643  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31644echo "$as_me: executing $ac_dest commands" >&6;}
31645  case $ac_dest in
31646    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31647  # Strip MF so we end up with the name of the file.
31648  mf=`echo "$mf" | sed -e 's/:.*$//'`
31649  # Check whether this is an Automake generated Makefile or not.
31650  # We used to match only the files named `Makefile.in', but
31651  # some people rename them; so instead we look at the file content.
31652  # Grep'ing the first line is not enough: some people post-process
31653  # each Makefile.in and add a new line on top of each file to say so.
31654  # So let's grep whole file.
31655  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31656    dirpart=`(dirname "$mf") 2>/dev/null ||
31657$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31658	 X"$mf" : 'X\(//\)[^/]' \| \
31659	 X"$mf" : 'X\(//\)$' \| \
31660	 X"$mf" : 'X\(/\)' \| \
31661	 .     : '\(.\)' 2>/dev/null ||
31662echo X"$mf" |
31663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31664  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31665  	  /^X\(\/\/\)$/{ s//\1/; q; }
31666  	  /^X\(\/\).*/{ s//\1/; q; }
31667  	  s/.*/./; q'`
31668  else
31669    continue
31670  fi
31671  # Extract the definition of DEPDIR, am__include, and am__quote
31672  # from the Makefile without running `make'.
31673  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31674  test -z "$DEPDIR" && continue
31675  am__include=`sed -n 's/^am__include = //p' < "$mf"`
31676  test -z "am__include" && continue
31677  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31678  # When using ansi2knr, U may be empty or an underscore; expand it
31679  U=`sed -n 's/^U = //p' < "$mf"`
31680  # Find all dependency output files, they are included files with
31681  # $(DEPDIR) in their names.  We invoke sed twice because it is the
31682  # simplest approach to changing $(DEPDIR) to its actual value in the
31683  # expansion.
31684  for file in `sed -n "
31685    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31686       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31687    # Make sure the directory exists.
31688    test -f "$dirpart/$file" && continue
31689    fdir=`(dirname "$file") 2>/dev/null ||
31690$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31691	 X"$file" : 'X\(//\)[^/]' \| \
31692	 X"$file" : 'X\(//\)$' \| \
31693	 X"$file" : 'X\(/\)' \| \
31694	 .     : '\(.\)' 2>/dev/null ||
31695echo X"$file" |
31696    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31697  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31698  	  /^X\(\/\/\)$/{ s//\1/; q; }
31699  	  /^X\(\/\).*/{ s//\1/; q; }
31700  	  s/.*/./; q'`
31701    { if $as_mkdir_p; then
31702    mkdir -p $dirpart/$fdir
31703  else
31704    as_dir=$dirpart/$fdir
31705    as_dirs=
31706    while test ! -d "$as_dir"; do
31707      as_dirs="$as_dir $as_dirs"
31708      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31710	 X"$as_dir" : 'X\(//\)[^/]' \| \
31711	 X"$as_dir" : 'X\(//\)$' \| \
31712	 X"$as_dir" : 'X\(/\)' \| \
31713	 .     : '\(.\)' 2>/dev/null ||
31714echo X"$as_dir" |
31715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31716  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31717  	  /^X\(\/\/\)$/{ s//\1/; q; }
31718  	  /^X\(\/\).*/{ s//\1/; q; }
31719  	  s/.*/./; q'`
31720    done
31721    test ! -n "$as_dirs" || mkdir $as_dirs
31722  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
31723echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
31724   { (exit 1); exit 1; }; }; }
31725
31726    # echo "creating $dirpart/$file"
31727    echo '# dummy' > "$dirpart/$file"
31728  done
31729done
31730 ;;
31731  esac
31732done
31733_ACEOF
31734
31735cat >>$CONFIG_STATUS <<\_ACEOF
31736
31737{ (exit 0); exit 0; }
31738_ACEOF
31739chmod +x $CONFIG_STATUS
31740ac_clean_files=$ac_clean_files_save
31741
31742
31743# configure is writing to config.log, and then calls config.status.
31744# config.status does its own redirection, appending to config.log.
31745# Unfortunately, on DOS this fails, as config.log is still kept open
31746# by configure, so config.status won't be able to write to it; its
31747# output is simply discarded.  So we exec the FD to /dev/null,
31748# effectively closing config.log, so it can be properly (re)opened and
31749# appended to by config.status.  When coming back to configure, we
31750# need to make the FD available again.
31751if test "$no_create" != yes; then
31752  ac_cs_success=:
31753  ac_config_status_args=
31754  test "$silent" = yes &&
31755    ac_config_status_args="$ac_config_status_args --quiet"
31756  exec 5>/dev/null
31757  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31758  exec 5>>config.log
31759  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31760  # would make configure fail if this is the last instruction.
31761  $ac_cs_success || { (exit 1); exit 1; }
31762fi
31763
31764
31765
31766##   enable AMD64 assembly code : ${asm_msg_amd64}
31767cat <<EOF
31768
31769   LZO configuration summary
31770   -------------------------
31771   LZO version                : ${PACKAGE_VERSION}
31772   configured for host        : ${host_cpu}-${host_vendor}-${host_os}
31773   source code location       : ${srcdir}
31774   compiler                   : ${CC}
31775   preprocessor flags         : ${CPPFLAGS}
31776   compiler flags             : ${CFLAGS}
31777   build static library       : ${enable_static}
31778   build shared library       : ${enable_shared}
31779   enable i386 assembly code  : ${asm_msg_i386}
31780
31781
31782   LZO ${PACKAGE_VERSION} configured.
31783
31784   Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer
31785   All Rights Reserved.
31786
31787   The LZO library is free software; you can redistribute it and/or
31788   modify it under the terms of the GNU General Public License as
31789   published by the Free Software Foundation; either version 2 of
31790   the License, or (at your option) any later version.
31791
31792   The LZO library is distributed in the hope that it will be useful,
31793   but WITHOUT ANY WARRANTY; without even the implied warranty of
31794   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31795   GNU General Public License for more details.
31796
31797   Markus F.X.J. Oberhumer
31798   <markus@oberhumer.com>
31799   http://www.oberhumer.com/opensource/lzo/
31800
31801
31802Type \`make' to build LZO. Type \`make install' to install LZO.
31803After installing LZO, please read the accompanied documentation.
31804
31805EOF
31806
31807# vi:ts=4:et
31808