source: trunk/configure @ 1

Last change on this file since 1 was 1, checked in by coin, 11 years ago

Initial import

File size: 724.1 KB
Line 
1#! /bin/sh
2# From configure.ac Revision: 289 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for adolc 2.0.0-trunk.
5#
6# Report bugs to <adol-c@tu-dresden.de>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29  as_unset=unset
30else
31  as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45  LC_TELEPHONE LC_TIME
46do
47  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48    eval $as_var=C; export $as_var
49  else
50    $as_unset $as_var
51  fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56  as_expr=expr
57else
58  as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62  as_basename=basename
63else
64  as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71         X"$0" : 'X\(//\)$' \| \
72         X"$0" : 'X\(/\)$' \| \
73         .     : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76          /^X\/\(\/\/\)$/{ s//\1/; q; }
77          /^X\/\(\/\).*/{ s//\1/; q; }
78          s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91  echo "#! /bin/sh" >conf$$.sh
92  echo  "exit 0"   >>conf$$.sh
93  chmod +x conf$$.sh
94  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95    PATH_SEPARATOR=';'
96  else
97    PATH_SEPARATOR=:
98  fi
99  rm -f conf$$.sh
100fi
101
102
103  as_lineno_1=$LINENO
104  as_lineno_2=$LINENO
105  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106  test "x$as_lineno_1" != "x$as_lineno_2" &&
107  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108  # Find who we are.  Look in the path if we contain no path at all
109  # relative or not.
110  case $0 in
111    *[\\/]* ) as_myself=$0 ;;
112    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115  IFS=$as_save_IFS
116  test -z "$as_dir" && as_dir=.
117  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120       ;;
121  esac
122  # We did not find ourselves, most probably we were run as `sh COMMAND'
123  # in which case we are not to be found in the path.
124  if test "x$as_myself" = x; then
125    as_myself=$0
126  fi
127  if test ! -f "$as_myself"; then
128    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129   { (exit 1); exit 1; }; }
130  fi
131  case $CONFIG_SHELL in
132  '')
133    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136  IFS=$as_save_IFS
137  test -z "$as_dir" && as_dir=.
138  for as_base in sh bash ksh sh5; do
139         case $as_dir in
140         /*)
141           if ("$as_dir/$as_base" -c '
142  as_lineno_1=$LINENO
143  as_lineno_2=$LINENO
144  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145  test "x$as_lineno_1" != "x$as_lineno_2" &&
146  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149             CONFIG_SHELL=$as_dir/$as_base
150             export CONFIG_SHELL
151             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152           fi;;
153         esac
154       done
155done
156;;
157  esac
158
159  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160  # uniformly replaced by the line number.  The first 'sed' inserts a
161  # line-number line before each line; the second 'sed' does the real
162  # work.  The second script uses 'N' to pair each line-number line
163  # with the numbered line, and appends trailing '-' during
164  # substitution so that $LINENO is not a special case at line end.
165  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167  sed '=' <$as_myself |
168    sed '
169      N
170      s,$,-,
171      : loop
172      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173      t loop
174      s,-$,,
175      s,^['$as_cr_digits']*\n,,
176    ' >$as_me.lineno &&
177  chmod +x $as_me.lineno ||
178    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179   { (exit 1); exit 1; }; }
180
181  # Don't try to exec as it changes $[0], causing all sort of problems
182  # (the dirname of $[0] is not the place where we might find the
183  # original and so on.  Autoconf is especially sensible to this).
184  . ./$as_me.lineno
185  # Exit status is that of the last command.
186  exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191  *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T='      ' ;;
193  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198  as_expr=expr
199else
200  as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206  # We could just check for DJGPP; but this test a) works b) is more generic
207  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208  if test -f conf$$.exe; then
209    # Don't use ln at all; we don't have any links
210    as_ln_s='cp -p'
211  else
212    as_ln_s='ln -s'
213  fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215  as_ln_s=ln
216else
217  as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222  as_mkdir_p=:
223else
224  test -d ./-p && rmdir ./-p
225  as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS="   $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247
248# Check that we are running under the correct shell.
249SHELL=${CONFIG_SHELL-/bin/sh}
250
251case X$ECHO in
252X*--fallback-echo)
253  # Remove one level of quotation (which was required for Make).
254  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255  ;;
256esac
257
258echo=${ECHO-echo}
259if test "X$1" = X--no-reexec; then
260  # Discard the --no-reexec flag, and continue.
261  shift
262elif test "X$1" = X--fallback-echo; then
263  # Avoid inline document here, it may be left over
264  :
265elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266  # Yippee, $echo works!
267  :
268else
269  # Restart under the correct shell.
270  exec $SHELL "$0" --no-reexec ${1+"$@"}
271fi
272
273if test "X$1" = X--fallback-echo; then
274  # used as fallback echo
275  shift
276  cat <<EOF
277$*
278EOF
279  exit 0
280fi
281
282# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set.
284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285
286if test -z "$ECHO"; then
287if test "X${echo_test_string+set}" != Xset; then
288# find a string as large as possible, as long as the shell can cope with it
289  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
292       echo_test_string=`eval $cmd` &&
293       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294    then
295      break
296    fi
297  done
298fi
299
300if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302   test "X$echo_testing_string" = "X$echo_test_string"; then
303  :
304else
305  # The Solaris, AIX, and Digital Unix default echo programs unquote
306  # backslashes.  This makes it impossible to quote backslashes using
307  #   echo "$something" | sed 's/\\/\\\\/g'
308  #
309  # So, first we look for a working echo in the user's PATH.
310
311  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312  for dir in $PATH /usr/ucb; do
313    IFS="$lt_save_ifs"
314    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317       test "X$echo_testing_string" = "X$echo_test_string"; then
318      echo="$dir/echo"
319      break
320    fi
321  done
322  IFS="$lt_save_ifs"
323
324  if test "X$echo" = Xecho; then
325    # We didn't find a better echo, so look for alternatives.
326    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328       test "X$echo_testing_string" = "X$echo_test_string"; then
329      # This shell has a builtin print -r that does the trick.
330      echo='print -r'
331    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332         test "X$CONFIG_SHELL" != X/bin/ksh; then
333      # If we have ksh, try running configure again with it.
334      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335      export ORIGINAL_CONFIG_SHELL
336      CONFIG_SHELL=/bin/ksh
337      export CONFIG_SHELL
338      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339    else
340      # Try using printf.
341      echo='printf %s\n'
342      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344         test "X$echo_testing_string" = "X$echo_test_string"; then
345        # Cool, printf works
346        :
347      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348           test "X$echo_testing_string" = 'X\t' &&
349           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350           test "X$echo_testing_string" = "X$echo_test_string"; then
351        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352        export CONFIG_SHELL
353        SHELL="$CONFIG_SHELL"
354        export SHELL
355        echo="$CONFIG_SHELL $0 --fallback-echo"
356      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357           test "X$echo_testing_string" = 'X\t' &&
358           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359           test "X$echo_testing_string" = "X$echo_test_string"; then
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      else
362        # maybe with a smaller string...
363        prev=:
364
365        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367          then
368            break
369          fi
370          prev="$cmd"
371        done
372
373        if test "$prev" != 'sed 50q "$0"'; then
374          echo_test_string=`eval $prev`
375          export echo_test_string
376          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377        else
378          # Oops.  We lost completely, so just stick with echo.
379          echo=echo
380        fi
381      fi
382    fi
383  fi
384fi
385fi
386
387# Copy echo and quote the copy suitably for passing to libtool from
388# the Makefile, instead of quoting the original, which is used later.
389ECHO=$echo
390if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392fi
393
394
395
396
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
401# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406exec 6>&1
407
408#
409# Initializations.
410#
411ac_default_prefix=/usr/local
412ac_config_libobj_dir=.
413cross_compiling=no
414subdirs=
415MFLAGS=
416MAKEFLAGS=
417SHELL=${CONFIG_SHELL-/bin/sh}
418
419# Maximum number of lines to put in a shell here document.
420# This variable seems obsolete.  It should probably be removed, and
421# only ac_max_sed_lines should be used.
422: ${ac_max_here_lines=38}
423
424# Identity of this package.
425PACKAGE_NAME='adolc'
426PACKAGE_TARNAME='adolc'
427PACKAGE_VERSION='2.0.0-trunk'
428PACKAGE_STRING='adolc 2.0.0-trunk'
429PACKAGE_BUGREPORT='adol-c@tu-dresden.de'
430
431ac_unique_file="adolc/adolc.h"
432ac_default_prefix=${HOME}/adolc_base
433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447#  include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452#  include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463#  include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP ECHO AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS ac_aux_dir SPARSE_TRUE SPARSE_FALSE DOCEXA_TRUE DOCEXA_FALSE ADDEXA_TRUE ADDEXA_FALSE PAREXA_TRUE PAREXA_FALSE ac_adolc_cflags ac_adolc_cxxflags LTLIBOBJS'
471ac_subst_files=''
472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514  # If the previous option needs an argument, assign it.
515  if test -n "$ac_prev"; then
516    eval "$ac_prev=\$ac_option"
517    ac_prev=
518    continue
519  fi
520
521  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523  # Accept the important Cygnus configure options, so we can diagnose typos.
524
525  case $ac_option in
526
527  -bindir | --bindir | --bindi | --bind | --bin | --bi)
528    ac_prev=bindir ;;
529  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530    bindir=$ac_optarg ;;
531
532  -build | --build | --buil | --bui | --bu)
533    ac_prev=build_alias ;;
534  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535    build_alias=$ac_optarg ;;
536
537  -cache-file | --cache-file | --cache-fil | --cache-fi \
538  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539    ac_prev=cache_file ;;
540  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542    cache_file=$ac_optarg ;;
543
544  --config-cache | -C)
545    cache_file=config.cache ;;
546
547  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548    ac_prev=datadir ;;
549  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550  | --da=*)
551    datadir=$ac_optarg ;;
552
553  -disable-* | --disable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    eval "enable_$ac_feature=no" ;;
561
562  -enable-* | --enable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    case $ac_option in
570      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571      *) ac_optarg=yes ;;
572    esac
573    eval "enable_$ac_feature='$ac_optarg'" ;;
574
575  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577  | --exec | --exe | --ex)
578    ac_prev=exec_prefix ;;
579  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581  | --exec=* | --exe=* | --ex=*)
582    exec_prefix=$ac_optarg ;;
583
584  -gas | --gas | --ga | --g)
585    # Obsolete; use --with-gas.
586    with_gas=yes ;;
587
588  -help | --help | --hel | --he | -h)
589    ac_init_help=long ;;
590  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591    ac_init_help=recursive ;;
592  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593    ac_init_help=short ;;
594
595  -host | --host | --hos | --ho)
596    ac_prev=host_alias ;;
597  -host=* | --host=* | --hos=* | --ho=*)
598    host_alias=$ac_optarg ;;
599
600  -includedir | --includedir | --includedi | --included | --include \
601  | --includ | --inclu | --incl | --inc)
602    ac_prev=includedir ;;
603  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604  | --includ=* | --inclu=* | --incl=* | --inc=*)
605    includedir=$ac_optarg ;;
606
607  -infodir | --infodir | --infodi | --infod | --info | --inf)
608    ac_prev=infodir ;;
609  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610    infodir=$ac_optarg ;;
611
612  -libdir | --libdir | --libdi | --libd)
613    ac_prev=libdir ;;
614  -libdir=* | --libdir=* | --libdi=* | --libd=*)
615    libdir=$ac_optarg ;;
616
617  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618  | --libexe | --libex | --libe)
619    ac_prev=libexecdir ;;
620  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621  | --libexe=* | --libex=* | --libe=*)
622    libexecdir=$ac_optarg ;;
623
624  -localstatedir | --localstatedir | --localstatedi | --localstated \
625  | --localstate | --localstat | --localsta | --localst \
626  | --locals | --local | --loca | --loc | --lo)
627    ac_prev=localstatedir ;;
628  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631    localstatedir=$ac_optarg ;;
632
633  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634    ac_prev=mandir ;;
635  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636    mandir=$ac_optarg ;;
637
638  -nfp | --nfp | --nf)
639    # Obsolete; use --without-fp.
640    with_fp=no ;;
641
642  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643  | --no-cr | --no-c | -n)
644    no_create=yes ;;
645
646  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648    no_recursion=yes ;;
649
650  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652  | --oldin | --oldi | --old | --ol | --o)
653    ac_prev=oldincludedir ;;
654  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657    oldincludedir=$ac_optarg ;;
658
659  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660    ac_prev=prefix ;;
661  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662    prefix=$ac_optarg ;;
663
664  -program-prefix | --program-prefix | --program-prefi | --program-pref \
665  | --program-pre | --program-pr | --program-p)
666    ac_prev=program_prefix ;;
667  -program-prefix=* | --program-prefix=* | --program-prefi=* \
668  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669    program_prefix=$ac_optarg ;;
670
671  -program-suffix | --program-suffix | --program-suffi | --program-suff \
672  | --program-suf | --program-su | --program-s)
673    ac_prev=program_suffix ;;
674  -program-suffix=* | --program-suffix=* | --program-suffi=* \
675  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676    program_suffix=$ac_optarg ;;
677
678  -program-transform-name | --program-transform-name \
679  | --program-transform-nam | --program-transform-na \
680  | --program-transform-n | --program-transform- \
681  | --program-transform | --program-transfor \
682  | --program-transfo | --program-transf \
683  | --program-trans | --program-tran \
684  | --progr-tra | --program-tr | --program-t)
685    ac_prev=program_transform_name ;;
686  -program-transform-name=* | --program-transform-name=* \
687  | --program-transform-nam=* | --program-transform-na=* \
688  | --program-transform-n=* | --program-transform-=* \
689  | --program-transform=* | --program-transfor=* \
690  | --program-transfo=* | --program-transf=* \
691  | --program-trans=* | --program-tran=* \
692  | --progr-tra=* | --program-tr=* | --program-t=*)
693    program_transform_name=$ac_optarg ;;
694
695  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696  | -silent | --silent | --silen | --sile | --sil)
697    silent=yes ;;
698
699  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700    ac_prev=sbindir ;;
701  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702  | --sbi=* | --sb=*)
703    sbindir=$ac_optarg ;;
704
705  -sharedstatedir | --sharedstatedir | --sharedstatedi \
706  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707  | --sharedst | --shareds | --shared | --share | --shar \
708  | --sha | --sh)
709    ac_prev=sharedstatedir ;;
710  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713  | --sha=* | --sh=*)
714    sharedstatedir=$ac_optarg ;;
715
716  -site | --site | --sit)
717    ac_prev=site ;;
718  -site=* | --site=* | --sit=*)
719    site=$ac_optarg ;;
720
721  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722    ac_prev=srcdir ;;
723  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724    srcdir=$ac_optarg ;;
725
726  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727  | --syscon | --sysco | --sysc | --sys | --sy)
728    ac_prev=sysconfdir ;;
729  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731    sysconfdir=$ac_optarg ;;
732
733  -target | --target | --targe | --targ | --tar | --ta | --t)
734    ac_prev=target_alias ;;
735  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736    target_alias=$ac_optarg ;;
737
738  -v | -verbose | --verbose | --verbos | --verbo | --verb)
739    verbose=yes ;;
740
741  -version | --version | --versio | --versi | --vers | -V)
742    ac_init_version=: ;;
743
744  -with-* | --with-*)
745    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746    # Reject names that are not valid shell variable names.
747    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748      { echo "$as_me: error: invalid package name: $ac_package" >&2
749   { (exit 1); exit 1; }; }
750    ac_package=`echo $ac_package| sed 's/-/_/g'`
751    case $ac_option in
752      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753      *) ac_optarg=yes ;;
754    esac
755    eval "with_$ac_package='$ac_optarg'" ;;
756
757  -without-* | --without-*)
758    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759    # Reject names that are not valid shell variable names.
760    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761      { echo "$as_me: error: invalid package name: $ac_package" >&2
762   { (exit 1); exit 1; }; }
763    ac_package=`echo $ac_package | sed 's/-/_/g'`
764    eval "with_$ac_package=no" ;;
765
766  --x)
767    # Obsolete; use --with-x.
768    with_x=yes ;;
769
770  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771  | --x-incl | --x-inc | --x-in | --x-i)
772    ac_prev=x_includes ;;
773  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775    x_includes=$ac_optarg ;;
776
777  -x-libraries | --x-libraries | --x-librarie | --x-librari \
778  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779    ac_prev=x_libraries ;;
780  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782    x_libraries=$ac_optarg ;;
783
784  -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786   { (exit 1); exit 1; }; }
787    ;;
788
789  *=*)
790    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791    # Reject names that are not valid shell variable names.
792    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794   { (exit 1); exit 1; }; }
795    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796    eval "$ac_envvar='$ac_optarg'"
797    export $ac_envvar ;;
798
799  *)
800    # FIXME: should be removed in autoconf 3.0.
801    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805    ;;
806
807  esac
808done
809
810if test -n "$ac_prev"; then
811  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812  { echo "$as_me: error: missing argument to $ac_option" >&2
813   { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819  eval ac_val=$`echo $ac_var`
820  case $ac_val in
821    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823   { (exit 1); exit 1; }; };;
824  esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829              localstatedir libdir includedir oldincludedir infodir mandir
830do
831  eval ac_val=$`echo $ac_var`
832  case $ac_val in
833    [\\/$]* | ?:[\\/]* ) ;;
834    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835   { (exit 1); exit 1; }; };;
836  esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848  if test "x$build_alias" = x; then
849    cross_compiling=maybe
850    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851    If a cross compiler is detected then cross compile mode will be used." >&2
852  elif test "x$build_alias" != "x$host_alias"; then
853    cross_compiling=yes
854  fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865  ac_srcdir_defaulted=yes
866  # Try the directory containing this script, then its parent.
867  ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869         X"$0" : 'X\(//\)[^/]' \| \
870         X"$0" : 'X\(//\)$' \| \
871         X"$0" : 'X\(/\)' \| \
872         .     : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876          /^X\(\/\/\)$/{ s//\1/; q; }
877          /^X\(\/\).*/{ s//\1/; q; }
878          s/.*/./; q'`
879  srcdir=$ac_confdir
880  if test ! -r $srcdir/$ac_unique_file; then
881    srcdir=..
882  fi
883else
884  ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887  if test "$ac_srcdir_defaulted" = yes; then
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889   { (exit 1); exit 1; }; }
890  else
891    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892   { (exit 1); exit 1; }; }
893  fi
894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897   { (exit 1); exit 1; }; }
898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CXX_set=${CXX+set}
912ac_env_CXX_value=$CXX
913ac_cv_env_CXX_set=${CXX+set}
914ac_cv_env_CXX_value=$CXX
915ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_env_CXXFLAGS_value=$CXXFLAGS
917ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CC_set=${CC+set}
928ac_env_CC_value=$CC
929ac_cv_env_CC_set=${CC+set}
930ac_cv_env_CC_value=$CC
931ac_env_CFLAGS_set=${CFLAGS+set}
932ac_env_CFLAGS_value=$CFLAGS
933ac_cv_env_CFLAGS_set=${CFLAGS+set}
934ac_cv_env_CFLAGS_value=$CFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
951
952#
953# Report the --help message.
954#
955if test "$ac_init_help" = "long"; then
956  # Omit some internal or obsolete options to make the list less imposing.
957  # This message is too long to be a string in the A/UX 3.1 sh.
958  cat <<_ACEOF
959\`configure' configures adolc 2.0.0-trunk to adapt to many kinds of systems.
960
961Usage: $0 [OPTION]... [VAR=VALUE]...
962
963To assign environment variables (e.g., CC, CFLAGS...), specify them as
964VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966Defaults for the options are specified in brackets.
967
968Configuration:
969  -h, --help              display this help and exit
970      --help=short        display options specific to this package
971      --help=recursive    display the short help of all the included packages
972  -V, --version           display version information and exit
973  -q, --quiet, --silent   do not print \`checking...' messages
974      --cache-file=FILE   cache test results in FILE [disabled]
975  -C, --config-cache      alias for \`--cache-file=config.cache'
976  -n, --no-create         do not create output files
977      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979_ACEOF
980
981  cat <<_ACEOF
982Installation directories:
983  --prefix=PREFIX         install architecture-independent files in PREFIX
984                          [$ac_default_prefix]
985  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                          [PREFIX]
987
988By default, \`make install' will install all the files in
989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991for instance \`--prefix=\$HOME'.
992
993For better control, use the options below.
994
995Fine tuning of the installation directories:
996  --bindir=DIR           user executables [EPREFIX/bin]
997  --sbindir=DIR          system admin executables [EPREFIX/sbin]
998  --libexecdir=DIR       program executables [EPREFIX/libexec]
999  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003  --libdir=DIR           object code libraries [EPREFIX/lib]
1004  --includedir=DIR       C header files [PREFIX/include]
1005  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006  --infodir=DIR          info documentation [PREFIX/info]
1007  --mandir=DIR           man documentation [PREFIX/man]
1008_ACEOF
1009
1010  cat <<\_ACEOF
1011
1012Program names:
1013  --program-prefix=PREFIX            prepend PREFIX to installed program names
1014  --program-suffix=SUFFIX            append SUFFIX to installed program names
1015  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1016
1017System types:
1018  --build=BUILD     configure for building on BUILD [guessed]
1019  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020_ACEOF
1021fi
1022
1023if test -n "$ac_init_help"; then
1024  case $ac_init_help in
1025     short | recursive ) echo "Configuration of adolc 2.0.0-trunk:";;
1026   esac
1027  cat <<\_ACEOF
1028
1029Optional Features:
1030  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032  --disable-dependency-tracking  speeds up one-time build
1033  --enable-dependency-tracking   do not reject slow dependency extractors
1034  --enable-shared[=PKGS]
1035                          build shared libraries [default=yes]
1036  --enable-static[=PKGS]
1037                          build static libraries [default=yes]
1038  --enable-fast-install[=PKGS]
1039                          optimize for fast installation [default=yes]
1040  --disable-libtool-lock  avoid locking (might break parallel builds)
1041
1042  --enable-debug          enable ADOL-C debug mode [default=no]
1043
1044  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1045
1046  --enable-stdczero       adouble standard constructor zeros value (at the
1047                          cost of performance) [default=no]
1048
1049  --enable-tserrno        use errno as thread number cache [default=no]
1050
1051  --enable-safe-extern    backup all adoubles before calling an external
1052                          function [default=no]
1053
1054Optional Packages:
1055  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058  --with-pic              try to use only PIC/non-PIC objects [default=use
1059                          both]
1060  --with-tags[=TAGS]
1061                          include additional configurations [automatic]
1062
1063  --with-sparse           build sparse drivers [default=no]
1064
1065  --with-docexa           build documented examples [default=no]
1066  --with-addexa           build additional examples [default=no]
1067  --with-parexa           build parallel example [default=no], if yes
1068                          -with-openmp-flag=FLAG required
1069  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1070                          [default=none]
1071  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O3 -Wall -ansi)
1072  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O3 -Wall)
1073
1074Some influential environment variables:
1075  CXX         C++ compiler command
1076  CXXFLAGS    C++ compiler flags
1077  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1078              nonstandard directory <lib dir>
1079  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1080              headers in a nonstandard directory <include dir>
1081  CC          C compiler command
1082  CFLAGS      C compiler flags
1083  CPP         C preprocessor
1084  CXXCPP      C++ preprocessor
1085  F77         Fortran 77 compiler command
1086  FFLAGS      Fortran 77 compiler flags
1087
1088Use these variables to override the choices made by `configure' or to help
1089it to find libraries and programs with nonstandard names/locations.
1090
1091Report bugs to <adol-c@tu-dresden.de>.
1092_ACEOF
1093fi
1094
1095if test "$ac_init_help" = "recursive"; then
1096  # If there are subdirs, report their specific --help.
1097  ac_popdir=`pwd`
1098  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1099    test -d $ac_dir || continue
1100    ac_builddir=.
1101
1102if test "$ac_dir" != .; then
1103  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1104  # A "../" for each directory in $ac_dir_suffix.
1105  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1106else
1107  ac_dir_suffix= ac_top_builddir=
1108fi
1109
1110case $srcdir in
1111  .)  # No --srcdir option.  We are building in place.
1112    ac_srcdir=.
1113    if test -z "$ac_top_builddir"; then
1114       ac_top_srcdir=.
1115    else
1116       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1117    fi ;;
1118  [\\/]* | ?:[\\/]* )  # Absolute path.
1119    ac_srcdir=$srcdir$ac_dir_suffix;
1120    ac_top_srcdir=$srcdir ;;
1121  *) # Relative path.
1122    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1123    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1124esac
1125
1126# Do not use `cd foo && pwd` to compute absolute paths, because
1127# the directories may not exist.
1128case `pwd` in
1129.) ac_abs_builddir="$ac_dir";;
1130*)
1131  case "$ac_dir" in
1132  .) ac_abs_builddir=`pwd`;;
1133  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1134  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1135  esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_top_builddir=${ac_top_builddir}.;;
1139*)
1140  case ${ac_top_builddir}. in
1141  .) ac_abs_top_builddir=$ac_abs_builddir;;
1142  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1143  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1144  esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_srcdir=$ac_srcdir;;
1148*)
1149  case $ac_srcdir in
1150  .) ac_abs_srcdir=$ac_abs_builddir;;
1151  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1152  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1153  esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_top_srcdir=$ac_top_srcdir;;
1157*)
1158  case $ac_top_srcdir in
1159  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1160  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1161  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1162  esac;;
1163esac
1164
1165    cd $ac_dir
1166    # Check for guested configure; otherwise get Cygnus style configure.
1167    if test -f $ac_srcdir/configure.gnu; then
1168      echo
1169      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1170    elif test -f $ac_srcdir/configure; then
1171      echo
1172      $SHELL $ac_srcdir/configure  --help=recursive
1173    elif test -f $ac_srcdir/configure.ac ||
1174           test -f $ac_srcdir/configure.in; then
1175      echo
1176      $ac_configure --help
1177    else
1178      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179    fi
1180    cd $ac_popdir
1181  done
1182fi
1183
1184test -n "$ac_init_help" && exit 0
1185if $ac_init_version; then
1186  cat <<\_ACEOF
1187adolc configure 2.0.0-trunk
1188generated by GNU Autoconf 2.59
1189
1190Copyright (C) 2003 Free Software Foundation, Inc.
1191This configure script is free software; the Free Software Foundation
1192gives unlimited permission to copy, distribute and modify it.
1193_ACEOF
1194  exit 0
1195fi
1196exec 5>config.log
1197cat >&5 <<_ACEOF
1198This file contains any messages produced by compilers while
1199running configure, to aid debugging if configure makes a mistake.
1200
1201It was created by adolc $as_me 2.0.0-trunk, which was
1202generated by GNU Autoconf 2.59.  Invocation command line was
1203
1204  $ $0 $@
1205
1206_ACEOF
1207{
1208cat <<_ASUNAME
1209## --------- ##
1210## Platform. ##
1211## --------- ##
1212
1213hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1214uname -m = `(uname -m) 2>/dev/null || echo unknown`
1215uname -r = `(uname -r) 2>/dev/null || echo unknown`
1216uname -s = `(uname -s) 2>/dev/null || echo unknown`
1217uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218
1219/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1220/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1221
1222/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1223/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1224/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1225hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1226/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1227/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1228/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1229
1230_ASUNAME
1231
1232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1233for as_dir in $PATH
1234do
1235  IFS=$as_save_IFS
1236  test -z "$as_dir" && as_dir=.
1237  echo "PATH: $as_dir"
1238done
1239
1240} >&5
1241
1242cat >&5 <<_ACEOF
1243
1244
1245## ----------- ##
1246## Core tests. ##
1247## ----------- ##
1248
1249_ACEOF
1250
1251
1252# Keep a trace of the command line.
1253# Strip out --no-create and --no-recursion so they do not pile up.
1254# Strip out --silent because we don't want to record it for future runs.
1255# Also quote any args containing shell meta-characters.
1256# Make two passes to allow for proper duplicate-argument suppression.
1257ac_configure_args=
1258ac_configure_args0=
1259ac_configure_args1=
1260ac_sep=
1261ac_must_keep_next=false
1262for ac_pass in 1 2
1263do
1264  for ac_arg
1265  do
1266    case $ac_arg in
1267    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1268    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269    | -silent | --silent | --silen | --sile | --sil)
1270      continue ;;
1271    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1273    esac
1274    case $ac_pass in
1275    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276    2)
1277      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1278      if test $ac_must_keep_next = true; then
1279        ac_must_keep_next=false # Got value, back to normal.
1280      else
1281        case $ac_arg in
1282          *=* | --config-cache | -C | -disable-* | --disable-* \
1283          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1284          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1285          | -with-* | --with-* | -without-* | --without-* | --x)
1286            case "$ac_configure_args0 " in
1287              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1288            esac
1289            ;;
1290          -* ) ac_must_keep_next=true ;;
1291        esac
1292      fi
1293      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1294      # Get rid of the leading space.
1295      ac_sep=" "
1296      ;;
1297    esac
1298  done
1299done
1300$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1301$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302
1303# When interrupted or exit'd, cleanup temporary files, and complete
1304# config.log.  We remove comments because anyway the quotes in there
1305# would cause problems or look ugly.
1306# WARNING: Be sure not to use single quotes in there, as some shells,
1307# such as our DU 5.0 friend, will then `close' the trap.
1308trap 'exit_status=$?
1309  # Save into config.log some information that might help in debugging.
1310  {
1311    echo
1312
1313    cat <<\_ASBOX
1314## ---------------- ##
1315## Cache variables. ##
1316## ---------------- ##
1317_ASBOX
1318    echo
1319    # The following way of writing the cache mishandles newlines in values,
1320{
1321  (set) 2>&1 |
1322    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1323    *ac_space=\ *)
1324      sed -n \
1325        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1326          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1327      ;;
1328    *)
1329      sed -n \
1330        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331      ;;
1332    esac;
1333}
1334    echo
1335
1336    cat <<\_ASBOX
1337## ----------------- ##
1338## Output variables. ##
1339## ----------------- ##
1340_ASBOX
1341    echo
1342    for ac_var in $ac_subst_vars
1343    do
1344      eval ac_val=$`echo $ac_var`
1345      echo "$ac_var='"'"'$ac_val'"'"'"
1346    done | sort
1347    echo
1348
1349    if test -n "$ac_subst_files"; then
1350      cat <<\_ASBOX
1351## ------------- ##
1352## Output files. ##
1353## ------------- ##
1354_ASBOX
1355      echo
1356      for ac_var in $ac_subst_files
1357      do
1358        eval ac_val=$`echo $ac_var`
1359        echo "$ac_var='"'"'$ac_val'"'"'"
1360      done | sort
1361      echo
1362    fi
1363
1364    if test -s confdefs.h; then
1365      cat <<\_ASBOX
1366## ----------- ##
1367## confdefs.h. ##
1368## ----------- ##
1369_ASBOX
1370      echo
1371      sed "/^$/d" confdefs.h | sort
1372      echo
1373    fi
1374    test "$ac_signal" != 0 &&
1375      echo "$as_me: caught signal $ac_signal"
1376    echo "$as_me: exit $exit_status"
1377  } >&5
1378  rm -f core *.core &&
1379  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1380    exit $exit_status
1381     ' 0
1382for ac_signal in 1 2 13 15; do
1383  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1384done
1385ac_signal=0
1386
1387# confdefs.h avoids OS command line length limits that DEFS can exceed.
1388rm -rf conftest* confdefs.h
1389# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1390echo >confdefs.h
1391
1392# Predefined preprocessor variables.
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_NAME "$PACKAGE_NAME"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_VERSION "$PACKAGE_VERSION"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_STRING "$PACKAGE_STRING"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1416_ACEOF
1417
1418
1419# Let the site file select an alternate cache file if it wants to.
1420# Prefer explicitly selected file to automatically selected ones.
1421if test -z "$CONFIG_SITE"; then
1422  if test "x$prefix" != xNONE; then
1423    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1424  else
1425    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426  fi
1427fi
1428for ac_site_file in $CONFIG_SITE; do
1429  if test -r "$ac_site_file"; then
1430    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1431echo "$as_me: loading site script $ac_site_file" >&6;}
1432    sed 's/^/| /' "$ac_site_file" >&5
1433    . "$ac_site_file"
1434  fi
1435done
1436
1437if test -r "$cache_file"; then
1438  # Some versions of bash will fail to source /dev/null (special
1439  # files actually), so we avoid doing that.
1440  if test -f "$cache_file"; then
1441    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1442echo "$as_me: loading cache $cache_file" >&6;}
1443    case $cache_file in
1444      [\\/]* | ?:[\\/]* ) . $cache_file;;
1445      *)                      . ./$cache_file;;
1446    esac
1447  fi
1448else
1449  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1450echo "$as_me: creating cache $cache_file" >&6;}
1451  >$cache_file
1452fi
1453
1454# Check that the precious variables saved in the cache have kept the same
1455# value.
1456ac_cache_corrupted=false
1457for ac_var in `(set) 2>&1 |
1458               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1459  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460  eval ac_new_set=\$ac_env_${ac_var}_set
1461  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462  eval ac_new_val="\$ac_env_${ac_var}_value"
1463  case $ac_old_set,$ac_new_set in
1464    set,)
1465      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467      ac_cache_corrupted=: ;;
1468    ,set)
1469      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471      ac_cache_corrupted=: ;;
1472    ,);;
1473    *)
1474      if test "x$ac_old_val" != "x$ac_new_val"; then
1475        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1476echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1477        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1478echo "$as_me:   former value:  $ac_old_val" >&2;}
1479        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1480echo "$as_me:   current value: $ac_new_val" >&2;}
1481        ac_cache_corrupted=:
1482      fi;;
1483  esac
1484  # Pass precious variables to config.status.
1485  if test "$ac_new_set" = set; then
1486    case $ac_new_val in
1487    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489    *) ac_arg=$ac_var=$ac_new_val ;;
1490    esac
1491    case " $ac_configure_args " in
1492      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1493      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494    esac
1495  fi
1496done
1497if $ac_cache_corrupted; then
1498  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502   { (exit 1); exit 1; }; }
1503fi
1504
1505ac_ext=c
1506ac_cpp='$CPP $CPPFLAGS'
1507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539ac_aux_dir=
1540for ac_dir in autoconf $srcdir/autoconf; do
1541  if test -f $ac_dir/install-sh; then
1542    ac_aux_dir=$ac_dir
1543    ac_install_sh="$ac_aux_dir/install-sh -c"
1544    break
1545  elif test -f $ac_dir/install.sh; then
1546    ac_aux_dir=$ac_dir
1547    ac_install_sh="$ac_aux_dir/install.sh -c"
1548    break
1549  elif test -f $ac_dir/shtool; then
1550    ac_aux_dir=$ac_dir
1551    ac_install_sh="$ac_aux_dir/shtool install -c"
1552    break
1553  fi
1554done
1555if test -z "$ac_aux_dir"; then
1556  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1557echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1558   { (exit 1); exit 1; }; }
1559fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
1564          ac_config_headers="$ac_config_headers adolc/config.h"
1565
1566
1567am__api_version="1.9"
1568# Find a good install program.  We prefer a C program (faster),
1569# so one script is as good as another.  But avoid the broken or
1570# incompatible versions:
1571# SysV /etc/install, /usr/sbin/install
1572# SunOS /usr/etc/install
1573# IRIX /sbin/install
1574# AIX /bin/install
1575# AmigaOS /C/install, which installs bootblocks on floppy discs
1576# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579# OS/2's system install, which has a completely different semantic
1580# ./install, which can be erroneously created by make from ./install.sh.
1581echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1582echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1583if test -z "$INSTALL"; then
1584if test "${ac_cv_path_install+set}" = set; then
1585  echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588for as_dir in $PATH
1589do
1590  IFS=$as_save_IFS
1591  test -z "$as_dir" && as_dir=.
1592  # Account for people who put trailing slashes in PATH elements.
1593case $as_dir/ in
1594  ./ | .// | /cC/* | \
1595  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1596  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1597  /usr/ucb/* ) ;;
1598  *)
1599    # OSF1 and SCO ODT 3.0 have their own names for install.
1600    # Don't use installbsd from OSF since it installs stuff as root
1601    # by default.
1602    for ac_prog in ginstall scoinst install; do
1603      for ac_exec_ext in '' $ac_executable_extensions; do
1604        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1605          if test $ac_prog = install &&
1606            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1607            # AIX install.  It has an incompatible calling convention.
1608            :
1609          elif test $ac_prog = install &&
1610            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1611            # program-specific install script used by HP pwplus--don't use.
1612            :
1613          else
1614            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1615            break 3
1616          fi
1617        fi
1618      done
1619    done
1620    ;;
1621esac
1622done
1623
1624
1625fi
1626  if test "${ac_cv_path_install+set}" = set; then
1627    INSTALL=$ac_cv_path_install
1628  else
1629    # As a last resort, use the slow shell script.  We don't cache a
1630    # path for INSTALL within a source directory, because that will
1631    # break other packages using the cache if that directory is
1632    # removed, or if the path is relative.
1633    INSTALL=$ac_install_sh
1634  fi
1635fi
1636echo "$as_me:$LINENO: result: $INSTALL" >&5
1637echo "${ECHO_T}$INSTALL" >&6
1638
1639# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1640# It thinks the first close brace ends the variable substitution.
1641test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1642
1643test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1644
1645test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1646
1647echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1648echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1649# Just in case
1650sleep 1
1651echo timestamp > conftest.file
1652# Do `set' in a subshell so we don't clobber the current shell's
1653# arguments.  Must try -L first in case configure is actually a
1654# symlink; some systems play weird games with the mod time of symlinks
1655# (eg FreeBSD returns the mod time of the symlink's containing
1656# directory).
1657if (
1658   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1659   if test "$*" = "X"; then
1660      # -L didn't work.
1661      set X `ls -t $srcdir/configure conftest.file`
1662   fi
1663   rm -f conftest.file
1664   if test "$*" != "X $srcdir/configure conftest.file" \
1665      && test "$*" != "X conftest.file $srcdir/configure"; then
1666
1667      # If neither matched, then we have a broken ls.  This can happen
1668      # if, for instance, CONFIG_SHELL is bash and it inherits a
1669      # broken ls alias from the environment.  This has actually
1670      # happened.  Such a system could not be considered "sane".
1671      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1672alias in your environment" >&5
1673echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1674alias in your environment" >&2;}
1675   { (exit 1); exit 1; }; }
1676   fi
1677
1678   test "$2" = conftest.file
1679   )
1680then
1681   # Ok.
1682   :
1683else
1684   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1685Check your system clock" >&5
1686echo "$as_me: error: newly created file is older than distributed files!
1687Check your system clock" >&2;}
1688   { (exit 1); exit 1; }; }
1689fi
1690echo "$as_me:$LINENO: result: yes" >&5
1691echo "${ECHO_T}yes" >&6
1692test "$program_prefix" != NONE &&
1693  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1694# Use a double $ so make ignores it.
1695test "$program_suffix" != NONE &&
1696  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1697# Double any \ or $.  echo might interpret backslashes.
1698# By default was `s,x,x', remove it if useless.
1699cat <<\_ACEOF >conftest.sed
1700s/[\\$]/&&/g;s/;s,x,x,$//
1701_ACEOF
1702program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1703rm conftest.sed
1704
1705# expand $ac_aux_dir to an absolute path
1706am_aux_dir=`cd $ac_aux_dir && pwd`
1707
1708test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1709# Use eval to expand $SHELL
1710if eval "$MISSING --run true"; then
1711  am_missing_run="$MISSING --run "
1712else
1713  am_missing_run=
1714  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1715echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1716fi
1717
1718if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1719  # We used to keeping the `.' as first argument, in order to
1720  # allow $(mkdir_p) to be used without argument.  As in
1721  #   $(mkdir_p) $(somedir)
1722  # where $(somedir) is conditionally defined.  However this is wrong
1723  # for two reasons:
1724  #  1. if the package is installed by a user who cannot write `.'
1725  #     make install will fail,
1726  #  2. the above comment should most certainly read
1727  #     $(mkdir_p) $(DESTDIR)$(somedir)
1728  #     so it does not work when $(somedir) is undefined and
1729  #     $(DESTDIR) is not.
1730  #  To support the latter case, we have to write
1731  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1732  #  so the `.' trick is pointless.
1733  mkdir_p='mkdir -p --'
1734else
1735  # On NextStep and OpenStep, the `mkdir' command does not
1736  # recognize any option.  It will interpret all options as
1737  # directories to create, and then abort because `.' already
1738  # exists.
1739  for d in ./-p ./--version;
1740  do
1741    test -d $d && rmdir $d
1742  done
1743  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1744  if test -f "$ac_aux_dir/mkinstalldirs"; then
1745    mkdir_p='$(mkinstalldirs)'
1746  else
1747    mkdir_p='$(install_sh) -d'
1748  fi
1749fi
1750
1751for ac_prog in gawk mawk nawk awk
1752do
1753  # Extract the first word of "$ac_prog", so it can be a program name with args.
1754set dummy $ac_prog; ac_word=$2
1755echo "$as_me:$LINENO: checking for $ac_word" >&5
1756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757if test "${ac_cv_prog_AWK+set}" = set; then
1758  echo $ECHO_N "(cached) $ECHO_C" >&6
1759else
1760  if test -n "$AWK"; then
1761  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1762else
1763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764for as_dir in $PATH
1765do
1766  IFS=$as_save_IFS
1767  test -z "$as_dir" && as_dir=.
1768  for ac_exec_ext in '' $ac_executable_extensions; do
1769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770    ac_cv_prog_AWK="$ac_prog"
1771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772    break 2
1773  fi
1774done
1775done
1776
1777fi
1778fi
1779AWK=$ac_cv_prog_AWK
1780if test -n "$AWK"; then
1781  echo "$as_me:$LINENO: result: $AWK" >&5
1782echo "${ECHO_T}$AWK" >&6
1783else
1784  echo "$as_me:$LINENO: result: no" >&5
1785echo "${ECHO_T}no" >&6
1786fi
1787
1788  test -n "$AWK" && break
1789done
1790
1791echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1792echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1793set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1794if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1795  echo $ECHO_N "(cached) $ECHO_C" >&6
1796else
1797  cat >conftest.make <<\_ACEOF
1798all:
1799        @echo 'ac_maketemp="$(MAKE)"'
1800_ACEOF
1801# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1802eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1803if test -n "$ac_maketemp"; then
1804  eval ac_cv_prog_make_${ac_make}_set=yes
1805else
1806  eval ac_cv_prog_make_${ac_make}_set=no
1807fi
1808rm -f conftest.make
1809fi
1810if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1811  echo "$as_me:$LINENO: result: yes" >&5
1812echo "${ECHO_T}yes" >&6
1813  SET_MAKE=
1814else
1815  echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
1817  SET_MAKE="MAKE=${MAKE-make}"
1818fi
1819
1820rm -rf .tst 2>/dev/null
1821mkdir .tst 2>/dev/null
1822if test -d .tst; then
1823  am__leading_dot=.
1824else
1825  am__leading_dot=_
1826fi
1827rmdir .tst 2>/dev/null
1828
1829# test to see if srcdir already configured
1830if test "`cd $srcdir && pwd`" != "`pwd`" &&
1831   test -f $srcdir/config.status; then
1832  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1833echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1834   { (exit 1); exit 1; }; }
1835fi
1836
1837# test whether we have cygpath
1838if test -z "$CYGPATH_W"; then
1839  if (cygpath --version) >/dev/null 2>/dev/null; then
1840    CYGPATH_W='cygpath -w'
1841  else
1842    CYGPATH_W=echo
1843  fi
1844fi
1845
1846
1847# Define the identity of the package.
1848 PACKAGE='adolc'
1849 VERSION='2.0.0-trunk'
1850
1851
1852cat >>confdefs.h <<_ACEOF
1853#define PACKAGE "$PACKAGE"
1854_ACEOF
1855
1856
1857cat >>confdefs.h <<_ACEOF
1858#define VERSION "$VERSION"
1859_ACEOF
1860
1861# Some tools Automake needs.
1862
1863ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1864
1865
1866AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1867
1868
1869AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1870
1871
1872AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1873
1874
1875MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1876
1877install_sh=${install_sh-"$am_aux_dir/install-sh"}
1878
1879# Installed binaries are usually stripped using `strip' when the user
1880# run `make install-strip'.  However `strip' might not be the right
1881# tool to use in cross-compilation environments, therefore Automake
1882# will honor the `STRIP' environment variable to overrule this program.
1883if test "$cross_compiling" != no; then
1884  if test -n "$ac_tool_prefix"; then
1885  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1886set dummy ${ac_tool_prefix}strip; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_STRIP+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$STRIP"; then
1893  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900  for ac_exec_ext in '' $ac_executable_extensions; do
1901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904    break 2
1905  fi
1906done
1907done
1908
1909fi
1910fi
1911STRIP=$ac_cv_prog_STRIP
1912if test -n "$STRIP"; then
1913  echo "$as_me:$LINENO: result: $STRIP" >&5
1914echo "${ECHO_T}$STRIP" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920fi
1921if test -z "$ac_cv_prog_STRIP"; then
1922  ac_ct_STRIP=$STRIP
1923  # Extract the first word of "strip", so it can be a program name with args.
1924set dummy strip; ac_word=$2
1925echo "$as_me:$LINENO: checking for $ac_word" >&5
1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1928  echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930  if test -n "$ac_ct_STRIP"; then
1931  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1932else
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938  for ac_exec_ext in '' $ac_executable_extensions; do
1939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940    ac_cv_prog_ac_ct_STRIP="strip"
1941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942    break 2
1943  fi
1944done
1945done
1946
1947  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1948fi
1949fi
1950ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1951if test -n "$ac_ct_STRIP"; then
1952  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1953echo "${ECHO_T}$ac_ct_STRIP" >&6
1954else
1955  echo "$as_me:$LINENO: result: no" >&5
1956echo "${ECHO_T}no" >&6
1957fi
1958
1959  STRIP=$ac_ct_STRIP
1960else
1961  STRIP="$ac_cv_prog_STRIP"
1962fi
1963
1964fi
1965INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1966
1967# We need awk for the "check" target.  The system "awk" is bad on
1968# some platforms.
1969# Always define AMTAR for backward compatibility.
1970
1971AMTAR=${AMTAR-"${am_missing_run}tar"}
1972
1973am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1974
1975
1976
1977
1978
1979
1980# checks for programs
1981ac_ext=cc
1982ac_cpp='$CXXCPP $CPPFLAGS'
1983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1986if test -n "$ac_tool_prefix"; then
1987  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1988  do
1989    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1991echo "$as_me:$LINENO: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993if test "${ac_cv_prog_CXX+set}" = set; then
1994  echo $ECHO_N "(cached) $ECHO_C" >&6
1995else
1996  if test -n "$CXX"; then
1997  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1998else
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002  IFS=$as_save_IFS
2003  test -z "$as_dir" && as_dir=.
2004  for ac_exec_ext in '' $ac_executable_extensions; do
2005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008    break 2
2009  fi
2010done
2011done
2012
2013fi
2014fi
2015CXX=$ac_cv_prog_CXX
2016if test -n "$CXX"; then
2017  echo "$as_me:$LINENO: result: $CXX" >&5
2018echo "${ECHO_T}$CXX" >&6
2019else
2020  echo "$as_me:$LINENO: result: no" >&5
2021echo "${ECHO_T}no" >&6
2022fi
2023
2024    test -n "$CXX" && break
2025  done
2026fi
2027if test -z "$CXX"; then
2028  ac_ct_CXX=$CXX
2029  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2030do
2031  # Extract the first word of "$ac_prog", so it can be a program name with args.
2032set dummy $ac_prog; ac_word=$2
2033echo "$as_me:$LINENO: checking for $ac_word" >&5
2034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2036  echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038  if test -n "$ac_ct_CXX"; then
2039  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2040else
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044  IFS=$as_save_IFS
2045  test -z "$as_dir" && as_dir=.
2046  for ac_exec_ext in '' $ac_executable_extensions; do
2047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048    ac_cv_prog_ac_ct_CXX="$ac_prog"
2049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050    break 2
2051  fi
2052done
2053done
2054
2055fi
2056fi
2057ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2058if test -n "$ac_ct_CXX"; then
2059  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2060echo "${ECHO_T}$ac_ct_CXX" >&6
2061else
2062  echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6
2064fi
2065
2066  test -n "$ac_ct_CXX" && break
2067done
2068test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2069
2070  CXX=$ac_ct_CXX
2071fi
2072
2073
2074# Provide some information about the compiler.
2075echo "$as_me:$LINENO:" \
2076     "checking for C++ compiler version" >&5
2077ac_compiler=`set X $ac_compile; echo $2`
2078{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2079  (eval $ac_compiler --version </dev/null >&5) 2>&5
2080  ac_status=$?
2081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082  (exit $ac_status); }
2083{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2084  (eval $ac_compiler -v </dev/null >&5) 2>&5
2085  ac_status=$?
2086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087  (exit $ac_status); }
2088{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2089  (eval $ac_compiler -V </dev/null >&5) 2>&5
2090  ac_status=$?
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); }
2093
2094cat >conftest.$ac_ext <<_ACEOF
2095/* confdefs.h.  */
2096_ACEOF
2097cat confdefs.h >>conftest.$ac_ext
2098cat >>conftest.$ac_ext <<_ACEOF
2099/* end confdefs.h.  */
2100
2101int
2102main ()
2103{
2104
2105  ;
2106  return 0;
2107}
2108_ACEOF
2109ac_clean_files_save=$ac_clean_files
2110ac_clean_files="$ac_clean_files a.out a.exe b.out"
2111# Try to create an executable without -o first, disregard a.out.
2112# It will help us diagnose broken compilers, and finding out an intuition
2113# of exeext.
2114echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2115echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2116ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2117if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2118  (eval $ac_link_default) 2>&5
2119  ac_status=$?
2120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121  (exit $ac_status); }; then
2122  # Find the output, starting from the most likely.  This scheme is
2123# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2124# resort.
2125
2126# Be careful to initialize this variable, since it used to be cached.
2127# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2128ac_cv_exeext=
2129# b.out is created by i960 compilers.
2130for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2131do
2132  test -f "$ac_file" || continue
2133  case $ac_file in
2134    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2135        ;;
2136    conftest.$ac_ext )
2137        # This is the source file.
2138        ;;
2139    [ab].out )
2140        # We found the default executable, but exeext='' is most
2141        # certainly right.
2142        break;;
2143    *.* )
2144        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2145        # FIXME: I believe we export ac_cv_exeext for Libtool,
2146        # but it would be cool to find out if it's true.  Does anybody
2147        # maintain Libtool? --akim.
2148        export ac_cv_exeext
2149        break;;
2150    * )
2151        break;;
2152  esac
2153done
2154else
2155  echo "$as_me: failed program was:" >&5
2156sed 's/^/| /' conftest.$ac_ext >&5
2157
2158{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2159See \`config.log' for more details." >&5
2160echo "$as_me: error: C++ compiler cannot create executables
2161See \`config.log' for more details." >&2;}
2162   { (exit 77); exit 77; }; }
2163fi
2164
2165ac_exeext=$ac_cv_exeext
2166echo "$as_me:$LINENO: result: $ac_file" >&5
2167echo "${ECHO_T}$ac_file" >&6
2168
2169# Check the compiler produces executables we can run.  If not, either
2170# the compiler is broken, or we cross compile.
2171echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2172echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2173# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2174# If not cross compiling, check that we can run a simple program.
2175if test "$cross_compiling" != yes; then
2176  if { ac_try='./$ac_file'
2177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178  (eval $ac_try) 2>&5
2179  ac_status=$?
2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181  (exit $ac_status); }; }; then
2182    cross_compiling=no
2183  else
2184    if test "$cross_compiling" = maybe; then
2185        cross_compiling=yes
2186    else
2187        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2188If you meant to cross compile, use \`--host'.
2189See \`config.log' for more details." >&5
2190echo "$as_me: error: cannot run C++ compiled programs.
2191If you meant to cross compile, use \`--host'.
2192See \`config.log' for more details." >&2;}
2193   { (exit 1); exit 1; }; }
2194    fi
2195  fi
2196fi
2197echo "$as_me:$LINENO: result: yes" >&5
2198echo "${ECHO_T}yes" >&6
2199
2200rm -f a.out a.exe conftest$ac_cv_exeext b.out
2201ac_clean_files=$ac_clean_files_save
2202# Check the compiler produces executables we can run.  If not, either
2203# the compiler is broken, or we cross compile.
2204echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2205echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2206echo "$as_me:$LINENO: result: $cross_compiling" >&5
2207echo "${ECHO_T}$cross_compiling" >&6
2208
2209echo "$as_me:$LINENO: checking for suffix of executables" >&5
2210echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2212  (eval $ac_link) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; then
2216  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2217# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2218# work properly (i.e., refer to `conftest.exe'), while it won't with
2219# `rm'.
2220for ac_file in conftest.exe conftest conftest.*; do
2221  test -f "$ac_file" || continue
2222  case $ac_file in
2223    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2224    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225          export ac_cv_exeext
2226          break;;
2227    * ) break;;
2228  esac
2229done
2230else
2231  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2234See \`config.log' for more details." >&2;}
2235   { (exit 1); exit 1; }; }
2236fi
2237
2238rm -f conftest$ac_cv_exeext
2239echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2240echo "${ECHO_T}$ac_cv_exeext" >&6
2241
2242rm -f conftest.$ac_ext
2243EXEEXT=$ac_cv_exeext
2244ac_exeext=$EXEEXT
2245echo "$as_me:$LINENO: checking for suffix of object files" >&5
2246echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2247if test "${ac_cv_objext+set}" = set; then
2248  echo $ECHO_N "(cached) $ECHO_C" >&6
2249else
2250  cat >conftest.$ac_ext <<_ACEOF
2251/* confdefs.h.  */
2252_ACEOF
2253cat confdefs.h >>conftest.$ac_ext
2254cat >>conftest.$ac_ext <<_ACEOF
2255/* end confdefs.h.  */
2256
2257int
2258main ()
2259{
2260
2261  ;
2262  return 0;
2263}
2264_ACEOF
2265rm -f conftest.o conftest.obj
2266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267  (eval $ac_compile) 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }; then
2271  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2272  case $ac_file in
2273    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2274    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2275       break;;
2276  esac
2277done
2278else
2279  echo "$as_me: failed program was:" >&5
2280sed 's/^/| /' conftest.$ac_ext >&5
2281
2282{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2283See \`config.log' for more details." >&5
2284echo "$as_me: error: cannot compute suffix of object files: cannot compile
2285See \`config.log' for more details." >&2;}
2286   { (exit 1); exit 1; }; }
2287fi
2288
2289rm -f conftest.$ac_cv_objext conftest.$ac_ext
2290fi
2291echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2292echo "${ECHO_T}$ac_cv_objext" >&6
2293OBJEXT=$ac_cv_objext
2294ac_objext=$OBJEXT
2295echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2296echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2297if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2298  echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300  cat >conftest.$ac_ext <<_ACEOF
2301/* confdefs.h.  */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
2305/* end confdefs.h.  */
2306
2307int
2308main ()
2309{
2310#ifndef __GNUC__
2311       choke me
2312#endif
2313
2314  ;
2315  return 0;
2316}
2317_ACEOF
2318rm -f conftest.$ac_objext
2319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320  (eval $ac_compile) 2>conftest.er1
2321  ac_status=$?
2322  grep -v '^ *+' conftest.er1 >conftest.err
2323  rm -f conftest.er1
2324  cat conftest.err >&5
2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); } &&
2327         { ac_try='test -z "$ac_cxx_werror_flag"
2328                         || test ! -s conftest.err'
2329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330  (eval $ac_try) 2>&5
2331  ac_status=$?
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); }; } &&
2334         { ac_try='test -s conftest.$ac_objext'
2335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336  (eval $ac_try) 2>&5
2337  ac_status=$?
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); }; }; then
2340  ac_compiler_gnu=yes
2341else
2342  echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345ac_compiler_gnu=no
2346fi
2347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2349
2350fi
2351echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2352echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2353GXX=`test $ac_compiler_gnu = yes && echo yes`
2354ac_test_CXXFLAGS=${CXXFLAGS+set}
2355ac_save_CXXFLAGS=$CXXFLAGS
2356CXXFLAGS="-g"
2357echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2358echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2359if test "${ac_cv_prog_cxx_g+set}" = set; then
2360  echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362  cat >conftest.$ac_ext <<_ACEOF
2363/* confdefs.h.  */
2364_ACEOF
2365cat confdefs.h >>conftest.$ac_ext
2366cat >>conftest.$ac_ext <<_ACEOF
2367/* end confdefs.h.  */
2368
2369int
2370main ()
2371{
2372
2373  ;
2374  return 0;
2375}
2376_ACEOF
2377rm -f conftest.$ac_objext
2378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379  (eval $ac_compile) 2>conftest.er1
2380  ac_status=$?
2381  grep -v '^ *+' conftest.er1 >conftest.err
2382  rm -f conftest.er1
2383  cat conftest.err >&5
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); } &&
2386         { ac_try='test -z "$ac_cxx_werror_flag"
2387                         || test ! -s conftest.err'
2388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389  (eval $ac_try) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); }; } &&
2393         { ac_try='test -s conftest.$ac_objext'
2394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395  (eval $ac_try) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; }; then
2399  ac_cv_prog_cxx_g=yes
2400else
2401  echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404ac_cv_prog_cxx_g=no
2405fi
2406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407fi
2408echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2409echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2410if test "$ac_test_CXXFLAGS" = set; then
2411  CXXFLAGS=$ac_save_CXXFLAGS
2412elif test $ac_cv_prog_cxx_g = yes; then
2413  if test "$GXX" = yes; then
2414    CXXFLAGS="-g -O2"
2415  else
2416    CXXFLAGS="-g"
2417  fi
2418else
2419  if test "$GXX" = yes; then
2420    CXXFLAGS="-O2"
2421  else
2422    CXXFLAGS=
2423  fi
2424fi
2425for ac_declaration in \
2426   '' \
2427   'extern "C" void std::exit (int) throw (); using std::exit;' \
2428   'extern "C" void std::exit (int); using std::exit;' \
2429   'extern "C" void exit (int) throw ();' \
2430   'extern "C" void exit (int);' \
2431   'void exit (int);'
2432do
2433  cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h.  */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h.  */
2439$ac_declaration
2440#include <stdlib.h>
2441int
2442main ()
2443{
2444exit (42);
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451  (eval $ac_compile) 2>conftest.er1
2452  ac_status=$?
2453  grep -v '^ *+' conftest.er1 >conftest.err
2454  rm -f conftest.er1
2455  cat conftest.err >&5
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); } &&
2458         { ac_try='test -z "$ac_cxx_werror_flag"
2459                         || test ! -s conftest.err'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; } &&
2465         { ac_try='test -s conftest.$ac_objext'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; }; then
2471  :
2472else
2473  echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476continue
2477fi
2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479  cat >conftest.$ac_ext <<_ACEOF
2480/* confdefs.h.  */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h.  */
2485$ac_declaration
2486int
2487main ()
2488{
2489exit (42);
2490  ;
2491  return 0;
2492}
2493_ACEOF
2494rm -f conftest.$ac_objext
2495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496  (eval $ac_compile) 2>conftest.er1
2497  ac_status=$?
2498  grep -v '^ *+' conftest.er1 >conftest.err
2499  rm -f conftest.er1
2500  cat conftest.err >&5
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); } &&
2503         { ac_try='test -z "$ac_cxx_werror_flag"
2504                         || test ! -s conftest.err'
2505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506  (eval $ac_try) 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }; } &&
2510         { ac_try='test -s conftest.$ac_objext'
2511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512  (eval $ac_try) 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; }; then
2516  break
2517else
2518  echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521fi
2522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523done
2524rm -f conftest*
2525if test -n "$ac_declaration"; then
2526  echo '#ifdef __cplusplus' >>confdefs.h
2527  echo $ac_declaration      >>confdefs.h
2528  echo '#endif'             >>confdefs.h
2529fi
2530
2531ac_ext=c
2532ac_cpp='$CPP $CPPFLAGS'
2533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536DEPDIR="${am__leading_dot}deps"
2537
2538          ac_config_commands="$ac_config_commands depfiles"
2539
2540
2541am_make=${MAKE-make}
2542cat > confinc << 'END'
2543am__doit:
2544        @echo done
2545.PHONY: am__doit
2546END
2547# If we don't find an include directive, just comment out the code.
2548echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2549echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2550am__include="#"
2551am__quote=
2552_am_result=none
2553# First try GNU make style include.
2554echo "include confinc" > confmf
2555# We grep out `Entering directory' and `Leaving directory'
2556# messages which can occur if `w' ends up in MAKEFLAGS.
2557# In particular we don't look at `^make:' because GNU make might
2558# be invoked under some other name (usually "gmake"), in which
2559# case it prints its new name instead of `make'.
2560if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2561   am__include=include
2562   am__quote=
2563   _am_result=GNU
2564fi
2565# Now try BSD make style include.
2566if test "$am__include" = "#"; then
2567   echo '.include "confinc"' > confmf
2568   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2569      am__include=.include
2570      am__quote="\""
2571      _am_result=BSD
2572   fi
2573fi
2574
2575
2576echo "$as_me:$LINENO: result: $_am_result" >&5
2577echo "${ECHO_T}$_am_result" >&6
2578rm -f confinc confmf
2579
2580# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2581if test "${enable_dependency_tracking+set}" = set; then
2582  enableval="$enable_dependency_tracking"
2583
2584fi;
2585if test "x$enable_dependency_tracking" != xno; then
2586  am_depcomp="$ac_aux_dir/depcomp"
2587  AMDEPBACKSLASH='\'
2588fi
2589
2590
2591if test "x$enable_dependency_tracking" != xno; then
2592  AMDEP_TRUE=
2593  AMDEP_FALSE='#'
2594else
2595  AMDEP_TRUE='#'
2596  AMDEP_FALSE=
2597fi
2598
2599
2600
2601
2602depcc="$CXX"  am_compiler_list=
2603
2604echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2605echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2606if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2607  echo $ECHO_N "(cached) $ECHO_C" >&6
2608else
2609  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2610  # We make a subdir and do the tests there.  Otherwise we can end up
2611  # making bogus files that we don't know about and never remove.  For
2612  # instance it was reported that on HP-UX the gcc test will end up
2613  # making a dummy file named `D' -- because `-MD' means `put the output
2614  # in D'.
2615  mkdir conftest.dir
2616  # Copy depcomp to subdir because otherwise we won't find it if we're
2617  # using a relative directory.
2618  cp "$am_depcomp" conftest.dir
2619  cd conftest.dir
2620  # We will build objects and dependencies in a subdirectory because
2621  # it helps to detect inapplicable dependency modes.  For instance
2622  # both Tru64's cc and ICC support -MD to output dependencies as a
2623  # side effect of compilation, but ICC will put the dependencies in
2624  # the current directory while Tru64 will put them in the object
2625  # directory.
2626  mkdir sub
2627
2628  am_cv_CXX_dependencies_compiler_type=none
2629  if test "$am_compiler_list" = ""; then
2630     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2631  fi
2632  for depmode in $am_compiler_list; do
2633    # Setup a source with many dependencies, because some compilers
2634    # like to wrap large dependency lists on column 80 (with \), and
2635    # we should not choose a depcomp mode which is confused by this.
2636    #
2637    # We need to recreate these files for each test, as the compiler may
2638    # overwrite some of them when testing with obscure command lines.
2639    # This happens at least with the AIX C compiler.
2640    : > sub/conftest.c
2641    for i in 1 2 3 4 5 6; do
2642      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2643      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2644      # Solaris 8's {/usr,}/bin/sh.
2645      touch sub/conftst$i.h
2646    done
2647    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2648
2649    case $depmode in
2650    nosideeffect)
2651      # after this tag, mechanisms are not by side-effect, so they'll
2652      # only be used when explicitly requested
2653      if test "x$enable_dependency_tracking" = xyes; then
2654        continue
2655      else
2656        break
2657      fi
2658      ;;
2659    none) break ;;
2660    esac
2661    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2662    # mode.  It turns out that the SunPro C++ compiler does not properly
2663    # handle `-M -o', and we need to detect this.
2664    if depmode=$depmode \
2665       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2666       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2667       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2668         >/dev/null 2>conftest.err &&
2669       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2670       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2671       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2672      # icc doesn't choke on unknown options, it will just issue warnings
2673      # or remarks (even with -Werror).  So we grep stderr for any message
2674      # that says an option was ignored or not supported.
2675      # When given -MP, icc 7.0 and 7.1 complain thusly:
2676      #   icc: Command line warning: ignoring option '-M'; no argument required
2677      # The diagnosis changed in icc 8.0:
2678      #   icc: Command line remark: option '-MP' not supported
2679      if (grep 'ignoring option' conftest.err ||
2680          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2681        am_cv_CXX_dependencies_compiler_type=$depmode
2682        break
2683      fi
2684    fi
2685  done
2686
2687  cd ..
2688  rm -rf conftest.dir
2689else
2690  am_cv_CXX_dependencies_compiler_type=none
2691fi
2692
2693fi
2694echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2695echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2696CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2697
2698
2699
2700if
2701  test "x$enable_dependency_tracking" != xno \
2702  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2703  am__fastdepCXX_TRUE=
2704  am__fastdepCXX_FALSE='#'
2705else
2706  am__fastdepCXX_TRUE='#'
2707  am__fastdepCXX_FALSE=
2708fi
2709
2710
2711ac_ext=c
2712ac_cpp='$CPP $CPPFLAGS'
2713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716if test -n "$ac_tool_prefix"; then
2717  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2718set dummy ${ac_tool_prefix}gcc; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_prog_CC+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  if test -n "$CC"; then
2725  ac_cv_prog_CC="$CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732  for ac_exec_ext in '' $ac_executable_extensions; do
2733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740
2741fi
2742fi
2743CC=$ac_cv_prog_CC
2744if test -n "$CC"; then
2745  echo "$as_me:$LINENO: result: $CC" >&5
2746echo "${ECHO_T}$CC" >&6
2747else
2748  echo "$as_me:$LINENO: result: no" >&5
2749echo "${ECHO_T}no" >&6
2750fi
2751
2752fi
2753if test -z "$ac_cv_prog_CC"; then
2754  ac_ct_CC=$CC
2755  # Extract the first word of "gcc", so it can be a program name with args.
2756set dummy gcc; ac_word=$2
2757echo "$as_me:$LINENO: checking for $ac_word" >&5
2758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2759if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2760  echo $ECHO_N "(cached) $ECHO_C" >&6
2761else
2762  if test -n "$ac_ct_CC"; then
2763  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770  for ac_exec_ext in '' $ac_executable_extensions; do
2771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772    ac_cv_prog_ac_ct_CC="gcc"
2773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774    break 2
2775  fi
2776done
2777done
2778
2779fi
2780fi
2781ac_ct_CC=$ac_cv_prog_ac_ct_CC
2782if test -n "$ac_ct_CC"; then
2783  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2784echo "${ECHO_T}$ac_ct_CC" >&6
2785else
2786  echo "$as_me:$LINENO: result: no" >&5
2787echo "${ECHO_T}no" >&6
2788fi
2789
2790  CC=$ac_ct_CC
2791else
2792  CC="$ac_cv_prog_CC"
2793fi
2794
2795if test -z "$CC"; then
2796  if test -n "$ac_tool_prefix"; then
2797  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2798set dummy ${ac_tool_prefix}cc; ac_word=$2
2799echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801if test "${ac_cv_prog_CC+set}" = set; then
2802  echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804  if test -n "$CC"; then
2805  ac_cv_prog_CC="$CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812  for ac_exec_ext in '' $ac_executable_extensions; do
2813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_CC="${ac_tool_prefix}cc"
2815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819done
2820
2821fi
2822fi
2823CC=$ac_cv_prog_CC
2824if test -n "$CC"; then
2825  echo "$as_me:$LINENO: result: $CC" >&5
2826echo "${ECHO_T}$CC" >&6
2827else
2828  echo "$as_me:$LINENO: result: no" >&5
2829echo "${ECHO_T}no" >&6
2830fi
2831
2832fi
2833if test -z "$ac_cv_prog_CC"; then
2834  ac_ct_CC=$CC
2835  # Extract the first word of "cc", so it can be a program name with args.
2836set dummy cc; ac_word=$2
2837echo "$as_me:$LINENO: checking for $ac_word" >&5
2838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2840  echo $ECHO_N "(cached) $ECHO_C" >&6
2841else
2842  if test -n "$ac_ct_CC"; then
2843  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850  for ac_exec_ext in '' $ac_executable_extensions; do
2851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852    ac_cv_prog_ac_ct_CC="cc"
2853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857done
2858
2859fi
2860fi
2861ac_ct_CC=$ac_cv_prog_ac_ct_CC
2862if test -n "$ac_ct_CC"; then
2863  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2864echo "${ECHO_T}$ac_ct_CC" >&6
2865else
2866  echo "$as_me:$LINENO: result: no" >&5
2867echo "${ECHO_T}no" >&6
2868fi
2869
2870  CC=$ac_ct_CC
2871else
2872  CC="$ac_cv_prog_CC"
2873fi
2874
2875fi
2876if test -z "$CC"; then
2877  # Extract the first word of "cc", so it can be a program name with args.
2878set dummy cc; ac_word=$2
2879echo "$as_me:$LINENO: checking for $ac_word" >&5
2880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881if test "${ac_cv_prog_CC+set}" = set; then
2882  echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884  if test -n "$CC"; then
2885  ac_cv_prog_CC="$CC" # Let the user override the test.
2886else
2887  ac_prog_rejected=no
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891  IFS=$as_save_IFS
2892  test -z "$as_dir" && as_dir=.
2893  for ac_exec_ext in '' $ac_executable_extensions; do
2894  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896       ac_prog_rejected=yes
2897       continue
2898     fi
2899    ac_cv_prog_CC="cc"
2900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901    break 2
2902  fi
2903done
2904done
2905
2906if test $ac_prog_rejected = yes; then
2907  # We found a bogon in the path, so make sure we never use it.
2908  set dummy $ac_cv_prog_CC
2909  shift
2910  if test $# != 0; then
2911    # We chose a different compiler from the bogus one.
2912    # However, it has the same basename, so the bogon will be chosen
2913    # first if we set CC to just the basename; use the full file name.
2914    shift
2915    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2916  fi
2917fi
2918fi
2919fi
2920CC=$ac_cv_prog_CC
2921if test -n "$CC"; then
2922  echo "$as_me:$LINENO: result: $CC" >&5
2923echo "${ECHO_T}$CC" >&6
2924else
2925  echo "$as_me:$LINENO: result: no" >&5
2926echo "${ECHO_T}no" >&6
2927fi
2928
2929fi
2930if test -z "$CC"; then
2931  if test -n "$ac_tool_prefix"; then
2932  for ac_prog in cl
2933  do
2934    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2936echo "$as_me:$LINENO: checking for $ac_word" >&5
2937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938if test "${ac_cv_prog_CC+set}" = set; then
2939  echo $ECHO_N "(cached) $ECHO_C" >&6
2940else
2941  if test -n "$CC"; then
2942  ac_cv_prog_CC="$CC" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947  IFS=$as_save_IFS
2948  test -z "$as_dir" && as_dir=.
2949  for ac_exec_ext in '' $ac_executable_extensions; do
2950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953    break 2
2954  fi
2955done
2956done
2957
2958fi
2959fi
2960CC=$ac_cv_prog_CC
2961if test -n "$CC"; then
2962  echo "$as_me:$LINENO: result: $CC" >&5
2963echo "${ECHO_T}$CC" >&6
2964else
2965  echo "$as_me:$LINENO: result: no" >&5
2966echo "${ECHO_T}no" >&6
2967fi
2968
2969    test -n "$CC" && break
2970  done
2971fi
2972if test -z "$CC"; then
2973  ac_ct_CC=$CC
2974  for ac_prog in cl
2975do
2976  # Extract the first word of "$ac_prog", so it can be a program name with args.
2977set dummy $ac_prog; ac_word=$2
2978echo "$as_me:$LINENO: checking for $ac_word" >&5
2979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2980if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2981  echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983  if test -n "$ac_ct_CC"; then
2984  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2985else
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989  IFS=$as_save_IFS
2990  test -z "$as_dir" && as_dir=.
2991  for ac_exec_ext in '' $ac_executable_extensions; do
2992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993    ac_cv_prog_ac_ct_CC="$ac_prog"
2994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995    break 2
2996  fi
2997done
2998done
2999
3000fi
3001fi
3002ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003if test -n "$ac_ct_CC"; then
3004  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3005echo "${ECHO_T}$ac_ct_CC" >&6
3006else
3007  echo "$as_me:$LINENO: result: no" >&5
3008echo "${ECHO_T}no" >&6
3009fi
3010
3011  test -n "$ac_ct_CC" && break
3012done
3013
3014  CC=$ac_ct_CC
3015fi
3016
3017fi
3018
3019
3020test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3021See \`config.log' for more details." >&5
3022echo "$as_me: error: no acceptable C compiler found in \$PATH
3023See \`config.log' for more details." >&2;}
3024   { (exit 1); exit 1; }; }
3025
3026# Provide some information about the compiler.
3027echo "$as_me:$LINENO:" \
3028     "checking for C compiler version" >&5
3029ac_compiler=`set X $ac_compile; echo $2`
3030{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3031  (eval $ac_compiler --version </dev/null >&5) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }
3035{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3036  (eval $ac_compiler -v </dev/null >&5) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }
3040{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3041  (eval $ac_compiler -V </dev/null >&5) 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }
3045
3046echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3047echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3048if test "${ac_cv_c_compiler_gnu+set}" = set; then
3049  echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
3051  cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h.  */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h.  */
3057
3058int
3059main ()
3060{
3061#ifndef __GNUC__
3062       choke me
3063#endif
3064
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext
3070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3071  (eval $ac_compile) 2>conftest.er1
3072  ac_status=$?
3073  grep -v '^ *+' conftest.er1 >conftest.err
3074  rm -f conftest.er1
3075  cat conftest.err >&5
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); } &&
3078         { ac_try='test -z "$ac_c_werror_flag"
3079                         || test ! -s conftest.err'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; } &&
3085         { ac_try='test -s conftest.$ac_objext'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  ac_compiler_gnu=yes
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096ac_compiler_gnu=no
3097fi
3098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3099ac_cv_c_compiler_gnu=$ac_compiler_gnu
3100
3101fi
3102echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3103echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3104GCC=`test $ac_compiler_gnu = yes && echo yes`
3105ac_test_CFLAGS=${CFLAGS+set}
3106ac_save_CFLAGS=$CFLAGS
3107CFLAGS="-g"
3108echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3109echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3110if test "${ac_cv_prog_cc_g+set}" = set; then
3111  echo $ECHO_N "(cached) $ECHO_C" >&6
3112else
3113  cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h.  */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h.  */
3119
3120int
3121main ()
3122{
3123
3124  ;
3125  return 0;
3126}
3127_ACEOF
3128rm -f conftest.$ac_objext
3129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130  (eval $ac_compile) 2>conftest.er1
3131  ac_status=$?
3132  grep -v '^ *+' conftest.er1 >conftest.err
3133  rm -f conftest.er1
3134  cat conftest.err >&5
3135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136  (exit $ac_status); } &&
3137         { ac_try='test -z "$ac_c_werror_flag"
3138                         || test ! -s conftest.err'
3139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140  (eval $ac_try) 2>&5
3141  ac_status=$?
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); }; } &&
3144         { ac_try='test -s conftest.$ac_objext'
3145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146  (eval $ac_try) 2>&5
3147  ac_status=$?
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); }; }; then
3150  ac_cv_prog_cc_g=yes
3151else
3152  echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155ac_cv_prog_cc_g=no
3156fi
3157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3158fi
3159echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3160echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3161if test "$ac_test_CFLAGS" = set; then
3162  CFLAGS=$ac_save_CFLAGS
3163elif test $ac_cv_prog_cc_g = yes; then
3164  if test "$GCC" = yes; then
3165    CFLAGS="-g -O2"
3166  else
3167    CFLAGS="-g"
3168  fi
3169else
3170  if test "$GCC" = yes; then
3171    CFLAGS="-O2"
3172  else
3173    CFLAGS=
3174  fi
3175fi
3176echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3177echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3178if test "${ac_cv_prog_cc_stdc+set}" = set; then
3179  echo $ECHO_N "(cached) $ECHO_C" >&6
3180else
3181  ac_cv_prog_cc_stdc=no
3182ac_save_CC=$CC
3183cat >conftest.$ac_ext <<_ACEOF
3184/* confdefs.h.  */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h.  */
3189#include <stdarg.h>
3190#include <stdio.h>
3191#include <sys/types.h>
3192#include <sys/stat.h>
3193/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3194struct buf { int x; };
3195FILE * (*rcsopen) (struct buf *, struct stat *, int);
3196static char *e (p, i)
3197     char **p;
3198     int i;
3199{
3200  return p[i];
3201}
3202static char *f (char * (*g) (char **, int), char **p, ...)
3203{
3204  char *s;
3205  va_list v;
3206  va_start (v,p);
3207  s = g (p, va_arg (v,int));
3208  va_end (v);
3209  return s;
3210}
3211
3212/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3213   function prototypes and stuff, but not '\xHH' hex character constants.
3214   These don't provoke an error unfortunately, instead are silently treated
3215   as 'x'.  The following induces an error, until -std1 is added to get
3216   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3217   array size at least.  It's necessary to write '\x00'==0 to get something
3218   that's true only with -std1.  */
3219int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3220
3221int test (int i, double x);
3222struct s1 {int (*f) (int a);};
3223struct s2 {int (*f) (double a);};
3224int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3225int argc;
3226char **argv;
3227int
3228main ()
3229{
3230return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3231  ;
3232  return 0;
3233}
3234_ACEOF
3235# Don't try gcc -ansi; that turns off useful extensions and
3236# breaks some systems' header files.
3237# AIX                   -qlanglvl=ansi
3238# Ultrix and OSF/1      -std1
3239# HP-UX 10.20 and later -Ae
3240# HP-UX older versions  -Aa -D_HPUX_SOURCE
3241# SVR4                  -Xc -D__EXTENSIONS__
3242for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3243do
3244  CC="$ac_save_CC $ac_arg"
3245  rm -f conftest.$ac_objext
3246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247  (eval $ac_compile) 2>conftest.er1
3248  ac_status=$?
3249  grep -v '^ *+' conftest.er1 >conftest.err
3250  rm -f conftest.er1
3251  cat conftest.err >&5
3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253  (exit $ac_status); } &&
3254         { ac_try='test -z "$ac_c_werror_flag"
3255                         || test ! -s conftest.err'
3256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257  (eval $ac_try) 2>&5
3258  ac_status=$?
3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); }; } &&
3261         { ac_try='test -s conftest.$ac_objext'
3262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263  (eval $ac_try) 2>&5
3264  ac_status=$?
3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266  (exit $ac_status); }; }; then
3267  ac_cv_prog_cc_stdc=$ac_arg
3268break
3269else
3270  echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273fi
3274rm -f conftest.err conftest.$ac_objext
3275done
3276rm -f conftest.$ac_ext conftest.$ac_objext
3277CC=$ac_save_CC
3278
3279fi
3280
3281case "x$ac_cv_prog_cc_stdc" in
3282  x|xno)
3283    echo "$as_me:$LINENO: result: none needed" >&5
3284echo "${ECHO_T}none needed" >&6 ;;
3285  *)
3286    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3287echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3288    CC="$CC $ac_cv_prog_cc_stdc" ;;
3289esac
3290
3291# Some people use a C++ compiler to compile C.  Since we use `exit',
3292# in C++ we need to declare it.  In case someone uses the same compiler
3293# for both compiling C and C++ we need to have the C++ compiler decide
3294# the declaration of exit, since it's the most demanding environment.
3295cat >conftest.$ac_ext <<_ACEOF
3296#ifndef __cplusplus
3297  choke me
3298#endif
3299_ACEOF
3300rm -f conftest.$ac_objext
3301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302  (eval $ac_compile) 2>conftest.er1
3303  ac_status=$?
3304  grep -v '^ *+' conftest.er1 >conftest.err
3305  rm -f conftest.er1
3306  cat conftest.err >&5
3307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308  (exit $ac_status); } &&
3309         { ac_try='test -z "$ac_c_werror_flag"
3310                         || test ! -s conftest.err'
3311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312  (eval $ac_try) 2>&5
3313  ac_status=$?
3314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315  (exit $ac_status); }; } &&
3316         { ac_try='test -s conftest.$ac_objext'
3317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318  (eval $ac_try) 2>&5
3319  ac_status=$?
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); }; }; then
3322  for ac_declaration in \
3323   '' \
3324   'extern "C" void std::exit (int) throw (); using std::exit;' \
3325   'extern "C" void std::exit (int); using std::exit;' \
3326   'extern "C" void exit (int) throw ();' \
3327   'extern "C" void exit (int);' \
3328   'void exit (int);'
3329do
3330  cat >conftest.$ac_ext <<_ACEOF
3331/* confdefs.h.  */
3332_ACEOF
3333cat confdefs.h >>conftest.$ac_ext
3334cat >>conftest.$ac_ext <<_ACEOF
3335/* end confdefs.h.  */
3336$ac_declaration
3337#include <stdlib.h>
3338int
3339main ()
3340{
3341exit (42);
3342  ;
3343  return 0;
3344}
3345_ACEOF
3346rm -f conftest.$ac_objext
3347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348  (eval $ac_compile) 2>conftest.er1
3349  ac_status=$?
3350  grep -v '^ *+' conftest.er1 >conftest.err
3351  rm -f conftest.er1
3352  cat conftest.err >&5
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); } &&
3355         { ac_try='test -z "$ac_c_werror_flag"
3356                         || test ! -s conftest.err'
3357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358  (eval $ac_try) 2>&5
3359  ac_status=$?
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); }; } &&
3362         { ac_try='test -s conftest.$ac_objext'
3363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364  (eval $ac_try) 2>&5
3365  ac_status=$?
3366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367  (exit $ac_status); }; }; then
3368  :
3369else
3370  echo "$as_me: failed program was:" >&5
3371sed 's/^/| /' conftest.$ac_ext >&5
3372
3373continue
3374fi
3375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376  cat >conftest.$ac_ext <<_ACEOF
3377/* confdefs.h.  */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h.  */
3382$ac_declaration
3383int
3384main ()
3385{
3386exit (42);
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391rm -f conftest.$ac_objext
3392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393  (eval $ac_compile) 2>conftest.er1
3394  ac_status=$?
3395  grep -v '^ *+' conftest.er1 >conftest.err
3396  rm -f conftest.er1
3397  cat conftest.err >&5
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); } &&
3400         { ac_try='test -z "$ac_c_werror_flag"
3401                         || test ! -s conftest.err'
3402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403  (eval $ac_try) 2>&5
3404  ac_status=$?
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); }; } &&
3407         { ac_try='test -s conftest.$ac_objext'
3408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409  (eval $ac_try) 2>&5
3410  ac_status=$?
3411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412  (exit $ac_status); }; }; then
3413  break
3414else
3415  echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
3418fi
3419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420done
3421rm -f conftest*
3422if test -n "$ac_declaration"; then
3423  echo '#ifdef __cplusplus' >>confdefs.h
3424  echo $ac_declaration      >>confdefs.h
3425  echo '#endif'             >>confdefs.h
3426fi
3427
3428else
3429  echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432fi
3433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434ac_ext=c
3435ac_cpp='$CPP $CPPFLAGS'
3436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439
3440depcc="$CC"   am_compiler_list=
3441
3442echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3443echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3444if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3445  echo $ECHO_N "(cached) $ECHO_C" >&6
3446else
3447  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3448  # We make a subdir and do the tests there.  Otherwise we can end up
3449  # making bogus files that we don't know about and never remove.  For
3450  # instance it was reported that on HP-UX the gcc test will end up
3451  # making a dummy file named `D' -- because `-MD' means `put the output
3452  # in D'.
3453  mkdir conftest.dir
3454  # Copy depcomp to subdir because otherwise we won't find it if we're
3455  # using a relative directory.
3456  cp "$am_depcomp" conftest.dir
3457  cd conftest.dir
3458  # We will build objects and dependencies in a subdirectory because
3459  # it helps to detect inapplicable dependency modes.  For instance
3460  # both Tru64's cc and ICC support -MD to output dependencies as a
3461  # side effect of compilation, but ICC will put the dependencies in
3462  # the current directory while Tru64 will put them in the object
3463  # directory.
3464  mkdir sub
3465
3466  am_cv_CC_dependencies_compiler_type=none
3467  if test "$am_compiler_list" = ""; then
3468     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3469  fi
3470  for depmode in $am_compiler_list; do
3471    # Setup a source with many dependencies, because some compilers
3472    # like to wrap large dependency lists on column 80 (with \), and
3473    # we should not choose a depcomp mode which is confused by this.
3474    #
3475    # We need to recreate these files for each test, as the compiler may
3476    # overwrite some of them when testing with obscure command lines.
3477    # This happens at least with the AIX C compiler.
3478    : > sub/conftest.c
3479    for i in 1 2 3 4 5 6; do
3480      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3481      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3482      # Solaris 8's {/usr,}/bin/sh.
3483      touch sub/conftst$i.h
3484    done
3485    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3486
3487    case $depmode in
3488    nosideeffect)
3489      # after this tag, mechanisms are not by side-effect, so they'll
3490      # only be used when explicitly requested
3491      if test "x$enable_dependency_tracking" = xyes; then
3492        continue
3493      else
3494        break
3495      fi
3496      ;;
3497    none) break ;;
3498    esac
3499    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3500    # mode.  It turns out that the SunPro C++ compiler does not properly
3501    # handle `-M -o', and we need to detect this.
3502    if depmode=$depmode \
3503       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3504       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3505       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3506         >/dev/null 2>conftest.err &&
3507       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3508       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3509       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3510      # icc doesn't choke on unknown options, it will just issue warnings
3511      # or remarks (even with -Werror).  So we grep stderr for any message
3512      # that says an option was ignored or not supported.
3513      # When given -MP, icc 7.0 and 7.1 complain thusly:
3514      #   icc: Command line warning: ignoring option '-M'; no argument required
3515      # The diagnosis changed in icc 8.0:
3516      #   icc: Command line remark: option '-MP' not supported
3517      if (grep 'ignoring option' conftest.err ||
3518          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3519        am_cv_CC_dependencies_compiler_type=$depmode
3520        break
3521      fi
3522    fi
3523  done
3524
3525  cd ..
3526  rm -rf conftest.dir
3527else
3528  am_cv_CC_dependencies_compiler_type=none
3529fi
3530
3531fi
3532echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3533echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3534CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3535
3536
3537
3538if
3539  test "x$enable_dependency_tracking" != xno \
3540  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3541  am__fastdepCC_TRUE=
3542  am__fastdepCC_FALSE='#'
3543else
3544  am__fastdepCC_TRUE='#'
3545  am__fastdepCC_FALSE=
3546fi
3547
3548
3549ac_ext=c
3550ac_cpp='$CPP $CPPFLAGS'
3551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3555echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3556# On Suns, sometimes $CPP names a directory.
3557if test -n "$CPP" && test -d "$CPP"; then
3558  CPP=
3559fi
3560if test -z "$CPP"; then
3561  if test "${ac_cv_prog_CPP+set}" = set; then
3562  echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564      # Double quotes because CPP needs to be expanded
3565    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3566    do
3567      ac_preproc_ok=false
3568for ac_c_preproc_warn_flag in '' yes
3569do
3570  # Use a header file that comes with gcc, so configuring glibc
3571  # with a fresh cross-compiler works.
3572  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573  # <limits.h> exists even on freestanding compilers.
3574  # On the NeXT, cc -E runs the code through the compiler's parser,
3575  # not just through cpp. "Syntax error" is here to catch this case.
3576  cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h.  */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h.  */
3582#ifdef __STDC__
3583# include <limits.h>
3584#else
3585# include <assert.h>
3586#endif
3587                     Syntax error
3588_ACEOF
3589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3590  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3591  ac_status=$?
3592  grep -v '^ *+' conftest.er1 >conftest.err
3593  rm -f conftest.er1
3594  cat conftest.err >&5
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); } >/dev/null; then
3597  if test -s conftest.err; then
3598    ac_cpp_err=$ac_c_preproc_warn_flag
3599    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3600  else
3601    ac_cpp_err=
3602  fi
3603else
3604  ac_cpp_err=yes
3605fi
3606if test -z "$ac_cpp_err"; then
3607  :
3608else
3609  echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612  # Broken: fails on valid input.
3613continue
3614fi
3615rm -f conftest.err conftest.$ac_ext
3616
3617  # OK, works on sane cases.  Now check whether non-existent headers
3618  # can be detected and how.
3619  cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h.  */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h.  */
3625#include <ac_nonexistent.h>
3626_ACEOF
3627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3628  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3629  ac_status=$?
3630  grep -v '^ *+' conftest.er1 >conftest.err
3631  rm -f conftest.er1
3632  cat conftest.err >&5
3633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634  (exit $ac_status); } >/dev/null; then
3635  if test -s conftest.err; then
3636    ac_cpp_err=$ac_c_preproc_warn_flag
3637    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3638  else
3639    ac_cpp_err=
3640  fi
3641else
3642  ac_cpp_err=yes
3643fi
3644if test -z "$ac_cpp_err"; then
3645  # Broken: success on invalid input.
3646continue
3647else
3648  echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651  # Passes both tests.
3652ac_preproc_ok=:
3653break
3654fi
3655rm -f conftest.err conftest.$ac_ext
3656
3657done
3658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3659rm -f conftest.err conftest.$ac_ext
3660if $ac_preproc_ok; then
3661  break
3662fi
3663
3664    done
3665    ac_cv_prog_CPP=$CPP
3666
3667fi
3668  CPP=$ac_cv_prog_CPP
3669else
3670  ac_cv_prog_CPP=$CPP
3671fi
3672echo "$as_me:$LINENO: result: $CPP" >&5
3673echo "${ECHO_T}$CPP" >&6
3674ac_preproc_ok=false
3675for ac_c_preproc_warn_flag in '' yes
3676do
3677  # Use a header file that comes with gcc, so configuring glibc
3678  # with a fresh cross-compiler works.
3679  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3680  # <limits.h> exists even on freestanding compilers.
3681  # On the NeXT, cc -E runs the code through the compiler's parser,
3682  # not just through cpp. "Syntax error" is here to catch this case.
3683  cat >conftest.$ac_ext <<_ACEOF
3684/* confdefs.h.  */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h.  */
3689#ifdef __STDC__
3690# include <limits.h>
3691#else
3692# include <assert.h>
3693#endif
3694                     Syntax error
3695_ACEOF
3696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3697  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3698  ac_status=$?
3699  grep -v '^ *+' conftest.er1 >conftest.err
3700  rm -f conftest.er1
3701  cat conftest.err >&5
3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703  (exit $ac_status); } >/dev/null; then
3704  if test -s conftest.err; then
3705    ac_cpp_err=$ac_c_preproc_warn_flag
3706    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3707  else
3708    ac_cpp_err=
3709  fi
3710else
3711  ac_cpp_err=yes
3712fi
3713if test -z "$ac_cpp_err"; then
3714  :
3715else
3716  echo "$as_me: failed program was:" >&5
3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719  # Broken: fails on valid input.
3720continue
3721fi
3722rm -f conftest.err conftest.$ac_ext
3723
3724  # OK, works on sane cases.  Now check whether non-existent headers
3725  # can be detected and how.
3726  cat >conftest.$ac_ext <<_ACEOF
3727/* confdefs.h.  */
3728_ACEOF
3729cat confdefs.h >>conftest.$ac_ext
3730cat >>conftest.$ac_ext <<_ACEOF
3731/* end confdefs.h.  */
3732#include <ac_nonexistent.h>
3733_ACEOF
3734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3735  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3736  ac_status=$?
3737  grep -v '^ *+' conftest.er1 >conftest.err
3738  rm -f conftest.er1
3739  cat conftest.err >&5
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); } >/dev/null; then
3742  if test -s conftest.err; then
3743    ac_cpp_err=$ac_c_preproc_warn_flag
3744    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3745  else
3746    ac_cpp_err=
3747  fi
3748else
3749  ac_cpp_err=yes
3750fi
3751if test -z "$ac_cpp_err"; then
3752  # Broken: success on invalid input.
3753continue
3754else
3755  echo "$as_me: failed program was:" >&5
3756sed 's/^/| /' conftest.$ac_ext >&5
3757
3758  # Passes both tests.
3759ac_preproc_ok=:
3760break
3761fi
3762rm -f conftest.err conftest.$ac_ext
3763
3764done
3765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766rm -f conftest.err conftest.$ac_ext
3767if $ac_preproc_ok; then
3768  :
3769else
3770  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3771See \`config.log' for more details." >&5
3772echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3773See \`config.log' for more details." >&2;}
3774   { (exit 1); exit 1; }; }
3775fi
3776
3777ac_ext=c
3778ac_cpp='$CPP $CPPFLAGS'
3779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783# Find a good install program.  We prefer a C program (faster),
3784# so one script is as good as another.  But avoid the broken or
3785# incompatible versions:
3786# SysV /etc/install, /usr/sbin/install
3787# SunOS /usr/etc/install
3788# IRIX /sbin/install
3789# AIX /bin/install
3790# AmigaOS /C/install, which installs bootblocks on floppy discs
3791# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3792# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3793# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3794# OS/2's system install, which has a completely different semantic
3795# ./install, which can be erroneously created by make from ./install.sh.
3796echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3797echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3798if test -z "$INSTALL"; then
3799if test "${ac_cv_path_install+set}" = set; then
3800  echo $ECHO_N "(cached) $ECHO_C" >&6
3801else
3802  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH
3804do
3805  IFS=$as_save_IFS
3806  test -z "$as_dir" && as_dir=.
3807  # Account for people who put trailing slashes in PATH elements.
3808case $as_dir/ in
3809  ./ | .// | /cC/* | \
3810  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3811  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3812  /usr/ucb/* ) ;;
3813  *)
3814    # OSF1 and SCO ODT 3.0 have their own names for install.
3815    # Don't use installbsd from OSF since it installs stuff as root
3816    # by default.
3817    for ac_prog in ginstall scoinst install; do
3818      for ac_exec_ext in '' $ac_executable_extensions; do
3819        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3820          if test $ac_prog = install &&
3821            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3822            # AIX install.  It has an incompatible calling convention.
3823            :
3824          elif test $ac_prog = install &&
3825            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826            # program-specific install script used by HP pwplus--don't use.
3827            :
3828          else
3829            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3830            break 3
3831          fi
3832        fi
3833      done
3834    done
3835    ;;
3836esac
3837done
3838
3839
3840fi
3841  if test "${ac_cv_path_install+set}" = set; then
3842    INSTALL=$ac_cv_path_install
3843  else
3844    # As a last resort, use the slow shell script.  We don't cache a
3845    # path for INSTALL within a source directory, because that will
3846    # break other packages using the cache if that directory is
3847    # removed, or if the path is relative.
3848    INSTALL=$ac_install_sh
3849  fi
3850fi
3851echo "$as_me:$LINENO: result: $INSTALL" >&5
3852echo "${ECHO_T}$INSTALL" >&6
3853
3854# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3855# It thinks the first close brace ends the variable substitution.
3856test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3857
3858test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3859
3860test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3861
3862echo "$as_me:$LINENO: checking whether ln -s works" >&5
3863echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3864LN_S=$as_ln_s
3865if test "$LN_S" = "ln -s"; then
3866  echo "$as_me:$LINENO: result: yes" >&5
3867echo "${ECHO_T}yes" >&6
3868else
3869  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3870echo "${ECHO_T}no, using $LN_S" >&6
3871fi
3872
3873echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3874echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3875set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3876if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3877  echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879  cat >conftest.make <<\_ACEOF
3880all:
3881        @echo 'ac_maketemp="$(MAKE)"'
3882_ACEOF
3883# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3884eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3885if test -n "$ac_maketemp"; then
3886  eval ac_cv_prog_make_${ac_make}_set=yes
3887else
3888  eval ac_cv_prog_make_${ac_make}_set=no
3889fi
3890rm -f conftest.make
3891fi
3892if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3893  echo "$as_me:$LINENO: result: yes" >&5
3894echo "${ECHO_T}yes" >&6
3895  SET_MAKE=
3896else
3897  echo "$as_me:$LINENO: result: no" >&5
3898echo "${ECHO_T}no" >&6
3899  SET_MAKE="MAKE=${MAKE-make}"
3900fi
3901
3902if test -n "$ac_tool_prefix"; then
3903  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3904set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3905echo "$as_me:$LINENO: checking for $ac_word" >&5
3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907if test "${ac_cv_prog_RANLIB+set}" = set; then
3908  echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910  if test -n "$RANLIB"; then
3911  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916  IFS=$as_save_IFS
3917  test -z "$as_dir" && as_dir=.
3918  for ac_exec_ext in '' $ac_executable_extensions; do
3919  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922    break 2
3923  fi
3924done
3925done
3926
3927fi
3928fi
3929RANLIB=$ac_cv_prog_RANLIB
3930if test -n "$RANLIB"; then
3931  echo "$as_me:$LINENO: result: $RANLIB" >&5
3932echo "${ECHO_T}$RANLIB" >&6
3933else
3934  echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6
3936fi
3937
3938fi
3939if test -z "$ac_cv_prog_RANLIB"; then
3940  ac_ct_RANLIB=$RANLIB
3941  # Extract the first word of "ranlib", so it can be a program name with args.
3942set dummy ranlib; ac_word=$2
3943echo "$as_me:$LINENO: checking for $ac_word" >&5
3944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3946  echo $ECHO_N "(cached) $ECHO_C" >&6
3947else
3948  if test -n "$ac_ct_RANLIB"; then
3949  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3950else
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954  IFS=$as_save_IFS
3955  test -z "$as_dir" && as_dir=.
3956  for ac_exec_ext in '' $ac_executable_extensions; do
3957  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958    ac_cv_prog_ac_ct_RANLIB="ranlib"
3959    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960    break 2
3961  fi
3962done
3963done
3964
3965  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3966fi
3967fi
3968ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3969if test -n "$ac_ct_RANLIB"; then
3970  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3971echo "${ECHO_T}$ac_ct_RANLIB" >&6
3972else
3973  echo "$as_me:$LINENO: result: no" >&5
3974echo "${ECHO_T}no" >&6
3975fi
3976
3977  RANLIB=$ac_ct_RANLIB
3978else
3979  RANLIB="$ac_cv_prog_RANLIB"
3980fi
3981
3982
3983
3984# Check whether --enable-shared or --disable-shared was given.
3985if test "${enable_shared+set}" = set; then
3986  enableval="$enable_shared"
3987  p=${PACKAGE-default}
3988    case $enableval in
3989    yes) enable_shared=yes ;;
3990    no) enable_shared=no ;;
3991    *)
3992      enable_shared=no
3993      # Look at the argument we got.  We use all the common list separators.
3994      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3995      for pkg in $enableval; do
3996        IFS="$lt_save_ifs"
3997        if test "X$pkg" = "X$p"; then
3998          enable_shared=yes
3999        fi
4000      done
4001      IFS="$lt_save_ifs"
4002      ;;
4003    esac
4004else
4005  enable_shared=yes
4006fi;
4007
4008# Check whether --enable-static or --disable-static was given.
4009if test "${enable_static+set}" = set; then
4010  enableval="$enable_static"
4011  p=${PACKAGE-default}
4012    case $enableval in
4013    yes) enable_static=yes ;;
4014    no) enable_static=no ;;
4015    *)
4016     enable_static=no
4017      # Look at the argument we got.  We use all the common list separators.
4018      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4019      for pkg in $enableval; do
4020        IFS="$lt_save_ifs"
4021        if test "X$pkg" = "X$p"; then
4022          enable_static=yes
4023        fi
4024      done
4025      IFS="$lt_save_ifs"
4026      ;;
4027    esac
4028else
4029  enable_static=yes
4030fi;
4031
4032# Check whether --enable-fast-install or --disable-fast-install was given.
4033if test "${enable_fast_install+set}" = set; then
4034  enableval="$enable_fast_install"
4035  p=${PACKAGE-default}
4036    case $enableval in
4037    yes) enable_fast_install=yes ;;
4038    no) enable_fast_install=no ;;
4039    *)
4040      enable_fast_install=no
4041      # Look at the argument we got.  We use all the common list separators.
4042      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4043      for pkg in $enableval; do
4044        IFS="$lt_save_ifs"
4045        if test "X$pkg" = "X$p"; then
4046          enable_fast_install=yes
4047        fi
4048      done
4049      IFS="$lt_save_ifs"
4050      ;;
4051    esac
4052else
4053  enable_fast_install=yes
4054fi;
4055
4056# Make sure we can run config.sub.
4057$ac_config_sub sun4 >/dev/null 2>&1 ||
4058  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4059echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4060   { (exit 1); exit 1; }; }
4061
4062echo "$as_me:$LINENO: checking build system type" >&5
4063echo $ECHO_N "checking build system type... $ECHO_C" >&6
4064if test "${ac_cv_build+set}" = set; then
4065  echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067  ac_cv_build_alias=$build_alias
4068test -z "$ac_cv_build_alias" &&
4069  ac_cv_build_alias=`$ac_config_guess`
4070test -z "$ac_cv_build_alias" &&
4071  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4072echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4073   { (exit 1); exit 1; }; }
4074ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4075  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4076echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4077   { (exit 1); exit 1; }; }
4078
4079fi
4080echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4081echo "${ECHO_T}$ac_cv_build" >&6
4082build=$ac_cv_build
4083build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4084build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4085build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4086
4087
4088echo "$as_me:$LINENO: checking host system type" >&5
4089echo $ECHO_N "checking host system type... $ECHO_C" >&6
4090if test "${ac_cv_host+set}" = set; then
4091  echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093  ac_cv_host_alias=$host_alias
4094test -z "$ac_cv_host_alias" &&
4095  ac_cv_host_alias=$ac_cv_build_alias
4096ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4097  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4098echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4099   { (exit 1); exit 1; }; }
4100
4101fi
4102echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4103echo "${ECHO_T}$ac_cv_host" >&6
4104host=$ac_cv_host
4105host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4106host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4107host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4108
4109
4110echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4111echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4112if test "${lt_cv_path_SED+set}" = set; then
4113  echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115  # Loop through the user's path and test for sed and gsed.
4116# Then use that list of sed's as ones to test for truncation.
4117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH
4119do
4120  IFS=$as_save_IFS
4121  test -z "$as_dir" && as_dir=.
4122  for lt_ac_prog in sed gsed; do
4123    for ac_exec_ext in '' $ac_executable_extensions; do
4124      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4125        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4126      fi
4127    done
4128  done
4129done
4130IFS=$as_save_IFS
4131lt_ac_max=0
4132lt_ac_count=0
4133# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4134# along with /bin/sed that truncates output.
4135for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4136  test ! -f $lt_ac_sed && continue
4137  cat /dev/null > conftest.in
4138  lt_ac_count=0
4139  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4140  # Check for GNU sed and select it if it is found.
4141  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4142    lt_cv_path_SED=$lt_ac_sed
4143    break
4144  fi
4145  while true; do
4146    cat conftest.in conftest.in >conftest.tmp
4147    mv conftest.tmp conftest.in
4148    cp conftest.in conftest.nl
4149    echo >>conftest.nl
4150    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4151    cmp -s conftest.out conftest.nl || break
4152    # 10000 chars as input seems more than enough
4153    test $lt_ac_count -gt 10 && break
4154    lt_ac_count=`expr $lt_ac_count + 1`
4155    if test $lt_ac_count -gt $lt_ac_max; then
4156      lt_ac_max=$lt_ac_count
4157      lt_cv_path_SED=$lt_ac_sed
4158    fi
4159  done
4160done
4161
4162fi
4163
4164SED=$lt_cv_path_SED
4165
4166echo "$as_me:$LINENO: result: $SED" >&5
4167echo "${ECHO_T}$SED" >&6
4168
4169echo "$as_me:$LINENO: checking for egrep" >&5
4170echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4171if test "${ac_cv_prog_egrep+set}" = set; then
4172  echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
4174  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4175    then ac_cv_prog_egrep='grep -E'
4176    else ac_cv_prog_egrep='egrep'
4177    fi
4178fi
4179echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4180echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4181 EGREP=$ac_cv_prog_egrep
4182
4183
4184
4185# Check whether --with-gnu-ld or --without-gnu-ld was given.
4186if test "${with_gnu_ld+set}" = set; then
4187  withval="$with_gnu_ld"
4188  test "$withval" = no || with_gnu_ld=yes
4189else
4190  with_gnu_ld=no
4191fi;
4192ac_prog=ld
4193if test "$GCC" = yes; then
4194  # Check if gcc -print-prog-name=ld gives a path.
4195  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4196echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4197  case $host in
4198  *-*-mingw*)
4199    # gcc leaves a trailing carriage return which upsets mingw
4200    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4201  *)
4202    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4203  esac
4204  case $ac_prog in
4205    # Accept absolute paths.
4206    [\\/]* | ?:[\\/]*)
4207      re_direlt='/[^/][^/]*/\.\./'
4208      # Canonicalize the pathname of ld
4209      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4210      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4211        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4212      done
4213      test -z "$LD" && LD="$ac_prog"
4214      ;;
4215  "")
4216    # If it fails, then pretend we aren't using GCC.
4217    ac_prog=ld
4218    ;;
4219  *)
4220    # If it is relative, then search for the first ld in PATH.
4221    with_gnu_ld=unknown
4222    ;;
4223  esac
4224elif test "$with_gnu_ld" = yes; then
4225  echo "$as_me:$LINENO: checking for GNU ld" >&5
4226echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4227else
4228  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4229echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4230fi
4231if test "${lt_cv_path_LD+set}" = set; then
4232  echo $ECHO_N "(cached) $ECHO_C" >&6
4233else
4234  if test -z "$LD"; then
4235  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4236  for ac_dir in $PATH; do
4237    IFS="$lt_save_ifs"
4238    test -z "$ac_dir" && ac_dir=.
4239    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4240      lt_cv_path_LD="$ac_dir/$ac_prog"
4241      # Check to see if the program is GNU ld.  I'd rather use --version,
4242      # but apparently some variants of GNU ld only accept -v.
4243      # Break only if it was the GNU/non-GNU ld that we prefer.
4244      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4245      *GNU* | *'with BFD'*)
4246        test "$with_gnu_ld" != no && break
4247        ;;
4248      *)
4249        test "$with_gnu_ld" != yes && break
4250        ;;
4251      esac
4252    fi
4253  done
4254  IFS="$lt_save_ifs"
4255else
4256  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4257fi
4258fi
4259
4260LD="$lt_cv_path_LD"
4261if test -n "$LD"; then
4262  echo "$as_me:$LINENO: result: $LD" >&5
4263echo "${ECHO_T}$LD" >&6
4264else
4265  echo "$as_me:$LINENO: result: no" >&5
4266echo "${ECHO_T}no" >&6
4267fi
4268test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4269echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4270   { (exit 1); exit 1; }; }
4271echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4272echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4273if test "${lt_cv_prog_gnu_ld+set}" = set; then
4274  echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4277case `$LD -v 2>&1 </dev/null` in
4278*GNU* | *'with BFD'*)
4279  lt_cv_prog_gnu_ld=yes
4280  ;;
4281*)
4282  lt_cv_prog_gnu_ld=no
4283  ;;
4284esac
4285fi
4286echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4287echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4288with_gnu_ld=$lt_cv_prog_gnu_ld
4289
4290
4291echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4292echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4293if test "${lt_cv_ld_reload_flag+set}" = set; then
4294  echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296  lt_cv_ld_reload_flag='-r'
4297fi
4298echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4299echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4300reload_flag=$lt_cv_ld_reload_flag
4301case $reload_flag in
4302"" | " "*) ;;
4303*) reload_flag=" $reload_flag" ;;
4304esac
4305reload_cmds='$LD$reload_flag -o $output$reload_objs'
4306case $host_os in
4307  darwin*)
4308    if test "$GCC" = yes; then
4309      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4310    else
4311      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4312    fi
4313    ;;
4314esac
4315
4316echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4317echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4318if test "${lt_cv_path_NM+set}" = set; then
4319  echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321  if test -n "$NM"; then
4322  # Let the user override the test.
4323  lt_cv_path_NM="$NM"
4324else
4325  lt_nm_to_check="${ac_tool_prefix}nm"
4326  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4327    lt_nm_to_check="$lt_nm_to_check nm"
4328  fi
4329  for lt_tmp_nm in $lt_nm_to_check; do
4330    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4331    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4332      IFS="$lt_save_ifs"
4333      test -z "$ac_dir" && ac_dir=.
4334      tmp_nm="$ac_dir/$lt_tmp_nm"
4335      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4336        # Check to see if the nm accepts a BSD-compat flag.
4337        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4338        #   nm: unknown option "B" ignored
4339        # Tru64's nm complains that /dev/null is an invalid object file
4340        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4341        */dev/null* | *'Invalid file or object type'*)
4342          lt_cv_path_NM="$tmp_nm -B"
4343          break
4344          ;;
4345        *)
4346          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4347          */dev/null*)
4348            lt_cv_path_NM="$tmp_nm -p"
4349            break
4350            ;;
4351          *)
4352            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4353            continue # so that we can try to find one that supports BSD flags
4354            ;;
4355          esac
4356          ;;
4357        esac
4358      fi
4359    done
4360    IFS="$lt_save_ifs"
4361  done
4362  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4363fi
4364fi
4365echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4366echo "${ECHO_T}$lt_cv_path_NM" >&6
4367NM="$lt_cv_path_NM"
4368
4369echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4370echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4371if test "${lt_cv_deplibs_check_method+set}" = set; then
4372  echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374  lt_cv_file_magic_cmd='$MAGIC_CMD'
4375lt_cv_file_magic_test_file=
4376lt_cv_deplibs_check_method='unknown'
4377# Need to set the preceding variable on all platforms that support
4378# interlibrary dependencies.
4379# 'none' -- dependencies not supported.
4380# `unknown' -- same as none, but documents that we really don't know.
4381# 'pass_all' -- all dependencies passed with no checks.
4382# 'test_compile' -- check by making test program.
4383# 'file_magic [[regex]]' -- check by looking for files in library path
4384# which responds to the $file_magic_cmd with a given extended regex.
4385# If you have `file' or equivalent on your system and you're not sure
4386# whether `pass_all' will *always* work, you probably want this one.
4387
4388case $host_os in
4389aix4* | aix5*)
4390  lt_cv_deplibs_check_method=pass_all
4391  ;;
4392
4393beos*)
4394  lt_cv_deplibs_check_method=pass_all
4395  ;;
4396
4397bsdi[45]*)
4398  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4399  lt_cv_file_magic_cmd='/usr/bin/file -L'
4400  lt_cv_file_magic_test_file=/shlib/libc.so
4401  ;;
4402
4403cygwin*)
4404  # func_win32_libid is a shell function defined in ltmain.sh
4405  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4406  lt_cv_file_magic_cmd='func_win32_libid'
4407  ;;
4408
4409mingw* | pw32*)
4410  # Base MSYS/MinGW do not provide the 'file' command needed by
4411  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4412  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4413  lt_cv_file_magic_cmd='$OBJDUMP -f'
4414  ;;
4415
4416darwin* | rhapsody*)
4417  lt_cv_deplibs_check_method=pass_all
4418  ;;
4419
4420freebsd* | kfreebsd*-gnu | dragonfly*)
4421  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4422    case $host_cpu in
4423    i*86 )
4424      # Not sure whether the presence of OpenBSD here was a mistake.
4425      # Let's accept both of them until this is cleared up.
4426      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4427      lt_cv_file_magic_cmd=/usr/bin/file
4428      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4429      ;;
4430    esac
4431  else
4432    lt_cv_deplibs_check_method=pass_all
4433  fi
4434  ;;
4435
4436gnu*)
4437  lt_cv_deplibs_check_method=pass_all
4438  ;;
4439
4440hpux10.20* | hpux11*)
4441  lt_cv_file_magic_cmd=/usr/bin/file
4442  case $host_cpu in
4443  ia64*)
4444    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4445    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4446    ;;
4447  hppa*64*)
4448    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]'
4449    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4450    ;;
4451  *)
4452    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4453    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4454    ;;
4455  esac
4456  ;;
4457
4458interix3*)
4459  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4460  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4461  ;;
4462
4463irix5* | irix6* | nonstopux*)
4464  case $LD in
4465  *-32|*"-32 ") libmagic=32-bit;;
4466  *-n32|*"-n32 ") libmagic=N32;;
4467  *-64|*"-64 ") libmagic=64-bit;;
4468  *) libmagic=never-match;;
4469  esac
4470  lt_cv_deplibs_check_method=pass_all
4471  ;;
4472
4473# This must be Linux ELF.
4474linux*)
4475  lt_cv_deplibs_check_method=pass_all
4476  ;;
4477
4478netbsd*)
4479  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4480    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4481  else
4482    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4483  fi
4484  ;;
4485
4486newos6*)
4487  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4488  lt_cv_file_magic_cmd=/usr/bin/file
4489  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4490  ;;
4491
4492nto-qnx*)
4493  lt_cv_deplibs_check_method=unknown
4494  ;;
4495
4496openbsd*)
4497  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4498    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4499  else
4500    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4501  fi
4502  ;;
4503
4504osf3* | osf4* | osf5*)
4505  lt_cv_deplibs_check_method=pass_all
4506  ;;
4507
4508solaris*)
4509  lt_cv_deplibs_check_method=pass_all
4510  ;;
4511
4512sysv4 | sysv4.3*)
4513  case $host_vendor in
4514  motorola)
4515    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]'
4516    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4517    ;;
4518  ncr)
4519    lt_cv_deplibs_check_method=pass_all
4520    ;;
4521  sequent)
4522    lt_cv_file_magic_cmd='/bin/file'
4523    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4524    ;;
4525  sni)
4526    lt_cv_file_magic_cmd='/bin/file'
4527    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4528    lt_cv_file_magic_test_file=/lib/libc.so
4529    ;;
4530  siemens)
4531    lt_cv_deplibs_check_method=pass_all
4532    ;;
4533  pc)
4534    lt_cv_deplibs_check_method=pass_all
4535    ;;
4536  esac
4537  ;;
4538
4539sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4540  lt_cv_deplibs_check_method=pass_all
4541  ;;
4542esac
4543
4544fi
4545echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4546echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4547file_magic_cmd=$lt_cv_file_magic_cmd
4548deplibs_check_method=$lt_cv_deplibs_check_method
4549test -z "$deplibs_check_method" && deplibs_check_method=unknown
4550
4551
4552
4553
4554# If no C compiler was specified, use CC.
4555LTCC=${LTCC-"$CC"}
4556
4557# If no C compiler flags were specified, use CFLAGS.
4558LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4559
4560# Allow CC to be a program name with arguments.
4561compiler=$CC
4562
4563
4564# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4565if test "${enable_libtool_lock+set}" = set; then
4566  enableval="$enable_libtool_lock"
4567
4568fi;
4569test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4570
4571# Some flags need to be propagated to the compiler or linker for good
4572# libtool support.
4573case $host in
4574ia64-*-hpux*)
4575  # Find out which ABI we are using.
4576  echo 'int i;' > conftest.$ac_ext
4577  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4578  (eval $ac_compile) 2>&5
4579  ac_status=$?
4580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581  (exit $ac_status); }; then
4582    case `/usr/bin/file conftest.$ac_objext` in
4583    *ELF-32*)
4584      HPUX_IA64_MODE="32"
4585      ;;
4586    *ELF-64*)
4587      HPUX_IA64_MODE="64"
4588      ;;
4589    esac
4590  fi
4591  rm -rf conftest*
4592  ;;
4593*-*-irix6*)
4594  # Find out which ABI we are using.
4595  echo '#line 4595 "configure"' > conftest.$ac_ext
4596  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597  (eval $ac_compile) 2>&5
4598  ac_status=$?
4599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600  (exit $ac_status); }; then
4601   if test "$lt_cv_prog_gnu_ld" = yes; then
4602    case `/usr/bin/file conftest.$ac_objext` in
4603    *32-bit*)
4604      LD="${LD-ld} -melf32bsmip"
4605      ;;
4606    *N32*)
4607      LD="${LD-ld} -melf32bmipn32"
4608      ;;
4609    *64-bit*)
4610      LD="${LD-ld} -melf64bmip"
4611      ;;
4612    esac
4613   else
4614    case `/usr/bin/file conftest.$ac_objext` in
4615    *32-bit*)
4616      LD="${LD-ld} -32"
4617      ;;
4618    *N32*)
4619      LD="${LD-ld} -n32"
4620      ;;
4621    *64-bit*)
4622      LD="${LD-ld} -64"
4623      ;;
4624    esac
4625   fi
4626  fi
4627  rm -rf conftest*
4628  ;;
4629
4630x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4631  # Find out which ABI we are using.
4632  echo 'int i;' > conftest.$ac_ext
4633  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634  (eval $ac_compile) 2>&5
4635  ac_status=$?
4636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); }; then
4638    case `/usr/bin/file conftest.o` in
4639    *32-bit*)
4640      case $host in
4641        x86_64-*linux*)
4642          LD="${LD-ld} -m elf_i386"
4643          ;;
4644        ppc64-*linux*|powerpc64-*linux*)
4645          LD="${LD-ld} -m elf32ppclinux"
4646          ;;
4647        s390x-*linux*)
4648          LD="${LD-ld} -m elf_s390"
4649          ;;
4650        sparc64-*linux*)
4651          LD="${LD-ld} -m elf32_sparc"
4652          ;;
4653      esac
4654      ;;
4655    *64-bit*)
4656      case $host in
4657        x86_64-*linux*)
4658          LD="${LD-ld} -m elf_x86_64"
4659          ;;
4660        ppc*-*linux*|powerpc*-*linux*)
4661          LD="${LD-ld} -m elf64ppc"
4662          ;;
4663        s390*-*linux*)
4664          LD="${LD-ld} -m elf64_s390"
4665          ;;
4666        sparc*-*linux*)
4667          LD="${LD-ld} -m elf64_sparc"
4668          ;;
4669      esac
4670      ;;
4671    esac
4672  fi
4673  rm -rf conftest*
4674  ;;
4675
4676*-*-sco3.2v5*)
4677  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4678  SAVE_CFLAGS="$CFLAGS"
4679  CFLAGS="$CFLAGS -belf"
4680  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4681echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4682if test "${lt_cv_cc_needs_belf+set}" = set; then
4683  echo $ECHO_N "(cached) $ECHO_C" >&6
4684else
4685  ac_ext=c
4686ac_cpp='$CPP $CPPFLAGS'
4687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689ac_compiler_gnu=$ac_cv_c_compiler_gnu
4690
4691     cat >conftest.$ac_ext <<_ACEOF
4692/* confdefs.h.  */
4693_ACEOF
4694cat confdefs.h >>conftest.$ac_ext
4695cat >>conftest.$ac_ext <<_ACEOF
4696/* end confdefs.h.  */
4697
4698int
4699main ()
4700{
4701
4702  ;
4703  return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext conftest$ac_exeext
4707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708  (eval $ac_link) 2>conftest.er1
4709  ac_status=$?
4710  grep -v '^ *+' conftest.er1 >conftest.err
4711  rm -f conftest.er1
4712  cat conftest.err >&5
4713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714  (exit $ac_status); } &&
4715         { ac_try='test -z "$ac_c_werror_flag"
4716                         || test ! -s conftest.err'
4717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718  (eval $ac_try) 2>&5
4719  ac_status=$?
4720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721  (exit $ac_status); }; } &&
4722         { ac_try='test -s conftest$ac_exeext'
4723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724  (eval $ac_try) 2>&5
4725  ac_status=$?
4726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727  (exit $ac_status); }; }; then
4728  lt_cv_cc_needs_belf=yes
4729else
4730  echo "$as_me: failed program was:" >&5
4731sed 's/^/| /' conftest.$ac_ext >&5
4732
4733lt_cv_cc_needs_belf=no
4734fi
4735rm -f conftest.err conftest.$ac_objext \
4736      conftest$ac_exeext conftest.$ac_ext
4737     ac_ext=c
4738ac_cpp='$CPP $CPPFLAGS'
4739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742
4743fi
4744echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4745echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4746  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4747    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4748    CFLAGS="$SAVE_CFLAGS"
4749  fi
4750  ;;
4751sparc*-*solaris*)
4752  # Find out which ABI we are using.
4753  echo 'int i;' > conftest.$ac_ext
4754  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755  (eval $ac_compile) 2>&5
4756  ac_status=$?
4757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); }; then
4759    case `/usr/bin/file conftest.o` in
4760    *64-bit*)
4761      case $lt_cv_prog_gnu_ld in
4762      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4763      *)    LD="${LD-ld} -64" ;;
4764      esac
4765      ;;
4766    esac
4767  fi
4768  rm -rf conftest*
4769  ;;
4770
4771*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4772  if test -n "$ac_tool_prefix"; then
4773  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4774set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4775echo "$as_me:$LINENO: checking for $ac_word" >&5
4776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4777if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4778  echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780  if test -n "$DLLTOOL"; then
4781  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4782else
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786  IFS=$as_save_IFS
4787  test -z "$as_dir" && as_dir=.
4788  for ac_exec_ext in '' $ac_executable_extensions; do
4789  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792    break 2
4793  fi
4794done
4795done
4796
4797fi
4798fi
4799DLLTOOL=$ac_cv_prog_DLLTOOL
4800if test -n "$DLLTOOL"; then
4801  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4802echo "${ECHO_T}$DLLTOOL" >&6
4803else
4804  echo "$as_me:$LINENO: result: no" >&5
4805echo "${ECHO_T}no" >&6
4806fi
4807
4808fi
4809if test -z "$ac_cv_prog_DLLTOOL"; then
4810  ac_ct_DLLTOOL=$DLLTOOL
4811  # Extract the first word of "dlltool", so it can be a program name with args.
4812set dummy dlltool; ac_word=$2
4813echo "$as_me:$LINENO: checking for $ac_word" >&5
4814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4816  echo $ECHO_N "(cached) $ECHO_C" >&6
4817else
4818  if test -n "$ac_ct_DLLTOOL"; then
4819  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824  IFS=$as_save_IFS
4825  test -z "$as_dir" && as_dir=.
4826  for ac_exec_ext in '' $ac_executable_extensions; do
4827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830    break 2
4831  fi
4832done
4833done
4834
4835  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4836fi
4837fi
4838ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4839if test -n "$ac_ct_DLLTOOL"; then
4840  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4841echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4842else
4843  echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6
4845fi
4846
4847  DLLTOOL=$ac_ct_DLLTOOL
4848else
4849  DLLTOOL="$ac_cv_prog_DLLTOOL"
4850fi
4851
4852  if test -n "$ac_tool_prefix"; then
4853  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4854set dummy ${ac_tool_prefix}as; ac_word=$2
4855echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857if test "${ac_cv_prog_AS+set}" = set; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  if test -n "$AS"; then
4861  ac_cv_prog_AS="$AS" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866  IFS=$as_save_IFS
4867  test -z "$as_dir" && as_dir=.
4868  for ac_exec_ext in '' $ac_executable_extensions; do
4869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870    ac_cv_prog_AS="${ac_tool_prefix}as"
4871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872    break 2
4873  fi
4874done
4875done
4876
4877fi
4878fi
4879AS=$ac_cv_prog_AS
4880if test -n "$AS"; then
4881  echo "$as_me:$LINENO: result: $AS" >&5
4882echo "${ECHO_T}$AS" >&6
4883else
4884  echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6
4886fi
4887
4888fi
4889if test -z "$ac_cv_prog_AS"; then
4890  ac_ct_AS=$AS
4891  # Extract the first word of "as", so it can be a program name with args.
4892set dummy as; ac_word=$2
4893echo "$as_me:$LINENO: checking for $ac_word" >&5
4894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4895if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4896  echo $ECHO_N "(cached) $ECHO_C" >&6
4897else
4898  if test -n "$ac_ct_AS"; then
4899  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4900else
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906  for ac_exec_ext in '' $ac_executable_extensions; do
4907  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908    ac_cv_prog_ac_ct_AS="as"
4909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910    break 2
4911  fi
4912done
4913done
4914
4915  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4916fi
4917fi
4918ac_ct_AS=$ac_cv_prog_ac_ct_AS
4919if test -n "$ac_ct_AS"; then
4920  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4921echo "${ECHO_T}$ac_ct_AS" >&6
4922else
4923  echo "$as_me:$LINENO: result: no" >&5
4924echo "${ECHO_T}no" >&6
4925fi
4926
4927  AS=$ac_ct_AS
4928else
4929  AS="$ac_cv_prog_AS"
4930fi
4931
4932  if test -n "$ac_tool_prefix"; then
4933  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4934set dummy ${ac_tool_prefix}objdump; ac_word=$2
4935echo "$as_me:$LINENO: checking for $ac_word" >&5
4936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4937if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4938  echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940  if test -n "$OBJDUMP"; then
4941  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4942else
4943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in $PATH
4945do
4946  IFS=$as_save_IFS
4947  test -z "$as_dir" && as_dir=.
4948  for ac_exec_ext in '' $ac_executable_extensions; do
4949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952    break 2
4953  fi
4954done
4955done
4956
4957fi
4958fi
4959OBJDUMP=$ac_cv_prog_OBJDUMP
4960if test -n "$OBJDUMP"; then
4961  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4962echo "${ECHO_T}$OBJDUMP" >&6
4963else
4964  echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6
4966fi
4967
4968fi
4969if test -z "$ac_cv_prog_OBJDUMP"; then
4970  ac_ct_OBJDUMP=$OBJDUMP
4971  # Extract the first word of "objdump", so it can be a program name with args.
4972set dummy objdump; ac_word=$2
4973echo "$as_me:$LINENO: checking for $ac_word" >&5
4974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4975if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4976  echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978  if test -n "$ac_ct_OBJDUMP"; then
4979  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4980else
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984  IFS=$as_save_IFS
4985  test -z "$as_dir" && as_dir=.
4986  for ac_exec_ext in '' $ac_executable_extensions; do
4987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4989    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990    break 2
4991  fi
4992done
4993done
4994
4995  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4996fi
4997fi
4998ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4999if test -n "$ac_ct_OBJDUMP"; then
5000  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5001echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5002else
5003  echo "$as_me:$LINENO: result: no" >&5
5004echo "${ECHO_T}no" >&6
5005fi
5006
5007  OBJDUMP=$ac_ct_OBJDUMP
5008else
5009  OBJDUMP="$ac_cv_prog_OBJDUMP"
5010fi
5011
5012  ;;
5013
5014esac
5015
5016need_locks="$enable_libtool_lock"
5017
5018
5019
5020echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5021echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5022if test "${ac_cv_header_stdc+set}" = set; then
5023  echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025  cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h.  */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h.  */
5031#include <stdlib.h>
5032#include <stdarg.h>
5033#include <string.h>
5034#include <float.h>
5035
5036int
5037main ()
5038{
5039
5040  ;
5041  return 0;
5042}
5043_ACEOF
5044rm -f conftest.$ac_objext
5045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5046  (eval $ac_compile) 2>conftest.er1
5047  ac_status=$?
5048  grep -v '^ *+' conftest.er1 >conftest.err
5049  rm -f conftest.er1
5050  cat conftest.err >&5
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); } &&
5053         { ac_try='test -z "$ac_c_werror_flag"
5054                         || test ! -s conftest.err'
5055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056  (eval $ac_try) 2>&5
5057  ac_status=$?
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); }; } &&
5060         { ac_try='test -s conftest.$ac_objext'
5061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062  (eval $ac_try) 2>&5
5063  ac_status=$?
5064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); }; }; then
5066  ac_cv_header_stdc=yes
5067else
5068  echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
5071ac_cv_header_stdc=no
5072fi
5073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5074
5075if test $ac_cv_header_stdc = yes; then
5076  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5077  cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h.  */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h.  */
5083#include <string.h>
5084
5085_ACEOF
5086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5087  $EGREP "memchr" >/dev/null 2>&1; then
5088  :
5089else
5090  ac_cv_header_stdc=no
5091fi
5092rm -f conftest*
5093
5094fi
5095
5096if test $ac_cv_header_stdc = yes; then
5097  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5098  cat >conftest.$ac_ext <<_ACEOF
5099/* confdefs.h.  */
5100_ACEOF
5101cat confdefs.h >>conftest.$ac_ext
5102cat >>conftest.$ac_ext <<_ACEOF
5103/* end confdefs.h.  */
5104#include <stdlib.h>
5105
5106_ACEOF
5107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5108  $EGREP "free" >/dev/null 2>&1; then
5109  :
5110else
5111  ac_cv_header_stdc=no
5112fi
5113rm -f conftest*
5114
5115fi
5116
5117if test $ac_cv_header_stdc = yes; then
5118  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5119  if test "$cross_compiling" = yes; then
5120  :
5121else
5122  cat >conftest.$ac_ext <<_ACEOF
5123/* confdefs.h.  */
5124_ACEOF
5125cat confdefs.h >>conftest.$ac_ext
5126cat >>conftest.$ac_ext <<_ACEOF
5127/* end confdefs.h.  */
5128#include <ctype.h>
5129#if ((' ' & 0x0FF) == 0x020)
5130# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5131# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5132#else
5133# define ISLOWER(c) \
5134                   (('a' <= (c) && (c) <= 'i') \
5135                     || ('j' <= (c) && (c) <= 'r') \
5136                     || ('s' <= (c) && (c) <= 'z'))
5137# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5138#endif
5139
5140#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5141int
5142main ()
5143{
5144  int i;
5145  for (i = 0; i < 256; i++)
5146    if (XOR (islower (i), ISLOWER (i))
5147        || toupper (i) != TOUPPER (i))
5148      exit(2);
5149  exit (0);
5150}
5151_ACEOF
5152rm -f conftest$ac_exeext
5153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5154  (eval $ac_link) 2>&5
5155  ac_status=$?
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159  (eval $ac_try) 2>&5
5160  ac_status=$?
5161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162  (exit $ac_status); }; }; then
5163  :
5164else
5165  echo "$as_me: program exited with status $ac_status" >&5
5166echo "$as_me: failed program was:" >&5
5167sed 's/^/| /' conftest.$ac_ext >&5
5168
5169( exit $ac_status )
5170ac_cv_header_stdc=no
5171fi
5172rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5173fi
5174fi
5175fi
5176echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5177echo "${ECHO_T}$ac_cv_header_stdc" >&6
5178if test $ac_cv_header_stdc = yes; then
5179
5180cat >>confdefs.h <<\_ACEOF
5181#define STDC_HEADERS 1
5182_ACEOF
5183
5184fi
5185
5186# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5197                  inttypes.h stdint.h unistd.h
5198do
5199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5200echo "$as_me:$LINENO: checking for $ac_header" >&5
5201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5202if eval "test \"\${$as_ac_Header+set}\" = set"; then
5203  echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205  cat >conftest.$ac_ext <<_ACEOF
5206/* confdefs.h.  */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h.  */
5211$ac_includes_default
5212
5213#include <$ac_header>
5214_ACEOF
5215rm -f conftest.$ac_objext
5216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5217  (eval $ac_compile) 2>conftest.er1
5218  ac_status=$?
5219  grep -v '^ *+' conftest.er1 >conftest.err
5220  rm -f conftest.er1
5221  cat conftest.err >&5
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); } &&
5224         { ac_try='test -z "$ac_c_werror_flag"
5225                         || test ! -s conftest.err'
5226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227  (eval $ac_try) 2>&5
5228  ac_status=$?
5229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); }; } &&
5231         { ac_try='test -s conftest.$ac_objext'
5232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233  (eval $ac_try) 2>&5
5234  ac_status=$?
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); }; }; then
5237  eval "$as_ac_Header=yes"
5238else
5239  echo "$as_me: failed program was:" >&5
5240sed 's/^/| /' conftest.$ac_ext >&5
5241
5242eval "$as_ac_Header=no"
5243fi
5244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5245fi
5246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5248if test `eval echo '${'$as_ac_Header'}'` = yes; then
5249  cat >>confdefs.h <<_ACEOF
5250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5251_ACEOF
5252
5253fi
5254
5255done
5256
5257
5258
5259for ac_header in dlfcn.h
5260do
5261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5262if eval "test \"\${$as_ac_Header+set}\" = set"; then
5263  echo "$as_me:$LINENO: checking for $ac_header" >&5
5264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5265if eval "test \"\${$as_ac_Header+set}\" = set"; then
5266  echo $ECHO_N "(cached) $ECHO_C" >&6
5267fi
5268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5270else
5271  # Is the header compilable?
5272echo "$as_me:$LINENO: checking $ac_header usability" >&5
5273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5274cat >conftest.$ac_ext <<_ACEOF
5275/* confdefs.h.  */
5276_ACEOF
5277cat confdefs.h >>conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h.  */
5280$ac_includes_default
5281#include <$ac_header>
5282_ACEOF
5283rm -f conftest.$ac_objext
5284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285  (eval $ac_compile) 2>conftest.er1
5286  ac_status=$?
5287  grep -v '^ *+' conftest.er1 >conftest.err
5288  rm -f conftest.er1
5289  cat conftest.err >&5
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); } &&
5292         { ac_try='test -z "$ac_c_werror_flag"
5293                         || test ! -s conftest.err'
5294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295  (eval $ac_try) 2>&5
5296  ac_status=$?
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); }; } &&
5299         { ac_try='test -s conftest.$ac_objext'
5300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301  (eval $ac_try) 2>&5
5302  ac_status=$?
5303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304  (exit $ac_status); }; }; then
5305  ac_header_compiler=yes
5306else
5307  echo "$as_me: failed program was:" >&5
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
5310ac_header_compiler=no
5311fi
5312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5314echo "${ECHO_T}$ac_header_compiler" >&6
5315
5316# Is the header present?
5317echo "$as_me:$LINENO: checking $ac_header presence" >&5
5318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5319cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h.  */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h.  */
5325#include <$ac_header>
5326_ACEOF
5327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } >/dev/null; then
5335  if test -s conftest.err; then
5336    ac_cpp_err=$ac_c_preproc_warn_flag
5337    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5338  else
5339    ac_cpp_err=
5340  fi
5341else
5342  ac_cpp_err=yes
5343fi
5344if test -z "$ac_cpp_err"; then
5345  ac_header_preproc=yes
5346else
5347  echo "$as_me: failed program was:" >&5
5348sed 's/^/| /' conftest.$ac_ext >&5
5349
5350  ac_header_preproc=no
5351fi
5352rm -f conftest.err conftest.$ac_ext
5353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5354echo "${ECHO_T}$ac_header_preproc" >&6
5355
5356# So?  What about this header?
5357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5358  yes:no: )
5359    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5361    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5363    ac_header_preproc=yes
5364    ;;
5365  no:yes:* )
5366    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5368    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5369echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5370    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5372    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5373echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5376    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5378    (
5379      cat <<\_ASBOX
5380## ----------------------------------- ##
5381## Report this to adol-c@tu-dresden.de ##
5382## ----------------------------------- ##
5383_ASBOX
5384    ) |
5385      sed "s/^/$as_me: WARNING:     /" >&2
5386    ;;
5387esac
5388echo "$as_me:$LINENO: checking for $ac_header" >&5
5389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5390if eval "test \"\${$as_ac_Header+set}\" = set"; then
5391  echo $ECHO_N "(cached) $ECHO_C" >&6
5392else
5393  eval "$as_ac_Header=\$ac_header_preproc"
5394fi
5395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5397
5398fi
5399if test `eval echo '${'$as_ac_Header'}'` = yes; then
5400  cat >>confdefs.h <<_ACEOF
5401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5402_ACEOF
5403
5404fi
5405
5406done
5407
5408
5409
5410if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5411    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5412    (test "X$CXX" != "Xg++"))) ; then
5413  ac_ext=cc
5414ac_cpp='$CXXCPP $CPPFLAGS'
5415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5418echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5419echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5420if test -z "$CXXCPP"; then
5421  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5422  echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424      # Double quotes because CXXCPP needs to be expanded
5425    for CXXCPP in "$CXX -E" "/lib/cpp"
5426    do
5427      ac_preproc_ok=false
5428for ac_cxx_preproc_warn_flag in '' yes
5429do
5430  # Use a header file that comes with gcc, so configuring glibc
5431  # with a fresh cross-compiler works.
5432  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5433  # <limits.h> exists even on freestanding compilers.
5434  # On the NeXT, cc -E runs the code through the compiler's parser,
5435  # not just through cpp. "Syntax error" is here to catch this case.
5436  cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h.  */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h.  */
5442#ifdef __STDC__
5443# include <limits.h>
5444#else
5445# include <assert.h>
5446#endif
5447                     Syntax error
5448_ACEOF
5449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5450  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5451  ac_status=$?
5452  grep -v '^ *+' conftest.er1 >conftest.err
5453  rm -f conftest.er1
5454  cat conftest.err >&5
5455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); } >/dev/null; then
5457  if test -s conftest.err; then
5458    ac_cpp_err=$ac_cxx_preproc_warn_flag
5459    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5460  else
5461    ac_cpp_err=
5462  fi
5463else
5464  ac_cpp_err=yes
5465fi
5466if test -z "$ac_cpp_err"; then
5467  :
5468else
5469  echo "$as_me: failed program was:" >&5
5470sed 's/^/| /' conftest.$ac_ext >&5
5471
5472  # Broken: fails on valid input.
5473continue
5474fi
5475rm -f conftest.err conftest.$ac_ext
5476
5477  # OK, works on sane cases.  Now check whether non-existent headers
5478  # can be detected and how.
5479  cat >conftest.$ac_ext <<_ACEOF
5480/* confdefs.h.  */
5481_ACEOF
5482cat confdefs.h >>conftest.$ac_ext
5483cat >>conftest.$ac_ext <<_ACEOF
5484/* end confdefs.h.  */
5485#include <ac_nonexistent.h>
5486_ACEOF
5487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5488  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5489  ac_status=$?
5490  grep -v '^ *+' conftest.er1 >conftest.err
5491  rm -f conftest.er1
5492  cat conftest.err >&5
5493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494  (exit $ac_status); } >/dev/null; then
5495  if test -s conftest.err; then
5496    ac_cpp_err=$ac_cxx_preproc_warn_flag
5497    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5498  else
5499    ac_cpp_err=
5500  fi
5501else
5502  ac_cpp_err=yes
5503fi
5504if test -z "$ac_cpp_err"; then
5505  # Broken: success on invalid input.
5506continue
5507else
5508  echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
5511  # Passes both tests.
5512ac_preproc_ok=:
5513break
5514fi
5515rm -f conftest.err conftest.$ac_ext
5516
5517done
5518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5519rm -f conftest.err conftest.$ac_ext
5520if $ac_preproc_ok; then
5521  break
5522fi
5523
5524    done
5525    ac_cv_prog_CXXCPP=$CXXCPP
5526
5527fi
5528  CXXCPP=$ac_cv_prog_CXXCPP
5529else
5530  ac_cv_prog_CXXCPP=$CXXCPP
5531fi
5532echo "$as_me:$LINENO: result: $CXXCPP" >&5
5533echo "${ECHO_T}$CXXCPP" >&6
5534ac_preproc_ok=false
5535for ac_cxx_preproc_warn_flag in '' yes
5536do
5537  # Use a header file that comes with gcc, so configuring glibc
5538  # with a fresh cross-compiler works.
5539  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5540  # <limits.h> exists even on freestanding compilers.
5541  # On the NeXT, cc -E runs the code through the compiler's parser,
5542  # not just through cpp. "Syntax error" is here to catch this case.
5543  cat >conftest.$ac_ext <<_ACEOF
5544/* confdefs.h.  */
5545_ACEOF
5546cat confdefs.h >>conftest.$ac_ext
5547cat >>conftest.$ac_ext <<_ACEOF
5548/* end confdefs.h.  */
5549#ifdef __STDC__
5550# include <limits.h>
5551#else
5552# include <assert.h>
5553#endif
5554                     Syntax error
5555_ACEOF
5556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5557  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5558  ac_status=$?
5559  grep -v '^ *+' conftest.er1 >conftest.err
5560  rm -f conftest.er1
5561  cat conftest.err >&5
5562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563  (exit $ac_status); } >/dev/null; then
5564  if test -s conftest.err; then
5565    ac_cpp_err=$ac_cxx_preproc_warn_flag
5566    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5567  else
5568    ac_cpp_err=
5569  fi
5570else
5571  ac_cpp_err=yes
5572fi
5573if test -z "$ac_cpp_err"; then
5574  :
5575else
5576  echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
5579  # Broken: fails on valid input.
5580continue
5581fi
5582rm -f conftest.err conftest.$ac_ext
5583
5584  # OK, works on sane cases.  Now check whether non-existent headers
5585  # can be detected and how.
5586  cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h.  */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h.  */
5592#include <ac_nonexistent.h>
5593_ACEOF
5594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5595  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5596  ac_status=$?
5597  grep -v '^ *+' conftest.er1 >conftest.err
5598  rm -f conftest.er1
5599  cat conftest.err >&5
5600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601  (exit $ac_status); } >/dev/null; then
5602  if test -s conftest.err; then
5603    ac_cpp_err=$ac_cxx_preproc_warn_flag
5604    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5605  else
5606    ac_cpp_err=
5607  fi
5608else
5609  ac_cpp_err=yes
5610fi
5611if test -z "$ac_cpp_err"; then
5612  # Broken: success on invalid input.
5613continue
5614else
5615  echo "$as_me: failed program was:" >&5
5616sed 's/^/| /' conftest.$ac_ext >&5
5617
5618  # Passes both tests.
5619ac_preproc_ok=:
5620break
5621fi
5622rm -f conftest.err conftest.$ac_ext
5623
5624done
5625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626rm -f conftest.err conftest.$ac_ext
5627if $ac_preproc_ok; then
5628  :
5629else
5630  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5631See \`config.log' for more details." >&5
5632echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5633See \`config.log' for more details." >&2;}
5634   { (exit 1); exit 1; }; }
5635fi
5636
5637ac_ext=cc
5638ac_cpp='$CXXCPP $CPPFLAGS'
5639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5642
5643fi
5644
5645
5646ac_ext=f
5647ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5648ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5650if test -n "$ac_tool_prefix"; then
5651  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5652  do
5653    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5655echo "$as_me:$LINENO: checking for $ac_word" >&5
5656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5657if test "${ac_cv_prog_F77+set}" = set; then
5658  echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660  if test -n "$F77"; then
5661  ac_cv_prog_F77="$F77" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666  IFS=$as_save_IFS
5667  test -z "$as_dir" && as_dir=.
5668  for ac_exec_ext in '' $ac_executable_extensions; do
5669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672    break 2
5673  fi
5674done
5675done
5676
5677fi
5678fi
5679F77=$ac_cv_prog_F77
5680if test -n "$F77"; then
5681  echo "$as_me:$LINENO: result: $F77" >&5
5682echo "${ECHO_T}$F77" >&6
5683else
5684  echo "$as_me:$LINENO: result: no" >&5
5685echo "${ECHO_T}no" >&6
5686fi
5687
5688    test -n "$F77" && break
5689  done
5690fi
5691if test -z "$F77"; then
5692  ac_ct_F77=$F77
5693  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5694do
5695  # Extract the first word of "$ac_prog", so it can be a program name with args.
5696set dummy $ac_prog; ac_word=$2
5697echo "$as_me:$LINENO: checking for $ac_word" >&5
5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5700  echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702  if test -n "$ac_ct_F77"; then
5703  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708  IFS=$as_save_IFS
5709  test -z "$as_dir" && as_dir=.
5710  for ac_exec_ext in '' $ac_executable_extensions; do
5711  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712    ac_cv_prog_ac_ct_F77="$ac_prog"
5713    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714    break 2
5715  fi
5716done
5717done
5718
5719fi
5720fi
5721ac_ct_F77=$ac_cv_prog_ac_ct_F77
5722if test -n "$ac_ct_F77"; then
5723  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5724echo "${ECHO_T}$ac_ct_F77" >&6
5725else
5726  echo "$as_me:$LINENO: result: no" >&5
5727echo "${ECHO_T}no" >&6
5728fi
5729
5730  test -n "$ac_ct_F77" && break
5731done
5732
5733  F77=$ac_ct_F77
5734fi
5735
5736
5737# Provide some information about the compiler.
5738echo "$as_me:5738:" \
5739     "checking for Fortran 77 compiler version" >&5
5740ac_compiler=`set X $ac_compile; echo $2`
5741{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5742  (eval $ac_compiler --version </dev/null >&5) 2>&5
5743  ac_status=$?
5744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); }
5746{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5747  (eval $ac_compiler -v </dev/null >&5) 2>&5
5748  ac_status=$?
5749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750  (exit $ac_status); }
5751{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5752  (eval $ac_compiler -V </dev/null >&5) 2>&5
5753  ac_status=$?
5754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755  (exit $ac_status); }
5756rm -f a.out
5757
5758# If we don't use `.F' as extension, the preprocessor is not run on the
5759# input file.  (Note that this only needs to work for GNU compilers.)
5760ac_save_ext=$ac_ext
5761ac_ext=F
5762echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5763echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5764if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5765  echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767  cat >conftest.$ac_ext <<_ACEOF
5768      program main
5769#ifndef __GNUC__
5770       choke me
5771#endif
5772
5773      end
5774_ACEOF
5775rm -f conftest.$ac_objext
5776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777  (eval $ac_compile) 2>conftest.er1
5778  ac_status=$?
5779  grep -v '^ *+' conftest.er1 >conftest.err
5780  rm -f conftest.er1
5781  cat conftest.err >&5
5782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783  (exit $ac_status); } &&
5784         { ac_try='test -z "$ac_f77_werror_flag"
5785                         || test ! -s conftest.err'
5786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787  (eval $ac_try) 2>&5
5788  ac_status=$?
5789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790  (exit $ac_status); }; } &&
5791         { ac_try='test -s conftest.$ac_objext'
5792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793  (eval $ac_try) 2>&5
5794  ac_status=$?
5795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796  (exit $ac_status); }; }; then
5797  ac_compiler_gnu=yes
5798else
5799  echo "$as_me: failed program was:" >&5
5800sed 's/^/| /' conftest.$ac_ext >&5
5801
5802ac_compiler_gnu=no
5803fi
5804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5806
5807fi
5808echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5809echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5810ac_ext=$ac_save_ext
5811ac_test_FFLAGS=${FFLAGS+set}
5812ac_save_FFLAGS=$FFLAGS
5813FFLAGS=
5814echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5815echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5816if test "${ac_cv_prog_f77_g+set}" = set; then
5817  echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819  FFLAGS=-g
5820cat >conftest.$ac_ext <<_ACEOF
5821      program main
5822
5823      end
5824_ACEOF
5825rm -f conftest.$ac_objext
5826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827  (eval $ac_compile) 2>conftest.er1
5828  ac_status=$?
5829  grep -v '^ *+' conftest.er1 >conftest.err
5830  rm -f conftest.er1
5831  cat conftest.err >&5
5832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833  (exit $ac_status); } &&
5834         { ac_try='test -z "$ac_f77_werror_flag"
5835                         || test ! -s conftest.err'
5836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837  (eval $ac_try) 2>&5
5838  ac_status=$?
5839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840  (exit $ac_status); }; } &&
5841         { ac_try='test -s conftest.$ac_objext'
5842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843  (eval $ac_try) 2>&5
5844  ac_status=$?
5845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846  (exit $ac_status); }; }; then
5847  ac_cv_prog_f77_g=yes
5848else
5849  echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852ac_cv_prog_f77_g=no
5853fi
5854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855
5856fi
5857echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5858echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5859if test "$ac_test_FFLAGS" = set; then
5860  FFLAGS=$ac_save_FFLAGS
5861elif test $ac_cv_prog_f77_g = yes; then
5862  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5863    FFLAGS="-g -O2"
5864  else
5865    FFLAGS="-g"
5866  fi
5867else
5868  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5869    FFLAGS="-O2"
5870  else
5871    FFLAGS=
5872  fi
5873fi
5874
5875G77=`test $ac_compiler_gnu = yes && echo yes`
5876ac_ext=c
5877ac_cpp='$CPP $CPPFLAGS'
5878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881
5882
5883
5884# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5885
5886# find the maximum length of command line arguments
5887echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5888echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5889if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5890  echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892    i=0
5893  teststring="ABCD"
5894
5895  case $build_os in
5896  msdosdjgpp*)
5897    # On DJGPP, this test can blow up pretty badly due to problems in libc
5898    # (any single argument exceeding 2000 bytes causes a buffer overrun
5899    # during glob expansion).  Even if it were fixed, the result of this
5900    # check would be larger than it should be.
5901    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5902    ;;
5903
5904  gnu*)
5905    # Under GNU Hurd, this test is not required because there is
5906    # no limit to the length of command line arguments.
5907    # Libtool will interpret -1 as no limit whatsoever
5908    lt_cv_sys_max_cmd_len=-1;
5909    ;;
5910
5911  cygwin* | mingw*)
5912    # On Win9x/ME, this test blows up -- it succeeds, but takes
5913    # about 5 minutes as the teststring grows exponentially.
5914    # Worse, since 9x/ME are not pre-emptively multitasking,
5915    # you end up with a "frozen" computer, even though with patience
5916    # the test eventually succeeds (with a max line length of 256k).
5917    # Instead, let's just punt: use the minimum linelength reported by
5918    # all of the supported platforms: 8192 (on NT/2K/XP).
5919    lt_cv_sys_max_cmd_len=8192;
5920    ;;
5921
5922  amigaos*)
5923    # On AmigaOS with pdksh, this test takes hours, literally.
5924    # So we just punt and use a minimum line length of 8192.
5925    lt_cv_sys_max_cmd_len=8192;
5926    ;;
5927
5928  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5929    # This has been around since 386BSD, at least.  Likely further.
5930    if test -x /sbin/sysctl; then
5931      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5932    elif test -x /usr/sbin/sysctl; then
5933      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5934    else
5935      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5936    fi
5937    # And add a safety zone
5938    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5939    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5940    ;;
5941
5942  interix*)
5943    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5944    lt_cv_sys_max_cmd_len=196608
5945    ;;
5946
5947  osf*)
5948    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5949    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5950    # nice to cause kernel panics so lets avoid the loop below.
5951    # First set a reasonable default.
5952    lt_cv_sys_max_cmd_len=16384
5953    #
5954    if test -x /sbin/sysconfig; then
5955      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5956        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5957      esac
5958    fi
5959    ;;
5960  sco3.2v5*)
5961    lt_cv_sys_max_cmd_len=102400
5962    ;;
5963  sysv5* | sco5v6* | sysv4.2uw2*)
5964    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5965    if test -n "$kargmax"; then
5966      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5967    else
5968      lt_cv_sys_max_cmd_len=32768
5969    fi
5970    ;;
5971  *)
5972    # If test is not a shell built-in, we'll probably end up computing a
5973    # maximum length that is only half of the actual maximum length, but
5974    # we can't tell.
5975    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5976    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5977               = "XX$teststring") >/dev/null 2>&1 &&
5978            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5979            lt_cv_sys_max_cmd_len=$new_result &&
5980            test $i != 17 # 1/2 MB should be enough
5981    do
5982      i=`expr $i + 1`
5983      teststring=$teststring$teststring
5984    done
5985    teststring=
5986    # Add a significant safety factor because C++ compilers can tack on massive
5987    # amounts of additional arguments before passing them to the linker.
5988    # It appears as though 1/2 is a usable value.
5989    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5990    ;;
5991  esac
5992
5993fi
5994
5995if test -n $lt_cv_sys_max_cmd_len ; then
5996  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5997echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5998else
5999  echo "$as_me:$LINENO: result: none" >&5
6000echo "${ECHO_T}none" >&6
6001fi
6002
6003
6004
6005
6006# Check for command to grab the raw symbol name followed by C symbol from nm.
6007echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6008echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6009if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6010  echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012
6013# These are sane defaults that work on at least a few old systems.
6014# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6015
6016# Character class describing NM global symbol codes.
6017symcode='[BCDEGRST]'
6018
6019# Regexp to match symbols that can be accessed directly from C.
6020sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6021
6022# Transform an extracted symbol line into a proper C declaration
6023lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6024
6025# Transform an extracted symbol line into symbol name and symbol address
6026lt_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'"
6027
6028# Define system-specific variables.
6029case $host_os in
6030aix*)
6031  symcode='[BCDT]'
6032  ;;
6033cygwin* | mingw* | pw32*)
6034  symcode='[ABCDGISTW]'
6035  ;;
6036hpux*) # Its linker distinguishes data from code symbols
6037  if test "$host_cpu" = ia64; then
6038    symcode='[ABCDEGRST]'
6039  fi
6040  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6041  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'"
6042  ;;
6043linux*)
6044  if test "$host_cpu" = ia64; then
6045    symcode='[ABCDGIRSTW]'
6046    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6047    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'"
6048  fi
6049  ;;
6050irix* | nonstopux*)
6051  symcode='[BCDEGRST]'
6052  ;;
6053osf*)
6054  symcode='[BCDEGQRST]'
6055  ;;
6056solaris*)
6057  symcode='[BDRT]'
6058  ;;
6059sco3.2v5*)
6060  symcode='[DT]'
6061  ;;
6062sysv4.2uw2*)
6063  symcode='[DT]'
6064  ;;
6065sysv5* | sco5v6* | unixware* | OpenUNIX*)
6066  symcode='[ABDT]'
6067  ;;
6068sysv4)
6069  symcode='[DFNSTU]'
6070  ;;
6071esac
6072
6073# Handle CRLF in mingw tool chain
6074opt_cr=
6075case $build_os in
6076mingw*)
6077  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6078  ;;
6079esac
6080
6081# If we're using GNU nm, then use its standard symbol codes.
6082case `$NM -V 2>&1` in
6083*GNU* | *'with BFD'*)
6084  symcode='[ABCDGIRSTW]' ;;
6085esac
6086
6087# Try without a prefix undercore, then with it.
6088for ac_symprfx in "" "_"; do
6089
6090  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6091  symxfrm="\\1 $ac_symprfx\\2 \\2"
6092
6093  # Write the raw and C identifiers.
6094  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6095
6096  # Check to see that the pipe works correctly.
6097  pipe_works=no
6098
6099  rm -f conftest*
6100  cat > conftest.$ac_ext <<EOF
6101#ifdef __cplusplus
6102extern "C" {
6103#endif
6104char nm_test_var;
6105void nm_test_func(){}
6106#ifdef __cplusplus
6107}
6108#endif
6109int main(){nm_test_var='a';nm_test_func();return(0);}
6110EOF
6111
6112  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113  (eval $ac_compile) 2>&5
6114  ac_status=$?
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); }; then
6117    # Now try to grab the symbols.
6118    nlist=conftest.nm
6119    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6120  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6121  ac_status=$?
6122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123  (exit $ac_status); } && test -s "$nlist"; then
6124      # Try sorting and uniquifying the output.
6125      if sort "$nlist" | uniq > "$nlist"T; then
6126        mv -f "$nlist"T "$nlist"
6127      else
6128        rm -f "$nlist"T
6129      fi
6130
6131      # Make sure that we snagged all the symbols we need.
6132      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6133        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6134          cat <<EOF > conftest.$ac_ext
6135#ifdef __cplusplus
6136extern "C" {
6137#endif
6138
6139EOF
6140          # Now generate the symbol file.
6141          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6142
6143          cat <<EOF >> conftest.$ac_ext
6144#if defined (__STDC__) && __STDC__
6145# define lt_ptr_t void *
6146#else
6147# define lt_ptr_t char *
6148# define const
6149#endif
6150
6151/* The mapping between symbol names and symbols. */
6152const struct {
6153  const char *name;
6154  lt_ptr_t address;
6155}
6156lt_preloaded_symbols[] =
6157{
6158EOF
6159          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6160          cat <<\EOF >> conftest.$ac_ext
6161  {0, (lt_ptr_t) 0}
6162};
6163
6164#ifdef __cplusplus
6165}
6166#endif
6167EOF
6168          # Now try linking the two files.
6169          mv conftest.$ac_objext conftstm.$ac_objext
6170          lt_save_LIBS="$LIBS"
6171          lt_save_CFLAGS="$CFLAGS"
6172          LIBS="conftstm.$ac_objext"
6173          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6174          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175  (eval $ac_link) 2>&5
6176  ac_status=$?
6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6179            pipe_works=yes
6180          fi
6181          LIBS="$lt_save_LIBS"
6182          CFLAGS="$lt_save_CFLAGS"
6183        else
6184          echo "cannot find nm_test_func in $nlist" >&5
6185        fi
6186      else
6187        echo "cannot find nm_test_var in $nlist" >&5
6188      fi
6189    else
6190      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6191    fi
6192  else
6193    echo "$progname: failed program was:" >&5
6194    cat conftest.$ac_ext >&5
6195  fi
6196  rm -f conftest* conftst*
6197
6198  # Do not use the global_symbol_pipe unless it works.
6199  if test "$pipe_works" = yes; then
6200    break
6201  else
6202    lt_cv_sys_global_symbol_pipe=
6203  fi
6204done
6205
6206fi
6207
6208if test -z "$lt_cv_sys_global_symbol_pipe"; then
6209  lt_cv_sys_global_symbol_to_cdecl=
6210fi
6211if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6212  echo "$as_me:$LINENO: result: failed" >&5
6213echo "${ECHO_T}failed" >&6
6214else
6215  echo "$as_me:$LINENO: result: ok" >&5
6216echo "${ECHO_T}ok" >&6
6217fi
6218
6219echo "$as_me:$LINENO: checking for objdir" >&5
6220echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6221if test "${lt_cv_objdir+set}" = set; then
6222  echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224  rm -f .libs 2>/dev/null
6225mkdir .libs 2>/dev/null
6226if test -d .libs; then
6227  lt_cv_objdir=.libs
6228else
6229  # MS-DOS does not allow filenames that begin with a dot.
6230  lt_cv_objdir=_libs
6231fi
6232rmdir .libs 2>/dev/null
6233fi
6234echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6235echo "${ECHO_T}$lt_cv_objdir" >&6
6236objdir=$lt_cv_objdir
6237
6238
6239
6240
6241
6242case $host_os in
6243aix3*)
6244  # AIX sometimes has problems with the GCC collect2 program.  For some
6245  # reason, if we set the COLLECT_NAMES environment variable, the problems
6246  # vanish in a puff of smoke.
6247  if test "X${COLLECT_NAMES+set}" != Xset; then
6248    COLLECT_NAMES=
6249    export COLLECT_NAMES
6250  fi
6251  ;;
6252esac
6253
6254# Sed substitution that helps us do robust quoting.  It backslashifies
6255# metacharacters that are still active within double-quoted strings.
6256Xsed='sed -e 1s/^X//'
6257sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6258
6259# Same as above, but do not quote variable references.
6260double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6261
6262# Sed substitution to delay expansion of an escaped shell variable in a
6263# double_quote_subst'ed string.
6264delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6265
6266# Sed substitution to avoid accidental globbing in evaled expressions
6267no_glob_subst='s/\*/\\\*/g'
6268
6269# Constants:
6270rm="rm -f"
6271
6272# Global variables:
6273default_ofile=libtool
6274can_build_shared=yes
6275
6276# All known linkers require a `.a' archive for static linking (except MSVC,
6277# which needs '.lib').
6278libext=a
6279ltmain="$ac_aux_dir/ltmain.sh"
6280ofile="$default_ofile"
6281with_gnu_ld="$lt_cv_prog_gnu_ld"
6282
6283if test -n "$ac_tool_prefix"; then
6284  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6285set dummy ${ac_tool_prefix}ar; ac_word=$2
6286echo "$as_me:$LINENO: checking for $ac_word" >&5
6287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6288if test "${ac_cv_prog_AR+set}" = set; then
6289  echo $ECHO_N "(cached) $ECHO_C" >&6
6290else
6291  if test -n "$AR"; then
6292  ac_cv_prog_AR="$AR" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  test -z "$as_dir" && as_dir=.
6299  for ac_exec_ext in '' $ac_executable_extensions; do
6300  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301    ac_cv_prog_AR="${ac_tool_prefix}ar"
6302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306done
6307
6308fi
6309fi
6310AR=$ac_cv_prog_AR
6311if test -n "$AR"; then
6312  echo "$as_me:$LINENO: result: $AR" >&5
6313echo "${ECHO_T}$AR" >&6
6314else
6315  echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6
6317fi
6318
6319fi
6320if test -z "$ac_cv_prog_AR"; then
6321  ac_ct_AR=$AR
6322  # Extract the first word of "ar", so it can be a program name with args.
6323set dummy ar; ac_word=$2
6324echo "$as_me:$LINENO: checking for $ac_word" >&5
6325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6326if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6327  echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329  if test -n "$ac_ct_AR"; then
6330  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335  IFS=$as_save_IFS
6336  test -z "$as_dir" && as_dir=.
6337  for ac_exec_ext in '' $ac_executable_extensions; do
6338  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6339    ac_cv_prog_ac_ct_AR="ar"
6340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341    break 2
6342  fi
6343done
6344done
6345
6346  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6347fi
6348fi
6349ac_ct_AR=$ac_cv_prog_ac_ct_AR
6350if test -n "$ac_ct_AR"; then
6351  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6352echo "${ECHO_T}$ac_ct_AR" >&6
6353else
6354  echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6
6356fi
6357
6358  AR=$ac_ct_AR
6359else
6360  AR="$ac_cv_prog_AR"
6361fi
6362
6363if test -n "$ac_tool_prefix"; then
6364  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6365set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6366echo "$as_me:$LINENO: checking for $ac_word" >&5
6367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6368if test "${ac_cv_prog_RANLIB+set}" = set; then
6369  echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371  if test -n "$RANLIB"; then
6372  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6373else
6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377  IFS=$as_save_IFS
6378  test -z "$as_dir" && as_dir=.
6379  for ac_exec_ext in '' $ac_executable_extensions; do
6380  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383    break 2
6384  fi
6385done
6386done
6387
6388fi
6389fi
6390RANLIB=$ac_cv_prog_RANLIB
6391if test -n "$RANLIB"; then
6392  echo "$as_me:$LINENO: result: $RANLIB" >&5
6393echo "${ECHO_T}$RANLIB" >&6
6394else
6395  echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6
6397fi
6398
6399fi
6400if test -z "$ac_cv_prog_RANLIB"; then
6401  ac_ct_RANLIB=$RANLIB
6402  # Extract the first word of "ranlib", so it can be a program name with args.
6403set dummy ranlib; ac_word=$2
6404echo "$as_me:$LINENO: checking for $ac_word" >&5
6405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6406if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6407  echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
6409  if test -n "$ac_ct_RANLIB"; then
6410  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6411else
6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415  IFS=$as_save_IFS
6416  test -z "$as_dir" && as_dir=.
6417  for ac_exec_ext in '' $ac_executable_extensions; do
6418  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6419    ac_cv_prog_ac_ct_RANLIB="ranlib"
6420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421    break 2
6422  fi
6423done
6424done
6425
6426  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6427fi
6428fi
6429ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6430if test -n "$ac_ct_RANLIB"; then
6431  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6432echo "${ECHO_T}$ac_ct_RANLIB" >&6
6433else
6434  echo "$as_me:$LINENO: result: no" >&5
6435echo "${ECHO_T}no" >&6
6436fi
6437
6438  RANLIB=$ac_ct_RANLIB
6439else
6440  RANLIB="$ac_cv_prog_RANLIB"
6441fi
6442
6443if test -n "$ac_tool_prefix"; then
6444  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6445set dummy ${ac_tool_prefix}strip; ac_word=$2
6446echo "$as_me:$LINENO: checking for $ac_word" >&5
6447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6448if test "${ac_cv_prog_STRIP+set}" = set; then
6449  echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451  if test -n "$STRIP"; then
6452  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457  IFS=$as_save_IFS
6458  test -z "$as_dir" && as_dir=.
6459  for ac_exec_ext in '' $ac_executable_extensions; do
6460  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6462    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463    break 2
6464  fi
6465done
6466done
6467
6468fi
6469fi
6470STRIP=$ac_cv_prog_STRIP
6471if test -n "$STRIP"; then
6472  echo "$as_me:$LINENO: result: $STRIP" >&5
6473echo "${ECHO_T}$STRIP" >&6
6474else
6475  echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6
6477fi
6478
6479fi
6480if test -z "$ac_cv_prog_STRIP"; then
6481  ac_ct_STRIP=$STRIP
6482  # Extract the first word of "strip", so it can be a program name with args.
6483set dummy strip; ac_word=$2
6484echo "$as_me:$LINENO: checking for $ac_word" >&5
6485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6486if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6487  echo $ECHO_N "(cached) $ECHO_C" >&6
6488else
6489  if test -n "$ac_ct_STRIP"; then
6490  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495  IFS=$as_save_IFS
6496  test -z "$as_dir" && as_dir=.
6497  for ac_exec_ext in '' $ac_executable_extensions; do
6498  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499    ac_cv_prog_ac_ct_STRIP="strip"
6500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501    break 2
6502  fi
6503done
6504done
6505
6506  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6507fi
6508fi
6509ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6510if test -n "$ac_ct_STRIP"; then
6511  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6512echo "${ECHO_T}$ac_ct_STRIP" >&6
6513else
6514  echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516fi
6517
6518  STRIP=$ac_ct_STRIP
6519else
6520  STRIP="$ac_cv_prog_STRIP"
6521fi
6522
6523
6524old_CC="$CC"
6525old_CFLAGS="$CFLAGS"
6526
6527# Set sane defaults for various variables
6528test -z "$AR" && AR=ar
6529test -z "$AR_FLAGS" && AR_FLAGS=cru
6530test -z "$AS" && AS=as
6531test -z "$CC" && CC=cc
6532test -z "$LTCC" && LTCC=$CC
6533test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6534test -z "$DLLTOOL" && DLLTOOL=dlltool
6535test -z "$LD" && LD=ld
6536test -z "$LN_S" && LN_S="ln -s"
6537test -z "$MAGIC_CMD" && MAGIC_CMD=file
6538test -z "$NM" && NM=nm
6539test -z "$SED" && SED=sed
6540test -z "$OBJDUMP" && OBJDUMP=objdump
6541test -z "$RANLIB" && RANLIB=:
6542test -z "$STRIP" && STRIP=:
6543test -z "$ac_objext" && ac_objext=o
6544
6545# Determine commands to create old-style static archives.
6546old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6547old_postinstall_cmds='chmod 644 $oldlib'
6548old_postuninstall_cmds=
6549
6550if test -n "$RANLIB"; then
6551  case $host_os in
6552  openbsd*)
6553    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6554    ;;
6555  *)
6556    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6557    ;;
6558  esac
6559  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6560fi
6561
6562for cc_temp in $compiler""; do
6563  case $cc_temp in
6564    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6565    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6566    \-*) ;;
6567    *) break;;
6568  esac
6569done
6570cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6571
6572
6573# Only perform the check for file, if the check method requires it
6574case $deplibs_check_method in
6575file_magic*)
6576  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6577    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6578echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6579if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6580  echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582  case $MAGIC_CMD in
6583[\\/*] |  ?:[\\/]*)
6584  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6585  ;;
6586*)
6587  lt_save_MAGIC_CMD="$MAGIC_CMD"
6588  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6589  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6590  for ac_dir in $ac_dummy; do
6591    IFS="$lt_save_ifs"
6592    test -z "$ac_dir" && ac_dir=.
6593    if test -f $ac_dir/${ac_tool_prefix}file; then
6594      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6595      if test -n "$file_magic_test_file"; then
6596        case $deplibs_check_method in
6597        "file_magic "*)
6598          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6599          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6600          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6601            $EGREP "$file_magic_regex" > /dev/null; then
6602            :
6603          else
6604            cat <<EOF 1>&2
6605
6606*** Warning: the command libtool uses to detect shared libraries,
6607*** $file_magic_cmd, produces output that libtool cannot recognize.
6608*** The result is that libtool may fail to recognize shared libraries
6609*** as such.  This will affect the creation of libtool libraries that
6610*** depend on shared libraries, but programs linked with such libtool
6611*** libraries will work regardless of this problem.  Nevertheless, you
6612*** may want to report the problem to your system manager and/or to
6613*** bug-libtool@gnu.org
6614
6615EOF
6616          fi ;;
6617        esac
6618      fi
6619      break
6620    fi
6621  done
6622  IFS="$lt_save_ifs"
6623  MAGIC_CMD="$lt_save_MAGIC_CMD"
6624  ;;
6625esac
6626fi
6627
6628MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6629if test -n "$MAGIC_CMD"; then
6630  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6631echo "${ECHO_T}$MAGIC_CMD" >&6
6632else
6633  echo "$as_me:$LINENO: result: no" >&5
6634echo "${ECHO_T}no" >&6
6635fi
6636
6637if test -z "$lt_cv_path_MAGIC_CMD"; then
6638  if test -n "$ac_tool_prefix"; then
6639    echo "$as_me:$LINENO: checking for file" >&5
6640echo $ECHO_N "checking for file... $ECHO_C" >&6
6641if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6642  echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644  case $MAGIC_CMD in
6645[\\/*] |  ?:[\\/]*)
6646  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6647  ;;
6648*)
6649  lt_save_MAGIC_CMD="$MAGIC_CMD"
6650  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6651  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6652  for ac_dir in $ac_dummy; do
6653    IFS="$lt_save_ifs"
6654    test -z "$ac_dir" && ac_dir=.
6655    if test -f $ac_dir/file; then
6656      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6657      if test -n "$file_magic_test_file"; then
6658        case $deplibs_check_method in
6659        "file_magic "*)
6660          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6661          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6662          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6663            $EGREP "$file_magic_regex" > /dev/null; then
6664            :
6665          else
6666            cat <<EOF 1>&2
6667
6668*** Warning: the command libtool uses to detect shared libraries,
6669*** $file_magic_cmd, produces output that libtool cannot recognize.
6670*** The result is that libtool may fail to recognize shared libraries
6671*** as such.  This will affect the creation of libtool libraries that
6672*** depend on shared libraries, but programs linked with such libtool
6673*** libraries will work regardless of this problem.  Nevertheless, you
6674*** may want to report the problem to your system manager and/or to
6675*** bug-libtool@gnu.org
6676
6677EOF
6678          fi ;;
6679        esac
6680      fi
6681      break
6682    fi
6683  done
6684  IFS="$lt_save_ifs"
6685  MAGIC_CMD="$lt_save_MAGIC_CMD"
6686  ;;
6687esac
6688fi
6689
6690MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6691if test -n "$MAGIC_CMD"; then
6692  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6693echo "${ECHO_T}$MAGIC_CMD" >&6
6694else
6695  echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
6697fi
6698
6699  else
6700    MAGIC_CMD=:
6701  fi
6702fi
6703
6704  fi
6705  ;;
6706esac
6707
6708enable_dlopen=no
6709enable_win32_dll=yes
6710
6711# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6712if test "${enable_libtool_lock+set}" = set; then
6713  enableval="$enable_libtool_lock"
6714
6715fi;
6716test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6717
6718
6719# Check whether --with-pic or --without-pic was given.
6720if test "${with_pic+set}" = set; then
6721  withval="$with_pic"
6722  pic_mode="$withval"
6723else
6724  pic_mode=default
6725fi;
6726test -z "$pic_mode" && pic_mode=default
6727
6728# Use C for the default configuration in the libtool script
6729tagname=
6730lt_save_CC="$CC"
6731ac_ext=c
6732ac_cpp='$CPP $CPPFLAGS'
6733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735ac_compiler_gnu=$ac_cv_c_compiler_gnu
6736
6737
6738# Source file extension for C test sources.
6739ac_ext=c
6740
6741# Object file extension for compiled C test sources.
6742objext=o
6743objext=$objext
6744
6745# Code to be used in simple compile tests
6746lt_simple_compile_test_code="int some_variable = 0;\n"
6747
6748# Code to be used in simple link tests
6749lt_simple_link_test_code='int main(){return(0);}\n'
6750
6751
6752# If no C compiler was specified, use CC.
6753LTCC=${LTCC-"$CC"}
6754
6755# If no C compiler flags were specified, use CFLAGS.
6756LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6757
6758# Allow CC to be a program name with arguments.
6759compiler=$CC
6760
6761
6762# save warnings/boilerplate of simple test code
6763ac_outfile=conftest.$ac_objext
6764printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6765eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6766_lt_compiler_boilerplate=`cat conftest.err`
6767$rm conftest*
6768
6769ac_outfile=conftest.$ac_objext
6770printf "$lt_simple_link_test_code" >conftest.$ac_ext
6771eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6772_lt_linker_boilerplate=`cat conftest.err`
6773$rm conftest*
6774
6775
6776
6777lt_prog_compiler_no_builtin_flag=
6778
6779if test "$GCC" = yes; then
6780  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6781
6782
6783echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6784echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6785if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6786  echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788  lt_cv_prog_compiler_rtti_exceptions=no
6789  ac_outfile=conftest.$ac_objext
6790   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6791   lt_compiler_flag="-fno-rtti -fno-exceptions"
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   # The option is referenced via a variable to avoid confusing sed.
6797   lt_compile=`echo "$ac_compile" | $SED \
6798   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6799   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6800   -e 's:$: $lt_compiler_flag:'`
6801   (eval echo "\"\$as_me:6801: $lt_compile\"" >&5)
6802   (eval "$lt_compile" 2>conftest.err)
6803   ac_status=$?
6804   cat conftest.err >&5
6805   echo "$as_me:6805: \$? = $ac_status" >&5
6806   if (exit $ac_status) && test -s "$ac_outfile"; then
6807     # The compiler can only warn and ignore the option if not recognized
6808     # So say no if there are warnings other than the usual output.
6809     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6810     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6811     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6812       lt_cv_prog_compiler_rtti_exceptions=yes
6813     fi
6814   fi
6815   $rm conftest*
6816
6817fi
6818echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6819echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6820
6821if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6822    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6823else
6824    :
6825fi
6826
6827fi
6828
6829lt_prog_compiler_wl=
6830lt_prog_compiler_pic=
6831lt_prog_compiler_static=
6832
6833echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6834echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6835
6836  if test "$GCC" = yes; then
6837    lt_prog_compiler_wl='-Wl,'
6838    lt_prog_compiler_static='-static'
6839
6840    case $host_os in
6841      aix*)
6842      # All AIX code is PIC.
6843      if test "$host_cpu" = ia64; then
6844        # AIX 5 now supports IA64 processor
6845        lt_prog_compiler_static='-Bstatic'
6846      fi
6847      ;;
6848
6849    amigaos*)
6850      # FIXME: we need at least 68020 code to build shared libraries, but
6851      # adding the `-m68020' flag to GCC prevents building anything better,
6852      # like `-m68040'.
6853      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6854      ;;
6855
6856    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6857      # PIC is the default for these OSes.
6858      ;;
6859
6860    mingw* | pw32* | os2*)
6861      # This hack is so that the source file can tell whether it is being
6862      # built for inclusion in a dll (and should export symbols for example).
6863      lt_prog_compiler_pic='-DDLL_EXPORT'
6864      ;;
6865
6866    darwin* | rhapsody*)
6867      # PIC is the default on this platform
6868      # Common symbols not allowed in MH_DYLIB files
6869      lt_prog_compiler_pic='-fno-common'
6870      ;;
6871
6872    interix3*)
6873      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6874      # Instead, we relocate shared libraries at runtime.
6875      ;;
6876
6877    msdosdjgpp*)
6878      # Just because we use GCC doesn't mean we suddenly get shared libraries
6879      # on systems that don't support them.
6880      lt_prog_compiler_can_build_shared=no
6881      enable_shared=no
6882      ;;
6883
6884    sysv4*MP*)
6885      if test -d /usr/nec; then
6886        lt_prog_compiler_pic=-Kconform_pic
6887      fi
6888      ;;
6889
6890    hpux*)
6891      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6892      # not for PA HP-UX.
6893      case $host_cpu in
6894      hppa*64*|ia64*)
6895        # +Z the default
6896        ;;
6897      *)
6898        lt_prog_compiler_pic='-fPIC'
6899        ;;
6900      esac
6901      ;;
6902
6903    *)
6904      lt_prog_compiler_pic='-fPIC'
6905      ;;
6906    esac
6907  else
6908    # PORTME Check for flag to pass linker flags through the system compiler.
6909    case $host_os in
6910    aix*)
6911      lt_prog_compiler_wl='-Wl,'
6912      if test "$host_cpu" = ia64; then
6913        # AIX 5 now supports IA64 processor
6914        lt_prog_compiler_static='-Bstatic'
6915      else
6916        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6917      fi
6918      ;;
6919      darwin*)
6920        # PIC is the default on this platform
6921        # Common symbols not allowed in MH_DYLIB files
6922       case $cc_basename in
6923         xlc*)
6924         lt_prog_compiler_pic='-qnocommon'
6925         lt_prog_compiler_wl='-Wl,'
6926         ;;
6927       esac
6928       ;;
6929
6930    mingw* | pw32* | os2*)
6931      # This hack is so that the source file can tell whether it is being
6932      # built for inclusion in a dll (and should export symbols for example).
6933      lt_prog_compiler_pic='-DDLL_EXPORT'
6934      ;;
6935
6936    hpux9* | hpux10* | hpux11*)
6937      lt_prog_compiler_wl='-Wl,'
6938      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6939      # not for PA HP-UX.
6940      case $host_cpu in
6941      hppa*64*|ia64*)
6942        # +Z the default
6943        ;;
6944      *)
6945        lt_prog_compiler_pic='+Z'
6946        ;;
6947      esac
6948      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6949      lt_prog_compiler_static='${wl}-a ${wl}archive'
6950      ;;
6951
6952    irix5* | irix6* | nonstopux*)
6953      lt_prog_compiler_wl='-Wl,'
6954      # PIC (with -KPIC) is the default.
6955      lt_prog_compiler_static='-non_shared'
6956      ;;
6957
6958    newsos6)
6959      lt_prog_compiler_pic='-KPIC'
6960      lt_prog_compiler_static='-Bstatic'
6961      ;;
6962
6963    linux*)
6964      case $cc_basename in
6965      icc* | ecc*)
6966        lt_prog_compiler_wl='-Wl,'
6967        lt_prog_compiler_pic='-KPIC'
6968        lt_prog_compiler_static='-static'
6969        ;;
6970      pgcc* | pgf77* | pgf90* | pgf95*)
6971        # Portland Group compilers (*not* the Pentium gcc compiler,
6972        # which looks to be a dead project)
6973        lt_prog_compiler_wl='-Wl,'
6974        lt_prog_compiler_pic='-fpic'
6975        lt_prog_compiler_static='-Bstatic'
6976        ;;
6977      ccc*)
6978        lt_prog_compiler_wl='-Wl,'
6979        # All Alpha code is PIC.
6980        lt_prog_compiler_static='-non_shared'
6981        ;;
6982      esac
6983      ;;
6984
6985    osf3* | osf4* | osf5*)
6986      lt_prog_compiler_wl='-Wl,'
6987      # All OSF/1 code is PIC.
6988      lt_prog_compiler_static='-non_shared'
6989      ;;
6990
6991    solaris*)
6992      lt_prog_compiler_pic='-KPIC'
6993      lt_prog_compiler_static='-Bstatic'
6994      case $cc_basename in
6995      f77* | f90* | f95*)
6996        lt_prog_compiler_wl='-Qoption ld ';;
6997      *)
6998        lt_prog_compiler_wl='-Wl,';;
6999      esac
7000      ;;
7001
7002    sunos4*)
7003      lt_prog_compiler_wl='-Qoption ld '
7004      lt_prog_compiler_pic='-PIC'
7005      lt_prog_compiler_static='-Bstatic'
7006      ;;
7007
7008    sysv4 | sysv4.2uw2* | sysv4.3*)
7009      lt_prog_compiler_wl='-Wl,'
7010      lt_prog_compiler_pic='-KPIC'
7011      lt_prog_compiler_static='-Bstatic'
7012      ;;
7013
7014    sysv4*MP*)
7015      if test -d /usr/nec ;then
7016        lt_prog_compiler_pic='-Kconform_pic'
7017        lt_prog_compiler_static='-Bstatic'
7018      fi
7019      ;;
7020
7021    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7022      lt_prog_compiler_wl='-Wl,'
7023      lt_prog_compiler_pic='-KPIC'
7024      lt_prog_compiler_static='-Bstatic'
7025      ;;
7026
7027    unicos*)
7028      lt_prog_compiler_wl='-Wl,'
7029      lt_prog_compiler_can_build_shared=no
7030      ;;
7031
7032    uts4*)
7033      lt_prog_compiler_pic='-pic'
7034      lt_prog_compiler_static='-Bstatic'
7035      ;;
7036
7037    *)
7038      lt_prog_compiler_can_build_shared=no
7039      ;;
7040    esac
7041  fi
7042
7043echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7044echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7045
7046#
7047# Check to make sure the PIC flag actually works.
7048#
7049if test -n "$lt_prog_compiler_pic"; then
7050
7051echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7052echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7053if test "${lt_prog_compiler_pic_works+set}" = set; then
7054  echo $ECHO_N "(cached) $ECHO_C" >&6
7055else
7056  lt_prog_compiler_pic_works=no
7057  ac_outfile=conftest.$ac_objext
7058   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7059   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7060   # Insert the option either (1) after the last *FLAGS variable, or
7061   # (2) before a word containing "conftest.", or (3) at the end.
7062   # Note that $ac_compile itself does not contain backslashes and begins
7063   # with a dollar sign (not a hyphen), so the echo should work correctly.
7064   # The option is referenced via a variable to avoid confusing sed.
7065   lt_compile=`echo "$ac_compile" | $SED \
7066   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7068   -e 's:$: $lt_compiler_flag:'`
7069   (eval echo "\"\$as_me:7069: $lt_compile\"" >&5)
7070   (eval "$lt_compile" 2>conftest.err)
7071   ac_status=$?
7072   cat conftest.err >&5
7073   echo "$as_me:7073: \$? = $ac_status" >&5
7074   if (exit $ac_status) && test -s "$ac_outfile"; then
7075     # The compiler can only warn and ignore the option if not recognized
7076     # So say no if there are warnings other than the usual output.
7077     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7078     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7079     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7080       lt_prog_compiler_pic_works=yes
7081     fi
7082   fi
7083   $rm conftest*
7084
7085fi
7086echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7087echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7088
7089if test x"$lt_prog_compiler_pic_works" = xyes; then
7090    case $lt_prog_compiler_pic in
7091     "" | " "*) ;;
7092     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7093     esac
7094else
7095    lt_prog_compiler_pic=
7096     lt_prog_compiler_can_build_shared=no
7097fi
7098
7099fi
7100case $host_os in
7101  # For platforms which do not support PIC, -DPIC is meaningless:
7102  *djgpp*)
7103    lt_prog_compiler_pic=
7104    ;;
7105  *)
7106    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7107    ;;
7108esac
7109
7110#
7111# Check to make sure the static flag actually works.
7112#
7113wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7114echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7115echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7116if test "${lt_prog_compiler_static_works+set}" = set; then
7117  echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119  lt_prog_compiler_static_works=no
7120   save_LDFLAGS="$LDFLAGS"
7121   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7122   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7123   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7124     # The linker can only warn and ignore the option if not recognized
7125     # So say no if there are warnings
7126     if test -s conftest.err; then
7127       # Append any errors to the config.log.
7128       cat conftest.err 1>&5
7129       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7130       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7131       if diff conftest.exp conftest.er2 >/dev/null; then
7132         lt_prog_compiler_static_works=yes
7133       fi
7134     else
7135       lt_prog_compiler_static_works=yes
7136     fi
7137   fi
7138   $rm conftest*
7139   LDFLAGS="$save_LDFLAGS"
7140
7141fi
7142echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7143echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7144
7145if test x"$lt_prog_compiler_static_works" = xyes; then
7146    :
7147else
7148    lt_prog_compiler_static=
7149fi
7150
7151
7152echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7153echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7154if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7155  echo $ECHO_N "(cached) $ECHO_C" >&6
7156else
7157  lt_cv_prog_compiler_c_o=no
7158   $rm -r conftest 2>/dev/null
7159   mkdir conftest
7160   cd conftest
7161   mkdir out
7162   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7163
7164   lt_compiler_flag="-o out/conftest2.$ac_objext"
7165   # Insert the option either (1) after the last *FLAGS variable, or
7166   # (2) before a word containing "conftest.", or (3) at the end.
7167   # Note that $ac_compile itself does not contain backslashes and begins
7168   # with a dollar sign (not a hyphen), so the echo should work correctly.
7169   lt_compile=`echo "$ac_compile" | $SED \
7170   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7171   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172   -e 's:$: $lt_compiler_flag:'`
7173   (eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
7174   (eval "$lt_compile" 2>out/conftest.err)
7175   ac_status=$?
7176   cat out/conftest.err >&5
7177   echo "$as_me:7177: \$? = $ac_status" >&5
7178   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7179   then
7180     # The compiler can only warn and ignore the option if not recognized
7181     # So say no if there are warnings
7182     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7183     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7184     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7185       lt_cv_prog_compiler_c_o=yes
7186     fi
7187   fi
7188   chmod u+w . 2>&5
7189   $rm conftest*
7190   # SGI C++ compiler will create directory out/ii_files/ for
7191   # template instantiation
7192   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7193   $rm out/* && rmdir out
7194   cd ..
7195   rmdir conftest
7196   $rm conftest*
7197
7198fi
7199echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7200echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7201
7202
7203hard_links="nottested"
7204if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7205  # do not overwrite the value of need_locks provided by the user
7206  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7207echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7208  hard_links=yes
7209  $rm conftest*
7210  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7211  touch conftest.a
7212  ln conftest.a conftest.b 2>&5 || hard_links=no
7213  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7214  echo "$as_me:$LINENO: result: $hard_links" >&5
7215echo "${ECHO_T}$hard_links" >&6
7216  if test "$hard_links" = no; then
7217    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7218echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7219    need_locks=warn
7220  fi
7221else
7222  need_locks=no
7223fi
7224
7225echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7226echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7227
7228  runpath_var=
7229  allow_undefined_flag=
7230  enable_shared_with_static_runtimes=no
7231  archive_cmds=
7232  archive_expsym_cmds=
7233  old_archive_From_new_cmds=
7234  old_archive_from_expsyms_cmds=
7235  export_dynamic_flag_spec=
7236  whole_archive_flag_spec=
7237  thread_safe_flag_spec=
7238  hardcode_libdir_flag_spec=
7239  hardcode_libdir_flag_spec_ld=
7240  hardcode_libdir_separator=
7241  hardcode_direct=no
7242  hardcode_minus_L=no
7243  hardcode_shlibpath_var=unsupported
7244  link_all_deplibs=unknown
7245  hardcode_automatic=no
7246  module_cmds=
7247  module_expsym_cmds=
7248  always_export_symbols=no
7249  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7250  # include_expsyms should be a list of space-separated symbols to be *always*
7251  # included in the symbol list
7252  include_expsyms=
7253  # exclude_expsyms can be an extended regexp of symbols to exclude
7254  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7255  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7256  # as well as any symbol that contains `d'.
7257  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7258  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7259  # platforms (ab)use it in PIC code, but their linkers get confused if
7260  # the symbol is explicitly referenced.  Since portable code cannot
7261  # rely on this symbol name, it's probably fine to never include it in
7262  # preloaded symbol tables.
7263  extract_expsyms_cmds=
7264  # Just being paranoid about ensuring that cc_basename is set.
7265  for cc_temp in $compiler""; do
7266  case $cc_temp in
7267    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7268    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7269    \-*) ;;
7270    *) break;;
7271  esac
7272done
7273cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7274
7275  case $host_os in
7276  cygwin* | mingw* | pw32*)
7277    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7278    # When not using gcc, we currently assume that we are using
7279    # Microsoft Visual C++.
7280    if test "$GCC" != yes; then
7281      with_gnu_ld=no
7282    fi
7283    ;;
7284  interix*)
7285    # we just hope/assume this is gcc and not c89 (= MSVC++)
7286    with_gnu_ld=yes
7287    ;;
7288  openbsd*)
7289    with_gnu_ld=no
7290    ;;
7291  esac
7292
7293  ld_shlibs=yes
7294  if test "$with_gnu_ld" = yes; then
7295    # If archive_cmds runs LD, not CC, wlarc should be empty
7296    wlarc='${wl}'
7297
7298    # Set some defaults for GNU ld with shared library support. These
7299    # are reset later if shared libraries are not supported. Putting them
7300    # here allows them to be overridden if necessary.
7301    runpath_var=LD_RUN_PATH
7302    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7303    export_dynamic_flag_spec='${wl}--export-dynamic'
7304    # ancient GNU ld didn't support --whole-archive et. al.
7305    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7306        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7307      else
7308        whole_archive_flag_spec=
7309    fi
7310    supports_anon_versioning=no
7311    case `$LD -v 2>/dev/null` in
7312      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7313      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7314      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7315      *\ 2.11.*) ;; # other 2.11 versions
7316      *) supports_anon_versioning=yes ;;
7317    esac
7318
7319    # See if GNU ld supports shared libraries.
7320    case $host_os in
7321    aix3* | aix4* | aix5*)
7322      # On AIX/PPC, the GNU linker is very broken
7323      if test "$host_cpu" != ia64; then
7324        ld_shlibs=no
7325        cat <<EOF 1>&2
7326
7327*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7328*** to be unable to reliably create shared libraries on AIX.
7329*** Therefore, libtool is disabling shared libraries support.  If you
7330*** really care for shared libraries, you may want to modify your PATH
7331*** so that a non-GNU linker is found, and then restart.
7332
7333EOF
7334      fi
7335      ;;
7336
7337    amigaos*)
7338      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)'
7339      hardcode_libdir_flag_spec='-L$libdir'
7340      hardcode_minus_L=yes
7341
7342      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7343      # that the semantics of dynamic libraries on AmigaOS, at least up
7344      # to version 4, is to share data among multiple programs linked
7345      # with the same dynamic library.  Since this doesn't match the
7346      # behavior of shared libraries on other platforms, we can't use
7347      # them.
7348      ld_shlibs=no
7349      ;;
7350
7351    beos*)
7352      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7353        allow_undefined_flag=unsupported
7354        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7355        # support --undefined.  This deserves some investigation.  FIXME
7356        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7357      else
7358        ld_shlibs=no
7359      fi
7360      ;;
7361
7362    cygwin* | mingw* | pw32*)
7363      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7364      # as there is no search path for DLLs.
7365      hardcode_libdir_flag_spec='-L$libdir'
7366      allow_undefined_flag=unsupported
7367      always_export_symbols=no
7368      enable_shared_with_static_runtimes=yes
7369      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7370
7371      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7372        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7373        # If the export-symbols file already is a .def file (1st line
7374        # is EXPORTS), use it as is; otherwise, prepend...
7375        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7376          cp $export_symbols $output_objdir/$soname.def;
7377        else
7378          echo EXPORTS > $output_objdir/$soname.def;
7379          cat $export_symbols >> $output_objdir/$soname.def;
7380        fi~
7381        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7382      else
7383        ld_shlibs=no
7384      fi
7385      ;;
7386
7387    interix3*)
7388      hardcode_direct=no
7389      hardcode_shlibpath_var=no
7390      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7391      export_dynamic_flag_spec='${wl}-E'
7392      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7393      # Instead, shared libraries are loaded at an image base (0x10000000 by
7394      # default) and relocated if they conflict, which is a slow very memory
7395      # consuming and fragmenting process.  To avoid this, we pick a random,
7396      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7397      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7398      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7399      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7400      ;;
7401
7402    linux*)
7403      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7404        tmp_addflag=
7405        case $cc_basename,$host_cpu in
7406        pgcc*)                          # Portland Group C compiler
7407          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'
7408          tmp_addflag=' $pic_flag'
7409          ;;
7410        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7411          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'
7412          tmp_addflag=' $pic_flag -Mnomain' ;;
7413        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7414          tmp_addflag=' -i_dynamic' ;;
7415        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7416          tmp_addflag=' -i_dynamic -nofor_main' ;;
7417        ifc* | ifort*)                  # Intel Fortran compiler
7418          tmp_addflag=' -nofor_main' ;;
7419        esac
7420        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7421
7422        if test $supports_anon_versioning = yes; then
7423          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7424  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7425  $echo "local: *; };" >> $output_objdir/$libname.ver~
7426          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7427        fi
7428      else
7429        ld_shlibs=no
7430      fi
7431      ;;
7432
7433    netbsd*)
7434      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7435        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7436        wlarc=
7437      else
7438        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7439        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7440      fi
7441      ;;
7442
7443    solaris*)
7444      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7445        ld_shlibs=no
7446        cat <<EOF 1>&2
7447
7448*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7449*** create shared libraries on Solaris systems.  Therefore, libtool
7450*** is disabling shared libraries support.  We urge you to upgrade GNU
7451*** binutils to release 2.9.1 or newer.  Another option is to modify
7452*** your PATH or compiler configuration so that the native linker is
7453*** used, and then restart.
7454
7455EOF
7456      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7457        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7458        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7459      else
7460        ld_shlibs=no
7461      fi
7462      ;;
7463
7464    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7465      case `$LD -v 2>&1` in
7466        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7467        ld_shlibs=no
7468        cat <<_LT_EOF 1>&2
7469
7470*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7471*** reliably create shared libraries on SCO systems.  Therefore, libtool
7472*** is disabling shared libraries support.  We urge you to upgrade GNU
7473*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7474*** your PATH or compiler configuration so that the native linker is
7475*** used, and then restart.
7476
7477_LT_EOF
7478        ;;
7479        *)
7480          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7481            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7482            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7483            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7484          else
7485            ld_shlibs=no
7486          fi
7487        ;;
7488      esac
7489      ;;
7490
7491    sunos4*)
7492      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7493      wlarc=
7494      hardcode_direct=yes
7495      hardcode_shlibpath_var=no
7496      ;;
7497
7498    *)
7499      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7500        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7501        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7502      else
7503        ld_shlibs=no
7504      fi
7505      ;;
7506    esac
7507
7508    if test "$ld_shlibs" = no; then
7509      runpath_var=
7510      hardcode_libdir_flag_spec=
7511      export_dynamic_flag_spec=
7512      whole_archive_flag_spec=
7513    fi
7514  else
7515    # PORTME fill in a description of your system's linker (not GNU ld)
7516    case $host_os in
7517    aix3*)
7518      allow_undefined_flag=unsupported
7519      always_export_symbols=yes
7520      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'
7521      # Note: this linker hardcodes the directories in LIBPATH if there
7522      # are no directories specified by -L.
7523      hardcode_minus_L=yes
7524      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7525        # Neither direct hardcoding nor static linking is supported with a
7526        # broken collect2.
7527        hardcode_direct=unsupported
7528      fi
7529      ;;
7530
7531    aix4* | aix5*)
7532      if test "$host_cpu" = ia64; then
7533        # On IA64, the linker does run time linking by default, so we don't
7534        # have to do anything special.
7535        aix_use_runtimelinking=no
7536        exp_sym_flag='-Bexport'
7537        no_entry_flag=""
7538      else
7539        # If we're using GNU nm, then we don't want the "-C" option.
7540        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7541        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7542          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'
7543        else
7544          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'
7545        fi
7546        aix_use_runtimelinking=no
7547
7548        # Test if we are trying to use run time linking or normal
7549        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7550        # need to do runtime linking.
7551        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7552          for ld_flag in $LDFLAGS; do
7553          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7554            aix_use_runtimelinking=yes
7555            break
7556          fi
7557          done
7558          ;;
7559        esac
7560
7561        exp_sym_flag='-bexport'
7562        no_entry_flag='-bnoentry'
7563      fi
7564
7565      # When large executables or shared objects are built, AIX ld can
7566      # have problems creating the table of contents.  If linking a library
7567      # or program results in "error TOC overflow" add -mminimal-toc to
7568      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7569      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7570
7571      archive_cmds=''
7572      hardcode_direct=yes
7573      hardcode_libdir_separator=':'
7574      link_all_deplibs=yes
7575
7576      if test "$GCC" = yes; then
7577        case $host_os in aix4.[012]|aix4.[012].*)
7578        # We only want to do this on AIX 4.2 and lower, the check
7579        # below for broken collect2 doesn't work under 4.3+
7580          collect2name=`${CC} -print-prog-name=collect2`
7581          if test -f "$collect2name" && \
7582           strings "$collect2name" | grep resolve_lib_name >/dev/null
7583          then
7584          # We have reworked collect2
7585          hardcode_direct=yes
7586          else
7587          # We have old collect2
7588          hardcode_direct=unsupported
7589          # It fails to find uninstalled libraries when the uninstalled
7590          # path is not listed in the libpath.  Setting hardcode_minus_L
7591          # to unsupported forces relinking
7592          hardcode_minus_L=yes
7593          hardcode_libdir_flag_spec='-L$libdir'
7594          hardcode_libdir_separator=
7595          fi
7596          ;;
7597        esac
7598        shared_flag='-shared'
7599        if test "$aix_use_runtimelinking" = yes; then
7600          shared_flag="$shared_flag "'${wl}-G'
7601        fi
7602      else
7603        # not using gcc
7604        if test "$host_cpu" = ia64; then
7605        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7606        # chokes on -Wl,-G. The following line is correct:
7607          shared_flag='-G'
7608        else
7609          if test "$aix_use_runtimelinking" = yes; then
7610            shared_flag='${wl}-G'
7611          else
7612            shared_flag='${wl}-bM:SRE'
7613          fi
7614        fi
7615      fi
7616
7617      # It seems that -bexpall does not export symbols beginning with
7618      # underscore (_), so it is better to generate a list of symbols to export.
7619      always_export_symbols=yes
7620      if test "$aix_use_runtimelinking" = yes; then
7621        # Warning - without using the other runtime loading flags (-brtl),
7622        # -berok will link without error, but may produce a broken library.
7623        allow_undefined_flag='-berok'
7624       # Determine the default libpath from the value encoded in an empty executable.
7625       cat >conftest.$ac_ext <<_ACEOF
7626/* confdefs.h.  */
7627_ACEOF
7628cat confdefs.h >>conftest.$ac_ext
7629cat >>conftest.$ac_ext <<_ACEOF
7630/* end confdefs.h.  */
7631
7632int
7633main ()
7634{
7635
7636  ;
7637  return 0;
7638}
7639_ACEOF
7640rm -f conftest.$ac_objext conftest$ac_exeext
7641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642  (eval $ac_link) 2>conftest.er1
7643  ac_status=$?
7644  grep -v '^ *+' conftest.er1 >conftest.err
7645  rm -f conftest.er1
7646  cat conftest.err >&5
7647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648  (exit $ac_status); } &&
7649         { ac_try='test -z "$ac_c_werror_flag"
7650                         || test ! -s conftest.err'
7651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652  (eval $ac_try) 2>&5
7653  ac_status=$?
7654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655  (exit $ac_status); }; } &&
7656         { ac_try='test -s conftest$ac_exeext'
7657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658  (eval $ac_try) 2>&5
7659  ac_status=$?
7660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661  (exit $ac_status); }; }; then
7662
7663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7664}'`
7665# Check for a 64-bit object if we didn't find anything.
7666if 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; }
7667}'`; fi
7668else
7669  echo "$as_me: failed program was:" >&5
7670sed 's/^/| /' conftest.$ac_ext >&5
7671
7672fi
7673rm -f conftest.err conftest.$ac_objext \
7674      conftest$ac_exeext conftest.$ac_ext
7675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7676
7677       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7678        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7679       else
7680        if test "$host_cpu" = ia64; then
7681          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7682          allow_undefined_flag="-z nodefs"
7683          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7684        else
7685         # Determine the default libpath from the value encoded in an empty executable.
7686         cat >conftest.$ac_ext <<_ACEOF
7687/* confdefs.h.  */
7688_ACEOF
7689cat confdefs.h >>conftest.$ac_ext
7690cat >>conftest.$ac_ext <<_ACEOF
7691/* end confdefs.h.  */
7692
7693int
7694main ()
7695{
7696
7697  ;
7698  return 0;
7699}
7700_ACEOF
7701rm -f conftest.$ac_objext conftest$ac_exeext
7702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7703  (eval $ac_link) 2>conftest.er1
7704  ac_status=$?
7705  grep -v '^ *+' conftest.er1 >conftest.err
7706  rm -f conftest.er1
7707  cat conftest.err >&5
7708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709  (exit $ac_status); } &&
7710         { ac_try='test -z "$ac_c_werror_flag"
7711                         || test ! -s conftest.err'
7712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713  (eval $ac_try) 2>&5
7714  ac_status=$?
7715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716  (exit $ac_status); }; } &&
7717         { ac_try='test -s conftest$ac_exeext'
7718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719  (eval $ac_try) 2>&5
7720  ac_status=$?
7721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722  (exit $ac_status); }; }; then
7723
7724aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7725}'`
7726# Check for a 64-bit object if we didn't find anything.
7727if 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; }
7728}'`; fi
7729else
7730  echo "$as_me: failed program was:" >&5
7731sed 's/^/| /' conftest.$ac_ext >&5
7732
7733fi
7734rm -f conftest.err conftest.$ac_objext \
7735      conftest$ac_exeext conftest.$ac_ext
7736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7737
7738         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7739          # Warning - without using the other run time loading flags,
7740          # -berok will link without error, but may produce a broken library.
7741          no_undefined_flag=' ${wl}-bernotok'
7742          allow_undefined_flag=' ${wl}-berok'
7743          # Exported symbols can be pulled into shared objects from archives
7744          whole_archive_flag_spec='$convenience'
7745          archive_cmds_need_lc=yes
7746          # This is similar to how AIX traditionally builds its shared libraries.
7747          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7748        fi
7749      fi
7750      ;;
7751
7752    amigaos*)
7753      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)'
7754      hardcode_libdir_flag_spec='-L$libdir'
7755      hardcode_minus_L=yes
7756      # see comment about different semantics on the GNU ld section
7757      ld_shlibs=no
7758      ;;
7759
7760    bsdi[45]*)
7761      export_dynamic_flag_spec=-rdynamic
7762      ;;
7763
7764    cygwin* | mingw* | pw32*)
7765      # When not using gcc, we currently assume that we are using
7766      # Microsoft Visual C++.
7767      # hardcode_libdir_flag_spec is actually meaningless, as there is
7768      # no search path for DLLs.
7769      hardcode_libdir_flag_spec=' '
7770      allow_undefined_flag=unsupported
7771      # Tell ltmain to make .lib files, not .a files.
7772      libext=lib
7773      # Tell ltmain to make .dll files, not .so files.
7774      shrext_cmds=".dll"
7775      # FIXME: Setting linknames here is a bad hack.
7776      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7777      # The linker will automatically build a .lib file if we build a DLL.
7778      old_archive_From_new_cmds='true'
7779      # FIXME: Should let the user specify the lib program.
7780      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7781      fix_srcfile_path='`cygpath -w "$srcfile"`'
7782      enable_shared_with_static_runtimes=yes
7783      ;;
7784
7785    darwin* | rhapsody*)
7786      case $host_os in
7787        rhapsody* | darwin1.[012])
7788         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7789         ;;
7790       *) # Darwin 1.3 on
7791         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7792           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7793         else
7794           case ${MACOSX_DEPLOYMENT_TARGET} in
7795             10.[012])
7796               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7797               ;;
7798             10.*)
7799               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7800               ;;
7801           esac
7802         fi
7803         ;;
7804      esac
7805      archive_cmds_need_lc=no
7806      hardcode_direct=no
7807      hardcode_automatic=yes
7808      hardcode_shlibpath_var=unsupported
7809      whole_archive_flag_spec=''
7810      link_all_deplibs=yes
7811    if test "$GCC" = yes ; then
7812        output_verbose_link_cmd='echo'
7813        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7814      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7815      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7816      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}'
7817      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}'
7818    else
7819      case $cc_basename in
7820        xlc*)
7821         output_verbose_link_cmd='echo'
7822         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7823         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7824          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7825         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}'
7826          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}'
7827          ;;
7828       *)
7829         ld_shlibs=no
7830          ;;
7831      esac
7832    fi
7833      ;;
7834
7835    dgux*)
7836      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7837      hardcode_libdir_flag_spec='-L$libdir'
7838      hardcode_shlibpath_var=no
7839      ;;
7840
7841    freebsd1*)
7842      ld_shlibs=no
7843      ;;
7844
7845    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7846    # support.  Future versions do this automatically, but an explicit c++rt0.o
7847    # does not break anything, and helps significantly (at the cost of a little
7848    # extra space).
7849    freebsd2.2*)
7850      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7851      hardcode_libdir_flag_spec='-R$libdir'
7852      hardcode_direct=yes
7853      hardcode_shlibpath_var=no
7854      ;;
7855
7856    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7857    freebsd2*)
7858      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7859      hardcode_direct=yes
7860      hardcode_minus_L=yes
7861      hardcode_shlibpath_var=no
7862      ;;
7863
7864    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7865    freebsd* | kfreebsd*-gnu | dragonfly*)
7866      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7867      hardcode_libdir_flag_spec='-R$libdir'
7868      hardcode_direct=yes
7869      hardcode_shlibpath_var=no
7870      ;;
7871
7872    hpux9*)
7873      if test "$GCC" = yes; then
7874        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'
7875      else
7876        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'
7877      fi
7878      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7879      hardcode_libdir_separator=:
7880      hardcode_direct=yes
7881
7882      # hardcode_minus_L: Not really in the search PATH,
7883      # but as the default location of the library.
7884      hardcode_minus_L=yes
7885      export_dynamic_flag_spec='${wl}-E'
7886      ;;
7887
7888    hpux10*)
7889      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7890        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7891      else
7892        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7893      fi
7894      if test "$with_gnu_ld" = no; then
7895        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7896        hardcode_libdir_separator=:
7897
7898        hardcode_direct=yes
7899        export_dynamic_flag_spec='${wl}-E'
7900
7901        # hardcode_minus_L: Not really in the search PATH,
7902        # but as the default location of the library.
7903        hardcode_minus_L=yes
7904      fi
7905      ;;
7906
7907    hpux11*)
7908      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7909        case $host_cpu in
7910        hppa*64*)
7911          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7912          ;;
7913        ia64*)
7914          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7915          ;;
7916        *)
7917          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7918          ;;
7919        esac
7920      else
7921        case $host_cpu in
7922        hppa*64*)
7923          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7924          ;;
7925        ia64*)
7926          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7927          ;;
7928        *)
7929          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7930          ;;
7931        esac
7932      fi
7933      if test "$with_gnu_ld" = no; then
7934        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7935        hardcode_libdir_separator=:
7936
7937        case $host_cpu in
7938        hppa*64*|ia64*)
7939          hardcode_libdir_flag_spec_ld='+b $libdir'
7940          hardcode_direct=no
7941          hardcode_shlibpath_var=no
7942          ;;
7943        *)
7944          hardcode_direct=yes
7945          export_dynamic_flag_spec='${wl}-E'
7946
7947          # hardcode_minus_L: Not really in the search PATH,
7948          # but as the default location of the library.
7949          hardcode_minus_L=yes
7950          ;;
7951        esac
7952      fi
7953      ;;
7954
7955    irix5* | irix6* | nonstopux*)
7956      if test "$GCC" = yes; then
7957        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'
7958      else
7959        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'
7960        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7961      fi
7962      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7963      hardcode_libdir_separator=:
7964      link_all_deplibs=yes
7965      ;;
7966
7967    netbsd*)
7968      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7969        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7970      else
7971        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7972      fi
7973      hardcode_libdir_flag_spec='-R$libdir'
7974      hardcode_direct=yes
7975      hardcode_shlibpath_var=no
7976      ;;
7977
7978    newsos6)
7979      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7980      hardcode_direct=yes
7981      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7982      hardcode_libdir_separator=:
7983      hardcode_shlibpath_var=no
7984      ;;
7985
7986    openbsd*)
7987      hardcode_direct=yes
7988      hardcode_shlibpath_var=no
7989      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7990        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7991        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7992        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7993        export_dynamic_flag_spec='${wl}-E'
7994      else
7995       case $host_os in
7996         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7997           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7998           hardcode_libdir_flag_spec='-R$libdir'
7999           ;;
8000         *)
8001           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8002           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8003           ;;
8004       esac
8005      fi
8006      ;;
8007
8008    os2*)
8009      hardcode_libdir_flag_spec='-L$libdir'
8010      hardcode_minus_L=yes
8011      allow_undefined_flag=unsupported
8012      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'
8013      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8014      ;;
8015
8016    osf3*)
8017      if test "$GCC" = yes; then
8018        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8019        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'
8020      else
8021        allow_undefined_flag=' -expect_unresolved \*'
8022        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'
8023      fi
8024      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8025      hardcode_libdir_separator=:
8026      ;;
8027
8028    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8029      if test "$GCC" = yes; then
8030        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8031        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'
8032        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8033      else
8034        allow_undefined_flag=' -expect_unresolved \*'
8035        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'
8036        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8037        $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'
8038
8039        # Both c and cxx compiler support -rpath directly
8040        hardcode_libdir_flag_spec='-rpath $libdir'
8041      fi
8042      hardcode_libdir_separator=:
8043      ;;
8044
8045    solaris*)
8046      no_undefined_flag=' -z text'
8047      if test "$GCC" = yes; then
8048        wlarc='${wl}'
8049        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8050        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8051          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8052      else
8053        wlarc=''
8054        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8055        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8056        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8057      fi
8058      hardcode_libdir_flag_spec='-R$libdir'
8059      hardcode_shlibpath_var=no
8060      case $host_os in
8061      solaris2.[0-5] | solaris2.[0-5].*) ;;
8062      *)
8063        # The compiler driver will combine linker options so we
8064        # cannot just pass the convience library names through
8065        # without $wl, iff we do not link with $LD.
8066        # Luckily, gcc supports the same syntax we need for Sun Studio.
8067        # Supported since Solaris 2.6 (maybe 2.5.1?)
8068        case $wlarc in
8069        '')
8070          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8071        *)
8072          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' ;;
8073        esac ;;
8074      esac
8075      link_all_deplibs=yes
8076      ;;
8077
8078    sunos4*)
8079      if test "x$host_vendor" = xsequent; then
8080        # Use $CC to link under sequent, because it throws in some extra .o
8081        # files that make .init and .fini sections work.
8082        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8083      else
8084        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8085      fi
8086      hardcode_libdir_flag_spec='-L$libdir'
8087      hardcode_direct=yes
8088      hardcode_minus_L=yes
8089      hardcode_shlibpath_var=no
8090      ;;
8091
8092    sysv4)
8093      case $host_vendor in
8094        sni)
8095          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8096          hardcode_direct=yes # is this really true???
8097        ;;
8098        siemens)
8099          ## LD is ld it makes a PLAMLIB
8100          ## CC just makes a GrossModule.
8101          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8102          reload_cmds='$CC -r -o $output$reload_objs'
8103          hardcode_direct=no
8104        ;;
8105        motorola)
8106          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8107          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8108        ;;
8109      esac
8110      runpath_var='LD_RUN_PATH'
8111      hardcode_shlibpath_var=no
8112      ;;
8113
8114    sysv4.3*)
8115      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8116      hardcode_shlibpath_var=no
8117      export_dynamic_flag_spec='-Bexport'
8118      ;;
8119
8120    sysv4*MP*)
8121      if test -d /usr/nec; then
8122        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123        hardcode_shlibpath_var=no
8124        runpath_var=LD_RUN_PATH
8125        hardcode_runpath_var=yes
8126        ld_shlibs=yes
8127      fi
8128      ;;
8129
8130    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8131      no_undefined_flag='${wl}-z,text'
8132      archive_cmds_need_lc=no
8133      hardcode_shlibpath_var=no
8134      runpath_var='LD_RUN_PATH'
8135
8136      if test "$GCC" = yes; then
8137        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8138        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8139      else
8140        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8141        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8142      fi
8143      ;;
8144
8145    sysv5* | sco3.2v5* | sco5v6*)
8146      # Note: We can NOT use -z defs as we might desire, because we do not
8147      # link with -lc, and that would cause any symbols used from libc to
8148      # always be unresolved, which means just about no library would
8149      # ever link correctly.  If we're not using GNU ld we use -z text
8150      # though, which does catch some bad symbols but isn't as heavy-handed
8151      # as -z defs.
8152      no_undefined_flag='${wl}-z,text'
8153      allow_undefined_flag='${wl}-z,nodefs'
8154      archive_cmds_need_lc=no
8155      hardcode_shlibpath_var=no
8156      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8157      hardcode_libdir_separator=':'
8158      link_all_deplibs=yes
8159      export_dynamic_flag_spec='${wl}-Bexport'
8160      runpath_var='LD_RUN_PATH'
8161
8162      if test "$GCC" = yes; then
8163        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8164        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8165      else
8166        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8167        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8168      fi
8169      ;;
8170
8171    uts4*)
8172      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8173      hardcode_libdir_flag_spec='-L$libdir'
8174      hardcode_shlibpath_var=no
8175      ;;
8176
8177    *)
8178      ld_shlibs=no
8179      ;;
8180    esac
8181  fi
8182
8183echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8184echo "${ECHO_T}$ld_shlibs" >&6
8185test "$ld_shlibs" = no && can_build_shared=no
8186
8187#
8188# Do we need to explicitly link libc?
8189#
8190case "x$archive_cmds_need_lc" in
8191x|xyes)
8192  # Assume -lc should be added
8193  archive_cmds_need_lc=yes
8194
8195  if test "$enable_shared" = yes && test "$GCC" = yes; then
8196    case $archive_cmds in
8197    *'~'*)
8198      # FIXME: we may have to deal with multi-command sequences.
8199      ;;
8200    '$CC '*)
8201      # Test whether the compiler implicitly links with -lc since on some
8202      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8203      # to ld, don't add -lc before -lgcc.
8204      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8205echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8206      $rm conftest*
8207      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8208
8209      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8210  (eval $ac_compile) 2>&5
8211  ac_status=$?
8212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213  (exit $ac_status); } 2>conftest.err; then
8214        soname=conftest
8215        lib=conftest
8216        libobjs=conftest.$ac_objext
8217        deplibs=
8218        wl=$lt_prog_compiler_wl
8219        pic_flag=$lt_prog_compiler_pic
8220        compiler_flags=-v
8221        linker_flags=-v
8222        verstring=
8223        output_objdir=.
8224        libname=conftest
8225        lt_save_allow_undefined_flag=$allow_undefined_flag
8226        allow_undefined_flag=
8227        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8228  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8229  ac_status=$?
8230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231  (exit $ac_status); }
8232        then
8233          archive_cmds_need_lc=no
8234        else
8235          archive_cmds_need_lc=yes
8236        fi
8237        allow_undefined_flag=$lt_save_allow_undefined_flag
8238      else
8239        cat conftest.err 1>&5
8240      fi
8241      $rm conftest*
8242      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8243echo "${ECHO_T}$archive_cmds_need_lc" >&6
8244      ;;
8245    esac
8246  fi
8247  ;;
8248esac
8249
8250echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8251echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8252library_names_spec=
8253libname_spec='lib$name'
8254soname_spec=
8255shrext_cmds=".so"
8256postinstall_cmds=
8257postuninstall_cmds=
8258finish_cmds=
8259finish_eval=
8260shlibpath_var=
8261shlibpath_overrides_runpath=unknown
8262version_type=none
8263dynamic_linker="$host_os ld.so"
8264sys_lib_dlsearch_path_spec="/lib /usr/lib"
8265if test "$GCC" = yes; then
8266  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8267  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8268    # if the path contains ";" then we assume it to be the separator
8269    # otherwise default to the standard path separator (i.e. ":") - it is
8270    # assumed that no part of a normal pathname contains ";" but that should
8271    # okay in the real world where ";" in dirpaths is itself problematic.
8272    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8273  else
8274    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8275  fi
8276else
8277  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8278fi
8279need_lib_prefix=unknown
8280hardcode_into_libs=no
8281
8282# when you set need_version to no, make sure it does not cause -set_version
8283# flags to be left without arguments
8284need_version=unknown
8285
8286case $host_os in
8287aix3*)
8288  version_type=linux
8289  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8290  shlibpath_var=LIBPATH
8291
8292  # AIX 3 has no versioning support, so we append a major version to the name.
8293  soname_spec='${libname}${release}${shared_ext}$major'
8294  ;;
8295
8296aix4* | aix5*)
8297  version_type=linux
8298  need_lib_prefix=no
8299  need_version=no
8300  hardcode_into_libs=yes
8301  if test "$host_cpu" = ia64; then
8302    # AIX 5 supports IA64
8303    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8304    shlibpath_var=LD_LIBRARY_PATH
8305  else
8306    # With GCC up to 2.95.x, collect2 would create an import file
8307    # for dependence libraries.  The import file would start with
8308    # the line `#! .'.  This would cause the generated library to
8309    # depend on `.', always an invalid library.  This was fixed in
8310    # development snapshots of GCC prior to 3.0.
8311    case $host_os in
8312      aix4 | aix4.[01] | aix4.[01].*)
8313      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8314           echo ' yes '
8315           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8316        :
8317      else
8318        can_build_shared=no
8319      fi
8320      ;;
8321    esac
8322    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8323    # soname into executable. Probably we can add versioning support to
8324    # collect2, so additional links can be useful in future.
8325    if test "$aix_use_runtimelinking" = yes; then
8326      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8327      # instead of lib<name>.a to let people know that these are not
8328      # typical AIX shared libraries.
8329      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8330    else
8331      # We preserve .a as extension for shared libraries through AIX4.2
8332      # and later when we are not doing run time linking.
8333      library_names_spec='${libname}${release}.a $libname.a'
8334      soname_spec='${libname}${release}${shared_ext}$major'
8335    fi
8336    shlibpath_var=LIBPATH
8337  fi
8338  ;;
8339
8340amigaos*)
8341  library_names_spec='$libname.ixlibrary $libname.a'
8342  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8343  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'
8344  ;;
8345
8346beos*)
8347  library_names_spec='${libname}${shared_ext}'
8348  dynamic_linker="$host_os ld.so"
8349  shlibpath_var=LIBRARY_PATH
8350  ;;
8351
8352bsdi[45]*)
8353  version_type=linux
8354  need_version=no
8355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8356  soname_spec='${libname}${release}${shared_ext}$major'
8357  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8358  shlibpath_var=LD_LIBRARY_PATH
8359  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8360  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8361  # the default ld.so.conf also contains /usr/contrib/lib and
8362  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8363  # libtool to hard-code these into programs
8364  ;;
8365
8366cygwin* | mingw* | pw32*)
8367  version_type=windows
8368  shrext_cmds=".dll"
8369  need_version=no
8370  need_lib_prefix=no
8371
8372  case $GCC,$host_os in
8373  yes,cygwin* | yes,mingw* | yes,pw32*)
8374    library_names_spec='$libname.dll.a'
8375    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8376    postinstall_cmds='base_file=`basename \${file}`~
8377      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8378      dldir=$destdir/`dirname \$dlpath`~
8379      test -d \$dldir || mkdir -p \$dldir~
8380      $install_prog $dir/$dlname \$dldir/$dlname~
8381      chmod a+x \$dldir/$dlname'
8382    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8383      dlpath=$dir/\$dldll~
8384       $rm \$dlpath'
8385    shlibpath_overrides_runpath=yes
8386
8387    case $host_os in
8388    cygwin*)
8389      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8390      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8391      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8392      ;;
8393    mingw*)
8394      # MinGW DLLs use traditional 'lib' prefix
8395      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8396      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8397      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8398        # It is most probably a Windows format PATH printed by
8399        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8400        # path with ; separators, and with drive letters. We can handle the
8401        # drive letters (cygwin fileutils understands them), so leave them,
8402        # especially as we might pass files found there to a mingw objdump,
8403        # which wouldn't understand a cygwinified path. Ahh.
8404        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8405      else
8406        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8407      fi
8408      ;;
8409    pw32*)
8410      # pw32 DLLs use 'pw' prefix rather than 'lib'
8411      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8412      ;;
8413    esac
8414    ;;
8415
8416  *)
8417    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8418    ;;
8419  esac
8420  dynamic_linker='Win32 ld.exe'
8421  # FIXME: first we should search . and the directory the executable is in
8422  shlibpath_var=PATH
8423  ;;
8424
8425darwin* | rhapsody*)
8426  dynamic_linker="$host_os dyld"
8427  version_type=darwin
8428  need_lib_prefix=no
8429  need_version=no
8430  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8431  soname_spec='${libname}${release}${major}$shared_ext'
8432  shlibpath_overrides_runpath=yes
8433  shlibpath_var=DYLD_LIBRARY_PATH
8434  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8435  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8436  if test "$GCC" = yes; then
8437    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"`
8438  else
8439    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8440  fi
8441  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8442  ;;
8443
8444dgux*)
8445  version_type=linux
8446  need_lib_prefix=no
8447  need_version=no
8448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8449  soname_spec='${libname}${release}${shared_ext}$major'
8450  shlibpath_var=LD_LIBRARY_PATH
8451  ;;
8452
8453freebsd1*)
8454  dynamic_linker=no
8455  ;;
8456
8457kfreebsd*-gnu)
8458  version_type=linux
8459  need_lib_prefix=no
8460  need_version=no
8461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8462  soname_spec='${libname}${release}${shared_ext}$major'
8463  shlibpath_var=LD_LIBRARY_PATH
8464  shlibpath_overrides_runpath=no
8465  hardcode_into_libs=yes
8466  dynamic_linker='GNU ld.so'
8467  ;;
8468
8469freebsd* | dragonfly*)
8470  # DragonFly does not have aout.  When/if they implement a new
8471  # versioning mechanism, adjust this.
8472  if test -x /usr/bin/objformat; then
8473    objformat=`/usr/bin/objformat`
8474  else
8475    case $host_os in
8476    freebsd[123]*) objformat=aout ;;
8477    *) objformat=elf ;;
8478    esac
8479  fi
8480  version_type=freebsd-$objformat
8481  case $version_type in
8482    freebsd-elf*)
8483      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8484      need_version=no
8485      need_lib_prefix=no
8486      ;;
8487    freebsd-*)
8488      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8489      need_version=yes
8490      ;;
8491  esac
8492  shlibpath_var=LD_LIBRARY_PATH
8493  case $host_os in
8494  freebsd2*)
8495    shlibpath_overrides_runpath=yes
8496    ;;
8497  freebsd3.[01]* | freebsdelf3.[01]*)
8498    shlibpath_overrides_runpath=yes
8499    hardcode_into_libs=yes
8500    ;;
8501  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8502  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8503    shlibpath_overrides_runpath=no
8504    hardcode_into_libs=yes
8505    ;;
8506  freebsd*) # from 4.6 on
8507    shlibpath_overrides_runpath=yes
8508    hardcode_into_libs=yes
8509    ;;
8510  esac
8511  ;;
8512
8513gnu*)
8514  version_type=linux
8515  need_lib_prefix=no
8516  need_version=no
8517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8518  soname_spec='${libname}${release}${shared_ext}$major'
8519  shlibpath_var=LD_LIBRARY_PATH
8520  hardcode_into_libs=yes
8521  ;;
8522
8523hpux9* | hpux10* | hpux11*)
8524  # Give a soname corresponding to the major version so that dld.sl refuses to
8525  # link against other versions.
8526  version_type=sunos
8527  need_lib_prefix=no
8528  need_version=no
8529  case $host_cpu in
8530  ia64*)
8531    shrext_cmds='.so'
8532    hardcode_into_libs=yes
8533    dynamic_linker="$host_os dld.so"
8534    shlibpath_var=LD_LIBRARY_PATH
8535    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8536    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8537    soname_spec='${libname}${release}${shared_ext}$major'
8538    if test "X$HPUX_IA64_MODE" = X32; then
8539      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8540    else
8541      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8542    fi
8543    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8544    ;;
8545   hppa*64*)
8546     shrext_cmds='.sl'
8547     hardcode_into_libs=yes
8548     dynamic_linker="$host_os dld.sl"
8549     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8550     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552     soname_spec='${libname}${release}${shared_ext}$major'
8553     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8554     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8555     ;;
8556   *)
8557    shrext_cmds='.sl'
8558    dynamic_linker="$host_os dld.sl"
8559    shlibpath_var=SHLIB_PATH
8560    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8561    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562    soname_spec='${libname}${release}${shared_ext}$major'
8563    ;;
8564  esac
8565  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8566  postinstall_cmds='chmod 555 $lib'
8567  ;;
8568
8569interix3*)
8570  version_type=linux
8571  need_lib_prefix=no
8572  need_version=no
8573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8574  soname_spec='${libname}${release}${shared_ext}$major'
8575  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8576  shlibpath_var=LD_LIBRARY_PATH
8577  shlibpath_overrides_runpath=no
8578  hardcode_into_libs=yes
8579  ;;
8580
8581irix5* | irix6* | nonstopux*)
8582  case $host_os in
8583    nonstopux*) version_type=nonstopux ;;
8584    *)
8585        if test "$lt_cv_prog_gnu_ld" = yes; then
8586                version_type=linux
8587        else
8588                version_type=irix
8589        fi ;;
8590  esac
8591  need_lib_prefix=no
8592  need_version=no
8593  soname_spec='${libname}${release}${shared_ext}$major'
8594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8595  case $host_os in
8596  irix5* | nonstopux*)
8597    libsuff= shlibsuff=
8598    ;;
8599  *)
8600    case $LD in # libtool.m4 will add one of these switches to LD
8601    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8602      libsuff= shlibsuff= libmagic=32-bit;;
8603    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8604      libsuff=32 shlibsuff=N32 libmagic=N32;;
8605    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8606      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8607    *) libsuff= shlibsuff= libmagic=never-match;;
8608    esac
8609    ;;
8610  esac
8611  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8612  shlibpath_overrides_runpath=no
8613  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8614  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8615  hardcode_into_libs=yes
8616  ;;
8617
8618# No shared lib support for Linux oldld, aout, or coff.
8619linux*oldld* | linux*aout* | linux*coff*)
8620  dynamic_linker=no
8621  ;;
8622
8623# This must be Linux ELF.
8624linux*)
8625  version_type=linux
8626  need_lib_prefix=no
8627  need_version=no
8628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8629  soname_spec='${libname}${release}${shared_ext}$major'
8630  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8631  shlibpath_var=LD_LIBRARY_PATH
8632  shlibpath_overrides_runpath=no
8633  # This implies no fast_install, which is unacceptable.
8634  # Some rework will be needed to allow for fast_install
8635  # before this can be enabled.
8636  hardcode_into_libs=yes
8637
8638  # find out which ABI we are using
8639  libsuff=
8640  case "$host_cpu" in
8641  x86_64*|s390x*|powerpc64*)
8642    echo '#line 8642 "configure"' > conftest.$ac_ext
8643    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644  (eval $ac_compile) 2>&5
8645  ac_status=$?
8646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647  (exit $ac_status); }; then
8648      case `/usr/bin/file conftest.$ac_objext` in
8649      *64-bit*)
8650        libsuff=64
8651        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8652        ;;
8653      esac
8654    fi
8655    rm -rf conftest*
8656    ;;
8657  esac
8658
8659  # Append ld.so.conf contents to the search path
8660  if test -f /etc/ld.so.conf; then
8661    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8662    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8663  fi
8664
8665  # We used to test for /lib/ld.so.1 and disable shared libraries on
8666  # powerpc, because MkLinux only supported shared libraries with the
8667  # GNU dynamic linker.  Since this was broken with cross compilers,
8668  # most powerpc-linux boxes support dynamic linking these days and
8669  # people can always --disable-shared, the test was removed, and we
8670  # assume the GNU/Linux dynamic linker is in use.
8671  dynamic_linker='GNU/Linux ld.so'
8672  ;;
8673
8674knetbsd*-gnu)
8675  version_type=linux
8676  need_lib_prefix=no
8677  need_version=no
8678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8679  soname_spec='${libname}${release}${shared_ext}$major'
8680  shlibpath_var=LD_LIBRARY_PATH
8681  shlibpath_overrides_runpath=no
8682  hardcode_into_libs=yes
8683  dynamic_linker='GNU ld.so'
8684  ;;
8685
8686netbsd*)
8687  version_type=sunos
8688  need_lib_prefix=no
8689  need_version=no
8690  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8691    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8692    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8693    dynamic_linker='NetBSD (a.out) ld.so'
8694  else
8695    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8696    soname_spec='${libname}${release}${shared_ext}$major'
8697    dynamic_linker='NetBSD ld.elf_so'
8698  fi
8699  shlibpath_var=LD_LIBRARY_PATH
8700  shlibpath_overrides_runpath=yes
8701  hardcode_into_libs=yes
8702  ;;
8703
8704newsos6)
8705  version_type=linux
8706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8707  shlibpath_var=LD_LIBRARY_PATH
8708  shlibpath_overrides_runpath=yes
8709  ;;
8710
8711nto-qnx*)
8712  version_type=linux
8713  need_lib_prefix=no
8714  need_version=no
8715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8716  soname_spec='${libname}${release}${shared_ext}$major'
8717  shlibpath_var=LD_LIBRARY_PATH
8718  shlibpath_overrides_runpath=yes
8719  ;;
8720
8721openbsd*)
8722  version_type=sunos
8723  sys_lib_dlsearch_path_spec="/usr/lib"
8724  need_lib_prefix=no
8725  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8726  case $host_os in
8727    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8728    *)                         need_version=no  ;;
8729  esac
8730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8731  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8732  shlibpath_var=LD_LIBRARY_PATH
8733  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8734    case $host_os in
8735      openbsd2.[89] | openbsd2.[89].*)
8736        shlibpath_overrides_runpath=no
8737        ;;
8738      *)
8739        shlibpath_overrides_runpath=yes
8740        ;;
8741      esac
8742  else
8743    shlibpath_overrides_runpath=yes
8744  fi
8745  ;;
8746
8747os2*)
8748  libname_spec='$name'
8749  shrext_cmds=".dll"
8750  need_lib_prefix=no
8751  library_names_spec='$libname${shared_ext} $libname.a'
8752  dynamic_linker='OS/2 ld.exe'
8753  shlibpath_var=LIBPATH
8754  ;;
8755
8756osf3* | osf4* | osf5*)
8757  version_type=osf
8758  need_lib_prefix=no
8759  need_version=no
8760  soname_spec='${libname}${release}${shared_ext}$major'
8761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8762  shlibpath_var=LD_LIBRARY_PATH
8763  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8764  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8765  ;;
8766
8767solaris*)
8768  version_type=linux
8769  need_lib_prefix=no
8770  need_version=no
8771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8772  soname_spec='${libname}${release}${shared_ext}$major'
8773  shlibpath_var=LD_LIBRARY_PATH
8774  shlibpath_overrides_runpath=yes
8775  hardcode_into_libs=yes
8776  # ldd complains unless libraries are executable
8777  postinstall_cmds='chmod +x $lib'
8778  ;;
8779
8780sunos4*)
8781  version_type=sunos
8782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8783  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8784  shlibpath_var=LD_LIBRARY_PATH
8785  shlibpath_overrides_runpath=yes
8786  if test "$with_gnu_ld" = yes; then
8787    need_lib_prefix=no
8788  fi
8789  need_version=yes
8790  ;;
8791
8792sysv4 | sysv4.3*)
8793  version_type=linux
8794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795  soname_spec='${libname}${release}${shared_ext}$major'
8796  shlibpath_var=LD_LIBRARY_PATH
8797  case $host_vendor in
8798    sni)
8799      shlibpath_overrides_runpath=no
8800      need_lib_prefix=no
8801      export_dynamic_flag_spec='${wl}-Blargedynsym'
8802      runpath_var=LD_RUN_PATH
8803      ;;
8804    siemens)
8805      need_lib_prefix=no
8806      ;;
8807    motorola)
8808      need_lib_prefix=no
8809      need_version=no
8810      shlibpath_overrides_runpath=no
8811      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8812      ;;
8813  esac
8814  ;;
8815
8816sysv4*MP*)
8817  if test -d /usr/nec ;then
8818    version_type=linux
8819    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8820    soname_spec='$libname${shared_ext}.$major'
8821    shlibpath_var=LD_LIBRARY_PATH
8822  fi
8823  ;;
8824
8825sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8826  version_type=freebsd-elf
8827  need_lib_prefix=no
8828  need_version=no
8829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8830  soname_spec='${libname}${release}${shared_ext}$major'
8831  shlibpath_var=LD_LIBRARY_PATH
8832  hardcode_into_libs=yes
8833  if test "$with_gnu_ld" = yes; then
8834    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8835    shlibpath_overrides_runpath=no
8836  else
8837    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8838    shlibpath_overrides_runpath=yes
8839    case $host_os in
8840      sco3.2v5*)
8841        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8842        ;;
8843    esac
8844  fi
8845  sys_lib_dlsearch_path_spec='/usr/lib'
8846  ;;
8847
8848uts4*)
8849  version_type=linux
8850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851  soname_spec='${libname}${release}${shared_ext}$major'
8852  shlibpath_var=LD_LIBRARY_PATH
8853  ;;
8854
8855*)
8856  dynamic_linker=no
8857  ;;
8858esac
8859echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8860echo "${ECHO_T}$dynamic_linker" >&6
8861test "$dynamic_linker" = no && can_build_shared=no
8862
8863variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8864if test "$GCC" = yes; then
8865  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8866fi
8867
8868echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8869echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8870hardcode_action=
8871if test -n "$hardcode_libdir_flag_spec" || \
8872   test -n "$runpath_var" || \
8873   test "X$hardcode_automatic" = "Xyes" ; then
8874
8875  # We can hardcode non-existant directories.
8876  if test "$hardcode_direct" != no &&
8877     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8878     # have to relink, otherwise we might link with an installed library
8879     # when we should be linking with a yet-to-be-installed one
8880     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8881     test "$hardcode_minus_L" != no; then
8882    # Linking always hardcodes the temporary library directory.
8883    hardcode_action=relink
8884  else
8885    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8886    hardcode_action=immediate
8887  fi
8888else
8889  # We cannot hardcode anything, or else we can only hardcode existing
8890  # directories.
8891  hardcode_action=unsupported
8892fi
8893echo "$as_me:$LINENO: result: $hardcode_action" >&5
8894echo "${ECHO_T}$hardcode_action" >&6
8895
8896if test "$hardcode_action" = relink; then
8897  # Fast installation is not supported
8898  enable_fast_install=no
8899elif test "$shlibpath_overrides_runpath" = yes ||
8900     test "$enable_shared" = no; then
8901  # Fast installation is not necessary
8902  enable_fast_install=needless
8903fi
8904
8905striplib=
8906old_striplib=
8907echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8908echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8909if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8910  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8911  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8912  echo "$as_me:$LINENO: result: yes" >&5
8913echo "${ECHO_T}yes" >&6
8914else
8915# FIXME - insert some real tests, host_os isn't really good enough
8916  case $host_os in
8917   darwin*)
8918       if test -n "$STRIP" ; then
8919         striplib="$STRIP -x"
8920         echo "$as_me:$LINENO: result: yes" >&5
8921echo "${ECHO_T}yes" >&6
8922       else
8923  echo "$as_me:$LINENO: result: no" >&5
8924echo "${ECHO_T}no" >&6
8925fi
8926       ;;
8927   *)
8928  echo "$as_me:$LINENO: result: no" >&5
8929echo "${ECHO_T}no" >&6
8930    ;;
8931  esac
8932fi
8933
8934if test "x$enable_dlopen" != xyes; then
8935  enable_dlopen=unknown
8936  enable_dlopen_self=unknown
8937  enable_dlopen_self_static=unknown
8938else
8939  lt_cv_dlopen=no
8940  lt_cv_dlopen_libs=
8941
8942  case $host_os in
8943  beos*)
8944    lt_cv_dlopen="load_add_on"
8945    lt_cv_dlopen_libs=
8946    lt_cv_dlopen_self=yes
8947    ;;
8948
8949  mingw* | pw32*)
8950    lt_cv_dlopen="LoadLibrary"
8951    lt_cv_dlopen_libs=
8952   ;;
8953
8954  cygwin*)
8955    lt_cv_dlopen="dlopen"
8956    lt_cv_dlopen_libs=
8957   ;;
8958
8959  darwin*)
8960  # if libdl is installed we need to link against it
8961    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8962echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8963if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8964  echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966  ac_check_lib_save_LIBS=$LIBS
8967LIBS="-ldl  $LIBS"
8968cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h.  */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h.  */
8974
8975/* Override any gcc2 internal prototype to avoid an error.  */
8976#ifdef __cplusplus
8977extern "C"
8978#endif
8979/* We use char because int might match the return type of a gcc2
8980   builtin and then its argument prototype would still apply.  */
8981char dlopen ();
8982int
8983main ()
8984{
8985dlopen ();
8986  ;
8987  return 0;
8988}
8989_ACEOF
8990rm -f conftest.$ac_objext conftest$ac_exeext
8991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8992  (eval $ac_link) 2>conftest.er1
8993  ac_status=$?
8994  grep -v '^ *+' conftest.er1 >conftest.err
8995  rm -f conftest.er1
8996  cat conftest.err >&5
8997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998  (exit $ac_status); } &&
8999         { ac_try='test -z "$ac_c_werror_flag"
9000                         || test ! -s conftest.err'
9001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002  (eval $ac_try) 2>&5
9003  ac_status=$?
9004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005  (exit $ac_status); }; } &&
9006         { ac_try='test -s conftest$ac_exeext'
9007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008  (eval $ac_try) 2>&5
9009  ac_status=$?
9010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011  (exit $ac_status); }; }; then
9012  ac_cv_lib_dl_dlopen=yes
9013else
9014  echo "$as_me: failed program was:" >&5
9015sed 's/^/| /' conftest.$ac_ext >&5
9016
9017ac_cv_lib_dl_dlopen=no
9018fi
9019rm -f conftest.err conftest.$ac_objext \
9020      conftest$ac_exeext conftest.$ac_ext
9021LIBS=$ac_check_lib_save_LIBS
9022fi
9023echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9024echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9025if test $ac_cv_lib_dl_dlopen = yes; then
9026  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9027else
9028
9029    lt_cv_dlopen="dyld"
9030    lt_cv_dlopen_libs=
9031    lt_cv_dlopen_self=yes
9032
9033fi
9034
9035   ;;
9036
9037  *)
9038    echo "$as_me:$LINENO: checking for shl_load" >&5
9039echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9040if test "${ac_cv_func_shl_load+set}" = set; then
9041  echo $ECHO_N "(cached) $ECHO_C" >&6
9042else
9043  cat >conftest.$ac_ext <<_ACEOF
9044/* confdefs.h.  */
9045_ACEOF
9046cat confdefs.h >>conftest.$ac_ext
9047cat >>conftest.$ac_ext <<_ACEOF
9048/* end confdefs.h.  */
9049/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9050   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9051#define shl_load innocuous_shl_load
9052
9053/* System header to define __stub macros and hopefully few prototypes,
9054    which can conflict with char shl_load (); below.
9055    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9056    <limits.h> exists even on freestanding compilers.  */
9057
9058#ifdef __STDC__
9059# include <limits.h>
9060#else
9061# include <assert.h>
9062#endif
9063
9064#undef shl_load
9065
9066/* Override any gcc2 internal prototype to avoid an error.  */
9067#ifdef __cplusplus
9068extern "C"
9069{
9070#endif
9071/* We use char because int might match the return type of a gcc2
9072   builtin and then its argument prototype would still apply.  */
9073char shl_load ();
9074/* The GNU C library defines this for functions which it implements
9075    to always fail with ENOSYS.  Some functions are actually named
9076    something starting with __ and the normal name is an alias.  */
9077#if defined (__stub_shl_load) || defined (__stub___shl_load)
9078choke me
9079#else
9080char (*f) () = shl_load;
9081#endif
9082#ifdef __cplusplus
9083}
9084#endif
9085
9086int
9087main ()
9088{
9089return f != shl_load;
9090  ;
9091  return 0;
9092}
9093_ACEOF
9094rm -f conftest.$ac_objext conftest$ac_exeext
9095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9096  (eval $ac_link) 2>conftest.er1
9097  ac_status=$?
9098  grep -v '^ *+' conftest.er1 >conftest.err
9099  rm -f conftest.er1
9100  cat conftest.err >&5
9101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); } &&
9103         { ac_try='test -z "$ac_c_werror_flag"
9104                         || test ! -s conftest.err'
9105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106  (eval $ac_try) 2>&5
9107  ac_status=$?
9108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109  (exit $ac_status); }; } &&
9110         { ac_try='test -s conftest$ac_exeext'
9111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112  (eval $ac_try) 2>&5
9113  ac_status=$?
9114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115  (exit $ac_status); }; }; then
9116  ac_cv_func_shl_load=yes
9117else
9118  echo "$as_me: failed program was:" >&5
9119sed 's/^/| /' conftest.$ac_ext >&5
9120
9121ac_cv_func_shl_load=no
9122fi
9123rm -f conftest.err conftest.$ac_objext \
9124      conftest$ac_exeext conftest.$ac_ext
9125fi
9126echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9127echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9128if test $ac_cv_func_shl_load = yes; then
9129  lt_cv_dlopen="shl_load"
9130else
9131  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9132echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9133if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9134  echo $ECHO_N "(cached) $ECHO_C" >&6
9135else
9136  ac_check_lib_save_LIBS=$LIBS
9137LIBS="-ldld  $LIBS"
9138cat >conftest.$ac_ext <<_ACEOF
9139/* confdefs.h.  */
9140_ACEOF
9141cat confdefs.h >>conftest.$ac_ext
9142cat >>conftest.$ac_ext <<_ACEOF
9143/* end confdefs.h.  */
9144
9145/* Override any gcc2 internal prototype to avoid an error.  */
9146#ifdef __cplusplus
9147extern "C"
9148#endif
9149/* We use char because int might match the return type of a gcc2
9150   builtin and then its argument prototype would still apply.  */
9151char shl_load ();
9152int
9153main ()
9154{
9155shl_load ();
9156  ;
9157  return 0;
9158}
9159_ACEOF
9160rm -f conftest.$ac_objext conftest$ac_exeext
9161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162  (eval $ac_link) 2>conftest.er1
9163  ac_status=$?
9164  grep -v '^ *+' conftest.er1 >conftest.err
9165  rm -f conftest.er1
9166  cat conftest.err >&5
9167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168  (exit $ac_status); } &&
9169         { ac_try='test -z "$ac_c_werror_flag"
9170                         || test ! -s conftest.err'
9171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172  (eval $ac_try) 2>&5
9173  ac_status=$?
9174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175  (exit $ac_status); }; } &&
9176         { ac_try='test -s conftest$ac_exeext'
9177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178  (eval $ac_try) 2>&5
9179  ac_status=$?
9180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181  (exit $ac_status); }; }; then
9182  ac_cv_lib_dld_shl_load=yes
9183else
9184  echo "$as_me: failed program was:" >&5
9185sed 's/^/| /' conftest.$ac_ext >&5
9186
9187ac_cv_lib_dld_shl_load=no
9188fi
9189rm -f conftest.err conftest.$ac_objext \
9190      conftest$ac_exeext conftest.$ac_ext
9191LIBS=$ac_check_lib_save_LIBS
9192fi
9193echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9194echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9195if test $ac_cv_lib_dld_shl_load = yes; then
9196  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9197else
9198  echo "$as_me:$LINENO: checking for dlopen" >&5
9199echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9200if test "${ac_cv_func_dlopen+set}" = set; then
9201  echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203  cat >conftest.$ac_ext <<_ACEOF
9204/* confdefs.h.  */
9205_ACEOF
9206cat confdefs.h >>conftest.$ac_ext
9207cat >>conftest.$ac_ext <<_ACEOF
9208/* end confdefs.h.  */
9209/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9210   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9211#define dlopen innocuous_dlopen
9212
9213/* System header to define __stub macros and hopefully few prototypes,
9214    which can conflict with char dlopen (); below.
9215    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9216    <limits.h> exists even on freestanding compilers.  */
9217
9218#ifdef __STDC__
9219# include <limits.h>
9220#else
9221# include <assert.h>
9222#endif
9223
9224#undef dlopen
9225
9226/* Override any gcc2 internal prototype to avoid an error.  */
9227#ifdef __cplusplus
9228extern "C"
9229{
9230#endif
9231/* We use char because int might match the return type of a gcc2
9232   builtin and then its argument prototype would still apply.  */
9233char dlopen ();
9234/* The GNU C library defines this for functions which it implements
9235    to always fail with ENOSYS.  Some functions are actually named
9236    something starting with __ and the normal name is an alias.  */
9237#if defined (__stub_dlopen) || defined (__stub___dlopen)
9238choke me
9239#else
9240char (*f) () = dlopen;
9241#endif
9242#ifdef __cplusplus
9243}
9244#endif
9245
9246int
9247main ()
9248{
9249return f != dlopen;
9250  ;
9251  return 0;
9252}
9253_ACEOF
9254rm -f conftest.$ac_objext conftest$ac_exeext
9255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256  (eval $ac_link) 2>conftest.er1
9257  ac_status=$?
9258  grep -v '^ *+' conftest.er1 >conftest.err
9259  rm -f conftest.er1
9260  cat conftest.err >&5
9261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262  (exit $ac_status); } &&
9263         { ac_try='test -z "$ac_c_werror_flag"
9264                         || test ! -s conftest.err'
9265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266  (eval $ac_try) 2>&5
9267  ac_status=$?
9268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269  (exit $ac_status); }; } &&
9270         { ac_try='test -s conftest$ac_exeext'
9271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272  (eval $ac_try) 2>&5
9273  ac_status=$?
9274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275  (exit $ac_status); }; }; then
9276  ac_cv_func_dlopen=yes
9277else
9278  echo "$as_me: failed program was:" >&5
9279sed 's/^/| /' conftest.$ac_ext >&5
9280
9281ac_cv_func_dlopen=no
9282fi
9283rm -f conftest.err conftest.$ac_objext \
9284      conftest$ac_exeext conftest.$ac_ext
9285fi
9286echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9287echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9288if test $ac_cv_func_dlopen = yes; then
9289  lt_cv_dlopen="dlopen"
9290else
9291  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9292echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9293if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9294  echo $ECHO_N "(cached) $ECHO_C" >&6
9295else
9296  ac_check_lib_save_LIBS=$LIBS
9297LIBS="-ldl  $LIBS"
9298cat >conftest.$ac_ext <<_ACEOF
9299/* confdefs.h.  */
9300_ACEOF
9301cat confdefs.h >>conftest.$ac_ext
9302cat >>conftest.$ac_ext <<_ACEOF
9303/* end confdefs.h.  */
9304
9305/* Override any gcc2 internal prototype to avoid an error.  */
9306#ifdef __cplusplus
9307extern "C"
9308#endif
9309/* We use char because int might match the return type of a gcc2
9310   builtin and then its argument prototype would still apply.  */
9311char dlopen ();
9312int
9313main ()
9314{
9315dlopen ();
9316  ;
9317  return 0;
9318}
9319_ACEOF
9320rm -f conftest.$ac_objext conftest$ac_exeext
9321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322  (eval $ac_link) 2>conftest.er1
9323  ac_status=$?
9324  grep -v '^ *+' conftest.er1 >conftest.err
9325  rm -f conftest.er1
9326  cat conftest.err >&5
9327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328  (exit $ac_status); } &&
9329         { ac_try='test -z "$ac_c_werror_flag"
9330                         || test ! -s conftest.err'
9331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332  (eval $ac_try) 2>&5
9333  ac_status=$?
9334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335  (exit $ac_status); }; } &&
9336         { ac_try='test -s conftest$ac_exeext'
9337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338  (eval $ac_try) 2>&5
9339  ac_status=$?
9340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341  (exit $ac_status); }; }; then
9342  ac_cv_lib_dl_dlopen=yes
9343else
9344  echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
9347ac_cv_lib_dl_dlopen=no
9348fi
9349rm -f conftest.err conftest.$ac_objext \
9350      conftest$ac_exeext conftest.$ac_ext
9351LIBS=$ac_check_lib_save_LIBS
9352fi
9353echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9354echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9355if test $ac_cv_lib_dl_dlopen = yes; then
9356  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9357else
9358  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9359echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9360if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9361  echo $ECHO_N "(cached) $ECHO_C" >&6
9362else
9363  ac_check_lib_save_LIBS=$LIBS
9364LIBS="-lsvld  $LIBS"
9365cat >conftest.$ac_ext <<_ACEOF
9366/* confdefs.h.  */
9367_ACEOF
9368cat confdefs.h >>conftest.$ac_ext
9369cat >>conftest.$ac_ext <<_ACEOF
9370/* end confdefs.h.  */
9371
9372/* Override any gcc2 internal prototype to avoid an error.  */
9373#ifdef __cplusplus
9374extern "C"
9375#endif
9376/* We use char because int might match the return type of a gcc2
9377   builtin and then its argument prototype would still apply.  */
9378char dlopen ();
9379int
9380main ()
9381{
9382dlopen ();
9383  ;
9384  return 0;
9385}
9386_ACEOF
9387rm -f conftest.$ac_objext conftest$ac_exeext
9388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389  (eval $ac_link) 2>conftest.er1
9390  ac_status=$?
9391  grep -v '^ *+' conftest.er1 >conftest.err
9392  rm -f conftest.er1
9393  cat conftest.err >&5
9394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395  (exit $ac_status); } &&
9396         { ac_try='test -z "$ac_c_werror_flag"
9397                         || test ! -s conftest.err'
9398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399  (eval $ac_try) 2>&5
9400  ac_status=$?
9401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402  (exit $ac_status); }; } &&
9403         { ac_try='test -s conftest$ac_exeext'
9404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405  (eval $ac_try) 2>&5
9406  ac_status=$?
9407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408  (exit $ac_status); }; }; then
9409  ac_cv_lib_svld_dlopen=yes
9410else
9411  echo "$as_me: failed program was:" >&5
9412sed 's/^/| /' conftest.$ac_ext >&5
9413
9414ac_cv_lib_svld_dlopen=no
9415fi
9416rm -f conftest.err conftest.$ac_objext \
9417      conftest$ac_exeext conftest.$ac_ext
9418LIBS=$ac_check_lib_save_LIBS
9419fi
9420echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9421echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9422if test $ac_cv_lib_svld_dlopen = yes; then
9423  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9424else
9425  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9426echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9427if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9428  echo $ECHO_N "(cached) $ECHO_C" >&6
9429else
9430  ac_check_lib_save_LIBS=$LIBS
9431LIBS="-ldld  $LIBS"
9432cat >conftest.$ac_ext <<_ACEOF
9433/* confdefs.h.  */
9434_ACEOF
9435cat confdefs.h >>conftest.$ac_ext
9436cat >>conftest.$ac_ext <<_ACEOF
9437/* end confdefs.h.  */
9438
9439/* Override any gcc2 internal prototype to avoid an error.  */
9440#ifdef __cplusplus
9441extern "C"
9442#endif
9443/* We use char because int might match the return type of a gcc2
9444   builtin and then its argument prototype would still apply.  */
9445char dld_link ();
9446int
9447main ()
9448{
9449dld_link ();
9450  ;
9451  return 0;
9452}
9453_ACEOF
9454rm -f conftest.$ac_objext conftest$ac_exeext
9455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9456  (eval $ac_link) 2>conftest.er1
9457  ac_status=$?
9458  grep -v '^ *+' conftest.er1 >conftest.err
9459  rm -f conftest.er1
9460  cat conftest.err >&5
9461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462  (exit $ac_status); } &&
9463         { ac_try='test -z "$ac_c_werror_flag"
9464                         || test ! -s conftest.err'
9465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466  (eval $ac_try) 2>&5
9467  ac_status=$?
9468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469  (exit $ac_status); }; } &&
9470         { ac_try='test -s conftest$ac_exeext'
9471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472  (eval $ac_try) 2>&5
9473  ac_status=$?
9474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475  (exit $ac_status); }; }; then
9476  ac_cv_lib_dld_dld_link=yes
9477else
9478  echo "$as_me: failed program was:" >&5
9479sed 's/^/| /' conftest.$ac_ext >&5
9480
9481ac_cv_lib_dld_dld_link=no
9482fi
9483rm -f conftest.err conftest.$ac_objext \
9484      conftest$ac_exeext conftest.$ac_ext
9485LIBS=$ac_check_lib_save_LIBS
9486fi
9487echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9488echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9489if test $ac_cv_lib_dld_dld_link = yes; then
9490  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9491fi
9492
9493
9494fi
9495
9496
9497fi
9498
9499
9500fi
9501
9502
9503fi
9504
9505
9506fi
9507
9508    ;;
9509  esac
9510
9511  if test "x$lt_cv_dlopen" != xno; then
9512    enable_dlopen=yes
9513  else
9514    enable_dlopen=no
9515  fi
9516
9517  case $lt_cv_dlopen in
9518  dlopen)
9519    save_CPPFLAGS="$CPPFLAGS"
9520    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9521
9522    save_LDFLAGS="$LDFLAGS"
9523    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9524
9525    save_LIBS="$LIBS"
9526    LIBS="$lt_cv_dlopen_libs $LIBS"
9527
9528    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9529echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9530if test "${lt_cv_dlopen_self+set}" = set; then
9531  echo $ECHO_N "(cached) $ECHO_C" >&6
9532else
9533          if test "$cross_compiling" = yes; then :
9534  lt_cv_dlopen_self=cross
9535else
9536  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9537  lt_status=$lt_dlunknown
9538  cat > conftest.$ac_ext <<EOF
9539#line 9539 "configure"
9540#include "confdefs.h"
9541
9542#if HAVE_DLFCN_H
9543#include <dlfcn.h>
9544#endif
9545
9546#include <stdio.h>
9547
9548#ifdef RTLD_GLOBAL
9549#  define LT_DLGLOBAL           RTLD_GLOBAL
9550#else
9551#  ifdef DL_GLOBAL
9552#    define LT_DLGLOBAL         DL_GLOBAL
9553#  else
9554#    define LT_DLGLOBAL         0
9555#  endif
9556#endif
9557
9558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9559   find out it does not work in some platform. */
9560#ifndef LT_DLLAZY_OR_NOW
9561#  ifdef RTLD_LAZY
9562#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9563#  else
9564#    ifdef DL_LAZY
9565#      define LT_DLLAZY_OR_NOW          DL_LAZY
9566#    else
9567#      ifdef RTLD_NOW
9568#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9569#      else
9570#        ifdef DL_NOW
9571#          define LT_DLLAZY_OR_NOW      DL_NOW
9572#        else
9573#          define LT_DLLAZY_OR_NOW      0
9574#        endif
9575#      endif
9576#    endif
9577#  endif
9578#endif
9579
9580#ifdef __cplusplus
9581extern "C" void exit (int);
9582#endif
9583
9584void fnord() { int i=42;}
9585int main ()
9586{
9587  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9588  int status = $lt_dlunknown;
9589
9590  if (self)
9591    {
9592      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9593      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9594      /* dlclose (self); */
9595    }
9596  else
9597    puts (dlerror ());
9598
9599    exit (status);
9600}
9601EOF
9602  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603  (eval $ac_link) 2>&5
9604  ac_status=$?
9605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9607    (./conftest; exit; ) >&5 2>/dev/null
9608    lt_status=$?
9609    case x$lt_status in
9610      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9611      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9612      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9613    esac
9614  else :
9615    # compilation failed
9616    lt_cv_dlopen_self=no
9617  fi
9618fi
9619rm -fr conftest*
9620
9621
9622fi
9623echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9624echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9625
9626    if test "x$lt_cv_dlopen_self" = xyes; then
9627      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9628      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9629echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9630if test "${lt_cv_dlopen_self_static+set}" = set; then
9631  echo $ECHO_N "(cached) $ECHO_C" >&6
9632else
9633          if test "$cross_compiling" = yes; then :
9634  lt_cv_dlopen_self_static=cross
9635else
9636  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9637  lt_status=$lt_dlunknown
9638  cat > conftest.$ac_ext <<EOF
9639#line 9639 "configure"
9640#include "confdefs.h"
9641
9642#if HAVE_DLFCN_H
9643#include <dlfcn.h>
9644#endif
9645
9646#include <stdio.h>
9647
9648#ifdef RTLD_GLOBAL
9649#  define LT_DLGLOBAL           RTLD_GLOBAL
9650#else
9651#  ifdef DL_GLOBAL
9652#    define LT_DLGLOBAL         DL_GLOBAL
9653#  else
9654#    define LT_DLGLOBAL         0
9655#  endif
9656#endif
9657
9658/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9659   find out it does not work in some platform. */
9660#ifndef LT_DLLAZY_OR_NOW
9661#  ifdef RTLD_LAZY
9662#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9663#  else
9664#    ifdef DL_LAZY
9665#      define LT_DLLAZY_OR_NOW          DL_LAZY
9666#    else
9667#      ifdef RTLD_NOW
9668#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9669#      else
9670#        ifdef DL_NOW
9671#          define LT_DLLAZY_OR_NOW      DL_NOW
9672#        else
9673#          define LT_DLLAZY_OR_NOW      0
9674#        endif
9675#      endif
9676#    endif
9677#  endif
9678#endif
9679
9680#ifdef __cplusplus
9681extern "C" void exit (int);
9682#endif
9683
9684void fnord() { int i=42;}
9685int main ()
9686{
9687  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9688  int status = $lt_dlunknown;
9689
9690  if (self)
9691    {
9692      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9693      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9694      /* dlclose (self); */
9695    }
9696  else
9697    puts (dlerror ());
9698
9699    exit (status);
9700}
9701EOF
9702  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703  (eval $ac_link) 2>&5
9704  ac_status=$?
9705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9707    (./conftest; exit; ) >&5 2>/dev/null
9708    lt_status=$?
9709    case x$lt_status in
9710      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9711      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9712      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9713    esac
9714  else :
9715    # compilation failed
9716    lt_cv_dlopen_self_static=no
9717  fi
9718fi
9719rm -fr conftest*
9720
9721
9722fi
9723echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9724echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9725    fi
9726
9727    CPPFLAGS="$save_CPPFLAGS"
9728    LDFLAGS="$save_LDFLAGS"
9729    LIBS="$save_LIBS"
9730    ;;
9731  esac
9732
9733  case $lt_cv_dlopen_self in
9734  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9735  *) enable_dlopen_self=unknown ;;
9736  esac
9737
9738  case $lt_cv_dlopen_self_static in
9739  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9740  *) enable_dlopen_self_static=unknown ;;
9741  esac
9742fi
9743
9744
9745# Report which library types will actually be built
9746echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9747echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9748echo "$as_me:$LINENO: result: $can_build_shared" >&5
9749echo "${ECHO_T}$can_build_shared" >&6
9750
9751echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9752echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9753test "$can_build_shared" = "no" && enable_shared=no
9754
9755# On AIX, shared libraries and static libraries use the same namespace, and
9756# are all built from PIC.
9757case $host_os in
9758aix3*)
9759  test "$enable_shared" = yes && enable_static=no
9760  if test -n "$RANLIB"; then
9761    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9762    postinstall_cmds='$RANLIB $lib'
9763  fi
9764  ;;
9765
9766aix4* | aix5*)
9767  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9768    test "$enable_shared" = yes && enable_static=no
9769  fi
9770    ;;
9771esac
9772echo "$as_me:$LINENO: result: $enable_shared" >&5
9773echo "${ECHO_T}$enable_shared" >&6
9774
9775echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9776echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9777# Make sure either enable_shared or enable_static is yes.
9778test "$enable_shared" = yes || enable_static=yes
9779echo "$as_me:$LINENO: result: $enable_static" >&5
9780echo "${ECHO_T}$enable_static" >&6
9781
9782# The else clause should only fire when bootstrapping the
9783# libtool distribution, otherwise you forgot to ship ltmain.sh
9784# with your package, and you will get complaints that there are
9785# no rules to generate ltmain.sh.
9786if test -f "$ltmain"; then
9787  # See if we are running on zsh, and set the options which allow our commands through
9788  # without removal of \ escapes.
9789  if test -n "${ZSH_VERSION+set}" ; then
9790    setopt NO_GLOB_SUBST
9791  fi
9792  # Now quote all the things that may contain metacharacters while being
9793  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9794  # variables and quote the copies for generation of the libtool script.
9795  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9796    SED SHELL STRIP \
9797    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9798    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9799    deplibs_check_method reload_flag reload_cmds need_locks \
9800    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9801    lt_cv_sys_global_symbol_to_c_name_address \
9802    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9803    old_postinstall_cmds old_postuninstall_cmds \
9804    compiler \
9805    CC \
9806    LD \
9807    lt_prog_compiler_wl \
9808    lt_prog_compiler_pic \
9809    lt_prog_compiler_static \
9810    lt_prog_compiler_no_builtin_flag \
9811    export_dynamic_flag_spec \
9812    thread_safe_flag_spec \
9813    whole_archive_flag_spec \
9814    enable_shared_with_static_runtimes \
9815    old_archive_cmds \
9816    old_archive_from_new_cmds \
9817    predep_objects \
9818    postdep_objects \
9819    predeps \
9820    postdeps \
9821    compiler_lib_search_path \
9822    archive_cmds \
9823    archive_expsym_cmds \
9824    postinstall_cmds \
9825    postuninstall_cmds \
9826    old_archive_from_expsyms_cmds \
9827    allow_undefined_flag \
9828    no_undefined_flag \
9829    export_symbols_cmds \
9830    hardcode_libdir_flag_spec \
9831    hardcode_libdir_flag_spec_ld \
9832    hardcode_libdir_separator \
9833    hardcode_automatic \
9834    module_cmds \
9835    module_expsym_cmds \
9836    lt_cv_prog_compiler_c_o \
9837    exclude_expsyms \
9838    include_expsyms; do
9839
9840    case $var in
9841    old_archive_cmds | \
9842    old_archive_from_new_cmds | \
9843    archive_cmds | \
9844    archive_expsym_cmds | \
9845    module_cmds | \
9846    module_expsym_cmds | \
9847    old_archive_from_expsyms_cmds | \
9848    export_symbols_cmds | \
9849    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9850    postinstall_cmds | postuninstall_cmds | \
9851    old_postinstall_cmds | old_postuninstall_cmds | \
9852    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9853      # Double-quote double-evaled strings.
9854      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9855      ;;
9856    *)
9857      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9858      ;;
9859    esac
9860  done
9861
9862  case $lt_echo in
9863  *'\$0 --fallback-echo"')
9864    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9865    ;;
9866  esac
9867
9868cfgfile="${ofile}T"
9869  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9870  $rm -f "$cfgfile"
9871  { echo "$as_me:$LINENO: creating $ofile" >&5
9872echo "$as_me: creating $ofile" >&6;}
9873
9874  cat <<__EOF__ >> "$cfgfile"
9875#! $SHELL
9876
9877# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9878# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9879# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9880#
9881# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9882# Free Software Foundation, Inc.
9883#
9884# This file is part of GNU Libtool:
9885# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9886#
9887# This program is free software; you can redistribute it and/or modify
9888# it under the terms of the GNU General Public License as published by
9889# the Free Software Foundation; either version 2 of the License, or
9890# (at your option) any later version.
9891#
9892# This program is distributed in the hope that it will be useful, but
9893# WITHOUT ANY WARRANTY; without even the implied warranty of
9894# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9895# General Public License for more details.
9896#
9897# You should have received a copy of the GNU General Public License
9898# along with this program; if not, write to the Free Software
9899# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9900#
9901# As a special exception to the GNU General Public License, if you
9902# distribute this file as part of a program that contains a
9903# configuration script generated by Autoconf, you may include it under
9904# the same distribution terms that you use for the rest of that program.
9905
9906# A sed program that does not truncate output.
9907SED=$lt_SED
9908
9909# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9910Xsed="$SED -e 1s/^X//"
9911
9912# The HP-UX ksh and POSIX shell print the target directory to stdout
9913# if CDPATH is set.
9914(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9915
9916# The names of the tagged configurations supported by this script.
9917available_tags=
9918
9919# ### BEGIN LIBTOOL CONFIG
9920
9921# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9922
9923# Shell to use when invoking shell scripts.
9924SHELL=$lt_SHELL
9925
9926# Whether or not to build shared libraries.
9927build_libtool_libs=$enable_shared
9928
9929# Whether or not to build static libraries.
9930build_old_libs=$enable_static
9931
9932# Whether or not to add -lc for building shared libraries.
9933build_libtool_need_lc=$archive_cmds_need_lc
9934
9935# Whether or not to disallow shared libs when runtime libs are static
9936allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9937
9938# Whether or not to optimize for fast installation.
9939fast_install=$enable_fast_install
9940
9941# The host system.
9942host_alias=$host_alias
9943host=$host
9944host_os=$host_os
9945
9946# The build system.
9947build_alias=$build_alias
9948build=$build
9949build_os=$build_os
9950
9951# An echo program that does not interpret backslashes.
9952echo=$lt_echo
9953
9954# The archiver.
9955AR=$lt_AR
9956AR_FLAGS=$lt_AR_FLAGS
9957
9958# A C compiler.
9959LTCC=$lt_LTCC
9960
9961# LTCC compiler flags.
9962LTCFLAGS=$lt_LTCFLAGS
9963
9964# A language-specific compiler.
9965CC=$lt_compiler
9966
9967# Is the compiler the GNU C compiler?
9968with_gcc=$GCC
9969
9970gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9971gcc_ver=\`gcc -dumpversion\`
9972
9973# An ERE matcher.
9974EGREP=$lt_EGREP
9975
9976# The linker used to build libraries.
9977LD=$lt_LD
9978
9979# Whether we need hard or soft links.
9980LN_S=$lt_LN_S
9981
9982# A BSD-compatible nm program.
9983NM=$lt_NM
9984
9985# A symbol stripping program
9986STRIP=$lt_STRIP
9987
9988# Used to examine libraries when file_magic_cmd begins "file"
9989MAGIC_CMD=$MAGIC_CMD
9990
9991# Used on cygwin: DLL creation program.
9992DLLTOOL="$DLLTOOL"
9993
9994# Used on cygwin: object dumper.
9995OBJDUMP="$OBJDUMP"
9996
9997# Used on cygwin: assembler.
9998AS="$AS"
9999
10000# The name of the directory that contains temporary libtool files.
10001objdir=$objdir
10002
10003# How to create reloadable object files.
10004reload_flag=$lt_reload_flag
10005reload_cmds=$lt_reload_cmds
10006
10007# How to pass a linker flag through the compiler.
10008wl=$lt_lt_prog_compiler_wl
10009
10010# Object file suffix (normally "o").
10011objext="$ac_objext"
10012
10013# Old archive suffix (normally "a").
10014libext="$libext"
10015
10016# Shared library suffix (normally ".so").
10017shrext_cmds='$shrext_cmds'
10018
10019# Executable file suffix (normally "").
10020exeext="$exeext"
10021
10022# Additional compiler flags for building library objects.
10023pic_flag=$lt_lt_prog_compiler_pic
10024pic_mode=$pic_mode
10025
10026# What is the maximum length of a command?
10027max_cmd_len=$lt_cv_sys_max_cmd_len
10028
10029# Does compiler simultaneously support -c and -o options?
10030compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10031
10032# Must we lock files when doing compilation?
10033need_locks=$lt_need_locks
10034
10035# Do we need the lib prefix for modules?
10036need_lib_prefix=$need_lib_prefix
10037
10038# Do we need a version for libraries?
10039need_version=$need_version
10040
10041# Whether dlopen is supported.
10042dlopen_support=$enable_dlopen
10043
10044# Whether dlopen of programs is supported.
10045dlopen_self=$enable_dlopen_self
10046
10047# Whether dlopen of statically linked programs is supported.
10048dlopen_self_static=$enable_dlopen_self_static
10049
10050# Compiler flag to prevent dynamic linking.
10051link_static_flag=$lt_lt_prog_compiler_static
10052
10053# Compiler flag to turn off builtin functions.
10054no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10055
10056# Compiler flag to allow reflexive dlopens.
10057export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10058
10059# Compiler flag to generate shared objects directly from archives.
10060whole_archive_flag_spec=$lt_whole_archive_flag_spec
10061
10062# Compiler flag to generate thread-safe objects.
10063thread_safe_flag_spec=$lt_thread_safe_flag_spec
10064
10065# Library versioning type.
10066version_type=$version_type
10067
10068# Format of library name prefix.
10069libname_spec=$lt_libname_spec
10070
10071# List of archive names.  First name is the real one, the rest are links.
10072# The last name is the one that the linker finds with -lNAME.
10073library_names_spec=$lt_library_names_spec
10074
10075# The coded name of the library, if different from the real name.
10076soname_spec=$lt_soname_spec
10077
10078# Commands used to build and install an old-style archive.
10079RANLIB=$lt_RANLIB
10080old_archive_cmds=$lt_old_archive_cmds
10081old_postinstall_cmds=$lt_old_postinstall_cmds
10082old_postuninstall_cmds=$lt_old_postuninstall_cmds
10083
10084# Create an old-style archive from a shared archive.
10085old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10086
10087# Create a temporary old-style archive to link instead of a shared archive.
10088old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10089
10090# Commands used to build and install a shared archive.
10091archive_cmds=$lt_archive_cmds
10092archive_expsym_cmds=$lt_archive_expsym_cmds
10093postinstall_cmds=$lt_postinstall_cmds
10094postuninstall_cmds=$lt_postuninstall_cmds
10095
10096# Commands used to build a loadable module (assumed same as above if empty)
10097module_cmds=$lt_module_cmds
10098module_expsym_cmds=$lt_module_expsym_cmds
10099
10100# Commands to strip libraries.
10101old_striplib=$lt_old_striplib
10102striplib=$lt_striplib
10103
10104# Dependencies to place before the objects being linked to create a
10105# shared library.
10106predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10107
10108# Dependencies to place after the objects being linked to create a
10109# shared library.
10110postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10111
10112# Dependencies to place before the objects being linked to create a
10113# shared library.
10114predeps=$lt_predeps
10115
10116# Dependencies to place after the objects being linked to create a
10117# shared library.
10118postdeps=$lt_postdeps
10119
10120# The library search path used internally by the compiler when linking
10121# a shared library.
10122compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10123
10124# Method to check whether dependent libraries are shared objects.
10125deplibs_check_method=$lt_deplibs_check_method
10126
10127# Command to use when deplibs_check_method == file_magic.
10128file_magic_cmd=$lt_file_magic_cmd
10129
10130# Flag that allows shared libraries with undefined symbols to be built.
10131allow_undefined_flag=$lt_allow_undefined_flag
10132
10133# Flag that forces no undefined symbols.
10134no_undefined_flag=$lt_no_undefined_flag
10135
10136# Commands used to finish a libtool library installation in a directory.
10137finish_cmds=$lt_finish_cmds
10138
10139# Same as above, but a single script fragment to be evaled but not shown.
10140finish_eval=$lt_finish_eval
10141
10142# Take the output of nm and produce a listing of raw symbols and C names.
10143global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10144
10145# Transform the output of nm in a proper C declaration
10146global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10147
10148# Transform the output of nm in a C name address pair
10149global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10150
10151# This is the shared library runtime path variable.
10152runpath_var=$runpath_var
10153
10154# This is the shared library path variable.
10155shlibpath_var=$shlibpath_var
10156
10157# Is shlibpath searched before the hard-coded library search path?
10158shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10159
10160# How to hardcode a shared library path into an executable.
10161hardcode_action=$hardcode_action
10162
10163# Whether we should hardcode library paths into libraries.
10164hardcode_into_libs=$hardcode_into_libs
10165
10166# Flag to hardcode \$libdir into a binary during linking.
10167# This must work even if \$libdir does not exist.
10168hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10169
10170# If ld is used when linking, flag to hardcode \$libdir into
10171# a binary during linking. This must work even if \$libdir does
10172# not exist.
10173hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10174
10175# Whether we need a single -rpath flag with a separated argument.
10176hardcode_libdir_separator=$lt_hardcode_libdir_separator
10177
10178# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10179# resulting binary.
10180hardcode_direct=$hardcode_direct
10181
10182# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10183# resulting binary.
10184hardcode_minus_L=$hardcode_minus_L
10185
10186# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10187# the resulting binary.
10188hardcode_shlibpath_var=$hardcode_shlibpath_var
10189
10190# Set to yes if building a shared library automatically hardcodes DIR into the library
10191# and all subsequent libraries and executables linked against it.
10192hardcode_automatic=$hardcode_automatic
10193
10194# Variables whose values should be saved in libtool wrapper scripts and
10195# restored at relink time.
10196variables_saved_for_relink="$variables_saved_for_relink"
10197
10198# Whether libtool must link a program against all its dependency libraries.
10199link_all_deplibs=$link_all_deplibs
10200
10201# Compile-time system search path for libraries
10202sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10203
10204# Run-time system search path for libraries
10205sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10206
10207# Fix the shell variable \$srcfile for the compiler.
10208fix_srcfile_path="$fix_srcfile_path"
10209
10210# Set to yes if exported symbols are required.
10211always_export_symbols=$always_export_symbols
10212
10213# The commands to list exported symbols.
10214export_symbols_cmds=$lt_export_symbols_cmds
10215
10216# The commands to extract the exported symbol list from a shared archive.
10217extract_expsyms_cmds=$lt_extract_expsyms_cmds
10218
10219# Symbols that should not be listed in the preloaded symbols.
10220exclude_expsyms=$lt_exclude_expsyms
10221
10222# Symbols that must always be exported.
10223include_expsyms=$lt_include_expsyms
10224
10225# ### END LIBTOOL CONFIG
10226
10227__EOF__
10228
10229
10230  case $host_os in
10231  aix3*)
10232    cat <<\EOF >> "$cfgfile"
10233
10234# AIX sometimes has problems with the GCC collect2 program.  For some
10235# reason, if we set the COLLECT_NAMES environment variable, the problems
10236# vanish in a puff of smoke.
10237if test "X${COLLECT_NAMES+set}" != Xset; then
10238  COLLECT_NAMES=
10239  export COLLECT_NAMES
10240fi
10241EOF
10242    ;;
10243  esac
10244
10245  # We use sed instead of cat because bash on DJGPP gets confused if
10246  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10247  # text mode, it properly converts lines to CR/LF.  This bash problem
10248  # is reportedly fixed, but why not run on old versions too?
10249  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10250
10251  mv -f "$cfgfile" "$ofile" || \
10252    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10253  chmod +x "$ofile"
10254
10255else
10256  # If there is no Makefile yet, we rely on a make rule to execute
10257  # `config.status --recheck' to rerun these tests and create the
10258  # libtool script then.
10259  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10260  if test -f "$ltmain_in"; then
10261    test -f Makefile && make "$ltmain"
10262  fi
10263fi
10264
10265
10266ac_ext=c
10267ac_cpp='$CPP $CPPFLAGS'
10268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10270ac_compiler_gnu=$ac_cv_c_compiler_gnu
10271
10272CC="$lt_save_CC"
10273
10274
10275# Check whether --with-tags or --without-tags was given.
10276if test "${with_tags+set}" = set; then
10277  withval="$with_tags"
10278  tagnames="$withval"
10279fi;
10280
10281if test -f "$ltmain" && test -n "$tagnames"; then
10282  if test ! -f "${ofile}"; then
10283    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10284echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10285  fi
10286
10287  if test -z "$LTCC"; then
10288    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10289    if test -z "$LTCC"; then
10290      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10291echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10292    else
10293      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10294echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10295    fi
10296  fi
10297  if test -z "$LTCFLAGS"; then
10298    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10299  fi
10300
10301  # Extract list of available tagged configurations in $ofile.
10302  # Note that this assumes the entire list is on one line.
10303  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10304
10305  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10306  for tagname in $tagnames; do
10307    IFS="$lt_save_ifs"
10308    # Check whether tagname contains only valid characters
10309    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10310    "") ;;
10311    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10312echo "$as_me: error: invalid tag name: $tagname" >&2;}
10313   { (exit 1); exit 1; }; }
10314        ;;
10315    esac
10316
10317    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10318    then
10319      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10320echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10321   { (exit 1); exit 1; }; }
10322    fi
10323
10324    # Update the list of available tags.
10325    if test -n "$tagname"; then
10326      echo appending configuration tag \"$tagname\" to $ofile
10327
10328      case $tagname in
10329      CXX)
10330        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10331            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10332            (test "X$CXX" != "Xg++"))) ; then
10333          ac_ext=cc
10334ac_cpp='$CXXCPP $CPPFLAGS'
10335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10338
10339
10340
10341
10342archive_cmds_need_lc_CXX=no
10343allow_undefined_flag_CXX=
10344always_export_symbols_CXX=no
10345archive_expsym_cmds_CXX=
10346export_dynamic_flag_spec_CXX=
10347hardcode_direct_CXX=no
10348hardcode_libdir_flag_spec_CXX=
10349hardcode_libdir_flag_spec_ld_CXX=
10350hardcode_libdir_separator_CXX=
10351hardcode_minus_L_CXX=no
10352hardcode_shlibpath_var_CXX=unsupported
10353hardcode_automatic_CXX=no
10354module_cmds_CXX=
10355module_expsym_cmds_CXX=
10356link_all_deplibs_CXX=unknown
10357old_archive_cmds_CXX=$old_archive_cmds
10358no_undefined_flag_CXX=
10359whole_archive_flag_spec_CXX=
10360enable_shared_with_static_runtimes_CXX=no
10361
10362# Dependencies to place before and after the object being linked:
10363predep_objects_CXX=
10364postdep_objects_CXX=
10365predeps_CXX=
10366postdeps_CXX=
10367compiler_lib_search_path_CXX=
10368
10369# Source file extension for C++ test sources.
10370ac_ext=cpp
10371
10372# Object file extension for compiled C++ test sources.
10373objext=o
10374objext_CXX=$objext
10375
10376# Code to be used in simple compile tests
10377lt_simple_compile_test_code="int some_variable = 0;\n"
10378
10379# Code to be used in simple link tests
10380lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10381
10382# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10383
10384# If no C compiler was specified, use CC.
10385LTCC=${LTCC-"$CC"}
10386
10387# If no C compiler flags were specified, use CFLAGS.
10388LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10389
10390# Allow CC to be a program name with arguments.
10391compiler=$CC
10392
10393
10394# save warnings/boilerplate of simple test code
10395ac_outfile=conftest.$ac_objext
10396printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10397eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10398_lt_compiler_boilerplate=`cat conftest.err`
10399$rm conftest*
10400
10401ac_outfile=conftest.$ac_objext
10402printf "$lt_simple_link_test_code" >conftest.$ac_ext
10403eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10404_lt_linker_boilerplate=`cat conftest.err`
10405$rm conftest*
10406
10407
10408# Allow CC to be a program name with arguments.
10409lt_save_CC=$CC
10410lt_save_LD=$LD
10411lt_save_GCC=$GCC
10412GCC=$GXX
10413lt_save_with_gnu_ld=$with_gnu_ld
10414lt_save_path_LD=$lt_cv_path_LD
10415if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10416  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10417else
10418  $as_unset lt_cv_prog_gnu_ld
10419fi
10420if test -n "${lt_cv_path_LDCXX+set}"; then
10421  lt_cv_path_LD=$lt_cv_path_LDCXX
10422else
10423  $as_unset lt_cv_path_LD
10424fi
10425test -z "${LDCXX+set}" || LD=$LDCXX
10426CC=${CXX-"c++"}
10427compiler=$CC
10428compiler_CXX=$CC
10429for cc_temp in $compiler""; do
10430  case $cc_temp in
10431    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10432    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10433    \-*) ;;
10434    *) break;;
10435  esac
10436done
10437cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10438
10439
10440# We don't want -fno-exception wen compiling C++ code, so set the
10441# no_builtin_flag separately
10442if test "$GXX" = yes; then
10443  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10444else
10445  lt_prog_compiler_no_builtin_flag_CXX=
10446fi
10447
10448if test "$GXX" = yes; then
10449  # Set up default GNU C++ configuration
10450
10451
10452# Check whether --with-gnu-ld or --without-gnu-ld was given.
10453if test "${with_gnu_ld+set}" = set; then
10454  withval="$with_gnu_ld"
10455  test "$withval" = no || with_gnu_ld=yes
10456else
10457  with_gnu_ld=no
10458fi;
10459ac_prog=ld
10460if test "$GCC" = yes; then
10461  # Check if gcc -print-prog-name=ld gives a path.
10462  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10463echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10464  case $host in
10465  *-*-mingw*)
10466    # gcc leaves a trailing carriage return which upsets mingw
10467    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10468  *)
10469    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10470  esac
10471  case $ac_prog in
10472    # Accept absolute paths.
10473    [\\/]* | ?:[\\/]*)
10474      re_direlt='/[^/][^/]*/\.\./'
10475      # Canonicalize the pathname of ld
10476      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10477      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10478        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10479      done
10480      test -z "$LD" && LD="$ac_prog"
10481      ;;
10482  "")
10483    # If it fails, then pretend we aren't using GCC.
10484    ac_prog=ld
10485    ;;
10486  *)
10487    # If it is relative, then search for the first ld in PATH.
10488    with_gnu_ld=unknown
10489    ;;
10490  esac
10491elif test "$with_gnu_ld" = yes; then
10492  echo "$as_me:$LINENO: checking for GNU ld" >&5
10493echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10494else
10495  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10496echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10497fi
10498if test "${lt_cv_path_LD+set}" = set; then
10499  echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501  if test -z "$LD"; then
10502  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10503  for ac_dir in $PATH; do
10504    IFS="$lt_save_ifs"
10505    test -z "$ac_dir" && ac_dir=.
10506    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10507      lt_cv_path_LD="$ac_dir/$ac_prog"
10508      # Check to see if the program is GNU ld.  I'd rather use --version,
10509      # but apparently some variants of GNU ld only accept -v.
10510      # Break only if it was the GNU/non-GNU ld that we prefer.
10511      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10512      *GNU* | *'with BFD'*)
10513        test "$with_gnu_ld" != no && break
10514        ;;
10515      *)
10516        test "$with_gnu_ld" != yes && break
10517        ;;
10518      esac
10519    fi
10520  done
10521  IFS="$lt_save_ifs"
10522else
10523  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10524fi
10525fi
10526
10527LD="$lt_cv_path_LD"
10528if test -n "$LD"; then
10529  echo "$as_me:$LINENO: result: $LD" >&5
10530echo "${ECHO_T}$LD" >&6
10531else
10532  echo "$as_me:$LINENO: result: no" >&5
10533echo "${ECHO_T}no" >&6
10534fi
10535test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10536echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10537   { (exit 1); exit 1; }; }
10538echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10539echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10540if test "${lt_cv_prog_gnu_ld+set}" = set; then
10541  echo $ECHO_N "(cached) $ECHO_C" >&6
10542else
10543  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10544case `$LD -v 2>&1 </dev/null` in
10545*GNU* | *'with BFD'*)
10546  lt_cv_prog_gnu_ld=yes
10547  ;;
10548*)
10549  lt_cv_prog_gnu_ld=no
10550  ;;
10551esac
10552fi
10553echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10554echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10555with_gnu_ld=$lt_cv_prog_gnu_ld
10556
10557
10558
10559  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10560  # archiving commands below assume that GNU ld is being used.
10561  if test "$with_gnu_ld" = yes; then
10562    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10563    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'
10564
10565    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10566    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10567
10568    # If archive_cmds runs LD, not CC, wlarc should be empty
10569    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10570    #     investigate it a little bit more. (MM)
10571    wlarc='${wl}'
10572
10573    # ancient GNU ld didn't support --whole-archive et. al.
10574    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10575        grep 'no-whole-archive' > /dev/null; then
10576      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10577    else
10578      whole_archive_flag_spec_CXX=
10579    fi
10580  else
10581    with_gnu_ld=no
10582    wlarc=
10583
10584    # A generic and very simple default shared library creation
10585    # command for GNU C++ for the case where it uses the native
10586    # linker, instead of GNU ld.  If possible, this setting should
10587    # overridden to take advantage of the native linker features on
10588    # the platform it is being used on.
10589    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10590  fi
10591
10592  # Commands to make compiler produce verbose output that lists
10593  # what "hidden" libraries, object files and flags are used when
10594  # linking a shared library.
10595  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10596
10597else
10598  GXX=no
10599  with_gnu_ld=no
10600  wlarc=
10601fi
10602
10603# PORTME: fill in a description of your system's C++ link characteristics
10604echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10605echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10606ld_shlibs_CXX=yes
10607case $host_os in
10608  aix3*)
10609    # FIXME: insert proper C++ library support
10610    ld_shlibs_CXX=no
10611    ;;
10612  aix4* | aix5*)
10613    if test "$host_cpu" = ia64; then
10614      # On IA64, the linker does run time linking by default, so we don't
10615      # have to do anything special.
10616      aix_use_runtimelinking=no
10617      exp_sym_flag='-Bexport'
10618      no_entry_flag=""
10619    else
10620      aix_use_runtimelinking=no
10621
10622      # Test if we are trying to use run time linking or normal
10623      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10624      # need to do runtime linking.
10625      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10626        for ld_flag in $LDFLAGS; do
10627          case $ld_flag in
10628          *-brtl*)
10629            aix_use_runtimelinking=yes
10630            break
10631            ;;
10632          esac
10633        done
10634        ;;
10635      esac
10636
10637      exp_sym_flag='-bexport'
10638      no_entry_flag='-bnoentry'
10639    fi
10640
10641    # When large executables or shared objects are built, AIX ld can
10642    # have problems creating the table of contents.  If linking a library
10643    # or program results in "error TOC overflow" add -mminimal-toc to
10644    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10645    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10646
10647    archive_cmds_CXX=''
10648    hardcode_direct_CXX=yes
10649    hardcode_libdir_separator_CXX=':'
10650    link_all_deplibs_CXX=yes
10651
10652    if test "$GXX" = yes; then
10653      case $host_os in aix4.[012]|aix4.[012].*)
10654      # We only want to do this on AIX 4.2 and lower, the check
10655      # below for broken collect2 doesn't work under 4.3+
10656        collect2name=`${CC} -print-prog-name=collect2`
10657        if test -f "$collect2name" && \
10658           strings "$collect2name" | grep resolve_lib_name >/dev/null
10659        then
10660          # We have reworked collect2
10661          hardcode_direct_CXX=yes
10662        else
10663          # We have old collect2
10664          hardcode_direct_CXX=unsupported
10665          # It fails to find uninstalled libraries when the uninstalled
10666          # path is not listed in the libpath.  Setting hardcode_minus_L
10667          # to unsupported forces relinking
10668          hardcode_minus_L_CXX=yes
10669          hardcode_libdir_flag_spec_CXX='-L$libdir'
10670          hardcode_libdir_separator_CXX=
10671        fi
10672        ;;
10673      esac
10674      shared_flag='-shared'
10675      if test "$aix_use_runtimelinking" = yes; then
10676        shared_flag="$shared_flag "'${wl}-G'
10677      fi
10678    else
10679      # not using gcc
10680      if test "$host_cpu" = ia64; then
10681        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10682        # chokes on -Wl,-G. The following line is correct:
10683        shared_flag='-G'
10684      else
10685        if test "$aix_use_runtimelinking" = yes; then
10686          shared_flag='${wl}-G'
10687        else
10688          shared_flag='${wl}-bM:SRE'
10689        fi
10690      fi
10691    fi
10692
10693    # It seems that -bexpall does not export symbols beginning with
10694    # underscore (_), so it is better to generate a list of symbols to export.
10695    always_export_symbols_CXX=yes
10696    if test "$aix_use_runtimelinking" = yes; then
10697      # Warning - without using the other runtime loading flags (-brtl),
10698      # -berok will link without error, but may produce a broken library.
10699      allow_undefined_flag_CXX='-berok'
10700      # Determine the default libpath from the value encoded in an empty executable.
10701      cat >conftest.$ac_ext <<_ACEOF
10702/* confdefs.h.  */
10703_ACEOF
10704cat confdefs.h >>conftest.$ac_ext
10705cat >>conftest.$ac_ext <<_ACEOF
10706/* end confdefs.h.  */
10707
10708int
10709main ()
10710{
10711
10712  ;
10713  return 0;
10714}
10715_ACEOF
10716rm -f conftest.$ac_objext conftest$ac_exeext
10717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10718  (eval $ac_link) 2>conftest.er1
10719  ac_status=$?
10720  grep -v '^ *+' conftest.er1 >conftest.err
10721  rm -f conftest.er1
10722  cat conftest.err >&5
10723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724  (exit $ac_status); } &&
10725         { ac_try='test -z "$ac_cxx_werror_flag"
10726                         || test ! -s conftest.err'
10727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728  (eval $ac_try) 2>&5
10729  ac_status=$?
10730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731  (exit $ac_status); }; } &&
10732         { ac_try='test -s conftest$ac_exeext'
10733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734  (eval $ac_try) 2>&5
10735  ac_status=$?
10736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737  (exit $ac_status); }; }; then
10738
10739aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10740}'`
10741# Check for a 64-bit object if we didn't find anything.
10742if 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; }
10743}'`; fi
10744else
10745  echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
10748fi
10749rm -f conftest.err conftest.$ac_objext \
10750      conftest$ac_exeext conftest.$ac_ext
10751if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10752
10753      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10754
10755      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10756     else
10757      if test "$host_cpu" = ia64; then
10758        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10759        allow_undefined_flag_CXX="-z nodefs"
10760        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10761      else
10762        # Determine the default libpath from the value encoded in an empty executable.
10763        cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h.  */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
10768/* end confdefs.h.  */
10769
10770int
10771main ()
10772{
10773
10774  ;
10775  return 0;
10776}
10777_ACEOF
10778rm -f conftest.$ac_objext conftest$ac_exeext
10779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780  (eval $ac_link) 2>conftest.er1
10781  ac_status=$?
10782  grep -v '^ *+' conftest.er1 >conftest.err
10783  rm -f conftest.er1
10784  cat conftest.err >&5
10785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786  (exit $ac_status); } &&
10787         { ac_try='test -z "$ac_cxx_werror_flag"
10788                         || test ! -s conftest.err'
10789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790  (eval $ac_try) 2>&5
10791  ac_status=$?
10792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793  (exit $ac_status); }; } &&
10794         { ac_try='test -s conftest$ac_exeext'
10795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796  (eval $ac_try) 2>&5
10797  ac_status=$?
10798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799  (exit $ac_status); }; }; then
10800
10801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10802}'`
10803# Check for a 64-bit objec