source: ThirdParty/Blas/trunk/configure @ 69

Last change on this file since 69 was 69, checked in by andreasw, 13 years ago

renamed get.blas to get.Blas

  • Property svn:executable set to *
File size: 677.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 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='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyBlas 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.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 build build_cpu build_vendor build_os COIN_DEBUG_TRUE COIN_DEBUG_FALSE F77 FFLAGS LDFLAGS ac_ct_F77 EXEEXT OBJEXT ADD_FFLAGS 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 LIBOBJS LTLIBOBJS VPATH_DISTCLEANFILES'
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_F77_set=${F77+set}
917ac_env_F77_value=$F77
918ac_cv_env_F77_set=${F77+set}
919ac_cv_env_F77_value=$F77
920ac_env_FFLAGS_set=${FFLAGS+set}
921ac_env_FFLAGS_value=$FFLAGS
922ac_cv_env_FFLAGS_set=${FFLAGS+set}
923ac_cv_env_FFLAGS_value=$FFLAGS
924ac_env_LDFLAGS_set=${LDFLAGS+set}
925ac_env_LDFLAGS_value=$LDFLAGS
926ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
927ac_cv_env_LDFLAGS_value=$LDFLAGS
928ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
929ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
930ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
931ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
932ac_env_MPIF77_set=${MPIF77+set}
933ac_env_MPIF77_value=$MPIF77
934ac_cv_env_MPIF77_set=${MPIF77+set}
935ac_cv_env_MPIF77_value=$MPIF77
936ac_env_CC_set=${CC+set}
937ac_env_CC_value=$CC
938ac_cv_env_CC_set=${CC+set}
939ac_cv_env_CC_value=$CC
940ac_env_CFLAGS_set=${CFLAGS+set}
941ac_env_CFLAGS_value=$CFLAGS
942ac_cv_env_CFLAGS_set=${CFLAGS+set}
943ac_cv_env_CFLAGS_value=$CFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_CPP_set=${CPP+set}
949ac_env_CPP_value=$CPP
950ac_cv_env_CPP_set=${CPP+set}
951ac_cv_env_CPP_value=$CPP
952ac_env_CXX_set=${CXX+set}
953ac_env_CXX_value=$CXX
954ac_cv_env_CXX_set=${CXX+set}
955ac_cv_env_CXX_value=$CXX
956ac_env_CXXFLAGS_set=${CXXFLAGS+set}
957ac_env_CXXFLAGS_value=$CXXFLAGS
958ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
959ac_cv_env_CXXFLAGS_value=$CXXFLAGS
960ac_env_CXXCPP_set=${CXXCPP+set}
961ac_env_CXXCPP_value=$CXXCPP
962ac_cv_env_CXXCPP_set=${CXXCPP+set}
963ac_cv_env_CXXCPP_value=$CXXCPP
964
965#
966# Report the --help message.
967#
968if test "$ac_init_help" = "long"; then
969  # Omit some internal or obsolete options to make the list less imposing.
970  # This message is too long to be a string in the A/UX 3.1 sh.
971  cat <<_ACEOF
972\`configure' configures ThirdPartyBlas 0.0 to adapt to many kinds of systems.
973
974Usage: $0 [OPTION]... [VAR=VALUE]...
975
976To assign environment variables (e.g., CC, CFLAGS...), specify them as
977VAR=VALUE.  See below for descriptions of some of the useful variables.
978
979Defaults for the options are specified in brackets.
980
981Configuration:
982  -h, --help              display this help and exit
983      --help=short        display options specific to this package
984      --help=recursive    display the short help of all the included packages
985  -V, --version           display version information and exit
986  -q, --quiet, --silent   do not print \`checking...' messages
987      --cache-file=FILE   cache test results in FILE [disabled]
988  -C, --config-cache      alias for \`--cache-file=config.cache'
989  -n, --no-create         do not create output files
990      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
991
992_ACEOF
993
994  cat <<_ACEOF
995Installation directories:
996  --prefix=PREFIX         install architecture-independent files in PREFIX
997                          [$ac_default_prefix]
998  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
999                          [PREFIX]
1000
1001By default, \`make install' will install all the files in
1002\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1003an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1004for instance \`--prefix=\$HOME'.
1005
1006For better control, use the options below.
1007
1008Fine tuning of the installation directories:
1009  --bindir=DIR           user executables [EPREFIX/bin]
1010  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1011  --libexecdir=DIR       program executables [EPREFIX/libexec]
1012  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1013  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1014  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1015  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1016  --libdir=DIR           object code libraries [EPREFIX/lib]
1017  --includedir=DIR       C header files [PREFIX/include]
1018  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1019  --infodir=DIR          info documentation [PREFIX/info]
1020  --mandir=DIR           man documentation [PREFIX/man]
1021_ACEOF
1022
1023  cat <<\_ACEOF
1024
1025Program names:
1026  --program-prefix=PREFIX            prepend PREFIX to installed program names
1027  --program-suffix=SUFFIX            append SUFFIX to installed program names
1028  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1029
1030System types:
1031  --build=BUILD     configure for building on BUILD [guessed]
1032  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1033_ACEOF
1034fi
1035
1036if test -n "$ac_init_help"; then
1037  case $ac_init_help in
1038     short | recursive ) echo "Configuration of ThirdPartyBlas 0.0:";;
1039   esac
1040  cat <<\_ACEOF
1041
1042Optional Features:
1043  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1044  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1045  --enable-debug          compile with debug options and runtime tests
1046  --enable-static[=PKGS]
1047                          build static libraries [default=no]
1048  --enable-maintainer-mode  enable make rules and dependencies not useful
1049                          (and sometimes confusing) to the casual installer
1050  --disable-dependency-tracking  speeds up one-time build
1051  --enable-dependency-tracking   do not reject slow dependency extractors
1052  --enable-shared[=PKGS]
1053                          build shared libraries [default=yes]
1054  --enable-fast-install[=PKGS]
1055                          optimize for fast installation [default=yes]
1056  --disable-libtool-lock  avoid locking (might break parallel builds)
1057
1058Optional Packages:
1059  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1060  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1061  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1062  --with-pic              try to use only PIC/non-PIC objects [default=use
1063                          both]
1064  --with-tags[=TAGS]
1065                          include additional configurations [automatic]
1066
1067Some influential environment variables:
1068  F77         Fortran 77 compiler command
1069  FFLAGS      Fortran 77 compiler flags
1070  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1071              nonstandard directory <lib dir>
1072  ADD_FFLAGS  Additional Fortran compiler options
1073  MPIF77      Fortran MPI Compiler
1074  CC          C compiler command
1075  CFLAGS      C compiler flags
1076  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1077              headers in a nonstandard directory <include dir>
1078  CPP         C preprocessor
1079  CXX         C++ compiler command
1080  CXXFLAGS    C++ compiler flags
1081  CXXCPP      C++ preprocessor
1082
1083Use these variables to override the choices made by `configure' or to help
1084it to find libraries and programs with nonstandard names/locations.
1085
1086Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1087_ACEOF
1088fi
1089
1090if test "$ac_init_help" = "recursive"; then
1091  # If there are subdirs, report their specific --help.
1092  ac_popdir=`pwd`
1093  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1094    test -d $ac_dir || continue
1095    ac_builddir=.
1096
1097if test "$ac_dir" != .; then
1098  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1099  # A "../" for each directory in $ac_dir_suffix.
1100  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101else
1102  ac_dir_suffix= ac_top_builddir=
1103fi
1104
1105case $srcdir in
1106  .)  # No --srcdir option.  We are building in place.
1107    ac_srcdir=.
1108    if test -z "$ac_top_builddir"; then
1109       ac_top_srcdir=.
1110    else
1111       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112    fi ;;
1113  [\\/]* | ?:[\\/]* )  # Absolute path.
1114    ac_srcdir=$srcdir$ac_dir_suffix;
1115    ac_top_srcdir=$srcdir ;;
1116  *) # Relative path.
1117    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1118    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1119esac
1120
1121# Do not use `cd foo && pwd` to compute absolute paths, because
1122# the directories may not exist.
1123case `pwd` in
1124.) ac_abs_builddir="$ac_dir";;
1125*)
1126  case "$ac_dir" in
1127  .) ac_abs_builddir=`pwd`;;
1128  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1129  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1130  esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_builddir=${ac_top_builddir}.;;
1134*)
1135  case ${ac_top_builddir}. in
1136  .) ac_abs_top_builddir=$ac_abs_builddir;;
1137  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1138  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1139  esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_srcdir=$ac_srcdir;;
1143*)
1144  case $ac_srcdir in
1145  .) ac_abs_srcdir=$ac_abs_builddir;;
1146  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1147  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1148  esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_srcdir=$ac_top_srcdir;;
1152*)
1153  case $ac_top_srcdir in
1154  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1155  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1156  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157  esac;;
1158esac
1159
1160    cd $ac_dir
1161    # Check for guested configure; otherwise get Cygnus style configure.
1162    if test -f $ac_srcdir/configure.gnu; then
1163      echo
1164      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1165    elif test -f $ac_srcdir/configure; then
1166      echo
1167      $SHELL $ac_srcdir/configure  --help=recursive
1168    elif test -f $ac_srcdir/configure.ac ||
1169           test -f $ac_srcdir/configure.in; then
1170      echo
1171      $ac_configure --help
1172    else
1173      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1174    fi
1175    cd $ac_popdir
1176  done
1177fi
1178
1179test -n "$ac_init_help" && exit 0
1180if $ac_init_version; then
1181  cat <<\_ACEOF
1182ThirdPartyBlas configure 0.0
1183generated by GNU Autoconf 2.59
1184
1185Copyright (C) 2003 Free Software Foundation, Inc.
1186This configure script is free software; the Free Software Foundation
1187gives unlimited permission to copy, distribute and modify it.
1188
1189
1190Copyright 2006 International Business Machines and others.
1191All Rights Reserved.
1192This file is part of the open source package Coin which is distributed
1193under the Common Public License.
1194_ACEOF
1195  exit 0
1196fi
1197exec 5>config.log
1198cat >&5 <<_ACEOF
1199This file contains any messages produced by compilers while
1200running configure, to aid debugging if configure makes a mistake.
1201
1202It was created by ThirdPartyBlas $as_me 0.0, which was
1203generated by GNU Autoconf 2.59.  Invocation command line was
1204
1205  $ $0 $@
1206
1207_ACEOF
1208{
1209cat <<_ASUNAME
1210## --------- ##
1211## Platform. ##
1212## --------- ##
1213
1214hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1215uname -m = `(uname -m) 2>/dev/null || echo unknown`
1216uname -r = `(uname -r) 2>/dev/null || echo unknown`
1217uname -s = `(uname -s) 2>/dev/null || echo unknown`
1218uname -v = `(uname -v) 2>/dev/null || echo unknown`
1219
1220/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1221/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1222
1223/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1224/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1225/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1226hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1227/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1228/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1229/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1230
1231_ASUNAME
1232
1233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1234for as_dir in $PATH
1235do
1236  IFS=$as_save_IFS
1237  test -z "$as_dir" && as_dir=.
1238  echo "PATH: $as_dir"
1239done
1240
1241} >&5
1242
1243cat >&5 <<_ACEOF
1244
1245
1246## ----------- ##
1247## Core tests. ##
1248## ----------- ##
1249
1250_ACEOF
1251
1252
1253# Keep a trace of the command line.
1254# Strip out --no-create and --no-recursion so they do not pile up.
1255# Strip out --silent because we don't want to record it for future runs.
1256# Also quote any args containing shell meta-characters.
1257# Make two passes to allow for proper duplicate-argument suppression.
1258ac_configure_args=
1259ac_configure_args0=
1260ac_configure_args1=
1261ac_sep=
1262ac_must_keep_next=false
1263for ac_pass in 1 2
1264do
1265  for ac_arg
1266  do
1267    case $ac_arg in
1268    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1269    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270    | -silent | --silent | --silen | --sile | --sil)
1271      continue ;;
1272    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1274    esac
1275    case $ac_pass in
1276    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1277    2)
1278      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1279      if test $ac_must_keep_next = true; then
1280        ac_must_keep_next=false # Got value, back to normal.
1281      else
1282        case $ac_arg in
1283          *=* | --config-cache | -C | -disable-* | --disable-* \
1284          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1285          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1286          | -with-* | --with-* | -without-* | --without-* | --x)
1287            case "$ac_configure_args0 " in
1288              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1289            esac
1290            ;;
1291          -* ) ac_must_keep_next=true ;;
1292        esac
1293      fi
1294      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1295      # Get rid of the leading space.
1296      ac_sep=" "
1297      ;;
1298    esac
1299  done
1300done
1301$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1302$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1303
1304# When interrupted or exit'd, cleanup temporary files, and complete
1305# config.log.  We remove comments because anyway the quotes in there
1306# would cause problems or look ugly.
1307# WARNING: Be sure not to use single quotes in there, as some shells,
1308# such as our DU 5.0 friend, will then `close' the trap.
1309trap 'exit_status=$?
1310  # Save into config.log some information that might help in debugging.
1311  {
1312    echo
1313
1314    cat <<\_ASBOX
1315## ---------------- ##
1316## Cache variables. ##
1317## ---------------- ##
1318_ASBOX
1319    echo
1320    # The following way of writing the cache mishandles newlines in values,
1321{
1322  (set) 2>&1 |
1323    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1324    *ac_space=\ *)
1325      sed -n \
1326        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1327          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1328      ;;
1329    *)
1330      sed -n \
1331        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1332      ;;
1333    esac;
1334}
1335    echo
1336
1337    cat <<\_ASBOX
1338## ----------------- ##
1339## Output variables. ##
1340## ----------------- ##
1341_ASBOX
1342    echo
1343    for ac_var in $ac_subst_vars
1344    do
1345      eval ac_val=$`echo $ac_var`
1346      echo "$ac_var='"'"'$ac_val'"'"'"
1347    done | sort
1348    echo
1349
1350    if test -n "$ac_subst_files"; then
1351      cat <<\_ASBOX
1352## ------------- ##
1353## Output files. ##
1354## ------------- ##
1355_ASBOX
1356      echo
1357      for ac_var in $ac_subst_files
1358      do
1359        eval ac_val=$`echo $ac_var`
1360        echo "$ac_var='"'"'$ac_val'"'"'"
1361      done | sort
1362      echo
1363    fi
1364
1365    if test -s confdefs.h; then
1366      cat <<\_ASBOX
1367## ----------- ##
1368## confdefs.h. ##
1369## ----------- ##
1370_ASBOX
1371      echo
1372      sed "/^$/d" confdefs.h | sort
1373      echo
1374    fi
1375    test "$ac_signal" != 0 &&
1376      echo "$as_me: caught signal $ac_signal"
1377    echo "$as_me: exit $exit_status"
1378  } >&5
1379  rm -f core *.core &&
1380  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1381    exit $exit_status
1382     ' 0
1383for ac_signal in 1 2 13 15; do
1384  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1385done
1386ac_signal=0
1387
1388# confdefs.h avoids OS command line length limits that DEFS can exceed.
1389rm -rf conftest* confdefs.h
1390# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1391echo >confdefs.h
1392
1393# Predefined preprocessor variables.
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_NAME "$PACKAGE_NAME"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_VERSION "$PACKAGE_VERSION"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_STRING "$PACKAGE_STRING"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1417_ACEOF
1418
1419
1420# Let the site file select an alternate cache file if it wants to.
1421# Prefer explicitly selected file to automatically selected ones.
1422if test -z "$CONFIG_SITE"; then
1423  if test "x$prefix" != xNONE; then
1424    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1425  else
1426    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1427  fi
1428fi
1429for ac_site_file in $CONFIG_SITE; do
1430  if test -r "$ac_site_file"; then
1431    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1432echo "$as_me: loading site script $ac_site_file" >&6;}
1433    sed 's/^/| /' "$ac_site_file" >&5
1434    . "$ac_site_file"
1435  fi
1436done
1437
1438if test -r "$cache_file"; then
1439  # Some versions of bash will fail to source /dev/null (special
1440  # files actually), so we avoid doing that.
1441  if test -f "$cache_file"; then
1442    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1443echo "$as_me: loading cache $cache_file" >&6;}
1444    case $cache_file in
1445      [\\/]* | ?:[\\/]* ) . $cache_file;;
1446      *)                      . ./$cache_file;;
1447    esac
1448  fi
1449else
1450  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1451echo "$as_me: creating cache $cache_file" >&6;}
1452  >$cache_file
1453fi
1454
1455# Check that the precious variables saved in the cache have kept the same
1456# value.
1457ac_cache_corrupted=false
1458for ac_var in `(set) 2>&1 |
1459               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1460  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1461  eval ac_new_set=\$ac_env_${ac_var}_set
1462  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1463  eval ac_new_val="\$ac_env_${ac_var}_value"
1464  case $ac_old_set,$ac_new_set in
1465    set,)
1466      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1467echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1468      ac_cache_corrupted=: ;;
1469    ,set)
1470      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1471echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1472      ac_cache_corrupted=: ;;
1473    ,);;
1474    *)
1475      if test "x$ac_old_val" != "x$ac_new_val"; then
1476        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1477echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1478        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1479echo "$as_me:   former value:  $ac_old_val" >&2;}
1480        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1481echo "$as_me:   current value: $ac_new_val" >&2;}
1482        ac_cache_corrupted=:
1483      fi;;
1484  esac
1485  # Pass precious variables to config.status.
1486  if test "$ac_new_set" = set; then
1487    case $ac_new_val in
1488    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1489      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1490    *) ac_arg=$ac_var=$ac_new_val ;;
1491    esac
1492    case " $ac_configure_args " in
1493      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1494      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1495    esac
1496  fi
1497done
1498if $ac_cache_corrupted; then
1499  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1500echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1501  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1502echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1503   { (exit 1); exit 1; }; }
1504fi
1505
1506ac_ext=c
1507ac_cpp='$CPP $CPPFLAGS'
1508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541# List one file in the package so that the configure script can test
1542# whether the package is actually there
1543
1544
1545# Where should everything be installed by default?  Here, we want it
1546# to be installed directly in 'bin', 'lib', 'include' subdirectories
1547# of the directory where configure is run.  The default would be
1548# /usr/local.
1549
1550
1551#############################################################################
1552#                         Standard build tool stuff                         #
1553#############################################################################
1554
1555# Get the system type
1556ac_aux_dir=
1557for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1558  if test -f $ac_dir/install-sh; then
1559    ac_aux_dir=$ac_dir
1560    ac_install_sh="$ac_aux_dir/install-sh -c"
1561    break
1562  elif test -f $ac_dir/install.sh; then
1563    ac_aux_dir=$ac_dir
1564    ac_install_sh="$ac_aux_dir/install.sh -c"
1565    break
1566  elif test -f $ac_dir/shtool; then
1567    ac_aux_dir=$ac_dir
1568    ac_install_sh="$ac_aux_dir/shtool install -c"
1569    break
1570  fi
1571done
1572if test -z "$ac_aux_dir"; then
1573  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1574echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1575   { (exit 1); exit 1; }; }
1576fi
1577ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581# Make sure we can run config.sub.
1582$ac_config_sub sun4 >/dev/null 2>&1 ||
1583  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1584echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1585   { (exit 1); exit 1; }; }
1586
1587echo "$as_me:$LINENO: checking build system type" >&5
1588echo $ECHO_N "checking build system type... $ECHO_C" >&6
1589if test "${ac_cv_build+set}" = set; then
1590  echo $ECHO_N "(cached) $ECHO_C" >&6
1591else
1592  ac_cv_build_alias=$build_alias
1593test -z "$ac_cv_build_alias" &&
1594  ac_cv_build_alias=`$ac_config_guess`
1595test -z "$ac_cv_build_alias" &&
1596  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1597echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1598   { (exit 1); exit 1; }; }
1599ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1600  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1601echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1602   { (exit 1); exit 1; }; }
1603
1604fi
1605echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1606echo "${ECHO_T}$ac_cv_build" >&6
1607build=$ac_cv_build
1608build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611
1612
1613
1614# Check if user wants to produce debugging code
1615
1616echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1617echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1618
1619# Check whether --enable-debug or --disable-debug was given.
1620if test "${enable_debug+set}" = set; then
1621  enableval="$enable_debug"
1622  case "${enableval}" in
1623                   yes) coin_debug_compile=true
1624
1625cat >>confdefs.h <<\_ACEOF
1626#define COIN_DEBUG 1
1627_ACEOF
1628
1629                     enable_shared=no
1630                     ;;
1631                   no)  coin_debug_compile=false
1632                     ;;
1633                    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1634echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1635   { (exit 1); exit 1; }; }
1636                     ;;
1637                 esac
1638else
1639  coin_debug_compile=false
1640fi;
1641
1642if test $coin_debug_compile = true; then
1643  echo "$as_me:$LINENO: result: yes" >&5
1644echo "${ECHO_T}yes" >&6
1645else
1646  echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650
1651
1652if test "$coin_debug_compile" = true; then
1653  COIN_DEBUG_TRUE=
1654  COIN_DEBUG_FALSE='#'
1655else
1656  COIN_DEBUG_TRUE='#'
1657  COIN_DEBUG_FALSE=
1658fi
1659
1660
1661
1662# Get the name of the Fortran compiler and appropriate compiler options
1663case $build in
1664  *-mingw*)
1665    if test "${LD+set}" = set; then :; else
1666      LD=link
1667    fi
1668    ;;
1669esac
1670
1671
1672
1673ac_ext=f
1674ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1675ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1676ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1677
1678
1679coin_has_f77=yes
1680
1681save_fflags="$FFLAGS"
1682case $build in
1683  *-cygwin* | *-mingw*)
1684             comps="gfortran g77 ifort" ;;
1685  *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc" ;;
1686esac
1687ac_ext=f
1688ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1689ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1690ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1691if test -n "$ac_tool_prefix"; then
1692  for ac_prog in $comps
1693  do
1694    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_F77+set}" = set; then
1699  echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701  if test -n "$F77"; then
1702  ac_cv_prog_F77="$F77" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707  IFS=$as_save_IFS
1708  test -z "$as_dir" && as_dir=.
1709  for ac_exec_ext in '' $ac_executable_extensions; do
1710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
1712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713    break 2
1714  fi
1715done
1716done
1717
1718fi
1719fi
1720F77=$ac_cv_prog_F77
1721if test -n "$F77"; then
1722  echo "$as_me:$LINENO: result: $F77" >&5
1723echo "${ECHO_T}$F77" >&6
1724else
1725  echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729    test -n "$F77" && break
1730  done
1731fi
1732if test -z "$F77"; then
1733  ac_ct_F77=$F77
1734  for ac_prog in $comps
1735do
1736  # Extract the first word of "$ac_prog", so it can be a program name with args.
1737set dummy $ac_prog; ac_word=$2
1738echo "$as_me:$LINENO: checking for $ac_word" >&5
1739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
1741  echo $ECHO_N "(cached) $ECHO_C" >&6
1742else
1743  if test -n "$ac_ct_F77"; then
1744  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
1745else
1746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747for as_dir in $PATH
1748do
1749  IFS=$as_save_IFS
1750  test -z "$as_dir" && as_dir=.
1751  for ac_exec_ext in '' $ac_executable_extensions; do
1752  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753    ac_cv_prog_ac_ct_F77="$ac_prog"
1754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755    break 2
1756  fi
1757done
1758done
1759
1760fi
1761fi
1762ac_ct_F77=$ac_cv_prog_ac_ct_F77
1763if test -n "$ac_ct_F77"; then
1764  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
1765echo "${ECHO_T}$ac_ct_F77" >&6
1766else
1767  echo "$as_me:$LINENO: result: no" >&5
1768echo "${ECHO_T}no" >&6
1769fi
1770
1771  test -n "$ac_ct_F77" && break
1772done
1773
1774  F77=$ac_ct_F77
1775fi
1776
1777
1778# Provide some information about the compiler.
1779echo "$as_me:1779:" \
1780     "checking for Fortran 77 compiler version" >&5
1781ac_compiler=`set X $ac_compile; echo $2`
1782{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1783  (eval $ac_compiler --version </dev/null >&5) 2>&5
1784  ac_status=$?
1785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786  (exit $ac_status); }
1787{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1788  (eval $ac_compiler -v </dev/null >&5) 2>&5
1789  ac_status=$?
1790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791  (exit $ac_status); }
1792{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1793  (eval $ac_compiler -V </dev/null >&5) 2>&5
1794  ac_status=$?
1795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796  (exit $ac_status); }
1797rm -f a.out
1798
1799cat >conftest.$ac_ext <<_ACEOF
1800      program main
1801
1802      end
1803_ACEOF
1804ac_clean_files_save=$ac_clean_files
1805ac_clean_files="$ac_clean_files a.out a.exe b.out"
1806# Try to create an executable without -o first, disregard a.out.
1807# It will help us diagnose broken compilers, and finding out an intuition
1808# of exeext.
1809echo "$as_me:$LINENO: checking for Fortran 77 compiler default output file name" >&5
1810echo $ECHO_N "checking for Fortran 77 compiler default output file name... $ECHO_C" >&6
1811ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1812if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1813  (eval $ac_link_default) 2>&5
1814  ac_status=$?
1815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816  (exit $ac_status); }; then
1817  # Find the output, starting from the most likely.  This scheme is
1818# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1819# resort.
1820
1821# Be careful to initialize this variable, since it used to be cached.
1822# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1823ac_cv_exeext=
1824# b.out is created by i960 compilers.
1825for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1826do
1827  test -f "$ac_file" || continue
1828  case $ac_file in
1829    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1830        ;;
1831    conftest.$ac_ext )
1832        # This is the source file.
1833        ;;
1834    [ab].out )
1835        # We found the default executable, but exeext='' is most
1836        # certainly right.
1837        break;;
1838    *.* )
1839        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1840        # FIXME: I believe we export ac_cv_exeext for Libtool,
1841        # but it would be cool to find out if it's true.  Does anybody
1842        # maintain Libtool? --akim.
1843        export ac_cv_exeext
1844        break;;
1845    * )
1846        break;;
1847  esac
1848done
1849else
1850  echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853{ { echo "$as_me:$LINENO: error: Fortran 77 compiler cannot create executables
1854See \`config.log' for more details." >&5
1855echo "$as_me: error: Fortran 77 compiler cannot create executables
1856See \`config.log' for more details." >&2;}
1857   { (exit 77); exit 77; }; }
1858fi
1859
1860ac_exeext=$ac_cv_exeext
1861echo "$as_me:$LINENO: result: $ac_file" >&5
1862echo "${ECHO_T}$ac_file" >&6
1863
1864# Check the compiler produces executables we can run.  If not, either
1865# the compiler is broken, or we cross compile.
1866echo "$as_me:$LINENO: checking whether the Fortran 77 compiler works" >&5
1867echo $ECHO_N "checking whether the Fortran 77 compiler works... $ECHO_C" >&6
1868# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1869# If not cross compiling, check that we can run a simple program.
1870if test "$cross_compiling" != yes; then
1871  if { ac_try='./$ac_file'
1872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1873  (eval $ac_try) 2>&5
1874  ac_status=$?
1875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876  (exit $ac_status); }; }; then
1877    cross_compiling=no
1878  else
1879    if test "$cross_compiling" = maybe; then
1880        cross_compiling=yes
1881    else
1882        { { echo "$as_me:$LINENO: error: cannot run Fortran 77 compiled programs.
1883If you meant to cross compile, use \`--host'.
1884See \`config.log' for more details." >&5
1885echo "$as_me: error: cannot run Fortran 77 compiled programs.
1886If you meant to cross compile, use \`--host'.
1887See \`config.log' for more details." >&2;}
1888   { (exit 1); exit 1; }; }
1889    fi
1890  fi
1891fi
1892echo "$as_me:$LINENO: result: yes" >&5
1893echo "${ECHO_T}yes" >&6
1894
1895rm -f a.out a.exe conftest$ac_cv_exeext b.out
1896ac_clean_files=$ac_clean_files_save
1897# Check the compiler produces executables we can run.  If not, either
1898# the compiler is broken, or we cross compile.
1899echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1900echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1901echo "$as_me:$LINENO: result: $cross_compiling" >&5
1902echo "${ECHO_T}$cross_compiling" >&6
1903
1904echo "$as_me:$LINENO: checking for suffix of executables" >&5
1905echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1907  (eval $ac_link) 2>&5
1908  ac_status=$?
1909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910  (exit $ac_status); }; then
1911  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1912# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1913# work properly (i.e., refer to `conftest.exe'), while it won't with
1914# `rm'.
1915for ac_file in conftest.exe conftest conftest.*; do
1916  test -f "$ac_file" || continue
1917  case $ac_file in
1918    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1919    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1920          export ac_cv_exeext
1921          break;;
1922    * ) break;;
1923  esac
1924done
1925else
1926  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1927See \`config.log' for more details." >&5
1928echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1929See \`config.log' for more details." >&2;}
1930   { (exit 1); exit 1; }; }
1931fi
1932
1933rm -f conftest$ac_cv_exeext
1934echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1935echo "${ECHO_T}$ac_cv_exeext" >&6
1936
1937rm -f conftest.$ac_ext
1938EXEEXT=$ac_cv_exeext
1939ac_exeext=$EXEEXT
1940echo "$as_me:$LINENO: checking for suffix of object files" >&5
1941echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1942if test "${ac_cv_objext+set}" = set; then
1943  echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945  cat >conftest.$ac_ext <<_ACEOF
1946      program main
1947
1948      end
1949_ACEOF
1950rm -f conftest.o conftest.obj
1951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1952  (eval $ac_compile) 2>&5
1953  ac_status=$?
1954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955  (exit $ac_status); }; then
1956  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1957  case $ac_file in
1958    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1959    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1960       break;;
1961  esac
1962done
1963else
1964  echo "$as_me: failed program was:" >&5
1965sed 's/^/| /' conftest.$ac_ext >&5
1966
1967{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1968See \`config.log' for more details." >&5
1969echo "$as_me: error: cannot compute suffix of object files: cannot compile
1970See \`config.log' for more details." >&2;}
1971   { (exit 1); exit 1; }; }
1972fi
1973
1974rm -f conftest.$ac_cv_objext conftest.$ac_ext
1975fi
1976echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1977echo "${ECHO_T}$ac_cv_objext" >&6
1978OBJEXT=$ac_cv_objext
1979ac_objext=$OBJEXT
1980# If we don't use `.F' as extension, the preprocessor is not run on the
1981# input file.  (Note that this only needs to work for GNU compilers.)
1982ac_save_ext=$ac_ext
1983ac_ext=F
1984echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
1985echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
1986if test "${ac_cv_f77_compiler_gnu+set}" = set; then
1987  echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989  cat >conftest.$ac_ext <<_ACEOF
1990      program main
1991#ifndef __GNUC__
1992       choke me
1993#endif
1994
1995      end
1996_ACEOF
1997rm -f conftest.$ac_objext
1998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1999  (eval $ac_compile) 2>conftest.er1
2000  ac_status=$?
2001  grep -v '^ *+' conftest.er1 >conftest.err
2002  rm -f conftest.er1
2003  cat conftest.err >&5
2004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005  (exit $ac_status); } &&
2006         { ac_try='test -z "$ac_f77_werror_flag"
2007                         || test ! -s conftest.err'
2008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009  (eval $ac_try) 2>&5
2010  ac_status=$?
2011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012  (exit $ac_status); }; } &&
2013         { ac_try='test -s conftest.$ac_objext'
2014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2015  (eval $ac_try) 2>&5
2016  ac_status=$?
2017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018  (exit $ac_status); }; }; then
2019  ac_compiler_gnu=yes
2020else
2021  echo "$as_me: failed program was:" >&5
2022sed 's/^/| /' conftest.$ac_ext >&5
2023
2024ac_compiler_gnu=no
2025fi
2026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2027ac_cv_f77_compiler_gnu=$ac_compiler_gnu
2028
2029fi
2030echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
2031echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
2032ac_ext=$ac_save_ext
2033ac_test_FFLAGS=${FFLAGS+set}
2034ac_save_FFLAGS=$FFLAGS
2035FFLAGS=
2036echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
2037echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
2038if test "${ac_cv_prog_f77_g+set}" = set; then
2039  echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
2041  FFLAGS=-g
2042cat >conftest.$ac_ext <<_ACEOF
2043      program main
2044
2045      end
2046_ACEOF
2047rm -f conftest.$ac_objext
2048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049  (eval $ac_compile) 2>conftest.er1
2050  ac_status=$?
2051  grep -v '^ *+' conftest.er1 >conftest.err
2052  rm -f conftest.er1
2053  cat conftest.err >&5
2054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055  (exit $ac_status); } &&
2056         { ac_try='test -z "$ac_f77_werror_flag"
2057                         || test ! -s conftest.err'
2058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059  (eval $ac_try) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }; } &&
2063         { ac_try='test -s conftest.$ac_objext'
2064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065  (eval $ac_try) 2>&5
2066  ac_status=$?
2067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068  (exit $ac_status); }; }; then
2069  ac_cv_prog_f77_g=yes
2070else
2071  echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074ac_cv_prog_f77_g=no
2075fi
2076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077
2078fi
2079echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
2080echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
2081if test "$ac_test_FFLAGS" = set; then
2082  FFLAGS=$ac_save_FFLAGS
2083elif test $ac_cv_prog_f77_g = yes; then
2084  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2085    FFLAGS="-g -O2"
2086  else
2087    FFLAGS="-g"
2088  fi
2089else
2090  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2091    FFLAGS="-O2"
2092  else
2093    FFLAGS=
2094  fi
2095fi
2096
2097G77=`test $ac_compiler_gnu = yes && echo yes`
2098ac_ext=f
2099ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2100ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2102
2103FFLAGS="$save_fflags"
2104
2105echo "$as_me:$LINENO: checking for Fortran compiler options" >&5
2106echo $ECHO_N "checking for Fortran compiler options... $ECHO_C" >&6
2107if test "${coin_cv_fflags+set}" = set; then
2108  echo $ECHO_N "(cached) $ECHO_C" >&6
2109else
2110  if test x"$FFLAGS" = x; then
2111
2112  coin_add_fflags=
2113  coin_opt_fflags=
2114  coin_dbg_fflags=
2115  coin_warn_fflags=
2116
2117  if test "$G77" = "yes"; then
2118    coin_opt_fflags="-O3 -fomit-frame-pointer"
2119    coin_add_fflags="-pipe"
2120    coin_dbg_fflags="-g"
2121    case $build in
2122      *-cygwin*)
2123        FFLAGS="-mno-cygwin"
2124        cat >conftest.$ac_ext <<_ACEOF
2125      program main
2126      write(*,*) 'Hello world'
2127      end
2128_ACEOF
2129rm -f conftest.$ac_objext conftest$ac_exeext
2130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2131  (eval $ac_link) 2>conftest.er1
2132  ac_status=$?
2133  grep -v '^ *+' conftest.er1 >conftest.err
2134  rm -f conftest.er1
2135  cat conftest.err >&5
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); } &&
2138         { ac_try='test -z "$ac_f77_werror_flag"
2139                         || test ! -s conftest.err'
2140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141  (eval $ac_try) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }; } &&
2145         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2151  coin_add_fflags="-mno-cygwin $coin_add_fflags"
2152else
2153  echo "$as_me: failed program was:" >&5
2154sed 's/^/| /' conftest.$ac_ext >&5
2155
2156fi
2157rm -f conftest.err conftest.$ac_objext \
2158      conftest$ac_exeext conftest.$ac_ext
2159        FFLAGS=
2160      ;;
2161    esac
2162  else
2163    case $build in
2164      *-cygwin* | *-mingw*)
2165        case $F77 in
2166          ifort* | */ifort*)
2167            coin_opt_fflags='-O3'
2168            coin_add_fflags='-nologo'
2169            coin_dbg_fflags='-debug'
2170          ;;
2171        esac
2172        ;;
2173      *-linux-*)
2174        case $F77 in
2175          ifc* | */ifc* | ifort* | */ifort*)
2176            coin_opt_fflags="-O3 -ip"
2177            coin_add_fflags="-cm -w90 -w95"
2178            coin_dbg_fflags="-g -CA -CB -CS"
2179            # Check if -i_dynamic is necessary (for new glibc library)
2180            FFLAGS=
2181            cat >conftest.$ac_ext <<_ACEOF
2182      program main
2183      write(*,*) 'Hello world'
2184      end
2185_ACEOF
2186rm -f conftest.$ac_objext conftest$ac_exeext
2187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188  (eval $ac_link) 2>conftest.er1
2189  ac_status=$?
2190  grep -v '^ *+' conftest.er1 >conftest.err
2191  rm -f conftest.er1
2192  cat conftest.err >&5
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); } &&
2195         { ac_try='test -z "$ac_f77_werror_flag"
2196                         || test ! -s conftest.err'
2197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198  (eval $ac_try) 2>&5
2199  ac_status=$?
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); }; } &&
2202         { ac_try='test -s conftest$ac_exeext'
2203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204  (eval $ac_try) 2>&5
2205  ac_status=$?
2206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207  (exit $ac_status); }; }; then
2208  :
2209else
2210  echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213coin_add_fflags="-i_dynamic $coin_add_fflags"
2214fi
2215rm -f conftest.err conftest.$ac_objext \
2216      conftest$ac_exeext conftest.$ac_ext
2217            ;;
2218          pgf77* | */pgf77* | pgf90* | */pgf90*)
2219            coin_opt_fflags="-fast"
2220            coin_add_fflags="-Kieee -pc 64"
2221            coin_dbg_fflags="-g"
2222          ;;
2223        esac
2224        ;;
2225      *-ibm-*)
2226        case $F77 in
2227          xlf* | */xlf* | mpxlf* | */mpxlf* )
2228            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2229            coin_add_fflags="-bmaxdata:0x80000000"
2230            coin_dbg_fflags="-g -C"
2231            ;;
2232        esac
2233        ;;
2234      *-hp-*)
2235        coin_opt_fflags="+O3"
2236        coin_add_fflags="+U77"
2237        coin_dbg_fflags="-C -g"
2238        ;;
2239      *-sun-*)
2240        coin_opt_fflags="-O4"
2241        coin_dbg_fflags="-g"
2242        ;;
2243      *-sgi-*)
2244        coin_opt_fflags="-O5 -OPT:Olimit=0"
2245        coin_dbg_fflags="-g"
2246        ;;
2247    esac
2248  fi
2249
2250  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
2251    coin_dbg_fflags="-g"
2252  fi
2253
2254  if test "$coin_debug_compile" = true; then
2255    FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
2256  else
2257    if test -z "$coin_opt_fflags"; then
2258      # Try if -O option works if nothing else is set
2259      FFLAGS=-O
2260      cat >conftest.$ac_ext <<_ACEOF
2261      program main
2262      integer i
2263      end
2264_ACEOF
2265rm -f conftest.$ac_objext conftest$ac_exeext
2266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267  (eval $ac_link) 2>conftest.er1
2268  ac_status=$?
2269  grep -v '^ *+' conftest.er1 >conftest.err
2270  rm -f conftest.er1
2271  cat conftest.err >&5
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); } &&
2274         { ac_try='test -z "$ac_f77_werror_flag"
2275                         || test ! -s conftest.err'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; } &&
2281         { ac_try='test -s conftest$ac_exeext'
2282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283  (eval $ac_try) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; }; then
2287  coin_opt_fflags="-O"
2288else
2289  echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292fi
2293rm -f conftest.err conftest.$ac_objext \
2294      conftest$ac_exeext conftest.$ac_ext
2295    fi
2296    FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
2297  fi
2298fi
2299
2300# Check if user wants to have additional FFLAGS options
2301
2302if test x"$ADD_FFLAGS" != x; then
2303  FFLAGS="$FFLAGS $ADD_FFLAGS"
2304fi
2305
2306# Try if FFLAGS works
2307cat >conftest.$ac_ext <<_ACEOF
2308      program main
2309      integer i
2310      end
2311_ACEOF
2312rm -f conftest.$ac_objext conftest$ac_exeext
2313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2314  (eval $ac_link) 2>conftest.er1
2315  ac_status=$?
2316  grep -v '^ *+' conftest.er1 >conftest.err
2317  rm -f conftest.er1
2318  cat conftest.err >&5
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); } &&
2321         { ac_try='test -z "$ac_f77_werror_flag"
2322                         || test ! -s conftest.err'
2323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324  (eval $ac_try) 2>&5
2325  ac_status=$?
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); }; } &&
2328         { ac_try='test -s conftest$ac_exeext'
2329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330  (eval $ac_try) 2>&5
2331  ac_status=$?
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); }; }; then
2334  :
2335else
2336  echo "$as_me: failed program was:" >&5
2337sed 's/^/| /' conftest.$ac_ext >&5
2338
2339FFLAGS=
2340fi
2341rm -f conftest.err conftest.$ac_objext \
2342      conftest$ac_exeext conftest.$ac_ext
2343if test -z "$FFLAGS"; then
2344  { 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
2345echo "$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;}
2346  FFLAGS='-O'
2347  cat >conftest.$ac_ext <<_ACEOF
2348      program main
2349      integer i
2350      end
2351_ACEOF
2352rm -f conftest.$ac_objext conftest$ac_exeext
2353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2354  (eval $ac_link) 2>conftest.er1
2355  ac_status=$?
2356  grep -v '^ *+' conftest.er1 >conftest.err
2357  rm -f conftest.er1
2358  cat conftest.err >&5
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); } &&
2361         { ac_try='test -z "$ac_f77_werror_flag"
2362                         || test ! -s conftest.err'
2363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364  (eval $ac_try) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }; } &&
2368         { ac_try='test -s conftest$ac_exeext'
2369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370  (eval $ac_try) 2>&5
2371  ac_status=$?
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); }; }; then
2374  :
2375else
2376  echo "$as_me: failed program was:" >&5
2377sed 's/^/| /' conftest.$ac_ext >&5
2378
2379FFLAGS=
2380fi
2381rm -f conftest.err conftest.$ac_objext \
2382      conftest$ac_exeext conftest.$ac_ext
2383  if test -z "$FFLAGS"; then
2384    { 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
2385echo "$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;}
2386  fi
2387fi
2388coin_cv_fflags="$FFLAGS"
2389
2390fi
2391echo "$as_me:$LINENO: result: $coin_cv_fflags" >&5
2392echo "${ECHO_T}$coin_cv_fflags" >&6 # AC_CACHE_CHECK([for Fortran compiler options FFLAGS]
2393FFLAGS="$coin_cv_fflags"
2394
2395
2396if test x"$MPIF77" = x; then :; else
2397  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
2398echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
2399  F77="$MPIF77"
2400fi
2401
2402case "$F77" in
2403  ifort*)
2404    case $build in
2405  *-mingw*)
2406    if test "${LD+set}" = set; then :; else
2407      LD=link
2408    fi
2409    ;;
2410esac
2411
2412    ;;
2413esac
2414
2415ac_ext=c
2416ac_cpp='$CPP $CPPFLAGS'
2417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420
2421
2422
2423# Initialize autotools
2424
2425# On Cygwin, building DLLs doesn't work
2426case $build in
2427  *-cygwin*)
2428    coin_disable_shared=yes
2429    platform=Cygwin
2430  ;;
2431  *-mingw*)
2432    case "$CXX" in
2433      cl*)
2434        coin_disable_shared=yes
2435        platform="Msys with cl"
2436    ;;
2437    esac
2438  ;;
2439esac
2440if test x"$coin_disable_shared" = xyes; then
2441  if test x"$enable_shared" = xyes; then
2442    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
2443echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
2444  fi
2445  enable_shared=no
2446fi
2447# By default, we only want the shared objects to be compiled
2448# Check whether --enable-static or --disable-static was given.
2449if test "${enable_static+set}" = set; then
2450  enableval="$enable_static"
2451  p=${PACKAGE-default}
2452    case $enableval in
2453    yes) enable_static=yes ;;
2454    no) enable_static=no ;;
2455    *)
2456     enable_static=no
2457      # Look at the argument we got.  We use all the common list separators.
2458      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2459      for pkg in $enableval; do
2460        IFS="$lt_save_ifs"
2461        if test "X$pkg" = "X$p"; then
2462          enable_static=yes
2463        fi
2464      done
2465      IFS="$lt_save_ifs"
2466      ;;
2467    esac
2468else
2469  enable_static=no
2470fi;
2471
2472
2473
2474echo "$as_me:$LINENO: checking for egrep" >&5
2475echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2476if test "${ac_cv_prog_egrep+set}" = set; then
2477  echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2480    then ac_cv_prog_egrep='grep -E'
2481    else ac_cv_prog_egrep='egrep'
2482    fi
2483fi
2484echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2485echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2486 EGREP=$ac_cv_prog_egrep
2487
2488
2489am__api_version="1.9"
2490# Find a good install program.  We prefer a C program (faster),
2491# so one script is as good as another.  But avoid the broken or
2492# incompatible versions:
2493# SysV /etc/install, /usr/sbin/install
2494# SunOS /usr/etc/install
2495# IRIX /sbin/install
2496# AIX /bin/install
2497# AmigaOS /C/install, which installs bootblocks on floppy discs
2498# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2501# OS/2's system install, which has a completely different semantic
2502# ./install, which can be erroneously created by make from ./install.sh.
2503echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2504echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2505if test -z "$INSTALL"; then
2506if test "${ac_cv_path_install+set}" = set; then
2507  echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512  IFS=$as_save_IFS
2513  test -z "$as_dir" && as_dir=.
2514  # Account for people who put trailing slashes in PATH elements.
2515case $as_dir/ in
2516  ./ | .// | /cC/* | \
2517  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2519  /usr/ucb/* ) ;;
2520  *)
2521    # OSF1 and SCO ODT 3.0 have their own names for install.
2522    # Don't use installbsd from OSF since it installs stuff as root
2523    # by default.
2524    for ac_prog in ginstall scoinst install; do
2525      for ac_exec_ext in '' $ac_executable_extensions; do
2526        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527          if test $ac_prog = install &&
2528            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529            # AIX install.  It has an incompatible calling convention.
2530            :
2531          elif test $ac_prog = install &&
2532            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533            # program-specific install script used by HP pwplus--don't use.
2534            :
2535          else
2536            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537            break 3
2538          fi
2539        fi
2540      done
2541    done
2542    ;;
2543esac
2544done
2545
2546
2547fi
2548  if test "${ac_cv_path_install+set}" = set; then
2549    INSTALL=$ac_cv_path_install
2550  else
2551    # As a last resort, use the slow shell script.  We don't cache a
2552    # path for INSTALL within a source directory, because that will
2553    # break other packages using the cache if that directory is
2554    # removed, or if the path is relative.
2555    INSTALL=$ac_install_sh
2556  fi
2557fi
2558echo "$as_me:$LINENO: result: $INSTALL" >&5
2559echo "${ECHO_T}$INSTALL" >&6
2560
2561# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562# It thinks the first close brace ends the variable substitution.
2563test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564
2565test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2566
2567test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568
2569echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2570echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2571# Just in case
2572sleep 1
2573echo timestamp > conftest.file
2574# Do `set' in a subshell so we don't clobber the current shell's
2575# arguments.  Must try -L first in case configure is actually a
2576# symlink; some systems play weird games with the mod time of symlinks
2577# (eg FreeBSD returns the mod time of the symlink's containing
2578# directory).
2579if (
2580   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2581   if test "$*" = "X"; then
2582      # -L didn't work.
2583      set X `ls -t $srcdir/configure conftest.file`
2584   fi
2585   rm -f conftest.file
2586   if test "$*" != "X $srcdir/configure conftest.file" \
2587      && test "$*" != "X conftest.file $srcdir/configure"; then
2588
2589      # If neither matched, then we have a broken ls.  This can happen
2590      # if, for instance, CONFIG_SHELL is bash and it inherits a
2591      # broken ls alias from the environment.  This has actually
2592      # happened.  Such a system could not be considered "sane".
2593      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2594alias in your environment" >&5
2595echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2596alias in your environment" >&2;}
2597   { (exit 1); exit 1; }; }
2598   fi
2599
2600   test "$2" = conftest.file
2601   )
2602then
2603   # Ok.
2604   :
2605else
2606   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2607Check your system clock" >&5
2608echo "$as_me: error: newly created file is older than distributed files!
2609Check your system clock" >&2;}
2610   { (exit 1); exit 1; }; }
2611fi
2612echo "$as_me:$LINENO: result: yes" >&5
2613echo "${ECHO_T}yes" >&6
2614test "$program_prefix" != NONE &&
2615  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2616# Use a double $ so make ignores it.
2617test "$program_suffix" != NONE &&
2618  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2619# Double any \ or $.  echo might interpret backslashes.
2620# By default was `s,x,x', remove it if useless.
2621cat <<\_ACEOF >conftest.sed
2622s/[\\$]/&&/g;s/;s,x,x,$//
2623_ACEOF
2624program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2625rm conftest.sed
2626
2627# expand $ac_aux_dir to an absolute path
2628am_aux_dir=`cd $ac_aux_dir && pwd`
2629
2630test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2631# Use eval to expand $SHELL
2632if eval "$MISSING --run true"; then
2633  am_missing_run="$MISSING --run "
2634else
2635  am_missing_run=
2636  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2638fi
2639
2640if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2641  # We used to keeping the `.' as first argument, in order to
2642  # allow $(mkdir_p) to be used without argument.  As in
2643  #   $(mkdir_p) $(somedir)
2644  # where $(somedir) is conditionally defined.  However this is wrong
2645  # for two reasons:
2646  #  1. if the package is installed by a user who cannot write `.'
2647  #     make install will fail,
2648  #  2. the above comment should most certainly read
2649  #     $(mkdir_p) $(DESTDIR)$(somedir)
2650  #     so it does not work when $(somedir) is undefined and
2651  #     $(DESTDIR) is not.
2652  #  To support the latter case, we have to write
2653  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2654  #  so the `.' trick is pointless.
2655  mkdir_p='mkdir -p --'
2656else
2657  # On NextStep and OpenStep, the `mkdir' command does not
2658  # recognize any option.  It will interpret all options as
2659  # directories to create, and then abort because `.' already
2660  # exists.
2661  for d in ./-p ./--version;
2662  do
2663    test -d $d && rmdir $d
2664  done
2665  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2666  if test -f "$ac_aux_dir/mkinstalldirs"; then
2667    mkdir_p='$(mkinstalldirs)'
2668  else
2669    mkdir_p='$(install_sh) -d'
2670  fi
2671fi
2672
2673for ac_prog in gawk mawk nawk awk
2674do
2675  # Extract the first word of "$ac_prog", so it can be a program name with args.
2676set dummy $ac_prog; ac_word=$2
2677echo "$as_me:$LINENO: checking for $ac_word" >&5
2678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679if test "${ac_cv_prog_AWK+set}" = set; then
2680  echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
2682  if test -n "$AWK"; then
2683  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688  IFS=$as_save_IFS
2689  test -z "$as_dir" && as_dir=.
2690  for ac_exec_ext in '' $ac_executable_extensions; do
2691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692    ac_cv_prog_AWK="$ac_prog"
2693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694    break 2
2695  fi
2696done
2697done
2698
2699fi
2700fi
2701AWK=$ac_cv_prog_AWK
2702if test -n "$AWK"; then
2703  echo "$as_me:$LINENO: result: $AWK" >&5
2704echo "${ECHO_T}$AWK" >&6
2705else
2706  echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6
2708fi
2709
2710  test -n "$AWK" && break
2711done
2712
2713echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2715set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2716if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717  echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719  cat >conftest.make <<\_ACEOF
2720all:
2721        @echo 'ac_maketemp="$(MAKE)"'
2722_ACEOF
2723# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725if test -n "$ac_maketemp"; then
2726  eval ac_cv_prog_make_${ac_make}_set=yes
2727else
2728  eval ac_cv_prog_make_${ac_make}_set=no
2729fi
2730rm -f conftest.make
2731fi
2732if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733  echo "$as_me:$LINENO: result: yes" >&5
2734echo "${ECHO_T}yes" >&6
2735  SET_MAKE=
2736else
2737  echo "$as_me:$LINENO: result: no" >&5
2738echo "${ECHO_T}no" >&6
2739  SET_MAKE="MAKE=${MAKE-make}"
2740fi
2741
2742rm -rf .tst 2>/dev/null
2743mkdir .tst 2>/dev/null
2744if test -d .tst; then
2745  am__leading_dot=.
2746else
2747  am__leading_dot=_
2748fi
2749rmdir .tst 2>/dev/null
2750
2751DEPDIR="${am__leading_dot}deps"
2752
2753          ac_config_commands="$ac_config_commands depfiles"
2754
2755
2756am_make=${MAKE-make}
2757cat > confinc << 'END'
2758am__doit:
2759        @echo done
2760.PHONY: am__doit
2761END
2762# If we don't find an include directive, just comment out the code.
2763echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2764echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2765am__include="#"
2766am__quote=
2767_am_result=none
2768# First try GNU make style include.
2769echo "include confinc" > confmf
2770# We grep out `Entering directory' and `Leaving directory'
2771# messages which can occur if `w' ends up in MAKEFLAGS.
2772# In particular we don't look at `^make:' because GNU make might
2773# be invoked under some other name (usually "gmake"), in which
2774# case it prints its new name instead of `make'.
2775if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2776   am__include=include
2777   am__quote=
2778   _am_result=GNU
2779fi
2780# Now try BSD make style include.
2781if test "$am__include" = "#"; then
2782   echo '.include "confinc"' > confmf
2783   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2784      am__include=.include
2785      am__quote="\""
2786      _am_result=BSD
2787   fi
2788fi
2789
2790
2791echo "$as_me:$LINENO: result: $_am_result" >&5
2792echo "${ECHO_T}$_am_result" >&6
2793rm -f confinc confmf
2794
2795# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2796if test "${enable_dependency_tracking+set}" = set; then
2797  enableval="$enable_dependency_tracking"
2798
2799fi;
2800if test "x$enable_dependency_tracking" != xno; then
2801  am_depcomp="$ac_aux_dir/depcomp"
2802  AMDEPBACKSLASH='\'
2803fi
2804
2805
2806if test "x$enable_dependency_tracking" != xno; then
2807  AMDEP_TRUE=
2808  AMDEP_FALSE='#'
2809else
2810  AMDEP_TRUE='#'
2811  AMDEP_FALSE=
2812fi
2813
2814
2815
2816ac_ext=c
2817ac_cpp='$CPP $CPPFLAGS'
2818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820ac_compiler_gnu=$ac_cv_c_compiler_gnu
2821if test -n "$ac_tool_prefix"; then
2822  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2823set dummy ${ac_tool_prefix}gcc; ac_word=$2
2824echo "$as_me:$LINENO: checking for $ac_word" >&5
2825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826if test "${ac_cv_prog_CC+set}" = set; then
2827  echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
2829  if test -n "$CC"; then
2830  ac_cv_prog_CC="$CC" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835  IFS=$as_save_IFS
2836  test -z "$as_dir" && as_dir=.
2837  for ac_exec_ext in '' $ac_executable_extensions; do
2838  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841    break 2
2842  fi
2843done
2844done
2845
2846fi
2847fi
2848CC=$ac_cv_prog_CC
2849if test -n "$CC"; then
2850  echo "$as_me:$LINENO: result: $CC" >&5
2851echo "${ECHO_T}$CC" >&6
2852else
2853  echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6
2855fi
2856
2857fi
2858if test -z "$ac_cv_prog_CC"; then
2859  ac_ct_CC=$CC
2860  # Extract the first word of "gcc", so it can be a program name with args.
2861set dummy gcc; ac_word=$2
2862echo "$as_me:$LINENO: checking for $ac_word" >&5
2863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2865  echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
2867  if test -n "$ac_ct_CC"; then
2868  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869else
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873  IFS=$as_save_IFS
2874  test -z "$as_dir" && as_dir=.
2875  for ac_exec_ext in '' $ac_executable_extensions; do
2876  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877    ac_cv_prog_ac_ct_CC="gcc"
2878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879    break 2
2880  fi
2881done
2882done
2883
2884fi
2885fi
2886ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887if test -n "$ac_ct_CC"; then
2888  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2889echo "${ECHO_T}$ac_ct_CC" >&6
2890else
2891  echo "$as_me:$LINENO: result: no" >&5
2892echo "${ECHO_T}no" >&6
2893fi
2894
2895  CC=$ac_ct_CC
2896else
2897  CC="$ac_cv_prog_CC"
2898fi
2899
2900if test -z "$CC"; then
2901  if test -n "$ac_tool_prefix"; then
2902  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2903set dummy ${ac_tool_prefix}cc; ac_word=$2
2904echo "$as_me:$LINENO: checking for $ac_word" >&5
2905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2906if test "${ac_cv_prog_CC+set}" = set; then
2907  echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909  if test -n "$CC"; then
2910  ac_cv_prog_CC="$CC" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915  IFS=$as_save_IFS
2916  test -z "$as_dir" && as_dir=.
2917  for ac_exec_ext in '' $ac_executable_extensions; do
2918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919    ac_cv_prog_CC="${ac_tool_prefix}cc"
2920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2921    break 2
2922  fi
2923done
2924done
2925
2926fi
2927fi
2928CC=$ac_cv_prog_CC
2929if test -n "$CC"; then
2930  echo "$as_me:$LINENO: result: $CC" >&5
2931echo "${ECHO_T}$CC" >&6
2932else
2933  echo "$as_me:$LINENO: result: no" >&5
2934echo "${ECHO_T}no" >&6
2935fi
2936
2937fi
2938if test -z "$ac_cv_prog_CC"; then
2939  ac_ct_CC=$CC
2940  # Extract the first word of "cc", so it can be a program name with args.
2941set dummy cc; ac_word=$2
2942echo "$as_me:$LINENO: checking for $ac_word" >&5
2943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2945  echo $ECHO_N "(cached) $ECHO_C" >&6
2946else
2947  if test -n "$ac_ct_CC"; then
2948  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955  for ac_exec_ext in '' $ac_executable_extensions; do
2956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957    ac_cv_prog_ac_ct_CC="cc"
2958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962done
2963
2964fi
2965fi
2966ac_ct_CC=$ac_cv_prog_ac_ct_CC
2967if test -n "$ac_ct_CC"; then
2968  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2969echo "${ECHO_T}$ac_ct_CC" >&6
2970else
2971  echo "$as_me:$LINENO: result: no" >&5
2972echo "${ECHO_T}no" >&6
2973fi
2974
2975  CC=$ac_ct_CC
2976else
2977  CC="$ac_cv_prog_CC"
2978fi
2979
2980fi
2981if test -z "$CC"; then
2982  # Extract the first word of "cc", so it can be a program name with args.
2983set dummy cc; ac_word=$2
2984echo "$as_me:$LINENO: checking for $ac_word" >&5
2985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986if test "${ac_cv_prog_CC+set}" = set; then
2987  echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989  if test -n "$CC"; then
2990  ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992  ac_prog_rejected=no
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998  for ac_exec_ext in '' $ac_executable_extensions; do
2999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001       ac_prog_rejected=yes
3002       continue
3003     fi
3004    ac_cv_prog_CC="cc"
3005    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009done
3010
3011if test $ac_prog_rejected = yes; then
3012  # We found a bogon in the path, so make sure we never use it.
3013  set dummy $ac_cv_prog_CC
3014  shift
3015  if test $# != 0; then
3016    # We chose a different compiler from the bogus one.
3017    # However, it has the same basename, so the bogon will be chosen
3018    # first if we set CC to just the basename; use the full file name.
3019    shift
3020    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3021  fi
3022fi
3023fi
3024fi
3025CC=$ac_cv_prog_CC
3026if test -n "$CC"; then
3027  echo "$as_me:$LINENO: result: $CC" >&5
3028echo "${ECHO_T}$CC" >&6
3029else
3030  echo "$as_me:$LINENO: result: no" >&5
3031echo "${ECHO_T}no" >&6
3032fi
3033
3034fi
3035if test -z "$CC"; then
3036  if test -n "$ac_tool_prefix"; then
3037  for ac_prog in cl
3038  do
3039    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041echo "$as_me:$LINENO: checking for $ac_word" >&5
3042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3043if test "${ac_cv_prog_CC+set}" = set; then
3044  echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046  if test -n "$CC"; then
3047  ac_cv_prog_CC="$CC" # Let the user override the test.
3048else
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052  IFS=$as_save_IFS
3053  test -z "$as_dir" && as_dir=.
3054  for ac_exec_ext in '' $ac_executable_extensions; do
3055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058    break 2
3059  fi
3060done
3061done
3062
3063fi
3064fi
3065CC=$ac_cv_prog_CC
3066if test -n "$CC"; then
3067  echo "$as_me:$LINENO: result: $CC" >&5
3068echo "${ECHO_T}$CC" >&6
3069else
3070  echo "$as_me:$LINENO: result: no" >&5
3071echo "${ECHO_T}no" >&6
3072fi
3073
3074    test -n "$CC" && break
3075  done
3076fi
3077if test -z "$CC"; then
3078  ac_ct_CC=$CC
3079  for ac_prog in cl
3080do
3081  # Extract the first word of "$ac_prog", so it can be a program name with args.
3082set dummy $ac_prog; ac_word=$2
3083echo "$as_me:$LINENO: checking for $ac_word" >&5
3084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3086  echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088  if test -n "$ac_ct_CC"; then
3089  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096  for ac_exec_ext in '' $ac_executable_extensions; do
3097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098    ac_cv_prog_ac_ct_CC="$ac_prog"
3099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103done
3104
3105fi
3106fi
3107ac_ct_CC=$ac_cv_prog_ac_ct_CC
3108if test -n "$ac_ct_CC"; then
3109  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3110echo "${ECHO_T}$ac_ct_CC" >&6
3111else
3112  echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
3114fi
3115
3116  test -n "$ac_ct_CC" && break
3117done
3118
3119  CC=$ac_ct_CC
3120fi
3121
3122fi
3123
3124
3125test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3126See \`config.log' for more details." >&5
3127echo "$as_me: error: no acceptable C compiler found in \$PATH
3128See \`config.log' for more details." >&2;}
3129   { (exit 1); exit 1; }; }
3130
3131# Provide some information about the compiler.
3132echo "$as_me:$LINENO:" \
3133     "checking for C compiler version" >&5
3134ac_compiler=`set X $ac_compile; echo $2`
3135{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3136  (eval $ac_compiler --version </dev/null >&5) 2>&5
3137  ac_status=$?
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); }
3140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3141  (eval $ac_compiler -v </dev/null >&5) 2>&5
3142  ac_status=$?
3143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144  (exit $ac_status); }
3145{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3146  (eval $ac_compiler -V </dev/null >&5) 2>&5
3147  ac_status=$?
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); }
3150
3151echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3152echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3153if test "${ac_cv_c_compiler_gnu+set}" = set; then
3154  echo $ECHO_N "(cached) $ECHO_C" >&6
3155else
3156  cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h.  */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h.  */
3162
3163int
3164main ()
3165{
3166#ifndef __GNUC__
3167       choke me
3168#endif
3169
3170  ;
3171  return 0;
3172}
3173_ACEOF
3174rm -f conftest.$ac_objext
3175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176  (eval $ac_compile) 2>conftest.er1
3177  ac_status=$?
3178  grep -v '^ *+' conftest.er1 >conftest.err
3179  rm -f conftest.er1
3180  cat conftest.err >&5
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); } &&
3183         { ac_try='test -z "$ac_c_werror_flag"
3184                         || test ! -s conftest.err'
3185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186  (eval $ac_try) 2>&5
3187  ac_status=$?
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); }; } &&
3190         { ac_try='test -s conftest.$ac_objext'
3191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192  (eval $ac_try) 2>&5
3193  ac_status=$?
3194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); }; }; then
3196  ac_compiler_gnu=yes
3197else
3198  echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
3201ac_compiler_gnu=no
3202fi
3203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3204ac_cv_c_compiler_gnu=$ac_compiler_gnu
3205
3206fi
3207echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3208echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3209GCC=`test $ac_compiler_gnu = yes && echo yes`
3210ac_test_CFLAGS=${CFLAGS+set}
3211ac_save_CFLAGS=$CFLAGS
3212CFLAGS="-g"
3213echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3214echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3215if test "${ac_cv_prog_cc_g+set}" = set; then
3216  echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218  cat >conftest.$ac_ext <<_ACEOF
3219/* confdefs.h.  */
3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h.  */
3224
3225int
3226main ()
3227{
3228
3229  ;
3230  return 0;
3231}
3232_ACEOF
3233rm -f conftest.$ac_objext
3234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235  (eval $ac_compile) 2>conftest.er1
3236  ac_status=$?
3237  grep -v '^ *+' conftest.er1 >conftest.err
3238  rm -f conftest.er1
3239  cat conftest.err >&5
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); } &&
3242         { ac_try='test -z "$ac_c_werror_flag"
3243                         || test ! -s conftest.err'
3244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245  (eval $ac_try) 2>&5
3246  ac_status=$?
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); }; } &&
3249         { ac_try='test -s conftest.$ac_objext'
3250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251  (eval $ac_try) 2>&5
3252  ac_status=$?
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); }; }; then
3255  ac_cv_prog_cc_g=yes
3256else
3257  echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260ac_cv_prog_cc_g=no
3261fi
3262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263fi
3264echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3265echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3266if test "$ac_test_CFLAGS" = set; then
3267  CFLAGS=$ac_save_CFLAGS
3268elif test $ac_cv_prog_cc_g = yes; then
3269  if test "$GCC" = yes; then
3270    CFLAGS="-g -O2"
3271  else
3272    CFLAGS="-g"
3273  fi
3274else
3275  if test "$GCC" = yes; then
3276    CFLAGS="-O2"
3277  else
3278    CFLAGS=
3279  fi
3280fi
3281echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3282echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3283if test "${ac_cv_prog_cc_stdc+set}" = set; then
3284  echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286  ac_cv_prog_cc_stdc=no
3287ac_save_CC=$CC
3288cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h.  */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h.  */
3294#include <stdarg.h>
3295#include <stdio.h>
3296#include <sys/types.h>
3297#include <sys/stat.h>
3298/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3299struct buf { int x; };
3300FILE * (*rcsopen) (struct buf *, struct stat *, int);
3301static char *e (p, i)
3302     char **p;
3303     int i;
3304{
3305  return p[i];
3306}
3307static char *f (char * (*g) (char **, int), char **p, ...)
3308{
3309  char *s;
3310  va_list v;
3311  va_start (v,p);
3312  s = g (p, va_arg (v,int));
3313  va_end (v);
3314  return s;
3315}
3316
3317/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3318   function prototypes and stuff, but not '\xHH' hex character constants.
3319   These don't provoke an error unfortunately, instead are silently treated
3320   as 'x'.  The following induces an error, until -std1 is added to get
3321   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3322   array size at least.  It's necessary to write '\x00'==0 to get something
3323   that's true only with -std1.  */
3324int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3325
3326int test (int i, double x);
3327struct s1 {int (*f) (int a);};
3328struct s2 {int (*f) (double a);};
3329int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3330int argc;
3331char **argv;
3332int
3333main ()
3334{
3335return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340# Don't try gcc -ansi; that turns off useful extensions and
3341# breaks some systems' header files.
3342# AIX                   -qlanglvl=ansi
3343# Ultrix and OSF/1      -std1
3344# HP-UX 10.20 and later -Ae
3345# HP-UX older versions  -Aa -D_HPUX_SOURCE
3346# SVR4                  -Xc -D__EXTENSIONS__
3347for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3348do
3349  CC="$ac_save_CC $ac_arg"
3350  rm -f conftest.$ac_objext
3351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352  (eval $ac_compile) 2>conftest.er1
3353  ac_status=$?
3354  grep -v '^ *+' conftest.er1 >conftest.err
3355  rm -f conftest.er1
3356  cat conftest.err >&5
3357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358  (exit $ac_status); } &&
3359         { ac_try='test -z "$ac_c_werror_flag"
3360                         || test ! -s conftest.err'
3361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362  (eval $ac_try) 2>&5
3363  ac_status=$?
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }; } &&
3366         { ac_try='test -s conftest.$ac_objext'
3367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368  (eval $ac_try) 2>&5
3369  ac_status=$?
3370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371  (exit $ac_status); }; }; then
3372  ac_cv_prog_cc_stdc=$ac_arg
3373break
3374else
3375  echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378fi
3379rm -f conftest.err conftest.$ac_objext
3380done
3381rm -f conftest.$ac_ext conftest.$ac_objext
3382CC=$ac_save_CC
3383
3384fi
3385
3386case "x$ac_cv_prog_cc_stdc" in
3387  x|xno)
3388    echo "$as_me:$LINENO: result: none needed" >&5
3389echo "${ECHO_T}none needed" >&6 ;;
3390  *)
3391    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3392echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3393    CC="$CC $ac_cv_prog_cc_stdc" ;;
3394esac
3395
3396# Some people use a C++ compiler to compile C.  Since we use `exit',
3397# in C++ we need to declare it.  In case someone uses the same compiler
3398# for both compiling C and C++ we need to have the C++ compiler decide
3399# the declaration of exit, since it's the most demanding environment.
3400cat >conftest.$ac_ext <<_ACEOF
3401#ifndef __cplusplus
3402  choke me
3403#endif
3404_ACEOF
3405rm -f conftest.$ac_objext
3406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407  (eval $ac_compile) 2>conftest.er1
3408  ac_status=$?
3409  grep -v '^ *+' conftest.er1 >conftest.err
3410  rm -f conftest.er1
3411  cat conftest.err >&5
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); } &&
3414         { ac_try='test -z "$ac_c_werror_flag"
3415                         || test ! -s conftest.err'
3416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417  (eval $ac_try) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }; } &&
3421         { ac_try='test -s conftest.$ac_objext'
3422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423  (eval $ac_try) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }; }; then
3427  for ac_declaration in \
3428   '' \
3429   'extern "C" void std::exit (int) throw (); using std::exit;' \
3430   'extern "C" void std::exit (int); using std::exit;' \
3431   'extern "C" void exit (int) throw ();' \
3432   'extern "C" void exit (int);' \
3433   'void exit (int);'
3434do
3435  cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h.  */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h.  */
3441$ac_declaration
3442#include <stdlib.h>
3443int
3444main ()
3445{
3446exit (42);
3447  ;
3448  return 0;
3449}
3450_ACEOF
3451rm -f conftest.$ac_objext
3452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453  (eval $ac_compile) 2>conftest.er1
3454  ac_status=$?
3455  grep -v '^ *+' conftest.er1 >conftest.err
3456  rm -f conftest.er1
3457  cat conftest.err >&5
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); } &&
3460         { ac_try='test -z "$ac_c_werror_flag"
3461                         || test ! -s conftest.err'
3462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463  (eval $ac_try) 2>&5
3464  ac_status=$?
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); }; } &&
3467         { ac_try='test -s conftest.$ac_objext'
3468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469  (eval $ac_try) 2>&5
3470  ac_status=$?
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); }; }; then
3473  :
3474else
3475  echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478continue
3479fi
3480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3481  cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h.  */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h.  */
3487$ac_declaration
3488int
3489main ()
3490{
3491exit (42);
3492  ;
3493  return 0;
3494}
3495_ACEOF
3496rm -f conftest.$ac_objext
3497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498  (eval $ac_compile) 2>conftest.er1
3499  ac_status=$?
3500  grep -v '^ *+' conftest.er1 >conftest.err
3501  rm -f conftest.er1
3502  cat conftest.err >&5
3503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); } &&
3505         { ac_try='test -z "$ac_c_werror_flag"
3506                         || test ! -s conftest.err'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; } &&
3512         { ac_try='test -s conftest.$ac_objext'
3513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514  (eval $ac_try) 2>&5
3515  ac_status=$?
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); }; }; then
3518  break
3519else
3520  echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523fi
3524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3525done
3526rm -f conftest*
3527if test -n "$ac_declaration"; then
3528  echo '#ifdef __cplusplus' >>confdefs.h
3529  echo $ac_declaration      >>confdefs.h
3530  echo '#endif'             >>confdefs.h
3531fi
3532
3533else
3534  echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
3537fi
3538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539ac_ext=c
3540ac_cpp='$CPP $CPPFLAGS'
3541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544
3545depcc="$CC"   am_compiler_list=
3546
3547echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3548echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3549if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3550  echo $ECHO_N "(cached) $ECHO_C" >&6
3551else
3552  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3553  # We make a subdir and do the tests there.  Otherwise we can end up
3554  # making bogus files that we don't know about and never remove.  For
3555  # instance it was reported that on HP-UX the gcc test will end up
3556  # making a dummy file named `D' -- because `-MD' means `put the output
3557  # in D'.
3558  mkdir conftest.dir
3559  # Copy depcomp to subdir because otherwise we won't find it if we're
3560  # using a relative directory.
3561  cp "$am_depcomp" conftest.dir
3562  cd conftest.dir
3563  # We will build objects and dependencies in a subdirectory because
3564  # it helps to detect inapplicable dependency modes.  For instance
3565  # both Tru64's cc and ICC support -MD to output dependencies as a
3566  # side effect of compilation, but ICC will put the dependencies in
3567  # the current directory while Tru64 will put them in the object
3568  # directory.
3569  mkdir sub
3570
3571  am_cv_CC_dependencies_compiler_type=none
3572  if test "$am_compiler_list" = ""; then
3573     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3574  fi
3575  for depmode in $am_compiler_list; do
3576    # Setup a source with many dependencies, because some compilers
3577    # like to wrap large dependency lists on column 80 (with \), and
3578    # we should not choose a depcomp mode which is confused by this.
3579    #
3580    # We need to recreate these files for each test, as the compiler may
3581    # overwrite some of them when testing with obscure command lines.
3582    # This happens at least with the AIX C compiler.
3583    : > sub/conftest.c
3584    for i in 1 2 3 4 5 6; do
3585      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3586      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3587      # Solaris 8's {/usr,}/bin/sh.
3588      touch sub/conftst$i.h
3589    done
3590    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3591
3592    case $depmode in
3593    nosideeffect)
3594      # after this tag, mechanisms are not by side-effect, so they'll
3595      # only be used when explicitly requested
3596      if test "x$enable_dependency_tracking" = xyes; then
3597        continue
3598      else
3599        break
3600      fi
3601      ;;
3602    none) break ;;
3603    esac
3604    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3605    # mode.  It turns out that the SunPro C++ compiler does not properly
3606    # handle `-M -o', and we need to detect this.
3607    if depmode=$depmode \
3608       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3609       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3610       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3611         >/dev/null 2>conftest.err &&
3612       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3613       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3614       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3615      # icc doesn't choke on unknown options, it will just issue warnings
3616      # or remarks (even with -Werror).  So we grep stderr for any message
3617      # that says an option was ignored or not supported.
3618      # When given -MP, icc 7.0 and 7.1 complain thusly:
3619      #   icc: Command line warning: ignoring option '-M'; no argument required
3620      # The diagnosis changed in icc 8.0:
3621      #   icc: Command line remark: option '-MP' not supported
3622      if (grep 'ignoring option' conftest.err ||
3623          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3624        am_cv_CC_dependencies_compiler_type=$depmode
3625        break
3626      fi
3627    fi
3628  done
3629
3630  cd ..
3631  rm -rf conftest.dir
3632else
3633  am_cv_CC_dependencies_compiler_type=none
3634fi
3635
3636fi
3637echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3638echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3639CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3640
3641
3642
3643if
3644  test "x$enable_dependency_tracking" != xno \
3645  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3646  am__fastdepCC_TRUE=
3647  am__fastdepCC_FALSE='#'
3648else
3649  am__fastdepCC_TRUE='#'
3650  am__fastdepCC_FALSE=
3651fi
3652
3653
3654
3655ac_ext=c
3656ac_cpp='$CPP $CPPFLAGS'
3657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
3661if test x"" = x; then
3662  hdr="#include <dlfcn.h>"
3663else
3664  hdr=""
3665fi
3666
3667for ac_header in dlfcn.h
3668do
3669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3670echo "$as_me:$LINENO: checking for $ac_header" >&5
3671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3672if eval "test \"\${$as_ac_Header+set}\" = set"; then
3673  echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675  cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h.  */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h.  */
3681$hdr
3682
3683#include <$ac_header>
3684_ACEOF
3685rm -f conftest.$ac_objext
3686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687  (eval $ac_compile) 2>conftest.er1
3688  ac_status=$?
3689  grep -v '^ *+' conftest.er1 >conftest.err
3690  rm -f conftest.er1
3691  cat conftest.err >&5
3692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693  (exit $ac_status); } &&
3694         { ac_try='test -z "$ac_c_werror_flag"
3695                         || test ! -s conftest.err'
3696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697  (eval $ac_try) 2>&5
3698  ac_status=$?
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); }; } &&
3701         { ac_try='test -s conftest.$ac_objext'
3702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703  (eval $ac_try) 2>&5
3704  ac_status=$?
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); }; }; then
3707  eval "$as_ac_Header=yes"
3708else
3709  echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712eval "$as_ac_Header=no"
3713fi
3714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3715fi
3716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3718if test `eval echo '${'$as_ac_Header'}'` = yes; then
3719  cat >>confdefs.h <<_ACEOF
3720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3721_ACEOF
3722
3723fi
3724
3725done
3726
3727
3728ac_ext=c
3729ac_cpp='$CPP $CPPFLAGS'
3730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733
3734
3735# Check whether --enable-shared or --disable-shared was given.
3736if test "${enable_shared+set}" = set; then
3737  enableval="$enable_shared"
3738  p=${PACKAGE-default}
3739    case $enableval in
3740    yes) enable_shared=yes ;;
3741    no) enable_shared=no ;;
3742    *)
3743      enable_shared=no
3744      # Look at the argument we got.  We use all the common list separators.
3745      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3746      for pkg in $enableval; do
3747        IFS="$lt_save_ifs"
3748        if test "X$pkg" = "X$p"; then
3749          enable_shared=yes
3750        fi
3751      done
3752      IFS="$lt_save_ifs"
3753      ;;
3754    esac
3755else
3756  enable_shared=yes
3757fi;
3758
3759# Check whether --enable-fast-install or --disable-fast-install was given.
3760if test "${enable_fast_install+set}" = set; then
3761  enableval="$enable_fast_install"
3762  p=${PACKAGE-default}
3763    case $enableval in
3764    yes) enable_fast_install=yes ;;
3765    no) enable_fast_install=no ;;
3766    *)
3767      enable_fast_install=no
3768      # Look at the argument we got.  We use all the common list separators.
3769      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3770      for pkg in $enableval; do
3771        IFS="$lt_save_ifs"
3772        if test "X$pkg" = "X$p"; then
3773          enable_fast_install=yes
3774        fi
3775      done
3776      IFS="$lt_save_ifs"
3777      ;;
3778    esac
3779else
3780  enable_fast_install=yes
3781fi;
3782
3783echo "$as_me:$LINENO: checking host system type" >&5
3784echo $ECHO_N "checking host system type... $ECHO_C" >&6
3785if test "${ac_cv_host+set}" = set; then
3786  echo $ECHO_N "(cached) $ECHO_C" >&6
3787else
3788  ac_cv_host_alias=$host_alias
3789test -z "$ac_cv_host_alias" &&
3790  ac_cv_host_alias=$ac_cv_build_alias
3791ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3792  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3793echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3794   { (exit 1); exit 1; }; }
3795
3796fi
3797echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3798echo "${ECHO_T}$ac_cv_host" >&6
3799host=$ac_cv_host
3800host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3801host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3802host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3803
3804
3805echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3806echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3807if test "${lt_cv_path_SED+set}" = set; then
3808  echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810  # Loop through the user's path and test for sed and gsed.
3811# Then use that list of sed's as ones to test for truncation.
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815  IFS=$as_save_IFS
3816  test -z "$as_dir" && as_dir=.
3817  for lt_ac_prog in sed gsed; do
3818    for ac_exec_ext in '' $ac_executable_extensions; do
3819      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3820        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3821      fi
3822    done
3823  done
3824done
3825lt_ac_max=0
3826lt_ac_count=0
3827# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3828# along with /bin/sed that truncates output.
3829for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3830  test ! -f $lt_ac_sed && continue
3831  cat /dev/null > conftest.in
3832  lt_ac_count=0
3833  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3834  # Check for GNU sed and select it if it is found.
3835  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3836    lt_cv_path_SED=$lt_ac_sed
3837    break
3838  fi
3839  while true; do
3840    cat conftest.in conftest.in >conftest.tmp
3841    mv conftest.tmp conftest.in
3842    cp conftest.in conftest.nl
3843    echo >>conftest.nl
3844    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3845    cmp -s conftest.out conftest.nl || break
3846    # 10000 chars as input seems more than enough
3847    test $lt_ac_count -gt 10 && break
3848    lt_ac_count=`expr $lt_ac_count + 1`
3849    if test $lt_ac_count -gt $lt_ac_max; then
3850      lt_ac_max=$lt_ac_count
3851      lt_cv_path_SED=$lt_ac_sed
3852    fi
3853  done
3854done
3855
3856fi
3857
3858SED=$lt_cv_path_SED
3859echo "$as_me:$LINENO: result: $SED" >&5
3860echo "${ECHO_T}$SED" >&6
3861
3862
3863# Check whether --with-gnu-ld or --without-gnu-ld was given.
3864if test "${with_gnu_ld+set}" = set; then
3865  withval="$with_gnu_ld"
3866  test "$withval" = no || with_gnu_ld=yes
3867else
3868  with_gnu_ld=no
3869fi;
3870ac_prog=ld
3871if test "$GCC" = yes; then
3872  # Check if gcc -print-prog-name=ld gives a path.
3873  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3874echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3875  case $host in
3876  *-*-mingw*)
3877    # gcc leaves a trailing carriage return which upsets mingw
3878    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3879  *)
3880    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3881  esac
3882  case $ac_prog in
3883    # Accept absolute paths.
3884    [\\/]* | ?:[\\/]*)
3885      re_direlt='/[^/][^/]*/\.\./'
3886      # Canonicalize the pathname of ld
3887      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3888      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3889        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3890      done
3891      test -z "$LD" && LD="$ac_prog"
3892      ;;
3893  "")
3894    # If it fails, then pretend we aren't using GCC.
3895    ac_prog=ld
3896    ;;
3897  *)
3898    # If it is relative, then search for the first ld in PATH.
3899    with_gnu_ld=unknown
3900    ;;
3901  esac
3902elif test "$with_gnu_ld" = yes; then
3903  echo "$as_me:$LINENO: checking for GNU ld" >&5
3904echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3905else
3906  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3907echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3908fi
3909if test "${lt_cv_path_LD+set}" = set; then
3910  echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
3912  if test -z "$LD"; then
3913  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3914  for ac_dir in $PATH; do
3915    IFS="$lt_save_ifs"
3916    test -z "$ac_dir" && ac_dir=.
3917    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3918      lt_cv_path_LD="$ac_dir/$ac_prog"
3919      # Check to see if the program is GNU ld.  I'd rather use --version,
3920      # but apparently some variants of GNU ld only accept -v.
3921      # Break only if it was the GNU/non-GNU ld that we prefer.
3922      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3923      *GNU* | *'with BFD'*)
3924        test "$with_gnu_ld" != no && break
3925        ;;
3926      *)
3927        test "$with_gnu_ld" != yes && break
3928        ;;
3929      esac
3930    fi
3931  done
3932  IFS="$lt_save_ifs"
3933else
3934  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3935fi
3936fi
3937
3938LD="$lt_cv_path_LD"
3939if test -n "$LD"; then
3940  echo "$as_me:$LINENO: result: $LD" >&5
3941echo "${ECHO_T}$LD" >&6
3942else
3943  echo "$as_me:$LINENO: result: no" >&5
3944echo "${ECHO_T}no" >&6
3945fi
3946test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3947echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3948   { (exit 1); exit 1; }; }
3949echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3950echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3951if test "${lt_cv_prog_gnu_ld+set}" = set; then
3952  echo $ECHO_N "(cached) $ECHO_C" >&6
3953else
3954  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3955case `$LD -v 2>&1 </dev/null` in
3956*GNU* | *'with BFD'*)
3957  lt_cv_prog_gnu_ld=yes
3958  ;;
3959*)
3960  lt_cv_prog_gnu_ld=no
3961  ;;
3962esac
3963fi
3964echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3965echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3966with_gnu_ld=$lt_cv_prog_gnu_ld
3967
3968
3969echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3970echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3971if test "${lt_cv_ld_reload_flag+set}" = set; then
3972  echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974  lt_cv_ld_reload_flag='-r'
3975fi
3976echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3977echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3978reload_flag=$lt_cv_ld_reload_flag
3979case $reload_flag in
3980"" | " "*) ;;
3981*) reload_flag=" $reload_flag" ;;
3982esac
3983reload_cmds='$LD$reload_flag -o $output$reload_objs'
3984case $host_os in
3985  darwin*)
3986    if test "$GCC" = yes; then
3987      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3988    else
3989      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3990    fi
3991    ;;
3992esac
3993
3994echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3995echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3996if test "${lt_cv_path_NM+set}" = set; then
3997  echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999  if test -n "$NM"; then
4000  # Let the user override the test.
4001  lt_cv_path_NM="$NM"
4002else
4003  lt_nm_to_check="${ac_tool_prefix}nm"
4004  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4005    lt_nm_to_check="$lt_nm_to_check nm"
4006  fi
4007  for lt_tmp_nm in $lt_nm_to_check; do
4008    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4009    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4010      IFS="$lt_save_ifs"
4011      test -z "$ac_dir" && ac_dir=.
4012      tmp_nm="$ac_dir/$lt_tmp_nm"
4013      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4014        # Check to see if the nm accepts a BSD-compat flag.
4015        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4016        #   nm: unknown option "B" ignored
4017        # Tru64's nm complains that /dev/null is an invalid object file
4018        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4019        */dev/null* | *'Invalid file or object type'*)
4020          lt_cv_path_NM="$tmp_nm -B"
4021          break
4022          ;;
4023        *)
4024          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4025          */dev/null*)
4026            lt_cv_path_NM="$tmp_nm -p"
4027            break
4028            ;;
4029          *)
4030            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4031            continue # so that we can try to find one that supports BSD flags
4032            ;;
4033          esac
4034          ;;
4035        esac
4036      fi
4037    done
4038    IFS="$lt_save_ifs"
4039  done
4040  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4041fi
4042fi
4043echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4044echo "${ECHO_T}$lt_cv_path_NM" >&6
4045NM="$lt_cv_path_NM"
4046
4047echo "$as_me:$LINENO: checking whether ln -s works" >&5
4048echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4049LN_S=$as_ln_s
4050if test "$LN_S" = "ln -s"; then
4051  echo "$as_me:$LINENO: result: yes" >&5
4052echo "${ECHO_T}yes" >&6
4053else
4054  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4055echo "${ECHO_T}no, using $LN_S" >&6
4056fi
4057
4058echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4059echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4060if test "${lt_cv_deplibs_check_method+set}" = set; then
4061  echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063  lt_cv_file_magic_cmd='$MAGIC_CMD'
4064lt_cv_file_magic_test_file=
4065lt_cv_deplibs_check_method='unknown'
4066# Need to set the preceding variable on all platforms that support
4067# interlibrary dependencies.
4068# 'none' -- dependencies not supported.
4069# `unknown' -- same as none, but documents that we really don't know.
4070# 'pass_all' -- all dependencies passed with no checks.
4071# 'test_compile' -- check by making test program.
4072# 'file_magic [[regex]]' -- check by looking for files in library path
4073# which responds to the $file_magic_cmd with a given extended regex.
4074# If you have `file' or equivalent on your system and you're not sure
4075# whether `pass_all' will *always* work, you probably want this one.
4076
4077case $host_os in
4078aix4* | aix5*)
4079  lt_cv_deplibs_check_method=pass_all
4080  ;;
4081
4082beos*)
4083  lt_cv_deplibs_check_method=pass_all
4084  ;;
4085
4086bsdi[45]*)
4087  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4088  lt_cv_file_magic_cmd='/usr/bin/file -L'
4089  lt_cv_file_magic_test_file=/shlib/libc.so
4090  ;;
4091
4092cygwin*)
4093  # func_win32_libid is a shell function defined in ltmain.sh
4094  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4095  lt_cv_file_magic_cmd='func_win32_libid'
4096  ;;
4097
4098mingw* | pw32*)
4099  # Base MSYS/MinGW do not provide the 'file' command needed by
4100  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4101  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4102  lt_cv_file_magic_cmd='$OBJDUMP -f'
4103  ;;
4104
4105darwin* | rhapsody*)
4106  lt_cv_deplibs_check_method=pass_all
4107  ;;
4108
4109freebsd* | kfreebsd*-gnu | dragonfly*)
4110  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4111    case $host_cpu in
4112    i*86 )
4113      # Not sure whether the presence of OpenBSD here was a mistake.
4114      # Let's accept both of them until this is cleared up.
4115      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4116      lt_cv_file_magic_cmd=/usr/bin/file
4117      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4118      ;;
4119    esac
4120  else
4121    lt_cv_deplibs_check_method=pass_all
4122  fi
4123  ;;
4124
4125gnu*)
4126  lt_cv_deplibs_check_method=pass_all
4127  ;;
4128
4129hpux10.20* | hpux11*)
4130  lt_cv_file_magic_cmd=/usr/bin/file
4131  case $host_cpu in
4132  ia64*)
4133    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4134    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4135    ;;
4136  hppa*64*)
4137    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]'
4138    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4139    ;;
4140  *)
4141    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4142    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4143    ;;
4144  esac
4145  ;;
4146
4147interix3*)
4148  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4149  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4150  ;;
4151
4152irix5* | irix6* | nonstopux*)
4153  case $LD in
4154  *-32|*"-32 ") libmagic=32-bit;;
4155  *-n32|*"-n32 ") libmagic=N32;;
4156  *-64|*"-64 ") libmagic=64-bit;;
4157  *) libmagic=never-match;;
4158  esac
4159  lt_cv_deplibs_check_method=pass_all
4160  ;;
4161
4162# This must be Linux ELF.
4163linux*)
4164  lt_cv_deplibs_check_method=pass_all
4165  ;;
4166
4167netbsd*)
4168  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4169    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4170  else
4171    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4172  fi
4173  ;;
4174
4175newos6*)
4176  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4177  lt_cv_file_magic_cmd=/usr/bin/file
4178  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4179  ;;
4180
4181nto-qnx*)
4182  lt_cv_deplibs_check_method=unknown
4183  ;;
4184
4185openbsd*)
4186  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4187    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4188  else
4189    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4190  fi
4191  ;;
4192
4193osf3* | osf4* | osf5*)
4194  lt_cv_deplibs_check_method=pass_all
4195  ;;
4196
4197solaris*)
4198  lt_cv_deplibs_check_method=pass_all
4199  ;;
4200
4201sysv4 | sysv4.3*)
4202  case $host_vendor in
4203  motorola)
4204    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]'
4205    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4206    ;;
4207  ncr)
4208    lt_cv_deplibs_check_method=pass_all
4209    ;;
4210  sequent)
4211    lt_cv_file_magic_cmd='/bin/file'
4212    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4213    ;;
4214  sni)
4215    lt_cv_file_magic_cmd='/bin/file'
4216    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4217    lt_cv_file_magic_test_file=/lib/libc.so
4218    ;;
4219  siemens)
4220    lt_cv_deplibs_check_method=pass_all
4221    ;;
4222  pc)
4223    lt_cv_deplibs_check_method=pass_all
4224    ;;
4225  esac
4226  ;;
4227
4228sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4229  lt_cv_deplibs_check_method=pass_all
4230  ;;
4231esac
4232
4233fi
4234echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4235echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4236file_magic_cmd=$lt_cv_file_magic_cmd
4237deplibs_check_method=$lt_cv_deplibs_check_method
4238test -z "$deplibs_check_method" && deplibs_check_method=unknown
4239
4240
4241
4242
4243# If no C compiler was specified, use CC.
4244LTCC=${LTCC-"$CC"}
4245
4246# If no C compiler flags were specified, use CFLAGS.
4247LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4248
4249# Allow CC to be a program name with arguments.
4250compiler=$CC
4251
4252# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4253if test "${enable_libtool_lock+set}" = set; then
4254  enableval="$enable_libtool_lock"
4255
4256fi;
4257test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4258
4259# Some flags need to be propagated to the compiler or linker for good
4260# libtool support.
4261case $host in
4262ia64-*-hpux*)
4263  # Find out which ABI we are using.
4264  echo 'int i;' > conftest.$ac_ext
4265  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4266  (eval $ac_compile) 2>&5
4267  ac_status=$?
4268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269  (exit $ac_status); }; then
4270    case `/usr/bin/file conftest.$ac_objext` in
4271    *ELF-32*)
4272      HPUX_IA64_MODE="32"
4273      ;;
4274    *ELF-64*)
4275      HPUX_IA64_MODE="64"
4276      ;;
4277    esac
4278  fi
4279  rm -rf conftest*
4280  ;;
4281*-*-irix6*)
4282  # Find out which ABI we are using.
4283  echo '#line 4283 "configure"' > conftest.$ac_ext
4284  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285  (eval $ac_compile) 2>&5
4286  ac_status=$?
4287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288  (exit $ac_status); }; then
4289   if test "$lt_cv_prog_gnu_ld" = yes; then
4290    case `/usr/bin/file conftest.$ac_objext` in
4291    *32-bit*)
4292      LD="${LD-ld} -melf32bsmip"
4293      ;;
4294    *N32*)
4295      LD="${LD-ld} -melf32bmipn32"
4296      ;;
4297    *64-bit*)
4298      LD="${LD-ld} -melf64bmip"
4299      ;;
4300    esac
4301   else
4302    case `/usr/bin/file conftest.$ac_objext` in
4303    *32-bit*)
4304      LD="${LD-ld} -32"
4305      ;;
4306    *N32*)
4307      LD="${LD-ld} -n32"
4308      ;;
4309    *64-bit*)
4310      LD="${LD-ld} -64"
4311      ;;
4312    esac
4313   fi
4314  fi
4315  rm -rf conftest*
4316  ;;
4317
4318x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4319  # Find out which ABI we are using.
4320  echo 'int i;' > conftest.$ac_ext
4321  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4322  (eval $ac_compile) 2>&5
4323  ac_status=$?
4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325  (exit $ac_status); }; then
4326    case `/usr/bin/file conftest.o` in
4327    *32-bit*)
4328      case $host in
4329        x86_64-*linux*)
4330          LD="${LD-ld} -m elf_i386"
4331          ;;
4332        ppc64-*linux*|powerpc64-*linux*)
4333          LD="${LD-ld} -m elf32ppclinux"
4334          ;;
4335        s390x-*linux*)
4336          LD="${LD-ld} -m elf_s390"
4337          ;;
4338        sparc64-*linux*)
4339          LD="${LD-ld} -m elf32_sparc"
4340          ;;
4341      esac
4342      ;;
4343    *64-bit*)
4344      case $host in
4345        x86_64-*linux*)
4346          LD="${LD-ld} -m elf_x86_64"
4347          ;;
4348        ppc*-*linux*|powerpc*-*linux*)
4349          LD="${LD-ld} -m elf64ppc"
4350          ;;
4351        s390*-*linux*)
4352          LD="${LD-ld} -m elf64_s390"
4353          ;;
4354        sparc*-*linux*)
4355          LD="${LD-ld} -m elf64_sparc"
4356          ;;
4357      esac
4358      ;;
4359    esac
4360  fi
4361  rm -rf conftest*
4362  ;;
4363
4364*-*-sco3.2v5*)
4365  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4366  SAVE_CFLAGS="$CFLAGS"
4367  CFLAGS="$CFLAGS -belf"
4368  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4369echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4370if test "${lt_cv_cc_needs_belf+set}" = set; then
4371  echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373  ac_ext=c
4374ac_cpp='$CPP $CPPFLAGS'
4375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378
4379     cat >conftest.$ac_ext <<_ACEOF
4380/* confdefs.h.  */
4381_ACEOF
4382cat confdefs.h >>conftest.$ac_ext
4383cat >>conftest.$ac_ext <<_ACEOF
4384/* end confdefs.h.  */
4385
4386int
4387main ()
4388{
4389
4390  ;
4391  return 0;
4392}
4393_ACEOF
4394rm -f conftest.$ac_objext conftest$ac_exeext
4395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4396  (eval $ac_link) 2>conftest.er1
4397  ac_status=$?
4398  grep -v '^ *+' conftest.er1 >conftest.err
4399  rm -f conftest.er1
4400  cat conftest.err >&5
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); } &&
4403         { ac_try='test -z "$ac_c_werror_flag"
4404                         || test ! -s conftest.err'
4405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406  (eval $ac_try) 2>&5
4407  ac_status=$?
4408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409  (exit $ac_status); }; } &&
4410         { ac_try='test -s conftest$ac_exeext'
4411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412  (eval $ac_try) 2>&5
4413  ac_status=$?
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); }; }; then
4416  lt_cv_cc_needs_belf=yes
4417else
4418  echo "$as_me: failed program was:" >&5
4419sed 's/^/| /' conftest.$ac_ext >&5
4420
4421lt_cv_cc_needs_belf=no
4422fi
4423rm -f conftest.err conftest.$ac_objext \
4424      conftest$ac_exeext conftest.$ac_ext
4425     ac_ext=c
4426ac_cpp='$CPP $CPPFLAGS'
4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
4431fi
4432echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4433echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4434  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4435    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4436    CFLAGS="$SAVE_CFLAGS"
4437  fi
4438  ;;
4439sparc*-*solaris*)
4440  # Find out which ABI we are using.
4441  echo 'int i;' > conftest.$ac_ext
4442  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443  (eval $ac_compile) 2>&5
4444  ac_status=$?
4445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446  (exit $ac_status); }; then
4447    case `/usr/bin/file conftest.o` in
4448    *64-bit*)
4449      case $lt_cv_prog_gnu_ld in
4450      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4451      *)    LD="${LD-ld} -64" ;;
4452      esac
4453      ;;
4454    esac
4455  fi
4456  rm -rf conftest*
4457  ;;
4458
4459
4460esac
4461
4462need_locks="$enable_libtool_lock"
4463
4464
4465ac_ext=c
4466ac_cpp='$CPP $CPPFLAGS'
4467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4471echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4472# On Suns, sometimes $CPP names a directory.
4473if test -n "$CPP" && test -d "$CPP"; then
4474  CPP=
4475fi
4476if test -z "$CPP"; then
4477  if test "${ac_cv_prog_CPP+set}" = set; then
4478  echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480      # Double quotes because CPP needs to be expanded
4481    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4482    do
4483      ac_preproc_ok=false
4484for ac_c_preproc_warn_flag in '' yes
4485do
4486  # Use a header file that comes with gcc, so configuring glibc
4487  # with a fresh cross-compiler works.
4488  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4489  # <limits.h> exists even on freestanding compilers.
4490  # On the NeXT, cc -E runs the code through the compiler's parser,
4491  # not just through cpp. "Syntax error" is here to catch this case.
4492  cat >conftest.$ac_ext <<_ACEOF
4493/* confdefs.h.  */
4494_ACEOF
4495cat confdefs.h >>conftest.$ac_ext
4496cat >>conftest.$ac_ext <<_ACEOF
4497/* end confdefs.h.  */
4498#ifdef __STDC__
4499# include <limits.h>
4500#else
4501# include <assert.h>
4502#endif
4503                     Syntax error
4504_ACEOF
4505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4506  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4507  ac_status=$?
4508  grep -v '^ *+' conftest.er1 >conftest.err
4509  rm -f conftest.er1
4510  cat conftest.err >&5
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); } >/dev/null; then
4513  if test -s conftest.err; then
4514    ac_cpp_err=$ac_c_preproc_warn_flag
4515    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4516  else
4517    ac_cpp_err=
4518  fi
4519else
4520  ac_cpp_err=yes
4521fi
4522if test -z "$ac_cpp_err"; then
4523  :
4524else
4525  echo "$as_me: failed program was:" >&5
4526sed 's/^/| /' conftest.$ac_ext >&5
4527
4528  # Broken: fails on valid input.
4529continue
4530fi
4531rm -f conftest.err conftest.$ac_ext
4532
4533  # OK, works on sane cases.  Now check whether non-existent headers
4534  # can be detected and how.
4535  cat >conftest.$ac_ext <<_ACEOF
4536/* confdefs.h.  */
4537_ACEOF
4538cat confdefs.h >>conftest.$ac_ext
4539cat >>conftest.$ac_ext <<_ACEOF
4540/* end confdefs.h.  */
4541#include <ac_nonexistent.h>
4542_ACEOF
4543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4544  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4545  ac_status=$?
4546  grep -v '^ *+' conftest.er1 >conftest.err
4547  rm -f conftest.er1
4548  cat conftest.err >&5
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); } >/dev/null; then
4551  if test -s conftest.err; then
4552    ac_cpp_err=$ac_c_preproc_warn_flag
4553    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4554  else
4555    ac_cpp_err=
4556  fi
4557else
4558  ac_cpp_err=yes
4559fi
4560if test -z "$ac_cpp_err"; then
4561  # Broken: success on invalid input.
4562continue
4563else
4564  echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
4566
4567  # Passes both tests.
4568ac_preproc_ok=:
4569break
4570fi
4571rm -f conftest.err conftest.$ac_ext
4572
4573done
4574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4575rm -f conftest.err conftest.$ac_ext
4576if $ac_preproc_ok; then
4577  break
4578fi
4579
4580    done
4581    ac_cv_prog_CPP=$CPP
4582
4583fi
4584  CPP=$ac_cv_prog_CPP
4585else
4586  ac_cv_prog_CPP=$CPP
4587fi
4588echo "$as_me:$LINENO: result: $CPP" >&5
4589echo "${ECHO_T}$CPP" >&6
4590ac_preproc_ok=false
4591for ac_c_preproc_warn_flag in '' yes
4592do
4593  # Use a header file that comes with gcc, so configuring glibc
4594  # with a fresh cross-compiler works.
4595  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4596  # <limits.h> exists even on freestanding compilers.
4597  # On the NeXT, cc -E runs the code through the compiler's parser,
4598  # not just through cpp. "Syntax error" is here to catch this case.
4599  cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h.  */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h.  */
4605#ifdef __STDC__
4606# include <limits.h>
4607#else
4608# include <assert.h>
4609#endif
4610                     Syntax error
4611_ACEOF
4612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4613  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4614  ac_status=$?
4615  grep -v '^ *+' conftest.er1 >conftest.err
4616  rm -f conftest.er1
4617  cat conftest.err >&5
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); } >/dev/null; then
4620  if test -s conftest.err; then
4621    ac_cpp_err=$ac_c_preproc_warn_flag
4622    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4623  else
4624    ac_cpp_err=
4625  fi
4626else
4627  ac_cpp_err=yes
4628fi
4629if test -z "$ac_cpp_err"; then
4630  :
4631else
4632  echo "$as_me: failed program was:" >&5
4633sed 's/^/| /' conftest.$ac_ext >&5
4634
4635  # Broken: fails on valid input.
4636continue
4637fi
4638rm -f conftest.err conftest.$ac_ext
4639
4640  # OK, works on sane cases.  Now check whether non-existent headers
4641  # can be detected and how.
4642  cat >conftest.$ac_ext <<_ACEOF
4643/* confdefs.h.  */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h.  */
4648#include <ac_nonexistent.h>
4649_ACEOF
4650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4651  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4652  ac_status=$?
4653  grep -v '^ *+' conftest.er1 >conftest.err
4654  rm -f conftest.er1
4655  cat conftest.err >&5
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); } >/dev/null; then
4658  if test -s conftest.err; then
4659    ac_cpp_err=$ac_c_preproc_warn_flag
4660    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4661  else
4662    ac_cpp_err=
4663  fi
4664else
4665  ac_cpp_err=yes
4666fi
4667if test -z "$ac_cpp_err"; then
4668  # Broken: success on invalid input.
4669continue
4670else
4671  echo "$as_me: failed program was:" >&5
4672sed 's/^/| /' conftest.$ac_ext >&5
4673
4674  # Passes both tests.
4675ac_preproc_ok=:
4676break
4677fi
4678rm -f conftest.err conftest.$ac_ext
4679
4680done
4681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4682rm -f conftest.err conftest.$ac_ext
4683if $ac_preproc_ok; then
4684  :
4685else
4686  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4687See \`config.log' for more details." >&5
4688echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4689See \`config.log' for more details." >&2;}
4690   { (exit 1); exit 1; }; }
4691fi
4692
4693ac_ext=c
4694ac_cpp='$CPP $CPPFLAGS'
4695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697ac_compiler_gnu=$ac_cv_c_compiler_gnu
4698
4699
4700echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4701echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4702if test "${ac_cv_header_stdc+set}" = set; then
4703  echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705  cat >conftest.$ac_ext <<_ACEOF
4706/* confdefs.h.  */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h.  */
4711#include <stdlib.h>
4712#include <stdarg.h>
4713#include <string.h>
4714#include <float.h>
4715
4716int
4717main ()
4718{
4719
4720  ;
4721  return 0;
4722}
4723_ACEOF
4724rm -f conftest.$ac_objext
4725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726  (eval $ac_compile) 2>conftest.er1
4727  ac_status=$?
4728  grep -v '^ *+' conftest.er1 >conftest.err
4729  rm -f conftest.er1
4730  cat conftest.err >&5
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } &&
4733         { ac_try='test -z "$ac_c_werror_flag"
4734                         || test ! -s conftest.err'
4735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736  (eval $ac_try) 2>&5
4737  ac_status=$?
4738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739  (exit $ac_status); }; } &&
4740         { ac_try='test -s conftest.$ac_objext'
4741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742  (eval $ac_try) 2>&5
4743  ac_status=$?
4744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745  (exit $ac_status); }; }; then
4746  ac_cv_header_stdc=yes
4747else
4748  echo "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
4751ac_cv_header_stdc=no
4752fi
4753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754
4755if test $ac_cv_header_stdc = yes; then
4756  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4757  cat >conftest.$ac_ext <<_ACEOF
4758/* confdefs.h.  */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h.  */
4763#include <string.h>
4764
4765_ACEOF
4766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4767  $EGREP "memchr" >/dev/null 2>&1; then
4768  :
4769else
4770  ac_cv_header_stdc=no
4771fi
4772rm -f conftest*
4773
4774fi
4775
4776if test $ac_cv_header_stdc = yes; then
4777  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4778  cat >conftest.$ac_ext <<_ACEOF
4779/* confdefs.h.  */
4780_ACEOF
4781cat confdefs.h >>conftest.$ac_ext
4782cat >>conftest.$ac_ext <<_ACEOF
4783/* end confdefs.h.  */
4784#include <stdlib.h>
4785
4786_ACEOF
4787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4788  $EGREP "free" >/dev/null 2>&1; then
4789  :
4790else
4791  ac_cv_header_stdc=no
4792fi
4793rm -f conftest*
4794
4795fi
4796
4797if test $ac_cv_header_stdc = yes; then
4798  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4799  if test "$cross_compiling" = yes; then
4800  :
4801else
4802  cat >conftest.$ac_ext <<_ACEOF
4803/* confdefs.h.  */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h.  */
4808#include <ctype.h>
4809#if ((' ' & 0x0FF) == 0x020)
4810# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4811# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4812#else
4813# define ISLOWER(c) \
4814                   (('a' <= (c) && (c) <= 'i') \
4815                     || ('j' <= (c) && (c) <= 'r') \
4816                     || ('s' <= (c) && (c) <= 'z'))
4817# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4818#endif
4819
4820#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4821int
4822main ()
4823{
4824  int i;
4825  for (i = 0; i < 256; i++)
4826    if (XOR (islower (i), ISLOWER (i))
4827        || toupper (i) != TOUPPER (i))
4828      exit(2);
4829  exit (0);
4830}
4831_ACEOF
4832rm -f conftest$ac_exeext
4833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4834  (eval $ac_link) 2>&5
4835  ac_status=$?
4836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4843  :
4844else
4845  echo "$as_me: program exited with status $ac_status" >&5
4846echo "$as_me: failed program was:" >&5
4847sed 's/^/| /' conftest.$ac_ext >&5
4848
4849( exit $ac_status )
4850ac_cv_header_stdc=no
4851fi
4852rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4853fi
4854fi
4855fi
4856echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4857echo "${ECHO_T}$ac_cv_header_stdc" >&6
4858if test $ac_cv_header_stdc = yes; then
4859
4860cat >>confdefs.h <<\_ACEOF
4861#define STDC_HEADERS 1
4862_ACEOF
4863
4864fi
4865
4866# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4877                  inttypes.h stdint.h unistd.h
4878do
4879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4880echo "$as_me:$LINENO: checking for $ac_header" >&5
4881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4882if eval "test \"\${$as_ac_Header+set}\" = set"; then
4883  echo $ECHO_N "(cached) $ECHO_C" >&6
4884else
4885  cat >conftest.$ac_ext <<_ACEOF
4886/* confdefs.h.  */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h.  */
4891$ac_includes_default
4892
4893#include <$ac_header>
4894_ACEOF
4895rm -f conftest.$ac_objext
4896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897  (eval $ac_compile) 2>conftest.er1
4898  ac_status=$?
4899  grep -v '^ *+' conftest.er1 >conftest.err
4900  rm -f conftest.er1
4901  cat conftest.err >&5
4902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903  (exit $ac_status); } &&
4904         { ac_try='test -z "$ac_c_werror_flag"
4905                         || test ! -s conftest.err'
4906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907  (eval $ac_try) 2>&5
4908  ac_status=$?
4909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910  (exit $ac_status); }; } &&
4911         { ac_try='test -s conftest.$ac_objext'
4912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913  (eval $ac_try) 2>&5
4914  ac_status=$?
4915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916  (exit $ac_status); }; }; then
4917  eval "$as_ac_Header=yes"
4918else
4919  echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922eval "$as_ac_Header=no"
4923fi
4924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925fi
4926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4928if test `eval echo '${'$as_ac_Header'}'` = yes; then
4929  cat >>confdefs.h <<_ACEOF
4930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4931_ACEOF
4932
4933fi
4934
4935done
4936
4937
4938
4939for ac_header in dlfcn.h
4940do
4941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4942if eval "test \"\${$as_ac_Header+set}\" = set"; then
4943  echo "$as_me:$LINENO: checking for $ac_header" >&5
4944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4945if eval "test \"\${$as_ac_Header+set}\" = set"; then
4946  echo $ECHO_N "(cached) $ECHO_C" >&6
4947fi
4948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4950else
4951  # Is the header compilable?
4952echo "$as_me:$LINENO: checking $ac_header usability" >&5
4953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4954cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h.  */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h.  */
4960$ac_includes_default
4961#include <$ac_header>
4962_ACEOF
4963rm -f conftest.$ac_objext
4964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965  (eval $ac_compile) 2>conftest.er1
4966  ac_status=$?
4967  grep -v '^ *+' conftest.er1 >conftest.err
4968  rm -f conftest.er1
4969  cat conftest.err >&5
4970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971  (exit $ac_status); } &&
4972         { ac_try='test -z "$ac_c_werror_flag"
4973                         || test ! -s conftest.err'
4974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975  (eval $ac_try) 2>&5
4976  ac_status=$?
4977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978  (exit $ac_status); }; } &&
4979         { ac_try='test -s conftest.$ac_objext'
4980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981  (eval $ac_try) 2>&5
4982  ac_status=$?
4983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984  (exit $ac_status); }; }; then
4985  ac_header_compiler=yes
4986else
4987  echo "$as_me: failed program was:" >&5
4988sed 's/^/| /' conftest.$ac_ext >&5
4989
4990ac_header_compiler=no
4991fi
4992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4994echo "${ECHO_T}$ac_header_compiler" >&6
4995
4996# Is the header present?
4997echo "$as_me:$LINENO: checking $ac_header presence" >&5
4998echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4999cat >conftest.$ac_ext <<_ACEOF
5000/* confdefs.h.  */
5001_ACEOF
5002cat confdefs.h >>conftest.$ac_ext
5003cat >>conftest.$ac_ext <<_ACEOF
5004/* end confdefs.h.  */
5005#include <$ac_header>
5006_ACEOF
5007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009  ac_status=$?
5010  grep -v '^ *+' conftest.er1 >conftest.err
5011  rm -f conftest.er1
5012  cat conftest.err >&5
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); } >/dev/null; then
5015  if test -s conftest.err; then
5016    ac_cpp_err=$ac_c_preproc_warn_flag
5017    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5018  else
5019    ac_cpp_err=
5020  fi
5021else
5022  ac_cpp_err=yes
5023fi
5024if test -z "$ac_cpp_err"; then
5025  ac_header_preproc=yes
5026else
5027  echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030  ac_header_preproc=no
5031fi
5032rm -f conftest.err conftest.$ac_ext
5033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5034echo "${ECHO_T}$ac_header_preproc" >&6
5035
5036# So?  What about this header?
5037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5038  yes:no: )
5039    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5041    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5042echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5043    ac_header_preproc=yes
5044    ;;
5045  no:yes:* )
5046    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5047echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5048    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5049echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5050    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5051echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5052    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5053echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5054    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5056    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5057echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5058    (
5059      cat <<\_ASBOX
5060## --------------------------------------------------------------- ##
5061## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5062## --------------------------------------------------------------- ##
5063_ASBOX
5064    ) |
5065      sed "s/^/$as_me: WARNING:     /" >&2
5066    ;;
5067esac
5068echo "$as_me:$LINENO: checking for $ac_header" >&5
5069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5070if eval "test \"\${$as_ac_Header+set}\" = set"; then
5071  echo $ECHO_N "(cached) $ECHO_C" >&6
5072else
5073  eval "$as_ac_Header=\$ac_header_preproc"
5074fi
5075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5077
5078fi
5079if test `eval echo '${'$as_ac_Header'}'` = yes; then
5080  cat >>confdefs.h <<_ACEOF
5081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5082_ACEOF
5083
5084fi
5085
5086done
5087
5088ac_ext=cc
5089ac_cpp='$CXXCPP $CPPFLAGS'
5090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093if test -n "$ac_tool_prefix"; then
5094  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5095  do
5096    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5098echo "$as_me:$LINENO: checking for $ac_word" >&5
5099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100if test "${ac_cv_prog_CXX+set}" = set; then
5101  echo $ECHO_N "(cached) $ECHO_C" >&6
5102else
5103  if test -n "$CXX"; then
5104  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111  for ac_exec_ext in '' $ac_executable_extensions; do
5112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118done
5119
5120fi
5121fi
5122CXX=$ac_cv_prog_CXX
5123if test -n "$CXX"; then
5124  echo "$as_me:$LINENO: result: $CXX" >&5
5125echo "${ECHO_T}$CXX" >&6
5126else
5127  echo "$as_me:$LINENO: result: no" >&5
5128echo "${ECHO_T}no" >&6
5129fi
5130
5131    test -n "$CXX" && break
5132  done
5133fi
5134if test -z "$CXX"; then
5135  ac_ct_CXX=$CXX
5136  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5137do
5138  # Extract the first word of "$ac_prog", so it can be a program name with args.
5139set dummy $ac_prog; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5143  echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145  if test -n "$ac_ct_CXX"; then
5146  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151  IFS=$as_save_IFS
5152  test -z "$as_dir" && as_dir=.
5153  for ac_exec_ext in '' $ac_executable_extensions; do
5154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155    ac_cv_prog_ac_ct_CXX="$ac_prog"
5156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157    break 2
5158  fi
5159done
5160done
5161
5162fi
5163fi
5164ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5165if test -n "$ac_ct_CXX"; then
5166  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5167echo "${ECHO_T}$ac_ct_CXX" >&6
5168else
5169  echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
5171fi
5172
5173  test -n "$ac_ct_CXX" && break
5174done
5175test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5176
5177  CXX=$ac_ct_CXX
5178fi
5179
5180
5181# Provide some information about the compiler.
5182echo "$as_me:$LINENO:" \
5183     "checking for C++ compiler version" >&5
5184ac_compiler=`set X $ac_compile; echo $2`
5185{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5186  (eval $ac_compiler --version </dev/null >&5) 2>&5
5187  ac_status=$?
5188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189  (exit $ac_status); }
5190{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5191  (eval $ac_compiler -v </dev/null >&5) 2>&5
5192  ac_status=$?
5193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194  (exit $ac_status); }
5195{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5196  (eval $ac_compiler -V </dev/null >&5) 2>&5
5197  ac_status=$?
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); }
5200
5201echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5202echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5203if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5204  echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206  cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h.  */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h.  */
5212
5213int
5214main ()
5215{
5216#ifndef __GNUC__
5217       choke me
5218#endif
5219
5220  ;
5221  return 0;
5222}
5223_ACEOF
5224rm -f conftest.$ac_objext
5225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226  (eval $ac_compile) 2>conftest.er1
5227  ac_status=$?
5228  grep -v '^ *+' conftest.er1 >conftest.err
5229  rm -f conftest.er1
5230  cat conftest.err >&5
5231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232  (exit $ac_status); } &&
5233         { ac_try='test -z "$ac_cxx_werror_flag"
5234                         || test ! -s conftest.err'
5235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236  (eval $ac_try) 2>&5
5237  ac_status=$?
5238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239  (exit $ac_status); }; } &&
5240         { ac_try='test -s conftest.$ac_objext'
5241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242  (eval $ac_try) 2>&5
5243  ac_status=$?
5244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245  (exit $ac_status); }; }; then
5246  ac_compiler_gnu=yes
5247else
5248  echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
5251ac_compiler_gnu=no
5252fi
5253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5254ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5255
5256fi
5257echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5258echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5259GXX=`test $ac_compiler_gnu = yes && echo yes`
5260ac_test_CXXFLAGS=${CXXFLAGS+set}
5261ac_save_CXXFLAGS=$CXXFLAGS
5262CXXFLAGS="-g"
5263echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5264echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5265if test "${ac_cv_prog_cxx_g+set}" = set; then
5266  echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268  cat >conftest.$ac_ext <<_ACEOF
5269/* confdefs.h.  */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h.  */
5274
5275int
5276main ()
5277{
5278
5279  ;
5280  return 0;
5281}
5282_ACEOF
5283rm -f conftest.$ac_objext
5284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285  (eval $ac_compile) 2>conftest.er1
5286  ac_status=$?
5287  grep -v '^ *+' conftest.er1 >conftest.err
5288  rm -f conftest.er1
5289  cat conftest.err >&5
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); } &&
5292         { ac_try='test -z "$ac_cxx_werror_flag"
5293                         || test ! -s conftest.err'
5294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295  (eval $ac_try) 2>&5
5296  ac_status=$?
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); }; } &&
5299         { ac_try='test -s conftest.$ac_objext'
5300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301  (eval $ac_try) 2>&5
5302  ac_status=$?
5303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304  (exit $ac_status); }; }; then
5305  ac_cv_prog_cxx_g=yes
5306else
5307  echo "$as_me: failed program was:" >&5
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
5310ac_cv_prog_cxx_g=no
5311fi
5312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5313fi
5314echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5315echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5316if test "$ac_test_CXXFLAGS" = set; then
5317  CXXFLAGS=$ac_save_CXXFLAGS
5318elif test $ac_cv_prog_cxx_g = yes; then
5319  if test "$GXX" = yes; then
5320    CXXFLAGS="-g -O2"
5321  else
5322    CXXFLAGS="-g"
5323  fi
5324else
5325  if test "$GXX" = yes; then
5326    CXXFLAGS="-O2"
5327  else
5328    CXXFLAGS=
5329  fi
5330fi
5331for ac_declaration in \
5332   '' \
5333   'extern "C" void std::exit (int) throw (); using std::exit;' \
5334   'extern "C" void std::exit (int); using std::exit;' \
5335   'extern "C" void exit (int) throw ();' \
5336   'extern "C" void exit (int);' \
5337   'void exit (int);'
5338do
5339  cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h.  */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h.  */
5345$ac_declaration
5346#include <stdlib.h>
5347int
5348main ()
5349{
5350exit (42);
5351  ;
5352  return 0;
5353}
5354_ACEOF
5355rm -f conftest.$ac_objext
5356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357  (eval $ac_compile) 2>conftest.er1
5358  ac_status=$?
5359  grep -v '^ *+' conftest.er1 >conftest.err
5360  rm -f conftest.er1
5361  cat conftest.err >&5
5362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363  (exit $ac_status); } &&
5364         { ac_try='test -z "$ac_cxx_werror_flag"
5365                         || test ! -s conftest.err'
5366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367  (eval $ac_try) 2>&5
5368  ac_status=$?
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); }; } &&
5371         { ac_try='test -s conftest.$ac_objext'
5372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373  (eval $ac_try) 2>&5
5374  ac_status=$?
5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376  (exit $ac_status); }; }; then
5377  :
5378else
5379  echo "$as_me: failed program was:" >&5
5380sed 's/^/| /' conftest.$ac_ext >&5
5381
5382continue
5383fi
5384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5385  cat >conftest.$ac_ext <<_ACEOF
5386/* confdefs.h.  */
5387_ACEOF
5388cat confdefs.h >>conftest.$ac_ext
5389cat >>conftest.$ac_ext <<_ACEOF
5390/* end confdefs.h.  */
5391$ac_declaration
5392int
5393main ()
5394{
5395exit (42);
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400rm -f conftest.$ac_objext
5401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402  (eval $ac_compile) 2>conftest.er1
5403  ac_status=$?
5404  grep -v '^ *+' conftest.er1 >conftest.err
5405  rm -f conftest.er1
5406  cat conftest.err >&5
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); } &&
5409         { ac_try='test -z "$ac_cxx_werror_flag"
5410                         || test ! -s conftest.err'
5411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412  (eval $ac_try) 2>&5
5413  ac_status=$?
5414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415  (exit $ac_status); }; } &&
5416         { ac_try='test -s conftest.$ac_objext'
5417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418  (eval $ac_try) 2>&5
5419  ac_status=$?
5420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); }; }; then
5422  break
5423else
5424  echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427fi
5428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429done
5430rm -f conftest*
5431if test -n "$ac_declaration"; then
5432  echo '#ifdef __cplusplus' >>confdefs.h
5433  echo $ac_declaration      >>confdefs.h
5434  echo '#endif'             >>confdefs.h
5435fi
5436
5437ac_ext=cc
5438ac_cpp='$CXXCPP $CPPFLAGS'
5439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5442
5443depcc="$CXX"  am_compiler_list=
5444
5445echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5446echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5447if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5448  echo $ECHO_N "(cached) $ECHO_C" >&6
5449else
5450  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5451  # We make a subdir and do the tests there.  Otherwise we can end up
5452  # making bogus files that we don't know about and never remove.  For
5453  # instance it was reported that on HP-UX the gcc test will end up
5454  # making a dummy file named `D' -- because `-MD' means `put the output
5455  # in D'.
5456  mkdir conftest.dir
5457  # Copy depcomp to subdir because otherwise we won't find it if we're
5458  # using a relative directory.
5459  cp "$am_depcomp" conftest.dir
5460  cd conftest.dir
5461  # We will build objects and dependencies in a subdirectory because
5462  # it helps to detect inapplicable dependency modes.  For instance
5463  # both Tru64's cc and ICC support -MD to output dependencies as a
5464  # side effect of compilation, but ICC will put the dependencies in
5465  # the current directory while Tru64 will put them in the object
5466  # directory.
5467  mkdir sub
5468
5469  am_cv_CXX_dependencies_compiler_type=none
5470  if test "$am_compiler_list" = ""; then
5471     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5472  fi
5473  for depmode in $am_compiler_list; do
5474    # Setup a source with many dependencies, because some compilers
5475    # like to wrap large dependency lists on column 80 (with \), and
5476    # we should not choose a depcomp mode which is confused by this.
5477    #
5478    # We need to recreate these files for each test, as the compiler may
5479    # overwrite some of them when testing with obscure command lines.
5480    # This happens at least with the AIX C compiler.
5481    : > sub/conftest.c
5482    for i in 1 2 3 4 5 6; do
5483      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5484      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5485      # Solaris 8's {/usr,}/bin/sh.
5486      touch sub/conftst$i.h
5487    done
5488    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5489
5490    case $depmode in
5491    nosideeffect)
5492      # after this tag, mechanisms are not by side-effect, so they'll
5493      # only be used when explicitly requested
5494      if test "x$enable_dependency_tracking" = xyes; then
5495        continue
5496      else
5497        break
5498      fi
5499      ;;
5500    none) break ;;
5501    esac
5502    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5503    # mode.  It turns out that the SunPro C++ compiler does not properly
5504    # handle `-M -o', and we need to detect this.
5505    if depmode=$depmode \
5506       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5507       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5508       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5509         >/dev/null 2>conftest.err &&
5510       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5511       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5512       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5513      # icc doesn't choke on unknown options, it will just issue warnings
5514      # or remarks (even with -Werror).  So we grep stderr for any message
5515      # that says an option was ignored or not supported.
5516      # When given -MP, icc 7.0 and 7.1 complain thusly:
5517      #   icc: Command line warning: ignoring option '-M'; no argument required
5518      # The diagnosis changed in icc 8.0:
5519      #   icc: Command line remark: option '-MP' not supported
5520      if (grep 'ignoring option' conftest.err ||
5521          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5522        am_cv_CXX_dependencies_compiler_type=$depmode
5523        break
5524      fi
5525    fi
5526  done
5527
5528  cd ..
5529  rm -rf conftest.dir
5530else
5531  am_cv_CXX_dependencies_compiler_type=none
5532fi
5533
5534fi
5535echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5536echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5537CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5538
5539
5540
5541if
5542  test "x$enable_dependency_tracking" != xno \
5543  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5544  am__fastdepCXX_TRUE=
5545  am__fastdepCXX_FALSE='#'
5546else
5547  am__fastdepCXX_TRUE='#'
5548  am__fastdepCXX_FALSE=
5549fi
5550
5551
5552
5553
5554if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5555    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5556    (test "X$CXX" != "Xg++"))) ; then
5557  ac_ext=cc
5558ac_cpp='$CXXCPP $CPPFLAGS'
5559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5562echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5563echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5564if test -z "$CXXCPP"; then
5565  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5566  echo $ECHO_N "(cached) $ECHO_C" >&6
5567else
5568      # Double quotes because CXXCPP needs to be expanded
5569    for CXXCPP in "$CXX -E" "/lib/cpp"
5570    do
5571      ac_preproc_ok=false
5572for ac_cxx_preproc_warn_flag in '' yes
5573do
5574  # Use a header file that comes with gcc, so configuring glibc
5575  # with a fresh cross-compiler works.
5576  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5577  # <limits.h> exists even on freestanding compilers.
5578  # On the NeXT, cc -E runs the code through the compiler's parser,
5579  # not just through cpp. "Syntax error" is here to catch this case.
5580  cat >conftest.$ac_ext <<_ACEOF
5581/* confdefs.h.  */
5582_ACEOF
5583cat confdefs.h >>conftest.$ac_ext
5584cat >>conftest.$ac_ext <<_ACEOF
5585/* end confdefs.h.  */
5586#ifdef __STDC__
5587# include <limits.h>
5588#else
5589# include <assert.h>
5590#endif
5591                     Syntax error
5592_ACEOF
5593if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5594  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5595  ac_status=$?
5596  grep -v '^ *+' conftest.er1 >conftest.err
5597  rm -f conftest.er1
5598  cat conftest.err >&5
5599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600  (exit $ac_status); } >/dev/null; then
5601  if test -s conftest.err; then
5602    ac_cpp_err=$ac_cxx_preproc_warn_flag
5603    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5604  else
5605    ac_cpp_err=
5606  fi
5607else
5608  ac_cpp_err=yes
5609fi
5610if test -z "$ac_cpp_err"; then
5611  :
5612else
5613  echo "$as_me: failed program was:" >&5
5614sed 's/^/| /' conftest.$ac_ext >&5
5615
5616  # Broken: fails on valid input.
5617continue
5618fi
5619rm -f conftest.err conftest.$ac_ext
5620
5621  # OK, works on sane cases.  Now check whether non-existent headers
5622  # can be detected and how.
5623  cat >conftest.$ac_ext <<_ACEOF
5624/* confdefs.h.  */
5625_ACEOF
5626cat confdefs.h >>conftest.$ac_ext
5627cat >>conftest.$ac_ext <<_ACEOF
5628/* end confdefs.h.  */
5629#include <ac_nonexistent.h>
5630_ACEOF
5631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5632  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5633  ac_status=$?
5634  grep -v '^ *+' conftest.er1 >conftest.err
5635  rm -f conftest.er1
5636  cat conftest.err >&5
5637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638  (exit $ac_status); } >/dev/null; then
5639  if test -s conftest.err; then
5640    ac_cpp_err=$ac_cxx_preproc_warn_flag
5641    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5642  else
5643    ac_cpp_err=
5644  fi
5645else
5646  ac_cpp_err=yes
5647fi
5648if test -z "$ac_cpp_err"; then
5649  # Broken: success on invalid input.
5650continue
5651else
5652  echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655  # Passes both tests.
5656ac_preproc_ok=:
5657break
5658fi
5659rm -f conftest.err conftest.$ac_ext
5660
5661done
5662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5663rm -f conftest.err conftest.$ac_ext
5664if $ac_preproc_ok; then
5665  break
5666fi
5667
5668    done
5669    ac_cv_prog_CXXCPP=$CXXCPP
5670
5671fi
5672  CXXCPP=$ac_cv_prog_CXXCPP
5673else
5674  ac_cv_prog_CXXCPP=$CXXCPP
5675fi
5676echo "$as_me:$LINENO: result: $CXXCPP" >&5
5677echo "${ECHO_T}$CXXCPP" >&6
5678ac_preproc_ok=false
5679for ac_cxx_preproc_warn_flag in '' yes
5680do
5681  # Use a header file that comes with gcc, so configuring glibc
5682  # with a fresh cross-compiler works.
5683  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684  # <limits.h> exists even on freestanding compilers.
5685  # On the NeXT, cc -E runs the code through the compiler's parser,
5686  # not just through cpp. "Syntax error" is here to catch this case.
5687  cat >conftest.$ac_ext <<_ACEOF
5688/* confdefs.h.  */
5689_ACEOF
5690cat confdefs.h >>conftest.$ac_ext
5691cat >>conftest.$ac_ext <<_ACEOF
5692/* end confdefs.h.  */
5693#ifdef __STDC__
5694# include <limits.h>
5695#else
5696# include <assert.h>
5697#endif
5698                     Syntax error
5699_ACEOF
5700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5701  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5702  ac_status=$?
5703  grep -v '^ *+' conftest.er1 >conftest.err
5704  rm -f conftest.er1
5705  cat conftest.err >&5
5706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707  (exit $ac_status); } >/dev/null; then
5708  if test -s conftest.err; then
5709    ac_cpp_err=$ac_cxx_preproc_warn_flag
5710    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5711  else
5712    ac_cpp_err=
5713  fi
5714else
5715  ac_cpp_err=yes
5716fi
5717if test -z "$ac_cpp_err"; then
5718  :
5719else
5720  echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723  # Broken: fails on valid input.
5724continue
5725fi
5726rm -f conftest.err conftest.$ac_ext
5727
5728  # OK, works on sane cases.  Now check whether non-existent headers
5729  # can be detected and how.
5730  cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h.  */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h.  */
5736#include <ac_nonexistent.h>
5737_ACEOF
5738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5739  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5740  ac_status=$?
5741  grep -v '^ *+' conftest.er1 >conftest.err
5742  rm -f conftest.er1
5743  cat conftest.err >&5
5744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); } >/dev/null; then
5746  if test -s conftest.err; then
5747    ac_cpp_err=$ac_cxx_preproc_warn_flag
5748    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5749  else
5750    ac_cpp_err=
5751  fi
5752else
5753  ac_cpp_err=yes
5754fi
5755if test -z "$ac_cpp_err"; then
5756  # Broken: success on invalid input.
5757continue
5758else
5759  echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
5762  # Passes both tests.
5763ac_preproc_ok=:
5764break
5765fi
5766rm -f conftest.err conftest.$ac_ext
5767
5768done
5769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5770rm -f conftest.err conftest.$ac_ext
5771if $ac_preproc_ok; then
5772  :
5773else
5774  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5775See \`config.log' for more details." >&5
5776echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5777See \`config.log' for more details." >&2;}
5778   { (exit 1); exit 1; }; }
5779fi
5780
5781ac_ext=cc
5782ac_cpp='$CXXCPP $CPPFLAGS'
5783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5786
5787fi
5788
5789
5790
5791# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5792
5793# find the maximum length of command line arguments
5794echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5795echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5796if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5797  echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799    i=0
5800  teststring="ABCD"
5801
5802  case $build_os in
5803  msdosdjgpp*)
5804    # On DJGPP, this test can blow up pretty badly due to problems in libc
5805    # (any single argument exceeding 2000 bytes causes a buffer overrun
5806    # during glob expansion).  Even if it were fixed, the result of this
5807    # check would be larger than it should be.
5808    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5809    ;;
5810
5811  gnu*)
5812    # Under GNU Hurd, this test is not required because there is
5813    # no limit to the length of command line arguments.
5814    # Libtool will interpret -1 as no limit whatsoever
5815    lt_cv_sys_max_cmd_len=-1;
5816    ;;
5817
5818  cygwin* | mingw*)
5819    # On Win9x/ME, this test blows up -- it succeeds, but takes
5820    # about 5 minutes as the teststring grows exponentially.
5821    # Worse, since 9x/ME are not pre-emptively multitasking,
5822    # you end up with a "frozen" computer, even though with patience
5823    # the test eventually succeeds (with a max line length of 256k).
5824    # Instead, let's just punt: use the minimum linelength reported by
5825    # all of the supported platforms: 8192 (on NT/2K/XP).
5826    lt_cv_sys_max_cmd_len=8192;
5827    ;;
5828
5829  amigaos*)
5830    # On AmigaOS with pdksh, this test takes hours, literally.
5831    # So we just punt and use a minimum line length of 8192.
5832    lt_cv_sys_max_cmd_len=8192;
5833    ;;
5834
5835  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5836    # This has been around since 386BSD, at least.  Likely further.
5837    if test -x /sbin/sysctl; then
5838      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5839    elif test -x /usr/sbin/sysctl; then
5840      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5841    else
5842      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5843    fi
5844    # And add a safety zone
5845    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5846    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5847    ;;
5848
5849  interix*)
5850    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5851    lt_cv_sys_max_cmd_len=196608
5852    ;;
5853
5854  osf*)
5855    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5856    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5857    # nice to cause kernel panics so lets avoid the loop below.
5858    # First set a reasonable default.
5859    lt_cv_sys_max_cmd_len=16384
5860    #
5861    if test -x /sbin/sysconfig; then
5862      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5863        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5864      esac
5865    fi
5866    ;;
5867  sco3.2v5*)
5868    lt_cv_sys_max_cmd_len=102400
5869    ;;
5870  sysv5* | sco5v6* | sysv4.2uw2*)
5871    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5872    if test -n "$kargmax"; then
5873      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5874    else
5875      lt_cv_sys_max_cmd_len=32768
5876    fi
5877    ;;
5878  *)
5879    # If test is not a shell built-in, we'll probably end up computing a
5880    # maximum length that is only half of the actual maximum length, but
5881    # we can't tell.
5882    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5883    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5884               = "XX$teststring") >/dev/null 2>&1 &&
5885            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5886            lt_cv_sys_max_cmd_len=$new_result &&
5887            test $i != 17 # 1/2 MB should be enough
5888    do
5889      i=`expr $i + 1`
5890      teststring=$teststring$teststring
5891    done
5892    teststring=
5893    # Add a significant safety factor because C++ compilers can tack on massive
5894    # amounts of additional arguments before passing them to the linker.
5895    # It appears as though 1/2 is a usable value.
5896    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5897    ;;
5898  esac
5899
5900fi
5901
5902if test -n $lt_cv_sys_max_cmd_len ; then
5903  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5904echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5905else
5906  echo "$as_me:$LINENO: result: none" >&5
5907echo "${ECHO_T}none" >&6
5908fi
5909
5910
5911
5912
5913# Check for command to grab the raw symbol name followed by C symbol from nm.
5914echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5915echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5916if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5917  echo $ECHO_N "(cached) $ECHO_C" >&6
5918else
5919
5920# These are sane defaults that work on at least a few old systems.
5921# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5922
5923# Character class describing NM global symbol codes.
5924symcode='[BCDEGRST]'
5925
5926# Regexp to match symbols that can be accessed directly from C.
5927sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5928
5929# Transform an extracted symbol line into a proper C declaration
5930lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5931
5932# Transform an extracted symbol line into symbol name and symbol address
5933lt_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'"
5934
5935# Define system-specific variables.
5936case $host_os in
5937aix*)
5938  symcode='[BCDT]'
5939  ;;
5940cygwin* | mingw* | pw32*)
5941  symcode='[ABCDGISTW]'
5942  ;;
5943hpux*) # Its linker distinguishes data from code symbols
5944  if test "$host_cpu" = ia64; then
5945    symcode='[ABCDEGRST]'
5946  fi
5947  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5948  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'"
5949  ;;
5950linux*)
5951  if test "$host_cpu" = ia64; then
5952    symcode='[ABCDGIRSTW]'
5953    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5954    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'"
5955  fi
5956  ;;
5957irix* | nonstopux*)
5958  symcode='[BCDEGRST]'
5959  ;;
5960osf*)
5961  symcode='[BCDEGQRST]'
5962  ;;
5963solaris*)
5964  symcode='[BDRT]'
5965  ;;
5966sco3.2v5*)
5967  symcode='[DT]'
5968  ;;
5969sysv4.2uw2*)
5970  symcode='[DT]'
5971  ;;
5972sysv5* | sco5v6* | unixware* | OpenUNIX*)
5973  symcode='[ABDT]'
5974  ;;
5975sysv4)
5976  symcode='[DFNSTU]'
5977  ;;
5978esac
5979
5980# Handle CRLF in mingw tool chain
5981opt_cr=
5982case $build_os in
5983mingw*)
5984  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5985  ;;
5986esac
5987
5988# If we're using GNU nm, then use its standard symbol codes.
5989case `$NM -V 2>&1` in
5990*GNU* | *'with BFD'*)
5991  symcode='[ABCDGIRSTW]' ;;
5992esac
5993
5994# Try without a prefix undercore, then with it.
5995for ac_symprfx in "" "_"; do
5996
5997  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5998  symxfrm="\\1 $ac_symprfx\\2 \\2"
5999
6000  # Write the raw and C identifiers.
6001  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6002
6003  # Check to see that the pipe works correctly.
6004  pipe_works=no
6005
6006  rm -f conftest*
6007  cat > conftest.$ac_ext <<EOF
6008#ifdef __cplusplus
6009extern "C" {
6010#endif
6011char nm_test_var;
6012void nm_test_func(){}
6013#ifdef __cplusplus
6014}
6015#endif
6016int main(){nm_test_var='a';nm_test_func();return(0);}
6017EOF
6018
6019  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020  (eval $ac_compile) 2>&5
6021  ac_status=$?
6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023  (exit $ac_status); }; then
6024    # Now try to grab the symbols.
6025    nlist=conftest.nm
6026    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6027  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6028  ac_status=$?
6029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030  (exit $ac_status); } && test -s "$nlist"; then
6031      # Try sorting and uniquifying the output.
6032      if sort "$nlist" | uniq > "$nlist"T; then
6033        mv -f "$nlist"T "$nlist"
6034      else
6035        rm -f "$nlist"T
6036      fi
6037
6038      # Make sure that we snagged all the symbols we need.
6039      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6040        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6041          cat <<EOF > conftest.$ac_ext
6042#ifdef __cplusplus
6043extern "C" {
6044#endif
6045
6046EOF
6047          # Now generate the symbol file.
6048          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6049
6050          cat <<EOF >> conftest.$ac_ext
6051#if defined (__STDC__) && __STDC__
6052# define lt_ptr_t void *
6053#else
6054# define lt_ptr_t char *
6055# define const
6056#endif
6057
6058/* The mapping between symbol names and symbols. */
6059const struct {
6060  const char *name;
6061  lt_ptr_t address;
6062}
6063lt_preloaded_symbols[] =
6064{
6065EOF
6066          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6067          cat <<\EOF >> conftest.$ac_ext
6068  {0, (lt_ptr_t) 0}
6069};
6070
6071#ifdef __cplusplus
6072}
6073#endif
6074EOF
6075          # Now try linking the two files.
6076          mv conftest.$ac_objext conftstm.$ac_objext
6077          lt_save_LIBS="$LIBS"
6078          lt_save_CFLAGS="$CFLAGS"
6079          LIBS="conftstm.$ac_objext"
6080          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6081          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082  (eval $ac_link) 2>&5
6083  ac_status=$?
6084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6086            pipe_works=yes
6087          fi
6088          LIBS="$lt_save_LIBS"
6089          CFLAGS="$lt_save_CFLAGS"
6090        else
6091          echo "cannot find nm_test_func in $nlist" >&5
6092        fi
6093      else
6094        echo "cannot find nm_test_var in $nlist" >&5
6095      fi
6096    else
6097      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6098    fi
6099  else
6100    echo "$progname: failed program was:" >&5
6101    cat conftest.$ac_ext >&5
6102  fi
6103  rm -f conftest* conftst*
6104
6105  # Do not use the global_symbol_pipe unless it works.
6106  if test "$pipe_works" = yes; then
6107    break
6108  else
6109    lt_cv_sys_global_symbol_pipe=
6110  fi
6111done
6112
6113fi
6114
6115if test -z "$lt_cv_sys_global_symbol_pipe"; then
6116  lt_cv_sys_global_symbol_to_cdecl=
6117fi
6118if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6119  echo "$as_me:$LINENO: result: failed" >&5
6120echo "${ECHO_T}failed" >&6
6121else
6122  echo "$as_me:$LINENO: result: ok" >&5
6123echo "${ECHO_T}ok" >&6
6124fi
6125
6126echo "$as_me:$LINENO: checking for objdir" >&5
6127echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6128if test "${lt_cv_objdir+set}" = set; then
6129  echo $ECHO_N "(cached) $ECHO_C" >&6
6130else
6131  rm -f .libs 2>/dev/null
6132mkdir .libs 2>/dev/null
6133if test -d .libs; then
6134  lt_cv_objdir=.libs
6135else
6136  # MS-DOS does not allow filenames that begin with a dot.
6137  lt_cv_objdir=_libs
6138fi
6139rmdir .libs 2>/dev/null
6140fi
6141echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6142echo "${ECHO_T}$lt_cv_objdir" >&6
6143objdir=$lt_cv_objdir
6144
6145
6146
6147
6148
6149case $host_os in
6150aix3*)
6151  # AIX sometimes has problems with the GCC collect2 program.  For some
6152  # reason, if we set the COLLECT_NAMES environment variable, the problems
6153  # vanish in a puff of smoke.
6154  if test "X${COLLECT_NAMES+set}" != Xset; then
6155    COLLECT_NAMES=
6156    export COLLECT_NAMES
6157  fi
6158  ;;
6159esac
6160
6161# Sed substitution that helps us do robust quoting.  It backslashifies
6162# metacharacters that are still active within double-quoted strings.
6163Xsed='sed -e 1s/^X//'
6164sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6165
6166# Same as above, but do not quote variable references.
6167double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6168
6169# Sed substitution to delay expansion of an escaped shell variable in a
6170# double_quote_subst'ed string.
6171delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6172
6173# Sed substitution to avoid accidental globbing in evaled expressions
6174no_glob_subst='s/\*/\\\*/g'
6175
6176# Constants:
6177rm="rm -f"
6178
6179# Global variables:
6180default_ofile=libtool
6181can_build_shared=yes
6182
6183# All known linkers require a `.a' archive for static linking (except MSVC,
6184# which needs '.lib').
6185libext=a
6186ltmain="$ac_aux_dir/ltmain.sh"
6187ofile="$default_ofile"
6188with_gnu_ld="$lt_cv_prog_gnu_ld"
6189
6190if test -n "$ac_tool_prefix"; then
6191  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6192set dummy ${ac_tool_prefix}ar; ac_word=$2
6193echo "$as_me:$LINENO: checking for $ac_word" >&5
6194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6195if test "${ac_cv_prog_AR+set}" = set; then
6196  echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198  if test -n "$AR"; then
6199  ac_cv_prog_AR="$AR" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204  IFS=$as_save_IFS
6205  test -z "$as_dir" && as_dir=.
6206  for ac_exec_ext in '' $ac_executable_extensions; do
6207  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208    ac_cv_prog_AR="${ac_tool_prefix}ar"
6209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210    break 2
6211  fi
6212done
6213done
6214
6215fi
6216fi
6217AR=$ac_cv_prog_AR
6218if test -n "$AR"; then
6219  echo "$as_me:$LINENO: result: $AR" >&5
6220echo "${ECHO_T}$AR" >&6
6221else
6222  echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6
6224fi
6225
6226fi
6227if test -z "$ac_cv_prog_AR"; then
6228  ac_ct_AR=$AR
6229  # Extract the first word of "ar", so it can be a program name with args.
6230set dummy ar; ac_word=$2
6231echo "$as_me:$LINENO: checking for $ac_word" >&5
6232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6233if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6234  echo $ECHO_N "(cached) $ECHO_C" >&6
6235else
6236  if test -n "$ac_ct_AR"; then
6237  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6238else
6239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240for as_dir in $PATH
6241do
6242  IFS=$as_save_IFS
6243  test -z "$as_dir" && as_dir=.
6244  for ac_exec_ext in '' $ac_executable_extensions; do
6245  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246    ac_cv_prog_ac_ct_AR="ar"
6247    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248    break 2
6249  fi
6250done
6251done
6252
6253  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6254fi
6255fi
6256ac_ct_AR=$ac_cv_prog_ac_ct_AR
6257if test -n "$ac_ct_AR"; then
6258  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6259echo "${ECHO_T}$ac_ct_AR" >&6
6260else
6261  echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6
6263fi
6264
6265  AR=$ac_ct_AR
6266else
6267  AR="$ac_cv_prog_AR"
6268fi
6269
6270if test -n "$ac_tool_prefix"; then
6271  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6272set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6273echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6275if test "${ac_cv_prog_RANLIB+set}" = set; then
6276  echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278  if test -n "$RANLIB"; then
6279  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284  IFS=$as_save_IFS
6285  test -z "$as_dir" && as_dir=.
6286  for ac_exec_ext in '' $ac_executable_extensions; do
6287  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290    break 2
6291  fi
6292done
6293done
6294
6295fi
6296fi
6297RANLIB=$ac_cv_prog_RANLIB
6298if test -n "$RANLIB"; then
6299  echo "$as_me:$LINENO: result: $RANLIB" >&5
6300echo "${ECHO_T}$RANLIB" >&6
6301else
6302  echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6
6304fi
6305
6306fi
6307if test -z "$ac_cv_prog_RANLIB"; then
6308  ac_ct_RANLIB=$RANLIB
6309  # Extract the first word of "ranlib", so it can be a program name with args.
6310set dummy ranlib; ac_word=$2
6311echo "$as_me:$LINENO: checking for $ac_word" >&5
6312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6313if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6314  echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316  if test -n "$ac_ct_RANLIB"; then
6317  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6318else
6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322  IFS=$as_save_IFS
6323  test -z "$as_dir" && as_dir=.
6324  for ac_exec_ext in '' $ac_executable_extensions; do
6325  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326    ac_cv_prog_ac_ct_RANLIB="ranlib"
6327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328    break 2
6329  fi
6330done
6331done
6332
6333  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6334fi
6335fi
6336ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6337if test -n "$ac_ct_RANLIB"; then
6338  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6339echo "${ECHO_T}$ac_ct_RANLIB" >&6
6340else
6341  echo "$as_me:$LINENO: result: no" >&5
6342echo "${ECHO_T}no" >&6
6343fi
6344
6345  RANLIB=$ac_ct_RANLIB
6346else
6347  RANLIB="$ac_cv_prog_RANLIB"
6348fi
6349
6350if test -n "$ac_tool_prefix"; then
6351  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6352set dummy ${ac_tool_prefix}strip; ac_word=$2
6353echo "$as_me:$LINENO: checking for $ac_word" >&5
6354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6355if test "${ac_cv_prog_STRIP+set}" = set; then
6356  echo $ECHO_N "(cached) $ECHO_C" >&6
6357else
6358  if test -n "$STRIP"; then
6359  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6360else
6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364  IFS=$as_save_IFS
6365  test -z "$as_dir" && as_dir=.
6366  for ac_exec_ext in '' $ac_executable_extensions; do
6367  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6369    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370    break 2
6371  fi
6372done
6373done
6374
6375fi
6376fi
6377STRIP=$ac_cv_prog_STRIP
6378if test -n "$STRIP"; then
6379  echo "$as_me:$LINENO: result: $STRIP" >&5
6380echo "${ECHO_T}$STRIP" >&6
6381else
6382  echo "$as_me:$LINENO: result: no" >&5
6383echo "${ECHO_T}no" >&6
6384fi
6385
6386fi
6387if test -z "$ac_cv_prog_STRIP"; then
6388  ac_ct_STRIP=$STRIP
6389  # Extract the first word of "strip", so it can be a program name with args.
6390set dummy strip; ac_word=$2
6391echo "$as_me:$LINENO: checking for $ac_word" >&5
6392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6393if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6394  echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
6396  if test -n "$ac_ct_STRIP"; then
6397  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6398else
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402  IFS=$as_save_IFS
6403  test -z "$as_dir" && as_dir=.
6404  for ac_exec_ext in '' $ac_executable_extensions; do
6405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406    ac_cv_prog_ac_ct_STRIP="strip"
6407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408    break 2
6409  fi
6410done
6411done
6412
6413  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6414fi
6415fi
6416ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6417if test -n "$ac_ct_STRIP"; then
6418  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6419echo "${ECHO_T}$ac_ct_STRIP" >&6
6420else
6421  echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6
6423fi
6424
6425  STRIP=$ac_ct_STRIP
6426else
6427  STRIP="$ac_cv_prog_STRIP"
6428fi
6429
6430
6431old_CC="$CC"
6432old_CFLAGS="$CFLAGS"
6433
6434# Set sane defaults for various variables
6435test -z "$AR" && AR=ar
6436test -z "$AR_FLAGS" && AR_FLAGS=cru
6437test -z "$AS" && AS=as
6438test -z "$CC" && CC=cc
6439test -z "$LTCC" && LTCC=$CC
6440test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6441test -z "$DLLTOOL" && DLLTOOL=dlltool
6442test -z "$LD" && LD=ld
6443test -z "$LN_S" && LN_S="ln -s"
6444test -z "$MAGIC_CMD" && MAGIC_CMD=file
6445test -z "$NM" && NM=nm
6446test -z "$SED" && SED=sed
6447test -z "$OBJDUMP" && OBJDUMP=objdump
6448test -z "$RANLIB" && RANLIB=:
6449test -z "$STRIP" && STRIP=:
6450test -z "$ac_objext" && ac_objext=o
6451
6452# Determine commands to create old-style static archives.
6453old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6454old_postinstall_cmds='chmod 644 $oldlib'
6455old_postuninstall_cmds=
6456
6457if test -n "$RANLIB"; then
6458  case $host_os in
6459  openbsd*)
6460    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6461    ;;
6462  *)
6463    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6464    ;;
6465  esac
6466  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6467fi
6468
6469for cc_temp in $compiler""; do
6470  case $cc_temp in
6471    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6472    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6473    \-*) ;;
6474    *) break;;
6475  esac
6476done
6477cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6478
6479
6480# Only perform the check for file, if the check method requires it
6481case $deplibs_check_method in
6482file_magic*)
6483  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6484    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6485echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6486if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6487  echo $ECHO_N "(cached) $ECHO_C" >&6
6488else
6489  case $MAGIC_CMD in
6490[\\/*] |  ?:[\\/]*)
6491  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6492  ;;
6493*)
6494  lt_save_MAGIC_CMD="$MAGIC_CMD"
6495  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6496  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6497  for ac_dir in $ac_dummy; do
6498    IFS="$lt_save_ifs"
6499    test -z "$ac_dir" && ac_dir=.
6500    if test -f $ac_dir/${ac_tool_prefix}file; then
6501      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6502      if test -n "$file_magic_test_file"; then
6503        case $deplibs_check_method in
6504        "file_magic "*)
6505          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6506          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6507          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6508            $EGREP "$file_magic_regex" > /dev/null; then
6509            :
6510          else
6511            cat <<EOF 1>&2
6512
6513*** Warning: the command libtool uses to detect shared libraries,
6514*** $file_magic_cmd, produces output that libtool cannot recognize.
6515*** The result is that libtool may fail to recognize shared libraries
6516*** as such.  This will affect the creation of libtool libraries that
6517*** depend on shared libraries, but programs linked with such libtool
6518*** libraries will work regardless of this problem.  Nevertheless, you
6519*** may want to report the problem to your system manager and/or to
6520*** bug-libtool@gnu.org
6521
6522EOF
6523          fi ;;
6524        esac
6525      fi
6526      break
6527    fi
6528  done
6529  IFS="$lt_save_ifs"
6530  MAGIC_CMD="$lt_save_MAGIC_CMD"
6531  ;;
6532esac
6533fi
6534
6535MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6536if test -n "$MAGIC_CMD"; then
6537  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6538echo "${ECHO_T}$MAGIC_CMD" >&6
6539else
6540  echo "$as_me:$LINENO: result: no" >&5
6541echo "${ECHO_T}no" >&6
6542fi
6543
6544if test -z "$lt_cv_path_MAGIC_CMD"; then
6545  if test -n "$ac_tool_prefix"; then
6546    echo "$as_me:$LINENO: checking for file" >&5
6547echo $ECHO_N "checking for file... $ECHO_C" >&6
6548if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6549  echo $ECHO_N "(cached) $ECHO_C" >&6
6550else
6551  case $MAGIC_CMD in
6552[\\/*] |  ?:[\\/]*)
6553  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6554  ;;
6555*)
6556  lt_save_MAGIC_CMD="$MAGIC_CMD"
6557  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6558  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6559  for ac_dir in $ac_dummy; do
6560    IFS="$lt_save_ifs"
6561    test -z "$ac_dir" && ac_dir=.
6562    if test -f $ac_dir/file; then
6563      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6564      if test -n "$file_magic_test_file"; then
6565        case $deplibs_check_method in
6566        "file_magic "*)
6567          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6568          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6569          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6570            $EGREP "$file_magic_regex" > /dev/null; then
6571            :
6572          else
6573            cat <<EOF 1>&2
6574
6575*** Warning: the command libtool uses to detect shared libraries,
6576*** $file_magic_cmd, produces output that libtool cannot recognize.
6577*** The result is that libtool may fail to recognize shared libraries
6578*** as such.  This will affect the creation of libtool libraries that
6579*** depend on shared libraries, but programs linked with such libtool
6580*** libraries will work regardless of this problem.  Nevertheless, you
6581*** may want to report the problem to your system manager and/or to
6582*** bug-libtool@gnu.org
6583
6584EOF
6585          fi ;;
6586        esac
6587      fi
6588      break
6589    fi
6590  done
6591  IFS="$lt_save_ifs"
6592  MAGIC_CMD="$lt_save_MAGIC_CMD"
6593  ;;
6594esac
6595fi
6596
6597MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6598if test -n "$MAGIC_CMD"; then
6599  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6600echo "${ECHO_T}$MAGIC_CMD" >&6
6601else
6602  echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6
6604fi
6605
6606  else
6607    MAGIC_CMD=:
6608  fi
6609fi
6610
6611  fi
6612  ;;
6613esac
6614
6615enable_dlopen=no
6616enable_win32_dll=no
6617
6618# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6619if test "${enable_libtool_lock+set}" = set; then
6620  enableval="$enable_libtool_lock"
6621
6622fi;
6623test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6624
6625
6626# Check whether --with-pic or --without-pic was given.
6627if test "${with_pic+set}" = set; then
6628  withval="$with_pic"
6629  pic_mode="$withval"
6630else
6631  pic_mode=default
6632fi;
6633test -z "$pic_mode" && pic_mode=default
6634
6635# Use C for the default configuration in the libtool script
6636tagname=
6637lt_save_CC="$CC"
6638ac_ext=c
6639ac_cpp='$CPP $CPPFLAGS'
6640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642ac_compiler_gnu=$ac_cv_c_compiler_gnu
6643
6644
6645# Source file extension for C test sources.
6646ac_ext=c
6647
6648# Object file extension for compiled C test sources.
6649objext=o
6650objext=$objext
6651
6652# Code to be used in simple compile tests
6653lt_simple_compile_test_code="int some_variable = 0;\n"
6654
6655# Code to be used in simple link tests
6656lt_simple_link_test_code='int main(){return(0);}\n'
6657
6658
6659# If no C compiler was specified, use CC.
6660LTCC=${LTCC-"$CC"}
6661
6662# If no C compiler flags were specified, use CFLAGS.
6663LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6664
6665# Allow CC to be a program name with arguments.
6666compiler=$CC
6667
6668
6669# save warnings/boilerplate of simple test code
6670ac_outfile=conftest.$ac_objext
6671printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6672eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6673_lt_compiler_boilerplate=`cat conftest.err`
6674$rm conftest*
6675
6676ac_outfile=conftest.$ac_objext
6677printf "$lt_simple_link_test_code" >conftest.$ac_ext
6678eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6679_lt_linker_boilerplate=`cat conftest.err`
6680$rm conftest*
6681
6682
6683## CAVEAT EMPTOR:
6684## There is no encapsulation within the following macros, do not change
6685## the running order or otherwise move them around unless you know exactly
6686## what you are doing...
6687
6688lt_prog_compiler_no_builtin_flag=
6689
6690if test "$GCC" = yes; then
6691  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6692
6693
6694echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6695echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6696if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6697  echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699  lt_cv_prog_compiler_rtti_exceptions=no
6700  ac_outfile=conftest.$ac_objext
6701   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6702   lt_compiler_flag="-fno-rtti -fno-exceptions"
6703   # Insert the option either (1) after the last *FLAGS variable, or
6704   # (2) before a word containing "conftest.", or (3) at the end.
6705   # Note that $ac_compile itself does not contain backslashes and begins
6706   # with a dollar sign (not a hyphen), so the echo should work correctly.
6707   # The option is referenced via a variable to avoid confusing sed.
6708   lt_compile=`echo "$ac_compile" | $SED \
6709   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6710   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6711   -e 's:$: $lt_compiler_flag:'`
6712   (eval echo "\"\$as_me:6712: $lt_compile\"" >&5)
6713   (eval "$lt_compile" 2>conftest.err)
6714   ac_status=$?
6715   cat conftest.err >&5
6716   echo "$as_me:6716: \$? = $ac_status" >&5
6717   if (exit $ac_status) && test -s "$ac_outfile"; then
6718     # The compiler can only warn and ignore the option if not recognized
6719     # So say no if there are warnings other than the usual output.
6720     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6721     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6722     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6723       lt_cv_prog_compiler_rtti_exceptions=yes
6724     fi
6725   fi
6726   $rm conftest*
6727
6728fi
6729echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6730echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6731
6732if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6733    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6734else
6735    :
6736fi
6737
6738fi
6739
6740lt_prog_compiler_wl=
6741lt_prog_compiler_pic=
6742lt_prog_compiler_static=
6743
6744echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6745echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6746
6747  if test "$GCC" = yes; then
6748    lt_prog_compiler_wl='-Wl,'
6749    lt_prog_compiler_static='-static'
6750
6751    case $host_os in
6752      aix*)
6753      # All AIX code is PIC.
6754      if test "$host_cpu" = ia64; then
6755        # AIX 5 now supports IA64 processor
6756        lt_prog_compiler_static='-Bstatic'
6757      fi
6758      ;;
6759
6760    amigaos*)
6761      # FIXME: we need at least 68020 code to build shared libraries, but
6762      # adding the `-m68020' flag to GCC prevents building anything better,
6763      # like `-m68040'.
6764      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6765      ;;
6766
6767    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6768      # PIC is the default for these OSes.
6769      ;;
6770
6771    mingw* | pw32* | os2*)
6772      # This hack is so that the source file can tell whether it is being
6773      # built for inclusion in a dll (and should export symbols for example).
6774      lt_prog_compiler_pic='-DDLL_EXPORT'
6775      ;;
6776
6777    darwin* | rhapsody*)
6778      # PIC is the default on this platform
6779      # Common symbols not allowed in MH_DYLIB files
6780      lt_prog_compiler_pic='-fno-common'
6781      ;;
6782
6783    interix3*)
6784      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6785      # Instead, we relocate shared libraries at runtime.
6786      ;;
6787
6788    msdosdjgpp*)
6789      # Just because we use GCC doesn't mean we suddenly get shared libraries
6790      # on systems that don't support them.
6791      lt_prog_compiler_can_build_shared=no
6792      enable_shared=no
6793      ;;
6794
6795    sysv4*MP*)
6796      if test -d /usr/nec; then
6797        lt_prog_compiler_pic=-Kconform_pic
6798      fi
6799      ;;
6800
6801    hpux*)
6802      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6803      # not for PA HP-UX.
6804      case $host_cpu in
6805      hppa*64*|ia64*)
6806        # +Z the default
6807        ;;
6808      *)
6809        lt_prog_compiler_pic='-fPIC'
6810        ;;
6811      esac
6812      ;;
6813
6814    *)
6815      lt_prog_compiler_pic='-fPIC'
6816      ;;
6817    esac
6818  else
6819    # PORTME Check for flag to pass linker flags through the system compiler.
6820    case $host_os in
6821    aix*)
6822      lt_prog_compiler_wl='-Wl,'
6823      if test "$host_cpu" = ia64; then
6824        # AIX 5 now supports IA64 processor
6825        lt_prog_compiler_static='-Bstatic'
6826      else
6827        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6828      fi
6829      ;;
6830      darwin*)
6831        # PIC is the default on this platform
6832        # Common symbols not allowed in MH_DYLIB files
6833       case $cc_basename in
6834         xlc*)
6835         lt_prog_compiler_pic='-qnocommon'
6836         lt_prog_compiler_wl='-Wl,'
6837         ;;
6838       esac
6839       ;;
6840
6841    mingw* | pw32* | os2*)
6842      # This hack is so that the source file can tell whether it is being
6843      # built for inclusion in a dll (and should export symbols for example).
6844      lt_prog_compiler_pic='-DDLL_EXPORT'
6845      ;;
6846
6847    hpux9* | hpux10* | hpux11*)
6848      lt_prog_compiler_wl='-Wl,'
6849      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6850      # not for PA HP-UX.
6851      case $host_cpu in
6852      hppa*64*|ia64*)
6853        # +Z the default
6854        ;;
6855      *)
6856        lt_prog_compiler_pic='+Z'
6857        ;;
6858      esac
6859      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6860      lt_prog_compiler_static='${wl}-a ${wl}archive'
6861      ;;
6862
6863    irix5* | irix6* | nonstopux*)
6864      lt_prog_compiler_wl='-Wl,'
6865      # PIC (with -KPIC) is the default.
6866      lt_prog_compiler_static='-non_shared'
6867      ;;
6868
6869    newsos6)
6870      lt_prog_compiler_pic='-KPIC'
6871      lt_prog_compiler_static='-Bstatic'
6872      ;;
6873
6874    linux*)
6875      case $cc_basename in
6876      icc* | ecc*)
6877        lt_prog_compiler_wl='-Wl,'
6878        lt_prog_compiler_pic='-KPIC'
6879        lt_prog_compiler_static='-static'
6880        ;;
6881      pgcc* | pgf77* | pgf90* | pgf95*)
6882        # Portland Group compilers (*not* the Pentium gcc compiler,
6883        # which looks to be a dead project)
6884        lt_prog_compiler_wl='-Wl,'
6885        lt_prog_compiler_pic='-fpic'
6886        lt_prog_compiler_static='-Bstatic'
6887        ;;
6888      ccc*)
6889        lt_prog_compiler_wl='-Wl,'
6890        # All Alpha code is PIC.
6891        lt_prog_compiler_static='-non_shared'
6892        ;;
6893      esac
6894      ;;
6895
6896    osf3* | osf4* | osf5*)
6897      lt_prog_compiler_wl='-Wl,'
6898      # All OSF/1 code is PIC.
6899      lt_prog_compiler_static='-non_shared'
6900      ;;
6901
6902    solaris*)
6903      lt_prog_compiler_pic='-KPIC'
6904      lt_prog_compiler_static='-Bstatic'
6905      case $cc_basename in
6906      f77* | f90* | f95*)
6907        lt_prog_compiler_wl='-Qoption ld ';;
6908      *)
6909        lt_prog_compiler_wl='-Wl,';;
6910      esac
6911      ;;
6912
6913    sunos4*)
6914      lt_prog_compiler_wl='-Qoption ld '
6915      lt_prog_compiler_pic='-PIC'
6916      lt_prog_compiler_static='-Bstatic'
6917      ;;
6918
6919    sysv4 | sysv4.2uw2* | sysv4.3*)
6920      lt_prog_compiler_wl='-Wl,'
6921      lt_prog_compiler_pic='-KPIC'
6922      lt_prog_compiler_static='-Bstatic'
6923      ;;
6924
6925    sysv4*MP*)
6926      if test -d /usr/nec ;then
6927        lt_prog_compiler_pic='-Kconform_pic'
6928        lt_prog_compiler_static='-Bstatic'
6929      fi
6930      ;;
6931
6932    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6933      lt_prog_compiler_wl='-Wl,'
6934      lt_prog_compiler_pic='-KPIC'
6935      lt_prog_compiler_static='-Bstatic'
6936      ;;
6937
6938    unicos*)
6939      lt_prog_compiler_wl='-Wl,'
6940      lt_prog_compiler_can_build_shared=no
6941      ;;
6942
6943    uts4*)
6944      lt_prog_compiler_pic='-pic'
6945      lt_prog_compiler_static='-Bstatic'
6946      ;;
6947
6948    *)
6949      lt_prog_compiler_can_build_shared=no
6950      ;;
6951    esac
6952  fi
6953
6954echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6955echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6956
6957#
6958# Check to make sure the PIC flag actually works.
6959#
6960if test -n "$lt_prog_compiler_pic"; then
6961
6962echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6963echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6964if test "${lt_prog_compiler_pic_works+set}" = set; then
6965  echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967  lt_prog_compiler_pic_works=no
6968  ac_outfile=conftest.$ac_objext
6969   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6970   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6971   # Insert the option either (1) after the last *FLAGS variable, or
6972   # (2) before a word containing "conftest.", or (3) at the end.
6973   # Note that $ac_compile itself does not contain backslashes and begins
6974   # with a dollar sign (not a hyphen), so the echo should work correctly.
6975   # The option is referenced via a variable to avoid confusing sed.
6976   lt_compile=`echo "$ac_compile" | $SED \
6977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6979   -e 's:$: $lt_compiler_flag:'`
6980   (eval echo "\"\$as_me:6980: $lt_compile\"" >&5)
6981   (eval "$lt_compile" 2>conftest.err)
6982   ac_status=$?
6983   cat conftest.err >&5
6984   echo "$as_me:6984: \$? = $ac_status" >&5
6985   if (exit $ac_status) && test -s "$ac_outfile"; then
6986     # The compiler can only warn and ignore the option if not recognized
6987     # So say no if there are warnings other than the usual output.
6988     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6989     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6990     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6991       lt_prog_compiler_pic_works=yes
6992     fi
6993   fi
6994   $rm conftest*
6995
6996fi
6997echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6998echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6999
7000if test x"$lt_prog_compiler_pic_works" = xyes; then
7001    case $lt_prog_compiler_pic in
7002     "" | " "*) ;;
7003     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7004     esac
7005else
7006    lt_prog_compiler_pic=
7007     lt_prog_compiler_can_build_shared=no
7008fi
7009
7010fi
7011case $host_os in
7012  # For platforms which do not support PIC, -DPIC is meaningless:
7013  *djgpp*)
7014    lt_prog_compiler_pic=
7015    ;;
7016  *)
7017    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7018    ;;
7019esac
7020
7021#
7022# Check to make sure the static flag actually works.
7023#
7024wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7025echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7026echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7027if test "${lt_prog_compiler_static_works+set}" = set; then
7028  echo $ECHO_N "(cached) $ECHO_C" >&6
7029else
7030  lt_prog_compiler_static_works=no
7031   save_LDFLAGS="$LDFLAGS"
7032   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7033   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7034   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7035     # The linker can only warn and ignore the option if not recognized
7036     # So say no if there are warnings
7037     if test -s conftest.err; then
7038       # Append any errors to the config.log.
7039       cat conftest.err 1>&5
7040       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7041       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7042       if diff conftest.exp conftest.er2 >/dev/null; then
7043         lt_prog_compiler_static_works=yes
7044       fi
7045     else
7046       lt_prog_compiler_static_works=yes
7047     fi
7048   fi
7049   $rm conftest*
7050   LDFLAGS="$save_LDFLAGS"
7051
7052fi
7053echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7054echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7055
7056if test x"$lt_prog_compiler_static_works" = xyes; then
7057    :
7058else
7059    lt_prog_compiler_static=
7060fi
7061
7062
7063echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7064echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7065if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7066  echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068  lt_cv_prog_compiler_c_o=no
7069   $rm -r conftest 2>/dev/null
7070   mkdir conftest
7071   cd conftest
7072   mkdir out
7073   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7074
7075   lt_compiler_flag="-o out/conftest2.$ac_objext"
7076   # Insert the option either (1) after the last *FLAGS variable, or
7077   # (2) before a word containing "conftest.", or (3) at the end.
7078   # Note that $ac_compile itself does not contain backslashes and begins
7079   # with a dollar sign (not a hyphen), so the echo should work correctly.
7080   lt_compile=`echo "$ac_compile" | $SED \
7081   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7083   -e 's:$: $lt_compiler_flag:'`
7084   (eval echo "\"\$as_me:7084: $lt_compile\"" >&5)
7085   (eval "$lt_compile" 2>out/conftest.err)
7086   ac_status=$?
7087   cat out/conftest.err >&5
7088   echo "$as_me:7088: \$? = $ac_status" >&5
7089   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7090   then
7091     # The compiler can only warn and ignore the option if not recognized
7092     # So say no if there are warnings
7093     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7094     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7095     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7096       lt_cv_prog_compiler_c_o=yes
7097     fi
7098   fi
7099   chmod u+w . 2>&5
7100   $rm conftest*
7101   # SGI C++ compiler will create directory out/ii_files/ for
7102   # template instantiation
7103   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7104   $rm out/* && rmdir out
7105   cd ..
7106   rmdir conftest
7107   $rm conftest*
7108
7109fi
7110echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7111echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7112
7113
7114hard_links="nottested"
7115if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7116  # do not overwrite the value of need_locks provided by the user
7117  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7118echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7119  hard_links=yes
7120  $rm conftest*
7121  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7122  touch conftest.a
7123  ln conftest.a conftest.b 2>&5 || hard_links=no
7124  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7125  echo "$as_me:$LINENO: result: $hard_links" >&5
7126echo "${ECHO_T}$hard_links" >&6
7127  if test "$hard_links" = no; then
7128    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7129echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7130    need_locks=warn
7131  fi
7132else
7133  need_locks=no
7134fi
7135
7136echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7137echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7138
7139  runpath_var=
7140  allow_undefined_flag=
7141  enable_shared_with_static_runtimes=no
7142  archive_cmds=
7143  archive_expsym_cmds=
7144  old_archive_From_new_cmds=
7145  old_archive_from_expsyms_cmds=
7146  export_dynamic_flag_spec=
7147  whole_archive_flag_spec=
7148  thread_safe_flag_spec=
7149  hardcode_libdir_flag_spec=
7150  hardcode_libdir_flag_spec_ld=
7151  hardcode_libdir_separator=
7152  hardcode_direct=no
7153  hardcode_minus_L=no
7154  hardcode_shlibpath_var=unsupported
7155  link_all_deplibs=unknown
7156  hardcode_automatic=no
7157  module_cmds=
7158  module_expsym_cmds=
7159  always_export_symbols=no
7160  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7161  # include_expsyms should be a list of space-separated symbols to be *always*
7162  # included in the symbol list
7163  include_expsyms=
7164  # exclude_expsyms can be an extended regexp of symbols to exclude
7165  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7166  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7167  # as well as any symbol that contains `d'.
7168  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7169  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7170  # platforms (ab)use it in PIC code, but their linkers get confused if
7171  # the symbol is explicitly referenced.  Since portable code cannot
7172  # rely on this symbol name, it's probably fine to never include it in
7173  # preloaded symbol tables.
7174  extract_expsyms_cmds=
7175  # Just being paranoid about ensuring that cc_basename is set.
7176  for cc_temp in $compiler""; do
7177  case $cc_temp in
7178    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7179    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7180    \-*) ;;
7181    *) break;;
7182  esac
7183done
7184cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7185
7186  case $host_os in
7187  cygwin* | mingw* | pw32*)
7188    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7189    # When not using gcc, we currently assume that we are using
7190    # Microsoft Visual C++.
7191    if test "$GCC" != yes; then
7192      with_gnu_ld=no
7193    fi
7194    ;;
7195  interix*)
7196    # we just hope/assume this is gcc and not c89 (= MSVC++)
7197    with_gnu_ld=yes
7198    ;;
7199  openbsd*)
7200    with_gnu_ld=no
7201    ;;
7202  esac
7203
7204  ld_shlibs=yes
7205  if test "$with_gnu_ld" = yes; then
7206    # If archive_cmds runs LD, not CC, wlarc should be empty
7207    wlarc='${wl}'
7208
7209    # Set some defaults for GNU ld with shared library support. These
7210    # are reset later if shared libraries are not supported. Putting them
7211    # here allows them to be overridden if necessary.
7212    runpath_var=LD_RUN_PATH
7213    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7214    export_dynamic_flag_spec='${wl}--export-dynamic'
7215    # ancient GNU ld didn't support --whole-archive et. al.
7216    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7217        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7218      else
7219        whole_archive_flag_spec=
7220    fi
7221    supports_anon_versioning=no
7222    case `$LD -v 2>/dev/null` in
7223      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7224      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7225      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7226      *\ 2.11.*) ;; # other 2.11 versions
7227      *) supports_anon_versioning=yes ;;
7228    esac
7229
7230    # See if GNU ld supports shared libraries.
7231    case $host_os in
7232    aix3* | aix4* | aix5*)
7233      # On AIX/PPC, the GNU linker is very broken
7234      if test "$host_cpu" != ia64; then
7235        ld_shlibs=no
7236        cat <<EOF 1>&2
7237
7238*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7239*** to be unable to reliably create shared libraries on AIX.
7240*** Therefore, libtool is disabling shared libraries support.  If you
7241*** really care for shared libraries, you may want to modify your PATH
7242*** so that a non-GNU linker is found, and then restart.
7243
7244EOF
7245      fi
7246      ;;
7247
7248    amigaos*)
7249      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)'
7250      hardcode_libdir_flag_spec='-L$libdir'
7251      hardcode_minus_L=yes
7252
7253      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7254      # that the semantics of dynamic libraries on AmigaOS, at least up
7255      # to version 4, is to share data among multiple programs linked
7256      # with the same dynamic library.  Since this doesn't match the
7257      # behavior of shared libraries on other platforms, we can't use
7258      # them.
7259      ld_shlibs=no
7260      ;;
7261
7262    beos*)
7263      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7264        allow_undefined_flag=unsupported
7265        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7266        # support --undefined.  This deserves some investigation.  FIXME
7267        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7268      else
7269        ld_shlibs=no
7270      fi
7271      ;;
7272
7273    cygwin* | mingw* | pw32*)
7274      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7275      # as there is no search path for DLLs.
7276      hardcode_libdir_flag_spec='-L$libdir'
7277      allow_undefined_flag=unsupported
7278      always_export_symbols=no
7279      enable_shared_with_static_runtimes=yes
7280      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7281
7282      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7283        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7284        # If the export-symbols file already is a .def file (1st line
7285        # is EXPORTS), use it as is; otherwise, prepend...
7286        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7287          cp $export_symbols $output_objdir/$soname.def;
7288        else
7289          echo EXPORTS > $output_objdir/$soname.def;
7290          cat $export_symbols >> $output_objdir/$soname.def;
7291        fi~
7292        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7293      else
7294        ld_shlibs=no
7295      fi
7296      ;;
7297
7298    interix3*)
7299      hardcode_direct=no
7300      hardcode_shlibpath_var=no
7301      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7302      export_dynamic_flag_spec='${wl}-E'
7303      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7304      # Instead, shared libraries are loaded at an image base (0x10000000 by
7305      # default) and relocated if they conflict, which is a slow very memory
7306      # consuming and fragmenting process.  To avoid this, we pick a random,
7307      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7308      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7309      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7310      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'
7311      ;;
7312
7313    linux*)
7314      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7315        tmp_addflag=
7316        case $cc_basename,$host_cpu in
7317        pgcc*)                          # Portland Group C compiler
7318          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'
7319          tmp_addflag=' $pic_flag'
7320          ;;
7321        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7322          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'
7323          tmp_addflag=' $pic_flag -Mnomain' ;;
7324        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7325          tmp_addflag=' -i_dynamic' ;;
7326        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7327          tmp_addflag=' -i_dynamic -nofor_main' ;;
7328        ifc* | ifort*)                  # Intel Fortran compiler
7329          tmp_addflag=' -nofor_main' ;;
7330        esac
7331        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7332
7333        if test $supports_anon_versioning = yes; then
7334          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7335  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7336  $echo "local: *; };" >> $output_objdir/$libname.ver~
7337          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7338        fi
7339      else
7340        ld_shlibs=no
7341      fi
7342      ;;
7343
7344    netbsd*)
7345      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7346        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7347        wlarc=
7348      else
7349        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7350        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7351      fi
7352      ;;
7353
7354    solaris*)
7355      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7356        ld_shlibs=no
7357        cat <<EOF 1>&2
7358
7359*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7360*** create shared libraries on Solaris systems.  Therefore, libtool
7361*** is disabling shared libraries support.  We urge you to upgrade GNU
7362*** binutils to release 2.9.1 or newer.  Another option is to modify
7363*** your PATH or compiler configuration so that the native linker is
7364*** used, and then restart.
7365
7366EOF
7367      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7368        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7369        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7370      else
7371        ld_shlibs=no
7372      fi
7373      ;;
7374
7375    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7376      case `$LD -v 2>&1` in
7377        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7378        ld_shlibs=no
7379        cat <<_LT_EOF 1>&2
7380
7381*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7382*** reliably create shared libraries on SCO systems.  Therefore, libtool
7383*** is disabling shared libraries support.  We urge you to upgrade GNU
7384*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7385*** your PATH or compiler configuration so that the native linker is
7386*** used, and then restart.
7387
7388_LT_EOF
7389        ;;
7390        *)
7391          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7392            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7393            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7394            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7395          else
7396            ld_shlibs=no
7397          fi
7398        ;;
7399      esac
7400      ;;
7401
7402    sunos4*)
7403      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7404      wlarc=
7405      hardcode_direct=yes
7406      hardcode_shlibpath_var=no
7407      ;;
7408
7409    *)
7410      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7411        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7412        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7413      else
7414        ld_shlibs=no
7415      fi
7416      ;;
7417    esac
7418
7419    if test "$ld_shlibs" = no; then
7420      runpath_var=
7421      hardcode_libdir_flag_spec=
7422      export_dynamic_flag_spec=
7423      whole_archive_flag_spec=
7424    fi
7425  else
7426    # PORTME fill in a description of your system's linker (not GNU ld)
7427    case $host_os in
7428    aix3*)
7429      allow_undefined_flag=unsupported
7430      always_export_symbols=yes
7431      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'
7432      # Note: this linker hardcodes the directories in LIBPATH if there
7433      # are no directories specified by -L.
7434      hardcode_minus_L=yes
7435      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7436        # Neither direct hardcoding nor static linking is supported with a
7437        # broken collect2.
7438        hardcode_direct=unsupported
7439      fi
7440      ;;
7441
7442    aix4* | aix5*)
7443      if test "$host_cpu" = ia64; then
7444        # On IA64, the linker does run time linking by default, so we don't
7445        # have to do anything special.
7446        aix_use_runtimelinking=no
7447        exp_sym_flag='-Bexport'
7448        no_entry_flag=""
7449      else
7450        # If we're using GNU nm, then we don't want the "-C" option.
7451        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7452        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7453          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'
7454        else
7455          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'
7456        fi
7457        aix_use_runtimelinking=no
7458
7459        # Test if we are trying to use run time linking or normal
7460        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7461        # need to do runtime linking.
7462        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7463          for ld_flag in $LDFLAGS; do
7464          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7465            aix_use_runtimelinking=yes
7466            break
7467          fi
7468          done
7469          ;;
7470        esac
7471
7472        exp_sym_flag='-bexport'
7473        no_entry_flag='-bnoentry'
7474      fi
7475
7476      # When large executables or shared objects are built, AIX ld can
7477      # have problems creating the table of contents.  If linking a library
7478      # or program results in "error TOC overflow" add -mminimal-toc to
7479      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7480      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7481
7482      archive_cmds=''
7483      hardcode_direct=yes
7484      hardcode_libdir_separator=':'
7485      link_all_deplibs=yes
7486
7487      if test "$GCC" = yes; then
7488        case $host_os in aix4.[012]|aix4.[012].*)
7489        # We only want to do this on AIX 4.2 and lower, the check
7490        # below for broken collect2 doesn't work under 4.3+
7491          collect2name=`${CC} -print-prog-name=collect2`
7492          if test -f "$collect2name" && \
7493           strings "$collect2name" | grep resolve_lib_name >/dev/null
7494          then
7495          # We have reworked collect2
7496          hardcode_direct=yes
7497          else
7498          # We have old collect2
7499          hardcode_direct=unsupported
7500          # It fails to find uninstalled libraries when the uninstalled
7501          # path is not listed in the libpath.  Setting hardcode_minus_L
7502          # to unsupported forces relinking
7503          hardcode_minus_L=yes
7504          hardcode_libdir_flag_spec='-L$libdir'
7505          hardcode_libdir_separator=
7506          fi
7507          ;;
7508        esac
7509        shared_flag='-shared'
7510        if test "$aix_use_runtimelinking" = yes; then
7511          shared_flag="$shared_flag "'${wl}-G'
7512        fi
7513      else
7514        # not using gcc
7515        if test "$host_cpu" = ia64; then
7516        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7517        # chokes on -Wl,-G. The following line is correct:
7518          shared_flag='-G'
7519        else
7520          if test "$aix_use_runtimelinking" = yes; then
7521            shared_flag='${wl}-G'
7522          else
7523            shared_flag='${wl}-bM:SRE'
7524          fi
7525        fi
7526      fi
7527
7528      # It seems that -bexpall does not export symbols beginning with
7529      # underscore (_), so it is better to generate a list of symbols to export.
7530      always_export_symbols=yes
7531      if test "$aix_use_runtimelinking" = yes; then
7532        # Warning - without using the other runtime loading flags (-brtl),
7533        # -berok will link without error, but may produce a broken library.
7534        allow_undefined_flag='-berok'
7535       # Determine the default libpath from the value encoded in an empty executable.
7536       cat >conftest.$ac_ext <<_ACEOF
7537/* confdefs.h.  */
7538_ACEOF
7539cat confdefs.h >>conftest.$ac_ext
7540cat >>conftest.$ac_ext <<_ACEOF
7541/* end confdefs.h.  */
7542
7543int
7544main ()
7545{
7546
7547  ;
7548  return 0;
7549}
7550_ACEOF
7551rm -f conftest.$ac_objext conftest$ac_exeext
7552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553  (eval $ac_link) 2>conftest.er1
7554  ac_status=$?
7555  grep -v '^ *+' conftest.er1 >conftest.err
7556  rm -f conftest.er1
7557  cat conftest.err >&5
7558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559  (exit $ac_status); } &&
7560         { ac_try='test -z "$ac_c_werror_flag"
7561                         || test ! -s conftest.err'
7562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563  (eval $ac_try) 2>&5
7564  ac_status=$?
7565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566  (exit $ac_status); }; } &&
7567         { ac_try='test -s conftest$ac_exeext'
7568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569  (eval $ac_try) 2>&5
7570  ac_status=$?
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); }; }; then
7573
7574aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7575}'`
7576# Check for a 64-bit object if we didn't find anything.
7577if 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; }
7578}'`; fi
7579else
7580  echo "$as_me: failed program was:" >&5
7581sed 's/^/| /' conftest.$ac_ext >&5
7582
7583fi
7584rm -f conftest.err conftest.$ac_objext \
7585      conftest$ac_exeext conftest.$ac_ext
7586if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7587
7588       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7589        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"
7590       else
7591        if test "$host_cpu" = ia64; then
7592          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7593          allow_undefined_flag="-z nodefs"
7594          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"
7595        else
7596         # Determine the default libpath from the value encoded in an empty executable.
7597         cat >conftest.$ac_ext <<_ACEOF
7598/* confdefs.h.  */
7599_ACEOF
7600cat confdefs.h >>conftest.$ac_ext
7601cat >>conftest.$ac_ext <<_ACEOF
7602/* end confdefs.h.  */
7603
7604int
7605main ()
7606{
7607
7608  ;
7609  return 0;
7610}
7611_ACEOF
7612rm -f conftest.$ac_objext conftest$ac_exeext
7613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614  (eval $ac_link) 2>conftest.er1
7615  ac_status=$?
7616  grep -v '^ *+' conftest.er1 >conftest.err
7617  rm -f conftest.er1
7618  cat conftest.err >&5
7619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620  (exit $ac_status); } &&
7621         { ac_try='test -z "$ac_c_werror_flag"
7622                         || test ! -s conftest.err'
7623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624  (eval $ac_try) 2>&5
7625  ac_status=$?
7626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627  (exit $ac_status); }; } &&
7628         { ac_try='test -s conftest$ac_exeext'
7629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630  (eval $ac_try) 2>&5
7631  ac_status=$?
7632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633  (exit $ac_status); }; }; then
7634
7635aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7636}'`
7637# Check for a 64-bit object if we didn't find anything.
7638if 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; }
7639}'`; fi
7640else
7641  echo "$as_me: failed program was:" >&5
7642sed 's/^/| /' conftest.$ac_ext >&5
7643
7644fi
7645rm -f conftest.err conftest.$ac_objext \
7646      conftest$ac_exeext conftest.$ac_ext
7647if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7648
7649         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7650          # Warning - without using the other run time loading flags,
7651          # -berok will link without error, but may produce a broken library.
7652          no_undefined_flag=' ${wl}-bernotok'
7653          allow_undefined_flag=' ${wl}-berok'
7654          # Exported symbols can be pulled into shared objects from archives
7655          whole_archive_flag_spec='$convenience'
7656          archive_cmds_need_lc=yes
7657          # This is similar to how AIX traditionally builds its shared libraries.
7658          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'
7659        fi
7660      fi
7661      ;;
7662
7663    amigaos*)
7664      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)'
7665      hardcode_libdir_flag_spec='-L$libdir'
7666      hardcode_minus_L=yes
7667      # see comment about different semantics on the GNU ld section
7668      ld_shlibs=no
7669      ;;
7670
7671    bsdi[45]*)
7672      export_dynamic_flag_spec=-rdynamic
7673      ;;
7674
7675    cygwin* | mingw* | pw32*)
7676      # When not using gcc, we currently assume that we are using
7677      # Microsoft Visual C++.
7678      # hardcode_libdir_flag_spec is actually meaningless, as there is
7679      # no search path for DLLs.
7680      hardcode_libdir_flag_spec=' '
7681      allow_undefined_flag=unsupported
7682      # Tell ltmain to make .lib files, not .a files.
7683      libext=lib
7684      # Tell ltmain to make .dll files, not .so files.
7685      shrext_cmds=".dll"
7686      # FIXME: Setting linknames here is a bad hack.
7687      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7688      # The linker will automatically build a .lib file if we build a DLL.
7689      old_archive_From_new_cmds='true'
7690      # FIXME: Should let the user specify the lib program.
7691      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7692      fix_srcfile_path='`cygpath -w "$srcfile"`'
7693      enable_shared_with_static_runtimes=yes
7694      ;;
7695
7696    darwin* | rhapsody*)
7697      case $host_os in
7698        rhapsody* | darwin1.[012])
7699         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7700         ;;
7701       *) # Darwin 1.3 on
7702         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7703           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7704         else
7705           case ${MACOSX_DEPLOYMENT_TARGET} in
7706             10.[012])
7707               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7708               ;;
7709             10.*)
7710               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7711               ;;
7712           esac
7713         fi
7714         ;;
7715      esac
7716      archive_cmds_need_lc=no
7717      hardcode_direct=no
7718      hardcode_automatic=yes
7719      hardcode_shlibpath_var=unsupported
7720      whole_archive_flag_spec=''
7721      link_all_deplibs=yes
7722    if test "$GCC" = yes ; then
7723        output_verbose_link_cmd='echo'
7724        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7725      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7726      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7727      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}'
7728      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}'
7729    else
7730      case $cc_basename in
7731        xlc*)
7732         output_verbose_link_cmd='echo'
7733         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7734         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7735          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7736         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}'
7737          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}'
7738          ;;
7739       *)
7740         ld_shlibs=no
7741          ;;
7742      esac
7743    fi
7744      ;;
7745
7746    dgux*)
7747      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7748      hardcode_libdir_flag_spec='-L$libdir'
7749      hardcode_shlibpath_var=no
7750      ;;
7751
7752    freebsd1*)
7753      ld_shlibs=no
7754      ;;
7755
7756    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7757    # support.  Future versions do this automatically, but an explicit c++rt0.o
7758    # does not break anything, and helps significantly (at the cost of a little
7759    # extra space).
7760    freebsd2.2*)
7761      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7762      hardcode_libdir_flag_spec='-R$libdir'
7763      hardcode_direct=yes
7764      hardcode_shlibpath_var=no
7765      ;;
7766
7767    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7768    freebsd2*)
7769      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7770      hardcode_direct=yes
7771      hardcode_minus_L=yes
7772      hardcode_shlibpath_var=no
7773      ;;
7774
7775    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7776    freebsd* | kfreebsd*-gnu | dragonfly*)
7777      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7778      hardcode_libdir_flag_spec='-R$libdir'
7779      hardcode_direct=yes
7780      hardcode_shlibpath_var=no
7781      ;;
7782
7783    hpux9*)
7784      if test "$GCC" = yes; then
7785        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'
7786      else
7787        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'
7788      fi
7789      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7790      hardcode_libdir_separator=:
7791      hardcode_direct=yes
7792
7793      # hardcode_minus_L: Not really in the search PATH,
7794      # but as the default location of the library.
7795      hardcode_minus_L=yes
7796      export_dynamic_flag_spec='${wl}-E'
7797      ;;
7798
7799    hpux10*)
7800      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7801        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7802      else
7803        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7804      fi
7805      if test "$with_gnu_ld" = no; then
7806        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7807        hardcode_libdir_separator=:
7808
7809        hardcode_direct=yes
7810        export_dynamic_flag_spec='${wl}-E'
7811
7812        # hardcode_minus_L: Not really in the search PATH,
7813        # but as the default location of the library.
7814        hardcode_minus_L=yes
7815      fi
7816      ;;
7817
7818    hpux11*)
7819      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7820        case $host_cpu in
7821        hppa*64*)
7822          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7823          ;;
7824        ia64*)
7825          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7826          ;;
7827        *)
7828          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7829          ;;
7830        esac
7831      else
7832        case $host_cpu in
7833        hppa*64*)
7834          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7835          ;;
7836        ia64*)
7837          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7838          ;;
7839        *)
7840          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7841          ;;
7842        esac
7843      fi
7844      if test "$with_gnu_ld" = no; then
7845        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7846        hardcode_libdir_separator=:
7847
7848        case $host_cpu in
7849        hppa*64*|ia64*)
7850          hardcode_libdir_flag_spec_ld='+b $libdir'
7851          hardcode_direct=no
7852          hardcode_shlibpath_var=no
7853          ;;
7854        *)
7855          hardcode_direct=yes
7856          export_dynamic_flag_spec='${wl}-E'
7857
7858          # hardcode_minus_L: Not really in the search PATH,
7859          # but as the default location of the library.
7860          hardcode_minus_L=yes
7861          ;;
7862        esac
7863      fi
7864      ;;
7865
7866    irix5* | irix6* | nonstopux*)
7867      if test "$GCC" = yes; then
7868        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'
7869      else
7870        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'
7871        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7872      fi
7873      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7874      hardcode_libdir_separator=:
7875      link_all_deplibs=yes
7876      ;;
7877
7878    netbsd*)
7879      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7880        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7881      else
7882        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7883      fi
7884      hardcode_libdir_flag_spec='-R$libdir'
7885      hardcode_direct=yes
7886      hardcode_shlibpath_var=no
7887      ;;
7888
7889    newsos6)
7890      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891      hardcode_direct=yes
7892      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7893      hardcode_libdir_separator=:
7894      hardcode_shlibpath_var=no
7895      ;;
7896
7897    openbsd*)
7898      hardcode_direct=yes
7899      hardcode_shlibpath_var=no
7900      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7901        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7902        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7903        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7904        export_dynamic_flag_spec='${wl}-E'
7905      else
7906       case $host_os in
7907         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7908           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7909           hardcode_libdir_flag_spec='-R$libdir'
7910           ;;
7911         *)
7912           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7913           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7914           ;;
7915       esac
7916      fi
7917      ;;
7918
7919    os2*)
7920      hardcode_libdir_flag_spec='-L$libdir'
7921      hardcode_minus_L=yes
7922      allow_undefined_flag=unsupported
7923      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'
7924      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7925      ;;
7926
7927    osf3*)
7928      if test "$GCC" = yes; then
7929        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7930        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'
7931      else
7932        allow_undefined_flag=' -expect_unresolved \*'
7933        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'
7934      fi
7935      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7936      hardcode_libdir_separator=:
7937      ;;
7938
7939    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7940      if test "$GCC" = yes; then
7941        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7942        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'
7943        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7944      else
7945        allow_undefined_flag=' -expect_unresolved \*'
7946        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'
7947        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7948        $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'
7949
7950        # Both c and cxx compiler support -rpath directly
7951        hardcode_libdir_flag_spec='-rpath $libdir'
7952      fi
7953      hardcode_libdir_separator=:
7954      ;;
7955
7956    solaris*)
7957      no_undefined_flag=' -z text'
7958      if test "$GCC" = yes; then
7959        wlarc='${wl}'
7960        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7961        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7962          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7963      else
7964        wlarc=''
7965        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7966        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7967        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7968      fi
7969      hardcode_libdir_flag_spec='-R$libdir'
7970      hardcode_shlibpath_var=no
7971      case $host_os in
7972      solaris2.[0-5] | solaris2.[0-5].*) ;;
7973      *)
7974        # The compiler driver will combine linker options so we
7975        # cannot just pass the convience library names through
7976        # without $wl, iff we do not link with $LD.
7977        # Luckily, gcc supports the same syntax we need for Sun Studio.
7978        # Supported since Solaris 2.6 (maybe 2.5.1?)
7979        case $wlarc in
7980        '')
7981          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7982        *)
7983          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' ;;
7984        esac ;;
7985      esac
7986      link_all_deplibs=yes
7987      ;;
7988
7989    sunos4*)
7990      if test "x$host_vendor" = xsequent; then
7991        # Use $CC to link under sequent, because it throws in some extra .o
7992        # files that make .init and .fini sections work.
7993        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7994      else
7995        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7996      fi
7997      hardcode_libdir_flag_spec='-L$libdir'
7998      hardcode_direct=yes
7999      hardcode_minus_L=yes
8000      hardcode_shlibpath_var=no
8001      ;;
8002
8003    sysv4)
8004      case $host_vendor in
8005        sni)
8006          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8007          hardcode_direct=yes # is this really true???
8008        ;;
8009        siemens)
8010          ## LD is ld it makes a PLAMLIB
8011          ## CC just makes a GrossModule.
8012          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8013          reload_cmds='$CC -r -o $output$reload_objs'
8014          hardcode_direct=no
8015        ;;
8016        motorola)
8017          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8018          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8019        ;;
8020      esac
8021      runpath_var='LD_RUN_PATH'
8022      hardcode_shlibpath_var=no
8023      ;;
8024
8025    sysv4.3*)
8026      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8027      hardcode_shlibpath_var=no
8028      export_dynamic_flag_spec='-Bexport'
8029      ;;
8030
8031    sysv4*MP*)
8032      if test -d /usr/nec; then
8033        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8034        hardcode_shlibpath_var=no
8035        runpath_var=LD_RUN_PATH
8036        hardcode_runpath_var=yes
8037        ld_shlibs=yes
8038      fi
8039      ;;
8040
8041    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8042      no_undefined_flag='${wl}-z,text'
8043      archive_cmds_need_lc=no
8044      hardcode_shlibpath_var=no
8045      runpath_var='LD_RUN_PATH'
8046
8047      if test "$GCC" = yes; then
8048        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8049        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8050      else
8051        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8052        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8053      fi
8054      ;;
8055
8056    sysv5* | sco3.2v5* | sco5v6*)
8057      # Note: We can NOT use -z defs as we might desire, because we do not
8058      # link with -lc, and that would cause any symbols used from libc to
8059      # always be unresolved, which means just about no library would
8060      # ever link correctly.  If we're not using GNU ld we use -z text
8061      # though, which does catch some bad symbols but isn't as heavy-handed
8062      # as -z defs.
8063      no_undefined_flag='${wl}-z,text'
8064      allow_undefined_flag='${wl}-z,nodefs'
8065      archive_cmds_need_lc=no
8066      hardcode_shlibpath_var=no
8067      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8068      hardcode_libdir_separator=':'
8069      link_all_deplibs=yes
8070      export_dynamic_flag_spec='${wl}-Bexport'
8071      runpath_var='LD_RUN_PATH'
8072
8073      if test "$GCC" = yes; then
8074        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8075        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8076      else
8077        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8078        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8079      fi
8080      ;;
8081
8082    uts4*)
8083      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8084      hardcode_libdir_flag_spec='-L$libdir'
8085      hardcode_shlibpath_var=no
8086      ;;
8087
8088    *)
8089      ld_shlibs=no
8090      ;;
8091    esac
8092  fi
8093
8094echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8095echo "${ECHO_T}$ld_shlibs" >&6
8096test "$ld_shlibs" = no && can_build_shared=no
8097
8098#
8099# Do we need to explicitly link libc?
8100#
8101case "x$archive_cmds_need_lc" in
8102x|xyes)
8103  # Assume -lc should be added
8104  archive_cmds_need_lc=yes
8105
8106  if test "$enable_shared" = yes && test "$GCC" = yes; then
8107    case $archive_cmds in
8108    *'~'*)
8109      # FIXME: we may have to deal with multi-command sequences.
8110      ;;
8111    '$CC '*)
8112      # Test whether the compiler implicitly links with -lc since on some
8113      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8114      # to ld, don't add -lc before -lgcc.
8115      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8116echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8117      $rm conftest*
8118      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8119
8120      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8121  (eval $ac_compile) 2>&5
8122  ac_status=$?
8123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124  (exit $ac_status); } 2>conftest.err; then
8125        soname=conftest
8126        lib=conftest
8127        libobjs=conftest.$ac_objext
8128        deplibs=
8129        wl=$lt_prog_compiler_wl
8130        pic_flag=$lt_prog_compiler_pic
8131        compiler_flags=-v
8132        linker_flags=-v
8133        verstring=
8134        output_objdir=.
8135        libname=conftest
8136        lt_save_allow_undefined_flag=$allow_undefined_flag
8137        allow_undefined_flag=
8138        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8139  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8140  ac_status=$?
8141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142  (exit $ac_status); }
8143        then
8144          archive_cmds_need_lc=no
8145        else
8146          archive_cmds_need_lc=yes
8147        fi
8148        allow_undefined_flag=$lt_save_allow_undefined_flag
8149      else
8150        cat conftest.err 1>&5
8151      fi
8152      $rm conftest*
8153      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8154echo "${ECHO_T}$archive_cmds_need_lc" >&6
8155      ;;
8156    esac
8157  fi
8158  ;;
8159esac
8160
8161echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8162echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8163library_names_spec=
8164libname_spec='lib$name'
8165soname_spec=
8166shrext_cmds=".so"
8167postinstall_cmds=
8168postuninstall_cmds=
8169finish_cmds=
8170finish_eval=
8171shlibpath_var=
8172shlibpath_overrides_runpath=unknown
8173version_type=none
8174dynamic_linker="$host_os ld.so"
8175sys_lib_dlsearch_path_spec="/lib /usr/lib"
8176if test "$GCC" = yes; then
8177  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8178  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8179    # if the path contains ";" then we assume it to be the separator
8180    # otherwise default to the standard path separator (i.e. ":") - it is
8181    # assumed that no part of a normal pathname contains ";" but that should
8182    # okay in the real world where ";" in dirpaths is itself problematic.
8183    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8184  else
8185    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8186  fi
8187else
8188  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8189fi
8190need_lib_prefix=unknown
8191hardcode_into_libs=no
8192
8193# when you set need_version to no, make sure it does not cause -set_version
8194# flags to be left without arguments
8195need_version=unknown
8196
8197case $host_os in
8198aix3*)
8199  version_type=linux
8200  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8201  shlibpath_var=LIBPATH
8202
8203  # AIX 3 has no versioning support, so we append a major version to the name.
8204  soname_spec='${libname}${release}${shared_ext}$major'
8205  ;;
8206
8207aix4* | aix5*)
8208  version_type=linux
8209  need_lib_prefix=no
8210  need_version=no
8211  hardcode_into_libs=yes
8212  if test "$host_cpu" = ia64; then
8213    # AIX 5 supports IA64
8214    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8215    shlibpath_var=LD_LIBRARY_PATH
8216  else
8217    # With GCC up to 2.95.x, collect2 would create an import file
8218    # for dependence libraries.  The import file would start with
8219    # the line `#! .'.  This would cause the generated library to
8220    # depend on `.', always an invalid library.  This was fixed in
8221    # development snapshots of GCC prior to 3.0.
8222    case $host_os in
8223      aix4 | aix4.[01] | aix4.[01].*)
8224      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8225           echo ' yes '
8226           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8227        :
8228      else
8229        can_build_shared=no
8230      fi
8231      ;;
8232    esac
8233    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8234    # soname into executable. Probably we can add versioning support to
8235    # collect2, so additional links can be useful in future.
8236    if test "$aix_use_runtimelinking" = yes; then
8237      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8238      # instead of lib<name>.a to let people know that these are not
8239      # typical AIX shared libraries.
8240      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8241    else
8242      # We preserve .a as extension for shared libraries through AIX4.2
8243      # and later when we are not doing run time linking.
8244      library_names_spec='${libname}${release}.a $libname.a'
8245      soname_spec='${libname}${release}${shared_ext}$major'
8246    fi
8247    shlibpath_var=LIBPATH
8248  fi
8249  ;;
8250
8251amigaos*)
8252  library_names_spec='$libname.ixlibrary $libname.a'
8253  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8254  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'
8255  ;;
8256
8257beos*)
8258  library_names_spec='${libname}${shared_ext}'
8259  dynamic_linker="$host_os ld.so"
8260  shlibpath_var=LIBRARY_PATH
8261  ;;
8262
8263bsdi[45]*)
8264  version_type=linux
8265  need_version=no
8266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8267  soname_spec='${libname}${release}${shared_ext}$major'
8268  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8269  shlibpath_var=LD_LIBRARY_PATH
8270  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8271  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8272  # the default ld.so.conf also contains /usr/contrib/lib and
8273  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8274  # libtool to hard-code these into programs
8275  ;;
8276
8277cygwin* | mingw* | pw32*)
8278  version_type=windows
8279  shrext_cmds=".dll"
8280  need_version=no
8281  need_lib_prefix=no
8282
8283  case $GCC,$host_os in
8284  yes,cygwin* | yes,mingw* | yes,pw32*)
8285    library_names_spec='$libname.dll.a'
8286    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8287    postinstall_cmds='base_file=`basename \${file}`~
8288      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8289      dldir=$destdir/`dirname \$dlpath`~
8290      test -d \$dldir || mkdir -p \$dldir~
8291      $install_prog $dir/$dlname \$dldir/$dlname~
8292      chmod a+x \$dldir/$dlname'
8293    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8294      dlpath=$dir/\$dldll~
8295       $rm \$dlpath'
8296    shlibpath_overrides_runpath=yes
8297
8298    case $host_os in
8299    cygwin*)
8300      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8301      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8302      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8303      ;;
8304    mingw*)
8305      # MinGW DLLs use traditional 'lib' prefix
8306      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8307      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8308      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8309        # It is most probably a Windows format PATH printed by
8310        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8311        # path with ; separators, and with drive letters. We can handle the
8312        # drive letters (cygwin fileutils understands them), so leave them,
8313        # especially as we might pass files found there to a mingw objdump,
8314        # which wouldn't understand a cygwinified path. Ahh.
8315        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8316      else
8317        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8318      fi
8319      ;;
8320    pw32*)
8321      # pw32 DLLs use 'pw' prefix rather than 'lib'
8322      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8323      ;;
8324    esac
8325    ;;
8326
8327  *)
8328    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8329    ;;
8330  esac
8331  dynamic_linker='Win32 ld.exe'
8332  # FIXME: first we should search . and the directory the executable is in
8333  shlibpath_var=PATH
8334  ;;
8335
8336darwin* | rhapsody*)
8337  dynamic_linker="$host_os dyld"
8338  version_type=darwin
8339  need_lib_prefix=no
8340  need_version=no
8341  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8342  soname_spec='${libname}${release}${major}$shared_ext'
8343  shlibpath_overrides_runpath=yes
8344  shlibpath_var=DYLD_LIBRARY_PATH
8345  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8346  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8347  if test "$GCC" = yes; then
8348    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"`
8349  else
8350    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8351  fi
8352  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8353  ;;
8354
8355dgux*)
8356  version_type=linux
8357  need_lib_prefix=no
8358  need_version=no
8359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8360  soname_spec='${libname}${release}${shared_ext}$major'
8361  shlibpath_var=LD_LIBRARY_PATH
8362  ;;
8363
8364freebsd1*)
8365  dynamic_linker=no
8366  ;;
8367
8368kfreebsd*-gnu)
8369  version_type=linux
8370  need_lib_prefix=no
8371  need_version=no
8372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8373  soname_spec='${libname}${release}${shared_ext}$major'
8374  shlibpath_var=LD_LIBRARY_PATH
8375  shlibpath_overrides_runpath=no
8376  hardcode_into_libs=yes
8377  dynamic_linker='GNU ld.so'
8378  ;;
8379
8380freebsd* | dragonfly*)
8381  # DragonFly does not have aout.  When/if they implement a new
8382  # versioning mechanism, adjust this.
8383  if test -x /usr/bin/objformat; then
8384    objformat=`/usr/bin/objformat`
8385  else
8386    case $host_os in
8387    freebsd[123]*) objformat=aout ;;
8388    *) objformat=elf ;;
8389    esac
8390  fi
8391  version_type=freebsd-$objformat
8392  case $version_type in
8393    freebsd-elf*)
8394      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8395      need_version=no
8396      need_lib_prefix=no
8397      ;;
8398    freebsd-*)
8399      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8400      need_version=yes
8401      ;;
8402  esac
8403  shlibpath_var=LD_LIBRARY_PATH
8404  case $host_os in
8405  freebsd2*)
8406    shlibpath_overrides_runpath=yes
8407    ;;
8408  freebsd3.[01]* | freebsdelf3.[01]*)
8409    shlibpath_overrides_runpath=yes
8410    hardcode_into_libs=yes
8411    ;;
8412  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8413  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8414    shlibpath_overrides_runpath=no
8415    hardcode_into_libs=yes
8416    ;;
8417  freebsd*) # from 4.6 on
8418    shlibpath_overrides_runpath=yes
8419    hardcode_into_libs=yes
8420    ;;
8421  esac
8422  ;;
8423
8424gnu*)
8425  version_type=linux
8426  need_lib_prefix=no
8427  need_version=no
8428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8429  soname_spec='${libname}${release}${shared_ext}$major'
8430  shlibpath_var=LD_LIBRARY_PATH
8431  hardcode_into_libs=yes
8432  ;;
8433
8434hpux9* | hpux10* | hpux11*)
8435  # Give a soname corresponding to the major version so that dld.sl refuses to
8436  # link against other versions.
8437  version_type=sunos
8438  need_lib_prefix=no
8439  need_version=no
8440  case $host_cpu in
8441  ia64*)
8442    shrext_cmds='.so'
8443    hardcode_into_libs=yes
8444    dynamic_linker="$host_os dld.so"
8445    shlibpath_var=LD_LIBRARY_PATH
8446    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8448    soname_spec='${libname}${release}${shared_ext}$major'
8449    if test "X$HPUX_IA64_MODE" = X32; then
8450      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8451    else
8452      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8453    fi
8454    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8455    ;;
8456   hppa*64*)
8457     shrext_cmds='.sl'
8458     hardcode_into_libs=yes
8459     dynamic_linker="$host_os dld.sl"
8460     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8461     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8465     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8466     ;;
8467   *)
8468    shrext_cmds='.sl'
8469    dynamic_linker="$host_os dld.sl"
8470    shlibpath_var=SHLIB_PATH
8471    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8473    soname_spec='${libname}${release}${shared_ext}$major'
8474    ;;
8475  esac
8476  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8477  postinstall_cmds='chmod 555 $lib'
8478  ;;
8479
8480interix3*)
8481  version_type=linux
8482  need_lib_prefix=no
8483  need_version=no
8484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8485  soname_spec='${libname}${release}${shared_ext}$major'
8486  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8487  shlibpath_var=LD_LIBRARY_PATH
8488  shlibpath_overrides_runpath=no
8489  hardcode_into_libs=yes
8490  ;;
8491
8492irix5* | irix6* | nonstopux*)
8493  case $host_os in
8494    nonstopux*) version_type=nonstopux ;;
8495    *)
8496        if test "$lt_cv_prog_gnu_ld" = yes; then
8497                version_type=linux
8498        else
8499                version_type=irix
8500        fi ;;
8501  esac
8502  need_lib_prefix=no
8503  need_version=no
8504  soname_spec='${libname}${release}${shared_ext}$major'
8505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8506  case $host_os in
8507  irix5* | nonstopux*)
8508    libsuff= shlibsuff=
8509    ;;
8510  *)
8511    case $LD in # libtool.m4 will add one of these switches to LD
8512    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8513      libsuff= shlibsuff= libmagic=32-bit;;
8514    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8515      libsuff=32 shlibsuff=N32 libmagic=N32;;
8516    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8517      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8518    *) libsuff= shlibsuff= libmagic=never-match;;
8519    esac
8520    ;;
8521  esac
8522  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8523  shlibpath_overrides_runpath=no
8524  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8525  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8526  hardcode_into_libs=yes
8527  ;;
8528
8529# No shared lib support for Linux oldld, aout, or coff.
8530linux*oldld* | linux*aout* | linux*coff*)
8531  dynamic_linker=no
8532  ;;
8533
8534# This must be Linux ELF.
8535linux*)
8536  version_type=linux
8537  need_lib_prefix=no
8538  need_version=no
8539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8540  soname_spec='${libname}${release}${shared_ext}$major'
8541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8542  shlibpath_var=LD_LIBRARY_PATH
8543  shlibpath_overrides_runpath=no
8544  # This implies no fast_install, which is unacceptable.
8545  # Some rework will be needed to allow for fast_install
8546  # before this can be enabled.
8547  hardcode_into_libs=yes
8548
8549  # Append ld.so.conf contents to the search path
8550  if test -f /etc/ld.so.conf; then
8551    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' ' '`
8552    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8553  fi
8554
8555  # We used to test for /lib/ld.so.1 and disable shared libraries on
8556  # powerpc, because MkLinux only supported shared libraries with the
8557  # GNU dynamic linker.  Since this was broken with cross compilers,
8558  # most powerpc-linux boxes support dynamic linking these days and
8559  # people can always --disable-shared, the test was removed, and we
8560  # assume the GNU/Linux dynamic linker is in use.
8561  dynamic_linker='GNU/Linux ld.so'
8562  ;;
8563
8564knetbsd*-gnu)
8565  version_type=linux
8566  need_lib_prefix=no
8567  need_version=no
8568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8569  soname_spec='${libname}${release}${shared_ext}$major'
8570  shlibpath_var=LD_LIBRARY_PATH
8571  shlibpath_overrides_runpath=no
8572  hardcode_into_libs=yes
8573  dynamic_linker='GNU ld.so'
8574  ;;
8575
8576netbsd*)
8577  version_type=sunos
8578  need_lib_prefix=no
8579  need_version=no
8580  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8581    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8582    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8583    dynamic_linker='NetBSD (a.out) ld.so'
8584  else
8585    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8586    soname_spec='${libname}${release}${shared_ext}$major'
8587    dynamic_linker='NetBSD ld.elf_so'
8588  fi
8589  shlibpath_var=LD_LIBRARY_PATH
8590  shlibpath_overrides_runpath=yes
8591  hardcode_into_libs=yes
8592  ;;
8593
8594newsos6)
8595  version_type=linux
8596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8597  shlibpath_var=LD_LIBRARY_PATH
8598  shlibpath_overrides_runpath=yes
8599  ;;
8600
8601nto-qnx*)
8602  version_type=linux
8603  need_lib_prefix=no
8604  need_version=no
8605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8606  soname_spec='${libname}${release}${shared_ext}$major'
8607  shlibpath_var=LD_LIBRARY_PATH
8608  shlibpath_overrides_runpath=yes
8609  ;;
8610
8611openbsd*)
8612  version_type=sunos
8613  sys_lib_dlsearch_path_spec="/usr/lib"
8614  need_lib_prefix=no
8615  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8616  case $host_os in
8617    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8618    *)                         need_version=no  ;;
8619  esac
8620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8621  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8622  shlibpath_var=LD_LIBRARY_PATH
8623  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8624    case $host_os in
8625      openbsd2.[89] | openbsd2.[89].*)
8626        shlibpath_overrides_runpath=no
8627        ;;
8628      *)
8629        shlibpath_overrides_runpath=yes
8630        ;;
8631      esac
8632  else
8633    shlibpath_overrides_runpath=yes
8634  fi
8635  ;;
8636
8637os2*)
8638  libname_spec='$name'
8639  shrext_cmds=".dll"
8640  need_lib_prefix=no
8641  library_names_spec='$libname${shared_ext} $libname.a'
8642  dynamic_linker='OS/2 ld.exe'
8643  shlibpath_var=LIBPATH
8644  ;;
8645
8646osf3* | osf4* | osf5*)
8647  version_type=osf
8648  need_lib_prefix=no
8649  need_version=no
8650  soname_spec='${libname}${release}${shared_ext}$major'
8651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8652  shlibpath_var=LD_LIBRARY_PATH
8653  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8654  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8655  ;;
8656
8657solaris*)
8658  version_type=linux
8659  need_lib_prefix=no
8660  need_version=no
8661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8662  soname_spec='${libname}${release}${shared_ext}$major'
8663  shlibpath_var=LD_LIBRARY_PATH
8664  shlibpath_overrides_runpath=yes
8665  hardcode_into_libs=yes
8666  # ldd complains unless libraries are executable
8667  postinstall_cmds='chmod +x $lib'
8668  ;;
8669
8670sunos4*)
8671  version_type=sunos
8672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8673  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8674  shlibpath_var=LD_LIBRARY_PATH
8675  shlibpath_overrides_runpath=yes
8676  if test "$with_gnu_ld" = yes; then
8677    need_lib_prefix=no
8678  fi
8679  need_version=yes
8680  ;;
8681
8682sysv4 | sysv4.3*)
8683  version_type=linux
8684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685  soname_spec='${libname}${release}${shared_ext}$major'
8686  shlibpath_var=LD_LIBRARY_PATH
8687  case $host_vendor in
8688    sni)
8689      shlibpath_overrides_runpath=no
8690      need_lib_prefix=no
8691      export_dynamic_flag_spec='${wl}-Blargedynsym'
8692      runpath_var=LD_RUN_PATH
8693      ;;
8694    siemens)
8695      need_lib_prefix=no
8696      ;;
8697    motorola)
8698      need_lib_prefix=no
8699      need_version=no
8700      shlibpath_overrides_runpath=no
8701      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8702      ;;
8703  esac
8704  ;;
8705
8706sysv4*MP*)
8707  if test -d /usr/nec ;then
8708    version_type=linux
8709    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8710    soname_spec='$libname${shared_ext}.$major'
8711    shlibpath_var=LD_LIBRARY_PATH
8712  fi
8713  ;;
8714
8715sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8716  version_type=freebsd-elf
8717  need_lib_prefix=no
8718  need_version=no
8719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8720  soname_spec='${libname}${release}${shared_ext}$major'
8721  shlibpath_var=LD_LIBRARY_PATH
8722  hardcode_into_libs=yes
8723  if test "$with_gnu_ld" = yes; then
8724    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8725    shlibpath_overrides_runpath=no
8726  else
8727    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8728    shlibpath_overrides_runpath=yes
8729    case $host_os in
8730      sco3.2v5*)
8731        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8732        ;;
8733    esac
8734  fi
8735  sys_lib_dlsearch_path_spec='/usr/lib'
8736  ;;
8737
8738uts4*)
8739  version_type=linux
8740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8741  soname_spec='${libname}${release}${shared_ext}$major'
8742  shlibpath_var=LD_LIBRARY_PATH
8743  ;;
8744
8745*)
8746  dynamic_linker=no
8747  ;;
8748esac
8749echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8750echo "${ECHO_T}$dynamic_linker" >&6
8751test "$dynamic_linker" = no && can_build_shared=no
8752
8753variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8754if test "$GCC" = yes; then
8755  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8756fi
8757
8758echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8759echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8760hardcode_action=
8761if test -n "$hardcode_libdir_flag_spec" || \
8762   test -n "$runpath_var" || \
8763   test "X$hardcode_automatic" = "Xyes" ; then
8764
8765  # We can hardcode non-existant directories.
8766  if test "$hardcode_direct" != no &&
8767     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8768     # have to relink, otherwise we might link with an installed library
8769     # when we should be linking with a yet-to-be-installed one
8770     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8771     test "$hardcode_minus_L" != no; then
8772    # Linking always hardcodes the temporary library directory.
8773    hardcode_action=relink
8774  else
8775    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8776    hardcode_action=immediate
8777  fi
8778else
8779  # We cannot hardcode anything, or else we can only hardcode existing
8780  # directories.
8781  hardcode_action=unsupported
8782fi
8783echo "$as_me:$LINENO: result: $hardcode_action" >&5
8784echo "${ECHO_T}$hardcode_action" >&6
8785
8786if test "$hardcode_action" = relink; then
8787  # Fast installation is not supported
8788  enable_fast_install=no
8789elif test "$shlibpath_overrides_runpath" = yes ||
8790     test "$enable_shared" = no; then
8791  # Fast installation is not necessary
8792  enable_fast_install=needless
8793fi
8794
8795striplib=
8796old_striplib=
8797echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8798echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8799if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8800  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8801  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8802  echo "$as_me:$LINENO: result: yes" >&5
8803echo "${ECHO_T}yes" >&6
8804else
8805# FIXME - insert some real tests, host_os isn't really good enough
8806  case $host_os in
8807   darwin*)
8808       if test -n "$STRIP" ; then
8809         striplib="$STRIP -x"
8810         echo "$as_me:$LINENO: result: yes" >&5
8811echo "${ECHO_T}yes" >&6
8812       else
8813  echo "$as_me:$LINENO: result: no" >&5
8814echo "${ECHO_T}no" >&6
8815fi
8816       ;;
8817   *)
8818  echo "$as_me:$LINENO: result: no" >&5
8819echo "${ECHO_T}no" >&6
8820    ;;
8821  esac
8822fi
8823
8824if test "x$enable_dlopen" != xyes; then
8825  enable_dlopen=unknown
8826  enable_dlopen_self=unknown
8827  enable_dlopen_self_static=unknown
8828else
8829  lt_cv_dlopen=no
8830  lt_cv_dlopen_libs=
8831
8832  case $host_os in
8833  beos*)
8834    lt_cv_dlopen="load_add_on"
8835    lt_cv_dlopen_libs=
8836    lt_cv_dlopen_self=yes
8837    ;;
8838
8839  mingw* | pw32*)
8840    lt_cv_dlopen="LoadLibrary"
8841    lt_cv_dlopen_libs=
8842   ;;
8843
8844  cygwin*)
8845    lt_cv_dlopen="dlopen"
8846    lt_cv_dlopen_libs=
8847   ;;
8848
8849  darwin*)
8850  # if libdl is installed we need to link against it
8851    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8852echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8853if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8854  echo $ECHO_N "(cached) $ECHO_C" >&6
8855else
8856  ac_check_lib_save_LIBS=$LIBS
8857LIBS="-ldl  $LIBS"
8858cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h.  */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h.  */
8864
8865/* Override any gcc2 internal prototype to avoid an error.  */
8866#ifdef __cplusplus
8867extern "C"
8868#endif
8869/* We use char because int might match the return type of a gcc2
8870   builtin and then its argument prototype would still apply.  */
8871char dlopen ();
8872int
8873main ()
8874{
8875dlopen ();
8876  ;
8877  return 0;
8878}
8879_ACEOF
8880rm -f conftest.$ac_objext conftest$ac_exeext
8881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882  (eval $ac_link) 2>conftest.er1
8883  ac_status=$?
8884  grep -v '^ *+' conftest.er1 >conftest.err
8885  rm -f conftest.er1
8886  cat conftest.err >&5
8887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888  (exit $ac_status); } &&
8889         { ac_try='test -z "$ac_c_werror_flag"
8890                         || test ! -s conftest.err'
8891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892  (eval $ac_try) 2>&5
8893  ac_status=$?
8894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895  (exit $ac_status); }; } &&
8896         { ac_try='test -s conftest$ac_exeext'
8897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898  (eval $ac_try) 2>&5
8899  ac_status=$?
8900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901  (exit $ac_status); }; }; then
8902  ac_cv_lib_dl_dlopen=yes
8903else
8904  echo "$as_me: failed program was:" >&5
8905sed 's/^/| /' conftest.$ac_ext >&5
8906
8907ac_cv_lib_dl_dlopen=no
8908fi
8909rm -f conftest.err conftest.$ac_objext \
8910      conftest$ac_exeext conftest.$ac_ext
8911LIBS=$ac_check_lib_save_LIBS
8912fi
8913echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8914echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8915if test $ac_cv_lib_dl_dlopen = yes; then
8916  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8917else
8918
8919    lt_cv_dlopen="dyld"
8920    lt_cv_dlopen_libs=
8921    lt_cv_dlopen_self=yes
8922
8923fi
8924
8925   ;;
8926
8927  *)
8928    echo "$as_me:$LINENO: checking for shl_load" >&5
8929echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8930if test "${ac_cv_func_shl_load+set}" = set; then
8931  echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933  cat >conftest.$ac_ext <<_ACEOF
8934/* confdefs.h.  */
8935_ACEOF
8936cat confdefs.h >>conftest.$ac_ext
8937cat >>conftest.$ac_ext <<_ACEOF
8938/* end confdefs.h.  */
8939/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8940   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8941#define shl_load innocuous_shl_load
8942
8943/* System header to define __stub macros and hopefully few prototypes,
8944    which can conflict with char shl_load (); below.
8945    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8946    <limits.h> exists even on freestanding compilers.  */
8947
8948#ifdef __STDC__
8949# include <limits.h>
8950#else
8951# include <assert.h>
8952#endif
8953
8954#undef shl_load
8955
8956/* Override any gcc2 internal prototype to avoid an error.  */
8957#ifdef __cplusplus
8958extern "C"
8959{
8960#endif
8961/* We use char because int might match the return type of a gcc2
8962   builtin and then its argument prototype would still apply.  */
8963char shl_load ();
8964/* The GNU C library defines this for functions which it implements
8965    to always fail with ENOSYS.  Some functions are actually named
8966    something starting with __ and the normal name is an alias.  */
8967#if defined (__stub_shl_load) || defined (__stub___shl_load)
8968choke me
8969#else
8970char (*f) () = shl_load;
8971#endif
8972#ifdef __cplusplus
8973}
8974#endif
8975
8976int
8977main ()
8978{
8979return f != shl_load;
8980  ;
8981  return 0;
8982}
8983_ACEOF
8984rm -f conftest.$ac_objext conftest$ac_exeext
8985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986  (eval $ac_link) 2>conftest.er1
8987  ac_status=$?
8988  grep -v '^ *+' conftest.er1 >conftest.err
8989  rm -f conftest.er1
8990  cat conftest.err >&5
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); } &&
8993         { ac_try='test -z "$ac_c_werror_flag"
8994                         || test ! -s conftest.err'
8995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996  (eval $ac_try) 2>&5
8997  ac_status=$?
8998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999  (exit $ac_status); }; } &&
9000         { ac_try='test -s conftest$ac_exeext'
9001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002  (eval $ac_try) 2>&5
9003  ac_status=$?
9004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005  (exit $ac_status); }; }; then
9006  ac_cv_func_shl_load=yes
9007else
9008  echo "$as_me: failed program was:" >&5
9009sed 's/^/| /' conftest.$ac_ext >&5
9010
9011ac_cv_func_shl_load=no
9012fi
9013rm -f conftest.err conftest.$ac_objext \
9014      conftest$ac_exeext conftest.$ac_ext
9015fi
9016echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9017echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9018if test $ac_cv_func_shl_load = yes; then
9019  lt_cv_dlopen="shl_load"
9020else
9021  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9022echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9023if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9024  echo $ECHO_N "(cached) $ECHO_C" >&6
9025else
9026  ac_check_lib_save_LIBS=$LIBS
9027LIBS="-ldld  $LIBS"
9028cat >conftest.$ac_ext <<_ACEOF
9029/* confdefs.h.  */
9030_ACEOF
9031cat confdefs.h >>conftest.$ac_ext
9032cat >>conftest.$ac_ext <<_ACEOF
9033/* end confdefs.h.  */
9034
9035/* Override any gcc2 internal prototype to avoid an error.  */
9036#ifdef __cplusplus
9037extern "C"
9038#endif
9039/* We use char because int might match the return type of a gcc2
9040   builtin and then its argument prototype would still apply.  */
9041char shl_load ();
9042int
9043main ()
9044{
9045shl_load ();
9046  ;
9047  return 0;
9048}
9049_ACEOF
9050rm -f conftest.$ac_objext conftest$ac_exeext
9051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052  (eval $ac_link) 2>conftest.er1
9053  ac_status=$?
9054  grep -v '^ *+' conftest.er1 >conftest.err
9055  rm -f conftest.er1
9056  cat conftest.err >&5
9057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058  (exit $ac_status); } &&
9059         { ac_try='test -z "$ac_c_werror_flag"
9060                         || test ! -s conftest.err'
9061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062  (eval $ac_try) 2>&5
9063  ac_status=$?
9064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065  (exit $ac_status); }; } &&
9066         { ac_try='test -s conftest$ac_exeext'
9067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068  (eval $ac_try) 2>&5
9069  ac_status=$?
9070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071  (exit $ac_status); }; }; then
9072  ac_cv_lib_dld_shl_load=yes
9073else
9074  echo "$as_me: failed program was:" >&5
9075sed 's/^/| /' conftest.$ac_ext >&5
9076
9077ac_cv_lib_dld_shl_load=no
9078fi
9079rm -f conftest.err conftest.$ac_objext \
9080      conftest$ac_exeext conftest.$ac_ext
9081LIBS=$ac_check_lib_save_LIBS
9082fi
9083echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9084echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9085if test $ac_cv_lib_dld_shl_load = yes; then
9086  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9087else
9088  echo "$as_me:$LINENO: checking for dlopen" >&5
9089echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9090if test "${ac_cv_func_dlopen+set}" = set; then
9091  echo $ECHO_N "(cached) $ECHO_C" >&6
9092else
9093  cat >conftest.$ac_ext <<_ACEOF
9094/* confdefs.h.  */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h.  */
9099/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9100   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9101#define dlopen innocuous_dlopen
9102
9103/* System header to define __stub macros and hopefully few prototypes,
9104    which can conflict with char dlopen (); below.
9105    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9106    <limits.h> exists even on freestanding compilers.  */
9107
9108#ifdef __STDC__
9109# include <limits.h>
9110#else
9111# include <assert.h>
9112#endif
9113
9114#undef dlopen
9115
9116/* Override any gcc2 internal prototype to avoid an error.  */
9117#ifdef __cplusplus
9118extern "C"
9119{
9120#endif
9121/* We use char because int might match the return type of a gcc2
9122   builtin and then its argument prototype would still apply.  */
9123char dlopen ();
9124/* The GNU C library defines this for functions which it implements
9125    to always fail with ENOSYS.  Some functions are actually named
9126    something starting with __ and the normal name is an alias.  */
9127#if defined (__stub_dlopen) || defined (__stub___dlopen)
9128choke me
9129#else
9130char (*f) () = dlopen;
9131#endif
9132#ifdef __cplusplus
9133}
9134#endif
9135
9136int
9137main ()
9138{
9139return f != dlopen;
9140  ;
9141  return 0;
9142}
9143_ACEOF
9144rm -f conftest.$ac_objext conftest$ac_exeext
9145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146  (eval $ac_link) 2>conftest.er1
9147  ac_status=$?
9148  grep -v '^ *+' conftest.er1 >conftest.err
9149  rm -f conftest.er1
9150  cat conftest.err >&5
9151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152  (exit $ac_status); } &&
9153         { ac_try='test -z "$ac_c_werror_flag"
9154                         || test ! -s conftest.err'
9155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156  (eval $ac_try) 2>&5
9157  ac_status=$?
9158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159  (exit $ac_status); }; } &&
9160         { ac_try='test -s conftest$ac_exeext'
9161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162  (eval $ac_try) 2>&5
9163  ac_status=$?
9164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165  (exit $ac_status); }; }; then
9166  ac_cv_func_dlopen=yes
9167else
9168  echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
9171ac_cv_func_dlopen=no
9172fi
9173rm -f conftest.err conftest.$ac_objext \
9174      conftest$ac_exeext conftest.$ac_ext
9175fi
9176echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9177echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9178if test $ac_cv_func_dlopen = yes; then
9179  lt_cv_dlopen="dlopen"
9180else
9181  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9182echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9183if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9184  echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186  ac_check_lib_save_LIBS=$LIBS
9187LIBS="-ldl  $LIBS"
9188cat >conftest.$ac_ext <<_ACEOF
9189/* confdefs.h.  */
9190_ACEOF
9191cat confdefs.h >>conftest.$ac_ext
9192cat >>conftest.$ac_ext <<_ACEOF
9193/* end confdefs.h.  */
9194
9195/* Override any gcc2 internal prototype to avoid an error.  */
9196#ifdef __cplusplus
9197extern "C"
9198#endif
9199/* We use char because int might match the return type of a gcc2
9200   builtin and then its argument prototype would still apply.  */
9201char dlopen ();
9202int
9203main ()
9204{
9205dlopen ();
9206  ;
9207  return 0;
9208}
9209_ACEOF
9210rm -f conftest.$ac_objext conftest$ac_exeext
9211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9212  (eval $ac_link) 2>conftest.er1
9213  ac_status=$?
9214  grep -v '^ *+' conftest.er1 >conftest.err
9215  rm -f conftest.er1
9216  cat conftest.err >&5
9217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218  (exit $ac_status); } &&
9219         { ac_try='test -z "$ac_c_werror_flag"
9220                         || test ! -s conftest.err'
9221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222  (eval $ac_try) 2>&5
9223  ac_status=$?
9224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225  (exit $ac_status); }; } &&
9226         { ac_try='test -s conftest$ac_exeext'
9227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228  (eval $ac_try) 2>&5
9229  ac_status=$?
9230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231  (exit $ac_status); }; }; then
9232  ac_cv_lib_dl_dlopen=yes
9233else
9234  echo "$as_me: failed program was:" >&5
9235sed 's/^/| /' conftest.$ac_ext >&5
9236
9237ac_cv_lib_dl_dlopen=no
9238fi
9239rm -f conftest.err conftest.$ac_objext \
9240      conftest$ac_exeext conftest.$ac_ext
9241LIBS=$ac_check_lib_save_LIBS
9242fi
9243echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9244echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9245if test $ac_cv_lib_dl_dlopen = yes; then
9246  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9247else
9248  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9249echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9250if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9251  echo $ECHO_N "(cached) $ECHO_C" >&6
9252else
9253  ac_check_lib_save_LIBS=$LIBS
9254LIBS="-lsvld  $LIBS"
9255cat >conftest.$ac_ext <<_ACEOF
9256/* confdefs.h.  */
9257_ACEOF
9258cat confdefs.h >>conftest.$ac_ext
9259cat >>conftest.$ac_ext <<_ACEOF
9260/* end confdefs.h.  */
9261
9262/* Override any gcc2 internal prototype to avoid an error.  */
9263#ifdef __cplusplus
9264extern "C"
9265#endif
9266/* We use char because int might match the return type of a gcc2
9267   builtin and then its argument prototype would still apply.  */
9268char dlopen ();
9269int
9270main ()
9271{
9272dlopen ();
9273  ;
9274  return 0;
9275}
9276_ACEOF
9277rm -f conftest.$ac_objext conftest$ac_exeext
9278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279  (eval $ac_link) 2>conftest.er1
9280  ac_status=$?
9281  grep -v '^ *+' conftest.er1 >conftest.err
9282  rm -f conftest.er1
9283  cat conftest.err >&5
9284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285  (exit $ac_status); } &&
9286         { ac_try='test -z "$ac_c_werror_flag"
9287                         || test ! -s conftest.err'
9288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289  (eval $ac_try) 2>&5
9290  ac_status=$?
9291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292  (exit $ac_status); }; } &&
9293         { ac_try='test -s conftest$ac_exeext'
9294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295  (eval $ac_try) 2>&5
9296  ac_status=$?
9297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298  (exit $ac_status); }; }; then
9299  ac_cv_lib_svld_dlopen=yes
9300else
9301  echo "$as_me: failed program was:" >&5
9302sed 's/^/| /' conftest.$ac_ext >&5
9303
9304ac_cv_lib_svld_dlopen=no
9305fi
9306rm -f conftest.err conftest.$ac_objext \
9307      conftest$ac_exeext conftest.$ac_ext
9308LIBS=$ac_check_lib_save_LIBS
9309fi
9310echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9311echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9312if test $ac_cv_lib_svld_dlopen = yes; then
9313  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9314else
9315  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9316echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9317if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9318  echo $ECHO_N "(cached) $ECHO_C" >&6
9319else
9320  ac_check_lib_save_LIBS=$LIBS
9321LIBS="-ldld  $LIBS"
9322cat >conftest.$ac_ext <<_ACEOF
9323/* confdefs.h.  */
9324_ACEOF
9325cat confdefs.h >>conftest.$ac_ext
9326cat >>conftest.$ac_ext <<_ACEOF
9327/* end confdefs.h.  */
9328
9329/* Override any gcc2 internal prototype to avoid an error.  */
9330#ifdef __cplusplus
9331extern "C"
9332#endif
9333/* We use char because int might match the return type of a gcc2
9334   builtin and then its argument prototype would still apply.  */
9335char dld_link ();
9336int
9337main ()
9338{
9339dld_link ();
9340  ;
9341  return 0;
9342}
9343_ACEOF
9344rm -f conftest.$ac_objext conftest$ac_exeext
9345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346  (eval $ac_link) 2>conftest.er1
9347  ac_status=$?
9348  grep -v '^ *+' conftest.er1 >conftest.err
9349  rm -f conftest.er1
9350  cat conftest.err >&5
9351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352  (exit $ac_status); } &&
9353         { ac_try='test -z "$ac_c_werror_flag"
9354                         || test ! -s conftest.err'
9355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356  (eval $ac_try) 2>&5
9357  ac_status=$?
9358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359  (exit $ac_status); }; } &&
9360         { ac_try='test -s conftest$ac_exeext'
9361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362  (eval $ac_try) 2>&5
9363  ac_status=$?
9364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365  (exit $ac_status); }; }; then
9366  ac_cv_lib_dld_dld_link=yes
9367else
9368  echo "$as_me: failed program was:" >&5
9369sed 's/^/| /' conftest.$ac_ext >&5
9370
9371ac_cv_lib_dld_dld_link=no
9372fi
9373rm -f conftest.err conftest.$ac_objext \
9374      conftest$ac_exeext conftest.$ac_ext
9375LIBS=$ac_check_lib_save_LIBS
9376fi
9377echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9378echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9379if test $ac_cv_lib_dld_dld_link = yes; then
9380  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9381fi
9382
9383
9384fi
9385
9386
9387fi
9388
9389
9390fi
9391
9392
9393fi
9394
9395
9396fi
9397
9398    ;;
9399  esac
9400
9401  if test "x$lt_cv_dlopen" != xno; then
9402    enable_dlopen=yes
9403  else
9404    enable_dlopen=no
9405  fi
9406
9407  case $lt_cv_dlopen in
9408  dlopen)
9409    save_CPPFLAGS="$CPPFLAGS"
9410    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9411
9412    save_LDFLAGS="$LDFLAGS"
9413    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9414
9415    save_LIBS="$LIBS"
9416    LIBS="$lt_cv_dlopen_libs $LIBS"
9417
9418    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9419echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9420if test "${lt_cv_dlopen_self+set}" = set; then
9421  echo $ECHO_N "(cached) $ECHO_C" >&6
9422else
9423          if test "$cross_compiling" = yes; then :
9424  lt_cv_dlopen_self=cross
9425else
9426  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9427  lt_status=$lt_dlunknown
9428  cat > conftest.$ac_ext <<EOF
9429#line 9429 "configure"
9430#include "confdefs.h"
9431
9432#if HAVE_DLFCN_H
9433#include <dlfcn.h>
9434#endif
9435
9436#include <stdio.h>
9437
9438#ifdef RTLD_GLOBAL
9439#  define LT_DLGLOBAL           RTLD_GLOBAL
9440#else
9441#  ifdef DL_GLOBAL
9442#    define LT_DLGLOBAL         DL_GLOBAL
9443#  else
9444#    define LT_DLGLOBAL         0
9445#  endif
9446#endif
9447
9448/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9449   find out it does not work in some platform. */
9450#ifndef LT_DLLAZY_OR_NOW
9451#  ifdef RTLD_LAZY
9452#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9453#  else
9454#    ifdef DL_LAZY
9455#      define LT_DLLAZY_OR_NOW          DL_LAZY
9456#    else
9457#      ifdef RTLD_NOW
9458#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9459#      else
9460#        ifdef DL_NOW
9461#          define LT_DLLAZY_OR_NOW      DL_NOW
9462#        else
9463#          define LT_DLLAZY_OR_NOW      0
9464#        endif
9465#      endif
9466#    endif
9467#  endif
9468#endif
9469
9470#ifdef __cplusplus
9471extern "C" void exit (int);
9472#endif
9473
9474void fnord() { int i=42;}
9475int main ()
9476{
9477  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9478  int status = $lt_dlunknown;
9479
9480  if (self)
9481    {
9482      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9483      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9484      /* dlclose (self); */
9485    }
9486  else
9487    puts (dlerror ());
9488
9489    exit (status);
9490}
9491EOF
9492  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493  (eval $ac_link) 2>&5
9494  ac_status=$?
9495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9497    (./conftest; exit; ) >&5 2>/dev/null
9498    lt_status=$?
9499    case x$lt_status in
9500      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9501      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9502      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9503    esac
9504  else :
9505    # compilation failed
9506    lt_cv_dlopen_self=no
9507  fi
9508fi
9509rm -fr conftest*
9510
9511
9512fi
9513echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9514echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9515
9516    if test "x$lt_cv_dlopen_self" = xyes; then
9517      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9518      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9519echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9520if test "${lt_cv_dlopen_self_static+set}" = set; then
9521  echo $ECHO_N "(cached) $ECHO_C" >&6
9522else
9523          if test "$cross_compiling" = yes; then :
9524  lt_cv_dlopen_self_static=cross
9525else
9526  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9527  lt_status=$lt_dlunknown
9528  cat > conftest.$ac_ext <<EOF
9529#line 9529 "configure"
9530#include "confdefs.h"
9531
9532#if HAVE_DLFCN_H
9533#include <dlfcn.h>
9534#endif
9535
9536#include <stdio.h>
9537
9538#ifdef RTLD_GLOBAL
9539#  define LT_DLGLOBAL           RTLD_GLOBAL
9540#else
9541#  ifdef DL_GLOBAL
9542#    define LT_DLGLOBAL         DL_GLOBAL
9543#  else
9544#    define LT_DLGLOBAL         0
9545#  endif
9546#endif
9547
9548/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9549   find out it does not work in some platform. */
9550#ifndef LT_DLLAZY_OR_NOW
9551#  ifdef RTLD_LAZY
9552#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9553#  else
9554#    ifdef DL_LAZY
9555#      define LT_DLLAZY_OR_NOW          DL_LAZY
9556#    else
9557#      ifdef RTLD_NOW
9558#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9559#      else
9560#        ifdef DL_NOW
9561#          define LT_DLLAZY_OR_NOW      DL_NOW
9562#        else
9563#          define LT_DLLAZY_OR_NOW      0
9564#        endif
9565#      endif
9566#    endif
9567#  endif
9568#endif
9569
9570#ifdef __cplusplus
9571extern "C" void exit (int);
9572#endif
9573
9574void fnord() { int i=42;}
9575int main ()
9576{
9577  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9578  int status = $lt_dlunknown;
9579
9580  if (self)
9581    {
9582      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9583      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9584      /* dlclose (self); */
9585    }
9586  else
9587    puts (dlerror ());
9588
9589    exit (status);
9590}
9591EOF
9592  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593  (eval $ac_link) 2>&5
9594  ac_status=$?
9595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9597    (./conftest; exit; ) >&5 2>/dev/null
9598    lt_status=$?
9599    case x$lt_status in
9600      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9601      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9602      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9603    esac
9604  else :
9605    # compilation failed
9606    lt_cv_dlopen_self_static=no
9607  fi
9608fi
9609rm -fr conftest*
9610
9611
9612fi
9613echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9614echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9615    fi
9616
9617    CPPFLAGS="$save_CPPFLAGS"
9618    LDFLAGS="$save_LDFLAGS"
9619    LIBS="$save_LIBS"
9620    ;;
9621  esac
9622
9623  case $lt_cv_dlopen_self in
9624  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9625  *) enable_dlopen_self=unknown ;;
9626  esac
9627
9628  case $lt_cv_dlopen_self_static in
9629  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9630  *) enable_dlopen_self_static=unknown ;;
9631  esac
9632fi
9633
9634
9635# Report which library types will actually be built
9636echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9637echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9638echo "$as_me:$LINENO: result: $can_build_shared" >&5
9639echo "${ECHO_T}$can_build_shared" >&6
9640
9641echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9642echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9643test "$can_build_shared" = "no" && enable_shared=no
9644
9645# On AIX, shared libraries and static libraries use the same namespace, and
9646# are all built from PIC.
9647case $host_os in
9648aix3*)
9649  test "$enable_shared" = yes && enable_static=no
9650  if test -n "$RANLIB"; then
9651    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9652    postinstall_cmds='$RANLIB $lib'
9653  fi
9654  ;;
9655
9656aix4* | aix5*)
9657  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9658    test "$enable_shared" = yes && enable_static=no
9659  fi
9660    ;;
9661esac
9662echo "$as_me:$LINENO: result: $enable_shared" >&5
9663echo "${ECHO_T}$enable_shared" >&6
9664
9665echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9666echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9667# Make sure either enable_shared or enable_static is yes.
9668test "$enable_shared" = yes || enable_static=yes
9669echo "$as_me:$LINENO: result: $enable_static" >&5
9670echo "${ECHO_T}$enable_static" >&6
9671
9672# The else clause should only fire when bootstrapping the
9673# libtool distribution, otherwise you forgot to ship ltmain.sh
9674# with your package, and you will get complaints that there are
9675# no rules to generate ltmain.sh.
9676if test -f "$ltmain"; then
9677  # See if we are running on zsh, and set the options which allow our commands through
9678  # without removal of \ escapes.
9679  if test -n "${ZSH_VERSION+set}" ; then
9680    setopt NO_GLOB_SUBST
9681  fi
9682  # Now quote all the things that may contain metacharacters while being
9683  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9684  # variables and quote the copies for generation of the libtool script.
9685  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9686    SED SHELL STRIP \
9687    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9688    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9689    deplibs_check_method reload_flag reload_cmds need_locks \
9690    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9691    lt_cv_sys_global_symbol_to_c_name_address \
9692    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9693    old_postinstall_cmds old_postuninstall_cmds \
9694    compiler \
9695    CC \
9696    LD \
9697    lt_prog_compiler_wl \
9698    lt_prog_compiler_pic \
9699    lt_prog_compiler_static \
9700    lt_prog_compiler_no_builtin_flag \
9701    export_dynamic_flag_spec \
9702    thread_safe_flag_spec \
9703    whole_archive_flag_spec \
9704    enable_shared_with_static_runtimes \
9705    old_archive_cmds \
9706    old_archive_from_new_cmds \
9707    predep_objects \
9708    postdep_objects \
9709    predeps \
9710    postdeps \
9711    compiler_lib_search_path \
9712    archive_cmds \
9713    archive_expsym_cmds \
9714    postinstall_cmds \
9715    postuninstall_cmds \
9716    old_archive_from_expsyms_cmds \
9717    allow_undefined_flag \
9718    no_undefined_flag \
9719    export_symbols_cmds \
9720    hardcode_libdir_flag_spec \
9721    hardcode_libdir_flag_spec_ld \
9722    hardcode_libdir_separator \
9723    hardcode_automatic \
9724    module_cmds \
9725    module_expsym_cmds \
9726    lt_cv_prog_compiler_c_o \
9727    exclude_expsyms \
9728    include_expsyms; do
9729
9730    case $var in
9731    old_archive_cmds | \
9732    old_archive_from_new_cmds | \
9733    archive_cmds | \
9734    archive_expsym_cmds | \
9735    module_cmds | \
9736    module_expsym_cmds | \
9737    old_archive_from_expsyms_cmds | \
9738    export_symbols_cmds | \
9739    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9740    postinstall_cmds | postuninstall_cmds | \
9741    old_postinstall_cmds | old_postuninstall_cmds | \
9742    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9743      # Double-quote double-evaled strings.
9744      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9745      ;;
9746    *)
9747      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9748      ;;
9749    esac
9750  done
9751
9752  case $lt_echo in
9753  *'\$0 --fallback-echo"')
9754    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9755    ;;
9756  esac
9757
9758cfgfile="${ofile}T"
9759  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9760  $rm -f "$cfgfile"
9761  { echo "$as_me:$LINENO: creating $ofile" >&5
9762echo "$as_me: creating $ofile" >&6;}
9763
9764  cat <<__EOF__ >> "$cfgfile"
9765#! $SHELL
9766
9767# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9768# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9769# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9770#
9771# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9772# Free Software Foundation, Inc.
9773#
9774# This file is part of GNU Libtool:
9775# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9776#
9777# This program is free software; you can redistribute it and/or modify
9778# it under the terms of the GNU General Public License as published by
9779# the Free Software Foundation; either version 2 of the License, or
9780# (at your option) any later version.
9781#
9782# This program is distributed in the hope that it will be useful, but
9783# WITHOUT ANY WARRANTY; without even the implied warranty of
9784# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9785# General Public License for more details.
9786#
9787# You should have received a copy of the GNU General Public License
9788# along with this program; if not, write to the Free Software
9789# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9790#
9791# As a special exception to the GNU General Public License, if you
9792# distribute this file as part of a program that contains a
9793# configuration script generated by Autoconf, you may include it under
9794# the same distribution terms that you use for the rest of that program.
9795
9796# A sed program that does not truncate output.
9797SED=$lt_SED
9798
9799# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9800Xsed="$SED -e 1s/^X//"
9801
9802# The HP-UX ksh and POSIX shell print the target directory to stdout
9803# if CDPATH is set.
9804(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9805
9806# The names of the tagged configurations supported by this script.
9807available_tags=
9808
9809# ### BEGIN LIBTOOL CONFIG
9810
9811# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9812
9813# Shell to use when invoking shell scripts.
9814SHELL=$lt_SHELL
9815
9816# Whether or not to build shared libraries.
9817build_libtool_libs=$enable_shared
9818
9819# Whether or not to build static libraries.
9820build_old_libs=$enable_static
9821
9822# Whether or not to add -lc for building shared libraries.
9823build_libtool_need_lc=$archive_cmds_need_lc
9824
9825# Whether or not to disallow shared libs when runtime libs are static
9826allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9827
9828# Whether or not to optimize for fast installation.
9829fast_install=$enable_fast_install
9830
9831# The host system.
9832host_alias=$host_alias
9833host=$host
9834host_os=$host_os
9835
9836# The build system.
9837build_alias=$build_alias
9838build=$build
9839build_os=$build_os
9840
9841# An echo program that does not interpret backslashes.
9842echo=$lt_echo
9843
9844# The archiver.
9845AR=$lt_AR
9846AR_FLAGS=$lt_AR_FLAGS
9847
9848# A C compiler.
9849LTCC=$lt_LTCC
9850
9851# LTCC compiler flags.
9852LTCFLAGS=$lt_LTCFLAGS
9853
9854# A language-specific compiler.
9855CC=$lt_compiler
9856
9857# Is the compiler the GNU C compiler?
9858with_gcc=$GCC
9859
9860# An ERE matcher.
9861EGREP=$lt_EGREP
9862
9863# The linker used to build libraries.
9864LD=$lt_LD
9865
9866# Whether we need hard or soft links.
9867LN_S=$lt_LN_S
9868
9869# A BSD-compatible nm program.
9870NM=$lt_NM
9871
9872# A symbol stripping program
9873STRIP=$lt_STRIP
9874
9875# Used to examine libraries when file_magic_cmd begins "file"
9876MAGIC_CMD=$MAGIC_CMD
9877
9878# Used on cygwin: DLL creation program.
9879DLLTOOL="$DLLTOOL"
9880
9881# Used on cygwin: object dumper.
9882OBJDUMP="$OBJDUMP"
9883
9884# Used on cygwin: assembler.
9885AS="$AS"
9886
9887# The name of the directory that contains temporary libtool files.
9888objdir=$objdir
9889
9890# How to create reloadable object files.
9891reload_flag=$lt_reload_flag
9892reload_cmds=$lt_reload_cmds
9893
9894# How to pass a linker flag through the compiler.
9895wl=$lt_lt_prog_compiler_wl
9896
9897# Object file suffix (normally "o").
9898objext="$ac_objext"
9899
9900# Old archive suffix (normally "a").
9901libext="$libext"
9902
9903# Shared library suffix (normally ".so").
9904shrext_cmds='$shrext_cmds'
9905
9906# Executable file suffix (normally "").
9907exeext="$exeext"
9908
9909# Additional compiler flags for building library objects.
9910pic_flag=$lt_lt_prog_compiler_pic
9911pic_mode=$pic_mode
9912
9913# What is the maximum length of a command?
9914max_cmd_len=$lt_cv_sys_max_cmd_len
9915
9916# Does compiler simultaneously support -c and -o options?
9917compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9918
9919# Must we lock files when doing compilation?
9920need_locks=$lt_need_locks
9921
9922# Do we need the lib prefix for modules?
9923need_lib_prefix=$need_lib_prefix
9924
9925# Do we need a version for libraries?
9926need_version=$need_version
9927
9928# Whether dlopen is supported.
9929dlopen_support=$enable_dlopen
9930
9931# Whether dlopen of programs is supported.
9932dlopen_self=$enable_dlopen_self
9933
9934# Whether dlopen of statically linked programs is supported.
9935dlopen_self_static=$enable_dlopen_self_static
9936
9937# Compiler flag to prevent dynamic linking.
9938link_static_flag=$lt_lt_prog_compiler_static
9939
9940# Compiler flag to turn off builtin functions.
9941no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9942
9943# Compiler flag to allow reflexive dlopens.
9944export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9945
9946# Compiler flag to generate shared objects directly from archives.
9947whole_archive_flag_spec=$lt_whole_archive_flag_spec
9948
9949# Compiler flag to generate thread-safe objects.
9950thread_safe_flag_spec=$lt_thread_safe_flag_spec
9951
9952# Library versioning type.
9953version_type=$version_type
9954
9955# Format of library name prefix.
9956libname_spec=$lt_libname_spec
9957
9958# List of archive names.  First name is the real one, the rest are links.
9959# The last name is the one that the linker finds with -lNAME.
9960library_names_spec=$lt_library_names_spec
9961
9962# The coded name of the library, if different from the real name.
9963soname_spec=$lt_soname_spec
9964
9965# Commands used to build and install an old-style archive.
9966RANLIB=$lt_RANLIB
9967old_archive_cmds=$lt_old_archive_cmds
9968old_postinstall_cmds=$lt_old_postinstall_cmds
9969old_postuninstall_cmds=$lt_old_postuninstall_cmds
9970
9971# Create an old-style archive from a shared archive.
9972old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9973
9974# Create a temporary old-style archive to link instead of a shared archive.
9975old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9976
9977# Commands used to build and install a shared archive.
9978archive_cmds=$lt_archive_cmds
9979archive_expsym_cmds=$lt_archive_expsym_cmds
9980postinstall_cmds=$lt_postinstall_cmds
9981postuninstall_cmds=$lt_postuninstall_cmds
9982
9983# Commands used to build a loadable module (assumed same as above if empty)
9984module_cmds=$lt_module_cmds
9985module_expsym_cmds=$lt_module_expsym_cmds
9986
9987# Commands to strip libraries.
9988old_striplib=$lt_old_striplib
9989striplib=$lt_striplib
9990
9991# Dependencies to place before the objects being linked to create a
9992# shared library.
9993predep_objects=$lt_predep_objects
9994
9995# Dependencies to place after the objects being linked to create a
9996# shared library.
9997postdep_objects=$lt_postdep_objects
9998
9999# Dependencies to place before the objects being linked to create a
10000# shared library.
10001predeps=$lt_predeps
10002
10003# Dependencies to place after the objects being linked to create a
10004# shared library.
10005postdeps=$lt_postdeps
10006
10007# The library search path used internally by the compiler when linking
10008# a shared library.
10009compiler_lib_search_path=$lt_compiler_lib_search_path
10010
10011# Method to check whether dependent libraries are shared objects.
10012deplibs_check_method=$lt_deplibs_check_method
10013
10014# Command to use when deplibs_check_method == file_magic.
10015file_magic_cmd=$lt_file_magic_cmd
10016
10017# Flag that allows shared libraries with undefined symbols to be built.
10018allow_undefined_flag=$lt_allow_undefined_flag
10019
10020# Flag that forces no undefined symbols.
10021no_undefined_flag=$lt_no_undefined_flag
10022
10023# Commands used to finish a libtool library installation in a directory.
10024finish_cmds=$lt_finish_cmds
10025
10026# Same as above, but a single script fragment to be evaled but not shown.
10027finish_eval=$lt_finish_eval
10028
10029# Take the output of nm and produce a listing of raw symbols and C names.
10030global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10031
10032# Transform the output of nm in a proper C declaration
10033global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10034
10035# Transform the output of nm in a C name address pair
10036global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10037
10038# This is the shared library runtime path variable.
10039runpath_var=$runpath_var
10040
10041# This is the shared library path variable.
10042shlibpath_var=$shlibpath_var
10043
10044# Is shlibpath searched before the hard-coded library search path?
10045shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10046
10047# How to hardcode a shared library path into an executable.
10048hardcode_action=$hardcode_action
10049
10050# Whether we should hardcode library paths into libraries.
10051hardcode_into_libs=$hardcode_into_libs
10052
10053# Flag to hardcode \$libdir into a binary during linking.
10054# This must work even if \$libdir does not exist.
10055hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10056
10057# If ld is used when linking, flag to hardcode \$libdir into
10058# a binary during linking. This must work even if \$libdir does
10059# not exist.
10060hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10061
10062# Whether we need a single -rpath flag with a separated argument.
10063hardcode_libdir_separator=$lt_hardcode_libdir_separator
10064
10065# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10066# resulting binary.
10067hardcode_direct=$hardcode_direct
10068
10069# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10070# resulting binary.
10071hardcode_minus_L=$hardcode_minus_L
10072
10073# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10074# the resulting binary.
10075hardcode_shlibpath_var=$hardcode_shlibpath_var
10076
10077# Set to yes if building a shared library automatically hardcodes DIR into the library
10078# and all subsequent libraries and executables linked against it.
10079hardcode_automatic=$hardcode_automatic
10080
10081# Variables whose values should be saved in libtool wrapper scripts and
10082# restored at relink time.
10083variables_saved_for_relink="$variables_saved_for_relink"
10084
10085# Whether libtool must link a program against all its dependency libraries.
10086link_all_deplibs=$link_all_deplibs
10087
10088# Compile-time system search path for libraries
10089sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10090
10091# Run-time system search path for libraries
10092sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10093
10094# Fix the shell variable \$srcfile for the compiler.
10095fix_srcfile_path="$fix_srcfile_path"
10096
10097# Set to yes if exported symbols are required.
10098always_export_symbols=$always_export_symbols
10099
10100# The commands to list exported symbols.
10101export_symbols_cmds=$lt_export_symbols_cmds
10102
10103# The commands to extract the exported symbol list from a shared archive.
10104extract_expsyms_cmds=$lt_extract_expsyms_cmds
10105
10106# Symbols that should not be listed in the preloaded symbols.
10107exclude_expsyms=$lt_exclude_expsyms
10108
10109# Symbols that must always be exported.
10110include_expsyms=$lt_include_expsyms
10111
10112# ### END LIBTOOL CONFIG
10113
10114__EOF__
10115
10116
10117  case $host_os in
10118  aix3*)
10119    cat <<\EOF >> "$cfgfile"
10120
10121# AIX sometimes has problems with the GCC collect2 program.  For some
10122# reason, if we set the COLLECT_NAMES environment variable, the problems
10123# vanish in a puff of smoke.
10124if test "X${COLLECT_NAMES+set}" != Xset; then
10125  COLLECT_NAMES=
10126  export COLLECT_NAMES
10127fi
10128EOF
10129    ;;
10130  esac
10131
10132  # We use sed instead of cat because bash on DJGPP gets confused if
10133  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10134  # text mode, it properly converts lines to CR/LF.  This bash problem
10135  # is reportedly fixed, but why not run on old versions too?
10136  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10137
10138  mv -f "$cfgfile" "$ofile" || \
10139    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10140  chmod +x "$ofile"
10141
10142else
10143  # If there is no Makefile yet, we rely on a make rule to execute
10144  # `config.status --recheck' to rerun these tests and create the
10145  # libtool script then.
10146  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10147  if test -f "$ltmain_in"; then
10148    test -f Makefile && make "$ltmain"
10149  fi
10150fi
10151
10152
10153ac_ext=c
10154ac_cpp='$CPP $CPPFLAGS'
10155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10157ac_compiler_gnu=$ac_cv_c_compiler_gnu
10158
10159CC="$lt_save_CC"
10160
10161
10162# Check whether --with-tags or --without-tags was given.
10163if test "${with_tags+set}" = set; then
10164  withval="$with_tags"
10165  tagnames="$withval"
10166fi;
10167
10168if test -f "$ltmain" && test -n "$tagnames"; then
10169  if test ! -f "${ofile}"; then
10170    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10171echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10172  fi
10173
10174  if test -z "$LTCC"; then
10175    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10176    if test -z "$LTCC"; then
10177      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10178echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10179    else
10180      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10181echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10182    fi
10183  fi
10184  if test -z "$LTCFLAGS"; then
10185    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10186  fi
10187
10188  # Extract list of available tagged configurations in $ofile.
10189  # Note that this assumes the entire list is on one line.
10190  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10191
10192  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10193  for tagname in $tagnames; do
10194    IFS="$lt_save_ifs"
10195    # Check whether tagname contains only valid characters
10196    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10197    "") ;;
10198    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10199echo "$as_me: error: invalid tag name: $tagname" >&2;}
10200   { (exit 1); exit 1; }; }
10201        ;;
10202    esac
10203
10204    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10205    then
10206      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10207echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10208   { (exit 1); exit 1; }; }
10209    fi
10210
10211    # Update the list of available tags.
10212    if test -n "$tagname"; then
10213      echo appending configuration tag \"$tagname\" to $ofile
10214
10215      case $tagname in
10216      CXX)
10217        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10218            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10219            (test "X$CXX" != "Xg++"))) ; then
10220          ac_ext=cc
10221ac_cpp='$CXXCPP $CPPFLAGS'
10222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10225
10226
10227
10228
10229archive_cmds_need_lc_CXX=no
10230allow_undefined_flag_CXX=
10231always_export_symbols_CXX=no
10232archive_expsym_cmds_CXX=
10233export_dynamic_flag_spec_CXX=
10234hardcode_direct_CXX=no
10235hardcode_libdir_flag_spec_CXX=
10236hardcode_libdir_flag_spec_ld_CXX=
10237hardcode_libdir_separator_CXX=
10238hardcode_minus_L_CXX=no
10239hardcode_shlibpath_var_CXX=unsupported
10240hardcode_automatic_CXX=no
10241module_cmds_CXX=
10242module_expsym_cmds_CXX=
10243link_all_deplibs_CXX=unknown
10244old_archive_cmds_CXX=$old_archive_cmds
10245no_undefined_flag_CXX=
10246whole_archive_flag_spec_CXX=
10247enable_shared_with_static_runtimes_CXX=no
10248
10249# Dependencies to place before and after the object being linked:
10250predep_objects_CXX=
10251postdep_objects_CXX=
10252predeps_CXX=
10253postdeps_CXX=
10254compiler_lib_search_path_CXX=
10255
10256# Source file extension for C++ test sources.
10257ac_ext=cpp
10258
10259# Object file extension for compiled C++ test sources.
10260objext=o
10261objext_CXX=$objext
10262
10263# Code to be used in simple compile tests
10264lt_simple_compile_test_code="int some_variable = 0;\n"
10265
10266# Code to be used in simple link tests
10267lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10268
10269# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10270
10271# If no C compiler was specified, use CC.
10272LTCC=${LTCC-"$CC"}
10273
10274# If no C compiler flags were specified, use CFLAGS.
10275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10276
10277# Allow CC to be a program name with arguments.
10278compiler=$CC
10279
10280
10281# save warnings/boilerplate of simple test code
10282ac_outfile=conftest.$ac_objext
10283printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10284eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10285_lt_compiler_boilerplate=`cat conftest.err`
10286$rm conftest*
10287
10288ac_outfile=conftest.$ac_objext
10289printf "$lt_simple_link_test_code" >conftest.$ac_ext
10290eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10291_lt_linker_boilerplate=`cat conftest.err`
10292$rm conftest*
10293
10294
10295# Allow CC to be a program name with arguments.
10296lt_save_CC=$CC
10297lt_save_LD=$LD
10298lt_save_GCC=$GCC
10299GCC=$GXX
10300lt_save_with_gnu_ld=$with_gnu_ld
10301lt_save_path_LD=$lt_cv_path_LD
10302if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10303  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10304else
10305  $as_unset lt_cv_prog_gnu_ld
10306fi
10307if test -n "${lt_cv_path_LDCXX+set}"; then
10308  lt_cv_path_LD=$lt_cv_path_LDCXX
10309else
10310  $as_unset lt_cv_path_LD
10311fi
10312test -z "${LDCXX+set}" || LD=$LDCXX
10313CC=${CXX-"c++"}
10314compiler=$CC
10315compiler_CXX=$CC
10316for cc_temp in $compiler""; do
10317  case $cc_temp in
10318    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10319    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10320    \-*) ;;
10321    *) break;;
10322  esac
10323done
10324cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10325
10326
10327# We don't want -fno-exception wen compiling C++ code, so set the
10328# no_builtin_flag separately
10329if test "$GXX" = yes; then
10330  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10331else
10332  lt_prog_compiler_no_builtin_flag_CXX=
10333fi
10334
10335if test "$GXX" = yes; then
10336  # Set up default GNU C++ configuration
10337
10338
10339# Check whether --with-gnu-ld or --without-gnu-ld was given.
10340if test "${with_gnu_ld+set}" = set; then
10341  withval="$with_gnu_ld"
10342  test "$withval" = no || with_gnu_ld=yes
10343else
10344  with_gnu_ld=no
10345fi;
10346ac_prog=ld
10347if test "$GCC" = yes; then
10348  # Check if gcc -print-prog-name=ld gives a path.
10349  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10350echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10351  case $host in
10352  *-*-mingw*)
10353    # gcc leaves a trailing carriage return which upsets mingw
10354    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10355  *)
10356    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10357  esac
10358  case $ac_prog in
10359    # Accept absolute paths.
10360    [\\/]* | ?:[\\/]*)
10361      re_direlt='/[^/][^/]*/\.\./'
10362      # Canonicalize the pathname of ld
10363      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10364      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10365        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10366      done
10367      test -z "$LD" && LD="$ac_prog"
10368      ;;
10369  "")
10370    # If it fails, then pretend we aren't using GCC.
10371    ac_prog=ld
10372    ;;
10373  *)
10374    # If it is relative, then search for the first ld in PATH.
10375    with_gnu_ld=unknown
10376    ;;
10377  esac
10378elif test "$with_gnu_ld" = yes; then
10379  echo "$as_me:$LINENO: checking for GNU ld" >&5
10380echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10381else
10382  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10383echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10384fi
10385if test "${lt_cv_path_LD+set}" = set; then
10386  echo $ECHO_N "(cached) $ECHO_C" >&6
10387else
10388  if test -z "$LD"; then
10389  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10390  for ac_dir in $PATH; do
10391    IFS="$lt_save_ifs"
10392    test -z "$ac_dir" && ac_dir=.
10393    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10394      lt_cv_path_LD="$ac_dir/$ac_prog"
10395      # Check to see if the program is GNU ld.  I'd rather use --version,
10396      # but apparently some variants of GNU ld only accept -v.
10397      # Break only if it was the GNU/non-GNU ld that we prefer.
10398      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10399      *GNU* | *'with BFD'*)
10400        test "$with_gnu_ld" != no && break
10401        ;;
10402      *)
10403        test "$with_gnu_ld" != yes && break
10404        ;;
10405      esac
10406    fi
10407  done
10408  IFS="$lt_save_ifs"
10409else
10410  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10411fi
10412fi
10413
10414LD="$lt_cv_path_LD"
10415if test -n "$LD"; then
10416  echo "$as_me:$LINENO: result: $LD" >&5
10417echo "${ECHO_T}$LD" >&6
10418else
10419  echo "$as_me:$LINENO: result: no" >&5
10420echo "${ECHO_T}no" >&6
10421fi
10422test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10423echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10424   { (exit 1); exit 1; }; }
10425echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10426echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10427if test "${lt_cv_prog_gnu_ld+set}" = set; then
10428  echo $ECHO_N "(cached) $ECHO_C" >&6
10429else
10430  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10431case `$LD -v 2>&1 </dev/null` in
10432*GNU* | *'with BFD'*)
10433  lt_cv_prog_gnu_ld=yes
10434  ;;
10435*)
10436  lt_cv_prog_gnu_ld=no
10437  ;;
10438esac
10439fi
10440echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10441echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10442with_gnu_ld=$lt_cv_prog_gnu_ld
10443
10444
10445
10446  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10447  # archiving commands below assume that GNU ld is being used.
10448  if test "$with_gnu_ld" = yes; then
10449    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10450    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'
10451
10452    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10453    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10454
10455    # If archive_cmds runs LD, not CC, wlarc should be empty
10456    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10457    #     investigate it a little bit more. (MM)
10458    wlarc='${wl}'
10459
10460    # ancient GNU ld didn't support --whole-archive et. al.
10461    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10462        grep 'no-whole-archive' > /dev/null; then
10463      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10464    else
10465      whole_archive_flag_spec_CXX=
10466    fi
10467  else
10468    with_gnu_ld=no
10469    wlarc=
10470
10471    # A generic and very simple default shared library creation
10472    # command for GNU C++ for the case where it uses the native
10473    # linker, instead of GNU ld.  If possible, this setting should
10474    # overridden to take advantage of the native linker features on
10475    # the platform it is being used on.
10476    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10477  fi
10478
10479  # Commands to make compiler produce verbose output that lists
10480  # what "hidden" libraries, object files and flags are used when
10481  # linking a shared library.
10482  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10483
10484else
10485  GXX=no
10486  with_gnu_ld=no
10487  wlarc=
10488fi
10489
10490# PORTME: fill in a description of your system's C++ link characteristics
10491echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10492echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10493ld_shlibs_CXX=yes
10494case $host_os in
10495  aix3*)
10496    # FIXME: insert proper C++ library support
10497    ld_shlibs_CXX=no
10498    ;;
10499  aix4* | aix5*)
10500    if test "$host_cpu" = ia64; then
10501      # On IA64, the linker does run time linking by default, so we don't
10502      # have to do anything special.
10503      aix_use_runtimelinking=no
10504      exp_sym_flag='-Bexport'
10505      no_entry_flag=""
10506    else
10507      aix_use_runtimelinking=no
10508
10509      # Test if we are trying to use run time linking or normal
10510      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10511      # need to do runtime linking.
10512      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10513        for ld_flag in $LDFLAGS; do
10514          case $ld_flag in
10515          *-brtl*)
10516            aix_use_runtimelinking=yes
10517            break
10518            ;;
10519          esac
10520        done
10521        ;;
10522      esac
10523
10524      exp_sym_flag='-bexport'
10525      no_entry_flag='-bnoentry'
10526    fi
10527
10528    # When large executables or shared objects are built, AIX ld can
10529    # have problems creating the table of contents.  If linking a library
10530    # or program results in "error TOC overflow" add -mminimal-toc to
10531    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10532    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10533
10534    archive_cmds_CXX=''
10535    hardcode_direct_CXX=yes
10536    hardcode_libdir_separator_CXX=':'
10537    link_all_deplibs_CXX=yes
10538
10539    if test "$GXX" = yes; then
10540      case $host_os in aix4.[012]|aix4.[012].*)
10541      # We only want to do this on AIX 4.2 and lower, the check
10542      # below for broken collect2 doesn't work under 4.3+
10543        collect2name=`${CC} -print-prog-name=collect2`
10544        if test -f "$collect2name" && \
10545           strings "$collect2name" | grep resolve_lib_name >/dev/null
10546        then
10547          # We have reworked collect2
10548          hardcode_direct_CXX=yes
10549        else
10550          # We have old collect2
10551          hardcode_direct_CXX=unsupported
10552          # It fails to find uninstalled libraries when the uninstalled
10553          # path is not listed in the libpath.  Setting hardcode_minus_L
10554          # to unsupported forces relinking
10555          hardcode_minus_L_CXX=yes
10556          hardcode_libdir_flag_spec_CXX='-L$libdir'
10557          hardcode_libdir_separator_CXX=
10558        fi
10559        ;;
10560      esac
10561      shared_flag='-shared'
10562      if test "$aix_use_runtimelinking" = yes; then
10563        shared_flag="$shared_flag "'${wl}-G'
10564      fi
10565    else
10566      # not using gcc
10567      if test "$host_cpu" = ia64; then
10568        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10569        # chokes on -Wl,-G. The following line is correct:
10570        shared_flag='-G'
10571      else
10572        if test "$aix_use_runtimelinking" = yes; then
10573          shared_flag='${wl}-G'
10574        else
10575          shared_flag='${wl}-bM:SRE'
10576        fi
10577      fi
10578    fi
10579
10580    # It seems that -bexpall does not export symbols beginning with
10581    # underscore (_), so it is better to generate a list of symbols to export.
10582    always_export_symbols_CXX=yes
10583    if test "$aix_use_runtimelinking" = yes; then
10584      # Warning - without using the other runtime loading flags (-brtl),
10585      # -berok will link without error, but may produce a broken library.
10586      allow_undefined_flag_CXX='-berok'
10587      # Determine the default libpath from the value encoded in an empty executable.
10588      cat >conftest.$ac_ext <<_ACEOF
10589/* confdefs.h.  */
10590_ACEOF
10591cat confdefs.h >>conftest.$ac_ext
10592cat >>conftest.$ac_ext <<_ACEOF
10593/* end confdefs.h.  */
10594
10595int
10596main ()
10597{
10598
10599  ;
10600  return 0;
10601}
10602_ACEOF
10603rm -f conftest.$ac_objext conftest$ac_exeext
10604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605  (eval $ac_link) 2>conftest.er1
10606  ac_status=$?
10607  grep -v '^ *+' conftest.er1 >conftest.err
10608  rm -f conftest.er1
10609  cat conftest.err >&5
10610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611  (exit $ac_status); } &&
10612         { ac_try='test -z "$ac_cxx_werror_flag"
10613                         || test ! -s conftest.err'
10614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615  (eval $ac_try) 2>&5
10616  ac_status=$?
10617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); }; } &&
10619         { ac_try='test -s conftest$ac_exeext'
10620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621  (eval $ac_try) 2>&5
10622  ac_status=$?
10623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624  (exit $ac_status); }; }; then
10625
10626aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10627}'`
10628# Check for a 64-bit object if we didn't find anything.
10629if 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; }
10630}'`; fi
10631else
10632  echo "$as_me: failed program was:" >&5
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
10635fi
10636rm -f conftest.err conftest.$ac_objext \
10637      conftest$ac_exeext conftest.$ac_ext
10638if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10639
10640      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10641
10642      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"
10643     else
10644      if test "$host_cpu" = ia64; then
10645        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10646        allow_undefined_flag_CXX="-z nodefs"
10647        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"
10648      else
10649        # Determine the default libpath from the value encoded in an empty executable.
10650        cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h.  */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h.  */
10656
10657int
10658main ()
10659{
10660
10661  ;
10662  return 0;
10663}
10664_ACEOF
10665rm -f conftest.$ac_objext conftest$ac_exeext
10666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667  (eval $ac_link) 2>conftest.er1
10668  ac_status=$?
10669  grep -v '^ *+' conftest.er1 >conftest.err
10670  rm -f conftest.er1
10671  cat conftest.err >&5
10672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673  (exit $ac_status); } &&
10674         { ac_try='test -z "$ac_cxx_werror_flag"
10675                         || test ! -s conftest.err'
10676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677  (eval $ac_try) 2>&5
10678  ac_status=$?
10679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680  (exit $ac_status); }; } &&
10681         { ac_try='test -s conftest$ac_exeext'
10682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683  (eval $ac_try) 2>&5
10684  ac_status=$?
10685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); }; }; then
10687
10688aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10689}'`
10690# Check for a 64-bit object if we didn't find anything.
10691if 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; }
10692}'`; fi
10693else
10694  echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
10697fi
10698rm -f conftest.err conftest.$ac_objext \
10699      conftest$ac_exeext conftest.$ac_ext
10700if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10701
10702        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10703        # Warning - without using the other run time loading flags,
10704        # -berok will link without error, but may produce a broken library.
10705        no_undefined_flag_CXX=' ${wl}-bernotok'
10706        allow_undefined_flag_CXX=' ${wl}-berok'
10707        # Exported symbols can be pulled into shared objects from archives
10708        whole_archive_flag_spec_CXX='$convenience'
10709        archive_cmds_need_lc_CXX=yes
10710        # This is similar to how AIX traditionally builds its shared libraries.
10711        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10712      fi
10713    fi
10714    ;;
10715
10716  beos*)
10717    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10718      allow_undefined_flag_CXX=unsupported
10719      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10720      # support --undefined.  This deserves some investigation.  FIXME
10721      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10722    else
10723      ld_shlibs_CXX=no
10724    fi
10725    ;;
10726
10727  chorus*)
10728    case $cc_basename in
10729      *)
10730        # FIXME: insert proper C++ library support
10731        ld_shlibs_CXX=no
10732        ;;
10733    esac
10734    ;;
10735
10736  cygwin* | mingw* | pw32*)
10737    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10738    # as there is no search path for DLLs.
10739    hardcode_libdir_flag_spec_CXX='-L$libdir'
10740    allow_undefined_flag_CXX=unsupported
10741    always_export_symbols_CXX=no
10742    enable_shared_with_static_runtimes_CXX=yes
10743
10744    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10745      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10746      # If the export-symbols file already is a .def file (1st line
10747      # is EXPORTS), use it as is; otherwise, prepend...
10748      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10749        cp $export_symbols $output_objdir/$soname.def;
10750      else
10751        echo EXPORTS > $output_objdir/$soname.def;
10752        cat $export_symbols >> $output_objdir/$soname.def;
10753      fi~
10754      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10755    else
10756      ld_shlibs_CXX=no
10757    fi
10758  ;;
10759      darwin* | rhapsody*)
10760        case $host_os in
10761        rhapsody* | darwin1.[012])
10762         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10763         ;;
10764       *) # Darwin 1.3 on
10765         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10766           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10767         else
10768           case ${MACOSX_DEPLOYMENT_TARGET} in
10769             10.[012])
10770               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10771               ;;
10772             10.*)
10773               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10774</