source: ThirdParty/Lapack/trunk/configure @ 100

Last change on this file since 100 was 100, checked in by andreasw, 15 years ago

removed -DNDEBUG from FFLAGS

  • Property svn:executable set to *
File size: 685.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyLapack 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS LDFLAGS ac_ct_F77 EXEEXT OBJEXT MPIF77 EGREP 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE CC CFLAGS CPPFLAGS ac_ct_CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL LT_LDFLAGS RPATH_FLAGS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
917ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
918ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
919ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
920ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
921ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
922ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
923ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
924ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
925ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
926ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
927ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
928ac_env_F77_set=${F77+set}
929ac_env_F77_value=$F77
930ac_cv_env_F77_set=${F77+set}
931ac_cv_env_F77_value=$F77
932ac_env_FFLAGS_set=${FFLAGS+set}
933ac_env_FFLAGS_value=$FFLAGS
934ac_cv_env_FFLAGS_set=${FFLAGS+set}
935ac_cv_env_FFLAGS_value=$FFLAGS
936ac_env_LDFLAGS_set=${LDFLAGS+set}
937ac_env_LDFLAGS_value=$LDFLAGS
938ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
939ac_cv_env_LDFLAGS_value=$LDFLAGS
940ac_env_MPIF77_set=${MPIF77+set}
941ac_env_MPIF77_value=$MPIF77
942ac_cv_env_MPIF77_set=${MPIF77+set}
943ac_cv_env_MPIF77_value=$MPIF77
944ac_env_CC_set=${CC+set}
945ac_env_CC_value=$CC
946ac_cv_env_CC_set=${CC+set}
947ac_cv_env_CC_value=$CC
948ac_env_CFLAGS_set=${CFLAGS+set}
949ac_env_CFLAGS_value=$CFLAGS
950ac_cv_env_CFLAGS_set=${CFLAGS+set}
951ac_cv_env_CFLAGS_value=$CFLAGS
952ac_env_CPPFLAGS_set=${CPPFLAGS+set}
953ac_env_CPPFLAGS_value=$CPPFLAGS
954ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
955ac_cv_env_CPPFLAGS_value=$CPPFLAGS
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972
973#
974# Report the --help message.
975#
976if test "$ac_init_help" = "long"; then
977  # Omit some internal or obsolete options to make the list less imposing.
978  # This message is too long to be a string in the A/UX 3.1 sh.
979  cat <<_ACEOF
980\`configure' configures ThirdPartyLapack 0.0 to adapt to many kinds of systems.
981
982Usage: $0 [OPTION]... [VAR=VALUE]...
983
984To assign environment variables (e.g., CC, CFLAGS...), specify them as
985VAR=VALUE.  See below for descriptions of some of the useful variables.
986
987Defaults for the options are specified in brackets.
988
989Configuration:
990  -h, --help              display this help and exit
991      --help=short        display options specific to this package
992      --help=recursive    display the short help of all the included packages
993  -V, --version           display version information and exit
994  -q, --quiet, --silent   do not print \`checking...' messages
995      --cache-file=FILE   cache test results in FILE [disabled]
996  -C, --config-cache      alias for \`--cache-file=config.cache'
997  -n, --no-create         do not create output files
998      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
999
1000_ACEOF
1001
1002  cat <<_ACEOF
1003Installation directories:
1004  --prefix=PREFIX         install architecture-independent files in PREFIX
1005                          [$ac_default_prefix]
1006  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1007                          [PREFIX]
1008
1009By default, \`make install' will install all the files in
1010\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1011an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1012for instance \`--prefix=\$HOME'.
1013
1014For better control, use the options below.
1015
1016Fine tuning of the installation directories:
1017  --bindir=DIR           user executables [EPREFIX/bin]
1018  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1019  --libexecdir=DIR       program executables [EPREFIX/libexec]
1020  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1021  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1022  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1023  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1024  --libdir=DIR           object code libraries [EPREFIX/lib]
1025  --includedir=DIR       C header files [PREFIX/include]
1026  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1027  --infodir=DIR          info documentation [PREFIX/info]
1028  --mandir=DIR           man documentation [PREFIX/man]
1029_ACEOF
1030
1031  cat <<\_ACEOF
1032
1033Program names:
1034  --program-prefix=PREFIX            prepend PREFIX to installed program names
1035  --program-suffix=SUFFIX            append SUFFIX to installed program names
1036  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1037
1038System types:
1039  --build=BUILD     configure for building on BUILD [guessed]
1040  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1041_ACEOF
1042fi
1043
1044if test -n "$ac_init_help"; then
1045  case $ac_init_help in
1046     short | recursive ) echo "Configuration of ThirdPartyLapack 0.0:";;
1047   esac
1048  cat <<\_ACEOF
1049
1050Optional Features:
1051  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1052  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1053  --enable-debug          compile all projects with debug options tests
1054  --enable-debug-lapack compile this project (Lapack) with debug options
1055  --enable-static[=PKGS]
1056                          build static libraries [default=no]
1057  --enable-maintainer-mode  enable make rules and dependencies not useful
1058                          (and sometimes confusing) to the casual installer
1059  --disable-dependency-tracking  speeds up one-time build
1060  --enable-dependency-tracking   do not reject slow dependency extractors
1061  --enable-shared[=PKGS]
1062                          build shared libraries [default=yes]
1063  --enable-fast-install[=PKGS]
1064                          optimize for fast installation [default=yes]
1065  --disable-libtool-lock  avoid locking (might break parallel builds)
1066
1067Optional Packages:
1068  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1069  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1070  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1071  --with-lapack-checklevel
1072                          specify the sanity check level for project Lapack
1073  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1074  --with-pic              try to use only PIC/non-PIC objects [default=use
1075                          both]
1076  --with-tags[=TAGS]
1077                          include additional configurations [automatic]
1078
1079Some influential environment variables:
1080  ADD_FFLAGS  Additional Fortran compiler options
1081  DBG_FFLAGS  Debug Fortran compiler options
1082  OPT_FFLAGS  Optimize Fortran compiler options
1083  F77         Fortran 77 compiler command
1084  FFLAGS      Fortran 77 compiler flags
1085  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1086              nonstandard directory <lib dir>
1087  MPIF77      Fortran MPI Compiler
1088  CC          C compiler command
1089  CFLAGS      C compiler flags
1090  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1091              headers in a nonstandard directory <include dir>
1092  CPP         C preprocessor
1093  CXX         C++ compiler command
1094  CXXFLAGS    C++ compiler flags
1095  CXXCPP      C++ preprocessor
1096
1097Use these variables to override the choices made by `configure' or to help
1098it to find libraries and programs with nonstandard names/locations.
1099
1100Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1101_ACEOF
1102fi
1103
1104if test "$ac_init_help" = "recursive"; then
1105  # If there are subdirs, report their specific --help.
1106  ac_popdir=`pwd`
1107  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1108    test -d $ac_dir || continue
1109    ac_builddir=.
1110
1111if test "$ac_dir" != .; then
1112  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1113  # A "../" for each directory in $ac_dir_suffix.
1114  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1115else
1116  ac_dir_suffix= ac_top_builddir=
1117fi
1118
1119case $srcdir in
1120  .)  # No --srcdir option.  We are building in place.
1121    ac_srcdir=.
1122    if test -z "$ac_top_builddir"; then
1123       ac_top_srcdir=.
1124    else
1125       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1126    fi ;;
1127  [\\/]* | ?:[\\/]* )  # Absolute path.
1128    ac_srcdir=$srcdir$ac_dir_suffix;
1129    ac_top_srcdir=$srcdir ;;
1130  *) # Relative path.
1131    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1132    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1133esac
1134
1135# Do not use `cd foo && pwd` to compute absolute paths, because
1136# the directories may not exist.
1137case `pwd` in
1138.) ac_abs_builddir="$ac_dir";;
1139*)
1140  case "$ac_dir" in
1141  .) ac_abs_builddir=`pwd`;;
1142  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1143  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1144  esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_top_builddir=${ac_top_builddir}.;;
1148*)
1149  case ${ac_top_builddir}. in
1150  .) ac_abs_top_builddir=$ac_abs_builddir;;
1151  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1152  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1153  esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_srcdir=$ac_srcdir;;
1157*)
1158  case $ac_srcdir in
1159  .) ac_abs_srcdir=$ac_abs_builddir;;
1160  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1161  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1162  esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_srcdir=$ac_top_srcdir;;
1166*)
1167  case $ac_top_srcdir in
1168  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1169  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1170  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1171  esac;;
1172esac
1173
1174    cd $ac_dir
1175    # Check for guested configure; otherwise get Cygnus style configure.
1176    if test -f $ac_srcdir/configure.gnu; then
1177      echo
1178      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1179    elif test -f $ac_srcdir/configure; then
1180      echo
1181      $SHELL $ac_srcdir/configure  --help=recursive
1182    elif test -f $ac_srcdir/configure.ac ||
1183           test -f $ac_srcdir/configure.in; then
1184      echo
1185      $ac_configure --help
1186    else
1187      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1188    fi
1189    cd $ac_popdir
1190  done
1191fi
1192
1193test -n "$ac_init_help" && exit 0
1194if $ac_init_version; then
1195  cat <<\_ACEOF
1196ThirdPartyLapack configure 0.0
1197generated by GNU Autoconf 2.59
1198
1199Copyright (C) 2003 Free Software Foundation, Inc.
1200This configure script is free software; the Free Software Foundation
1201gives unlimited permission to copy, distribute and modify it.
1202
1203
1204Copyright 2006 International Business Machines and others.
1205All Rights Reserved.
1206This file is part of the open source package Coin which is distributed
1207under the Common Public License.
1208_ACEOF
1209  exit 0
1210fi
1211exec 5>config.log
1212cat >&5 <<_ACEOF
1213This file contains any messages produced by compilers while
1214running configure, to aid debugging if configure makes a mistake.
1215
1216It was created by ThirdPartyLapack $as_me 0.0, which was
1217generated by GNU Autoconf 2.59.  Invocation command line was
1218
1219  $ $0 $@
1220
1221_ACEOF
1222{
1223cat <<_ASUNAME
1224## --------- ##
1225## Platform. ##
1226## --------- ##
1227
1228hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1229uname -m = `(uname -m) 2>/dev/null || echo unknown`
1230uname -r = `(uname -r) 2>/dev/null || echo unknown`
1231uname -s = `(uname -s) 2>/dev/null || echo unknown`
1232uname -v = `(uname -v) 2>/dev/null || echo unknown`
1233
1234/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1235/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1236
1237/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1238/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1239/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1240hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1241/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1242/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1243/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1244
1245_ASUNAME
1246
1247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1248for as_dir in $PATH
1249do
1250  IFS=$as_save_IFS
1251  test -z "$as_dir" && as_dir=.
1252  echo "PATH: $as_dir"
1253done
1254
1255} >&5
1256
1257cat >&5 <<_ACEOF
1258
1259
1260## ----------- ##
1261## Core tests. ##
1262## ----------- ##
1263
1264_ACEOF
1265
1266
1267# Keep a trace of the command line.
1268# Strip out --no-create and --no-recursion so they do not pile up.
1269# Strip out --silent because we don't want to record it for future runs.
1270# Also quote any args containing shell meta-characters.
1271# Make two passes to allow for proper duplicate-argument suppression.
1272ac_configure_args=
1273ac_configure_args0=
1274ac_configure_args1=
1275ac_sep=
1276ac_must_keep_next=false
1277for ac_pass in 1 2
1278do
1279  for ac_arg
1280  do
1281    case $ac_arg in
1282    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1283    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284    | -silent | --silent | --silen | --sile | --sil)
1285      continue ;;
1286    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1288    esac
1289    case $ac_pass in
1290    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1291    2)
1292      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1293      if test $ac_must_keep_next = true; then
1294        ac_must_keep_next=false # Got value, back to normal.
1295      else
1296        case $ac_arg in
1297          *=* | --config-cache | -C | -disable-* | --disable-* \
1298          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1299          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1300          | -with-* | --with-* | -without-* | --without-* | --x)
1301            case "$ac_configure_args0 " in
1302              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1303            esac
1304            ;;
1305          -* ) ac_must_keep_next=true ;;
1306        esac
1307      fi
1308      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1309      # Get rid of the leading space.
1310      ac_sep=" "
1311      ;;
1312    esac
1313  done
1314done
1315$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1316$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1317
1318# When interrupted or exit'd, cleanup temporary files, and complete
1319# config.log.  We remove comments because anyway the quotes in there
1320# would cause problems or look ugly.
1321# WARNING: Be sure not to use single quotes in there, as some shells,
1322# such as our DU 5.0 friend, will then `close' the trap.
1323trap 'exit_status=$?
1324  # Save into config.log some information that might help in debugging.
1325  {
1326    echo
1327
1328    cat <<\_ASBOX
1329## ---------------- ##
1330## Cache variables. ##
1331## ---------------- ##
1332_ASBOX
1333    echo
1334    # The following way of writing the cache mishandles newlines in values,
1335{
1336  (set) 2>&1 |
1337    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1338    *ac_space=\ *)
1339      sed -n \
1340        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1341          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1342      ;;
1343    *)
1344      sed -n \
1345        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1346      ;;
1347    esac;
1348}
1349    echo
1350
1351    cat <<\_ASBOX
1352## ----------------- ##
1353## Output variables. ##
1354## ----------------- ##
1355_ASBOX
1356    echo
1357    for ac_var in $ac_subst_vars
1358    do
1359      eval ac_val=$`echo $ac_var`
1360      echo "$ac_var='"'"'$ac_val'"'"'"
1361    done | sort
1362    echo
1363
1364    if test -n "$ac_subst_files"; then
1365      cat <<\_ASBOX
1366## ------------- ##
1367## Output files. ##
1368## ------------- ##
1369_ASBOX
1370      echo
1371      for ac_var in $ac_subst_files
1372      do
1373        eval ac_val=$`echo $ac_var`
1374        echo "$ac_var='"'"'$ac_val'"'"'"
1375      done | sort
1376      echo
1377    fi
1378
1379    if test -s confdefs.h; then
1380      cat <<\_ASBOX
1381## ----------- ##
1382## confdefs.h. ##
1383## ----------- ##
1384_ASBOX
1385      echo
1386      sed "/^$/d" confdefs.h | sort
1387      echo
1388    fi
1389    test "$ac_signal" != 0 &&
1390      echo "$as_me: caught signal $ac_signal"
1391    echo "$as_me: exit $exit_status"
1392  } >&5
1393  rm -f core *.core &&
1394  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1395    exit $exit_status
1396     ' 0
1397for ac_signal in 1 2 13 15; do
1398  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1399done
1400ac_signal=0
1401
1402# confdefs.h avoids OS command line length limits that DEFS can exceed.
1403rm -rf conftest* confdefs.h
1404# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1405echo >confdefs.h
1406
1407# Predefined preprocessor variables.
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_NAME "$PACKAGE_NAME"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_VERSION "$PACKAGE_VERSION"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_STRING "$PACKAGE_STRING"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1431_ACEOF
1432
1433
1434# Let the site file select an alternate cache file if it wants to.
1435# Prefer explicitly selected file to automatically selected ones.
1436if test -z "$CONFIG_SITE"; then
1437  if test "x$prefix" != xNONE; then
1438    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1439  else
1440    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1441  fi
1442fi
1443for ac_site_file in $CONFIG_SITE; do
1444  if test -r "$ac_site_file"; then
1445    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1446echo "$as_me: loading site script $ac_site_file" >&6;}
1447    sed 's/^/| /' "$ac_site_file" >&5
1448    . "$ac_site_file"
1449  fi
1450done
1451
1452if test -r "$cache_file"; then
1453  # Some versions of bash will fail to source /dev/null (special
1454  # files actually), so we avoid doing that.
1455  if test -f "$cache_file"; then
1456    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1457echo "$as_me: loading cache $cache_file" >&6;}
1458    case $cache_file in
1459      [\\/]* | ?:[\\/]* ) . $cache_file;;
1460      *)                      . ./$cache_file;;
1461    esac
1462  fi
1463else
1464  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1465echo "$as_me: creating cache $cache_file" >&6;}
1466  >$cache_file
1467fi
1468
1469# Check that the precious variables saved in the cache have kept the same
1470# value.
1471ac_cache_corrupted=false
1472for ac_var in `(set) 2>&1 |
1473               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1474  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1475  eval ac_new_set=\$ac_env_${ac_var}_set
1476  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1477  eval ac_new_val="\$ac_env_${ac_var}_value"
1478  case $ac_old_set,$ac_new_set in
1479    set,)
1480      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1482      ac_cache_corrupted=: ;;
1483    ,set)
1484      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1485echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1486      ac_cache_corrupted=: ;;
1487    ,);;
1488    *)
1489      if test "x$ac_old_val" != "x$ac_new_val"; then
1490        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1491echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1492        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1493echo "$as_me:   former value:  $ac_old_val" >&2;}
1494        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1495echo "$as_me:   current value: $ac_new_val" >&2;}
1496        ac_cache_corrupted=:
1497      fi;;
1498  esac
1499  # Pass precious variables to config.status.
1500  if test "$ac_new_set" = set; then
1501    case $ac_new_val in
1502    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1503      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1504    *) ac_arg=$ac_var=$ac_new_val ;;
1505    esac
1506    case " $ac_configure_args " in
1507      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1508      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1509    esac
1510  fi
1511done
1512if $ac_cache_corrupted; then
1513  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1514echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1515  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1516echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1517   { (exit 1); exit 1; }; }
1518fi
1519
1520ac_ext=c
1521ac_cpp='$CPP $CPPFLAGS'
1522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555# List one file in the package so that the configure script can test
1556# whether the package is actually there
1557
1558
1559# Where should everything be installed by default?  Here, we want it
1560# to be installed directly in 'bin', 'lib', 'include' subdirectories
1561# of the directory where configure is run.  The default would be
1562# /usr/local.
1563
1564
1565# Initialize the ADDLIBS variable
1566ADDLIBS='-lm'
1567
1568
1569# Initialize the FADDLIBS variable (which is to be used with a fortran
1570# compiler and will not include FLIBS)
1571FADDLIBS=
1572
1573
1574# A useful makefile conditional that is always false
1575
1576
1577if false; then
1578  ALWAYS_FALSE_TRUE=
1579  ALWAYS_FALSE_FALSE='#'
1580else
1581  ALWAYS_FALSE_TRUE='#'
1582  ALWAYS_FALSE_FALSE=
1583fi
1584
1585
1586# We set the following variable so that we know later in AC_COIN_FINALIZE
1587# that we are in a project main directory
1588coin_projectdir=yes
1589
1590
1591#############################################################################
1592#                         Standard build tool stuff                         #
1593#############################################################################
1594
1595# Get the system type
1596ac_aux_dir=
1597for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1598  if test -f $ac_dir/install-sh; then
1599    ac_aux_dir=$ac_dir
1600    ac_install_sh="$ac_aux_dir/install-sh -c"
1601    break
1602  elif test -f $ac_dir/install.sh; then
1603    ac_aux_dir=$ac_dir
1604    ac_install_sh="$ac_aux_dir/install.sh -c"
1605    break
1606  elif test -f $ac_dir/shtool; then
1607    ac_aux_dir=$ac_dir
1608    ac_install_sh="$ac_aux_dir/shtool install -c"
1609    break
1610  fi
1611done
1612if test -z "$ac_aux_dir"; then
1613  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1614echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1615   { (exit 1); exit 1; }; }
1616fi
1617ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1618ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1619ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1620
1621# Make sure we can run config.sub.
1622$ac_config_sub sun4 >/dev/null 2>&1 ||
1623  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1624echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1625   { (exit 1); exit 1; }; }
1626
1627echo "$as_me:$LINENO: checking build system type" >&5
1628echo $ECHO_N "checking build system type... $ECHO_C" >&6
1629if test "${ac_cv_build+set}" = set; then
1630  echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632  ac_cv_build_alias=$build_alias
1633test -z "$ac_cv_build_alias" &&
1634  ac_cv_build_alias=`$ac_config_guess`
1635test -z "$ac_cv_build_alias" &&
1636  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1637echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1638   { (exit 1); exit 1; }; }
1639ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1640  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1641echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1642   { (exit 1); exit 1; }; }
1643
1644fi
1645echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1646echo "${ECHO_T}$ac_cv_build" >&6
1647build=$ac_cv_build
1648build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653
1654# Check if user wants to produce debugging code
1655
1656echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1657echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1658
1659# Check whether --enable-debug or --disable-debug was given.
1660if test "${enable_debug+set}" = set; then
1661  enableval="$enable_debug"
1662  case "${enableval}" in
1663   yes) coin_debug_compile=true
1664        enable_shared=no
1665        ;;
1666   no)  coin_debug_compile=false
1667        ;;
1668   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1669echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1670   { (exit 1); exit 1; }; }
1671        ;;
1672esac
1673else
1674  coin_debug_compile=false
1675fi;
1676
1677# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1678if test "${enable_debug_lapack+set}" = set; then
1679  enableval="$enable_debug_lapack"
1680  case "${enableval}" in
1681    yes) coin_debug_compile=true
1682         enable_shared=no
1683         ;;
1684    no)  coin_debug_compile=false
1685         ;;
1686    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1687echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1688   { (exit 1); exit 1; }; }
1689         ;;
1690 esac
1691else
1692  :
1693fi;
1694
1695 # m4_ifvaln([Lapack],
1696
1697if test $coin_debug_compile = true; then
1698  echo "$as_me:$LINENO: result: yes" >&5
1699echo "${ECHO_T}yes" >&6
1700else
1701  echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
1703fi
1704
1705
1706# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1707if test "${with_lapack_verbosity+set}" = set; then
1708  withval="$with_lapack_verbosity"
1709  coin_lapack_verbosity=$withval
1710else
1711  coin_lapack_verbosity=0
1712fi;
1713
1714cat >>confdefs.h <<_ACEOF
1715#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1716_ACEOF
1717
1718
1719
1720# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1721if test "${with_lapack_checklevel+set}" = set; then
1722  withval="$with_lapack_checklevel"
1723  coin_lapack_checklevel=$withval
1724else
1725  coin_lapack_checklevel=0
1726fi;
1727
1728cat >>confdefs.h <<_ACEOF
1729#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1730_ACEOF
1731
1732
1733# We use the following variable to have a string with the upper case
1734# version of the project name
1735COIN_PRJCT=LAPACK
1736
1737
1738 # m4_ifvaln([Lapack],
1739
1740
1741
1742# Get the name of the Fortran compiler and appropriate compiler options
1743case $build in
1744  *-mingw*)
1745    if test "${LD+set}" = set; then :; else
1746      LD=link
1747    fi
1748    ;;
1749esac
1750
1751
1752
1753ac_ext=f
1754ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1755ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1757
1758
1759
1760
1761
1762
1763coin_has_f77=yes
1764
1765save_fflags="$FFLAGS"
1766case $build in
1767  *-cygwin* | *-mingw*)
1768             comps="gfortran g77 ifort fl32" ;;
1769  *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
1770esac
1771
1772# We delete the cached value, since the test might not have been
1773# performed with out choise of compilers earlier
1774$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
1775ac_ext=f
1776ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1777ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1778ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1779if test -n "$ac_tool_prefix"; then
1780  for ac_prog in $comps
1781  do
1782    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1784echo "$as_me:$LINENO: checking for $ac_word" >&5
1785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786if test "${ac_cv_prog_F77+set}" = set; then
1787  echo $ECHO_N "(cached) $ECHO_C" >&6
1788else
1789  if test -n "$F77"; then
1790  ac_cv_prog_F77="$F77" # Let the user override the test.
1791else
1792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793for as_dir in $PATH
1794do
1795  IFS=$as_save_IFS
1796  test -z "$as_dir" && as_dir=.
1797  for ac_exec_ext in '' $ac_executable_extensions; do
1798  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
1800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801    break 2
1802  fi
1803done
1804done
1805
1806fi
1807fi
1808F77=$ac_cv_prog_F77
1809if test -n "$F77"; then
1810  echo "$as_me:$LINENO: result: $F77" >&5
1811echo "${ECHO_T}$F77" >&6
1812else
1813  echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817    test -n "$F77" && break
1818  done
1819fi
1820if test -z "$F77"; then
1821  ac_ct_F77=$F77
1822  for ac_prog in $comps
1823do
1824  # Extract the first word of "$ac_prog", so it can be a program name with args.
1825set dummy $ac_prog; ac_word=$2
1826echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
1829  echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
1831  if test -n "$ac_ct_F77"; then
1832  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
1833else
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837  IFS=$as_save_IFS
1838  test -z "$as_dir" && as_dir=.
1839  for ac_exec_ext in '' $ac_executable_extensions; do
1840  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841    ac_cv_prog_ac_ct_F77="$ac_prog"
1842    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843    break 2
1844  fi
1845done
1846done
1847
1848fi
1849fi
1850ac_ct_F77=$ac_cv_prog_ac_ct_F77
1851if test -n "$ac_ct_F77"; then
1852  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
1853echo "${ECHO_T}$ac_ct_F77" >&6
1854else
1855  echo "$as_me:$LINENO: result: no" >&5
1856echo "${ECHO_T}no" >&6
1857fi
1858
1859  test -n "$ac_ct_F77" && break
1860done
1861
1862  F77=$ac_ct_F77
1863fi
1864
1865
1866# Provide some information about the compiler.
1867echo "$as_me:1867:" \
1868     "checking for Fortran 77 compiler version" >&5
1869ac_compiler=`set X $ac_compile; echo $2`
1870{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1871  (eval $ac_compiler --version </dev/null >&5) 2>&5
1872  ac_status=$?
1873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874  (exit $ac_status); }
1875{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1876  (eval $ac_compiler -v </dev/null >&5) 2>&5
1877  ac_status=$?
1878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879  (exit $ac_status); }
1880{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1881  (eval $ac_compiler -V </dev/null >&5) 2>&5
1882  ac_status=$?
1883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884  (exit $ac_status); }
1885rm -f a.out
1886
1887cat >conftest.$ac_ext <<_ACEOF
1888      program main
1889
1890      end
1891_ACEOF
1892ac_clean_files_save=$ac_clean_files
1893ac_clean_files="$ac_clean_files a.out a.exe b.out"
1894# Try to create an executable without -o first, disregard a.out.
1895# It will help us diagnose broken compilers, and finding out an intuition
1896# of exeext.
1897echo "$as_me:$LINENO: checking for Fortran 77 compiler default output file name" >&5
1898echo $ECHO_N "checking for Fortran 77 compiler default output file name... $ECHO_C" >&6
1899ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1900if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1901  (eval $ac_link_default) 2>&5
1902  ac_status=$?
1903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904  (exit $ac_status); }; then
1905  # Find the output, starting from the most likely.  This scheme is
1906# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1907# resort.
1908
1909# Be careful to initialize this variable, since it used to be cached.
1910# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1911ac_cv_exeext=
1912# b.out is created by i960 compilers.
1913for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1914do
1915  test -f "$ac_file" || continue
1916  case $ac_file in
1917    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1918        ;;
1919    conftest.$ac_ext )
1920        # This is the source file.
1921        ;;
1922    [ab].out )
1923        # We found the default executable, but exeext='' is most
1924        # certainly right.
1925        break;;
1926    *.* )
1927        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1928        # FIXME: I believe we export ac_cv_exeext for Libtool,
1929        # but it would be cool to find out if it's true.  Does anybody
1930        # maintain Libtool? --akim.
1931        export ac_cv_exeext
1932        break;;
1933    * )
1934        break;;
1935  esac
1936done
1937else
1938  echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
1940
1941{ { echo "$as_me:$LINENO: error: Fortran 77 compiler cannot create executables
1942See \`config.log' for more details." >&5
1943echo "$as_me: error: Fortran 77 compiler cannot create executables
1944See \`config.log' for more details." >&2;}
1945   { (exit 77); exit 77; }; }
1946fi
1947
1948ac_exeext=$ac_cv_exeext
1949echo "$as_me:$LINENO: result: $ac_file" >&5
1950echo "${ECHO_T}$ac_file" >&6
1951
1952# Check the compiler produces executables we can run.  If not, either
1953# the compiler is broken, or we cross compile.
1954echo "$as_me:$LINENO: checking whether the Fortran 77 compiler works" >&5
1955echo $ECHO_N "checking whether the Fortran 77 compiler works... $ECHO_C" >&6
1956# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1957# If not cross compiling, check that we can run a simple program.
1958if test "$cross_compiling" != yes; then
1959  if { ac_try='./$ac_file'
1960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1961  (eval $ac_try) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }; }; then
1965    cross_compiling=no
1966  else
1967    if test "$cross_compiling" = maybe; then
1968        cross_compiling=yes
1969    else
1970        { { echo "$as_me:$LINENO: error: cannot run Fortran 77 compiled programs.
1971If you meant to cross compile, use \`--host'.
1972See \`config.log' for more details." >&5
1973echo "$as_me: error: cannot run Fortran 77 compiled programs.
1974If you meant to cross compile, use \`--host'.
1975See \`config.log' for more details." >&2;}
1976   { (exit 1); exit 1; }; }
1977    fi
1978  fi
1979fi
1980echo "$as_me:$LINENO: result: yes" >&5
1981echo "${ECHO_T}yes" >&6
1982
1983rm -f a.out a.exe conftest$ac_cv_exeext b.out
1984ac_clean_files=$ac_clean_files_save
1985# Check the compiler produces executables we can run.  If not, either
1986# the compiler is broken, or we cross compile.
1987echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1988echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1989echo "$as_me:$LINENO: result: $cross_compiling" >&5
1990echo "${ECHO_T}$cross_compiling" >&6
1991
1992echo "$as_me:$LINENO: checking for suffix of executables" >&5
1993echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1995  (eval $ac_link) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }; then
1999  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2000# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2001# work properly (i.e., refer to `conftest.exe'), while it won't with
2002# `rm'.
2003for ac_file in conftest.exe conftest conftest.*; do
2004  test -f "$ac_file" || continue
2005  case $ac_file in
2006    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2007    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2008          export ac_cv_exeext
2009          break;;
2010    * ) break;;
2011  esac
2012done
2013else
2014  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2015See \`config.log' for more details." >&5
2016echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2017See \`config.log' for more details." >&2;}
2018   { (exit 1); exit 1; }; }
2019fi
2020
2021rm -f conftest$ac_cv_exeext
2022echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2023echo "${ECHO_T}$ac_cv_exeext" >&6
2024
2025rm -f conftest.$ac_ext
2026EXEEXT=$ac_cv_exeext
2027ac_exeext=$EXEEXT
2028echo "$as_me:$LINENO: checking for suffix of object files" >&5
2029echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2030if test "${ac_cv_objext+set}" = set; then
2031  echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033  cat >conftest.$ac_ext <<_ACEOF
2034      program main
2035
2036      end
2037_ACEOF
2038rm -f conftest.o conftest.obj
2039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040  (eval $ac_compile) 2>&5
2041  ac_status=$?
2042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043  (exit $ac_status); }; then
2044  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2045  case $ac_file in
2046    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2047    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2048       break;;
2049  esac
2050done
2051else
2052  echo "$as_me: failed program was:" >&5
2053sed 's/^/| /' conftest.$ac_ext >&5
2054
2055{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2056See \`config.log' for more details." >&5
2057echo "$as_me: error: cannot compute suffix of object files: cannot compile
2058See \`config.log' for more details." >&2;}
2059   { (exit 1); exit 1; }; }
2060fi
2061
2062rm -f conftest.$ac_cv_objext conftest.$ac_ext
2063fi
2064echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2065echo "${ECHO_T}$ac_cv_objext" >&6
2066OBJEXT=$ac_cv_objext
2067ac_objext=$OBJEXT
2068# If we don't use `.F' as extension, the preprocessor is not run on the
2069# input file.  (Note that this only needs to work for GNU compilers.)
2070ac_save_ext=$ac_ext
2071ac_ext=F
2072echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
2073echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
2074if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2075  echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077  cat >conftest.$ac_ext <<_ACEOF
2078      program main
2079#ifndef __GNUC__
2080       choke me
2081#endif
2082
2083      end
2084_ACEOF
2085rm -f conftest.$ac_objext
2086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087  (eval $ac_compile) 2>conftest.er1
2088  ac_status=$?
2089  grep -v '^ *+' conftest.er1 >conftest.err
2090  rm -f conftest.er1
2091  cat conftest.err >&5
2092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093  (exit $ac_status); } &&
2094         { ac_try='test -z "$ac_f77_werror_flag"
2095                         || test ! -s conftest.err'
2096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097  (eval $ac_try) 2>&5
2098  ac_status=$?
2099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100  (exit $ac_status); }; } &&
2101         { ac_try='test -s conftest.$ac_objext'
2102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103  (eval $ac_try) 2>&5
2104  ac_status=$?
2105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106  (exit $ac_status); }; }; then
2107  ac_compiler_gnu=yes
2108else
2109  echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112ac_compiler_gnu=no
2113fi
2114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2115ac_cv_f77_compiler_gnu=$ac_compiler_gnu
2116
2117fi
2118echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
2119echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
2120ac_ext=$ac_save_ext
2121ac_test_FFLAGS=${FFLAGS+set}
2122ac_save_FFLAGS=$FFLAGS
2123FFLAGS=
2124echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
2125echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
2126if test "${ac_cv_prog_f77_g+set}" = set; then
2127  echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129  FFLAGS=-g
2130cat >conftest.$ac_ext <<_ACEOF
2131      program main
2132
2133      end
2134_ACEOF
2135rm -f conftest.$ac_objext
2136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137  (eval $ac_compile) 2>conftest.er1
2138  ac_status=$?
2139  grep -v '^ *+' conftest.er1 >conftest.err
2140  rm -f conftest.er1
2141  cat conftest.err >&5
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); } &&
2144         { ac_try='test -z "$ac_f77_werror_flag"
2145                         || test ! -s conftest.err'
2146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147  (eval $ac_try) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }; } &&
2151         { ac_try='test -s conftest.$ac_objext'
2152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153  (eval $ac_try) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; }; then
2157  ac_cv_prog_f77_g=yes
2158else
2159  echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162ac_cv_prog_f77_g=no
2163fi
2164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2165
2166fi
2167echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
2168echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
2169if test "$ac_test_FFLAGS" = set; then
2170  FFLAGS=$ac_save_FFLAGS
2171elif test $ac_cv_prog_f77_g = yes; then
2172  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2173    FFLAGS="-g -O2"
2174  else
2175    FFLAGS="-g"
2176  fi
2177else
2178  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2179    FFLAGS="-O2"
2180  else
2181    FFLAGS=
2182  fi
2183fi
2184
2185G77=`test $ac_compiler_gnu = yes && echo yes`
2186ac_ext=f
2187ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2188ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2190
2191FFLAGS="$save_fflags"
2192
2193# Check if a project specific FFLAGS variable has been set
2194if test x$COIN_PRJCT != x; then
2195  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
2196  if test x$coin_tmp = xset; then
2197    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
2198  fi
2199fi
2200
2201if test x"$FFLAGS" = x; then
2202
2203  coin_add_fflags=
2204  coin_opt_fflags=
2205  coin_dbg_fflags=
2206  coin_warn_fflags=
2207
2208  if test "$G77" = "yes"; then
2209    coin_opt_fflags="-O3 -fomit-frame-pointer"
2210    coin_add_fflags="-pipe"
2211    coin_dbg_fflags="-g"
2212    case $build in
2213      *-cygwin*)
2214        FFLAGS="-mno-cygwin"
2215        cat >conftest.$ac_ext <<_ACEOF
2216      program main
2217      write(*,*) 'Hello world'
2218      end
2219_ACEOF
2220rm -f conftest.$ac_objext conftest$ac_exeext
2221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2222  (eval $ac_link) 2>conftest.er1
2223  ac_status=$?
2224  grep -v '^ *+' conftest.er1 >conftest.err
2225  rm -f conftest.er1
2226  cat conftest.err >&5
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); } &&
2229         { ac_try='test -z "$ac_f77_werror_flag"
2230                         || test ! -s conftest.err'
2231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232  (eval $ac_try) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; } &&
2236         { ac_try='test -s conftest$ac_exeext'
2237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238  (eval $ac_try) 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); }; }; then
2242  coin_add_fflags="-mno-cygwin $coin_add_fflags"
2243else
2244  echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247fi
2248rm -f conftest.err conftest.$ac_objext \
2249      conftest$ac_exeext conftest.$ac_ext
2250        FFLAGS=
2251      ;;
2252    esac
2253  else
2254    case $build in
2255      *-cygwin* | *-mingw*)
2256        case $F77 in
2257          ifort* | */ifort*)
2258            coin_opt_fflags='-O3'
2259            coin_add_fflags='-nologo -MT'
2260            coin_dbg_fflags='-debug'
2261          ;;
2262        esac
2263        ;;
2264      *-linux-*)
2265        case $F77 in
2266          ifc* | */ifc* | ifort* | */ifort*)
2267            coin_opt_fflags="-O3 -ip"
2268            coin_add_fflags="-cm -w90 -w95"
2269            coin_dbg_fflags="-g -CA -CB -CS"
2270            # Check if -i_dynamic is necessary (for new glibc library)
2271            FFLAGS=
2272            cat >conftest.$ac_ext <<_ACEOF
2273      program main
2274      write(*,*) 'Hello world'
2275      end
2276_ACEOF
2277rm -f conftest.$ac_objext conftest$ac_exeext
2278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2279  (eval $ac_link) 2>conftest.er1
2280  ac_status=$?
2281  grep -v '^ *+' conftest.er1 >conftest.err
2282  rm -f conftest.er1
2283  cat conftest.err >&5
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); } &&
2286         { ac_try='test -z "$ac_f77_werror_flag"
2287                         || test ! -s conftest.err'
2288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289  (eval $ac_try) 2>&5
2290  ac_status=$?
2291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292  (exit $ac_status); }; } &&
2293         { ac_try='test -s conftest$ac_exeext'
2294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295  (eval $ac_try) 2>&5
2296  ac_status=$?
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); }; }; then
2299  :
2300else
2301  echo "$as_me: failed program was:" >&5
2302sed 's/^/| /' conftest.$ac_ext >&5
2303
2304coin_add_fflags="-i_dynamic $coin_add_fflags"
2305fi
2306rm -f conftest.err conftest.$ac_objext \
2307      conftest$ac_exeext conftest.$ac_ext
2308            ;;
2309          pgf77* | */pgf77* | pgf90* | */pgf90*)
2310            coin_opt_fflags="-fast"
2311            coin_add_fflags="-Kieee -pc 64"
2312            coin_dbg_fflags="-g"
2313          ;;
2314        esac
2315        ;;
2316      *-ibm-*)
2317        case "$F77" in
2318          xlf* | */xlf* | mpxlf* | */mpxlf* )
2319            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2320            coin_add_fflags="-bmaxdata:0x80000000"
2321            coin_dbg_fflags="-g -C"
2322            ;;
2323        esac
2324        ;;
2325      *-hp-*)
2326        coin_opt_fflags="+O3"
2327        coin_add_fflags="+U77"
2328        coin_dbg_fflags="-C -g"
2329        ;;
2330      *-sun-*)
2331        coin_opt_fflags="-O4"
2332        coin_dbg_fflags="-g"
2333        ;;
2334      *-sgi-*)
2335        coin_opt_fflags="-O5 -OPT:Olimit=0"
2336        coin_dbg_fflags="-g"
2337        ;;
2338    esac
2339  fi
2340
2341  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
2342    coin_dbg_fflags="-g"
2343  fi
2344
2345  if test -z "$coin_opt_fflags"; then
2346    # Try if -O option works if nothing else is set
2347    FFLAGS=-O
2348    cat >conftest.$ac_ext <<_ACEOF
2349      program main
2350      integer i
2351      end
2352_ACEOF
2353rm -f conftest.$ac_objext conftest$ac_exeext
2354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2355  (eval $ac_link) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362         { ac_try='test -z "$ac_f77_werror_flag"
2363                         || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369         { ac_try='test -s conftest$ac_exeext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  coin_opt_fflags="-O"
2376else
2377  echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380fi
2381rm -f conftest.err conftest.$ac_objext \
2382      conftest$ac_exeext conftest.$ac_ext
2383  fi
2384
2385  if test x${DBG_FFLAGS+set} != xset; then
2386    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
2387  fi
2388  if test x${OPT_FFLAGS+set} != xset; then
2389    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
2390  fi
2391
2392  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
2393  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
2394
2395  if test "$coin_debug_compile" = "true"; then
2396    FFLAGS="$DBG_FFLAGS"
2397  else
2398    FFLAGS="$OPT_FFLAGS"
2399  fi
2400else
2401  FFLAGS="$FFLAGS $ADD_FFLAGS"
2402  if test x${DBG_FFLAGS+set} != xset; then
2403    DBG_FFLAGS="$FFLAGS"
2404  fi
2405  if test x${OPT_FFLAGS+set} != xset; then
2406    OPT_FFLAGS="$FFLAGS"
2407  fi
2408fi
2409
2410# Try if FFLAGS works
2411cat >conftest.$ac_ext <<_ACEOF
2412      program main
2413      integer i
2414      end
2415_ACEOF
2416rm -f conftest.$ac_objext conftest$ac_exeext
2417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2418  (eval $ac_link) 2>conftest.er1
2419  ac_status=$?
2420  grep -v '^ *+' conftest.er1 >conftest.err
2421  rm -f conftest.er1
2422  cat conftest.err >&5
2423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424  (exit $ac_status); } &&
2425         { ac_try='test -z "$ac_f77_werror_flag"
2426                         || test ! -s conftest.err'
2427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428  (eval $ac_try) 2>&5
2429  ac_status=$?
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); }; } &&
2432         { ac_try='test -s conftest$ac_exeext'
2433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434  (eval $ac_try) 2>&5
2435  ac_status=$?
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); }; }; then
2438  :
2439else
2440  echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443FFLAGS=
2444fi
2445rm -f conftest.err conftest.$ac_objext \
2446      conftest$ac_exeext conftest.$ac_ext
2447if test -z "$FFLAGS"; then
2448  { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
2449echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
2450  FFLAGS='-O'
2451  cat >conftest.$ac_ext <<_ACEOF
2452      program main
2453      integer i
2454      end
2455_ACEOF
2456rm -f conftest.$ac_objext conftest$ac_exeext
2457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2458  (eval $ac_link) 2>conftest.er1
2459  ac_status=$?
2460  grep -v '^ *+' conftest.er1 >conftest.err
2461  rm -f conftest.er1
2462  cat conftest.err >&5
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); } &&
2465         { ac_try='test -z "$ac_f77_werror_flag"
2466                         || test ! -s conftest.err'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; } &&
2472         { ac_try='test -s conftest$ac_exeext'
2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474  (eval $ac_try) 2>&5
2475  ac_status=$?
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); }; }; then
2478  :
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483FFLAGS=
2484fi
2485rm -f conftest.err conftest.$ac_objext \
2486      conftest$ac_exeext conftest.$ac_ext
2487  if test -z "$FFLAGS"; then
2488    { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
2489echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
2490  fi
2491fi
2492
2493{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
2494echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
2495
2496
2497if test x"$MPIF77" = x; then :; else
2498  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
2499echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
2500  F77="$MPIF77"
2501fi
2502
2503case "$F77" in
2504  ifort*)
2505    case $build in
2506  *-mingw*)
2507    if test "${LD+set}" = set; then :; else
2508      LD=link
2509    fi
2510    ;;
2511esac
2512
2513    ;;
2514esac
2515
2516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
2523
2524# Initialize autotools
2525
2526# On Cygwin, building DLLs doesn't work
2527case $build in
2528  *-cygwin*)
2529    coin_disable_shared=yes
2530    platform=Cygwin
2531  ;;
2532  *-mingw*)
2533    coin_disable_shared=yes
2534    platform="Msys"
2535#    case "$CXX" in
2536#      cl*)
2537#        coin_disable_shared=yes
2538#        platform="Msys with cl"
2539#    ;;
2540#    esac
2541  ;;
2542esac
2543if test x"$coin_disable_shared" = xyes; then
2544  if test x"$enable_shared" = xyes; then
2545    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
2546echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
2547  fi
2548  enable_shared=no
2549fi
2550# By default, we only want the shared objects to be compiled
2551# Check whether --enable-static or --disable-static was given.
2552if test "${enable_static+set}" = set; then
2553  enableval="$enable_static"
2554  p=${PACKAGE-default}
2555    case $enableval in
2556    yes) enable_static=yes ;;
2557    no) enable_static=no ;;
2558    *)
2559     enable_static=no
2560      # Look at the argument we got.  We use all the common list separators.
2561      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2562      for pkg in $enableval; do
2563        IFS="$lt_save_ifs"
2564        if test "X$pkg" = "X$p"; then
2565          enable_static=yes
2566        fi
2567      done
2568      IFS="$lt_save_ifs"
2569      ;;
2570    esac
2571else
2572  enable_static=no
2573fi;
2574
2575
2576
2577echo "$as_me:$LINENO: checking for egrep" >&5
2578echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2579if test "${ac_cv_prog_egrep+set}" = set; then
2580  echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2583    then ac_cv_prog_egrep='grep -E'
2584    else ac_cv_prog_egrep='egrep'
2585    fi
2586fi
2587echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2588echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2589 EGREP=$ac_cv_prog_egrep
2590
2591
2592am__api_version="1.9"
2593# Find a good install program.  We prefer a C program (faster),
2594# so one script is as good as another.  But avoid the broken or
2595# incompatible versions:
2596# SysV /etc/install, /usr/sbin/install
2597# SunOS /usr/etc/install
2598# IRIX /sbin/install
2599# AIX /bin/install
2600# AmigaOS /C/install, which installs bootblocks on floppy discs
2601# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2602# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2603# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2604# OS/2's system install, which has a completely different semantic
2605# ./install, which can be erroneously created by make from ./install.sh.
2606echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2607echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2608if test -z "$INSTALL"; then
2609if test "${ac_cv_path_install+set}" = set; then
2610  echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615  IFS=$as_save_IFS
2616  test -z "$as_dir" && as_dir=.
2617  # Account for people who put trailing slashes in PATH elements.
2618case $as_dir/ in
2619  ./ | .// | /cC/* | \
2620  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2621  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2622  /usr/ucb/* ) ;;
2623  *)
2624    # OSF1 and SCO ODT 3.0 have their own names for install.
2625    # Don't use installbsd from OSF since it installs stuff as root
2626    # by default.
2627    for ac_prog in ginstall scoinst install; do
2628      for ac_exec_ext in '' $ac_executable_extensions; do
2629        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2630          if test $ac_prog = install &&
2631            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632            # AIX install.  It has an incompatible calling convention.
2633            :
2634          elif test $ac_prog = install &&
2635            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2636            # program-specific install script used by HP pwplus--don't use.
2637            :
2638          else
2639            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2640            break 3
2641          fi
2642        fi
2643      done
2644    done
2645    ;;
2646esac
2647done
2648
2649
2650fi
2651  if test "${ac_cv_path_install+set}" = set; then
2652    INSTALL=$ac_cv_path_install
2653  else
2654    # As a last resort, use the slow shell script.  We don't cache a
2655    # path for INSTALL within a source directory, because that will
2656    # break other packages using the cache if that directory is
2657    # removed, or if the path is relative.
2658    INSTALL=$ac_install_sh
2659  fi
2660fi
2661echo "$as_me:$LINENO: result: $INSTALL" >&5
2662echo "${ECHO_T}$INSTALL" >&6
2663
2664# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2665# It thinks the first close brace ends the variable substitution.
2666test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2667
2668test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2669
2670test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2671
2672echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2673echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2674# Just in case
2675sleep 1
2676echo timestamp > conftest.file
2677# Do `set' in a subshell so we don't clobber the current shell's
2678# arguments.  Must try -L first in case configure is actually a
2679# symlink; some systems play weird games with the mod time of symlinks
2680# (eg FreeBSD returns the mod time of the symlink's containing
2681# directory).
2682if (
2683   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2684   if test "$*" = "X"; then
2685      # -L didn't work.
2686      set X `ls -t $srcdir/configure conftest.file`
2687   fi
2688   rm -f conftest.file
2689   if test "$*" != "X $srcdir/configure conftest.file" \
2690      && test "$*" != "X conftest.file $srcdir/configure"; then
2691
2692      # If neither matched, then we have a broken ls.  This can happen
2693      # if, for instance, CONFIG_SHELL is bash and it inherits a
2694      # broken ls alias from the environment.  This has actually
2695      # happened.  Such a system could not be considered "sane".
2696      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2697alias in your environment" >&5
2698echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2699alias in your environment" >&2;}
2700   { (exit 1); exit 1; }; }
2701   fi
2702
2703   test "$2" = conftest.file
2704   )
2705then
2706   # Ok.
2707   :
2708else
2709   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2710Check your system clock" >&5
2711echo "$as_me: error: newly created file is older than distributed files!
2712Check your system clock" >&2;}
2713   { (exit 1); exit 1; }; }
2714fi
2715echo "$as_me:$LINENO: result: yes" >&5
2716echo "${ECHO_T}yes" >&6
2717test "$program_prefix" != NONE &&
2718  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2719# Use a double $ so make ignores it.
2720test "$program_suffix" != NONE &&
2721  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2722# Double any \ or $.  echo might interpret backslashes.
2723# By default was `s,x,x', remove it if useless.
2724cat <<\_ACEOF >conftest.sed
2725s/[\\$]/&&/g;s/;s,x,x,$//
2726_ACEOF
2727program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2728rm conftest.sed
2729
2730# expand $ac_aux_dir to an absolute path
2731am_aux_dir=`cd $ac_aux_dir && pwd`
2732
2733test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2734# Use eval to expand $SHELL
2735if eval "$MISSING --run true"; then
2736  am_missing_run="$MISSING --run "
2737else
2738  am_missing_run=
2739  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2740echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2741fi
2742
2743if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2744  # We used to keeping the `.' as first argument, in order to
2745  # allow $(mkdir_p) to be used without argument.  As in
2746  #   $(mkdir_p) $(somedir)
2747  # where $(somedir) is conditionally defined.  However this is wrong
2748  # for two reasons:
2749  #  1. if the package is installed by a user who cannot write `.'
2750  #     make install will fail,
2751  #  2. the above comment should most certainly read
2752  #     $(mkdir_p) $(DESTDIR)$(somedir)
2753  #     so it does not work when $(somedir) is undefined and
2754  #     $(DESTDIR) is not.
2755  #  To support the latter case, we have to write
2756  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2757  #  so the `.' trick is pointless.
2758  mkdir_p='mkdir -p --'
2759else
2760  # On NextStep and OpenStep, the `mkdir' command does not
2761  # recognize any option.  It will interpret all options as
2762  # directories to create, and then abort because `.' already
2763  # exists.
2764  for d in ./-p ./--version;
2765  do
2766    test -d $d && rmdir $d
2767  done
2768  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2769  if test -f "$ac_aux_dir/mkinstalldirs"; then
2770    mkdir_p='$(mkinstalldirs)'
2771  else
2772    mkdir_p='$(install_sh) -d'
2773  fi
2774fi
2775
2776for ac_prog in gawk mawk nawk awk
2777do
2778  # Extract the first word of "$ac_prog", so it can be a program name with args.
2779set dummy $ac_prog; ac_word=$2
2780echo "$as_me:$LINENO: checking for $ac_word" >&5
2781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2782if test "${ac_cv_prog_AWK+set}" = set; then
2783  echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785  if test -n "$AWK"; then
2786  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  test -z "$as_dir" && as_dir=.
2793  for ac_exec_ext in '' $ac_executable_extensions; do
2794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795    ac_cv_prog_AWK="$ac_prog"
2796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797    break 2
2798  fi
2799done
2800done
2801
2802fi
2803fi
2804AWK=$ac_cv_prog_AWK
2805if test -n "$AWK"; then
2806  echo "$as_me:$LINENO: result: $AWK" >&5
2807echo "${ECHO_T}$AWK" >&6
2808else
2809  echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
2811fi
2812
2813  test -n "$AWK" && break
2814done
2815
2816echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2817echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2818set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2819if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2820  echo $ECHO_N "(cached) $ECHO_C" >&6
2821else
2822  cat >conftest.make <<\_ACEOF
2823all:
2824        @echo 'ac_maketemp="$(MAKE)"'
2825_ACEOF
2826# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2827eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2828if test -n "$ac_maketemp"; then
2829  eval ac_cv_prog_make_${ac_make}_set=yes
2830else
2831  eval ac_cv_prog_make_${ac_make}_set=no
2832fi
2833rm -f conftest.make
2834fi
2835if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2836  echo "$as_me:$LINENO: result: yes" >&5
2837echo "${ECHO_T}yes" >&6
2838  SET_MAKE=
2839else
2840  echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6
2842  SET_MAKE="MAKE=${MAKE-make}"
2843fi
2844
2845rm -rf .tst 2>/dev/null
2846mkdir .tst 2>/dev/null
2847if test -d .tst; then
2848  am__leading_dot=.
2849else
2850  am__leading_dot=_
2851fi
2852rmdir .tst 2>/dev/null
2853
2854DEPDIR="${am__leading_dot}deps"
2855
2856          ac_config_commands="$ac_config_commands depfiles"
2857
2858
2859am_make=${MAKE-make}
2860cat > confinc << 'END'
2861am__doit:
2862        @echo done
2863.PHONY: am__doit
2864END
2865# If we don't find an include directive, just comment out the code.
2866echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2867echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2868am__include="#"
2869am__quote=
2870_am_result=none
2871# First try GNU make style include.
2872echo "include confinc" > confmf
2873# We grep out `Entering directory' and `Leaving directory'
2874# messages which can occur if `w' ends up in MAKEFLAGS.
2875# In particular we don't look at `^make:' because GNU make might
2876# be invoked under some other name (usually "gmake"), in which
2877# case it prints its new name instead of `make'.
2878if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2879   am__include=include
2880   am__quote=
2881   _am_result=GNU
2882fi
2883# Now try BSD make style include.
2884if test "$am__include" = "#"; then
2885   echo '.include "confinc"' > confmf
2886   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2887      am__include=.include
2888      am__quote="\""
2889      _am_result=BSD
2890   fi
2891fi
2892
2893
2894echo "$as_me:$LINENO: result: $_am_result" >&5
2895echo "${ECHO_T}$_am_result" >&6
2896rm -f confinc confmf
2897
2898# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2899if test "${enable_dependency_tracking+set}" = set; then
2900  enableval="$enable_dependency_tracking"
2901
2902fi;
2903if test "x$enable_dependency_tracking" != xno; then
2904  am_depcomp="$ac_aux_dir/depcomp"
2905  AMDEPBACKSLASH='\'
2906fi
2907
2908
2909if test "x$enable_dependency_tracking" != xno; then
2910  AMDEP_TRUE=
2911  AMDEP_FALSE='#'
2912else
2913  AMDEP_TRUE='#'
2914  AMDEP_FALSE=
2915fi
2916
2917
2918
2919ac_ext=c
2920ac_cpp='$CPP $CPPFLAGS'
2921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924if test -n "$ac_tool_prefix"; then
2925  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2926set dummy ${ac_tool_prefix}gcc; ac_word=$2
2927echo "$as_me:$LINENO: checking for $ac_word" >&5
2928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929if test "${ac_cv_prog_CC+set}" = set; then
2930  echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932  if test -n "$CC"; then
2933  ac_cv_prog_CC="$CC" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938  IFS=$as_save_IFS
2939  test -z "$as_dir" && as_dir=.
2940  for ac_exec_ext in '' $ac_executable_extensions; do
2941  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944    break 2
2945  fi
2946done
2947done
2948
2949fi
2950fi
2951CC=$ac_cv_prog_CC
2952if test -n "$CC"; then
2953  echo "$as_me:$LINENO: result: $CC" >&5
2954echo "${ECHO_T}$CC" >&6
2955else
2956  echo "$as_me:$LINENO: result: no" >&5
2957echo "${ECHO_T}no" >&6
2958fi
2959
2960fi
2961if test -z "$ac_cv_prog_CC"; then
2962  ac_ct_CC=$CC
2963  # Extract the first word of "gcc", so it can be a program name with args.
2964set dummy gcc; ac_word=$2
2965echo "$as_me:$LINENO: checking for $ac_word" >&5
2966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2968  echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970  if test -n "$ac_ct_CC"; then
2971  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978  for ac_exec_ext in '' $ac_executable_extensions; do
2979  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980    ac_cv_prog_ac_ct_CC="gcc"
2981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985done
2986
2987fi
2988fi
2989ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990if test -n "$ac_ct_CC"; then
2991  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2992echo "${ECHO_T}$ac_ct_CC" >&6
2993else
2994  echo "$as_me:$LINENO: result: no" >&5
2995echo "${ECHO_T}no" >&6
2996fi
2997
2998  CC=$ac_ct_CC
2999else
3000  CC="$ac_cv_prog_CC"
3001fi
3002
3003if test -z "$CC"; then
3004  if test -n "$ac_tool_prefix"; then
3005  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3006set dummy ${ac_tool_prefix}cc; ac_word=$2
3007echo "$as_me:$LINENO: checking for $ac_word" >&5
3008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3009if test "${ac_cv_prog_CC+set}" = set; then
3010  echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012  if test -n "$CC"; then
3013  ac_cv_prog_CC="$CC" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018  IFS=$as_save_IFS
3019  test -z "$as_dir" && as_dir=.
3020  for ac_exec_ext in '' $ac_executable_extensions; do
3021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022    ac_cv_prog_CC="${ac_tool_prefix}cc"
3023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024    break 2
3025  fi
3026done
3027done
3028
3029fi
3030fi
3031CC=$ac_cv_prog_CC
3032if test -n "$CC"; then
3033  echo "$as_me:$LINENO: result: $CC" >&5
3034echo "${ECHO_T}$CC" >&6
3035else
3036  echo "$as_me:$LINENO: result: no" >&5
3037echo "${ECHO_T}no" >&6
3038fi
3039
3040fi
3041if test -z "$ac_cv_prog_CC"; then
3042  ac_ct_CC=$CC
3043  # Extract the first word of "cc", so it can be a program name with args.
3044set dummy cc; ac_word=$2
3045echo "$as_me:$LINENO: checking for $ac_word" >&5
3046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3048  echo $ECHO_N "(cached) $ECHO_C" >&6
3049else
3050  if test -n "$ac_ct_CC"; then
3051  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052else
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056  IFS=$as_save_IFS
3057  test -z "$as_dir" && as_dir=.
3058  for ac_exec_ext in '' $ac_executable_extensions; do
3059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060    ac_cv_prog_ac_ct_CC="cc"
3061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062    break 2
3063  fi
3064done
3065done
3066
3067fi
3068fi
3069ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070if test -n "$ac_ct_CC"; then
3071  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072echo "${ECHO_T}$ac_ct_CC" >&6
3073else
3074  echo "$as_me:$LINENO: result: no" >&5
3075echo "${ECHO_T}no" >&6
3076fi
3077
3078  CC=$ac_ct_CC
3079else
3080  CC="$ac_cv_prog_CC"
3081fi
3082
3083fi
3084if test -z "$CC"; then
3085  # Extract the first word of "cc", so it can be a program name with args.
3086set dummy cc; ac_word=$2
3087echo "$as_me:$LINENO: checking for $ac_word" >&5
3088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3089if test "${ac_cv_prog_CC+set}" = set; then
3090  echo $ECHO_N "(cached) $ECHO_C" >&6
3091else
3092  if test -n "$CC"; then
3093  ac_cv_prog_CC="$CC" # Let the user override the test.
3094else
3095  ac_prog_rejected=no
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099  IFS=$as_save_IFS
3100  test -z "$as_dir" && as_dir=.
3101  for ac_exec_ext in '' $ac_executable_extensions; do
3102  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3104       ac_prog_rejected=yes
3105       continue
3106     fi
3107    ac_cv_prog_CC="cc"
3108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3109    break 2
3110  fi
3111done
3112done
3113
3114if test $ac_prog_rejected = yes; then
3115  # We found a bogon in the path, so make sure we never use it.
3116  set dummy $ac_cv_prog_CC
3117  shift
3118  if test $# != 0; then
3119    # We chose a different compiler from the bogus one.
3120    # However, it has the same basename, so the bogon will be chosen
3121    # first if we set CC to just the basename; use the full file name.
3122    shift
3123    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3124  fi
3125fi
3126fi
3127fi
3128CC=$ac_cv_prog_CC
3129if test -n "$CC"; then
3130  echo "$as_me:$LINENO: result: $CC" >&5
3131echo "${ECHO_T}$CC" >&6
3132else
3133  echo "$as_me:$LINENO: result: no" >&5
3134echo "${ECHO_T}no" >&6
3135fi
3136
3137fi
3138if test -z "$CC"; then
3139  if test -n "$ac_tool_prefix"; then
3140  for ac_prog in cl
3141  do
3142    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3143set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3144echo "$as_me:$LINENO: checking for $ac_word" >&5
3145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3146if test "${ac_cv_prog_CC+set}" = set; then
3147  echo $ECHO_N "(cached) $ECHO_C" >&6
3148else
3149  if test -n "$CC"; then
3150  ac_cv_prog_CC="$CC" # Let the user override the test.
3151else
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155  IFS=$as_save_IFS
3156  test -z "$as_dir" && as_dir=.
3157  for ac_exec_ext in '' $ac_executable_extensions; do
3158  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161    break 2
3162  fi
3163done
3164done
3165
3166fi
3167fi
3168CC=$ac_cv_prog_CC
3169if test -n "$CC"; then
3170  echo "$as_me:$LINENO: result: $CC" >&5
3171echo "${ECHO_T}$CC" >&6
3172else
3173  echo "$as_me:$LINENO: result: no" >&5
3174echo "${ECHO_T}no" >&6
3175fi
3176
3177    test -n "$CC" && break
3178  done
3179fi
3180if test -z "$CC"; then
3181  ac_ct_CC=$CC
3182  for ac_prog in cl
3183do
3184  # Extract the first word of "$ac_prog", so it can be a program name with args.
3185set dummy $ac_prog; ac_word=$2
3186echo "$as_me:$LINENO: checking for $ac_word" >&5
3187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3188if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3189  echo $ECHO_N "(cached) $ECHO_C" >&6
3190else
3191  if test -n "$ac_ct_CC"; then
3192  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193else
3194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195for as_dir in $PATH
3196do
3197  IFS=$as_save_IFS
3198  test -z "$as_dir" && as_dir=.
3199  for ac_exec_ext in '' $ac_executable_extensions; do
3200  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201    ac_cv_prog_ac_ct_CC="$ac_prog"
3202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3203    break 2
3204  fi
3205done
3206done
3207
3208fi
3209fi
3210ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211if test -n "$ac_ct_CC"; then
3212  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3213echo "${ECHO_T}$ac_ct_CC" >&6
3214else
3215  echo "$as_me:$LINENO: result: no" >&5
3216echo "${ECHO_T}no" >&6
3217fi
3218
3219  test -n "$ac_ct_CC" && break
3220done
3221
3222  CC=$ac_ct_CC
3223fi
3224
3225fi
3226
3227
3228test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3229See \`config.log' for more details." >&5
3230echo "$as_me: error: no acceptable C compiler found in \$PATH
3231See \`config.log' for more details." >&2;}
3232   { (exit 1); exit 1; }; }
3233
3234# Provide some information about the compiler.
3235echo "$as_me:$LINENO:" \
3236     "checking for C compiler version" >&5
3237ac_compiler=`set X $ac_compile; echo $2`
3238{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3239  (eval $ac_compiler --version </dev/null >&5) 2>&5
3240  ac_status=$?
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); }
3243{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3244  (eval $ac_compiler -v </dev/null >&5) 2>&5
3245  ac_status=$?
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); }
3248{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3249  (eval $ac_compiler -V </dev/null >&5) 2>&5
3250  ac_status=$?
3251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252  (exit $ac_status); }
3253
3254echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3255echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3256if test "${ac_cv_c_compiler_gnu+set}" = set; then
3257  echo $ECHO_N "(cached) $ECHO_C" >&6
3258else
3259  cat >conftest.$ac_ext <<_ACEOF
3260/* confdefs.h.  */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h.  */
3265
3266int
3267main ()
3268{
3269#ifndef __GNUC__
3270       choke me
3271#endif
3272
3273  ;
3274  return 0;
3275}
3276_ACEOF
3277rm -f conftest.$ac_objext
3278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279  (eval $ac_compile) 2>conftest.er1
3280  ac_status=$?
3281  grep -v '^ *+' conftest.er1 >conftest.err
3282  rm -f conftest.er1
3283  cat conftest.err >&5
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); } &&
3286         { ac_try='test -z "$ac_c_werror_flag"
3287                         || test ! -s conftest.err'
3288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289  (eval $ac_try) 2>&5
3290  ac_status=$?
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); }; } &&
3293         { ac_try='test -s conftest.$ac_objext'
3294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295  (eval $ac_try) 2>&5
3296  ac_status=$?
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); }; }; then
3299  ac_compiler_gnu=yes
3300else
3301  echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304ac_compiler_gnu=no
3305fi
3306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308
3309fi
3310echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3312GCC=`test $ac_compiler_gnu = yes && echo yes`
3313ac_test_CFLAGS=${CFLAGS+set}
3314ac_save_CFLAGS=$CFLAGS
3315CFLAGS="-g"
3316echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3318if test "${ac_cv_prog_cc_g+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  cat >conftest.$ac_ext <<_ACEOF
3322/* confdefs.h.  */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h.  */
3327
3328int
3329main ()
3330{
3331
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336rm -f conftest.$ac_objext
3337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338  (eval $ac_compile) 2>conftest.er1
3339  ac_status=$?
3340  grep -v '^ *+' conftest.er1 >conftest.err
3341  rm -f conftest.er1
3342  cat conftest.err >&5
3343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344  (exit $ac_status); } &&
3345         { ac_try='test -z "$ac_c_werror_flag"
3346                         || test ! -s conftest.err'
3347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348  (eval $ac_try) 2>&5
3349  ac_status=$?
3350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351  (exit $ac_status); }; } &&
3352         { ac_try='test -s conftest.$ac_objext'
3353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354  (eval $ac_try) 2>&5
3355  ac_status=$?
3356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357  (exit $ac_status); }; }; then
3358  ac_cv_prog_cc_g=yes
3359else
3360  echo "$as_me: failed program was:" >&5
3361sed 's/^/| /' conftest.$ac_ext >&5
3362
3363ac_cv_prog_cc_g=no
3364fi
3365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3366fi
3367echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3369if test "$ac_test_CFLAGS" = set; then
3370  CFLAGS=$ac_save_CFLAGS
3371elif test $ac_cv_prog_cc_g = yes; then
3372  if test "$GCC" = yes; then
3373    CFLAGS="-g -O2"
3374  else
3375    CFLAGS="-g"
3376  fi
3377else
3378  if test "$GCC" = yes; then
3379    CFLAGS="-O2"
3380  else
3381    CFLAGS=
3382  fi
3383fi
3384echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3385echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3386if test "${ac_cv_prog_cc_stdc+set}" = set; then
3387  echo $ECHO_N "(cached) $ECHO_C" >&6
3388else
3389  ac_cv_prog_cc_stdc=no
3390ac_save_CC=$CC
3391cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h.  */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h.  */
3397#include <stdarg.h>
3398#include <stdio.h>
3399#include <sys/types.h>
3400#include <sys/stat.h>
3401/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3402struct buf { int x; };
3403FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404static char *e (p, i)
3405     char **p;
3406     int i;
3407{
3408  return p[i];
3409}
3410static char *f (char * (*g) (char **, int), char **p, ...)
3411{
3412  char *s;
3413  va_list v;
3414  va_start (v,p);
3415  s = g (p, va_arg (v,int));
3416  va_end (v);
3417  return s;
3418}
3419
3420/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3421   function prototypes and stuff, but not '\xHH' hex character constants.
3422   These don't provoke an error unfortunately, instead are silently treated
3423   as 'x'.  The following induces an error, until -std1 is added to get
3424   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3425   array size at least.  It's necessary to write '\x00'==0 to get something
3426   that's true only with -std1.  */
3427int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428
3429int test (int i, double x);
3430struct s1 {int (*f) (int a);};
3431struct s2 {int (*f) (double a);};
3432int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433int argc;
3434char **argv;
3435int
3436main ()
3437{
3438return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443# Don't try gcc -ansi; that turns off useful extensions and
3444# breaks some systems' header files.
3445# AIX                   -qlanglvl=ansi
3446# Ultrix and OSF/1      -std1
3447# HP-UX 10.20 and later -Ae
3448# HP-UX older versions  -Aa -D_HPUX_SOURCE
3449# SVR4                  -Xc -D__EXTENSIONS__
3450for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3451do
3452  CC="$ac_save_CC $ac_arg"
3453  rm -f conftest.$ac_objext
3454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455  (eval $ac_compile) 2>conftest.er1
3456  ac_status=$?
3457  grep -v '^ *+' conftest.er1 >conftest.err
3458  rm -f conftest.er1
3459  cat conftest.err >&5
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); } &&
3462         { ac_try='test -z "$ac_c_werror_flag"
3463                         || test ! -s conftest.err'
3464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465  (eval $ac_try) 2>&5
3466  ac_status=$?
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); }; } &&
3469         { ac_try='test -s conftest.$ac_objext'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; }; then
3475  ac_cv_prog_cc_stdc=$ac_arg
3476break
3477else
3478  echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481fi
3482rm -f conftest.err conftest.$ac_objext
3483done
3484rm -f conftest.$ac_ext conftest.$ac_objext
3485CC=$ac_save_CC
3486
3487fi
3488
3489case "x$ac_cv_prog_cc_stdc" in
3490  x|xno)
3491    echo "$as_me:$LINENO: result: none needed" >&5
3492echo "${ECHO_T}none needed" >&6 ;;
3493  *)
3494    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3495echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3496    CC="$CC $ac_cv_prog_cc_stdc" ;;
3497esac
3498
3499# Some people use a C++ compiler to compile C.  Since we use `exit',
3500# in C++ we need to declare it.  In case someone uses the same compiler
3501# for both compiling C and C++ we need to have the C++ compiler decide
3502# the declaration of exit, since it's the most demanding environment.
3503cat >conftest.$ac_ext <<_ACEOF
3504#ifndef __cplusplus
3505  choke me
3506#endif
3507_ACEOF
3508rm -f conftest.$ac_objext
3509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510  (eval $ac_compile) 2>conftest.er1
3511  ac_status=$?
3512  grep -v '^ *+' conftest.er1 >conftest.err
3513  rm -f conftest.er1
3514  cat conftest.err >&5
3515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); } &&
3517         { ac_try='test -z "$ac_c_werror_flag"
3518                         || test ! -s conftest.err'
3519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520  (eval $ac_try) 2>&5
3521  ac_status=$?
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); }; } &&
3524         { ac_try='test -s conftest.$ac_objext'
3525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526  (eval $ac_try) 2>&5
3527  ac_status=$?
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); }; }; then
3530  for ac_declaration in \
3531   '' \
3532   'extern "C" void std::exit (int) throw (); using std::exit;' \
3533   'extern "C" void std::exit (int); using std::exit;' \
3534   'extern "C" void exit (int) throw ();' \
3535   'extern "C" void exit (int);' \
3536   'void exit (int);'
3537do
3538  cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h.  */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h.  */
3544$ac_declaration
3545#include <stdlib.h>
3546int
3547main ()
3548{
3549exit (42);
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554rm -f conftest.$ac_objext
3555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556  (eval $ac_compile) 2>conftest.er1
3557  ac_status=$?
3558  grep -v '^ *+' conftest.er1 >conftest.err
3559  rm -f conftest.er1
3560  cat conftest.err >&5
3561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562  (exit $ac_status); } &&
3563         { ac_try='test -z "$ac_c_werror_flag"
3564                         || test ! -s conftest.err'
3565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566  (eval $ac_try) 2>&5
3567  ac_status=$?
3568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); }; } &&
3570         { ac_try='test -s conftest.$ac_objext'
3571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572  (eval $ac_try) 2>&5
3573  ac_status=$?
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); }; }; then
3576  :
3577else
3578  echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581continue
3582fi
3583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3584  cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h.  */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h.  */
3590$ac_declaration
3591int
3592main ()
3593{
3594exit (42);
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599rm -f conftest.$ac_objext
3600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601  (eval $ac_compile) 2>conftest.er1
3602  ac_status=$?
3603  grep -v '^ *+' conftest.er1 >conftest.err
3604  rm -f conftest.er1
3605  cat conftest.err >&5
3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); } &&
3608         { ac_try='test -z "$ac_c_werror_flag"
3609                         || test ! -s conftest.err'
3610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611  (eval $ac_try) 2>&5
3612  ac_status=$?
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); }; } &&
3615         { ac_try='test -s conftest.$ac_objext'
3616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617  (eval $ac_try) 2>&5
3618  ac_status=$?
3619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620  (exit $ac_status); }; }; then
3621  break
3622else
3623  echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626fi
3627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628done
3629rm -f conftest*
3630if test -n "$ac_declaration"; then
3631  echo '#ifdef __cplusplus' >>confdefs.h
3632  echo $ac_declaration      >>confdefs.h
3633  echo '#endif'             >>confdefs.h
3634fi
3635
3636else
3637  echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640fi
3641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3642ac_ext=c
3643ac_cpp='$CPP $CPPFLAGS'
3644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
3648depcc="$CC"   am_compiler_list=
3649
3650echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3651echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3652if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3653  echo $ECHO_N "(cached) $ECHO_C" >&6
3654else
3655  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3656  # We make a subdir and do the tests there.  Otherwise we can end up
3657  # making bogus files that we don't know about and never remove.  For
3658  # instance it was reported that on HP-UX the gcc test will end up
3659  # making a dummy file named `D' -- because `-MD' means `put the output
3660  # in D'.
3661  mkdir conftest.dir
3662  # Copy depcomp to subdir because otherwise we won't find it if we're
3663  # using a relative directory.
3664  cp "$am_depcomp" conftest.dir
3665  cd conftest.dir
3666  # We will build objects and dependencies in a subdirectory because
3667  # it helps to detect inapplicable dependency modes.  For instance
3668  # both Tru64's cc and ICC support -MD to output dependencies as a
3669  # side effect of compilation, but ICC will put the dependencies in
3670  # the current directory while Tru64 will put them in the object
3671  # directory.
3672  mkdir sub
3673
3674  am_cv_CC_dependencies_compiler_type=none
3675  if test "$am_compiler_list" = ""; then
3676     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3677  fi
3678  for depmode in $am_compiler_list; do
3679    # Setup a source with many dependencies, because some compilers
3680    # like to wrap large dependency lists on column 80 (with \), and
3681    # we should not choose a depcomp mode which is confused by this.
3682    #
3683    # We need to recreate these files for each test, as the compiler may
3684    # overwrite some of them when testing with obscure command lines.
3685    # This happens at least with the AIX C compiler.
3686    : > sub/conftest.c
3687    for i in 1 2 3 4 5 6; do
3688      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3689      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3690      # Solaris 8's {/usr,}/bin/sh.
3691      touch sub/conftst$i.h
3692    done
3693    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694
3695    case $depmode in
3696    nosideeffect)
3697      # after this tag, mechanisms are not by side-effect, so they'll
3698      # only be used when explicitly requested
3699      if test "x$enable_dependency_tracking" = xyes; then
3700        continue
3701      else
3702        break
3703      fi
3704      ;;
3705    none) break ;;
3706    esac
3707    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3708    # mode.  It turns out that the SunPro C++ compiler does not properly
3709    # handle `-M -o', and we need to detect this.
3710    if depmode=$depmode \
3711       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3712       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3713       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3714         >/dev/null 2>conftest.err &&
3715       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3716       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3717       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3718      # icc doesn't choke on unknown options, it will just issue warnings
3719      # or remarks (even with -Werror).  So we grep stderr for any message
3720      # that says an option was ignored or not supported.
3721      # When given -MP, icc 7.0 and 7.1 complain thusly:
3722      #   icc: Command line warning: ignoring option '-M'; no argument required
3723      # The diagnosis changed in icc 8.0:
3724      #   icc: Command line remark: option '-MP' not supported
3725      if (grep 'ignoring option' conftest.err ||
3726          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3727        am_cv_CC_dependencies_compiler_type=$depmode
3728        break
3729      fi
3730    fi
3731  done
3732
3733  cd ..
3734  rm -rf conftest.dir
3735else
3736  am_cv_CC_dependencies_compiler_type=none
3737fi
3738
3739fi
3740echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3741echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3742CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3743
3744
3745
3746if
3747  test "x$enable_dependency_tracking" != xno \
3748  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3749  am__fastdepCC_TRUE=
3750  am__fastdepCC_FALSE='#'
3751else
3752  am__fastdepCC_TRUE='#'
3753  am__fastdepCC_FALSE=
3754fi
3755
3756
3757
3758ac_ext=c
3759ac_cpp='$CPP $CPPFLAGS'
3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763
3764if test x"" = x; then
3765  hdr="#include <dlfcn.h>"
3766else
3767  hdr=""
3768fi
3769
3770for ac_header in dlfcn.h
3771do
3772as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3773echo "$as_me:$LINENO: checking for $ac_header" >&5
3774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3775if eval "test \"\${$as_ac_Header+set}\" = set"; then
3776  echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
3778  cat >conftest.$ac_ext <<_ACEOF
3779/* confdefs.h.  */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
3783/* end confdefs.h.  */
3784$hdr
3785
3786#include <$ac_header>
3787_ACEOF
3788rm -f conftest.$ac_objext
3789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790  (eval $ac_compile) 2>conftest.er1
3791  ac_status=$?
3792  grep -v '^ *+' conftest.er1 >conftest.err
3793  rm -f conftest.er1
3794  cat conftest.err >&5
3795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796  (exit $ac_status); } &&
3797         { ac_try='test -z "$ac_c_werror_flag"
3798                         || test ! -s conftest.err'
3799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800  (eval $ac_try) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; } &&
3804         { ac_try='test -s conftest.$ac_objext'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; }; then
3810  eval "$as_ac_Header=yes"
3811else
3812  echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815eval "$as_ac_Header=no"
3816fi
3817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818fi
3819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3821if test `eval echo '${'$as_ac_Header'}'` = yes; then
3822  cat >>confdefs.h <<_ACEOF
3823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3824_ACEOF
3825
3826fi
3827
3828done
3829
3830
3831ac_ext=c
3832ac_cpp='$CPP $CPPFLAGS'
3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836
3837
3838# Check whether --enable-shared or --disable-shared was given.
3839if test "${enable_shared+set}" = set; then
3840  enableval="$enable_shared"
3841  p=${PACKAGE-default}
3842    case $enableval in
3843    yes) enable_shared=yes ;;
3844    no) enable_shared=no ;;
3845    *)
3846      enable_shared=no
3847      # Look at the argument we got.  We use all the common list separators.
3848      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3849      for pkg in $enableval; do
3850        IFS="$lt_save_ifs"
3851        if test "X$pkg" = "X$p"; then
3852          enable_shared=yes
3853        fi
3854      done
3855      IFS="$lt_save_ifs"
3856      ;;
3857    esac
3858else
3859  enable_shared=yes
3860fi;
3861
3862# Check whether --enable-fast-install or --disable-fast-install was given.
3863if test "${enable_fast_install+set}" = set; then
3864  enableval="$enable_fast_install"
3865  p=${PACKAGE-default}
3866    case $enableval in
3867    yes) enable_fast_install=yes ;;
3868    no) enable_fast_install=no ;;
3869    *)
3870      enable_fast_install=no
3871      # Look at the argument we got.  We use all the common list separators.
3872      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3873      for pkg in $enableval; do
3874        IFS="$lt_save_ifs"
3875        if test "X$pkg" = "X$p"; then
3876          enable_fast_install=yes
3877        fi
3878      done
3879      IFS="$lt_save_ifs"
3880      ;;
3881    esac
3882else
3883  enable_fast_install=yes
3884fi;
3885
3886echo "$as_me:$LINENO: checking host system type" >&5
3887echo $ECHO_N "checking host system type... $ECHO_C" >&6
3888if test "${ac_cv_host+set}" = set; then
3889  echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891  ac_cv_host_alias=$host_alias
3892test -z "$ac_cv_host_alias" &&
3893  ac_cv_host_alias=$ac_cv_build_alias
3894ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3895  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3896echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3897   { (exit 1); exit 1; }; }
3898
3899fi
3900echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3901echo "${ECHO_T}$ac_cv_host" >&6
3902host=$ac_cv_host
3903host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3904host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3905host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3906
3907
3908echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3909echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3910if test "${lt_cv_path_SED+set}" = set; then
3911  echo $ECHO_N "(cached) $ECHO_C" >&6
3912else
3913  # Loop through the user's path and test for sed and gsed.
3914# Then use that list of sed's as ones to test for truncation.
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918  IFS=$as_save_IFS
3919  test -z "$as_dir" && as_dir=.
3920  for lt_ac_prog in sed gsed; do
3921    for ac_exec_ext in '' $ac_executable_extensions; do
3922      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3923        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3924      fi
3925    done
3926  done
3927done
3928lt_ac_max=0
3929lt_ac_count=0
3930# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3931# along with /bin/sed that truncates output.
3932for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3933  test ! -f $lt_ac_sed && continue
3934  cat /dev/null > conftest.in
3935  lt_ac_count=0
3936  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3937  # Check for GNU sed and select it if it is found.
3938  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3939    lt_cv_path_SED=$lt_ac_sed
3940    break
3941  fi
3942  while true; do
3943    cat conftest.in conftest.in >conftest.tmp
3944    mv conftest.tmp conftest.in
3945    cp conftest.in conftest.nl
3946    echo >>conftest.nl
3947    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3948    cmp -s conftest.out conftest.nl || break
3949    # 10000 chars as input seems more than enough
3950    test $lt_ac_count -gt 10 && break
3951    lt_ac_count=`expr $lt_ac_count + 1`
3952    if test $lt_ac_count -gt $lt_ac_max; then
3953      lt_ac_max=$lt_ac_count
3954      lt_cv_path_SED=$lt_ac_sed
3955    fi
3956  done
3957done
3958
3959fi
3960
3961SED=$lt_cv_path_SED
3962echo "$as_me:$LINENO: result: $SED" >&5
3963echo "${ECHO_T}$SED" >&6
3964
3965
3966# Check whether --with-gnu-ld or --without-gnu-ld was given.
3967if test "${with_gnu_ld+set}" = set; then
3968  withval="$with_gnu_ld"
3969  test "$withval" = no || with_gnu_ld=yes
3970else
3971  with_gnu_ld=no
3972fi;
3973ac_prog=ld
3974if test "$GCC" = yes; then
3975  # Check if gcc -print-prog-name=ld gives a path.
3976  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3977echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3978  case $host in
3979  *-*-mingw*)
3980    # gcc leaves a trailing carriage return which upsets mingw
3981    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3982  *)
3983    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3984  esac
3985  case $ac_prog in
3986    # Accept absolute paths.
3987    [\\/]* | ?:[\\/]*)
3988      re_direlt='/[^/][^/]*/\.\./'
3989      # Canonicalize the pathname of ld
3990      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3991      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3992        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3993      done
3994      test -z "$LD" && LD="$ac_prog"
3995      ;;
3996  "")
3997    # If it fails, then pretend we aren't using GCC.
3998    ac_prog=ld
3999    ;;
4000  *)
4001    # If it is relative, then search for the first ld in PATH.
4002    with_gnu_ld=unknown
4003    ;;
4004  esac
4005elif test "$with_gnu_ld" = yes; then
4006  echo "$as_me:$LINENO: checking for GNU ld" >&5
4007echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4008else
4009  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4010echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4011fi
4012if test "${lt_cv_path_LD+set}" = set; then
4013  echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
4015  if test -z "$LD"; then
4016  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4017  for ac_dir in $PATH; do
4018    IFS="$lt_save_ifs"
4019    test -z "$ac_dir" && ac_dir=.
4020    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4021      lt_cv_path_LD="$ac_dir/$ac_prog"
4022      # Check to see if the program is GNU ld.  I'd rather use --version,
4023      # but apparently some variants of GNU ld only accept -v.
4024      # Break only if it was the GNU/non-GNU ld that we prefer.
4025      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4026      *GNU* | *'with BFD'*)
4027        test "$with_gnu_ld" != no && break
4028        ;;
4029      *)
4030        test "$with_gnu_ld" != yes && break
4031        ;;
4032      esac
4033    fi
4034  done
4035  IFS="$lt_save_ifs"
4036else
4037  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4038fi
4039fi
4040
4041LD="$lt_cv_path_LD"
4042if test -n "$LD"; then
4043  echo "$as_me:$LINENO: result: $LD" >&5
4044echo "${ECHO_T}$LD" >&6
4045else
4046  echo "$as_me:$LINENO: result: no" >&5
4047echo "${ECHO_T}no" >&6
4048fi
4049test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4050echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4051   { (exit 1); exit 1; }; }
4052echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4053echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4054if test "${lt_cv_prog_gnu_ld+set}" = set; then
4055  echo $ECHO_N "(cached) $ECHO_C" >&6
4056else
4057  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4058case `$LD -v 2>&1 </dev/null` in
4059*GNU* | *'with BFD'*)
4060  lt_cv_prog_gnu_ld=yes
4061  ;;
4062*)
4063  lt_cv_prog_gnu_ld=no
4064  ;;
4065esac
4066fi
4067echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4068echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4069with_gnu_ld=$lt_cv_prog_gnu_ld
4070
4071
4072echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4073echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4074if test "${lt_cv_ld_reload_flag+set}" = set; then
4075  echo $ECHO_N "(cached) $ECHO_C" >&6
4076else
4077  lt_cv_ld_reload_flag='-r'
4078fi
4079echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4080echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4081reload_flag=$lt_cv_ld_reload_flag
4082case $reload_flag in
4083"" | " "*) ;;
4084*) reload_flag=" $reload_flag" ;;
4085esac
4086reload_cmds='$LD$reload_flag -o $output$reload_objs'
4087case $host_os in
4088  darwin*)
4089    if test "$GCC" = yes; then
4090      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4091    else
4092      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4093    fi
4094    ;;
4095esac
4096
4097echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4098echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4099if test "${lt_cv_path_NM+set}" = set; then
4100  echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102  if test -n "$NM"; then
4103  # Let the user override the test.
4104  lt_cv_path_NM="$NM"
4105else
4106  lt_nm_to_check="${ac_tool_prefix}nm"
4107  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4108    lt_nm_to_check="$lt_nm_to_check nm"
4109  fi
4110  for lt_tmp_nm in $lt_nm_to_check; do
4111    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4112    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4113      IFS="$lt_save_ifs"
4114      test -z "$ac_dir" && ac_dir=.
4115      tmp_nm="$ac_dir/$lt_tmp_nm"
4116      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4117        # Check to see if the nm accepts a BSD-compat flag.
4118        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4119        #   nm: unknown option "B" ignored
4120        # Tru64's nm complains that /dev/null is an invalid object file
4121        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4122        */dev/null* | *'Invalid file or object type'*)
4123          lt_cv_path_NM="$tmp_nm -B"
4124          break
4125          ;;
4126        *)
4127          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4128          */dev/null*)
4129            lt_cv_path_NM="$tmp_nm -p"
4130            break
4131            ;;
4132          *)
4133            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4134            continue # so that we can try to find one that supports BSD flags
4135            ;;
4136          esac
4137          ;;
4138        esac
4139      fi
4140    done
4141    IFS="$lt_save_ifs"
4142  done
4143  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4144fi
4145fi
4146echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4147echo "${ECHO_T}$lt_cv_path_NM" >&6
4148NM="$lt_cv_path_NM"
4149
4150echo "$as_me:$LINENO: checking whether ln -s works" >&5
4151echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4152LN_S=$as_ln_s
4153if test "$LN_S" = "ln -s"; then
4154  echo "$as_me:$LINENO: result: yes" >&5
4155echo "${ECHO_T}yes" >&6
4156else
4157  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4158echo "${ECHO_T}no, using $LN_S" >&6
4159fi
4160
4161echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4162echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4163if test "${lt_cv_deplibs_check_method+set}" = set; then
4164  echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166  lt_cv_file_magic_cmd='$MAGIC_CMD'
4167lt_cv_file_magic_test_file=
4168lt_cv_deplibs_check_method='unknown'
4169# Need to set the preceding variable on all platforms that support
4170# interlibrary dependencies.
4171# 'none' -- dependencies not supported.
4172# `unknown' -- same as none, but documents that we really don't know.
4173# 'pass_all' -- all dependencies passed with no checks.
4174# 'test_compile' -- check by making test program.
4175# 'file_magic [[regex]]' -- check by looking for files in library path
4176# which responds to the $file_magic_cmd with a given extended regex.
4177# If you have `file' or equivalent on your system and you're not sure
4178# whether `pass_all' will *always* work, you probably want this one.
4179
4180case $host_os in
4181aix4* | aix5*)
4182  lt_cv_deplibs_check_method=pass_all
4183  ;;
4184
4185beos*)
4186  lt_cv_deplibs_check_method=pass_all
4187  ;;
4188
4189bsdi[45]*)
4190  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4191  lt_cv_file_magic_cmd='/usr/bin/file -L'
4192  lt_cv_file_magic_test_file=/shlib/libc.so
4193  ;;
4194
4195cygwin*)
4196  # func_win32_libid is a shell function defined in ltmain.sh
4197  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4198  lt_cv_file_magic_cmd='func_win32_libid'
4199  ;;
4200
4201mingw* | pw32*)
4202  # Base MSYS/MinGW do not provide the 'file' command needed by
4203  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4204  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4205  lt_cv_file_magic_cmd='$OBJDUMP -f'
4206  ;;
4207
4208darwin* | rhapsody*)
4209  lt_cv_deplibs_check_method=pass_all
4210  ;;
4211
4212freebsd* | kfreebsd*-gnu | dragonfly*)
4213  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4214    case $host_cpu in
4215    i*86 )
4216      # Not sure whether the presence of OpenBSD here was a mistake.
4217      # Let's accept both of them until this is cleared up.
4218      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4219      lt_cv_file_magic_cmd=/usr/bin/file
4220      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4221      ;;
4222    esac
4223  else
4224    lt_cv_deplibs_check_method=pass_all
4225  fi
4226  ;;
4227
4228gnu*)
4229  lt_cv_deplibs_check_method=pass_all
4230  ;;
4231
4232hpux10.20* | hpux11*)
4233  lt_cv_file_magic_cmd=/usr/bin/file
4234  case $host_cpu in
4235  ia64*)
4236    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4237    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4238    ;;
4239  hppa*64*)
4240    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]'
4241    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4242    ;;
4243  *)
4244    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4245    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4246    ;;
4247  esac
4248  ;;
4249
4250interix3*)
4251  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4252  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4253  ;;
4254
4255irix5* | irix6* | nonstopux*)
4256  case $LD in
4257  *-32|*"-32 ") libmagic=32-bit;;
4258  *-n32|*"-n32 ") libmagic=N32;;
4259  *-64|*"-64 ") libmagic=64-bit;;
4260  *) libmagic=never-match;;
4261  esac
4262  lt_cv_deplibs_check_method=pass_all
4263  ;;
4264
4265# This must be Linux ELF.
4266linux*)
4267  lt_cv_deplibs_check_method=pass_all
4268  ;;
4269
4270netbsd*)
4271  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4272    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4273  else
4274    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4275  fi
4276  ;;
4277
4278newos6*)
4279  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4280  lt_cv_file_magic_cmd=/usr/bin/file
4281  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4282  ;;
4283
4284nto-qnx*)
4285  lt_cv_deplibs_check_method=unknown
4286  ;;
4287
4288openbsd*)
4289  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4290    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4291  else
4292    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4293  fi
4294  ;;
4295
4296osf3* | osf4* | osf5*)
4297  lt_cv_deplibs_check_method=pass_all
4298  ;;
4299
4300solaris*)
4301  lt_cv_deplibs_check_method=pass_all
4302  ;;
4303
4304sysv4 | sysv4.3*)
4305  case $host_vendor in
4306  motorola)
4307    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]'
4308    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4309    ;;
4310  ncr)
4311    lt_cv_deplibs_check_method=pass_all
4312    ;;
4313  sequent)
4314    lt_cv_file_magic_cmd='/bin/file'
4315    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4316    ;;
4317  sni)
4318    lt_cv_file_magic_cmd='/bin/file'
4319    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4320    lt_cv_file_magic_test_file=/lib/libc.so
4321    ;;
4322  siemens)
4323    lt_cv_deplibs_check_method=pass_all
4324    ;;
4325  pc)
4326    lt_cv_deplibs_check_method=pass_all
4327    ;;
4328  esac
4329  ;;
4330
4331sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4332  lt_cv_deplibs_check_method=pass_all
4333  ;;
4334esac
4335
4336fi
4337echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4338echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4339file_magic_cmd=$lt_cv_file_magic_cmd
4340deplibs_check_method=$lt_cv_deplibs_check_method
4341test -z "$deplibs_check_method" && deplibs_check_method=unknown
4342
4343
4344
4345
4346# If no C compiler was specified, use CC.
4347LTCC=${LTCC-"$CC"}
4348
4349# If no C compiler flags were specified, use CFLAGS.
4350LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4351
4352# Allow CC to be a program name with arguments.
4353compiler=$CC
4354
4355# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4356if test "${enable_libtool_lock+set}" = set; then
4357  enableval="$enable_libtool_lock"
4358
4359fi;
4360test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4361
4362# Some flags need to be propagated to the compiler or linker for good
4363# libtool support.
4364case $host in
4365ia64-*-hpux*)
4366  # Find out which ABI we are using.
4367  echo 'int i;' > conftest.$ac_ext
4368  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369  (eval $ac_compile) 2>&5
4370  ac_status=$?
4371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); }; then
4373    case `/usr/bin/file conftest.$ac_objext` in
4374    *ELF-32*)
4375      HPUX_IA64_MODE="32"
4376      ;;
4377    *ELF-64*)
4378      HPUX_IA64_MODE="64"
4379      ;;
4380    esac
4381  fi
4382  rm -rf conftest*
4383  ;;
4384*-*-irix6*)
4385  # Find out which ABI we are using.
4386  echo '#line 4386 "configure"' > conftest.$ac_ext
4387  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388  (eval $ac_compile) 2>&5
4389  ac_status=$?
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); }; then
4392   if test "$lt_cv_prog_gnu_ld" = yes; then
4393    case `/usr/bin/file conftest.$ac_objext` in
4394    *32-bit*)
4395      LD="${LD-ld} -melf32bsmip"
4396      ;;
4397    *N32*)
4398      LD="${LD-ld} -melf32bmipn32"
4399      ;;
4400    *64-bit*)
4401      LD="${LD-ld} -melf64bmip"
4402      ;;
4403    esac
4404   else
4405    case `/usr/bin/file conftest.$ac_objext` in
4406    *32-bit*)
4407      LD="${LD-ld} -32"
4408      ;;
4409    *N32*)
4410      LD="${LD-ld} -n32"
4411      ;;
4412    *64-bit*)
4413      LD="${LD-ld} -64"
4414      ;;
4415    esac
4416   fi
4417  fi
4418  rm -rf conftest*
4419  ;;
4420
4421x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4422  # Find out which ABI we are using.
4423  echo 'int i;' > conftest.$ac_ext
4424  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425  (eval $ac_compile) 2>&5
4426  ac_status=$?
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); }; then
4429    case `/usr/bin/file conftest.o` in
4430    *32-bit*)
4431      case $host in
4432        x86_64-*linux*)
4433          LD="${LD-ld} -m elf_i386"
4434          ;;
4435        ppc64-*linux*|powerpc64-*linux*)
4436          LD="${LD-ld} -m elf32ppclinux"
4437          ;;
4438        s390x-*linux*)
4439          LD="${LD-ld} -m elf_s390"
4440          ;;
4441        sparc64-*linux*)
4442          LD="${LD-ld} -m elf32_sparc"
4443          ;;
4444      esac
4445      ;;
4446    *64-bit*)
4447      case $host in
4448        x86_64-*linux*)
4449          LD="${LD-ld} -m elf_x86_64"
4450          ;;
4451        ppc*-*linux*|powerpc*-*linux*)
4452          LD="${LD-ld} -m elf64ppc"
4453          ;;
4454        s390*-*linux*)
4455          LD="${LD-ld} -m elf64_s390"
4456          ;;
4457        sparc*-*linux*)
4458          LD="${LD-ld} -m elf64_sparc"
4459          ;;
4460      esac
4461      ;;
4462    esac
4463  fi
4464  rm -rf conftest*
4465  ;;
4466
4467*-*-sco3.2v5*)
4468  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4469  SAVE_CFLAGS="$CFLAGS"
4470  CFLAGS="$CFLAGS -belf"
4471  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4472echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4473if test "${lt_cv_cc_needs_belf+set}" = set; then
4474  echo $ECHO_N "(cached) $ECHO_C" >&6
4475else
4476  ac_ext=c
4477ac_cpp='$CPP $CPPFLAGS'
4478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481
4482     cat >conftest.$ac_ext <<_ACEOF
4483/* confdefs.h.  */
4484_ACEOF
4485cat confdefs.h >>conftest.$ac_ext
4486cat >>conftest.$ac_ext <<_ACEOF
4487/* end confdefs.h.  */
4488
4489int
4490main ()
4491{
4492
4493  ;
4494  return 0;
4495}
4496_ACEOF
4497rm -f conftest.$ac_objext conftest$ac_exeext
4498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4499  (eval $ac_link) 2>conftest.er1
4500  ac_status=$?
4501  grep -v '^ *+' conftest.er1 >conftest.err
4502  rm -f conftest.er1
4503  cat conftest.err >&5
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); } &&
4506         { ac_try='test -z "$ac_c_werror_flag"
4507                         || test ! -s conftest.err'
4508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509  (eval $ac_try) 2>&5
4510  ac_status=$?
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); }; } &&
4513         { ac_try='test -s conftest$ac_exeext'
4514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515  (eval $ac_try) 2>&5
4516  ac_status=$?
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); }; }; then
4519  lt_cv_cc_needs_belf=yes
4520else
4521  echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524lt_cv_cc_needs_belf=no
4525fi
4526rm -f conftest.err conftest.$ac_objext \
4527      conftest$ac_exeext conftest.$ac_ext
4528     ac_ext=c
4529ac_cpp='$CPP $CPPFLAGS'
4530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534fi
4535echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4536echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4537  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4538    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4539    CFLAGS="$SAVE_CFLAGS"
4540  fi
4541  ;;
4542sparc*-*solaris*)
4543  # Find out which ABI we are using.
4544  echo 'int i;' > conftest.$ac_ext
4545  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546  (eval $ac_compile) 2>&5
4547  ac_status=$?
4548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549  (exit $ac_status); }; then
4550    case `/usr/bin/file conftest.o` in
4551    *64-bit*)
4552      case $lt_cv_prog_gnu_ld in
4553      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4554      *)    LD="${LD-ld} -64" ;;
4555      esac
4556      ;;
4557    esac
4558  fi
4559  rm -rf conftest*
4560  ;;
4561
4562
4563esac
4564
4565need_locks="$enable_libtool_lock"
4566
4567
4568ac_ext=c
4569ac_cpp='$CPP $CPPFLAGS'
4570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4574echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4575# On Suns, sometimes $CPP names a directory.
4576if test -n "$CPP" && test -d "$CPP"; then
4577  CPP=
4578fi
4579if test -z "$CPP"; then
4580  if test "${ac_cv_prog_CPP+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583      # Double quotes because CPP needs to be expanded
4584    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4585    do
4586      ac_preproc_ok=false
4587for ac_c_preproc_warn_flag in '' yes
4588do
4589  # Use a header file that comes with gcc, so configuring glibc
4590  # with a fresh cross-compiler works.
4591  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4592  # <limits.h> exists even on freestanding compilers.
4593  # On the NeXT, cc -E runs the code through the compiler's parser,
4594  # not just through cpp. "Syntax error" is here to catch this case.
4595  cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h.  */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h.  */
4601#ifdef __STDC__
4602# include <limits.h>
4603#else
4604# include <assert.h>
4605#endif
4606                     Syntax error
4607_ACEOF
4608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4609  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4610  ac_status=$?
4611  grep -v '^ *+' conftest.er1 >conftest.err
4612  rm -f conftest.er1
4613  cat conftest.err >&5
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); } >/dev/null; then
4616  if test -s conftest.err; then
4617    ac_cpp_err=$ac_c_preproc_warn_flag
4618    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4619  else
4620    ac_cpp_err=
4621  fi
4622else
4623  ac_cpp_err=yes
4624fi
4625if test -z "$ac_cpp_err"; then
4626  :
4627else
4628  echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631  # Broken: fails on valid input.
4632continue
4633fi
4634rm -f conftest.err conftest.$ac_ext
4635
4636  # OK, works on sane cases.  Now check whether non-existent headers
4637  # can be detected and how.
4638  cat >conftest.$ac_ext <<_ACEOF
4639/* confdefs.h.  */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h.  */
4644#include <ac_nonexistent.h>
4645_ACEOF
4646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4647  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648  ac_status=$?
4649  grep -v '^ *+' conftest.er1 >conftest.err
4650  rm -f conftest.er1
4651  cat conftest.err >&5
4652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653  (exit $ac_status); } >/dev/null; then
4654  if test -s conftest.err; then
4655    ac_cpp_err=$ac_c_preproc_warn_flag
4656    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4657  else
4658    ac_cpp_err=
4659  fi
4660else
4661  ac_cpp_err=yes
4662fi
4663if test -z "$ac_cpp_err"; then
4664  # Broken: success on invalid input.
4665continue
4666else
4667  echo "$as_me: failed program was:" >&5
4668sed 's/^/| /' conftest.$ac_ext >&5
4669
4670  # Passes both tests.
4671ac_preproc_ok=:
4672break
4673fi
4674rm -f conftest.err conftest.$ac_ext
4675
4676done
4677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4678rm -f conftest.err conftest.$ac_ext
4679if $ac_preproc_ok; then
4680  break
4681fi
4682
4683    done
4684    ac_cv_prog_CPP=$CPP
4685
4686fi
4687  CPP=$ac_cv_prog_CPP
4688else
4689  ac_cv_prog_CPP=$CPP
4690fi
4691echo "$as_me:$LINENO: result: $CPP" >&5
4692echo "${ECHO_T}$CPP" >&6
4693ac_preproc_ok=false
4694for ac_c_preproc_warn_flag in '' yes
4695do
4696  # Use a header file that comes with gcc, so configuring glibc
4697  # with a fresh cross-compiler works.
4698  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4699  # <limits.h> exists even on freestanding compilers.
4700  # On the NeXT, cc -E runs the code through the compiler's parser,
4701  # not just through cpp. "Syntax error" is here to catch this case.
4702  cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h.  */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h.  */
4708#ifdef __STDC__
4709# include <limits.h>
4710#else
4711# include <assert.h>
4712#endif
4713                     Syntax error
4714_ACEOF
4715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4716  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4717  ac_status=$?
4718  grep -v '^ *+' conftest.er1 >conftest.err
4719  rm -f conftest.er1
4720  cat conftest.err >&5
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); } >/dev/null; then
4723  if test -s conftest.err; then
4724    ac_cpp_err=$ac_c_preproc_warn_flag
4725    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4726  else
4727    ac_cpp_err=
4728  fi
4729else
4730  ac_cpp_err=yes
4731fi
4732if test -z "$ac_cpp_err"; then
4733  :
4734else
4735  echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738  # Broken: fails on valid input.
4739continue
4740fi
4741rm -f conftest.err conftest.$ac_ext
4742
4743  # OK, works on sane cases.  Now check whether non-existent headers
4744  # can be detected and how.
4745  cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h.  */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h.  */
4751#include <ac_nonexistent.h>
4752_ACEOF
4753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4754  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4755  ac_status=$?
4756  grep -v '^ *+' conftest.er1 >conftest.err
4757  rm -f conftest.er1
4758  cat conftest.err >&5
4759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760  (exit $ac_status); } >/dev/null; then
4761  if test -s conftest.err; then
4762    ac_cpp_err=$ac_c_preproc_warn_flag
4763    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4764  else
4765    ac_cpp_err=
4766  fi
4767else
4768  ac_cpp_err=yes
4769fi
4770if test -z "$ac_cpp_err"; then
4771  # Broken: success on invalid input.
4772continue
4773else
4774  echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
4777  # Passes both tests.
4778ac_preproc_ok=:
4779break
4780fi
4781rm -f conftest.err conftest.$ac_ext
4782
4783done
4784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4785rm -f conftest.err conftest.$ac_ext
4786if $ac_preproc_ok; then
4787  :
4788else
4789  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4790See \`config.log' for more details." >&5
4791echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4792See \`config.log' for more details." >&2;}
4793   { (exit 1); exit 1; }; }
4794fi
4795
4796ac_ext=c
4797ac_cpp='$CPP $CPPFLAGS'
4798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801
4802
4803echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4804echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4805if test "${ac_cv_header_stdc+set}" = set; then
4806  echo $ECHO_N "(cached) $ECHO_C" >&6
4807else
4808  cat >conftest.$ac_ext <<_ACEOF
4809/* confdefs.h.  */
4810_ACEOF
4811cat confdefs.h >>conftest.$ac_ext
4812cat >>conftest.$ac_ext <<_ACEOF
4813/* end confdefs.h.  */
4814#include <stdlib.h>
4815#include <stdarg.h>
4816#include <string.h>
4817#include <float.h>
4818
4819int
4820main ()
4821{
4822
4823  ;
4824  return 0;
4825}
4826_ACEOF
4827rm -f conftest.$ac_objext
4828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829  (eval $ac_compile) 2>conftest.er1
4830  ac_status=$?
4831  grep -v '^ *+' conftest.er1 >conftest.err
4832  rm -f conftest.er1
4833  cat conftest.err >&5
4834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835  (exit $ac_status); } &&
4836         { ac_try='test -z "$ac_c_werror_flag"
4837                         || test ! -s conftest.err'
4838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839  (eval $ac_try) 2>&5
4840  ac_status=$?
4841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842  (exit $ac_status); }; } &&
4843         { ac_try='test -s conftest.$ac_objext'
4844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845  (eval $ac_try) 2>&5
4846  ac_status=$?
4847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848  (exit $ac_status); }; }; then
4849  ac_cv_header_stdc=yes
4850else
4851  echo "$as_me: failed program was:" >&5
4852sed 's/^/| /' conftest.$ac_ext >&5
4853
4854ac_cv_header_stdc=no
4855fi
4856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857
4858if test $ac_cv_header_stdc = yes; then
4859  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860  cat >conftest.$ac_ext <<_ACEOF
4861/* confdefs.h.  */
4862_ACEOF
4863cat confdefs.h >>conftest.$ac_ext
4864cat >>conftest.$ac_ext <<_ACEOF
4865/* end confdefs.h.  */
4866#include <string.h>
4867
4868_ACEOF
4869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870  $EGREP "memchr" >/dev/null 2>&1; then
4871  :
4872else
4873  ac_cv_header_stdc=no
4874fi
4875rm -f conftest*
4876
4877fi
4878
4879if test $ac_cv_header_stdc = yes; then
4880  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881  cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h.  */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h.  */
4887#include <stdlib.h>
4888
4889_ACEOF
4890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891  $EGREP "free" >/dev/null 2>&1; then
4892  :
4893else
4894  ac_cv_header_stdc=no
4895fi
4896rm -f conftest*
4897
4898fi
4899
4900if test $ac_cv_header_stdc = yes; then
4901  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902  if test "$cross_compiling" = yes; then
4903  :
4904else
4905  cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h.  */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h.  */
4911#include <ctype.h>
4912#if ((' ' & 0x0FF) == 0x020)
4913# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4915#else
4916# define ISLOWER(c) \
4917                   (('a' <= (c) && (c) <= 'i') \
4918                     || ('j' <= (c) && (c) <= 'r') \
4919                     || ('s' <= (c) && (c) <= 'z'))
4920# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4921#endif
4922
4923#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4924int
4925main ()
4926{
4927  int i;
4928  for (i = 0; i < 256; i++)
4929    if (XOR (islower (i), ISLOWER (i))
4930        || toupper (i) != TOUPPER (i))
4931      exit(2);
4932  exit (0);
4933}
4934_ACEOF
4935rm -f conftest$ac_exeext
4936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937  (eval $ac_link) 2>&5
4938  ac_status=$?
4939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942  (eval $ac_try) 2>&5
4943  ac_status=$?
4944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945  (exit $ac_status); }; }; then
4946  :
4947else
4948  echo "$as_me: program exited with status $ac_status" >&5
4949echo "$as_me: failed program was:" >&5
4950sed 's/^/| /' conftest.$ac_ext >&5
4951
4952( exit $ac_status )
4953ac_cv_header_stdc=no
4954fi
4955rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4956fi
4957fi
4958fi
4959echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4960echo "${ECHO_T}$ac_cv_header_stdc" >&6
4961if test $ac_cv_header_stdc = yes; then
4962
4963cat >>confdefs.h <<\_ACEOF
4964#define STDC_HEADERS 1
4965_ACEOF
4966
4967fi
4968
4969# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4980                  inttypes.h stdint.h unistd.h
4981do
4982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983echo "$as_me:$LINENO: checking for $ac_header" >&5
4984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4985if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986  echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988  cat >conftest.$ac_ext <<_ACEOF
4989/* confdefs.h.  */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h.  */
4994$ac_includes_default
4995
4996#include <$ac_header>
4997_ACEOF
4998rm -f conftest.$ac_objext
4999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000  (eval $ac_compile) 2>conftest.er1
5001  ac_status=$?
5002  grep -v '^ *+' conftest.er1 >conftest.err
5003  rm -f conftest.er1
5004  cat conftest.err >&5
5005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006  (exit $ac_status); } &&
5007         { ac_try='test -z "$ac_c_werror_flag"
5008                         || test ! -s conftest.err'
5009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010  (eval $ac_try) 2>&5
5011  ac_status=$?
5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013  (exit $ac_status); }; } &&
5014         { ac_try='test -s conftest.$ac_objext'
5015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016  (eval $ac_try) 2>&5
5017  ac_status=$?
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); }; }; then
5020  eval "$as_ac_Header=yes"
5021else
5022  echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025eval "$as_ac_Header=no"
5026fi
5027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028fi
5029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032  cat >>confdefs.h <<_ACEOF
5033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5034_ACEOF
5035
5036fi
5037
5038done
5039
5040
5041
5042for ac_header in dlfcn.h
5043do
5044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5045if eval "test \"\${$as_ac_Header+set}\" = set"; then
5046  echo "$as_me:$LINENO: checking for $ac_header" >&5
5047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5048if eval "test \"\${$as_ac_Header+set}\" = set"; then
5049  echo $ECHO_N "(cached) $ECHO_C" >&6
5050fi
5051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5053else
5054  # Is the header compilable?
5055echo "$as_me:$LINENO: checking $ac_header usability" >&5
5056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5057cat >conftest.$ac_ext <<_ACEOF
5058/* confdefs.h.  */
5059_ACEOF
5060cat confdefs.h >>conftest.$ac_ext
5061cat >>conftest.$ac_ext <<_ACEOF
5062/* end confdefs.h.  */
5063$ac_includes_default
5064#include <$ac_header>
5065_ACEOF
5066rm -f conftest.$ac_objext
5067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068  (eval $ac_compile) 2>conftest.er1
5069  ac_status=$?
5070  grep -v '^ *+' conftest.er1 >conftest.err
5071  rm -f conftest.er1
5072  cat conftest.err >&5
5073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074  (exit $ac_status); } &&
5075         { ac_try='test -z "$ac_c_werror_flag"
5076                         || test ! -s conftest.err'
5077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078  (eval $ac_try) 2>&5
5079  ac_status=$?
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); }; } &&
5082         { ac_try='test -s conftest.$ac_objext'
5083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084  (eval $ac_try) 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); }; }; then
5088  ac_header_compiler=yes
5089else
5090  echo "$as_me: failed program was:" >&5
5091sed 's/^/| /' conftest.$ac_ext >&5
5092
5093ac_header_compiler=no
5094fi
5095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5097echo "${ECHO_T}$ac_header_compiler" >&6
5098
5099# Is the header present?
5100echo "$as_me:$LINENO: checking $ac_header presence" >&5
5101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5102cat >conftest.$ac_ext <<_ACEOF
5103/* confdefs.h.  */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h.  */
5108#include <$ac_header>
5109_ACEOF
5110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112  ac_status=$?
5113  grep -v '^ *+' conftest.er1 >conftest.err
5114  rm -f conftest.er1
5115  cat conftest.err >&5
5116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117  (exit $ac_status); } >/dev/null; then
5118  if test -s conftest.err; then
5119    ac_cpp_err=$ac_c_preproc_warn_flag
5120    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5121  else
5122    ac_cpp_err=
5123  fi
5124else
5125  ac_cpp_err=yes
5126fi
5127if test -z "$ac_cpp_err"; then
5128  ac_header_preproc=yes
5129else
5130  echo "$as_me: failed program was:" >&5
5131sed 's/^/| /' conftest.$ac_ext >&5
5132
5133  ac_header_preproc=no
5134fi
5135rm -f conftest.err conftest.$ac_ext
5136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5137echo "${ECHO_T}$ac_header_preproc" >&6
5138
5139# So?  What about this header?
5140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5141  yes:no: )
5142    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5144    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5146    ac_header_preproc=yes
5147    ;;
5148  no:yes:* )
5149    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5151    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5152echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5153    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5155    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5156echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5157    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5159    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5161    (
5162      cat <<\_ASBOX
5163## --------------------------------------------------------------- ##
5164## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5165## --------------------------------------------------------------- ##
5166_ASBOX
5167    ) |
5168      sed "s/^/$as_me: WARNING:     /" >&2
5169    ;;
5170esac
5171echo "$as_me:$LINENO: checking for $ac_header" >&5
5172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5173if eval "test \"\${$as_ac_Header+set}\" = set"; then
5174  echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176  eval "$as_ac_Header=\$ac_header_preproc"
5177fi
5178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180
5181fi
5182if test `eval echo '${'$as_ac_Header'}'` = yes; then
5183  cat >>confdefs.h <<_ACEOF
5184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5185_ACEOF
5186
5187fi
5188
5189done
5190
5191ac_ext=cc
5192ac_cpp='$CXXCPP $CPPFLAGS'
5193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196if test -n "$ac_tool_prefix"; then
5197  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5198  do
5199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5201echo "$as_me:$LINENO: checking for $ac_word" >&5
5202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203if test "${ac_cv_prog_CXX+set}" = set; then
5204  echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206  if test -n "$CXX"; then
5207  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212  IFS=$as_save_IFS
5213  test -z "$as_dir" && as_dir=.
5214  for ac_exec_ext in '' $ac_executable_extensions; do
5215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218    break 2
5219  fi
5220done
5221done
5222
5223fi
5224fi
5225CXX=$ac_cv_prog_CXX
5226if test -n "$CXX"; then
5227  echo "$as_me:$LINENO: result: $CXX" >&5
5228echo "${ECHO_T}$CXX" >&6
5229else
5230  echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
5232fi
5233
5234    test -n "$CXX" && break
5235  done
5236fi
5237if test -z "$CXX"; then
5238  ac_ct_CXX=$CXX
5239  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5240do
5241  # Extract the first word of "$ac_prog", so it can be a program name with args.
5242set dummy $ac_prog; ac_word=$2
5243echo "$as_me:$LINENO: checking for $ac_word" >&5
5244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5245if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5246  echo $ECHO_N "(cached) $ECHO_C" >&6
5247else
5248  if test -n "$ac_ct_CXX"; then
5249  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254  IFS=$as_save_IFS
5255  test -z "$as_dir" && as_dir=.
5256  for ac_exec_ext in '' $ac_executable_extensions; do
5257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258    ac_cv_prog_ac_ct_CXX="$ac_prog"
5259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260    break 2
5261  fi
5262done
5263done
5264
5265fi
5266fi
5267ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5268if test -n "$ac_ct_CXX"; then
5269  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5270echo "${ECHO_T}$ac_ct_CXX" >&6
5271else
5272  echo "$as_me:$LINENO: result: no" >&5
5273echo "${ECHO_T}no" >&6
5274fi
5275
5276  test -n "$ac_ct_CXX" && break
5277done
5278test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5279
5280  CXX=$ac_ct_CXX
5281fi
5282
5283
5284# Provide some information about the compiler.
5285echo "$as_me:$LINENO:" \
5286     "checking for C++ compiler version" >&5
5287ac_compiler=`set X $ac_compile; echo $2`
5288{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5289  (eval $ac_compiler --version </dev/null >&5) 2>&5
5290  ac_status=$?
5291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292  (exit $ac_status); }
5293{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5294  (eval $ac_compiler -v </dev/null >&5) 2>&5
5295  ac_status=$?
5296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297  (exit $ac_status); }
5298{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5299  (eval $ac_compiler -V </dev/null >&5) 2>&5
5300  ac_status=$?
5301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302  (exit $ac_status); }
5303
5304echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5305echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5306if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5307  echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309  cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h.  */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h.  */
5315
5316int
5317main ()
5318{
5319#ifndef __GNUC__
5320       choke me
5321#endif
5322
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327rm -f conftest.$ac_objext
5328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329  (eval $ac_compile) 2>conftest.er1
5330  ac_status=$?
5331  grep -v '^ *+' conftest.er1 >conftest.err
5332  rm -f conftest.er1
5333  cat conftest.err >&5
5334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335  (exit $ac_status); } &&
5336         { ac_try='test -z "$ac_cxx_werror_flag"
5337                         || test ! -s conftest.err'
5338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339  (eval $ac_try) 2>&5
5340  ac_status=$?
5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342  (exit $ac_status); }; } &&
5343         { ac_try='test -s conftest.$ac_objext'
5344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345  (eval $ac_try) 2>&5
5346  ac_status=$?
5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); }; }; then
5349  ac_compiler_gnu=yes
5350else
5351  echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354ac_compiler_gnu=no
5355fi
5356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5358
5359fi
5360echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5361echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5362GXX=`test $ac_compiler_gnu = yes && echo yes`
5363ac_test_CXXFLAGS=${CXXFLAGS+set}
5364ac_save_CXXFLAGS=$CXXFLAGS
5365CXXFLAGS="-g"
5366echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5367echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5368if test "${ac_cv_prog_cxx_g+set}" = set; then
5369  echo $ECHO_N "(cached) $ECHO_C" >&6
5370else
5371  cat >conftest.$ac_ext <<_ACEOF
5372/* confdefs.h.  */
5373_ACEOF
5374cat confdefs.h >>conftest.$ac_ext
5375cat >>conftest.$ac_ext <<_ACEOF
5376/* end confdefs.h.  */
5377
5378int
5379main ()
5380{
5381
5382  ;
5383  return 0;
5384}
5385_ACEOF
5386rm -f conftest.$ac_objext
5387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388  (eval $ac_compile) 2>conftest.er1
5389  ac_status=$?
5390  grep -v '^ *+' conftest.er1 >conftest.err
5391  rm -f conftest.er1
5392  cat conftest.err >&5
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); } &&
5395         { ac_try='test -z "$ac_cxx_werror_flag"
5396                         || test ! -s conftest.err'
5397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398  (eval $ac_try) 2>&5
5399  ac_status=$?
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); }; } &&
5402         { ac_try='test -s conftest.$ac_objext'
5403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404  (eval $ac_try) 2>&5
5405  ac_status=$?
5406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407  (exit $ac_status); }; }; then
5408  ac_cv_prog_cxx_g=yes
5409else
5410  echo "$as_me: failed program was:" >&5
5411sed 's/^/| /' conftest.$ac_ext >&5
5412
5413ac_cv_prog_cxx_g=no
5414fi
5415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5418echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5419if test "$ac_test_CXXFLAGS" = set; then
5420  CXXFLAGS=$ac_save_CXXFLAGS
5421elif test $ac_cv_prog_cxx_g = yes; then
5422  if test "$GXX" = yes; then
5423    CXXFLAGS="-g -O2"
5424  else
5425    CXXFLAGS="-g"
5426  fi
5427else
5428  if test "$GXX" = yes; then
5429    CXXFLAGS="-O2"
5430  else
5431    CXXFLAGS=
5432  fi
5433fi
5434for ac_declaration in \
5435   '' \
5436   'extern "C" void std::exit (int) throw (); using std::exit;' \
5437   'extern "C" void std::exit (int); using std::exit;' \
5438   'extern "C" void exit (int) throw ();' \
5439   'extern "C" void exit (int);' \
5440   'void exit (int);'
5441do
5442  cat >conftest.$ac_ext <<_ACEOF
5443/* confdefs.h.  */
5444_ACEOF
5445cat confdefs.h >>conftest.$ac_ext
5446cat >>conftest.$ac_ext <<_ACEOF
5447/* end confdefs.h.  */
5448$ac_declaration
5449#include <stdlib.h>
5450int
5451main ()
5452{
5453exit (42);
5454  ;
5455  return 0;
5456}
5457_ACEOF
5458rm -f conftest.$ac_objext
5459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460  (eval $ac_compile) 2>conftest.er1
5461  ac_status=$?
5462  grep -v '^ *+' conftest.er1 >conftest.err
5463  rm -f conftest.er1
5464  cat conftest.err >&5
5465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466  (exit $ac_status); } &&
5467         { ac_try='test -z "$ac_cxx_werror_flag"
5468                         || test ! -s conftest.err'
5469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470  (eval $ac_try) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); }; } &&
5474         { ac_try='test -s conftest.$ac_objext'
5475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476  (eval $ac_try) 2>&5
5477  ac_status=$?
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); }; }; then
5480  :
5481else
5482  echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485continue
5486fi
5487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5488  cat >conftest.$ac_ext <<_ACEOF
5489/* confdefs.h.  */
5490_ACEOF
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h.  */
5494$ac_declaration
5495int
5496main ()
5497{
5498exit (42);
5499  ;
5500  return 0;
5501}
5502_ACEOF
5503rm -f conftest.$ac_objext
5504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505  (eval $ac_compile) 2>conftest.er1
5506  ac_status=$?
5507  grep -v '^ *+' conftest.er1 >conftest.err
5508  rm -f conftest.er1
5509  cat conftest.err >&5
5510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511  (exit $ac_status); } &&
5512         { ac_try='test -z "$ac_cxx_werror_flag"
5513                         || test ! -s conftest.err'
5514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515  (eval $ac_try) 2>&5
5516  ac_status=$?
5517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518  (exit $ac_status); }; } &&
5519         { ac_try='test -s conftest.$ac_objext'
5520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521  (eval $ac_try) 2>&5
5522  ac_status=$?
5523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524  (exit $ac_status); }; }; then
5525  break
5526else
5527  echo "$as_me: failed program was:" >&5
5528sed 's/^/| /' conftest.$ac_ext >&5
5529
5530fi
5531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532done
5533rm -f conftest*
5534if test -n "$ac_declaration"; then
5535  echo '#ifdef __cplusplus' >>confdefs.h
5536  echo $ac_declaration      >>confdefs.h
5537  echo '#endif'             >>confdefs.h
5538fi
5539
5540ac_ext=cc
5541ac_cpp='$CXXCPP $CPPFLAGS'
5542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5545
5546depcc="$CXX"  am_compiler_list=
5547
5548echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5549echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5550if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5551  echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
5553  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5554  # We make a subdir and do the tests there.  Otherwise we can end up
5555  # making bogus files that we don't know about and never remove.  For
5556  # instance it was reported that on HP-UX the gcc test will end up
5557  # making a dummy file named `D' -- because `-MD' means `put the output
5558  # in D'.
5559  mkdir conftest.dir
5560  # Copy depcomp to subdir because otherwise we won't find it if we're
5561  # using a relative directory.
5562  cp "$am_depcomp" conftest.dir
5563  cd conftest.dir
5564  # We will build objects and dependencies in a subdirectory because
5565  # it helps to detect inapplicable dependency modes.  For instance
5566  # both Tru64's cc and ICC support -MD to output dependencies as a
5567  # side effect of compilation, but ICC will put the dependencies in
5568  # the current directory while Tru64 will put them in the object
5569  # directory.
5570  mkdir sub
5571
5572  am_cv_CXX_dependencies_compiler_type=none
5573  if test "$am_compiler_list" = ""; then
5574     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5575  fi
5576  for depmode in $am_compiler_list; do
5577    # Setup a source with many dependencies, because some compilers
5578    # like to wrap large dependency lists on column 80 (with \), and
5579    # we should not choose a depcomp mode which is confused by this.
5580    #
5581    # We need to recreate these files for each test, as the compiler may
5582    # overwrite some of them when testing with obscure command lines.
5583    # This happens at least with the AIX C compiler.
5584    : > sub/conftest.c
5585    for i in 1 2 3 4 5 6; do
5586      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5587      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5588      # Solaris 8's {/usr,}/bin/sh.
5589      touch sub/conftst$i.h
5590    done
5591    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5592
5593    case $depmode in
5594    nosideeffect)
5595      # after this tag, mechanisms are not by side-effect, so they'll
5596      # only be used when explicitly requested
5597      if test "x$enable_dependency_tracking" = xyes; then
5598        continue
5599      else
5600        break
5601      fi
5602      ;;
5603    none) break ;;
5604    esac
5605    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5606    # mode.  It turns out that the SunPro C++ compiler does not properly
5607    # handle `-M -o', and we need to detect this.
5608    if depmode=$depmode \
5609       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5610       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5611       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5612         >/dev/null 2>conftest.err &&
5613       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5614       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5615       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5616      # icc doesn't choke on unknown options, it will just issue warnings
5617      # or remarks (even with -Werror).  So we grep stderr for any message
5618      # that says an option was ignored or not supported.
5619      # When given -MP, icc 7.0 and 7.1 complain thusly:
5620      #   icc: Command line warning: ignoring option '-M'; no argument required
5621      # The diagnosis changed in icc 8.0:
5622      #   icc: Command line remark: option '-MP' not supported
5623      if (grep 'ignoring option' conftest.err ||
5624          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5625        am_cv_CXX_dependencies_compiler_type=$depmode
5626        break
5627      fi
5628    fi
5629  done
5630
5631  cd ..
5632  rm -rf conftest.dir
5633else
5634  am_cv_CXX_dependencies_compiler_type=none
5635fi
5636
5637fi
5638echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5639echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5640CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5641
5642
5643
5644if
5645  test "x$enable_dependency_tracking" != xno \
5646  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5647  am__fastdepCXX_TRUE=
5648  am__fastdepCXX_FALSE='#'
5649else
5650  am__fastdepCXX_TRUE='#'
5651  am__fastdepCXX_FALSE=
5652fi
5653
5654
5655
5656
5657if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5658    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5659    (test "X$CXX" != "Xg++"))) ; then
5660  ac_ext=cc
5661ac_cpp='$CXXCPP $CPPFLAGS'
5662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5665echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5666echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5667if test -z "$CXXCPP"; then
5668  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671      # Double quotes because CXXCPP needs to be expanded
5672    for CXXCPP in "$CXX -E" "/lib/cpp"
5673    do
5674      ac_preproc_ok=false
5675for ac_cxx_preproc_warn_flag in '' yes
5676do
5677  # Use a header file that comes with gcc, so configuring glibc
5678  # with a fresh cross-compiler works.
5679  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680  # <limits.h> exists even on freestanding compilers.
5681  # On the NeXT, cc -E runs the code through the compiler's parser,
5682  # not just through cpp. "Syntax error" is here to catch this case.
5683  cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h.  */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h.  */
5689#ifdef __STDC__
5690# include <limits.h>
5691#else
5692# include <assert.h>
5693#endif
5694                     Syntax error
5695_ACEOF
5696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5697  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5698  ac_status=$?
5699  grep -v '^ *+' conftest.er1 >conftest.err
5700  rm -f conftest.er1
5701  cat conftest.err >&5
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); } >/dev/null; then
5704  if test -s conftest.err; then
5705    ac_cpp_err=$ac_cxx_preproc_warn_flag
5706    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5707  else
5708    ac_cpp_err=
5709  fi
5710else
5711  ac_cpp_err=yes
5712fi
5713if test -z "$ac_cpp_err"; then
5714  :
5715else
5716  echo "$as_me: failed program was:" >&5
5717sed 's/^/| /' conftest.$ac_ext >&5
5718
5719  # Broken: fails on valid input.
5720continue
5721fi
5722rm -f conftest.err conftest.$ac_ext
5723
5724  # OK, works on sane cases.  Now check whether non-existent headers
5725  # can be detected and how.
5726  cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h.  */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h.  */
5732#include <ac_nonexistent.h>
5733_ACEOF
5734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5735  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5736  ac_status=$?
5737  grep -v '^ *+' conftest.er1 >conftest.err
5738  rm -f conftest.er1
5739  cat conftest.err >&5
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); } >/dev/null; then
5742  if test -s conftest.err; then
5743    ac_cpp_err=$ac_cxx_preproc_warn_flag
5744    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5745  else
5746    ac_cpp_err=
5747  fi
5748else
5749  ac_cpp_err=yes
5750fi
5751if test -z "$ac_cpp_err"; then
5752  # Broken: success on invalid input.
5753continue
5754else
5755  echo "$as_me: failed program was:" >&5
5756sed 's/^/| /' conftest.$ac_ext >&5
5757
5758  # Passes both tests.
5759ac_preproc_ok=:
5760break
5761fi
5762rm -f conftest.err conftest.$ac_ext
5763
5764done
5765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5766rm -f conftest.err conftest.$ac_ext
5767if $ac_preproc_ok; then
5768  break
5769fi
5770
5771    done
5772    ac_cv_prog_CXXCPP=$CXXCPP
5773
5774fi
5775  CXXCPP=$ac_cv_prog_CXXCPP
5776else
5777  ac_cv_prog_CXXCPP=$CXXCPP
5778fi
5779echo "$as_me:$LINENO: result: $CXXCPP" >&5
5780echo "${ECHO_T}$CXXCPP" >&6
5781ac_preproc_ok=false
5782for ac_cxx_preproc_warn_flag in '' yes
5783do
5784  # Use a header file that comes with gcc, so configuring glibc
5785  # with a fresh cross-compiler works.
5786  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5787  # <limits.h> exists even on freestanding compilers.
5788  # On the NeXT, cc -E runs the code through the compiler's parser,
5789  # not just through cpp. "Syntax error" is here to catch this case.
5790  cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h.  */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h.  */
5796#ifdef __STDC__
5797# include <limits.h>
5798#else
5799# include <assert.h>
5800#endif
5801                     Syntax error
5802_ACEOF
5803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5804  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5805  ac_status=$?
5806  grep -v '^ *+' conftest.er1 >conftest.err
5807  rm -f conftest.er1
5808  cat conftest.err >&5
5809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810  (exit $ac_status); } >/dev/null; then
5811  if test -s conftest.err; then
5812    ac_cpp_err=$ac_cxx_preproc_warn_flag
5813    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5814  else
5815    ac_cpp_err=
5816  fi
5817else
5818  ac_cpp_err=yes
5819fi
5820if test -z "$ac_cpp_err"; then
5821  :
5822else
5823  echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
5826  # Broken: fails on valid input.
5827continue
5828fi
5829rm -f conftest.err conftest.$ac_ext
5830
5831  # OK, works on sane cases.  Now check whether non-existent headers
5832  # can be detected and how.
5833  cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h.  */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h.  */
5839#include <ac_nonexistent.h>
5840_ACEOF
5841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5842  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5843  ac_status=$?
5844  grep -v '^ *+' conftest.er1 >conftest.err
5845  rm -f conftest.er1
5846  cat conftest.err >&5
5847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848  (exit $ac_status); } >/dev/null; then
5849  if test -s conftest.err; then
5850    ac_cpp_err=$ac_cxx_preproc_warn_flag
5851    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5852  else
5853    ac_cpp_err=
5854  fi
5855else
5856  ac_cpp_err=yes
5857fi
5858if test -z "$ac_cpp_err"; then
5859  # Broken: success on invalid input.
5860continue
5861else
5862  echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865  # Passes both tests.
5866ac_preproc_ok=:
5867break
5868fi
5869rm -f conftest.err conftest.$ac_ext
5870
5871done
5872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5873rm -f conftest.err conftest.$ac_ext
5874if $ac_preproc_ok; then
5875  :
5876else
5877  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5878See \`config.log' for more details." >&5
5879echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5880See \`config.log' for more details." >&2;}
5881   { (exit 1); exit 1; }; }
5882fi
5883
5884ac_ext=cc
5885ac_cpp='$CXXCPP $CPPFLAGS'
5886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5889
5890fi
5891
5892
5893
5894# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5895
5896# find the maximum length of command line arguments
5897echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5898echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5899if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5900  echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902    i=0
5903  teststring="ABCD"
5904
5905  case $build_os in
5906  msdosdjgpp*)
5907    # On DJGPP, this test can blow up pretty badly due to problems in libc
5908    # (any single argument exceeding 2000 bytes causes a buffer overrun
5909    # during glob expansion).  Even if it were fixed, the result of this
5910    # check would be larger than it should be.
5911    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5912    ;;
5913
5914  gnu*)
5915    # Under GNU Hurd, this test is not required because there is
5916    # no limit to the length of command line arguments.
5917    # Libtool will interpret -1 as no limit whatsoever
5918    lt_cv_sys_max_cmd_len=-1;
5919    ;;
5920
5921  cygwin* | mingw*)
5922    # On Win9x/ME, this test blows up -- it succeeds, but takes
5923    # about 5 minutes as the teststring grows exponentially.
5924    # Worse, since 9x/ME are not pre-emptively multitasking,
5925    # you end up with a "frozen" computer, even though with patience
5926    # the test eventually succeeds (with a max line length of 256k).
5927    # Instead, let's just punt: use the minimum linelength reported by
5928    # all of the supported platforms: 8192 (on NT/2K/XP).
5929    lt_cv_sys_max_cmd_len=8192;
5930    ;;
5931
5932  amigaos*)
5933    # On AmigaOS with pdksh, this test takes hours, literally.
5934    # So we just punt and use a minimum line length of 8192.
5935    lt_cv_sys_max_cmd_len=8192;
5936    ;;
5937
5938  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5939    # This has been around since 386BSD, at least.  Likely further.
5940    if test -x /sbin/sysctl; then
5941      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5942    elif test -x /usr/sbin/sysctl; then
5943      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5944    else
5945      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5946    fi
5947    # And add a safety zone
5948    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5949    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5950    ;;
5951
5952  interix*)
5953    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5954    lt_cv_sys_max_cmd_len=196608
5955    ;;
5956
5957  osf*)
5958    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5959    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5960    # nice to cause kernel panics so lets avoid the loop below.
5961    # First set a reasonable default.
5962    lt_cv_sys_max_cmd_len=16384
5963    #
5964    if test -x /sbin/sysconfig; then
5965      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5966        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5967      esac
5968    fi
5969    ;;
5970  sco3.2v5*)
5971    lt_cv_sys_max_cmd_len=102400
5972    ;;
5973  sysv5* | sco5v6* | sysv4.2uw2*)
5974    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5975    if test -n "$kargmax"; then
5976      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5977    else
5978      lt_cv_sys_max_cmd_len=32768
5979    fi
5980    ;;
5981  *)
5982    # If test is not a shell built-in, we'll probably end up computing a
5983    # maximum length that is only half of the actual maximum length, but
5984    # we can't tell.
5985    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5986    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5987               = "XX$teststring") >/dev/null 2>&1 &&
5988            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5989            lt_cv_sys_max_cmd_len=$new_result &&
5990            test $i != 17 # 1/2 MB should be enough
5991    do
5992      i=`expr $i + 1`
5993      teststring=$teststring$teststring
5994    done
5995    teststring=
5996    # Add a significant safety factor because C++ compilers can tack on massive
5997    # amounts of additional arguments before passing them to the linker.
5998    # It appears as though 1/2 is a usable value.
5999    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6000    ;;
6001  esac
6002
6003fi
6004
6005if test -n $lt_cv_sys_max_cmd_len ; then
6006  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6007echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6008else
6009  echo "$as_me:$LINENO: result: none" >&5
6010echo "${ECHO_T}none" >&6
6011fi
6012
6013
6014
6015
6016# Check for command to grab the raw symbol name followed by C symbol from nm.
6017echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6018echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6019if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6020  echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022
6023# These are sane defaults that work on at least a few old systems.
6024# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6025
6026# Character class describing NM global symbol codes.
6027symcode='[BCDEGRST]'
6028
6029# Regexp to match symbols that can be accessed directly from C.
6030sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6031
6032# Transform an extracted symbol line into a proper C declaration
6033lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6034
6035# Transform an extracted symbol line into symbol name and symbol address
6036lt_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'"
6037
6038# Define system-specific variables.
6039case $host_os in
6040aix*)
6041  symcode='[BCDT]'
6042  ;;
6043cygwin* | mingw* | pw32*)
6044  symcode='[ABCDGISTW]'
6045  ;;
6046hpux*) # Its linker distinguishes data from code symbols
6047  if test "$host_cpu" = ia64; then
6048    symcode='[ABCDEGRST]'
6049  fi
6050  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6051  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'"
6052  ;;
6053linux*)
6054  if test "$host_cpu" = ia64; then
6055    symcode='[ABCDGIRSTW]'
6056    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6057    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'"
6058  fi
6059  ;;
6060irix* | nonstopux*)
6061  symcode='[BCDEGRST]'
6062  ;;
6063osf*)
6064  symcode='[BCDEGQRST]'
6065  ;;
6066solaris*)
6067  symcode='[BDRT]'
6068  ;;
6069sco3.2v5*)
6070  symcode='[DT]'
6071  ;;
6072sysv4.2uw2*)
6073  symcode='[DT]'
6074  ;;
6075sysv5* | sco5v6* | unixware* | OpenUNIX*)
6076  symcode='[ABDT]'
6077  ;;
6078sysv4)
6079  symcode='[DFNSTU]'
6080  ;;
6081esac
6082
6083# Handle CRLF in mingw tool chain
6084opt_cr=
6085case $build_os in
6086mingw*)
6087  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6088  ;;
6089esac
6090
6091# If we're using GNU nm, then use its standard symbol codes.
6092case `$NM -V 2>&1` in
6093*GNU* | *'with BFD'*)
6094  symcode='[ABCDGIRSTW]' ;;
6095esac
6096
6097# Try without a prefix undercore, then with it.
6098for ac_symprfx in "" "_"; do
6099
6100  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6101  symxfrm="\\1 $ac_symprfx\\2 \\2"
6102
6103  # Write the raw and C identifiers.
6104  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6105
6106  # Check to see that the pipe works correctly.
6107  pipe_works=no
6108
6109  rm -f conftest*
6110  cat > conftest.$ac_ext <<EOF
6111#ifdef __cplusplus
6112extern "C" {
6113#endif
6114char nm_test_var;
6115void nm_test_func(){}
6116#ifdef __cplusplus
6117}
6118#endif
6119int main(){nm_test_var='a';nm_test_func();return(0);}
6120EOF
6121
6122  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123  (eval $ac_compile) 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; then
6127    # Now try to grab the symbols.
6128    nlist=conftest.nm
6129    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6130  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6131  ac_status=$?
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); } && test -s "$nlist"; then
6134      # Try sorting and uniquifying the output.
6135      if sort "$nlist" | uniq > "$nlist"T; then
6136        mv -f "$nlist"T "$nlist"
6137      else
6138        rm -f "$nlist"T
6139      fi
6140
6141      # Make sure that we snagged all the symbols we need.
6142      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6143        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6144          cat <<EOF > conftest.$ac_ext
6145#ifdef __cplusplus
6146extern "C" {
6147#endif
6148
6149EOF
6150          # Now generate the symbol file.
6151          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6152
6153          cat <<EOF >> conftest.$ac_ext
6154#if defined (__STDC__) && __STDC__
6155# define lt_ptr_t void *
6156#else
6157# define lt_ptr_t char *
6158# define const
6159#endif
6160
6161/* The mapping between symbol names and symbols. */
6162const struct {
6163  const char *name;
6164  lt_ptr_t address;
6165}
6166lt_preloaded_symbols[] =
6167{
6168EOF
6169          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6170          cat <<\EOF >> conftest.$ac_ext
6171  {0, (lt_ptr_t) 0}
6172};
6173
6174#ifdef __cplusplus
6175}
6176#endif
6177EOF
6178          # Now try linking the two files.
6179          mv conftest.$ac_objext conftstm.$ac_objext
6180          lt_save_LIBS="$LIBS"
6181          lt_save_CFLAGS="$CFLAGS"
6182          LIBS="conftstm.$ac_objext"
6183          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6184          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6185  (eval $ac_link) 2>&5
6186  ac_status=$?
6187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6189            pipe_works=yes
6190          fi
6191          LIBS="$lt_save_LIBS"
6192          CFLAGS="$lt_save_CFLAGS"
6193        else
6194          echo "cannot find nm_test_func in $nlist" >&5
6195        fi
6196      else
6197        echo "cannot find nm_test_var in $nlist" >&5
6198      fi
6199    else
6200      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6201    fi
6202  else
6203    echo "$progname: failed program was:" >&5
6204    cat conftest.$ac_ext >&5
6205  fi
6206  rm -f conftest* conftst*
6207
6208  # Do not use the global_symbol_pipe unless it works.
6209  if test "$pipe_works" = yes; then
6210    break
6211  else
6212    lt_cv_sys_global_symbol_pipe=
6213  fi
6214done
6215
6216fi
6217
6218if test -z "$lt_cv_sys_global_symbol_pipe"; then
6219  lt_cv_sys_global_symbol_to_cdecl=
6220fi
6221if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6222  echo "$as_me:$LINENO: result: failed" >&5
6223echo "${ECHO_T}failed" >&6
6224else
6225  echo "$as_me:$LINENO: result: ok" >&5
6226echo "${ECHO_T}ok" >&6
6227fi
6228
6229echo "$as_me:$LINENO: checking for objdir" >&5
6230echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6231if test "${lt_cv_objdir+set}" = set; then
6232  echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234  rm -f .libs 2>/dev/null
6235mkdir .libs 2>/dev/null
6236if test -d .libs; then
6237  lt_cv_objdir=.libs
6238else
6239  # MS-DOS does not allow filenames that begin with a dot.
6240  lt_cv_objdir=_libs
6241fi
6242rmdir .libs 2>/dev/null
6243fi
6244echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6245echo "${ECHO_T}$lt_cv_objdir" >&6
6246objdir=$lt_cv_objdir
6247
6248
6249
6250
6251
6252case $host_os in
6253aix3*)
6254  # AIX sometimes has problems with the GCC collect2 program.  For some
6255  # reason, if we set the COLLECT_NAMES environment variable, the problems
6256  # vanish in a puff of smoke.
6257  if test "X${COLLECT_NAMES+set}" != Xset; then
6258    COLLECT_NAMES=
6259    export COLLECT_NAMES
6260  fi
6261  ;;
6262esac
6263
6264# Sed substitution that helps us do robust quoting.  It backslashifies
6265# metacharacters that are still active within double-quoted strings.
6266Xsed='sed -e 1s/^X//'
6267sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6268
6269# Same as above, but do not quote variable references.
6270double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6271
6272# Sed substitution to delay expansion of an escaped shell variable in a
6273# double_quote_subst'ed string.
6274delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6275
6276# Sed substitution to avoid accidental globbing in evaled expressions
6277no_glob_subst='s/\*/\\\*/g'
6278
6279# Constants:
6280rm="rm -f"
6281
6282# Global variables:
6283default_ofile=libtool
6284can_build_shared=yes
6285
6286# All known linkers require a `.a' archive for static linking (except MSVC,
6287# which needs '.lib').
6288libext=a
6289ltmain="$ac_aux_dir/ltmain.sh"
6290ofile="$default_ofile"
6291with_gnu_ld="$lt_cv_prog_gnu_ld"
6292
6293if test -n "$ac_tool_prefix"; then
6294  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6295set dummy ${ac_tool_prefix}ar; ac_word=$2
6296echo "$as_me:$LINENO: checking for $ac_word" >&5
6297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298if test "${ac_cv_prog_AR+set}" = set; then
6299  echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301  if test -n "$AR"; then
6302  ac_cv_prog_AR="$AR" # Let the user override the test.
6303else
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307  IFS=$as_save_IFS
6308  test -z "$as_dir" && as_dir=.
6309  for ac_exec_ext in '' $ac_executable_extensions; do
6310  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311    ac_cv_prog_AR="${ac_tool_prefix}ar"
6312    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313    break 2
6314  fi
6315done
6316done
6317
6318fi
6319fi
6320AR=$ac_cv_prog_AR
6321if test -n "$AR"; then
6322  echo "$as_me:$LINENO: result: $AR" >&5
6323echo "${ECHO_T}$AR" >&6
6324else
6325  echo "$as_me:$LINENO: result: no" >&5
6326echo "${ECHO_T}no" >&6
6327fi
6328
6329fi
6330if test -z "$ac_cv_prog_AR"; then
6331  ac_ct_AR=$AR
6332  # Extract the first word of "ar", so it can be a program name with args.
6333set dummy ar; ac_word=$2
6334echo "$as_me:$LINENO: checking for $ac_word" >&5
6335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6336if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6337  echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339  if test -n "$ac_ct_AR"; then
6340  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345  IFS=$as_save_IFS
6346  test -z "$as_dir" && as_dir=.
6347  for ac_exec_ext in '' $ac_executable_extensions; do
6348  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349    ac_cv_prog_ac_ct_AR="ar"
6350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351    break 2
6352  fi
6353done
6354done
6355
6356  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6357fi
6358fi
6359ac_ct_AR=$ac_cv_prog_ac_ct_AR
6360if test -n "$ac_ct_AR"; then
6361  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6362echo "${ECHO_T}$ac_ct_AR" >&6
6363else
6364  echo "$as_me:$LINENO: result: no" >&5
6365echo "${ECHO_T}no" >&6
6366fi
6367
6368  AR=$ac_ct_AR
6369else
6370  AR="$ac_cv_prog_AR"
6371fi
6372
6373if test -n "$ac_tool_prefix"; then
6374  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6375set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6376echo "$as_me:$LINENO: checking for $ac_word" >&5
6377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6378if test "${ac_cv_prog_RANLIB+set}" = set; then
6379  echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381  if test -n "$RANLIB"; then
6382  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6383else
6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387  IFS=$as_save_IFS
6388  test -z "$as_dir" && as_dir=.
6389  for ac_exec_ext in '' $ac_executable_extensions; do
6390  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6391    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6392    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393    break 2
6394  fi
6395done
6396done
6397
6398fi
6399fi
6400RANLIB=$ac_cv_prog_RANLIB
6401if test -n "$RANLIB"; then
6402  echo "$as_me:$LINENO: result: $RANLIB" >&5
6403echo "${ECHO_T}$RANLIB" >&6
6404else
6405  echo "$as_me:$LINENO: result: no" >&5
6406echo "${ECHO_T}no" >&6
6407fi
6408
6409fi
6410if test -z "$ac_cv_prog_RANLIB"; then
6411  ac_ct_RANLIB=$RANLIB
6412  # Extract the first word of "ranlib", so it can be a program name with args.
6413set dummy ranlib; ac_word=$2
6414echo "$as_me:$LINENO: checking for $ac_word" >&5
6415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6416if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6417  echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419  if test -n "$ac_ct_RANLIB"; then
6420  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  test -z "$as_dir" && as_dir=.
6427  for ac_exec_ext in '' $ac_executable_extensions; do
6428  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429    ac_cv_prog_ac_ct_RANLIB="ranlib"
6430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431    break 2
6432  fi
6433done
6434done
6435
6436  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6437fi
6438fi
6439ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6440if test -n "$ac_ct_RANLIB"; then
6441  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6442echo "${ECHO_T}$ac_ct_RANLIB" >&6
6443else
6444  echo "$as_me:$LINENO: result: no" >&5
6445echo "${ECHO_T}no" >&6
6446fi
6447
6448  RANLIB=$ac_ct_RANLIB
6449else
6450  RANLIB="$ac_cv_prog_RANLIB"
6451fi
6452
6453if test -n "$ac_tool_prefix"; then
6454  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6455set dummy ${ac_tool_prefix}strip; ac_word=$2
6456echo "$as_me:$LINENO: checking for $ac_word" >&5
6457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6458if test "${ac_cv_prog_STRIP+set}" = set; then
6459  echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461  if test -n "$STRIP"; then
6462  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6463else
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467  IFS=$as_save_IFS
6468  test -z "$as_dir" && as_dir=.
6469  for ac_exec_ext in '' $ac_executable_extensions; do
6470  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6472    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473    break 2
6474  fi
6475done
6476done
6477
6478fi
6479fi
6480STRIP=$ac_cv_prog_STRIP
6481if test -n "$STRIP"; then
6482  echo "$as_me:$LINENO: result: $STRIP" >&5
6483echo "${ECHO_T}$STRIP" >&6
6484else
6485  echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
6487fi
6488
6489fi
6490if test -z "$ac_cv_prog_STRIP"; then
6491  ac_ct_STRIP=$STRIP
6492  # Extract the first word of "strip", so it can be a program name with args.
6493set dummy strip; ac_word=$2
6494echo "$as_me:$LINENO: checking for $ac_word" >&5
6495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6496if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6497  echo $ECHO_N "(cached) $ECHO_C" >&6
6498else
6499  if test -n "$ac_ct_STRIP"; then
6500  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505  IFS=$as_save_IFS
6506  test -z "$as_dir" && as_dir=.
6507  for ac_exec_ext in '' $ac_executable_extensions; do
6508  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509    ac_cv_prog_ac_ct_STRIP="strip"
6510    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511    break 2
6512  fi
6513done
6514done
6515
6516  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6517fi
6518fi
6519ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6520if test -n "$ac_ct_STRIP"; then
6521  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6522echo "${ECHO_T}$ac_ct_STRIP" >&6
6523else
6524  echo "$as_me:$LINENO: result: no" >&5
6525echo "${ECHO_T}no" >&6
6526fi
6527
6528  STRIP=$ac_ct_STRIP
6529else
6530  STRIP="$ac_cv_prog_STRIP"
6531fi
6532
6533
6534old_CC="$CC"
6535old_CFLAGS="$CFLAGS"
6536
6537# Set sane defaults for various variables
6538test -z "$AR" && AR=ar
6539test -z "$AR_FLAGS" && AR_FLAGS=cru
6540test -z "$AS" && AS=as
6541test -z "$CC" && CC=cc
6542test -z "$LTCC" && LTCC=$CC
6543test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6544test -z "$DLLTOOL" && DLLTOOL=dlltool
6545test -z "$LD" && LD=ld
6546test -z "$LN_S" && LN_S="ln -s"
6547test -z "$MAGIC_CMD" && MAGIC_CMD=file
6548test -z "$NM" && NM=nm
6549test -z "$SED" && SED=sed
6550test -z "$OBJDUMP" && OBJDUMP=objdump
6551test -z "$RANLIB" && RANLIB=:
6552test -z "$STRIP" && STRIP=:
6553test -z "$ac_objext" && ac_objext=o
6554
6555# Determine commands to create old-style static archives.
6556old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6557old_postinstall_cmds='chmod 644 $oldlib'
6558old_postuninstall_cmds=
6559
6560if test -n "$RANLIB"; then
6561  case $host_os in
6562  openbsd*)
6563    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6564    ;;
6565  *)
6566    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6567    ;;
6568  esac
6569  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6570fi
6571
6572for cc_temp in $compiler""; do
6573  case $cc_temp in
6574    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6575    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6576    \-*) ;;
6577    *) break;;
6578  esac
6579done
6580cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6581
6582
6583# Only perform the check for file, if the check method requires it
6584case $deplibs_check_method in
6585file_magic*)
6586  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6587    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6588echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6589if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6590  echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592  case $MAGIC_CMD in
6593[\\/*] |  ?:[\\/]*)
6594  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6595  ;;
6596*)
6597  lt_save_MAGIC_CMD="$MAGIC_CMD"
6598  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6599  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6600  for ac_dir in $ac_dummy; do
6601    IFS="$lt_save_ifs"
6602    test -z "$ac_dir" && ac_dir=.
6603    if test -f $ac_dir/${ac_tool_prefix}file; then
6604      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6605      if test -n "$file_magic_test_file"; then
6606        case $deplibs_check_method in
6607        "file_magic "*)
6608          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6609          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6610          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6611            $EGREP "$file_magic_regex" > /dev/null; then
6612            :
6613          else
6614            cat <<EOF 1>&2
6615
6616*** Warning: the command libtool uses to detect shared libraries,
6617*** $file_magic_cmd, produces output that libtool cannot recognize.
6618*** The result is that libtool may fail to recognize shared libraries
6619*** as such.  This will affect the creation of libtool libraries that
6620*** depend on shared libraries, but programs linked with such libtool
6621*** libraries will work regardless of this problem.  Nevertheless, you
6622*** may want to report the problem to your system manager and/or to
6623*** bug-libtool@gnu.org
6624
6625EOF
6626          fi ;;
6627        esac
6628      fi
6629      break
6630    fi
6631  done
6632  IFS="$lt_save_ifs"
6633  MAGIC_CMD="$lt_save_MAGIC_CMD"
6634  ;;
6635esac
6636fi
6637
6638MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6639if test -n "$MAGIC_CMD"; then
6640  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6641echo "${ECHO_T}$MAGIC_CMD" >&6
6642else
6643  echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6
6645fi
6646
6647if test -z "$lt_cv_path_MAGIC_CMD"; then
6648  if test -n "$ac_tool_prefix"; then
6649    echo "$as_me:$LINENO: checking for file" >&5
6650echo $ECHO_N "checking for file... $ECHO_C" >&6
6651if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6652  echo $ECHO_N "(cached) $ECHO_C" >&6
6653else
6654  case $MAGIC_CMD in
6655[\\/*] |  ?:[\\/]*)
6656  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6657  ;;
6658*)
6659  lt_save_MAGIC_CMD="$MAGIC_CMD"
6660  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6661  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6662  for ac_dir in $ac_dummy; do
6663    IFS="$lt_save_ifs"
6664    test -z "$ac_dir" && ac_dir=.
6665    if test -f $ac_dir/file; then
6666      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6667      if test -n "$file_magic_test_file"; then
6668        case $deplibs_check_method in
6669        "file_magic "*)
6670          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6671          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6672          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6673            $EGREP "$file_magic_regex" > /dev/null; then
6674            :
6675          else
6676            cat <<EOF 1>&2
6677
6678*** Warning: the command libtool uses to detect shared libraries,
6679*** $file_magic_cmd, produces output that libtool cannot recognize.
6680*** The result is that libtool may fail to recognize shared libraries
6681*** as such.  This will affect the creation of libtool libraries that
6682*** depend on shared libraries, but programs linked with such libtool
6683*** libraries will work regardless of this problem.  Nevertheless, you
6684*** may want to report the problem to your system manager and/or to
6685*** bug-libtool@gnu.org
6686
6687EOF
6688          fi ;;
6689        esac
6690      fi
6691      break
6692    fi
6693  done
6694  IFS="$lt_save_ifs"
6695  MAGIC_CMD="$lt_save_MAGIC_CMD"
6696  ;;
6697esac
6698fi
6699
6700MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6701if test -n "$MAGIC_CMD"; then
6702  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6703echo "${ECHO_T}$MAGIC_CMD" >&6
6704else
6705  echo "$as_me:$LINENO: result: no" >&5
6706echo "${ECHO_T}no" >&6
6707fi
6708
6709  else
6710    MAGIC_CMD=:
6711  fi
6712fi
6713
6714  fi
6715  ;;
6716esac
6717
6718enable_dlopen=no
6719enable_win32_dll=no
6720
6721# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6722if test "${enable_libtool_lock+set}" = set; then
6723  enableval="$enable_libtool_lock"
6724
6725fi;
6726test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6727
6728
6729# Check whether --with-pic or --without-pic was given.
6730if test "${with_pic+set}" = set; then
6731  withval="$with_pic"
6732  pic_mode="$withval"
6733else
6734  pic_mode=default
6735fi;
6736test -z "$pic_mode" && pic_mode=default
6737
6738# Use C for the default configuration in the libtool script
6739tagname=
6740lt_save_CC="$CC"
6741ac_ext=c
6742ac_cpp='$CPP $CPPFLAGS'
6743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746
6747
6748# Source file extension for C test sources.
6749ac_ext=c
6750
6751# Object file extension for compiled C test sources.
6752objext=o
6753objext=$objext
6754
6755# Code to be used in simple compile tests
6756lt_simple_compile_test_code="int some_variable = 0;\n"
6757
6758# Code to be used in simple link tests
6759lt_simple_link_test_code='int main(){return(0);}\n'
6760
6761
6762# If no C compiler was specified, use CC.
6763LTCC=${LTCC-"$CC"}
6764
6765# If no C compiler flags were specified, use CFLAGS.
6766LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6767
6768# Allow CC to be a program name with arguments.
6769compiler=$CC
6770
6771
6772# save warnings/boilerplate of simple test code
6773ac_outfile=conftest.$ac_objext
6774printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6775eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6776_lt_compiler_boilerplate=`cat conftest.err`
6777$rm conftest*
6778
6779ac_outfile=conftest.$ac_objext
6780printf "$lt_simple_link_test_code" >conftest.$ac_ext
6781eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6782_lt_linker_boilerplate=`cat conftest.err`
6783$rm conftest*
6784
6785
6786## CAVEAT EMPTOR:
6787## There is no encapsulation within the following macros, do not change
6788## the running order or otherwise move them around unless you know exactly
6789## what you are doing...
6790
6791lt_prog_compiler_no_builtin_flag=
6792
6793if test "$GCC" = yes; then
6794  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6795
6796
6797echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6798echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6799if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6800  echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802  lt_cv_prog_compiler_rtti_exceptions=no
6803  ac_outfile=conftest.$ac_objext
6804   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6805   lt_compiler_flag="-fno-rtti -fno-exceptions"
6806   # Insert the option either (1) after the last *FLAGS variable, or
6807   # (2) before a word containing "conftest.", or (3) at the end.
6808   # Note that $ac_compile itself does not contain backslashes and begins
6809   # with a dollar sign (not a hyphen), so the echo should work correctly.
6810   # The option is referenced via a variable to avoid confusing sed.
6811   lt_compile=`echo "$ac_compile" | $SED \
6812   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6813   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6814   -e 's:$: $lt_compiler_flag:'`
6815   (eval echo "\"\$as_me:6815: $lt_compile\"" >&5)
6816   (eval "$lt_compile" 2>conftest.err)
6817   ac_status=$?
6818   cat conftest.err >&5
6819   echo "$as_me:6819: \$? = $ac_status" >&5
6820   if (exit $ac_status) && test -s "$ac_outfile"; then
6821     # The compiler can only warn and ignore the option if not recognized
6822     # So say no if there are warnings other than the usual output.
6823     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6824     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6825     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6826       lt_cv_prog_compiler_rtti_exceptions=yes
6827     fi
6828   fi
6829   $rm conftest*
6830
6831fi
6832echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6833echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6834
6835if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6836    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6837else
6838    :
6839fi
6840
6841fi
6842
6843lt_prog_compiler_wl=
6844lt_prog_compiler_pic=
6845lt_prog_compiler_static=
6846
6847echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6848echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6849
6850  if test "$GCC" = yes; then
6851    lt_prog_compiler_wl='-Wl,'
6852    lt_prog_compiler_static='-static'
6853
6854    case $host_os in
6855      aix*)
6856      # All AIX code is PIC.
6857      if test "$host_cpu" = ia64; then
6858        # AIX 5 now supports IA64 processor
6859        lt_prog_compiler_static='-Bstatic'
6860      fi
6861      ;;
6862
6863    amigaos*)
6864      # FIXME: we need at least 68020 code to build shared libraries, but
6865      # adding the `-m68020' flag to GCC prevents building anything better,
6866      # like `-m68040'.
6867      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6868      ;;
6869
6870    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6871      # PIC is the default for these OSes.
6872      ;;
6873
6874    mingw* | pw32* | os2*)
6875      # This hack is so that the source file can tell whether it is being
6876      # built for inclusion in a dll (and should export symbols for example).
6877      lt_prog_compiler_pic='-DDLL_EXPORT'
6878      ;;
6879
6880    darwin* | rhapsody*)
6881      # PIC is the default on this platform
6882      # Common symbols not allowed in MH_DYLIB files
6883      lt_prog_compiler_pic='-fno-common'
6884      ;;
6885
6886    interix3*)
6887      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6888      # Instead, we relocate shared libraries at runtime.
6889      ;;
6890
6891    msdosdjgpp*)
6892      # Just because we use GCC doesn't mean we suddenly get shared libraries
6893      # on systems that don't support them.
6894      lt_prog_compiler_can_build_shared=no
6895      enable_shared=no
6896      ;;
6897
6898    sysv4*MP*)
6899      if test -d /usr/nec; then
6900        lt_prog_compiler_pic=-Kconform_pic
6901      fi
6902      ;;
6903
6904    hpux*)
6905      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6906      # not for PA HP-UX.
6907      case $host_cpu in
6908      hppa*64*|ia64*)
6909        # +Z the default
6910        ;;
6911      *)
6912        lt_prog_compiler_pic='-fPIC'
6913        ;;
6914      esac
6915      ;;
6916
6917    *)
6918      lt_prog_compiler_pic='-fPIC'
6919      ;;
6920    esac
6921  else
6922    # PORTME Check for flag to pass linker flags through the system compiler.
6923    case $host_os in
6924    aix*)
6925      lt_prog_compiler_wl='-Wl,'
6926      if test "$host_cpu" = ia64; then
6927        # AIX 5 now supports IA64 processor
6928        lt_prog_compiler_static='-Bstatic'
6929      else
6930        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6931      fi
6932      ;;
6933      darwin*)
6934        # PIC is the default on this platform
6935        # Common symbols not allowed in MH_DYLIB files
6936       case $cc_basename in
6937         xlc*)
6938         lt_prog_compiler_pic='-qnocommon'
6939         lt_prog_compiler_wl='-Wl,'
6940         ;;
6941       esac
6942       ;;
6943
6944    mingw* | pw32* | os2*)
6945      # This hack is so that the source file can tell whether it is being
6946      # built for inclusion in a dll (and should export symbols for example).
6947      lt_prog_compiler_pic='-DDLL_EXPORT'
6948      ;;
6949
6950    hpux9* | hpux10* | hpux11*)
6951      lt_prog_compiler_wl='-Wl,'
6952      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6953      # not for PA HP-UX.
6954      case $host_cpu in
6955      hppa*64*|ia64*)
6956        # +Z the default
6957        ;;
6958      *)
6959        lt_prog_compiler_pic='+Z'
6960        ;;
6961      esac
6962      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6963      lt_prog_compiler_static='${wl}-a ${wl}archive'
6964      ;;
6965
6966    irix5* | irix6* | nonstopux*)
6967      lt_prog_compiler_wl='-Wl,'
6968      # PIC (with -KPIC) is the default.
6969      lt_prog_compiler_static='-non_shared'
6970      ;;
6971
6972    newsos6)
6973      lt_prog_compiler_pic='-KPIC'
6974      lt_prog_compiler_static='-Bstatic'
6975      ;;
6976
6977    linux*)
6978      case $cc_basename in
6979      icc* | ecc*)
6980        lt_prog_compiler_wl='-Wl,'
6981        lt_prog_compiler_pic='-KPIC'
6982        lt_prog_compiler_static='-static'
6983        ;;
6984      pgcc* | pgf77* | pgf90* | pgf95*)
6985        # Portland Group compilers (*not* the Pentium gcc compiler,
6986        # which looks to be a dead project)
6987        lt_prog_compiler_wl='-Wl,'
6988        lt_prog_compiler_pic='-fpic'
6989        lt_prog_compiler_static='-Bstatic'
6990        ;;
6991      ccc*)
6992        lt_prog_compiler_wl='-Wl,'
6993        # All Alpha code is PIC.
6994        lt_prog_compiler_static='-non_shared'
6995        ;;
6996      esac
6997      ;;
6998
6999    osf3* | osf4* | osf5*)
7000      lt_prog_compiler_wl='-Wl,'
7001      # All OSF/1 code is PIC.
7002      lt_prog_compiler_static='-non_shared'
7003      ;;
7004
7005    solaris*)
7006      lt_prog_compiler_pic='-KPIC'
7007      lt_prog_compiler_static='-Bstatic'
7008      case $cc_basename in
7009      f77* | f90* | f95*)
7010        lt_prog_compiler_wl='-Qoption ld ';;
7011      *)
7012        lt_prog_compiler_wl='-Wl,';;
7013      esac
7014      ;;
7015
7016    sunos4*)
7017      lt_prog_compiler_wl='-Qoption ld '
7018      lt_prog_compiler_pic='-PIC'
7019      lt_prog_compiler_static='-Bstatic'
7020      ;;
7021
7022    sysv4 | sysv4.2uw2* | sysv4.3*)
7023      lt_prog_compiler_wl='-Wl,'
7024      lt_prog_compiler_pic='-KPIC'
7025      lt_prog_compiler_static='-Bstatic'
7026      ;;
7027
7028    sysv4*MP*)
7029      if test -d /usr/nec ;then
7030        lt_prog_compiler_pic='-Kconform_pic'
7031        lt_prog_compiler_static='-Bstatic'
7032      fi
7033      ;;
7034
7035    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7036      lt_prog_compiler_wl='-Wl,'
7037      lt_prog_compiler_pic='-KPIC'
7038      lt_prog_compiler_static='-Bstatic'
7039      ;;
7040
7041    unicos*)
7042      lt_prog_compiler_wl='-Wl,'
7043      lt_prog_compiler_can_build_shared=no
7044      ;;
7045
7046    uts4*)
7047      lt_prog_compiler_pic='-pic'
7048      lt_prog_compiler_static='-Bstatic'
7049      ;;
7050
7051    *)
7052      lt_prog_compiler_can_build_shared=no
7053      ;;
7054    esac
7055  fi
7056
7057echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7058echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7059
7060#
7061# Check to make sure the PIC flag actually works.
7062#
7063if test -n "$lt_prog_compiler_pic"; then
7064
7065echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7066echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7067if test "${lt_prog_compiler_pic_works+set}" = set; then
7068  echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070  lt_prog_compiler_pic_works=no
7071  ac_outfile=conftest.$ac_objext
7072   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7073   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7074   # Insert the option either (1) after the last *FLAGS variable, or
7075   # (2) before a word containing "conftest.", or (3) at the end.
7076   # Note that $ac_compile itself does not contain backslashes and begins
7077   # with a dollar sign (not a hyphen), so the echo should work correctly.
7078   # The option is referenced via a variable to avoid confusing sed.
7079   lt_compile=`echo "$ac_compile" | $SED \
7080   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7081   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7082   -e 's:$: $lt_compiler_flag:'`
7083   (eval echo "\"\$as_me:7083: $lt_compile\"" >&5)
7084   (eval "$lt_compile" 2>conftest.err)
7085   ac_status=$?
7086   cat conftest.err >&5
7087   echo "$as_me:7087: \$? = $ac_status" >&5
7088   if (exit $ac_status) && test -s "$ac_outfile"; then
7089     # The compiler can only warn and ignore the option if not recognized
7090     # So say no if there are warnings other than the usual output.
7091     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7092     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7093     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7094       lt_prog_compiler_pic_works=yes
7095     fi
7096   fi
7097   $rm conftest*
7098
7099fi
7100echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7101echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7102
7103if test x"$lt_prog_compiler_pic_works" = xyes; then
7104    case $lt_prog_compiler_pic in
7105     "" | " "*) ;;
7106     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7107     esac
7108else
7109    lt_prog_compiler_pic=
7110     lt_prog_compiler_can_build_shared=no
7111fi
7112
7113fi
7114case $host_os in
7115  # For platforms which do not support PIC, -DPIC is meaningless:
7116  *djgpp*)
7117    lt_prog_compiler_pic=
7118    ;;
7119  *)
7120    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7121    ;;
7122esac
7123
7124#
7125# Check to make sure the static flag actually works.
7126#
7127wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7128echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7129echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7130if test "${lt_prog_compiler_static_works+set}" = set; then
7131  echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133  lt_prog_compiler_static_works=no
7134   save_LDFLAGS="$LDFLAGS"
7135   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7136   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7137   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7138     # The linker can only warn and ignore the option if not recognized
7139     # So say no if there are warnings
7140     if test -s conftest.err; then
7141       # Append any errors to the config.log.
7142       cat conftest.err 1>&5
7143       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7144       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7145       if diff conftest.exp conftest.er2 >/dev/null; then
7146         lt_prog_compiler_static_works=yes
7147       fi
7148     else
7149       lt_prog_compiler_static_works=yes
7150     fi
7151   fi
7152   $rm conftest*
7153   LDFLAGS="$save_LDFLAGS"
7154
7155fi
7156echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7157echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7158
7159if test x"$lt_prog_compiler_static_works" = xyes; then
7160    :
7161else
7162    lt_prog_compiler_static=
7163fi
7164
7165
7166echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7167echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7168if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7169  echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
7171  lt_cv_prog_compiler_c_o=no
7172   $rm -r conftest 2>/dev/null
7173   mkdir conftest
7174   cd conftest
7175   mkdir out
7176   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7177
7178   lt_compiler_flag="-o out/conftest2.$ac_objext"
7179   # Insert the option either (1) after the last *FLAGS variable, or
7180   # (2) before a word containing "conftest.", or (3) at the end.
7181   # Note that $ac_compile itself does not contain backslashes and begins
7182   # with a dollar sign (not a hyphen), so the echo should work correctly.
7183   lt_compile=`echo "$ac_compile" | $SED \
7184   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7185   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7186   -e 's:$: $lt_compiler_flag:'`
7187   (eval echo "\"\$as_me:7187: $lt_compile\"" >&5)
7188   (eval "$lt_compile" 2>out/conftest.err)
7189   ac_status=$?
7190   cat out/conftest.err >&5
7191   echo "$as_me:7191: \$? = $ac_status" >&5
7192   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7193   then
7194     # The compiler can only warn and ignore the option if not recognized
7195     # So say no if there are warnings
7196     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7197     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7198     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7199       lt_cv_prog_compiler_c_o=yes
7200     fi
7201   fi
7202   chmod u+w . 2>&5
7203   $rm conftest*
7204   # SGI C++ compiler will create directory out/ii_files/ for
7205   # template instantiation
7206   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7207   $rm out/* && rmdir out
7208   cd ..
7209   rmdir conftest
7210   $rm conftest*
7211
7212fi
7213echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7214echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7215
7216
7217hard_links="nottested"
7218if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7219  # do not overwrite the value of need_locks provided by the user
7220  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7221echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7222  hard_links=yes
7223  $rm conftest*
7224  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7225  touch conftest.a
7226  ln conftest.a conftest.b 2>&5 || hard_links=no
7227  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7228  echo "$as_me:$LINENO: result: $hard_links" >&5
7229echo "${ECHO_T}$hard_links" >&6
7230  if test "$hard_links" = no; then
7231    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7232echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7233    need_locks=warn
7234  fi
7235else
7236  need_locks=no
7237fi
7238
7239echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7240echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7241
7242  runpath_var=
7243  allow_undefined_flag=
7244  enable_shared_with_static_runtimes=no
7245  archive_cmds=
7246  archive_expsym_cmds=
7247  old_archive_From_new_cmds=
7248  old_archive_from_expsyms_cmds=
7249  export_dynamic_flag_spec=
7250  whole_archive_flag_spec=
7251  thread_safe_flag_spec=
7252  hardcode_libdir_flag_spec=
7253  hardcode_libdir_flag_spec_ld=
7254  hardcode_libdir_separator=
7255  hardcode_direct=no
7256  hardcode_minus_L=no
7257  hardcode_shlibpath_var=unsupported
7258  link_all_deplibs=unknown
7259  hardcode_automatic=no
7260  module_cmds=
7261  module_expsym_cmds=
7262  always_export_symbols=no
7263  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7264  # include_expsyms should be a list of space-separated symbols to be *always*
7265  # included in the symbol list
7266  include_expsyms=
7267  # exclude_expsyms can be an extended regexp of symbols to exclude
7268  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7269  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7270  # as well as any symbol that contains `d'.
7271  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7272  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7273  # platforms (ab)use it in PIC code, but their linkers get confused if
7274  # the symbol is explicitly referenced.  Since portable code cannot
7275  # rely on this symbol name, it's probably fine to never include it in
7276  # preloaded symbol tables.
7277  extract_expsyms_cmds=
7278  # Just being paranoid about ensuring that cc_basename is set.
7279  for cc_temp in $compiler""; do
7280  case $cc_temp in
7281    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7282    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7283    \-*) ;;
7284    *) break;;
7285  esac
7286done
7287cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7288
7289  case $host_os in
7290  cygwin* | mingw* | pw32*)
7291    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7292    # When not using gcc, we currently assume that we are using
7293    # Microsoft Visual C++.
7294    if test "$GCC" != yes; then
7295      with_gnu_ld=no
7296    fi
7297    ;;
7298  interix*)
7299    # we just hope/assume this is gcc and not c89 (= MSVC++)
7300    with_gnu_ld=yes
7301    ;;
7302  openbsd*)
7303    with_gnu_ld=no
7304    ;;
7305  esac
7306
7307  ld_shlibs=yes
7308  if test "$with_gnu_ld" = yes; then
7309    # If archive_cmds runs LD, not CC, wlarc should be empty
7310    wlarc='${wl}'
7311
7312    # Set some defaults for GNU ld with shared library support. These
7313    # are reset later if shared libraries are not supported. Putting them
7314    # here allows them to be overridden if necessary.
7315    runpath_var=LD_RUN_PATH
7316    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7317    export_dynamic_flag_spec='${wl}--export-dynamic'
7318    # ancient GNU ld didn't support --whole-archive et. al.
7319    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7320        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7321      else
7322        whole_archive_flag_spec=
7323    fi
7324    supports_anon_versioning=no
7325    case `$LD -v 2>/dev/null` in
7326      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7327      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7328      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7329      *\ 2.11.*) ;; # other 2.11 versions
7330      *) supports_anon_versioning=yes ;;
7331    esac
7332
7333    # See if GNU ld supports shared libraries.
7334    case $host_os in
7335    aix3* | aix4* | aix5*)
7336      # On AIX/PPC, the GNU linker is very broken
7337      if test "$host_cpu" != ia64; then
7338        ld_shlibs=no
7339        cat <<EOF 1>&2
7340
7341*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7342*** to be unable to reliably create shared libraries on AIX.
7343*** Therefore, libtool is disabling shared libraries support.  If you
7344*** really care for shared libraries, you may want to modify your PATH
7345*** so that a non-GNU linker is found, and then restart.
7346
7347EOF
7348      fi
7349      ;;
7350
7351    amigaos*)
7352      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)'
7353      hardcode_libdir_flag_spec='-L$libdir'
7354      hardcode_minus_L=yes
7355
7356      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7357      # that the semantics of dynamic libraries on AmigaOS, at least up
7358      # to version 4, is to share data among multiple programs linked
7359      # with the same dynamic library.  Since this doesn't match the
7360      # behavior of shared libraries on other platforms, we can't use
7361      # them.
7362      ld_shlibs=no
7363      ;;
7364
7365    beos*)
7366      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7367        allow_undefined_flag=unsupported
7368        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7369        # support --undefined.  This deserves some investigation.  FIXME
7370        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7371      else
7372        ld_shlibs=no
7373      fi
7374      ;;
7375
7376    cygwin* | mingw* | pw32*)
7377      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7378      # as there is no search path for DLLs.
7379      hardcode_libdir_flag_spec='-L$libdir'
7380      allow_undefined_flag=unsupported
7381      always_export_symbols=no
7382      enable_shared_with_static_runtimes=yes
7383      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7384
7385      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7386        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7387        # If the export-symbols file already is a .def file (1st line
7388        # is EXPORTS), use it as is; otherwise, prepend...
7389        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7390          cp $export_symbols $output_objdir/$soname.def;
7391        else
7392          echo EXPORTS > $output_objdir/$soname.def;
7393          cat $export_symbols >> $output_objdir/$soname.def;
7394        fi~
7395        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7396      else
7397        ld_shlibs=no
7398      fi
7399      ;;
7400
7401    interix3*)
7402      hardcode_direct=no
7403      hardcode_shlibpath_var=no
7404      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7405      export_dynamic_flag_spec='${wl}-E'
7406      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7407      # Instead, shared libraries are loaded at an image base (0x10000000 by
7408      # default) and relocated if they conflict, which is a slow very memory
7409      # consuming and fragmenting process.  To avoid this, we pick a random,
7410      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7411      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7412      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7413      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'
7414      ;;
7415
7416    linux*)
7417      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7418        tmp_addflag=
7419        case $cc_basename,$host_cpu in
7420        pgcc*)                          # Portland Group C compiler
7421          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'
7422          tmp_addflag=' $pic_flag'
7423          ;;
7424        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7425          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'
7426          tmp_addflag=' $pic_flag -Mnomain' ;;
7427        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7428          tmp_addflag=' -i_dynamic' ;;
7429        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7430          tmp_addflag=' -i_dynamic -nofor_main' ;;
7431        ifc* | ifort*)                  # Intel Fortran compiler
7432          tmp_addflag=' -nofor_main' ;;
7433        esac
7434        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7435
7436        if test $supports_anon_versioning = yes; then
7437          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7438  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7439  $echo "local: *; };" >> $output_objdir/$libname.ver~
7440          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7441        fi
7442      else
7443        ld_shlibs=no
7444      fi
7445      ;;
7446
7447    netbsd*)
7448      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7449        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7450        wlarc=
7451      else
7452        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7453        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7454      fi
7455      ;;
7456
7457    solaris*)
7458      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7459        ld_shlibs=no
7460        cat <<EOF 1>&2
7461
7462*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7463*** create shared libraries on Solaris systems.  Therefore, libtool
7464*** is disabling shared libraries support.  We urge you to upgrade GNU
7465*** binutils to release 2.9.1 or newer.  Another option is to modify
7466*** your PATH or compiler configuration so that the native linker is
7467*** used, and then restart.
7468
7469EOF
7470      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7471        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7472        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7473      else
7474        ld_shlibs=no
7475      fi
7476      ;;
7477
7478    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7479      case `$LD -v 2>&1` in
7480        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7481        ld_shlibs=no
7482        cat <<_LT_EOF 1>&2
7483
7484*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7485*** reliably create shared libraries on SCO systems.  Therefore, libtool
7486*** is disabling shared libraries support.  We urge you to upgrade GNU
7487*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7488*** your PATH or compiler configuration so that the native linker is
7489*** used, and then restart.
7490
7491_LT_EOF
7492        ;;
7493        *)
7494          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7495            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7496            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7497            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7498          else
7499            ld_shlibs=no
7500          fi
7501        ;;
7502      esac
7503      ;;
7504
7505    sunos4*)
7506      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7507      wlarc=
7508      hardcode_direct=yes
7509      hardcode_shlibpath_var=no
7510      ;;
7511
7512    *)
7513      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7514        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7515        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7516      else
7517        ld_shlibs=no
7518      fi
7519      ;;
7520    esac
7521
7522    if test "$ld_shlibs" = no; then
7523      runpath_var=
7524      hardcode_libdir_flag_spec=
7525      export_dynamic_flag_spec=
7526      whole_archive_flag_spec=
7527    fi
7528  else
7529    # PORTME fill in a description of your system's linker (not GNU ld)
7530    case $host_os in
7531    aix3*)
7532      allow_undefined_flag=unsupported
7533      always_export_symbols=yes
7534      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'
7535      # Note: this linker hardcodes the directories in LIBPATH if there
7536      # are no directories specified by -L.
7537      hardcode_minus_L=yes
7538      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7539        # Neither direct hardcoding nor static linking is supported with a
7540        # broken collect2.
7541        hardcode_direct=unsupported
7542      fi
7543      ;;
7544
7545    aix4* | aix5*)
7546      if test "$host_cpu" = ia64; then
7547        # On IA64, the linker does run time linking by default, so we don't
7548        # have to do anything special.
7549        aix_use_runtimelinking=no
7550        exp_sym_flag='-Bexport'
7551        no_entry_flag=""
7552      else
7553        # If we're using GNU nm, then we don't want the "-C" option.
7554        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7555        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7556          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'
7557        else
7558          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'
7559        fi
7560        aix_use_runtimelinking=no
7561
7562        # Test if we are trying to use run time linking or normal
7563        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7564        # need to do runtime linking.
7565        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7566          for ld_flag in $LDFLAGS; do
7567          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7568            aix_use_runtimelinking=yes
7569            break
7570          fi
7571          done
7572          ;;
7573        esac
7574
7575        exp_sym_flag='-bexport'
7576        no_entry_flag='-bnoentry'
7577      fi
7578
7579      # When large executables or shared objects are built, AIX ld can
7580      # have problems creating the table of contents.  If linking a library
7581      # or program results in "error TOC overflow" add -mminimal-toc to
7582      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7583      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7584
7585      archive_cmds=''
7586      hardcode_direct=yes
7587      hardcode_libdir_separator=':'
7588      link_all_deplibs=yes
7589
7590      if test "$GCC" = yes; then
7591        case $host_os in aix4.[012]|aix4.[012].*)
7592        # We only want to do this on AIX 4.2 and lower, the check
7593        # below for broken collect2 doesn't work under 4.3+
7594          collect2name=`${CC} -print-prog-name=collect2`
7595          if test -f "$collect2name" && \
7596           strings "$collect2name" | grep resolve_lib_name >/dev/null
7597          then
7598          # We have reworked collect2
7599          hardcode_direct=yes
7600          else
7601          # We have old collect2
7602          hardcode_direct=unsupported
7603          # It fails to find uninstalled libraries when the uninstalled
7604          # path is not listed in the libpath.  Setting hardcode_minus_L
7605          # to unsupported forces relinking
7606          hardcode_minus_L=yes
7607          hardcode_libdir_flag_spec='-L$libdir'
7608          hardcode_libdir_separator=
7609          fi
7610          ;;
7611        esac
7612        shared_flag='-shared'
7613        if test "$aix_use_runtimelinking" = yes; then
7614          shared_flag="$shared_flag "'${wl}-G'
7615        fi
7616      else
7617        # not using gcc
7618        if test "$host_cpu" = ia64; then
7619        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7620        # chokes on -Wl,-G. The following line is correct:
7621          shared_flag='-G'
7622        else
7623          if test "$aix_use_runtimelinking" = yes; then
7624            shared_flag='${wl}-G'
7625          else
7626            shared_flag='${wl}-bM:SRE'
7627          fi
7628        fi
7629      fi
7630
7631      # It seems that -bexpall does not export symbols beginning with
7632      # underscore (_), so it is better to generate a list of symbols to export.
7633      always_export_symbols=yes
7634      if test "$aix_use_runtimelinking" = yes; then
7635        # Warning - without using the other runtime loading flags (-brtl),
7636        # -berok will link without error, but may produce a broken library.
7637        allow_undefined_flag='-berok'
7638       # Determine the default libpath from the value encoded in an empty executable.
7639       cat >conftest.$ac_ext <<_ACEOF
7640/* confdefs.h.  */
7641_ACEOF
7642cat confdefs.h >>conftest.$ac_ext
7643cat >>conftest.$ac_ext <<_ACEOF
7644/* end confdefs.h.  */
7645
7646int
7647main ()
7648{
7649
7650  ;
7651  return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext conftest$ac_exeext
7655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656  (eval $ac_link) 2>conftest.er1
7657  ac_status=$?
7658  grep -v '^ *+' conftest.er1 >conftest.err
7659  rm -f conftest.er1
7660  cat conftest.err >&5
7661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662  (exit $ac_status); } &&
7663         { ac_try='test -z "$ac_c_werror_flag"
7664                         || test ! -s conftest.err'
7665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666  (eval $ac_try) 2>&5
7667  ac_status=$?
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); }; } &&
7670         { ac_try='test -s conftest$ac_exeext'
7671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672  (eval $ac_try) 2>&5
7673  ac_status=$?
7674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675  (exit $ac_status); }; }; then
7676
7677aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7678}'`
7679# Check for a 64-bit object if we didn't find anything.
7680if 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; }
7681}'`; fi
7682else
7683  echo "$as_me: failed program was:" >&5
7684sed 's/^/| /' conftest.$ac_ext >&5
7685
7686fi
7687rm -f conftest.err conftest.$ac_objext \
7688      conftest$ac_exeext conftest.$ac_ext
7689if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7690
7691       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7692        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"
7693       else
7694        if test "$host_cpu" = ia64; then
7695          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7696          allow_undefined_flag="-z nodefs"
7697          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"
7698        else
7699         # Determine the default libpath from the value encoded in an empty executable.
7700         cat >conftest.$ac_ext <<_ACEOF
7701/* confdefs.h.  */
7702_ACEOF
7703cat confdefs.h >>conftest.$ac_ext
7704cat >>conftest.$ac_ext <<_ACEOF
7705/* end confdefs.h.  */
7706
7707int
7708main ()
7709{
7710
7711  ;
7712  return 0;
7713}
7714_ACEOF
7715rm -f conftest.$ac_objext conftest$ac_exeext
7716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7717  (eval $ac_link) 2>conftest.er1
7718  ac_status=$?
7719  grep -v '^ *+' conftest.er1 >conftest.err
7720  rm -f conftest.er1
7721  cat conftest.err >&5
7722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723  (exit $ac_status); } &&
7724         { ac_try='test -z "$ac_c_werror_flag"
7725                         || test ! -s conftest.err'
7726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727  (eval $ac_try) 2>&5
7728  ac_status=$?
7729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730  (exit $ac_status); }; } &&
7731         { ac_try='test -s conftest$ac_exeext'
7732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733  (eval $ac_try) 2>&5
7734  ac_status=$?
7735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736  (exit $ac_status); }; }; then
7737
7738aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7739}'`
7740# Check for a 64-bit object if we didn't find anything.
7741if 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; }
7742}'`; fi
7743else
7744  echo "$as_me: failed program was:" >&5
7745sed 's/^/| /' conftest.$ac_ext >&5
7746
7747fi
7748rm -f conftest.err conftest.$ac_objext \
7749      conftest$ac_exeext conftest.$ac_ext
7750if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7751
7752         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7753          # Warning - without using the other run time loading flags,
7754          # -berok will link without error, but may produce a broken library.
7755          no_undefined_flag=' ${wl}-bernotok'
7756          allow_undefined_flag=' ${wl}-berok'
7757          # Exported symbols can be pulled into shared objects from archives
7758          whole_archive_flag_spec='$convenience'
7759          archive_cmds_need_lc=yes
7760          # This is similar to how AIX traditionally builds its shared libraries.
7761          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'
7762        fi
7763      fi
7764      ;;
7765
7766    amigaos*)
7767      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)'
7768      hardcode_libdir_flag_spec='-L$libdir'
7769      hardcode_minus_L=yes
7770      # see comment about different semantics on the GNU ld section
7771      ld_shlibs=no
7772      ;;
7773
7774    bsdi[45]*)
7775      export_dynamic_flag_spec=-rdynamic
7776      ;;
7777
7778    cygwin* | mingw* | pw32*)
7779      # When not using gcc, we currently assume that we are using
7780      # Microsoft Visual C++.
7781      # hardcode_libdir_flag_spec is actually meaningless, as there is
7782      # no search path for DLLs.
7783      hardcode_libdir_flag_spec=' '
7784      allow_undefined_flag=unsupported
7785      # Tell ltmain to make .lib files, not .a files.
7786      libext=lib
7787      # Tell ltmain to make .dll files, not .so files.
7788      shrext_cmds=".dll"
7789      # FIXME: Setting linknames here is a bad hack.
7790      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7791      # The linker will automatically build a .lib file if we build a DLL.
7792      old_archive_From_new_cmds='true'
7793      # FIXME: Should let the user specify the lib program.
7794      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7795      fix_srcfile_path='`cygpath -w "$srcfile"`'
7796      enable_shared_with_static_runtimes=yes
7797      ;;
7798
7799    darwin* | rhapsody*)
7800      case $host_os in
7801        rhapsody* | darwin1.[012])
7802         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7803         ;;
7804       *) # Darwin 1.3 on
7805         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7806           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7807         else
7808           case ${MACOSX_DEPLOYMENT_TARGET} in
7809             10.[012])
7810               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7811               ;;
7812             10.*)
7813               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7814               ;;
7815           esac
7816         fi
7817         ;;
7818      esac
7819      archive_cmds_need_lc=no
7820      hardcode_direct=no
7821      hardcode_automatic=yes
7822      hardcode_shlibpath_var=unsupported
7823      whole_archive_flag_spec=''
7824      link_all_deplibs=yes
7825    if test "$GCC" = yes ; then
7826        output_verbose_link_cmd='echo'
7827        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7828      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7829      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7830      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}'
7831      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}'
7832    else
7833      case $cc_basename in
7834        xlc*)
7835         output_verbose_link_cmd='echo'
7836         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7837         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7838          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7839         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}'
7840          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}'
7841          ;;
7842       *)
7843         ld_shlibs=no
7844          ;;
7845      esac
7846    fi
7847      ;;
7848
7849    dgux*)
7850      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7851      hardcode_libdir_flag_spec='-L$libdir'
7852      hardcode_shlibpath_var=no
7853      ;;
7854
7855    freebsd1*)
7856      ld_shlibs=no
7857      ;;
7858
7859    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7860    # support.  Future versions do this automatically, but an explicit c++rt0.o
7861    # does not break anything, and helps significantly (at the cost of a little
7862    # extra space).
7863    freebsd2.2*)
7864      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7865      hardcode_libdir_flag_spec='-R$libdir'
7866      hardcode_direct=yes
7867      hardcode_shlibpath_var=no
7868      ;;
7869
7870    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7871    freebsd2*)
7872      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7873      hardcode_direct=yes
7874      hardcode_minus_L=yes
7875      hardcode_shlibpath_var=no
7876      ;;
7877
7878    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7879    freebsd* | kfreebsd*-gnu | dragonfly*)
7880      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7881      hardcode_libdir_flag_spec='-R$libdir'
7882      hardcode_direct=yes
7883      hardcode_shlibpath_var=no
7884      ;;
7885
7886    hpux9*)
7887      if test "$GCC" = yes; then
7888        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'
7889      else
7890        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'
7891      fi
7892      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7893      hardcode_libdir_separator=:
7894      hardcode_direct=yes
7895
7896      # hardcode_minus_L: Not really in the search PATH,
7897      # but as the default location of the library.
7898      hardcode_minus_L=yes
7899      export_dynamic_flag_spec='${wl}-E'
7900      ;;
7901
7902    hpux10*)
7903      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7904        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7905      else
7906        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7907      fi
7908      if test "$with_gnu_ld" = no; then
7909        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7910        hardcode_libdir_separator=:
7911
7912        hardcode_direct=yes
7913        export_dynamic_flag_spec='${wl}-E'
7914
7915        # hardcode_minus_L: Not really in the search PATH,
7916        # but as the default location of the library.
7917        hardcode_minus_L=yes
7918      fi
7919      ;;
7920
7921    hpux11*)
7922      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7923        case $host_cpu in
7924        hppa*64*)
7925          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7926          ;;
7927        ia64*)
7928          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7929          ;;
7930        *)
7931          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7932          ;;
7933        esac
7934      else
7935        case $host_cpu in
7936        hppa*64*)
7937          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7938          ;;
7939        ia64*)
7940          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7941          ;;
7942        *)
7943          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7944          ;;
7945        esac
7946      fi
7947      if test "$with_gnu_ld" = no; then
7948        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7949        hardcode_libdir_separator=:
7950
7951        case $host_cpu in
7952        hppa*64*|ia64*)
7953          hardcode_libdir_flag_spec_ld='+b $libdir'
7954          hardcode_direct=no
7955          hardcode_shlibpath_var=no
7956          ;;
7957        *)
7958          hardcode_direct=yes
7959          export_dynamic_flag_spec='${wl}-E'
7960
7961          # hardcode_minus_L: Not really in the search PATH,
7962          # but as the default location of the library.
7963          hardcode_minus_L=yes
7964          ;;
7965        esac
7966      fi
7967      ;;
7968
7969    irix5* | irix6* | nonstopux*)
7970      if test "$GCC" = yes; then
7971        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'
7972      else
7973        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'
7974        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7975      fi
7976      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7977      hardcode_libdir_separator=:
7978      link_all_deplibs=yes
7979      ;;
7980
7981    netbsd*)
7982      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7983        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7984      else
7985        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7986      fi
7987      hardcode_libdir_flag_spec='-R$libdir'
7988      hardcode_direct=yes
7989      hardcode_shlibpath_var=no
7990      ;;
7991
7992    newsos6)
7993      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7994      hardcode_direct=yes
7995      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7996      hardcode_libdir_separator=:
7997      hardcode_shlibpath_var=no
7998      ;;
7999
8000    openbsd*)
8001      hardcode_direct=yes
8002      hardcode_shlibpath_var=no
8003      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8004        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8005        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8006        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8007        export_dynamic_flag_spec='${wl}-E'
8008      else
8009       case $host_os in
8010         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8011           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8012           hardcode_libdir_flag_spec='-R$libdir'
8013           ;;
8014         *)
8015           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8016           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8017           ;;
8018       esac
8019      fi
8020      ;;
8021
8022    os2*)
8023      hardcode_libdir_flag_spec='-L$libdir'
8024      hardcode_minus_L=yes
8025      allow_undefined_flag=unsupported
8026      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'
8027      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8028      ;;
8029
8030    osf3*)
8031      if test "$GCC" = yes; then
8032        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8033        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'
8034      else
8035        allow_undefined_flag=' -expect_unresolved \*'
8036        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'
8037      fi
8038      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8039      hardcode_libdir_separator=:
8040      ;;
8041
8042    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8043      if test "$GCC" = yes; then
8044        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8045        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'
8046        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8047      else
8048        allow_undefined_flag=' -expect_unresolved \*'
8049        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'
8050        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8051        $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'
8052
8053        # Both c and cxx compiler support -rpath directly
8054        hardcode_libdir_flag_spec='-rpath $libdir'
8055      fi
8056      hardcode_libdir_separator=:
8057      ;;
8058
8059    solaris*)
8060      no_undefined_flag=' -z text'
8061      if test "$GCC" = yes; then
8062        wlarc='${wl}'
8063        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8064        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8065          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8066      else
8067        wlarc=''
8068        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8069        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8070        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8071      fi
8072      hardcode_libdir_flag_spec='-R$libdir'
8073      hardcode_shlibpath_var=no
8074      case $host_os in
8075      solaris2.[0-5] | solaris2.[0-5].*) ;;
8076      *)
8077        # The compiler driver will combine linker options so we
8078        # cannot just pass the convience library names through
8079        # without $wl, iff we do not link with $LD.
8080        # Luckily, gcc supports the same syntax we need for Sun Studio.
8081        # Supported since Solaris 2.6 (maybe 2.5.1?)
8082        case $wlarc in
8083        '')
8084          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8085        *)
8086          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' ;;
8087        esac ;;
8088      esac
8089      link_all_deplibs=yes
8090      ;;
8091
8092    sunos4*)
8093      if test "x$host_vendor" = xsequent; then
8094        # Use $CC to link under sequent, because it throws in some extra .o
8095        # files that make .init and .fini sections work.
8096        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8097      else
8098        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8099      fi
8100      hardcode_libdir_flag_spec='-L$libdir'
8101      hardcode_direct=yes
8102      hardcode_minus_L=yes
8103      hardcode_shlibpath_var=no
8104      ;;
8105
8106    sysv4)
8107      case $host_vendor in
8108        sni)
8109          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8110          hardcode_direct=yes # is this really true???
8111        ;;
8112        siemens)
8113          ## LD is ld it makes a PLAMLIB
8114          ## CC just makes a GrossModule.
8115          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8116          reload_cmds='$CC -r -o $output$reload_objs'
8117          hardcode_direct=no
8118        ;;
8119        motorola)
8120          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8121          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8122        ;;
8123      esac
8124      runpath_var='LD_RUN_PATH'
8125      hardcode_shlibpath_var=no
8126      ;;
8127
8128    sysv4.3*)
8129      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8130      hardcode_shlibpath_var=no
8131      export_dynamic_flag_spec='-Bexport'
8132      ;;
8133
8134    sysv4*MP*)
8135      if test -d /usr/nec; then
8136        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8137        hardcode_shlibpath_var=no
8138        runpath_var=LD_RUN_PATH
8139        hardcode_runpath_var=yes
8140        ld_shlibs=yes
8141      fi
8142      ;;
8143
8144    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8145      no_undefined_flag='${wl}-z,text'
8146      archive_cmds_need_lc=no
8147      hardcode_shlibpath_var=no
8148      runpath_var='LD_RUN_PATH'
8149
8150      if test "$GCC" = yes; then
8151        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8152        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8153      else
8154        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8155        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8156      fi
8157      ;;
8158
8159    sysv5* | sco3.2v5* | sco5v6*)
8160      # Note: We can NOT use -z defs as we might desire, because we do not
8161      # link with -lc, and that would cause any symbols used from libc to
8162      # always be unresolved, which means just about no library would
8163      # ever link correctly.  If we're not using GNU ld we use -z text
8164      # though, which does catch some bad symbols but isn't as heavy-handed
8165      # as -z defs.
8166      no_undefined_flag='${wl}-z,text'
8167      allow_undefined_flag='${wl}-z,nodefs'
8168      archive_cmds_need_lc=no
8169      hardcode_shlibpath_var=no
8170      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8171      hardcode_libdir_separator=':'
8172      link_all_deplibs=yes
8173      export_dynamic_flag_spec='${wl}-Bexport'
8174      runpath_var='LD_RUN_PATH'
8175
8176      if test "$GCC" = yes; then
8177        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8178        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8179      else
8180        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8181        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8182      fi
8183      ;;
8184
8185    uts4*)
8186      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8187      hardcode_libdir_flag_spec='-L$libdir'
8188      hardcode_shlibpath_var=no
8189      ;;
8190
8191    *)
8192      ld_shlibs=no
8193      ;;
8194    esac
8195  fi
8196
8197echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8198echo "${ECHO_T}$ld_shlibs" >&6
8199test "$ld_shlibs" = no && can_build_shared=no
8200
8201#
8202# Do we need to explicitly link libc?
8203#
8204case "x$archive_cmds_need_lc" in
8205x|xyes)
8206  # Assume -lc should be added
8207  archive_cmds_need_lc=yes
8208
8209  if test "$enable_shared" = yes && test "$GCC" = yes; then
8210    case $archive_cmds in
8211    *'~'*)
8212      # FIXME: we may have to deal with multi-command sequences.
8213      ;;
8214    '$CC '*)
8215      # Test whether the compiler implicitly links with -lc since on some
8216      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8217      # to ld, don't add -lc before -lgcc.
8218      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8219echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8220      $rm conftest*
8221      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8222
8223      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8224  (eval $ac_compile) 2>&5
8225  ac_status=$?
8226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227  (exit $ac_status); } 2>conftest.err; then
8228        soname=conftest
8229        lib=conftest
8230        libobjs=conftest.$ac_objext
8231        deplibs=
8232        wl=$lt_prog_compiler_wl
8233        pic_flag=$lt_prog_compiler_pic
8234        compiler_flags=-v
8235        linker_flags=-v
8236        verstring=
8237        output_objdir=.
8238        libname=conftest
8239        lt_save_allow_undefined_flag=$allow_undefined_flag
8240        allow_undefined_flag=
8241        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8242  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8243  ac_status=$?
8244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245  (exit $ac_status); }
8246        then
8247          archive_cmds_need_lc=no
8248        else
8249          archive_cmds_need_lc=yes
8250        fi
8251        allow_undefined_flag=$lt_save_allow_undefined_flag
8252      else
8253        cat conftest.err 1>&5
8254      fi
8255      $rm conftest*
8256      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8257echo "${ECHO_T}$archive_cmds_need_lc" >&6
8258      ;;
8259    esac
8260  fi
8261  ;;
8262esac
8263
8264echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8265echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8266library_names_spec=
8267libname_spec='lib$name'
8268soname_spec=
8269shrext_cmds=".so"
8270postinstall_cmds=
8271postuninstall_cmds=
8272finish_cmds=
8273finish_eval=
8274shlibpath_var=
8275shlibpath_overrides_runpath=unknown
8276version_type=none
8277dynamic_linker="$host_os ld.so"
8278sys_lib_dlsearch_path_spec="/lib /usr/lib"
8279if test "$GCC" = yes; then
8280  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8281  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8282    # if the path contains ";" then we assume it to be the separator
8283    # otherwise default to the standard path separator (i.e. ":") - it is
8284    # assumed that no part of a normal pathname contains ";" but that should
8285    # okay in the real world where ";" in dirpaths is itself problematic.
8286    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8287  else
8288    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8289  fi
8290else
8291  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8292fi
8293need_lib_prefix=unknown
8294hardcode_into_libs=no
8295
8296# when you set need_version to no, make sure it does not cause -set_version
8297# flags to be left without arguments
8298need_version=unknown
8299
8300case $host_os in
8301aix3*)
8302  version_type=linux
8303  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8304  shlibpath_var=LIBPATH
8305
8306  # AIX 3 has no versioning support, so we append a major version to the name.
8307  soname_spec='${libname}${release}${shared_ext}$major'
8308  ;;
8309
8310aix4* | aix5*)
8311  version_type=linux
8312  need_lib_prefix=no
8313  need_version=no
8314  hardcode_into_libs=yes
8315  if test "$host_cpu" = ia64; then
8316    # AIX 5 supports IA64
8317    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8318    shlibpath_var=LD_LIBRARY_PATH
8319  else
8320    # With GCC up to 2.95.x, collect2 would create an import file
8321    # for dependence libraries.  The import file would start with
8322    # the line `#! .'.  This would cause the generated library to
8323    # depend on `.', always an invalid library.  This was fixed in
8324    # development snapshots of GCC prior to 3.0.
8325    case $host_os in
8326      aix4 | aix4.[01] | aix4.[01].*)
8327      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8328           echo ' yes '
8329           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8330        :
8331      else
8332        can_build_shared=no
8333      fi
8334      ;;
8335    esac
8336    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8337    # soname into executable. Probably we can add versioning support to
8338    # collect2, so additional links can be useful in future.
8339    if test "$aix_use_runtimelinking" = yes; then
8340      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8341      # instead of lib<name>.a to let people know that these are not
8342      # typical AIX shared libraries.
8343      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8344    else
8345      # We preserve .a as extension for shared libraries through AIX4.2
8346      # and later when we are not doing run time linking.
8347      library_names_spec='${libname}${release}.a $libname.a'
8348      soname_spec='${libname}${release}${shared_ext}$major'
8349    fi
8350    shlibpath_var=LIBPATH
8351  fi
8352  ;;
8353
8354amigaos*)
8355  library_names_spec='$libname.ixlibrary $libname.a'
8356  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8357  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'
8358  ;;
8359
8360beos*)
8361  library_names_spec='${libname}${shared_ext}'
8362  dynamic_linker="$host_os ld.so"
8363  shlibpath_var=LIBRARY_PATH
8364  ;;
8365
8366bsdi[45]*)
8367  version_type=linux
8368  need_version=no
8369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8370  soname_spec='${libname}${release}${shared_ext}$major'
8371  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8372  shlibpath_var=LD_LIBRARY_PATH
8373  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8374  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8375  # the default ld.so.conf also contains /usr/contrib/lib and
8376  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8377  # libtool to hard-code these into programs
8378  ;;
8379
8380cygwin* | mingw* | pw32*)
8381  version_type=windows
8382  shrext_cmds=".dll"
8383  need_version=no
8384  need_lib_prefix=no
8385
8386  case $GCC,$host_os in
8387  yes,cygwin* | yes,mingw* | yes,pw32*)
8388    library_names_spec='$libname.dll.a'
8389    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8390    postinstall_cmds='base_file=`basename \${file}`~
8391      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8392      dldir=$destdir/`dirname \$dlpath`~
8393      test -d \$dldir || mkdir -p \$dldir~
8394      $install_prog $dir/$dlname \$dldir/$dlname~
8395      chmod a+x \$dldir/$dlname'
8396    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8397      dlpath=$dir/\$dldll~
8398       $rm \$dlpath'
8399    shlibpath_overrides_runpath=yes
8400
8401    case $host_os in
8402    cygwin*)
8403      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8404      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8405      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8406      ;;
8407    mingw*)
8408      # MinGW DLLs use traditional 'lib' prefix
8409      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8410      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8411      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8412        # It is most probably a Windows format PATH printed by
8413        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8414        # path with ; separators, and with drive letters. We can handle the
8415        # drive letters (cygwin fileutils understands them), so leave them,
8416        # especially as we might pass files found there to a mingw objdump,
8417        # which wouldn't understand a cygwinified path. Ahh.
8418        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8419      else
8420        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8421      fi
8422      ;;
8423    pw32*)
8424      # pw32 DLLs use 'pw' prefix rather than 'lib'
8425      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8426      ;;
8427    esac
8428    ;;
8429
8430  *)
8431    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8432    ;;
8433  esac
8434  dynamic_linker='Win32 ld.exe'
8435  # FIXME: first we should search . and the directory the executable is in
8436  shlibpath_var=PATH
8437  ;;
8438
8439darwin* | rhapsody*)
8440  dynamic_linker="$host_os dyld"
8441  version_type=darwin
8442  need_lib_prefix=no
8443  need_version=no
8444  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8445  soname_spec='${libname}${release}${major}$shared_ext'
8446  shlibpath_overrides_runpath=yes
8447  shlibpath_var=DYLD_LIBRARY_PATH
8448  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8449  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8450  if test "$GCC" = yes; then
8451    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"`
8452  else
8453    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8454  fi
8455  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8456  ;;
8457
8458dgux*)
8459  version_type=linux
8460  need_lib_prefix=no
8461  need_version=no
8462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8463  soname_spec='${libname}${release}${shared_ext}$major'
8464  shlibpath_var=LD_LIBRARY_PATH
8465  ;;
8466
8467freebsd1*)
8468  dynamic_linker=no
8469  ;;
8470
8471kfreebsd*-gnu)
8472  version_type=linux
8473  need_lib_prefix=no
8474  need_version=no
8475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8476  soname_spec='${libname}${release}${shared_ext}$major'
8477  shlibpath_var=LD_LIBRARY_PATH
8478  shlibpath_overrides_runpath=no
8479  hardcode_into_libs=yes
8480  dynamic_linker='GNU ld.so'
8481  ;;
8482
8483freebsd* | dragonfly*)
8484  # DragonFly does not have aout.  When/if they implement a new
8485  # versioning mechanism, adjust this.
8486  if test -x /usr/bin/objformat; then
8487    objformat=`/usr/bin/objformat`
8488  else
8489    case $host_os in
8490    freebsd[123]*) objformat=aout ;;
8491    *) objformat=elf ;;
8492    esac
8493  fi
8494  version_type=freebsd-$objformat
8495  case $version_type in
8496    freebsd-elf*)
8497      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8498      need_version=no
8499      need_lib_prefix=no
8500      ;;
8501    freebsd-*)
8502      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8503      need_version=yes
8504      ;;
8505  esac
8506  shlibpath_var=LD_LIBRARY_PATH
8507  case $host_os in
8508  freebsd2*)
8509    shlibpath_overrides_runpath=yes
8510    ;;
8511  freebsd3.[01]* | freebsdelf3.[01]*)
8512    shlibpath_overrides_runpath=yes
8513    hardcode_into_libs=yes
8514    ;;
8515  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8516  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8517    shlibpath_overrides_runpath=no
8518    hardcode_into_libs=yes
8519    ;;
8520  freebsd*) # from 4.6 on
8521    shlibpath_overrides_runpath=yes
8522    hardcode_into_libs=yes
8523    ;;
8524  esac
8525  ;;
8526
8527gnu*)
8528  version_type=linux
8529  need_lib_prefix=no
8530  need_version=no
8531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8532  soname_spec='${libname}${release}${shared_ext}$major'
8533  shlibpath_var=LD_LIBRARY_PATH
8534  hardcode_into_libs=yes
8535  ;;
8536
8537hpux9* | hpux10* | hpux11*)
8538  # Give a soname corresponding to the major version so that dld.sl refuses to
8539  # link against other versions.
8540  version_type=sunos
8541  need_lib_prefix=no
8542  need_version=no
8543  case $host_cpu in
8544  ia64*)
8545    shrext_cmds='.so'
8546    hardcode_into_libs=yes
8547    dynamic_linker="$host_os dld.so"
8548    shlibpath_var=LD_LIBRARY_PATH
8549    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8550    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8551    soname_spec='${libname}${release}${shared_ext}$major'
8552    if test "X$HPUX_IA64_MODE" = X32; then
8553      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8554    else
8555      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8556    fi
8557    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8558    ;;
8559   hppa*64*)
8560     shrext_cmds='.sl'
8561     hardcode_into_libs=yes
8562     dynamic_linker="$host_os dld.sl"
8563     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8564     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566     soname_spec='${libname}${release}${shared_ext}$major'
8567     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8568     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8569     ;;
8570   *)
8571    shrext_cmds='.sl'
8572    dynamic_linker="$host_os dld.sl"
8573    shlibpath_var=SHLIB_PATH
8574    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8575    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8576    soname_spec='${libname}${release}${shared_ext}$major'
8577    ;;
8578  esac
8579  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8580  postinstall_cmds='chmod 555 $lib'
8581  ;;
8582
8583interix3*)
8584  version_type=linux
8585  need_lib_prefix=no
8586  need_version=no
8587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8588  soname_spec='${libname}${release}${shared_ext}$major'
8589  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8590  shlibpath_var=LD_LIBRARY_PATH
8591  shlibpath_overrides_runpath=no
8592  hardcode_into_libs=yes
8593  ;;
8594
8595irix5* | irix6* | nonstopux*)
8596  case $host_os in
8597    nonstopux*) version_type=nonstopux ;;
8598    *)
8599        if test "$lt_cv_prog_gnu_ld" = yes; then
8600                version_type=linux
8601        else
8602                version_type=irix
8603        fi ;;
8604  esac
8605  need_lib_prefix=no
8606  need_version=no
8607  soname_spec='${libname}${release}${shared_ext}$major'
8608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8609  case $host_os in
8610  irix5* | nonstopux*)
8611    libsuff= shlibsuff=
8612    ;;
8613  *)
8614    case $LD in # libtool.m4 will add one of these switches to LD
8615    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8616      libsuff= shlibsuff= libmagic=32-bit;;
8617    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8618      libsuff=32 shlibsuff=N32 libmagic=N32;;
8619    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8620      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8621    *) libsuff= shlibsuff= libmagic=never-match;;
8622    esac
8623    ;;
8624  esac
8625  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8626  shlibpath_overrides_runpath=no
8627  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8628  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8629  hardcode_into_libs=yes
8630  ;;
8631
8632# No shared lib support for Linux oldld, aout, or coff.
8633linux*oldld* | linux*aout* | linux*coff*)
8634  dynamic_linker=no
8635  ;;
8636
8637# This must be Linux ELF.
8638linux*)
8639  version_type=linux
8640  need_lib_prefix=no
8641  need_version=no
8642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8643  soname_spec='${libname}${release}${shared_ext}$major'
8644  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8645  shlibpath_var=LD_LIBRARY_PATH
8646  shlibpath_overrides_runpath=no
8647  # This implies no fast_install, which is unacceptable.
8648  # Some rework will be needed to allow for fast_install
8649  # before this can be enabled.
8650  hardcode_into_libs=yes
8651
8652  # Append ld.so.conf contents to the search path
8653  if test -f /etc/ld.so.conf; then
8654    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8655    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8656  fi
8657
8658  # We used to test for /lib/ld.so.1 and disable shared libraries on
8659  # powerpc, because MkLinux only supported shared libraries with the
8660  # GNU dynamic linker.  Since this was broken with cross compilers,
8661  # most powerpc-linux boxes support dynamic linking these days and
8662  # people can always --disable-shared, the test was removed, and we
8663  # assume the GNU/Linux dynamic linker is in use.
8664  dynamic_linker='GNU/Linux ld.so'
8665  ;;
8666
8667knetbsd*-gnu)
8668  version_type=linux
8669  need_lib_prefix=no
8670  need_version=no
8671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8672  soname_spec='${libname}${release}${shared_ext}$major'
8673  shlibpath_var=LD_LIBRARY_PATH
8674  shlibpath_overrides_runpath=no
8675  hardcode_into_libs=yes
8676  dynamic_linker='GNU ld.so'
8677  ;;
8678
8679netbsd*)
8680  version_type=sunos
8681  need_lib_prefix=no
8682  need_version=no
8683  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8684    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8685    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8686    dynamic_linker='NetBSD (a.out) ld.so'
8687  else
8688    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8689    soname_spec='${libname}${release}${shared_ext}$major'
8690    dynamic_linker='NetBSD ld.elf_so'
8691  fi
8692  shlibpath_var=LD_LIBRARY_PATH
8693  shlibpath_overrides_runpath=yes
8694  hardcode_into_libs=yes
8695  ;;
8696
8697newsos6)
8698  version_type=linux
8699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8700  shlibpath_var=LD_LIBRARY_PATH
8701  shlibpath_overrides_runpath=yes
8702  ;;
8703
8704nto-qnx*)
8705  version_type=linux
8706  need_lib_prefix=no
8707  need_version=no
8708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709  soname_spec='${libname}${release}${shared_ext}$major'
8710  shlibpath_var=LD_LIBRARY_PATH
8711  shlibpath_overrides_runpath=yes
8712  ;;
8713
8714openbsd*)
8715  version_type=sunos
8716  sys_lib_dlsearch_path_spec="/usr/lib"
8717  need_lib_prefix=no
8718  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8719  case $host_os in
8720    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8721    *)                         need_version=no  ;;
8722  esac
8723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8724  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8725  shlibpath_var=LD_LIBRARY_PATH
8726  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8727    case $host_os in
8728      openbsd2.[89] | openbsd2.[89].*)
8729        shlibpath_overrides_runpath=no
8730        ;;
8731      *)
8732        shlibpath_overrides_runpath=yes
8733        ;;
8734      esac
8735  else
8736    shlibpath_overrides_runpath=yes
8737  fi
8738  ;;
8739
8740os2*)
8741  libname_spec='$name'
8742  shrext_cmds=".dll"
8743  need_lib_prefix=no
8744  library_names_spec='$libname${shared_ext} $libname.a'
8745  dynamic_linker='OS/2 ld.exe'
8746  shlibpath_var=LIBPATH
8747  ;;
8748
8749osf3* | osf4* | osf5*)
8750  version_type=osf
8751  need_lib_prefix=no
8752  need_version=no
8753  soname_spec='${libname}${release}${shared_ext}$major'
8754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8755  shlibpath_var=LD_LIBRARY_PATH
8756  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8757  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8758  ;;
8759
8760solaris*)
8761  version_type=linux
8762  need_lib_prefix=no
8763  need_version=no
8764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8765  soname_spec='${libname}${release}${shared_ext}$major'
8766  shlibpath_var=LD_LIBRARY_PATH
8767  shlibpath_overrides_runpath=yes
8768  hardcode_into_libs=yes
8769  # ldd complains unless libraries are executable
8770  postinstall_cmds='chmod +x $lib'
8771  ;;
8772
8773sunos4*)
8774  version_type=sunos
8775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8776  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8777  shlibpath_var=LD_LIBRARY_PATH
8778  shlibpath_overrides_runpath=yes
8779  if test "$with_gnu_ld" = yes; then
8780    need_lib_prefix=no
8781  fi
8782  need_version=yes
8783  ;;
8784
8785sysv4 | sysv4.3*)
8786  version_type=linux
8787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788  soname_spec='${libname}${release}${shared_ext}$major'
8789  shlibpath_var=LD_LIBRARY_PATH
8790  case $host_vendor in
8791    sni)
8792      shlibpath_overrides_runpath=no
8793      need_lib_prefix=no
8794      export_dynamic_flag_spec='${wl}-Blargedynsym'
8795      runpath_var=LD_RUN_PATH
8796      ;;
8797    siemens)
8798      need_lib_prefix=no
8799      ;;
8800    motorola)
8801      need_lib_prefix=no
8802      need_version=no
8803      shlibpath_overrides_runpath=no
8804      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8805      ;;
8806  esac
8807  ;;
8808
8809sysv4*MP*)
8810  if test -d /usr/nec ;then
8811    version_type=linux
8812    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8813    soname_spec='$libname${shared_ext}.$major'
8814    shlibpath_var=LD_LIBRARY_PATH
8815  fi
8816  ;;
8817
8818sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8819  version_type=freebsd-elf
8820  need_lib_prefix=no
8821  need_version=no
8822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8823  soname_spec='${libname}${release}${shared_ext}$major'
8824  shlibpath_var=LD_LIBRARY_PATH
8825  hardcode_into_libs=yes
8826  if test "$with_gnu_ld" = yes; then
8827    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8828    shlibpath_overrides_runpath=no
8829  else
8830    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8831    shlibpath_overrides_runpath=yes
8832    case $host_os in
8833      sco3.2v5*)
8834        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8835        ;;
8836    esac
8837  fi
8838  sys_lib_dlsearch_path_spec='/usr/lib'
8839  ;;
8840
8841uts4*)
8842  version_type=linux
8843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844  soname_spec='${libname}${release}${shared_ext}$major'
8845  shlibpath_var=LD_LIBRARY_PATH
8846  ;;
8847
8848*)
8849  dynamic_linker=no
8850  ;;
8851esac
8852echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8853echo "${ECHO_T}$dynamic_linker" >&6
8854test "$dynamic_linker" = no && can_build_shared=no
8855
8856variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8857if test "$GCC" = yes; then
8858  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8859fi
8860
8861echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8862echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8863hardcode_action=
8864if test -n "$hardcode_libdir_flag_spec" || \
8865   test -n "$runpath_var" || \
8866   test "X$hardcode_automatic" = "Xyes" ; then
8867
8868  # We can hardcode non-existant directories.
8869  if test "$hardcode_direct" != no &&
8870     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8871     # have to relink, otherwise we might link with an installed library
8872     # when we should be linking with a yet-to-be-installed one
8873     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8874     test "$hardcode_minus_L" != no; then
8875    # Linking always hardcodes the temporary library directory.
8876    hardcode_action=relink
8877  else
8878    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8879    hardcode_action=immediate
8880  fi
8881else
8882  # We cannot hardcode anything, or else we can only hardcode existing
8883  # directories.
8884  hardcode_action=unsupported
8885fi
8886echo "$as_me:$LINENO: result: $hardcode_action" >&5
8887echo "${ECHO_T}$hardcode_action" >&6
8888
8889if test "$hardcode_action" = relink; then
8890  # Fast installation is not supported
8891  enable_fast_install=no
8892elif test "$shlibpath_overrides_runpath" = yes ||
8893     test "$enable_shared" = no; then
8894  # Fast installation is not necessary
8895  enable_fast_install=needless
8896fi
8897
8898striplib=
8899old_striplib=
8900echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8901echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8902if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8903  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8904  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8905  echo "$as_me:$LINENO: result: yes" >&5
8906echo "${ECHO_T}yes" >&6
8907else
8908# FIXME - insert some real tests, host_os isn't really good enough
8909  case $host_os in
8910   darwin*)
8911       if test -n "$STRIP" ; then
8912         striplib="$STRIP -x"
8913         echo "$as_me:$LINENO: result: yes" >&5
8914echo "${ECHO_T}yes" >&6
8915       else
8916  echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
8918fi
8919       ;;
8920   *)
8921  echo "$as_me:$LINENO: result: no" >&5
8922echo "${ECHO_T}no" >&6
8923    ;;
8924  esac
8925fi
8926
8927if test "x$enable_dlopen" != xyes; then
8928  enable_dlopen=unknown
8929  enable_dlopen_self=unknown
8930  enable_dlopen_self_static=unknown
8931else
8932  lt_cv_dlopen=no
8933  lt_cv_dlopen_libs=
8934
8935  case $host_os in
8936  beos*)
8937    lt_cv_dlopen="load_add_on"
8938    lt_cv_dlopen_libs=
8939    lt_cv_dlopen_self=yes
8940    ;;
8941
8942  mingw* | pw32*)
8943    lt_cv_dlopen="LoadLibrary"
8944    lt_cv_dlopen_libs=
8945   ;;
8946
8947  cygwin*)
8948    lt_cv_dlopen="dlopen"
8949    lt_cv_dlopen_libs=
8950   ;;
8951
8952  darwin*)
8953  # if libdl is installed we need to link against it
8954    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8955echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8956if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8957  echo $ECHO_N "(cached) $ECHO_C" >&6
8958else
8959  ac_check_lib_save_LIBS=$LIBS
8960LIBS="-ldl  $LIBS"
8961cat >conftest.$ac_ext <<_ACEOF
8962/* confdefs.h.  */
8963_ACEOF
8964cat confdefs.h >>conftest.$ac_ext
8965cat >>conftest.$ac_ext <<_ACEOF
8966/* end confdefs.h.  */
8967
8968/* Override any gcc2 internal prototype to avoid an error.  */
8969#ifdef __cplusplus
8970extern "C"
8971#endif
8972/* We use char because int might match the return type of a gcc2
8973   builtin and then its argument prototype would still apply.  */
8974char dlopen ();
8975int
8976main ()
8977{
8978dlopen ();
8979  ;
8980  return 0;
8981}
8982_ACEOF
8983rm -f conftest.$ac_objext conftest$ac_exeext
8984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985  (eval $ac_link) 2>conftest.er1
8986  ac_status=$?
8987  grep -v '^ *+' conftest.er1 >conftest.err
8988  rm -f conftest.er1
8989  cat conftest.err >&5
8990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991  (exit $ac_status); } &&
8992         { ac_try='test -z "$ac_c_werror_flag"
8993                         || test ! -s conftest.err'
8994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995  (eval $ac_try) 2>&5
8996  ac_status=$?
8997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998  (exit $ac_status); }; } &&
8999         { ac_try='test -s conftest$ac_exeext'
9000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001  (eval $ac_try) 2>&5
9002  ac_status=$?
9003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004  (exit $ac_status); }; }; then
9005  ac_cv_lib_dl_dlopen=yes
9006else
9007  echo "$as_me: failed program was:" >&5
9008sed 's/^/| /' conftest.$ac_ext >&5
9009
9010ac_cv_lib_dl_dlopen=no
9011fi
9012rm -f conftest.err conftest.$ac_objext \
9013      conftest$ac_exeext conftest.$ac_ext
9014LIBS=$ac_check_lib_save_LIBS
9015fi
9016echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9017echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9018if test $ac_cv_lib_dl_dlopen = yes; then
9019  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9020else
9021
9022    lt_cv_dlopen="dyld"
9023    lt_cv_dlopen_libs=
9024    lt_cv_dlopen_self=yes
9025
9026fi
9027
9028   ;;
9029
9030  *)
9031    echo "$as_me:$LINENO: checking for shl_load" >&5
9032echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9033if test "${ac_cv_func_shl_load+set}" = set; then
9034  echo $ECHO_N "(cached) $ECHO_C" >&6
9035else
9036  cat >conftest.$ac_ext <<_ACEOF
9037/* confdefs.h.  */
9038_ACEOF
9039cat confdefs.h >>conftest.$ac_ext
9040cat >>conftest.$ac_ext <<_ACEOF
9041/* end confdefs.h.  */
9042/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9043   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9044#define shl_load innocuous_shl_load
9045
9046/* System header to define __stub macros and hopefully few prototypes,
9047    which can conflict with char shl_load (); below.
9048    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9049    <limits.h> exists even on freestanding compilers.  */
9050
9051#ifdef __STDC__
9052# include <limits.h>
9053#else
9054# include <assert.h>
9055#endif
9056
9057#undef shl_load
9058
9059/* Override any gcc2 internal prototype to avoid an error.  */
9060#ifdef __cplusplus
9061extern "C"
9062{
9063#endif
9064/* We use char because int might match the return type of a gcc2
9065   builtin and then its argument prototype would still apply.  */
9066char shl_load ();
9067/* The GNU C library defines this for functions which it implements
9068    to always fail with ENOSYS.  Some functions are actually named
9069    something starting with __ and the normal name is an alias.  */
9070#if defined (__stub_shl_load) || defined (__stub___shl_load)
9071choke me
9072#else
9073char (*f) () = shl_load;
9074#endif
9075#ifdef __cplusplus
9076}
9077#endif
9078
9079int
9080main ()
9081{
9082return f != shl_load;
9083  ;
9084  return 0;
9085}
9086_ACEOF
9087rm -f conftest.$ac_objext conftest$ac_exeext
9088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089  (eval $ac_link) 2>conftest.er1
9090  ac_status=$?
9091  grep -v '^ *+' conftest.er1 >conftest.err
9092  rm -f conftest.er1
9093  cat conftest.err >&5
9094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095  (exit $ac_status); } &&
9096         { ac_try='test -z "$ac_c_werror_flag"
9097                         || test ! -s conftest.err'
9098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099  (eval $ac_try) 2>&5
9100  ac_status=$?
9101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); }; } &&
9103         { ac_try='test -s conftest$ac_exeext'
9104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105  (eval $ac_try) 2>&5
9106  ac_status=$?
9107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108  (exit $ac_status); }; }; then
9109  ac_cv_func_shl_load=yes
9110else
9111  echo "$as_me: failed program was:" >&5
9112sed 's/^/| /' conftest.$ac_ext >&5
9113
9114ac_cv_func_shl_load=no
9115fi
9116rm -f conftest.err conftest.$ac_objext \
9117      conftest$ac_exeext conftest.$ac_ext
9118fi
9119echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9120echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9121if test $ac_cv_func_shl_load = yes; then
9122  lt_cv_dlopen="shl_load"
9123else
9124  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9125echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9126if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9127  echo $ECHO_N "(cached) $ECHO_C" >&6
9128else
9129  ac_check_lib_save_LIBS=$LIBS
9130LIBS="-ldld  $LIBS"
9131cat >conftest.$ac_ext <<_ACEOF
9132/* confdefs.h.  */
9133_ACEOF
9134cat confdefs.h >>conftest.$ac_ext
9135cat >>conftest.$ac_ext <<_ACEOF
9136/* end confdefs.h.  */
9137
9138/* Override any gcc2 internal prototype to avoid an error.  */
9139#ifdef __cplusplus
9140extern "C"
9141#endif
9142/* We use char because int might match the return type of a gcc2
9143   builtin and then its argument prototype would still apply.  */
9144char shl_load ();
9145int
9146main ()
9147{
9148shl_load ();
9149  ;
9150  return 0;
9151}
9152_ACEOF
9153rm -f conftest.$ac_objext conftest$ac_exeext
9154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155  (eval $ac_link) 2>conftest.er1
9156  ac_status=$?
9157  grep -v '^ *+' conftest.er1 >conftest.err
9158  rm -f conftest.er1
9159  cat conftest.err >&5
9160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161  (exit $ac_status); } &&
9162         { ac_try='test -z "$ac_c_werror_flag"
9163                         || test ! -s conftest.err'
9164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165  (eval $ac_try) 2>&5
9166  ac_status=$?
9167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168  (exit $ac_status); }; } &&
9169         { ac_try='test -s conftest$ac_exeext'
9170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171  (eval $ac_try) 2>&5
9172  ac_status=$?
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); }; }; then
9175  ac_cv_lib_dld_shl_load=yes
9176else
9177  echo "$as_me: failed program was:" >&5
9178sed 's/^/| /' conftest.$ac_ext >&5
9179
9180ac_cv_lib_dld_shl_load=no
9181fi
9182rm -f conftest.err conftest.$ac_objext \
9183      conftest$ac_exeext conftest.$ac_ext
9184LIBS=$ac_check_lib_save_LIBS
9185fi
9186echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9187echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9188if test $ac_cv_lib_dld_shl_load = yes; then
9189  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9190else
9191  echo "$as_me:$LINENO: checking for dlopen" >&5
9192echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9193if test "${ac_cv_func_dlopen+set}" = set; then
9194  echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
9196  cat >conftest.$ac_ext <<_ACEOF
9197/* confdefs.h.  */
9198_ACEOF
9199cat confdefs.h >>conftest.$ac_ext
9200cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h.  */
9202/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9203   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9204#define dlopen innocuous_dlopen
9205
9206/* System header to define __stub macros and hopefully few prototypes,
9207    which can conflict with char dlopen (); below.
9208    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9209    <limits.h> exists even on freestanding compilers.  */
9210
9211#ifdef __STDC__
9212# include <limits.h>
9213#else
9214# include <assert.h>
9215#endif
9216
9217#undef dlopen
9218
9219/* Override any gcc2 internal prototype to avoid an error.  */
9220#ifdef __cplusplus
9221extern "C"
9222{
9223#endif
9224/* We use char because int might match the return type of a gcc2
9225   builtin and then its argument prototype would still apply.  */
9226char dlopen ();
9227/* The GNU C library defines this for functions which it implements
9228    to always fail with ENOSYS.  Some functions are actually named
9229    something starting with __ and the normal name is an alias.  */
9230#if defined (__stub_dlopen) || defined (__stub___dlopen)
9231choke me
9232#else
9233char (*f) () = dlopen;
9234#endif
9235#ifdef __cplusplus
9236}
9237#endif
9238
9239int
9240main ()
9241{
9242return f != dlopen;
9243  ;
9244  return 0;
9245}
9246_ACEOF
9247rm -f conftest.$ac_objext conftest$ac_exeext
9248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249  (eval $ac_link) 2>conftest.er1
9250  ac_status=$?
9251  grep -v '^ *+' conftest.er1 >conftest.err
9252  rm -f conftest.er1
9253  cat conftest.err >&5
9254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255  (exit $ac_status); } &&
9256         { ac_try='test -z "$ac_c_werror_flag"
9257                         || test ! -s conftest.err'
9258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259  (eval $ac_try) 2>&5
9260  ac_status=$?
9261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262  (exit $ac_status); }; } &&
9263         { ac_try='test -s conftest$ac_exeext'
9264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265  (eval $ac_try) 2>&5
9266  ac_status=$?
9267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268  (exit $ac_status); }; }; then
9269  ac_cv_func_dlopen=yes
9270else
9271  echo "$as_me: failed program was:" >&5
9272sed 's/^/| /' conftest.$ac_ext >&5
9273
9274ac_cv_func_dlopen=no
9275fi
9276rm -f conftest.err conftest.$ac_objext \
9277      conftest$ac_exeext conftest.$ac_ext
9278fi
9279echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9280echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9281if test $ac_cv_func_dlopen = yes; then
9282  lt_cv_dlopen="dlopen"
9283else
9284  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9285echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9286if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9287  echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289  ac_check_lib_save_LIBS=$LIBS
9290LIBS="-ldl  $LIBS"
9291cat >conftest.$ac_ext <<_ACEOF
9292/* confdefs.h.  */
9293_ACEOF
9294cat confdefs.h >>conftest.$ac_ext
9295cat >>conftest.$ac_ext <<_ACEOF
9296/* end confdefs.h.  */
9297
9298/* Override any gcc2 internal prototype to avoid an error.  */
9299#ifdef __cplusplus
9300extern "C"
9301#endif
9302/* We use char because int might match the return type of a gcc2
9303   builtin and then its argument prototype would still apply.  */
9304char dlopen ();
9305int
9306main ()
9307{
9308dlopen ();
9309  ;
9310  return 0;
9311}
9312_ACEOF
9313rm -f conftest.$ac_objext conftest$ac_exeext
9314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315  (eval $ac_link) 2>conftest.er1
9316  ac_status=$?
9317  grep -v '^ *+' conftest.er1 >conftest.err
9318  rm -f conftest.er1
9319  cat conftest.err >&5
9320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321  (exit $ac_status); } &&
9322         { ac_try='test -z "$ac_c_werror_flag"
9323                         || test ! -s conftest.err'
9324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325  (eval $ac_try) 2>&5
9326  ac_status=$?
9327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328  (exit $ac_status); }; } &&
9329         { ac_try='test -s conftest$ac_exeext'
9330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331  (eval $ac_try) 2>&5
9332  ac_status=$?
9333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334  (exit $ac_status); }; }; then
9335  ac_cv_lib_dl_dlopen=yes
9336else
9337  echo "$as_me: failed program was:" >&5
9338sed 's/^/| /' conftest.$ac_ext >&5
9339
9340ac_cv_lib_dl_dlopen=no
9341fi
9342rm -f conftest.err conftest.$ac_objext \
9343      conftest$ac_exeext conftest.$ac_ext
9344LIBS=$ac_check_lib_save_LIBS
9345fi
9346echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9347echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9348if test $ac_cv_lib_dl_dlopen = yes; then
9349  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9350else
9351  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9352echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9353if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9354  echo $ECHO_N "(cached) $ECHO_C" >&6
9355else
9356  ac_check_lib_save_LIBS=$LIBS
9357LIBS="-lsvld  $LIBS"
9358cat >conftest.$ac_ext <<_ACEOF
9359/* confdefs.h.  */
9360_ACEOF
9361cat confdefs.h >>conftest.$ac_ext
9362cat >>conftest.$ac_ext <<_ACEOF
9363/* end confdefs.h.  */
9364
9365/* Override any gcc2 internal prototype to avoid an error.  */
9366#ifdef __cplusplus
9367extern "C"
9368#endif
9369/* We use char because int might match the return type of a gcc2
9370   builtin and then its argument prototype would still apply.  */
9371char dlopen ();
9372int
9373main ()
9374{
9375dlopen ();
9376  ;
9377  return 0;
9378}
9379_ACEOF
9380rm -f conftest.$ac_objext conftest$ac_exeext
9381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382  (eval $ac_link) 2>conftest.er1
9383  ac_status=$?
9384  grep -v '^ *+' conftest.er1 >conftest.err
9385  rm -f conftest.er1
9386  cat conftest.err >&5
9387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388  (exit $ac_status); } &&
9389         { ac_try='test -z "$ac_c_werror_flag"
9390                         || test ! -s conftest.err'
9391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392  (eval $ac_try) 2>&5
9393  ac_status=$?
9394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395  (exit $ac_status); }; } &&
9396         { ac_try='test -s conftest$ac_exeext'
9397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398  (eval $ac_try) 2>&5
9399  ac_status=$?
9400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401  (exit $ac_status); }; }; then
9402  ac_cv_lib_svld_dlopen=yes
9403else
9404  echo "$as_me: failed program was:" >&5
9405sed 's/^/| /' conftest.$ac_ext >&5
9406
9407ac_cv_lib_svld_dlopen=no
9408fi
9409rm -f conftest.err conftest.$ac_objext \
9410      conftest$ac_exeext conftest.$ac_ext
9411LIBS=$ac_check_lib_save_LIBS
9412fi
9413echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9414echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9415if test $ac_cv_lib_svld_dlopen = yes; then
9416  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9417else
9418  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9419echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9420if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9421  echo $ECHO_N "(cached) $ECHO_C" >&6
9422else
9423  ac_check_lib_save_LIBS=$LIBS
9424LIBS="-ldld  $LIBS"
9425cat >conftest.$ac_ext <<_ACEOF
9426/* confdefs.h.  */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h.  */
9431
9432/* Override any gcc2 internal prototype to avoid an error.  */
9433#ifdef __cplusplus
9434extern "C"
9435#endif
9436/* We use char because int might match the return type of a gcc2
9437   builtin and then its argument prototype would still apply.  */
9438char dld_link ();
9439int
9440main ()
9441{
9442dld_link ();
9443  ;
9444  return 0;
9445}
9446_ACEOF
9447rm -f conftest.$ac_objext conftest$ac_exeext
9448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449  (eval $ac_link) 2>conftest.er1
9450  ac_status=$?
9451  grep -v '^ *+' conftest.er1 >conftest.err
9452  rm -f conftest.er1
9453  cat conftest.err >&5
9454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455  (exit $ac_status); } &&
9456         { ac_try='test -z "$ac_c_werror_flag"
9457                         || test ! -s conftest.err'
9458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459  (eval $ac_try) 2>&5
9460  ac_status=$?
9461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462  (exit $ac_status); }; } &&
9463         { ac_try='test -s conftest$ac_exeext'
9464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465  (eval $ac_try) 2>&5
9466  ac_status=$?
9467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468  (exit $ac_status); }; }; then
9469  ac_cv_lib_dld_dld_link=yes
9470else
9471  echo "$as_me: failed program was:" >&5
9472sed 's/^/| /' conftest.$ac_ext >&5
9473
9474ac_cv_lib_dld_dld_link=no
9475fi
9476rm -f conftest.err conftest.$ac_objext \
9477      conftest$ac_exeext conftest.$ac_ext
9478LIBS=$ac_check_lib_save_LIBS
9479fi
9480echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9481echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9482if test $ac_cv_lib_dld_dld_link = yes; then
9483  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9484fi
9485
9486
9487fi
9488
9489
9490fi
9491
9492
9493fi
9494
9495
9496fi
9497
9498
9499fi
9500
9501    ;;
9502  esac
9503
9504  if test "x$lt_cv_dlopen" != xno; then
9505    enable_dlopen=yes
9506  else
9507    enable_dlopen=no
9508  fi
9509
9510  case $lt_cv_dlopen in
9511  dlopen)
9512    save_CPPFLAGS="$CPPFLAGS"
9513    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9514
9515    save_LDFLAGS="$LDFLAGS"
9516    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9517
9518    save_LIBS="$LIBS"
9519    LIBS="$lt_cv_dlopen_libs $LIBS"
9520
9521    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9522echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9523if test "${lt_cv_dlopen_self+set}" = set; then
9524  echo $ECHO_N "(cached) $ECHO_C" >&6
9525else
9526          if test "$cross_compiling" = yes; then :
9527  lt_cv_dlopen_self=cross
9528else
9529  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9530  lt_status=$lt_dlunknown
9531  cat > conftest.$ac_ext <<EOF
9532#line 9532 "configure"
9533#include "confdefs.h"
9534
9535#if HAVE_DLFCN_H
9536#include <dlfcn.h>
9537#endif
9538
9539#include <stdio.h>
9540
9541#ifdef RTLD_GLOBAL
9542#  define LT_DLGLOBAL           RTLD_GLOBAL
9543#else
9544#  ifdef DL_GLOBAL
9545#    define LT_DLGLOBAL         DL_GLOBAL
9546#  else
9547#    define LT_DLGLOBAL         0
9548#  endif
9549#endif
9550
9551/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9552   find out it does not work in some platform. */
9553#ifndef LT_DLLAZY_OR_NOW
9554#  ifdef RTLD_LAZY
9555#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9556#  else
9557#    ifdef DL_LAZY
9558#      define LT_DLLAZY_OR_NOW          DL_LAZY
9559#    else
9560#      ifdef RTLD_NOW
9561#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9562#      else
9563#        ifdef DL_NOW
9564#          define LT_DLLAZY_OR_NOW      DL_NOW
9565#        else
9566#          define LT_DLLAZY_OR_NOW      0
9567#        endif
9568#      endif
9569#    endif
9570#  endif
9571#endif
9572
9573#ifdef __cplusplus
9574extern "C" void exit (int);
9575#endif
9576
9577void fnord() { int i=42;}
9578int main ()
9579{
9580  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9581  int status = $lt_dlunknown;
9582
9583  if (self)
9584    {
9585      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9586      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9587      /* dlclose (self); */
9588    }
9589  else
9590    puts (dlerror ());
9591
9592    exit (status);
9593}
9594EOF
9595  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596  (eval $ac_link) 2>&5
9597  ac_status=$?
9598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9600    (./conftest; exit; ) >&5 2>/dev/null
9601    lt_status=$?
9602    case x$lt_status in
9603      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9604      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9605      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9606    esac
9607  else :
9608    # compilation failed
9609    lt_cv_dlopen_self=no
9610  fi
9611fi
9612rm -fr conftest*
9613
9614
9615fi
9616echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9617echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9618
9619    if test "x$lt_cv_dlopen_self" = xyes; then
9620      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9621      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9622echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9623if test "${lt_cv_dlopen_self_static+set}" = set; then
9624  echo $ECHO_N "(cached) $ECHO_C" >&6
9625else
9626          if test "$cross_compiling" = yes; then :
9627  lt_cv_dlopen_self_static=cross
9628else
9629  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9630  lt_status=$lt_dlunknown
9631  cat > conftest.$ac_ext <<EOF
9632#line 9632 "configure"
9633#include "confdefs.h"
9634
9635#if HAVE_DLFCN_H
9636#include <dlfcn.h>
9637#endif
9638
9639#include <stdio.h>
9640
9641#ifdef RTLD_GLOBAL
9642#  define LT_DLGLOBAL           RTLD_GLOBAL
9643#else
9644#  ifdef DL_GLOBAL
9645#    define LT_DLGLOBAL         DL_GLOBAL
9646#  else
9647#    define LT_DLGLOBAL         0
9648#  endif
9649#endif
9650
9651/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9652   find out it does not work in some platform. */
9653#ifndef LT_DLLAZY_OR_NOW
9654#  ifdef RTLD_LAZY
9655#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9656#  else
9657#    ifdef DL_LAZY
9658#      define LT_DLLAZY_OR_NOW          DL_LAZY
9659#    else
9660#      ifdef RTLD_NOW
9661#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9662#      else
9663#        ifdef DL_NOW
9664#          define LT_DLLAZY_OR_NOW      DL_NOW
9665#        else
9666#          define LT_DLLAZY_OR_NOW      0
9667#        endif
9668#      endif
9669#    endif
9670#  endif
9671#endif
9672
9673#ifdef __cplusplus
9674extern "C" void exit (int);
9675#endif
9676
9677void fnord() { int i=42;}
9678int main ()
9679{
9680  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9681  int status = $lt_dlunknown;
9682
9683  if (self)
9684    {
9685      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9686      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9687      /* dlclose (self); */
9688    }
9689  else
9690    puts (dlerror ());
9691
9692    exit (status);
9693}
9694EOF
9695  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9696  (eval $ac_link) 2>&5
9697  ac_status=$?
9698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9700    (./conftest; exit; ) >&5 2>/dev/null
9701    lt_status=$?
9702    case x$lt_status in
9703      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9704      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9705      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9706    esac
9707  else :
9708    # compilation failed
9709    lt_cv_dlopen_self_static=no
9710  fi
9711fi
9712rm -fr conftest*
9713
9714
9715fi
9716echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9717echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9718    fi
9719
9720    CPPFLAGS="$save_CPPFLAGS"
9721    LDFLAGS="$save_LDFLAGS"
9722    LIBS="$save_LIBS"
9723    ;;
9724  esac
9725
9726  case $lt_cv_dlopen_self in
9727  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9728  *) enable_dlopen_self=unknown ;;
9729  esac
9730
9731  case $lt_cv_dlopen_self_static in
9732  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9733  *) enable_dlopen_self_static=unknown ;;
9734  esac
9735fi
9736
9737
9738# Report which library types will actually be built
9739echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9740echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9741echo "$as_me:$LINENO: result: $can_build_shared" >&5
9742echo "${ECHO_T}$can_build_shared" >&6
9743
9744echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9745echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9746test "$can_build_shared" = "no" && enable_shared=no
9747
9748# On AIX, shared libraries and static libraries use the same namespace, and
9749# are all built from PIC.
9750case $host_os in
9751aix3*)
9752  test "$enable_shared" = yes && enable_static=no
9753  if test -n "$RANLIB"; then
9754    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9755    postinstall_cmds='$RANLIB $lib'
9756  fi
9757  ;;
9758
9759aix4* | aix5*)
9760  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9761    test "$enable_shared" = yes && enable_static=no
9762  fi
9763    ;;
9764esac
9765echo "$as_me:$LINENO: result: $enable_shared" >&5
9766echo "${ECHO_T}$enable_shared" >&6
9767
9768echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9769echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9770# Make sure either enable_shared or enable_static is yes.
9771test "$enable_shared" = yes || enable_static=yes
9772echo "$as_me:$LINENO: result: $enable_static" >&5
9773echo "${ECHO_T}$enable_static" >&6
9774
9775# The else clause should only fire when bootstrapping the
9776# libtool distribution, otherwise you forgot to ship ltmain.sh
9777# with your package, and you will get complaints that there are
9778# no rules to generate ltmain.sh.
9779if test -f "$ltmain"; then
9780  # See if we are running on zsh, and set the options which allow our commands through
9781  # without removal of \ escapes.
9782  if test -n "${ZSH_VERSION+set}" ; then
9783    setopt NO_GLOB_SUBST
9784  fi
9785  # Now quote all the things that may contain metacharacters while being
9786  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9787  # variables and quote the copies for generation of the libtool script.
9788  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9789    SED SHELL STRIP \
9790    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9791    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9792    deplibs_check_method reload_flag reload_cmds need_locks \
9793    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9794    lt_cv_sys_global_symbol_to_c_name_address \
9795    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9796    old_postinstall_cmds old_postuninstall_cmds \
9797    compiler \
9798    CC \
9799    LD \
9800    lt_prog_compiler_wl \
9801    lt_prog_compiler_pic \
9802    lt_prog_compiler_static \
9803    lt_prog_compiler_no_builtin_flag \
9804    export_dynamic_flag_spec \
9805    thread_safe_flag_spec \
9806    whole_archive_flag_spec \
9807    enable_shared_with_static_runtimes \
9808    old_archive_cmds \
9809    old_archive_from_new_cmds \
9810    predep_objects \
9811    postdep_objects \
9812    predeps \
9813    postdeps \
9814    compiler_lib_search_path \
9815    archive_cmds \
9816    archive_expsym_cmds \
9817    postinstall_cmds \
9818    postuninstall_cmds \
9819    old_archive_from_expsyms_cmds \
9820    allow_undefined_flag \
9821    no_undefined_flag \
9822    export_symbols_cmds \
9823    hardcode_libdir_flag_spec \
9824    hardcode_libdir_flag_spec_ld \
9825    hardcode_libdir_separator \
9826    hardcode_automatic \
9827    module_cmds \
9828    module_expsym_cmds \
9829    lt_cv_prog_compiler_c_o \
9830    exclude_expsyms \
9831    include_expsyms; do
9832
9833    case $var in
9834    old_archive_cmds | \
9835    old_archive_from_new_cmds | \
9836    archive_cmds | \
9837    archive_expsym_cmds | \
9838    module_cmds | \
9839    module_expsym_cmds | \
9840    old_archive_from_expsyms_cmds | \
9841    export_symbols_cmds | \
9842    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9843    postinstall_cmds | postuninstall_cmds | \
9844    old_postinstall_cmds | old_postuninstall_cmds | \
9845    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9846      # Double-quote double-evaled strings.
9847      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9848      ;;
9849    *)
9850      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9851      ;;
9852    esac
9853  done
9854
9855  case $lt_echo in
9856  *'\$0 --fallback-echo"')
9857    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9858    ;;
9859  esac
9860
9861cfgfile="${ofile}T"
9862  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9863  $rm -f "$cfgfile"
9864  { echo "$as_me:$LINENO: creating $ofile" >&5
9865echo "$as_me: creating $ofile" >&6;}
9866
9867  cat <<__EOF__ >> "$cfgfile"
9868#! $SHELL
9869
9870# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9871# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9872# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9873#
9874# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9875# Free Software Foundation, Inc.
9876#
9877# This file is part of GNU Libtool:
9878# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9879#
9880# This program is free software; you can redistribute it and/or modify
9881# it under the terms of the GNU General Public License as published by
9882# the Free Software Foundation; either version 2 of the License, or
9883# (at your option) any later version.
9884#
9885# This program is distributed in the hope that it will be useful, but
9886# WITHOUT ANY WARRANTY; without even the implied warranty of
9887# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9888# General Public License for more details.
9889#
9890# You should have received a copy of the GNU General Public License
9891# along with this program; if not, write to the Free Software
9892# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9893#
9894# As a special exception to the GNU General Public License, if you
9895# distribute this file as part of a program that contains a
9896# configuration script generated by Autoconf, you may include it under
9897# the same distribution terms that you use for the rest of that program.
9898
9899# A sed program that does not truncate output.
9900SED=$lt_SED
9901
9902# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9903Xsed="$SED -e 1s/^X//"
9904
9905# The HP-UX ksh and POSIX shell print the target directory to stdout
9906# if CDPATH is set.
9907(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9908
9909# The names of the tagged configurations supported by this script.
9910available_tags=
9911
9912# ### BEGIN LIBTOOL CONFIG
9913
9914# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9915
9916# Shell to use when invoking shell scripts.
9917SHELL=$lt_SHELL
9918
9919# Whether or not to build shared libraries.
9920build_libtool_libs=$enable_shared
9921
9922# Whether or not to build static libraries.
9923build_old_libs=$enable_static
9924
9925# Whether or not to add -lc for building shared libraries.
9926build_libtool_need_lc=$archive_cmds_need_lc
9927
9928# Whether or not to disallow shared libs when runtime libs are static
9929allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9930
9931# Whether or not to optimize for fast installation.
9932fast_install=$enable_fast_install
9933
9934# The host system.
9935host_alias=$host_alias
9936host=$host
9937host_os=$host_os
9938
9939# The build system.
9940build_alias=$build_alias
9941build=$build
9942build_os=$build_os
9943
9944# An echo program that does not interpret backslashes.
9945echo=$lt_echo
9946
9947# The archiver.
9948AR=$lt_AR
9949AR_FLAGS=$lt_AR_FLAGS
9950
9951# A C compiler.
9952LTCC=$lt_LTCC
9953
9954# LTCC compiler flags.
9955LTCFLAGS=$lt_LTCFLAGS
9956
9957# A language-specific compiler.
9958CC=$lt_compiler
9959
9960# Is the compiler the GNU C compiler?
9961with_gcc=$GCC
9962
9963# An ERE matcher.
9964EGREP=$lt_EGREP
9965
9966# The linker used to build libraries.
9967LD=$lt_LD
9968
9969# Whether we need hard or soft links.
9970LN_S=$lt_LN_S
9971
9972# A BSD-compatible nm program.
9973NM=$lt_NM
9974
9975# A symbol stripping program
9976STRIP=$lt_STRIP
9977
9978# Used to examine libraries when file_magic_cmd begins "file"
9979MAGIC_CMD=$MAGIC_CMD
9980
9981# Used on cygwin: DLL creation program.
9982DLLTOOL="$DLLTOOL"
9983
9984# Used on cygwin: object dumper.
9985OBJDUMP="$OBJDUMP"
9986
9987# Used on cygwin: assembler.
9988AS="$AS"
9989
9990# The name of the directory that contains temporary libtool files.
9991objdir=$objdir
9992
9993# How to create reloadable object files.
9994reload_flag=$lt_reload_flag
9995reload_cmds=$lt_reload_cmds
9996
9997# How to pass a linker flag through the compiler.
9998wl=$lt_lt_prog_compiler_wl
9999
10000# Object file suffix (normally "o").
10001objext="$ac_objext"
10002
10003# Old archive suffix (normally "a").
10004libext="$libext"
10005
10006# Shared library suffix (normally ".so").
10007shrext_cmds='$shrext_cmds'
10008
10009# Executable file suffix (normally "").
10010exeext="$exeext"
10011
10012# Additional compiler flags for building library objects.
10013pic_flag=$lt_lt_prog_compiler_pic
10014pic_mode=$pic_mode
10015
10016# What is the maximum length of a command?
10017max_cmd_len=$lt_cv_sys_max_cmd_len
10018
10019# Does compiler simultaneously support -c and -o options?
10020compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10021
10022# Must we lock files when doing compilation?
10023need_locks=$lt_need_locks
10024
10025# Do we need the lib prefix for modules?
10026need_lib_prefix=$need_lib_prefix
10027
10028# Do we need a version for libraries?
10029need_version=$need_version
10030
10031# Whether dlopen is supported.
10032dlopen_support=$enable_dlopen
10033
10034# Whether dlopen of programs is supported.
10035dlopen_self=$enable_dlopen_self
10036
10037# Whether dlopen of statically linked programs is supported.
10038dlopen_self_static=$enable_dlopen_self_static
10039
10040# Compiler flag to prevent dynamic linking.
10041link_static_flag=$lt_lt_prog_compiler_static
10042
10043# Compiler flag to turn off builtin functions.
10044no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10045
10046# Compiler flag to allow reflexive dlopens.
10047export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10048
10049# Compiler flag to generate shared objects directly from archives.
10050whole_archive_flag_spec=$lt_whole_archive_flag_spec
10051
10052# Compiler flag to generate thread-safe objects.
10053thread_safe_flag_spec=$lt_thread_safe_flag_spec
10054
10055# Library versioning type.
10056version_type=$version_type
10057
10058# Format of library name prefix.
10059libname_spec=$lt_libname_spec
10060
10061# List of archive names.  First name is the real one, the rest are links.
10062# The last name is the one that the linker finds with -lNAME.
10063library_names_spec=$lt_library_names_spec
10064
10065# The coded name of the library, if different from the real name.
10066soname_spec=$lt_soname_spec
10067
10068# Commands used to build and install an old-style archive.
10069RANLIB=$lt_RANLIB
10070old_archive_cmds=$lt_old_archive_cmds
10071old_postinstall_cmds=$lt_old_postinstall_cmds
10072old_postuninstall_cmds=$lt_old_postuninstall_cmds
10073
10074# Create an old-style archive from a shared archive.
10075old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10076
10077# Create a temporary old-style archive to link instead of a shared archive.
10078old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10079
10080# Commands used to build and install a shared archive.
10081archive_cmds=$lt_archive_cmds
10082archive_expsym_cmds=$lt_archive_expsym_cmds
10083postinstall_cmds=$lt_postinstall_cmds
10084postuninstall_cmds=$lt_postuninstall_cmds
10085
10086# Commands used to build a loadable module (assumed same as above if empty)
10087module_cmds=$lt_module_cmds
10088module_expsym_cmds=$lt_module_expsym_cmds
10089
10090# Commands to strip libraries.
10091old_striplib=$lt_old_striplib
10092striplib=$lt_striplib
10093
10094# Dependencies to place before the objects being linked to create a
10095# shared library.
10096predep_objects=$lt_predep_objects
10097
10098# Dependencies to place after the objects being linked to create a
10099# shared library.
10100postdep_objects=$lt_postdep_objects
10101
10102# Dependencies to place before the objects being linked to create a
10103# shared library.
10104predeps=$lt_predeps
10105
10106# Dependencies to place after the objects being linked to create a
10107# shared library.
10108postdeps=$lt_postdeps
10109
10110# The library search path used internally by the compiler when linking
10111# a shared library.
10112compiler_lib_search_path=$lt_compiler_lib_search_path
10113
10114# Method to check whether dependent libraries are shared objects.
10115deplibs_check_method=$lt_deplibs_check_method
10116
10117# Command to use when deplibs_check_method == file_magic.
10118file_magic_cmd=$lt_file_magic_cmd
10119
10120# Flag that allows shared libraries with undefined symbols to be built.
10121allow_undefined_flag=$lt_allow_undefined_flag
10122
10123# Flag that forces no undefined symbols.
10124no_undefined_flag=$lt_no_undefined_flag
10125
10126# Commands used to finish a libtool library installation in a directory.
10127finish_cmds=$lt_finish_cmds
10128
10129# Same as above, but a single script fragment to be evaled but not shown.
10130finish_eval=$lt_finish_eval
10131
10132# Take the output of nm and produce a listing of raw symbols and C names.
10133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10134
10135# Transform the output of nm in a proper C declaration
10136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10137
10138# Transform the output of nm in a C name address pair
10139global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10140
10141# This is the shared library runtime path variable.
10142runpath_var=$runpath_var
10143
10144# This is the shared library path variable.
10145shlibpath_var=$shlibpath_var
10146
10147# Is shlibpath searched before the hard-coded library search path?
10148shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10149
10150# How to hardcode a shared library path into an executable.
10151hardcode_action=$hardcode_action
10152
10153# Whether we should hardcode library paths into libraries.
10154hardcode_into_libs=$hardcode_into_libs
10155
10156# Flag to hardcode \$libdir into a binary during linking.
10157# This must work even if \$libdir does not exist.
10158hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10159
10160# If ld is used when linking, flag to hardcode \$libdir into
10161# a binary during linking. This must work even if \$libdir does
10162# not exist.
10163hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10164
10165# Whether we need a single -rpath flag with a separated argument.
10166hardcode_libdir_separator=$lt_hardcode_libdir_separator
10167
10168# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10169# resulting binary.
10170hardcode_direct=$hardcode_direct
10171
10172# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10173# resulting binary.
10174hardcode_minus_L=$hardcode_minus_L
10175
10176# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10177# the resulting binary.
10178hardcode_shlibpath_var=$hardcode_shlibpath_var
10179
10180# Set to yes if building a shared library automatically hardcodes DIR into the library
10181# and all subsequent libraries and executables linked against it.
10182hardcode_automatic=$hardcode_automatic
10183
10184# Variables whose values should be saved in libtool wrapper scripts and
10185# restored at relink time.
10186variables_saved_for_relink="$variables_saved_for_relink"
10187
10188# Whether libtool must link a program against all its dependency libraries.
10189link_all_deplibs=$link_all_deplibs
10190
10191# Compile-time system search path for libraries
10192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10193
10194# Run-time system search path for libraries
10195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10196
10197# Fix the shell variable \$srcfile for the compiler.
10198fix_srcfile_path="$fix_srcfile_path"
10199
10200# Set to yes if exported symbols are required.
10201always_export_symbols=$always_export_symbols
10202
10203# The commands to list exported symbols.
10204export_symbols_cmds=$lt_export_symbols_cmds
10205
10206# The commands to extract the exported symbol list from a shared archive.
10207extract_expsyms_cmds=$lt_extract_expsyms_cmds
10208
10209# Symbols that should not be listed in the preloaded symbols.
10210exclude_expsyms=$lt_exclude_expsyms
10211
10212# Symbols that must always be exported.
10213include_expsyms=$lt_include_expsyms
10214
10215# ### END LIBTOOL CONFIG
10216
10217__EOF__
10218
10219
10220  case $host_os in
10221  aix3*)
10222    cat <<\EOF >> "$cfgfile"
10223
10224# AIX sometimes has problems with the GCC collect2 program.  For some
10225# reason, if we set the COLLECT_NAMES environment variable, the problems
10226# vanish in a puff of smoke.
10227if test "X${COLLECT_NAMES+set}" != Xset; then
10228  COLLECT_NAMES=
10229  export COLLECT_NAMES
10230fi
10231EOF
10232    ;;
10233  esac
10234
10235  # We use sed instead of cat because bash on DJGPP gets confused if
10236  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10237  # text mode, it properly converts lines to CR/LF.  This bash problem
10238  # is reportedly fixed, but why not run on old versions too?
10239  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10240
10241  mv -f "$cfgfile" "$ofile" || \
10242    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10243  chmod +x "$ofile"
10244
10245else
10246  # If there is no Makefile yet, we rely on a make rule to execute
10247  # `config.status --recheck' to rerun these tests and create the
10248  # libtool script then.
10249  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10250  if test -f "$ltmain_in"; then
10251    test -f Makefile && make "$ltmain"
10252  fi
10253fi
10254
10255
10256ac_ext=c
10257ac_cpp='$CPP $CPPFLAGS'
10258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260ac_compiler_gnu=$ac_cv_c_compiler_gnu
10261
10262CC="$lt_save_CC"
10263
10264
10265# Check whether --with-tags or --without-tags was given.
10266if test "${with_tags+set}" = set; then
10267  withval="$with_tags"
10268  tagnames="$withval"
10269fi;
10270
10271if test -f "$ltmain" && test -n "$tagnames"; then
10272  if test ! -f "${ofile}"; then
10273    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10274echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10275  fi
10276
10277  if test -z "$LTCC"; then
10278    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10279    if test -z "$LTCC"; then
10280      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10281echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10282    else
10283      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10284echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10285    fi
10286  fi
10287  if test -z "$LTCFLAGS"; then
10288    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10289  fi
10290
10291  # Extract list of available tagged configurations in $ofile.
10292  # Note that this assumes the entire list is on one line.
10293  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10294
10295  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10296  for tagname in $tagnames; do
10297    IFS="$lt_save_ifs"
10298    # Check whether tagname contains only valid characters
10299    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10300    "") ;;
10301    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10302echo "$as_me: error: invalid tag name: $tagname" >&2;}
10303   { (exit 1); exit 1; }; }
10304        ;;
10305    esac
10306
10307    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10308    then
10309      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10310echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10311   { (exit 1); exit 1; }; }
10312    fi
10313
10314    # Update the list of available tags.
10315    if test -n "$tagname"; then
10316      echo appending configuration tag \"$tagname\" to $ofile
10317
10318      case $tagname in
10319      CXX)
10320        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10321            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10322            (test "X$CXX" != "Xg++"))) ; then
10323          ac_ext=cc
10324ac_cpp='$CXXCPP $CPPFLAGS'
10325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10328
10329
10330
10331
10332archive_cmds_need_lc_CXX=no
10333allow_undefined_flag_CXX=
10334always_export_symbols_CXX=no
10335archive_expsym_cmds_CXX=
10336export_dynamic_flag_spec_CXX=
10337hardcode_direct_CXX=no
10338hardcode_libdir_flag_spec_CXX=
10339hardcode_libdir_flag_spec_ld_CXX=
10340hardcode_libdir_separator_CXX=
10341hardcode_minus_L_CXX=no
10342hardcode_shlibpath_var_CXX=unsupported
10343hardcode_automatic_CXX=no
10344module_cmds_CXX=
10345module_expsym_cmds_CXX=
10346link_all_deplibs_CXX=unknown
10347old_archive_cmds_CXX=$old_archive_cmds
10348no_undefined_flag_CXX=
10349whole_archive_flag_spec_CXX=
10350enable_shared_with_static_runtimes_CXX=no
10351
10352# Dependencies to place before and after the object being linked:
10353predep_objects_CXX=
10354postdep_objects_CXX=
10355predeps_CXX=
10356postdeps_CXX=
10357compiler_lib_search_path_CXX=
10358
10359# Source file extension for C++ test sources.
10360ac_ext=cpp
10361
10362# Object file extension for compiled C++ test sources.
10363objext=o
10364objext_CXX=$objext
10365
10366# Code to be used in simple compile tests
10367lt_simple_compile_test_code="int some_variable = 0;\n"
10368
10369# Code to be used in simple link tests
10370lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10371
10372# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10373
10374# If no C compiler was specified, use CC.
10375LTCC=${LTCC-"$CC"}
10376
10377# If no C compiler flags were specified, use CFLAGS.
10378LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10379
10380# Allow CC to be a program name with arguments.
10381compiler=$CC
10382
10383
10384# save warnings/boilerplate of simple test code
10385ac_outfile=conftest.$ac_objext
10386printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10387eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10388_lt_compiler_boilerplate=`cat conftest.err`
10389$rm conftest*
10390
10391ac_outfile=conftest.$ac_objext
10392printf "$lt_simple_link_test_code" >conftest.$ac_ext
10393eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10394_lt_linker_boilerplate=`cat conftest.err`
10395$rm conftest*
10396
10397
10398# Allow CC to be a program name with arguments.
10399lt_save_CC=$CC
10400lt_save_LD=$LD
10401lt_save_GCC=$GCC
10402GCC=$GXX
10403lt_save_with_gnu_ld=$with_gnu_ld
10404lt_save_path_LD=$lt_cv_path_LD
10405if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10406  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10407else
10408  $as_unset lt_cv_prog_gnu_ld
10409fi
10410if test -n "${lt_cv_path_LDCXX+set}"; then
10411  lt_cv_path_LD=$lt_cv_path_LDCXX
10412else
10413  $as_unset lt_cv_path_LD
10414fi
10415test -z "${LDCXX+set}" || LD=$LDCXX
10416CC=${CXX-"c++"}
10417compiler=$CC
10418compiler_CXX=$CC
10419for cc_temp in $compiler""; do
10420  case $cc_temp in
10421    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10422    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10423    \-*) ;;
10424    *) break;;
10425  esac
10426done
10427cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10428
10429
10430# We don't want -fno-exception wen compiling C++ code, so set the
10431# no_builtin_flag separately
10432if test "$GXX" = yes; then
10433  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10434else
10435  lt_prog_compiler_no_builtin_flag_CXX=
10436fi
10437
10438if test "$GXX" = yes; then
10439  # Set up default GNU C++ configuration
10440
10441
10442# Check whether --with-gnu-ld or --without-gnu-ld was given.
10443if test "${with_gnu_ld+set}" = set; then
10444  withval="$with_gnu_ld"
10445  test "$withval" = no || with_gnu_ld=yes
10446else
10447  with_gnu_ld=no
10448fi;
10449ac_prog=ld
10450if test "$GCC" = yes; then
10451  # Check if gcc -print-prog-name=ld gives a path.
10452  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10453echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10454  case $host in
10455  *-*-mingw*)
10456    # gcc leaves a trailing carriage return which upsets mingw
10457    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10458  *)
10459    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10460  esac
10461  case $ac_prog in
10462    # Accept absolute paths.
10463    [\\/]* | ?:[\\/]*)
10464      re_direlt='/[^/][^/]*/\.\./'
10465      # Canonicalize the pathname of ld
10466      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10467      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10468        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10469      done
10470      test -z "$LD" && LD="$ac_prog"
10471      ;;
10472  "")
10473    # If it fails, then pretend we aren't using GCC.
10474    ac_prog=ld
10475    ;;
10476  *)
10477    # If it is relative, then search for the first ld in PATH.
10478    with_gnu_ld=unknown
10479    ;;
10480  esac
10481elif test "$with_gnu_ld" = yes; then
10482  echo "$as_me:$LINENO: checking for GNU ld" >&5
10483echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10484else
10485  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10486echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10487fi
10488if test "${lt_cv_path_LD+set}" = set; then
10489  echo $ECHO_N "(cached) $ECHO_C" >&6
10490else
10491  if test -z "$LD"; then
10492  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10493  for ac_dir in $PATH; do
10494    IFS="$lt_save_ifs"
10495    test -z "$ac_dir" && ac_dir=.
10496    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10497      lt_cv_path_LD="$ac_dir/$ac_prog"
10498      # Check to see if the program is GNU ld.  I'd rather use --version,
10499      # but apparently some variants of GNU ld only accept -v.
10500      # Break only if it was the GNU/non-GNU ld that we prefer.
10501      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10502      *GNU* | *'with BFD'*)
10503        test "$with_gnu_ld" != no && break
10504        ;;
10505      *)
10506        test "$with_gnu_ld" != yes && break
10507        ;;
10508      esac
10509    fi
10510  done
10511  IFS="$lt_save_ifs"
10512else
10513  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10514fi
10515fi
10516
10517LD="$lt_cv_path_LD"
10518if test -n "$LD"; then
10519  echo "$as_me:$LINENO: result: $LD" >&5
10520echo "${ECHO_T}$LD" >&6
10521else
10522  echo "$as_me:$LINENO: result: no" >&5
10523echo "${ECHO_T}no" >&6
10524fi
10525test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10526echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10527   { (exit 1); exit 1; }; }
10528echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10529echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10530if test "${lt_cv_prog_gnu_ld+set}" = set; then
10531  echo $ECHO_N "(cached) $ECHO_C" >&6
10532else
10533  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10534case `$LD -v 2>&1 </dev/null` in
10535*GNU* | *'with BFD'*)
10536  lt_cv_prog_gnu_ld=yes
10537  ;;
10538*)
10539  lt_cv_prog_gnu_ld=no
10540  ;;
10541esac
10542fi
10543echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10544echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10545with_gnu_ld=$lt_cv_prog_gnu_ld
10546
10547
10548
10549  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10550  # archiving commands below assume that GNU ld is being used.
10551  if test "$with_gnu_ld" = yes; then
10552    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10553    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'
10554
10555    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10556    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10557
10558    # If archive_cmds runs LD, not CC, wlarc should be empty
10559    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10560    #     investigate it a little bit more. (MM)
10561    wlarc='${wl}'
10562
10563    # ancient GNU ld didn't support --whole-archive et. al.
10564    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10565        grep 'no-whole-archive' > /dev/null; then
10566      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10567    else
10568      whole_archive_flag_spec_CXX=
10569    fi
10570  else
10571    with_gnu_ld=no
10572    wlarc=
10573
10574    # A generic and very simple default shared library creation
10575    # command for GNU C++ for the case where it uses the native
10576    # linker, instead of GNU ld.  If possible, this setting should
10577    # overridden to take advantage of the native linker features on
10578    # the platform it is being used on.
10579    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10580  fi
10581
10582  # Commands to make compiler produce verbose output that lists
10583  # what "hidden" libraries, object files and flags are used when
10584  # linking a shared library.
10585  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10586
10587else
10588  GXX=no
10589  with_gnu_ld=no
10590  wlarc=
10591fi
10592
10593# PORTME: fill in a description of your system's C++ link characteristics
10594echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10595echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10596ld_shlibs_CXX=yes
10597case $host_os in
10598  aix3*)
10599    # FIXME: insert proper C++ library support
10600    ld_shlibs_CXX=no
10601    ;;
10602  aix4* | aix5*)
10603    if test "$host_cpu" = ia64; then
10604      # On IA64, the linker does run time linking by default, so we don't
10605      # have to do anything special.
10606      aix_use_runtimelinking=no
10607      exp_sym_flag='-Bexport'
10608      no_entry_flag=""
10609    else
10610      aix_use_runtimelinking=no
10611
10612      # Test if we are trying to use run time linking or normal
10613      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10614      # need to do runtime linking.
10615      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10616        for ld_flag in $LDFLAGS; do
10617          case $ld_flag in
10618          *-brtl*)
10619            aix_use_runtimelinking=yes
10620            break
10621            ;;
10622          esac
10623        done
10624        ;;
10625      esac
10626
10627      exp_sym_flag='-bexport'
10628      no_entry_flag='-bnoentry'
10629    fi
10630
10631    # When large executables or shared objects are built, AIX ld can
10632    # have problems creating the table of contents.  If linking a library
10633    # or program results in "error TOC overflow" add -mminimal-toc to
10634    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10635    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10636
10637    archive_cmds_CXX=''
10638    hardcode_direct_CXX=yes
10639    hardcode_libdir_separator_CXX=':'
10640    link_all_deplibs_CXX=yes
10641
10642    if test "$GXX" = yes; then
10643      case $host_os in aix4.[012]|aix4.[012].*)
10644      # We only want to do this on AIX 4.2 and lower, the check
10645      # below for broken collect2 doesn't work under 4.3+
10646        collect2name=`${CC} -print-prog-name=collect2`
10647        if test -f "$collect2name" && \
10648           strings "$collect2name" | grep resolve_lib_name >/dev/null
10649        then
10650          # We have reworked collect2
10651          hardcode_direct_CXX=yes
10652        else
10653          # We have old collect2
10654          hardcode_direct_CXX=unsupported
10655          # It fails to find uninstalled libraries when the uninstalled
10656          # path is not listed in the libpath.  Setting hardcode_minus_L
10657          # to unsupported forces relinking
10658          hardcode_minus_L_CXX=yes
10659          hardcode_libdir_flag_spec_CXX='-L$libdir'
10660          hardcode_libdir_separator_CXX=
10661        fi
10662        ;;
10663      esac
10664      shared_flag='-shared'
10665      if test "$aix_use_runtimelinking" = yes; then
10666        shared_flag="$shared_flag "'${wl}-G'
10667      fi
10668    else
10669      # not using gcc
10670      if test "$host_cpu" = ia64; then
10671        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10672        # chokes on -Wl,-G. The following line is correct:
10673        shared_flag='-G'
10674      else
10675        if test "$aix_use_runtimelinking" = yes; then
10676          shared_flag='${wl}-G'
10677        else
10678          shared_flag='${wl}-bM:SRE'
10679        fi
10680      fi
10681    fi
10682
10683    # It seems that -bexpall does not export symbols beginning with
10684    # underscore (_), so it is better to generate a list of symbols to export.
10685    always_export_symbols_CXX=yes
10686    if test "$aix_use_runtimelinking" = yes; then
10687      # Warning - without using the other runtime loading flags (-brtl),
10688      # -berok will link without error, but may produce a broken library.
10689      allow_undefined_flag_CXX='-berok'
10690      # Determine the default libpath from the value encoded in an empty executable.
10691      cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h.  */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h.  */
10697
10698int
10699main ()
10700{
10701
10702  ;
10703  return 0;
10704}
10705_ACEOF
10706rm -f conftest.$ac_objext conftest$ac_exeext
10707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708  (eval $ac_link) 2>conftest.er1
10709  ac_status=$?
10710  grep -v '^ *+' conftest.er1 >conftest.err
10711  rm -f conftest.er1
10712  cat conftest.err >&5
10713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); } &&
10715         { ac_try='test -z "$ac_cxx_werror_flag"
10716                         || test ! -s conftest.err'
10717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718  (eval $ac_try) 2>&5
10719  ac_status=$?
10720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721  (exit $ac_status); }; } &&
10722         { ac_try='test -s conftest$ac_exeext'
10723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724  (eval $ac_try) 2>&5
10725  ac_status=$?
10726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727  (exit $ac_status); }; }; then
10728
10729aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10730}'`
10731# Check for a 64-bit object if we didn't find anything.
10732if 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; }
10733}'`; fi
10734else
10735  echo "$as_me: failed program was:" >&5
10736sed 's/^/| /' conftest.$ac_ext >&5
10737
10738fi
10739rm -f conftest.err conftest.$ac_objext \
10740      conftest$ac_exeext conftest.$ac_ext
10741if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10742
10743      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10744
10745      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"
10746     else
10747      if test "$host_cpu" = ia64; then
10748        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10749        allow_undefined_flag_CXX="-z nodefs"
10750        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"
10751      else
10752        # Determine the default libpath from the value encoded in an empty executable.
10753        cat >conftest.$ac_ext <<_ACEOF
10754/* confdefs.h.  */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h.  */
10759
10760int
10761main ()
10762{
10763
10764  ;
10765  return 0;
10766}
10767_ACEOF
10768rm -f conftest.$ac_objext conftest$ac_exeext
10769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10770  (eval $ac_link) 2>conftest.er1
10771  ac_status=$?
10772  grep -v '^ *+' conftest.er1 >conftest.err
10773  rm -f conftest.er1
10774  cat conftest.err >&5
10775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776  (exit $ac_status); } &&
10777         { ac_try='test -z "$ac_cxx_werror_flag"
10778                         || test ! -s conftest.err'
10779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780  (eval $ac_try) 2>&5
10781  ac_status=$?
10782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783  (exit $ac_status); }; } &&
10784         { ac_try='test -s conftest$ac_exeext'
10785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786  (eval $ac_try) 2>&5
10787  ac_status=$?
10788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789  (exit $ac_status); }; }; then
10790
10791aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10792}'`