1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 (OpenPKG-CURRENT).
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428# Factoring default headers for most tests.
429ac_includes_default="\
430#include <stdio.h>
431#if HAVE_SYS_TYPES_H
432# include <sys/types.h>
433#endif
434#if HAVE_SYS_STAT_H
435# include <sys/stat.h>
436#endif
437#if STDC_HEADERS
438# include <stdlib.h>
439# include <stddef.h>
440#else
441# if HAVE_STDLIB_H
442#  include <stdlib.h>
443# endif
444#endif
445#if HAVE_STRING_H
446# if !STDC_HEADERS && HAVE_MEMORY_H
447#  include <memory.h>
448# endif
449# include <string.h>
450#endif
451#if HAVE_STRINGS_H
452# include <strings.h>
453#endif
454#if HAVE_INTTYPES_H
455# include <inttypes.h>
456#else
457# if HAVE_STDINT_H
458#  include <stdint.h>
459# endif
460#endif
461#if HAVE_UNISTD_H
462# include <unistd.h>
463#endif"
464
465ac_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 STR_VERSION_STR STR_VERSION_HEX PLATFORM SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
466ac_subst_files=''
467
468# Initialize some variables set by options.
469ac_init_help=
470ac_init_version=false
471# The variables have the same names as the options, with
472# dashes changed to underlines.
473cache_file=/dev/null
474exec_prefix=NONE
475no_create=
476no_recursion=
477prefix=NONE
478program_prefix=NONE
479program_suffix=NONE
480program_transform_name=s,x,x,
481silent=
482site=
483srcdir=
484verbose=
485x_includes=NONE
486x_libraries=NONE
487
488# Installation directory options.
489# These are left unexpanded so users can "make install exec_prefix=/foo"
490# and all the variables that are supposed to be based on exec_prefix
491# by default will actually change.
492# Use braces instead of parens because sh, perl, etc. also accept them.
493bindir='${exec_prefix}/bin'
494sbindir='${exec_prefix}/sbin'
495libexecdir='${exec_prefix}/libexec'
496datadir='${prefix}/share'
497sysconfdir='${prefix}/etc'
498sharedstatedir='${prefix}/com'
499localstatedir='${prefix}/var'
500libdir='${exec_prefix}/lib'
501includedir='${prefix}/include'
502oldincludedir='/usr/include'
503infodir='${prefix}/info'
504mandir='${prefix}/man'
505
506ac_prev=
507for ac_option
508do
509  # If the previous option needs an argument, assign it.
510  if test -n "$ac_prev"; then
511    eval "$ac_prev=\$ac_option"
512    ac_prev=
513    continue
514  fi
515
516  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518  # Accept the important Cygnus configure options, so we can diagnose typos.
519
520  case $ac_option in
521
522  -bindir | --bindir | --bindi | --bind | --bin | --bi)
523    ac_prev=bindir ;;
524  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525    bindir=$ac_optarg ;;
526
527  -build | --build | --buil | --bui | --bu)
528    ac_prev=build_alias ;;
529  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530    build_alias=$ac_optarg ;;
531
532  -cache-file | --cache-file | --cache-fil | --cache-fi \
533  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534    ac_prev=cache_file ;;
535  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537    cache_file=$ac_optarg ;;
538
539  --config-cache | -C)
540    cache_file=config.cache ;;
541
542  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543    ac_prev=datadir ;;
544  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545  | --da=*)
546    datadir=$ac_optarg ;;
547
548  -disable-* | --disable-*)
549    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550    # Reject names that are not valid shell variable names.
551    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553   { (exit 1); exit 1; }; }
554    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555    eval "enable_$ac_feature=no" ;;
556
557  -enable-* | --enable-*)
558    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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    case $ac_option in
565      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566      *) ac_optarg=yes ;;
567    esac
568    eval "enable_$ac_feature='$ac_optarg'" ;;
569
570  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572  | --exec | --exe | --ex)
573    ac_prev=exec_prefix ;;
574  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576  | --exec=* | --exe=* | --ex=*)
577    exec_prefix=$ac_optarg ;;
578
579  -gas | --gas | --ga | --g)
580    # Obsolete; use --with-gas.
581    with_gas=yes ;;
582
583  -help | --help | --hel | --he | -h)
584    ac_init_help=long ;;
585  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586    ac_init_help=recursive ;;
587  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588    ac_init_help=short ;;
589
590  -host | --host | --hos | --ho)
591    ac_prev=host_alias ;;
592  -host=* | --host=* | --hos=* | --ho=*)
593    host_alias=$ac_optarg ;;
594
595  -includedir | --includedir | --includedi | --included | --include \
596  | --includ | --inclu | --incl | --inc)
597    ac_prev=includedir ;;
598  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599  | --includ=* | --inclu=* | --incl=* | --inc=*)
600    includedir=$ac_optarg ;;
601
602  -infodir | --infodir | --infodi | --infod | --info | --inf)
603    ac_prev=infodir ;;
604  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605    infodir=$ac_optarg ;;
606
607  -libdir | --libdir | --libdi | --libd)
608    ac_prev=libdir ;;
609  -libdir=* | --libdir=* | --libdi=* | --libd=*)
610    libdir=$ac_optarg ;;
611
612  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613  | --libexe | --libex | --libe)
614    ac_prev=libexecdir ;;
615  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616  | --libexe=* | --libex=* | --libe=*)
617    libexecdir=$ac_optarg ;;
618
619  -localstatedir | --localstatedir | --localstatedi | --localstated \
620  | --localstate | --localstat | --localsta | --localst \
621  | --locals | --local | --loca | --loc | --lo)
622    ac_prev=localstatedir ;;
623  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626    localstatedir=$ac_optarg ;;
627
628  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629    ac_prev=mandir ;;
630  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631    mandir=$ac_optarg ;;
632
633  -nfp | --nfp | --nf)
634    # Obsolete; use --without-fp.
635    with_fp=no ;;
636
637  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638  | --no-cr | --no-c | -n)
639    no_create=yes ;;
640
641  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643    no_recursion=yes ;;
644
645  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647  | --oldin | --oldi | --old | --ol | --o)
648    ac_prev=oldincludedir ;;
649  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652    oldincludedir=$ac_optarg ;;
653
654  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655    ac_prev=prefix ;;
656  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657    prefix=$ac_optarg ;;
658
659  -program-prefix | --program-prefix | --program-prefi | --program-pref \
660  | --program-pre | --program-pr | --program-p)
661    ac_prev=program_prefix ;;
662  -program-prefix=* | --program-prefix=* | --program-prefi=* \
663  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664    program_prefix=$ac_optarg ;;
665
666  -program-suffix | --program-suffix | --program-suffi | --program-suff \
667  | --program-suf | --program-su | --program-s)
668    ac_prev=program_suffix ;;
669  -program-suffix=* | --program-suffix=* | --program-suffi=* \
670  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671    program_suffix=$ac_optarg ;;
672
673  -program-transform-name | --program-transform-name \
674  | --program-transform-nam | --program-transform-na \
675  | --program-transform-n | --program-transform- \
676  | --program-transform | --program-transfor \
677  | --program-transfo | --program-transf \
678  | --program-trans | --program-tran \
679  | --progr-tra | --program-tr | --program-t)
680    ac_prev=program_transform_name ;;
681  -program-transform-name=* | --program-transform-name=* \
682  | --program-transform-nam=* | --program-transform-na=* \
683  | --program-transform-n=* | --program-transform-=* \
684  | --program-transform=* | --program-transfor=* \
685  | --program-transfo=* | --program-transf=* \
686  | --program-trans=* | --program-tran=* \
687  | --progr-tra=* | --program-tr=* | --program-t=*)
688    program_transform_name=$ac_optarg ;;
689
690  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691  | -silent | --silent | --silen | --sile | --sil)
692    silent=yes ;;
693
694  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695    ac_prev=sbindir ;;
696  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697  | --sbi=* | --sb=*)
698    sbindir=$ac_optarg ;;
699
700  -sharedstatedir | --sharedstatedir | --sharedstatedi \
701  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702  | --sharedst | --shareds | --shared | --share | --shar \
703  | --sha | --sh)
704    ac_prev=sharedstatedir ;;
705  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708  | --sha=* | --sh=*)
709    sharedstatedir=$ac_optarg ;;
710
711  -site | --site | --sit)
712    ac_prev=site ;;
713  -site=* | --site=* | --sit=*)
714    site=$ac_optarg ;;
715
716  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717    ac_prev=srcdir ;;
718  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719    srcdir=$ac_optarg ;;
720
721  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722  | --syscon | --sysco | --sysc | --sys | --sy)
723    ac_prev=sysconfdir ;;
724  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726    sysconfdir=$ac_optarg ;;
727
728  -target | --target | --targe | --targ | --tar | --ta | --t)
729    ac_prev=target_alias ;;
730  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731    target_alias=$ac_optarg ;;
732
733  -v | -verbose | --verbose | --verbos | --verbo | --verb)
734    verbose=yes ;;
735
736  -version | --version | --versio | --versi | --vers | -V)
737    ac_init_version=: ;;
738
739  -with-* | --with-*)
740    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741    # Reject names that are not valid shell variable names.
742    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743      { echo "$as_me: error: invalid package name: $ac_package" >&2
744   { (exit 1); exit 1; }; }
745    ac_package=`echo $ac_package| sed 's/-/_/g'`
746    case $ac_option in
747      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748      *) ac_optarg=yes ;;
749    esac
750    eval "with_$ac_package='$ac_optarg'" ;;
751
752  -without-* | --without-*)
753    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754    # Reject names that are not valid shell variable names.
755    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756      { echo "$as_me: error: invalid package name: $ac_package" >&2
757   { (exit 1); exit 1; }; }
758    ac_package=`echo $ac_package | sed 's/-/_/g'`
759    eval "with_$ac_package=no" ;;
760
761  --x)
762    # Obsolete; use --with-x.
763    with_x=yes ;;
764
765  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766  | --x-incl | --x-inc | --x-in | --x-i)
767    ac_prev=x_includes ;;
768  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770    x_includes=$ac_optarg ;;
771
772  -x-libraries | --x-libraries | --x-librarie | --x-librari \
773  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774    ac_prev=x_libraries ;;
775  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777    x_libraries=$ac_optarg ;;
778
779  -*) { echo "$as_me: error: unrecognized option: $ac_option
780Try \`$0 --help' for more information." >&2
781   { (exit 1); exit 1; }; }
782    ;;
783
784  *=*)
785    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786    # Reject names that are not valid shell variable names.
787    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789   { (exit 1); exit 1; }; }
790    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791    eval "$ac_envvar='$ac_optarg'"
792    export $ac_envvar ;;
793
794  *)
795    # FIXME: should be removed in autoconf 3.0.
796    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800    ;;
801
802  esac
803done
804
805if test -n "$ac_prev"; then
806  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807  { echo "$as_me: error: missing argument to $ac_option" >&2
808   { (exit 1); exit 1; }; }
809fi
810
811# Be sure to have absolute paths.
812for ac_var in exec_prefix prefix
813do
814  eval ac_val=$`echo $ac_var`
815  case $ac_val in
816    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818   { (exit 1); exit 1; }; };;
819  esac
820done
821
822# Be sure to have absolute paths.
823for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824	      localstatedir libdir includedir oldincludedir infodir mandir
825do
826  eval ac_val=$`echo $ac_var`
827  case $ac_val in
828    [\\/$]* | ?:[\\/]* ) ;;
829    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830   { (exit 1); exit 1; }; };;
831  esac
832done
833
834# There might be people who depend on the old broken behavior: `$host'
835# used to hold the argument of --host etc.
836# FIXME: To remove some day.
837build=$build_alias
838host=$host_alias
839target=$target_alias
840
841# FIXME: To remove some day.
842if test "x$host_alias" != x; then
843  if test "x$build_alias" = x; then
844    cross_compiling=maybe
845    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846    If a cross compiler is detected then cross compile mode will be used." >&2
847  elif test "x$build_alias" != "x$host_alias"; then
848    cross_compiling=yes
849  fi
850fi
851
852ac_tool_prefix=
853test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855test "$silent" = yes && exec 6>/dev/null
856
857
858# Find the source files, if location was not specified.
859if test -z "$srcdir"; then
860  ac_srcdir_defaulted=yes
861  # Try the directory containing this script, then its parent.
862  ac_confdir=`(dirname "$0") 2>/dev/null ||
863$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864	 X"$0" : 'X\(//\)[^/]' \| \
865	 X"$0" : 'X\(//\)$' \| \
866	 X"$0" : 'X\(/\)' \| \
867	 .     : '\(.\)' 2>/dev/null ||
868echo X"$0" |
869    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871  	  /^X\(\/\/\)$/{ s//\1/; q; }
872  	  /^X\(\/\).*/{ s//\1/; q; }
873  	  s/.*/./; q'`
874  srcdir=$ac_confdir
875  if test ! -r $srcdir/$ac_unique_file; then
876    srcdir=..
877  fi
878else
879  ac_srcdir_defaulted=no
880fi
881if test ! -r $srcdir/$ac_unique_file; then
882  if test "$ac_srcdir_defaulted" = yes; then
883    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884   { (exit 1); exit 1; }; }
885  else
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887   { (exit 1); exit 1; }; }
888  fi
889fi
890(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892   { (exit 1); exit 1; }; }
893srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894ac_env_build_alias_set=${build_alias+set}
895ac_env_build_alias_value=$build_alias
896ac_cv_env_build_alias_set=${build_alias+set}
897ac_cv_env_build_alias_value=$build_alias
898ac_env_host_alias_set=${host_alias+set}
899ac_env_host_alias_value=$host_alias
900ac_cv_env_host_alias_set=${host_alias+set}
901ac_cv_env_host_alias_value=$host_alias
902ac_env_target_alias_set=${target_alias+set}
903ac_env_target_alias_value=$target_alias
904ac_cv_env_target_alias_set=${target_alias+set}
905ac_cv_env_target_alias_value=$target_alias
906ac_env_CC_set=${CC+set}
907ac_env_CC_value=$CC
908ac_cv_env_CC_set=${CC+set}
909ac_cv_env_CC_value=$CC
910ac_env_CFLAGS_set=${CFLAGS+set}
911ac_env_CFLAGS_value=$CFLAGS
912ac_cv_env_CFLAGS_set=${CFLAGS+set}
913ac_cv_env_CFLAGS_value=$CFLAGS
914ac_env_LDFLAGS_set=${LDFLAGS+set}
915ac_env_LDFLAGS_value=$LDFLAGS
916ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917ac_cv_env_LDFLAGS_value=$LDFLAGS
918ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919ac_env_CPPFLAGS_value=$CPPFLAGS
920ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922ac_env_CPP_set=${CPP+set}
923ac_env_CPP_value=$CPP
924ac_cv_env_CPP_set=${CPP+set}
925ac_cv_env_CPP_value=$CPP
926ac_env_CXX_set=${CXX+set}
927ac_env_CXX_value=$CXX
928ac_cv_env_CXX_set=${CXX+set}
929ac_cv_env_CXX_value=$CXX
930ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931ac_env_CXXFLAGS_value=$CXXFLAGS
932ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934ac_env_CXXCPP_set=${CXXCPP+set}
935ac_env_CXXCPP_value=$CXXCPP
936ac_cv_env_CXXCPP_set=${CXXCPP+set}
937ac_cv_env_CXXCPP_value=$CXXCPP
938ac_env_F77_set=${F77+set}
939ac_env_F77_value=$F77
940ac_cv_env_F77_set=${F77+set}
941ac_cv_env_F77_value=$F77
942ac_env_FFLAGS_set=${FFLAGS+set}
943ac_env_FFLAGS_value=$FFLAGS
944ac_cv_env_FFLAGS_set=${FFLAGS+set}
945ac_cv_env_FFLAGS_value=$FFLAGS
946
947#
948# Report the --help message.
949#
950if test "$ac_init_help" = "long"; then
951  # Omit some internal or obsolete options to make the list less imposing.
952  # This message is too long to be a string in the A/UX 3.1 sh.
953  cat <<_ACEOF
954\`configure' configures this package to adapt to many kinds of systems.
955
956Usage: $0 [OPTION]... [VAR=VALUE]...
957
958To assign environment variables (e.g., CC, CFLAGS...), specify them as
959VAR=VALUE.  See below for descriptions of some of the useful variables.
960
961Defaults for the options are specified in brackets.
962
963Configuration:
964  -h, --help              display this help and exit
965      --help=short        display options specific to this package
966      --help=recursive    display the short help of all the included packages
967  -V, --version           display version information and exit
968  -q, --quiet, --silent   do not print \`checking...' messages
969      --cache-file=FILE   cache test results in FILE [disabled]
970  -C, --config-cache      alias for \`--cache-file=config.cache'
971  -n, --no-create         do not create output files
972      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
973
974_ACEOF
975
976  cat <<_ACEOF
977Installation directories:
978  --prefix=PREFIX         install architecture-independent files in PREFIX
979			  [$ac_default_prefix]
980  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
981			  [PREFIX]
982
983By default, \`make install' will install all the files in
984\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
985an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986for instance \`--prefix=\$HOME'.
987
988For better control, use the options below.
989
990Fine tuning of the installation directories:
991  --bindir=DIR           user executables [EPREFIX/bin]
992  --sbindir=DIR          system admin executables [EPREFIX/sbin]
993  --libexecdir=DIR       program executables [EPREFIX/libexec]
994  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
995  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
996  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
997  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
998  --libdir=DIR           object code libraries [EPREFIX/lib]
999  --includedir=DIR       C header files [PREFIX/include]
1000  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1001  --infodir=DIR          info documentation [PREFIX/info]
1002  --mandir=DIR           man documentation [PREFIX/man]
1003_ACEOF
1004
1005  cat <<\_ACEOF
1006
1007System types:
1008  --build=BUILD     configure for building on BUILD [guessed]
1009  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1010_ACEOF
1011fi
1012
1013if test -n "$ac_init_help"; then
1014
1015  cat <<\_ACEOF
1016
1017Optional Features:
1018  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1019  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1020  --enable-debug          build for debugging (default=no)
1021  --enable-shared[=PKGS]
1022                          build shared libraries [default=yes]
1023  --enable-static[=PKGS]
1024                          build static libraries [default=yes]
1025  --enable-fast-install[=PKGS]
1026                          optimize for fast installation [default=yes]
1027  --disable-libtool-lock  avoid locking (might break parallel builds)
1028
1029Optional Packages:
1030  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1031  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1032  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1033  --with-pic              try to use only PIC/non-PIC objects [default=use
1034                          both]
1035  --with-tags[=TAGS]
1036                          include additional configurations [automatic]
1037  --with-dmalloc[=DIR]    build with external Dmalloc library (default=no)
1038
1039Some influential environment variables:
1040  CC          C compiler command
1041  CFLAGS      C compiler flags
1042  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1043              nonstandard directory <lib dir>
1044  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045              headers in a nonstandard directory <include dir>
1046  CPP         C preprocessor
1047  CXX         C++ compiler command
1048  CXXFLAGS    C++ compiler flags
1049  CXXCPP      C++ preprocessor
1050  F77         Fortran 77 compiler command
1051  FFLAGS      Fortran 77 compiler flags
1052
1053Use these variables to override the choices made by `configure' or to help
1054it to find libraries and programs with nonstandard names/locations.
1055
1056_ACEOF
1057fi
1058
1059if test "$ac_init_help" = "recursive"; then
1060  # If there are subdirs, report their specific --help.
1061  ac_popdir=`pwd`
1062  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1063    test -d $ac_dir || continue
1064    ac_builddir=.
1065
1066if test "$ac_dir" != .; then
1067  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1068  # A "../" for each directory in $ac_dir_suffix.
1069  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1070else
1071  ac_dir_suffix= ac_top_builddir=
1072fi
1073
1074case $srcdir in
1075  .)  # No --srcdir option.  We are building in place.
1076    ac_srcdir=.
1077    if test -z "$ac_top_builddir"; then
1078       ac_top_srcdir=.
1079    else
1080       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1081    fi ;;
1082  [\\/]* | ?:[\\/]* )  # Absolute path.
1083    ac_srcdir=$srcdir$ac_dir_suffix;
1084    ac_top_srcdir=$srcdir ;;
1085  *) # Relative path.
1086    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1087    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1088esac
1089
1090# Do not use `cd foo && pwd` to compute absolute paths, because
1091# the directories may not exist.
1092case `pwd` in
1093.) ac_abs_builddir="$ac_dir";;
1094*)
1095  case "$ac_dir" in
1096  .) ac_abs_builddir=`pwd`;;
1097  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1098  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1099  esac;;
1100esac
1101case $ac_abs_builddir in
1102.) ac_abs_top_builddir=${ac_top_builddir}.;;
1103*)
1104  case ${ac_top_builddir}. in
1105  .) ac_abs_top_builddir=$ac_abs_builddir;;
1106  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1107  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1108  esac;;
1109esac
1110case $ac_abs_builddir in
1111.) ac_abs_srcdir=$ac_srcdir;;
1112*)
1113  case $ac_srcdir in
1114  .) ac_abs_srcdir=$ac_abs_builddir;;
1115  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1116  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1117  esac;;
1118esac
1119case $ac_abs_builddir in
1120.) ac_abs_top_srcdir=$ac_top_srcdir;;
1121*)
1122  case $ac_top_srcdir in
1123  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1124  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1125  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1126  esac;;
1127esac
1128
1129    cd $ac_dir
1130    # Check for guested configure; otherwise get Cygnus style configure.
1131    if test -f $ac_srcdir/configure.gnu; then
1132      echo
1133      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1134    elif test -f $ac_srcdir/configure; then
1135      echo
1136      $SHELL $ac_srcdir/configure  --help=recursive
1137    elif test -f $ac_srcdir/configure.ac ||
1138	   test -f $ac_srcdir/configure.in; then
1139      echo
1140      $ac_configure --help
1141    else
1142      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1143    fi
1144    cd $ac_popdir
1145  done
1146fi
1147
1148test -n "$ac_init_help" && exit 0
1149if $ac_init_version; then
1150  cat <<\_ACEOF
1151
1152Copyright (C) 2003 Free Software Foundation, Inc.
1153This configure script is free software; the Free Software Foundation
1154gives unlimited permission to copy, distribute and modify it.
1155_ACEOF
1156  exit 0
1157fi
1158exec 5>config.log
1159cat >&5 <<_ACEOF
1160This file contains any messages produced by compilers while
1161running configure, to aid debugging if configure makes a mistake.
1162
1163It was created by $as_me, which was
1164generated by GNU Autoconf 2.59 (OpenPKG-CURRENT).  Invocation command line was
1165
1166  $ $0 $@
1167
1168_ACEOF
1169{
1170cat <<_ASUNAME
1171## --------- ##
1172## Platform. ##
1173## --------- ##
1174
1175hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1176uname -m = `(uname -m) 2>/dev/null || echo unknown`
1177uname -r = `(uname -r) 2>/dev/null || echo unknown`
1178uname -s = `(uname -s) 2>/dev/null || echo unknown`
1179uname -v = `(uname -v) 2>/dev/null || echo unknown`
1180
1181/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1182/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1183
1184/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1185/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1186/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1187hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1188/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1189/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1190/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1191
1192_ASUNAME
1193
1194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1195for as_dir in $PATH
1196do
1197  IFS=$as_save_IFS
1198  test -z "$as_dir" && as_dir=.
1199  echo "PATH: $as_dir"
1200done
1201
1202} >&5
1203
1204cat >&5 <<_ACEOF
1205
1206
1207## ----------- ##
1208## Core tests. ##
1209## ----------- ##
1210
1211_ACEOF
1212
1213
1214# Keep a trace of the command line.
1215# Strip out --no-create and --no-recursion so they do not pile up.
1216# Strip out --silent because we don't want to record it for future runs.
1217# Also quote any args containing shell meta-characters.
1218# Make two passes to allow for proper duplicate-argument suppression.
1219ac_configure_args=
1220ac_configure_args0=
1221ac_configure_args1=
1222ac_sep=
1223ac_must_keep_next=false
1224for ac_pass in 1 2
1225do
1226  for ac_arg
1227  do
1228    case $ac_arg in
1229    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1230    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231    | -silent | --silent | --silen | --sile | --sil)
1232      continue ;;
1233    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1235    esac
1236    case $ac_pass in
1237    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1238    2)
1239      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1240      if test $ac_must_keep_next = true; then
1241	ac_must_keep_next=false # Got value, back to normal.
1242      else
1243	case $ac_arg in
1244	  *=* | --config-cache | -C | -disable-* | --disable-* \
1245	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1246	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1247	  | -with-* | --with-* | -without-* | --without-* | --x)
1248	    case "$ac_configure_args0 " in
1249	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1250	    esac
1251	    ;;
1252	  -* ) ac_must_keep_next=true ;;
1253	esac
1254      fi
1255      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1256      # Get rid of the leading space.
1257      ac_sep=" "
1258      ;;
1259    esac
1260  done
1261done
1262$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1263$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1264
1265# When interrupted or exit'd, cleanup temporary files, and complete
1266# config.log.  We remove comments because anyway the quotes in there
1267# would cause problems or look ugly.
1268# WARNING: Be sure not to use single quotes in there, as some shells,
1269# such as our DU 5.0 friend, will then `close' the trap.
1270trap 'exit_status=$?
1271  # Save into config.log some information that might help in debugging.
1272  {
1273    echo
1274
1275    cat <<\_ASBOX
1276## ---------------- ##
1277## Cache variables. ##
1278## ---------------- ##
1279_ASBOX
1280    echo
1281    # The following way of writing the cache mishandles newlines in values,
1282{
1283  (set) 2>&1 |
1284    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1285    *ac_space=\ *)
1286      sed -n \
1287	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1288	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1289      ;;
1290    *)
1291      sed -n \
1292	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1293      ;;
1294    esac;
1295}
1296    echo
1297
1298    cat <<\_ASBOX
1299## ----------------- ##
1300## Output variables. ##
1301## ----------------- ##
1302_ASBOX
1303    echo
1304    for ac_var in $ac_subst_vars
1305    do
1306      eval ac_val=$`echo $ac_var`
1307      echo "$ac_var='"'"'$ac_val'"'"'"
1308    done | sort
1309    echo
1310
1311    if test -n "$ac_subst_files"; then
1312      cat <<\_ASBOX
1313## ------------- ##
1314## Output files. ##
1315## ------------- ##
1316_ASBOX
1317      echo
1318      for ac_var in $ac_subst_files
1319      do
1320	eval ac_val=$`echo $ac_var`
1321	echo "$ac_var='"'"'$ac_val'"'"'"
1322      done | sort
1323      echo
1324    fi
1325
1326    if test -s confdefs.h; then
1327      cat <<\_ASBOX
1328## ----------- ##
1329## confdefs.h. ##
1330## ----------- ##
1331_ASBOX
1332      echo
1333      sed "/^$/d" confdefs.h | sort
1334      echo
1335    fi
1336    test "$ac_signal" != 0 &&
1337      echo "$as_me: caught signal $ac_signal"
1338    echo "$as_me: exit $exit_status"
1339  } >&5
1340  rm -f core *.core &&
1341  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1342    exit $exit_status
1343     ' 0
1344for ac_signal in 1 2 13 15; do
1345  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1346done
1347ac_signal=0
1348
1349# confdefs.h avoids OS command line length limits that DEFS can exceed.
1350rm -rf conftest* confdefs.h
1351# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1352echo >confdefs.h
1353
1354# Predefined preprocessor variables.
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_NAME "$PACKAGE_NAME"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_VERSION "$PACKAGE_VERSION"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_STRING "$PACKAGE_STRING"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1378_ACEOF
1379
1380
1381# Let the site file select an alternate cache file if it wants to.
1382# Prefer explicitly selected file to automatically selected ones.
1383if test -z "$CONFIG_SITE"; then
1384  if test "x$prefix" != xNONE; then
1385    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1386  else
1387    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1388  fi
1389fi
1390for ac_site_file in $CONFIG_SITE; do
1391  if test -r "$ac_site_file"; then
1392    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1393echo "$as_me: loading site script $ac_site_file" >&6;}
1394    sed 's/^/| /' "$ac_site_file" >&5
1395    . "$ac_site_file"
1396  fi
1397done
1398
1399if test -r "$cache_file"; then
1400  # Some versions of bash will fail to source /dev/null (special
1401  # files actually), so we avoid doing that.
1402  if test -f "$cache_file"; then
1403    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1404echo "$as_me: loading cache $cache_file" >&6;}
1405    case $cache_file in
1406      [\\/]* | ?:[\\/]* ) . $cache_file;;
1407      *)                      . ./$cache_file;;
1408    esac
1409  fi
1410else
1411  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1412echo "$as_me: creating cache $cache_file" >&6;}
1413  >$cache_file
1414fi
1415
1416# Check that the precious variables saved in the cache have kept the same
1417# value.
1418ac_cache_corrupted=false
1419for ac_var in `(set) 2>&1 |
1420	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1421  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1422  eval ac_new_set=\$ac_env_${ac_var}_set
1423  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1424  eval ac_new_val="\$ac_env_${ac_var}_value"
1425  case $ac_old_set,$ac_new_set in
1426    set,)
1427      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1428echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1429      ac_cache_corrupted=: ;;
1430    ,set)
1431      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1432echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1433      ac_cache_corrupted=: ;;
1434    ,);;
1435    *)
1436      if test "x$ac_old_val" != "x$ac_new_val"; then
1437	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1440echo "$as_me:   former value:  $ac_old_val" >&2;}
1441	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1442echo "$as_me:   current value: $ac_new_val" >&2;}
1443	ac_cache_corrupted=:
1444      fi;;
1445  esac
1446  # Pass precious variables to config.status.
1447  if test "$ac_new_set" = set; then
1448    case $ac_new_val in
1449    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1450      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1451    *) ac_arg=$ac_var=$ac_new_val ;;
1452    esac
1453    case " $ac_configure_args " in
1454      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1455      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1456    esac
1457  fi
1458done
1459if $ac_cache_corrupted; then
1460  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1461echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1462  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1463echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1464   { (exit 1); exit 1; }; }
1465fi
1466
1467ac_ext=c
1468ac_cpp='$CPP $CPPFLAGS'
1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491#   configuration header
1492if test ".`echo dummy $@ | grep help`" = .; then
1493    #   bootstrapping shtool
1494    ac_prog=$0
1495    ac_srcdir=`echo $ac_prog | sed -e 's%/[^/][^/]*$%%' -e 's%\([^/]\)/*$%\1%'`
1496    test ".$ac_srcdir" = ".$ac_prog" && ac_srcdir=.
1497    ac_shtool="$ac_srcdir/shtool"
1498
1499    #   find out terminal sequences
1500    TB=`$ac_shtool echo -n -e %B 2>/dev/null`
1501    TN=`$ac_shtool echo -n -e %b 2>/dev/null`
1502
1503    #   find out package version
1504    STR_VERSION_STR="`$ac_shtool version -l c -d long $ac_srcdir/str_version.c`"
1505
1506
1507    #   friendly header ;)
1508    if test ".$enable_headline" != .no; then
1509        echo "Configuring ${TB}OSSP str${TN} (String Handling), Version ${TB}${STR_VERSION_STR}${TN}"
1510        echo "Copyright (c) 1999-2005 Ralf S. Engelschall <rse@engelschall.com>
1511Copyright (c) 1999-2005 The OSSP Project <http://www.ossp.org>"
1512    fi
1513
1514    #   additionally find out hex version
1515    STR_VERSION_HEX="`$ac_shtool version -l c -d hex $ac_srcdir/str_version.c`"
1516
1517fi
1518
1519
1520if test ".$host" != .NONE && test ".$host" != .; then
1521    PLATFORM="$host"
1522else
1523    PLATFORM=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
1524fi
1525PLATFORM=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub $PLATFORM` || exit 1
1526
1527if test ".$enable_subdir" != .yes; then
1528    if test ".$enable_headline" != .no; then
1529        echo "Platform: ${TB}${PLATFORM}${TN}"
1530    fi
1531fi
1532
1533
1534echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1535echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1536set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1537if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1538  echo $ECHO_N "(cached) $ECHO_C" >&6
1539else
1540  cat >conftest.make <<\_ACEOF
1541all:
1542	@echo 'ac_maketemp="$(MAKE)"'
1543_ACEOF
1544# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1545eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1546if test -n "$ac_maketemp"; then
1547  eval ac_cv_prog_make_${ac_make}_set=yes
1548else
1549  eval ac_cv_prog_make_${ac_make}_set=no
1550fi
1551rm -f conftest.make
1552fi
1553if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1554  echo "$as_me:$LINENO: result: yes" >&5
1555echo "${ECHO_T}yes" >&6
1556  SET_MAKE=
1557else
1558  echo "$as_me:$LINENO: result: no" >&5
1559echo "${ECHO_T}no" >&6
1560  SET_MAKE="MAKE=${MAKE-make}"
1561fi
1562
1563ac_ext=c
1564ac_cpp='$CPP $CPPFLAGS'
1565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1567ac_compiler_gnu=$ac_cv_c_compiler_gnu
1568if test -n "$ac_tool_prefix"; then
1569  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1570set dummy ${ac_tool_prefix}gcc; ac_word=$2
1571echo "$as_me:$LINENO: checking for $ac_word" >&5
1572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573if test "${ac_cv_prog_CC+set}" = set; then
1574  echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576  if test -n "$CC"; then
1577  ac_cv_prog_CC="$CC" # Let the user override the test.
1578else
1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580for as_dir in $PATH
1581do
1582  IFS=$as_save_IFS
1583  test -z "$as_dir" && as_dir=.
1584  for ac_exec_ext in '' $ac_executable_extensions; do
1585  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588    break 2
1589  fi
1590done
1591done
1592
1593fi
1594fi
1595CC=$ac_cv_prog_CC
1596if test -n "$CC"; then
1597  echo "$as_me:$LINENO: result: $CC" >&5
1598echo "${ECHO_T}$CC" >&6
1599else
1600  echo "$as_me:$LINENO: result: no" >&5
1601echo "${ECHO_T}no" >&6
1602fi
1603
1604fi
1605if test -z "$ac_cv_prog_CC"; then
1606  ac_ct_CC=$CC
1607  # Extract the first word of "gcc", so it can be a program name with args.
1608set dummy gcc; ac_word=$2
1609echo "$as_me:$LINENO: checking for $ac_word" >&5
1610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1612  echo $ECHO_N "(cached) $ECHO_C" >&6
1613else
1614  if test -n "$ac_ct_CC"; then
1615  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1616else
1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618for as_dir in $PATH
1619do
1620  IFS=$as_save_IFS
1621  test -z "$as_dir" && as_dir=.
1622  for ac_exec_ext in '' $ac_executable_extensions; do
1623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624    ac_cv_prog_ac_ct_CC="gcc"
1625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626    break 2
1627  fi
1628done
1629done
1630
1631fi
1632fi
1633ac_ct_CC=$ac_cv_prog_ac_ct_CC
1634if test -n "$ac_ct_CC"; then
1635  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1636echo "${ECHO_T}$ac_ct_CC" >&6
1637else
1638  echo "$as_me:$LINENO: result: no" >&5
1639echo "${ECHO_T}no" >&6
1640fi
1641
1642  CC=$ac_ct_CC
1643else
1644  CC="$ac_cv_prog_CC"
1645fi
1646
1647if test -z "$CC"; then
1648  if test -n "$ac_tool_prefix"; then
1649  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1650set dummy ${ac_tool_prefix}cc; ac_word=$2
1651echo "$as_me:$LINENO: checking for $ac_word" >&5
1652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653if test "${ac_cv_prog_CC+set}" = set; then
1654  echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656  if test -n "$CC"; then
1657  ac_cv_prog_CC="$CC" # Let the user override the test.
1658else
1659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660for as_dir in $PATH
1661do
1662  IFS=$as_save_IFS
1663  test -z "$as_dir" && as_dir=.
1664  for ac_exec_ext in '' $ac_executable_extensions; do
1665  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666    ac_cv_prog_CC="${ac_tool_prefix}cc"
1667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668    break 2
1669  fi
1670done
1671done
1672
1673fi
1674fi
1675CC=$ac_cv_prog_CC
1676if test -n "$CC"; then
1677  echo "$as_me:$LINENO: result: $CC" >&5
1678echo "${ECHO_T}$CC" >&6
1679else
1680  echo "$as_me:$LINENO: result: no" >&5
1681echo "${ECHO_T}no" >&6
1682fi
1683
1684fi
1685if test -z "$ac_cv_prog_CC"; then
1686  ac_ct_CC=$CC
1687  # Extract the first word of "cc", so it can be a program name with args.
1688set dummy cc; ac_word=$2
1689echo "$as_me:$LINENO: checking for $ac_word" >&5
1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1692  echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694  if test -n "$ac_ct_CC"; then
1695  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1696else
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700  IFS=$as_save_IFS
1701  test -z "$as_dir" && as_dir=.
1702  for ac_exec_ext in '' $ac_executable_extensions; do
1703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704    ac_cv_prog_ac_ct_CC="cc"
1705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706    break 2
1707  fi
1708done
1709done
1710
1711fi
1712fi
1713ac_ct_CC=$ac_cv_prog_ac_ct_CC
1714if test -n "$ac_ct_CC"; then
1715  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1716echo "${ECHO_T}$ac_ct_CC" >&6
1717else
1718  echo "$as_me:$LINENO: result: no" >&5
1719echo "${ECHO_T}no" >&6
1720fi
1721
1722  CC=$ac_ct_CC
1723else
1724  CC="$ac_cv_prog_CC"
1725fi
1726
1727fi
1728if test -z "$CC"; then
1729  # Extract the first word of "cc", so it can be a program name with args.
1730set dummy cc; ac_word=$2
1731echo "$as_me:$LINENO: checking for $ac_word" >&5
1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733if test "${ac_cv_prog_CC+set}" = set; then
1734  echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
1736  if test -n "$CC"; then
1737  ac_cv_prog_CC="$CC" # Let the user override the test.
1738else
1739  ac_prog_rejected=no
1740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741for as_dir in $PATH
1742do
1743  IFS=$as_save_IFS
1744  test -z "$as_dir" && as_dir=.
1745  for ac_exec_ext in '' $ac_executable_extensions; do
1746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1748       ac_prog_rejected=yes
1749       continue
1750     fi
1751    ac_cv_prog_CC="cc"
1752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753    break 2
1754  fi
1755done
1756done
1757
1758if test $ac_prog_rejected = yes; then
1759  # We found a bogon in the path, so make sure we never use it.
1760  set dummy $ac_cv_prog_CC
1761  shift
1762  if test $# != 0; then
1763    # We chose a different compiler from the bogus one.
1764    # However, it has the same basename, so the bogon will be chosen
1765    # first if we set CC to just the basename; use the full file name.
1766    shift
1767    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1768  fi
1769fi
1770fi
1771fi
1772CC=$ac_cv_prog_CC
1773if test -n "$CC"; then
1774  echo "$as_me:$LINENO: result: $CC" >&5
1775echo "${ECHO_T}$CC" >&6
1776else
1777  echo "$as_me:$LINENO: result: no" >&5
1778echo "${ECHO_T}no" >&6
1779fi
1780
1781fi
1782if test -z "$CC"; then
1783  if test -n "$ac_tool_prefix"; then
1784  for ac_prog in cl
1785  do
1786    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1788echo "$as_me:$LINENO: checking for $ac_word" >&5
1789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790if test "${ac_cv_prog_CC+set}" = set; then
1791  echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793  if test -n "$CC"; then
1794  ac_cv_prog_CC="$CC" # Let the user override the test.
1795else
1796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797for as_dir in $PATH
1798do
1799  IFS=$as_save_IFS
1800  test -z "$as_dir" && as_dir=.
1801  for ac_exec_ext in '' $ac_executable_extensions; do
1802  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1804    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805    break 2
1806  fi
1807done
1808done
1809
1810fi
1811fi
1812CC=$ac_cv_prog_CC
1813if test -n "$CC"; then
1814  echo "$as_me:$LINENO: result: $CC" >&5
1815echo "${ECHO_T}$CC" >&6
1816else
1817  echo "$as_me:$LINENO: result: no" >&5
1818echo "${ECHO_T}no" >&6
1819fi
1820
1821    test -n "$CC" && break
1822  done
1823fi
1824if test -z "$CC"; then
1825  ac_ct_CC=$CC
1826  for ac_prog in cl
1827do
1828  # Extract the first word of "$ac_prog", so it can be a program name with args.
1829set dummy $ac_prog; ac_word=$2
1830echo "$as_me:$LINENO: checking for $ac_word" >&5
1831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1833  echo $ECHO_N "(cached) $ECHO_C" >&6
1834else
1835  if test -n "$ac_ct_CC"; then
1836  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1837else
1838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839for as_dir in $PATH
1840do
1841  IFS=$as_save_IFS
1842  test -z "$as_dir" && as_dir=.
1843  for ac_exec_ext in '' $ac_executable_extensions; do
1844  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845    ac_cv_prog_ac_ct_CC="$ac_prog"
1846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847    break 2
1848  fi
1849done
1850done
1851
1852fi
1853fi
1854ac_ct_CC=$ac_cv_prog_ac_ct_CC
1855if test -n "$ac_ct_CC"; then
1856  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1857echo "${ECHO_T}$ac_ct_CC" >&6
1858else
1859  echo "$as_me:$LINENO: result: no" >&5
1860echo "${ECHO_T}no" >&6
1861fi
1862
1863  test -n "$ac_ct_CC" && break
1864done
1865
1866  CC=$ac_ct_CC
1867fi
1868
1869fi
1870
1871
1872test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1873See \`config.log' for more details." >&5
1874echo "$as_me: error: no acceptable C compiler found in \$PATH
1875See \`config.log' for more details." >&2;}
1876   { (exit 1); exit 1; }; }
1877
1878# Provide some information about the compiler.
1879echo "$as_me:$LINENO:" \
1880     "checking for C compiler version" >&5
1881ac_compiler=`set X $ac_compile; echo $2`
1882{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1883  (eval $ac_compiler --version </dev/null >&5) 2>&5
1884  ac_status=$?
1885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886  (exit $ac_status); }
1887{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1888  (eval $ac_compiler -v </dev/null >&5) 2>&5
1889  ac_status=$?
1890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891  (exit $ac_status); }
1892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1893  (eval $ac_compiler -V </dev/null >&5) 2>&5
1894  ac_status=$?
1895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896  (exit $ac_status); }
1897
1898cat >conftest.$ac_ext <<_ACEOF
1899/* confdefs.h.  */
1900_ACEOF
1901cat confdefs.h >>conftest.$ac_ext
1902cat >>conftest.$ac_ext <<_ACEOF
1903/* end confdefs.h.  */
1904
1905int
1906main ()
1907{
1908
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913ac_clean_files_save=$ac_clean_files
1914ac_clean_files="$ac_clean_files a.out a.exe b.out"
1915# Try to create an executable without -o first, disregard a.out.
1916# It will help us diagnose broken compilers, and finding out an intuition
1917# of exeext.
1918echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1919echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1920ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1921if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1922  (eval $ac_link_default) 2>&5
1923  ac_status=$?
1924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925  (exit $ac_status); }; then
1926  # Find the output, starting from the most likely.  This scheme is
1927# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1928# resort.
1929
1930# Be careful to initialize this variable, since it used to be cached.
1931# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1932ac_cv_exeext=
1933# b.out is created by i960 compilers.
1934for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1935do
1936  test -f "$ac_file" || continue
1937  case $ac_file in
1938    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1939	;;
1940    conftest.$ac_ext )
1941	# This is the source file.
1942	;;
1943    [ab].out )
1944	# We found the default executable, but exeext='' is most
1945	# certainly right.
1946	break;;
1947    *.* )
1948	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1949	# FIXME: I believe we export ac_cv_exeext for Libtool,
1950	# but it would be cool to find out if it's true.  Does anybody
1951	# maintain Libtool? --akim.
1952	export ac_cv_exeext
1953	break;;
1954    * )
1955	break;;
1956  esac
1957done
1958else
1959  echo "$as_me: failed program was:" >&5
1960sed 's/^/| /' conftest.$ac_ext >&5
1961
1962{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1963See \`config.log' for more details." >&5
1964echo "$as_me: error: C compiler cannot create executables
1965See \`config.log' for more details." >&2;}
1966   { (exit 77); exit 77; }; }
1967fi
1968
1969ac_exeext=$ac_cv_exeext
1970echo "$as_me:$LINENO: result: $ac_file" >&5
1971echo "${ECHO_T}$ac_file" >&6
1972
1973# Check the compiler produces executables we can run.  If not, either
1974# the compiler is broken, or we cross compile.
1975echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1976echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1977# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1978# If not cross compiling, check that we can run a simple program.
1979if test "$cross_compiling" != yes; then
1980  if { ac_try='./$ac_file'
1981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982  (eval $ac_try) 2>&5
1983  ac_status=$?
1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985  (exit $ac_status); }; }; then
1986    cross_compiling=no
1987  else
1988    if test "$cross_compiling" = maybe; then
1989	cross_compiling=yes
1990    else
1991	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1992If you meant to cross compile, use \`--host'.
1993See \`config.log' for more details." >&5
1994echo "$as_me: error: cannot run C compiled programs.
1995If you meant to cross compile, use \`--host'.
1996See \`config.log' for more details." >&2;}
1997   { (exit 1); exit 1; }; }
1998    fi
1999  fi
2000fi
2001echo "$as_me:$LINENO: result: yes" >&5
2002echo "${ECHO_T}yes" >&6
2003
2004rm -f a.out a.exe conftest$ac_cv_exeext b.out
2005ac_clean_files=$ac_clean_files_save
2006# Check the compiler produces executables we can run.  If not, either
2007# the compiler is broken, or we cross compile.
2008echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2009echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2010echo "$as_me:$LINENO: result: $cross_compiling" >&5
2011echo "${ECHO_T}$cross_compiling" >&6
2012
2013echo "$as_me:$LINENO: checking for suffix of executables" >&5
2014echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2016  (eval $ac_link) 2>&5
2017  ac_status=$?
2018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019  (exit $ac_status); }; then
2020  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2021# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2022# work properly (i.e., refer to `conftest.exe'), while it won't with
2023# `rm'.
2024for ac_file in conftest.exe conftest conftest.*; do
2025  test -f "$ac_file" || continue
2026  case $ac_file in
2027    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2028    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2029	  export ac_cv_exeext
2030	  break;;
2031    * ) break;;
2032  esac
2033done
2034else
2035  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2036See \`config.log' for more details." >&5
2037echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2038See \`config.log' for more details." >&2;}
2039   { (exit 1); exit 1; }; }
2040fi
2041
2042rm -f conftest$ac_cv_exeext
2043echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2044echo "${ECHO_T}$ac_cv_exeext" >&6
2045
2046rm -f conftest.$ac_ext
2047EXEEXT=$ac_cv_exeext
2048ac_exeext=$EXEEXT
2049echo "$as_me:$LINENO: checking for suffix of object files" >&5
2050echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2051if test "${ac_cv_objext+set}" = set; then
2052  echo $ECHO_N "(cached) $ECHO_C" >&6
2053else
2054  cat >conftest.$ac_ext <<_ACEOF
2055/* confdefs.h.  */
2056_ACEOF
2057cat confdefs.h >>conftest.$ac_ext
2058cat >>conftest.$ac_ext <<_ACEOF
2059/* end confdefs.h.  */
2060
2061int
2062main ()
2063{
2064
2065  ;
2066  return 0;
2067}
2068_ACEOF
2069rm -f conftest.o conftest.obj
2070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071  (eval $ac_compile) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; then
2075  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2076  case $ac_file in
2077    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2078    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2079       break;;
2080  esac
2081done
2082else
2083  echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2087See \`config.log' for more details." >&5
2088echo "$as_me: error: cannot compute suffix of object files: cannot compile
2089See \`config.log' for more details." >&2;}
2090   { (exit 1); exit 1; }; }
2091fi
2092
2093rm -f conftest.$ac_cv_objext conftest.$ac_ext
2094fi
2095echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2096echo "${ECHO_T}$ac_cv_objext" >&6
2097OBJEXT=$ac_cv_objext
2098ac_objext=$OBJEXT
2099echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2100echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2101if test "${ac_cv_c_compiler_gnu+set}" = set; then
2102  echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104  cat >conftest.$ac_ext <<_ACEOF
2105/* confdefs.h.  */
2106_ACEOF
2107cat confdefs.h >>conftest.$ac_ext
2108cat >>conftest.$ac_ext <<_ACEOF
2109/* end confdefs.h.  */
2110
2111int
2112main ()
2113{
2114#ifndef __GNUC__
2115       choke me
2116#endif
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122rm -f conftest.$ac_objext
2123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124  (eval $ac_compile) 2>conftest.er1
2125  ac_status=$?
2126  grep -v '^ *+' conftest.er1 >conftest.err
2127  rm -f conftest.er1
2128  cat conftest.err >&5
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); } &&
2131	 { ac_try='test -z "$ac_c_werror_flag"
2132			 || test ! -s conftest.err'
2133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134  (eval $ac_try) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }; } &&
2138	 { ac_try='test -s conftest.$ac_objext'
2139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140  (eval $ac_try) 2>&5
2141  ac_status=$?
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); }; }; then
2144  ac_compiler_gnu=yes
2145else
2146  echo "$as_me: failed program was:" >&5
2147sed 's/^/| /' conftest.$ac_ext >&5
2148
2149ac_compiler_gnu=no
2150fi
2151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2152ac_cv_c_compiler_gnu=$ac_compiler_gnu
2153
2154fi
2155echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2156echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2157GCC=`test $ac_compiler_gnu = yes && echo yes`
2158ac_test_CFLAGS=${CFLAGS+set}
2159ac_save_CFLAGS=$CFLAGS
2160CFLAGS="-g"
2161echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2162echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2163if test "${ac_cv_prog_cc_g+set}" = set; then
2164  echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166  cat >conftest.$ac_ext <<_ACEOF
2167/* confdefs.h.  */
2168_ACEOF
2169cat confdefs.h >>conftest.$ac_ext
2170cat >>conftest.$ac_ext <<_ACEOF
2171/* end confdefs.h.  */
2172
2173int
2174main ()
2175{
2176
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181rm -f conftest.$ac_objext
2182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183  (eval $ac_compile) 2>conftest.er1
2184  ac_status=$?
2185  grep -v '^ *+' conftest.er1 >conftest.err
2186  rm -f conftest.er1
2187  cat conftest.err >&5
2188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189  (exit $ac_status); } &&
2190	 { ac_try='test -z "$ac_c_werror_flag"
2191			 || test ! -s conftest.err'
2192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193  (eval $ac_try) 2>&5
2194  ac_status=$?
2195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196  (exit $ac_status); }; } &&
2197	 { ac_try='test -s conftest.$ac_objext'
2198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199  (eval $ac_try) 2>&5
2200  ac_status=$?
2201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202  (exit $ac_status); }; }; then
2203  ac_cv_prog_cc_g=yes
2204else
2205  echo "$as_me: failed program was:" >&5
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
2208ac_cv_prog_cc_g=no
2209fi
2210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2211fi
2212echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2213echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2214if test "$ac_test_CFLAGS" = set; then
2215  CFLAGS=$ac_save_CFLAGS
2216elif test $ac_cv_prog_cc_g = yes; then
2217  if test "$GCC" = yes; then
2218    CFLAGS="-g -O2"
2219  else
2220    CFLAGS="-g"
2221  fi
2222else
2223  if test "$GCC" = yes; then
2224    CFLAGS="-O2"
2225  else
2226    CFLAGS=
2227  fi
2228fi
2229echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2230echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2231if test "${ac_cv_prog_cc_stdc+set}" = set; then
2232  echo $ECHO_N "(cached) $ECHO_C" >&6
2233else
2234  ac_cv_prog_cc_stdc=no
2235ac_save_CC=$CC
2236cat >conftest.$ac_ext <<_ACEOF
2237/* confdefs.h.  */
2238_ACEOF
2239cat confdefs.h >>conftest.$ac_ext
2240cat >>conftest.$ac_ext <<_ACEOF
2241/* end confdefs.h.  */
2242#include <stdarg.h>
2243#include <stdio.h>
2244#include <sys/types.h>
2245#include <sys/stat.h>
2246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2247struct buf { int x; };
2248FILE * (*rcsopen) (struct buf *, struct stat *, int);
2249static char *e (p, i)
2250     char **p;
2251     int i;
2252{
2253  return p[i];
2254}
2255static char *f (char * (*g) (char **, int), char **p, ...)
2256{
2257  char *s;
2258  va_list v;
2259  va_start (v,p);
2260  s = g (p, va_arg (v,int));
2261  va_end (v);
2262  return s;
2263}
2264
2265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2266   function prototypes and stuff, but not '\xHH' hex character constants.
2267   These don't provoke an error unfortunately, instead are silently treated
2268   as 'x'.  The following induces an error, until -std1 is added to get
2269   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2270   array size at least.  It's necessary to write '\x00'==0 to get something
2271   that's true only with -std1.  */
2272int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2273
2274int test (int i, double x);
2275struct s1 {int (*f) (int a);};
2276struct s2 {int (*f) (double a);};
2277int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2278int argc;
2279char **argv;
2280int
2281main ()
2282{
2283return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2284  ;
2285  return 0;
2286}
2287_ACEOF
2288# Don't try gcc -ansi; that turns off useful extensions and
2289# breaks some systems' header files.
2290# AIX			-qlanglvl=ansi
2291# Ultrix and OSF/1	-std1
2292# HP-UX 10.20 and later	-Ae
2293# HP-UX older versions	-Aa -D_HPUX_SOURCE
2294# SVR4			-Xc -D__EXTENSIONS__
2295for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2296do
2297  CC="$ac_save_CC $ac_arg"
2298  rm -f conftest.$ac_objext
2299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300  (eval $ac_compile) 2>conftest.er1
2301  ac_status=$?
2302  grep -v '^ *+' conftest.er1 >conftest.err
2303  rm -f conftest.er1
2304  cat conftest.err >&5
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); } &&
2307	 { ac_try='test -z "$ac_c_werror_flag"
2308			 || test ! -s conftest.err'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; } &&
2314	 { ac_try='test -s conftest.$ac_objext'
2315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316  (eval $ac_try) 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); }; }; then
2320  ac_cv_prog_cc_stdc=$ac_arg
2321break
2322else
2323  echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326fi
2327rm -f conftest.err conftest.$ac_objext
2328done
2329rm -f conftest.$ac_ext conftest.$ac_objext
2330CC=$ac_save_CC
2331
2332fi
2333
2334case "x$ac_cv_prog_cc_stdc" in
2335  x|xno)
2336    echo "$as_me:$LINENO: result: none needed" >&5
2337echo "${ECHO_T}none needed" >&6 ;;
2338  *)
2339    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2340echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2341    CC="$CC $ac_cv_prog_cc_stdc" ;;
2342esac
2343
2344# Some people use a C++ compiler to compile C.  Since we use `exit',
2345# in C++ we need to declare it.  In case someone uses the same compiler
2346# for both compiling C and C++ we need to have the C++ compiler decide
2347# the declaration of exit, since it's the most demanding environment.
2348cat >conftest.$ac_ext <<_ACEOF
2349#ifndef __cplusplus
2350  choke me
2351#endif
2352_ACEOF
2353rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362	 { ac_try='test -z "$ac_c_werror_flag"
2363			 || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369	 { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  for ac_declaration in \
2376   '' \
2377   'extern "C" void std::exit (int) throw (); using std::exit;' \
2378   'extern "C" void std::exit (int); using std::exit;' \
2379   'extern "C" void exit (int) throw ();' \
2380   'extern "C" void exit (int);' \
2381   'void exit (int);'
2382do
2383  cat >conftest.$ac_ext <<_ACEOF
2384/* confdefs.h.  */
2385_ACEOF
2386cat confdefs.h >>conftest.$ac_ext
2387cat >>conftest.$ac_ext <<_ACEOF
2388/* end confdefs.h.  */
2389$ac_declaration
2390#include <stdlib.h>
2391int
2392main ()
2393{
2394exit (42);
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>conftest.er1
2402  ac_status=$?
2403  grep -v '^ *+' conftest.er1 >conftest.err
2404  rm -f conftest.er1
2405  cat conftest.err >&5
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); } &&
2408	 { ac_try='test -z "$ac_c_werror_flag"
2409			 || test ! -s conftest.err'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; } &&
2415	 { ac_try='test -s conftest.$ac_objext'
2416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417  (eval $ac_try) 2>&5
2418  ac_status=$?
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); }; }; then
2421  :
2422else
2423  echo "$as_me: failed program was:" >&5
2424sed 's/^/| /' conftest.$ac_ext >&5
2425
2426continue
2427fi
2428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429  cat >conftest.$ac_ext <<_ACEOF
2430/* confdefs.h.  */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h.  */
2435$ac_declaration
2436int
2437main ()
2438{
2439exit (42);
2440  ;
2441  return 0;
2442}
2443_ACEOF
2444rm -f conftest.$ac_objext
2445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446  (eval $ac_compile) 2>conftest.er1
2447  ac_status=$?
2448  grep -v '^ *+' conftest.er1 >conftest.err
2449  rm -f conftest.er1
2450  cat conftest.err >&5
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); } &&
2453	 { ac_try='test -z "$ac_c_werror_flag"
2454			 || test ! -s conftest.err'
2455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456  (eval $ac_try) 2>&5
2457  ac_status=$?
2458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459  (exit $ac_status); }; } &&
2460	 { ac_try='test -s conftest.$ac_objext'
2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462  (eval $ac_try) 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }; }; then
2466  break
2467else
2468  echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471fi
2472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473done
2474rm -f conftest*
2475if test -n "$ac_declaration"; then
2476  echo '#ifdef __cplusplus' >>confdefs.h
2477  echo $ac_declaration      >>confdefs.h
2478  echo '#endif'             >>confdefs.h
2479fi
2480
2481else
2482  echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485fi
2486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487ac_ext=c
2488ac_cpp='$CPP $CPPFLAGS'
2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492
2493ac_ext=c
2494ac_cpp='$CPP $CPPFLAGS'
2495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2499echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2500# On Suns, sometimes $CPP names a directory.
2501if test -n "$CPP" && test -d "$CPP"; then
2502  CPP=
2503fi
2504if test -z "$CPP"; then
2505  if test "${ac_cv_prog_CPP+set}" = set; then
2506  echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508      # Double quotes because CPP needs to be expanded
2509    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2510    do
2511      ac_preproc_ok=false
2512for ac_c_preproc_warn_flag in '' yes
2513do
2514  # Use a header file that comes with gcc, so configuring glibc
2515  # with a fresh cross-compiler works.
2516  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2517  # <limits.h> exists even on freestanding compilers.
2518  # On the NeXT, cc -E runs the code through the compiler's parser,
2519  # not just through cpp. "Syntax error" is here to catch this case.
2520  cat >conftest.$ac_ext <<_ACEOF
2521/* confdefs.h.  */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h.  */
2526#ifdef __STDC__
2527# include <limits.h>
2528#else
2529# include <assert.h>
2530#endif
2531		     Syntax error
2532_ACEOF
2533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2534  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535  ac_status=$?
2536  grep -v '^ *+' conftest.er1 >conftest.err
2537  rm -f conftest.er1
2538  cat conftest.err >&5
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); } >/dev/null; then
2541  if test -s conftest.err; then
2542    ac_cpp_err=$ac_c_preproc_warn_flag
2543    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2544  else
2545    ac_cpp_err=
2546  fi
2547else
2548  ac_cpp_err=yes
2549fi
2550if test -z "$ac_cpp_err"; then
2551  :
2552else
2553  echo "$as_me: failed program was:" >&5
2554sed 's/^/| /' conftest.$ac_ext >&5
2555
2556  # Broken: fails on valid input.
2557continue
2558fi
2559rm -f conftest.err conftest.$ac_ext
2560
2561  # OK, works on sane cases.  Now check whether non-existent headers
2562  # can be detected and how.
2563  cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h.  */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h.  */
2569#include <ac_nonexistent.h>
2570_ACEOF
2571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2572  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2573  ac_status=$?
2574  grep -v '^ *+' conftest.er1 >conftest.err
2575  rm -f conftest.er1
2576  cat conftest.err >&5
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); } >/dev/null; then
2579  if test -s conftest.err; then
2580    ac_cpp_err=$ac_c_preproc_warn_flag
2581    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2582  else
2583    ac_cpp_err=
2584  fi
2585else
2586  ac_cpp_err=yes
2587fi
2588if test -z "$ac_cpp_err"; then
2589  # Broken: success on invalid input.
2590continue
2591else
2592  echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595  # Passes both tests.
2596ac_preproc_ok=:
2597break
2598fi
2599rm -f conftest.err conftest.$ac_ext
2600
2601done
2602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2603rm -f conftest.err conftest.$ac_ext
2604if $ac_preproc_ok; then
2605  break
2606fi
2607
2608    done
2609    ac_cv_prog_CPP=$CPP
2610
2611fi
2612  CPP=$ac_cv_prog_CPP
2613else
2614  ac_cv_prog_CPP=$CPP
2615fi
2616echo "$as_me:$LINENO: result: $CPP" >&5
2617echo "${ECHO_T}$CPP" >&6
2618ac_preproc_ok=false
2619for ac_c_preproc_warn_flag in '' yes
2620do
2621  # Use a header file that comes with gcc, so configuring glibc
2622  # with a fresh cross-compiler works.
2623  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2624  # <limits.h> exists even on freestanding compilers.
2625  # On the NeXT, cc -E runs the code through the compiler's parser,
2626  # not just through cpp. "Syntax error" is here to catch this case.
2627  cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h.  */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h.  */
2633#ifdef __STDC__
2634# include <limits.h>
2635#else
2636# include <assert.h>
2637#endif
2638		     Syntax error
2639_ACEOF
2640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2641  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2642  ac_status=$?
2643  grep -v '^ *+' conftest.er1 >conftest.err
2644  rm -f conftest.er1
2645  cat conftest.err >&5
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); } >/dev/null; then
2648  if test -s conftest.err; then
2649    ac_cpp_err=$ac_c_preproc_warn_flag
2650    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2651  else
2652    ac_cpp_err=
2653  fi
2654else
2655  ac_cpp_err=yes
2656fi
2657if test -z "$ac_cpp_err"; then
2658  :
2659else
2660  echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663  # Broken: fails on valid input.
2664continue
2665fi
2666rm -f conftest.err conftest.$ac_ext
2667
2668  # OK, works on sane cases.  Now check whether non-existent headers
2669  # can be detected and how.
2670  cat >conftest.$ac_ext <<_ACEOF
2671/* confdefs.h.  */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h.  */
2676#include <ac_nonexistent.h>
2677_ACEOF
2678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2679  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } >/dev/null; then
2686  if test -s conftest.err; then
2687    ac_cpp_err=$ac_c_preproc_warn_flag
2688    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2689  else
2690    ac_cpp_err=
2691  fi
2692else
2693  ac_cpp_err=yes
2694fi
2695if test -z "$ac_cpp_err"; then
2696  # Broken: success on invalid input.
2697continue
2698else
2699  echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702  # Passes both tests.
2703ac_preproc_ok=:
2704break
2705fi
2706rm -f conftest.err conftest.$ac_ext
2707
2708done
2709# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2710rm -f conftest.err conftest.$ac_ext
2711if $ac_preproc_ok; then
2712  :
2713else
2714  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2715See \`config.log' for more details." >&5
2716echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2717See \`config.log' for more details." >&2;}
2718   { (exit 1); exit 1; }; }
2719fi
2720
2721ac_ext=c
2722ac_cpp='$CPP $CPPFLAGS'
2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726
2727
2728# Check whether --enable-debug or --disable-debug was given.
2729if test "${enable_debug+set}" = set; then
2730  enableval="$enable_debug"
2731  if test ".$ac_cv_c_compiler_gnu" = ".yes"; then
2732    case "$CFLAGS" in
2733        *-O* ) ;;
2734           * ) CFLAGS="$CFLAGS -O2" ;;
2735    esac
2736    case "$CFLAGS" in
2737        *-g* ) ;;
2738           * ) CFLAGS="$CFLAGS -g" ;;
2739    esac
2740    case "$CFLAGS" in
2741        *-pipe* ) ;;
2742              * ) echo "$as_me:$LINENO: checking whether compiler option(s) -pipe work" >&5
2743echo $ECHO_N "checking whether compiler option(s) -pipe work... $ECHO_C" >&6
2744if test "${ac_cv_compiler_option_pipe+set}" = set; then
2745  echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747
2748SAVE_CFLAGS="$CFLAGS"
2749CFLAGS="$CFLAGS -pipe"
2750cat >conftest.$ac_ext <<_ACEOF
2751/* confdefs.h.  */
2752_ACEOF
2753cat confdefs.h >>conftest.$ac_ext
2754cat >>conftest.$ac_ext <<_ACEOF
2755/* end confdefs.h.  */
2756
2757int
2758main ()
2759{
2760
2761  ;
2762  return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767  (eval $ac_compile) 2>conftest.er1
2768  ac_status=$?
2769  grep -v '^ *+' conftest.er1 >conftest.err
2770  rm -f conftest.er1
2771  cat conftest.err >&5
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); } &&
2774	 { ac_try='test -z "$ac_c_werror_flag"
2775			 || test ! -s conftest.err'
2776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777  (eval $ac_try) 2>&5
2778  ac_status=$?
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); }; } &&
2781	 { ac_try='test -s conftest.$ac_objext'
2782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783  (eval $ac_try) 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }; }; then
2787  ac_cv_compiler_option_pipe=yes
2788else
2789  echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792ac_cv_compiler_option_pipe=no
2793fi
2794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795CFLAGS="$SAVE_CFLAGS"
2796
2797fi
2798if test ".$ac_cv_compiler_option_pipe" = .yes; then
2799    CFLAGS="$CFLAGS -pipe"
2800else
2801    :
2802fi
2803echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5
2804echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6
2805 ;;
2806    esac
2807    CFLAGS="$CFLAGS -pedantic"
2808    CFLAGS="$CFLAGS -Wall"
2809    WMORE="-Wshadow -Wpointer-arith -Wcast-align -Winline"
2810    WMORE="$WMORE -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
2811    echo "$as_me:$LINENO: checking whether compiler option(s) -W<xxx> work" >&5
2812echo $ECHO_N "checking whether compiler option(s) -W<xxx> work... $ECHO_C" >&6
2813if test "${ac_cv_compiler_option_wmore+set}" = set; then
2814  echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816
2817SAVE_CFLAGS="$CFLAGS"
2818CFLAGS="$CFLAGS $WMORE"
2819cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h.  */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h.  */
2825
2826int
2827main ()
2828{
2829
2830  ;
2831  return 0;
2832}
2833_ACEOF
2834rm -f conftest.$ac_objext
2835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836  (eval $ac_compile) 2>conftest.er1
2837  ac_status=$?
2838  grep -v '^ *+' conftest.er1 >conftest.err
2839  rm -f conftest.er1
2840  cat conftest.err >&5
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); } &&
2843	 { ac_try='test -z "$ac_c_werror_flag"
2844			 || test ! -s conftest.err'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; } &&
2850	 { ac_try='test -s conftest.$ac_objext'
2851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852  (eval $ac_try) 2>&5
2853  ac_status=$?
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); }; }; then
2856  ac_cv_compiler_option_wmore=yes
2857else
2858  echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
2861ac_cv_compiler_option_wmore=no
2862fi
2863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864CFLAGS="$SAVE_CFLAGS"
2865
2866fi
2867if test ".$ac_cv_compiler_option_wmore" = .yes; then
2868    CFLAGS="$CFLAGS $WMORE"
2869else
2870    :
2871fi
2872echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wmore" >&5
2873echo "${ECHO_T}$ac_cv_compiler_option_wmore" >&6
2874
2875    echo "$as_me:$LINENO: checking whether compiler option(s) -Wno-long-long work" >&5
2876echo $ECHO_N "checking whether compiler option(s) -Wno-long-long work... $ECHO_C" >&6
2877if test "${ac_cv_compiler_option_wnolonglong+set}" = set; then
2878  echo $ECHO_N "(cached) $ECHO_C" >&6
2879else
2880
2881SAVE_CFLAGS="$CFLAGS"
2882CFLAGS="$CFLAGS -Wno-long-long"
2883cat >conftest.$ac_ext <<_ACEOF
2884/* confdefs.h.  */
2885_ACEOF
2886cat confdefs.h >>conftest.$ac_ext
2887cat >>conftest.$ac_ext <<_ACEOF
2888/* end confdefs.h.  */
2889
2890int
2891main ()
2892{
2893
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898rm -f conftest.$ac_objext
2899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900  (eval $ac_compile) 2>conftest.er1
2901  ac_status=$?
2902  grep -v '^ *+' conftest.er1 >conftest.err
2903  rm -f conftest.er1
2904  cat conftest.err >&5
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); } &&
2907	 { ac_try='test -z "$ac_c_werror_flag"
2908			 || test ! -s conftest.err'
2909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910  (eval $ac_try) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; } &&
2914	 { ac_try='test -s conftest.$ac_objext'
2915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916  (eval $ac_try) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; }; then
2920  ac_cv_compiler_option_wnolonglong=yes
2921else
2922  echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925ac_cv_compiler_option_wnolonglong=no
2926fi
2927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928CFLAGS="$SAVE_CFLAGS"
2929
2930fi
2931if test ".$ac_cv_compiler_option_wnolonglong" = .yes; then
2932    CFLAGS="$CFLAGS -Wno-long-long"
2933else
2934    :
2935fi
2936echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wnolonglong" >&5
2937echo "${ECHO_T}$ac_cv_compiler_option_wnolonglong" >&6
2938
2939else
2940    case "$CFLAGS" in
2941        *-g* ) ;;
2942           * ) CFLAGS="$CFLAGS -g" ;;
2943    esac
2944fi
2945msg="enabled"
2946
2947cat >>confdefs.h <<\_ACEOF
2948#define STR_DEBUG 1
2949_ACEOF
2950
2951
2952else
2953
2954if test ".$ac_cv_c_compiler_gnu" = ".yes"; then
2955case "$CFLAGS" in
2956    *-pipe* ) ;;
2957          * ) echo "$as_me:$LINENO: checking whether compiler option(s) -pipe work" >&5
2958echo $ECHO_N "checking whether compiler option(s) -pipe work... $ECHO_C" >&6
2959if test "${ac_cv_compiler_option_pipe+set}" = set; then
2960  echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962
2963SAVE_CFLAGS="$CFLAGS"
2964CFLAGS="$CFLAGS -pipe"
2965cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h.  */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h.  */
2971
2972int
2973main ()
2974{
2975
2976  ;
2977  return 0;
2978}
2979_ACEOF
2980rm -f conftest.$ac_objext
2981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2982  (eval $ac_compile) 2>conftest.er1
2983  ac_status=$?
2984  grep -v '^ *+' conftest.er1 >conftest.err
2985  rm -f conftest.er1
2986  cat conftest.err >&5
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); } &&
2989	 { ac_try='test -z "$ac_c_werror_flag"
2990			 || test ! -s conftest.err'
2991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992  (eval $ac_try) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }; } &&
2996	 { ac_try='test -s conftest.$ac_objext'
2997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; }; then
3002  ac_cv_compiler_option_pipe=yes
3003else
3004  echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007ac_cv_compiler_option_pipe=no
3008fi
3009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3010CFLAGS="$SAVE_CFLAGS"
3011
3012fi
3013if test ".$ac_cv_compiler_option_pipe" = .yes; then
3014    CFLAGS="$CFLAGS -pipe"
3015else
3016    :
3017fi
3018echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5
3019echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6
3020 ;;
3021esac
3022fi
3023case "$CFLAGS" in
3024    *-g* ) CFLAGS=`echo "$CFLAGS" |\
3025                   sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;;
3026esac
3027case "$CXXFLAGS" in
3028    *-g* ) CXXFLAGS=`echo "$CXXFLAGS" |\
3029                     sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;;
3030esac
3031msg=disabled
3032
3033fi; echo "$as_me:$LINENO: checking for compilation debug mode" >&5
3034echo $ECHO_N "checking for compilation debug mode... $ECHO_C" >&6
3035echo "$as_me:$LINENO: result: $msg" >&5
3036echo "${ECHO_T}$msg" >&6
3037if test ".$msg" = .enabled; then
3038    enable_shared=no
3039fi
3040
3041
3042# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3043## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
3044## Free Software Foundation, Inc.
3045## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3046##
3047## This file is free software; the Free Software Foundation gives
3048## unlimited permission to copy and/or distribute it, with or without
3049## modifications, as long as this notice is preserved.
3050
3051# serial 47 AC_PROG_LIBTOOL
3052
3053
3054# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
3055# -----------------------------------------------------------
3056# If this macro is not defined by Autoconf, define it here.
3057
3058
3059
3060# AC_PROG_LIBTOOL
3061# ---------------
3062# AC_PROG_LIBTOOL
3063
3064
3065# _AC_PROG_LIBTOOL
3066# ----------------
3067# _AC_PROG_LIBTOOL
3068
3069
3070# AC_LIBTOOL_SETUP
3071# ----------------
3072# AC_LIBTOOL_SETUP
3073
3074
3075# _LT_AC_SYS_COMPILER
3076# -------------------
3077# _LT_AC_SYS_COMPILER
3078
3079
3080# _LT_CC_BASENAME(CC)
3081# -------------------
3082# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
3083
3084
3085
3086# _LT_COMPILER_BOILERPLATE
3087# ------------------------
3088# Check for compiler boilerplate output or warnings with
3089# the simple compiler test code.
3090# _LT_COMPILER_BOILERPLATE
3091
3092
3093# _LT_LINKER_BOILERPLATE
3094# ----------------------
3095# Check for linker boilerplate output or warnings with
3096# the simple link test code.
3097# _LT_LINKER_BOILERPLATE
3098
3099
3100# _LT_AC_SYS_LIBPATH_AIX
3101# ----------------------
3102# Links a minimal program and checks the executable
3103# for the system default hardcoded library path. In most cases,
3104# this is /usr/lib:/lib, but when the MPI compilers are used
3105# the location of the communication and MPI libs are included too.
3106# If we don't find anything, use the default library path according
3107# to the aix ld manual.
3108# _LT_AC_SYS_LIBPATH_AIX
3109
3110
3111# _LT_AC_SHELL_INIT(ARG)
3112# ----------------------
3113# _LT_AC_SHELL_INIT
3114
3115
3116# _LT_AC_PROG_ECHO_BACKSLASH
3117# --------------------------
3118# Add some code to the start of the generated configure script which
3119# will find an echo command which doesn't interpret backslashes.
3120# _LT_AC_PROG_ECHO_BACKSLASH
3121
3122
3123# _LT_AC_LOCK
3124# -----------
3125# _LT_AC_LOCK
3126
3127
3128# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3129#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3130# ----------------------------------------------------------------
3131# Check whether the given compiler option works
3132# AC_LIBTOOL_COMPILER_OPTION
3133
3134
3135# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3136#                          [ACTION-SUCCESS], [ACTION-FAILURE])
3137# ------------------------------------------------------------
3138# Check whether the given compiler option works
3139# AC_LIBTOOL_LINKER_OPTION
3140
3141
3142# AC_LIBTOOL_SYS_MAX_CMD_LEN
3143# --------------------------
3144# AC_LIBTOOL_SYS_MAX_CMD_LEN
3145
3146
3147# _LT_AC_CHECK_DLFCN
3148# --------------------
3149# _LT_AC_CHECK_DLFCN
3150
3151
3152# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3153#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3154# ------------------------------------------------------------------
3155# _LT_AC_TRY_DLOPEN_SELF
3156
3157
3158# AC_LIBTOOL_DLOPEN_SELF
3159# -------------------
3160# AC_LIBTOOL_DLOPEN_SELF
3161
3162
3163# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
3164# ---------------------------------
3165# Check to see if options -c and -o are simultaneously supported by compiler
3166# AC_LIBTOOL_PROG_CC_C_O
3167
3168
3169# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
3170# -----------------------------------------
3171# Check to see if we can do hard links to lock some files if needed
3172# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
3173
3174
3175# AC_LIBTOOL_OBJDIR
3176# -----------------
3177# AC_LIBTOOL_OBJDIR
3178
3179
3180# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
3181# ----------------------------------------------
3182# Check hardcoding attributes.
3183# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
3184
3185
3186# AC_LIBTOOL_SYS_LIB_STRIP
3187# ------------------------
3188# AC_LIBTOOL_SYS_LIB_STRIP
3189
3190
3191# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3192# -----------------------------
3193# PORTME Fill in your ld.so characteristics
3194# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3195
3196
3197# _LT_AC_TAGCONFIG
3198# ----------------
3199# _LT_AC_TAGCONFIG
3200
3201
3202# AC_LIBTOOL_DLOPEN
3203# -----------------
3204# enable checks for dlopen support
3205# AC_LIBTOOL_DLOPEN
3206
3207
3208# AC_LIBTOOL_WIN32_DLL
3209# --------------------
3210# declare package support for building win32 DLLs
3211# AC_LIBTOOL_WIN32_DLL
3212
3213
3214# AC_ENABLE_SHARED([DEFAULT])
3215# ---------------------------
3216# implement the --enable-shared flag
3217# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3218# AC_ENABLE_SHARED
3219
3220
3221# AC_DISABLE_SHARED
3222# -----------------
3223#- set the default shared flag to --disable-shared
3224# AC_DISABLE_SHARED
3225
3226
3227# AC_ENABLE_STATIC([DEFAULT])
3228# ---------------------------
3229# implement the --enable-static flag
3230# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3231# AC_ENABLE_STATIC
3232
3233
3234# AC_DISABLE_STATIC
3235# -----------------
3236# set the default static flag to --disable-static
3237# AC_DISABLE_STATIC
3238
3239
3240# AC_ENABLE_FAST_INSTALL([DEFAULT])
3241# ---------------------------------
3242# implement the --enable-fast-install flag
3243# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3244# AC_ENABLE_FAST_INSTALL
3245
3246
3247# AC_DISABLE_FAST_INSTALL
3248# -----------------------
3249# set the default to --disable-fast-install
3250# AC_DISABLE_FAST_INSTALL
3251
3252
3253# AC_LIBTOOL_PICMODE([MODE])
3254# --------------------------
3255# implement the --with-pic flag
3256# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3257# AC_LIBTOOL_PICMODE
3258
3259
3260# AC_PROG_EGREP
3261# -------------
3262# This is predefined starting with Autoconf 2.54, so this conditional
3263# definition can be removed once we require Autoconf 2.54 or later.
3264
3265
3266
3267# AC_PATH_TOOL_PREFIX
3268# -------------------
3269# find a file program which can recognise shared library
3270# AC_PATH_TOOL_PREFIX
3271
3272
3273# AC_PATH_MAGIC
3274# -------------
3275# find a file program which can recognise a shared library
3276# AC_PATH_MAGIC
3277
3278
3279# AC_PROG_LD
3280# ----------
3281# find the pathname to the GNU or non-GNU linker
3282# AC_PROG_LD
3283
3284
3285# AC_PROG_LD_GNU
3286# --------------
3287# AC_PROG_LD_GNU
3288
3289
3290# AC_PROG_LD_RELOAD_FLAG
3291# ----------------------
3292# find reload flag for linker
3293#   -- PORTME Some linkers may need a different reload flag.
3294# AC_PROG_LD_RELOAD_FLAG
3295
3296
3297# AC_DEPLIBS_CHECK_METHOD
3298# -----------------------
3299# how to check for library dependencies
3300#  -- PORTME fill in with the dynamic library characteristics
3301# AC_DEPLIBS_CHECK_METHOD
3302
3303
3304# AC_PROG_NM
3305# ----------
3306# find the pathname to a BSD-compatible name lister
3307# AC_PROG_NM
3308
3309
3310# AC_CHECK_LIBM
3311# -------------
3312# check for math library
3313# AC_CHECK_LIBM
3314
3315
3316# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3317# -----------------------------------
3318# sets LIBLTDL to the link flags for the libltdl convenience library and
3319# LTDLINCL to the include flags for the libltdl header and adds
3320# --enable-ltdl-convenience to the configure arguments.  Note that
3321# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3322# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3323# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3324# (note the single quotes!).  If your package is not flat and you're not
3325# using automake, define top_builddir and top_srcdir appropriately in
3326# the Makefiles.
3327# AC_LIBLTDL_CONVENIENCE
3328
3329
3330# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3331# -----------------------------------
3332# sets LIBLTDL to the link flags for the libltdl installable library and
3333# LTDLINCL to the include flags for the libltdl header and adds
3334# --enable-ltdl-install to the configure arguments.  Note that
3335# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3336# and an installed libltdl is not found, it is assumed to be `libltdl'.
3337# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3338# '${top_srcdir}/' (note the single quotes!).  If your package is not
3339# flat and you're not using automake, define top_builddir and top_srcdir
3340# appropriately in the Makefiles.
3341# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3342# AC_LIBLTDL_INSTALLABLE
3343
3344
3345# AC_LIBTOOL_CXX
3346# --------------
3347# enable support for C++ libraries
3348# AC_LIBTOOL_CXX
3349
3350
3351# _LT_AC_LANG_CXX
3352# ---------------
3353# _LT_AC_LANG_CXX
3354
3355# _LT_AC_PROG_CXXCPP
3356# ---------------
3357# _LT_AC_PROG_CXXCPP
3358
3359# AC_LIBTOOL_F77
3360# --------------
3361# enable support for Fortran 77 libraries
3362# AC_LIBTOOL_F77
3363
3364
3365# _LT_AC_LANG_F77
3366# ---------------
3367# _LT_AC_LANG_F77
3368
3369
3370# AC_LIBTOOL_GCJ
3371# --------------
3372# enable support for GCJ libraries
3373# AC_LIBTOOL_GCJ
3374
3375
3376# _LT_AC_LANG_GCJ
3377# ---------------
3378# _LT_AC_LANG_GCJ
3379
3380
3381# AC_LIBTOOL_RC
3382# --------------
3383# enable support for Windows resource files
3384# AC_LIBTOOL_RC
3385
3386
3387# AC_LIBTOOL_LANG_C_CONFIG
3388# ------------------------
3389# Ensure that the configuration vars for the C compiler are
3390# suitably defined.  Those variables are subsequently used by
3391# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3392
3393# AC_LIBTOOL_LANG_C_CONFIG
3394
3395
3396# AC_LIBTOOL_LANG_CXX_CONFIG
3397# --------------------------
3398# Ensure that the configuration vars for the C compiler are
3399# suitably defined.  Those variables are subsequently used by
3400# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3401
3402# AC_LIBTOOL_LANG_CXX_CONFIG
3403
3404# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3405# ------------------------
3406# Figure out "hidden" library dependencies from verbose
3407# compiler output when linking a shared library.
3408# Parse the compiler output and extract the necessary
3409# objects, libraries and library flags.
3410# AC_LIBTOOL_POSTDEP_PREDEP
3411
3412# AC_LIBTOOL_LANG_F77_CONFIG
3413# ------------------------
3414# Ensure that the configuration vars for the C compiler are
3415# suitably defined.  Those variables are subsequently used by
3416# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3417
3418# AC_LIBTOOL_LANG_F77_CONFIG
3419
3420
3421# AC_LIBTOOL_LANG_GCJ_CONFIG
3422# --------------------------
3423# Ensure that the configuration vars for the C compiler are
3424# suitably defined.  Those variables are subsequently used by
3425# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3426
3427# AC_LIBTOOL_LANG_GCJ_CONFIG
3428
3429
3430# AC_LIBTOOL_LANG_RC_CONFIG
3431# --------------------------
3432# Ensure that the configuration vars for the Windows resource compiler are
3433# suitably defined.  Those variables are subsequently used by
3434# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3435
3436# AC_LIBTOOL_LANG_RC_CONFIG
3437
3438
3439# AC_LIBTOOL_CONFIG([TAGNAME])
3440# ----------------------------
3441# If TAGNAME is not passed, then create an initial libtool script
3442# with a default configuration from the untagged config vars.  Otherwise
3443# add code to config.status for appending the configuration named by
3444# TAGNAME from the matching tagged config vars.
3445# AC_LIBTOOL_CONFIG
3446
3447
3448# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
3449# -------------------------------------------
3450# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
3451
3452
3453# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3454# ---------------------------------
3455 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3456
3457
3458# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
3459# ---------------------------------------
3460
3461
3462
3463# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
3464# ------------------------------------
3465# See if the linker supports building shared libraries.
3466# AC_LIBTOOL_PROG_LD_SHLIBS
3467
3468
3469# _LT_AC_FILE_LTDLL_C
3470# -------------------
3471# Be careful that the start marker always follows a newline.
3472# _LT_AC_FILE_LTDLL_C
3473
3474
3475# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
3476# ---------------------------------
3477
3478
3479
3480# old names
3481
3482
3483
3484
3485
3486
3487
3488
3489# This is just to silence aclocal about the macro not being used
3490
3491
3492
3493
3494
3495
3496############################################################
3497# NOTE: This macro has been submitted for inclusion into   #
3498#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
3499#  a released version of Autoconf we should remove this    #
3500#  macro and use it instead.                               #
3501############################################################
3502# LT_AC_PROG_SED
3503# --------------
3504# Check for a fully-functional sed program, that truncates
3505# as few characters as possible.  Prefer GNU sed if found.
3506
3507
3508# Check whether --enable-shared or --disable-shared was given.
3509if test "${enable_shared+set}" = set; then
3510  enableval="$enable_shared"
3511  p=${PACKAGE-default}
3512    case $enableval in
3513    yes) enable_shared=yes ;;
3514    no) enable_shared=no ;;
3515    *)
3516      enable_shared=no
3517      # Look at the argument we got.  We use all the common list separators.
3518      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3519      for pkg in $enableval; do
3520	IFS="$lt_save_ifs"
3521	if test "X$pkg" = "X$p"; then
3522	  enable_shared=yes
3523	fi
3524      done
3525      IFS="$lt_save_ifs"
3526      ;;
3527    esac
3528else
3529  enable_shared=yes
3530fi;
3531
3532# Check whether --enable-static or --disable-static was given.
3533if test "${enable_static+set}" = set; then
3534  enableval="$enable_static"
3535  p=${PACKAGE-default}
3536    case $enableval in
3537    yes) enable_static=yes ;;
3538    no) enable_static=no ;;
3539    *)
3540     enable_static=no
3541      # Look at the argument we got.  We use all the common list separators.
3542      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3543      for pkg in $enableval; do
3544	IFS="$lt_save_ifs"
3545	if test "X$pkg" = "X$p"; then
3546	  enable_static=yes
3547	fi
3548      done
3549      IFS="$lt_save_ifs"
3550      ;;
3551    esac
3552else
3553  enable_static=yes
3554fi;
3555
3556# Check whether --enable-fast-install or --disable-fast-install was given.
3557if test "${enable_fast_install+set}" = set; then
3558  enableval="$enable_fast_install"
3559  p=${PACKAGE-default}
3560    case $enableval in
3561    yes) enable_fast_install=yes ;;
3562    no) enable_fast_install=no ;;
3563    *)
3564      enable_fast_install=no
3565      # Look at the argument we got.  We use all the common list separators.
3566      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567      for pkg in $enableval; do
3568	IFS="$lt_save_ifs"
3569	if test "X$pkg" = "X$p"; then
3570	  enable_fast_install=yes
3571	fi
3572      done
3573      IFS="$lt_save_ifs"
3574      ;;
3575    esac
3576else
3577  enable_fast_install=yes
3578fi;
3579
3580ac_aux_dir=
3581for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3582  if test -f $ac_dir/install-sh; then
3583    ac_aux_dir=$ac_dir
3584    ac_install_sh="$ac_aux_dir/install-sh -c"
3585    break
3586  elif test -f $ac_dir/install.sh; then
3587    ac_aux_dir=$ac_dir
3588    ac_install_sh="$ac_aux_dir/install.sh -c"
3589    break
3590  elif test -f $ac_dir/shtool; then
3591    ac_aux_dir=$ac_dir
3592    ac_install_sh="$ac_aux_dir/shtool install -c"
3593    break
3594  fi
3595done
3596if test -z "$ac_aux_dir"; then
3597  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3598echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3599   { (exit 1); exit 1; }; }
3600fi
3601ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3602ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3603ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3604
3605# Make sure we can run config.sub.
3606$ac_config_sub sun4 >/dev/null 2>&1 ||
3607  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3608echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3609   { (exit 1); exit 1; }; }
3610
3611echo "$as_me:$LINENO: checking build system type" >&5
3612echo $ECHO_N "checking build system type... $ECHO_C" >&6
3613if test "${ac_cv_build+set}" = set; then
3614  echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616  ac_cv_build_alias=$build_alias
3617test -z "$ac_cv_build_alias" &&
3618  ac_cv_build_alias=`$ac_config_guess`
3619test -z "$ac_cv_build_alias" &&
3620  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3621echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3622   { (exit 1); exit 1; }; }
3623ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3624  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3625echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3626   { (exit 1); exit 1; }; }
3627
3628fi
3629echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3630echo "${ECHO_T}$ac_cv_build" >&6
3631build=$ac_cv_build
3632build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3633build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3634build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3635
3636
3637echo "$as_me:$LINENO: checking host system type" >&5
3638echo $ECHO_N "checking host system type... $ECHO_C" >&6
3639if test "${ac_cv_host+set}" = set; then
3640  echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642  ac_cv_host_alias=$host_alias
3643test -z "$ac_cv_host_alias" &&
3644  ac_cv_host_alias=$ac_cv_build_alias
3645ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3646  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3647echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3648   { (exit 1); exit 1; }; }
3649
3650fi
3651echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3652echo "${ECHO_T}$ac_cv_host" >&6
3653host=$ac_cv_host
3654host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3655host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3656host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3657
3658
3659echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3660echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3661if test "${lt_cv_path_SED+set}" = set; then
3662  echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664  # Loop through the user's path and test for sed and gsed.
3665# Then use that list of sed's as ones to test for truncation.
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669  IFS=$as_save_IFS
3670  test -z "$as_dir" && as_dir=.
3671  for lt_ac_prog in sed gsed; do
3672    for ac_exec_ext in '' $ac_executable_extensions; do
3673      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3674        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3675      fi
3676    done
3677  done
3678done
3679lt_ac_max=0
3680lt_ac_count=0
3681# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3682# along with /bin/sed that truncates output.
3683for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3684  test ! -f $lt_ac_sed && continue
3685  cat /dev/null > conftest.in
3686  lt_ac_count=0
3687  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3688  # Check for GNU sed and select it if it is found.
3689  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3690    lt_cv_path_SED=$lt_ac_sed
3691    break
3692  fi
3693  while true; do
3694    cat conftest.in conftest.in >conftest.tmp
3695    mv conftest.tmp conftest.in
3696    cp conftest.in conftest.nl
3697    echo >>conftest.nl
3698    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3699    cmp -s conftest.out conftest.nl || break
3700    # 10000 chars as input seems more than enough
3701    test $lt_ac_count -gt 10 && break
3702    lt_ac_count=`expr $lt_ac_count + 1`
3703    if test $lt_ac_count -gt $lt_ac_max; then
3704      lt_ac_max=$lt_ac_count
3705      lt_cv_path_SED=$lt_ac_sed
3706    fi
3707  done
3708done
3709
3710fi
3711
3712SED=$lt_cv_path_SED
3713echo "$as_me:$LINENO: result: $SED" >&5
3714echo "${ECHO_T}$SED" >&6
3715
3716echo "$as_me:$LINENO: checking for egrep" >&5
3717echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3718if test "${ac_cv_prog_egrep+set}" = set; then
3719  echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3722    then ac_cv_prog_egrep='grep -E'
3723    else ac_cv_prog_egrep='egrep'
3724    fi
3725fi
3726echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3727echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3728 EGREP=$ac_cv_prog_egrep
3729
3730
3731
3732# Check whether --with-gnu-ld or --without-gnu-ld was given.
3733if test "${with_gnu_ld+set}" = set; then
3734  withval="$with_gnu_ld"
3735  test "$withval" = no || with_gnu_ld=yes
3736else
3737  with_gnu_ld=no
3738fi;
3739ac_prog=ld
3740if test "$GCC" = yes; then
3741  # Check if gcc -print-prog-name=ld gives a path.
3742  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3743echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3744  case $host in
3745  *-*-mingw*)
3746    # gcc leaves a trailing carriage return which upsets mingw
3747    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3748  *)
3749    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3750  esac
3751  case $ac_prog in
3752    # Accept absolute paths.
3753    [\\/]* | ?:[\\/]*)
3754      re_direlt='/[^/][^/]*/\.\./'
3755      # Canonicalize the pathname of ld
3756      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3757      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3758	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3759      done
3760      test -z "$LD" && LD="$ac_prog"
3761      ;;
3762  "")
3763    # If it fails, then pretend we aren't using GCC.
3764    ac_prog=ld
3765    ;;
3766  *)
3767    # If it is relative, then search for the first ld in PATH.
3768    with_gnu_ld=unknown
3769    ;;
3770  esac
3771elif test "$with_gnu_ld" = yes; then
3772  echo "$as_me:$LINENO: checking for GNU ld" >&5
3773echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3774else
3775  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3776echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3777fi
3778if test "${lt_cv_path_LD+set}" = set; then
3779  echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781  if test -z "$LD"; then
3782  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3783  for ac_dir in $PATH; do
3784    IFS="$lt_save_ifs"
3785    test -z "$ac_dir" && ac_dir=.
3786    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3787      lt_cv_path_LD="$ac_dir/$ac_prog"
3788      # Check to see if the program is GNU ld.  I'd rather use --version,
3789      # but apparently some variants of GNU ld only accept -v.
3790      # Break only if it was the GNU/non-GNU ld that we prefer.
3791      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3792      *GNU* | *'with BFD'*)
3793	test "$with_gnu_ld" != no && break
3794	;;
3795      *)
3796	test "$with_gnu_ld" != yes && break
3797	;;
3798      esac
3799    fi
3800  done
3801  IFS="$lt_save_ifs"
3802else
3803  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3804fi
3805fi
3806
3807LD="$lt_cv_path_LD"
3808if test -n "$LD"; then
3809  echo "$as_me:$LINENO: result: $LD" >&5
3810echo "${ECHO_T}$LD" >&6
3811else
3812  echo "$as_me:$LINENO: result: no" >&5
3813echo "${ECHO_T}no" >&6
3814fi
3815test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3816echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3817   { (exit 1); exit 1; }; }
3818echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3819echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3820if test "${lt_cv_prog_gnu_ld+set}" = set; then
3821  echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3824case `$LD -v 2>&1 </dev/null` in
3825*GNU* | *'with BFD'*)
3826  lt_cv_prog_gnu_ld=yes
3827  ;;
3828*)
3829  lt_cv_prog_gnu_ld=no
3830  ;;
3831esac
3832fi
3833echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3834echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3835with_gnu_ld=$lt_cv_prog_gnu_ld
3836
3837
3838echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3839echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3840if test "${lt_cv_ld_reload_flag+set}" = set; then
3841  echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843  lt_cv_ld_reload_flag='-r'
3844fi
3845echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3846echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3847reload_flag=$lt_cv_ld_reload_flag
3848case $reload_flag in
3849"" | " "*) ;;
3850*) reload_flag=" $reload_flag" ;;
3851esac
3852reload_cmds='$LD$reload_flag -o $output$reload_objs'
3853case $host_os in
3854  darwin*)
3855    if test "$GCC" = yes; then
3856      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3857    else
3858      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3859    fi
3860    ;;
3861esac
3862
3863echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3864echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3865if test "${lt_cv_path_NM+set}" = set; then
3866  echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868  if test -n "$NM"; then
3869  # Let the user override the test.
3870  lt_cv_path_NM="$NM"
3871else
3872  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3873  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3874    IFS="$lt_save_ifs"
3875    test -z "$ac_dir" && ac_dir=.
3876    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3877    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3878      # Check to see if the nm accepts a BSD-compat flag.
3879      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3880      #   nm: unknown option "B" ignored
3881      # Tru64's nm complains that /dev/null is an invalid object file
3882      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3883      */dev/null* | *'Invalid file or object type'*)
3884	lt_cv_path_NM="$tmp_nm -B"
3885	break
3886        ;;
3887      *)
3888	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3889	*/dev/null*)
3890	  lt_cv_path_NM="$tmp_nm -p"
3891	  break
3892	  ;;
3893	*)
3894	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3895	  continue # so that we can try to find one that supports BSD flags
3896	  ;;
3897	esac
3898      esac
3899    fi
3900  done
3901  IFS="$lt_save_ifs"
3902  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3903fi
3904fi
3905echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3906echo "${ECHO_T}$lt_cv_path_NM" >&6
3907NM="$lt_cv_path_NM"
3908
3909echo "$as_me:$LINENO: checking whether ln -s works" >&5
3910echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3911LN_S=$as_ln_s
3912if test "$LN_S" = "ln -s"; then
3913  echo "$as_me:$LINENO: result: yes" >&5
3914echo "${ECHO_T}yes" >&6
3915else
3916  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3917echo "${ECHO_T}no, using $LN_S" >&6
3918fi
3919
3920echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3921echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3922if test "${lt_cv_deplibs_check_method+set}" = set; then
3923  echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925  lt_cv_file_magic_cmd='$MAGIC_CMD'
3926lt_cv_file_magic_test_file=
3927lt_cv_deplibs_check_method='unknown'
3928# Need to set the preceding variable on all platforms that support
3929# interlibrary dependencies.
3930# 'none' -- dependencies not supported.
3931# `unknown' -- same as none, but documents that we really don't know.
3932# 'pass_all' -- all dependencies passed with no checks.
3933# 'test_compile' -- check by making test program.
3934# 'file_magic [[regex]]' -- check by looking for files in library path
3935# which responds to the $file_magic_cmd with a given extended regex.
3936# If you have `file' or equivalent on your system and you're not sure
3937# whether `pass_all' will *always* work, you probably want this one.
3938
3939case $host_os in
3940aix4* | aix5*)
3941  lt_cv_deplibs_check_method=pass_all
3942  ;;
3943
3944beos*)
3945  lt_cv_deplibs_check_method=pass_all
3946  ;;
3947
3948bsdi[45]*)
3949  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3950  lt_cv_file_magic_cmd='/usr/bin/file -L'
3951  lt_cv_file_magic_test_file=/shlib/libc.so
3952  ;;
3953
3954cygwin*)
3955  # func_win32_libid is a shell function defined in ltmain.sh
3956  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3957  lt_cv_file_magic_cmd='func_win32_libid'
3958  ;;
3959
3960mingw* | pw32*)
3961  # Base MSYS/MinGW do not provide the 'file' command needed by
3962  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3963  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3964  lt_cv_file_magic_cmd='$OBJDUMP -f'
3965  ;;
3966
3967darwin* | rhapsody*)
3968  lt_cv_deplibs_check_method=pass_all
3969  ;;
3970
3971freebsd* | kfreebsd*-gnu | dragonfly*)
3972  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3973    case $host_cpu in
3974    i*86 )
3975      # Not sure whether the presence of OpenBSD here was a mistake.
3976      # Let's accept both of them until this is cleared up.
3977      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3978      lt_cv_file_magic_cmd=/usr/bin/file
3979      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3980      ;;
3981    esac
3982  else
3983    lt_cv_deplibs_check_method=pass_all
3984  fi
3985  ;;
3986
3987gnu*)
3988  lt_cv_deplibs_check_method=pass_all
3989  ;;
3990
3991hpux10.20* | hpux11*)
3992  lt_cv_file_magic_cmd=/usr/bin/file
3993  case $host_cpu in
3994  ia64*)
3995    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3996    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3997    ;;
3998  hppa*64*)
3999    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]'
4000    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4001    ;;
4002  *)
4003    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4004    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4005    ;;
4006  esac
4007  ;;
4008
4009irix5* | irix6* | nonstopux*)
4010  case $LD in
4011  *-32|*"-32 ") libmagic=32-bit;;
4012  *-n32|*"-n32 ") libmagic=N32;;
4013  *-64|*"-64 ") libmagic=64-bit;;
4014  *) libmagic=never-match;;
4015  esac
4016  lt_cv_deplibs_check_method=pass_all
4017  ;;
4018
4019# This must be Linux ELF.
4020linux*)
4021  lt_cv_deplibs_check_method=pass_all
4022  ;;
4023
4024netbsd*)
4025  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4026    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4027  else
4028    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4029  fi
4030  ;;
4031
4032newos6*)
4033  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4034  lt_cv_file_magic_cmd=/usr/bin/file
4035  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4036  ;;
4037
4038nto-qnx*)
4039  lt_cv_deplibs_check_method=unknown
4040  ;;
4041
4042openbsd*)
4043  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4044    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4045  else
4046    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4047  fi
4048  ;;
4049
4050osf3* | osf4* | osf5*)
4051  lt_cv_deplibs_check_method=pass_all
4052  ;;
4053
4054sco3.2v5*)
4055  lt_cv_deplibs_check_method=pass_all
4056  ;;
4057
4058solaris*)
4059  lt_cv_deplibs_check_method=pass_all
4060  ;;
4061
4062sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4063  case $host_vendor in
4064  motorola)
4065    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]'
4066    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4067    ;;
4068  ncr)
4069    lt_cv_deplibs_check_method=pass_all
4070    ;;
4071  sequent)
4072    lt_cv_file_magic_cmd='/bin/file'
4073    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4074    ;;
4075  sni)
4076    lt_cv_file_magic_cmd='/bin/file'
4077    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4078    lt_cv_file_magic_test_file=/lib/libc.so
4079    ;;
4080  siemens)
4081    lt_cv_deplibs_check_method=pass_all
4082    ;;
4083  esac
4084  ;;
4085
4086sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4087  lt_cv_deplibs_check_method=pass_all
4088  ;;
4089esac
4090
4091fi
4092echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4093echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4094file_magic_cmd=$lt_cv_file_magic_cmd
4095deplibs_check_method=$lt_cv_deplibs_check_method
4096test -z "$deplibs_check_method" && deplibs_check_method=unknown
4097
4098
4099
4100
4101# If no C compiler was specified, use CC.
4102LTCC=${LTCC-"$CC"}
4103
4104# Allow CC to be a program name with arguments.
4105compiler=$CC
4106
4107# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4108if test "${enable_libtool_lock+set}" = set; then
4109  enableval="$enable_libtool_lock"
4110
4111fi;
4112test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4113
4114# Some flags need to be propagated to the compiler or linker for good
4115# libtool support.
4116case $host in
4117ia64-*-hpux*)
4118  # Find out which ABI we are using.
4119  echo 'int i;' > conftest.$ac_ext
4120  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121  (eval $ac_compile) 2>&5
4122  ac_status=$?
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); }; then
4125    case `/usr/bin/file conftest.$ac_objext` in
4126    *ELF-32*)
4127      HPUX_IA64_MODE="32"
4128      ;;
4129    *ELF-64*)
4130      HPUX_IA64_MODE="64"
4131      ;;
4132    esac
4133  fi
4134  rm -rf conftest*
4135  ;;
4136*-*-irix6*)
4137  # Find out which ABI we are using.
4138  echo '#line 4138 "configure"' > conftest.$ac_ext
4139  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140  (eval $ac_compile) 2>&5
4141  ac_status=$?
4142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143  (exit $ac_status); }; then
4144   if test "$lt_cv_prog_gnu_ld" = yes; then
4145    case `/usr/bin/file conftest.$ac_objext` in
4146    *32-bit*)
4147      LD="${LD-ld} -melf32bsmip"
4148      ;;
4149    *N32*)
4150      LD="${LD-ld} -melf32bmipn32"
4151      ;;
4152    *64-bit*)
4153      LD="${LD-ld} -melf64bmip"
4154      ;;
4155    esac
4156   else
4157    case `/usr/bin/file conftest.$ac_objext` in
4158    *32-bit*)
4159      LD="${LD-ld} -32"
4160      ;;
4161    *N32*)
4162      LD="${LD-ld} -n32"
4163      ;;
4164    *64-bit*)
4165      LD="${LD-ld} -64"
4166      ;;
4167    esac
4168   fi
4169  fi
4170  rm -rf conftest*
4171  ;;
4172
4173x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4174  # Find out which ABI we are using.
4175  echo 'int i;' > conftest.$ac_ext
4176  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177  (eval $ac_compile) 2>&5
4178  ac_status=$?
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); }; then
4181    case `/usr/bin/file conftest.o` in
4182    *32-bit*)
4183      case $host in
4184        x86_64-*linux*)
4185          LD="${LD-ld} -m elf_i386"
4186          ;;
4187        ppc64-*linux*|powerpc64-*linux*)
4188          LD="${LD-ld} -m elf32ppclinux"
4189          ;;
4190        s390x-*linux*)
4191          LD="${LD-ld} -m elf_s390"
4192          ;;
4193        sparc64-*linux*)
4194          LD="${LD-ld} -m elf32_sparc"
4195          ;;
4196      esac
4197      ;;
4198    *64-bit*)
4199      case $host in
4200        x86_64-*linux*)
4201          LD="${LD-ld} -m elf_x86_64"
4202          ;;
4203        ppc*-*linux*|powerpc*-*linux*)
4204          LD="${LD-ld} -m elf64ppc"
4205          ;;
4206        s390*-*linux*)
4207          LD="${LD-ld} -m elf64_s390"
4208          ;;
4209        sparc*-*linux*)
4210          LD="${LD-ld} -m elf64_sparc"
4211          ;;
4212      esac
4213      ;;
4214    esac
4215  fi
4216  rm -rf conftest*
4217  ;;
4218
4219*-*-sco3.2v5*)
4220  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4221  SAVE_CFLAGS="$CFLAGS"
4222  CFLAGS="$CFLAGS -belf"
4223  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4224echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4225if test "${lt_cv_cc_needs_belf+set}" = set; then
4226  echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228  ac_ext=c
4229ac_cpp='$CPP $CPPFLAGS'
4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
4234     cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h.  */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h.  */
4240
4241int
4242main ()
4243{
4244
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext conftest$ac_exeext
4250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251  (eval $ac_link) 2>conftest.er1
4252  ac_status=$?
4253  grep -v '^ *+' conftest.er1 >conftest.err
4254  rm -f conftest.er1
4255  cat conftest.err >&5
4256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257  (exit $ac_status); } &&
4258	 { ac_try='test -z "$ac_c_werror_flag"
4259			 || test ! -s conftest.err'
4260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261  (eval $ac_try) 2>&5
4262  ac_status=$?
4263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264  (exit $ac_status); }; } &&
4265	 { ac_try='test -s conftest$ac_exeext'
4266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267  (eval $ac_try) 2>&5
4268  ac_status=$?
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); }; }; then
4271  lt_cv_cc_needs_belf=yes
4272else
4273  echo "$as_me: failed program was:" >&5
4274sed 's/^/| /' conftest.$ac_ext >&5
4275
4276lt_cv_cc_needs_belf=no
4277fi
4278rm -f conftest.err conftest.$ac_objext \
4279      conftest$ac_exeext conftest.$ac_ext
4280     ac_ext=c
4281ac_cpp='$CPP $CPPFLAGS'
4282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285
4286fi
4287echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4288echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4289  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4290    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4291    CFLAGS="$SAVE_CFLAGS"
4292  fi
4293  ;;
4294
4295esac
4296
4297need_locks="$enable_libtool_lock"
4298
4299
4300
4301echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4302echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4303if test "${ac_cv_header_stdc+set}" = set; then
4304  echo $ECHO_N "(cached) $ECHO_C" >&6
4305else
4306  cat >conftest.$ac_ext <<_ACEOF
4307/* confdefs.h.  */
4308_ACEOF
4309cat confdefs.h >>conftest.$ac_ext
4310cat >>conftest.$ac_ext <<_ACEOF
4311/* end confdefs.h.  */
4312#include <stdlib.h>
4313#include <stdarg.h>
4314#include <string.h>
4315#include <float.h>
4316
4317int
4318main ()
4319{
4320
4321  ;
4322  return 0;
4323}
4324_ACEOF
4325rm -f conftest.$ac_objext
4326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327  (eval $ac_compile) 2>conftest.er1
4328  ac_status=$?
4329  grep -v '^ *+' conftest.er1 >conftest.err
4330  rm -f conftest.er1
4331  cat conftest.err >&5
4332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333  (exit $ac_status); } &&
4334	 { ac_try='test -z "$ac_c_werror_flag"
4335			 || test ! -s conftest.err'
4336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337  (eval $ac_try) 2>&5
4338  ac_status=$?
4339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340  (exit $ac_status); }; } &&
4341	 { ac_try='test -s conftest.$ac_objext'
4342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343  (eval $ac_try) 2>&5
4344  ac_status=$?
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); }; }; then
4347  ac_cv_header_stdc=yes
4348else
4349  echo "$as_me: failed program was:" >&5
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
4352ac_cv_header_stdc=no
4353fi
4354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4355
4356if test $ac_cv_header_stdc = yes; then
4357  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4358  cat >conftest.$ac_ext <<_ACEOF
4359/* confdefs.h.  */
4360_ACEOF
4361cat confdefs.h >>conftest.$ac_ext
4362cat >>conftest.$ac_ext <<_ACEOF
4363/* end confdefs.h.  */
4364#include <string.h>
4365
4366_ACEOF
4367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4368  $EGREP "memchr" >/dev/null 2>&1; then
4369  :
4370else
4371  ac_cv_header_stdc=no
4372fi
4373rm -f conftest*
4374
4375fi
4376
4377if test $ac_cv_header_stdc = yes; then
4378  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4379  cat >conftest.$ac_ext <<_ACEOF
4380/* confdefs.h.  */
4381_ACEOF
4382cat confdefs.h >>conftest.$ac_ext
4383cat >>conftest.$ac_ext <<_ACEOF
4384/* end confdefs.h.  */
4385#include <stdlib.h>
4386
4387_ACEOF
4388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4389  $EGREP "free" >/dev/null 2>&1; then
4390  :
4391else
4392  ac_cv_header_stdc=no
4393fi
4394rm -f conftest*
4395
4396fi
4397
4398if test $ac_cv_header_stdc = yes; then
4399  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4400  if test "$cross_compiling" = yes; then
4401  :
4402else
4403  cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h.  */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h.  */
4409#include <ctype.h>
4410#if ((' ' & 0x0FF) == 0x020)
4411# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4412# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4413#else
4414# define ISLOWER(c) \
4415		   (('a' <= (c) && (c) <= 'i') \
4416		     || ('j' <= (c) && (c) <= 'r') \
4417		     || ('s' <= (c) && (c) <= 'z'))
4418# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4419#endif
4420
4421#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4422int
4423main ()
4424{
4425  int i;
4426  for (i = 0; i < 256; i++)
4427    if (XOR (islower (i), ISLOWER (i))
4428	|| toupper (i) != TOUPPER (i))
4429      exit(2);
4430  exit (0);
4431}
4432_ACEOF
4433rm -f conftest$ac_exeext
4434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4435  (eval $ac_link) 2>&5
4436  ac_status=$?
4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440  (eval $ac_try) 2>&5
4441  ac_status=$?
4442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443  (exit $ac_status); }; }; then
4444  :
4445else
4446  echo "$as_me: program exited with status $ac_status" >&5
4447echo "$as_me: failed program was:" >&5
4448sed 's/^/| /' conftest.$ac_ext >&5
4449
4450( exit $ac_status )
4451ac_cv_header_stdc=no
4452fi
4453rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4454fi
4455fi
4456fi
4457echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4458echo "${ECHO_T}$ac_cv_header_stdc" >&6
4459if test $ac_cv_header_stdc = yes; then
4460
4461cat >>confdefs.h <<\_ACEOF
4462#define STDC_HEADERS 1
4463_ACEOF
4464
4465fi
4466
4467# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4478		  inttypes.h stdint.h unistd.h
4479do
4480as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4481echo "$as_me:$LINENO: checking for $ac_header" >&5
4482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4483if eval "test \"\${$as_ac_Header+set}\" = set"; then
4484  echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486  cat >conftest.$ac_ext <<_ACEOF
4487/* confdefs.h.  */
4488_ACEOF
4489cat confdefs.h >>conftest.$ac_ext
4490cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h.  */
4492$ac_includes_default
4493
4494#include <$ac_header>
4495_ACEOF
4496rm -f conftest.$ac_objext
4497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498  (eval $ac_compile) 2>conftest.er1
4499  ac_status=$?
4500  grep -v '^ *+' conftest.er1 >conftest.err
4501  rm -f conftest.er1
4502  cat conftest.err >&5
4503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504  (exit $ac_status); } &&
4505	 { ac_try='test -z "$ac_c_werror_flag"
4506			 || test ! -s conftest.err'
4507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508  (eval $ac_try) 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; } &&
4512	 { ac_try='test -s conftest.$ac_objext'
4513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514  (eval $ac_try) 2>&5
4515  ac_status=$?
4516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517  (exit $ac_status); }; }; then
4518  eval "$as_ac_Header=yes"
4519else
4520  echo "$as_me: failed program was:" >&5
4521sed 's/^/| /' conftest.$ac_ext >&5
4522
4523eval "$as_ac_Header=no"
4524fi
4525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4526fi
4527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529if test `eval echo '${'$as_ac_Header'}'` = yes; then
4530  cat >>confdefs.h <<_ACEOF
4531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4532_ACEOF
4533
4534fi
4535
4536done
4537
4538
4539
4540for ac_header in dlfcn.h
4541do
4542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4543if eval "test \"\${$as_ac_Header+set}\" = set"; then
4544  echo "$as_me:$LINENO: checking for $ac_header" >&5
4545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4546if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547  echo $ECHO_N "(cached) $ECHO_C" >&6
4548fi
4549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4551else
4552  # Is the header compilable?
4553echo "$as_me:$LINENO: checking $ac_header usability" >&5
4554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4555cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h.  */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h.  */
4561$ac_includes_default
4562#include <$ac_header>
4563_ACEOF
4564rm -f conftest.$ac_objext
4565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566  (eval $ac_compile) 2>conftest.er1
4567  ac_status=$?
4568  grep -v '^ *+' conftest.er1 >conftest.err
4569  rm -f conftest.er1
4570  cat conftest.err >&5
4571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572  (exit $ac_status); } &&
4573	 { ac_try='test -z "$ac_c_werror_flag"
4574			 || test ! -s conftest.err'
4575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576  (eval $ac_try) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }; } &&
4580	 { ac_try='test -s conftest.$ac_objext'
4581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582  (eval $ac_try) 2>&5
4583  ac_status=$?
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); }; }; then
4586  ac_header_compiler=yes
4587else
4588  echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591ac_header_compiler=no
4592fi
4593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4595echo "${ECHO_T}$ac_header_compiler" >&6
4596
4597# Is the header present?
4598echo "$as_me:$LINENO: checking $ac_header presence" >&5
4599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4600cat >conftest.$ac_ext <<_ACEOF
4601/* confdefs.h.  */
4602_ACEOF
4603cat confdefs.h >>conftest.$ac_ext
4604cat >>conftest.$ac_ext <<_ACEOF
4605/* end confdefs.h.  */
4606#include <$ac_header>
4607_ACEOF
4608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4609  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4610  ac_status=$?
4611  grep -v '^ *+' conftest.er1 >conftest.err
4612  rm -f conftest.er1
4613  cat conftest.err >&5
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); } >/dev/null; then
4616  if test -s conftest.err; then
4617    ac_cpp_err=$ac_c_preproc_warn_flag
4618    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4619  else
4620    ac_cpp_err=
4621  fi
4622else
4623  ac_cpp_err=yes
4624fi
4625if test -z "$ac_cpp_err"; then
4626  ac_header_preproc=yes
4627else
4628  echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631  ac_header_preproc=no
4632fi
4633rm -f conftest.err conftest.$ac_ext
4634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4635echo "${ECHO_T}$ac_header_preproc" >&6
4636
4637# So?  What about this header?
4638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4639  yes:no: )
4640    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4644    ac_header_preproc=yes
4645    ;;
4646  no:yes:* )
4647    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4649    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4650echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4651    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4653    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4654echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4655    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4657    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4659    (
4660      cat <<\_ASBOX
4661## ------------------------------------------ ##
4662## Report this to the AC_PACKAGE_NAME lists.  ##
4663## ------------------------------------------ ##
4664_ASBOX
4665    ) |
4666      sed "s/^/$as_me: WARNING:     /" >&2
4667    ;;
4668esac
4669echo "$as_me:$LINENO: checking for $ac_header" >&5
4670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4671if eval "test \"\${$as_ac_Header+set}\" = set"; then
4672  echo $ECHO_N "(cached) $ECHO_C" >&6
4673else
4674  eval "$as_ac_Header=\$ac_header_preproc"
4675fi
4676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4678
4679fi
4680if test `eval echo '${'$as_ac_Header'}'` = yes; then
4681  cat >>confdefs.h <<_ACEOF
4682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683_ACEOF
4684
4685fi
4686
4687done
4688
4689ac_ext=cc
4690ac_cpp='$CXXCPP $CPPFLAGS'
4691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4694if test -n "$ac_tool_prefix"; then
4695  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4696  do
4697    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4699echo "$as_me:$LINENO: checking for $ac_word" >&5
4700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701if test "${ac_cv_prog_CXX+set}" = set; then
4702  echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704  if test -n "$CXX"; then
4705  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710  IFS=$as_save_IFS
4711  test -z "$as_dir" && as_dir=.
4712  for ac_exec_ext in '' $ac_executable_extensions; do
4713  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716    break 2
4717  fi
4718done
4719done
4720
4721fi
4722fi
4723CXX=$ac_cv_prog_CXX
4724if test -n "$CXX"; then
4725  echo "$as_me:$LINENO: result: $CXX" >&5
4726echo "${ECHO_T}$CXX" >&6
4727else
4728  echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6
4730fi
4731
4732    test -n "$CXX" && break
4733  done
4734fi
4735if test -z "$CXX"; then
4736  ac_ct_CXX=$CXX
4737  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4738do
4739  # Extract the first word of "$ac_prog", so it can be a program name with args.
4740set dummy $ac_prog; ac_word=$2
4741echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4744  echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746  if test -n "$ac_ct_CXX"; then
4747  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754  for ac_exec_ext in '' $ac_executable_extensions; do
4755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756    ac_cv_prog_ac_ct_CXX="$ac_prog"
4757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758    break 2
4759  fi
4760done
4761done
4762
4763fi
4764fi
4765ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4766if test -n "$ac_ct_CXX"; then
4767  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4768echo "${ECHO_T}$ac_ct_CXX" >&6
4769else
4770  echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi
4773
4774  test -n "$ac_ct_CXX" && break
4775done
4776test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4777
4778  CXX=$ac_ct_CXX
4779fi
4780
4781
4782# Provide some information about the compiler.
4783echo "$as_me:$LINENO:" \
4784     "checking for C++ compiler version" >&5
4785ac_compiler=`set X $ac_compile; echo $2`
4786{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4787  (eval $ac_compiler --version </dev/null >&5) 2>&5
4788  ac_status=$?
4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); }
4791{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4792  (eval $ac_compiler -v </dev/null >&5) 2>&5
4793  ac_status=$?
4794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); }
4796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4797  (eval $ac_compiler -V </dev/null >&5) 2>&5
4798  ac_status=$?
4799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800  (exit $ac_status); }
4801
4802echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4803echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4804if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4805  echo $ECHO_N "(cached) $ECHO_C" >&6
4806else
4807  cat >conftest.$ac_ext <<_ACEOF
4808/* confdefs.h.  */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h.  */
4813
4814int
4815main ()
4816{
4817#ifndef __GNUC__
4818       choke me
4819#endif
4820
4821  ;
4822  return 0;
4823}
4824_ACEOF
4825rm -f conftest.$ac_objext
4826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827  (eval $ac_compile) 2>conftest.er1
4828  ac_status=$?
4829  grep -v '^ *+' conftest.er1 >conftest.err
4830  rm -f conftest.er1
4831  cat conftest.err >&5
4832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833  (exit $ac_status); } &&
4834	 { ac_try='test -z "$ac_cxx_werror_flag"
4835			 || test ! -s conftest.err'
4836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837  (eval $ac_try) 2>&5
4838  ac_status=$?
4839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840  (exit $ac_status); }; } &&
4841	 { ac_try='test -s conftest.$ac_objext'
4842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843  (eval $ac_try) 2>&5
4844  ac_status=$?
4845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846  (exit $ac_status); }; }; then
4847  ac_compiler_gnu=yes
4848else
4849  echo "$as_me: failed program was:" >&5
4850sed 's/^/| /' conftest.$ac_ext >&5
4851
4852ac_compiler_gnu=no
4853fi
4854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4855ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4856
4857fi
4858echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4859echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4860GXX=`test $ac_compiler_gnu = yes && echo yes`
4861ac_test_CXXFLAGS=${CXXFLAGS+set}
4862ac_save_CXXFLAGS=$CXXFLAGS
4863CXXFLAGS="-g"
4864echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4865echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4866if test "${ac_cv_prog_cxx_g+set}" = set; then
4867  echo $ECHO_N "(cached) $ECHO_C" >&6
4868else
4869  cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h.  */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h.  */
4875
4876int
4877main ()
4878{
4879
4880  ;
4881  return 0;
4882}
4883_ACEOF
4884rm -f conftest.$ac_objext
4885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886  (eval $ac_compile) 2>conftest.er1
4887  ac_status=$?
4888  grep -v '^ *+' conftest.er1 >conftest.err
4889  rm -f conftest.er1
4890  cat conftest.err >&5
4891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892  (exit $ac_status); } &&
4893	 { ac_try='test -z "$ac_cxx_werror_flag"
4894			 || test ! -s conftest.err'
4895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896  (eval $ac_try) 2>&5
4897  ac_status=$?
4898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); }; } &&
4900	 { ac_try='test -s conftest.$ac_objext'
4901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902  (eval $ac_try) 2>&5
4903  ac_status=$?
4904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905  (exit $ac_status); }; }; then
4906  ac_cv_prog_cxx_g=yes
4907else
4908  echo "$as_me: failed program was:" >&5
4909sed 's/^/| /' conftest.$ac_ext >&5
4910
4911ac_cv_prog_cxx_g=no
4912fi
4913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4914fi
4915echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4916echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4917if test "$ac_test_CXXFLAGS" = set; then
4918  CXXFLAGS=$ac_save_CXXFLAGS
4919elif test $ac_cv_prog_cxx_g = yes; then
4920  if test "$GXX" = yes; then
4921    CXXFLAGS="-g -O2"
4922  else
4923    CXXFLAGS="-g"
4924  fi
4925else
4926  if test "$GXX" = yes; then
4927    CXXFLAGS="-O2"
4928  else
4929    CXXFLAGS=
4930  fi
4931fi
4932for ac_declaration in \
4933   '' \
4934   'extern "C" void std::exit (int) throw (); using std::exit;' \
4935   'extern "C" void std::exit (int); using std::exit;' \
4936   'extern "C" void exit (int) throw ();' \
4937   'extern "C" void exit (int);' \
4938   'void exit (int);'
4939do
4940  cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h.  */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h.  */
4946$ac_declaration
4947#include <stdlib.h>
4948int
4949main ()
4950{
4951exit (42);
4952  ;
4953  return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext
4957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958  (eval $ac_compile) 2>conftest.er1
4959  ac_status=$?
4960  grep -v '^ *+' conftest.er1 >conftest.err
4961  rm -f conftest.er1
4962  cat conftest.err >&5
4963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964  (exit $ac_status); } &&
4965	 { ac_try='test -z "$ac_cxx_werror_flag"
4966			 || test ! -s conftest.err'
4967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968  (eval $ac_try) 2>&5
4969  ac_status=$?
4970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971  (exit $ac_status); }; } &&
4972	 { ac_try='test -s conftest.$ac_objext'
4973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974  (eval $ac_try) 2>&5
4975  ac_status=$?
4976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977  (exit $ac_status); }; }; then
4978  :
4979else
4980  echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983continue
4984fi
4985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4986  cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h.  */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h.  */
4992$ac_declaration
4993int
4994main ()
4995{
4996exit (42);
4997  ;
4998  return 0;
4999}
5000_ACEOF
5001rm -f conftest.$ac_objext
5002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003  (eval $ac_compile) 2>conftest.er1
5004  ac_status=$?
5005  grep -v '^ *+' conftest.er1 >conftest.err
5006  rm -f conftest.er1
5007  cat conftest.err >&5
5008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009  (exit $ac_status); } &&
5010	 { ac_try='test -z "$ac_cxx_werror_flag"
5011			 || test ! -s conftest.err'
5012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013  (eval $ac_try) 2>&5
5014  ac_status=$?
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); }; } &&
5017	 { ac_try='test -s conftest.$ac_objext'
5018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019  (eval $ac_try) 2>&5
5020  ac_status=$?
5021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022  (exit $ac_status); }; }; then
5023  break
5024else
5025  echo "$as_me: failed program was:" >&5
5026sed 's/^/| /' conftest.$ac_ext >&5
5027
5028fi
5029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030done
5031rm -f conftest*
5032if test -n "$ac_declaration"; then
5033  echo '#ifdef __cplusplus' >>confdefs.h
5034  echo $ac_declaration      >>confdefs.h
5035  echo '#endif'             >>confdefs.h
5036fi
5037
5038ac_ext=cc
5039ac_cpp='$CXXCPP $CPPFLAGS'
5040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5043
5044
5045
5046if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5047    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5048    (test "X$CXX" != "Xg++"))) ; then
5049  ac_ext=cc
5050ac_cpp='$CXXCPP $CPPFLAGS'
5051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5054echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5055echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5056if test -z "$CXXCPP"; then
5057  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5058  echo $ECHO_N "(cached) $ECHO_C" >&6
5059else
5060      # Double quotes because CXXCPP needs to be expanded
5061    for CXXCPP in "$CXX -E" "/lib/cpp"
5062    do
5063      ac_preproc_ok=false
5064for ac_cxx_preproc_warn_flag in '' yes
5065do
5066  # Use a header file that comes with gcc, so configuring glibc
5067  # with a fresh cross-compiler works.
5068  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069  # <limits.h> exists even on freestanding compilers.
5070  # On the NeXT, cc -E runs the code through the compiler's parser,
5071  # not just through cpp. "Syntax error" is here to catch this case.
5072  cat >conftest.$ac_ext <<_ACEOF
5073/* confdefs.h.  */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h.  */
5078#ifdef __STDC__
5079# include <limits.h>
5080#else
5081# include <assert.h>
5082#endif
5083		     Syntax error
5084_ACEOF
5085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087  ac_status=$?
5088  grep -v '^ *+' conftest.er1 >conftest.err
5089  rm -f conftest.er1
5090  cat conftest.err >&5
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); } >/dev/null; then
5093  if test -s conftest.err; then
5094    ac_cpp_err=$ac_cxx_preproc_warn_flag
5095    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5096  else
5097    ac_cpp_err=
5098  fi
5099else
5100  ac_cpp_err=yes
5101fi
5102if test -z "$ac_cpp_err"; then
5103  :
5104else
5105  echo "$as_me: failed program was:" >&5
5106sed 's/^/| /' conftest.$ac_ext >&5
5107
5108  # Broken: fails on valid input.
5109continue
5110fi
5111rm -f conftest.err conftest.$ac_ext
5112
5113  # OK, works on sane cases.  Now check whether non-existent headers
5114  # can be detected and how.
5115  cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h.  */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h.  */
5121#include <ac_nonexistent.h>
5122_ACEOF
5123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125  ac_status=$?
5126  grep -v '^ *+' conftest.er1 >conftest.err
5127  rm -f conftest.er1
5128  cat conftest.err >&5
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); } >/dev/null; then
5131  if test -s conftest.err; then
5132    ac_cpp_err=$ac_cxx_preproc_warn_flag
5133    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5134  else
5135    ac_cpp_err=
5136  fi
5137else
5138  ac_cpp_err=yes
5139fi
5140if test -z "$ac_cpp_err"; then
5141  # Broken: success on invalid input.
5142continue
5143else
5144  echo "$as_me: failed program was:" >&5
5145sed 's/^/| /' conftest.$ac_ext >&5
5146
5147  # Passes both tests.
5148ac_preproc_ok=:
5149break
5150fi
5151rm -f conftest.err conftest.$ac_ext
5152
5153done
5154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5155rm -f conftest.err conftest.$ac_ext
5156if $ac_preproc_ok; then
5157  break
5158fi
5159
5160    done
5161    ac_cv_prog_CXXCPP=$CXXCPP
5162
5163fi
5164  CXXCPP=$ac_cv_prog_CXXCPP
5165else
5166  ac_cv_prog_CXXCPP=$CXXCPP
5167fi
5168echo "$as_me:$LINENO: result: $CXXCPP" >&5
5169echo "${ECHO_T}$CXXCPP" >&6
5170ac_preproc_ok=false
5171for ac_cxx_preproc_warn_flag in '' yes
5172do
5173  # Use a header file that comes with gcc, so configuring glibc
5174  # with a fresh cross-compiler works.
5175  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176  # <limits.h> exists even on freestanding compilers.
5177  # On the NeXT, cc -E runs the code through the compiler's parser,
5178  # not just through cpp. "Syntax error" is here to catch this case.
5179  cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h.  */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h.  */
5185#ifdef __STDC__
5186# include <limits.h>
5187#else
5188# include <assert.h>
5189#endif
5190		     Syntax error
5191_ACEOF
5192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194  ac_status=$?
5195  grep -v '^ *+' conftest.er1 >conftest.err
5196  rm -f conftest.er1
5197  cat conftest.err >&5
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); } >/dev/null; then
5200  if test -s conftest.err; then
5201    ac_cpp_err=$ac_cxx_preproc_warn_flag
5202    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5203  else
5204    ac_cpp_err=
5205  fi
5206else
5207  ac_cpp_err=yes
5208fi
5209if test -z "$ac_cpp_err"; then
5210  :
5211else
5212  echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215  # Broken: fails on valid input.
5216continue
5217fi
5218rm -f conftest.err conftest.$ac_ext
5219
5220  # OK, works on sane cases.  Now check whether non-existent headers
5221  # can be detected and how.
5222  cat >conftest.$ac_ext <<_ACEOF
5223/* confdefs.h.  */
5224_ACEOF
5225cat confdefs.h >>conftest.$ac_ext
5226cat >>conftest.$ac_ext <<_ACEOF
5227/* end confdefs.h.  */
5228#include <ac_nonexistent.h>
5229_ACEOF
5230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5232  ac_status=$?
5233  grep -v '^ *+' conftest.er1 >conftest.err
5234  rm -f conftest.er1
5235  cat conftest.err >&5
5236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237  (exit $ac_status); } >/dev/null; then
5238  if test -s conftest.err; then
5239    ac_cpp_err=$ac_cxx_preproc_warn_flag
5240    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5241  else
5242    ac_cpp_err=
5243  fi
5244else
5245  ac_cpp_err=yes
5246fi
5247if test -z "$ac_cpp_err"; then
5248  # Broken: success on invalid input.
5249continue
5250else
5251  echo "$as_me: failed program was:" >&5
5252sed 's/^/| /' conftest.$ac_ext >&5
5253
5254  # Passes both tests.
5255ac_preproc_ok=:
5256break
5257fi
5258rm -f conftest.err conftest.$ac_ext
5259
5260done
5261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5262rm -f conftest.err conftest.$ac_ext
5263if $ac_preproc_ok; then
5264  :
5265else
5266  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5267See \`config.log' for more details." >&5
5268echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5269See \`config.log' for more details." >&2;}
5270   { (exit 1); exit 1; }; }
5271fi
5272
5273ac_ext=cc
5274ac_cpp='$CXXCPP $CPPFLAGS'
5275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5278
5279fi
5280
5281
5282ac_ext=f
5283ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5284ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5286if test -n "$ac_tool_prefix"; then
5287  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5288  do
5289    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5291echo "$as_me:$LINENO: checking for $ac_word" >&5
5292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293if test "${ac_cv_prog_F77+set}" = set; then
5294  echo $ECHO_N "(cached) $ECHO_C" >&6
5295else
5296  if test -n "$F77"; then
5297  ac_cv_prog_F77="$F77" # Let the user override the test.
5298else
5299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300for as_dir in $PATH
5301do
5302  IFS=$as_save_IFS
5303  test -z "$as_dir" && as_dir=.
5304  for ac_exec_ext in '' $ac_executable_extensions; do
5305  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308    break 2
5309  fi
5310done
5311done
5312
5313fi
5314fi
5315F77=$ac_cv_prog_F77
5316if test -n "$F77"; then
5317  echo "$as_me:$LINENO: result: $F77" >&5
5318echo "${ECHO_T}$F77" >&6
5319else
5320  echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
5322fi
5323
5324    test -n "$F77" && break
5325  done
5326fi
5327if test -z "$F77"; then
5328  ac_ct_F77=$F77
5329  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5330do
5331  # Extract the first word of "$ac_prog", so it can be a program name with args.
5332set dummy $ac_prog; ac_word=$2
5333echo "$as_me:$LINENO: checking for $ac_word" >&5
5334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5335if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5336  echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338  if test -n "$ac_ct_F77"; then
5339  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5340else
5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344  IFS=$as_save_IFS
5345  test -z "$as_dir" && as_dir=.
5346  for ac_exec_ext in '' $ac_executable_extensions; do
5347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348    ac_cv_prog_ac_ct_F77="$ac_prog"
5349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350    break 2
5351  fi
5352done
5353done
5354
5355fi
5356fi
5357ac_ct_F77=$ac_cv_prog_ac_ct_F77
5358if test -n "$ac_ct_F77"; then
5359  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5360echo "${ECHO_T}$ac_ct_F77" >&6
5361else
5362  echo "$as_me:$LINENO: result: no" >&5
5363echo "${ECHO_T}no" >&6
5364fi
5365
5366  test -n "$ac_ct_F77" && break
5367done
5368
5369  F77=$ac_ct_F77
5370fi
5371
5372
5373# Provide some information about the compiler.
5374echo "$as_me:5374:" \
5375     "checking for Fortran 77 compiler version" >&5
5376ac_compiler=`set X $ac_compile; echo $2`
5377{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5378  (eval $ac_compiler --version </dev/null >&5) 2>&5
5379  ac_status=$?
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); }
5382{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5383  (eval $ac_compiler -v </dev/null >&5) 2>&5
5384  ac_status=$?
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); }
5387{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5388  (eval $ac_compiler -V </dev/null >&5) 2>&5
5389  ac_status=$?
5390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); }
5392rm -f a.out
5393
5394# If we don't use `.F' as extension, the preprocessor is not run on the
5395# input file.  (Note that this only needs to work for GNU compilers.)
5396ac_save_ext=$ac_ext
5397ac_ext=F
5398echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5399echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5400if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5401  echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
5403  cat >conftest.$ac_ext <<_ACEOF
5404      program main
5405#ifndef __GNUC__
5406       choke me
5407#endif
5408
5409      end
5410_ACEOF
5411rm -f conftest.$ac_objext
5412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413  (eval $ac_compile) 2>conftest.er1
5414  ac_status=$?
5415  grep -v '^ *+' conftest.er1 >conftest.err
5416  rm -f conftest.er1
5417  cat conftest.err >&5
5418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419  (exit $ac_status); } &&
5420	 { ac_try='test -z "$ac_f77_werror_flag"
5421			 || test ! -s conftest.err'
5422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423  (eval $ac_try) 2>&5
5424  ac_status=$?
5425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426  (exit $ac_status); }; } &&
5427	 { ac_try='test -s conftest.$ac_objext'
5428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429  (eval $ac_try) 2>&5
5430  ac_status=$?
5431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432  (exit $ac_status); }; }; then
5433  ac_compiler_gnu=yes
5434else
5435  echo "$as_me: failed program was:" >&5
5436sed 's/^/| /' conftest.$ac_ext >&5
5437
5438ac_compiler_gnu=no
5439fi
5440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5442
5443fi
5444echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5445echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5446ac_ext=$ac_save_ext
5447ac_test_FFLAGS=${FFLAGS+set}
5448ac_save_FFLAGS=$FFLAGS
5449FFLAGS=
5450echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5451echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5452if test "${ac_cv_prog_f77_g+set}" = set; then
5453  echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455  FFLAGS=-g
5456cat >conftest.$ac_ext <<_ACEOF
5457      program main
5458
5459      end
5460_ACEOF
5461rm -f conftest.$ac_objext
5462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463  (eval $ac_compile) 2>conftest.er1
5464  ac_status=$?
5465  grep -v '^ *+' conftest.er1 >conftest.err
5466  rm -f conftest.er1
5467  cat conftest.err >&5
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); } &&
5470	 { ac_try='test -z "$ac_f77_werror_flag"
5471			 || test ! -s conftest.err'
5472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473  (eval $ac_try) 2>&5
5474  ac_status=$?
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); }; } &&
5477	 { ac_try='test -s conftest.$ac_objext'
5478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479  (eval $ac_try) 2>&5
5480  ac_status=$?
5481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482  (exit $ac_status); }; }; then
5483  ac_cv_prog_f77_g=yes
5484else
5485  echo "$as_me: failed program was:" >&5
5486sed 's/^/| /' conftest.$ac_ext >&5
5487
5488ac_cv_prog_f77_g=no
5489fi
5490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491
5492fi
5493echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5494echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5495if test "$ac_test_FFLAGS" = set; then
5496  FFLAGS=$ac_save_FFLAGS
5497elif test $ac_cv_prog_f77_g = yes; then
5498  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5499    FFLAGS="-g -O2"
5500  else
5501    FFLAGS="-g"
5502  fi
5503else
5504  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5505    FFLAGS="-O2"
5506  else
5507    FFLAGS=
5508  fi
5509fi
5510
5511G77=`test $ac_compiler_gnu = yes && echo yes`
5512ac_ext=c
5513ac_cpp='$CPP $CPPFLAGS'
5514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5516ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517
5518
5519
5520# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5521
5522# find the maximum length of command line arguments
5523echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5524echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5525if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5526  echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528    i=0
5529  teststring="ABCD"
5530
5531  case $build_os in
5532  msdosdjgpp*)
5533    # On DJGPP, this test can blow up pretty badly due to problems in libc
5534    # (any single argument exceeding 2000 bytes causes a buffer overrun
5535    # during glob expansion).  Even if it were fixed, the result of this
5536    # check would be larger than it should be.
5537    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5538    ;;
5539
5540  gnu*)
5541    # Under GNU Hurd, this test is not required because there is
5542    # no limit to the length of command line arguments.
5543    # Libtool will interpret -1 as no limit whatsoever
5544    lt_cv_sys_max_cmd_len=-1;
5545    ;;
5546
5547  cygwin* | mingw*)
5548    # On Win9x/ME, this test blows up -- it succeeds, but takes
5549    # about 5 minutes as the teststring grows exponentially.
5550    # Worse, since 9x/ME are not pre-emptively multitasking,
5551    # you end up with a "frozen" computer, even though with patience
5552    # the test eventually succeeds (with a max line length of 256k).
5553    # Instead, let's just punt: use the minimum linelength reported by
5554    # all of the supported platforms: 8192 (on NT/2K/XP).
5555    lt_cv_sys_max_cmd_len=8192;
5556    ;;
5557
5558  amigaos*)
5559    # On AmigaOS with pdksh, this test takes hours, literally.
5560    # So we just punt and use a minimum line length of 8192.
5561    lt_cv_sys_max_cmd_len=8192;
5562    ;;
5563
5564  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5565    # This has been around since 386BSD, at least.  Likely further.
5566    if test -x /sbin/sysctl; then
5567      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5568    elif test -x /usr/sbin/sysctl; then
5569      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5570    else
5571      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5572    fi
5573    # And add a safety zone
5574    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5575    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5576    ;;
5577  osf*)
5578    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5579    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5580    # nice to cause kernel panics so lets avoid the loop below.
5581    # First set a reasonable default.
5582    lt_cv_sys_max_cmd_len=16384
5583    #
5584    if test -x /sbin/sysconfig; then
5585      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5586        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5587      esac
5588    fi
5589    ;;
5590  *)
5591    # If test is not a shell built-in, we'll probably end up computing a
5592    # maximum length that is only half of the actual maximum length, but
5593    # we can't tell.
5594    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5595    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5596	       = "XX$teststring") >/dev/null 2>&1 &&
5597	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5598	    lt_cv_sys_max_cmd_len=$new_result &&
5599	    test $i != 17 # 1/2 MB should be enough
5600    do
5601      i=`expr $i + 1`
5602      teststring=$teststring$teststring
5603    done
5604    teststring=
5605    # Add a significant safety factor because C++ compilers can tack on massive
5606    # amounts of additional arguments before passing them to the linker.
5607    # It appears as though 1/2 is a usable value.
5608    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5609    ;;
5610  esac
5611
5612fi
5613
5614if test -n $lt_cv_sys_max_cmd_len ; then
5615  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5616echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5617else
5618  echo "$as_me:$LINENO: result: none" >&5
5619echo "${ECHO_T}none" >&6
5620fi
5621
5622
5623
5624
5625# Check for command to grab the raw symbol name followed by C symbol from nm.
5626echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5627echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5628if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5629  echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631
5632# These are sane defaults that work on at least a few old systems.
5633# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5634
5635# Character class describing NM global symbol codes.
5636symcode='[BCDEGRST]'
5637
5638# Regexp to match symbols that can be accessed directly from C.
5639sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5640
5641# Transform an extracted symbol line into a proper C declaration
5642lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5643
5644# Transform an extracted symbol line into symbol name and symbol address
5645lt_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'"
5646
5647# Define system-specific variables.
5648case $host_os in
5649aix*)
5650  symcode='[BCDT]'
5651  ;;
5652cygwin* | mingw* | pw32*)
5653  symcode='[ABCDGISTW]'
5654  ;;
5655hpux*) # Its linker distinguishes data from code symbols
5656  if test "$host_cpu" = ia64; then
5657    symcode='[ABCDEGRST]'
5658  fi
5659  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5660  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'"
5661  ;;
5662linux*)
5663  if test "$host_cpu" = ia64; then
5664    symcode='[ABCDGIRSTW]'
5665    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5666    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'"
5667  fi
5668  ;;
5669irix* | nonstopux*)
5670  symcode='[BCDEGRST]'
5671  ;;
5672osf*)
5673  symcode='[BCDEGQRST]'
5674  ;;
5675solaris* | sysv5*)
5676  symcode='[BDRT]'
5677  ;;
5678sysv4)
5679  symcode='[DFNSTU]'
5680  ;;
5681esac
5682
5683# Handle CRLF in mingw tool chain
5684opt_cr=
5685case $build_os in
5686mingw*)
5687  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5688  ;;
5689esac
5690
5691# If we're using GNU nm, then use its standard symbol codes.
5692case `$NM -V 2>&1` in
5693*GNU* | *'with BFD'*)
5694  symcode='[ABCDGIRSTW]' ;;
5695esac
5696
5697# Try without a prefix undercore, then with it.
5698for ac_symprfx in "" "_"; do
5699
5700  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5701  symxfrm="\\1 $ac_symprfx\\2 \\2"
5702
5703  # Write the raw and C identifiers.
5704  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5705
5706  # Check to see that the pipe works correctly.
5707  pipe_works=no
5708
5709  rm -f conftest*
5710  cat > conftest.$ac_ext <<EOF
5711#ifdef __cplusplus
5712extern "C" {
5713#endif
5714char nm_test_var;
5715void nm_test_func(){}
5716#ifdef __cplusplus
5717}
5718#endif
5719int main(){nm_test_var='a';nm_test_func();return(0);}
5720EOF
5721
5722  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723  (eval $ac_compile) 2>&5
5724  ac_status=$?
5725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726  (exit $ac_status); }; then
5727    # Now try to grab the symbols.
5728    nlist=conftest.nm
5729    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5730  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5731  ac_status=$?
5732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733  (exit $ac_status); } && test -s "$nlist"; then
5734      # Try sorting and uniquifying the output.
5735      if sort "$nlist" | uniq > "$nlist"T; then
5736	mv -f "$nlist"T "$nlist"
5737      else
5738	rm -f "$nlist"T
5739      fi
5740
5741      # Make sure that we snagged all the symbols we need.
5742      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5743	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5744	  cat <<EOF > conftest.$ac_ext
5745#ifdef __cplusplus
5746extern "C" {
5747#endif
5748
5749EOF
5750	  # Now generate the symbol file.
5751	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5752
5753	  cat <<EOF >> conftest.$ac_ext
5754#if defined (__STDC__) && __STDC__
5755# define lt_ptr_t void *
5756#else
5757# define lt_ptr_t char *
5758# define const
5759#endif
5760
5761/* The mapping between symbol names and symbols. */
5762const struct {
5763  const char *name;
5764  lt_ptr_t address;
5765}
5766lt_preloaded_symbols[] =
5767{
5768EOF
5769	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5770	  cat <<\EOF >> conftest.$ac_ext
5771  {0, (lt_ptr_t) 0}
5772};
5773
5774#ifdef __cplusplus
5775}
5776#endif
5777EOF
5778	  # Now try linking the two files.
5779	  mv conftest.$ac_objext conftstm.$ac_objext
5780	  lt_save_LIBS="$LIBS"
5781	  lt_save_CFLAGS="$CFLAGS"
5782	  LIBS="conftstm.$ac_objext"
5783	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5784	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785  (eval $ac_link) 2>&5
5786  ac_status=$?
5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5789	    pipe_works=yes
5790	  fi
5791	  LIBS="$lt_save_LIBS"
5792	  CFLAGS="$lt_save_CFLAGS"
5793	else
5794	  echo "cannot find nm_test_func in $nlist" >&5
5795	fi
5796      else
5797	echo "cannot find nm_test_var in $nlist" >&5
5798      fi
5799    else
5800      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5801    fi
5802  else
5803    echo "$progname: failed program was:" >&5
5804    cat conftest.$ac_ext >&5
5805  fi
5806  rm -f conftest* conftst*
5807
5808  # Do not use the global_symbol_pipe unless it works.
5809  if test "$pipe_works" = yes; then
5810    break
5811  else
5812    lt_cv_sys_global_symbol_pipe=
5813  fi
5814done
5815
5816fi
5817
5818if test -z "$lt_cv_sys_global_symbol_pipe"; then
5819  lt_cv_sys_global_symbol_to_cdecl=
5820fi
5821if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5822  echo "$as_me:$LINENO: result: failed" >&5
5823echo "${ECHO_T}failed" >&6
5824else
5825  echo "$as_me:$LINENO: result: ok" >&5
5826echo "${ECHO_T}ok" >&6
5827fi
5828
5829echo "$as_me:$LINENO: checking for objdir" >&5
5830echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5831if test "${lt_cv_objdir+set}" = set; then
5832  echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
5834  rm -f .libs 2>/dev/null
5835mkdir .libs 2>/dev/null
5836if test -d .libs; then
5837  lt_cv_objdir=.libs
5838else
5839  # MS-DOS does not allow filenames that begin with a dot.
5840  lt_cv_objdir=_libs
5841fi
5842rmdir .libs 2>/dev/null
5843fi
5844echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5845echo "${ECHO_T}$lt_cv_objdir" >&6
5846objdir=$lt_cv_objdir
5847
5848
5849
5850
5851
5852case $host_os in
5853aix3*)
5854  # AIX sometimes has problems with the GCC collect2 program.  For some
5855  # reason, if we set the COLLECT_NAMES environment variable, the problems
5856  # vanish in a puff of smoke.
5857  if test "X${COLLECT_NAMES+set}" != Xset; then
5858    COLLECT_NAMES=
5859    export COLLECT_NAMES
5860  fi
5861  ;;
5862esac
5863
5864# Sed substitution that helps us do robust quoting.  It backslashifies
5865# metacharacters that are still active within double-quoted strings.
5866Xsed='sed -e 1s/^X//'
5867sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5868
5869# Same as above, but do not quote variable references.
5870double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5871
5872# Sed substitution to delay expansion of an escaped shell variable in a
5873# double_quote_subst'ed string.
5874delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5875
5876# Sed substitution to avoid accidental globbing in evaled expressions
5877no_glob_subst='s/\*/\\\*/g'
5878
5879# Constants:
5880rm="rm -f"
5881
5882# Global variables:
5883default_ofile=libtool
5884can_build_shared=yes
5885
5886# All known linkers require a `.a' archive for static linking (except MSVC,
5887# which needs '.lib').
5888libext=a
5889ltmain="$ac_aux_dir/ltmain.sh"
5890ofile="$default_ofile"
5891with_gnu_ld="$lt_cv_prog_gnu_ld"
5892
5893if test -n "$ac_tool_prefix"; then
5894  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5895set dummy ${ac_tool_prefix}ar; ac_word=$2
5896echo "$as_me:$LINENO: checking for $ac_word" >&5
5897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5898if test "${ac_cv_prog_AR+set}" = set; then
5899  echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901  if test -n "$AR"; then
5902  ac_cv_prog_AR="$AR" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907  IFS=$as_save_IFS
5908  test -z "$as_dir" && as_dir=.
5909  for ac_exec_ext in '' $ac_executable_extensions; do
5910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911    ac_cv_prog_AR="${ac_tool_prefix}ar"
5912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913    break 2
5914  fi
5915done
5916done
5917
5918fi
5919fi
5920AR=$ac_cv_prog_AR
5921if test -n "$AR"; then
5922  echo "$as_me:$LINENO: result: $AR" >&5
5923echo "${ECHO_T}$AR" >&6
5924else
5925  echo "$as_me:$LINENO: result: no" >&5
5926echo "${ECHO_T}no" >&6
5927fi
5928
5929fi
5930if test -z "$ac_cv_prog_AR"; then
5931  ac_ct_AR=$AR
5932  # Extract the first word of "ar", so it can be a program name with args.
5933set dummy ar; ac_word=$2
5934echo "$as_me:$LINENO: checking for $ac_word" >&5
5935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5936if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5937  echo $ECHO_N "(cached) $ECHO_C" >&6
5938else
5939  if test -n "$ac_ct_AR"; then
5940  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945  IFS=$as_save_IFS
5946  test -z "$as_dir" && as_dir=.
5947  for ac_exec_ext in '' $ac_executable_extensions; do
5948  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949    ac_cv_prog_ac_ct_AR="ar"
5950    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951    break 2
5952  fi
5953done
5954done
5955
5956  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5957fi
5958fi
5959ac_ct_AR=$ac_cv_prog_ac_ct_AR
5960if test -n "$ac_ct_AR"; then
5961  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5962echo "${ECHO_T}$ac_ct_AR" >&6
5963else
5964  echo "$as_me:$LINENO: result: no" >&5
5965echo "${ECHO_T}no" >&6
5966fi
5967
5968  AR=$ac_ct_AR
5969else
5970  AR="$ac_cv_prog_AR"
5971fi
5972
5973if test -n "$ac_tool_prefix"; then
5974  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5975set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5976echo "$as_me:$LINENO: checking for $ac_word" >&5
5977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5978if test "${ac_cv_prog_RANLIB+set}" = set; then
5979  echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981  if test -n "$RANLIB"; then
5982  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5983else
5984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985for as_dir in $PATH
5986do
5987  IFS=$as_save_IFS
5988  test -z "$as_dir" && as_dir=.
5989  for ac_exec_ext in '' $ac_executable_extensions; do
5990  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5991    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5992    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993    break 2
5994  fi
5995done
5996done
5997
5998fi
5999fi
6000RANLIB=$ac_cv_prog_RANLIB
6001if test -n "$RANLIB"; then
6002  echo "$as_me:$LINENO: result: $RANLIB" >&5
6003echo "${ECHO_T}$RANLIB" >&6
6004else
6005  echo "$as_me:$LINENO: result: no" >&5
6006echo "${ECHO_T}no" >&6
6007fi
6008
6009fi
6010if test -z "$ac_cv_prog_RANLIB"; then
6011  ac_ct_RANLIB=$RANLIB
6012  # Extract the first word of "ranlib", so it can be a program name with args.
6013set dummy ranlib; ac_word=$2
6014echo "$as_me:$LINENO: checking for $ac_word" >&5
6015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6016if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6017  echo $ECHO_N "(cached) $ECHO_C" >&6
6018else
6019  if test -n "$ac_ct_RANLIB"; then
6020  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6021else
6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023for as_dir in $PATH
6024do
6025  IFS=$as_save_IFS
6026  test -z "$as_dir" && as_dir=.
6027  for ac_exec_ext in '' $ac_executable_extensions; do
6028  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6029    ac_cv_prog_ac_ct_RANLIB="ranlib"
6030    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031    break 2
6032  fi
6033done
6034done
6035
6036  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6037fi
6038fi
6039ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6040if test -n "$ac_ct_RANLIB"; then
6041  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6042echo "${ECHO_T}$ac_ct_RANLIB" >&6
6043else
6044  echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046fi
6047
6048  RANLIB=$ac_ct_RANLIB
6049else
6050  RANLIB="$ac_cv_prog_RANLIB"
6051fi
6052
6053if test -n "$ac_tool_prefix"; then
6054  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6055set dummy ${ac_tool_prefix}strip; ac_word=$2
6056echo "$as_me:$LINENO: checking for $ac_word" >&5
6057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6058if test "${ac_cv_prog_STRIP+set}" = set; then
6059  echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061  if test -n "$STRIP"; then
6062  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067  IFS=$as_save_IFS
6068  test -z "$as_dir" && as_dir=.
6069  for ac_exec_ext in '' $ac_executable_extensions; do
6070  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073    break 2
6074  fi
6075done
6076done
6077
6078fi
6079fi
6080STRIP=$ac_cv_prog_STRIP
6081if test -n "$STRIP"; then
6082  echo "$as_me:$LINENO: result: $STRIP" >&5
6083echo "${ECHO_T}$STRIP" >&6
6084else
6085  echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087fi
6088
6089fi
6090if test -z "$ac_cv_prog_STRIP"; then
6091  ac_ct_STRIP=$STRIP
6092  # Extract the first word of "strip", so it can be a program name with args.
6093set dummy strip; ac_word=$2
6094echo "$as_me:$LINENO: checking for $ac_word" >&5
6095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6096if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6097  echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099  if test -n "$ac_ct_STRIP"; then
6100  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105  IFS=$as_save_IFS
6106  test -z "$as_dir" && as_dir=.
6107  for ac_exec_ext in '' $ac_executable_extensions; do
6108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109    ac_cv_prog_ac_ct_STRIP="strip"
6110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111    break 2
6112  fi
6113done
6114done
6115
6116  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6117fi
6118fi
6119ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6120if test -n "$ac_ct_STRIP"; then
6121  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6122echo "${ECHO_T}$ac_ct_STRIP" >&6
6123else
6124  echo "$as_me:$LINENO: result: no" >&5
6125echo "${ECHO_T}no" >&6
6126fi
6127
6128  STRIP=$ac_ct_STRIP
6129else
6130  STRIP="$ac_cv_prog_STRIP"
6131fi
6132
6133
6134old_CC="$CC"
6135old_CFLAGS="$CFLAGS"
6136
6137# Set sane defaults for various variables
6138test -z "$AR" && AR=ar
6139test -z "$AR_FLAGS" && AR_FLAGS=cru
6140test -z "$AS" && AS=as
6141test -z "$CC" && CC=cc
6142test -z "$LTCC" && LTCC=$CC
6143test -z "$DLLTOOL" && DLLTOOL=dlltool
6144test -z "$LD" && LD=ld
6145test -z "$LN_S" && LN_S="ln -s"
6146test -z "$MAGIC_CMD" && MAGIC_CMD=file
6147test -z "$NM" && NM=nm
6148test -z "$SED" && SED=sed
6149test -z "$OBJDUMP" && OBJDUMP=objdump
6150test -z "$RANLIB" && RANLIB=:
6151test -z "$STRIP" && STRIP=:
6152test -z "$ac_objext" && ac_objext=o
6153
6154# Determine commands to create old-style static archives.
6155old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6156old_postinstall_cmds='chmod 644 $oldlib'
6157old_postuninstall_cmds=
6158
6159if test -n "$RANLIB"; then
6160  case $host_os in
6161  openbsd*)
6162    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6163    ;;
6164  *)
6165    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6166    ;;
6167  esac
6168  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6169fi
6170
6171for cc_temp in $compiler""; do
6172  case $cc_temp in
6173    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6174    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6175    \-*) ;;
6176    *) break;;
6177  esac
6178done
6179cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6180
6181
6182# Only perform the check for file, if the check method requires it
6183case $deplibs_check_method in
6184file_magic*)
6185  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6186    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6187echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6188if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6189  echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191  case $MAGIC_CMD in
6192[\\/*] |  ?:[\\/]*)
6193  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6194  ;;
6195*)
6196  lt_save_MAGIC_CMD="$MAGIC_CMD"
6197  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6198  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6199  for ac_dir in $ac_dummy; do
6200    IFS="$lt_save_ifs"
6201    test -z "$ac_dir" && ac_dir=.
6202    if test -f $ac_dir/${ac_tool_prefix}file; then
6203      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6204      if test -n "$file_magic_test_file"; then
6205	case $deplibs_check_method in
6206	"file_magic "*)
6207	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6208	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6209	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6210	    $EGREP "$file_magic_regex" > /dev/null; then
6211	    :
6212	  else
6213	    cat <<EOF 1>&2
6214
6215*** Warning: the command libtool uses to detect shared libraries,
6216*** $file_magic_cmd, produces output that libtool cannot recognize.
6217*** The result is that libtool may fail to recognize shared libraries
6218*** as such.  This will affect the creation of libtool libraries that
6219*** depend on shared libraries, but programs linked with such libtool
6220*** libraries will work regardless of this problem.  Nevertheless, you
6221*** may want to report the problem to your system manager and/or to
6222*** bug-libtool@gnu.org
6223
6224EOF
6225	  fi ;;
6226	esac
6227      fi
6228      break
6229    fi
6230  done
6231  IFS="$lt_save_ifs"
6232  MAGIC_CMD="$lt_save_MAGIC_CMD"
6233  ;;
6234esac
6235fi
6236
6237MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6238if test -n "$MAGIC_CMD"; then
6239  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6240echo "${ECHO_T}$MAGIC_CMD" >&6
6241else
6242  echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6
6244fi
6245
6246if test -z "$lt_cv_path_MAGIC_CMD"; then
6247  if test -n "$ac_tool_prefix"; then
6248    echo "$as_me:$LINENO: checking for file" >&5
6249echo $ECHO_N "checking for file... $ECHO_C" >&6
6250if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6251  echo $ECHO_N "(cached) $ECHO_C" >&6
6252else
6253  case $MAGIC_CMD in
6254[\\/*] |  ?:[\\/]*)
6255  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6256  ;;
6257*)
6258  lt_save_MAGIC_CMD="$MAGIC_CMD"
6259  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6260  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6261  for ac_dir in $ac_dummy; do
6262    IFS="$lt_save_ifs"
6263    test -z "$ac_dir" && ac_dir=.
6264    if test -f $ac_dir/file; then
6265      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6266      if test -n "$file_magic_test_file"; then
6267	case $deplibs_check_method in
6268	"file_magic "*)
6269	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6270	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6271	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6272	    $EGREP "$file_magic_regex" > /dev/null; then
6273	    :
6274	  else
6275	    cat <<EOF 1>&2
6276
6277*** Warning: the command libtool uses to detect shared libraries,
6278*** $file_magic_cmd, produces output that libtool cannot recognize.
6279*** The result is that libtool may fail to recognize shared libraries
6280*** as such.  This will affect the creation of libtool libraries that
6281*** depend on shared libraries, but programs linked with such libtool
6282*** libraries will work regardless of this problem.  Nevertheless, you
6283*** may want to report the problem to your system manager and/or to
6284*** bug-libtool@gnu.org
6285
6286EOF
6287	  fi ;;
6288	esac
6289      fi
6290      break
6291    fi
6292  done
6293  IFS="$lt_save_ifs"
6294  MAGIC_CMD="$lt_save_MAGIC_CMD"
6295  ;;
6296esac
6297fi
6298
6299MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6300if test -n "$MAGIC_CMD"; then
6301  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6302echo "${ECHO_T}$MAGIC_CMD" >&6
6303else
6304  echo "$as_me:$LINENO: result: no" >&5
6305echo "${ECHO_T}no" >&6
6306fi
6307
6308  else
6309    MAGIC_CMD=:
6310  fi
6311fi
6312
6313  fi
6314  ;;
6315esac
6316
6317enable_dlopen=no
6318enable_win32_dll=no
6319
6320# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6321if test "${enable_libtool_lock+set}" = set; then
6322  enableval="$enable_libtool_lock"
6323
6324fi;
6325test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6326
6327
6328# Check whether --with-pic or --without-pic was given.
6329if test "${with_pic+set}" = set; then
6330  withval="$with_pic"
6331  pic_mode="$withval"
6332else
6333  pic_mode=default
6334fi;
6335test -z "$pic_mode" && pic_mode=default
6336
6337# Use C for the default configuration in the libtool script
6338tagname=
6339lt_save_CC="$CC"
6340ac_ext=c
6341ac_cpp='$CPP $CPPFLAGS'
6342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6344ac_compiler_gnu=$ac_cv_c_compiler_gnu
6345
6346
6347# Source file extension for C test sources.
6348ac_ext=c
6349
6350# Object file extension for compiled C test sources.
6351objext=o
6352objext=$objext
6353
6354# Code to be used in simple compile tests
6355lt_simple_compile_test_code="int some_variable = 0;\n"
6356
6357# Code to be used in simple link tests
6358lt_simple_link_test_code='int main(){return(0);}\n'
6359
6360
6361# If no C compiler was specified, use CC.
6362LTCC=${LTCC-"$CC"}
6363
6364# Allow CC to be a program name with arguments.
6365compiler=$CC
6366
6367
6368# save warnings/boilerplate of simple test code
6369ac_outfile=conftest.$ac_objext
6370printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6371eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6372_lt_compiler_boilerplate=`cat conftest.err`
6373$rm conftest*
6374
6375ac_outfile=conftest.$ac_objext
6376printf "$lt_simple_link_test_code" >conftest.$ac_ext
6377eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6378_lt_linker_boilerplate=`cat conftest.err`
6379$rm conftest*
6380
6381
6382#
6383# Check for any special shared library compilation flags.
6384#
6385lt_prog_cc_shlib=
6386if test "$GCC" = no; then
6387  case $host_os in
6388  sco3.2v5*)
6389    lt_prog_cc_shlib='-belf'
6390    ;;
6391  esac
6392fi
6393if test -n "$lt_prog_cc_shlib"; then
6394  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6395echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6396  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6397  else
6398    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6399echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6400    lt_cv_prog_cc_can_build_shared=no
6401  fi
6402fi
6403
6404
6405#
6406# Check to make sure the static flag actually works.
6407#
6408echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6409echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6410if test "${lt_prog_compiler_static_works+set}" = set; then
6411  echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413  lt_prog_compiler_static_works=no
6414   save_LDFLAGS="$LDFLAGS"
6415   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6416   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6417   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6418     # The linker can only warn and ignore the option if not recognized
6419     # So say no if there are warnings
6420     if test -s conftest.err; then
6421       # Append any errors to the config.log.
6422       cat conftest.err 1>&5
6423       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6424       $SED '/^$/d' conftest.err >conftest.er2
6425       if diff conftest.exp conftest.er2 >/dev/null; then
6426         lt_prog_compiler_static_works=yes
6427       fi
6428     else
6429       lt_prog_compiler_static_works=yes
6430     fi
6431   fi
6432   $rm conftest*
6433   LDFLAGS="$save_LDFLAGS"
6434
6435fi
6436echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6437echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6438
6439if test x"$lt_prog_compiler_static_works" = xyes; then
6440    :
6441else
6442    lt_prog_compiler_static=
6443fi
6444
6445
6446
6447## CAVEAT EMPTOR:
6448## There is no encapsulation within the following macros, do not change
6449## the running order or otherwise move them around unless you know exactly
6450## what you are doing...
6451
6452lt_prog_compiler_no_builtin_flag=
6453
6454if test "$GCC" = yes; then
6455  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6456
6457
6458echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6459echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6460if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6461  echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463  lt_cv_prog_compiler_rtti_exceptions=no
6464  ac_outfile=conftest.$ac_objext
6465   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6466   lt_compiler_flag="-fno-rtti -fno-exceptions"
6467   # Insert the option either (1) after the last *FLAGS variable, or
6468   # (2) before a word containing "conftest.", or (3) at the end.
6469   # Note that $ac_compile itself does not contain backslashes and begins
6470   # with a dollar sign (not a hyphen), so the echo should work correctly.
6471   # The option is referenced via a variable to avoid confusing sed.
6472   lt_compile=`echo "$ac_compile" | $SED \
6473   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6474   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6475   -e 's:$: $lt_compiler_flag:'`
6476   (eval echo "\"\$as_me:6476: $lt_compile\"" >&5)
6477   (eval "$lt_compile" 2>conftest.err)
6478   ac_status=$?
6479   cat conftest.err >&5
6480   echo "$as_me:6480: \$? = $ac_status" >&5
6481   if (exit $ac_status) && test -s "$ac_outfile"; then
6482     # The compiler can only warn and ignore the option if not recognized
6483     # So say no if there are warnings other than the usual output.
6484     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6485     $SED '/^$/d' conftest.err >conftest.er2
6486     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6487       lt_cv_prog_compiler_rtti_exceptions=yes
6488     fi
6489   fi
6490   $rm conftest*
6491
6492fi
6493echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6494echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6495
6496if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6497    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6498else
6499    :
6500fi
6501
6502fi
6503
6504lt_prog_compiler_wl=
6505lt_prog_compiler_pic=
6506lt_prog_compiler_static=
6507
6508echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6509echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6510
6511  if test "$GCC" = yes; then
6512    lt_prog_compiler_wl='-Wl,'
6513    lt_prog_compiler_static='-static'
6514
6515    case $host_os in
6516      aix*)
6517      # All AIX code is PIC.
6518      if test "$host_cpu" = ia64; then
6519	# AIX 5 now supports IA64 processor
6520	lt_prog_compiler_static='-Bstatic'
6521      fi
6522      ;;
6523
6524    amigaos*)
6525      # FIXME: we need at least 68020 code to build shared libraries, but
6526      # adding the `-m68020' flag to GCC prevents building anything better,
6527      # like `-m68040'.
6528      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6529      ;;
6530
6531    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6532      # PIC is the default for these OSes.
6533      ;;
6534
6535    mingw* | pw32* | os2*)
6536      # This hack is so that the source file can tell whether it is being
6537      # built for inclusion in a dll (and should export symbols for example).
6538      lt_prog_compiler_pic='-DDLL_EXPORT'
6539      ;;
6540
6541    darwin* | rhapsody*)
6542      # PIC is the default on this platform
6543      # Common symbols not allowed in MH_DYLIB files
6544      lt_prog_compiler_pic='-fno-common'
6545      ;;
6546
6547    msdosdjgpp*)
6548      # Just because we use GCC doesn't mean we suddenly get shared libraries
6549      # on systems that don't support them.
6550      lt_prog_compiler_can_build_shared=no
6551      enable_shared=no
6552      ;;
6553
6554    sysv4*MP*)
6555      if test -d /usr/nec; then
6556	lt_prog_compiler_pic=-Kconform_pic
6557      fi
6558      ;;
6559
6560    hpux*)
6561      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6562      # not for PA HP-UX.
6563      case $host_cpu in
6564      hppa*64*|ia64*)
6565	# +Z the default
6566	;;
6567      *)
6568	lt_prog_compiler_pic='-fPIC'
6569	;;
6570      esac
6571      ;;
6572
6573    *)
6574      lt_prog_compiler_pic='-fPIC'
6575      ;;
6576    esac
6577  else
6578    # PORTME Check for flag to pass linker flags through the system compiler.
6579    case $host_os in
6580    aix*)
6581      lt_prog_compiler_wl='-Wl,'
6582      if test "$host_cpu" = ia64; then
6583	# AIX 5 now supports IA64 processor
6584	lt_prog_compiler_static='-Bstatic'
6585      else
6586	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6587      fi
6588      ;;
6589      darwin*)
6590        # PIC is the default on this platform
6591        # Common symbols not allowed in MH_DYLIB files
6592       case $cc_basename in
6593         xlc*)
6594         lt_prog_compiler_pic='-qnocommon'
6595         lt_prog_compiler_wl='-Wl,'
6596         ;;
6597       esac
6598       ;;
6599
6600    mingw* | pw32* | os2*)
6601      # This hack is so that the source file can tell whether it is being
6602      # built for inclusion in a dll (and should export symbols for example).
6603      lt_prog_compiler_pic='-DDLL_EXPORT'
6604      ;;
6605
6606    hpux9* | hpux10* | hpux11*)
6607      lt_prog_compiler_wl='-Wl,'
6608      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6609      # not for PA HP-UX.
6610      case $host_cpu in
6611      hppa*64*|ia64*)
6612	# +Z the default
6613	;;
6614      *)
6615	lt_prog_compiler_pic='+Z'
6616	;;
6617      esac
6618      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6619      lt_prog_compiler_static='${wl}-a ${wl}archive'
6620      ;;
6621
6622    irix5* | irix6* | nonstopux*)
6623      lt_prog_compiler_wl='-Wl,'
6624      # PIC (with -KPIC) is the default.
6625      lt_prog_compiler_static='-non_shared'
6626      ;;
6627
6628    newsos6)
6629      lt_prog_compiler_pic='-KPIC'
6630      lt_prog_compiler_static='-Bstatic'
6631      ;;
6632
6633    linux*)
6634      case $cc_basename in
6635      icc* | ecc*)
6636	lt_prog_compiler_wl='-Wl,'
6637	lt_prog_compiler_pic='-KPIC'
6638	lt_prog_compiler_static='-static'
6639        ;;
6640      pgcc* | pgf77* | pgf90* | pgf95*)
6641        # Portland Group compilers (*not* the Pentium gcc compiler,
6642	# which looks to be a dead project)
6643	lt_prog_compiler_wl='-Wl,'
6644	lt_prog_compiler_pic='-fpic'
6645	lt_prog_compiler_static='-Bstatic'
6646        ;;
6647      ccc*)
6648        lt_prog_compiler_wl='-Wl,'
6649        # All Alpha code is PIC.
6650        lt_prog_compiler_static='-non_shared'
6651        ;;
6652      esac
6653      ;;
6654
6655    osf3* | osf4* | osf5*)
6656      lt_prog_compiler_wl='-Wl,'
6657      # All OSF/1 code is PIC.
6658      lt_prog_compiler_static='-non_shared'
6659      ;;
6660
6661    sco3.2v5*)
6662      lt_prog_compiler_pic='-Kpic'
6663      lt_prog_compiler_static='-dn'
6664      ;;
6665
6666    solaris*)
6667      lt_prog_compiler_pic='-KPIC'
6668      lt_prog_compiler_static='-Bstatic'
6669      case $cc_basename in
6670      f77* | f90* | f95*)
6671	lt_prog_compiler_wl='-Qoption ld ';;
6672      *)
6673	lt_prog_compiler_wl='-Wl,';;
6674      esac
6675      ;;
6676
6677    sunos4*)
6678      lt_prog_compiler_wl='-Qoption ld '
6679      lt_prog_compiler_pic='-PIC'
6680      lt_prog_compiler_static='-Bstatic'
6681      ;;
6682
6683    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6684      lt_prog_compiler_wl='-Wl,'
6685      lt_prog_compiler_pic='-KPIC'
6686      lt_prog_compiler_static='-Bstatic'
6687      ;;
6688
6689    sysv4*MP*)
6690      if test -d /usr/nec ;then
6691	lt_prog_compiler_pic='-Kconform_pic'
6692	lt_prog_compiler_static='-Bstatic'
6693      fi
6694      ;;
6695
6696    unicos*)
6697      lt_prog_compiler_wl='-Wl,'
6698      lt_prog_compiler_can_build_shared=no
6699      ;;
6700
6701    uts4*)
6702      lt_prog_compiler_pic='-pic'
6703      lt_prog_compiler_static='-Bstatic'
6704      ;;
6705
6706    *)
6707      lt_prog_compiler_can_build_shared=no
6708      ;;
6709    esac
6710  fi
6711
6712echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6713echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6714
6715#
6716# Check to make sure the PIC flag actually works.
6717#
6718if test -n "$lt_prog_compiler_pic"; then
6719
6720echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6721echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6722if test "${lt_prog_compiler_pic_works+set}" = set; then
6723  echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725  lt_prog_compiler_pic_works=no
6726  ac_outfile=conftest.$ac_objext
6727   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6728   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6729   # Insert the option either (1) after the last *FLAGS variable, or
6730   # (2) before a word containing "conftest.", or (3) at the end.
6731   # Note that $ac_compile itself does not contain backslashes and begins
6732   # with a dollar sign (not a hyphen), so the echo should work correctly.
6733   # The option is referenced via a variable to avoid confusing sed.
6734   lt_compile=`echo "$ac_compile" | $SED \
6735   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6736   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6737   -e 's:$: $lt_compiler_flag:'`
6738   (eval echo "\"\$as_me:6738: $lt_compile\"" >&5)
6739   (eval "$lt_compile" 2>conftest.err)
6740   ac_status=$?
6741   cat conftest.err >&5
6742   echo "$as_me:6742: \$? = $ac_status" >&5
6743   if (exit $ac_status) && test -s "$ac_outfile"; then
6744     # The compiler can only warn and ignore the option if not recognized
6745     # So say no if there are warnings other than the usual output.
6746     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6747     $SED '/^$/d' conftest.err >conftest.er2
6748     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6749       lt_prog_compiler_pic_works=yes
6750     fi
6751   fi
6752   $rm conftest*
6753
6754fi
6755echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6756echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6757
6758if test x"$lt_prog_compiler_pic_works" = xyes; then
6759    case $lt_prog_compiler_pic in
6760     "" | " "*) ;;
6761     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6762     esac
6763else
6764    lt_prog_compiler_pic=
6765     lt_prog_compiler_can_build_shared=no
6766fi
6767
6768fi
6769case $host_os in
6770  # For platforms which do not support PIC, -DPIC is meaningless:
6771  *djgpp*)
6772    lt_prog_compiler_pic=
6773    ;;
6774  *)
6775    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6776    ;;
6777esac
6778
6779echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6780echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6781if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6782  echo $ECHO_N "(cached) $ECHO_C" >&6
6783else
6784  lt_cv_prog_compiler_c_o=no
6785   $rm -r conftest 2>/dev/null
6786   mkdir conftest
6787   cd conftest
6788   mkdir out
6789   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6790
6791   lt_compiler_flag="-o out/conftest2.$ac_objext"
6792   # Insert the option either (1) after the last *FLAGS variable, or
6793   # (2) before a word containing "conftest.", or (3) at the end.
6794   # Note that $ac_compile itself does not contain backslashes and begins
6795   # with a dollar sign (not a hyphen), so the echo should work correctly.
6796   lt_compile=`echo "$ac_compile" | $SED \
6797   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6798   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6799   -e 's:$: $lt_compiler_flag:'`
6800   (eval echo "\"\$as_me:6800: $lt_compile\"" >&5)
6801   (eval "$lt_compile" 2>out/conftest.err)
6802   ac_status=$?
6803   cat out/conftest.err >&5
6804   echo "$as_me:6804: \$? = $ac_status" >&5
6805   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6806   then
6807     # The compiler can only warn and ignore the option if not recognized
6808     # So say no if there are warnings
6809     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6810     $SED '/^$/d' out/conftest.err >out/conftest.er2
6811     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6812       lt_cv_prog_compiler_c_o=yes
6813     fi
6814   fi
6815   chmod u+w . 2>&5
6816   $rm conftest*
6817   # SGI C++ compiler will create directory out/ii_files/ for
6818   # template instantiation
6819   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6820   $rm out/* && rmdir out
6821   cd ..
6822   rmdir conftest
6823   $rm conftest*
6824
6825fi
6826echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6827echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6828
6829
6830hard_links="nottested"
6831if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6832  # do not overwrite the value of need_locks provided by the user
6833  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6834echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6835  hard_links=yes
6836  $rm conftest*
6837  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6838  touch conftest.a
6839  ln conftest.a conftest.b 2>&5 || hard_links=no
6840  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6841  echo "$as_me:$LINENO: result: $hard_links" >&5
6842echo "${ECHO_T}$hard_links" >&6
6843  if test "$hard_links" = no; then
6844    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6845echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6846    need_locks=warn
6847  fi
6848else
6849  need_locks=no
6850fi
6851
6852echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6853echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6854
6855  runpath_var=
6856  allow_undefined_flag=
6857  enable_shared_with_static_runtimes=no
6858  archive_cmds=
6859  archive_expsym_cmds=
6860  old_archive_From_new_cmds=
6861  old_archive_from_expsyms_cmds=
6862  export_dynamic_flag_spec=
6863  whole_archive_flag_spec=
6864  thread_safe_flag_spec=
6865  hardcode_libdir_flag_spec=
6866  hardcode_libdir_flag_spec_ld=
6867  hardcode_libdir_separator=
6868  hardcode_direct=no
6869  hardcode_minus_L=no
6870  hardcode_shlibpath_var=unsupported
6871  link_all_deplibs=unknown
6872  hardcode_automatic=no
6873  module_cmds=
6874  module_expsym_cmds=
6875  always_export_symbols=no
6876  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6877  # include_expsyms should be a list of space-separated symbols to be *always*
6878  # included in the symbol list
6879  include_expsyms=
6880  # exclude_expsyms can be an extended regexp of symbols to exclude
6881  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6882  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6883  # as well as any symbol that contains `d'.
6884  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6885  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6886  # platforms (ab)use it in PIC code, but their linkers get confused if
6887  # the symbol is explicitly referenced.  Since portable code cannot
6888  # rely on this symbol name, it's probably fine to never include it in
6889  # preloaded symbol tables.
6890  extract_expsyms_cmds=
6891  # Just being paranoid about ensuring that cc_basename is set.
6892  for cc_temp in $compiler""; do
6893  case $cc_temp in
6894    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6895    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6896    \-*) ;;
6897    *) break;;
6898  esac
6899done
6900cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6901
6902  case $host_os in
6903  cygwin* | mingw* | pw32*)
6904    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6905    # When not using gcc, we currently assume that we are using
6906    # Microsoft Visual C++.
6907    if test "$GCC" != yes; then
6908      with_gnu_ld=no
6909    fi
6910    ;;
6911  openbsd*)
6912    with_gnu_ld=no
6913    ;;
6914  esac
6915
6916  ld_shlibs=yes
6917  if test "$with_gnu_ld" = yes; then
6918    # If archive_cmds runs LD, not CC, wlarc should be empty
6919    wlarc='${wl}'
6920
6921    # Set some defaults for GNU ld with shared library support. These
6922    # are reset later if shared libraries are not supported. Putting them
6923    # here allows them to be overridden if necessary.
6924    runpath_var=LD_RUN_PATH
6925    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6926    export_dynamic_flag_spec='${wl}--export-dynamic'
6927    # ancient GNU ld didn't support --whole-archive et. al.
6928    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6929	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6930      else
6931  	whole_archive_flag_spec=
6932    fi
6933    supports_anon_versioning=no
6934    case `$LD -v 2>/dev/null` in
6935      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6936      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6937      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6938      *\ 2.11.*) ;; # other 2.11 versions
6939      *) supports_anon_versioning=yes ;;
6940    esac
6941
6942    # See if GNU ld supports shared libraries.
6943    case $host_os in
6944    aix3* | aix4* | aix5*)
6945      # On AIX/PPC, the GNU linker is very broken
6946      if test "$host_cpu" != ia64; then
6947	ld_shlibs=no
6948	cat <<EOF 1>&2
6949
6950*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6951*** to be unable to reliably create shared libraries on AIX.
6952*** Therefore, libtool is disabling shared libraries support.  If you
6953*** really care for shared libraries, you may want to modify your PATH
6954*** so that a non-GNU linker is found, and then restart.
6955
6956EOF
6957      fi
6958      ;;
6959
6960    amigaos*)
6961      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)'
6962      hardcode_libdir_flag_spec='-L$libdir'
6963      hardcode_minus_L=yes
6964
6965      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6966      # that the semantics of dynamic libraries on AmigaOS, at least up
6967      # to version 4, is to share data among multiple programs linked
6968      # with the same dynamic library.  Since this doesn't match the
6969      # behavior of shared libraries on other platforms, we can't use
6970      # them.
6971      ld_shlibs=no
6972      ;;
6973
6974    beos*)
6975      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6976	allow_undefined_flag=unsupported
6977	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6978	# support --undefined.  This deserves some investigation.  FIXME
6979	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6980      else
6981	ld_shlibs=no
6982      fi
6983      ;;
6984
6985    cygwin* | mingw* | pw32*)
6986      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6987      # as there is no search path for DLLs.
6988      hardcode_libdir_flag_spec='-L$libdir'
6989      allow_undefined_flag=unsupported
6990      always_export_symbols=no
6991      enable_shared_with_static_runtimes=yes
6992      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6993
6994      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6995        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6996	# If the export-symbols file already is a .def file (1st line
6997	# is EXPORTS), use it as is; otherwise, prepend...
6998	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6999	  cp $export_symbols $output_objdir/$soname.def;
7000	else
7001	  echo EXPORTS > $output_objdir/$soname.def;
7002	  cat $export_symbols >> $output_objdir/$soname.def;
7003	fi~
7004	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7005      else
7006	ld_shlibs=no
7007      fi
7008      ;;
7009
7010    linux*)
7011      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7012	tmp_addflag=
7013	case $cc_basename,$host_cpu in
7014	pgcc*)				# Portland Group C compiler
7015	  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'
7016	  tmp_addflag=' $pic_flag'
7017	  ;;
7018	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7019	  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'
7020	  tmp_addflag=' $pic_flag -Mnomain' ;;
7021	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7022	  tmp_addflag=' -i_dynamic' ;;
7023	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7024	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7025	ifc* | ifort*)			# Intel Fortran compiler
7026	  tmp_addflag=' -nofor_main' ;;
7027	esac
7028	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7029
7030	if test $supports_anon_versioning = yes; then
7031	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7032  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7033  $echo "local: *; };" >> $output_objdir/$libname.ver~
7034	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7035	fi
7036      else
7037	ld_shlibs=no
7038      fi
7039      ;;
7040
7041    netbsd*)
7042      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7043	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7044	wlarc=
7045      else
7046	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7047	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7048      fi
7049      ;;
7050
7051    solaris* | sysv5*)
7052      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7053	ld_shlibs=no
7054	cat <<EOF 1>&2
7055
7056*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7057*** create shared libraries on Solaris systems.  Therefore, libtool
7058*** is disabling shared libraries support.  We urge you to upgrade GNU
7059*** binutils to release 2.9.1 or newer.  Another option is to modify
7060*** your PATH or compiler configuration so that the native linker is
7061*** used, and then restart.
7062
7063EOF
7064      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7065	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7066	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7067      else
7068	ld_shlibs=no
7069      fi
7070      ;;
7071
7072    sunos4*)
7073      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7074      wlarc=
7075      hardcode_direct=yes
7076      hardcode_shlibpath_var=no
7077      ;;
7078
7079    *)
7080      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7081	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7082	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7083      else
7084	ld_shlibs=no
7085      fi
7086      ;;
7087    esac
7088
7089    if test "$ld_shlibs" = no; then
7090      runpath_var=
7091      hardcode_libdir_flag_spec=
7092      export_dynamic_flag_spec=
7093      whole_archive_flag_spec=
7094    fi
7095  else
7096    # PORTME fill in a description of your system's linker (not GNU ld)
7097    case $host_os in
7098    aix3*)
7099      allow_undefined_flag=unsupported
7100      always_export_symbols=yes
7101      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'
7102      # Note: this linker hardcodes the directories in LIBPATH if there
7103      # are no directories specified by -L.
7104      hardcode_minus_L=yes
7105      if test "$GCC" = yes && test -z "$link_static_flag"; then
7106	# Neither direct hardcoding nor static linking is supported with a
7107	# broken collect2.
7108	hardcode_direct=unsupported
7109      fi
7110      ;;
7111
7112    aix4* | aix5*)
7113      if test "$host_cpu" = ia64; then
7114	# On IA64, the linker does run time linking by default, so we don't
7115	# have to do anything special.
7116	aix_use_runtimelinking=no
7117	exp_sym_flag='-Bexport'
7118	no_entry_flag=""
7119      else
7120	# If we're using GNU nm, then we don't want the "-C" option.
7121	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7122	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7123	  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'
7124	else
7125	  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'
7126	fi
7127	aix_use_runtimelinking=no
7128
7129	# Test if we are trying to use run time linking or normal
7130	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7131	# need to do runtime linking.
7132	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7133	  for ld_flag in $LDFLAGS; do
7134  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7135  	    aix_use_runtimelinking=yes
7136  	    break
7137  	  fi
7138	  done
7139	esac
7140
7141	exp_sym_flag='-bexport'
7142	no_entry_flag='-bnoentry'
7143      fi
7144
7145      # When large executables or shared objects are built, AIX ld can
7146      # have problems creating the table of contents.  If linking a library
7147      # or program results in "error TOC overflow" add -mminimal-toc to
7148      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7149      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7150
7151      archive_cmds=''
7152      hardcode_direct=yes
7153      hardcode_libdir_separator=':'
7154      link_all_deplibs=yes
7155
7156      if test "$GCC" = yes; then
7157	case $host_os in aix4.[012]|aix4.[012].*)
7158	# We only want to do this on AIX 4.2 and lower, the check
7159	# below for broken collect2 doesn't work under 4.3+
7160	  collect2name=`${CC} -print-prog-name=collect2`
7161	  if test -f "$collect2name" && \
7162  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7163	  then
7164  	  # We have reworked collect2
7165  	  hardcode_direct=yes
7166	  else
7167  	  # We have old collect2
7168  	  hardcode_direct=unsupported
7169  	  # It fails to find uninstalled libraries when the uninstalled
7170  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7171  	  # to unsupported forces relinking
7172  	  hardcode_minus_L=yes
7173  	  hardcode_libdir_flag_spec='-L$libdir'
7174  	  hardcode_libdir_separator=
7175	  fi
7176	esac
7177	shared_flag='-shared'
7178	if test "$aix_use_runtimelinking" = yes; then
7179	  shared_flag="$shared_flag "'${wl}-G'
7180	fi
7181      else
7182	# not using gcc
7183	if test "$host_cpu" = ia64; then
7184  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7185  	# chokes on -Wl,-G. The following line is correct:
7186	  shared_flag='-G'
7187	else
7188  	if test "$aix_use_runtimelinking" = yes; then
7189	    shared_flag='${wl}-G'
7190	  else
7191	    shared_flag='${wl}-bM:SRE'
7192  	fi
7193	fi
7194      fi
7195
7196      # It seems that -bexpall does not export symbols beginning with
7197      # underscore (_), so it is better to generate a list of symbols to export.
7198      always_export_symbols=yes
7199      if test "$aix_use_runtimelinking" = yes; then
7200	# Warning - without using the other runtime loading flags (-brtl),
7201	# -berok will link without error, but may produce a broken library.
7202	allow_undefined_flag='-berok'
7203       # Determine the default libpath from the value encoded in an empty executable.
7204       cat >conftest.$ac_ext <<_ACEOF
7205/* confdefs.h.  */
7206_ACEOF
7207cat confdefs.h >>conftest.$ac_ext
7208cat >>conftest.$ac_ext <<_ACEOF
7209/* end confdefs.h.  */
7210
7211int
7212main ()
7213{
7214
7215  ;
7216  return 0;
7217}
7218_ACEOF
7219rm -f conftest.$ac_objext conftest$ac_exeext
7220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221  (eval $ac_link) 2>conftest.er1
7222  ac_status=$?
7223  grep -v '^ *+' conftest.er1 >conftest.err
7224  rm -f conftest.er1
7225  cat conftest.err >&5
7226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227  (exit $ac_status); } &&
7228	 { ac_try='test -z "$ac_c_werror_flag"
7229			 || test ! -s conftest.err'
7230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231  (eval $ac_try) 2>&5
7232  ac_status=$?
7233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234  (exit $ac_status); }; } &&
7235	 { ac_try='test -s conftest$ac_exeext'
7236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237  (eval $ac_try) 2>&5
7238  ac_status=$?
7239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240  (exit $ac_status); }; }; then
7241
7242aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7243}'`
7244# Check for a 64-bit object if we didn't find anything.
7245if 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; }
7246}'`; fi
7247else
7248  echo "$as_me: failed program was:" >&5
7249sed 's/^/| /' conftest.$ac_ext >&5
7250
7251fi
7252rm -f conftest.err conftest.$ac_objext \
7253      conftest$ac_exeext conftest.$ac_ext
7254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7255
7256       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7257	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7258       else
7259	if test "$host_cpu" = ia64; then
7260	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7261	  allow_undefined_flag="-z nodefs"
7262	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7263	else
7264	 # Determine the default libpath from the value encoded in an empty executable.
7265	 cat >conftest.$ac_ext <<_ACEOF
7266/* confdefs.h.  */
7267_ACEOF
7268cat confdefs.h >>conftest.$ac_ext
7269cat >>conftest.$ac_ext <<_ACEOF
7270/* end confdefs.h.  */
7271
7272int
7273main ()
7274{
7275
7276  ;
7277  return 0;
7278}
7279_ACEOF
7280rm -f conftest.$ac_objext conftest$ac_exeext
7281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282  (eval $ac_link) 2>conftest.er1
7283  ac_status=$?
7284  grep -v '^ *+' conftest.er1 >conftest.err
7285  rm -f conftest.er1
7286  cat conftest.err >&5
7287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288  (exit $ac_status); } &&
7289	 { ac_try='test -z "$ac_c_werror_flag"
7290			 || test ! -s conftest.err'
7291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292  (eval $ac_try) 2>&5
7293  ac_status=$?
7294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295  (exit $ac_status); }; } &&
7296	 { ac_try='test -s conftest$ac_exeext'
7297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298  (eval $ac_try) 2>&5
7299  ac_status=$?
7300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301  (exit $ac_status); }; }; then
7302
7303aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7304}'`
7305# Check for a 64-bit object if we didn't find anything.
7306if 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; }
7307}'`; fi
7308else
7309  echo "$as_me: failed program was:" >&5
7310sed 's/^/| /' conftest.$ac_ext >&5
7311
7312fi
7313rm -f conftest.err conftest.$ac_objext \
7314      conftest$ac_exeext conftest.$ac_ext
7315if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7316
7317	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7318	  # Warning - without using the other run time loading flags,
7319	  # -berok will link without error, but may produce a broken library.
7320	  no_undefined_flag=' ${wl}-bernotok'
7321	  allow_undefined_flag=' ${wl}-berok'
7322	  # -bexpall does not export symbols beginning with underscore (_)
7323	  always_export_symbols=yes
7324	  # Exported symbols can be pulled into shared objects from archives
7325	  whole_archive_flag_spec=' '
7326	  archive_cmds_need_lc=yes
7327	  # This is similar to how AIX traditionally builds its shared libraries.
7328	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7329	fi
7330      fi
7331      ;;
7332
7333    amigaos*)
7334      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)'
7335      hardcode_libdir_flag_spec='-L$libdir'
7336      hardcode_minus_L=yes
7337      # see comment about different semantics on the GNU ld section
7338      ld_shlibs=no
7339      ;;
7340
7341    bsdi[45]*)
7342      export_dynamic_flag_spec=-rdynamic
7343      ;;
7344
7345    cygwin* | mingw* | pw32*)
7346      # When not using gcc, we currently assume that we are using
7347      # Microsoft Visual C++.
7348      # hardcode_libdir_flag_spec is actually meaningless, as there is
7349      # no search path for DLLs.
7350      hardcode_libdir_flag_spec=' '
7351      allow_undefined_flag=unsupported
7352      # Tell ltmain to make .lib files, not .a files.
7353      libext=lib
7354      # Tell ltmain to make .dll files, not .so files.
7355      shrext_cmds=".dll"
7356      # FIXME: Setting linknames here is a bad hack.
7357      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7358      # The linker will automatically build a .lib file if we build a DLL.
7359      old_archive_From_new_cmds='true'
7360      # FIXME: Should let the user specify the lib program.
7361      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7362      fix_srcfile_path='`cygpath -w "$srcfile"`'
7363      enable_shared_with_static_runtimes=yes
7364      ;;
7365
7366    darwin* | rhapsody*)
7367      case $host_os in
7368        rhapsody* | darwin1.[012])
7369         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7370         ;;
7371       *) # Darwin 1.3 on
7372         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7373           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7374         else
7375           case ${MACOSX_DEPLOYMENT_TARGET} in
7376             10.[012])
7377               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7378               ;;
7379             10.*)
7380               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7381               ;;
7382           esac
7383         fi
7384         ;;
7385      esac
7386      archive_cmds_need_lc=no
7387      hardcode_direct=no
7388      hardcode_automatic=yes
7389      hardcode_shlibpath_var=unsupported
7390      whole_archive_flag_spec=''
7391      link_all_deplibs=yes
7392    if test "$GCC" = yes ; then
7393    	output_verbose_link_cmd='echo'
7394        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7395      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7396      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7397      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}'
7398      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}'
7399    else
7400      case $cc_basename in
7401        xlc*)
7402         output_verbose_link_cmd='echo'
7403         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7404         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7405          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7406         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}'
7407          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}'
7408          ;;
7409       *)
7410         ld_shlibs=no
7411          ;;
7412      esac
7413    fi
7414      ;;
7415
7416    dgux*)
7417      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418      hardcode_libdir_flag_spec='-L$libdir'
7419      hardcode_shlibpath_var=no
7420      ;;
7421
7422    freebsd1*)
7423      ld_shlibs=no
7424      ;;
7425
7426    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7427    # support.  Future versions do this automatically, but an explicit c++rt0.o
7428    # does not break anything, and helps significantly (at the cost of a little
7429    # extra space).
7430    freebsd2.2*)
7431      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7432      hardcode_libdir_flag_spec='-R$libdir'
7433      hardcode_direct=yes
7434      hardcode_shlibpath_var=no
7435      ;;
7436
7437    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7438    freebsd2*)
7439      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7440      hardcode_direct=yes
7441      hardcode_minus_L=yes
7442      hardcode_shlibpath_var=no
7443      ;;
7444
7445    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7446    freebsd* | kfreebsd*-gnu | dragonfly*)
7447      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7448      hardcode_libdir_flag_spec='-R$libdir'
7449      hardcode_direct=yes
7450      hardcode_shlibpath_var=no
7451      ;;
7452
7453    hpux9*)
7454      if test "$GCC" = yes; then
7455	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'
7456      else
7457	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'
7458      fi
7459      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7460      hardcode_libdir_separator=:
7461      hardcode_direct=yes
7462
7463      # hardcode_minus_L: Not really in the search PATH,
7464      # but as the default location of the library.
7465      hardcode_minus_L=yes
7466      export_dynamic_flag_spec='${wl}-E'
7467      ;;
7468
7469    hpux10* | hpux11*)
7470      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7471	case $host_cpu in
7472	hppa*64*|ia64*)
7473	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7474	  ;;
7475	*)
7476	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7477	  ;;
7478	esac
7479      else
7480	case $host_cpu in
7481	hppa*64*|ia64*)
7482	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7483	  ;;
7484	*)
7485	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7486	  ;;
7487	esac
7488      fi
7489      if test "$with_gnu_ld" = no; then
7490	case $host_cpu in
7491	hppa*64*)
7492	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7493	  hardcode_libdir_flag_spec_ld='+b $libdir'
7494	  hardcode_libdir_separator=:
7495	  hardcode_direct=no
7496	  hardcode_shlibpath_var=no
7497	  ;;
7498	ia64*)
7499	  hardcode_libdir_flag_spec='-L$libdir'
7500	  hardcode_direct=no
7501	  hardcode_shlibpath_var=no
7502
7503	  # hardcode_minus_L: Not really in the search PATH,
7504	  # but as the default location of the library.
7505	  hardcode_minus_L=yes
7506	  ;;
7507	*)
7508	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7509	  hardcode_libdir_separator=:
7510	  hardcode_direct=yes
7511	  export_dynamic_flag_spec='${wl}-E'
7512
7513	  # hardcode_minus_L: Not really in the search PATH,
7514	  # but as the default location of the library.
7515	  hardcode_minus_L=yes
7516	  ;;
7517	esac
7518      fi
7519      ;;
7520
7521    irix5* | irix6* | nonstopux*)
7522      if test "$GCC" = yes; then
7523	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'
7524      else
7525	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'
7526	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7527      fi
7528      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7529      hardcode_libdir_separator=:
7530      link_all_deplibs=yes
7531      ;;
7532
7533    netbsd*)
7534      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7535	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7536      else
7537	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7538      fi
7539      hardcode_libdir_flag_spec='-R$libdir'
7540      hardcode_direct=yes
7541      hardcode_shlibpath_var=no
7542      ;;
7543
7544    newsos6)
7545      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546      hardcode_direct=yes
7547      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7548      hardcode_libdir_separator=:
7549      hardcode_shlibpath_var=no
7550      ;;
7551
7552    openbsd*)
7553      hardcode_direct=yes
7554      hardcode_shlibpath_var=no
7555      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7556	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7557	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7558	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7559	export_dynamic_flag_spec='${wl}-E'
7560      else
7561       case $host_os in
7562	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7563	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7564	   hardcode_libdir_flag_spec='-R$libdir'
7565	   ;;
7566	 *)
7567	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7568	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7569	   ;;
7570       esac
7571      fi
7572      ;;
7573
7574    os2*)
7575      hardcode_libdir_flag_spec='-L$libdir'
7576      hardcode_minus_L=yes
7577      allow_undefined_flag=unsupported
7578      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'
7579      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7580      ;;
7581
7582    osf3*)
7583      if test "$GCC" = yes; then
7584	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7585	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'
7586      else
7587	allow_undefined_flag=' -expect_unresolved \*'
7588	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'
7589      fi
7590      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7591      hardcode_libdir_separator=:
7592      ;;
7593
7594    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7595      if test "$GCC" = yes; then
7596	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7597	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'
7598	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7599      else
7600	allow_undefined_flag=' -expect_unresolved \*'
7601	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'
7602	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7603	$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'
7604
7605	# Both c and cxx compiler support -rpath directly
7606	hardcode_libdir_flag_spec='-rpath $libdir'
7607      fi
7608      hardcode_libdir_separator=:
7609      ;;
7610
7611    sco3.2v5*)
7612      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7613      hardcode_shlibpath_var=no
7614      export_dynamic_flag_spec='${wl}-Bexport'
7615      runpath_var=LD_RUN_PATH
7616      hardcode_runpath_var=yes
7617      ;;
7618
7619    solaris*)
7620      no_undefined_flag=' -z text'
7621      if test "$GCC" = yes; then
7622	wlarc='${wl}'
7623	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7624	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7625	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7626      else
7627	wlarc=''
7628	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7629	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7630  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7631      fi
7632      hardcode_libdir_flag_spec='-R$libdir'
7633      hardcode_shlibpath_var=no
7634      case $host_os in
7635      solaris2.[0-5] | solaris2.[0-5].*) ;;
7636      *)
7637 	# The compiler driver will combine linker options so we
7638 	# cannot just pass the convience library names through
7639 	# without $wl, iff we do not link with $LD.
7640 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7641 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7642 	case $wlarc in
7643 	'')
7644 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7645 	*)
7646 	  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' ;;
7647 	esac ;;
7648      esac
7649      link_all_deplibs=yes
7650      ;;
7651
7652    sunos4*)
7653      if test "x$host_vendor" = xsequent; then
7654	# Use $CC to link under sequent, because it throws in some extra .o
7655	# files that make .init and .fini sections work.
7656	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7657      else
7658	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7659      fi
7660      hardcode_libdir_flag_spec='-L$libdir'
7661      hardcode_direct=yes
7662      hardcode_minus_L=yes
7663      hardcode_shlibpath_var=no
7664      ;;
7665
7666    sysv4)
7667      case $host_vendor in
7668	sni)
7669	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7670	  hardcode_direct=yes # is this really true???
7671	;;
7672	siemens)
7673	  ## LD is ld it makes a PLAMLIB
7674	  ## CC just makes a GrossModule.
7675	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7676	  reload_cmds='$CC -r -o $output$reload_objs'
7677	  hardcode_direct=no
7678        ;;
7679	motorola)
7680	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7682	;;
7683      esac
7684      runpath_var='LD_RUN_PATH'
7685      hardcode_shlibpath_var=no
7686      ;;
7687
7688    sysv4.3*)
7689      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7690      hardcode_shlibpath_var=no
7691      export_dynamic_flag_spec='-Bexport'
7692      ;;
7693
7694    sysv4*MP*)
7695      if test -d /usr/nec; then
7696	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7697	hardcode_shlibpath_var=no
7698	runpath_var=LD_RUN_PATH
7699	hardcode_runpath_var=yes
7700	ld_shlibs=yes
7701      fi
7702      ;;
7703
7704    sysv4.2uw2*)
7705      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7706      hardcode_direct=yes
7707      hardcode_minus_L=no
7708      hardcode_shlibpath_var=no
7709      hardcode_runpath_var=yes
7710      runpath_var=LD_RUN_PATH
7711      ;;
7712
7713   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7714      no_undefined_flag='${wl}-z ${wl}text'
7715      if test "$GCC" = yes; then
7716	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7717      else
7718	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7719      fi
7720      runpath_var='LD_RUN_PATH'
7721      hardcode_shlibpath_var=no
7722      ;;
7723
7724    sysv5*)
7725      no_undefined_flag=' -z text'
7726      # $CC -shared without GNU ld will not create a library from C++
7727      # object files and a static libstdc++, better avoid it by now
7728      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7729      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7730  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7731      hardcode_libdir_flag_spec=
7732      hardcode_shlibpath_var=no
7733      runpath_var='LD_RUN_PATH'
7734      ;;
7735
7736    uts4*)
7737      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7738      hardcode_libdir_flag_spec='-L$libdir'
7739      hardcode_shlibpath_var=no
7740      ;;
7741
7742    *)
7743      ld_shlibs=no
7744      ;;
7745    esac
7746  fi
7747
7748echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7749echo "${ECHO_T}$ld_shlibs" >&6
7750test "$ld_shlibs" = no && can_build_shared=no
7751
7752variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7753if test "$GCC" = yes; then
7754  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7755fi
7756
7757#
7758# Do we need to explicitly link libc?
7759#
7760case "x$archive_cmds_need_lc" in
7761x|xyes)
7762  # Assume -lc should be added
7763  archive_cmds_need_lc=yes
7764
7765  if test "$enable_shared" = yes && test "$GCC" = yes; then
7766    case $archive_cmds in
7767    *'~'*)
7768      # FIXME: we may have to deal with multi-command sequences.
7769      ;;
7770    '$CC '*)
7771      # Test whether the compiler implicitly links with -lc since on some
7772      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7773      # to ld, don't add -lc before -lgcc.
7774      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7775echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7776      $rm conftest*
7777      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7778
7779      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780  (eval $ac_compile) 2>&5
7781  ac_status=$?
7782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783  (exit $ac_status); } 2>conftest.err; then
7784        soname=conftest
7785        lib=conftest
7786        libobjs=conftest.$ac_objext
7787        deplibs=
7788        wl=$lt_prog_compiler_wl
7789        compiler_flags=-v
7790        linker_flags=-v
7791        verstring=
7792        output_objdir=.
7793        libname=conftest
7794        lt_save_allow_undefined_flag=$allow_undefined_flag
7795        allow_undefined_flag=
7796        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7797  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7798  ac_status=$?
7799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800  (exit $ac_status); }
7801        then
7802	  archive_cmds_need_lc=no
7803        else
7804	  archive_cmds_need_lc=yes
7805        fi
7806        allow_undefined_flag=$lt_save_allow_undefined_flag
7807      else
7808        cat conftest.err 1>&5
7809      fi
7810      $rm conftest*
7811      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7812echo "${ECHO_T}$archive_cmds_need_lc" >&6
7813      ;;
7814    esac
7815  fi
7816  ;;
7817esac
7818
7819echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7820echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7821library_names_spec=
7822libname_spec='lib$name'
7823soname_spec=
7824shrext_cmds=".so"
7825postinstall_cmds=
7826postuninstall_cmds=
7827finish_cmds=
7828finish_eval=
7829shlibpath_var=
7830shlibpath_overrides_runpath=unknown
7831version_type=none
7832dynamic_linker="$host_os ld.so"
7833sys_lib_dlsearch_path_spec="/lib /usr/lib"
7834if test "$GCC" = yes; then
7835  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7836  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7837    # if the path contains ";" then we assume it to be the separator
7838    # otherwise default to the standard path separator (i.e. ":") - it is
7839    # assumed that no part of a normal pathname contains ";" but that should
7840    # okay in the real world where ";" in dirpaths is itself problematic.
7841    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7842  else
7843    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7844  fi
7845else
7846  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7847fi
7848need_lib_prefix=unknown
7849hardcode_into_libs=no
7850
7851# when you set need_version to no, make sure it does not cause -set_version
7852# flags to be left without arguments
7853need_version=unknown
7854
7855case $host_os in
7856aix3*)
7857  version_type=linux
7858  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7859  shlibpath_var=LIBPATH
7860
7861  # AIX 3 has no versioning support, so we append a major version to the name.
7862  soname_spec='${libname}${release}${shared_ext}$major'
7863  ;;
7864
7865aix4* | aix5*)
7866  version_type=linux
7867  need_lib_prefix=no
7868  need_version=no
7869  hardcode_into_libs=yes
7870  if test "$host_cpu" = ia64; then
7871    # AIX 5 supports IA64
7872    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7873    shlibpath_var=LD_LIBRARY_PATH
7874  else
7875    # With GCC up to 2.95.x, collect2 would create an import file
7876    # for dependence libraries.  The import file would start with
7877    # the line `#! .'.  This would cause the generated library to
7878    # depend on `.', always an invalid library.  This was fixed in
7879    # development snapshots of GCC prior to 3.0.
7880    case $host_os in
7881      aix4 | aix4.[01] | aix4.[01].*)
7882      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7883	   echo ' yes '
7884	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7885	:
7886      else
7887	can_build_shared=no
7888      fi
7889      ;;
7890    esac
7891    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7892    # soname into executable. Probably we can add versioning support to
7893    # collect2, so additional links can be useful in future.
7894    if test "$aix_use_runtimelinking" = yes; then
7895      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7896      # instead of lib<name>.a to let people know that these are not
7897      # typical AIX shared libraries.
7898      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7899    else
7900      # We preserve .a as extension for shared libraries through AIX4.2
7901      # and later when we are not doing run time linking.
7902      library_names_spec='${libname}${release}.a $libname.a'
7903      soname_spec='${libname}${release}${shared_ext}$major'
7904    fi
7905    shlibpath_var=LIBPATH
7906  fi
7907  ;;
7908
7909amigaos*)
7910  library_names_spec='$libname.ixlibrary $libname.a'
7911  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7912  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'
7913  ;;
7914
7915beos*)
7916  library_names_spec='${libname}${shared_ext}'
7917  dynamic_linker="$host_os ld.so"
7918  shlibpath_var=LIBRARY_PATH
7919  ;;
7920
7921bsdi[45]*)
7922  version_type=linux
7923  need_version=no
7924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925  soname_spec='${libname}${release}${shared_ext}$major'
7926  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7927  shlibpath_var=LD_LIBRARY_PATH
7928  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7929  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7930  # the default ld.so.conf also contains /usr/contrib/lib and
7931  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7932  # libtool to hard-code these into programs
7933  ;;
7934
7935cygwin* | mingw* | pw32*)
7936  version_type=windows
7937  shrext_cmds=".dll"
7938  need_version=no
7939  need_lib_prefix=no
7940
7941  case $GCC,$host_os in
7942  yes,cygwin* | yes,mingw* | yes,pw32*)
7943    library_names_spec='$libname.dll.a'
7944    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7945    postinstall_cmds='base_file=`basename \${file}`~
7946      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7947      dldir=$destdir/`dirname \$dlpath`~
7948      test -d \$dldir || mkdir -p \$dldir~
7949      $install_prog $dir/$dlname \$dldir/$dlname~
7950      chmod a+x \$dldir/$dlname'
7951    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7952      dlpath=$dir/\$dldll~
7953       $rm \$dlpath'
7954    shlibpath_overrides_runpath=yes
7955
7956    case $host_os in
7957    cygwin*)
7958      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7959      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7960      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7961      ;;
7962    mingw*)
7963      # MinGW DLLs use traditional 'lib' prefix
7964      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7965      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7966      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7967        # It is most probably a Windows format PATH printed by
7968        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7969        # path with ; separators, and with drive letters. We can handle the
7970        # drive letters (cygwin fileutils understands them), so leave them,
7971        # especially as we might pass files found there to a mingw objdump,
7972        # which wouldn't understand a cygwinified path. Ahh.
7973        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7974      else
7975        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7976      fi
7977      ;;
7978    pw32*)
7979      # pw32 DLLs use 'pw' prefix rather than 'lib'
7980      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7981      ;;
7982    esac
7983    ;;
7984
7985  *)
7986    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7987    ;;
7988  esac
7989  dynamic_linker='Win32 ld.exe'
7990  # FIXME: first we should search . and the directory the executable is in
7991  shlibpath_var=PATH
7992  ;;
7993
7994darwin* | rhapsody*)
7995  dynamic_linker="$host_os dyld"
7996  version_type=darwin
7997  need_lib_prefix=no
7998  need_version=no
7999  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8000  soname_spec='${libname}${release}${major}$shared_ext'
8001  shlibpath_overrides_runpath=yes
8002  shlibpath_var=DYLD_LIBRARY_PATH
8003  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8004  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8005  if test "$GCC" = yes; then
8006    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"`
8007  else
8008    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8009  fi
8010  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8011  ;;
8012
8013dgux*)
8014  version_type=linux
8015  need_lib_prefix=no
8016  need_version=no
8017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8018  soname_spec='${libname}${release}${shared_ext}$major'
8019  shlibpath_var=LD_LIBRARY_PATH
8020  ;;
8021
8022freebsd1*)
8023  dynamic_linker=no
8024  ;;
8025
8026kfreebsd*-gnu)
8027  version_type=linux
8028  need_lib_prefix=no
8029  need_version=no
8030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8031  soname_spec='${libname}${release}${shared_ext}$major'
8032  shlibpath_var=LD_LIBRARY_PATH
8033  shlibpath_overrides_runpath=no
8034  hardcode_into_libs=yes
8035  dynamic_linker='GNU ld.so'
8036  ;;
8037
8038freebsd* | dragonfly*)
8039  # DragonFly does not have aout.  When/if they implement a new
8040  # versioning mechanism, adjust this.
8041  if test -x /usr/bin/objformat; then
8042    objformat=`/usr/bin/objformat`
8043  else
8044    case $host_os in
8045    freebsd[123]*) objformat=aout ;;
8046    *) objformat=elf ;;
8047    esac
8048  fi
8049  version_type=freebsd-$objformat
8050  case $version_type in
8051    freebsd-elf*)
8052      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8053      need_version=no
8054      need_lib_prefix=no
8055      ;;
8056    freebsd-*)
8057      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8058      need_version=yes
8059      ;;
8060  esac
8061  shlibpath_var=LD_LIBRARY_PATH
8062  case $host_os in
8063  freebsd2*)
8064    shlibpath_overrides_runpath=yes
8065    ;;
8066  freebsd3.[01]* | freebsdelf3.[01]*)
8067    shlibpath_overrides_runpath=yes
8068    hardcode_into_libs=yes
8069    ;;
8070  *) # from 3.2 on
8071    shlibpath_overrides_runpath=no
8072    hardcode_into_libs=yes
8073    ;;
8074  esac
8075  ;;
8076
8077gnu*)
8078  version_type=linux
8079  need_lib_prefix=no
8080  need_version=no
8081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8082  soname_spec='${libname}${release}${shared_ext}$major'
8083  shlibpath_var=LD_LIBRARY_PATH
8084  hardcode_into_libs=yes
8085  ;;
8086
8087hpux9* | hpux10* | hpux11*)
8088  # Give a soname corresponding to the major version so that dld.sl refuses to
8089  # link against other versions.
8090  version_type=sunos
8091  need_lib_prefix=no
8092  need_version=no
8093  case $host_cpu in
8094  ia64*)
8095    shrext_cmds='.so'
8096    hardcode_into_libs=yes
8097    dynamic_linker="$host_os dld.so"
8098    shlibpath_var=LD_LIBRARY_PATH
8099    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8100    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8101    soname_spec='${libname}${release}${shared_ext}$major'
8102    if test "X$HPUX_IA64_MODE" = X32; then
8103      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8104    else
8105      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8106    fi
8107    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8108    ;;
8109   hppa*64*)
8110     shrext_cmds='.sl'
8111     hardcode_into_libs=yes
8112     dynamic_linker="$host_os dld.sl"
8113     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8114     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116     soname_spec='${libname}${release}${shared_ext}$major'
8117     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8118     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8119     ;;
8120   *)
8121    shrext_cmds='.sl'
8122    dynamic_linker="$host_os dld.sl"
8123    shlibpath_var=SHLIB_PATH
8124    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8125    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8126    soname_spec='${libname}${release}${shared_ext}$major'
8127    ;;
8128  esac
8129  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8130  postinstall_cmds='chmod 555 $lib'
8131  ;;
8132
8133irix5* | irix6* | nonstopux*)
8134  case $host_os in
8135    nonstopux*) version_type=nonstopux ;;
8136    *)
8137	if test "$lt_cv_prog_gnu_ld" = yes; then
8138		version_type=linux
8139	else
8140		version_type=irix
8141	fi ;;
8142  esac
8143  need_lib_prefix=no
8144  need_version=no
8145  soname_spec='${libname}${release}${shared_ext}$major'
8146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8147  case $host_os in
8148  irix5* | nonstopux*)
8149    libsuff= shlibsuff=
8150    ;;
8151  *)
8152    case $LD in # libtool.m4 will add one of these switches to LD
8153    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8154      libsuff= shlibsuff= libmagic=32-bit;;
8155    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8156      libsuff=32 shlibsuff=N32 libmagic=N32;;
8157    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8158      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8159    *) libsuff= shlibsuff= libmagic=never-match;;
8160    esac
8161    ;;
8162  esac
8163  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8164  shlibpath_overrides_runpath=no
8165  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8166  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8167  hardcode_into_libs=yes
8168  ;;
8169
8170# No shared lib support for Linux oldld, aout, or coff.
8171linux*oldld* | linux*aout* | linux*coff*)
8172  dynamic_linker=no
8173  ;;
8174
8175# This must be Linux ELF.
8176linux*)
8177  version_type=linux
8178  need_lib_prefix=no
8179  need_version=no
8180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8181  soname_spec='${libname}${release}${shared_ext}$major'
8182  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8183  shlibpath_var=LD_LIBRARY_PATH
8184  shlibpath_overrides_runpath=no
8185  # This implies no fast_install, which is unacceptable.
8186  # Some rework will be needed to allow for fast_install
8187  # before this can be enabled.
8188  hardcode_into_libs=yes
8189
8190  # Append ld.so.conf contents to the search path
8191  if test -f /etc/ld.so.conf; then
8192    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' ' '`
8193    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8194  fi
8195
8196  # We used to test for /lib/ld.so.1 and disable shared libraries on
8197  # powerpc, because MkLinux only supported shared libraries with the
8198  # GNU dynamic linker.  Since this was broken with cross compilers,
8199  # most powerpc-linux boxes support dynamic linking these days and
8200  # people can always --disable-shared, the test was removed, and we
8201  # assume the GNU/Linux dynamic linker is in use.
8202  dynamic_linker='GNU/Linux ld.so'
8203  ;;
8204
8205knetbsd*-gnu)
8206  version_type=linux
8207  need_lib_prefix=no
8208  need_version=no
8209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8210  soname_spec='${libname}${release}${shared_ext}$major'
8211  shlibpath_var=LD_LIBRARY_PATH
8212  shlibpath_overrides_runpath=no
8213  hardcode_into_libs=yes
8214  dynamic_linker='GNU ld.so'
8215  ;;
8216
8217netbsd*)
8218  version_type=sunos
8219  need_lib_prefix=no
8220  need_version=no
8221  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8223    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8224    dynamic_linker='NetBSD (a.out) ld.so'
8225  else
8226    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8227    soname_spec='${libname}${release}${shared_ext}$major'
8228    dynamic_linker='NetBSD ld.elf_so'
8229  fi
8230  shlibpath_var=LD_LIBRARY_PATH
8231  shlibpath_overrides_runpath=yes
8232  hardcode_into_libs=yes
8233  ;;
8234
8235newsos6)
8236  version_type=linux
8237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8238  shlibpath_var=LD_LIBRARY_PATH
8239  shlibpath_overrides_runpath=yes
8240  ;;
8241
8242nto-qnx*)
8243  version_type=linux
8244  need_lib_prefix=no
8245  need_version=no
8246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8247  soname_spec='${libname}${release}${shared_ext}$major'
8248  shlibpath_var=LD_LIBRARY_PATH
8249  shlibpath_overrides_runpath=yes
8250  ;;
8251
8252openbsd*)
8253  version_type=sunos
8254  need_lib_prefix=no
8255  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8256  case $host_os in
8257    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8258    *)                         need_version=no  ;;
8259  esac
8260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8261  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8262  shlibpath_var=LD_LIBRARY_PATH
8263  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8264    case $host_os in
8265      openbsd2.[89] | openbsd2.[89].*)
8266	shlibpath_overrides_runpath=no
8267	;;
8268      *)
8269	shlibpath_overrides_runpath=yes
8270	;;
8271      esac
8272  else
8273    shlibpath_overrides_runpath=yes
8274  fi
8275  ;;
8276
8277os2*)
8278  libname_spec='$name'
8279  shrext_cmds=".dll"
8280  need_lib_prefix=no
8281  library_names_spec='$libname${shared_ext} $libname.a'
8282  dynamic_linker='OS/2 ld.exe'
8283  shlibpath_var=LIBPATH
8284  ;;
8285
8286osf3* | osf4* | osf5*)
8287  version_type=osf
8288  need_lib_prefix=no
8289  need_version=no
8290  soname_spec='${libname}${release}${shared_ext}$major'
8291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8292  shlibpath_var=LD_LIBRARY_PATH
8293  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8294  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8295  ;;
8296
8297sco3.2v5*)
8298  version_type=osf
8299  soname_spec='${libname}${release}${shared_ext}$major'
8300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301  shlibpath_var=LD_LIBRARY_PATH
8302  ;;
8303
8304solaris*)
8305  version_type=linux
8306  need_lib_prefix=no
8307  need_version=no
8308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8309  soname_spec='${libname}${release}${shared_ext}$major'
8310  shlibpath_var=LD_LIBRARY_PATH
8311  shlibpath_overrides_runpath=yes
8312  hardcode_into_libs=yes
8313  # ldd complains unless libraries are executable
8314  postinstall_cmds='chmod +x $lib'
8315  ;;
8316
8317sunos4*)
8318  version_type=sunos
8319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8320  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8321  shlibpath_var=LD_LIBRARY_PATH
8322  shlibpath_overrides_runpath=yes
8323  if test "$with_gnu_ld" = yes; then
8324    need_lib_prefix=no
8325  fi
8326  need_version=yes
8327  ;;
8328
8329sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8330  version_type=linux
8331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8332  soname_spec='${libname}${release}${shared_ext}$major'
8333  shlibpath_var=LD_LIBRARY_PATH
8334  case $host_vendor in
8335    sni)
8336      shlibpath_overrides_runpath=no
8337      need_lib_prefix=no
8338      export_dynamic_flag_spec='${wl}-Blargedynsym'
8339      runpath_var=LD_RUN_PATH
8340      ;;
8341    siemens)
8342      need_lib_prefix=no
8343      ;;
8344    motorola)
8345      need_lib_prefix=no
8346      need_version=no
8347      shlibpath_overrides_runpath=no
8348      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8349      ;;
8350  esac
8351  ;;
8352
8353sysv4*MP*)
8354  if test -d /usr/nec ;then
8355    version_type=linux
8356    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8357    soname_spec='$libname${shared_ext}.$major'
8358    shlibpath_var=LD_LIBRARY_PATH
8359  fi
8360  ;;
8361
8362uts4*)
8363  version_type=linux
8364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8365  soname_spec='${libname}${release}${shared_ext}$major'
8366  shlibpath_var=LD_LIBRARY_PATH
8367  ;;
8368
8369*)
8370  dynamic_linker=no
8371  ;;
8372esac
8373echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8374echo "${ECHO_T}$dynamic_linker" >&6
8375test "$dynamic_linker" = no && can_build_shared=no
8376
8377echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8378echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8379hardcode_action=
8380if test -n "$hardcode_libdir_flag_spec" || \
8381   test -n "$runpath_var" || \
8382   test "X$hardcode_automatic" = "Xyes" ; then
8383
8384  # We can hardcode non-existant directories.
8385  if test "$hardcode_direct" != no &&
8386     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8387     # have to relink, otherwise we might link with an installed library
8388     # when we should be linking with a yet-to-be-installed one
8389     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8390     test "$hardcode_minus_L" != no; then
8391    # Linking always hardcodes the temporary library directory.
8392    hardcode_action=relink
8393  else
8394    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8395    hardcode_action=immediate
8396  fi
8397else
8398  # We cannot hardcode anything, or else we can only hardcode existing
8399  # directories.
8400  hardcode_action=unsupported
8401fi
8402echo "$as_me:$LINENO: result: $hardcode_action" >&5
8403echo "${ECHO_T}$hardcode_action" >&6
8404
8405if test "$hardcode_action" = relink; then
8406  # Fast installation is not supported
8407  enable_fast_install=no
8408elif test "$shlibpath_overrides_runpath" = yes ||
8409     test "$enable_shared" = no; then
8410  # Fast installation is not necessary
8411  enable_fast_install=needless
8412fi
8413
8414striplib=
8415old_striplib=
8416echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8417echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8418if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8419  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8420  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8421  echo "$as_me:$LINENO: result: yes" >&5
8422echo "${ECHO_T}yes" >&6
8423else
8424# FIXME - insert some real tests, host_os isn't really good enough
8425  case $host_os in
8426   darwin*)
8427       if test -n "$STRIP" ; then
8428         striplib="$STRIP -x"
8429         echo "$as_me:$LINENO: result: yes" >&5
8430echo "${ECHO_T}yes" >&6
8431       else
8432  echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6
8434fi
8435       ;;
8436   *)
8437  echo "$as_me:$LINENO: result: no" >&5
8438echo "${ECHO_T}no" >&6
8439    ;;
8440  esac
8441fi
8442
8443if test "x$enable_dlopen" != xyes; then
8444  enable_dlopen=unknown
8445  enable_dlopen_self=unknown
8446  enable_dlopen_self_static=unknown
8447else
8448  lt_cv_dlopen=no
8449  lt_cv_dlopen_libs=
8450
8451  case $host_os in
8452  beos*)
8453    lt_cv_dlopen="load_add_on"
8454    lt_cv_dlopen_libs=
8455    lt_cv_dlopen_self=yes
8456    ;;
8457
8458  mingw* | pw32*)
8459    lt_cv_dlopen="LoadLibrary"
8460    lt_cv_dlopen_libs=
8461   ;;
8462
8463  cygwin*)
8464    lt_cv_dlopen="dlopen"
8465    lt_cv_dlopen_libs=
8466   ;;
8467
8468  darwin*)
8469  # if libdl is installed we need to link against it
8470    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8471echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8472if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8473  echo $ECHO_N "(cached) $ECHO_C" >&6
8474else
8475  ac_check_lib_save_LIBS=$LIBS
8476LIBS="-ldl  $LIBS"
8477cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h.  */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h.  */
8483
8484/* Override any gcc2 internal prototype to avoid an error.  */
8485#ifdef __cplusplus
8486extern "C"
8487#endif
8488/* We use char because int might match the return type of a gcc2
8489   builtin and then its argument prototype would still apply.  */
8490char dlopen ();
8491int
8492main ()
8493{
8494dlopen ();
8495  ;
8496  return 0;
8497}
8498_ACEOF
8499rm -f conftest.$ac_objext conftest$ac_exeext
8500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501  (eval $ac_link) 2>conftest.er1
8502  ac_status=$?
8503  grep -v '^ *+' conftest.er1 >conftest.err
8504  rm -f conftest.er1
8505  cat conftest.err >&5
8506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507  (exit $ac_status); } &&
8508	 { ac_try='test -z "$ac_c_werror_flag"
8509			 || test ! -s conftest.err'
8510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511  (eval $ac_try) 2>&5
8512  ac_status=$?
8513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514  (exit $ac_status); }; } &&
8515	 { ac_try='test -s conftest$ac_exeext'
8516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517  (eval $ac_try) 2>&5
8518  ac_status=$?
8519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520  (exit $ac_status); }; }; then
8521  ac_cv_lib_dl_dlopen=yes
8522else
8523  echo "$as_me: failed program was:" >&5
8524sed 's/^/| /' conftest.$ac_ext >&5
8525
8526ac_cv_lib_dl_dlopen=no
8527fi
8528rm -f conftest.err conftest.$ac_objext \
8529      conftest$ac_exeext conftest.$ac_ext
8530LIBS=$ac_check_lib_save_LIBS
8531fi
8532echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8533echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8534if test $ac_cv_lib_dl_dlopen = yes; then
8535  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8536else
8537
8538    lt_cv_dlopen="dyld"
8539    lt_cv_dlopen_libs=
8540    lt_cv_dlopen_self=yes
8541
8542fi
8543
8544   ;;
8545
8546  *)
8547    echo "$as_me:$LINENO: checking for shl_load" >&5
8548echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8549if test "${ac_cv_func_shl_load+set}" = set; then
8550  echo $ECHO_N "(cached) $ECHO_C" >&6
8551else
8552  cat >conftest.$ac_ext <<_ACEOF
8553/* confdefs.h.  */
8554_ACEOF
8555cat confdefs.h >>conftest.$ac_ext
8556cat >>conftest.$ac_ext <<_ACEOF
8557/* end confdefs.h.  */
8558/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8559   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8560#define shl_load innocuous_shl_load
8561
8562/* System header to define __stub macros and hopefully few prototypes,
8563    which can conflict with char shl_load (); below.
8564    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8565    <limits.h> exists even on freestanding compilers.  */
8566
8567#ifdef __STDC__
8568# include <limits.h>
8569#else
8570# include <assert.h>
8571#endif
8572
8573#undef shl_load
8574
8575/* Override any gcc2 internal prototype to avoid an error.  */
8576#ifdef __cplusplus
8577extern "C"
8578{
8579#endif
8580/* We use char because int might match the return type of a gcc2
8581   builtin and then its argument prototype would still apply.  */
8582char shl_load ();
8583/* The GNU C library defines this for functions which it implements
8584    to always fail with ENOSYS.  Some functions are actually named
8585    something starting with __ and the normal name is an alias.  */
8586#if defined (__stub_shl_load) || defined (__stub___shl_load)
8587choke me
8588#else
8589char (*f) () = shl_load;
8590#endif
8591#ifdef __cplusplus
8592}
8593#endif
8594
8595int
8596main ()
8597{
8598return f != shl_load;
8599  ;
8600  return 0;
8601}
8602_ACEOF
8603rm -f conftest.$ac_objext conftest$ac_exeext
8604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605  (eval $ac_link) 2>conftest.er1
8606  ac_status=$?
8607  grep -v '^ *+' conftest.er1 >conftest.err
8608  rm -f conftest.er1
8609  cat conftest.err >&5
8610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611  (exit $ac_status); } &&
8612	 { ac_try='test -z "$ac_c_werror_flag"
8613			 || test ! -s conftest.err'
8614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615  (eval $ac_try) 2>&5
8616  ac_status=$?
8617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618  (exit $ac_status); }; } &&
8619	 { ac_try='test -s conftest$ac_exeext'
8620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621  (eval $ac_try) 2>&5
8622  ac_status=$?
8623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624  (exit $ac_status); }; }; then
8625  ac_cv_func_shl_load=yes
8626else
8627  echo "$as_me: failed program was:" >&5
8628sed 's/^/| /' conftest.$ac_ext >&5
8629
8630ac_cv_func_shl_load=no
8631fi
8632rm -f conftest.err conftest.$ac_objext \
8633      conftest$ac_exeext conftest.$ac_ext
8634fi
8635echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8636echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8637if test $ac_cv_func_shl_load = yes; then
8638  lt_cv_dlopen="shl_load"
8639else
8640  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8641echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8642if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8643  echo $ECHO_N "(cached) $ECHO_C" >&6
8644else
8645  ac_check_lib_save_LIBS=$LIBS
8646LIBS="-ldld  $LIBS"
8647cat >conftest.$ac_ext <<_ACEOF
8648/* confdefs.h.  */
8649_ACEOF
8650cat confdefs.h >>conftest.$ac_ext
8651cat >>conftest.$ac_ext <<_ACEOF
8652/* end confdefs.h.  */
8653
8654/* Override any gcc2 internal prototype to avoid an error.  */
8655#ifdef __cplusplus
8656extern "C"
8657#endif
8658/* We use char because int might match the return type of a gcc2
8659   builtin and then its argument prototype would still apply.  */
8660char shl_load ();
8661int
8662main ()
8663{
8664shl_load ();
8665  ;
8666  return 0;
8667}
8668_ACEOF
8669rm -f conftest.$ac_objext conftest$ac_exeext
8670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8671  (eval $ac_link) 2>conftest.er1
8672  ac_status=$?
8673  grep -v '^ *+' conftest.er1 >conftest.err
8674  rm -f conftest.er1
8675  cat conftest.err >&5
8676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677  (exit $ac_status); } &&
8678	 { ac_try='test -z "$ac_c_werror_flag"
8679			 || test ! -s conftest.err'
8680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681  (eval $ac_try) 2>&5
8682  ac_status=$?
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); }; } &&
8685	 { ac_try='test -s conftest$ac_exeext'
8686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687  (eval $ac_try) 2>&5
8688  ac_status=$?
8689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690  (exit $ac_status); }; }; then
8691  ac_cv_lib_dld_shl_load=yes
8692else
8693  echo "$as_me: failed program was:" >&5
8694sed 's/^/| /' conftest.$ac_ext >&5
8695
8696ac_cv_lib_dld_shl_load=no
8697fi
8698rm -f conftest.err conftest.$ac_objext \
8699      conftest$ac_exeext conftest.$ac_ext
8700LIBS=$ac_check_lib_save_LIBS
8701fi
8702echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8703echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8704if test $ac_cv_lib_dld_shl_load = yes; then
8705  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8706else
8707  echo "$as_me:$LINENO: checking for dlopen" >&5
8708echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8709if test "${ac_cv_func_dlopen+set}" = set; then
8710  echo $ECHO_N "(cached) $ECHO_C" >&6
8711else
8712  cat >conftest.$ac_ext <<_ACEOF
8713/* confdefs.h.  */
8714_ACEOF
8715cat confdefs.h >>conftest.$ac_ext
8716cat >>conftest.$ac_ext <<_ACEOF
8717/* end confdefs.h.  */
8718/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8719   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8720#define dlopen innocuous_dlopen
8721
8722/* System header to define __stub macros and hopefully few prototypes,
8723    which can conflict with char dlopen (); below.
8724    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8725    <limits.h> exists even on freestanding compilers.  */
8726
8727#ifdef __STDC__
8728# include <limits.h>
8729#else
8730# include <assert.h>
8731#endif
8732
8733#undef dlopen
8734
8735/* Override any gcc2 internal prototype to avoid an error.  */
8736#ifdef __cplusplus
8737extern "C"
8738{
8739#endif
8740/* We use char because int might match the return type of a gcc2
8741   builtin and then its argument prototype would still apply.  */
8742char dlopen ();
8743/* The GNU C library defines this for functions which it implements
8744    to always fail with ENOSYS.  Some functions are actually named
8745    something starting with __ and the normal name is an alias.  */
8746#if defined (__stub_dlopen) || defined (__stub___dlopen)
8747choke me
8748#else
8749char (*f) () = dlopen;
8750#endif
8751#ifdef __cplusplus
8752}
8753#endif
8754
8755int
8756main ()
8757{
8758return f != dlopen;
8759  ;
8760  return 0;
8761}
8762_ACEOF
8763rm -f conftest.$ac_objext conftest$ac_exeext
8764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765  (eval $ac_link) 2>conftest.er1
8766  ac_status=$?
8767  grep -v '^ *+' conftest.er1 >conftest.err
8768  rm -f conftest.er1
8769  cat conftest.err >&5
8770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771  (exit $ac_status); } &&
8772	 { ac_try='test -z "$ac_c_werror_flag"
8773			 || test ! -s conftest.err'
8774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775  (eval $ac_try) 2>&5
8776  ac_status=$?
8777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778  (exit $ac_status); }; } &&
8779	 { ac_try='test -s conftest$ac_exeext'
8780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781  (eval $ac_try) 2>&5
8782  ac_status=$?
8783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784  (exit $ac_status); }; }; then
8785  ac_cv_func_dlopen=yes
8786else
8787  echo "$as_me: failed program was:" >&5
8788sed 's/^/| /' conftest.$ac_ext >&5
8789
8790ac_cv_func_dlopen=no
8791fi
8792rm -f conftest.err conftest.$ac_objext \
8793      conftest$ac_exeext conftest.$ac_ext
8794fi
8795echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8796echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8797if test $ac_cv_func_dlopen = yes; then
8798  lt_cv_dlopen="dlopen"
8799else
8800  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8801echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8802if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8803  echo $ECHO_N "(cached) $ECHO_C" >&6
8804else
8805  ac_check_lib_save_LIBS=$LIBS
8806LIBS="-ldl  $LIBS"
8807cat >conftest.$ac_ext <<_ACEOF
8808/* confdefs.h.  */
8809_ACEOF
8810cat confdefs.h >>conftest.$ac_ext
8811cat >>conftest.$ac_ext <<_ACEOF
8812/* end confdefs.h.  */
8813
8814/* Override any gcc2 internal prototype to avoid an error.  */
8815#ifdef __cplusplus
8816extern "C"
8817#endif
8818/* We use char because int might match the return type of a gcc2
8819   builtin and then its argument prototype would still apply.  */
8820char dlopen ();
8821int
8822main ()
8823{
8824dlopen ();
8825  ;
8826  return 0;
8827}
8828_ACEOF
8829rm -f conftest.$ac_objext conftest$ac_exeext
8830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831  (eval $ac_link) 2>conftest.er1
8832  ac_status=$?
8833  grep -v '^ *+' conftest.er1 >conftest.err
8834  rm -f conftest.er1
8835  cat conftest.err >&5
8836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837  (exit $ac_status); } &&
8838	 { ac_try='test -z "$ac_c_werror_flag"
8839			 || test ! -s conftest.err'
8840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841  (eval $ac_try) 2>&5
8842  ac_status=$?
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); }; } &&
8845	 { ac_try='test -s conftest$ac_exeext'
8846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847  (eval $ac_try) 2>&5
8848  ac_status=$?
8849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850  (exit $ac_status); }; }; then
8851  ac_cv_lib_dl_dlopen=yes
8852else
8853  echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
8856ac_cv_lib_dl_dlopen=no
8857fi
8858rm -f conftest.err conftest.$ac_objext \
8859      conftest$ac_exeext conftest.$ac_ext
8860LIBS=$ac_check_lib_save_LIBS
8861fi
8862echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8863echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8864if test $ac_cv_lib_dl_dlopen = yes; then
8865  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8866else
8867  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8868echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8869if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8870  echo $ECHO_N "(cached) $ECHO_C" >&6
8871else
8872  ac_check_lib_save_LIBS=$LIBS
8873LIBS="-lsvld  $LIBS"
8874cat >conftest.$ac_ext <<_ACEOF
8875/* confdefs.h.  */
8876_ACEOF
8877cat confdefs.h >>conftest.$ac_ext
8878cat >>conftest.$ac_ext <<_ACEOF
8879/* end confdefs.h.  */
8880
8881/* Override any gcc2 internal prototype to avoid an error.  */
8882#ifdef __cplusplus
8883extern "C"
8884#endif
8885/* We use char because int might match the return type of a gcc2
8886   builtin and then its argument prototype would still apply.  */
8887char dlopen ();
8888int
8889main ()
8890{
8891dlopen ();
8892  ;
8893  return 0;
8894}
8895_ACEOF
8896rm -f conftest.$ac_objext conftest$ac_exeext
8897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8898  (eval $ac_link) 2>conftest.er1
8899  ac_status=$?
8900  grep -v '^ *+' conftest.er1 >conftest.err
8901  rm -f conftest.er1
8902  cat conftest.err >&5
8903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904  (exit $ac_status); } &&
8905	 { ac_try='test -z "$ac_c_werror_flag"
8906			 || test ! -s conftest.err'
8907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908  (eval $ac_try) 2>&5
8909  ac_status=$?
8910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911  (exit $ac_status); }; } &&
8912	 { ac_try='test -s conftest$ac_exeext'
8913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914  (eval $ac_try) 2>&5
8915  ac_status=$?
8916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917  (exit $ac_status); }; }; then
8918  ac_cv_lib_svld_dlopen=yes
8919else
8920  echo "$as_me: failed program was:" >&5
8921sed 's/^/| /' conftest.$ac_ext >&5
8922
8923ac_cv_lib_svld_dlopen=no
8924fi
8925rm -f conftest.err conftest.$ac_objext \
8926      conftest$ac_exeext conftest.$ac_ext
8927LIBS=$ac_check_lib_save_LIBS
8928fi
8929echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8930echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8931if test $ac_cv_lib_svld_dlopen = yes; then
8932  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8933else
8934  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8935echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8936if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8937  echo $ECHO_N "(cached) $ECHO_C" >&6
8938else
8939  ac_check_lib_save_LIBS=$LIBS
8940LIBS="-ldld  $LIBS"
8941cat >conftest.$ac_ext <<_ACEOF
8942/* confdefs.h.  */
8943_ACEOF
8944cat confdefs.h >>conftest.$ac_ext
8945cat >>conftest.$ac_ext <<_ACEOF
8946/* end confdefs.h.  */
8947
8948/* Override any gcc2 internal prototype to avoid an error.  */
8949#ifdef __cplusplus
8950extern "C"
8951#endif
8952/* We use char because int might match the return type of a gcc2
8953   builtin and then its argument prototype would still apply.  */
8954char dld_link ();
8955int
8956main ()
8957{
8958dld_link ();
8959  ;
8960  return 0;
8961}
8962_ACEOF
8963rm -f conftest.$ac_objext conftest$ac_exeext
8964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965  (eval $ac_link) 2>conftest.er1
8966  ac_status=$?
8967  grep -v '^ *+' conftest.er1 >conftest.err
8968  rm -f conftest.er1
8969  cat conftest.err >&5
8970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971  (exit $ac_status); } &&
8972	 { ac_try='test -z "$ac_c_werror_flag"
8973			 || test ! -s conftest.err'
8974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975  (eval $ac_try) 2>&5
8976  ac_status=$?
8977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978  (exit $ac_status); }; } &&
8979	 { ac_try='test -s conftest$ac_exeext'
8980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981  (eval $ac_try) 2>&5
8982  ac_status=$?
8983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984  (exit $ac_status); }; }; then
8985  ac_cv_lib_dld_dld_link=yes
8986else
8987  echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
8990ac_cv_lib_dld_dld_link=no
8991fi
8992rm -f conftest.err conftest.$ac_objext \
8993      conftest$ac_exeext conftest.$ac_ext
8994LIBS=$ac_check_lib_save_LIBS
8995fi
8996echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8997echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8998if test $ac_cv_lib_dld_dld_link = yes; then
8999  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9000fi
9001
9002
9003fi
9004
9005
9006fi
9007
9008
9009fi
9010
9011
9012fi
9013
9014
9015fi
9016
9017    ;;
9018  esac
9019
9020  if test "x$lt_cv_dlopen" != xno; then
9021    enable_dlopen=yes
9022  else
9023    enable_dlopen=no
9024  fi
9025
9026  case $lt_cv_dlopen in
9027  dlopen)
9028    save_CPPFLAGS="$CPPFLAGS"
9029    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9030
9031    save_LDFLAGS="$LDFLAGS"
9032    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9033
9034    save_LIBS="$LIBS"
9035    LIBS="$lt_cv_dlopen_libs $LIBS"
9036
9037    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9038echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9039if test "${lt_cv_dlopen_self+set}" = set; then
9040  echo $ECHO_N "(cached) $ECHO_C" >&6
9041else
9042  	  if test "$cross_compiling" = yes; then :
9043  lt_cv_dlopen_self=cross
9044else
9045  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9046  lt_status=$lt_dlunknown
9047  cat > conftest.$ac_ext <<EOF
9048#line 9048 "configure"
9049#include "confdefs.h"
9050
9051#if HAVE_DLFCN_H
9052#include <dlfcn.h>
9053#endif
9054
9055#include <stdio.h>
9056
9057#ifdef RTLD_GLOBAL
9058#  define LT_DLGLOBAL		RTLD_GLOBAL
9059#else
9060#  ifdef DL_GLOBAL
9061#    define LT_DLGLOBAL		DL_GLOBAL
9062#  else
9063#    define LT_DLGLOBAL		0
9064#  endif
9065#endif
9066
9067/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9068   find out it does not work in some platform. */
9069#ifndef LT_DLLAZY_OR_NOW
9070#  ifdef RTLD_LAZY
9071#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9072#  else
9073#    ifdef DL_LAZY
9074#      define LT_DLLAZY_OR_NOW		DL_LAZY
9075#    else
9076#      ifdef RTLD_NOW
9077#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9078#      else
9079#        ifdef DL_NOW
9080#          define LT_DLLAZY_OR_NOW	DL_NOW
9081#        else
9082#          define LT_DLLAZY_OR_NOW	0
9083#        endif
9084#      endif
9085#    endif
9086#  endif
9087#endif
9088
9089#ifdef __cplusplus
9090extern "C" void exit (int);
9091#endif
9092
9093void fnord() { int i=42;}
9094int main ()
9095{
9096  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9097  int status = $lt_dlunknown;
9098
9099  if (self)
9100    {
9101      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9102      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9103      /* dlclose (self); */
9104    }
9105
9106    exit (status);
9107}
9108EOF
9109  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110  (eval $ac_link) 2>&5
9111  ac_status=$?
9112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9114    (./conftest; exit; ) >&5 2>/dev/null
9115    lt_status=$?
9116    case x$lt_status in
9117      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9118      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9119      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9120    esac
9121  else :
9122    # compilation failed
9123    lt_cv_dlopen_self=no
9124  fi
9125fi
9126rm -fr conftest*
9127
9128
9129fi
9130echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9131echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9132
9133    if test "x$lt_cv_dlopen_self" = xyes; then
9134      LDFLAGS="$LDFLAGS $link_static_flag"
9135      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9136echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9137if test "${lt_cv_dlopen_self_static+set}" = set; then
9138  echo $ECHO_N "(cached) $ECHO_C" >&6
9139else
9140  	  if test "$cross_compiling" = yes; then :
9141  lt_cv_dlopen_self_static=cross
9142else
9143  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9144  lt_status=$lt_dlunknown
9145  cat > conftest.$ac_ext <<EOF
9146#line 9146 "configure"
9147#include "confdefs.h"
9148
9149#if HAVE_DLFCN_H
9150#include <dlfcn.h>
9151#endif
9152
9153#include <stdio.h>
9154
9155#ifdef RTLD_GLOBAL
9156#  define LT_DLGLOBAL		RTLD_GLOBAL
9157#else
9158#  ifdef DL_GLOBAL
9159#    define LT_DLGLOBAL		DL_GLOBAL
9160#  else
9161#    define LT_DLGLOBAL		0
9162#  endif
9163#endif
9164
9165/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9166   find out it does not work in some platform. */
9167#ifndef LT_DLLAZY_OR_NOW
9168#  ifdef RTLD_LAZY
9169#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9170#  else
9171#    ifdef DL_LAZY
9172#      define LT_DLLAZY_OR_NOW		DL_LAZY
9173#    else
9174#      ifdef RTLD_NOW
9175#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9176#      else
9177#        ifdef DL_NOW
9178#          define LT_DLLAZY_OR_NOW	DL_NOW
9179#        else
9180#          define LT_DLLAZY_OR_NOW	0
9181#        endif
9182#      endif
9183#    endif
9184#  endif
9185#endif
9186
9187#ifdef __cplusplus
9188extern "C" void exit (int);
9189#endif
9190
9191void fnord() { int i=42;}
9192int main ()
9193{
9194  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9195  int status = $lt_dlunknown;
9196
9197  if (self)
9198    {
9199      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9200      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9201      /* dlclose (self); */
9202    }
9203
9204    exit (status);
9205}
9206EOF
9207  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208  (eval $ac_link) 2>&5
9209  ac_status=$?
9210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9212    (./conftest; exit; ) >&5 2>/dev/null
9213    lt_status=$?
9214    case x$lt_status in
9215      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9216      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9217      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9218    esac
9219  else :
9220    # compilation failed
9221    lt_cv_dlopen_self_static=no
9222  fi
9223fi
9224rm -fr conftest*
9225
9226
9227fi
9228echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9229echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9230    fi
9231
9232    CPPFLAGS="$save_CPPFLAGS"
9233    LDFLAGS="$save_LDFLAGS"
9234    LIBS="$save_LIBS"
9235    ;;
9236  esac
9237
9238  case $lt_cv_dlopen_self in
9239  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9240  *) enable_dlopen_self=unknown ;;
9241  esac
9242
9243  case $lt_cv_dlopen_self_static in
9244  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9245  *) enable_dlopen_self_static=unknown ;;
9246  esac
9247fi
9248
9249
9250# Report which librarie types wil actually be built
9251echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9252echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9253echo "$as_me:$LINENO: result: $can_build_shared" >&5
9254echo "${ECHO_T}$can_build_shared" >&6
9255
9256echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9257echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9258test "$can_build_shared" = "no" && enable_shared=no
9259
9260# On AIX, shared libraries and static libraries use the same namespace, and
9261# are all built from PIC.
9262case $host_os in
9263aix3*)
9264  test "$enable_shared" = yes && enable_static=no
9265  if test -n "$RANLIB"; then
9266    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9267    postinstall_cmds='$RANLIB $lib'
9268  fi
9269  ;;
9270
9271aix4* | aix5*)
9272  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9273    test "$enable_shared" = yes && enable_static=no
9274  fi
9275    ;;
9276esac
9277echo "$as_me:$LINENO: result: $enable_shared" >&5
9278echo "${ECHO_T}$enable_shared" >&6
9279
9280echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9281echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9282# Make sure either enable_shared or enable_static is yes.
9283test "$enable_shared" = yes || enable_static=yes
9284echo "$as_me:$LINENO: result: $enable_static" >&5
9285echo "${ECHO_T}$enable_static" >&6
9286
9287# The else clause should only fire when bootstrapping the
9288# libtool distribution, otherwise you forgot to ship ltmain.sh
9289# with your package, and you will get complaints that there are
9290# no rules to generate ltmain.sh.
9291if test -f "$ltmain"; then
9292  # See if we are running on zsh, and set the options which allow our commands through
9293  # without removal of \ escapes.
9294  if test -n "${ZSH_VERSION+set}" ; then
9295    setopt NO_GLOB_SUBST
9296  fi
9297  # Now quote all the things that may contain metacharacters while being
9298  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9299  # variables and quote the copies for generation of the libtool script.
9300  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9301    SED SHELL STRIP \
9302    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9303    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9304    deplibs_check_method reload_flag reload_cmds need_locks \
9305    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9306    lt_cv_sys_global_symbol_to_c_name_address \
9307    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9308    old_postinstall_cmds old_postuninstall_cmds \
9309    compiler \
9310    CC \
9311    LD \
9312    lt_prog_compiler_wl \
9313    lt_prog_compiler_pic \
9314    lt_prog_compiler_static \
9315    lt_prog_compiler_no_builtin_flag \
9316    export_dynamic_flag_spec \
9317    thread_safe_flag_spec \
9318    whole_archive_flag_spec \
9319    enable_shared_with_static_runtimes \
9320    old_archive_cmds \
9321    old_archive_from_new_cmds \
9322    predep_objects \
9323    postdep_objects \
9324    predeps \
9325    postdeps \
9326    compiler_lib_search_path \
9327    archive_cmds \
9328    archive_expsym_cmds \
9329    postinstall_cmds \
9330    postuninstall_cmds \
9331    old_archive_from_expsyms_cmds \
9332    allow_undefined_flag \
9333    no_undefined_flag \
9334    export_symbols_cmds \
9335    hardcode_libdir_flag_spec \
9336    hardcode_libdir_flag_spec_ld \
9337    hardcode_libdir_separator \
9338    hardcode_automatic \
9339    module_cmds \
9340    module_expsym_cmds \
9341    lt_cv_prog_compiler_c_o \
9342    exclude_expsyms \
9343    include_expsyms; do
9344
9345    case $var in
9346    old_archive_cmds | \
9347    old_archive_from_new_cmds | \
9348    archive_cmds | \
9349    archive_expsym_cmds | \
9350    module_cmds | \
9351    module_expsym_cmds | \
9352    old_archive_from_expsyms_cmds | \
9353    export_symbols_cmds | \
9354    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9355    postinstall_cmds | postuninstall_cmds | \
9356    old_postinstall_cmds | old_postuninstall_cmds | \
9357    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9358      # Double-quote double-evaled strings.
9359      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9360      ;;
9361    *)
9362      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9363      ;;
9364    esac
9365  done
9366
9367  case $lt_echo in
9368  *'\$0 --fallback-echo"')
9369    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9370    ;;
9371  esac
9372
9373cfgfile="${ofile}T"
9374  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9375  $rm -f "$cfgfile"
9376  { echo "$as_me:$LINENO: creating $ofile" >&5
9377echo "$as_me: creating $ofile" >&6;}
9378
9379  cat <<__EOF__ >> "$cfgfile"
9380#! $SHELL
9381
9382# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9383# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9384# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9385#
9386# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9387# Free Software Foundation, Inc.
9388#
9389# This file is part of GNU Libtool:
9390# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9391#
9392# This program is free software; you can redistribute it and/or modify
9393# it under the terms of the GNU General Public License as published by
9394# the Free Software Foundation; either version 2 of the License, or
9395# (at your option) any later version.
9396#
9397# This program is distributed in the hope that it will be useful, but
9398# WITHOUT ANY WARRANTY; without even the implied warranty of
9399# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9400# General Public License for more details.
9401#
9402# You should have received a copy of the GNU General Public License
9403# along with this program; if not, write to the Free Software
9404# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9405#
9406# As a special exception to the GNU General Public License, if you
9407# distribute this file as part of a program that contains a
9408# configuration script generated by Autoconf, you may include it under
9409# the same distribution terms that you use for the rest of that program.
9410
9411# A sed program that does not truncate output.
9412SED=$lt_SED
9413
9414# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9415Xsed="$SED -e 1s/^X//"
9416
9417# The HP-UX ksh and POSIX shell print the target directory to stdout
9418# if CDPATH is set.
9419(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9420
9421# The names of the tagged configurations supported by this script.
9422available_tags=
9423
9424# ### BEGIN LIBTOOL CONFIG
9425
9426# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9427
9428# Shell to use when invoking shell scripts.
9429SHELL=$lt_SHELL
9430
9431# Whether or not to build shared libraries.
9432build_libtool_libs=$enable_shared
9433
9434# Whether or not to build static libraries.
9435build_old_libs=$enable_static
9436
9437# Whether or not to add -lc for building shared libraries.
9438build_libtool_need_lc=$archive_cmds_need_lc
9439
9440# Whether or not to disallow shared libs when runtime libs are static
9441allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9442
9443# Whether or not to optimize for fast installation.
9444fast_install=$enable_fast_install
9445
9446# The host system.
9447host_alias=$host_alias
9448host=$host
9449host_os=$host_os
9450
9451# The build system.
9452build_alias=$build_alias
9453build=$build
9454build_os=$build_os
9455
9456# An echo program that does not interpret backslashes.
9457echo=$lt_echo
9458
9459# The archiver.
9460AR=$lt_AR
9461AR_FLAGS=$lt_AR_FLAGS
9462
9463# A C compiler.
9464LTCC=$lt_LTCC
9465
9466# A language-specific compiler.
9467CC=$lt_compiler
9468
9469# Is the compiler the GNU C compiler?
9470with_gcc=$GCC
9471
9472# An ERE matcher.
9473EGREP=$lt_EGREP
9474
9475# The linker used to build libraries.
9476LD=$lt_LD
9477
9478# Whether we need hard or soft links.
9479LN_S=$lt_LN_S
9480
9481# A BSD-compatible nm program.
9482NM=$lt_NM
9483
9484# A symbol stripping program
9485STRIP=$lt_STRIP
9486
9487# Used to examine libraries when file_magic_cmd begins "file"
9488MAGIC_CMD=$MAGIC_CMD
9489
9490# Used on cygwin: DLL creation program.
9491DLLTOOL="$DLLTOOL"
9492
9493# Used on cygwin: object dumper.
9494OBJDUMP="$OBJDUMP"
9495
9496# Used on cygwin: assembler.
9497AS="$AS"
9498
9499# The name of the directory that contains temporary libtool files.
9500objdir=$objdir
9501
9502# How to create reloadable object files.
9503reload_flag=$lt_reload_flag
9504reload_cmds=$lt_reload_cmds
9505
9506# How to pass a linker flag through the compiler.
9507wl=$lt_lt_prog_compiler_wl
9508
9509# Object file suffix (normally "o").
9510objext="$ac_objext"
9511
9512# Old archive suffix (normally "a").
9513libext="$libext"
9514
9515# Shared library suffix (normally ".so").
9516shrext_cmds='$shrext_cmds'
9517
9518# Executable file suffix (normally "").
9519exeext="$exeext"
9520
9521# Additional compiler flags for building library objects.
9522pic_flag=$lt_lt_prog_compiler_pic
9523pic_mode=$pic_mode
9524
9525# What is the maximum length of a command?
9526max_cmd_len=$lt_cv_sys_max_cmd_len
9527
9528# Does compiler simultaneously support -c and -o options?
9529compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9530
9531# Must we lock files when doing compilation?
9532need_locks=$lt_need_locks
9533
9534# Do we need the lib prefix for modules?
9535need_lib_prefix=$need_lib_prefix
9536
9537# Do we need a version for libraries?
9538need_version=$need_version
9539
9540# Whether dlopen is supported.
9541dlopen_support=$enable_dlopen
9542
9543# Whether dlopen of programs is supported.
9544dlopen_self=$enable_dlopen_self
9545
9546# Whether dlopen of statically linked programs is supported.
9547dlopen_self_static=$enable_dlopen_self_static
9548
9549# Compiler flag to prevent dynamic linking.
9550link_static_flag=$lt_lt_prog_compiler_static
9551
9552# Compiler flag to turn off builtin functions.
9553no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9554
9555# Compiler flag to allow reflexive dlopens.
9556export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9557
9558# Compiler flag to generate shared objects directly from archives.
9559whole_archive_flag_spec=$lt_whole_archive_flag_spec
9560
9561# Compiler flag to generate thread-safe objects.
9562thread_safe_flag_spec=$lt_thread_safe_flag_spec
9563
9564# Library versioning type.
9565version_type=$version_type
9566
9567# Format of library name prefix.
9568libname_spec=$lt_libname_spec
9569
9570# List of archive names.  First name is the real one, the rest are links.
9571# The last name is the one that the linker finds with -lNAME.
9572library_names_spec=$lt_library_names_spec
9573
9574# The coded name of the library, if different from the real name.
9575soname_spec=$lt_soname_spec
9576
9577# Commands used to build and install an old-style archive.
9578RANLIB=$lt_RANLIB
9579old_archive_cmds=$lt_old_archive_cmds
9580old_postinstall_cmds=$lt_old_postinstall_cmds
9581old_postuninstall_cmds=$lt_old_postuninstall_cmds
9582
9583# Create an old-style archive from a shared archive.
9584old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9585
9586# Create a temporary old-style archive to link instead of a shared archive.
9587old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9588
9589# Commands used to build and install a shared archive.
9590archive_cmds=$lt_archive_cmds
9591archive_expsym_cmds=$lt_archive_expsym_cmds
9592postinstall_cmds=$lt_postinstall_cmds
9593postuninstall_cmds=$lt_postuninstall_cmds
9594
9595# Commands used to build a loadable module (assumed same as above if empty)
9596module_cmds=$lt_module_cmds
9597module_expsym_cmds=$lt_module_expsym_cmds
9598
9599# Commands to strip libraries.
9600old_striplib=$lt_old_striplib
9601striplib=$lt_striplib
9602
9603# Dependencies to place before the objects being linked to create a
9604# shared library.
9605predep_objects=$lt_predep_objects
9606
9607# Dependencies to place after the objects being linked to create a
9608# shared library.
9609postdep_objects=$lt_postdep_objects
9610
9611# Dependencies to place before the objects being linked to create a
9612# shared library.
9613predeps=$lt_predeps
9614
9615# Dependencies to place after the objects being linked to create a
9616# shared library.
9617postdeps=$lt_postdeps
9618
9619# The library search path used internally by the compiler when linking
9620# a shared library.
9621compiler_lib_search_path=$lt_compiler_lib_search_path
9622
9623# Method to check whether dependent libraries are shared objects.
9624deplibs_check_method=$lt_deplibs_check_method
9625
9626# Command to use when deplibs_check_method == file_magic.
9627file_magic_cmd=$lt_file_magic_cmd
9628
9629# Flag that allows shared libraries with undefined symbols to be built.
9630allow_undefined_flag=$lt_allow_undefined_flag
9631
9632# Flag that forces no undefined symbols.
9633no_undefined_flag=$lt_no_undefined_flag
9634
9635# Commands used to finish a libtool library installation in a directory.
9636finish_cmds=$lt_finish_cmds
9637
9638# Same as above, but a single script fragment to be evaled but not shown.
9639finish_eval=$lt_finish_eval
9640
9641# Take the output of nm and produce a listing of raw symbols and C names.
9642global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9643
9644# Transform the output of nm in a proper C declaration
9645global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9646
9647# Transform the output of nm in a C name address pair
9648global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9649
9650# This is the shared library runtime path variable.
9651runpath_var=$runpath_var
9652
9653# This is the shared library path variable.
9654shlibpath_var=$shlibpath_var
9655
9656# Is shlibpath searched before the hard-coded library search path?
9657shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9658
9659# How to hardcode a shared library path into an executable.
9660hardcode_action=$hardcode_action
9661
9662# Whether we should hardcode library paths into libraries.
9663hardcode_into_libs=$hardcode_into_libs
9664
9665# Flag to hardcode \$libdir into a binary during linking.
9666# This must work even if \$libdir does not exist.
9667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9668
9669# If ld is used when linking, flag to hardcode \$libdir into
9670# a binary during linking. This must work even if \$libdir does
9671# not exist.
9672hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9673
9674# Whether we need a single -rpath flag with a separated argument.
9675hardcode_libdir_separator=$lt_hardcode_libdir_separator
9676
9677# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9678# resulting binary.
9679hardcode_direct=$hardcode_direct
9680
9681# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9682# resulting binary.
9683hardcode_minus_L=$hardcode_minus_L
9684
9685# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9686# the resulting binary.
9687hardcode_shlibpath_var=$hardcode_shlibpath_var
9688
9689# Set to yes if building a shared library automatically hardcodes DIR into the library
9690# and all subsequent libraries and executables linked against it.
9691hardcode_automatic=$hardcode_automatic
9692
9693# Variables whose values should be saved in libtool wrapper scripts and
9694# restored at relink time.
9695variables_saved_for_relink="$variables_saved_for_relink"
9696
9697# Whether libtool must link a program against all its dependency libraries.
9698link_all_deplibs=$link_all_deplibs
9699
9700# Compile-time system search path for libraries
9701sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9702
9703# Run-time system search path for libraries
9704sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9705
9706# Fix the shell variable \$srcfile for the compiler.
9707fix_srcfile_path="$fix_srcfile_path"
9708
9709# Set to yes if exported symbols are required.
9710always_export_symbols=$always_export_symbols
9711
9712# The commands to list exported symbols.
9713export_symbols_cmds=$lt_export_symbols_cmds
9714
9715# The commands to extract the exported symbol list from a shared archive.
9716extract_expsyms_cmds=$lt_extract_expsyms_cmds
9717
9718# Symbols that should not be listed in the preloaded symbols.
9719exclude_expsyms=$lt_exclude_expsyms
9720
9721# Symbols that must always be exported.
9722include_expsyms=$lt_include_expsyms
9723
9724# ### END LIBTOOL CONFIG
9725
9726__EOF__
9727
9728
9729  case $host_os in
9730  aix3*)
9731    cat <<\EOF >> "$cfgfile"
9732
9733# AIX sometimes has problems with the GCC collect2 program.  For some
9734# reason, if we set the COLLECT_NAMES environment variable, the problems
9735# vanish in a puff of smoke.
9736if test "X${COLLECT_NAMES+set}" != Xset; then
9737  COLLECT_NAMES=
9738  export COLLECT_NAMES
9739fi
9740EOF
9741    ;;
9742  esac
9743
9744  # We use sed instead of cat because bash on DJGPP gets confused if
9745  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9746  # text mode, it properly converts lines to CR/LF.  This bash problem
9747  # is reportedly fixed, but why not run on old versions too?
9748  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9749
9750  mv -f "$cfgfile" "$ofile" || \
9751    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9752  chmod +x "$ofile"
9753
9754else
9755  # If there is no Makefile yet, we rely on a make rule to execute
9756  # `config.status --recheck' to rerun these tests and create the
9757  # libtool script then.
9758  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9759  if test -f "$ltmain_in"; then
9760    test -f Makefile && make "$ltmain"
9761  fi
9762fi
9763
9764
9765ac_ext=c
9766ac_cpp='$CPP $CPPFLAGS'
9767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9769ac_compiler_gnu=$ac_cv_c_compiler_gnu
9770
9771CC="$lt_save_CC"
9772
9773
9774# Check whether --with-tags or --without-tags was given.
9775if test "${with_tags+set}" = set; then
9776  withval="$with_tags"
9777  tagnames="$withval"
9778fi;
9779
9780if test -f "$ltmain" && test -n "$tagnames"; then
9781  if test ! -f "${ofile}"; then
9782    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9783echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9784  fi
9785
9786  if test -z "$LTCC"; then
9787    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9788    if test -z "$LTCC"; then
9789      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9790echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9791    else
9792      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9793echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9794    fi
9795  fi
9796
9797  # Extract list of available tagged configurations in $ofile.
9798  # Note that this assumes the entire list is on one line.
9799  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9800
9801  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9802  for tagname in $tagnames; do
9803    IFS="$lt_save_ifs"
9804    # Check whether tagname contains only valid characters
9805    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9806    "") ;;
9807    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9808echo "$as_me: error: invalid tag name: $tagname" >&2;}
9809   { (exit 1); exit 1; }; }
9810	;;
9811    esac
9812
9813    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9814    then
9815      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9816echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9817   { (exit 1); exit 1; }; }
9818    fi
9819
9820    # Update the list of available tags.
9821    if test -n "$tagname"; then
9822      echo appending configuration tag \"$tagname\" to $ofile
9823
9824      case $tagname in
9825      CXX)
9826	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9827	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9828	    (test "X$CXX" != "Xg++"))) ; then
9829	  ac_ext=cc
9830ac_cpp='$CXXCPP $CPPFLAGS'
9831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9834
9835
9836
9837
9838archive_cmds_need_lc_CXX=no
9839allow_undefined_flag_CXX=
9840always_export_symbols_CXX=no
9841archive_expsym_cmds_CXX=
9842export_dynamic_flag_spec_CXX=
9843hardcode_direct_CXX=no
9844hardcode_libdir_flag_spec_CXX=
9845hardcode_libdir_flag_spec_ld_CXX=
9846hardcode_libdir_separator_CXX=
9847hardcode_minus_L_CXX=no
9848hardcode_automatic_CXX=no
9849module_cmds_CXX=
9850module_expsym_cmds_CXX=
9851link_all_deplibs_CXX=unknown
9852old_archive_cmds_CXX=$old_archive_cmds
9853no_undefined_flag_CXX=
9854whole_archive_flag_spec_CXX=
9855enable_shared_with_static_runtimes_CXX=no
9856
9857# Dependencies to place before and after the object being linked:
9858predep_objects_CXX=
9859postdep_objects_CXX=
9860predeps_CXX=
9861postdeps_CXX=
9862compiler_lib_search_path_CXX=
9863
9864# Source file extension for C++ test sources.
9865ac_ext=cpp
9866
9867# Object file extension for compiled C++ test sources.
9868objext=o
9869objext_CXX=$objext
9870
9871# Code to be used in simple compile tests
9872lt_simple_compile_test_code="int some_variable = 0;\n"
9873
9874# Code to be used in simple link tests
9875lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9876
9877# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9878
9879# If no C compiler was specified, use CC.
9880LTCC=${LTCC-"$CC"}
9881
9882# Allow CC to be a program name with arguments.
9883compiler=$CC
9884
9885
9886# save warnings/boilerplate of simple test code
9887ac_outfile=conftest.$ac_objext
9888printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9889eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9890_lt_compiler_boilerplate=`cat conftest.err`
9891$rm conftest*
9892
9893ac_outfile=conftest.$ac_objext
9894printf "$lt_simple_link_test_code" >conftest.$ac_ext
9895eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9896_lt_linker_boilerplate=`cat conftest.err`
9897$rm conftest*
9898
9899
9900# Allow CC to be a program name with arguments.
9901lt_save_CC=$CC
9902lt_save_LD=$LD
9903lt_save_GCC=$GCC
9904GCC=$GXX
9905lt_save_with_gnu_ld=$with_gnu_ld
9906lt_save_path_LD=$lt_cv_path_LD
9907if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9908  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9909else
9910  unset lt_cv_prog_gnu_ld
9911fi
9912if test -n "${lt_cv_path_LDCXX+set}"; then
9913  lt_cv_path_LD=$lt_cv_path_LDCXX
9914else
9915  unset lt_cv_path_LD
9916fi
9917test -z "${LDCXX+set}" || LD=$LDCXX
9918CC=${CXX-"c++"}
9919compiler=$CC
9920compiler_CXX=$CC
9921for cc_temp in $compiler""; do
9922  case $cc_temp in
9923    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9924    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9925    \-*) ;;
9926    *) break;;
9927  esac
9928done
9929cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9930
9931
9932# We don't want -fno-exception wen compiling C++ code, so set the
9933# no_builtin_flag separately
9934if test "$GXX" = yes; then
9935  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9936else
9937  lt_prog_compiler_no_builtin_flag_CXX=
9938fi
9939
9940if test "$GXX" = yes; then
9941  # Set up default GNU C++ configuration
9942
9943
9944# Check whether --with-gnu-ld or --without-gnu-ld was given.
9945if test "${with_gnu_ld+set}" = set; then
9946  withval="$with_gnu_ld"
9947  test "$withval" = no || with_gnu_ld=yes
9948else
9949  with_gnu_ld=no
9950fi;
9951ac_prog=ld
9952if test "$GCC" = yes; then
9953  # Check if gcc -print-prog-name=ld gives a path.
9954  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9955echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9956  case $host in
9957  *-*-mingw*)
9958    # gcc leaves a trailing carriage return which upsets mingw
9959    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9960  *)
9961    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9962  esac
9963  case $ac_prog in
9964    # Accept absolute paths.
9965    [\\/]* | ?:[\\/]*)
9966      re_direlt='/[^/][^/]*/\.\./'
9967      # Canonicalize the pathname of ld
9968      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9969      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9970	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9971      done
9972      test -z "$LD" && LD="$ac_prog"
9973      ;;
9974  "")
9975    # If it fails, then pretend we aren't using GCC.
9976    ac_prog=ld
9977    ;;
9978  *)
9979    # If it is relative, then search for the first ld in PATH.
9980    with_gnu_ld=unknown
9981    ;;
9982  esac
9983elif test "$with_gnu_ld" = yes; then
9984  echo "$as_me:$LINENO: checking for GNU ld" >&5
9985echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9986else
9987  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9988echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9989fi
9990if test "${lt_cv_path_LD+set}" = set; then
9991  echo $ECHO_N "(cached) $ECHO_C" >&6
9992else
9993  if test -z "$LD"; then
9994  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9995  for ac_dir in $PATH; do
9996    IFS="$lt_save_ifs"
9997    test -z "$ac_dir" && ac_dir=.
9998    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9999      lt_cv_path_LD="$ac_dir/$ac_prog"
10000      # Check to see if the program is GNU ld.  I'd rather use --version,
10001      # but apparently some variants of GNU ld only accept -v.
10002      # Break only if it was the GNU/non-GNU ld that we prefer.
10003      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10004      *GNU* | *'with BFD'*)
10005	test "$with_gnu_ld" != no && break
10006	;;
10007      *)
10008	test "$with_gnu_ld" != yes && break
10009	;;
10010      esac
10011    fi
10012  done
10013  IFS="$lt_save_ifs"
10014else
10015  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10016fi
10017fi
10018
10019LD="$lt_cv_path_LD"
10020if test -n "$LD"; then
10021  echo "$as_me:$LINENO: result: $LD" >&5
10022echo "${ECHO_T}$LD" >&6
10023else
10024  echo "$as_me:$LINENO: result: no" >&5
10025echo "${ECHO_T}no" >&6
10026fi
10027test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10028echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10029   { (exit 1); exit 1; }; }
10030echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10031echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10032if test "${lt_cv_prog_gnu_ld+set}" = set; then
10033  echo $ECHO_N "(cached) $ECHO_C" >&6
10034else
10035  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10036case `$LD -v 2>&1 </dev/null` in
10037*GNU* | *'with BFD'*)
10038  lt_cv_prog_gnu_ld=yes
10039  ;;
10040*)
10041  lt_cv_prog_gnu_ld=no
10042  ;;
10043esac
10044fi
10045echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10046echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10047with_gnu_ld=$lt_cv_prog_gnu_ld
10048
10049
10050
10051  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10052  # archiving commands below assume that GNU ld is being used.
10053  if test "$with_gnu_ld" = yes; then
10054    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10055    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'
10056
10057    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10058    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10059
10060    # If archive_cmds runs LD, not CC, wlarc should be empty
10061    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10062    #     investigate it a little bit more. (MM)
10063    wlarc='${wl}'
10064
10065    # ancient GNU ld didn't support --whole-archive et. al.
10066    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10067	grep 'no-whole-archive' > /dev/null; then
10068      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10069    else
10070      whole_archive_flag_spec_CXX=
10071    fi
10072  else
10073    with_gnu_ld=no
10074    wlarc=
10075
10076    # A generic and very simple default shared library creation
10077    # command for GNU C++ for the case where it uses the native
10078    # linker, instead of GNU ld.  If possible, this setting should
10079    # overridden to take advantage of the native linker features on
10080    # the platform it is being used on.
10081    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10082  fi
10083
10084  # Commands to make compiler produce verbose output that lists
10085  # what "hidden" libraries, object files and flags are used when
10086  # linking a shared library.
10087  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10088
10089else
10090  GXX=no
10091  with_gnu_ld=no
10092  wlarc=
10093fi
10094
10095# PORTME: fill in a description of your system's C++ link characteristics
10096echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10097echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10098ld_shlibs_CXX=yes
10099case $host_os in
10100  aix3*)
10101    # FIXME: insert proper C++ library support
10102    ld_shlibs_CXX=no
10103    ;;
10104  aix4* | aix5*)
10105    if test "$host_cpu" = ia64; then
10106      # On IA64, the linker does run time linking by default, so we don't
10107      # have to do anything special.
10108      aix_use_runtimelinking=no
10109      exp_sym_flag='-Bexport'
10110      no_entry_flag=""
10111    else
10112      aix_use_runtimelinking=no
10113
10114      # Test if we are trying to use run time linking or normal
10115      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10116      # need to do runtime linking.
10117      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10118	for ld_flag in $LDFLAGS; do
10119	  case $ld_flag in
10120	  *-brtl*)
10121	    aix_use_runtimelinking=yes
10122	    break
10123	    ;;
10124	  esac
10125	done
10126      esac
10127
10128      exp_sym_flag='-bexport'
10129      no_entry_flag='-bnoentry'
10130    fi
10131
10132    # When large executables or shared objects are built, AIX ld can
10133    # have problems creating the table of contents.  If linking a library
10134    # or program results in "error TOC overflow" add -mminimal-toc to
10135    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10136    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10137
10138    archive_cmds_CXX=''
10139    hardcode_direct_CXX=yes
10140    hardcode_libdir_separator_CXX=':'
10141    link_all_deplibs_CXX=yes
10142
10143    if test "$GXX" = yes; then
10144      case $host_os in aix4.[012]|aix4.[012].*)
10145      # We only want to do this on AIX 4.2 and lower, the check
10146      # below for broken collect2 doesn't work under 4.3+
10147	collect2name=`${CC} -print-prog-name=collect2`
10148	if test -f "$collect2name" && \
10149	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10150	then
10151	  # We have reworked collect2
10152	  hardcode_direct_CXX=yes
10153	else
10154	  # We have old collect2
10155	  hardcode_direct_CXX=unsupported
10156	  # It fails to find uninstalled libraries when the uninstalled
10157	  # path is not listed in the libpath.  Setting hardcode_minus_L
10158	  # to unsupported forces relinking
10159	  hardcode_minus_L_CXX=yes
10160	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10161	  hardcode_libdir_separator_CXX=
10162	fi
10163      esac
10164      shared_flag='-shared'
10165      if test "$aix_use_runtimelinking" = yes; then
10166	shared_flag="$shared_flag "'${wl}-G'
10167      fi
10168    else
10169      # not using gcc
10170      if test "$host_cpu" = ia64; then
10171	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10172	# chokes on -Wl,-G. The following line is correct:
10173	shared_flag='-G'
10174      else
10175	if test "$aix_use_runtimelinking" = yes; then
10176	  shared_flag='${wl}-G'
10177	else
10178	  shared_flag='${wl}-bM:SRE'
10179	fi
10180      fi
10181    fi
10182
10183    # It seems that -bexpall does not export symbols beginning with
10184    # underscore (_), so it is better to generate a list of symbols to export.
10185    always_export_symbols_CXX=yes
10186    if test "$aix_use_runtimelinking" = yes; then
10187      # Warning - without using the other runtime loading flags (-brtl),
10188      # -berok will link without error, but may produce a broken library.
10189      allow_undefined_flag_CXX='-berok'
10190      # Determine the default libpath from the value encoded in an empty executable.
10191      cat >conftest.$ac_ext <<_ACEOF
10192/* confdefs.h.  */
10193_ACEOF
10194cat confdefs.h >>conftest.$ac_ext
10195cat >>conftest.$ac_ext <<_ACEOF
10196/* end confdefs.h.  */
10197
10198int
10199main ()
10200{
10201
10202  ;
10203  return 0;
10204}
10205_ACEOF
10206rm -f conftest.$ac_objext conftest$ac_exeext
10207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10208  (eval $ac_link) 2>conftest.er1
10209  ac_status=$?
10210  grep -v '^ *+' conftest.er1 >conftest.err
10211  rm -f conftest.er1
10212  cat conftest.err >&5
10213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214  (exit $ac_status); } &&
10215	 { ac_try='test -z "$ac_cxx_werror_flag"
10216			 || test ! -s conftest.err'
10217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218  (eval $ac_try) 2>&5
10219  ac_status=$?
10220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221  (exit $ac_status); }; } &&
10222	 { ac_try='test -s conftest$ac_exeext'
10223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224  (eval $ac_try) 2>&5
10225  ac_status=$?
10226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227  (exit $ac_status); }; }; then
10228
10229aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10230}'`
10231# Check for a 64-bit object if we didn't find anything.
10232if 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; }
10233}'`; fi
10234else
10235  echo "$as_me: failed program was:" >&5
10236sed 's/^/| /' conftest.$ac_ext >&5
10237
10238fi
10239rm -f conftest.err conftest.$ac_objext \
10240      conftest$ac_exeext conftest.$ac_ext
10241if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10242
10243      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10244
10245      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10246     else
10247      if test "$host_cpu" = ia64; then
10248	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10249	allow_undefined_flag_CXX="-z nodefs"
10250	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10251      else
10252	# Determine the default libpath from the value encoded in an empty executable.
10253	cat >conftest.$ac_ext <<_ACEOF
10254/* confdefs.h.  */
10255_ACEOF
10256cat confdefs.h >>conftest.$ac_ext
10257cat >>conftest.$ac_ext <<_ACEOF
10258/* end confdefs.h.  */
10259
10260int
10261main ()
10262{
10263
10264  ;
10265  return 0;
10266}
10267_ACEOF
10268rm -f conftest.$ac_objext conftest$ac_exeext
10269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10270  (eval $ac_link) 2>conftest.er1
10271  ac_status=$?
10272  grep -v '^ *+' conftest.er1 >conftest.err
10273  rm -f conftest.er1
10274  cat conftest.err >&5
10275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276  (exit $ac_status); } &&
10277	 { ac_try='test -z "$ac_cxx_werror_flag"
10278			 || test ! -s conftest.err'
10279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280  (eval $ac_try) 2>&5
10281  ac_status=$?
10282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283  (exit $ac_status); }; } &&
10284	 { ac_try='test -s conftest$ac_exeext'
10285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286  (eval $ac_try) 2>&5
10287  ac_status=$?
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); }; }; then
10290
10291aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10292}'`
10293# Check for a 64-bit object if we didn't find anything.
10294if 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; }
10295}'`; fi
10296else
10297  echo "$as_me: failed program was:" >&5
10298sed 's/^/| /' conftest.$ac_ext >&5
10299
10300fi
10301rm -f conftest.err conftest.$ac_objext \
10302      conftest$ac_exeext conftest.$ac_ext
10303if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10304
10305	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10306	# Warning - without using the other run time loading flags,
10307	# -berok will link without error, but may produce a broken library.
10308	no_undefined_flag_CXX=' ${wl}-bernotok'
10309	allow_undefined_flag_CXX=' ${wl}-berok'
10310	# -bexpall does not export symbols beginning with underscore (_)
10311	always_export_symbols_CXX=yes
10312	# Exported symbols can be pulled into shared objects from archives
10313	whole_archive_flag_spec_CXX=' '
10314	archive_cmds_need_lc_CXX=yes
10315	# This is similar to how AIX traditionally builds its shared libraries.
10316	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10317      fi
10318    fi
10319    ;;
10320  chorus*)
10321    case $cc_basename in
10322      *)
10323	# FIXME: insert proper C++ library support
10324	ld_shlibs_CXX=no
10325	;;
10326    esac
10327    ;;
10328
10329
10330  cygwin* | mingw* | pw32*)
10331    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10332    # as there is no search path for DLLs.
10333    hardcode_libdir_flag_spec_CXX='-L$libdir'
10334    allow_undefined_flag_CXX=unsupported
10335    always_export_symbols_CXX=no
10336    enable_shared_with_static_runtimes_CXX=yes
10337
10338    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10339      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10340      # If the export-symbols file already is a .def file (1st line
10341      # is EXPORTS), use it as is; otherwise, prepend...
10342      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10343	cp $export_symbols $output_objdir/$soname.def;
10344      else
10345	echo EXPORTS > $output_objdir/$soname.def;
10346	cat $export_symbols >> $output_objdir/$soname.def;
10347      fi~
10348      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10349    else
10350      ld_shlibs_CXX=no
10351    fi
10352  ;;
10353      darwin* | rhapsody*)
10354        case $host_os in
10355        rhapsody* | darwin1.[012])
10356         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10357         ;;
10358       *) # Darwin 1.3 on
10359         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10360           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10361         else
10362           case ${MACOSX_DEPLOYMENT_TARGET} in
10363             10.[012])
10364               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10365               ;;
10366             10.*)
10367               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10368               ;;
10369           esac
10370         fi
10371         ;;
10372        esac
10373      archive_cmds_need_lc_CXX=no
10374      hardcode_direct_CXX=no
10375      hardcode_automatic_CXX=yes
10376      hardcode_shlibpath_var_CXX=unsupported
10377      whole_archive_flag_spec_CXX=''
10378      link_all_deplibs_CXX=yes
10379
10380    if test "$GXX" = yes ; then
10381      lt_int_apple_cc_single_mod=no
10382      output_verbose_link_cmd='echo'
10383      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10384       lt_int_apple_cc_single_mod=yes
10385      fi
10386      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10387       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10388      else
10389          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'
10390        fi
10391        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10392        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10393          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10394            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}'
10395          else
10396            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}'
10397          fi
10398            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}'
10399      else
10400      case $cc_basename in
10401        xlc*)
10402         output_verbose_link_cmd='echo'
10403          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'
10404          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10405          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10406          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}'
10407          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}'
10408          ;;
10409       *)
10410         ld_shlibs_CXX=no
10411          ;;
10412      esac
10413      fi
10414        ;;
10415
10416  dgux*)
10417    case $cc_basename in
10418      ec++*)
10419	# FIXME: insert proper C++ library support
10420	ld_shlibs_CXX=no
10421	;;
10422      ghcx*)
10423	# Green Hills C++ Compiler
10424	# FIXME: insert proper C++ library support
10425	ld_shlibs_CXX=no
10426	;;
10427      *)
10428	# FIXME: insert proper C++ library support
10429	ld_shlibs_CXX=no
10430	;;
10431    esac
10432    ;;
10433  freebsd[12]*)
10434    # C++ shared libraries reported to be fairly broken before switch to ELF
10435    ld_shlibs_CXX=no
10436    ;;
10437  freebsd-elf*)
10438    archive_cmds_need_lc_CXX=no
10439    ;;
10440  freebsd* | kfreebsd*-gnu | dragonfly*)
10441    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10442    # conventions
10443    ld_shlibs_CXX=yes
10444    ;;
10445  gnu*)
10446    ;;
10447  hpux9*)
10448    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10449    hardcode_libdir_separator_CXX=:
10450    export_dynamic_flag_spec_CXX='${wl}-E'
10451    hardcode_direct_CXX=yes
10452    hardcode_minus_L_CXX=yes # Not in the search PATH,
10453				# but as the default
10454				# location of the library.
10455
10456    case $cc_basename in
10457    CC*)
10458      # FIXME: insert proper C++ library support
10459      ld_shlibs_CXX=no
10460      ;;
10461    aCC*)
10462      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'
10463      # Commands to make compiler produce verbose output that lists
10464      # what "hidden" libraries, object files and flags are used when
10465      # linking a shared library.
10466      #
10467      # There doesn't appear to be a way to prevent this compiler from
10468      # explicitly linking system object files so we need to strip them
10469      # from the output so that they don't get included in the library
10470      # dependencies.
10471      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'
10472      ;;
10473    *)
10474      if test "$GXX" = yes; then
10475        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'
10476      else
10477        # FIXME: insert proper C++ library support
10478        ld_shlibs_CXX=no
10479      fi
10480      ;;
10481    esac
10482    ;;
10483  hpux10*|hpux11*)
10484    if test $with_gnu_ld = no; then
10485      case $host_cpu in
10486      hppa*64*)
10487	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10488	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10489	hardcode_libdir_separator_CXX=:
10490        ;;
10491      ia64*)
10492	hardcode_libdir_flag_spec_CXX='-L$libdir'
10493        ;;
10494      *)
10495	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10496	hardcode_libdir_separator_CXX=:
10497	export_dynamic_flag_spec_CXX='${wl}-E'
10498        ;;
10499      esac
10500    fi
10501    case $host_cpu in
10502    hppa*64*)
10503      hardcode_direct_CXX=no
10504      hardcode_shlibpath_var_CXX=no
10505      ;;
10506    ia64*)
10507      hardcode_direct_CXX=no
10508      hardcode_shlibpath_var_CXX=no
10509      hardcode_minus_L_CXX=yes # Not in the search PATH,
10510					      # but as the default
10511					      # location of the library.
10512      ;;
10513    *)
10514      hardcode_direct_CXX=yes
10515      hardcode_minus_L_CXX=yes # Not in the search PATH,
10516					      # but as the default
10517					      # location of the library.
10518      ;;
10519    esac
10520
10521    case $cc_basename in
10522      CC*)
10523	# FIXME: insert proper C++ library support
10524	ld_shlibs_CXX=no
10525	;;
10526      aCC*)
10527	case $host_cpu in
10528	hppa*64*|ia64*)
10529	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10530	  ;;
10531	*)
10532	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10533	  ;;
10534	esac
10535	# Commands to make compiler produce verbose output that lists
10536	# what "hidden" libraries, object files and flags are used when
10537	# linking a shared library.
10538	#
10539	# There doesn't appear to be a way to prevent this compiler from
10540	# explicitly linking system object files so we need to strip them
10541	# from the output so that they don't get included in the library
10542	# dependencies.
10543	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'
10544	;;
10545      *)
10546	if test "$GXX" = yes; then
10547	  if test $with_gnu_ld = no; then
10548	    case $host_cpu in
10549	    ia64*|hppa*64*)
10550	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10551	      ;;
10552	    *)
10553	      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'
10554	      ;;
10555	    esac
10556	  fi
10557	else
10558	  # FIXME: insert proper C++ library support
10559	  ld_shlibs_CXX=no
10560	fi
10561	;;
10562    esac
10563    ;;
10564  irix5* | irix6*)
10565    case $cc_basename in
10566      CC*)
10567	# SGI C++
10568	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'
10569
10570	# Archives containing C++ object files must be created using
10571	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10572	# necessary to make sure instantiated templates are included
10573	# in the archive.
10574	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10575	;;
10576      *)
10577	if test "$GXX" = yes; then
10578	  if test "$with_gnu_ld" = no; then
10579	    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'
10580	  else
10581	    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'
10582	  fi
10583	fi
10584	link_all_deplibs_CXX=yes
10585	;;
10586    esac
10587    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10588    hardcode_libdir_separator_CXX=:
10589    ;;
10590  linux*)
10591    case $cc_basename in
10592      KCC*)
10593	# Kuck and Associates, Inc. (KAI) C++ Compiler
10594
10595	# KCC will only create a shared library if the output file
10596	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10597	# to its proper name (with version) after linking.
10598	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'
10599	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'
10600	# Commands to make compiler produce verbose output that lists
10601	# what "hidden" libraries, object files and flags are used when
10602	# linking a shared library.
10603	#
10604	# There doesn't appear to be a way to prevent this compiler from
10605	# explicitly linking system object files so we need to strip them
10606	# from the output so that they don't get included in the library
10607	# dependencies.
10608	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'
10609
10610	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10611	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10612
10613	# Archives containing C++ object files must be created using
10614	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10615	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10616	;;
10617      icpc*)
10618	# Intel C++
10619	with_gnu_ld=yes
10620	# version 8.0 and above of icpc choke on multiply defined symbols
10621	# if we add $predep_objects and $postdep_objects, however 7.1 and
10622	# earlier do not add the objects themselves.
10623	case `$CC -V 2>&1` in
10624	*"Version 7."*)
10625  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10626  	  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'
10627	  ;;
10628	*)  # Version 8.0 or newer
10629	  tmp_idyn=
10630	  case $host_cpu in
10631	    ia64*) tmp_idyn=' -i_dynamic';;
10632	  esac
10633  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10634	  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'
10635	  ;;
10636	esac
10637	archive_cmds_need_lc_CXX=no
10638	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10639	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10640	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10641	;;
10642      pgCC*)
10643        # Portland Group C++ compiler
10644	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10645  	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'
10646
10647	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10648	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10649	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'
10650        ;;
10651      cxx*)
10652	# Compaq C++
10653	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10654	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'
10655
10656	runpath_var=LD_RUN_PATH
10657	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10658	hardcode_libdir_separator_CXX=:
10659
10660	# Commands to make compiler produce verbose output that lists
10661	# what "hidden" libraries, object files and flags are used when
10662	# linking a shared library.
10663	#
10664	# There doesn't appear to be a way to prevent this compiler from
10665	# explicitly linking system object files so we need to strip them
10666	# from the output so that they don't get included in the library
10667	# dependencies.
10668	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'
10669	;;
10670    esac
10671    ;;
10672  lynxos*)
10673    # FIXME: insert proper C++ library support
10674    ld_shlibs_CXX=no
10675    ;;
10676  m88k*)
10677    # FIXME: insert proper C++ library support
10678    ld_shlibs_CXX=no
10679    ;;
10680  mvs*)
10681    case $cc_basename in
10682      cxx*)
10683	# FIXME: insert proper C++ library support
10684	ld_shlibs_CXX=no
10685	;;
10686      *)
10687	# FIXME: insert proper C++ library support
10688	ld_shlibs_CXX=no
10689	;;
10690    esac
10691    ;;
10692  netbsd*)
10693    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10694      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10695      wlarc=
10696      hardcode_libdir_flag_spec_CXX='-R$libdir'
10697      hardcode_direct_CXX=yes
10698      hardcode_shlibpath_var_CXX=no
10699    fi
10700    # Workaround some broken pre-1.5 toolchains
10701    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10702    ;;
10703  openbsd2*)
10704    # C++ shared libraries are fairly broken
10705    ld_shlibs_CXX=no
10706    ;;
10707  openbsd*)
10708    hardcode_direct_CXX=yes
10709    hardcode_shlibpath_var_CXX=no
10710    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10711    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10712    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10713      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10714      export_dynamic_flag_spec_CXX='${wl}-E'
10715      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10716    fi
10717    output_verbose_link_cmd='echo'
10718    ;;
10719  osf3*)
10720    case $cc_basename in
10721      KCC*)
10722	# Kuck and Associates, Inc. (KAI) C++ Compiler
10723
10724	# KCC will only create a shared library if the output file
10725	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10726	# to its proper name (with version) after linking.
10727	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'
10728
10729	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10730	hardcode_libdir_separator_CXX=:
10731
10732	# Archives containing C++ object files must be created using
10733	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10734	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10735
10736	;;
10737      RCC*)
10738	# Rational C++ 2.4.1
10739	# FIXME: insert proper C++ library support
10740	ld_shlibs_CXX=no
10741	;;
10742      cxx*)
10743	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10744	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'
10745
10746	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10747	hardcode_libdir_separator_CXX=:
10748
10749	# Commands to make compiler produce verbose output that lists
10750	# what "hidden" libraries, object files and flags are used when
10751	# linking a shared library.
10752	#
10753	# There doesn't appear to be a way to prevent this compiler from
10754	# explicitly linking system object files so we need to strip them
10755	# from the output so that they don't get included in the library
10756	# dependencies.
10757	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'
10758	;;
10759      *)
10760	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10761	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10762	  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'
10763
10764	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10765	  hardcode_libdir_separator_CXX=:
10766
10767	  # Commands to make compiler produce verbose output that lists
10768	  # what "hidden" libraries, object files and flags are used when
10769	  # linking a shared library.
10770	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10771
10772	else
10773	  # FIXME: insert proper C++ library support
10774	  ld_shlibs_CXX=no
10775	fi
10776	;;
10777    esac
10778    ;;
10779  osf4* | osf5*)
10780    case $cc_basename in
10781      KCC*)
10782	# Kuck and Associates, Inc. (KAI) C++ Compiler
10783
10784	# KCC will only create a shared library if the output file
10785	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10786	# to its proper name (with version) after linking.
10787	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'
10788
10789	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10790	hardcode_libdir_separator_CXX=:
10791
10792	# Archives containing C++ object files must be created using
10793	# the KAI C++ compiler.
10794	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10795	;;
10796      RCC*)
10797	# Rational C++ 2.4.1
10798	# FIXME: insert proper C++ library support
10799	ld_shlibs_CXX=no
10800	;;
10801      cxx*)
10802	allow_undefined_flag_CXX=' -expect_unresolved \*'
10803	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'
10804	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10805	  echo "-hidden">> $lib.exp~
10806	  $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~
10807	  $rm $lib.exp'
10808
10809	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10810	hardcode_libdir_separator_CXX=:
10811
10812	# Commands to make compiler produce verbose output that lists
10813	# what "hidden" libraries, object files and flags are used when
10814	# linking a shared library.
10815	#
10816	# There doesn't appear to be a way to prevent this compiler from
10817	# explicitly linking system object files so we need to strip them
10818	# from the output so that they don't get included in the library
10819	# dependencies.
10820	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'
10821	;;
10822      *)
10823	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10824	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10825	 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'
10826
10827	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10828	  hardcode_libdir_separator_CXX=:
10829
10830	  # Commands to make compiler produce verbose output that lists
10831	  # what "hidden" libraries, object files and flags are used when
10832	  # linking a shared library.
10833	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10834
10835	else
10836	  # FIXME: insert proper C++ library support
10837	  ld_shlibs_CXX=no
10838	fi
10839	;;
10840    esac
10841    ;;
10842  psos*)
10843    # FIXME: insert proper C++ library support
10844    ld_shlibs_CXX=no
10845    ;;
10846  sco*)
10847    archive_cmds_need_lc_CXX=no
10848    case $cc_basename in
10849      CC*)
10850	# FIXME: insert proper C++ library support
10851	ld_shlibs_CXX=no
10852	;;
10853      *)
10854	# FIXME: insert proper C++ library support
10855	ld_shlibs_CXX=no
10856	;;
10857    esac
10858    ;;
10859  sunos4*)
10860    case $cc_basename in
10861      CC*)
10862	# Sun C++ 4.x
10863	# FIXME: insert proper C++ library support
10864	ld_shlibs_CXX=no
10865	;;
10866      lcc*)
10867	# Lucid
10868	# FIXME: insert proper C++ library support
10869	ld_shlibs_CXX=no
10870	;;
10871      *)
10872	# FIXME: insert proper C++ library support
10873	ld_shlibs_CXX=no
10874	;;
10875    esac
10876    ;;
10877  solaris*)
10878    case $cc_basename in
10879      CC*)
10880	# Sun C++ 4.2, 5.x and Centerline C++
10881        archive_cmds_need_lc_CXX=yes
10882	no_undefined_flag_CXX=' -zdefs'
10883	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10884	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10885	$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'
10886
10887	hardcode_libdir_flag_spec_CXX='-R$libdir'
10888	hardcode_shlibpath_var_CXX=no
10889	case $host_os in
10890	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10891	  *)
10892	    # The C++ compiler is used as linker so we must use $wl
10893	    # flag to pass the commands to the underlying system
10894	    # linker. We must also pass each convience library through
10895	    # to the system linker between allextract/defaultextract.
10896	    # The C++ compiler will combine linker options so we
10897	    # cannot just pass the convience library names through
10898	    # without $wl.
10899	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10900	    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'
10901	    ;;
10902	esac
10903	link_all_deplibs_CXX=yes
10904
10905	output_verbose_link_cmd='echo'
10906
10907	# Archives containing C++ object files must be created using
10908	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10909	# necessary to make sure instantiated templates are included
10910	# in the archive.
10911	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10912	;;
10913      gcx*)
10914	# Green Hills C++ Compiler
10915	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10916
10917	# The C++ compiler must be used to create the archive.
10918	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10919	;;
10920      *)
10921	# GNU C++ compiler with Solaris linker
10922	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10923	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10924	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10925	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10926	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10927		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10928
10929	    # Commands to make compiler produce verbose output that lists
10930	    # what "hidden" libraries, object files and flags are used when
10931	    # linking a shared library.
10932	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10933	  else
10934	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10935	    # platform.
10936	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10937	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10938		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10939
10940	    # Commands to make compiler produce verbose output that lists
10941	    # what "hidden" libraries, object files and flags are used when
10942	    # linking a shared library.
10943	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10944	  fi
10945
10946	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10947	fi
10948	;;
10949    esac
10950    ;;
10951  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10952    archive_cmds_need_lc_CXX=no
10953    ;;
10954  tandem*)
10955    case $cc_basename in
10956      NCC*)
10957	# NonStop-UX NCC 3.20
10958	# FIXME: insert proper C++ library support
10959	ld_shlibs_CXX=no
10960	;;
10961      *)
10962	# FIXME: insert proper C++ library support
10963	ld_shlibs_CXX=no
10964	;;
10965    esac
10966    ;;
10967  vxworks*)
10968    # FIXME: insert proper C++ library support
10969    ld_shlibs_CXX=no
10970    ;;
10971  *)
10972    # FIXME: insert proper C++ library support
10973    ld_shlibs_CXX=no
10974    ;;
10975esac
10976echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10977echo "${ECHO_T}$ld_shlibs_CXX" >&6
10978test "$ld_shlibs_CXX" = no && can_build_shared=no
10979
10980GCC_CXX="$GXX"
10981LD_CXX="$LD"
10982
10983## CAVEAT EMPTOR:
10984## There is no encapsulation within the following macros, do not change
10985## the running order or otherwise move them around unless you know exactly
10986## what you are doing...
10987
10988cat > conftest.$ac_ext <<EOF
10989class Foo
10990{
10991public:
10992  Foo (void) { a = 0; }
10993private:
10994  int a;
10995};
10996EOF
10997
10998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10999  (eval $ac_compile) 2>&5
11000  ac_status=$?
11001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002  (exit $ac_status); }; then
11003  # Parse the compiler output and extract the necessary
11004  # objects, libraries and library flags.
11005
11006  # Sentinel used to keep track of whether or not we are before
11007  # the conftest object file.
11008  pre_test_object_deps_done=no
11009
11010  # The `*' in the case matches for architectures that use `case' in
11011  # $output_verbose_cmd can trigger glob expansion during the loop
11012  # eval without this substitution.
11013  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11014
11015  for p in `eval $output_verbose_link_cmd`; do
11016    case $p in
11017
11018    -L* | -R* | -l*)
11019       # Some compilers place space between "-{L,R}" and the path.
11020       # Remove the space.
11021       if test $p = "-L" \
11022	  || test $p = "-R"; then
11023	 prev=$p
11024	 continue
11025       else
11026	 prev=
11027       fi
11028
11029       if test "$pre_test_object_deps_done" = no; then
11030	 case $p in
11031	 -L* | -R*)
11032	   # Internal compiler library paths should come after those
11033	   # provided the user.  The postdeps already come after the
11034	   # user supplied libs so there is no need to process them.
11035	   if test -z "$compiler_lib_search_path_CXX"; then
11036	     compiler_lib_search_path_CXX="${prev}${p}"
11037	   else
11038	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11039	   fi
11040	   ;;
11041	 # The "-l" case would never come before the object being
11042	 # linked, so don't bother handling this case.
11043	 esac
11044       else
11045	 if test -z "$postdeps_CXX"; then
11046	   postdeps_CXX="${prev}${p}"
11047	 else
11048	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11049	 fi
11050       fi
11051       ;;
11052
11053    *.$objext)
11054       # This assumes that the test object file only shows up
11055       # once in the compiler output.
11056       if test "$p" = "conftest.$objext"; then
11057	 pre_test_object_deps_done=yes
11058	 continue
11059       fi
11060
11061       if test "$pre_test_object_deps_done" = no; then
11062	 if test -z "$predep_objects_CXX"; then
11063	   predep_objects_CXX="$p"
11064	 else
11065	   predep_objects_CXX="$predep_objects_CXX $p"
11066	 fi
11067       else
11068	 if test -z "$postdep_objects_CXX"; then
11069	   postdep_objects_CXX="$p"
11070	 else
11071	   postdep_objects_CXX="$postdep_objects_CXX $p"
11072	 fi
11073       fi
11074       ;;
11075
11076    *) ;; # Ignore the rest.
11077
11078    esac
11079  done
11080
11081  # Clean up.
11082  rm -f a.out a.exe
11083else
11084  echo "libtool.m4: error: problem compiling CXX test program"
11085fi
11086
11087$rm -f confest.$objext
11088
11089# PORTME: override above test on systems where it is broken
11090case $host_os in
11091solaris*)
11092  case $cc_basename in
11093  CC*)
11094    # Adding this requires a known-good setup of shared libraries for
11095    # Sun compiler versions before 5.6, else PIC objects from an old
11096    # archive will be linked into the output, leading to subtle bugs.
11097    postdeps_CXX='-lCstd -lCrun'
11098    ;;
11099  esac
11100esac
11101
11102
11103case " $postdeps_CXX " in
11104*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11105esac
11106
11107lt_prog_compiler_wl_CXX=
11108lt_prog_compiler_pic_CXX=
11109lt_prog_compiler_static_CXX=
11110
11111echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11112echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11113
11114  # C++ specific cases for pic, static, wl, etc.
11115  if test "$GXX" = yes; then
11116    lt_prog_compiler_wl_CXX='-Wl,'
11117    lt_prog_compiler_static_CXX='-static'
11118
11119    case $host_os in
11120    aix*)
11121      # All AIX code is PIC.
11122      if test "$host_cpu" = ia64; then
11123	# AIX 5 now supports IA64 processor
11124	lt_prog_compiler_static_CXX='-Bstatic'
11125      fi
11126      ;;
11127    amigaos*)
11128      # FIXME: we need at least 68020 code to build shared libraries, but
11129      # adding the `-m68020' flag to GCC prevents building anything better,
11130      # like `-m68040'.
11131      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11132      ;;
11133    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11134      # PIC is the default for these OSes.
11135      ;;
11136    mingw* | os2* | pw32*)
11137      # This hack is so that the source file can tell whether it is being
11138      # built for inclusion in a dll (and should export symbols for example).
11139      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11140      ;;
11141    darwin* | rhapsody*)
11142      # PIC is the default on this platform
11143      # Common symbols not allowed in MH_DYLIB files
11144      lt_prog_compiler_pic_CXX='-fno-common'
11145      ;;
11146    *djgpp*)
11147      # DJGPP does not support shared libraries at all
11148      lt_prog_compiler_pic_CXX=
11149      ;;
11150    sysv4*MP*)
11151      if test -d /usr/nec; then
11152	lt_prog_compiler_pic_CXX=-Kconform_pic
11153      fi
11154      ;;
11155    hpux*)
11156      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11157      # not for PA HP-UX.
11158      case $host_cpu in
11159      hppa*64*|ia64*)
11160	;;
11161      *)
11162	lt_prog_compiler_pic_CXX='-fPIC'
11163	;;
11164      esac
11165      ;;
11166    *)
11167      lt_prog_compiler_pic_CXX='-fPIC'
11168      ;;
11169    esac
11170  else
11171    case $host_os in
11172      aix4* | aix5*)
11173	# All AIX code is PIC.
11174	if test "$host_cpu" = ia64; then
11175	  # AIX 5 now supports IA64 processor
11176	  lt_prog_compiler_static_CXX='-Bstatic'
11177	else
11178	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11179	fi
11180	;;
11181      chorus*)
11182	case $cc_basename in
11183	cxch68*)
11184	  # Green Hills C++ Compiler
11185	  # _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"
11186	  ;;
11187	esac
11188	;;
11189       darwin*)
11190         # PIC is the default on this platform
11191         # Common symbols not allowed in MH_DYLIB files
11192         case $cc_basename in
11193           xlc*)
11194           lt_prog_compiler_pic_CXX='-qnocommon'
11195           lt_prog_compiler_wl_CXX='-Wl,'
11196           ;;
11197         esac
11198       ;;
11199      dgux*)
11200	case $cc_basename in
11201	  ec++*)
11202	    lt_prog_compiler_pic_CXX='-KPIC'
11203	    ;;
11204	  ghcx*)
11205	    # Green Hills C++ Compiler
11206	    lt_prog_compiler_pic_CXX='-pic'
11207	    ;;
11208	  *)
11209	    ;;
11210	esac
11211	;;
11212      freebsd* | kfreebsd*-gnu | dragonfly*)
11213	# FreeBSD uses GNU C++
11214	;;
11215      hpux9* | hpux10* | hpux11*)
11216	case $cc_basename in
11217	  CC*)
11218	    lt_prog_compiler_wl_CXX='-Wl,'
11219	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11220	    if test "$host_cpu" != ia64; then
11221	      lt_prog_compiler_pic_CXX='+Z'
11222	    fi
11223	    ;;
11224	  aCC*)
11225	    lt_prog_compiler_wl_CXX='-Wl,'
11226	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11227	    case $host_cpu in
11228	    hppa*64*|ia64*)
11229	      # +Z the default
11230	      ;;
11231	    *)
11232	      lt_prog_compiler_pic_CXX='+Z'
11233	      ;;
11234	    esac
11235	    ;;
11236	  *)
11237	    ;;
11238	esac
11239	;;
11240      irix5* | irix6* | nonstopux*)
11241	case $cc_basename in
11242	  CC*)
11243	    lt_prog_compiler_wl_CXX='-Wl,'
11244	    lt_prog_compiler_static_CXX='-non_shared'
11245	    # CC pic flag -KPIC is the default.
11246	    ;;
11247	  *)
11248	    ;;
11249	esac
11250	;;
11251      linux*)
11252	case $cc_basename in
11253	  KCC*)
11254	    # KAI C++ Compiler
11255	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11256	    lt_prog_compiler_pic_CXX='-fPIC'
11257	    ;;
11258	  icpc* | ecpc*)
11259	    # Intel C++
11260	    lt_prog_compiler_wl_CXX='-Wl,'
11261	    lt_prog_compiler_pic_CXX='-KPIC'
11262	    lt_prog_compiler_static_CXX='-static'
11263	    ;;
11264	  pgCC*)
11265	    # Portland Group C++ compiler.
11266	    lt_prog_compiler_wl_CXX='-Wl,'
11267	    lt_prog_compiler_pic_CXX='-fpic'
11268	    lt_prog_compiler_static_CXX='-Bstatic'
11269	    ;;
11270	  cxx*)
11271	    # Compaq C++
11272	    # Make sure the PIC flag is empty.  It appears that all Alpha
11273	    # Linux and Compaq Tru64 Unix objects are PIC.
11274	    lt_prog_compiler_pic_CXX=
11275	    lt_prog_compiler_static_CXX='-non_shared'
11276	    ;;
11277	  *)
11278	    ;;
11279	esac
11280	;;
11281      lynxos*)
11282	;;
11283      m88k*)
11284	;;
11285      mvs*)
11286	case $cc_basename in
11287	  cxx*)
11288	    lt_prog_compiler_pic_CXX='-W c,exportall'
11289	    ;;
11290	  *)
11291	    ;;
11292	esac
11293	;;
11294      netbsd*)
11295	;;
11296      osf3* | osf4* | osf5*)
11297	case $cc_basename in
11298	  KCC*)
11299	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11300	    ;;
11301	  RCC*)
11302	    # Rational C++ 2.4.1
11303	    lt_prog_compiler_pic_CXX='-pic'
11304	    ;;
11305	  cxx*)
11306	    # Digital/Compaq C++
11307	    lt_prog_compiler_wl_CXX='-Wl,'
11308	    # Make sure the PIC flag is empty.  It appears that all Alpha
11309	    # Linux and Compaq Tru64 Unix objects are PIC.
11310	    lt_prog_compiler_pic_CXX=
11311	    lt_prog_compiler_static_CXX='-non_shared'
11312	    ;;
11313	  *)
11314	    ;;
11315	esac
11316	;;
11317      psos*)
11318	;;
11319      sco*)
11320	case $cc_basename in
11321	  CC*)
11322	    lt_prog_compiler_pic_CXX='-fPIC'
11323	    ;;
11324	  *)
11325	    ;;
11326	esac
11327	;;
11328      solaris*)
11329	case $cc_basename in
11330	  CC*)
11331	    # Sun C++ 4.2, 5.x and Centerline C++
11332	    lt_prog_compiler_pic_CXX='-KPIC'
11333	    lt_prog_compiler_static_CXX='-Bstatic'
11334	    lt_prog_compiler_wl_CXX='-Qoption ld '
11335	    ;;
11336	  gcx*)
11337	    # Green Hills C++ Compiler
11338	    lt_prog_compiler_pic_CXX='-PIC'
11339	    ;;
11340	  *)
11341	    ;;
11342	esac
11343	;;
11344      sunos4*)
11345	case $cc_basename in
11346	  CC*)
11347	    # Sun C++ 4.x
11348	    lt_prog_compiler_pic_CXX='-pic'
11349	    lt_prog_compiler_static_CXX='-Bstatic'
11350	    ;;
11351	  lcc*)
11352	    # Lucid
11353	    lt_prog_compiler_pic_CXX='-pic'
11354	    ;;
11355	  *)
11356	    ;;
11357	esac
11358	;;
11359      tandem*)
11360	case $cc_basename in
11361	  NCC*)
11362	    # NonStop-UX NCC 3.20
11363	    lt_prog_compiler_pic_CXX='-KPIC'
11364	    ;;
11365	  *)
11366	    ;;
11367	esac
11368	;;
11369      unixware*)
11370	;;
11371      vxworks*)
11372	;;
11373      *)
11374	lt_prog_compiler_can_build_shared_CXX=no
11375	;;
11376    esac
11377  fi
11378
11379echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11380echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11381
11382#
11383# Check to make sure the PIC flag actually works.
11384#
11385if test -n "$lt_prog_compiler_pic_CXX"; then
11386
11387echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11388echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11389if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11390  echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392  lt_prog_compiler_pic_works_CXX=no
11393  ac_outfile=conftest.$ac_objext
11394   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11395   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11396   # Insert the option either (1) after the last *FLAGS variable, or
11397   # (2) before a word containing "conftest.", or (3) at the end.
11398   # Note that $ac_compile itself does not contain backslashes and begins
11399   # with a dollar sign (not a hyphen), so the echo should work correctly.
11400   # The option is referenced via a variable to avoid confusing sed.
11401   lt_compile=`echo "$ac_compile" | $SED \
11402   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11403   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11404   -e 's:$: $lt_compiler_flag:'`
11405   (eval echo "\"\$as_me:11405: $lt_compile\"" >&5)
11406   (eval "$lt_compile" 2>conftest.err)
11407   ac_status=$?
11408   cat conftest.err >&5
11409   echo "$as_me:11409: \$? = $ac_status" >&5
11410   if (exit $ac_status) && test -s "$ac_outfile"; then
11411     # The compiler can only warn and ignore the option if not recognized
11412     # So say no if there are warnings other than the usual output.
11413     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11414     $SED '/^$/d' conftest.err >conftest.er2
11415     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11416       lt_prog_compiler_pic_works_CXX=yes
11417     fi
11418   fi
11419   $rm conftest*
11420
11421fi
11422echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11423echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11424
11425if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11426    case $lt_prog_compiler_pic_CXX in
11427     "" | " "*) ;;
11428     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11429     esac
11430else
11431    lt_prog_compiler_pic_CXX=
11432     lt_prog_compiler_can_build_shared_CXX=no
11433fi
11434
11435fi
11436case $host_os in
11437  # For platforms which do not support PIC, -DPIC is meaningless:
11438  *djgpp*)
11439    lt_prog_compiler_pic_CXX=
11440    ;;
11441  *)
11442    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11443    ;;
11444esac
11445
11446echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11447echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11448if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11449  echo $ECHO_N "(cached) $ECHO_C" >&6
11450else
11451  lt_cv_prog_compiler_c_o_CXX=no
11452   $rm -r conftest 2>/dev/null
11453   mkdir conftest
11454   cd conftest
11455   mkdir out
11456   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11457
11458   lt_compiler_flag="-o out/conftest2.$ac_objext"
11459   # Insert the option either (1) after the last *FLAGS variable, or
11460   # (2) before a word containing "conftest.", or (3) at the end.
11461   # Note that $ac_compile itself does not contain backslashes and begins
11462   # with a dollar sign (not a hyphen), so the echo should work correctly.
11463   lt_compile=`echo "$ac_compile" | $SED \
11464   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11465   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11466   -e 's:$: $lt_compiler_flag:'`
11467   (eval echo "\"\$as_me:11467: $lt_compile\"" >&5)
11468   (eval "$lt_compile" 2>out/conftest.err)
11469   ac_status=$?
11470   cat out/conftest.err >&5
11471   echo "$as_me:11471: \$? = $ac_status" >&5
11472   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11473   then
11474     # The compiler can only warn and ignore the option if not recognized
11475     # So say no if there are warnings
11476     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11477     $SED '/^$/d' out/conftest.err >out/conftest.er2
11478     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11479       lt_cv_prog_compiler_c_o_CXX=yes
11480     fi
11481   fi
11482   chmod u+w . 2>&5
11483   $rm conftest*
11484   # SGI C++ compiler will create directory out/ii_files/ for
11485   # template instantiation
11486   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11487   $rm out/* && rmdir out
11488   cd ..
11489   rmdir conftest
11490   $rm conftest*
11491
11492fi
11493echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11494echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11495
11496
11497hard_links="nottested"
11498if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11499  # do not overwrite the value of need_locks provided by the user
11500  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11501echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11502  hard_links=yes
11503  $rm conftest*
11504  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11505  touch conftest.a
11506  ln conftest.a conftest.b 2>&5 || hard_links=no
11507  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11508  echo "$as_me:$LINENO: result: $hard_links" >&5
11509echo "${ECHO_T}$hard_links" >&6
11510  if test "$hard_links" = no; then
11511    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11512echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11513    need_locks=warn
11514  fi
11515else
11516  need_locks=no
11517fi
11518
11519echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11520echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11521
11522  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11523  case $host_os in
11524  aix4* | aix5*)
11525    # If we're using GNU nm, then we don't want the "-C" option.
11526    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11527    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11528      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'
11529    else
11530      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'
11531    fi
11532    ;;
11533  pw32*)
11534    export_symbols_cmds_CXX="$ltdll_cmds"
11535  ;;
11536  cygwin* | mingw*)
11537    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'
11538  ;;
11539  *)
11540    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11541  ;;
11542  esac
11543
11544echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11545echo "${ECHO_T}$ld_shlibs_CXX" >&6
11546test "$ld_shlibs_CXX" = no && can_build_shared=no
11547
11548variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11549if test "$GCC" = yes; then
11550  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11551fi
11552
11553#
11554# Do we need to explicitly link libc?
11555#
11556case "x$archive_cmds_need_lc_CXX" in
11557x|xyes)
11558  # Assume -lc should be added
11559  archive_cmds_need_lc_CXX=yes
11560
11561  if test "$enable_shared" = yes && test "$GCC" = yes; then
11562    case $archive_cmds_CXX in
11563    *'~'*)
11564      # FIXME: we may have to deal with multi-command sequences.
11565      ;;
11566    '$CC '*)
11567      # Test whether the compiler implicitly links with -lc since on some
11568      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11569      # to ld, don't add -lc before -lgcc.
11570      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11571echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11572      $rm conftest*
11573      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11574
11575      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11576  (eval $ac_compile) 2>&5
11577  ac_status=$?
11578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579  (exit $ac_status); } 2>conftest.err; then
11580        soname=conftest
11581        lib=conftest
11582        libobjs=conftest.$ac_objext
11583        deplibs=
11584        wl=$lt_prog_compiler_wl_CXX
11585        compiler_flags=-v
11586        linker_flags=-v
11587        verstring=
11588        output_objdir=.
11589        libname=conftest
11590        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11591        allow_undefined_flag_CXX=
11592        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11593  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11594  ac_status=$?
11595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596  (exit $ac_status); }
11597        then
11598	  archive_cmds_need_lc_CXX=no
11599        else
11600	  archive_cmds_need_lc_CXX=yes
11601        fi
11602        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11603      else
11604        cat conftest.err 1>&5
11605      fi
11606      $rm conftest*
11607      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11608echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11609      ;;
11610    esac
11611  fi
11612  ;;
11613esac
11614
11615echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11616echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11617library_names_spec=
11618libname_spec='lib$name'
11619soname_spec=
11620shrext_cmds=".so"
11621postinstall_cmds=
11622postuninstall_cmds=
11623finish_cmds=
11624finish_eval=
11625shlibpath_var=
11626shlibpath_overrides_runpath=unknown
11627version_type=none
11628dynamic_linker="$host_os ld.so"
11629sys_lib_dlsearch_path_spec="/lib /usr/lib"
11630if test "$GCC" = yes; then
11631  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11632  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11633    # if the path contains ";" then we assume it to be the separator
11634    # otherwise default to the standard path separator (i.e. ":") - it is
11635    # assumed that no part of a normal pathname contains ";" but that should
11636    # okay in the real world where ";" in dirpaths is itself problematic.
11637    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11638  else
11639    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11640  fi
11641else
11642  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11643fi
11644need_lib_prefix=unknown
11645hardcode_into_libs=no
11646
11647# when you set need_version to no, make sure it does not cause -set_version
11648# flags to be left without arguments
11649need_version=unknown
11650
11651case $host_os in
11652aix3*)
11653  version_type=linux
11654  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11655  shlibpath_var=LIBPATH
11656
11657  # AIX 3 has no versioning support, so we append a major version to the name.
11658  soname_spec='${libname}${release}${shared_ext}$major'
11659  ;;
11660
11661aix4* | aix5*)
11662  version_type=linux
11663  need_lib_prefix=no
11664  need_version=no
11665  hardcode_into_libs=yes
11666  if test "$host_cpu" = ia64; then
11667    # AIX 5 supports IA64
11668    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11669    shlibpath_var=LD_LIBRARY_PATH
11670  else
11671    # With GCC up to 2.95.x, collect2 would create an import file
11672    # for dependence libraries.  The import file would start with
11673    # the line `#! .'.  This would cause the generated library to
11674    # depend on `.', always an invalid library.  This was fixed in
11675    # development snapshots of GCC prior to 3.0.
11676    case $host_os in
11677      aix4 | aix4.[01] | aix4.[01].*)
11678      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11679	   echo ' yes '
11680	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11681	:
11682      else
11683	can_build_shared=no
11684      fi
11685      ;;
11686    esac
11687    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11688    # soname into executable. Probably we can add versioning support to
11689    # collect2, so additional links can be useful in future.
11690    if test "$aix_use_runtimelinking" = yes; then
11691      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11692      # instead of lib<name>.a to let people know that these are not
11693      # typical AIX shared libraries.
11694      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695    else
11696      # We preserve .a as extension for shared libraries through AIX4.2
11697      # and later when we are not doing run time linking.
11698      library_names_spec='${libname}${release}.a $libname.a'
11699      soname_spec='${libname}${release}${shared_ext}$major'
11700    fi
11701    shlibpath_var=LIBPATH
11702  fi
11703  ;;
11704
11705amigaos*)
11706  library_names_spec='$libname.ixlibrary $libname.a'
11707  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11708  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'
11709  ;;
11710
11711beos*)
11712  library_names_spec='${libname}${shared_ext}'
11713  dynamic_linker="$host_os ld.so"
11714  shlibpath_var=LIBRARY_PATH
11715  ;;
11716
11717bsdi[45]*)
11718  version_type=linux
11719  need_version=no
11720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721  soname_spec='${libname}${release}${shared_ext}$major'
11722  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11723  shlibpath_var=LD_LIBRARY_PATH
11724  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11725  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11726  # the default ld.so.conf also contains /usr/contrib/lib and
11727  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11728  # libtool to hard-code these into programs
11729  ;;
11730
11731cygwin* | mingw* | pw32*)
11732  version_type=windows
11733  shrext_cmds=".dll"
11734  need_version=no
11735  need_lib_prefix=no
11736
11737  case $GCC,$host_os in
11738  yes,cygwin* | yes,mingw* | yes,pw32*)
11739    library_names_spec='$libname.dll.a'
11740    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11741    postinstall_cmds='base_file=`basename \${file}`~
11742      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11743      dldir=$destdir/`dirname \$dlpath`~
11744      test -d \$dldir || mkdir -p \$dldir~
11745      $install_prog $dir/$dlname \$dldir/$dlname~
11746      chmod a+x \$dldir/$dlname'
11747    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11748      dlpath=$dir/\$dldll~
11749       $rm \$dlpath'
11750    shlibpath_overrides_runpath=yes
11751
11752    case $host_os in
11753    cygwin*)
11754      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11755      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11756      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11757      ;;
11758    mingw*)
11759      # MinGW DLLs use traditional 'lib' prefix
11760      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11761      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11762      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11763        # It is most probably a Windows format PATH printed by
11764        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11765        # path with ; separators, and with drive letters. We can handle the
11766        # drive letters (cygwin fileutils understands them), so leave them,
11767        # especially as we might pass files found there to a mingw objdump,
11768        # which wouldn't understand a cygwinified path. Ahh.
11769        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11770      else
11771        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11772      fi
11773      ;;
11774    pw32*)
11775      # pw32 DLLs use 'pw' prefix rather than 'lib'
11776      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11777      ;;
11778    esac
11779    ;;
11780
11781  *)
11782    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11783    ;;
11784  esac
11785  dynamic_linker='Win32 ld.exe'
11786  # FIXME: first we should search . and the directory the executable is in
11787  shlibpath_var=PATH
11788  ;;
11789
11790darwin* | rhapsody*)
11791  dynamic_linker="$host_os dyld"
11792  version_type=darwin
11793  need_lib_prefix=no
11794  need_version=no
11795  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11796  soname_spec='${libname}${release}${major}$shared_ext'
11797  shlibpath_overrides_runpath=yes
11798  shlibpath_var=DYLD_LIBRARY_PATH
11799  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11800  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11801  if test "$GCC" = yes; then
11802    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"`
11803  else
11804    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11805  fi
11806  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11807  ;;
11808
11809dgux*)
11810  version_type=linux
11811  need_lib_prefix=no
11812  need_version=no
11813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11814  soname_spec='${libname}${release}${shared_ext}$major'
11815  shlibpath_var=LD_LIBRARY_PATH
11816  ;;
11817
11818freebsd1*)
11819  dynamic_linker=no
11820  ;;
11821
11822kfreebsd*-gnu)
11823  version_type=linux
11824  need_lib_prefix=no
11825  need_version=no
11826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11827  soname_spec='${libname}${release}${shared_ext}$major'
11828  shlibpath_var=LD_LIBRARY_PATH
11829  shlibpath_overrides_runpath=no
11830  hardcode_into_libs=yes
11831  dynamic_linker='GNU ld.so'
11832  ;;
11833
11834freebsd* | dragonfly*)
11835  # DragonFly does not have aout.  When/if they implement a new
11836  # versioning mechanism, adjust this.
11837  if test -x /usr/bin/objformat; then
11838    objformat=`/usr/bin/objformat`
11839  else
11840    case $host_os in
11841    freebsd[123]*) objformat=aout ;;
11842    *) objformat=elf ;;
11843    esac
11844  fi
11845  version_type=freebsd-$objformat
11846  case $version_type in
11847    freebsd-elf*)
11848      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11849      need_version=no
11850      need_lib_prefix=no
11851      ;;
11852    freebsd-*)
11853      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11854      need_version=yes
11855      ;;
11856  esac
11857  shlibpath_var=LD_LIBRARY_PATH
11858  case $host_os in
11859  freebsd2*)
11860    shlibpath_overrides_runpath=yes
11861    ;;
11862  freebsd3.[01]* | freebsdelf3.[01]*)
11863    shlibpath_overrides_runpath=yes
11864    hardcode_into_libs=yes
11865    ;;
11866  *) # from 3.2 on
11867    shlibpath_overrides_runpath=no
11868    hardcode_into_libs=yes
11869    ;;
11870  esac
11871  ;;
11872
11873gnu*)
11874  version_type=linux
11875  need_lib_prefix=no
11876  need_version=no
11877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11878  soname_spec='${libname}${release}${shared_ext}$major'
11879  shlibpath_var=LD_LIBRARY_PATH
11880  hardcode_into_libs=yes
11881  ;;
11882
11883hpux9* | hpux10* | hpux11*)
11884  # Give a soname corresponding to the major version so that dld.sl refuses to
11885  # link against other versions.
11886  version_type=sunos
11887  need_lib_prefix=no
11888  need_version=no
11889  case $host_cpu in
11890  ia64*)
11891    shrext_cmds='.so'
11892    hardcode_into_libs=yes
11893    dynamic_linker="$host_os dld.so"
11894    shlibpath_var=LD_LIBRARY_PATH
11895    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11896    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11897    soname_spec='${libname}${release}${shared_ext}$major'
11898    if test "X$HPUX_IA64_MODE" = X32; then
11899      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11900    else
11901      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11902    fi
11903    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11904    ;;
11905   hppa*64*)
11906     shrext_cmds='.sl'
11907     hardcode_into_libs=yes
11908     dynamic_linker="$host_os dld.sl"
11909     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11910     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11911     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11912     soname_spec='${libname}${release}${shared_ext}$major'
11913     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11914     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11915     ;;
11916   *)
11917    shrext_cmds='.sl'
11918    dynamic_linker="$host_os dld.sl"
11919    shlibpath_var=SHLIB_PATH
11920    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11921    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11922    soname_spec='${libname}${release}${shared_ext}$major'
11923    ;;
11924  esac
11925  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11926  postinstall_cmds='chmod 555 $lib'
11927  ;;
11928
11929irix5* | irix6* | nonstopux*)
11930  case $host_os in
11931    nonstopux*) version_type=nonstopux ;;
11932    *)
11933	if test "$lt_cv_prog_gnu_ld" = yes; then
11934		version_type=linux
11935	else
11936		version_type=irix
11937	fi ;;
11938  esac
11939  need_lib_prefix=no
11940  need_version=no
11941  soname_spec='${libname}${release}${shared_ext}$major'
11942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11943  case $host_os in
11944  irix5* | nonstopux*)
11945    libsuff= shlibsuff=
11946    ;;
11947  *)
11948    case $LD in # libtool.m4 will add one of these switches to LD
11949    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11950      libsuff= shlibsuff= libmagic=32-bit;;
11951    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11952      libsuff=32 shlibsuff=N32 libmagic=N32;;
11953    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11954      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11955    *) libsuff= shlibsuff= libmagic=never-match;;
11956    esac
11957    ;;
11958  esac
11959  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11960  shlibpath_overrides_runpath=no
11961  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11962  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11963  hardcode_into_libs=yes
11964  ;;
11965
11966# No shared lib support for Linux oldld, aout, or coff.
11967linux*oldld* | linux*aout* | linux*coff*)
11968  dynamic_linker=no
11969  ;;
11970
11971# This must be Linux ELF.
11972linux*)
11973  version_type=linux
11974  need_lib_prefix=no
11975  need_version=no
11976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977  soname_spec='${libname}${release}${shared_ext}$major'
11978  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11979  shlibpath_var=LD_LIBRARY_PATH
11980  shlibpath_overrides_runpath=no
11981  # This implies no fast_install, which is unacceptable.
11982  # Some rework will be needed to allow for fast_install
11983  # before this can be enabled.
11984  hardcode_into_libs=yes
11985
11986  # Append ld.so.conf contents to the search path
11987  if test -f /etc/ld.so.conf; then
11988    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' ' '`
11989    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11990  fi
11991
11992  # We used to test for /lib/ld.so.1 and disable shared libraries on
11993  # powerpc, because MkLinux only supported shared libraries with the
11994  # GNU dynamic linker.  Since this was broken with cross compilers,
11995  # most powerpc-linux boxes support dynamic linking these days and
11996  # people can always --disable-shared, the test was removed, and we
11997  # assume the GNU/Linux dynamic linker is in use.
11998  dynamic_linker='GNU/Linux ld.so'
11999  ;;
12000
12001knetbsd*-gnu)
12002  version_type=linux
12003  need_lib_prefix=no
12004  need_version=no
12005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12006  soname_spec='${libname}${release}${shared_ext}$major'
12007  shlibpath_var=LD_LIBRARY_PATH
12008  shlibpath_overrides_runpath=no
12009  hardcode_into_libs=yes
12010  dynamic_linker='GNU ld.so'
12011  ;;
12012
12013netbsd*)
12014  version_type=sunos
12015  need_lib_prefix=no
12016  need_version=no
12017  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12018    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12019    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12020    dynamic_linker='NetBSD (a.out) ld.so'
12021  else
12022    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12023    soname_spec='${libname}${release}${shared_ext}$major'
12024    dynamic_linker='NetBSD ld.elf_so'
12025  fi
12026  shlibpath_var=LD_LIBRARY_PATH
12027  shlibpath_overrides_runpath=yes
12028  hardcode_into_libs=yes
12029  ;;
12030
12031newsos6)
12032  version_type=linux
12033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034  shlibpath_var=LD_LIBRARY_PATH
12035  shlibpath_overrides_runpath=yes
12036  ;;
12037
12038nto-qnx*)
12039  version_type=linux
12040  need_lib_prefix=no
12041  need_version=no
12042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12043  soname_spec='${libname}${release}${shared_ext}$major'
12044  shlibpath_var=LD_LIBRARY_PATH
12045  shlibpath_overrides_runpath=yes
12046  ;;
12047
12048openbsd*)
12049  version_type=sunos
12050  need_lib_prefix=no
12051  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12052  case $host_os in
12053    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12054    *)                         need_version=no  ;;
12055  esac
12056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12057  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12058  shlibpath_var=LD_LIBRARY_PATH
12059  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12060    case $host_os in
12061      openbsd2.[89] | openbsd2.[89].*)
12062	shlibpath_overrides_runpath=no
12063	;;
12064      *)
12065	shlibpath_overrides_runpath=yes
12066	;;
12067      esac
12068  else
12069    shlibpath_overrides_runpath=yes
12070  fi
12071  ;;
12072
12073os2*)
12074  libname_spec='$name'
12075  shrext_cmds=".dll"
12076  need_lib_prefix=no
12077  library_names_spec='$libname${shared_ext} $libname.a'
12078  dynamic_linker='OS/2 ld.exe'
12079  shlibpath_var=LIBPATH
12080  ;;
12081
12082osf3* | osf4* | osf5*)
12083  version_type=osf
12084  need_lib_prefix=no
12085  need_version=no
12086  soname_spec='${libname}${release}${shared_ext}$major'
12087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12088  shlibpath_var=LD_LIBRARY_PATH
12089  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12090  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12091  ;;
12092
12093sco3.2v5*)
12094  version_type=osf
12095  soname_spec='${libname}${release}${shared_ext}$major'
12096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097  shlibpath_var=LD_LIBRARY_PATH
12098  ;;
12099
12100solaris*)
12101  version_type=linux
12102  need_lib_prefix=no
12103  need_version=no
12104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105  soname_spec='${libname}${release}${shared_ext}$major'
12106  shlibpath_var=LD_LIBRARY_PATH
12107  shlibpath_overrides_runpath=yes
12108  hardcode_into_libs=yes
12109  # ldd complains unless libraries are executable
12110  postinstall_cmds='chmod +x $lib'
12111  ;;
12112
12113sunos4*)
12114  version_type=sunos
12115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12116  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12117  shlibpath_var=LD_LIBRARY_PATH
12118  shlibpath_overrides_runpath=yes
12119  if test "$with_gnu_ld" = yes; then
12120    need_lib_prefix=no
12121  fi
12122  need_version=yes
12123  ;;
12124
12125sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12126  version_type=linux
12127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12128  soname_spec='${libname}${release}${shared_ext}$major'
12129  shlibpath_var=LD_LIBRARY_PATH
12130  case $host_vendor in
12131    sni)
12132      shlibpath_overrides_runpath=no
12133      need_lib_prefix=no
12134      export_dynamic_flag_spec='${wl}-Blargedynsym'
12135      runpath_var=LD_RUN_PATH
12136      ;;
12137    siemens)
12138      need_lib_prefix=no
12139      ;;
12140    motorola)
12141      need_lib_prefix=no
12142      need_version=no
12143      shlibpath_overrides_runpath=no
12144      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12145      ;;
12146  esac
12147  ;;
12148
12149sysv4*MP*)
12150  if test -d /usr/nec ;then
12151    version_type=linux
12152    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12153    soname_spec='$libname${shared_ext}.$major'
12154    shlibpath_var=LD_LIBRARY_PATH
12155  fi
12156  ;;
12157
12158uts4*)
12159  version_type=linux
12160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12161  soname_spec='${libname}${release}${shared_ext}$major'
12162  shlibpath_var=LD_LIBRARY_PATH
12163  ;;
12164
12165*)
12166  dynamic_linker=no
12167  ;;
12168esac
12169echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12170echo "${ECHO_T}$dynamic_linker" >&6
12171test "$dynamic_linker" = no && can_build_shared=no
12172
12173echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12174echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12175hardcode_action_CXX=
12176if test -n "$hardcode_libdir_flag_spec_CXX" || \
12177   test -n "$runpath_var_CXX" || \
12178   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12179
12180  # We can hardcode non-existant directories.
12181  if test "$hardcode_direct_CXX" != no &&
12182     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12183     # have to relink, otherwise we might link with an installed library
12184     # when we should be linking with a yet-to-be-installed one
12185     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12186     test "$hardcode_minus_L_CXX" != no; then
12187    # Linking always hardcodes the temporary library directory.
12188    hardcode_action_CXX=relink
12189  else
12190    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12191    hardcode_action_CXX=immediate
12192  fi
12193else
12194  # We cannot hardcode anything, or else we can only hardcode existing
12195  # directories.
12196  hardcode_action_CXX=unsupported
12197fi
12198echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12199echo "${ECHO_T}$hardcode_action_CXX" >&6
12200
12201if test "$hardcode_action_CXX" = relink; then
12202  # Fast installation is not supported
12203  enable_fast_install=no
12204elif test "$shlibpath_overrides_runpath" = yes ||
12205     test "$enable_shared" = no; then
12206  # Fast installation is not necessary
12207  enable_fast_install=needless
12208fi
12209
12210striplib=
12211old_striplib=
12212echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12213echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12214if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12215  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12216  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12217  echo "$as_me:$LINENO: result: yes" >&5
12218echo "${ECHO_T}yes" >&6
12219else
12220# FIXME - insert some real tests, host_os isn't really good enough
12221  case $host_os in
12222   darwin*)
12223       if test -n "$STRIP" ; then
12224         striplib="$STRIP -x"
12225         echo "$as_me:$LINENO: result: yes" >&5
12226echo "${ECHO_T}yes" >&6
12227       else
12228  echo "$as_me:$LINENO: result: no" >&5
12229echo "${ECHO_T}no" >&6
12230fi
12231       ;;
12232   *)
12233  echo "$as_me:$LINENO: result: no" >&5
12234echo "${ECHO_T}no" >&6
12235    ;;
12236  esac
12237fi
12238
12239if test "x$enable_dlopen" != xyes; then
12240  enable_dlopen=unknown
12241  enable_dlopen_self=unknown
12242  enable_dlopen_self_static=unknown
12243else
12244  lt_cv_dlopen=no
12245  lt_cv_dlopen_libs=
12246
12247  case $host_os in
12248  beos*)
12249    lt_cv_dlopen="load_add_on"
12250    lt_cv_dlopen_libs=
12251    lt_cv_dlopen_self=yes
12252    ;;
12253
12254  mingw* | pw32*)
12255    lt_cv_dlopen="LoadLibrary"
12256    lt_cv_dlopen_libs=
12257   ;;
12258
12259  cygwin*)
12260    lt_cv_dlopen="dlopen"
12261    lt_cv_dlopen_libs=
12262   ;;
12263
12264  darwin*)
12265  # if libdl is installed we need to link against it
12266    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12267echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12268if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12269  echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271  ac_check_lib_save_LIBS=$LIBS
12272LIBS="-ldl  $LIBS"
12273cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h.  */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h.  */
12279
12280/* Override any gcc2 internal prototype to avoid an error.  */
12281#ifdef __cplusplus
12282extern "C"
12283#endif
12284/* We use char because int might match the return type of a gcc2
12285   builtin and then its argument prototype would still apply.  */
12286char dlopen ();
12287int
12288main ()
12289{
12290dlopen ();
12291  ;
12292  return 0;
12293}
12294_ACEOF
12295rm -f conftest.$ac_objext conftest$ac_exeext
12296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297  (eval $ac_link) 2>conftest.er1
12298  ac_status=$?
12299  grep -v '^ *+' conftest.er1 >conftest.err
12300  rm -f conftest.er1
12301  cat conftest.err >&5
12302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303  (exit $ac_status); } &&
12304	 { ac_try='test -z "$ac_cxx_werror_flag"
12305			 || test ! -s conftest.err'
12306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307  (eval $ac_try) 2>&5
12308  ac_status=$?
12309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310  (exit $ac_status); }; } &&
12311	 { ac_try='test -s conftest$ac_exeext'
12312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313  (eval $ac_try) 2>&5
12314  ac_status=$?
12315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316  (exit $ac_status); }; }; then
12317  ac_cv_lib_dl_dlopen=yes
12318else
12319  echo "$as_me: failed program was:" >&5
12320sed 's/^/| /' conftest.$ac_ext >&5
12321
12322ac_cv_lib_dl_dlopen=no
12323fi
12324rm -f conftest.err conftest.$ac_objext \
12325      conftest$ac_exeext conftest.$ac_ext
12326LIBS=$ac_check_lib_save_LIBS
12327fi
12328echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12329echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12330if test $ac_cv_lib_dl_dlopen = yes; then
12331  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12332else
12333
12334    lt_cv_dlopen="dyld"
12335    lt_cv_dlopen_libs=
12336    lt_cv_dlopen_self=yes
12337
12338fi
12339
12340   ;;
12341
12342  *)
12343    echo "$as_me:$LINENO: checking for shl_load" >&5
12344echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12345if test "${ac_cv_func_shl_load+set}" = set; then
12346  echo $ECHO_N "(cached) $ECHO_C" >&6
12347else
12348  cat >conftest.$ac_ext <<_ACEOF
12349/* confdefs.h.  */
12350_ACEOF
12351cat confdefs.h >>conftest.$ac_ext
12352cat >>conftest.$ac_ext <<_ACEOF
12353/* end confdefs.h.  */
12354/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12356#define shl_load innocuous_shl_load
12357
12358/* System header to define __stub macros and hopefully few prototypes,
12359    which can conflict with char shl_load (); below.
12360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12361    <limits.h> exists even on freestanding compilers.  */
12362
12363#ifdef __STDC__
12364# include <limits.h>
12365#else
12366# include <assert.h>
12367#endif
12368
12369#undef shl_load
12370
12371/* Override any gcc2 internal prototype to avoid an error.  */
12372#ifdef __cplusplus
12373extern "C"
12374{
12375#endif
12376/* We use char because int might match the return type of a gcc2
12377   builtin and then its argument prototype would still apply.  */
12378char shl_load ();
12379/* The GNU C library defines this for functions which it implements
12380    to always fail with ENOSYS.  Some functions are actually named
12381    something starting with __ and the normal name is an alias.  */
12382#if defined (__stub_shl_load) || defined (__stub___shl_load)
12383choke me
12384#else
12385char (*f) () = shl_load;
12386#endif
12387#ifdef __cplusplus
12388}
12389#endif
12390
12391int
12392main ()
12393{
12394return f != shl_load;
12395  ;
12396  return 0;
12397}
12398_ACEOF
12399rm -f conftest.$ac_objext conftest$ac_exeext
12400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401  (eval $ac_link) 2>conftest.er1
12402  ac_status=$?
12403  grep -v '^ *+' conftest.er1 >conftest.err
12404  rm -f conftest.er1
12405  cat conftest.err >&5
12406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407  (exit $ac_status); } &&
12408	 { ac_try='test -z "$ac_cxx_werror_flag"
12409			 || test ! -s conftest.err'
12410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411  (eval $ac_try) 2>&5
12412  ac_status=$?
12413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414  (exit $ac_status); }; } &&
12415	 { ac_try='test -s conftest$ac_exeext'
12416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417  (eval $ac_try) 2>&5
12418  ac_status=$?
12419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420  (exit $ac_status); }; }; then
12421  ac_cv_func_shl_load=yes
12422else
12423  echo "$as_me: failed program was:" >&5
12424sed 's/^/| /' conftest.$ac_ext >&5
12425
12426ac_cv_func_shl_load=no
12427fi
12428rm -f conftest.err conftest.$ac_objext \
12429      conftest$ac_exeext conftest.$ac_ext
12430fi
12431echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12432echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12433if test $ac_cv_func_shl_load = yes; then
12434  lt_cv_dlopen="shl_load"
12435else
12436  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12437echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12438if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12439  echo $ECHO_N "(cached) $ECHO_C" >&6
12440else
12441  ac_check_lib_save_LIBS=$LIBS
12442LIBS="-ldld  $LIBS"
12443cat >conftest.$ac_ext <<_ACEOF
12444/* confdefs.h.  */
12445_ACEOF
12446cat confdefs.h >>conftest.$ac_ext
12447cat >>conftest.$ac_ext <<_ACEOF
12448/* end confdefs.h.  */
12449
12450/* Override any gcc2 internal prototype to avoid an error.  */
12451#ifdef __cplusplus
12452extern "C"
12453#endif
12454/* We use char because int might match the return type of a gcc2
12455   builtin and then its argument prototype would still apply.  */
12456char shl_load ();
12457int
12458main ()
12459{
12460shl_load ();
12461  ;
12462  return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext conftest$ac_exeext
12466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467  (eval $ac_link) 2>conftest.er1
12468  ac_status=$?
12469  grep -v '^ *+' conftest.er1 >conftest.err
12470  rm -f conftest.er1
12471  cat conftest.err >&5
12472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473  (exit $ac_status); } &&
12474	 { ac_try='test -z "$ac_cxx_werror_flag"
12475			 || test ! -s conftest.err'
12476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477  (eval $ac_try) 2>&5
12478  ac_status=$?
12479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480  (exit $ac_status); }; } &&
12481	 { ac_try='test -s conftest$ac_exeext'
12482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483  (eval $ac_try) 2>&5
12484  ac_status=$?
12485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486  (exit $ac_status); }; }; then
12487  ac_cv_lib_dld_shl_load=yes
12488else
12489  echo "$as_me: failed program was:" >&5
12490sed 's/^/| /' conftest.$ac_ext >&5
12491
12492ac_cv_lib_dld_shl_load=no
12493fi
12494rm -f conftest.err conftest.$ac_objext \
12495      conftest$ac_exeext conftest.$ac_ext
12496LIBS=$ac_check_lib_save_LIBS
12497fi
12498echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12499echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12500if test $ac_cv_lib_dld_shl_load = yes; then
12501  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12502else
12503  echo "$as_me:$LINENO: checking for dlopen" >&5
12504echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12505if test "${ac_cv_func_dlopen+set}" = set; then
12506  echo $ECHO_N "(cached) $ECHO_C" >&6
12507else
12508  cat >conftest.$ac_ext <<_ACEOF
12509/* confdefs.h.  */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
12513/* end confdefs.h.  */
12514/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12515   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12516#define dlopen innocuous_dlopen
12517
12518/* System header to define __stub macros and hopefully few prototypes,
12519    which can conflict with char dlopen (); below.
12520    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12521    <limits.h> exists even on freestanding compilers.  */
12522
12523#ifdef __STDC__
12524# include <limits.h>
12525#else
12526# include <assert.h>
12527#endif
12528
12529#undef dlopen
12530
12531/* Override any gcc2 internal prototype to avoid an error.  */
12532#ifdef __cplusplus
12533extern "C"
12534{
12535#endif
12536/* We use char because int might match the return type of a gcc2
12537   builtin and then its argument prototype would still apply.  */
12538char dlopen ();
12539/* The GNU C library defines this for functions which it implements
12540    to always fail with ENOSYS.  Some functions are actually named
12541    something starting with __ and the normal name is an alias.  */
12542#if defined (__stub_dlopen) || defined (__stub___dlopen)
12543choke me
12544#else
12545char (*f) () = dlopen;
12546#endif
12547#ifdef __cplusplus
12548}
12549#endif
12550
12551int
12552main ()
12553{
12554return f != dlopen;
12555  ;
12556  return 0;
12557}
12558_ACEOF
12559rm -f conftest.$ac_objext conftest$ac_exeext
12560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12561  (eval $ac_link) 2>conftest.er1
12562  ac_status=$?
12563  grep -v '^ *+' conftest.er1 >conftest.err
12564  rm -f conftest.er1
12565  cat conftest.err >&5
12566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567  (exit $ac_status); } &&
12568	 { ac_try='test -z "$ac_cxx_werror_flag"
12569			 || test ! -s conftest.err'
12570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571  (eval $ac_try) 2>&5
12572  ac_status=$?
12573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574  (exit $ac_status); }; } &&
12575	 { ac_try='test -s conftest$ac_exeext'
12576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577  (eval $ac_try) 2>&5
12578  ac_status=$?
12579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580  (exit $ac_status); }; }; then
12581  ac_cv_func_dlopen=yes
12582else
12583  echo "$as_me: failed program was:" >&5
12584sed 's/^/| /' conftest.$ac_ext >&5
12585
12586ac_cv_func_dlopen=no
12587fi
12588rm -f conftest.err conftest.$ac_objext \
12589      conftest$ac_exeext conftest.$ac_ext
12590fi
12591echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12592echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12593if test $ac_cv_func_dlopen = yes; then
12594  lt_cv_dlopen="dlopen"
12595else
12596  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12597echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12598if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12599  echo $ECHO_N "(cached) $ECHO_C" >&6
12600else
12601  ac_check_lib_save_LIBS=$LIBS
12602LIBS="-ldl  $LIBS"
12603cat >conftest.$ac_ext <<_ACEOF
12604/* confdefs.h.  */
12605_ACEOF
12606cat confdefs.h >>conftest.$ac_ext
12607cat >>conftest.$ac_ext <<_ACEOF
12608/* end confdefs.h.  */
12609
12610/* Override any gcc2 internal prototype to avoid an error.  */
12611#ifdef __cplusplus
12612extern "C"
12613#endif
12614/* We use char because int might match the return type of a gcc2
12615   builtin and then its argument prototype would still apply.  */
12616char dlopen ();
12617int
12618main ()
12619{
12620dlopen ();
12621  ;
12622  return 0;
12623}
12624_ACEOF
12625rm -f conftest.$ac_objext conftest$ac_exeext
12626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12627  (eval $ac_link) 2>conftest.er1
12628  ac_status=$?
12629  grep -v '^ *+' conftest.er1 >conftest.err
12630  rm -f conftest.er1
12631  cat conftest.err >&5
12632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633  (exit $ac_status); } &&
12634	 { ac_try='test -z "$ac_cxx_werror_flag"
12635			 || test ! -s conftest.err'
12636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637  (eval $ac_try) 2>&5
12638  ac_status=$?
12639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640  (exit $ac_status); }; } &&
12641	 { ac_try='test -s conftest$ac_exeext'
12642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643  (eval $ac_try) 2>&5
12644  ac_status=$?
12645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646  (exit $ac_status); }; }; then
12647  ac_cv_lib_dl_dlopen=yes
12648else
12649  echo "$as_me: failed program was:" >&5
12650sed 's/^/| /' conftest.$ac_ext >&5
12651
12652ac_cv_lib_dl_dlopen=no
12653fi
12654rm -f conftest.err conftest.$ac_objext \
12655      conftest$ac_exeext conftest.$ac_ext
12656LIBS=$ac_check_lib_save_LIBS
12657fi
12658echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12659echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12660if test $ac_cv_lib_dl_dlopen = yes; then
12661  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12662else
12663  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12664echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12665if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12666  echo $ECHO_N "(cached) $ECHO_C" >&6
12667else
12668  ac_check_lib_save_LIBS=$LIBS
12669LIBS="-lsvld  $LIBS"
12670cat >conftest.$ac_ext <<_ACEOF
12671/* confdefs.h.  */
12672_ACEOF
12673cat confdefs.h >>conftest.$ac_ext
12674cat >>conftest.$ac_ext <<_ACEOF
12675/* end confdefs.h.  */
12676
12677/* Override any gcc2 internal prototype to avoid an error.  */
12678#ifdef __cplusplus
12679extern "C"
12680#endif
12681/* We use char because int might match the return type of a gcc2
12682   builtin and then its argument prototype would still apply.  */
12683char dlopen ();
12684int
12685main ()
12686{
12687dlopen ();
12688  ;
12689  return 0;
12690}
12691_ACEOF
12692rm -f conftest.$ac_objext conftest$ac_exeext
12693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12694  (eval $ac_link) 2>conftest.er1
12695  ac_status=$?
12696  grep -v '^ *+' conftest.er1 >conftest.err
12697  rm -f conftest.er1
12698  cat conftest.err >&5
12699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700  (exit $ac_status); } &&
12701	 { ac_try='test -z "$ac_cxx_werror_flag"
12702			 || test ! -s conftest.err'
12703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704  (eval $ac_try) 2>&5
12705  ac_status=$?
12706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707  (exit $ac_status); }; } &&
12708	 { ac_try='test -s conftest$ac_exeext'
12709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710  (eval $ac_try) 2>&5
12711  ac_status=$?
12712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713  (exit $ac_status); }; }; then
12714  ac_cv_lib_svld_dlopen=yes
12715else
12716  echo "$as_me: failed program was:" >&5
12717sed 's/^/| /' conftest.$ac_ext >&5
12718
12719ac_cv_lib_svld_dlopen=no
12720fi
12721rm -f conftest.err conftest.$ac_objext \
12722      conftest$ac_exeext conftest.$ac_ext
12723LIBS=$ac_check_lib_save_LIBS
12724fi
12725echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12726echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12727if test $ac_cv_lib_svld_dlopen = yes; then
12728  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12729else
12730  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12731echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12732if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12733  echo $ECHO_N "(cached) $ECHO_C" >&6
12734else
12735  ac_check_lib_save_LIBS=$LIBS
12736LIBS="-ldld  $LIBS"
12737cat >conftest.$ac_ext <<_ACEOF
12738/* confdefs.h.  */
12739_ACEOF
12740cat confdefs.h >>conftest.$ac_ext
12741cat >>conftest.$ac_ext <<_ACEOF
12742/* end confdefs.h.  */
12743
12744/* Override any gcc2 internal prototype to avoid an error.  */
12745#ifdef __cplusplus
12746extern "C"
12747#endif
12748/* We use char because int might match the return type of a gcc2
12749   builtin and then its argument prototype would still apply.  */
12750char dld_link ();
12751int
12752main ()
12753{
12754dld_link ();
12755  ;
12756  return 0;
12757}
12758_ACEOF
12759rm -f conftest.$ac_objext conftest$ac_exeext
12760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12761  (eval $ac_link) 2>conftest.er1
12762  ac_status=$?
12763  grep -v '^ *+' conftest.er1 >conftest.err
12764  rm -f conftest.er1
12765  cat conftest.err >&5
12766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767  (exit $ac_status); } &&
12768	 { ac_try='test -z "$ac_cxx_werror_flag"
12769			 || test ! -s conftest.err'
12770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771  (eval $ac_try) 2>&5
12772  ac_status=$?
12773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774  (exit $ac_status); }; } &&
12775	 { ac_try='test -s conftest$ac_exeext'
12776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777  (eval $ac_try) 2>&5
12778  ac_status=$?
12779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780  (exit $ac_status); }; }; then
12781  ac_cv_lib_dld_dld_link=yes
12782else
12783  echo "$as_me: failed program was:" >&5
12784sed 's/^/| /' conftest.$ac_ext >&5
12785
12786ac_cv_lib_dld_dld_link=no
12787fi
12788rm -f conftest.err conftest.$ac_objext \
12789      conftest$ac_exeext conftest.$ac_ext
12790LIBS=$ac_check_lib_save_LIBS
12791fi
12792echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12793echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12794if test $ac_cv_lib_dld_dld_link = yes; then
12795  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12796fi
12797
12798
12799fi
12800
12801
12802fi
12803
12804
12805fi
12806
12807
12808fi
12809
12810
12811fi
12812
12813    ;;
12814  esac
12815
12816  if test "x$lt_cv_dlopen" != xno; then
12817    enable_dlopen=yes
12818  else
12819    enable_dlopen=no
12820  fi
12821
12822  case $lt_cv_dlopen in
12823  dlopen)
12824    save_CPPFLAGS="$CPPFLAGS"
12825    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12826
12827    save_LDFLAGS="$LDFLAGS"
12828    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12829
12830    save_LIBS="$LIBS"
12831    LIBS="$lt_cv_dlopen_libs $LIBS"
12832
12833    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12834echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12835if test "${lt_cv_dlopen_self+set}" = set; then
12836  echo $ECHO_N "(cached) $ECHO_C" >&6
12837else
12838  	  if test "$cross_compiling" = yes; then :
12839  lt_cv_dlopen_self=cross
12840else
12841  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12842  lt_status=$lt_dlunknown
12843  cat > conftest.$ac_ext <<EOF
12844#line 12844 "configure"
12845#include "confdefs.h"
12846
12847#if HAVE_DLFCN_H
12848#include <dlfcn.h>
12849#endif
12850
12851#include <stdio.h>
12852
12853#ifdef RTLD_GLOBAL
12854#  define LT_DLGLOBAL		RTLD_GLOBAL
12855#else
12856#  ifdef DL_GLOBAL
12857#    define LT_DLGLOBAL		DL_GLOBAL
12858#  else
12859#    define LT_DLGLOBAL		0
12860#  endif
12861#endif
12862
12863/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12864   find out it does not work in some platform. */
12865#ifndef LT_DLLAZY_OR_NOW
12866#  ifdef RTLD_LAZY
12867#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12868#  else
12869#    ifdef DL_LAZY
12870#      define LT_DLLAZY_OR_NOW		DL_LAZY
12871#    else
12872#      ifdef RTLD_NOW
12873#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12874#      else
12875#        ifdef DL_NOW
12876#          define LT_DLLAZY_OR_NOW	DL_NOW
12877#        else
12878#          define LT_DLLAZY_OR_NOW	0
12879#        endif
12880#      endif
12881#    endif
12882#  endif
12883#endif
12884
12885#ifdef __cplusplus
12886extern "C" void exit (int);
12887#endif
12888
12889void fnord() { int i=42;}
12890int main ()
12891{
12892  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12893  int status = $lt_dlunknown;
12894
12895  if (self)
12896    {
12897      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12898      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12899      /* dlclose (self); */
12900    }
12901
12902    exit (status);
12903}
12904EOF
12905  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12906  (eval $ac_link) 2>&5
12907  ac_status=$?
12908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12910    (./conftest; exit; ) >&5 2>/dev/null
12911    lt_status=$?
12912    case x$lt_status in
12913      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12914      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12915      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12916    esac
12917  else :
12918    # compilation failed
12919    lt_cv_dlopen_self=no
12920  fi
12921fi
12922rm -fr conftest*
12923
12924
12925fi
12926echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12927echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12928
12929    if test "x$lt_cv_dlopen_self" = xyes; then
12930      LDFLAGS="$LDFLAGS $link_static_flag"
12931      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12932echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12933if test "${lt_cv_dlopen_self_static+set}" = set; then
12934  echo $ECHO_N "(cached) $ECHO_C" >&6
12935else
12936  	  if test "$cross_compiling" = yes; then :
12937  lt_cv_dlopen_self_static=cross
12938else
12939  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12940  lt_status=$lt_dlunknown
12941  cat > conftest.$ac_ext <<EOF
12942#line 12942 "configure"
12943#include "confdefs.h"
12944
12945#if HAVE_DLFCN_H
12946#include <dlfcn.h>
12947#endif
12948
12949#include <stdio.h>
12950
12951#ifdef RTLD_GLOBAL
12952#  define LT_DLGLOBAL		RTLD_GLOBAL
12953#else
12954#  ifdef DL_GLOBAL
12955#    define LT_DLGLOBAL		DL_GLOBAL
12956#  else
12957#    define LT_DLGLOBAL		0
12958#  endif
12959#endif
12960
12961/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12962   find out it does not work in some platform. */
12963#ifndef LT_DLLAZY_OR_NOW
12964#  ifdef RTLD_LAZY
12965#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12966#  else
12967#    ifdef DL_LAZY
12968#      define LT_DLLAZY_OR_NOW		DL_LAZY
12969#    else
12970#      ifdef RTLD_NOW
12971#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12972#      else
12973#        ifdef DL_NOW
12974#          define LT_DLLAZY_OR_NOW	DL_NOW
12975#        else
12976#          define LT_DLLAZY_OR_NOW	0
12977#        endif
12978#      endif
12979#    endif
12980#  endif
12981#endif
12982
12983#ifdef __cplusplus
12984extern "C" void exit (int);
12985#endif
12986
12987void fnord() { int i=42;}
12988int main ()
12989{
12990  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12991  int status = $lt_dlunknown;
12992
12993  if (self)
12994    {
12995      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12996      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12997      /* dlclose (self); */
12998    }
12999
13000    exit (status);
13001}
13002EOF
13003  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13004  (eval $ac_link) 2>&5
13005  ac_status=$?
13006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13008    (./conftest; exit; ) >&5 2>/dev/null
13009    lt_status=$?
13010    case x$lt_status in
13011      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13012      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13013      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13014    esac
13015  else :
13016    # compilation failed
13017    lt_cv_dlopen_self_static=no
13018  fi
13019fi
13020rm -fr conftest*
13021
13022
13023fi
13024echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13025echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13026    fi
13027
13028    CPPFLAGS="$save_CPPFLAGS"
13029    LDFLAGS="$save_LDFLAGS"
13030    LIBS="$save_LIBS"
13031    ;;
13032  esac
13033
13034  case $lt_cv_dlopen_self in
13035  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13036  *) enable_dlopen_self=unknown ;;
13037  esac
13038
13039  case $lt_cv_dlopen_self_static in
13040  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13041  *) enable_dlopen_self_static=unknown ;;
13042  esac
13043fi
13044
13045
13046# The else clause should only fire when bootstrapping the
13047# libtool distribution, otherwise you forgot to ship ltmain.sh
13048# with your package, and you will get complaints that there are
13049# no rules to generate ltmain.sh.
13050if test -f "$ltmain"; then
13051  # See if we are running on zsh, and set the options which allow our commands through
13052  # without removal of \ escapes.
13053  if test -n "${ZSH_VERSION+set}" ; then
13054    setopt NO_GLOB_SUBST
13055  fi
13056  # Now quote all the things that may contain metacharacters while being
13057  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13058  # variables and quote the copies for generation of the libtool script.
13059  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13060    SED SHELL STRIP \
13061    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13062    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13063    deplibs_check_method reload_flag reload_cmds need_locks \
13064    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13065    lt_cv_sys_global_symbol_to_c_name_address \
13066    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13067    old_postinstall_cmds old_postuninstall_cmds \
13068    compiler_CXX \
13069    CC_CXX \
13070    LD_CXX \
13071    lt_prog_compiler_wl_CXX \
13072    lt_prog_compiler_pic_CXX \
13073    lt_prog_compiler_static_CXX \
13074    lt_prog_compiler_no_builtin_flag_CXX \
13075    export_dynamic_flag_spec_CXX \
13076    thread_safe_flag_spec_CXX \
13077    whole_archive_flag_spec_CXX \
13078    enable_shared_with_static_runtimes_CXX \
13079    old_archive_cmds_CXX \
13080    old_archive_from_new_cmds_CXX \
13081    predep_objects_CXX \
13082    postdep_objects_CXX \
13083    predeps_CXX \
13084    postdeps_CXX \
13085    compiler_lib_search_path_CXX \
13086    archive_cmds_CXX \
13087    archive_expsym_cmds_CXX \
13088    postinstall_cmds_CXX \
13089    postuninstall_cmds_CXX \
13090    old_archive_from_expsyms_cmds_CXX \
13091    allow_undefined_flag_CXX \
13092    no_undefined_flag_CXX \
13093    export_symbols_cmds_CXX \
13094    hardcode_libdir_flag_spec_CXX \
13095    hardcode_libdir_flag_spec_ld_CXX \
13096    hardcode_libdir_separator_CXX \
13097    hardcode_automatic_CXX \
13098    module_cmds_CXX \
13099    module_expsym_cmds_CXX \
13100    lt_cv_prog_compiler_c_o_CXX \
13101    exclude_expsyms_CXX \
13102    include_expsyms_CXX; do
13103
13104    case $var in
13105    old_archive_cmds_CXX | \
13106    old_archive_from_new_cmds_CXX | \
13107    archive_cmds_CXX | \
13108    archive_expsym_cmds_CXX | \
13109    module_cmds_CXX | \
13110    module_expsym_cmds_CXX | \
13111    old_archive_from_expsyms_cmds_CXX | \
13112    export_symbols_cmds_CXX | \
13113    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13114    postinstall_cmds | postuninstall_cmds | \
13115    old_postinstall_cmds | old_postuninstall_cmds | \
13116    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13117      # Double-quote double-evaled strings.
13118      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13119      ;;
13120    *)
13121      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13122      ;;
13123    esac
13124  done
13125
13126  case $lt_echo in
13127  *'\$0 --fallback-echo"')
13128    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13129    ;;
13130  esac
13131
13132cfgfile="$ofile"
13133
13134  cat <<__EOF__ >> "$cfgfile"
13135# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13136
13137# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13138
13139# Shell to use when invoking shell scripts.
13140SHELL=$lt_SHELL
13141
13142# Whether or not to build shared libraries.
13143build_libtool_libs=$enable_shared
13144
13145# Whether or not to build static libraries.
13146build_old_libs=$enable_static
13147
13148# Whether or not to add -lc for building shared libraries.
13149build_libtool_need_lc=$archive_cmds_need_lc_CXX
13150
13151# Whether or not to disallow shared libs when runtime libs are static
13152allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13153
13154# Whether or not to optimize for fast installation.
13155fast_install=$enable_fast_install
13156
13157# The host system.
13158host_alias=$host_alias
13159host=$host
13160host_os=$host_os
13161
13162# The build system.
13163build_alias=$build_alias
13164build=$build
13165build_os=$build_os
13166
13167# An echo program that does not interpret backslashes.
13168echo=$lt_echo
13169
13170# The archiver.
13171AR=$lt_AR
13172AR_FLAGS=$lt_AR_FLAGS
13173
13174# A C compiler.
13175LTCC=$lt_LTCC
13176
13177# A language-specific compiler.
13178CC=$lt_compiler_CXX
13179
13180# Is the compiler the GNU C compiler?
13181with_gcc=$GCC_CXX
13182
13183# An ERE matcher.
13184EGREP=$lt_EGREP
13185
13186# The linker used to build libraries.
13187LD=$lt_LD_CXX
13188
13189# Whether we need hard or soft links.
13190LN_S=$lt_LN_S
13191
13192# A BSD-compatible nm program.
13193NM=$lt_NM
13194
13195# A symbol stripping program
13196STRIP=$lt_STRIP
13197
13198# Used to examine libraries when file_magic_cmd begins "file"
13199MAGIC_CMD=$MAGIC_CMD
13200
13201# Used on cygwin: DLL creation program.
13202DLLTOOL="$DLLTOOL"
13203
13204# Used on cygwin: object dumper.
13205OBJDUMP="$OBJDUMP"
13206
13207# Used on cygwin: assembler.
13208AS="$AS"
13209
13210# The name of the directory that contains temporary libtool files.
13211objdir=$objdir
13212
13213# How to create reloadable object files.
13214reload_flag=$lt_reload_flag
13215reload_cmds=$lt_reload_cmds
13216
13217# How to pass a linker flag through the compiler.
13218wl=$lt_lt_prog_compiler_wl_CXX
13219
13220# Object file suffix (normally "o").
13221objext="$ac_objext"
13222
13223# Old archive suffix (normally "a").
13224libext="$libext"
13225
13226# Shared library suffix (normally ".so").
13227shrext_cmds='$shrext_cmds'
13228
13229# Executable file suffix (normally "").
13230exeext="$exeext"
13231
13232# Additional compiler flags for building library objects.
13233pic_flag=$lt_lt_prog_compiler_pic_CXX
13234pic_mode=$pic_mode
13235
13236# What is the maximum length of a command?
13237max_cmd_len=$lt_cv_sys_max_cmd_len
13238
13239# Does compiler simultaneously support -c and -o options?
13240compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13241
13242# Must we lock files when doing compilation?
13243need_locks=$lt_need_locks
13244
13245# Do we need the lib prefix for modules?
13246need_lib_prefix=$need_lib_prefix
13247
13248# Do we need a version for libraries?
13249need_version=$need_version
13250
13251# Whether dlopen is supported.
13252dlopen_support=$enable_dlopen
13253
13254# Whether dlopen of programs is supported.
13255dlopen_self=$enable_dlopen_self
13256
13257# Whether dlopen of statically linked programs is supported.
13258dlopen_self_static=$enable_dlopen_self_static
13259
13260# Compiler flag to prevent dynamic linking.
13261link_static_flag=$lt_lt_prog_compiler_static_CXX
13262
13263# Compiler flag to turn off builtin functions.
13264no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13265
13266# Compiler flag to allow reflexive dlopens.
13267export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13268
13269# Compiler flag to generate shared objects directly from archives.
13270whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13271
13272# Compiler flag to generate thread-safe objects.
13273thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13274
13275# Library versioning type.
13276version_type=$version_type
13277
13278# Format of library name prefix.
13279libname_spec=$lt_libname_spec
13280
13281# List of archive names.  First name is the real one, the rest are links.
13282# The last name is the one that the linker finds with -lNAME.
13283library_names_spec=$lt_library_names_spec
13284
13285# The coded name of the library, if different from the real name.
13286soname_spec=$lt_soname_spec
13287
13288# Commands used to build and install an old-style archive.
13289RANLIB=$lt_RANLIB
13290old_archive_cmds=$lt_old_archive_cmds_CXX
13291old_postinstall_cmds=$lt_old_postinstall_cmds
13292old_postuninstall_cmds=$lt_old_postuninstall_cmds
13293
13294# Create an old-style archive from a shared archive.
13295old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13296
13297# Create a temporary old-style archive to link instead of a shared archive.
13298old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13299
13300# Commands used to build and install a shared archive.
13301archive_cmds=$lt_archive_cmds_CXX
13302archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13303postinstall_cmds=$lt_postinstall_cmds
13304postuninstall_cmds=$lt_postuninstall_cmds
13305
13306# Commands used to build a loadable module (assumed same as above if empty)
13307module_cmds=$lt_module_cmds_CXX
13308module_expsym_cmds=$lt_module_expsym_cmds_CXX
13309
13310# Commands to strip libraries.
13311old_striplib=$lt_old_striplib
13312striplib=$lt_striplib
13313
13314# Dependencies to place before the objects being linked to create a
13315# shared library.
13316predep_objects=$lt_predep_objects_CXX
13317
13318# Dependencies to place after the objects being linked to create a
13319# shared library.
13320postdep_objects=$lt_postdep_objects_CXX
13321
13322# Dependencies to place before the objects being linked to create a
13323# shared library.
13324predeps=$lt_predeps_CXX
13325
13326# Dependencies to place after the objects being linked to create a
13327# shared library.
13328postdeps=$lt_postdeps_CXX
13329
13330# The library search path used internally by the compiler when linking
13331# a shared library.
13332compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13333
13334# Method to check whether dependent libraries are shared objects.
13335deplibs_check_method=$lt_deplibs_check_method
13336
13337# Command to use when deplibs_check_method == file_magic.
13338file_magic_cmd=$lt_file_magic_cmd
13339
13340# Flag that allows shared libraries with undefined symbols to be built.
13341allow_undefined_flag=$lt_allow_undefined_flag_CXX
13342
13343# Flag that forces no undefined symbols.
13344no_undefined_flag=$lt_no_undefined_flag_CXX
13345
13346# Commands used to finish a libtool library installation in a directory.
13347finish_cmds=$lt_finish_cmds
13348
13349# Same as above, but a single script fragment to be evaled but not shown.
13350finish_eval=$lt_finish_eval
13351
13352# Take the output of nm and produce a listing of raw symbols and C names.
13353global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13354
13355# Transform the output of nm in a proper C declaration
13356global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13357
13358# Transform the output of nm in a C name address pair
13359global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13360
13361# This is the shared library runtime path variable.
13362runpath_var=$runpath_var
13363
13364# This is the shared library path variable.
13365shlibpath_var=$shlibpath_var
13366
13367# Is shlibpath searched before the hard-coded library search path?
13368shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13369
13370# How to hardcode a shared library path into an executable.
13371hardcode_action=$hardcode_action_CXX
13372
13373# Whether we should hardcode library paths into libraries.
13374hardcode_into_libs=$hardcode_into_libs
13375
13376# Flag to hardcode \$libdir into a binary during linking.
13377# This must work even if \$libdir does not exist.
13378hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13379
13380# If ld is used when linking, flag to hardcode \$libdir into
13381# a binary during linking. This must work even if \$libdir does
13382# not exist.
13383hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13384
13385# Whether we need a single -rpath flag with a separated argument.
13386hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13387
13388# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13389# resulting binary.
13390hardcode_direct=$hardcode_direct_CXX
13391
13392# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13393# resulting binary.
13394hardcode_minus_L=$hardcode_minus_L_CXX
13395
13396# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13397# the resulting binary.
13398hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13399
13400# Set to yes if building a shared library automatically hardcodes DIR into the library
13401# and all subsequent libraries and executables linked against it.
13402hardcode_automatic=$hardcode_automatic_CXX
13403
13404# Variables whose values should be saved in libtool wrapper scripts and
13405# restored at relink time.
13406variables_saved_for_relink="$variables_saved_for_relink"
13407
13408# Whether libtool must link a program against all its dependency libraries.
13409link_all_deplibs=$link_all_deplibs_CXX
13410
13411# Compile-time system search path for libraries
13412sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13413
13414# Run-time system search path for libraries
13415sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13416
13417# Fix the shell variable \$srcfile for the compiler.
13418fix_srcfile_path="$fix_srcfile_path_CXX"
13419
13420# Set to yes if exported symbols are required.
13421always_export_symbols=$always_export_symbols_CXX
13422
13423# The commands to list exported symbols.
13424export_symbols_cmds=$lt_export_symbols_cmds_CXX
13425
13426# The commands to extract the exported symbol list from a shared archive.
13427extract_expsyms_cmds=$lt_extract_expsyms_cmds
13428
13429# Symbols that should not be listed in the preloaded symbols.
13430exclude_expsyms=$lt_exclude_expsyms_CXX
13431
13432# Symbols that must always be exported.
13433include_expsyms=$lt_include_expsyms_CXX
13434
13435# ### END LIBTOOL TAG CONFIG: $tagname
13436
13437__EOF__
13438
13439
13440else
13441  # If there is no Makefile yet, we rely on a make rule to execute
13442  # `config.status --recheck' to rerun these tests and create the
13443  # libtool script then.
13444  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13445  if test -f "$ltmain_in"; then
13446    test -f Makefile && make "$ltmain"
13447  fi
13448fi
13449
13450
13451ac_ext=c
13452ac_cpp='$CPP $CPPFLAGS'
13453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455ac_compiler_gnu=$ac_cv_c_compiler_gnu
13456
13457CC=$lt_save_CC
13458LDCXX=$LD
13459LD=$lt_save_LD
13460GCC=$lt_save_GCC
13461with_gnu_ldcxx=$with_gnu_ld
13462with_gnu_ld=$lt_save_with_gnu_ld
13463lt_cv_path_LDCXX=$lt_cv_path_LD
13464lt_cv_path_LD=$lt_save_path_LD
13465lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13466lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13467
13468	else
13469	  tagname=""
13470	fi
13471	;;
13472
13473      F77)
13474	if test -n "$F77" && test "X$F77" != "Xno"; then
13475
13476ac_ext=f
13477ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13478ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13480
13481
13482archive_cmds_need_lc_F77=no
13483allow_undefined_flag_F77=
13484always_export_symbols_F77=no
13485archive_expsym_cmds_F77=
13486export_dynamic_flag_spec_F77=
13487hardcode_direct_F77=no
13488hardcode_libdir_flag_spec_F77=
13489hardcode_libdir_flag_spec_ld_F77=
13490hardcode_libdir_separator_F77=
13491hardcode_minus_L_F77=no
13492hardcode_automatic_F77=no
13493module_cmds_F77=
13494module_expsym_cmds_F77=
13495link_all_deplibs_F77=unknown
13496old_archive_cmds_F77=$old_archive_cmds
13497no_undefined_flag_F77=
13498whole_archive_flag_spec_F77=
13499enable_shared_with_static_runtimes_F77=no
13500
13501# Source file extension for f77 test sources.
13502ac_ext=f
13503
13504# Object file extension for compiled f77 test sources.
13505objext=o
13506objext_F77=$objext
13507
13508# Code to be used in simple compile tests
13509lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13510
13511# Code to be used in simple link tests
13512lt_simple_link_test_code="      program t\n      end\n"
13513
13514# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13515
13516# If no C compiler was specified, use CC.
13517LTCC=${LTCC-"$CC"}
13518
13519# Allow CC to be a program name with arguments.
13520compiler=$CC
13521
13522
13523# save warnings/boilerplate of simple test code
13524ac_outfile=conftest.$ac_objext
13525printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13526eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13527_lt_compiler_boilerplate=`cat conftest.err`
13528$rm conftest*
13529
13530ac_outfile=conftest.$ac_objext
13531printf "$lt_simple_link_test_code" >conftest.$ac_ext
13532eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13533_lt_linker_boilerplate=`cat conftest.err`
13534$rm conftest*
13535
13536
13537# Allow CC to be a program name with arguments.
13538lt_save_CC="$CC"
13539CC=${F77-"f77"}
13540compiler=$CC
13541compiler_F77=$CC
13542for cc_temp in $compiler""; do
13543  case $cc_temp in
13544    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13545    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13546    \-*) ;;
13547    *) break;;
13548  esac
13549done
13550cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13551
13552
13553echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13554echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13555echo "$as_me:$LINENO: result: $can_build_shared" >&5
13556echo "${ECHO_T}$can_build_shared" >&6
13557
13558echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13559echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13560test "$can_build_shared" = "no" && enable_shared=no
13561
13562# On AIX, shared libraries and static libraries use the same namespace, and
13563# are all built from PIC.
13564case $host_os in
13565aix3*)
13566  test "$enable_shared" = yes && enable_static=no
13567  if test -n "$RANLIB"; then
13568    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13569    postinstall_cmds='$RANLIB $lib'
13570  fi
13571  ;;
13572aix4* | aix5*)
13573  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13574    test "$enable_shared" = yes && enable_static=no
13575  fi
13576  ;;
13577esac
13578echo "$as_me:$LINENO: result: $enable_shared" >&5
13579echo "${ECHO_T}$enable_shared" >&6
13580
13581echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13582echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13583# Make sure either enable_shared or enable_static is yes.
13584test "$enable_shared" = yes || enable_static=yes
13585echo "$as_me:$LINENO: result: $enable_static" >&5
13586echo "${ECHO_T}$enable_static" >&6
13587
13588test "$ld_shlibs_F77" = no && can_build_shared=no
13589
13590GCC_F77="$G77"
13591LD_F77="$LD"
13592
13593lt_prog_compiler_wl_F77=
13594lt_prog_compiler_pic_F77=
13595lt_prog_compiler_static_F77=
13596
13597echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13598echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13599
13600  if test "$GCC" = yes; then
13601    lt_prog_compiler_wl_F77='-Wl,'
13602    lt_prog_compiler_static_F77='-static'
13603
13604    case $host_os in
13605      aix*)
13606      # All AIX code is PIC.
13607      if test "$host_cpu" = ia64; then
13608	# AIX 5 now supports IA64 processor
13609	lt_prog_compiler_static_F77='-Bstatic'
13610      fi
13611      ;;
13612
13613    amigaos*)
13614      # FIXME: we need at least 68020 code to build shared libraries, but
13615      # adding the `-m68020' flag to GCC prevents building anything better,
13616      # like `-m68040'.
13617      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13618      ;;
13619
13620    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13621      # PIC is the default for these OSes.
13622      ;;
13623
13624    mingw* | pw32* | os2*)
13625      # This hack is so that the source file can tell whether it is being
13626      # built for inclusion in a dll (and should export symbols for example).
13627      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13628      ;;
13629
13630    darwin* | rhapsody*)
13631      # PIC is the default on this platform
13632      # Common symbols not allowed in MH_DYLIB files
13633      lt_prog_compiler_pic_F77='-fno-common'
13634      ;;
13635
13636    msdosdjgpp*)
13637      # Just because we use GCC doesn't mean we suddenly get shared libraries
13638      # on systems that don't support them.
13639      lt_prog_compiler_can_build_shared_F77=no
13640      enable_shared=no
13641      ;;
13642
13643    sysv4*MP*)
13644      if test -d /usr/nec; then
13645	lt_prog_compiler_pic_F77=-Kconform_pic
13646      fi
13647      ;;
13648
13649    hpux*)
13650      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13651      # not for PA HP-UX.
13652      case $host_cpu in
13653      hppa*64*|ia64*)
13654	# +Z the default
13655	;;
13656      *)
13657	lt_prog_compiler_pic_F77='-fPIC'
13658	;;
13659      esac
13660      ;;
13661
13662    *)
13663      lt_prog_compiler_pic_F77='-fPIC'
13664      ;;
13665    esac
13666  else
13667    # PORTME Check for flag to pass linker flags through the system compiler.
13668    case $host_os in
13669    aix*)
13670      lt_prog_compiler_wl_F77='-Wl,'
13671      if test "$host_cpu" = ia64; then
13672	# AIX 5 now supports IA64 processor
13673	lt_prog_compiler_static_F77='-Bstatic'
13674      else
13675	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13676      fi
13677      ;;
13678      darwin*)
13679        # PIC is the default on this platform
13680        # Common symbols not allowed in MH_DYLIB files
13681       case $cc_basename in
13682         xlc*)
13683         lt_prog_compiler_pic_F77='-qnocommon'
13684         lt_prog_compiler_wl_F77='-Wl,'
13685         ;;
13686       esac
13687       ;;
13688
13689    mingw* | pw32* | os2*)
13690      # This hack is so that the source file can tell whether it is being
13691      # built for inclusion in a dll (and should export symbols for example).
13692      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13693      ;;
13694
13695    hpux9* | hpux10* | hpux11*)
13696      lt_prog_compiler_wl_F77='-Wl,'
13697      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13698      # not for PA HP-UX.
13699      case $host_cpu in
13700      hppa*64*|ia64*)
13701	# +Z the default
13702	;;
13703      *)
13704	lt_prog_compiler_pic_F77='+Z'
13705	;;
13706      esac
13707      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13708      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13709      ;;
13710
13711    irix5* | irix6* | nonstopux*)
13712      lt_prog_compiler_wl_F77='-Wl,'
13713      # PIC (with -KPIC) is the default.
13714      lt_prog_compiler_static_F77='-non_shared'
13715      ;;
13716
13717    newsos6)
13718      lt_prog_compiler_pic_F77='-KPIC'
13719      lt_prog_compiler_static_F77='-Bstatic'
13720      ;;
13721
13722    linux*)
13723      case $cc_basename in
13724      icc* | ecc*)
13725	lt_prog_compiler_wl_F77='-Wl,'
13726	lt_prog_compiler_pic_F77='-KPIC'
13727	lt_prog_compiler_static_F77='-static'
13728        ;;
13729      pgcc* | pgf77* | pgf90* | pgf95*)
13730        # Portland Group compilers (*not* the Pentium gcc compiler,
13731	# which looks to be a dead project)
13732	lt_prog_compiler_wl_F77='-Wl,'
13733	lt_prog_compiler_pic_F77='-fpic'
13734	lt_prog_compiler_static_F77='-Bstatic'
13735        ;;
13736      ccc*)
13737        lt_prog_compiler_wl_F77='-Wl,'
13738        # All Alpha code is PIC.
13739        lt_prog_compiler_static_F77='-non_shared'
13740        ;;
13741      esac
13742      ;;
13743
13744    osf3* | osf4* | osf5*)
13745      lt_prog_compiler_wl_F77='-Wl,'
13746      # All OSF/1 code is PIC.
13747      lt_prog_compiler_static_F77='-non_shared'
13748      ;;
13749
13750    sco3.2v5*)
13751      lt_prog_compiler_pic_F77='-Kpic'
13752      lt_prog_compiler_static_F77='-dn'
13753      ;;
13754
13755    solaris*)
13756      lt_prog_compiler_pic_F77='-KPIC'
13757      lt_prog_compiler_static_F77='-Bstatic'
13758      case $cc_basename in
13759      f77* | f90* | f95*)
13760	lt_prog_compiler_wl_F77='-Qoption ld ';;
13761      *)
13762	lt_prog_compiler_wl_F77='-Wl,';;
13763      esac
13764      ;;
13765
13766    sunos4*)
13767      lt_prog_compiler_wl_F77='-Qoption ld '
13768      lt_prog_compiler_pic_F77='-PIC'
13769      lt_prog_compiler_static_F77='-Bstatic'
13770      ;;
13771
13772    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13773      lt_prog_compiler_wl_F77='-Wl,'
13774      lt_prog_compiler_pic_F77='-KPIC'
13775      lt_prog_compiler_static_F77='-Bstatic'
13776      ;;
13777
13778    sysv4*MP*)
13779      if test -d /usr/nec ;then
13780	lt_prog_compiler_pic_F77='-Kconform_pic'
13781	lt_prog_compiler_static_F77='-Bstatic'
13782      fi
13783      ;;
13784
13785    unicos*)
13786      lt_prog_compiler_wl_F77='-Wl,'
13787      lt_prog_compiler_can_build_shared_F77=no
13788      ;;
13789
13790    uts4*)
13791      lt_prog_compiler_pic_F77='-pic'
13792      lt_prog_compiler_static_F77='-Bstatic'
13793      ;;
13794
13795    *)
13796      lt_prog_compiler_can_build_shared_F77=no
13797      ;;
13798    esac
13799  fi
13800
13801echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13802echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13803
13804#
13805# Check to make sure the PIC flag actually works.
13806#
13807if test -n "$lt_prog_compiler_pic_F77"; then
13808
13809echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13810echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13811if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13812  echo $ECHO_N "(cached) $ECHO_C" >&6
13813else
13814  lt_prog_compiler_pic_works_F77=no
13815  ac_outfile=conftest.$ac_objext
13816   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13817   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13818   # Insert the option either (1) after the last *FLAGS variable, or
13819   # (2) before a word containing "conftest.", or (3) at the end.
13820   # Note that $ac_compile itself does not contain backslashes and begins
13821   # with a dollar sign (not a hyphen), so the echo should work correctly.
13822   # The option is referenced via a variable to avoid confusing sed.
13823   lt_compile=`echo "$ac_compile" | $SED \
13824   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13825   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13826   -e 's:$: $lt_compiler_flag:'`
13827   (eval echo "\"\$as_me:13827: $lt_compile\"" >&5)
13828   (eval "$lt_compile" 2>conftest.err)
13829   ac_status=$?
13830   cat conftest.err >&5
13831   echo "$as_me:13831: \$? = $ac_status" >&5
13832   if (exit $ac_status) && test -s "$ac_outfile"; then
13833     # The compiler can only warn and ignore the option if not recognized
13834     # So say no if there are warnings other than the usual output.
13835     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13836     $SED '/^$/d' conftest.err >conftest.er2
13837     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13838       lt_prog_compiler_pic_works_F77=yes
13839     fi
13840   fi
13841   $rm conftest*
13842
13843fi
13844echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13845echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13846
13847if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13848    case $lt_prog_compiler_pic_F77 in
13849     "" | " "*) ;;
13850     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13851     esac
13852else
13853    lt_prog_compiler_pic_F77=
13854     lt_prog_compiler_can_build_shared_F77=no
13855fi
13856
13857fi
13858case $host_os in
13859  # For platforms which do not support PIC, -DPIC is meaningless:
13860  *djgpp*)
13861    lt_prog_compiler_pic_F77=
13862    ;;
13863  *)
13864    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13865    ;;
13866esac
13867
13868echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13869echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13870if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13871  echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873  lt_cv_prog_compiler_c_o_F77=no
13874   $rm -r conftest 2>/dev/null
13875   mkdir conftest
13876   cd conftest
13877   mkdir out
13878   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13879
13880   lt_compiler_flag="-o out/conftest2.$ac_objext"
13881   # Insert the option either (1) after the last *FLAGS variable, or
13882   # (2) before a word containing "conftest.", or (3) at the end.
13883   # Note that $ac_compile itself does not contain backslashes and begins
13884   # with a dollar sign (not a hyphen), so the echo should work correctly.
13885   lt_compile=`echo "$ac_compile" | $SED \
13886   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13887   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13888   -e 's:$: $lt_compiler_flag:'`
13889   (eval echo "\"\$as_me:13889: $lt_compile\"" >&5)
13890   (eval "$lt_compile" 2>out/conftest.err)
13891   ac_status=$?
13892   cat out/conftest.err >&5
13893   echo "$as_me:13893: \$? = $ac_status" >&5
13894   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13895   then
13896     # The compiler can only warn and ignore the option if not recognized
13897     # So say no if there are warnings
13898     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13899     $SED '/^$/d' out/conftest.err >out/conftest.er2
13900     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13901       lt_cv_prog_compiler_c_o_F77=yes
13902     fi
13903   fi
13904   chmod u+w . 2>&5
13905   $rm conftest*
13906   # SGI C++ compiler will create directory out/ii_files/ for
13907   # template instantiation
13908   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13909   $rm out/* && rmdir out
13910   cd ..
13911   rmdir conftest
13912   $rm conftest*
13913
13914fi
13915echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13916echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13917
13918
13919hard_links="nottested"
13920if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13921  # do not overwrite the value of need_locks provided by the user
13922  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13923echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13924  hard_links=yes
13925  $rm conftest*
13926  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13927  touch conftest.a
13928  ln conftest.a conftest.b 2>&5 || hard_links=no
13929  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13930  echo "$as_me:$LINENO: result: $hard_links" >&5
13931echo "${ECHO_T}$hard_links" >&6
13932  if test "$hard_links" = no; then
13933    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13934echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13935    need_locks=warn
13936  fi
13937else
13938  need_locks=no
13939fi
13940
13941echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13942echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13943
13944  runpath_var=
13945  allow_undefined_flag_F77=
13946  enable_shared_with_static_runtimes_F77=no
13947  archive_cmds_F77=
13948  archive_expsym_cmds_F77=
13949  old_archive_From_new_cmds_F77=
13950  old_archive_from_expsyms_cmds_F77=
13951  export_dynamic_flag_spec_F77=
13952  whole_archive_flag_spec_F77=
13953  thread_safe_flag_spec_F77=
13954  hardcode_libdir_flag_spec_F77=
13955  hardcode_libdir_flag_spec_ld_F77=
13956  hardcode_libdir_separator_F77=
13957  hardcode_direct_F77=no
13958  hardcode_minus_L_F77=no
13959  hardcode_shlibpath_var_F77=unsupported
13960  link_all_deplibs_F77=unknown
13961  hardcode_automatic_F77=no
13962  module_cmds_F77=
13963  module_expsym_cmds_F77=
13964  always_export_symbols_F77=no
13965  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13966  # include_expsyms should be a list of space-separated symbols to be *always*
13967  # included in the symbol list
13968  include_expsyms_F77=
13969  # exclude_expsyms can be an extended regexp of symbols to exclude
13970  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13971  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13972  # as well as any symbol that contains `d'.
13973  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13974  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13975  # platforms (ab)use it in PIC code, but their linkers get confused if
13976  # the symbol is explicitly referenced.  Since portable code cannot
13977  # rely on this symbol name, it's probably fine to never include it in
13978  # preloaded symbol tables.
13979  extract_expsyms_cmds=
13980  # Just being paranoid about ensuring that cc_basename is set.
13981  for cc_temp in $compiler""; do
13982  case $cc_temp in
13983    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13984    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13985    \-*) ;;
13986    *) break;;
13987  esac
13988done
13989cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13990
13991  case $host_os in
13992  cygwin* | mingw* | pw32*)
13993    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13994    # When not using gcc, we currently assume that we are using
13995    # Microsoft Visual C++.
13996    if test "$GCC" != yes; then
13997      with_gnu_ld=no
13998    fi
13999    ;;
14000  openbsd*)
14001    with_gnu_ld=no
14002    ;;
14003  esac
14004
14005  ld_shlibs_F77=yes
14006  if test "$with_gnu_ld" = yes; then
14007    # If archive_cmds runs LD, not CC, wlarc should be empty
14008    wlarc='${wl}'
14009
14010    # Set some defaults for GNU ld with shared library support. These
14011    # are reset later if shared libraries are not supported. Putting them
14012    # here allows them to be overridden if necessary.
14013    runpath_var=LD_RUN_PATH
14014    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14015    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14016    # ancient GNU ld didn't support --whole-archive et. al.
14017    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14018	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14019      else
14020  	whole_archive_flag_spec_F77=
14021    fi
14022    supports_anon_versioning=no
14023    case `$LD -v 2>/dev/null` in
14024      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14025      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14026      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14027      *\ 2.11.*) ;; # other 2.11 versions
14028      *) supports_anon_versioning=yes ;;
14029    esac
14030
14031    # See if GNU ld supports shared libraries.
14032    case $host_os in
14033    aix3* | aix4* | aix5*)
14034      # On AIX/PPC, the GNU linker is very broken
14035      if test "$host_cpu" != ia64; then
14036	ld_shlibs_F77=no
14037	cat <<EOF 1>&2
14038
14039*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14040*** to be unable to reliably create shared libraries on AIX.
14041*** Therefore, libtool is disabling shared libraries support.  If you
14042*** really care for shared libraries, you may want to modify your PATH
14043*** so that a non-GNU linker is found, and then restart.
14044
14045EOF
14046      fi
14047      ;;
14048
14049    amigaos*)
14050      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)'
14051      hardcode_libdir_flag_spec_F77='-L$libdir'
14052      hardcode_minus_L_F77=yes
14053
14054      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14055      # that the semantics of dynamic libraries on AmigaOS, at least up
14056      # to version 4, is to share data among multiple programs linked
14057      # with the same dynamic library.  Since this doesn't match the
14058      # behavior of shared libraries on other platforms, we can't use
14059      # them.
14060      ld_shlibs_F77=no
14061      ;;
14062
14063    beos*)
14064      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14065	allow_undefined_flag_F77=unsupported
14066	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14067	# support --undefined.  This deserves some investigation.  FIXME
14068	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14069      else
14070	ld_shlibs_F77=no
14071      fi
14072      ;;
14073
14074    cygwin* | mingw* | pw32*)
14075      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14076      # as there is no search path for DLLs.
14077      hardcode_libdir_flag_spec_F77='-L$libdir'
14078      allow_undefined_flag_F77=unsupported
14079      always_export_symbols_F77=no
14080      enable_shared_with_static_runtimes_F77=yes
14081      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14082
14083      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14084        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14085	# If the export-symbols file already is a .def file (1st line
14086	# is EXPORTS), use it as is; otherwise, prepend...
14087	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14088	  cp $export_symbols $output_objdir/$soname.def;
14089	else
14090	  echo EXPORTS > $output_objdir/$soname.def;
14091	  cat $export_symbols >> $output_objdir/$soname.def;
14092	fi~
14093	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14094      else
14095	ld_shlibs_F77=no
14096      fi
14097      ;;
14098
14099    linux*)
14100      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14101	tmp_addflag=
14102	case $cc_basename,$host_cpu in
14103	pgcc*)				# Portland Group C compiler
14104	  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'
14105	  tmp_addflag=' $pic_flag'
14106	  ;;
14107	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14108	  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'
14109	  tmp_addflag=' $pic_flag -Mnomain' ;;
14110	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14111	  tmp_addflag=' -i_dynamic' ;;
14112	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14113	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14114	ifc* | ifort*)			# Intel Fortran compiler
14115	  tmp_addflag=' -nofor_main' ;;
14116	esac
14117	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14118
14119	if test $supports_anon_versioning = yes; then
14120	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14121  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14122  $echo "local: *; };" >> $output_objdir/$libname.ver~
14123	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14124	fi
14125      else
14126	ld_shlibs_F77=no
14127      fi
14128      ;;
14129
14130    netbsd*)
14131      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14132	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14133	wlarc=
14134      else
14135	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14136	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14137      fi
14138      ;;
14139
14140    solaris* | sysv5*)
14141      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14142	ld_shlibs_F77=no
14143	cat <<EOF 1>&2
14144
14145*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14146*** create shared libraries on Solaris systems.  Therefore, libtool
14147*** is disabling shared libraries support.  We urge you to upgrade GNU
14148*** binutils to release 2.9.1 or newer.  Another option is to modify
14149*** your PATH or compiler configuration so that the native linker is
14150*** used, and then restart.
14151
14152EOF
14153      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14154	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14155	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14156      else
14157	ld_shlibs_F77=no
14158      fi
14159      ;;
14160
14161    sunos4*)
14162      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14163      wlarc=
14164      hardcode_direct_F77=yes
14165      hardcode_shlibpath_var_F77=no
14166      ;;
14167
14168    *)
14169      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14170	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14171	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14172      else
14173	ld_shlibs_F77=no
14174      fi
14175      ;;
14176    esac
14177
14178    if test "$ld_shlibs_F77" = no; then
14179      runpath_var=
14180      hardcode_libdir_flag_spec_F77=
14181      export_dynamic_flag_spec_F77=
14182      whole_archive_flag_spec_F77=
14183    fi
14184  else
14185    # PORTME fill in a description of your system's linker (not GNU ld)
14186    case $host_os in
14187    aix3*)
14188      allow_undefined_flag_F77=unsupported
14189      always_export_symbols_F77=yes
14190      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'
14191      # Note: this linker hardcodes the directories in LIBPATH if there
14192      # are no directories specified by -L.
14193      hardcode_minus_L_F77=yes
14194      if test "$GCC" = yes && test -z "$link_static_flag"; then
14195	# Neither direct hardcoding nor static linking is supported with a
14196	# broken collect2.
14197	hardcode_direct_F77=unsupported
14198      fi
14199      ;;
14200
14201    aix4* | aix5*)
14202      if test "$host_cpu" = ia64; then
14203	# On IA64, the linker does run time linking by default, so we don't
14204	# have to do anything special.
14205	aix_use_runtimelinking=no
14206	exp_sym_flag='-Bexport'
14207	no_entry_flag=""
14208      else
14209	# If we're using GNU nm, then we don't want the "-C" option.
14210	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14211	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14212	  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'
14213	else
14214	  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'
14215	fi
14216	aix_use_runtimelinking=no
14217
14218	# Test if we are trying to use run time linking or normal
14219	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14220	# need to do runtime linking.
14221	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14222	  for ld_flag in $LDFLAGS; do
14223  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14224  	    aix_use_runtimelinking=yes
14225  	    break
14226  	  fi
14227	  done
14228	esac
14229
14230	exp_sym_flag='-bexport'
14231	no_entry_flag='-bnoentry'
14232      fi
14233
14234      # When large executables or shared objects are built, AIX ld can
14235      # have problems creating the table of contents.  If linking a library
14236      # or program results in "error TOC overflow" add -mminimal-toc to
14237      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14238      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14239
14240      archive_cmds_F77=''
14241      hardcode_direct_F77=yes
14242      hardcode_libdir_separator_F77=':'
14243      link_all_deplibs_F77=yes
14244
14245      if test "$GCC" = yes; then
14246	case $host_os in aix4.[012]|aix4.[012].*)
14247	# We only want to do this on AIX 4.2 and lower, the check
14248	# below for broken collect2 doesn't work under 4.3+
14249	  collect2name=`${CC} -print-prog-name=collect2`
14250	  if test -f "$collect2name" && \
14251  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14252	  then
14253  	  # We have reworked collect2
14254  	  hardcode_direct_F77=yes
14255	  else
14256  	  # We have old collect2
14257  	  hardcode_direct_F77=unsupported
14258  	  # It fails to find uninstalled libraries when the uninstalled
14259  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14260  	  # to unsupported forces relinking
14261  	  hardcode_minus_L_F77=yes
14262  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14263  	  hardcode_libdir_separator_F77=
14264	  fi
14265	esac
14266	shared_flag='-shared'
14267	if test "$aix_use_runtimelinking" = yes; then
14268	  shared_flag="$shared_flag "'${wl}-G'
14269	fi
14270      else
14271	# not using gcc
14272	if test "$host_cpu" = ia64; then
14273  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14274  	# chokes on -Wl,-G. The following line is correct:
14275	  shared_flag='-G'
14276	else
14277  	if test "$aix_use_runtimelinking" = yes; then
14278	    shared_flag='${wl}-G'
14279	  else
14280	    shared_flag='${wl}-bM:SRE'
14281  	fi
14282	fi
14283      fi
14284
14285      # It seems that -bexpall does not export symbols beginning with
14286      # underscore (_), so it is better to generate a list of symbols to export.
14287      always_export_symbols_F77=yes
14288      if test "$aix_use_runtimelinking" = yes; then
14289	# Warning - without using the other runtime loading flags (-brtl),
14290	# -berok will link without error, but may produce a broken library.
14291	allow_undefined_flag_F77='-berok'
14292       # Determine the default libpath from the value encoded in an empty executable.
14293       cat >conftest.$ac_ext <<_ACEOF
14294      program main
14295
14296      end
14297_ACEOF
14298rm -f conftest.$ac_objext conftest$ac_exeext
14299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14300  (eval $ac_link) 2>conftest.er1
14301  ac_status=$?
14302  grep -v '^ *+' conftest.er1 >conftest.err
14303  rm -f conftest.er1
14304  cat conftest.err >&5
14305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306  (exit $ac_status); } &&
14307	 { ac_try='test -z "$ac_f77_werror_flag"
14308			 || test ! -s conftest.err'
14309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310  (eval $ac_try) 2>&5
14311  ac_status=$?
14312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313  (exit $ac_status); }; } &&
14314	 { ac_try='test -s conftest$ac_exeext'
14315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316  (eval $ac_try) 2>&5
14317  ac_status=$?
14318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319  (exit $ac_status); }; }; then
14320
14321aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14322}'`
14323# Check for a 64-bit object if we didn't find anything.
14324if 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; }
14325}'`; fi
14326else
14327  echo "$as_me: failed program was:" >&5
14328sed 's/^/| /' conftest.$ac_ext >&5
14329
14330fi
14331rm -f conftest.err conftest.$ac_objext \
14332      conftest$ac_exeext conftest.$ac_ext
14333if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14334
14335       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14336	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14337       else
14338	if test "$host_cpu" = ia64; then
14339	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14340	  allow_undefined_flag_F77="-z nodefs"
14341	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14342	else
14343	 # Determine the default libpath from the value encoded in an empty executable.
14344	 cat >conftest.$ac_ext <<_ACEOF
14345      program main
14346
14347      end
14348_ACEOF
14349rm -f conftest.$ac_objext conftest$ac_exeext
14350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14351  (eval $ac_link) 2>conftest.er1
14352  ac_status=$?
14353  grep -v '^ *+' conftest.er1 >conftest.err
14354  rm -f conftest.er1
14355  cat conftest.err >&5
14356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357  (exit $ac_status); } &&
14358	 { ac_try='test -z "$ac_f77_werror_flag"
14359			 || test ! -s conftest.err'
14360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361  (eval $ac_try) 2>&5
14362  ac_status=$?
14363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364  (exit $ac_status); }; } &&
14365	 { ac_try='test -s conftest$ac_exeext'
14366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367  (eval $ac_try) 2>&5
14368  ac_status=$?
14369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370  (exit $ac_status); }; }; then
14371
14372aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14373}'`
14374# Check for a 64-bit object if we didn't find anything.
14375if 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; }
14376}'`; fi
14377else
14378  echo "$as_me: failed program was:" >&5
14379sed 's/^/| /' conftest.$ac_ext >&5
14380
14381fi
14382rm -f conftest.err conftest.$ac_objext \
14383      conftest$ac_exeext conftest.$ac_ext
14384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14385
14386	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14387	  # Warning - without using the other run time loading flags,
14388	  # -berok will link without error, but may produce a broken library.
14389	  no_undefined_flag_F77=' ${wl}-bernotok'
14390	  allow_undefined_flag_F77=' ${wl}-berok'
14391	  # -bexpall does not export symbols beginning with underscore (_)
14392	  always_export_symbols_F77=yes
14393	  # Exported symbols can be pulled into shared objects from archives
14394	  whole_archive_flag_spec_F77=' '
14395	  archive_cmds_need_lc_F77=yes
14396	  # This is similar to how AIX traditionally builds its shared libraries.
14397	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14398	fi
14399      fi
14400      ;;
14401
14402    amigaos*)
14403      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)'
14404      hardcode_libdir_flag_spec_F77='-L$libdir'
14405      hardcode_minus_L_F77=yes
14406      # see comment about different semantics on the GNU ld section
14407      ld_shlibs_F77=no
14408      ;;
14409
14410    bsdi[45]*)
14411      export_dynamic_flag_spec_F77=-rdynamic
14412      ;;
14413
14414    cygwin* | mingw* | pw32*)
14415      # When not using gcc, we currently assume that we are using
14416      # Microsoft Visual C++.
14417      # hardcode_libdir_flag_spec is actually meaningless, as there is
14418      # no search path for DLLs.
14419      hardcode_libdir_flag_spec_F77=' '
14420      allow_undefined_flag_F77=unsupported
14421      # Tell ltmain to make .lib files, not .a files.
14422      libext=lib
14423      # Tell ltmain to make .dll files, not .so files.
14424      shrext_cmds=".dll"
14425      # FIXME: Setting linknames here is a bad hack.
14426      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14427      # The linker will automatically build a .lib file if we build a DLL.
14428      old_archive_From_new_cmds_F77='true'
14429      # FIXME: Should let the user specify the lib program.
14430      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14431      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14432      enable_shared_with_static_runtimes_F77=yes
14433      ;;
14434
14435    darwin* | rhapsody*)
14436      case $host_os in
14437        rhapsody* | darwin1.[012])
14438         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14439         ;;
14440       *) # Darwin 1.3 on
14441         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14442           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14443         else
14444           case ${MACOSX_DEPLOYMENT_TARGET} in
14445             10.[012])
14446               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14447               ;;
14448             10.*)
14449               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14450               ;;
14451           esac
14452         fi
14453         ;;
14454      esac
14455      archive_cmds_need_lc_F77=no
14456      hardcode_direct_F77=no
14457      hardcode_automatic_F77=yes
14458      hardcode_shlibpath_var_F77=unsupported
14459      whole_archive_flag_spec_F77=''
14460      link_all_deplibs_F77=yes
14461    if test "$GCC" = yes ; then
14462    	output_verbose_link_cmd='echo'
14463        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14464      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14465      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14466      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}'
14467      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}'
14468    else
14469      case $cc_basename in
14470        xlc*)
14471         output_verbose_link_cmd='echo'
14472         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14473         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14474          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14475         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}'
14476          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}'
14477          ;;
14478       *)
14479         ld_shlibs_F77=no
14480          ;;
14481      esac
14482    fi
14483      ;;
14484
14485    dgux*)
14486      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14487      hardcode_libdir_flag_spec_F77='-L$libdir'
14488      hardcode_shlibpath_var_F77=no
14489      ;;
14490
14491    freebsd1*)
14492      ld_shlibs_F77=no
14493      ;;
14494
14495    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14496    # support.  Future versions do this automatically, but an explicit c++rt0.o
14497    # does not break anything, and helps significantly (at the cost of a little
14498    # extra space).
14499    freebsd2.2*)
14500      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14501      hardcode_libdir_flag_spec_F77='-R$libdir'
14502      hardcode_direct_F77=yes
14503      hardcode_shlibpath_var_F77=no
14504      ;;
14505
14506    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14507    freebsd2*)
14508      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14509      hardcode_direct_F77=yes
14510      hardcode_minus_L_F77=yes
14511      hardcode_shlibpath_var_F77=no
14512      ;;
14513
14514    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14515    freebsd* | kfreebsd*-gnu | dragonfly*)
14516      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14517      hardcode_libdir_flag_spec_F77='-R$libdir'
14518      hardcode_direct_F77=yes
14519      hardcode_shlibpath_var_F77=no
14520      ;;
14521
14522    hpux9*)
14523      if test "$GCC" = yes; then
14524	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'
14525      else
14526	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'
14527      fi
14528      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14529      hardcode_libdir_separator_F77=:
14530      hardcode_direct_F77=yes
14531
14532      # hardcode_minus_L: Not really in the search PATH,
14533      # but as the default location of the library.
14534      hardcode_minus_L_F77=yes
14535      export_dynamic_flag_spec_F77='${wl}-E'
14536      ;;
14537
14538    hpux10* | hpux11*)
14539      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14540	case $host_cpu in
14541	hppa*64*|ia64*)
14542	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14543	  ;;
14544	*)
14545	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14546	  ;;
14547	esac
14548      else
14549	case $host_cpu in
14550	hppa*64*|ia64*)
14551	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14552	  ;;
14553	*)
14554	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14555	  ;;
14556	esac
14557      fi
14558      if test "$with_gnu_ld" = no; then
14559	case $host_cpu in
14560	hppa*64*)
14561	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14562	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14563	  hardcode_libdir_separator_F77=:
14564	  hardcode_direct_F77=no
14565	  hardcode_shlibpath_var_F77=no
14566	  ;;
14567	ia64*)
14568	  hardcode_libdir_flag_spec_F77='-L$libdir'
14569	  hardcode_direct_F77=no
14570	  hardcode_shlibpath_var_F77=no
14571
14572	  # hardcode_minus_L: Not really in the search PATH,
14573	  # but as the default location of the library.
14574	  hardcode_minus_L_F77=yes
14575	  ;;
14576	*)
14577	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14578	  hardcode_libdir_separator_F77=:
14579	  hardcode_direct_F77=yes
14580	  export_dynamic_flag_spec_F77='${wl}-E'
14581
14582	  # hardcode_minus_L: Not really in the search PATH,
14583	  # but as the default location of the library.
14584	  hardcode_minus_L_F77=yes
14585	  ;;
14586	esac
14587      fi
14588      ;;
14589
14590    irix5* | irix6* | nonstopux*)
14591      if test "$GCC" = yes; then
14592	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'
14593      else
14594	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'
14595	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14596      fi
14597      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14598      hardcode_libdir_separator_F77=:
14599      link_all_deplibs_F77=yes
14600      ;;
14601
14602    netbsd*)
14603      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14604	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14605      else
14606	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14607      fi
14608      hardcode_libdir_flag_spec_F77='-R$libdir'
14609      hardcode_direct_F77=yes
14610      hardcode_shlibpath_var_F77=no
14611      ;;
14612
14613    newsos6)
14614      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14615      hardcode_direct_F77=yes
14616      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14617      hardcode_libdir_separator_F77=:
14618      hardcode_shlibpath_var_F77=no
14619      ;;
14620
14621    openbsd*)
14622      hardcode_direct_F77=yes
14623      hardcode_shlibpath_var_F77=no
14624      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14625	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14626	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14627	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14628	export_dynamic_flag_spec_F77='${wl}-E'
14629      else
14630       case $host_os in
14631	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14632	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14633	   hardcode_libdir_flag_spec_F77='-R$libdir'
14634	   ;;
14635	 *)
14636	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14637	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14638	   ;;
14639       esac
14640      fi
14641      ;;
14642
14643    os2*)
14644      hardcode_libdir_flag_spec_F77='-L$libdir'
14645      hardcode_minus_L_F77=yes
14646      allow_undefined_flag_F77=unsupported
14647      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'
14648      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14649      ;;
14650
14651    osf3*)
14652      if test "$GCC" = yes; then
14653	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14654	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'
14655      else
14656	allow_undefined_flag_F77=' -expect_unresolved \*'
14657	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'
14658      fi
14659      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14660      hardcode_libdir_separator_F77=:
14661      ;;
14662
14663    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14664      if test "$GCC" = yes; then
14665	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14666	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'
14667	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14668      else
14669	allow_undefined_flag_F77=' -expect_unresolved \*'
14670	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'
14671	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~
14672	$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'
14673
14674	# Both c and cxx compiler support -rpath directly
14675	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14676      fi
14677      hardcode_libdir_separator_F77=:
14678      ;;
14679
14680    sco3.2v5*)
14681      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14682      hardcode_shlibpath_var_F77=no
14683      export_dynamic_flag_spec_F77='${wl}-Bexport'
14684      runpath_var=LD_RUN_PATH
14685      hardcode_runpath_var=yes
14686      ;;
14687
14688    solaris*)
14689      no_undefined_flag_F77=' -z text'
14690      if test "$GCC" = yes; then
14691	wlarc='${wl}'
14692	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14693	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14694	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14695      else
14696	wlarc=''
14697	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14698	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14699  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14700      fi
14701      hardcode_libdir_flag_spec_F77='-R$libdir'
14702      hardcode_shlibpath_var_F77=no
14703      case $host_os in
14704      solaris2.[0-5] | solaris2.[0-5].*) ;;
14705      *)
14706 	# The compiler driver will combine linker options so we
14707 	# cannot just pass the convience library names through
14708 	# without $wl, iff we do not link with $LD.
14709 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14710 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14711 	case $wlarc in
14712 	'')
14713 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14714 	*)
14715 	  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' ;;
14716 	esac ;;
14717      esac
14718      link_all_deplibs_F77=yes
14719      ;;
14720
14721    sunos4*)
14722      if test "x$host_vendor" = xsequent; then
14723	# Use $CC to link under sequent, because it throws in some extra .o
14724	# files that make .init and .fini sections work.
14725	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14726      else
14727	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14728      fi
14729      hardcode_libdir_flag_spec_F77='-L$libdir'
14730      hardcode_direct_F77=yes
14731      hardcode_minus_L_F77=yes
14732      hardcode_shlibpath_var_F77=no
14733      ;;
14734
14735    sysv4)
14736      case $host_vendor in
14737	sni)
14738	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14739	  hardcode_direct_F77=yes # is this really true???
14740	;;
14741	siemens)
14742	  ## LD is ld it makes a PLAMLIB
14743	  ## CC just makes a GrossModule.
14744	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14745	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14746	  hardcode_direct_F77=no
14747        ;;
14748	motorola)
14749	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14750	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14751	;;
14752      esac
14753      runpath_var='LD_RUN_PATH'
14754      hardcode_shlibpath_var_F77=no
14755      ;;
14756
14757    sysv4.3*)
14758      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14759      hardcode_shlibpath_var_F77=no
14760      export_dynamic_flag_spec_F77='-Bexport'
14761      ;;
14762
14763    sysv4*MP*)
14764      if test -d /usr/nec; then
14765	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14766	hardcode_shlibpath_var_F77=no
14767	runpath_var=LD_RUN_PATH
14768	hardcode_runpath_var=yes
14769	ld_shlibs_F77=yes
14770      fi
14771      ;;
14772
14773    sysv4.2uw2*)
14774      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14775      hardcode_direct_F77=yes
14776      hardcode_minus_L_F77=no
14777      hardcode_shlibpath_var_F77=no
14778      hardcode_runpath_var=yes
14779      runpath_var=LD_RUN_PATH
14780      ;;
14781
14782   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14783      no_undefined_flag_F77='${wl}-z ${wl}text'
14784      if test "$GCC" = yes; then
14785	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14786      else
14787	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14788      fi
14789      runpath_var='LD_RUN_PATH'
14790      hardcode_shlibpath_var_F77=no
14791      ;;
14792
14793    sysv5*)
14794      no_undefined_flag_F77=' -z text'
14795      # $CC -shared without GNU ld will not create a library from C++
14796      # object files and a static libstdc++, better avoid it by now
14797      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14798      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14799  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14800      hardcode_libdir_flag_spec_F77=
14801      hardcode_shlibpath_var_F77=no
14802      runpath_var='LD_RUN_PATH'
14803      ;;
14804
14805    uts4*)
14806      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14807      hardcode_libdir_flag_spec_F77='-L$libdir'
14808      hardcode_shlibpath_var_F77=no
14809      ;;
14810
14811    *)
14812      ld_shlibs_F77=no
14813      ;;
14814    esac
14815  fi
14816
14817echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14818echo "${ECHO_T}$ld_shlibs_F77" >&6
14819test "$ld_shlibs_F77" = no && can_build_shared=no
14820
14821variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14822if test "$GCC" = yes; then
14823  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14824fi
14825
14826#
14827# Do we need to explicitly link libc?
14828#
14829case "x$archive_cmds_need_lc_F77" in
14830x|xyes)
14831  # Assume -lc should be added
14832  archive_cmds_need_lc_F77=yes
14833
14834  if test "$enable_shared" = yes && test "$GCC" = yes; then
14835    case $archive_cmds_F77 in
14836    *'~'*)
14837      # FIXME: we may have to deal with multi-command sequences.
14838      ;;
14839    '$CC '*)
14840      # Test whether the compiler implicitly links with -lc since on some
14841      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14842      # to ld, don't add -lc before -lgcc.
14843      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14844echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14845      $rm conftest*
14846      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14847
14848      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14849  (eval $ac_compile) 2>&5
14850  ac_status=$?
14851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852  (exit $ac_status); } 2>conftest.err; then
14853        soname=conftest
14854        lib=conftest
14855        libobjs=conftest.$ac_objext
14856        deplibs=
14857        wl=$lt_prog_compiler_wl_F77
14858        compiler_flags=-v
14859        linker_flags=-v
14860        verstring=
14861        output_objdir=.
14862        libname=conftest
14863        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14864        allow_undefined_flag_F77=
14865        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14866  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14867  ac_status=$?
14868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869  (exit $ac_status); }
14870        then
14871	  archive_cmds_need_lc_F77=no
14872        else
14873	  archive_cmds_need_lc_F77=yes
14874        fi
14875        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14876      else
14877        cat conftest.err 1>&5
14878      fi
14879      $rm conftest*
14880      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14881echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14882      ;;
14883    esac
14884  fi
14885  ;;
14886esac
14887
14888echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14889echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14890library_names_spec=
14891libname_spec='lib$name'
14892soname_spec=
14893shrext_cmds=".so"
14894postinstall_cmds=
14895postuninstall_cmds=
14896finish_cmds=
14897finish_eval=
14898shlibpath_var=
14899shlibpath_overrides_runpath=unknown
14900version_type=none
14901dynamic_linker="$host_os ld.so"
14902sys_lib_dlsearch_path_spec="/lib /usr/lib"
14903if test "$GCC" = yes; then
14904  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14905  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14906    # if the path contains ";" then we assume it to be the separator
14907    # otherwise default to the standard path separator (i.e. ":") - it is
14908    # assumed that no part of a normal pathname contains ";" but that should
14909    # okay in the real world where ";" in dirpaths is itself problematic.
14910    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14911  else
14912    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14913  fi
14914else
14915  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14916fi
14917need_lib_prefix=unknown
14918hardcode_into_libs=no
14919
14920# when you set need_version to no, make sure it does not cause -set_version
14921# flags to be left without arguments
14922need_version=unknown
14923
14924case $host_os in
14925aix3*)
14926  version_type=linux
14927  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14928  shlibpath_var=LIBPATH
14929
14930  # AIX 3 has no versioning support, so we append a major version to the name.
14931  soname_spec='${libname}${release}${shared_ext}$major'
14932  ;;
14933
14934aix4* | aix5*)
14935  version_type=linux
14936  need_lib_prefix=no
14937  need_version=no
14938  hardcode_into_libs=yes
14939  if test "$host_cpu" = ia64; then
14940    # AIX 5 supports IA64
14941    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14942    shlibpath_var=LD_LIBRARY_PATH
14943  else
14944    # With GCC up to 2.95.x, collect2 would create an import file
14945    # for dependence libraries.  The import file would start with
14946    # the line `#! .'.  This would cause the generated library to
14947    # depend on `.', always an invalid library.  This was fixed in
14948    # development snapshots of GCC prior to 3.0.
14949    case $host_os in
14950      aix4 | aix4.[01] | aix4.[01].*)
14951      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14952	   echo ' yes '
14953	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14954	:
14955      else
14956	can_build_shared=no
14957      fi
14958      ;;
14959    esac
14960    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14961    # soname into executable. Probably we can add versioning support to
14962    # collect2, so additional links can be useful in future.
14963    if test "$aix_use_runtimelinking" = yes; then
14964      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14965      # instead of lib<name>.a to let people know that these are not
14966      # typical AIX shared libraries.
14967      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968    else
14969      # We preserve .a as extension for shared libraries through AIX4.2
14970      # and later when we are not doing run time linking.
14971      library_names_spec='${libname}${release}.a $libname.a'
14972      soname_spec='${libname}${release}${shared_ext}$major'
14973    fi
14974    shlibpath_var=LIBPATH
14975  fi
14976  ;;
14977
14978amigaos*)
14979  library_names_spec='$libname.ixlibrary $libname.a'
14980  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14981  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'
14982  ;;
14983
14984beos*)
14985  library_names_spec='${libname}${shared_ext}'
14986  dynamic_linker="$host_os ld.so"
14987  shlibpath_var=LIBRARY_PATH
14988  ;;
14989
14990bsdi[45]*)
14991  version_type=linux
14992  need_version=no
14993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994  soname_spec='${libname}${release}${shared_ext}$major'
14995  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14996  shlibpath_var=LD_LIBRARY_PATH
14997  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14998  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14999  # the default ld.so.conf also contains /usr/contrib/lib and
15000  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15001  # libtool to hard-code these into programs
15002  ;;
15003
15004cygwin* | mingw* | pw32*)
15005  version_type=windows
15006  shrext_cmds=".dll"
15007  need_version=no
15008  need_lib_prefix=no
15009
15010  case $GCC,$host_os in
15011  yes,cygwin* | yes,mingw* | yes,pw32*)
15012    library_names_spec='$libname.dll.a'
15013    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15014    postinstall_cmds='base_file=`basename \${file}`~
15015      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15016      dldir=$destdir/`dirname \$dlpath`~
15017      test -d \$dldir || mkdir -p \$dldir~
15018      $install_prog $dir/$dlname \$dldir/$dlname~
15019      chmod a+x \$dldir/$dlname'
15020    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15021      dlpath=$dir/\$dldll~
15022       $rm \$dlpath'
15023    shlibpath_overrides_runpath=yes
15024
15025    case $host_os in
15026    cygwin*)
15027      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15028      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15029      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15030      ;;
15031    mingw*)
15032      # MinGW DLLs use traditional 'lib' prefix
15033      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15034      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15035      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15036        # It is most probably a Windows format PATH printed by
15037        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15038        # path with ; separators, and with drive letters. We can handle the
15039        # drive letters (cygwin fileutils understands them), so leave them,
15040        # especially as we might pass files found there to a mingw objdump,
15041        # which wouldn't understand a cygwinified path. Ahh.
15042        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15043      else
15044        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15045      fi
15046      ;;
15047    pw32*)
15048      # pw32 DLLs use 'pw' prefix rather than 'lib'
15049      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15050      ;;
15051    esac
15052    ;;
15053
15054  *)
15055    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15056    ;;
15057  esac
15058  dynamic_linker='Win32 ld.exe'
15059  # FIXME: first we should search . and the directory the executable is in
15060  shlibpath_var=PATH
15061  ;;
15062
15063darwin* | rhapsody*)
15064  dynamic_linker="$host_os dyld"
15065  version_type=darwin
15066  need_lib_prefix=no
15067  need_version=no
15068  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15069  soname_spec='${libname}${release}${major}$shared_ext'
15070  shlibpath_overrides_runpath=yes
15071  shlibpath_var=DYLD_LIBRARY_PATH
15072  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15073  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15074  if test "$GCC" = yes; then
15075    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"`
15076  else
15077    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15078  fi
15079  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15080  ;;
15081
15082dgux*)
15083  version_type=linux
15084  need_lib_prefix=no
15085  need_version=no
15086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15087  soname_spec='${libname}${release}${shared_ext}$major'
15088  shlibpath_var=LD_LIBRARY_PATH
15089  ;;
15090
15091freebsd1*)
15092  dynamic_linker=no
15093  ;;
15094
15095kfreebsd*-gnu)
15096  version_type=linux
15097  need_lib_prefix=no
15098  need_version=no
15099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15100  soname_spec='${libname}${release}${shared_ext}$major'
15101  shlibpath_var=LD_LIBRARY_PATH
15102  shlibpath_overrides_runpath=no
15103  hardcode_into_libs=yes
15104  dynamic_linker='GNU ld.so'
15105  ;;
15106
15107freebsd* | dragonfly*)
15108  # DragonFly does not have aout.  When/if they implement a new
15109  # versioning mechanism, adjust this.
15110  if test -x /usr/bin/objformat; then
15111    objformat=`/usr/bin/objformat`
15112  else
15113    case $host_os in
15114    freebsd[123]*) objformat=aout ;;
15115    *) objformat=elf ;;
15116    esac
15117  fi
15118  version_type=freebsd-$objformat
15119  case $version_type in
15120    freebsd-elf*)
15121      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15122      need_version=no
15123      need_lib_prefix=no
15124      ;;
15125    freebsd-*)
15126      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15127      need_version=yes
15128      ;;
15129  esac
15130  shlibpath_var=LD_LIBRARY_PATH
15131  case $host_os in
15132  freebsd2*)
15133    shlibpath_overrides_runpath=yes
15134    ;;
15135  freebsd3.[01]* | freebsdelf3.[01]*)
15136    shlibpath_overrides_runpath=yes
15137    hardcode_into_libs=yes
15138    ;;
15139  *) # from 3.2 on
15140    shlibpath_overrides_runpath=no
15141    hardcode_into_libs=yes
15142    ;;
15143  esac
15144  ;;
15145
15146gnu*)
15147  version_type=linux
15148  need_lib_prefix=no
15149  need_version=no
15150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15151  soname_spec='${libname}${release}${shared_ext}$major'
15152  shlibpath_var=LD_LIBRARY_PATH
15153  hardcode_into_libs=yes
15154  ;;
15155
15156hpux9* | hpux10* | hpux11*)
15157  # Give a soname corresponding to the major version so that dld.sl refuses to
15158  # link against other versions.
15159  version_type=sunos
15160  need_lib_prefix=no
15161  need_version=no
15162  case $host_cpu in
15163  ia64*)
15164    shrext_cmds='.so'
15165    hardcode_into_libs=yes
15166    dynamic_linker="$host_os dld.so"
15167    shlibpath_var=LD_LIBRARY_PATH
15168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170    soname_spec='${libname}${release}${shared_ext}$major'
15171    if test "X$HPUX_IA64_MODE" = X32; then
15172      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15173    else
15174      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15175    fi
15176    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15177    ;;
15178   hppa*64*)
15179     shrext_cmds='.sl'
15180     hardcode_into_libs=yes
15181     dynamic_linker="$host_os dld.sl"
15182     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15183     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185     soname_spec='${libname}${release}${shared_ext}$major'
15186     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15188     ;;
15189   *)
15190    shrext_cmds='.sl'
15191    dynamic_linker="$host_os dld.sl"
15192    shlibpath_var=SHLIB_PATH
15193    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15194    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195    soname_spec='${libname}${release}${shared_ext}$major'
15196    ;;
15197  esac
15198  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15199  postinstall_cmds='chmod 555 $lib'
15200  ;;
15201
15202irix5* | irix6* | nonstopux*)
15203  case $host_os in
15204    nonstopux*) version_type=nonstopux ;;
15205    *)
15206	if test "$lt_cv_prog_gnu_ld" = yes; then
15207		version_type=linux
15208	else
15209		version_type=irix
15210	fi ;;
15211  esac
15212  need_lib_prefix=no
15213  need_version=no
15214  soname_spec='${libname}${release}${shared_ext}$major'
15215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15216  case $host_os in
15217  irix5* | nonstopux*)
15218    libsuff= shlibsuff=
15219    ;;
15220  *)
15221    case $LD in # libtool.m4 will add one of these switches to LD
15222    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15223      libsuff= shlibsuff= libmagic=32-bit;;
15224    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15225      libsuff=32 shlibsuff=N32 libmagic=N32;;
15226    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15227      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15228    *) libsuff= shlibsuff= libmagic=never-match;;
15229    esac
15230    ;;
15231  esac
15232  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15233  shlibpath_overrides_runpath=no
15234  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15235  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15236  hardcode_into_libs=yes
15237  ;;
15238
15239# No shared lib support for Linux oldld, aout, or coff.
15240linux*oldld* | linux*aout* | linux*coff*)
15241  dynamic_linker=no
15242  ;;
15243
15244# This must be Linux ELF.
15245linux*)
15246  version_type=linux
15247  need_lib_prefix=no
15248  need_version=no
15249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250  soname_spec='${libname}${release}${shared_ext}$major'
15251  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15252  shlibpath_var=LD_LIBRARY_PATH
15253  shlibpath_overrides_runpath=no
15254  # This implies no fast_install, which is unacceptable.
15255  # Some rework will be needed to allow for fast_install
15256  # before this can be enabled.
15257  hardcode_into_libs=yes
15258
15259  # Append ld.so.conf contents to the search path
15260  if test -f /etc/ld.so.conf; then
15261    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' ' '`
15262    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15263  fi
15264
15265  # We used to test for /lib/ld.so.1 and disable shared libraries on
15266  # powerpc, because MkLinux only supported shared libraries with the
15267  # GNU dynamic linker.  Since this was broken with cross compilers,
15268  # most powerpc-linux boxes support dynamic linking these days and
15269  # people can always --disable-shared, the test was removed, and we
15270  # assume the GNU/Linux dynamic linker is in use.
15271  dynamic_linker='GNU/Linux ld.so'
15272  ;;
15273
15274knetbsd*-gnu)
15275  version_type=linux
15276  need_lib_prefix=no
15277  need_version=no
15278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15279  soname_spec='${libname}${release}${shared_ext}$major'
15280  shlibpath_var=LD_LIBRARY_PATH
15281  shlibpath_overrides_runpath=no
15282  hardcode_into_libs=yes
15283  dynamic_linker='GNU ld.so'
15284  ;;
15285
15286netbsd*)
15287  version_type=sunos
15288  need_lib_prefix=no
15289  need_version=no
15290  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15292    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15293    dynamic_linker='NetBSD (a.out) ld.so'
15294  else
15295    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15296    soname_spec='${libname}${release}${shared_ext}$major'
15297    dynamic_linker='NetBSD ld.elf_so'
15298  fi
15299  shlibpath_var=LD_LIBRARY_PATH
15300  shlibpath_overrides_runpath=yes
15301  hardcode_into_libs=yes
15302  ;;
15303
15304newsos6)
15305  version_type=linux
15306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307  shlibpath_var=LD_LIBRARY_PATH
15308  shlibpath_overrides_runpath=yes
15309  ;;
15310
15311nto-qnx*)
15312  version_type=linux
15313  need_lib_prefix=no
15314  need_version=no
15315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15316  soname_spec='${libname}${release}${shared_ext}$major'
15317  shlibpath_var=LD_LIBRARY_PATH
15318  shlibpath_overrides_runpath=yes
15319  ;;
15320
15321openbsd*)
15322  version_type=sunos
15323  need_lib_prefix=no
15324  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15325  case $host_os in
15326    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15327    *)                         need_version=no  ;;
15328  esac
15329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15331  shlibpath_var=LD_LIBRARY_PATH
15332  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15333    case $host_os in
15334      openbsd2.[89] | openbsd2.[89].*)
15335	shlibpath_overrides_runpath=no
15336	;;
15337      *)
15338	shlibpath_overrides_runpath=yes
15339	;;
15340      esac
15341  else
15342    shlibpath_overrides_runpath=yes
15343  fi
15344  ;;
15345
15346os2*)
15347  libname_spec='$name'
15348  shrext_cmds=".dll"
15349  need_lib_prefix=no
15350  library_names_spec='$libname${shared_ext} $libname.a'
15351  dynamic_linker='OS/2 ld.exe'
15352  shlibpath_var=LIBPATH
15353  ;;
15354
15355osf3* | osf4* | osf5*)
15356  version_type=osf
15357  need_lib_prefix=no
15358  need_version=no
15359  soname_spec='${libname}${release}${shared_ext}$major'
15360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361  shlibpath_var=LD_LIBRARY_PATH
15362  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15363  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15364  ;;
15365
15366sco3.2v5*)
15367  version_type=osf
15368  soname_spec='${libname}${release}${shared_ext}$major'
15369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370  shlibpath_var=LD_LIBRARY_PATH
15371  ;;
15372
15373solaris*)
15374  version_type=linux
15375  need_lib_prefix=no
15376  need_version=no
15377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378  soname_spec='${libname}${release}${shared_ext}$major'
15379  shlibpath_var=LD_LIBRARY_PATH
15380  shlibpath_overrides_runpath=yes
15381  hardcode_into_libs=yes
15382  # ldd complains unless libraries are executable
15383  postinstall_cmds='chmod +x $lib'
15384  ;;
15385
15386sunos4*)
15387  version_type=sunos
15388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15389  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15390  shlibpath_var=LD_LIBRARY_PATH
15391  shlibpath_overrides_runpath=yes
15392  if test "$with_gnu_ld" = yes; then
15393    need_lib_prefix=no
15394  fi
15395  need_version=yes
15396  ;;
15397
15398sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15399  version_type=linux
15400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401  soname_spec='${libname}${release}${shared_ext}$major'
15402  shlibpath_var=LD_LIBRARY_PATH
15403  case $host_vendor in
15404    sni)
15405      shlibpath_overrides_runpath=no
15406      need_lib_prefix=no
15407      export_dynamic_flag_spec='${wl}-Blargedynsym'
15408      runpath_var=LD_RUN_PATH
15409      ;;
15410    siemens)
15411      need_lib_prefix=no
15412      ;;
15413    motorola)
15414      need_lib_prefix=no
15415      need_version=no
15416      shlibpath_overrides_runpath=no
15417      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15418      ;;
15419  esac
15420  ;;
15421
15422sysv4*MP*)
15423  if test -d /usr/nec ;then
15424    version_type=linux
15425    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15426    soname_spec='$libname${shared_ext}.$major'
15427    shlibpath_var=LD_LIBRARY_PATH
15428  fi
15429  ;;
15430
15431uts4*)
15432  version_type=linux
15433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434  soname_spec='${libname}${release}${shared_ext}$major'
15435  shlibpath_var=LD_LIBRARY_PATH
15436  ;;
15437
15438*)
15439  dynamic_linker=no
15440  ;;
15441esac
15442echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15443echo "${ECHO_T}$dynamic_linker" >&6
15444test "$dynamic_linker" = no && can_build_shared=no
15445
15446echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15447echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15448hardcode_action_F77=
15449if test -n "$hardcode_libdir_flag_spec_F77" || \
15450   test -n "$runpath_var_F77" || \
15451   test "X$hardcode_automatic_F77" = "Xyes" ; then
15452
15453  # We can hardcode non-existant directories.
15454  if test "$hardcode_direct_F77" != no &&
15455     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15456     # have to relink, otherwise we might link with an installed library
15457     # when we should be linking with a yet-to-be-installed one
15458     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15459     test "$hardcode_minus_L_F77" != no; then
15460    # Linking always hardcodes the temporary library directory.
15461    hardcode_action_F77=relink
15462  else
15463    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15464    hardcode_action_F77=immediate
15465  fi
15466else
15467  # We cannot hardcode anything, or else we can only hardcode existing
15468  # directories.
15469  hardcode_action_F77=unsupported
15470fi
15471echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15472echo "${ECHO_T}$hardcode_action_F77" >&6
15473
15474if test "$hardcode_action_F77" = relink; then
15475  # Fast installation is not supported
15476  enable_fast_install=no
15477elif test "$shlibpath_overrides_runpath" = yes ||
15478     test "$enable_shared" = no; then
15479  # Fast installation is not necessary
15480  enable_fast_install=needless
15481fi
15482
15483striplib=
15484old_striplib=
15485echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15486echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15487if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15488  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15489  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15490  echo "$as_me:$LINENO: result: yes" >&5
15491echo "${ECHO_T}yes" >&6
15492else
15493# FIXME - insert some real tests, host_os isn't really good enough
15494  case $host_os in
15495   darwin*)
15496       if test -n "$STRIP" ; then
15497         striplib="$STRIP -x"
15498         echo "$as_me:$LINENO: result: yes" >&5
15499echo "${ECHO_T}yes" >&6
15500       else
15501  echo "$as_me:$LINENO: result: no" >&5
15502echo "${ECHO_T}no" >&6
15503fi
15504       ;;
15505   *)
15506  echo "$as_me:$LINENO: result: no" >&5
15507echo "${ECHO_T}no" >&6
15508    ;;
15509  esac
15510fi
15511
15512
15513
15514# The else clause should only fire when bootstrapping the
15515# libtool distribution, otherwise you forgot to ship ltmain.sh
15516# with your package, and you will get complaints that there are
15517# no rules to generate ltmain.sh.
15518if test -f "$ltmain"; then
15519  # See if we are running on zsh, and set the options which allow our commands through
15520  # without removal of \ escapes.
15521  if test -n "${ZSH_VERSION+set}" ; then
15522    setopt NO_GLOB_SUBST
15523  fi
15524  # Now quote all the things that may contain metacharacters while being
15525  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15526  # variables and quote the copies for generation of the libtool script.
15527  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15528    SED SHELL STRIP \
15529    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15530    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15531    deplibs_check_method reload_flag reload_cmds need_locks \
15532    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15533    lt_cv_sys_global_symbol_to_c_name_address \
15534    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15535    old_postinstall_cmds old_postuninstall_cmds \
15536    compiler_F77 \
15537    CC_F77 \
15538    LD_F77 \
15539    lt_prog_compiler_wl_F77 \
15540    lt_prog_compiler_pic_F77 \
15541    lt_prog_compiler_static_F77 \
15542    lt_prog_compiler_no_builtin_flag_F77 \
15543    export_dynamic_flag_spec_F77 \
15544    thread_safe_flag_spec_F77 \
15545    whole_archive_flag_spec_F77 \
15546    enable_shared_with_static_runtimes_F77 \
15547    old_archive_cmds_F77 \
15548    old_archive_from_new_cmds_F77 \
15549    predep_objects_F77 \
15550    postdep_objects_F77 \
15551    predeps_F77 \
15552    postdeps_F77 \
15553    compiler_lib_search_path_F77 \
15554    archive_cmds_F77 \
15555    archive_expsym_cmds_F77 \
15556    postinstall_cmds_F77 \
15557    postuninstall_cmds_F77 \
15558    old_archive_from_expsyms_cmds_F77 \
15559    allow_undefined_flag_F77 \
15560    no_undefined_flag_F77 \
15561    export_symbols_cmds_F77 \
15562    hardcode_libdir_flag_spec_F77 \
15563    hardcode_libdir_flag_spec_ld_F77 \
15564    hardcode_libdir_separator_F77 \
15565    hardcode_automatic_F77 \
15566    module_cmds_F77 \
15567    module_expsym_cmds_F77 \
15568    lt_cv_prog_compiler_c_o_F77 \
15569    exclude_expsyms_F77 \
15570    include_expsyms_F77; do
15571
15572    case $var in
15573    old_archive_cmds_F77 | \
15574    old_archive_from_new_cmds_F77 | \
15575    archive_cmds_F77 | \
15576    archive_expsym_cmds_F77 | \
15577    module_cmds_F77 | \
15578    module_expsym_cmds_F77 | \
15579    old_archive_from_expsyms_cmds_F77 | \
15580    export_symbols_cmds_F77 | \
15581    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15582    postinstall_cmds | postuninstall_cmds | \
15583    old_postinstall_cmds | old_postuninstall_cmds | \
15584    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15585      # Double-quote double-evaled strings.
15586      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15587      ;;
15588    *)
15589      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15590      ;;
15591    esac
15592  done
15593
15594  case $lt_echo in
15595  *'\$0 --fallback-echo"')
15596    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15597    ;;
15598  esac
15599
15600cfgfile="$ofile"
15601
15602  cat <<__EOF__ >> "$cfgfile"
15603# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15604
15605# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15606
15607# Shell to use when invoking shell scripts.
15608SHELL=$lt_SHELL
15609
15610# Whether or not to build shared libraries.
15611build_libtool_libs=$enable_shared
15612
15613# Whether or not to build static libraries.
15614build_old_libs=$enable_static
15615
15616# Whether or not to add -lc for building shared libraries.
15617build_libtool_need_lc=$archive_cmds_need_lc_F77
15618
15619# Whether or not to disallow shared libs when runtime libs are static
15620allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15621
15622# Whether or not to optimize for fast installation.
15623fast_install=$enable_fast_install
15624
15625# The host system.
15626host_alias=$host_alias
15627host=$host
15628host_os=$host_os
15629
15630# The build system.
15631build_alias=$build_alias
15632build=$build
15633build_os=$build_os
15634
15635# An echo program that does not interpret backslashes.
15636echo=$lt_echo
15637
15638# The archiver.
15639AR=$lt_AR
15640AR_FLAGS=$lt_AR_FLAGS
15641
15642# A C compiler.
15643LTCC=$lt_LTCC
15644
15645# A language-specific compiler.
15646CC=$lt_compiler_F77
15647
15648# Is the compiler the GNU C compiler?
15649with_gcc=$GCC_F77
15650
15651# An ERE matcher.
15652EGREP=$lt_EGREP
15653
15654# The linker used to build libraries.
15655LD=$lt_LD_F77
15656
15657# Whether we need hard or soft links.
15658LN_S=$lt_LN_S
15659
15660# A BSD-compatible nm program.
15661NM=$lt_NM
15662
15663# A symbol stripping program
15664STRIP=$lt_STRIP
15665
15666# Used to examine libraries when file_magic_cmd begins "file"
15667MAGIC_CMD=$MAGIC_CMD
15668
15669# Used on cygwin: DLL creation program.
15670DLLTOOL="$DLLTOOL"
15671
15672# Used on cygwin: object dumper.
15673OBJDUMP="$OBJDUMP"
15674
15675# Used on cygwin: assembler.
15676AS="$AS"
15677
15678# The name of the directory that contains temporary libtool files.
15679objdir=$objdir
15680
15681# How to create reloadable object files.
15682reload_flag=$lt_reload_flag
15683reload_cmds=$lt_reload_cmds
15684
15685# How to pass a linker flag through the compiler.
15686wl=$lt_lt_prog_compiler_wl_F77
15687
15688# Object file suffix (normally "o").
15689objext="$ac_objext"
15690
15691# Old archive suffix (normally "a").
15692libext="$libext"
15693
15694# Shared library suffix (normally ".so").
15695shrext_cmds='$shrext_cmds'
15696
15697# Executable file suffix (normally "").
15698exeext="$exeext"
15699
15700# Additional compiler flags for building library objects.
15701pic_flag=$lt_lt_prog_compiler_pic_F77
15702pic_mode=$pic_mode
15703
15704# What is the maximum length of a command?
15705max_cmd_len=$lt_cv_sys_max_cmd_len
15706
15707# Does compiler simultaneously support -c and -o options?
15708compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15709
15710# Must we lock files when doing compilation?
15711need_locks=$lt_need_locks
15712
15713# Do we need the lib prefix for modules?
15714need_lib_prefix=$need_lib_prefix
15715
15716# Do we need a version for libraries?
15717need_version=$need_version
15718
15719# Whether dlopen is supported.
15720dlopen_support=$enable_dlopen
15721
15722# Whether dlopen of programs is supported.
15723dlopen_self=$enable_dlopen_self
15724
15725# Whether dlopen of statically linked programs is supported.
15726dlopen_self_static=$enable_dlopen_self_static
15727
15728# Compiler flag to prevent dynamic linking.
15729link_static_flag=$lt_lt_prog_compiler_static_F77
15730
15731# Compiler flag to turn off builtin functions.
15732no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15733
15734# Compiler flag to allow reflexive dlopens.
15735export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15736
15737# Compiler flag to generate shared objects directly from archives.
15738whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15739
15740# Compiler flag to generate thread-safe objects.
15741thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15742
15743# Library versioning type.
15744version_type=$version_type
15745
15746# Format of library name prefix.
15747libname_spec=$lt_libname_spec
15748
15749# List of archive names.  First name is the real one, the rest are links.
15750# The last name is the one that the linker finds with -lNAME.
15751library_names_spec=$lt_library_names_spec
15752
15753# The coded name of the library, if different from the real name.
15754soname_spec=$lt_soname_spec
15755
15756# Commands used to build and install an old-style archive.
15757RANLIB=$lt_RANLIB
15758old_archive_cmds=$lt_old_archive_cmds_F77
15759old_postinstall_cmds=$lt_old_postinstall_cmds
15760old_postuninstall_cmds=$lt_old_postuninstall_cmds
15761
15762# Create an old-style archive from a shared archive.
15763old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15764
15765# Create a temporary old-style archive to link instead of a shared archive.
15766old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15767
15768# Commands used to build and install a shared archive.
15769archive_cmds=$lt_archive_cmds_F77
15770archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15771postinstall_cmds=$lt_postinstall_cmds
15772postuninstall_cmds=$lt_postuninstall_cmds
15773
15774# Commands used to build a loadable module (assumed same as above if empty)
15775module_cmds=$lt_module_cmds_F77
15776module_expsym_cmds=$lt_module_expsym_cmds_F77
15777
15778# Commands to strip libraries.
15779old_striplib=$lt_old_striplib
15780striplib=$lt_striplib
15781
15782# Dependencies to place before the objects being linked to create a
15783# shared library.
15784predep_objects=$lt_predep_objects_F77
15785
15786# Dependencies to place after the objects being linked to create a
15787# shared library.
15788postdep_objects=$lt_postdep_objects_F77
15789
15790# Dependencies to place before the objects being linked to create a
15791# shared library.
15792predeps=$lt_predeps_F77
15793
15794# Dependencies to place after the objects being linked to create a
15795# shared library.
15796postdeps=$lt_postdeps_F77
15797
15798# The library search path used internally by the compiler when linking
15799# a shared library.
15800compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15801
15802# Method to check whether dependent libraries are shared objects.
15803deplibs_check_method=$lt_deplibs_check_method
15804
15805# Command to use when deplibs_check_method == file_magic.
15806file_magic_cmd=$lt_file_magic_cmd
15807
15808# Flag that allows shared libraries with undefined symbols to be built.
15809allow_undefined_flag=$lt_allow_undefined_flag_F77
15810
15811# Flag that forces no undefined symbols.
15812no_undefined_flag=$lt_no_undefined_flag_F77
15813
15814# Commands used to finish a libtool library installation in a directory.
15815finish_cmds=$lt_finish_cmds
15816
15817# Same as above, but a single script fragment to be evaled but not shown.
15818finish_eval=$lt_finish_eval
15819
15820# Take the output of nm and produce a listing of raw symbols and C names.
15821global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15822
15823# Transform the output of nm in a proper C declaration
15824global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15825
15826# Transform the output of nm in a C name address pair
15827global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15828
15829# This is the shared library runtime path variable.
15830runpath_var=$runpath_var
15831
15832# This is the shared library path variable.
15833shlibpath_var=$shlibpath_var
15834
15835# Is shlibpath searched before the hard-coded library search path?
15836shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15837
15838# How to hardcode a shared library path into an executable.
15839hardcode_action=$hardcode_action_F77
15840
15841# Whether we should hardcode library paths into libraries.
15842hardcode_into_libs=$hardcode_into_libs
15843
15844# Flag to hardcode \$libdir into a binary during linking.
15845# This must work even if \$libdir does not exist.
15846hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15847
15848# If ld is used when linking, flag to hardcode \$libdir into
15849# a binary during linking. This must work even if \$libdir does
15850# not exist.
15851hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15852
15853# Whether we need a single -rpath flag with a separated argument.
15854hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15855
15856# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15857# resulting binary.
15858hardcode_direct=$hardcode_direct_F77
15859
15860# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15861# resulting binary.
15862hardcode_minus_L=$hardcode_minus_L_F77
15863
15864# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15865# the resulting binary.
15866hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15867
15868# Set to yes if building a shared library automatically hardcodes DIR into the library
15869# and all subsequent libraries and executables linked against it.
15870hardcode_automatic=$hardcode_automatic_F77
15871
15872# Variables whose values should be saved in libtool wrapper scripts and
15873# restored at relink time.
15874variables_saved_for_relink="$variables_saved_for_relink"
15875
15876# Whether libtool must link a program against all its dependency libraries.
15877link_all_deplibs=$link_all_deplibs_F77
15878
15879# Compile-time system search path for libraries
15880sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15881
15882# Run-time system search path for libraries
15883sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15884
15885# Fix the shell variable \$srcfile for the compiler.
15886fix_srcfile_path="$fix_srcfile_path_F77"
15887
15888# Set to yes if exported symbols are required.
15889always_export_symbols=$always_export_symbols_F77
15890
15891# The commands to list exported symbols.
15892export_symbols_cmds=$lt_export_symbols_cmds_F77
15893
15894# The commands to extract the exported symbol list from a shared archive.
15895extract_expsyms_cmds=$lt_extract_expsyms_cmds
15896
15897# Symbols that should not be listed in the preloaded symbols.
15898exclude_expsyms=$lt_exclude_expsyms_F77
15899
15900# Symbols that must always be exported.
15901include_expsyms=$lt_include_expsyms_F77
15902
15903# ### END LIBTOOL TAG CONFIG: $tagname
15904
15905__EOF__
15906
15907
15908else
15909  # If there is no Makefile yet, we rely on a make rule to execute
15910  # `config.status --recheck' to rerun these tests and create the
15911  # libtool script then.
15912  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15913  if test -f "$ltmain_in"; then
15914    test -f Makefile && make "$ltmain"
15915  fi
15916fi
15917
15918
15919ac_ext=c
15920ac_cpp='$CPP $CPPFLAGS'
15921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15923ac_compiler_gnu=$ac_cv_c_compiler_gnu
15924
15925CC="$lt_save_CC"
15926
15927	else
15928	  tagname=""
15929	fi
15930	;;
15931
15932      GCJ)
15933	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15934
15935
15936
15937# Source file extension for Java test sources.
15938ac_ext=java
15939
15940# Object file extension for compiled Java test sources.
15941objext=o
15942objext_GCJ=$objext
15943
15944# Code to be used in simple compile tests
15945lt_simple_compile_test_code="class foo {}\n"
15946
15947# Code to be used in simple link tests
15948lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15949
15950# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15951
15952# If no C compiler was specified, use CC.
15953LTCC=${LTCC-"$CC"}
15954
15955# Allow CC to be a program name with arguments.
15956compiler=$CC
15957
15958
15959# save warnings/boilerplate of simple test code
15960ac_outfile=conftest.$ac_objext
15961printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15962eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15963_lt_compiler_boilerplate=`cat conftest.err`
15964$rm conftest*
15965
15966ac_outfile=conftest.$ac_objext
15967printf "$lt_simple_link_test_code" >conftest.$ac_ext
15968eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15969_lt_linker_boilerplate=`cat conftest.err`
15970$rm conftest*
15971
15972
15973# Allow CC to be a program name with arguments.
15974lt_save_CC="$CC"
15975CC=${GCJ-"gcj"}
15976compiler=$CC
15977compiler_GCJ=$CC
15978for cc_temp in $compiler""; do
15979  case $cc_temp in
15980    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15981    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15982    \-*) ;;
15983    *) break;;
15984  esac
15985done
15986cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15987
15988
15989# GCJ did not exist at the time GCC didn't implicitly link libc in.
15990archive_cmds_need_lc_GCJ=no
15991
15992old_archive_cmds_GCJ=$old_archive_cmds
15993
15994## CAVEAT EMPTOR:
15995## There is no encapsulation within the following macros, do not change
15996## the running order or otherwise move them around unless you know exactly
15997## what you are doing...
15998
15999lt_prog_compiler_no_builtin_flag_GCJ=
16000
16001if test "$GCC" = yes; then
16002  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16003
16004
16005echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16006echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16007if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16008  echo $ECHO_N "(cached) $ECHO_C" >&6
16009else
16010  lt_cv_prog_compiler_rtti_exceptions=no
16011  ac_outfile=conftest.$ac_objext
16012   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16013   lt_compiler_flag="-fno-rtti -fno-exceptions"
16014   # Insert the option either (1) after the last *FLAGS variable, or
16015   # (2) before a word containing "conftest.", or (3) at the end.
16016   # Note that $ac_compile itself does not contain backslashes and begins
16017   # with a dollar sign (not a hyphen), so the echo should work correctly.
16018   # The option is referenced via a variable to avoid confusing sed.
16019   lt_compile=`echo "$ac_compile" | $SED \
16020   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16021   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16022   -e 's:$: $lt_compiler_flag:'`
16023   (eval echo "\"\$as_me:16023: $lt_compile\"" >&5)
16024   (eval "$lt_compile" 2>conftest.err)
16025   ac_status=$?
16026   cat conftest.err >&5
16027   echo "$as_me:16027: \$? = $ac_status" >&5
16028   if (exit $ac_status) && test -s "$ac_outfile"; then
16029     # The compiler can only warn and ignore the option if not recognized
16030     # So say no if there are warnings other than the usual output.
16031     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16032     $SED '/^$/d' conftest.err >conftest.er2
16033     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16034       lt_cv_prog_compiler_rtti_exceptions=yes
16035     fi
16036   fi
16037   $rm conftest*
16038
16039fi
16040echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16041echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16042
16043if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16044    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16045else
16046    :
16047fi
16048
16049fi
16050
16051lt_prog_compiler_wl_GCJ=
16052lt_prog_compiler_pic_GCJ=
16053lt_prog_compiler_static_GCJ=
16054
16055echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16056echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16057
16058  if test "$GCC" = yes; then
16059    lt_prog_compiler_wl_GCJ='-Wl,'
16060    lt_prog_compiler_static_GCJ='-static'
16061
16062    case $host_os in
16063      aix*)
16064      # All AIX code is PIC.
16065      if test "$host_cpu" = ia64; then
16066	# AIX 5 now supports IA64 processor
16067	lt_prog_compiler_static_GCJ='-Bstatic'
16068      fi
16069      ;;
16070
16071    amigaos*)
16072      # FIXME: we need at least 68020 code to build shared libraries, but
16073      # adding the `-m68020' flag to GCC prevents building anything better,
16074      # like `-m68040'.
16075      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16076      ;;
16077
16078    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16079      # PIC is the default for these OSes.
16080      ;;
16081
16082    mingw* | pw32* | os2*)
16083      # This hack is so that the source file can tell whether it is being
16084      # built for inclusion in a dll (and should export symbols for example).
16085      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16086      ;;
16087
16088    darwin* | rhapsody*)
16089      # PIC is the default on this platform
16090      # Common symbols not allowed in MH_DYLIB files
16091      lt_prog_compiler_pic_GCJ='-fno-common'
16092      ;;
16093
16094    msdosdjgpp*)
16095      # Just because we use GCC doesn't mean we suddenly get shared libraries
16096      # on systems that don't support them.
16097      lt_prog_compiler_can_build_shared_GCJ=no
16098      enable_shared=no
16099      ;;
16100
16101    sysv4*MP*)
16102      if test -d /usr/nec; then
16103	lt_prog_compiler_pic_GCJ=-Kconform_pic
16104      fi
16105      ;;
16106
16107    hpux*)
16108      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16109      # not for PA HP-UX.
16110      case $host_cpu in
16111      hppa*64*|ia64*)
16112	# +Z the default
16113	;;
16114      *)
16115	lt_prog_compiler_pic_GCJ='-fPIC'
16116	;;
16117      esac
16118      ;;
16119
16120    *)
16121      lt_prog_compiler_pic_GCJ='-fPIC'
16122      ;;
16123    esac
16124  else
16125    # PORTME Check for flag to pass linker flags through the system compiler.
16126    case $host_os in
16127    aix*)
16128      lt_prog_compiler_wl_GCJ='-Wl,'
16129      if test "$host_cpu" = ia64; then
16130	# AIX 5 now supports IA64 processor
16131	lt_prog_compiler_static_GCJ='-Bstatic'
16132      else
16133	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16134      fi
16135      ;;
16136      darwin*)
16137        # PIC is the default on this platform
16138        # Common symbols not allowed in MH_DYLIB files
16139       case $cc_basename in
16140         xlc*)
16141         lt_prog_compiler_pic_GCJ='-qnocommon'
16142         lt_prog_compiler_wl_GCJ='-Wl,'
16143         ;;
16144       esac
16145       ;;
16146
16147    mingw* | pw32* | os2*)
16148      # This hack is so that the source file can tell whether it is being
16149      # built for inclusion in a dll (and should export symbols for example).
16150      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16151      ;;
16152
16153    hpux9* | hpux10* | hpux11*)
16154      lt_prog_compiler_wl_GCJ='-Wl,'
16155      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16156      # not for PA HP-UX.
16157      case $host_cpu in
16158      hppa*64*|ia64*)
16159	# +Z the default
16160	;;
16161      *)
16162	lt_prog_compiler_pic_GCJ='+Z'
16163	;;
16164      esac
16165      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16166      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16167      ;;
16168
16169    irix5* | irix6* | nonstopux*)
16170      lt_prog_compiler_wl_GCJ='-Wl,'
16171      # PIC (with -KPIC) is the default.
16172      lt_prog_compiler_static_GCJ='-non_shared'
16173      ;;
16174
16175    newsos6)
16176      lt_prog_compiler_pic_GCJ='-KPIC'
16177      lt_prog_compiler_static_GCJ='-Bstatic'
16178      ;;
16179
16180    linux*)
16181      case $cc_basename in
16182      icc* | ecc*)
16183	lt_prog_compiler_wl_GCJ='-Wl,'
16184	lt_prog_compiler_pic_GCJ='-KPIC'
16185	lt_prog_compiler_static_GCJ='-static'
16186        ;;
16187      pgcc* | pgf77* | pgf90* | pgf95*)
16188        # Portland Group compilers (*not* the Pentium gcc compiler,
16189	# which looks to be a dead project)
16190	lt_prog_compiler_wl_GCJ='-Wl,'
16191	lt_prog_compiler_pic_GCJ='-fpic'
16192	lt_prog_compiler_static_GCJ='-Bstatic'
16193        ;;
16194      ccc*)
16195        lt_prog_compiler_wl_GCJ='-Wl,'
16196        # All Alpha code is PIC.
16197        lt_prog_compiler_static_GCJ='-non_shared'
16198        ;;
16199      esac
16200      ;;
16201
16202    osf3* | osf4* | osf5*)
16203      lt_prog_compiler_wl_GCJ='-Wl,'
16204      # All OSF/1 code is PIC.
16205      lt_prog_compiler_static_GCJ='-non_shared'
16206      ;;
16207
16208    sco3.2v5*)
16209      lt_prog_compiler_pic_GCJ='-Kpic'
16210      lt_prog_compiler_static_GCJ='-dn'
16211      ;;
16212
16213    solaris*)
16214      lt_prog_compiler_pic_GCJ='-KPIC'
16215      lt_prog_compiler_static_GCJ='-Bstatic'
16216      case $cc_basename in
16217      f77* | f90* | f95*)
16218	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16219      *)
16220	lt_prog_compiler_wl_GCJ='-Wl,';;
16221      esac
16222      ;;
16223
16224    sunos4*)
16225      lt_prog_compiler_wl_GCJ='-Qoption ld '
16226      lt_prog_compiler_pic_GCJ='-PIC'
16227      lt_prog_compiler_static_GCJ='-Bstatic'
16228      ;;
16229
16230    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16231      lt_prog_compiler_wl_GCJ='-Wl,'
16232      lt_prog_compiler_pic_GCJ='-KPIC'
16233      lt_prog_compiler_static_GCJ='-Bstatic'
16234      ;;
16235
16236    sysv4*MP*)
16237      if test -d /usr/nec ;then
16238	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16239	lt_prog_compiler_static_GCJ='-Bstatic'
16240      fi
16241      ;;
16242
16243    unicos*)
16244      lt_prog_compiler_wl_GCJ='-Wl,'
16245      lt_prog_compiler_can_build_shared_GCJ=no
16246      ;;
16247
16248    uts4*)
16249      lt_prog_compiler_pic_GCJ='-pic'
16250      lt_prog_compiler_static_GCJ='-Bstatic'
16251      ;;
16252
16253    *)
16254      lt_prog_compiler_can_build_shared_GCJ=no
16255      ;;
16256    esac
16257  fi
16258
16259echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16260echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16261
16262#
16263# Check to make sure the PIC flag actually works.
16264#
16265if test -n "$lt_prog_compiler_pic_GCJ"; then
16266
16267echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16268echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16269if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16270  echo $ECHO_N "(cached) $ECHO_C" >&6
16271else
16272  lt_prog_compiler_pic_works_GCJ=no
16273  ac_outfile=conftest.$ac_objext
16274   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16275   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16276   # Insert the option either (1) after the last *FLAGS variable, or
16277   # (2) before a word containing "conftest.", or (3) at the end.
16278   # Note that $ac_compile itself does not contain backslashes and begins
16279   # with a dollar sign (not a hyphen), so the echo should work correctly.
16280   # The option is referenced via a variable to avoid confusing sed.
16281   lt_compile=`echo "$ac_compile" | $SED \
16282   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16283   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16284   -e 's:$: $lt_compiler_flag:'`
16285   (eval echo "\"\$as_me:16285: $lt_compile\"" >&5)
16286   (eval "$lt_compile" 2>conftest.err)
16287   ac_status=$?
16288   cat conftest.err >&5
16289   echo "$as_me:16289: \$? = $ac_status" >&5
16290   if (exit $ac_status) && test -s "$ac_outfile"; then
16291     # The compiler can only warn and ignore the option if not recognized
16292     # So say no if there are warnings other than the usual output.
16293     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16294     $SED '/^$/d' conftest.err >conftest.er2
16295     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16296       lt_prog_compiler_pic_works_GCJ=yes
16297     fi
16298   fi
16299   $rm conftest*
16300
16301fi
16302echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16303echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16304
16305if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16306    case $lt_prog_compiler_pic_GCJ in
16307     "" | " "*) ;;
16308     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16309     esac
16310else
16311    lt_prog_compiler_pic_GCJ=
16312     lt_prog_compiler_can_build_shared_GCJ=no
16313fi
16314
16315fi
16316case $host_os in
16317  # For platforms which do not support PIC, -DPIC is meaningless:
16318  *djgpp*)
16319    lt_prog_compiler_pic_GCJ=
16320    ;;
16321  *)
16322    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16323    ;;
16324esac
16325
16326echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16327echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16328if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16329  echo $ECHO_N "(cached) $ECHO_C" >&6
16330else
16331  lt_cv_prog_compiler_c_o_GCJ=no
16332   $rm -r conftest 2>/dev/null
16333   mkdir conftest
16334   cd conftest
16335   mkdir out
16336   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16337
16338   lt_compiler_flag="-o out/conftest2.$ac_objext"
16339   # Insert the option either (1) after the last *FLAGS variable, or
16340   # (2) before a word containing "conftest.", or (3) at the end.
16341   # Note that $ac_compile itself does not contain backslashes and begins
16342   # with a dollar sign (not a hyphen), so the echo should work correctly.
16343   lt_compile=`echo "$ac_compile" | $SED \
16344   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16345   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16346   -e 's:$: $lt_compiler_flag:'`
16347   (eval echo "\"\$as_me:16347: $lt_compile\"" >&5)
16348   (eval "$lt_compile" 2>out/conftest.err)
16349   ac_status=$?
16350   cat out/conftest.err >&5
16351   echo "$as_me:16351: \$? = $ac_status" >&5
16352   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16353   then
16354     # The compiler can only warn and ignore the option if not recognized
16355     # So say no if there are warnings
16356     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16357     $SED '/^$/d' out/conftest.err >out/conftest.er2
16358     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16359       lt_cv_prog_compiler_c_o_GCJ=yes
16360     fi
16361   fi
16362   chmod u+w . 2>&5
16363   $rm conftest*
16364   # SGI C++ compiler will create directory out/ii_files/ for
16365   # template instantiation
16366   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16367   $rm out/* && rmdir out
16368   cd ..
16369   rmdir conftest
16370   $rm conftest*
16371
16372fi
16373echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16374echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16375
16376
16377hard_links="nottested"
16378if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16379  # do not overwrite the value of need_locks provided by the user
16380  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16381echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16382  hard_links=yes
16383  $rm conftest*
16384  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16385  touch conftest.a
16386  ln conftest.a conftest.b 2>&5 || hard_links=no
16387  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16388  echo "$as_me:$LINENO: result: $hard_links" >&5
16389echo "${ECHO_T}$hard_links" >&6
16390  if test "$hard_links" = no; then
16391    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16392echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16393    need_locks=warn
16394  fi
16395else
16396  need_locks=no
16397fi
16398
16399echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16400echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16401
16402  runpath_var=
16403  allow_undefined_flag_GCJ=
16404  enable_shared_with_static_runtimes_GCJ=no
16405  archive_cmds_GCJ=
16406  archive_expsym_cmds_GCJ=
16407  old_archive_From_new_cmds_GCJ=
16408  old_archive_from_expsyms_cmds_GCJ=
16409  export_dynamic_flag_spec_GCJ=
16410  whole_archive_flag_spec_GCJ=
16411  thread_safe_flag_spec_GCJ=
16412  hardcode_libdir_flag_spec_GCJ=
16413  hardcode_libdir_flag_spec_ld_GCJ=
16414  hardcode_libdir_separator_GCJ=
16415  hardcode_direct_GCJ=no
16416  hardcode_minus_L_GCJ=no
16417  hardcode_shlibpath_var_GCJ=unsupported
16418  link_all_deplibs_GCJ=unknown
16419  hardcode_automatic_GCJ=no
16420  module_cmds_GCJ=
16421  module_expsym_cmds_GCJ=
16422  always_export_symbols_GCJ=no
16423  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16424  # include_expsyms should be a list of space-separated symbols to be *always*
16425  # included in the symbol list
16426  include_expsyms_GCJ=
16427  # exclude_expsyms can be an extended regexp of symbols to exclude
16428  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16429  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16430  # as well as any symbol that contains `d'.
16431  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16432  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16433  # platforms (ab)use it in PIC code, but their linkers get confused if
16434  # the symbol is explicitly referenced.  Since portable code cannot
16435  # rely on this symbol name, it's probably fine to never include it in
16436  # preloaded symbol tables.
16437  extract_expsyms_cmds=
16438  # Just being paranoid about ensuring that cc_basename is set.
16439  for cc_temp in $compiler""; do
16440  case $cc_temp in
16441    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16442    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16443    \-*) ;;
16444    *) break;;
16445  esac
16446done
16447cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16448
16449  case $host_os in
16450  cygwin* | mingw* | pw32*)
16451    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16452    # When not using gcc, we currently assume that we are using
16453    # Microsoft Visual C++.
16454    if test "$GCC" != yes; then
16455      with_gnu_ld=no
16456    fi
16457    ;;
16458  openbsd*)
16459    with_gnu_ld=no
16460    ;;
16461  esac
16462
16463  ld_shlibs_GCJ=yes
16464  if test "$with_gnu_ld" = yes; then
16465    # If archive_cmds runs LD, not CC, wlarc should be empty
16466    wlarc='${wl}'
16467
16468    # Set some defaults for GNU ld with shared library support. These
16469    # are reset later if shared libraries are not supported. Putting them
16470    # here allows them to be overridden if necessary.
16471    runpath_var=LD_RUN_PATH
16472    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16473    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16474    # ancient GNU ld didn't support --whole-archive et. al.
16475    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16476	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16477      else
16478  	whole_archive_flag_spec_GCJ=
16479    fi
16480    supports_anon_versioning=no
16481    case `$LD -v 2>/dev/null` in
16482      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16483      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16484      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16485      *\ 2.11.*) ;; # other 2.11 versions
16486      *) supports_anon_versioning=yes ;;
16487    esac
16488
16489    # See if GNU ld supports shared libraries.
16490    case $host_os in
16491    aix3* | aix4* | aix5*)
16492      # On AIX/PPC, the GNU linker is very broken
16493      if test "$host_cpu" != ia64; then
16494	ld_shlibs_GCJ=no
16495	cat <<EOF 1>&2
16496
16497*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16498*** to be unable to reliably create shared libraries on AIX.
16499*** Therefore, libtool is disabling shared libraries support.  If you
16500*** really care for shared libraries, you may want to modify your PATH
16501*** so that a non-GNU linker is found, and then restart.
16502
16503EOF
16504      fi
16505      ;;
16506
16507    amigaos*)
16508      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)'
16509      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16510      hardcode_minus_L_GCJ=yes
16511
16512      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16513      # that the semantics of dynamic libraries on AmigaOS, at least up
16514      # to version 4, is to share data among multiple programs linked
16515      # with the same dynamic library.  Since this doesn't match the
16516      # behavior of shared libraries on other platforms, we can't use
16517      # them.
16518      ld_shlibs_GCJ=no
16519      ;;
16520
16521    beos*)
16522      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16523	allow_undefined_flag_GCJ=unsupported
16524	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16525	# support --undefined.  This deserves some investigation.  FIXME
16526	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16527      else
16528	ld_shlibs_GCJ=no
16529      fi
16530      ;;
16531
16532    cygwin* | mingw* | pw32*)
16533      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16534      # as there is no search path for DLLs.
16535      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16536      allow_undefined_flag_GCJ=unsupported
16537      always_export_symbols_GCJ=no
16538      enable_shared_with_static_runtimes_GCJ=yes
16539      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16540
16541      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16542        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16543	# If the export-symbols file already is a .def file (1st line
16544	# is EXPORTS), use it as is; otherwise, prepend...
16545	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16546	  cp $export_symbols $output_objdir/$soname.def;
16547	else
16548	  echo EXPORTS > $output_objdir/$soname.def;
16549	  cat $export_symbols >> $output_objdir/$soname.def;
16550	fi~
16551	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16552      else
16553	ld_shlibs_GCJ=no
16554      fi
16555      ;;
16556
16557    linux*)
16558      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16559	tmp_addflag=
16560	case $cc_basename,$host_cpu in
16561	pgcc*)				# Portland Group C compiler
16562	  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'
16563	  tmp_addflag=' $pic_flag'
16564	  ;;
16565	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16566	  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'
16567	  tmp_addflag=' $pic_flag -Mnomain' ;;
16568	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16569	  tmp_addflag=' -i_dynamic' ;;
16570	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16571	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16572	ifc* | ifort*)			# Intel Fortran compiler
16573	  tmp_addflag=' -nofor_main' ;;
16574	esac
16575	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16576
16577	if test $supports_anon_versioning = yes; then
16578	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16579  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16580  $echo "local: *; };" >> $output_objdir/$libname.ver~
16581	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16582	fi
16583      else
16584	ld_shlibs_GCJ=no
16585      fi
16586      ;;
16587
16588    netbsd*)
16589      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16590	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16591	wlarc=
16592      else
16593	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16594	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16595      fi
16596      ;;
16597
16598    solaris* | sysv5*)
16599      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16600	ld_shlibs_GCJ=no
16601	cat <<EOF 1>&2
16602
16603*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16604*** create shared libraries on Solaris systems.  Therefore, libtool
16605*** is disabling shared libraries support.  We urge you to upgrade GNU
16606*** binutils to release 2.9.1 or newer.  Another option is to modify
16607*** your PATH or compiler configuration so that the native linker is
16608*** used, and then restart.
16609
16610EOF
16611      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16612	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16613	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16614      else
16615	ld_shlibs_GCJ=no
16616      fi
16617      ;;
16618
16619    sunos4*)
16620      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16621      wlarc=
16622      hardcode_direct_GCJ=yes
16623      hardcode_shlibpath_var_GCJ=no
16624      ;;
16625
16626    *)
16627      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16628	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16629	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16630      else
16631	ld_shlibs_GCJ=no
16632      fi
16633      ;;
16634    esac
16635
16636    if test "$ld_shlibs_GCJ" = no; then
16637      runpath_var=
16638      hardcode_libdir_flag_spec_GCJ=
16639      export_dynamic_flag_spec_GCJ=
16640      whole_archive_flag_spec_GCJ=
16641    fi
16642  else
16643    # PORTME fill in a description of your system's linker (not GNU ld)
16644    case $host_os in
16645    aix3*)
16646      allow_undefined_flag_GCJ=unsupported
16647      always_export_symbols_GCJ=yes
16648      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'
16649      # Note: this linker hardcodes the directories in LIBPATH if there
16650      # are no directories specified by -L.
16651      hardcode_minus_L_GCJ=yes
16652      if test "$GCC" = yes && test -z "$link_static_flag"; then
16653	# Neither direct hardcoding nor static linking is supported with a
16654	# broken collect2.
16655	hardcode_direct_GCJ=unsupported
16656      fi
16657      ;;
16658
16659    aix4* | aix5*)
16660      if test "$host_cpu" = ia64; then
16661	# On IA64, the linker does run time linking by default, so we don't
16662	# have to do anything special.
16663	aix_use_runtimelinking=no
16664	exp_sym_flag='-Bexport'
16665	no_entry_flag=""
16666      else
16667	# If we're using GNU nm, then we don't want the "-C" option.
16668	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16669	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16670	  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'
16671	else
16672	  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'
16673	fi
16674	aix_use_runtimelinking=no
16675
16676	# Test if we are trying to use run time linking or normal
16677	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16678	# need to do runtime linking.
16679	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16680	  for ld_flag in $LDFLAGS; do
16681  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16682  	    aix_use_runtimelinking=yes
16683  	    break
16684  	  fi
16685	  done
16686	esac
16687
16688	exp_sym_flag='-bexport'
16689	no_entry_flag='-bnoentry'
16690      fi
16691
16692      # When large executables or shared objects are built, AIX ld can
16693      # have problems creating the table of contents.  If linking a library
16694      # or program results in "error TOC overflow" add -mminimal-toc to
16695      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16696      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16697
16698      archive_cmds_GCJ=''
16699      hardcode_direct_GCJ=yes
16700      hardcode_libdir_separator_GCJ=':'
16701      link_all_deplibs_GCJ=yes
16702
16703      if test "$GCC" = yes; then
16704	case $host_os in aix4.[012]|aix4.[012].*)
16705	# We only want to do this on AIX 4.2 and lower, the check
16706	# below for broken collect2 doesn't work under 4.3+
16707	  collect2name=`${CC} -print-prog-name=collect2`
16708	  if test -f "$collect2name" && \
16709  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16710	  then
16711  	  # We have reworked collect2
16712  	  hardcode_direct_GCJ=yes
16713	  else
16714  	  # We have old collect2
16715  	  hardcode_direct_GCJ=unsupported
16716  	  # It fails to find uninstalled libraries when the uninstalled
16717  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16718  	  # to unsupported forces relinking
16719  	  hardcode_minus_L_GCJ=yes
16720  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16721  	  hardcode_libdir_separator_GCJ=
16722	  fi
16723	esac
16724	shared_flag='-shared'
16725	if test "$aix_use_runtimelinking" = yes; then
16726	  shared_flag="$shared_flag "'${wl}-G'
16727	fi
16728      else
16729	# not using gcc
16730	if test "$host_cpu" = ia64; then
16731  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16732  	# chokes on -Wl,-G. The following line is correct:
16733	  shared_flag='-G'
16734	else
16735  	if test "$aix_use_runtimelinking" = yes; then
16736	    shared_flag='${wl}-G'
16737	  else
16738	    shared_flag='${wl}-bM:SRE'
16739  	fi
16740	fi
16741      fi
16742
16743      # It seems that -bexpall does not export symbols beginning with
16744      # underscore (_), so it is better to generate a list of symbols to export.
16745      always_export_symbols_GCJ=yes
16746      if test "$aix_use_runtimelinking" = yes; then
16747	# Warning - without using the other runtime loading flags (-brtl),
16748	# -berok will link without error, but may produce a broken library.
16749	allow_undefined_flag_GCJ='-berok'
16750       # Determine the default libpath from the value encoded in an empty executable.
16751       cat >conftest.$ac_ext <<_ACEOF
16752/* confdefs.h.  */
16753_ACEOF
16754cat confdefs.h >>conftest.$ac_ext
16755cat >>conftest.$ac_ext <<_ACEOF
16756/* end confdefs.h.  */
16757
16758int
16759main ()
16760{
16761
16762  ;
16763  return 0;
16764}
16765_ACEOF
16766rm -f conftest.$ac_objext conftest$ac_exeext
16767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16768  (eval $ac_link) 2>conftest.er1
16769  ac_status=$?
16770  grep -v '^ *+' conftest.er1 >conftest.err
16771  rm -f conftest.er1
16772  cat conftest.err >&5
16773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774  (exit $ac_status); } &&
16775	 { ac_try='test -z "$ac_c_werror_flag"
16776			 || test ! -s conftest.err'
16777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778  (eval $ac_try) 2>&5
16779  ac_status=$?
16780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781  (exit $ac_status); }; } &&
16782	 { ac_try='test -s conftest$ac_exeext'
16783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784  (eval $ac_try) 2>&5
16785  ac_status=$?
16786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787  (exit $ac_status); }; }; then
16788
16789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16790}'`
16791# Check for a 64-bit object if we didn't find anything.
16792if 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; }
16793}'`; fi
16794else
16795  echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
16798fi
16799rm -f conftest.err conftest.$ac_objext \
16800      conftest$ac_exeext conftest.$ac_ext
16801if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16802
16803       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16804	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16805       else
16806	if test "$host_cpu" = ia64; then
16807	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16808	  allow_undefined_flag_GCJ="-z nodefs"
16809	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16810	else
16811	 # Determine the default libpath from the value encoded in an empty executable.
16812	 cat >conftest.$ac_ext <<_ACEOF
16813/* confdefs.h.  */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h.  */
16818
16819int
16820main ()
16821{
16822
16823  ;
16824  return 0;
16825}
16826_ACEOF
16827rm -f conftest.$ac_objext conftest$ac_exeext
16828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16829  (eval $ac_link) 2>conftest.er1
16830  ac_status=$?
16831  grep -v '^ *+' conftest.er1 >conftest.err
16832  rm -f conftest.er1
16833  cat conftest.err >&5
16834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835  (exit $ac_status); } &&
16836	 { ac_try='test -z "$ac_c_werror_flag"
16837			 || test ! -s conftest.err'
16838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839  (eval $ac_try) 2>&5
16840  ac_status=$?
16841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842  (exit $ac_status); }; } &&
16843	 { ac_try='test -s conftest$ac_exeext'
16844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845  (eval $ac_try) 2>&5
16846  ac_status=$?
16847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848  (exit $ac_status); }; }; then
16849
16850aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16851}'`
16852# Check for a 64-bit object if we didn't find anything.
16853if 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; }
16854}'`; fi
16855else
16856  echo "$as_me: failed program was:" >&5
16857sed 's/^/| /' conftest.$ac_ext >&5
16858
16859fi
16860rm -f conftest.err conftest.$ac_objext \
16861      conftest$ac_exeext conftest.$ac_ext
16862if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16863
16864	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16865	  # Warning - without using the other run time loading flags,
16866	  # -berok will link without error, but may produce a broken library.
16867	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16868	  allow_undefined_flag_GCJ=' ${wl}-berok'
16869	  # -bexpall does not export symbols beginning with underscore (_)
16870	  always_export_symbols_GCJ=yes
16871	  # Exported symbols can be pulled into shared objects from archives
16872	  whole_archive_flag_spec_GCJ=' '
16873	  archive_cmds_need_lc_GCJ=yes
16874	  # This is similar to how AIX traditionally builds its shared libraries.
16875	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16876	fi
16877      fi
16878      ;;
16879
16880    amigaos*)
16881      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)'
16882      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16883      hardcode_minus_L_GCJ=yes
16884      # see comment about different semantics on the GNU ld section
16885      ld_shlibs_GCJ=no
16886      ;;
16887
16888    bsdi[45]*)
16889      export_dynamic_flag_spec_GCJ=-rdynamic
16890      ;;
16891
16892    cygwin* | mingw* | pw32*)
16893      # When not using gcc, we currently assume that we are using
16894      # Microsoft Visual C++.
16895      # hardcode_libdir_flag_spec is actually meaningless, as there is
16896      # no search path for DLLs.
16897      hardcode_libdir_flag_spec_GCJ=' '
16898      allow_undefined_flag_GCJ=unsupported
16899      # Tell ltmain to make .lib files, not .a files.
16900      libext=lib
16901      # Tell ltmain to make .dll files, not .so files.
16902      shrext_cmds=".dll"
16903      # FIXME: Setting linknames here is a bad hack.
16904      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16905      # The linker will automatically build a .lib file if we build a DLL.
16906      old_archive_From_new_cmds_GCJ='true'
16907      # FIXME: Should let the user specify the lib program.
16908      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16909      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16910      enable_shared_with_static_runtimes_GCJ=yes
16911      ;;
16912
16913    darwin* | rhapsody*)
16914      case $host_os in
16915        rhapsody* | darwin1.[012])
16916         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16917         ;;
16918       *) # Darwin 1.3 on
16919         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16920           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16921         else
16922           case ${MACOSX_DEPLOYMENT_TARGET} in
16923             10.[012])
16924               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16925               ;;
16926             10.*)
16927               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16928               ;;
16929           esac
16930         fi
16931         ;;
16932      esac
16933      archive_cmds_need_lc_GCJ=no
16934      hardcode_direct_GCJ=no
16935      hardcode_automatic_GCJ=yes
16936      hardcode_shlibpath_var_GCJ=unsupported
16937      whole_archive_flag_spec_GCJ=''
16938      link_all_deplibs_GCJ=yes
16939    if test "$GCC" = yes ; then
16940    	output_verbose_link_cmd='echo'
16941        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16942      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16943      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16944      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}'
16945      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}'
16946    else
16947      case $cc_basename in
16948        xlc*)
16949         output_verbose_link_cmd='echo'
16950         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16951         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16952          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16953         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}'
16954          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}'
16955          ;;
16956       *)
16957         ld_shlibs_GCJ=no
16958          ;;
16959      esac
16960    fi
16961      ;;
16962
16963    dgux*)
16964      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16966      hardcode_shlibpath_var_GCJ=no
16967      ;;
16968
16969    freebsd1*)
16970      ld_shlibs_GCJ=no
16971      ;;
16972
16973    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16974    # support.  Future versions do this automatically, but an explicit c++rt0.o
16975    # does not break anything, and helps significantly (at the cost of a little
16976    # extra space).
16977    freebsd2.2*)
16978      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16979      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16980      hardcode_direct_GCJ=yes
16981      hardcode_shlibpath_var_GCJ=no
16982      ;;
16983
16984    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16985    freebsd2*)
16986      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16987      hardcode_direct_GCJ=yes
16988      hardcode_minus_L_GCJ=yes
16989      hardcode_shlibpath_var_GCJ=no
16990      ;;
16991
16992    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16993    freebsd* | kfreebsd*-gnu | dragonfly*)
16994      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16995      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16996      hardcode_direct_GCJ=yes
16997      hardcode_shlibpath_var_GCJ=no
16998      ;;
16999
17000    hpux9*)
17001      if test "$GCC" = yes; then
17002	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'
17003      else
17004	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'
17005      fi
17006      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17007      hardcode_libdir_separator_GCJ=:
17008      hardcode_direct_GCJ=yes
17009
17010      # hardcode_minus_L: Not really in the search PATH,
17011      # but as the default location of the library.
17012      hardcode_minus_L_GCJ=yes
17013      export_dynamic_flag_spec_GCJ='${wl}-E'
17014      ;;
17015
17016    hpux10* | hpux11*)
17017      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17018	case $host_cpu in
17019	hppa*64*|ia64*)
17020	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17021	  ;;
17022	*)
17023	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17024	  ;;
17025	esac
17026      else
17027	case $host_cpu in
17028	hppa*64*|ia64*)
17029	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17030	  ;;
17031	*)
17032	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17033	  ;;
17034	esac
17035      fi
17036      if test "$with_gnu_ld" = no; then
17037	case $host_cpu in
17038	hppa*64*)
17039	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17040	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17041	  hardcode_libdir_separator_GCJ=:
17042	  hardcode_direct_GCJ=no
17043	  hardcode_shlibpath_var_GCJ=no
17044	  ;;
17045	ia64*)
17046	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17047	  hardcode_direct_GCJ=no
17048	  hardcode_shlibpath_var_GCJ=no
17049
17050	  # hardcode_minus_L: Not really in the search PATH,
17051	  # but as the default location of the library.
17052	  hardcode_minus_L_GCJ=yes
17053	  ;;
17054	*)
17055	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17056	  hardcode_libdir_separator_GCJ=:
17057	  hardcode_direct_GCJ=yes
17058	  export_dynamic_flag_spec_GCJ='${wl}-E'
17059
17060	  # hardcode_minus_L: Not really in the search PATH,
17061	  # but as the default location of the library.
17062	  hardcode_minus_L_GCJ=yes
17063	  ;;
17064	esac
17065      fi
17066      ;;
17067
17068    irix5* | irix6* | nonstopux*)
17069      if test "$GCC" = yes; then
17070	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'
17071      else
17072	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'
17073	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17074      fi
17075      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17076      hardcode_libdir_separator_GCJ=:
17077      link_all_deplibs_GCJ=yes
17078      ;;
17079
17080    netbsd*)
17081      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17082	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17083      else
17084	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17085      fi
17086      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17087      hardcode_direct_GCJ=yes
17088      hardcode_shlibpath_var_GCJ=no
17089      ;;
17090
17091    newsos6)
17092      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17093      hardcode_direct_GCJ=yes
17094      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17095      hardcode_libdir_separator_GCJ=:
17096      hardcode_shlibpath_var_GCJ=no
17097      ;;
17098
17099    openbsd*)
17100      hardcode_direct_GCJ=yes
17101      hardcode_shlibpath_var_GCJ=no
17102      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17103	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17104	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17105	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17106	export_dynamic_flag_spec_GCJ='${wl}-E'
17107      else
17108       case $host_os in
17109	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17110	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17111	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17112	   ;;
17113	 *)
17114	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17115	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17116	   ;;
17117       esac
17118      fi
17119      ;;
17120
17121    os2*)
17122      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17123      hardcode_minus_L_GCJ=yes
17124      allow_undefined_flag_GCJ=unsupported
17125      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'
17126      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17127      ;;
17128
17129    osf3*)
17130      if test "$GCC" = yes; then
17131	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17132	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'
17133      else
17134	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17135	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'
17136      fi
17137      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17138      hardcode_libdir_separator_GCJ=:
17139      ;;
17140
17141    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17142      if test "$GCC" = yes; then
17143	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17144	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'
17145	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17146      else
17147	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17148	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'
17149	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~
17150	$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'
17151
17152	# Both c and cxx compiler support -rpath directly
17153	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17154      fi
17155      hardcode_libdir_separator_GCJ=:
17156      ;;
17157
17158    sco3.2v5*)
17159      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160      hardcode_shlibpath_var_GCJ=no
17161      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17162      runpath_var=LD_RUN_PATH
17163      hardcode_runpath_var=yes
17164      ;;
17165
17166    solaris*)
17167      no_undefined_flag_GCJ=' -z text'
17168      if test "$GCC" = yes; then
17169	wlarc='${wl}'
17170	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17171	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17172	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17173      else
17174	wlarc=''
17175	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17176	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17177  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17178      fi
17179      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17180      hardcode_shlibpath_var_GCJ=no
17181      case $host_os in
17182      solaris2.[0-5] | solaris2.[0-5].*) ;;
17183      *)
17184 	# The compiler driver will combine linker options so we
17185 	# cannot just pass the convience library names through
17186 	# without $wl, iff we do not link with $LD.
17187 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17188 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17189 	case $wlarc in
17190 	'')
17191 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17192 	*)
17193 	  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' ;;
17194 	esac ;;
17195      esac
17196      link_all_deplibs_GCJ=yes
17197      ;;
17198
17199    sunos4*)
17200      if test "x$host_vendor" = xsequent; then
17201	# Use $CC to link under sequent, because it throws in some extra .o
17202	# files that make .init and .fini sections work.
17203	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17204      else
17205	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17206      fi
17207      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17208      hardcode_direct_GCJ=yes
17209      hardcode_minus_L_GCJ=yes
17210      hardcode_shlibpath_var_GCJ=no
17211      ;;
17212
17213    sysv4)
17214      case $host_vendor in
17215	sni)
17216	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17217	  hardcode_direct_GCJ=yes # is this really true???
17218	;;
17219	siemens)
17220	  ## LD is ld it makes a PLAMLIB
17221	  ## CC just makes a GrossModule.
17222	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17223	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17224	  hardcode_direct_GCJ=no
17225        ;;
17226	motorola)
17227	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17228	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17229	;;
17230      esac
17231      runpath_var='LD_RUN_PATH'
17232      hardcode_shlibpath_var_GCJ=no
17233      ;;
17234
17235    sysv4.3*)
17236      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17237      hardcode_shlibpath_var_GCJ=no
17238      export_dynamic_flag_spec_GCJ='-Bexport'
17239      ;;
17240
17241    sysv4*MP*)
17242      if test -d /usr/nec; then
17243	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17244	hardcode_shlibpath_var_GCJ=no
17245	runpath_var=LD_RUN_PATH
17246	hardcode_runpath_var=yes
17247	ld_shlibs_GCJ=yes
17248      fi
17249      ;;
17250
17251    sysv4.2uw2*)
17252      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17253      hardcode_direct_GCJ=yes
17254      hardcode_minus_L_GCJ=no
17255      hardcode_shlibpath_var_GCJ=no
17256      hardcode_runpath_var=yes
17257      runpath_var=LD_RUN_PATH
17258      ;;
17259
17260   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17261      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17262      if test "$GCC" = yes; then
17263	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17264      else
17265	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17266      fi
17267      runpath_var='LD_RUN_PATH'
17268      hardcode_shlibpath_var_GCJ=no
17269      ;;
17270
17271    sysv5*)
17272      no_undefined_flag_GCJ=' -z text'
17273      # $CC -shared without GNU ld will not create a library from C++
17274      # object files and a static libstdc++, better avoid it by now
17275      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17276      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17277  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17278      hardcode_libdir_flag_spec_GCJ=
17279      hardcode_shlibpath_var_GCJ=no
17280      runpath_var='LD_RUN_PATH'
17281      ;;
17282
17283    uts4*)
17284      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17285      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17286      hardcode_shlibpath_var_GCJ=no
17287      ;;
17288
17289    *)
17290      ld_shlibs_GCJ=no
17291      ;;
17292    esac
17293  fi
17294
17295echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17296echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17297test "$ld_shlibs_GCJ" = no && can_build_shared=no
17298
17299variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17300if test "$GCC" = yes; then
17301  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17302fi
17303
17304#
17305# Do we need to explicitly link libc?
17306#
17307case "x$archive_cmds_need_lc_GCJ" in
17308x|xyes)
17309  # Assume -lc should be added
17310  archive_cmds_need_lc_GCJ=yes
17311
17312  if test "$enable_shared" = yes && test "$GCC" = yes; then
17313    case $archive_cmds_GCJ in
17314    *'~'*)
17315      # FIXME: we may have to deal with multi-command sequences.
17316      ;;
17317    '$CC '*)
17318      # Test whether the compiler implicitly links with -lc since on some
17319      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17320      # to ld, don't add -lc before -lgcc.
17321      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17322echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17323      $rm conftest*
17324      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17325
17326      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17327  (eval $ac_compile) 2>&5
17328  ac_status=$?
17329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330  (exit $ac_status); } 2>conftest.err; then
17331        soname=conftest
17332        lib=conftest
17333        libobjs=conftest.$ac_objext
17334        deplibs=
17335        wl=$lt_prog_compiler_wl_GCJ
17336        compiler_flags=-v
17337        linker_flags=-v
17338        verstring=
17339        output_objdir=.
17340        libname=conftest
17341        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17342        allow_undefined_flag_GCJ=
17343        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17344  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17345  ac_status=$?
17346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347  (exit $ac_status); }
17348        then
17349	  archive_cmds_need_lc_GCJ=no
17350        else
17351	  archive_cmds_need_lc_GCJ=yes
17352        fi
17353        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17354      else
17355        cat conftest.err 1>&5
17356      fi
17357      $rm conftest*
17358      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17359echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17360      ;;
17361    esac
17362  fi
17363  ;;
17364esac
17365
17366echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17367echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17368library_names_spec=
17369libname_spec='lib$name'
17370soname_spec=
17371shrext_cmds=".so"
17372postinstall_cmds=
17373postuninstall_cmds=
17374finish_cmds=
17375finish_eval=
17376shlibpath_var=
17377shlibpath_overrides_runpath=unknown
17378version_type=none
17379dynamic_linker="$host_os ld.so"
17380sys_lib_dlsearch_path_spec="/lib /usr/lib"
17381if test "$GCC" = yes; then
17382  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17383  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17384    # if the path contains ";" then we assume it to be the separator
17385    # otherwise default to the standard path separator (i.e. ":") - it is
17386    # assumed that no part of a normal pathname contains ";" but that should
17387    # okay in the real world where ";" in dirpaths is itself problematic.
17388    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17389  else
17390    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17391  fi
17392else
17393  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17394fi
17395need_lib_prefix=unknown
17396hardcode_into_libs=no
17397
17398# when you set need_version to no, make sure it does not cause -set_version
17399# flags to be left without arguments
17400need_version=unknown
17401
17402case $host_os in
17403aix3*)
17404  version_type=linux
17405  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17406  shlibpath_var=LIBPATH
17407
17408  # AIX 3 has no versioning support, so we append a major version to the name.
17409  soname_spec='${libname}${release}${shared_ext}$major'
17410  ;;
17411
17412aix4* | aix5*)
17413  version_type=linux
17414  need_lib_prefix=no
17415  need_version=no
17416  hardcode_into_libs=yes
17417  if test "$host_cpu" = ia64; then
17418    # AIX 5 supports IA64
17419    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17420    shlibpath_var=LD_LIBRARY_PATH
17421  else
17422    # With GCC up to 2.95.x, collect2 would create an import file
17423    # for dependence libraries.  The import file would start with
17424    # the line `#! .'.  This would cause the generated library to
17425    # depend on `.', always an invalid library.  This was fixed in
17426    # development snapshots of GCC prior to 3.0.
17427    case $host_os in
17428      aix4 | aix4.[01] | aix4.[01].*)
17429      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17430	   echo ' yes '
17431	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17432	:
17433      else
17434	can_build_shared=no
17435      fi
17436      ;;
17437    esac
17438    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17439    # soname into executable. Probably we can add versioning support to
17440    # collect2, so additional links can be useful in future.
17441    if test "$aix_use_runtimelinking" = yes; then
17442      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17443      # instead of lib<name>.a to let people know that these are not
17444      # typical AIX shared libraries.
17445      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446    else
17447      # We preserve .a as extension for shared libraries through AIX4.2
17448      # and later when we are not doing run time linking.
17449      library_names_spec='${libname}${release}.a $libname.a'
17450      soname_spec='${libname}${release}${shared_ext}$major'
17451    fi
17452    shlibpath_var=LIBPATH
17453  fi
17454  ;;
17455
17456amigaos*)
17457  library_names_spec='$libname.ixlibrary $libname.a'
17458  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17459  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'
17460  ;;
17461
17462beos*)
17463  library_names_spec='${libname}${shared_ext}'
17464  dynamic_linker="$host_os ld.so"
17465  shlibpath_var=LIBRARY_PATH
17466  ;;
17467
17468bsdi[45]*)
17469  version_type=linux
17470  need_version=no
17471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472  soname_spec='${libname}${release}${shared_ext}$major'
17473  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17474  shlibpath_var=LD_LIBRARY_PATH
17475  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17476  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17477  # the default ld.so.conf also contains /usr/contrib/lib and
17478  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17479  # libtool to hard-code these into programs
17480  ;;
17481
17482cygwin* | mingw* | pw32*)
17483  version_type=windows
17484  shrext_cmds=".dll"
17485  need_version=no
17486  need_lib_prefix=no
17487
17488  case $GCC,$host_os in
17489  yes,cygwin* | yes,mingw* | yes,pw32*)
17490    library_names_spec='$libname.dll.a'
17491    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17492    postinstall_cmds='base_file=`basename \${file}`~
17493      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17494      dldir=$destdir/`dirname \$dlpath`~
17495      test -d \$dldir || mkdir -p \$dldir~
17496      $install_prog $dir/$dlname \$dldir/$dlname~
17497      chmod a+x \$dldir/$dlname'
17498    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17499      dlpath=$dir/\$dldll~
17500       $rm \$dlpath'
17501    shlibpath_overrides_runpath=yes
17502
17503    case $host_os in
17504    cygwin*)
17505      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17506      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17507      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17508      ;;
17509    mingw*)
17510      # MinGW DLLs use traditional 'lib' prefix
17511      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17512      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17513      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17514        # It is most probably a Windows format PATH printed by
17515        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17516        # path with ; separators, and with drive letters. We can handle the
17517        # drive letters (cygwin fileutils understands them), so leave them,
17518        # especially as we might pass files found there to a mingw objdump,
17519        # which wouldn't understand a cygwinified path. Ahh.
17520        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17521      else
17522        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17523      fi
17524      ;;
17525    pw32*)
17526      # pw32 DLLs use 'pw' prefix rather than 'lib'
17527      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17528      ;;
17529    esac
17530    ;;
17531
17532  *)
17533    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17534    ;;
17535  esac
17536  dynamic_linker='Win32 ld.exe'
17537  # FIXME: first we should search . and the directory the executable is in
17538  shlibpath_var=PATH
17539  ;;
17540
17541darwin* | rhapsody*)
17542  dynamic_linker="$host_os dyld"
17543  version_type=darwin
17544  need_lib_prefix=no
17545  need_version=no
17546  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17547  soname_spec='${libname}${release}${major}$shared_ext'
17548  shlibpath_overrides_runpath=yes
17549  shlibpath_var=DYLD_LIBRARY_PATH
17550  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17551  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17552  if test "$GCC" = yes; then
17553    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"`
17554  else
17555    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17556  fi
17557  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17558  ;;
17559
17560dgux*)
17561  version_type=linux
17562  need_lib_prefix=no
17563  need_version=no
17564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17565  soname_spec='${libname}${release}${shared_ext}$major'
17566  shlibpath_var=LD_LIBRARY_PATH
17567  ;;
17568
17569freebsd1*)
17570  dynamic_linker=no
17571  ;;
17572
17573kfreebsd*-gnu)
17574  version_type=linux
17575  need_lib_prefix=no
17576  need_version=no
17577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17578  soname_spec='${libname}${release}${shared_ext}$major'
17579  shlibpath_var=LD_LIBRARY_PATH
17580  shlibpath_overrides_runpath=no
17581  hardcode_into_libs=yes
17582  dynamic_linker='GNU ld.so'
17583  ;;
17584
17585freebsd* | dragonfly*)
17586  # DragonFly does not have aout.  When/if they implement a new
17587  # versioning mechanism, adjust this.
17588  if test -x /usr/bin/objformat; then
17589    objformat=`/usr/bin/objformat`
17590  else
17591    case $host_os in
17592    freebsd[123]*) objformat=aout ;;
17593    *) objformat=elf ;;
17594    esac
17595  fi
17596  version_type=freebsd-$objformat
17597  case $version_type in
17598    freebsd-elf*)
17599      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17600      need_version=no
17601      need_lib_prefix=no
17602      ;;
17603    freebsd-*)
17604      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17605      need_version=yes
17606      ;;
17607  esac
17608  shlibpath_var=LD_LIBRARY_PATH
17609  case $host_os in
17610  freebsd2*)
17611    shlibpath_overrides_runpath=yes
17612    ;;
17613  freebsd3.[01]* | freebsdelf3.[01]*)
17614    shlibpath_overrides_runpath=yes
17615    hardcode_into_libs=yes
17616    ;;
17617  *) # from 3.2 on
17618    shlibpath_overrides_runpath=no
17619    hardcode_into_libs=yes
17620    ;;
17621  esac
17622  ;;
17623
17624gnu*)
17625  version_type=linux
17626  need_lib_prefix=no
17627  need_version=no
17628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17629  soname_spec='${libname}${release}${shared_ext}$major'
17630  shlibpath_var=LD_LIBRARY_PATH
17631  hardcode_into_libs=yes
17632  ;;
17633
17634hpux9* | hpux10* | hpux11*)
17635  # Give a soname corresponding to the major version so that dld.sl refuses to
17636  # link against other versions.
17637  version_type=sunos
17638  need_lib_prefix=no
17639  need_version=no
17640  case $host_cpu in
17641  ia64*)
17642    shrext_cmds='.so'
17643    hardcode_into_libs=yes
17644    dynamic_linker="$host_os dld.so"
17645    shlibpath_var=LD_LIBRARY_PATH
17646    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17647    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17648    soname_spec='${libname}${release}${shared_ext}$major'
17649    if test "X$HPUX_IA64_MODE" = X32; then
17650      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17651    else
17652      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17653    fi
17654    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17655    ;;
17656   hppa*64*)
17657     shrext_cmds='.sl'
17658     hardcode_into_libs=yes
17659     dynamic_linker="$host_os dld.sl"
17660     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17661     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17663     soname_spec='${libname}${release}${shared_ext}$major'
17664     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17665     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17666     ;;
17667   *)
17668    shrext_cmds='.sl'
17669    dynamic_linker="$host_os dld.sl"
17670    shlibpath_var=SHLIB_PATH
17671    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17672    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673    soname_spec='${libname}${release}${shared_ext}$major'
17674    ;;
17675  esac
17676  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17677  postinstall_cmds='chmod 555 $lib'
17678  ;;
17679
17680irix5* | irix6* | nonstopux*)
17681  case $host_os in
17682    nonstopux*) version_type=nonstopux ;;
17683    *)
17684	if test "$lt_cv_prog_gnu_ld" = yes; then
17685		version_type=linux
17686	else
17687		version_type=irix
17688	fi ;;
17689  esac
17690  need_lib_prefix=no
17691  need_version=no
17692  soname_spec='${libname}${release}${shared_ext}$major'
17693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17694  case $host_os in
17695  irix5* | nonstopux*)
17696    libsuff= shlibsuff=
17697    ;;
17698  *)
17699    case $LD in # libtool.m4 will add one of these switches to LD
17700    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17701      libsuff= shlibsuff= libmagic=32-bit;;
17702    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17703      libsuff=32 shlibsuff=N32 libmagic=N32;;
17704    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17705      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17706    *) libsuff= shlibsuff= libmagic=never-match;;
17707    esac
17708    ;;
17709  esac
17710  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17711  shlibpath_overrides_runpath=no
17712  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17713  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17714  hardcode_into_libs=yes
17715  ;;
17716
17717# No shared lib support for Linux oldld, aout, or coff.
17718linux*oldld* | linux*aout* | linux*coff*)
17719  dynamic_linker=no
17720  ;;
17721
17722# This must be Linux ELF.
17723linux*)
17724  version_type=linux
17725  need_lib_prefix=no
17726  need_version=no
17727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17728  soname_spec='${libname}${release}${shared_ext}$major'
17729  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17730  shlibpath_var=LD_LIBRARY_PATH
17731  shlibpath_overrides_runpath=no
17732  # This implies no fast_install, which is unacceptable.
17733  # Some rework will be needed to allow for fast_install
17734  # before this can be enabled.
17735  hardcode_into_libs=yes
17736
17737  # Append ld.so.conf contents to the search path
17738  if test -f /etc/ld.so.conf; then
17739    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' ' '`
17740    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17741  fi
17742
17743  # We used to test for /lib/ld.so.1 and disable shared libraries on
17744  # powerpc, because MkLinux only supported shared libraries with the
17745  # GNU dynamic linker.  Since this was broken with cross compilers,
17746  # most powerpc-linux boxes support dynamic linking these days and
17747  # people can always --disable-shared, the test was removed, and we
17748  # assume the GNU/Linux dynamic linker is in use.
17749  dynamic_linker='GNU/Linux ld.so'
17750  ;;
17751
17752knetbsd*-gnu)
17753  version_type=linux
17754  need_lib_prefix=no
17755  need_version=no
17756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17757  soname_spec='${libname}${release}${shared_ext}$major'
17758  shlibpath_var=LD_LIBRARY_PATH
17759  shlibpath_overrides_runpath=no
17760  hardcode_into_libs=yes
17761  dynamic_linker='GNU ld.so'
17762  ;;
17763
17764netbsd*)
17765  version_type=sunos
17766  need_lib_prefix=no
17767  need_version=no
17768  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17769    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17770    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17771    dynamic_linker='NetBSD (a.out) ld.so'
17772  else
17773    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17774    soname_spec='${libname}${release}${shared_ext}$major'
17775    dynamic_linker='NetBSD ld.elf_so'
17776  fi
17777  shlibpath_var=LD_LIBRARY_PATH
17778  shlibpath_overrides_runpath=yes
17779  hardcode_into_libs=yes
17780  ;;
17781
17782newsos6)
17783  version_type=linux
17784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17785  shlibpath_var=LD_LIBRARY_PATH
17786  shlibpath_overrides_runpath=yes
17787  ;;
17788
17789nto-qnx*)
17790  version_type=linux
17791  need_lib_prefix=no
17792  need_version=no
17793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794  soname_spec='${libname}${release}${shared_ext}$major'
17795  shlibpath_var=LD_LIBRARY_PATH
17796  shlibpath_overrides_runpath=yes
17797  ;;
17798
17799openbsd*)
17800  version_type=sunos
17801  need_lib_prefix=no
17802  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17803  case $host_os in
17804    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17805    *)                         need_version=no  ;;
17806  esac
17807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17808  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17809  shlibpath_var=LD_LIBRARY_PATH
17810  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17811    case $host_os in
17812      openbsd2.[89] | openbsd2.[89].*)
17813	shlibpath_overrides_runpath=no
17814	;;
17815      *)
17816	shlibpath_overrides_runpath=yes
17817	;;
17818      esac
17819  else
17820    shlibpath_overrides_runpath=yes
17821  fi
17822  ;;
17823
17824os2*)
17825  libname_spec='$name'
17826  shrext_cmds=".dll"
17827  need_lib_prefix=no
17828  library_names_spec='$libname${shared_ext} $libname.a'
17829  dynamic_linker='OS/2 ld.exe'
17830  shlibpath_var=LIBPATH
17831  ;;
17832
17833osf3* | osf4* | osf5*)
17834  version_type=osf
17835  need_lib_prefix=no
17836  need_version=no
17837  soname_spec='${libname}${release}${shared_ext}$major'
17838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839  shlibpath_var=LD_LIBRARY_PATH
17840  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17841  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17842  ;;
17843
17844sco3.2v5*)
17845  version_type=osf
17846  soname_spec='${libname}${release}${shared_ext}$major'
17847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848  shlibpath_var=LD_LIBRARY_PATH
17849  ;;
17850
17851solaris*)
17852  version_type=linux
17853  need_lib_prefix=no
17854  need_version=no
17855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856  soname_spec='${libname}${release}${shared_ext}$major'
17857  shlibpath_var=LD_LIBRARY_PATH
17858  shlibpath_overrides_runpath=yes
17859  hardcode_into_libs=yes
17860  # ldd complains unless libraries are executable
17861  postinstall_cmds='chmod +x $lib'
17862  ;;
17863
17864sunos4*)
17865  version_type=sunos
17866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17867  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17868  shlibpath_var=LD_LIBRARY_PATH
17869  shlibpath_overrides_runpath=yes
17870  if test "$with_gnu_ld" = yes; then
17871    need_lib_prefix=no
17872  fi
17873  need_version=yes
17874  ;;
17875
17876sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17877  version_type=linux
17878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879  soname_spec='${libname}${release}${shared_ext}$major'
17880  shlibpath_var=LD_LIBRARY_PATH
17881  case $host_vendor in
17882    sni)
17883      shlibpath_overrides_runpath=no
17884      need_lib_prefix=no
17885      export_dynamic_flag_spec='${wl}-Blargedynsym'
17886      runpath_var=LD_RUN_PATH
17887      ;;
17888    siemens)
17889      need_lib_prefix=no
17890      ;;
17891    motorola)
17892      need_lib_prefix=no
17893      need_version=no
17894      shlibpath_overrides_runpath=no
17895      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17896      ;;
17897  esac
17898  ;;
17899
17900sysv4*MP*)
17901  if test -d /usr/nec ;then
17902    version_type=linux
17903    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17904    soname_spec='$libname${shared_ext}.$major'
17905    shlibpath_var=LD_LIBRARY_PATH
17906  fi
17907  ;;
17908
17909uts4*)
17910  version_type=linux
17911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17912  soname_spec='${libname}${release}${shared_ext}$major'
17913  shlibpath_var=LD_LIBRARY_PATH
17914  ;;
17915
17916*)
17917  dynamic_linker=no
17918  ;;
17919esac
17920echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17921echo "${ECHO_T}$dynamic_linker" >&6
17922test "$dynamic_linker" = no && can_build_shared=no
17923
17924echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17925echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17926hardcode_action_GCJ=
17927if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17928   test -n "$runpath_var_GCJ" || \
17929   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17930
17931  # We can hardcode non-existant directories.
17932  if test "$hardcode_direct_GCJ" != no &&
17933     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17934     # have to relink, otherwise we might link with an installed library
17935     # when we should be linking with a yet-to-be-installed one
17936     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17937     test "$hardcode_minus_L_GCJ" != no; then
17938    # Linking always hardcodes the temporary library directory.
17939    hardcode_action_GCJ=relink
17940  else
17941    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17942    hardcode_action_GCJ=immediate
17943  fi
17944else
17945  # We cannot hardcode anything, or else we can only hardcode existing
17946  # directories.
17947  hardcode_action_GCJ=unsupported
17948fi
17949echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17950echo "${ECHO_T}$hardcode_action_GCJ" >&6
17951
17952if test "$hardcode_action_GCJ" = relink; then
17953  # Fast installation is not supported
17954  enable_fast_install=no
17955elif test "$shlibpath_overrides_runpath" = yes ||
17956     test "$enable_shared" = no; then
17957  # Fast installation is not necessary
17958  enable_fast_install=needless
17959fi
17960
17961striplib=
17962old_striplib=
17963echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17964echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17965if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17966  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17967  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17968  echo "$as_me:$LINENO: result: yes" >&5
17969echo "${ECHO_T}yes" >&6
17970else
17971# FIXME - insert some real tests, host_os isn't really good enough
17972  case $host_os in
17973   darwin*)
17974       if test -n "$STRIP" ; then
17975         striplib="$STRIP -x"
17976         echo "$as_me:$LINENO: result: yes" >&5
17977echo "${ECHO_T}yes" >&6
17978       else
17979  echo "$as_me:$LINENO: result: no" >&5
17980echo "${ECHO_T}no" >&6
17981fi
17982       ;;
17983   *)
17984  echo "$as_me:$LINENO: result: no" >&5
17985echo "${ECHO_T}no" >&6
17986    ;;
17987  esac
17988fi
17989
17990if test "x$enable_dlopen" != xyes; then
17991  enable_dlopen=unknown
17992  enable_dlopen_self=unknown
17993  enable_dlopen_self_static=unknown
17994else
17995  lt_cv_dlopen=no
17996  lt_cv_dlopen_libs=
17997
17998  case $host_os in
17999  beos*)
18000    lt_cv_dlopen="load_add_on"
18001    lt_cv_dlopen_libs=
18002    lt_cv_dlopen_self=yes
18003    ;;
18004
18005  mingw* | pw32*)
18006    lt_cv_dlopen="LoadLibrary"
18007    lt_cv_dlopen_libs=
18008   ;;
18009
18010  cygwin*)
18011    lt_cv_dlopen="dlopen"
18012    lt_cv_dlopen_libs=
18013   ;;
18014
18015  darwin*)
18016  # if libdl is installed we need to link against it
18017    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18018echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18019if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18020  echo $ECHO_N "(cached) $ECHO_C" >&6
18021else
18022  ac_check_lib_save_LIBS=$LIBS
18023LIBS="-ldl  $LIBS"
18024cat >conftest.$ac_ext <<_ACEOF
18025/* confdefs.h.  */
18026_ACEOF
18027cat confdefs.h >>conftest.$ac_ext
18028cat >>conftest.$ac_ext <<_ACEOF
18029/* end confdefs.h.  */
18030
18031/* Override any gcc2 internal prototype to avoid an error.  */
18032#ifdef __cplusplus
18033extern "C"
18034#endif
18035/* We use char because int might match the return type of a gcc2
18036   builtin and then its argument prototype would still apply.  */
18037char dlopen ();
18038int
18039main ()
18040{
18041dlopen ();
18042  ;
18043  return 0;
18044}
18045_ACEOF
18046rm -f conftest.$ac_objext conftest$ac_exeext
18047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18048  (eval $ac_link) 2>conftest.er1
18049  ac_status=$?
18050  grep -v '^ *+' conftest.er1 >conftest.err
18051  rm -f conftest.er1
18052  cat conftest.err >&5
18053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054  (exit $ac_status); } &&
18055	 { ac_try='test -z "$ac_c_werror_flag"
18056			 || test ! -s conftest.err'
18057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058  (eval $ac_try) 2>&5
18059  ac_status=$?
18060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061  (exit $ac_status); }; } &&
18062	 { ac_try='test -s conftest$ac_exeext'
18063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064  (eval $ac_try) 2>&5
18065  ac_status=$?
18066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067  (exit $ac_status); }; }; then
18068  ac_cv_lib_dl_dlopen=yes
18069else
18070  echo "$as_me: failed program was:" >&5
18071sed 's/^/| /' conftest.$ac_ext >&5
18072
18073ac_cv_lib_dl_dlopen=no
18074fi
18075rm -f conftest.err conftest.$ac_objext \
18076      conftest$ac_exeext conftest.$ac_ext
18077LIBS=$ac_check_lib_save_LIBS
18078fi
18079echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18080echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18081if test $ac_cv_lib_dl_dlopen = yes; then
18082  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18083else
18084
18085    lt_cv_dlopen="dyld"
18086    lt_cv_dlopen_libs=
18087    lt_cv_dlopen_self=yes
18088
18089fi
18090
18091   ;;
18092
18093  *)
18094    echo "$as_me:$LINENO: checking for shl_load" >&5
18095echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18096if test "${ac_cv_func_shl_load+set}" = set; then
18097  echo $ECHO_N "(cached) $ECHO_C" >&6
18098else
18099  cat >conftest.$ac_ext <<_ACEOF
18100/* confdefs.h.  */
18101_ACEOF
18102cat confdefs.h >>conftest.$ac_ext
18103cat >>conftest.$ac_ext <<_ACEOF
18104/* end confdefs.h.  */
18105/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18106   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18107#define shl_load innocuous_shl_load
18108
18109/* System header to define __stub macros and hopefully few prototypes,
18110    which can conflict with char shl_load (); below.
18111    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18112    <limits.h> exists even on freestanding compilers.  */
18113
18114#ifdef __STDC__
18115# include <limits.h>
18116#else
18117# include <assert.h>
18118#endif
18119
18120#undef shl_load
18121
18122/* Override any gcc2 internal prototype to avoid an error.  */
18123#ifdef __cplusplus
18124extern "C"
18125{
18126#endif
18127/* We use char because int might match the return type of a gcc2
18128   builtin and then its argument prototype would still apply.  */
18129char shl_load ();
18130/* The GNU C library defines this for functions which it implements
18131    to always fail with ENOSYS.  Some functions are actually named
18132    something starting with __ and the normal name is an alias.  */
18133#if defined (__stub_shl_load) || defined (__stub___shl_load)
18134choke me
18135#else
18136char (*f) () = shl_load;
18137#endif
18138#ifdef __cplusplus
18139}
18140#endif
18141
18142int
18143main ()
18144{
18145return f != shl_load;
18146  ;
18147  return 0;
18148}
18149_ACEOF
18150rm -f conftest.$ac_objext conftest$ac_exeext
18151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18152  (eval $ac_link) 2>conftest.er1
18153  ac_status=$?
18154  grep -v '^ *+' conftest.er1 >conftest.err
18155  rm -f conftest.er1
18156  cat conftest.err >&5
18157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158  (exit $ac_status); } &&
18159	 { ac_try='test -z "$ac_c_werror_flag"
18160			 || test ! -s conftest.err'
18161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162  (eval $ac_try) 2>&5
18163  ac_status=$?
18164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165  (exit $ac_status); }; } &&
18166	 { ac_try='test -s conftest$ac_exeext'
18167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168  (eval $ac_try) 2>&5
18169  ac_status=$?
18170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171  (exit $ac_status); }; }; then
18172  ac_cv_func_shl_load=yes
18173else
18174  echo "$as_me: failed program was:" >&5
18175sed 's/^/| /' conftest.$ac_ext >&5
18176
18177ac_cv_func_shl_load=no
18178fi
18179rm -f conftest.err conftest.$ac_objext \
18180      conftest$ac_exeext conftest.$ac_ext
18181fi
18182echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18183echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18184if test $ac_cv_func_shl_load = yes; then
18185  lt_cv_dlopen="shl_load"
18186else
18187  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18188echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18189if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18190  echo $ECHO_N "(cached) $ECHO_C" >&6
18191else
18192  ac_check_lib_save_LIBS=$LIBS
18193LIBS="-ldld  $LIBS"
18194cat >conftest.$ac_ext <<_ACEOF
18195/* confdefs.h.  */
18196_ACEOF
18197cat confdefs.h >>conftest.$ac_ext
18198cat >>conftest.$ac_ext <<_ACEOF
18199/* end confdefs.h.  */
18200
18201/* Override any gcc2 internal prototype to avoid an error.  */
18202#ifdef __cplusplus
18203extern "C"
18204#endif
18205/* We use char because int might match the return type of a gcc2
18206   builtin and then its argument prototype would still apply.  */
18207char shl_load ();
18208int
18209main ()
18210{
18211shl_load ();
18212  ;
18213  return 0;
18214}
18215_ACEOF
18216rm -f conftest.$ac_objext conftest$ac_exeext
18217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18218  (eval $ac_link) 2>conftest.er1
18219  ac_status=$?
18220  grep -v '^ *+' conftest.er1 >conftest.err
18221  rm -f conftest.er1
18222  cat conftest.err >&5
18223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224  (exit $ac_status); } &&
18225	 { ac_try='test -z "$ac_c_werror_flag"
18226			 || test ! -s conftest.err'
18227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228  (eval $ac_try) 2>&5
18229  ac_status=$?
18230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231  (exit $ac_status); }; } &&
18232	 { ac_try='test -s conftest$ac_exeext'
18233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234  (eval $ac_try) 2>&5
18235  ac_status=$?
18236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237  (exit $ac_status); }; }; then
18238  ac_cv_lib_dld_shl_load=yes
18239else
18240  echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243ac_cv_lib_dld_shl_load=no
18244fi
18245rm -f conftest.err conftest.$ac_objext \
18246      conftest$ac_exeext conftest.$ac_ext
18247LIBS=$ac_check_lib_save_LIBS
18248fi
18249echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18250echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18251if test $ac_cv_lib_dld_shl_load = yes; then
18252  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18253else
18254  echo "$as_me:$LINENO: checking for dlopen" >&5
18255echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18256if test "${ac_cv_func_dlopen+set}" = set; then
18257  echo $ECHO_N "(cached) $ECHO_C" >&6
18258else
18259  cat >conftest.$ac_ext <<_ACEOF
18260/* confdefs.h.  */
18261_ACEOF
18262cat confdefs.h >>conftest.$ac_ext
18263cat >>conftest.$ac_ext <<_ACEOF
18264/* end confdefs.h.  */
18265/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18266   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18267#define dlopen innocuous_dlopen
18268
18269/* System header to define __stub macros and hopefully few prototypes,
18270    which can conflict with char dlopen (); below.
18271    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18272    <limits.h> exists even on freestanding compilers.  */
18273
18274#ifdef __STDC__
18275# include <limits.h>
18276#else
18277# include <assert.h>
18278#endif
18279
18280#undef dlopen
18281
18282/* Override any gcc2 internal prototype to avoid an error.  */
18283#ifdef __cplusplus
18284extern "C"
18285{
18286#endif
18287/* We use char because int might match the return type of a gcc2
18288   builtin and then its argument prototype would still apply.  */
18289char dlopen ();
18290/* The GNU C library defines this for functions which it implements
18291    to always fail with ENOSYS.  Some functions are actually named
18292    something starting with __ and the normal name is an alias.  */
18293#if defined (__stub_dlopen) || defined (__stub___dlopen)
18294choke me
18295#else
18296char (*f) () = dlopen;
18297#endif
18298#ifdef __cplusplus
18299}
18300#endif
18301
18302int
18303main ()
18304{
18305return f != dlopen;
18306  ;
18307  return 0;
18308}
18309_ACEOF
18310rm -f conftest.$ac_objext conftest$ac_exeext
18311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18312  (eval $ac_link) 2>conftest.er1
18313  ac_status=$?
18314  grep -v '^ *+' conftest.er1 >conftest.err
18315  rm -f conftest.er1
18316  cat conftest.err >&5
18317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318  (exit $ac_status); } &&
18319	 { ac_try='test -z "$ac_c_werror_flag"
18320			 || test ! -s conftest.err'
18321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322  (eval $ac_try) 2>&5
18323  ac_status=$?
18324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325  (exit $ac_status); }; } &&
18326	 { ac_try='test -s conftest$ac_exeext'
18327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328  (eval $ac_try) 2>&5
18329  ac_status=$?
18330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331  (exit $ac_status); }; }; then
18332  ac_cv_func_dlopen=yes
18333else
18334  echo "$as_me: failed program was:" >&5
18335sed 's/^/| /' conftest.$ac_ext >&5
18336
18337ac_cv_func_dlopen=no
18338fi
18339rm -f conftest.err conftest.$ac_objext \
18340      conftest$ac_exeext conftest.$ac_ext
18341fi
18342echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18343echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18344if test $ac_cv_func_dlopen = yes; then
18345  lt_cv_dlopen="dlopen"
18346else
18347  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18348echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18349if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18350  echo $ECHO_N "(cached) $ECHO_C" >&6
18351else
18352  ac_check_lib_save_LIBS=$LIBS
18353LIBS="-ldl  $LIBS"
18354cat >conftest.$ac_ext <<_ACEOF
18355/* confdefs.h.  */
18356_ACEOF
18357cat confdefs.h >>conftest.$ac_ext
18358cat >>conftest.$ac_ext <<_ACEOF
18359/* end confdefs.h.  */
18360
18361/* Override any gcc2 internal prototype to avoid an error.  */
18362#ifdef __cplusplus
18363extern "C"
18364#endif
18365/* We use char because int might match the return type of a gcc2
18366   builtin and then its argument prototype would still apply.  */
18367char dlopen ();
18368int
18369main ()
18370{
18371dlopen ();
18372  ;
18373  return 0;
18374}
18375_ACEOF
18376rm -f conftest.$ac_objext conftest$ac_exeext
18377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18378  (eval $ac_link) 2>conftest.er1
18379  ac_status=$?
18380  grep -v '^ *+' conftest.er1 >conftest.err
18381  rm -f conftest.er1
18382  cat conftest.err >&5
18383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384  (exit $ac_status); } &&
18385	 { ac_try='test -z "$ac_c_werror_flag"
18386			 || test ! -s conftest.err'
18387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388  (eval $ac_try) 2>&5
18389  ac_status=$?
18390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391  (exit $ac_status); }; } &&
18392	 { ac_try='test -s conftest$ac_exeext'
18393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394  (eval $ac_try) 2>&5
18395  ac_status=$?
18396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397  (exit $ac_status); }; }; then
18398  ac_cv_lib_dl_dlopen=yes
18399else
18400  echo "$as_me: failed program was:" >&5
18401sed 's/^/| /' conftest.$ac_ext >&5
18402
18403ac_cv_lib_dl_dlopen=no
18404fi
18405rm -f conftest.err conftest.$ac_objext \
18406      conftest$ac_exeext conftest.$ac_ext
18407LIBS=$ac_check_lib_save_LIBS
18408fi
18409echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18410echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18411if test $ac_cv_lib_dl_dlopen = yes; then
18412  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18413else
18414  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18415echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18416if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18417  echo $ECHO_N "(cached) $ECHO_C" >&6
18418else
18419  ac_check_lib_save_LIBS=$LIBS
18420LIBS="-lsvld  $LIBS"
18421cat >conftest.$ac_ext <<_ACEOF
18422/* confdefs.h.  */
18423_ACEOF
18424cat confdefs.h >>conftest.$ac_ext
18425cat >>conftest.$ac_ext <<_ACEOF
18426/* end confdefs.h.  */
18427
18428/* Override any gcc2 internal prototype to avoid an error.  */
18429#ifdef __cplusplus
18430extern "C"
18431#endif
18432/* We use char because int might match the return type of a gcc2
18433   builtin and then its argument prototype would still apply.  */
18434char dlopen ();
18435int
18436main ()
18437{
18438dlopen ();
18439  ;
18440  return 0;
18441}
18442_ACEOF
18443rm -f conftest.$ac_objext conftest$ac_exeext
18444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18445  (eval $ac_link) 2>conftest.er1
18446  ac_status=$?
18447  grep -v '^ *+' conftest.er1 >conftest.err
18448  rm -f conftest.er1
18449  cat conftest.err >&5
18450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451  (exit $ac_status); } &&
18452	 { ac_try='test -z "$ac_c_werror_flag"
18453			 || test ! -s conftest.err'
18454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455  (eval $ac_try) 2>&5
18456  ac_status=$?
18457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458  (exit $ac_status); }; } &&
18459	 { ac_try='test -s conftest$ac_exeext'
18460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461  (eval $ac_try) 2>&5
18462  ac_status=$?
18463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464  (exit $ac_status); }; }; then
18465  ac_cv_lib_svld_dlopen=yes
18466else
18467  echo "$as_me: failed program was:" >&5
18468sed 's/^/| /' conftest.$ac_ext >&5
18469
18470ac_cv_lib_svld_dlopen=no
18471fi
18472rm -f conftest.err conftest.$ac_objext \
18473      conftest$ac_exeext conftest.$ac_ext
18474LIBS=$ac_check_lib_save_LIBS
18475fi
18476echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18477echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18478if test $ac_cv_lib_svld_dlopen = yes; then
18479  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18480else
18481  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18482echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18483if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18484  echo $ECHO_N "(cached) $ECHO_C" >&6
18485else
18486  ac_check_lib_save_LIBS=$LIBS
18487LIBS="-ldld  $LIBS"
18488cat >conftest.$ac_ext <<_ACEOF
18489/* confdefs.h.  */
18490_ACEOF
18491cat confdefs.h >>conftest.$ac_ext
18492cat >>conftest.$ac_ext <<_ACEOF
18493/* end confdefs.h.  */
18494
18495/* Override any gcc2 internal prototype to avoid an error.  */
18496#ifdef __cplusplus
18497extern "C"
18498#endif
18499/* We use char because int might match the return type of a gcc2
18500   builtin and then its argument prototype would still apply.  */
18501char dld_link ();
18502int
18503main ()
18504{
18505dld_link ();
18506  ;
18507  return 0;
18508}
18509_ACEOF
18510rm -f conftest.$ac_objext conftest$ac_exeext
18511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18512  (eval $ac_link) 2>conftest.er1
18513  ac_status=$?
18514  grep -v '^ *+' conftest.er1 >conftest.err
18515  rm -f conftest.er1
18516  cat conftest.err >&5
18517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518  (exit $ac_status); } &&
18519	 { ac_try='test -z "$ac_c_werror_flag"
18520			 || test ! -s conftest.err'
18521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522  (eval $ac_try) 2>&5
18523  ac_status=$?
18524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525  (exit $ac_status); }; } &&
18526	 { ac_try='test -s conftest$ac_exeext'
18527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528  (eval $ac_try) 2>&5
18529  ac_status=$?
18530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531  (exit $ac_status); }; }; then
18532  ac_cv_lib_dld_dld_link=yes
18533else
18534  echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537ac_cv_lib_dld_dld_link=no
18538fi
18539rm -f conftest.err conftest.$ac_objext \
18540      conftest$ac_exeext conftest.$ac_ext
18541LIBS=$ac_check_lib_save_LIBS
18542fi
18543echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18544echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18545if test $ac_cv_lib_dld_dld_link = yes; then
18546  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18547fi
18548
18549
18550fi
18551
18552
18553fi
18554
18555
18556fi
18557
18558
18559fi
18560
18561
18562fi
18563
18564    ;;
18565  esac
18566
18567  if test "x$lt_cv_dlopen" != xno; then
18568    enable_dlopen=yes
18569  else
18570    enable_dlopen=no
18571  fi
18572
18573  case $lt_cv_dlopen in
18574  dlopen)
18575    save_CPPFLAGS="$CPPFLAGS"
18576    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18577
18578    save_LDFLAGS="$LDFLAGS"
18579    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18580
18581    save_LIBS="$LIBS"
18582    LIBS="$lt_cv_dlopen_libs $LIBS"
18583
18584    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18585echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18586if test "${lt_cv_dlopen_self+set}" = set; then
18587  echo $ECHO_N "(cached) $ECHO_C" >&6
18588else
18589  	  if test "$cross_compiling" = yes; then :
18590  lt_cv_dlopen_self=cross
18591else
18592  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18593  lt_status=$lt_dlunknown
18594  cat > conftest.$ac_ext <<EOF
18595#line 18595 "configure"
18596#include "confdefs.h"
18597
18598#if HAVE_DLFCN_H
18599#include <dlfcn.h>
18600#endif
18601
18602#include <stdio.h>
18603
18604#ifdef RTLD_GLOBAL
18605#  define LT_DLGLOBAL		RTLD_GLOBAL
18606#else
18607#  ifdef DL_GLOBAL
18608#    define LT_DLGLOBAL		DL_GLOBAL
18609#  else
18610#    define LT_DLGLOBAL		0
18611#  endif
18612#endif
18613
18614/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18615   find out it does not work in some platform. */
18616#ifndef LT_DLLAZY_OR_NOW
18617#  ifdef RTLD_LAZY
18618#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18619#  else
18620#    ifdef DL_LAZY
18621#      define LT_DLLAZY_OR_NOW		DL_LAZY
18622#    else
18623#      ifdef RTLD_NOW
18624#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18625#      else
18626#        ifdef DL_NOW
18627#          define LT_DLLAZY_OR_NOW	DL_NOW
18628#        else
18629#          define LT_DLLAZY_OR_NOW	0
18630#        endif
18631#      endif
18632#    endif
18633#  endif
18634#endif
18635
18636#ifdef __cplusplus
18637extern "C" void exit (int);
18638#endif
18639
18640void fnord() { int i=42;}
18641int main ()
18642{
18643  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18644  int status = $lt_dlunknown;
18645
18646  if (self)
18647    {
18648      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18649      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18650      /* dlclose (self); */
18651    }
18652
18653    exit (status);
18654}
18655EOF
18656  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18657  (eval $ac_link) 2>&5
18658  ac_status=$?
18659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18661    (./conftest; exit; ) >&5 2>/dev/null
18662    lt_status=$?
18663    case x$lt_status in
18664      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18665      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18666      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18667    esac
18668  else :
18669    # compilation failed
18670    lt_cv_dlopen_self=no
18671  fi
18672fi
18673rm -fr conftest*
18674
18675
18676fi
18677echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18678echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18679
18680    if test "x$lt_cv_dlopen_self" = xyes; then
18681      LDFLAGS="$LDFLAGS $link_static_flag"
18682      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18683echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18684if test "${lt_cv_dlopen_self_static+set}" = set; then
18685  echo $ECHO_N "(cached) $ECHO_C" >&6
18686else
18687  	  if test "$cross_compiling" = yes; then :
18688  lt_cv_dlopen_self_static=cross
18689else
18690  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18691  lt_status=$lt_dlunknown
18692  cat > conftest.$ac_ext <<EOF
18693#line 18693 "configure"
18694#include "confdefs.h"
18695
18696#if HAVE_DLFCN_H
18697#include <dlfcn.h>
18698#endif
18699
18700#include <stdio.h>
18701
18702#ifdef RTLD_GLOBAL
18703#  define LT_DLGLOBAL		RTLD_GLOBAL
18704#else
18705#  ifdef DL_GLOBAL
18706#    define LT_DLGLOBAL		DL_GLOBAL
18707#  else
18708#    define LT_DLGLOBAL		0
18709#  endif
18710#endif
18711
18712/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18713   find out it does not work in some platform. */
18714#ifndef LT_DLLAZY_OR_NOW
18715#  ifdef RTLD_LAZY
18716#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18717#  else
18718#    ifdef DL_LAZY
18719#      define LT_DLLAZY_OR_NOW		DL_LAZY
18720#    else
18721#      ifdef RTLD_NOW
18722#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18723#      else
18724#        ifdef DL_NOW
18725#          define LT_DLLAZY_OR_NOW	DL_NOW
18726#        else
18727#          define LT_DLLAZY_OR_NOW	0
18728#        endif
18729#      endif
18730#    endif
18731#  endif
18732#endif
18733
18734#ifdef __cplusplus
18735extern "C" void exit (int);
18736#endif
18737
18738void fnord() { int i=42;}
18739int main ()
18740{
18741  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18742  int status = $lt_dlunknown;
18743
18744  if (self)
18745    {
18746      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18747      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18748      /* dlclose (self); */
18749    }
18750
18751    exit (status);
18752}
18753EOF
18754  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18755  (eval $ac_link) 2>&5
18756  ac_status=$?
18757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18759    (./conftest; exit; ) >&5 2>/dev/null
18760    lt_status=$?
18761    case x$lt_status in
18762      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18763      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18764      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18765    esac
18766  else :
18767    # compilation failed
18768    lt_cv_dlopen_self_static=no
18769  fi
18770fi
18771rm -fr conftest*
18772
18773
18774fi
18775echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18776echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18777    fi
18778
18779    CPPFLAGS="$save_CPPFLAGS"
18780    LDFLAGS="$save_LDFLAGS"
18781    LIBS="$save_LIBS"
18782    ;;
18783  esac
18784
18785  case $lt_cv_dlopen_self in
18786  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18787  *) enable_dlopen_self=unknown ;;
18788  esac
18789
18790  case $lt_cv_dlopen_self_static in
18791  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18792  *) enable_dlopen_self_static=unknown ;;
18793  esac
18794fi
18795
18796
18797# The else clause should only fire when bootstrapping the
18798# libtool distribution, otherwise you forgot to ship ltmain.sh
18799# with your package, and you will get complaints that there are
18800# no rules to generate ltmain.sh.
18801if test -f "$ltmain"; then
18802  # See if we are running on zsh, and set the options which allow our commands through
18803  # without removal of \ escapes.
18804  if test -n "${ZSH_VERSION+set}" ; then
18805    setopt NO_GLOB_SUBST
18806  fi
18807  # Now quote all the things that may contain metacharacters while being
18808  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18809  # variables and quote the copies for generation of the libtool script.
18810  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18811    SED SHELL STRIP \
18812    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18813    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18814    deplibs_check_method reload_flag reload_cmds need_locks \
18815    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18816    lt_cv_sys_global_symbol_to_c_name_address \
18817    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18818    old_postinstall_cmds old_postuninstall_cmds \
18819    compiler_GCJ \
18820    CC_GCJ \
18821    LD_GCJ \
18822    lt_prog_compiler_wl_GCJ \
18823    lt_prog_compiler_pic_GCJ \
18824    lt_prog_compiler_static_GCJ \
18825    lt_prog_compiler_no_builtin_flag_GCJ \
18826    export_dynamic_flag_spec_GCJ \
18827    thread_safe_flag_spec_GCJ \
18828    whole_archive_flag_spec_GCJ \
18829    enable_shared_with_static_runtimes_GCJ \
18830    old_archive_cmds_GCJ \
18831    old_archive_from_new_cmds_GCJ \
18832    predep_objects_GCJ \
18833    postdep_objects_GCJ \
18834    predeps_GCJ \
18835    postdeps_GCJ \
18836    compiler_lib_search_path_GCJ \
18837    archive_cmds_GCJ \
18838    archive_expsym_cmds_GCJ \
18839    postinstall_cmds_GCJ \
18840    postuninstall_cmds_GCJ \
18841    old_archive_from_expsyms_cmds_GCJ \
18842    allow_undefined_flag_GCJ \
18843    no_undefined_flag_GCJ \
18844    export_symbols_cmds_GCJ \
18845    hardcode_libdir_flag_spec_GCJ \
18846    hardcode_libdir_flag_spec_ld_GCJ \
18847    hardcode_libdir_separator_GCJ \
18848    hardcode_automatic_GCJ \
18849    module_cmds_GCJ \
18850    module_expsym_cmds_GCJ \
18851    lt_cv_prog_compiler_c_o_GCJ \
18852    exclude_expsyms_GCJ \
18853    include_expsyms_GCJ; do
18854
18855    case $var in
18856    old_archive_cmds_GCJ | \
18857    old_archive_from_new_cmds_GCJ | \
18858    archive_cmds_GCJ | \
18859    archive_expsym_cmds_GCJ | \
18860    module_cmds_GCJ | \
18861    module_expsym_cmds_GCJ | \
18862    old_archive_from_expsyms_cmds_GCJ | \
18863    export_symbols_cmds_GCJ | \
18864    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18865    postinstall_cmds | postuninstall_cmds | \
18866    old_postinstall_cmds | old_postuninstall_cmds | \
18867    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18868      # Double-quote double-evaled strings.
18869      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18870      ;;
18871    *)
18872      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18873      ;;
18874    esac
18875  done
18876
18877  case $lt_echo in
18878  *'\$0 --fallback-echo"')
18879    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18880    ;;
18881  esac
18882
18883cfgfile="$ofile"
18884
18885  cat <<__EOF__ >> "$cfgfile"
18886# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18887
18888# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18889
18890# Shell to use when invoking shell scripts.
18891SHELL=$lt_SHELL
18892
18893# Whether or not to build shared libraries.
18894build_libtool_libs=$enable_shared
18895
18896# Whether or not to build static libraries.
18897build_old_libs=$enable_static
18898
18899# Whether or not to add -lc for building shared libraries.
18900build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18901
18902# Whether or not to disallow shared libs when runtime libs are static
18903allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18904
18905# Whether or not to optimize for fast installation.
18906fast_install=$enable_fast_install
18907
18908# The host system.
18909host_alias=$host_alias
18910host=$host
18911host_os=$host_os
18912
18913# The build system.
18914build_alias=$build_alias
18915build=$build
18916build_os=$build_os
18917
18918# An echo program that does not interpret backslashes.
18919echo=$lt_echo
18920
18921# The archiver.
18922AR=$lt_AR
18923AR_FLAGS=$lt_AR_FLAGS
18924
18925# A C compiler.
18926LTCC=$lt_LTCC
18927
18928# A language-specific compiler.
18929CC=$lt_compiler_GCJ
18930
18931# Is the compiler the GNU C compiler?
18932with_gcc=$GCC_GCJ
18933
18934# An ERE matcher.
18935EGREP=$lt_EGREP
18936
18937# The linker used to build libraries.
18938LD=$lt_LD_GCJ
18939
18940# Whether we need hard or soft links.
18941LN_S=$lt_LN_S
18942
18943# A BSD-compatible nm program.
18944NM=$lt_NM
18945
18946# A symbol stripping program
18947STRIP=$lt_STRIP
18948
18949# Used to examine libraries when file_magic_cmd begins "file"
18950MAGIC_CMD=$MAGIC_CMD
18951
18952# Used on cygwin: DLL creation program.
18953DLLTOOL="$DLLTOOL"
18954
18955# Used on cygwin: object dumper.
18956OBJDUMP="$OBJDUMP"
18957
18958# Used on cygwin: assembler.
18959AS="$AS"
18960
18961# The name of the directory that contains temporary libtool files.
18962objdir=$objdir
18963
18964# How to create reloadable object files.
18965reload_flag=$lt_reload_flag
18966reload_cmds=$lt_reload_cmds
18967
18968# How to pass a linker flag through the compiler.
18969wl=$lt_lt_prog_compiler_wl_GCJ
18970
18971# Object file suffix (normally "o").
18972objext="$ac_objext"
18973
18974# Old archive suffix (normally "a").
18975libext="$libext"
18976
18977# Shared library suffix (normally ".so").
18978shrext_cmds='$shrext_cmds'
18979
18980# Executable file suffix (normally "").
18981exeext="$exeext"
18982
18983# Additional compiler flags for building library objects.
18984pic_flag=$lt_lt_prog_compiler_pic_GCJ
18985pic_mode=$pic_mode
18986
18987# What is the maximum length of a command?
18988max_cmd_len=$lt_cv_sys_max_cmd_len
18989
18990# Does compiler simultaneously support -c and -o options?
18991compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18992
18993# Must we lock files when doing compilation?
18994need_locks=$lt_need_locks
18995
18996# Do we need the lib prefix for modules?
18997need_lib_prefix=$need_lib_prefix
18998
18999# Do we need a version for libraries?
19000need_version=$need_version
19001
19002# Whether dlopen is supported.
19003dlopen_support=$enable_dlopen
19004
19005# Whether dlopen of programs is supported.
19006dlopen_self=$enable_dlopen_self
19007
19008# Whether dlopen of statically linked programs is supported.
19009dlopen_self_static=$enable_dlopen_self_static
19010
19011# Compiler flag to prevent dynamic linking.
19012link_static_flag=$lt_lt_prog_compiler_static_GCJ
19013
19014# Compiler flag to turn off builtin functions.
19015no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19016
19017# Compiler flag to allow reflexive dlopens.
19018export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19019
19020# Compiler flag to generate shared objects directly from archives.
19021whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19022
19023# Compiler flag to generate thread-safe objects.
19024thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19025
19026# Library versioning type.
19027version_type=$version_type
19028
19029# Format of library name prefix.
19030libname_spec=$lt_libname_spec
19031
19032# List of archive names.  First name is the real one, the rest are links.
19033# The last name is the one that the linker finds with -lNAME.
19034library_names_spec=$lt_library_names_spec
19035
19036# The coded name of the library, if different from the real name.
19037soname_spec=$lt_soname_spec
19038
19039# Commands used to build and install an old-style archive.
19040RANLIB=$lt_RANLIB
19041old_archive_cmds=$lt_old_archive_cmds_GCJ
19042old_postinstall_cmds=$lt_old_postinstall_cmds
19043old_postuninstall_cmds=$lt_old_postuninstall_cmds
19044
19045# Create an old-style archive from a shared archive.
19046old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19047
19048# Create a temporary old-style archive to link instead of a shared archive.
19049old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19050
19051# Commands used to build and install a shared archive.
19052archive_cmds=$lt_archive_cmds_GCJ
19053archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19054postinstall_cmds=$lt_postinstall_cmds
19055postuninstall_cmds=$lt_postuninstall_cmds
19056
19057# Commands used to build a loadable module (assumed same as above if empty)
19058module_cmds=$lt_module_cmds_GCJ
19059module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19060
19061# Commands to strip libraries.
19062old_striplib=$lt_old_striplib
19063striplib=$lt_striplib
19064
19065# Dependencies to place before the objects being linked to create a
19066# shared library.
19067predep_objects=$lt_predep_objects_GCJ
19068
19069# Dependencies to place after the objects being linked to create a
19070# shared library.
19071postdep_objects=$lt_postdep_objects_GCJ
19072
19073# Dependencies to place before the objects being linked to create a
19074# shared library.
19075predeps=$lt_predeps_GCJ
19076
19077# Dependencies to place after the objects being linked to create a
19078# shared library.
19079postdeps=$lt_postdeps_GCJ
19080
19081# The library search path used internally by the compiler when linking
19082# a shared library.
19083compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19084
19085# Method to check whether dependent libraries are shared objects.
19086deplibs_check_method=$lt_deplibs_check_method
19087
19088# Command to use when deplibs_check_method == file_magic.
19089file_magic_cmd=$lt_file_magic_cmd
19090
19091# Flag that allows shared libraries with undefined symbols to be built.
19092allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19093
19094# Flag that forces no undefined symbols.
19095no_undefined_flag=$lt_no_undefined_flag_GCJ
19096
19097# Commands used to finish a libtool library installation in a directory.
19098finish_cmds=$lt_finish_cmds
19099
19100# Same as above, but a single script fragment to be evaled but not shown.
19101finish_eval=$lt_finish_eval
19102
19103# Take the output of nm and produce a listing of raw symbols and C names.
19104global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19105
19106# Transform the output of nm in a proper C declaration
19107global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19108
19109# Transform the output of nm in a C name address pair
19110global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19111
19112# This is the shared library runtime path variable.
19113runpath_var=$runpath_var
19114
19115# This is the shared library path variable.
19116shlibpath_var=$shlibpath_var
19117
19118# Is shlibpath searched before the hard-coded library search path?
19119shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19120
19121# How to hardcode a shared library path into an executable.
19122hardcode_action=$hardcode_action_GCJ
19123
19124# Whether we should hardcode library paths into libraries.
19125hardcode_into_libs=$hardcode_into_libs
19126
19127# Flag to hardcode \$libdir into a binary during linking.
19128# This must work even if \$libdir does not exist.
19129hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19130
19131# If ld is used when linking, flag to hardcode \$libdir into
19132# a binary during linking. This must work even if \$libdir does
19133# not exist.
19134hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19135
19136# Whether we need a single -rpath flag with a separated argument.
19137hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19138
19139# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19140# resulting binary.
19141hardcode_direct=$hardcode_direct_GCJ
19142
19143# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19144# resulting binary.
19145hardcode_minus_L=$hardcode_minus_L_GCJ
19146
19147# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19148# the resulting binary.
19149hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19150
19151# Set to yes if building a shared library automatically hardcodes DIR into the library
19152# and all subsequent libraries and executables linked against it.
19153hardcode_automatic=$hardcode_automatic_GCJ
19154
19155# Variables whose values should be saved in libtool wrapper scripts and
19156# restored at relink time.
19157variables_saved_for_relink="$variables_saved_for_relink"
19158
19159# Whether libtool must link a program against all its dependency libraries.
19160link_all_deplibs=$link_all_deplibs_GCJ
19161
19162# Compile-time system search path for libraries
19163sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19164
19165# Run-time system search path for libraries
19166sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19167
19168# Fix the shell variable \$srcfile for the compiler.
19169fix_srcfile_path="$fix_srcfile_path_GCJ"
19170
19171# Set to yes if exported symbols are required.
19172always_export_symbols=$always_export_symbols_GCJ
19173
19174# The commands to list exported symbols.
19175export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19176
19177# The commands to extract the exported symbol list from a shared archive.
19178extract_expsyms_cmds=$lt_extract_expsyms_cmds
19179
19180# Symbols that should not be listed in the preloaded symbols.
19181exclude_expsyms=$lt_exclude_expsyms_GCJ
19182
19183# Symbols that must always be exported.
19184include_expsyms=$lt_include_expsyms_GCJ
19185
19186# ### END LIBTOOL TAG CONFIG: $tagname
19187
19188__EOF__
19189
19190
19191else
19192  # If there is no Makefile yet, we rely on a make rule to execute
19193  # `config.status --recheck' to rerun these tests and create the
19194  # libtool script then.
19195  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19196  if test -f "$ltmain_in"; then
19197    test -f Makefile && make "$ltmain"
19198  fi
19199fi
19200
19201
19202ac_ext=c
19203ac_cpp='$CPP $CPPFLAGS'
19204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19206ac_compiler_gnu=$ac_cv_c_compiler_gnu
19207
19208CC="$lt_save_CC"
19209
19210	else
19211	  tagname=""
19212	fi
19213	;;
19214
19215      RC)
19216
19217
19218
19219# Source file extension for RC test sources.
19220ac_ext=rc
19221
19222# Object file extension for compiled RC test sources.
19223objext=o
19224objext_RC=$objext
19225
19226# Code to be used in simple compile tests
19227lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19228
19229# Code to be used in simple link tests
19230lt_simple_link_test_code="$lt_simple_compile_test_code"
19231
19232# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19233
19234# If no C compiler was specified, use CC.
19235LTCC=${LTCC-"$CC"}
19236
19237# Allow CC to be a program name with arguments.
19238compiler=$CC
19239
19240
19241# save warnings/boilerplate of simple test code
19242ac_outfile=conftest.$ac_objext
19243printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19244eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19245_lt_compiler_boilerplate=`cat conftest.err`
19246$rm conftest*
19247
19248ac_outfile=conftest.$ac_objext
19249printf "$lt_simple_link_test_code" >conftest.$ac_ext
19250eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19251_lt_linker_boilerplate=`cat conftest.err`
19252$rm conftest*
19253
19254
19255# Allow CC to be a program name with arguments.
19256lt_save_CC="$CC"
19257CC=${RC-"windres"}
19258compiler=$CC
19259compiler_RC=$CC
19260for cc_temp in $compiler""; do
19261  case $cc_temp in
19262    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19263    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19264    \-*) ;;
19265    *) break;;
19266  esac
19267done
19268cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19269
19270lt_cv_prog_compiler_c_o_RC=yes
19271
19272# The else clause should only fire when bootstrapping the
19273# libtool distribution, otherwise you forgot to ship ltmain.sh
19274# with your package, and you will get complaints that there are
19275# no rules to generate ltmain.sh.
19276if test -f "$ltmain"; then
19277  # See if we are running on zsh, and set the options which allow our commands through
19278  # without removal of \ escapes.
19279  if test -n "${ZSH_VERSION+set}" ; then
19280    setopt NO_GLOB_SUBST
19281  fi
19282  # Now quote all the things that may contain metacharacters while being
19283  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19284  # variables and quote the copies for generation of the libtool script.
19285  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19286    SED SHELL STRIP \
19287    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19288    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19289    deplibs_check_method reload_flag reload_cmds need_locks \
19290    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19291    lt_cv_sys_global_symbol_to_c_name_address \
19292    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19293    old_postinstall_cmds old_postuninstall_cmds \
19294    compiler_RC \
19295    CC_RC \
19296    LD_RC \
19297    lt_prog_compiler_wl_RC \
19298    lt_prog_compiler_pic_RC \
19299    lt_prog_compiler_static_RC \
19300    lt_prog_compiler_no_builtin_flag_RC \
19301    export_dynamic_flag_spec_RC \
19302    thread_safe_flag_spec_RC \
19303    whole_archive_flag_spec_RC \
19304    enable_shared_with_static_runtimes_RC \
19305    old_archive_cmds_RC \
19306    old_archive_from_new_cmds_RC \
19307    predep_objects_RC \
19308    postdep_objects_RC \
19309    predeps_RC \
19310    postdeps_RC \
19311    compiler_lib_search_path_RC \
19312    archive_cmds_RC \
19313    archive_expsym_cmds_RC \
19314    postinstall_cmds_RC \
19315    postuninstall_cmds_RC \
19316    old_archive_from_expsyms_cmds_RC \
19317    allow_undefined_flag_RC \
19318    no_undefined_flag_RC \
19319    export_symbols_cmds_RC \
19320    hardcode_libdir_flag_spec_RC \
19321    hardcode_libdir_flag_spec_ld_RC \
19322    hardcode_libdir_separator_RC \
19323    hardcode_automatic_RC \
19324    module_cmds_RC \
19325    module_expsym_cmds_RC \
19326    lt_cv_prog_compiler_c_o_RC \
19327    exclude_expsyms_RC \
19328    include_expsyms_RC; do
19329
19330    case $var in
19331    old_archive_cmds_RC | \
19332    old_archive_from_new_cmds_RC | \
19333    archive_cmds_RC | \
19334    archive_expsym_cmds_RC | \
19335    module_cmds_RC | \
19336    module_expsym_cmds_RC | \
19337    old_archive_from_expsyms_cmds_RC | \
19338    export_symbols_cmds_RC | \
19339    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19340    postinstall_cmds | postuninstall_cmds | \
19341    old_postinstall_cmds | old_postuninstall_cmds | \
19342    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19343      # Double-quote double-evaled strings.
19344      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19345      ;;
19346    *)
19347      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19348      ;;
19349    esac
19350  done
19351
19352  case $lt_echo in
19353  *'\$0 --fallback-echo"')
19354    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19355    ;;
19356  esac
19357
19358cfgfile="$ofile"
19359
19360  cat <<__EOF__ >> "$cfgfile"
19361# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19362
19363# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19364
19365# Shell to use when invoking shell scripts.
19366SHELL=$lt_SHELL
19367
19368# Whether or not to build shared libraries.
19369build_libtool_libs=$enable_shared
19370
19371# Whether or not to build static libraries.
19372build_old_libs=$enable_static
19373
19374# Whether or not to add -lc for building shared libraries.
19375build_libtool_need_lc=$archive_cmds_need_lc_RC
19376
19377# Whether or not to disallow shared libs when runtime libs are static
19378allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19379
19380# Whether or not to optimize for fast installation.
19381fast_install=$enable_fast_install
19382
19383# The host system.
19384host_alias=$host_alias
19385host=$host
19386host_os=$host_os
19387
19388# The build system.
19389build_alias=$build_alias
19390build=$build
19391build_os=$build_os
19392
19393# An echo program that does not interpret backslashes.
19394echo=$lt_echo
19395
19396# The archiver.
19397AR=$lt_AR
19398AR_FLAGS=$lt_AR_FLAGS
19399
19400# A C compiler.
19401LTCC=$lt_LTCC
19402
19403# A language-specific compiler.
19404CC=$lt_compiler_RC
19405
19406# Is the compiler the GNU C compiler?
19407with_gcc=$GCC_RC
19408
19409# An ERE matcher.
19410EGREP=$lt_EGREP
19411
19412# The linker used to build libraries.
19413LD=$lt_LD_RC
19414
19415# Whether we need hard or soft links.
19416LN_S=$lt_LN_S
19417
19418# A BSD-compatible nm program.
19419NM=$lt_NM
19420
19421# A symbol stripping program
19422STRIP=$lt_STRIP
19423
19424# Used to examine libraries when file_magic_cmd begins "file"
19425MAGIC_CMD=$MAGIC_CMD
19426
19427# Used on cygwin: DLL creation program.
19428DLLTOOL="$DLLTOOL"
19429
19430# Used on cygwin: object dumper.
19431OBJDUMP="$OBJDUMP"
19432
19433# Used on cygwin: assembler.
19434AS="$AS"
19435
19436# The name of the directory that contains temporary libtool files.
19437objdir=$objdir
19438
19439# How to create reloadable object files.
19440reload_flag=$lt_reload_flag
19441reload_cmds=$lt_reload_cmds
19442
19443# How to pass a linker flag through the compiler.
19444wl=$lt_lt_prog_compiler_wl_RC
19445
19446# Object file suffix (normally "o").
19447objext="$ac_objext"
19448
19449# Old archive suffix (normally "a").
19450libext="$libext"
19451
19452# Shared library suffix (normally ".so").
19453shrext_cmds='$shrext_cmds'
19454
19455# Executable file suffix (normally "").
19456exeext="$exeext"
19457
19458# Additional compiler flags for building library objects.
19459pic_flag=$lt_lt_prog_compiler_pic_RC
19460pic_mode=$pic_mode
19461
19462# What is the maximum length of a command?
19463max_cmd_len=$lt_cv_sys_max_cmd_len
19464
19465# Does compiler simultaneously support -c and -o options?
19466compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19467
19468# Must we lock files when doing compilation?
19469need_locks=$lt_need_locks
19470
19471# Do we need the lib prefix for modules?
19472need_lib_prefix=$need_lib_prefix
19473
19474# Do we need a version for libraries?
19475need_version=$need_version
19476
19477# Whether dlopen is supported.
19478dlopen_support=$enable_dlopen
19479
19480# Whether dlopen of programs is supported.
19481dlopen_self=$enable_dlopen_self
19482
19483# Whether dlopen of statically linked programs is supported.
19484dlopen_self_static=$enable_dlopen_self_static
19485
19486# Compiler flag to prevent dynamic linking.
19487link_static_flag=$lt_lt_prog_compiler_static_RC
19488
19489# Compiler flag to turn off builtin functions.
19490no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19491
19492# Compiler flag to allow reflexive dlopens.
19493export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19494
19495# Compiler flag to generate shared objects directly from archives.
19496whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19497
19498# Compiler flag to generate thread-safe objects.
19499thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19500
19501# Library versioning type.
19502version_type=$version_type
19503
19504# Format of library name prefix.
19505libname_spec=$lt_libname_spec
19506
19507# List of archive names.  First name is the real one, the rest are links.
19508# The last name is the one that the linker finds with -lNAME.
19509library_names_spec=$lt_library_names_spec
19510
19511# The coded name of the library, if different from the real name.
19512soname_spec=$lt_soname_spec
19513
19514# Commands used to build and install an old-style archive.
19515RANLIB=$lt_RANLIB
19516old_archive_cmds=$lt_old_archive_cmds_RC
19517old_postinstall_cmds=$lt_old_postinstall_cmds
19518old_postuninstall_cmds=$lt_old_postuninstall_cmds
19519
19520# Create an old-style archive from a shared archive.
19521old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19522
19523# Create a temporary old-style archive to link instead of a shared archive.
19524old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19525
19526# Commands used to build and install a shared archive.
19527archive_cmds=$lt_archive_cmds_RC
19528archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19529postinstall_cmds=$lt_postinstall_cmds
19530postuninstall_cmds=$lt_postuninstall_cmds
19531
19532# Commands used to build a loadable module (assumed same as above if empty)
19533module_cmds=$lt_module_cmds_RC
19534module_expsym_cmds=$lt_module_expsym_cmds_RC
19535
19536# Commands to strip libraries.
19537old_striplib=$lt_old_striplib
19538striplib=$lt_striplib
19539
19540# Dependencies to place before the objects being linked to create a
19541# shared library.
19542predep_objects=$lt_predep_objects_RC
19543
19544# Dependencies to place after the objects being linked to create a
19545# shared library.
19546postdep_objects=$lt_postdep_objects_RC
19547
19548# Dependencies to place before the objects being linked to create a
19549# shared library.
19550predeps=$lt_predeps_RC
19551
19552# Dependencies to place after the objects being linked to create a
19553# shared library.
19554postdeps=$lt_postdeps_RC
19555
19556# The library search path used internally by the compiler when linking
19557# a shared library.
19558compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19559
19560# Method to check whether dependent libraries are shared objects.
19561deplibs_check_method=$lt_deplibs_check_method
19562
19563# Command to use when deplibs_check_method == file_magic.
19564file_magic_cmd=$lt_file_magic_cmd
19565
19566# Flag that allows shared libraries with undefined symbols to be built.
19567allow_undefined_flag=$lt_allow_undefined_flag_RC
19568
19569# Flag that forces no undefined symbols.
19570no_undefined_flag=$lt_no_undefined_flag_RC
19571
19572# Commands used to finish a libtool library installation in a directory.
19573finish_cmds=$lt_finish_cmds
19574
19575# Same as above, but a single script fragment to be evaled but not shown.
19576finish_eval=$lt_finish_eval
19577
19578# Take the output of nm and produce a listing of raw symbols and C names.
19579global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19580
19581# Transform the output of nm in a proper C declaration
19582global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19583
19584# Transform the output of nm in a C name address pair
19585global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19586
19587# This is the shared library runtime path variable.
19588runpath_var=$runpath_var
19589
19590# This is the shared library path variable.
19591shlibpath_var=$shlibpath_var
19592
19593# Is shlibpath searched before the hard-coded library search path?
19594shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19595
19596# How to hardcode a shared library path into an executable.
19597hardcode_action=$hardcode_action_RC
19598
19599# Whether we should hardcode library paths into libraries.
19600hardcode_into_libs=$hardcode_into_libs
19601
19602# Flag to hardcode \$libdir into a binary during linking.
19603# This must work even if \$libdir does not exist.
19604hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19605
19606# If ld is used when linking, flag to hardcode \$libdir into
19607# a binary during linking. This must work even if \$libdir does
19608# not exist.
19609hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19610
19611# Whether we need a single -rpath flag with a separated argument.
19612hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19613
19614# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19615# resulting binary.
19616hardcode_direct=$hardcode_direct_RC
19617
19618# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19619# resulting binary.
19620hardcode_minus_L=$hardcode_minus_L_RC
19621
19622# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19623# the resulting binary.
19624hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19625
19626# Set to yes if building a shared library automatically hardcodes DIR into the library
19627# and all subsequent libraries and executables linked against it.
19628hardcode_automatic=$hardcode_automatic_RC
19629
19630# Variables whose values should be saved in libtool wrapper scripts and
19631# restored at relink time.
19632variables_saved_for_relink="$variables_saved_for_relink"
19633
19634# Whether libtool must link a program against all its dependency libraries.
19635link_all_deplibs=$link_all_deplibs_RC
19636
19637# Compile-time system search path for libraries
19638sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19639
19640# Run-time system search path for libraries
19641sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19642
19643# Fix the shell variable \$srcfile for the compiler.
19644fix_srcfile_path="$fix_srcfile_path_RC"
19645
19646# Set to yes if exported symbols are required.
19647always_export_symbols=$always_export_symbols_RC
19648
19649# The commands to list exported symbols.
19650export_symbols_cmds=$lt_export_symbols_cmds_RC
19651
19652# The commands to extract the exported symbol list from a shared archive.
19653extract_expsyms_cmds=$lt_extract_expsyms_cmds
19654
19655# Symbols that should not be listed in the preloaded symbols.
19656exclude_expsyms=$lt_exclude_expsyms_RC
19657
19658# Symbols that must always be exported.
19659include_expsyms=$lt_include_expsyms_RC
19660
19661# ### END LIBTOOL TAG CONFIG: $tagname
19662
19663__EOF__
19664
19665
19666else
19667  # If there is no Makefile yet, we rely on a make rule to execute
19668  # `config.status --recheck' to rerun these tests and create the
19669  # libtool script then.
19670  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19671  if test -f "$ltmain_in"; then
19672    test -f Makefile && make "$ltmain"
19673  fi
19674fi
19675
19676
19677ac_ext=c
19678ac_cpp='$CPP $CPPFLAGS'
19679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19681ac_compiler_gnu=$ac_cv_c_compiler_gnu
19682
19683CC="$lt_save_CC"
19684
19685	;;
19686
19687      *)
19688	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19689echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19690   { (exit 1); exit 1; }; }
19691	;;
19692      esac
19693
19694      # Append the new tag name to the list of available tags.
19695      if test -n "$tagname" ; then
19696      available_tags="$available_tags $tagname"
19697    fi
19698    fi
19699  done
19700  IFS="$lt_save_ifs"
19701
19702  # Now substitute the updated list of available tags.
19703  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19704    mv "${ofile}T" "$ofile"
19705    chmod +x "$ofile"
19706  else
19707    rm -f "${ofile}T"
19708    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19709echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19710   { (exit 1); exit 1; }; }
19711  fi
19712fi
19713
19714
19715
19716# This can be used to rebuild libtool when needed
19717LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19718
19719# Always use our own libtool.
19720LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19721
19722# Prevent multiple expansion
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744echo "$as_me:$LINENO: checking for char" >&5
19745echo $ECHO_N "checking for char... $ECHO_C" >&6
19746if test "${ac_cv_type_char+set}" = set; then
19747  echo $ECHO_N "(cached) $ECHO_C" >&6
19748else
19749  cat >conftest.$ac_ext <<_ACEOF
19750/* confdefs.h.  */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h.  */
19755$ac_includes_default
19756int
19757main ()
19758{
19759if ((char *) 0)
19760  return 0;
19761if (sizeof (char))
19762  return 0;
19763  ;
19764  return 0;
19765}
19766_ACEOF
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769  (eval $ac_compile) 2>conftest.er1
19770  ac_status=$?
19771  grep -v '^ *+' conftest.er1 >conftest.err
19772  rm -f conftest.er1
19773  cat conftest.err >&5
19774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775  (exit $ac_status); } &&
19776	 { ac_try='test -z "$ac_c_werror_flag"
19777			 || test ! -s conftest.err'
19778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779  (eval $ac_try) 2>&5
19780  ac_status=$?
19781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782  (exit $ac_status); }; } &&
19783	 { ac_try='test -s conftest.$ac_objext'
19784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785  (eval $ac_try) 2>&5
19786  ac_status=$?
19787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788  (exit $ac_status); }; }; then
19789  ac_cv_type_char=yes
19790else
19791  echo "$as_me: failed program was:" >&5
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
19794ac_cv_type_char=no
19795fi
19796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19797fi
19798echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
19799echo "${ECHO_T}$ac_cv_type_char" >&6
19800
19801echo "$as_me:$LINENO: checking size of char" >&5
19802echo $ECHO_N "checking size of char... $ECHO_C" >&6
19803if test "${ac_cv_sizeof_char+set}" = set; then
19804  echo $ECHO_N "(cached) $ECHO_C" >&6
19805else
19806  if test "$ac_cv_type_char" = yes; then
19807  # The cast to unsigned long works around a bug in the HP C Compiler
19808  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19809  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19810  # This bug is HP SR number 8606223364.
19811  if test "$cross_compiling" = yes; then
19812  # Depending upon the size, compute the lo and hi bounds.
19813cat >conftest.$ac_ext <<_ACEOF
19814/* confdefs.h.  */
19815_ACEOF
19816cat confdefs.h >>conftest.$ac_ext
19817cat >>conftest.$ac_ext <<_ACEOF
19818/* end confdefs.h.  */
19819$ac_includes_default
19820int
19821main ()
19822{
19823static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
19824test_array [0] = 0
19825
19826  ;
19827  return 0;
19828}
19829_ACEOF
19830rm -f conftest.$ac_objext
19831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19832  (eval $ac_compile) 2>conftest.er1
19833  ac_status=$?
19834  grep -v '^ *+' conftest.er1 >conftest.err
19835  rm -f conftest.er1
19836  cat conftest.err >&5
19837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838  (exit $ac_status); } &&
19839	 { ac_try='test -z "$ac_c_werror_flag"
19840			 || test ! -s conftest.err'
19841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842  (eval $ac_try) 2>&5
19843  ac_status=$?
19844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845  (exit $ac_status); }; } &&
19846	 { ac_try='test -s conftest.$ac_objext'
19847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19848  (eval $ac_try) 2>&5
19849  ac_status=$?
19850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851  (exit $ac_status); }; }; then
19852  ac_lo=0 ac_mid=0
19853  while :; do
19854    cat >conftest.$ac_ext <<_ACEOF
19855/* confdefs.h.  */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
19859/* end confdefs.h.  */
19860$ac_includes_default
19861int
19862main ()
19863{
19864static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
19865test_array [0] = 0
19866
19867  ;
19868  return 0;
19869}
19870_ACEOF
19871rm -f conftest.$ac_objext
19872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19873  (eval $ac_compile) 2>conftest.er1
19874  ac_status=$?
19875  grep -v '^ *+' conftest.er1 >conftest.err
19876  rm -f conftest.er1
19877  cat conftest.err >&5
19878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879  (exit $ac_status); } &&
19880	 { ac_try='test -z "$ac_c_werror_flag"
19881			 || test ! -s conftest.err'
19882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883  (eval $ac_try) 2>&5
19884  ac_status=$?
19885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886  (exit $ac_status); }; } &&
19887	 { ac_try='test -s conftest.$ac_objext'
19888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889  (eval $ac_try) 2>&5
19890  ac_status=$?
19891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892  (exit $ac_status); }; }; then
19893  ac_hi=$ac_mid; break
19894else
19895  echo "$as_me: failed program was:" >&5
19896sed 's/^/| /' conftest.$ac_ext >&5
19897
19898ac_lo=`expr $ac_mid + 1`
19899		    if test $ac_lo -le $ac_mid; then
19900		      ac_lo= ac_hi=
19901		      break
19902		    fi
19903		    ac_mid=`expr 2 '*' $ac_mid + 1`
19904fi
19905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19906  done
19907else
19908  echo "$as_me: failed program was:" >&5
19909sed 's/^/| /' conftest.$ac_ext >&5
19910
19911cat >conftest.$ac_ext <<_ACEOF
19912/* confdefs.h.  */
19913_ACEOF
19914cat confdefs.h >>conftest.$ac_ext
19915cat >>conftest.$ac_ext <<_ACEOF
19916/* end confdefs.h.  */
19917$ac_includes_default
19918int
19919main ()
19920{
19921static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
19922test_array [0] = 0
19923
19924  ;
19925  return 0;
19926}
19927_ACEOF
19928rm -f conftest.$ac_objext
19929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19930  (eval $ac_compile) 2>conftest.er1
19931  ac_status=$?
19932  grep -v '^ *+' conftest.er1 >conftest.err
19933  rm -f conftest.er1
19934  cat conftest.err >&5
19935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936  (exit $ac_status); } &&
19937	 { ac_try='test -z "$ac_c_werror_flag"
19938			 || test ! -s conftest.err'
19939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940  (eval $ac_try) 2>&5
19941  ac_status=$?
19942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943  (exit $ac_status); }; } &&
19944	 { ac_try='test -s conftest.$ac_objext'
19945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946  (eval $ac_try) 2>&5
19947  ac_status=$?
19948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949  (exit $ac_status); }; }; then
19950  ac_hi=-1 ac_mid=-1
19951  while :; do
19952    cat >conftest.$ac_ext <<_ACEOF
19953/* confdefs.h.  */
19954_ACEOF
19955cat confdefs.h >>conftest.$ac_ext
19956cat >>conftest.$ac_ext <<_ACEOF
19957/* end confdefs.h.  */
19958$ac_includes_default
19959int
19960main ()
19961{
19962static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
19963test_array [0] = 0
19964
19965  ;
19966  return 0;
19967}
19968_ACEOF
19969rm -f conftest.$ac_objext
19970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971  (eval $ac_compile) 2>conftest.er1
19972  ac_status=$?
19973  grep -v '^ *+' conftest.er1 >conftest.err
19974  rm -f conftest.er1
19975  cat conftest.err >&5
19976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977  (exit $ac_status); } &&
19978	 { ac_try='test -z "$ac_c_werror_flag"
19979			 || test ! -s conftest.err'
19980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981  (eval $ac_try) 2>&5
19982  ac_status=$?
19983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984  (exit $ac_status); }; } &&
19985	 { ac_try='test -s conftest.$ac_objext'
19986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987  (eval $ac_try) 2>&5
19988  ac_status=$?
19989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990  (exit $ac_status); }; }; then
19991  ac_lo=$ac_mid; break
19992else
19993  echo "$as_me: failed program was:" >&5
19994sed 's/^/| /' conftest.$ac_ext >&5
19995
19996ac_hi=`expr '(' $ac_mid ')' - 1`
19997		       if test $ac_mid -le $ac_hi; then
19998			 ac_lo= ac_hi=
19999			 break
20000		       fi
20001		       ac_mid=`expr 2 '*' $ac_mid`
20002fi
20003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20004  done
20005else
20006  echo "$as_me: failed program was:" >&5
20007sed 's/^/| /' conftest.$ac_ext >&5
20008
20009ac_lo= ac_hi=
20010fi
20011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20012fi
20013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20014# Binary search between lo and hi bounds.
20015while test "x$ac_lo" != "x$ac_hi"; do
20016  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20017  cat >conftest.$ac_ext <<_ACEOF
20018/* confdefs.h.  */
20019_ACEOF
20020cat confdefs.h >>conftest.$ac_ext
20021cat >>conftest.$ac_ext <<_ACEOF
20022/* end confdefs.h.  */
20023$ac_includes_default
20024int
20025main ()
20026{
20027static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20028test_array [0] = 0
20029
20030  ;
20031  return 0;
20032}
20033_ACEOF
20034rm -f conftest.$ac_objext
20035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036  (eval $ac_compile) 2>conftest.er1
20037  ac_status=$?
20038  grep -v '^ *+' conftest.er1 >conftest.err
20039  rm -f conftest.er1
20040  cat conftest.err >&5
20041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042  (exit $ac_status); } &&
20043	 { ac_try='test -z "$ac_c_werror_flag"
20044			 || test ! -s conftest.err'
20045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046  (eval $ac_try) 2>&5
20047  ac_status=$?
20048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049  (exit $ac_status); }; } &&
20050	 { ac_try='test -s conftest.$ac_objext'
20051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052  (eval $ac_try) 2>&5
20053  ac_status=$?
20054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055  (exit $ac_status); }; }; then
20056  ac_hi=$ac_mid
20057else
20058  echo "$as_me: failed program was:" >&5
20059sed 's/^/| /' conftest.$ac_ext >&5
20060
20061ac_lo=`expr '(' $ac_mid ')' + 1`
20062fi
20063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20064done
20065case $ac_lo in
20066?*) ac_cv_sizeof_char=$ac_lo;;
20067'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20068See \`config.log' for more details." >&5
20069echo "$as_me: error: cannot compute sizeof (char), 77
20070See \`config.log' for more details." >&2;}
20071   { (exit 1); exit 1; }; } ;;
20072esac
20073else
20074  if test "$cross_compiling" = yes; then
20075  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20076See \`config.log' for more details." >&5
20077echo "$as_me: error: cannot run test program while cross compiling
20078See \`config.log' for more details." >&2;}
20079   { (exit 1); exit 1; }; }
20080else
20081  cat >conftest.$ac_ext <<_ACEOF
20082/* confdefs.h.  */
20083_ACEOF
20084cat confdefs.h >>conftest.$ac_ext
20085cat >>conftest.$ac_ext <<_ACEOF
20086/* end confdefs.h.  */
20087$ac_includes_default
20088long longval () { return (long) (sizeof (char)); }
20089unsigned long ulongval () { return (long) (sizeof (char)); }
20090#include <stdio.h>
20091#include <stdlib.h>
20092int
20093main ()
20094{
20095
20096  FILE *f = fopen ("conftest.val", "w");
20097  if (! f)
20098    exit (1);
20099  if (((long) (sizeof (char))) < 0)
20100    {
20101      long i = longval ();
20102      if (i != ((long) (sizeof (char))))
20103	exit (1);
20104      fprintf (f, "%ld\n", i);
20105    }
20106  else
20107    {
20108      unsigned long i = ulongval ();
20109      if (i != ((long) (sizeof (char))))
20110	exit (1);
20111      fprintf (f, "%lu\n", i);
20112    }
20113  exit (ferror (f) || fclose (f) != 0);
20114
20115  ;
20116  return 0;
20117}
20118_ACEOF
20119rm -f conftest$ac_exeext
20120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20121  (eval $ac_link) 2>&5
20122  ac_status=$?
20123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126  (eval $ac_try) 2>&5
20127  ac_status=$?
20128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129  (exit $ac_status); }; }; then
20130  ac_cv_sizeof_char=`cat conftest.val`
20131else
20132  echo "$as_me: program exited with status $ac_status" >&5
20133echo "$as_me: failed program was:" >&5
20134sed 's/^/| /' conftest.$ac_ext >&5
20135
20136( exit $ac_status )
20137{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20138See \`config.log' for more details." >&5
20139echo "$as_me: error: cannot compute sizeof (char), 77
20140See \`config.log' for more details." >&2;}
20141   { (exit 1); exit 1; }; }
20142fi
20143rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20144fi
20145fi
20146rm -f conftest.val
20147else
20148  ac_cv_sizeof_char=0
20149fi
20150fi
20151echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20152echo "${ECHO_T}$ac_cv_sizeof_char" >&6
20153cat >>confdefs.h <<_ACEOF
20154#define SIZEOF_CHAR $ac_cv_sizeof_char
20155_ACEOF
20156
20157
20158echo "$as_me:$LINENO: checking for short" >&5
20159echo $ECHO_N "checking for short... $ECHO_C" >&6
20160if test "${ac_cv_type_short+set}" = set; then
20161  echo $ECHO_N "(cached) $ECHO_C" >&6
20162else
20163  cat >conftest.$ac_ext <<_ACEOF
20164/* confdefs.h.  */
20165_ACEOF
20166cat confdefs.h >>conftest.$ac_ext
20167cat >>conftest.$ac_ext <<_ACEOF
20168/* end confdefs.h.  */
20169$ac_includes_default
20170int
20171main ()
20172{
20173if ((short *) 0)
20174  return 0;
20175if (sizeof (short))
20176  return 0;
20177  ;
20178  return 0;
20179}
20180_ACEOF
20181rm -f conftest.$ac_objext
20182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20183  (eval $ac_compile) 2>conftest.er1
20184  ac_status=$?
20185  grep -v '^ *+' conftest.er1 >conftest.err
20186  rm -f conftest.er1
20187  cat conftest.err >&5
20188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189  (exit $ac_status); } &&
20190	 { ac_try='test -z "$ac_c_werror_flag"
20191			 || test ! -s conftest.err'
20192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193  (eval $ac_try) 2>&5
20194  ac_status=$?
20195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196  (exit $ac_status); }; } &&
20197	 { ac_try='test -s conftest.$ac_objext'
20198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199  (eval $ac_try) 2>&5
20200  ac_status=$?
20201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202  (exit $ac_status); }; }; then
20203  ac_cv_type_short=yes
20204else
20205  echo "$as_me: failed program was:" >&5
20206sed 's/^/| /' conftest.$ac_ext >&5
20207
20208ac_cv_type_short=no
20209fi
20210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20211fi
20212echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20213echo "${ECHO_T}$ac_cv_type_short" >&6
20214
20215echo "$as_me:$LINENO: checking size of short" >&5
20216echo $ECHO_N "checking size of short... $ECHO_C" >&6
20217if test "${ac_cv_sizeof_short+set}" = set; then
20218  echo $ECHO_N "(cached) $ECHO_C" >&6
20219else
20220  if test "$ac_cv_type_short" = yes; then
20221  # The cast to unsigned long works around a bug in the HP C Compiler
20222  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20223  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20224  # This bug is HP SR number 8606223364.
20225  if test "$cross_compiling" = yes; then
20226  # Depending upon the size, compute the lo and hi bounds.
20227cat >conftest.$ac_ext <<_ACEOF
20228/* confdefs.h.  */
20229_ACEOF
20230cat confdefs.h >>conftest.$ac_ext
20231cat >>conftest.$ac_ext <<_ACEOF
20232/* end confdefs.h.  */
20233$ac_includes_default
20234int
20235main ()
20236{
20237static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
20238test_array [0] = 0
20239
20240  ;
20241  return 0;
20242}
20243_ACEOF
20244rm -f conftest.$ac_objext
20245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20246  (eval $ac_compile) 2>conftest.er1
20247  ac_status=$?
20248  grep -v '^ *+' conftest.er1 >conftest.err
20249  rm -f conftest.er1
20250  cat conftest.err >&5
20251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252  (exit $ac_status); } &&
20253	 { ac_try='test -z "$ac_c_werror_flag"
20254			 || test ! -s conftest.err'
20255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256  (eval $ac_try) 2>&5
20257  ac_status=$?
20258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259  (exit $ac_status); }; } &&
20260	 { ac_try='test -s conftest.$ac_objext'
20261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262  (eval $ac_try) 2>&5
20263  ac_status=$?
20264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265  (exit $ac_status); }; }; then
20266  ac_lo=0 ac_mid=0
20267  while :; do
20268    cat >conftest.$ac_ext <<_ACEOF
20269/* confdefs.h.  */
20270_ACEOF
20271cat confdefs.h >>conftest.$ac_ext
20272cat >>conftest.$ac_ext <<_ACEOF
20273/* end confdefs.h.  */
20274$ac_includes_default
20275int
20276main ()
20277{
20278static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20279test_array [0] = 0
20280
20281  ;
20282  return 0;
20283}
20284_ACEOF
20285rm -f conftest.$ac_objext
20286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20287  (eval $ac_compile) 2>conftest.er1
20288  ac_status=$?
20289  grep -v '^ *+' conftest.er1 >conftest.err
20290  rm -f conftest.er1
20291  cat conftest.err >&5
20292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293  (exit $ac_status); } &&
20294	 { ac_try='test -z "$ac_c_werror_flag"
20295			 || test ! -s conftest.err'
20296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297  (eval $ac_try) 2>&5
20298  ac_status=$?
20299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300  (exit $ac_status); }; } &&
20301	 { ac_try='test -s conftest.$ac_objext'
20302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303  (eval $ac_try) 2>&5
20304  ac_status=$?
20305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306  (exit $ac_status); }; }; then
20307  ac_hi=$ac_mid; break
20308else
20309  echo "$as_me: failed program was:" >&5
20310sed 's/^/| /' conftest.$ac_ext >&5
20311
20312ac_lo=`expr $ac_mid + 1`
20313		    if test $ac_lo -le $ac_mid; then
20314		      ac_lo= ac_hi=
20315		      break
20316		    fi
20317		    ac_mid=`expr 2 '*' $ac_mid + 1`
20318fi
20319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20320  done
20321else
20322  echo "$as_me: failed program was:" >&5
20323sed 's/^/| /' conftest.$ac_ext >&5
20324
20325cat >conftest.$ac_ext <<_ACEOF
20326/* confdefs.h.  */
20327_ACEOF
20328cat confdefs.h >>conftest.$ac_ext
20329cat >>conftest.$ac_ext <<_ACEOF
20330/* end confdefs.h.  */
20331$ac_includes_default
20332int
20333main ()
20334{
20335static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
20336test_array [0] = 0
20337
20338  ;
20339  return 0;
20340}
20341_ACEOF
20342rm -f conftest.$ac_objext
20343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20344  (eval $ac_compile) 2>conftest.er1
20345  ac_status=$?
20346  grep -v '^ *+' conftest.er1 >conftest.err
20347  rm -f conftest.er1
20348  cat conftest.err >&5
20349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350  (exit $ac_status); } &&
20351	 { ac_try='test -z "$ac_c_werror_flag"
20352			 || test ! -s conftest.err'
20353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354  (eval $ac_try) 2>&5
20355  ac_status=$?
20356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357  (exit $ac_status); }; } &&
20358	 { ac_try='test -s conftest.$ac_objext'
20359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360  (eval $ac_try) 2>&5
20361  ac_status=$?
20362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363  (exit $ac_status); }; }; then
20364  ac_hi=-1 ac_mid=-1
20365  while :; do
20366    cat >conftest.$ac_ext <<_ACEOF
20367/* confdefs.h.  */
20368_ACEOF
20369cat confdefs.h >>conftest.$ac_ext
20370cat >>conftest.$ac_ext <<_ACEOF
20371/* end confdefs.h.  */
20372$ac_includes_default
20373int
20374main ()
20375{
20376static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
20377test_array [0] = 0
20378
20379  ;
20380  return 0;
20381}
20382_ACEOF
20383rm -f conftest.$ac_objext
20384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20385  (eval $ac_compile) 2>conftest.er1
20386  ac_status=$?
20387  grep -v '^ *+' conftest.er1 >conftest.err
20388  rm -f conftest.er1
20389  cat conftest.err >&5
20390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391  (exit $ac_status); } &&
20392	 { ac_try='test -z "$ac_c_werror_flag"
20393			 || test ! -s conftest.err'
20394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395  (eval $ac_try) 2>&5
20396  ac_status=$?
20397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398  (exit $ac_status); }; } &&
20399	 { ac_try='test -s conftest.$ac_objext'
20400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401  (eval $ac_try) 2>&5
20402  ac_status=$?
20403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404  (exit $ac_status); }; }; then
20405  ac_lo=$ac_mid; break
20406else
20407  echo "$as_me: failed program was:" >&5
20408sed 's/^/| /' conftest.$ac_ext >&5
20409
20410ac_hi=`expr '(' $ac_mid ')' - 1`
20411		       if test $ac_mid -le $ac_hi; then
20412			 ac_lo= ac_hi=
20413			 break
20414		       fi
20415		       ac_mid=`expr 2 '*' $ac_mid`
20416fi
20417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20418  done
20419else
20420  echo "$as_me: failed program was:" >&5
20421sed 's/^/| /' conftest.$ac_ext >&5
20422
20423ac_lo= ac_hi=
20424fi
20425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20426fi
20427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20428# Binary search between lo and hi bounds.
20429while test "x$ac_lo" != "x$ac_hi"; do
20430  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20431  cat >conftest.$ac_ext <<_ACEOF
20432/* confdefs.h.  */
20433_ACEOF
20434cat confdefs.h >>conftest.$ac_ext
20435cat >>conftest.$ac_ext <<_ACEOF
20436/* end confdefs.h.  */
20437$ac_includes_default
20438int
20439main ()
20440{
20441static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20442test_array [0] = 0
20443
20444  ;
20445  return 0;
20446}
20447_ACEOF
20448rm -f conftest.$ac_objext
20449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20450  (eval $ac_compile) 2>conftest.er1
20451  ac_status=$?
20452  grep -v '^ *+' conftest.er1 >conftest.err
20453  rm -f conftest.er1
20454  cat conftest.err >&5
20455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456  (exit $ac_status); } &&
20457	 { ac_try='test -z "$ac_c_werror_flag"
20458			 || test ! -s conftest.err'
20459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460  (eval $ac_try) 2>&5
20461  ac_status=$?
20462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463  (exit $ac_status); }; } &&
20464	 { ac_try='test -s conftest.$ac_objext'
20465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466  (eval $ac_try) 2>&5
20467  ac_status=$?
20468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469  (exit $ac_status); }; }; then
20470  ac_hi=$ac_mid
20471else
20472  echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475ac_lo=`expr '(' $ac_mid ')' + 1`
20476fi
20477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20478done
20479case $ac_lo in
20480?*) ac_cv_sizeof_short=$ac_lo;;
20481'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
20482See \`config.log' for more details." >&5
20483echo "$as_me: error: cannot compute sizeof (short), 77
20484See \`config.log' for more details." >&2;}
20485   { (exit 1); exit 1; }; } ;;
20486esac
20487else
20488  if test "$cross_compiling" = yes; then
20489  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20490See \`config.log' for more details." >&5
20491echo "$as_me: error: cannot run test program while cross compiling
20492See \`config.log' for more details." >&2;}
20493   { (exit 1); exit 1; }; }
20494else
20495  cat >conftest.$ac_ext <<_ACEOF
20496/* confdefs.h.  */
20497_ACEOF
20498cat confdefs.h >>conftest.$ac_ext
20499cat >>conftest.$ac_ext <<_ACEOF
20500/* end confdefs.h.  */
20501$ac_includes_default
20502long longval () { return (long) (sizeof (short)); }
20503unsigned long ulongval () { return (long) (sizeof (short)); }
20504#include <stdio.h>
20505#include <stdlib.h>
20506int
20507main ()
20508{
20509
20510  FILE *f = fopen ("conftest.val", "w");
20511  if (! f)
20512    exit (1);
20513  if (((long) (sizeof (short))) < 0)
20514    {
20515      long i = longval ();
20516      if (i != ((long) (sizeof (short))))
20517	exit (1);
20518      fprintf (f, "%ld\n", i);
20519    }
20520  else
20521    {
20522      unsigned long i = ulongval ();
20523      if (i != ((long) (sizeof (short))))
20524	exit (1);
20525      fprintf (f, "%lu\n", i);
20526    }
20527  exit (ferror (f) || fclose (f) != 0);
20528
20529  ;
20530  return 0;
20531}
20532_ACEOF
20533rm -f conftest$ac_exeext
20534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20535  (eval $ac_link) 2>&5
20536  ac_status=$?
20537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540  (eval $ac_try) 2>&5
20541  ac_status=$?
20542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543  (exit $ac_status); }; }; then
20544  ac_cv_sizeof_short=`cat conftest.val`
20545else
20546  echo "$as_me: program exited with status $ac_status" >&5
20547echo "$as_me: failed program was:" >&5
20548sed 's/^/| /' conftest.$ac_ext >&5
20549
20550( exit $ac_status )
20551{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
20552See \`config.log' for more details." >&5
20553echo "$as_me: error: cannot compute sizeof (short), 77
20554See \`config.log' for more details." >&2;}
20555   { (exit 1); exit 1; }; }
20556fi
20557rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20558fi
20559fi
20560rm -f conftest.val
20561else
20562  ac_cv_sizeof_short=0
20563fi
20564fi
20565echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20566echo "${ECHO_T}$ac_cv_sizeof_short" >&6
20567cat >>confdefs.h <<_ACEOF
20568#define SIZEOF_SHORT $ac_cv_sizeof_short
20569_ACEOF
20570
20571
20572echo "$as_me:$LINENO: checking for int" >&5
20573echo $ECHO_N "checking for int... $ECHO_C" >&6
20574if test "${ac_cv_type_int+set}" = set; then
20575  echo $ECHO_N "(cached) $ECHO_C" >&6
20576else
20577  cat >conftest.$ac_ext <<_ACEOF
20578/* confdefs.h.  */
20579_ACEOF
20580cat confdefs.h >>conftest.$ac_ext
20581cat >>conftest.$ac_ext <<_ACEOF
20582/* end confdefs.h.  */
20583$ac_includes_default
20584int
20585main ()
20586{
20587if ((int *) 0)
20588  return 0;
20589if (sizeof (int))
20590  return 0;
20591  ;
20592  return 0;
20593}
20594_ACEOF
20595rm -f conftest.$ac_objext
20596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20597  (eval $ac_compile) 2>conftest.er1
20598  ac_status=$?
20599  grep -v '^ *+' conftest.er1 >conftest.err
20600  rm -f conftest.er1
20601  cat conftest.err >&5
20602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603  (exit $ac_status); } &&
20604	 { ac_try='test -z "$ac_c_werror_flag"
20605			 || test ! -s conftest.err'
20606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607  (eval $ac_try) 2>&5
20608  ac_status=$?
20609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610  (exit $ac_status); }; } &&
20611	 { ac_try='test -s conftest.$ac_objext'
20612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613  (eval $ac_try) 2>&5
20614  ac_status=$?
20615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616  (exit $ac_status); }; }; then
20617  ac_cv_type_int=yes
20618else
20619  echo "$as_me: failed program was:" >&5
20620sed 's/^/| /' conftest.$ac_ext >&5
20621
20622ac_cv_type_int=no
20623fi
20624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20625fi
20626echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20627echo "${ECHO_T}$ac_cv_type_int" >&6
20628
20629echo "$as_me:$LINENO: checking size of int" >&5
20630echo $ECHO_N "checking size of int... $ECHO_C" >&6
20631if test "${ac_cv_sizeof_int+set}" = set; then
20632  echo $ECHO_N "(cached) $ECHO_C" >&6
20633else
20634  if test "$ac_cv_type_int" = yes; then
20635  # The cast to unsigned long works around a bug in the HP C Compiler
20636  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20637  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20638  # This bug is HP SR number 8606223364.
20639  if test "$cross_compiling" = yes; then
20640  # Depending upon the size, compute the lo and hi bounds.
20641cat >conftest.$ac_ext <<_ACEOF
20642/* confdefs.h.  */
20643_ACEOF
20644cat confdefs.h >>conftest.$ac_ext
20645cat >>conftest.$ac_ext <<_ACEOF
20646/* end confdefs.h.  */
20647$ac_includes_default
20648int
20649main ()
20650{
20651static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
20652test_array [0] = 0
20653
20654  ;
20655  return 0;
20656}
20657_ACEOF
20658rm -f conftest.$ac_objext
20659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20660  (eval $ac_compile) 2>conftest.er1
20661  ac_status=$?
20662  grep -v '^ *+' conftest.er1 >conftest.err
20663  rm -f conftest.er1
20664  cat conftest.err >&5
20665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666  (exit $ac_status); } &&
20667	 { ac_try='test -z "$ac_c_werror_flag"
20668			 || test ! -s conftest.err'
20669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670  (eval $ac_try) 2>&5
20671  ac_status=$?
20672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673  (exit $ac_status); }; } &&
20674	 { ac_try='test -s conftest.$ac_objext'
20675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676  (eval $ac_try) 2>&5
20677  ac_status=$?
20678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679  (exit $ac_status); }; }; then
20680  ac_lo=0 ac_mid=0
20681  while :; do
20682    cat >conftest.$ac_ext <<_ACEOF
20683/* confdefs.h.  */
20684_ACEOF
20685cat confdefs.h >>conftest.$ac_ext
20686cat >>conftest.$ac_ext <<_ACEOF
20687/* end confdefs.h.  */
20688$ac_includes_default
20689int
20690main ()
20691{
20692static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20693test_array [0] = 0
20694
20695  ;
20696  return 0;
20697}
20698_ACEOF
20699rm -f conftest.$ac_objext
20700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20701  (eval $ac_compile) 2>conftest.er1
20702  ac_status=$?
20703  grep -v '^ *+' conftest.er1 >conftest.err
20704  rm -f conftest.er1
20705  cat conftest.err >&5
20706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707  (exit $ac_status); } &&
20708	 { ac_try='test -z "$ac_c_werror_flag"
20709			 || test ! -s conftest.err'
20710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711  (eval $ac_try) 2>&5
20712  ac_status=$?
20713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714  (exit $ac_status); }; } &&
20715	 { ac_try='test -s conftest.$ac_objext'
20716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717  (eval $ac_try) 2>&5
20718  ac_status=$?
20719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720  (exit $ac_status); }; }; then
20721  ac_hi=$ac_mid; break
20722else
20723  echo "$as_me: failed program was:" >&5
20724sed 's/^/| /' conftest.$ac_ext >&5
20725
20726ac_lo=`expr $ac_mid + 1`
20727		    if test $ac_lo -le $ac_mid; then
20728		      ac_lo= ac_hi=
20729		      break
20730		    fi
20731		    ac_mid=`expr 2 '*' $ac_mid + 1`
20732fi
20733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20734  done
20735else
20736  echo "$as_me: failed program was:" >&5
20737sed 's/^/| /' conftest.$ac_ext >&5
20738
20739cat >conftest.$ac_ext <<_ACEOF
20740/* confdefs.h.  */
20741_ACEOF
20742cat confdefs.h >>conftest.$ac_ext
20743cat >>conftest.$ac_ext <<_ACEOF
20744/* end confdefs.h.  */
20745$ac_includes_default
20746int
20747main ()
20748{
20749static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
20750test_array [0] = 0
20751
20752  ;
20753  return 0;
20754}
20755_ACEOF
20756rm -f conftest.$ac_objext
20757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758  (eval $ac_compile) 2>conftest.er1
20759  ac_status=$?
20760  grep -v '^ *+' conftest.er1 >conftest.err
20761  rm -f conftest.er1
20762  cat conftest.err >&5
20763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764  (exit $ac_status); } &&
20765	 { ac_try='test -z "$ac_c_werror_flag"
20766			 || test ! -s conftest.err'
20767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768  (eval $ac_try) 2>&5
20769  ac_status=$?
20770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771  (exit $ac_status); }; } &&
20772	 { ac_try='test -s conftest.$ac_objext'
20773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774  (eval $ac_try) 2>&5
20775  ac_status=$?
20776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777  (exit $ac_status); }; }; then
20778  ac_hi=-1 ac_mid=-1
20779  while :; do
20780    cat >conftest.$ac_ext <<_ACEOF
20781/* confdefs.h.  */
20782_ACEOF
20783cat confdefs.h >>conftest.$ac_ext
20784cat >>conftest.$ac_ext <<_ACEOF
20785/* end confdefs.h.  */
20786$ac_includes_default
20787int
20788main ()
20789{
20790static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
20791test_array [0] = 0
20792
20793  ;
20794  return 0;
20795}
20796_ACEOF
20797rm -f conftest.$ac_objext
20798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20799  (eval $ac_compile) 2>conftest.er1
20800  ac_status=$?
20801  grep -v '^ *+' conftest.er1 >conftest.err
20802  rm -f conftest.er1
20803  cat conftest.err >&5
20804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805  (exit $ac_status); } &&
20806	 { ac_try='test -z "$ac_c_werror_flag"
20807			 || test ! -s conftest.err'
20808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809  (eval $ac_try) 2>&5
20810  ac_status=$?
20811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812  (exit $ac_status); }; } &&
20813	 { ac_try='test -s conftest.$ac_objext'
20814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815  (eval $ac_try) 2>&5
20816  ac_status=$?
20817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818  (exit $ac_status); }; }; then
20819  ac_lo=$ac_mid; break
20820else
20821  echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824ac_hi=`expr '(' $ac_mid ')' - 1`
20825		       if test $ac_mid -le $ac_hi; then
20826			 ac_lo= ac_hi=
20827			 break
20828		       fi
20829		       ac_mid=`expr 2 '*' $ac_mid`
20830fi
20831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20832  done
20833else
20834  echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
20837ac_lo= ac_hi=
20838fi
20839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20840fi
20841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20842# Binary search between lo and hi bounds.
20843while test "x$ac_lo" != "x$ac_hi"; do
20844  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20845  cat >conftest.$ac_ext <<_ACEOF
20846/* confdefs.h.  */
20847_ACEOF
20848cat confdefs.h >>conftest.$ac_ext
20849cat >>conftest.$ac_ext <<_ACEOF
20850/* end confdefs.h.  */
20851$ac_includes_default
20852int
20853main ()
20854{
20855static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20856test_array [0] = 0
20857
20858  ;
20859  return 0;
20860}
20861_ACEOF
20862rm -f conftest.$ac_objext
20863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20864  (eval $ac_compile) 2>conftest.er1
20865  ac_status=$?
20866  grep -v '^ *+' conftest.er1 >conftest.err
20867  rm -f conftest.er1
20868  cat conftest.err >&5
20869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870  (exit $ac_status); } &&
20871	 { ac_try='test -z "$ac_c_werror_flag"
20872			 || test ! -s conftest.err'
20873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874  (eval $ac_try) 2>&5
20875  ac_status=$?
20876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877  (exit $ac_status); }; } &&
20878	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20884  ac_hi=$ac_mid
20885else
20886  echo "$as_me: failed program was:" >&5
20887sed 's/^/| /' conftest.$ac_ext >&5
20888
20889ac_lo=`expr '(' $ac_mid ')' + 1`
20890fi
20891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20892done
20893case $ac_lo in
20894?*) ac_cv_sizeof_int=$ac_lo;;
20895'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20896See \`config.log' for more details." >&5
20897echo "$as_me: error: cannot compute sizeof (int), 77
20898See \`config.log' for more details." >&2;}
20899   { (exit 1); exit 1; }; } ;;
20900esac
20901else
20902  if test "$cross_compiling" = yes; then
20903  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20904See \`config.log' for more details." >&5
20905echo "$as_me: error: cannot run test program while cross compiling
20906See \`config.log' for more details." >&2;}
20907   { (exit 1); exit 1; }; }
20908else
20909  cat >conftest.$ac_ext <<_ACEOF
20910/* confdefs.h.  */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h.  */
20915$ac_includes_default
20916long longval () { return (long) (sizeof (int)); }
20917unsigned long ulongval () { return (long) (sizeof (int)); }
20918#include <stdio.h>
20919#include <stdlib.h>
20920int
20921main ()
20922{
20923
20924  FILE *f = fopen ("conftest.val", "w");
20925  if (! f)
20926    exit (1);
20927  if (((long) (sizeof (int))) < 0)
20928    {
20929      long i = longval ();
20930      if (i != ((long) (sizeof (int))))
20931	exit (1);
20932      fprintf (f, "%ld\n", i);
20933    }
20934  else
20935    {
20936      unsigned long i = ulongval ();
20937      if (i != ((long) (sizeof (int))))
20938	exit (1);
20939      fprintf (f, "%lu\n", i);
20940    }
20941  exit (ferror (f) || fclose (f) != 0);
20942
20943  ;
20944  return 0;
20945}
20946_ACEOF
20947rm -f conftest$ac_exeext
20948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949  (eval $ac_link) 2>&5
20950  ac_status=$?
20951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954  (eval $ac_try) 2>&5
20955  ac_status=$?
20956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957  (exit $ac_status); }; }; then
20958  ac_cv_sizeof_int=`cat conftest.val`
20959else
20960  echo "$as_me: program exited with status $ac_status" >&5
20961echo "$as_me: failed program was:" >&5
20962sed 's/^/| /' conftest.$ac_ext >&5
20963
20964( exit $ac_status )
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; }; }
20970fi
20971rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20972fi
20973fi
20974rm -f conftest.val
20975else
20976  ac_cv_sizeof_int=0
20977fi
20978fi
20979echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20980echo "${ECHO_T}$ac_cv_sizeof_int" >&6
20981cat >>confdefs.h <<_ACEOF
20982#define SIZEOF_INT $ac_cv_sizeof_int
20983_ACEOF
20984
20985
20986echo "$as_me:$LINENO: checking for long" >&5
20987echo $ECHO_N "checking for long... $ECHO_C" >&6
20988if test "${ac_cv_type_long+set}" = set; then
20989  echo $ECHO_N "(cached) $ECHO_C" >&6
20990else
20991  cat >conftest.$ac_ext <<_ACEOF
20992/* confdefs.h.  */
20993_ACEOF
20994cat confdefs.h >>conftest.$ac_ext
20995cat >>conftest.$ac_ext <<_ACEOF
20996/* end confdefs.h.  */
20997$ac_includes_default
20998int
20999main ()
21000{
21001if ((long *) 0)
21002  return 0;
21003if (sizeof (long))
21004  return 0;
21005  ;
21006  return 0;
21007}
21008_ACEOF
21009rm -f conftest.$ac_objext
21010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21011  (eval $ac_compile) 2>conftest.er1
21012  ac_status=$?
21013  grep -v '^ *+' conftest.er1 >conftest.err
21014  rm -f conftest.er1
21015  cat conftest.err >&5
21016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017  (exit $ac_status); } &&
21018	 { ac_try='test -z "$ac_c_werror_flag"
21019			 || test ! -s conftest.err'
21020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021  (eval $ac_try) 2>&5
21022  ac_status=$?
21023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024  (exit $ac_status); }; } &&
21025	 { ac_try='test -s conftest.$ac_objext'
21026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027  (eval $ac_try) 2>&5
21028  ac_status=$?
21029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030  (exit $ac_status); }; }; then
21031  ac_cv_type_long=yes
21032else
21033  echo "$as_me: failed program was:" >&5
21034sed 's/^/| /' conftest.$ac_ext >&5
21035
21036ac_cv_type_long=no
21037fi
21038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21039fi
21040echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21041echo "${ECHO_T}$ac_cv_type_long" >&6
21042
21043echo "$as_me:$LINENO: checking size of long" >&5
21044echo $ECHO_N "checking size of long... $ECHO_C" >&6
21045if test "${ac_cv_sizeof_long+set}" = set; then
21046  echo $ECHO_N "(cached) $ECHO_C" >&6
21047else
21048  if test "$ac_cv_type_long" = yes; then
21049  # The cast to unsigned long works around a bug in the HP C Compiler
21050  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21051  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21052  # This bug is HP SR number 8606223364.
21053  if test "$cross_compiling" = yes; then
21054  # Depending upon the size, compute the lo and hi bounds.
21055cat >conftest.$ac_ext <<_ACEOF
21056/* confdefs.h.  */
21057_ACEOF
21058cat confdefs.h >>conftest.$ac_ext
21059cat >>conftest.$ac_ext <<_ACEOF
21060/* end confdefs.h.  */
21061$ac_includes_default
21062int
21063main ()
21064{
21065static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
21066test_array [0] = 0
21067
21068  ;
21069  return 0;
21070}
21071_ACEOF
21072rm -f conftest.$ac_objext
21073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21074  (eval $ac_compile) 2>conftest.er1
21075  ac_status=$?
21076  grep -v '^ *+' conftest.er1 >conftest.err
21077  rm -f conftest.er1
21078  cat conftest.err >&5
21079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080  (exit $ac_status); } &&
21081	 { ac_try='test -z "$ac_c_werror_flag"
21082			 || test ! -s conftest.err'
21083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084  (eval $ac_try) 2>&5
21085  ac_status=$?
21086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087  (exit $ac_status); }; } &&
21088	 { ac_try='test -s conftest.$ac_objext'
21089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090  (eval $ac_try) 2>&5
21091  ac_status=$?
21092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093  (exit $ac_status); }; }; then
21094  ac_lo=0 ac_mid=0
21095  while :; do
21096    cat >conftest.$ac_ext <<_ACEOF
21097/* confdefs.h.  */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h.  */
21102$ac_includes_default
21103int
21104main ()
21105{
21106static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21107test_array [0] = 0
21108
21109  ;
21110  return 0;
21111}
21112_ACEOF
21113rm -f conftest.$ac_objext
21114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21115  (eval $ac_compile) 2>conftest.er1
21116  ac_status=$?
21117  grep -v '^ *+' conftest.er1 >conftest.err
21118  rm -f conftest.er1
21119  cat conftest.err >&5
21120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121  (exit $ac_status); } &&
21122	 { ac_try='test -z "$ac_c_werror_flag"
21123			 || test ! -s conftest.err'
21124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125  (eval $ac_try) 2>&5
21126  ac_status=$?
21127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128  (exit $ac_status); }; } &&
21129	 { ac_try='test -s conftest.$ac_objext'
21130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131  (eval $ac_try) 2>&5
21132  ac_status=$?
21133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134  (exit $ac_status); }; }; then
21135  ac_hi=$ac_mid; break
21136else
21137  echo "$as_me: failed program was:" >&5
21138sed 's/^/| /' conftest.$ac_ext >&5
21139
21140ac_lo=`expr $ac_mid + 1`
21141		    if test $ac_lo -le $ac_mid; then
21142		      ac_lo= ac_hi=
21143		      break
21144		    fi
21145		    ac_mid=`expr 2 '*' $ac_mid + 1`
21146fi
21147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21148  done
21149else
21150  echo "$as_me: failed program was:" >&5
21151sed 's/^/| /' conftest.$ac_ext >&5
21152
21153cat >conftest.$ac_ext <<_ACEOF
21154/* confdefs.h.  */
21155_ACEOF
21156cat confdefs.h >>conftest.$ac_ext
21157cat >>conftest.$ac_ext <<_ACEOF
21158/* end confdefs.h.  */
21159$ac_includes_default
21160int
21161main ()
21162{
21163static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
21164test_array [0] = 0
21165
21166  ;
21167  return 0;
21168}
21169_ACEOF
21170rm -f conftest.$ac_objext
21171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21172  (eval $ac_compile) 2>conftest.er1
21173  ac_status=$?
21174  grep -v '^ *+' conftest.er1 >conftest.err
21175  rm -f conftest.er1
21176  cat conftest.err >&5
21177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178  (exit $ac_status); } &&
21179	 { ac_try='test -z "$ac_c_werror_flag"
21180			 || test ! -s conftest.err'
21181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182  (eval $ac_try) 2>&5
21183  ac_status=$?
21184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185  (exit $ac_status); }; } &&
21186	 { ac_try='test -s conftest.$ac_objext'
21187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188  (eval $ac_try) 2>&5
21189  ac_status=$?
21190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191  (exit $ac_status); }; }; then
21192  ac_hi=-1 ac_mid=-1
21193  while :; do
21194    cat >conftest.$ac_ext <<_ACEOF
21195/* confdefs.h.  */
21196_ACEOF
21197cat confdefs.h >>conftest.$ac_ext
21198cat >>conftest.$ac_ext <<_ACEOF
21199/* end confdefs.h.  */
21200$ac_includes_default
21201int
21202main ()
21203{
21204static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
21205test_array [0] = 0
21206
21207  ;
21208  return 0;
21209}
21210_ACEOF
21211rm -f conftest.$ac_objext
21212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21213  (eval $ac_compile) 2>conftest.er1
21214  ac_status=$?
21215  grep -v '^ *+' conftest.er1 >conftest.err
21216  rm -f conftest.er1
21217  cat conftest.err >&5
21218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219  (exit $ac_status); } &&
21220	 { ac_try='test -z "$ac_c_werror_flag"
21221			 || test ! -s conftest.err'
21222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223  (eval $ac_try) 2>&5
21224  ac_status=$?
21225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226  (exit $ac_status); }; } &&
21227	 { ac_try='test -s conftest.$ac_objext'
21228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229  (eval $ac_try) 2>&5
21230  ac_status=$?
21231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232  (exit $ac_status); }; }; then
21233  ac_lo=$ac_mid; break
21234else
21235  echo "$as_me: failed program was:" >&5
21236sed 's/^/| /' conftest.$ac_ext >&5
21237
21238ac_hi=`expr '(' $ac_mid ')' - 1`
21239		       if test $ac_mid -le $ac_hi; then
21240			 ac_lo= ac_hi=
21241			 break
21242		       fi
21243		       ac_mid=`expr 2 '*' $ac_mid`
21244fi
21245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21246  done
21247else
21248  echo "$as_me: failed program was:" >&5
21249sed 's/^/| /' conftest.$ac_ext >&5
21250
21251ac_lo= ac_hi=
21252fi
21253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21254fi
21255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21256# Binary search between lo and hi bounds.
21257while test "x$ac_lo" != "x$ac_hi"; do
21258  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21259  cat >conftest.$ac_ext <<_ACEOF
21260/* confdefs.h.  */
21261_ACEOF
21262cat confdefs.h >>conftest.$ac_ext
21263cat >>conftest.$ac_ext <<_ACEOF
21264/* end confdefs.h.  */
21265$ac_includes_default
21266int
21267main ()
21268{
21269static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21270test_array [0] = 0
21271
21272  ;
21273  return 0;
21274}
21275_ACEOF
21276rm -f conftest.$ac_objext
21277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21278  (eval $ac_compile) 2>conftest.er1
21279  ac_status=$?
21280  grep -v '^ *+' conftest.er1 >conftest.err
21281  rm -f conftest.er1
21282  cat conftest.err >&5
21283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284  (exit $ac_status); } &&
21285	 { ac_try='test -z "$ac_c_werror_flag"
21286			 || test ! -s conftest.err'
21287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288  (eval $ac_try) 2>&5
21289  ac_status=$?
21290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291  (exit $ac_status); }; } &&
21292	 { ac_try='test -s conftest.$ac_objext'
21293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294  (eval $ac_try) 2>&5
21295  ac_status=$?
21296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297  (exit $ac_status); }; }; then
21298  ac_hi=$ac_mid
21299else
21300  echo "$as_me: failed program was:" >&5
21301sed 's/^/| /' conftest.$ac_ext >&5
21302
21303ac_lo=`expr '(' $ac_mid ')' + 1`
21304fi
21305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21306done
21307case $ac_lo in
21308?*) ac_cv_sizeof_long=$ac_lo;;
21309'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21310See \`config.log' for more details." >&5
21311echo "$as_me: error: cannot compute sizeof (long), 77
21312See \`config.log' for more details." >&2;}
21313   { (exit 1); exit 1; }; } ;;
21314esac
21315else
21316  if test "$cross_compiling" = yes; then
21317  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21318See \`config.log' for more details." >&5
21319echo "$as_me: error: cannot run test program while cross compiling
21320See \`config.log' for more details." >&2;}
21321   { (exit 1); exit 1; }; }
21322else
21323  cat >conftest.$ac_ext <<_ACEOF
21324/* confdefs.h.  */
21325_ACEOF
21326cat confdefs.h >>conftest.$ac_ext
21327cat >>conftest.$ac_ext <<_ACEOF
21328/* end confdefs.h.  */
21329$ac_includes_default
21330long longval () { return (long) (sizeof (long)); }
21331unsigned long ulongval () { return (long) (sizeof (long)); }
21332#include <stdio.h>
21333#include <stdlib.h>
21334int
21335main ()
21336{
21337
21338  FILE *f = fopen ("conftest.val", "w");
21339  if (! f)
21340    exit (1);
21341  if (((long) (sizeof (long))) < 0)
21342    {
21343      long i = longval ();
21344      if (i != ((long) (sizeof (long))))
21345	exit (1);
21346      fprintf (f, "%ld\n", i);
21347    }
21348  else
21349    {
21350      unsigned long i = ulongval ();
21351      if (i != ((long) (sizeof (long))))
21352	exit (1);
21353      fprintf (f, "%lu\n", i);
21354    }
21355  exit (ferror (f) || fclose (f) != 0);
21356
21357  ;
21358  return 0;
21359}
21360_ACEOF
21361rm -f conftest$ac_exeext
21362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21363  (eval $ac_link) 2>&5
21364  ac_status=$?
21365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368  (eval $ac_try) 2>&5
21369  ac_status=$?
21370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371  (exit $ac_status); }; }; then
21372  ac_cv_sizeof_long=`cat conftest.val`
21373else
21374  echo "$as_me: program exited with status $ac_status" >&5
21375echo "$as_me: failed program was:" >&5
21376sed 's/^/| /' conftest.$ac_ext >&5
21377
21378( exit $ac_status )
21379{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21380See \`config.log' for more details." >&5
21381echo "$as_me: error: cannot compute sizeof (long), 77
21382See \`config.log' for more details." >&2;}
21383   { (exit 1); exit 1; }; }
21384fi
21385rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21386fi
21387fi
21388rm -f conftest.val
21389else
21390  ac_cv_sizeof_long=0
21391fi
21392fi
21393echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21394echo "${ECHO_T}$ac_cv_sizeof_long" >&6
21395cat >>confdefs.h <<_ACEOF
21396#define SIZEOF_LONG $ac_cv_sizeof_long
21397_ACEOF
21398
21399
21400echo "$as_me:$LINENO: checking for long long" >&5
21401echo $ECHO_N "checking for long long... $ECHO_C" >&6
21402if test "${ac_cv_type_long_long+set}" = set; then
21403  echo $ECHO_N "(cached) $ECHO_C" >&6
21404else
21405  cat >conftest.$ac_ext <<_ACEOF
21406/* confdefs.h.  */
21407_ACEOF
21408cat confdefs.h >>conftest.$ac_ext
21409cat >>conftest.$ac_ext <<_ACEOF
21410/* end confdefs.h.  */
21411$ac_includes_default
21412int
21413main ()
21414{
21415if ((long long *) 0)
21416  return 0;
21417if (sizeof (long long))
21418  return 0;
21419  ;
21420  return 0;
21421}
21422_ACEOF
21423rm -f conftest.$ac_objext
21424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21425  (eval $ac_compile) 2>conftest.er1
21426  ac_status=$?
21427  grep -v '^ *+' conftest.er1 >conftest.err
21428  rm -f conftest.er1
21429  cat conftest.err >&5
21430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431  (exit $ac_status); } &&
21432	 { ac_try='test -z "$ac_c_werror_flag"
21433			 || test ! -s conftest.err'
21434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435  (eval $ac_try) 2>&5
21436  ac_status=$?
21437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438  (exit $ac_status); }; } &&
21439	 { ac_try='test -s conftest.$ac_objext'
21440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441  (eval $ac_try) 2>&5
21442  ac_status=$?
21443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444  (exit $ac_status); }; }; then
21445  ac_cv_type_long_long=yes
21446else
21447  echo "$as_me: failed program was:" >&5
21448sed 's/^/| /' conftest.$ac_ext >&5
21449
21450ac_cv_type_long_long=no
21451fi
21452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21453fi
21454echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21455echo "${ECHO_T}$ac_cv_type_long_long" >&6
21456
21457echo "$as_me:$LINENO: checking size of long long" >&5
21458echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21459if test "${ac_cv_sizeof_long_long+set}" = set; then
21460  echo $ECHO_N "(cached) $ECHO_C" >&6
21461else
21462  if test "$ac_cv_type_long_long" = yes; then
21463  # The cast to unsigned long works around a bug in the HP C Compiler
21464  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21465  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21466  # This bug is HP SR number 8606223364.
21467  if test "$cross_compiling" = yes; then
21468  # Depending upon the size, compute the lo and hi bounds.
21469cat >conftest.$ac_ext <<_ACEOF
21470/* confdefs.h.  */
21471_ACEOF
21472cat confdefs.h >>conftest.$ac_ext
21473cat >>conftest.$ac_ext <<_ACEOF
21474/* end confdefs.h.  */
21475$ac_includes_default
21476int
21477main ()
21478{
21479static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21480test_array [0] = 0
21481
21482  ;
21483  return 0;
21484}
21485_ACEOF
21486rm -f conftest.$ac_objext
21487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21488  (eval $ac_compile) 2>conftest.er1
21489  ac_status=$?
21490  grep -v '^ *+' conftest.er1 >conftest.err
21491  rm -f conftest.er1
21492  cat conftest.err >&5
21493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494  (exit $ac_status); } &&
21495	 { ac_try='test -z "$ac_c_werror_flag"
21496			 || test ! -s conftest.err'
21497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498  (eval $ac_try) 2>&5
21499  ac_status=$?
21500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501  (exit $ac_status); }; } &&
21502	 { ac_try='test -s conftest.$ac_objext'
21503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21504  (eval $ac_try) 2>&5
21505  ac_status=$?
21506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507  (exit $ac_status); }; }; then
21508  ac_lo=0 ac_mid=0
21509  while :; do
21510    cat >conftest.$ac_ext <<_ACEOF
21511/* confdefs.h.  */
21512_ACEOF
21513cat confdefs.h >>conftest.$ac_ext
21514cat >>conftest.$ac_ext <<_ACEOF
21515/* end confdefs.h.  */
21516$ac_includes_default
21517int
21518main ()
21519{
21520static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21521test_array [0] = 0
21522
21523  ;
21524  return 0;
21525}
21526_ACEOF
21527rm -f conftest.$ac_objext
21528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21529  (eval $ac_compile) 2>conftest.er1
21530  ac_status=$?
21531  grep -v '^ *+' conftest.er1 >conftest.err
21532  rm -f conftest.er1
21533  cat conftest.err >&5
21534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535  (exit $ac_status); } &&
21536	 { ac_try='test -z "$ac_c_werror_flag"
21537			 || test ! -s conftest.err'
21538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539  (eval $ac_try) 2>&5
21540  ac_status=$?
21541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542  (exit $ac_status); }; } &&
21543	 { ac_try='test -s conftest.$ac_objext'
21544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545  (eval $ac_try) 2>&5
21546  ac_status=$?
21547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548  (exit $ac_status); }; }; then
21549  ac_hi=$ac_mid; break
21550else
21551  echo "$as_me: failed program was:" >&5
21552sed 's/^/| /' conftest.$ac_ext >&5
21553
21554ac_lo=`expr $ac_mid + 1`
21555		    if test $ac_lo -le $ac_mid; then
21556		      ac_lo= ac_hi=
21557		      break
21558		    fi
21559		    ac_mid=`expr 2 '*' $ac_mid + 1`
21560fi
21561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21562  done
21563else
21564  echo "$as_me: failed program was:" >&5
21565sed 's/^/| /' conftest.$ac_ext >&5
21566
21567cat >conftest.$ac_ext <<_ACEOF
21568/* confdefs.h.  */
21569_ACEOF
21570cat confdefs.h >>conftest.$ac_ext
21571cat >>conftest.$ac_ext <<_ACEOF
21572/* end confdefs.h.  */
21573$ac_includes_default
21574int
21575main ()
21576{
21577static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21578test_array [0] = 0
21579
21580  ;
21581  return 0;
21582}
21583_ACEOF
21584rm -f conftest.$ac_objext
21585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21586  (eval $ac_compile) 2>conftest.er1
21587  ac_status=$?
21588  grep -v '^ *+' conftest.er1 >conftest.err
21589  rm -f conftest.er1
21590  cat conftest.err >&5
21591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592  (exit $ac_status); } &&
21593	 { ac_try='test -z "$ac_c_werror_flag"
21594			 || test ! -s conftest.err'
21595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596  (eval $ac_try) 2>&5
21597  ac_status=$?
21598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599  (exit $ac_status); }; } &&
21600	 { ac_try='test -s conftest.$ac_objext'
21601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602  (eval $ac_try) 2>&5
21603  ac_status=$?
21604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605  (exit $ac_status); }; }; then
21606  ac_hi=-1 ac_mid=-1
21607  while :; do
21608    cat >conftest.$ac_ext <<_ACEOF
21609/* confdefs.h.  */
21610_ACEOF
21611cat confdefs.h >>conftest.$ac_ext
21612cat >>conftest.$ac_ext <<_ACEOF
21613/* end confdefs.h.  */
21614$ac_includes_default
21615int
21616main ()
21617{
21618static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21619test_array [0] = 0
21620
21621  ;
21622  return 0;
21623}
21624_ACEOF
21625rm -f conftest.$ac_objext
21626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21627  (eval $ac_compile) 2>conftest.er1
21628  ac_status=$?
21629  grep -v '^ *+' conftest.er1 >conftest.err
21630  rm -f conftest.er1
21631  cat conftest.err >&5
21632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633  (exit $ac_status); } &&
21634	 { ac_try='test -z "$ac_c_werror_flag"
21635			 || test ! -s conftest.err'
21636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637  (eval $ac_try) 2>&5
21638  ac_status=$?
21639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640  (exit $ac_status); }; } &&
21641	 { ac_try='test -s conftest.$ac_objext'
21642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643  (eval $ac_try) 2>&5
21644  ac_status=$?
21645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646  (exit $ac_status); }; }; then
21647  ac_lo=$ac_mid; break
21648else
21649  echo "$as_me: failed program was:" >&5
21650sed 's/^/| /' conftest.$ac_ext >&5
21651
21652ac_hi=`expr '(' $ac_mid ')' - 1`
21653		       if test $ac_mid -le $ac_hi; then
21654			 ac_lo= ac_hi=
21655			 break
21656		       fi
21657		       ac_mid=`expr 2 '*' $ac_mid`
21658fi
21659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21660  done
21661else
21662  echo "$as_me: failed program was:" >&5
21663sed 's/^/| /' conftest.$ac_ext >&5
21664
21665ac_lo= ac_hi=
21666fi
21667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21668fi
21669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21670# Binary search between lo and hi bounds.
21671while test "x$ac_lo" != "x$ac_hi"; do
21672  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21673  cat >conftest.$ac_ext <<_ACEOF
21674/* confdefs.h.  */
21675_ACEOF
21676cat confdefs.h >>conftest.$ac_ext
21677cat >>conftest.$ac_ext <<_ACEOF
21678/* end confdefs.h.  */
21679$ac_includes_default
21680int
21681main ()
21682{
21683static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21684test_array [0] = 0
21685
21686  ;
21687  return 0;
21688}
21689_ACEOF
21690rm -f conftest.$ac_objext
21691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21692  (eval $ac_compile) 2>conftest.er1
21693  ac_status=$?
21694  grep -v '^ *+' conftest.er1 >conftest.err
21695  rm -f conftest.er1
21696  cat conftest.err >&5
21697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698  (exit $ac_status); } &&
21699	 { ac_try='test -z "$ac_c_werror_flag"
21700			 || test ! -s conftest.err'
21701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702  (eval $ac_try) 2>&5
21703  ac_status=$?
21704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705  (exit $ac_status); }; } &&
21706	 { ac_try='test -s conftest.$ac_objext'
21707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708  (eval $ac_try) 2>&5
21709  ac_status=$?
21710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711  (exit $ac_status); }; }; then
21712  ac_hi=$ac_mid
21713else
21714  echo "$as_me: failed program was:" >&5
21715sed 's/^/| /' conftest.$ac_ext >&5
21716
21717ac_lo=`expr '(' $ac_mid ')' + 1`
21718fi
21719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21720done
21721case $ac_lo in
21722?*) ac_cv_sizeof_long_long=$ac_lo;;
21723'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21724See \`config.log' for more details." >&5
21725echo "$as_me: error: cannot compute sizeof (long long), 77
21726See \`config.log' for more details." >&2;}
21727   { (exit 1); exit 1; }; } ;;
21728esac
21729else
21730  if test "$cross_compiling" = yes; then
21731  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21732See \`config.log' for more details." >&5
21733echo "$as_me: error: cannot run test program while cross compiling
21734See \`config.log' for more details." >&2;}
21735   { (exit 1); exit 1; }; }
21736else
21737  cat >conftest.$ac_ext <<_ACEOF
21738/* confdefs.h.  */
21739_ACEOF
21740cat confdefs.h >>conftest.$ac_ext
21741cat >>conftest.$ac_ext <<_ACEOF
21742/* end confdefs.h.  */
21743$ac_includes_default
21744long longval () { return (long) (sizeof (long long)); }
21745unsigned long ulongval () { return (long) (sizeof (long long)); }
21746#include <stdio.h>
21747#include <stdlib.h>
21748int
21749main ()
21750{
21751
21752  FILE *f = fopen ("conftest.val", "w");
21753  if (! f)
21754    exit (1);
21755  if (((long) (sizeof (long long))) < 0)
21756    {
21757      long i = longval ();
21758      if (i != ((long) (sizeof (long long))))
21759	exit (1);
21760      fprintf (f, "%ld\n", i);
21761    }
21762  else
21763    {
21764      unsigned long i = ulongval ();
21765      if (i != ((long) (sizeof (long long))))
21766	exit (1);
21767      fprintf (f, "%lu\n", i);
21768    }
21769  exit (ferror (f) || fclose (f) != 0);
21770
21771  ;
21772  return 0;
21773}
21774_ACEOF
21775rm -f conftest$ac_exeext
21776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21777  (eval $ac_link) 2>&5
21778  ac_status=$?
21779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782  (eval $ac_try) 2>&5
21783  ac_status=$?
21784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785  (exit $ac_status); }; }; then
21786  ac_cv_sizeof_long_long=`cat conftest.val`
21787else
21788  echo "$as_me: program exited with status $ac_status" >&5
21789echo "$as_me: failed program was:" >&5
21790sed 's/^/| /' conftest.$ac_ext >&5
21791
21792( exit $ac_status )
21793{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21794See \`config.log' for more details." >&5
21795echo "$as_me: error: cannot compute sizeof (long long), 77
21796See \`config.log' for more details." >&2;}
21797   { (exit 1); exit 1; }; }
21798fi
21799rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21800fi
21801fi
21802rm -f conftest.val
21803else
21804  ac_cv_sizeof_long_long=0
21805fi
21806fi
21807echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21808echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21809cat >>confdefs.h <<_ACEOF
21810#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21811_ACEOF
21812
21813
21814echo "$as_me:$LINENO: checking for void *" >&5
21815echo $ECHO_N "checking for void *... $ECHO_C" >&6
21816if test "${ac_cv_type_void_p+set}" = set; then
21817  echo $ECHO_N "(cached) $ECHO_C" >&6
21818else
21819  cat >conftest.$ac_ext <<_ACEOF
21820/* confdefs.h.  */
21821_ACEOF
21822cat confdefs.h >>conftest.$ac_ext
21823cat >>conftest.$ac_ext <<_ACEOF
21824/* end confdefs.h.  */
21825$ac_includes_default
21826int
21827main ()
21828{
21829if ((void * *) 0)
21830  return 0;
21831if (sizeof (void *))
21832  return 0;
21833  ;
21834  return 0;
21835}
21836_ACEOF
21837rm -f conftest.$ac_objext
21838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21839  (eval $ac_compile) 2>conftest.er1
21840  ac_status=$?
21841  grep -v '^ *+' conftest.er1 >conftest.err
21842  rm -f conftest.er1
21843  cat conftest.err >&5
21844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845  (exit $ac_status); } &&
21846	 { ac_try='test -z "$ac_c_werror_flag"
21847			 || test ! -s conftest.err'
21848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849  (eval $ac_try) 2>&5
21850  ac_status=$?
21851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852  (exit $ac_status); }; } &&
21853	 { ac_try='test -s conftest.$ac_objext'
21854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855  (eval $ac_try) 2>&5
21856  ac_status=$?
21857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858  (exit $ac_status); }; }; then
21859  ac_cv_type_void_p=yes
21860else
21861  echo "$as_me: failed program was:" >&5
21862sed 's/^/| /' conftest.$ac_ext >&5
21863
21864ac_cv_type_void_p=no
21865fi
21866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21867fi
21868echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21869echo "${ECHO_T}$ac_cv_type_void_p" >&6
21870
21871echo "$as_me:$LINENO: checking size of void *" >&5
21872echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21873if test "${ac_cv_sizeof_void_p+set}" = set; then
21874  echo $ECHO_N "(cached) $ECHO_C" >&6
21875else
21876  if test "$ac_cv_type_void_p" = yes; then
21877  # The cast to unsigned long works around a bug in the HP C Compiler
21878  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21879  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21880  # This bug is HP SR number 8606223364.
21881  if test "$cross_compiling" = yes; then
21882  # Depending upon the size, compute the lo and hi bounds.
21883cat >conftest.$ac_ext <<_ACEOF
21884/* confdefs.h.  */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h.  */
21889$ac_includes_default
21890int
21891main ()
21892{
21893static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
21894test_array [0] = 0
21895
21896  ;
21897  return 0;
21898}
21899_ACEOF
21900rm -f conftest.$ac_objext
21901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21902  (eval $ac_compile) 2>conftest.er1
21903  ac_status=$?
21904  grep -v '^ *+' conftest.er1 >conftest.err
21905  rm -f conftest.er1
21906  cat conftest.err >&5
21907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908  (exit $ac_status); } &&
21909	 { ac_try='test -z "$ac_c_werror_flag"
21910			 || test ! -s conftest.err'
21911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912  (eval $ac_try) 2>&5
21913  ac_status=$?
21914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915  (exit $ac_status); }; } &&
21916	 { ac_try='test -s conftest.$ac_objext'
21917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918  (eval $ac_try) 2>&5
21919  ac_status=$?
21920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921  (exit $ac_status); }; }; then
21922  ac_lo=0 ac_mid=0
21923  while :; do
21924    cat >conftest.$ac_ext <<_ACEOF
21925/* confdefs.h.  */
21926_ACEOF
21927cat confdefs.h >>conftest.$ac_ext
21928cat >>conftest.$ac_ext <<_ACEOF
21929/* end confdefs.h.  */
21930$ac_includes_default
21931int
21932main ()
21933{
21934static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
21935test_array [0] = 0
21936
21937  ;
21938  return 0;
21939}
21940_ACEOF
21941rm -f conftest.$ac_objext
21942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21943  (eval $ac_compile) 2>conftest.er1
21944  ac_status=$?
21945  grep -v '^ *+' conftest.er1 >conftest.err
21946  rm -f conftest.er1
21947  cat conftest.err >&5
21948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949  (exit $ac_status); } &&
21950	 { ac_try='test -z "$ac_c_werror_flag"
21951			 || test ! -s conftest.err'
21952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21953  (eval $ac_try) 2>&5
21954  ac_status=$?
21955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956  (exit $ac_status); }; } &&
21957	 { ac_try='test -s conftest.$ac_objext'
21958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959  (eval $ac_try) 2>&5
21960  ac_status=$?
21961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962  (exit $ac_status); }; }; then
21963  ac_hi=$ac_mid; break
21964else
21965  echo "$as_me: failed program was:" >&5
21966sed 's/^/| /' conftest.$ac_ext >&5
21967
21968ac_lo=`expr $ac_mid + 1`
21969		    if test $ac_lo -le $ac_mid; then
21970		      ac_lo= ac_hi=
21971		      break
21972		    fi
21973		    ac_mid=`expr 2 '*' $ac_mid + 1`
21974fi
21975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21976  done
21977else
21978  echo "$as_me: failed program was:" >&5
21979sed 's/^/| /' conftest.$ac_ext >&5
21980
21981cat >conftest.$ac_ext <<_ACEOF
21982/* confdefs.h.  */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h.  */
21987$ac_includes_default
21988int
21989main ()
21990{
21991static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
21992test_array [0] = 0
21993
21994  ;
21995  return 0;
21996}
21997_ACEOF
21998rm -f conftest.$ac_objext
21999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22000  (eval $ac_compile) 2>conftest.er1
22001  ac_status=$?
22002  grep -v '^ *+' conftest.er1 >conftest.err
22003  rm -f conftest.er1
22004  cat conftest.err >&5
22005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006  (exit $ac_status); } &&
22007	 { ac_try='test -z "$ac_c_werror_flag"
22008			 || test ! -s conftest.err'
22009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010  (eval $ac_try) 2>&5
22011  ac_status=$?
22012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013  (exit $ac_status); }; } &&
22014	 { ac_try='test -s conftest.$ac_objext'
22015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016  (eval $ac_try) 2>&5
22017  ac_status=$?
22018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019  (exit $ac_status); }; }; then
22020  ac_hi=-1 ac_mid=-1
22021  while :; do
22022    cat >conftest.$ac_ext <<_ACEOF
22023/* confdefs.h.  */
22024_ACEOF
22025cat confdefs.h >>conftest.$ac_ext
22026cat >>conftest.$ac_ext <<_ACEOF
22027/* end confdefs.h.  */
22028$ac_includes_default
22029int
22030main ()
22031{
22032static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
22033test_array [0] = 0
22034
22035  ;
22036  return 0;
22037}
22038_ACEOF
22039rm -f conftest.$ac_objext
22040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22041  (eval $ac_compile) 2>conftest.er1
22042  ac_status=$?
22043  grep -v '^ *+' conftest.er1 >conftest.err
22044  rm -f conftest.er1
22045  cat conftest.err >&5
22046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047  (exit $ac_status); } &&
22048	 { ac_try='test -z "$ac_c_werror_flag"
22049			 || test ! -s conftest.err'
22050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051  (eval $ac_try) 2>&5
22052  ac_status=$?
22053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054  (exit $ac_status); }; } &&
22055	 { ac_try='test -s conftest.$ac_objext'
22056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057  (eval $ac_try) 2>&5
22058  ac_status=$?
22059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060  (exit $ac_status); }; }; then
22061  ac_lo=$ac_mid; break
22062else
22063  echo "$as_me: failed program was:" >&5
22064sed 's/^/| /' conftest.$ac_ext >&5
22065
22066ac_hi=`expr '(' $ac_mid ')' - 1`
22067		       if test $ac_mid -le $ac_hi; then
22068			 ac_lo= ac_hi=
22069			 break
22070		       fi
22071		       ac_mid=`expr 2 '*' $ac_mid`
22072fi
22073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22074  done
22075else
22076  echo "$as_me: failed program was:" >&5
22077sed 's/^/| /' conftest.$ac_ext >&5
22078
22079ac_lo= ac_hi=
22080fi
22081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22082fi
22083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22084# Binary search between lo and hi bounds.
22085while test "x$ac_lo" != "x$ac_hi"; do
22086  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22087  cat >conftest.$ac_ext <<_ACEOF
22088/* confdefs.h.  */
22089_ACEOF
22090cat confdefs.h >>conftest.$ac_ext
22091cat >>conftest.$ac_ext <<_ACEOF
22092/* end confdefs.h.  */
22093$ac_includes_default
22094int
22095main ()
22096{
22097static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
22098test_array [0] = 0
22099
22100  ;
22101  return 0;
22102}
22103_ACEOF
22104rm -f conftest.$ac_objext
22105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22106  (eval $ac_compile) 2>conftest.er1
22107  ac_status=$?
22108  grep -v '^ *+' conftest.er1 >conftest.err
22109  rm -f conftest.er1
22110  cat conftest.err >&5
22111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112  (exit $ac_status); } &&
22113	 { ac_try='test -z "$ac_c_werror_flag"
22114			 || test ! -s conftest.err'
22115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116  (eval $ac_try) 2>&5
22117  ac_status=$?
22118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119  (exit $ac_status); }; } &&
22120	 { ac_try='test -s conftest.$ac_objext'
22121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122  (eval $ac_try) 2>&5
22123  ac_status=$?
22124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125  (exit $ac_status); }; }; then
22126  ac_hi=$ac_mid
22127else
22128  echo "$as_me: failed program was:" >&5
22129sed 's/^/| /' conftest.$ac_ext >&5
22130
22131ac_lo=`expr '(' $ac_mid ')' + 1`
22132fi
22133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22134done
22135case $ac_lo in
22136?*) ac_cv_sizeof_void_p=$ac_lo;;
22137'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
22138See \`config.log' for more details." >&5
22139echo "$as_me: error: cannot compute sizeof (void *), 77
22140See \`config.log' for more details." >&2;}
22141   { (exit 1); exit 1; }; } ;;
22142esac
22143else
22144  if test "$cross_compiling" = yes; then
22145  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22146See \`config.log' for more details." >&5
22147echo "$as_me: error: cannot run test program while cross compiling
22148See \`config.log' for more details." >&2;}
22149   { (exit 1); exit 1; }; }
22150else
22151  cat >conftest.$ac_ext <<_ACEOF
22152/* confdefs.h.  */
22153_ACEOF
22154cat confdefs.h >>conftest.$ac_ext
22155cat >>conftest.$ac_ext <<_ACEOF
22156/* end confdefs.h.  */
22157$ac_includes_default
22158long longval () { return (long) (sizeof (void *)); }
22159unsigned long ulongval () { return (long) (sizeof (void *)); }
22160#include <stdio.h>
22161#include <stdlib.h>
22162int
22163main ()
22164{
22165
22166  FILE *f = fopen ("conftest.val", "w");
22167  if (! f)
22168    exit (1);
22169  if (((long) (sizeof (void *))) < 0)
22170    {
22171      long i = longval ();
22172      if (i != ((long) (sizeof (void *))))
22173	exit (1);
22174      fprintf (f, "%ld\n", i);
22175    }
22176  else
22177    {
22178      unsigned long i = ulongval ();
22179      if (i != ((long) (sizeof (void *))))
22180	exit (1);
22181      fprintf (f, "%lu\n", i);
22182    }
22183  exit (ferror (f) || fclose (f) != 0);
22184
22185  ;
22186  return 0;
22187}
22188_ACEOF
22189rm -f conftest$ac_exeext
22190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22191  (eval $ac_link) 2>&5
22192  ac_status=$?
22193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196  (eval $ac_try) 2>&5
22197  ac_status=$?
22198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199  (exit $ac_status); }; }; then
22200  ac_cv_sizeof_void_p=`cat conftest.val`
22201else
22202  echo "$as_me: program exited with status $ac_status" >&5
22203echo "$as_me: failed program was:" >&5
22204sed 's/^/| /' conftest.$ac_ext >&5
22205
22206( exit $ac_status )
22207{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
22208See \`config.log' for more details." >&5
22209echo "$as_me: error: cannot compute sizeof (void *), 77
22210See \`config.log' for more details." >&2;}
22211   { (exit 1); exit 1; }; }
22212fi
22213rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22214fi
22215fi
22216rm -f conftest.val
22217else
22218  ac_cv_sizeof_void_p=0
22219fi
22220fi
22221echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22222echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
22223cat >>confdefs.h <<_ACEOF
22224#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22225_ACEOF
22226
22227
22228
22229
22230    echo "$as_me:$LINENO: checking for va_copy() function" >&5
22231echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6
22232    if test "${ac_cv_va_copy+set}" = set; then
22233  echo $ECHO_N "(cached) $ECHO_C" >&6
22234else
22235
22236    ac_cv_va_copy=""
22237
22238
22239
22240    if test ".$ac_cv_va_copy" = .; then
22241        if test "$cross_compiling" = yes; then
22242  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22243See \`config.log' for more details." >&5
22244echo "$as_me: error: cannot run test program while cross compiling
22245See \`config.log' for more details." >&2;}
22246   { (exit 1); exit 1; }; }
22247else
22248  cat >conftest.$ac_ext <<_ACEOF
22249/* confdefs.h.  */
22250_ACEOF
22251cat confdefs.h >>conftest.$ac_ext
22252cat >>conftest.$ac_ext <<_ACEOF
22253/* end confdefs.h.  */
22254
22255#include <stdlib.h>
22256#include <stdarg.h>
22257#include <string.h>
22258#define DO_VA_COPY(d, s) va_copy((d), (s))
22259void test(char *str, ...)
22260{
22261    va_list ap, ap2;
22262    int i;
22263    va_start(ap, str);
22264    DO_VA_COPY(ap2, ap);
22265    for (i = 1; i <= 9; i++) {
22266        int k = (int)va_arg(ap, int);
22267        if (k != i)
22268            abort();
22269    }
22270    DO_VA_COPY(ap, ap2);
22271    for (i = 1; i <= 9; i++) {
22272        int k = (int)va_arg(ap, int);
22273        if (k != i)
22274            abort();
22275    }
22276    va_end(ap);
22277}
22278int main(int argc, char *argv[])
22279{
22280    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
22281    exit(0);
22282}
22283
22284_ACEOF
22285rm -f conftest$ac_exeext
22286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22287  (eval $ac_link) 2>&5
22288  ac_status=$?
22289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292  (eval $ac_try) 2>&5
22293  ac_status=$?
22294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295  (exit $ac_status); }; }; then
22296  ac_cv_va_copy="C99"
22297else
22298  echo "$as_me: program exited with status $ac_status" >&5
22299echo "$as_me: failed program was:" >&5
22300sed 's/^/| /' conftest.$ac_ext >&5
22301
22302fi
22303rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22304fi
22305    fi
22306
22307
22308
22309
22310    if test ".$ac_cv_va_copy" = .; then
22311        if test "$cross_compiling" = yes; then
22312  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22313See \`config.log' for more details." >&5
22314echo "$as_me: error: cannot run test program while cross compiling
22315See \`config.log' for more details." >&2;}
22316   { (exit 1); exit 1; }; }
22317else
22318  cat >conftest.$ac_ext <<_ACEOF
22319/* confdefs.h.  */
22320_ACEOF
22321cat confdefs.h >>conftest.$ac_ext
22322cat >>conftest.$ac_ext <<_ACEOF
22323/* end confdefs.h.  */
22324
22325#include <stdlib.h>
22326#include <stdarg.h>
22327#include <string.h>
22328#define DO_VA_COPY(d, s) VA_COPY((d), (s))
22329void test(char *str, ...)
22330{
22331    va_list ap, ap2;
22332    int i;
22333    va_start(ap, str);
22334    DO_VA_COPY(ap2, ap);
22335    for (i = 1; i <= 9; i++) {
22336        int k = (int)va_arg(ap, int);
22337        if (k != i)
22338            abort();
22339    }
22340    DO_VA_COPY(ap, ap2);
22341    for (i = 1; i <= 9; i++) {
22342        int k = (int)va_arg(ap, int);
22343        if (k != i)
22344            abort();
22345    }
22346    va_end(ap);
22347}
22348int main(int argc, char *argv[])
22349{
22350    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
22351    exit(0);
22352}
22353
22354_ACEOF
22355rm -f conftest$ac_exeext
22356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22357  (eval $ac_link) 2>&5
22358  ac_status=$?
22359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362  (eval $ac_try) 2>&5
22363  ac_status=$?
22364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365  (exit $ac_status); }; }; then
22366  ac_cv_va_copy="GCM"
22367else
22368  echo "$as_me: program exited with status $ac_status" >&5
22369echo "$as_me: failed program was:" >&5
22370sed 's/^/| /' conftest.$ac_ext >&5
22371
22372fi
22373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22374fi
22375    fi
22376
22377
22378
22379
22380    if test ".$ac_cv_va_copy" = .; then
22381        if test "$cross_compiling" = yes; then
22382  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22383See \`config.log' for more details." >&5
22384echo "$as_me: error: cannot run test program while cross compiling
22385See \`config.log' for more details." >&2;}
22386   { (exit 1); exit 1; }; }
22387else
22388  cat >conftest.$ac_ext <<_ACEOF
22389/* confdefs.h.  */
22390_ACEOF
22391cat confdefs.h >>conftest.$ac_ext
22392cat >>conftest.$ac_ext <<_ACEOF
22393/* end confdefs.h.  */
22394
22395#include <stdlib.h>
22396#include <stdarg.h>
22397#include <string.h>
22398#define DO_VA_COPY(d, s) __va_copy((d), (s))
22399void test(char *str, ...)
22400{
22401    va_list ap, ap2;
22402    int i;
22403    va_start(ap, str);
22404    DO_VA_COPY(ap2, ap);
22405    for (i = 1; i <= 9; i++) {
22406        int k = (int)va_arg(ap, int);
22407        if (k != i)
22408            abort();
22409    }
22410    DO_VA_COPY(ap, ap2);
22411    for (i = 1; i <= 9; i++) {
22412        int k = (int)va_arg(ap, int);
22413        if (k != i)
22414            abort();
22415    }
22416    va_end(ap);
22417}
22418int main(int argc, char *argv[])
22419{
22420    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
22421    exit(0);
22422}
22423
22424_ACEOF
22425rm -f conftest$ac_exeext
22426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22427  (eval $ac_link) 2>&5
22428  ac_status=$?
22429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22432  (eval $ac_try) 2>&5
22433  ac_status=$?
22434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435  (exit $ac_status); }; }; then
22436  ac_cv_va_copy="GCH"
22437else
22438  echo "$as_me: program exited with status $ac_status" >&5
22439echo "$as_me: failed program was:" >&5
22440sed 's/^/| /' conftest.$ac_ext >&5
22441
22442fi
22443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22444fi
22445    fi
22446
22447
22448
22449
22450    if test ".$ac_cv_va_copy" = .; then
22451        if test "$cross_compiling" = yes; then
22452  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22453See \`config.log' for more details." >&5
22454echo "$as_me: error: cannot run test program while cross compiling
22455See \`config.log' for more details." >&2;}
22456   { (exit 1); exit 1; }; }
22457else
22458  cat >conftest.$ac_ext <<_ACEOF
22459/* confdefs.h.  */
22460_ACEOF
22461cat confdefs.h >>conftest.$ac_ext
22462cat >>conftest.$ac_ext <<_ACEOF
22463/* end confdefs.h.  */
22464
22465#include <stdlib.h>
22466#include <stdarg.h>
22467#include <string.h>
22468#define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
22469void test(char *str, ...)
22470{
22471    va_list ap, ap2;
22472    int i;
22473    va_start(ap, str);
22474    DO_VA_COPY(ap2, ap);
22475    for (i = 1; i <= 9; i++) {
22476        int k = (int)va_arg(ap, int);
22477        if (k != i)
22478            abort();
22479    }
22480    DO_VA_COPY(ap, ap2);
22481    for (i = 1; i <= 9; i++) {
22482        int k = (int)va_arg(ap, int);
22483        if (k != i)
22484            abort();
22485    }
22486    va_end(ap);
22487}
22488int main(int argc, char *argv[])
22489{
22490    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
22491    exit(0);
22492}
22493
22494_ACEOF
22495rm -f conftest$ac_exeext
22496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22497  (eval $ac_link) 2>&5
22498  ac_status=$?
22499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502  (eval $ac_try) 2>&5
22503  ac_status=$?
22504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505  (exit $ac_status); }; }; then
22506  ac_cv_va_copy="GCB"
22507else
22508  echo "$as_me: program exited with status $ac_status" >&5
22509echo "$as_me: failed program was:" >&5
22510sed 's/^/| /' conftest.$ac_ext >&5
22511
22512fi
22513rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22514fi
22515    fi
22516
22517
22518
22519
22520    if test ".$ac_cv_va_copy" = .; then
22521        if test "$cross_compiling" = yes; then
22522  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22523See \`config.log' for more details." >&5
22524echo "$as_me: error: cannot run test program while cross compiling
22525See \`config.log' for more details." >&2;}
22526   { (exit 1); exit 1; }; }
22527else
22528  cat >conftest.$ac_ext <<_ACEOF
22529/* confdefs.h.  */
22530_ACEOF
22531cat confdefs.h >>conftest.$ac_ext
22532cat >>conftest.$ac_ext <<_ACEOF
22533/* end confdefs.h.  */
22534
22535#include <stdlib.h>
22536#include <stdarg.h>
22537#include <string.h>
22538#define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
22539void test(char *str, ...)
22540{
22541    va_list ap, ap2;
22542    int i;
22543    va_start(ap, str);
22544    DO_VA_COPY(ap2, ap);
22545    for (i = 1; i <= 9; i++) {
22546        int k = (int)va_arg(ap, int);
22547        if (k != i)
22548            abort();
22549    }
22550    DO_VA_COPY(ap, ap2);
22551    for (i = 1; i <= 9; i++) {
22552        int k = (int)va_arg(ap, int);
22553        if (k != i)
22554            abort();
22555    }
22556    va_end(ap);
22557}
22558int main(int argc, char *argv[])
22559{
22560    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
22561    exit(0);
22562}
22563
22564_ACEOF
22565rm -f conftest$ac_exeext
22566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22567  (eval $ac_link) 2>&5
22568  ac_status=$?
22569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572  (eval $ac_try) 2>&5
22573  ac_status=$?
22574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575  (exit $ac_status); }; }; then
22576  ac_cv_va_copy="ASS"
22577else
22578  echo "$as_me: program exited with status $ac_status" >&5
22579echo "$as_me: failed program was:" >&5
22580sed 's/^/| /' conftest.$ac_ext >&5
22581
22582fi
22583rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22584fi
22585    fi
22586
22587
22588
22589
22590    if test ".$ac_cv_va_copy" = .; then
22591        if test "$cross_compiling" = yes; then
22592  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22593See \`config.log' for more details." >&5
22594echo "$as_me: error: cannot run test program while cross compiling
22595See \`config.log' for more details." >&2;}
22596   { (exit 1); exit 1; }; }
22597else
22598  cat >conftest.$ac_ext <<_ACEOF
22599/* confdefs.h.  */
22600_ACEOF
22601cat confdefs.h >>conftest.$ac_ext
22602cat >>conftest.$ac_ext <<_ACEOF
22603/* end confdefs.h.  */
22604
22605#include <stdlib.h>
22606#include <stdarg.h>
22607#include <string.h>
22608#define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
22609void test(char *str, ...)
22610{
22611    va_list ap, ap2;
22612    int i;
22613    va_start(ap, str);
22614    DO_VA_COPY(ap2, ap);
22615    for (i = 1; i <= 9; i++) {
22616        int k = (int)va_arg(ap, int);
22617        if (k != i)
22618            abort();
22619    }
22620    DO_VA_COPY(ap, ap2);
22621    for (i = 1; i <= 9; i++) {
22622        int k = (int)va_arg(ap, int);
22623        if (k != i)
22624            abort();
22625    }
22626    va_end(ap);
22627}
22628int main(int argc, char *argv[])
22629{
22630    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
22631    exit(0);
22632}
22633
22634_ACEOF
22635rm -f conftest$ac_exeext
22636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22637  (eval $ac_link) 2>&5
22638  ac_status=$?
22639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642  (eval $ac_try) 2>&5
22643  ac_status=$?
22644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645  (exit $ac_status); }; }; then
22646  ac_cv_va_copy="ASP"
22647else
22648  echo "$as_me: program exited with status $ac_status" >&5
22649echo "$as_me: failed program was:" >&5
22650sed 's/^/| /' conftest.$ac_ext >&5
22651
22652fi
22653rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22654fi
22655    fi
22656
22657
22658
22659
22660    if test ".$ac_cv_va_copy" = .; then
22661        if test "$cross_compiling" = yes; then
22662  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22663See \`config.log' for more details." >&5
22664echo "$as_me: error: cannot run test program while cross compiling
22665See \`config.log' for more details." >&2;}
22666   { (exit 1); exit 1; }; }
22667else
22668  cat >conftest.$ac_ext <<_ACEOF
22669/* confdefs.h.  */
22670_ACEOF
22671cat confdefs.h >>conftest.$ac_ext
22672cat >>conftest.$ac_ext <<_ACEOF
22673/* end confdefs.h.  */
22674
22675#include <stdlib.h>
22676#include <stdarg.h>
22677#include <string.h>
22678#define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
22679void test(char *str, ...)
22680{
22681    va_list ap, ap2;
22682    int i;
22683    va_start(ap, str);
22684    DO_VA_COPY(ap2, ap);
22685    for (i = 1; i <= 9; i++) {
22686        int k = (int)va_arg(ap, int);
22687        if (k != i)
22688            abort();
22689    }
22690    DO_VA_COPY(ap, ap2);
22691    for (i = 1; i <= 9; i++) {
22692        int k = (int)va_arg(ap, int);
22693        if (k != i)
22694            abort();
22695    }
22696    va_end(ap);
22697}
22698int main(int argc, char *argv[])
22699{
22700    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
22701    exit(0);
22702}
22703
22704_ACEOF
22705rm -f conftest$ac_exeext
22706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22707  (eval $ac_link) 2>&5
22708  ac_status=$?
22709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712  (eval $ac_try) 2>&5
22713  ac_status=$?
22714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715  (exit $ac_status); }; }; then
22716  ac_cv_va_copy="CPS"
22717else
22718  echo "$as_me: program exited with status $ac_status" >&5
22719echo "$as_me: failed program was:" >&5
22720sed 's/^/| /' conftest.$ac_ext >&5
22721
22722fi
22723rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22724fi
22725    fi
22726
22727
22728
22729
22730    if test ".$ac_cv_va_copy" = .; then
22731        if test "$cross_compiling" = yes; then
22732  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22733See \`config.log' for more details." >&5
22734echo "$as_me: error: cannot run test program while cross compiling
22735See \`config.log' for more details." >&2;}
22736   { (exit 1); exit 1; }; }
22737else
22738  cat >conftest.$ac_ext <<_ACEOF
22739/* confdefs.h.  */
22740_ACEOF
22741cat confdefs.h >>conftest.$ac_ext
22742cat >>conftest.$ac_ext <<_ACEOF
22743/* end confdefs.h.  */
22744
22745#include <stdlib.h>
22746#include <stdarg.h>
22747#include <string.h>
22748#define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
22749void test(char *str, ...)
22750{
22751    va_list ap, ap2;
22752    int i;
22753    va_start(ap, str);
22754    DO_VA_COPY(ap2, ap);
22755    for (i = 1; i <= 9; i++) {
22756        int k = (int)va_arg(ap, int);
22757        if (k != i)
22758            abort();
22759    }
22760    DO_VA_COPY(ap, ap2);
22761    for (i = 1; i <= 9; i++) {
22762        int k = (int)va_arg(ap, int);
22763        if (k != i)
22764            abort();
22765    }
22766    va_end(ap);
22767}
22768int main(int argc, char *argv[])
22769{
22770    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
22771    exit(0);
22772}
22773
22774_ACEOF
22775rm -f conftest$ac_exeext
22776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22777  (eval $ac_link) 2>&5
22778  ac_status=$?
22779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782  (eval $ac_try) 2>&5
22783  ac_status=$?
22784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785  (exit $ac_status); }; }; then
22786  ac_cv_va_copy="CPP"
22787else
22788  echo "$as_me: program exited with status $ac_status" >&5
22789echo "$as_me: failed program was:" >&5
22790sed 's/^/| /' conftest.$ac_ext >&5
22791
22792fi
22793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22794fi
22795    fi
22796
22797    if test ".$ac_cv_va_copy" = .; then
22798        { { echo "$as_me:$LINENO: error: no working implementation found" >&5
22799echo "$as_me: error: no working implementation found" >&2;}
22800   { (exit 1); exit 1; }; }
22801    fi
22802
22803fi
22804
22805    if test ".$ac_cv_va_copy" = ".C99"; then
22806
22807cat >>confdefs.h <<\_ACEOF
22808#define HAVE_VA_COPY 1
22809_ACEOF
22810
22811  fi
22812
22813cat >>confdefs.h <<_ACEOF
22814#define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
22815_ACEOF
22816
22817
22818
22819    if test ".$ac_cv_va_copy" = ".C99"; then
22820      echo "$as_me:$LINENO: result: yes" >&5
22821echo "${ECHO_T}yes" >&6
22822  else
22823      echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
22824echo "${ECHO_T}no (using fallback implementation)" >&6
22825  fi
22826
22827
22828
22829
22830
22831
22832for ac_func in memmove memset memcmp memchr
22833do
22834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22835echo "$as_me:$LINENO: checking for $ac_func" >&5
22836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22837if eval "test \"\${$as_ac_var+set}\" = set"; then
22838  echo $ECHO_N "(cached) $ECHO_C" >&6
22839else
22840  cat >conftest.$ac_ext <<_ACEOF
22841/* confdefs.h.  */
22842_ACEOF
22843cat confdefs.h >>conftest.$ac_ext
22844cat >>conftest.$ac_ext <<_ACEOF
22845/* end confdefs.h.  */
22846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22847   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22848#define $ac_func innocuous_$ac_func
22849
22850/* System header to define __stub macros and hopefully few prototypes,
22851    which can conflict with char $ac_func (); below.
22852    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22853    <limits.h> exists even on freestanding compilers.  */
22854
22855#ifdef __STDC__
22856# include <limits.h>
22857#else
22858# include <assert.h>
22859#endif
22860
22861#undef $ac_func
22862
22863/* Override any gcc2 internal prototype to avoid an error.  */
22864#ifdef __cplusplus
22865extern "C"
22866{
22867#endif
22868/* We use char because int might match the return type of a gcc2
22869   builtin and then its argument prototype would still apply.  */
22870char $ac_func ();
22871/* The GNU C library defines this for functions which it implements
22872    to always fail with ENOSYS.  Some functions are actually named
22873    something starting with __ and the normal name is an alias.  */
22874#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22875choke me
22876#else
22877char (*f) () = $ac_func;
22878#endif
22879#ifdef __cplusplus
22880}
22881#endif
22882
22883int
22884main ()
22885{
22886return f != $ac_func;
22887  ;
22888  return 0;
22889}
22890_ACEOF
22891rm -f conftest.$ac_objext conftest$ac_exeext
22892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22893  (eval $ac_link) 2>conftest.er1
22894  ac_status=$?
22895  grep -v '^ *+' conftest.er1 >conftest.err
22896  rm -f conftest.er1
22897  cat conftest.err >&5
22898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899  (exit $ac_status); } &&
22900	 { ac_try='test -z "$ac_c_werror_flag"
22901			 || test ! -s conftest.err'
22902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903  (eval $ac_try) 2>&5
22904  ac_status=$?
22905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906  (exit $ac_status); }; } &&
22907	 { ac_try='test -s conftest$ac_exeext'
22908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909  (eval $ac_try) 2>&5
22910  ac_status=$?
22911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912  (exit $ac_status); }; }; then
22913  eval "$as_ac_var=yes"
22914else
22915  echo "$as_me: failed program was:" >&5
22916sed 's/^/| /' conftest.$ac_ext >&5
22917
22918eval "$as_ac_var=no"
22919fi
22920rm -f conftest.err conftest.$ac_objext \
22921      conftest$ac_exeext conftest.$ac_ext
22922fi
22923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22924echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22925if test `eval echo '${'$as_ac_var'}'` = yes; then
22926  cat >>confdefs.h <<_ACEOF
22927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22928_ACEOF
22929
22930fi
22931done
22932
22933
22934
22935for ac_func in isnan isinf
22936do
22937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22938echo "$as_me:$LINENO: checking for $ac_func" >&5
22939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22940if eval "test \"\${$as_ac_var+set}\" = set"; then
22941  echo $ECHO_N "(cached) $ECHO_C" >&6
22942else
22943  cat >conftest.$ac_ext <<_ACEOF
22944/* confdefs.h.  */
22945_ACEOF
22946cat confdefs.h >>conftest.$ac_ext
22947cat >>conftest.$ac_ext <<_ACEOF
22948/* end confdefs.h.  */
22949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22950   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22951#define $ac_func innocuous_$ac_func
22952
22953/* System header to define __stub macros and hopefully few prototypes,
22954    which can conflict with char $ac_func (); below.
22955    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22956    <limits.h> exists even on freestanding compilers.  */
22957
22958#ifdef __STDC__
22959# include <limits.h>
22960#else
22961# include <assert.h>
22962#endif
22963
22964#undef $ac_func
22965
22966/* Override any gcc2 internal prototype to avoid an error.  */
22967#ifdef __cplusplus
22968extern "C"
22969{
22970#endif
22971/* We use char because int might match the return type of a gcc2
22972   builtin and then its argument prototype would still apply.  */
22973char $ac_func ();
22974/* The GNU C library defines this for functions which it implements
22975    to always fail with ENOSYS.  Some functions are actually named
22976    something starting with __ and the normal name is an alias.  */
22977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22978choke me
22979#else
22980char (*f) () = $ac_func;
22981#endif
22982#ifdef __cplusplus
22983}
22984#endif
22985
22986int
22987main ()
22988{
22989return f != $ac_func;
22990  ;
22991  return 0;
22992}
22993_ACEOF
22994rm -f conftest.$ac_objext conftest$ac_exeext
22995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22996  (eval $ac_link) 2>conftest.er1
22997  ac_status=$?
22998  grep -v '^ *+' conftest.er1 >conftest.err
22999  rm -f conftest.er1
23000  cat conftest.err >&5
23001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002  (exit $ac_status); } &&
23003	 { ac_try='test -z "$ac_c_werror_flag"
23004			 || test ! -s conftest.err'
23005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006  (eval $ac_try) 2>&5
23007  ac_status=$?
23008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009  (exit $ac_status); }; } &&
23010	 { ac_try='test -s conftest$ac_exeext'
23011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012  (eval $ac_try) 2>&5
23013  ac_status=$?
23014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015  (exit $ac_status); }; }; then
23016  eval "$as_ac_var=yes"
23017else
23018  echo "$as_me: failed program was:" >&5
23019sed 's/^/| /' conftest.$ac_ext >&5
23020
23021eval "$as_ac_var=no"
23022fi
23023rm -f conftest.err conftest.$ac_objext \
23024      conftest$ac_exeext conftest.$ac_ext
23025fi
23026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23028if test `eval echo '${'$as_ac_var'}'` = yes; then
23029  cat >>confdefs.h <<_ACEOF
23030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23031_ACEOF
23032
23033fi
23034done
23035
23036
23037
23038# Check whether --with-dmalloc or --without-dmalloc was given.
23039if test "${with_dmalloc+set}" = set; then
23040  withval="$with_dmalloc"
23041      if test ".$with_dmalloc" = .yes; then
23042        #   via config script in PATH
23043        dmalloc_version=`(dmalloc-config --version) 2>/dev/null`
23044        if test ".$dmalloc_version" != .; then
23045            CPPFLAGS="$CPPFLAGS `dmalloc-config --cflags`"
23046            CFLAGS="$CFLAGS `dmalloc-config --cflags`"
23047            LDFLAGS="$LDFLAGS `dmalloc-config --ldflags`"
23048        fi
23049    else
23050        if test -d "$with_dmalloc"; then
23051            found=0
23052            #   via config script
23053            for dir in $with_dmalloc/bin $with_dmalloc; do
23054                if test -f "$dir/dmalloc-config" && test ! -f "$dir/dmalloc-config.in"; then
23055                    dmalloc_version=`($dir/dmalloc-config --version) 2>/dev/null`
23056                    if test ".$dmalloc_version" != .; then
23057                        CPPFLAGS="$CPPFLAGS `$dir/dmalloc-config --cflags`"
23058                        CFLAGS="$CFLAGS `$dir/dmalloc-config --cflags`"
23059                        LDFLAGS="$LDFLAGS `$dir/dmalloc-config --ldflags`"
23060                        found=1
23061                        break
23062                    fi
23063                fi
23064            done
23065            #   in standard sub-areas
23066            if test ".$found" = .0; then
23067                for dir in $with_dmalloc/include/dmalloc $with_dmalloc/include $with_dmalloc; do
23068                    if test -f "$dir/dmalloc.h"; then
23069                        CPPFLAGS="$CPPFLAGS -I$dir"
23070                        CFLAGS="$CFLAGS -I$dir"
23071                        found=1
23072                        break
23073                    fi
23074                done
23075                for dir in $with_dmalloc/lib/dmalloc $with_dmalloc/lib $with_dmalloc; do
23076                    if test -f "$dir/libdmalloc.la" && test -d "$dir/.libs"; then
23077                        LDFLAGS="$LDFLAGS -L$dir -L$dir/.libs"
23078                        found=1
23079                        break
23080                    elif test -f "$dir/libdmalloc.a" || test -f "$dir/libdmalloc.so"; then
23081                        LDFLAGS="$LDFLAGS -L$dir"
23082                        found=1
23083                        break
23084                    fi
23085                done
23086            fi
23087            #   in any sub-area
23088            if test ".$found" = .0; then
23089                for file in x `find $with_dmalloc -name "dmalloc.h" -type f -print`; do
23090                    test .$file = .x && continue
23091                    dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'`
23092                    CPPFLAGS="$CPPFLAGS -I$dir"
23093                    CFLAGS="$CFLAGS -I$dir"
23094                done
23095                for file in x `find $with_dmalloc -name "libdmalloc.[aso]" -type f -print`; do
23096                    test .$file = .x && continue
23097                    dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'`
23098                    LDFLAGS="$LDFLAGS -L$dir"
23099                done
23100            fi
23101        fi
23102    fi
23103
23104for ac_header in dmalloc.h
23105do
23106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23107if eval "test \"\${$as_ac_Header+set}\" = set"; then
23108  echo "$as_me:$LINENO: checking for $ac_header" >&5
23109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23110if eval "test \"\${$as_ac_Header+set}\" = set"; then
23111  echo $ECHO_N "(cached) $ECHO_C" >&6
23112fi
23113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23115else
23116  # Is the header compilable?
23117echo "$as_me:$LINENO: checking $ac_header usability" >&5
23118echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23119cat >conftest.$ac_ext <<_ACEOF
23120/* confdefs.h.  */
23121_ACEOF
23122cat confdefs.h >>conftest.$ac_ext
23123cat >>conftest.$ac_ext <<_ACEOF
23124/* end confdefs.h.  */
23125$ac_includes_default
23126#include <$ac_header>
23127_ACEOF
23128rm -f conftest.$ac_objext
23129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23130  (eval $ac_compile) 2>conftest.er1
23131  ac_status=$?
23132  grep -v '^ *+' conftest.er1 >conftest.err
23133  rm -f conftest.er1
23134  cat conftest.err >&5
23135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136  (exit $ac_status); } &&
23137	 { ac_try='test -z "$ac_c_werror_flag"
23138			 || test ! -s conftest.err'
23139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140  (eval $ac_try) 2>&5
23141  ac_status=$?
23142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143  (exit $ac_status); }; } &&
23144	 { ac_try='test -s conftest.$ac_objext'
23145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23146  (eval $ac_try) 2>&5
23147  ac_status=$?
23148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149  (exit $ac_status); }; }; then
23150  ac_header_compiler=yes
23151else
23152  echo "$as_me: failed program was:" >&5
23153sed 's/^/| /' conftest.$ac_ext >&5
23154
23155ac_header_compiler=no
23156fi
23157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23158echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23159echo "${ECHO_T}$ac_header_compiler" >&6
23160
23161# Is the header present?
23162echo "$as_me:$LINENO: checking $ac_header presence" >&5
23163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23164cat >conftest.$ac_ext <<_ACEOF
23165/* confdefs.h.  */
23166_ACEOF
23167cat confdefs.h >>conftest.$ac_ext
23168cat >>conftest.$ac_ext <<_ACEOF
23169/* end confdefs.h.  */
23170#include <$ac_header>
23171_ACEOF
23172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23173  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
23180  if test -s conftest.err; then
23181    ac_cpp_err=$ac_c_preproc_warn_flag
23182    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23183  else
23184    ac_cpp_err=
23185  fi
23186else
23187  ac_cpp_err=yes
23188fi
23189if test -z "$ac_cpp_err"; then
23190  ac_header_preproc=yes
23191else
23192  echo "$as_me: failed program was:" >&5
23193sed 's/^/| /' conftest.$ac_ext >&5
23194
23195  ac_header_preproc=no
23196fi
23197rm -f conftest.err conftest.$ac_ext
23198echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23199echo "${ECHO_T}$ac_header_preproc" >&6
23200
23201# So?  What about this header?
23202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23203  yes:no: )
23204    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23206    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23208    ac_header_preproc=yes
23209    ;;
23210  no:yes:* )
23211    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23213    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23214echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23215    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23217    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23218echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23219    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23221    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23223    (
23224      cat <<\_ASBOX
23225## ------------------------------------------ ##
23226## Report this to the AC_PACKAGE_NAME lists.  ##
23227## ------------------------------------------ ##
23228_ASBOX
23229    ) |
23230      sed "s/^/$as_me: WARNING:     /" >&2
23231    ;;
23232esac
23233echo "$as_me:$LINENO: checking for $ac_header" >&5
23234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23235if eval "test \"\${$as_ac_Header+set}\" = set"; then
23236  echo $ECHO_N "(cached) $ECHO_C" >&6
23237else
23238  eval "$as_ac_Header=\$ac_header_preproc"
23239fi
23240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23242
23243fi
23244if test `eval echo '${'$as_ac_Header'}'` = yes; then
23245  cat >>confdefs.h <<_ACEOF
23246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23247_ACEOF
23248
23249fi
23250
23251done
23252
23253
23254echo "$as_me:$LINENO: checking for dmalloc_debug in -ldmalloc" >&5
23255echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
23256if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
23257  echo $ECHO_N "(cached) $ECHO_C" >&6
23258else
23259  ac_check_lib_save_LIBS=$LIBS
23260LIBS="-ldmalloc  $LIBS"
23261cat >conftest.$ac_ext <<_ACEOF
23262/* confdefs.h.  */
23263_ACEOF
23264cat confdefs.h >>conftest.$ac_ext
23265cat >>conftest.$ac_ext <<_ACEOF
23266/* end confdefs.h.  */
23267
23268/* Override any gcc2 internal prototype to avoid an error.  */
23269#ifdef __cplusplus
23270extern "C"
23271#endif
23272/* We use char because int might match the return type of a gcc2
23273   builtin and then its argument prototype would still apply.  */
23274char dmalloc_debug ();
23275int
23276main ()
23277{
23278dmalloc_debug ();
23279  ;
23280  return 0;
23281}
23282_ACEOF
23283rm -f conftest.$ac_objext conftest$ac_exeext
23284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23285  (eval $ac_link) 2>conftest.er1
23286  ac_status=$?
23287  grep -v '^ *+' conftest.er1 >conftest.err
23288  rm -f conftest.er1
23289  cat conftest.err >&5
23290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291  (exit $ac_status); } &&
23292	 { ac_try='test -z "$ac_c_werror_flag"
23293			 || test ! -s conftest.err'
23294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295  (eval $ac_try) 2>&5
23296  ac_status=$?
23297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298  (exit $ac_status); }; } &&
23299	 { ac_try='test -s conftest$ac_exeext'
23300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301  (eval $ac_try) 2>&5
23302  ac_status=$?
23303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304  (exit $ac_status); }; }; then
23305  ac_cv_lib_dmalloc_dmalloc_debug=yes
23306else
23307  echo "$as_me: failed program was:" >&5
23308sed 's/^/| /' conftest.$ac_ext >&5
23309
23310ac_cv_lib_dmalloc_dmalloc_debug=no
23311fi
23312rm -f conftest.err conftest.$ac_objext \
23313      conftest$ac_exeext conftest.$ac_ext
23314LIBS=$ac_check_lib_save_LIBS
23315fi
23316echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
23317echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
23318if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
23319  cat >>confdefs.h <<_ACEOF
23320#define HAVE_LIBDMALLOC 1
23321_ACEOF
23322
23323  LIBS="-ldmalloc $LIBS"
23324
23325fi
23326
23327    with_dmalloc=yes
23328    ac_var="ac_cv_header_`echo dmalloc.h | sed 'y%./+-%__p_%'`"
23329    eval "ac_val=\$$ac_var"
23330    if test ".$ac_val" != .yes; then
23331        with_dmalloc=no
23332    fi
23333    if test ".$ac_cv_lib_dmalloc_dmalloc_debug" != .yes; then
23334        with_dmalloc=no
23335    fi
23336    if test ".$with_dmalloc" = .no; then
23337        { { echo "$as_me:$LINENO: error: Unable to find Dmalloc library" >&5
23338echo "$as_me: error: Unable to find Dmalloc library" >&2;}
23339   { (exit 1); exit 1; }; }
23340    fi
23341
23342else
23343  if test ".$with_dmalloc" = .; then
23344    with_dmalloc=no
23345fi
23346
23347fi; echo "$as_me:$LINENO: checking whether to build against external Dmalloc library" >&5
23348echo $ECHO_N "checking whether to build against external Dmalloc library... $ECHO_C" >&6
23349if test ".$with_dmalloc" = .yes; then
23350
23351cat >>confdefs.h <<\_ACEOF
23352#define WITH_DMALLOC 1
23353_ACEOF
23354
23355else
23356    :
23357fi
23358echo "$as_me:$LINENO: result: $with_dmalloc" >&5
23359echo "${ECHO_T}$with_dmalloc" >&6
23360
23361
23362          ac_config_headers="$ac_config_headers config.h"
23363
23364                              ac_config_files="$ac_config_files Makefile str.h str-config"
23365
23366          ac_config_commands="$ac_config_commands adjustment"
23367
23368cat >confcache <<\_ACEOF
23369# This file is a shell script that caches the results of configure
23370# tests run on this system so they can be shared between configure
23371# scripts and configure runs, see configure's option --config-cache.
23372# It is not useful on other systems.  If it contains results you don't
23373# want to keep, you may remove or edit it.
23374#
23375# config.status only pays attention to the cache file if you give it
23376# the --recheck option to rerun configure.
23377#
23378# `ac_cv_env_foo' variables (set or unset) will be overridden when
23379# loading this file, other *unset* `ac_cv_foo' will be assigned the
23380# following values.
23381
23382_ACEOF
23383
23384# The following way of writing the cache mishandles newlines in values,
23385# but we know of no workaround that is simple, portable, and efficient.
23386# So, don't put newlines in cache variables' values.
23387# Ultrix sh set writes to stderr and can't be redirected directly,
23388# and sets the high bit in the cache file unless we assign to the vars.
23389{
23390  (set) 2>&1 |
23391    case `(ac_space=' '; set | grep ac_space) 2>&1` in
23392    *ac_space=\ *)
23393      # `set' does not quote correctly, so add quotes (double-quote
23394      # substitution turns \\\\ into \\, and sed turns \\ into \).
23395      sed -n \
23396	"s/'/'\\\\''/g;
23397	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23398      ;;
23399    *)
23400      # `set' quotes correctly as required by POSIX, so do not add quotes.
23401      sed -n \
23402	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23403      ;;
23404    esac;
23405} |
23406  sed '
23407     t clear
23408     : clear
23409     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23410     t end
23411     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23412     : end' >>confcache
23413if diff $cache_file confcache >/dev/null 2>&1; then :; else
23414  if test -w $cache_file; then
23415    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23416    cat confcache >$cache_file
23417  else
23418    echo "not updating unwritable cache $cache_file"
23419  fi
23420fi
23421rm -f confcache
23422
23423test "x$prefix" = xNONE && prefix=$ac_default_prefix
23424# Let make expand exec_prefix.
23425test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23426
23427# VPATH may cause trouble with some makes, so we remove $(srcdir),
23428# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23429# trailing colons and then remove the whole line if VPATH becomes empty
23430# (actually we leave an empty line to preserve line numbers).
23431if test "x$srcdir" = x.; then
23432  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23433s/:*\$(srcdir):*/:/;
23434s/:*\${srcdir}:*/:/;
23435s/:*@srcdir@:*/:/;
23436s/^\([^=]*=[	 ]*\):*/\1/;
23437s/:*$//;
23438s/^[^=]*=[	 ]*$//;
23439}'
23440fi
23441
23442DEFS=-DHAVE_CONFIG_H
23443
23444ac_libobjs=
23445ac_ltlibobjs=
23446for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23447  # 1. Remove the extension, and $U if already installed.
23448  ac_i=`echo "$ac_i" |
23449	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23450  # 2. Add them.
23451  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23452  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23453done
23454LIBOBJS=$ac_libobjs
23455
23456LTLIBOBJS=$ac_ltlibobjs
23457
23458
23459
23460: ${CONFIG_STATUS=./config.status}
23461ac_clean_files_save=$ac_clean_files
23462ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23463{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23464echo "$as_me: creating $CONFIG_STATUS" >&6;}
23465cat >$CONFIG_STATUS <<_ACEOF
23466#! $SHELL
23467# Generated by $as_me.
23468# Run this file to recreate the current configuration.
23469# Compiler output produced by configure, useful for debugging
23470# configure, is in config.log if it exists.
23471
23472debug=false
23473ac_cs_recheck=false
23474ac_cs_silent=false
23475SHELL=\${CONFIG_SHELL-$SHELL}
23476_ACEOF
23477
23478cat >>$CONFIG_STATUS <<\_ACEOF
23479## --------------------- ##
23480## M4sh Initialization.  ##
23481## --------------------- ##
23482
23483# Be Bourne compatible
23484if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23485  emulate sh
23486  NULLCMD=:
23487  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23488  # is contrary to our usage.  Disable this feature.
23489  alias -g '${1+"$@"}'='"$@"'
23490elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23491  set -o posix
23492fi
23493DUALCASE=1; export DUALCASE # for MKS sh
23494
23495# Support unset when possible.
23496if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23497  as_unset=unset
23498else
23499  as_unset=false
23500fi
23501
23502
23503# Work around bugs in pre-3.0 UWIN ksh.
23504$as_unset ENV MAIL MAILPATH
23505PS1='$ '
23506PS2='> '
23507PS4='+ '
23508
23509# NLS nuisances.
23510for as_var in \
23511  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23512  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23513  LC_TELEPHONE LC_TIME
23514do
23515  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23516    eval $as_var=C; export $as_var
23517  else
23518    $as_unset $as_var
23519  fi
23520done
23521
23522# Required to use basename.
23523if expr a : '\(a\)' >/dev/null 2>&1; then
23524  as_expr=expr
23525else
23526  as_expr=false
23527fi
23528
23529if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23530  as_basename=basename
23531else
23532  as_basename=false
23533fi
23534
23535
23536# Name of the executable.
23537as_me=`$as_basename "$0" ||
23538$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23539	 X"$0" : 'X\(//\)$' \| \
23540	 X"$0" : 'X\(/\)$' \| \
23541	 .     : '\(.\)' 2>/dev/null ||
23542echo X/"$0" |
23543    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23544  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23545  	  /^X\/\(\/\).*/{ s//\1/; q; }
23546  	  s/.*/./; q'`
23547
23548
23549# PATH needs CR, and LINENO needs CR and PATH.
23550# Avoid depending upon Character Ranges.
23551as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23552as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23553as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23554as_cr_digits='0123456789'
23555as_cr_alnum=$as_cr_Letters$as_cr_digits
23556
23557# The user is always right.
23558if test "${PATH_SEPARATOR+set}" != set; then
23559  echo "#! /bin/sh" >conf$$.sh
23560  echo  "exit 0"   >>conf$$.sh
23561  chmod +x conf$$.sh
23562  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23563    PATH_SEPARATOR=';'
23564  else
23565    PATH_SEPARATOR=:
23566  fi
23567  rm -f conf$$.sh
23568fi
23569
23570
23571  as_lineno_1=$LINENO
23572  as_lineno_2=$LINENO
23573  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23574  test "x$as_lineno_1" != "x$as_lineno_2" &&
23575  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23576  # Find who we are.  Look in the path if we contain no path at all
23577  # relative or not.
23578  case $0 in
23579    *[\\/]* ) as_myself=$0 ;;
23580    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23581for as_dir in $PATH
23582do
23583  IFS=$as_save_IFS
23584  test -z "$as_dir" && as_dir=.
23585  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23586done
23587
23588       ;;
23589  esac
23590  # We did not find ourselves, most probably we were run as `sh COMMAND'
23591  # in which case we are not to be found in the path.
23592  if test "x$as_myself" = x; then
23593    as_myself=$0
23594  fi
23595  if test ! -f "$as_myself"; then
23596    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23597echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23598   { (exit 1); exit 1; }; }
23599  fi
23600  case $CONFIG_SHELL in
23601  '')
23602    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23603for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23604do
23605  IFS=$as_save_IFS
23606  test -z "$as_dir" && as_dir=.
23607  for as_base in sh bash ksh sh5; do
23608	 case $as_dir in
23609	 /*)
23610	   if ("$as_dir/$as_base" -c '
23611  as_lineno_1=$LINENO
23612  as_lineno_2=$LINENO
23613  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23614  test "x$as_lineno_1" != "x$as_lineno_2" &&
23615  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23616	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23617	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23618	     CONFIG_SHELL=$as_dir/$as_base
23619	     export CONFIG_SHELL
23620	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23621	   fi;;
23622	 esac
23623       done
23624done
23625;;
23626  esac
23627
23628  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23629  # uniformly replaced by the line number.  The first 'sed' inserts a
23630  # line-number line before each line; the second 'sed' does the real
23631  # work.  The second script uses 'N' to pair each line-number line
23632  # with the numbered line, and appends trailing '-' during
23633  # substitution so that $LINENO is not a special case at line end.
23634  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23635  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23636  sed '=' <$as_myself |
23637    sed '
23638      N
23639      s,$,-,
23640      : loop
23641      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23642      t loop
23643      s,-$,,
23644      s,^['$as_cr_digits']*\n,,
23645    ' >$as_me.lineno &&
23646  chmod +x $as_me.lineno ||
23647    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23648echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23649   { (exit 1); exit 1; }; }
23650
23651  # Don't try to exec as it changes $[0], causing all sort of problems
23652  # (the dirname of $[0] is not the place where we might find the
23653  # original and so on.  Autoconf is especially sensible to this).
23654  . ./$as_me.lineno
23655  # Exit status is that of the last command.
23656  exit
23657}
23658
23659
23660case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23661  *c*,-n*) ECHO_N= ECHO_C='
23662' ECHO_T='	' ;;
23663  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23664  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23665esac
23666
23667if expr a : '\(a\)' >/dev/null 2>&1; then
23668  as_expr=expr
23669else
23670  as_expr=false
23671fi
23672
23673rm -f conf$$ conf$$.exe conf$$.file
23674echo >conf$$.file
23675if ln -s conf$$.file conf$$ 2>/dev/null; then
23676  # We could just check for DJGPP; but this test a) works b) is more generic
23677  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23678  if test -f conf$$.exe; then
23679    # Don't use ln at all; we don't have any links
23680    as_ln_s='cp -p'
23681  else
23682    as_ln_s='ln -s'
23683  fi
23684elif ln conf$$.file conf$$ 2>/dev/null; then
23685  as_ln_s=ln
23686else
23687  as_ln_s='cp -p'
23688fi
23689rm -f conf$$ conf$$.exe conf$$.file
23690
23691if mkdir -p . 2>/dev/null; then
23692  as_mkdir_p=:
23693else
23694  test -d ./-p && rmdir ./-p
23695  as_mkdir_p=false
23696fi
23697
23698as_executable_p="test -f"
23699
23700# Sed expression to map a string onto a valid CPP name.
23701as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23702
23703# Sed expression to map a string onto a valid variable name.
23704as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23705
23706
23707# IFS
23708# We need space, tab and new line, in precisely that order.
23709as_nl='
23710'
23711IFS=" 	$as_nl"
23712
23713# CDPATH.
23714$as_unset CDPATH
23715
23716exec 6>&1
23717
23718# Open the log real soon, to keep \$[0] and so on meaningful, and to
23719# report actual input values of CONFIG_FILES etc. instead of their
23720# values after options handling.  Logging --version etc. is OK.
23721exec 5>>config.log
23722{
23723  echo
23724  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23725## Running $as_me. ##
23726_ASBOX
23727} >&5
23728cat >&5 <<_CSEOF
23729
23730This file was extended by $as_me, which was
23731generated by GNU Autoconf 2.59 (OpenPKG-CURRENT).  Invocation command line was
23732
23733  CONFIG_FILES    = $CONFIG_FILES
23734  CONFIG_HEADERS  = $CONFIG_HEADERS
23735  CONFIG_LINKS    = $CONFIG_LINKS
23736  CONFIG_COMMANDS = $CONFIG_COMMANDS
23737  $ $0 $@
23738
23739_CSEOF
23740echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23741echo >&5
23742_ACEOF
23743
23744# Files that config.status was made for.
23745if test -n "$ac_config_files"; then
23746  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23747fi
23748
23749if test -n "$ac_config_headers"; then
23750  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23751fi
23752
23753if test -n "$ac_config_links"; then
23754  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23755fi
23756
23757if test -n "$ac_config_commands"; then
23758  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23759fi
23760
23761cat >>$CONFIG_STATUS <<\_ACEOF
23762
23763ac_cs_usage="\
23764\`$as_me' instantiates files from templates according to the
23765current configuration.
23766
23767Usage: $0 [OPTIONS] [FILE]...
23768
23769  -h, --help       print this help, then exit
23770  -V, --version    print version number, then exit
23771  -q, --quiet      do not print progress messages
23772  -d, --debug      don't remove temporary files
23773      --recheck    update $as_me by reconfiguring in the same conditions
23774  --file=FILE[:TEMPLATE]
23775		   instantiate the configuration file FILE
23776  --header=FILE[:TEMPLATE]
23777		   instantiate the configuration header FILE
23778
23779Configuration files:
23780$config_files
23781
23782Configuration headers:
23783$config_headers
23784
23785Configuration commands:
23786$config_commands
23787
23788Report bugs to <bug-autoconf@gnu.org>."
23789_ACEOF
23790
23791cat >>$CONFIG_STATUS <<_ACEOF
23792ac_cs_version="\\
23793config.status
23794configured by $0, generated by GNU Autoconf 2.59 (OpenPKG-CURRENT),
23795  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23796
23797Copyright (C) 2003 Free Software Foundation, Inc.
23798This config.status script is free software; the Free Software Foundation
23799gives unlimited permission to copy, distribute and modify it."
23800srcdir=$srcdir
23801_ACEOF
23802
23803cat >>$CONFIG_STATUS <<\_ACEOF
23804# If no file are specified by the user, then we need to provide default
23805# value.  By we need to know if files were specified by the user.
23806ac_need_defaults=:
23807while test $# != 0
23808do
23809  case $1 in
23810  --*=*)
23811    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23812    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23813    ac_shift=:
23814    ;;
23815  -*)
23816    ac_option=$1
23817    ac_optarg=$2
23818    ac_shift=shift
23819    ;;
23820  *) # This is not an option, so the user has probably given explicit
23821     # arguments.
23822     ac_option=$1
23823     ac_need_defaults=false;;
23824  esac
23825
23826  case $ac_option in
23827  # Handling of the options.
23828_ACEOF
23829cat >>$CONFIG_STATUS <<\_ACEOF
23830  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23831    ac_cs_recheck=: ;;
23832  --version | --vers* | -V )
23833    echo "$ac_cs_version"; exit 0 ;;
23834  --he | --h)
23835    # Conflict between --help and --header
23836    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23837Try \`$0 --help' for more information." >&5
23838echo "$as_me: error: ambiguous option: $1
23839Try \`$0 --help' for more information." >&2;}
23840   { (exit 1); exit 1; }; };;
23841  --help | --hel | -h )
23842    echo "$ac_cs_usage"; exit 0 ;;
23843  --debug | --d* | -d )
23844    debug=: ;;
23845  --file | --fil | --fi | --f )
23846    $ac_shift
23847    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23848    ac_need_defaults=false;;
23849  --header | --heade | --head | --hea )
23850    $ac_shift
23851    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23852    ac_need_defaults=false;;
23853  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23854  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23855    ac_cs_silent=: ;;
23856
23857  # This is an error.
23858  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23859Try \`$0 --help' for more information." >&5
23860echo "$as_me: error: unrecognized option: $1
23861Try \`$0 --help' for more information." >&2;}
23862   { (exit 1); exit 1; }; } ;;
23863
23864  *) ac_config_targets="$ac_config_targets $1" ;;
23865
23866  esac
23867  shift
23868done
23869
23870ac_configure_extra_args=
23871
23872if $ac_cs_silent; then
23873  exec 6>/dev/null
23874  ac_configure_extra_args="$ac_configure_extra_args --silent"
23875fi
23876
23877_ACEOF
23878cat >>$CONFIG_STATUS <<_ACEOF
23879if \$ac_cs_recheck; then
23880  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23881  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23882fi
23883
23884_ACEOF
23885
23886
23887
23888
23889
23890cat >>$CONFIG_STATUS <<\_ACEOF
23891for ac_config_target in $ac_config_targets
23892do
23893  case "$ac_config_target" in
23894  # Handling of arguments.
23895  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23896  "str.h" ) CONFIG_FILES="$CONFIG_FILES str.h" ;;
23897  "str-config" ) CONFIG_FILES="$CONFIG_FILES str-config" ;;
23898  "adjustment" ) CONFIG_COMMANDS="$CONFIG_COMMANDS adjustment" ;;
23899  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23900  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23901echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23902   { (exit 1); exit 1; }; };;
23903  esac
23904done
23905
23906# If the user did not use the arguments to specify the items to instantiate,
23907# then the envvar interface is used.  Set only those that are not.
23908# We use the long form for the default assignment because of an extremely
23909# bizarre bug on SunOS 4.1.3.
23910if $ac_need_defaults; then
23911  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23912  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23913  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23914fi
23915
23916# Have a temporary directory for convenience.  Make it in the build tree
23917# simply because there is no reason to put it here, and in addition,
23918# creating and moving files from /tmp can sometimes cause problems.
23919# Create a temporary directory, and hook for its removal unless debugging.
23920$debug ||
23921{
23922  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23923  trap '{ (exit 1); exit 1; }' 1 2 13 15
23924}
23925
23926# Create a (secure) tmp directory for tmp files.
23927
23928{
23929  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23930  test -n "$tmp" && test -d "$tmp"
23931}  ||
23932{
23933  tmp=./confstat$$-$RANDOM
23934  (umask 077 && mkdir $tmp)
23935} ||
23936{
23937   echo "$me: cannot create a temporary directory in ." >&2
23938   { (exit 1); exit 1; }
23939}
23940
23941_ACEOF
23942
23943cat >>$CONFIG_STATUS <<_ACEOF
23944
23945#
23946# CONFIG_FILES section.
23947#
23948
23949# No need to generate the scripts if there are no CONFIG_FILES.
23950# This happens for instance when ./config.status config.h
23951if test -n "\$CONFIG_FILES"; then
23952  # Protect against being on the right side of a sed subst in config.status.
23953  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23954   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23955s,@SHELL@,$SHELL,;t t
23956s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23957s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23958s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23959s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23960s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23961s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23962s,@exec_prefix@,$exec_prefix,;t t
23963s,@prefix@,$prefix,;t t
23964s,@program_transform_name@,$program_transform_name,;t t
23965s,@bindir@,$bindir,;t t
23966s,@sbindir@,$sbindir,;t t
23967s,@libexecdir@,$libexecdir,;t t
23968s,@datadir@,$datadir,;t t
23969s,@sysconfdir@,$sysconfdir,;t t
23970s,@sharedstatedir@,$sharedstatedir,;t t
23971s,@localstatedir@,$localstatedir,;t t
23972s,@libdir@,$libdir,;t t
23973s,@includedir@,$includedir,;t t
23974s,@oldincludedir@,$oldincludedir,;t t
23975s,@infodir@,$infodir,;t t
23976s,@mandir@,$mandir,;t t
23977s,@build_alias@,$build_alias,;t t
23978s,@host_alias@,$host_alias,;t t
23979s,@target_alias@,$target_alias,;t t
23980s,@DEFS@,$DEFS,;t t
23981s,@ECHO_C@,$ECHO_C,;t t
23982s,@ECHO_N@,$ECHO_N,;t t
23983s,@ECHO_T@,$ECHO_T,;t t
23984s,@LIBS@,$LIBS,;t t
23985s,@STR_VERSION_STR@,$STR_VERSION_STR,;t t
23986s,@STR_VERSION_HEX@,$STR_VERSION_HEX,;t t
23987s,@PLATFORM@,$PLATFORM,;t t
23988s,@SET_MAKE@,$SET_MAKE,;t t
23989s,@CC@,$CC,;t t
23990s,@CFLAGS@,$CFLAGS,;t t
23991s,@LDFLAGS@,$LDFLAGS,;t t
23992s,@CPPFLAGS@,$CPPFLAGS,;t t
23993s,@ac_ct_CC@,$ac_ct_CC,;t t
23994s,@EXEEXT@,$EXEEXT,;t t
23995s,@OBJEXT@,$OBJEXT,;t t
23996s,@CPP@,$CPP,;t t
23997s,@build@,$build,;t t
23998s,@build_cpu@,$build_cpu,;t t
23999s,@build_vendor@,$build_vendor,;t t
24000s,@build_os@,$build_os,;t t
24001s,@host@,$host,;t t
24002s,@host_cpu@,$host_cpu,;t t
24003s,@host_vendor@,$host_vendor,;t t
24004s,@host_os@,$host_os,;t t
24005s,@EGREP@,$EGREP,;t t
24006s,@LN_S@,$LN_S,;t t
24007s,@ECHO@,$ECHO,;t t
24008s,@AR@,$AR,;t t
24009s,@ac_ct_AR@,$ac_ct_AR,;t t
24010s,@RANLIB@,$RANLIB,;t t
24011s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24012s,@STRIP@,$STRIP,;t t
24013s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24014s,@CXX@,$CXX,;t t
24015s,@CXXFLAGS@,$CXXFLAGS,;t t
24016s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24017s,@CXXCPP@,$CXXCPP,;t t
24018s,@F77@,$F77,;t t
24019s,@FFLAGS@,$FFLAGS,;t t
24020s,@ac_ct_F77@,$ac_ct_F77,;t t
24021s,@LIBTOOL@,$LIBTOOL,;t t
24022s,@LIBOBJS@,$LIBOBJS,;t t
24023s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24024CEOF
24025
24026_ACEOF
24027
24028  cat >>$CONFIG_STATUS <<\_ACEOF
24029  # Split the substitutions into bite-sized pieces for seds with
24030  # small command number limits, like on Digital OSF/1 and HP-UX.
24031  ac_max_sed_lines=48
24032  ac_sed_frag=1 # Number of current file.
24033  ac_beg=1 # First line for current file.
24034  ac_end=$ac_max_sed_lines # Line after last line for current file.
24035  ac_more_lines=:
24036  ac_sed_cmds=
24037  while $ac_more_lines; do
24038    if test $ac_beg -gt 1; then
24039      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24040    else
24041      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24042    fi
24043    if test ! -s $tmp/subs.frag; then
24044      ac_more_lines=false
24045    else
24046      # The purpose of the label and of the branching condition is to
24047      # speed up the sed processing (if there are no `@' at all, there
24048      # is no need to browse any of the substitutions).
24049      # These are the two extra sed commands mentioned above.
24050      (echo ':t
24051  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24052      if test -z "$ac_sed_cmds"; then
24053	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24054      else
24055	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24056      fi
24057      ac_sed_frag=`expr $ac_sed_frag + 1`
24058      ac_beg=$ac_end
24059      ac_end=`expr $ac_end + $ac_max_sed_lines`
24060    fi
24061  done
24062  if test -z "$ac_sed_cmds"; then
24063    ac_sed_cmds=cat
24064  fi
24065fi # test -n "$CONFIG_FILES"
24066
24067_ACEOF
24068cat >>$CONFIG_STATUS <<\_ACEOF
24069for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24070  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24071  case $ac_file in
24072  - | *:- | *:-:* ) # input from stdin
24073	cat >$tmp/stdin
24074	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24075	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24076  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24077	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24078  * )   ac_file_in=$ac_file.in ;;
24079  esac
24080
24081  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24082  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24083$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24084	 X"$ac_file" : 'X\(//\)[^/]' \| \
24085	 X"$ac_file" : 'X\(//\)$' \| \
24086	 X"$ac_file" : 'X\(/\)' \| \
24087	 .     : '\(.\)' 2>/dev/null ||
24088echo X"$ac_file" |
24089    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24090  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24091  	  /^X\(\/\/\)$/{ s//\1/; q; }
24092  	  /^X\(\/\).*/{ s//\1/; q; }
24093  	  s/.*/./; q'`
24094  { if $as_mkdir_p; then
24095    mkdir -p "$ac_dir"
24096  else
24097    as_dir="$ac_dir"
24098    as_dirs=
24099    while test ! -d "$as_dir"; do
24100      as_dirs="$as_dir $as_dirs"
24101      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24102$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24103	 X"$as_dir" : 'X\(//\)[^/]' \| \
24104	 X"$as_dir" : 'X\(//\)$' \| \
24105	 X"$as_dir" : 'X\(/\)' \| \
24106	 .     : '\(.\)' 2>/dev/null ||
24107echo X"$as_dir" |
24108    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24109  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24110  	  /^X\(\/\/\)$/{ s//\1/; q; }
24111  	  /^X\(\/\).*/{ s//\1/; q; }
24112  	  s/.*/./; q'`
24113    done
24114    test ! -n "$as_dirs" || mkdir $as_dirs
24115  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24116echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24117   { (exit 1); exit 1; }; }; }
24118
24119  ac_builddir=.
24120
24121if test "$ac_dir" != .; then
24122  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24123  # A "../" for each directory in $ac_dir_suffix.
24124  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24125else
24126  ac_dir_suffix= ac_top_builddir=
24127fi
24128
24129case $srcdir in
24130  .)  # No --srcdir option.  We are building in place.
24131    ac_srcdir=.
24132    if test -z "$ac_top_builddir"; then
24133       ac_top_srcdir=.
24134    else
24135       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24136    fi ;;
24137  [\\/]* | ?:[\\/]* )  # Absolute path.
24138    ac_srcdir=$srcdir$ac_dir_suffix;
24139    ac_top_srcdir=$srcdir ;;
24140  *) # Relative path.
24141    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24142    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24143esac
24144
24145# Do not use `cd foo && pwd` to compute absolute paths, because
24146# the directories may not exist.
24147case `pwd` in
24148.) ac_abs_builddir="$ac_dir";;
24149*)
24150  case "$ac_dir" in
24151  .) ac_abs_builddir=`pwd`;;
24152  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24153  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24154  esac;;
24155esac
24156case $ac_abs_builddir in
24157.) ac_abs_top_builddir=${ac_top_builddir}.;;
24158*)
24159  case ${ac_top_builddir}. in
24160  .) ac_abs_top_builddir=$ac_abs_builddir;;
24161  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24162  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24163  esac;;
24164esac
24165case $ac_abs_builddir in
24166.) ac_abs_srcdir=$ac_srcdir;;
24167*)
24168  case $ac_srcdir in
24169  .) ac_abs_srcdir=$ac_abs_builddir;;
24170  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24171  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24172  esac;;
24173esac
24174case $ac_abs_builddir in
24175.) ac_abs_top_srcdir=$ac_top_srcdir;;
24176*)
24177  case $ac_top_srcdir in
24178  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24179  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24180  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24181  esac;;
24182esac
24183
24184
24185
24186  if test x"$ac_file" != x-; then
24187    { echo "$as_me:$LINENO: creating $ac_file" >&5
24188echo "$as_me: creating $ac_file" >&6;}
24189    rm -f "$ac_file"
24190  fi
24191  # Let's still pretend it is `configure' which instantiates (i.e., don't
24192  # use $as_me), people would be surprised to read:
24193  #    /* config.h.  Generated by config.status.  */
24194  if test x"$ac_file" = x-; then
24195    configure_input=
24196  else
24197    configure_input="$ac_file.  "
24198  fi
24199  configure_input=$configure_input"Generated from `echo $ac_file_in |
24200				     sed 's,.*/,,'` by configure."
24201
24202  # First look for the input files in the build tree, otherwise in the
24203  # src tree.
24204  ac_file_inputs=`IFS=:
24205    for f in $ac_file_in; do
24206      case $f in
24207      -) echo $tmp/stdin ;;
24208      [\\/$]*)
24209	 # Absolute (can't be DOS-style, as IFS=:)
24210	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24211echo "$as_me: error: cannot find input file: $f" >&2;}
24212   { (exit 1); exit 1; }; }
24213	 echo "$f";;
24214      *) # Relative
24215	 if test -f "$f"; then
24216	   # Build tree
24217	   echo "$f"
24218	 elif test -f "$srcdir/$f"; then
24219	   # Source tree
24220	   echo "$srcdir/$f"
24221	 else
24222	   # /dev/null tree
24223	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24224echo "$as_me: error: cannot find input file: $f" >&2;}
24225   { (exit 1); exit 1; }; }
24226	 fi;;
24227      esac
24228    done` || { (exit 1); exit 1; }
24229_ACEOF
24230cat >>$CONFIG_STATUS <<_ACEOF
24231  sed "$ac_vpsub
24232$extrasub
24233_ACEOF
24234cat >>$CONFIG_STATUS <<\_ACEOF
24235:t
24236/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24237s,@configure_input@,$configure_input,;t t
24238s,@srcdir@,$ac_srcdir,;t t
24239s,@abs_srcdir@,$ac_abs_srcdir,;t t
24240s,@top_srcdir@,$ac_top_srcdir,;t t
24241s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24242s,@builddir@,$ac_builddir,;t t
24243s,@abs_builddir@,$ac_abs_builddir,;t t
24244s,@top_builddir@,$ac_top_builddir,;t t
24245s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24246" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24247  rm -f $tmp/stdin
24248  if test x"$ac_file" != x-; then
24249    mv $tmp/out $ac_file
24250  else
24251    cat $tmp/out
24252    rm -f $tmp/out
24253  fi
24254
24255done
24256_ACEOF
24257cat >>$CONFIG_STATUS <<\_ACEOF
24258
24259#
24260# CONFIG_HEADER section.
24261#
24262
24263# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24264# NAME is the cpp macro being defined and VALUE is the value it is being given.
24265#
24266# ac_d sets the value in "#define NAME VALUE" lines.
24267ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
24268ac_dB='[	 ].*$,\1#\2'
24269ac_dC=' '
24270ac_dD=',;t'
24271# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24272ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
24273ac_uB='$,\1#\2define\3'
24274ac_uC=' '
24275ac_uD=',;t'
24276
24277for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24278  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24279  case $ac_file in
24280  - | *:- | *:-:* ) # input from stdin
24281	cat >$tmp/stdin
24282	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24283	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24284  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24285	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24286  * )   ac_file_in=$ac_file.in ;;
24287  esac
24288
24289  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24290echo "$as_me: creating $ac_file" >&6;}
24291
24292  # First look for the input files in the build tree, otherwise in the
24293  # src tree.
24294  ac_file_inputs=`IFS=:
24295    for f in $ac_file_in; do
24296      case $f in
24297      -) echo $tmp/stdin ;;
24298      [\\/$]*)
24299	 # Absolute (can't be DOS-style, as IFS=:)
24300	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24301echo "$as_me: error: cannot find input file: $f" >&2;}
24302   { (exit 1); exit 1; }; }
24303	 # Do quote $f, to prevent DOS paths from being IFS'd.
24304	 echo "$f";;
24305      *) # Relative
24306	 if test -f "$f"; then
24307	   # Build tree
24308	   echo "$f"
24309	 elif test -f "$srcdir/$f"; then
24310	   # Source tree
24311	   echo "$srcdir/$f"
24312	 else
24313	   # /dev/null tree
24314	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24315echo "$as_me: error: cannot find input file: $f" >&2;}
24316   { (exit 1); exit 1; }; }
24317	 fi;;
24318      esac
24319    done` || { (exit 1); exit 1; }
24320  # Remove the trailing spaces.
24321  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
24322
24323_ACEOF
24324
24325# Transform confdefs.h into two sed scripts, `conftest.defines' and
24326# `conftest.undefs', that substitutes the proper values into
24327# config.h.in to produce config.h.  The first handles `#define'
24328# templates, and the second `#undef' templates.
24329# And first: Protect against being on the right side of a sed subst in
24330# config.status.  Protect against being in an unquoted here document
24331# in config.status.
24332rm -f conftest.defines conftest.undefs
24333# Using a here document instead of a string reduces the quoting nightmare.
24334# Putting comments in sed scripts is not portable.
24335#
24336# `end' is used to avoid that the second main sed command (meant for
24337# 0-ary CPP macros) applies to n-ary macro definitions.
24338# See the Autoconf documentation for `clear'.
24339cat >confdef2sed.sed <<\_ACEOF
24340s/[\\&,]/\\&/g
24341s,[\\$`],\\&,g
24342t clear
24343: clear
24344s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24345t end
24346s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24347: end
24348_ACEOF
24349# If some macros were called several times there might be several times
24350# the same #defines, which is useless.  Nevertheless, we may not want to
24351# sort them, since we want the *last* AC-DEFINE to be honored.
24352uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24353sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24354rm -f confdef2sed.sed
24355
24356# This sed command replaces #undef with comments.  This is necessary, for
24357# example, in the case of _POSIX_SOURCE, which is predefined and required
24358# on some systems where configure will not decide to define it.
24359cat >>conftest.undefs <<\_ACEOF
24360s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24361_ACEOF
24362
24363# Break up conftest.defines because some shells have a limit on the size
24364# of here documents, and old seds have small limits too (100 cmds).
24365echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24366echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24367echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24368echo '  :' >>$CONFIG_STATUS
24369rm -f conftest.tail
24370while grep . conftest.defines >/dev/null
24371do
24372  # Write a limited-size here document to $tmp/defines.sed.
24373  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24374  # Speed up: don't consider the non `#define' lines.
24375  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
24376  # Work around the forget-to-reset-the-flag bug.
24377  echo 't clr' >>$CONFIG_STATUS
24378  echo ': clr' >>$CONFIG_STATUS
24379  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24380  echo 'CEOF
24381  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24382  rm -f $tmp/in
24383  mv $tmp/out $tmp/in
24384' >>$CONFIG_STATUS
24385  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24386  rm -f conftest.defines
24387  mv conftest.tail conftest.defines
24388done
24389rm -f conftest.defines
24390echo '  fi # grep' >>$CONFIG_STATUS
24391echo >>$CONFIG_STATUS
24392
24393# Break up conftest.undefs because some shells have a limit on the size
24394# of here documents, and old seds have small limits too (100 cmds).
24395echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24396rm -f conftest.tail
24397while grep . conftest.undefs >/dev/null
24398do
24399  # Write a limited-size here document to $tmp/undefs.sed.
24400  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24401  # Speed up: don't consider the non `#undef'
24402  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
24403  # Work around the forget-to-reset-the-flag bug.
24404  echo 't clr' >>$CONFIG_STATUS
24405  echo ': clr' >>$CONFIG_STATUS
24406  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24407  echo 'CEOF
24408  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24409  rm -f $tmp/in
24410  mv $tmp/out $tmp/in
24411' >>$CONFIG_STATUS
24412  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24413  rm -f conftest.undefs
24414  mv conftest.tail conftest.undefs
24415done
24416rm -f conftest.undefs
24417
24418cat >>$CONFIG_STATUS <<\_ACEOF
24419  # Let's still pretend it is `configure' which instantiates (i.e., don't
24420  # use $as_me), people would be surprised to read:
24421  #    /* config.h.  Generated by config.status.  */
24422  if test x"$ac_file" = x-; then
24423    echo "/* Generated by configure.  */" >$tmp/config.h
24424  else
24425    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24426  fi
24427  cat $tmp/in >>$tmp/config.h
24428  rm -f $tmp/in
24429  if test x"$ac_file" != x-; then
24430    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24431      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24432echo "$as_me: $ac_file is unchanged" >&6;}
24433    else
24434      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24435$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24436	 X"$ac_file" : 'X\(//\)[^/]' \| \
24437	 X"$ac_file" : 'X\(//\)$' \| \
24438	 X"$ac_file" : 'X\(/\)' \| \
24439	 .     : '\(.\)' 2>/dev/null ||
24440echo X"$ac_file" |
24441    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24442  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24443  	  /^X\(\/\/\)$/{ s//\1/; q; }
24444  	  /^X\(\/\).*/{ s//\1/; q; }
24445  	  s/.*/./; q'`
24446      { if $as_mkdir_p; then
24447    mkdir -p "$ac_dir"
24448  else
24449    as_dir="$ac_dir"
24450    as_dirs=
24451    while test ! -d "$as_dir"; do
24452      as_dirs="$as_dir $as_dirs"
24453      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24455	 X"$as_dir" : 'X\(//\)[^/]' \| \
24456	 X"$as_dir" : 'X\(//\)$' \| \
24457	 X"$as_dir" : 'X\(/\)' \| \
24458	 .     : '\(.\)' 2>/dev/null ||
24459echo X"$as_dir" |
24460    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24461  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24462  	  /^X\(\/\/\)$/{ s//\1/; q; }
24463  	  /^X\(\/\).*/{ s//\1/; q; }
24464  	  s/.*/./; q'`
24465    done
24466    test ! -n "$as_dirs" || mkdir $as_dirs
24467  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24468echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24469   { (exit 1); exit 1; }; }; }
24470
24471      rm -f $ac_file
24472      mv $tmp/config.h $ac_file
24473    fi
24474  else
24475    cat $tmp/config.h
24476    rm -f $tmp/config.h
24477  fi
24478done
24479_ACEOF
24480cat >>$CONFIG_STATUS <<\_ACEOF
24481
24482#
24483# CONFIG_COMMANDS section.
24484#
24485for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24486  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24487  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24488  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24489$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24490	 X"$ac_dest" : 'X\(//\)[^/]' \| \
24491	 X"$ac_dest" : 'X\(//\)$' \| \
24492	 X"$ac_dest" : 'X\(/\)' \| \
24493	 .     : '\(.\)' 2>/dev/null ||
24494echo X"$ac_dest" |
24495    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24496  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24497  	  /^X\(\/\/\)$/{ s//\1/; q; }
24498  	  /^X\(\/\).*/{ s//\1/; q; }
24499  	  s/.*/./; q'`
24500  { if $as_mkdir_p; then
24501    mkdir -p "$ac_dir"
24502  else
24503    as_dir="$ac_dir"
24504    as_dirs=
24505    while test ! -d "$as_dir"; do
24506      as_dirs="$as_dir $as_dirs"
24507      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24509	 X"$as_dir" : 'X\(//\)[^/]' \| \
24510	 X"$as_dir" : 'X\(//\)$' \| \
24511	 X"$as_dir" : 'X\(/\)' \| \
24512	 .     : '\(.\)' 2>/dev/null ||
24513echo X"$as_dir" |
24514    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24515  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24516  	  /^X\(\/\/\)$/{ s//\1/; q; }
24517  	  /^X\(\/\).*/{ s//\1/; q; }
24518  	  s/.*/./; q'`
24519    done
24520    test ! -n "$as_dirs" || mkdir $as_dirs
24521  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24522echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24523   { (exit 1); exit 1; }; }; }
24524
24525  ac_builddir=.
24526
24527if test "$ac_dir" != .; then
24528  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24529  # A "../" for each directory in $ac_dir_suffix.
24530  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24531else
24532  ac_dir_suffix= ac_top_builddir=
24533fi
24534
24535case $srcdir in
24536  .)  # No --srcdir option.  We are building in place.
24537    ac_srcdir=.
24538    if test -z "$ac_top_builddir"; then
24539       ac_top_srcdir=.
24540    else
24541       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24542    fi ;;
24543  [\\/]* | ?:[\\/]* )  # Absolute path.
24544    ac_srcdir=$srcdir$ac_dir_suffix;
24545    ac_top_srcdir=$srcdir ;;
24546  *) # Relative path.
24547    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24548    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24549esac
24550
24551# Do not use `cd foo && pwd` to compute absolute paths, because
24552# the directories may not exist.
24553case `pwd` in
24554.) ac_abs_builddir="$ac_dir";;
24555*)
24556  case "$ac_dir" in
24557  .) ac_abs_builddir=`pwd`;;
24558  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24559  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24560  esac;;
24561esac
24562case $ac_abs_builddir in
24563.) ac_abs_top_builddir=${ac_top_builddir}.;;
24564*)
24565  case ${ac_top_builddir}. in
24566  .) ac_abs_top_builddir=$ac_abs_builddir;;
24567  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24568  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24569  esac;;
24570esac
24571case $ac_abs_builddir in
24572.) ac_abs_srcdir=$ac_srcdir;;
24573*)
24574  case $ac_srcdir in
24575  .) ac_abs_srcdir=$ac_abs_builddir;;
24576  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24577  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24578  esac;;
24579esac
24580case $ac_abs_builddir in
24581.) ac_abs_top_srcdir=$ac_top_srcdir;;
24582*)
24583  case $ac_top_srcdir in
24584  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24585  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24586  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24587  esac;;
24588esac
24589
24590
24591  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24592echo "$as_me: executing $ac_dest commands" >&6;}
24593  case $ac_dest in
24594    adjustment ) chmod a+x str-config ;;
24595  esac
24596done
24597_ACEOF
24598
24599cat >>$CONFIG_STATUS <<\_ACEOF
24600
24601{ (exit 0); exit 0; }
24602_ACEOF
24603chmod +x $CONFIG_STATUS
24604ac_clean_files=$ac_clean_files_save
24605
24606
24607# configure is writing to config.log, and then calls config.status.
24608# config.status does its own redirection, appending to config.log.
24609# Unfortunately, on DOS this fails, as config.log is still kept open
24610# by configure, so config.status won't be able to write to it; its
24611# output is simply discarded.  So we exec the FD to /dev/null,
24612# effectively closing config.log, so it can be properly (re)opened and
24613# appended to by config.status.  When coming back to configure, we
24614# need to make the FD available again.
24615if test "$no_create" != yes; then
24616  ac_cs_success=:
24617  ac_config_status_args=
24618  test "$silent" = yes &&
24619    ac_config_status_args="$ac_config_status_args --quiet"
24620  exec 5>/dev/null
24621  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24622  exec 5>>config.log
24623  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24624  # would make configure fail if this is the last instruction.
24625  $ac_cs_success || { (exit 1); exit 1; }
24626fi
24627
24628
24629