source: ThirdParty/Lapack/stable/1.0/configure @ 123

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

check for C compiler when we search for Fortran compiler to make sure we have consistent compilers

  • Property svn:executable set to *
File size: 693.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyLapack 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE 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 host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL LT_LDFLAGS RPATH_FLAGS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
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_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyLapack 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyLapack 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-lapack compile this project (Lapack) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS (default: disabled)
1077  --enable-static[=PKGS]
1078                          build static libraries [default=no]
1079  --disable-dependency-tracking  speeds up one-time build
1080  --enable-dependency-tracking   do not reject slow dependency extractors
1081  --enable-maintainer-mode  enable make rules and dependencies not useful
1082                          (and sometimes confusing) to the casual installer
1083  --enable-shared[=PKGS]
1084                          build shared libraries [default=yes]
1085  --enable-fast-install[=PKGS]
1086                          optimize for fast installation [default=yes]
1087  --disable-libtool-lock  avoid locking (might break parallel builds)
1088
1089Optional Packages:
1090  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1091  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1092  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1093  --with-lapack-checklevel
1094                          specify the sanity check level for project Lapack
1095  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1096  --with-pic              try to use only PIC/non-PIC objects [default=use
1097                          both]
1098  --with-tags[=TAGS]
1099                          include additional configurations [automatic]
1100
1101Some influential environment variables:
1102  CDEFS       Additional -D flags to be used when compiling C code.
1103  ADD_CFLAGS  Additional C compiler options
1104  DBG_CFLAGS  Debug C compiler options
1105  OPT_CFLAGS  Optimize C compiler options
1106  CC          C compiler command
1107  CFLAGS      C compiler flags
1108  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1109              nonstandard directory <lib dir>
1110  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1111              headers in a nonstandard directory <include dir>
1112  MPICC       C MPI Compiler
1113  ADD_FFLAGS  Additional Fortran compiler options
1114  DBG_FFLAGS  Debug Fortran compiler options
1115  OPT_FFLAGS  Optimize Fortran compiler options
1116  F77         Fortran 77 compiler command
1117  FFLAGS      Fortran 77 compiler flags
1118  MPIF77      Fortran MPI Compiler
1119  CPP         C preprocessor
1120  CXX         C++ compiler command
1121  CXXFLAGS    C++ compiler flags
1122  CXXCPP      C++ preprocessor
1123
1124Use these variables to override the choices made by `configure' or to help
1125it to find libraries and programs with nonstandard names/locations.
1126
1127Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1128_ACEOF
1129fi
1130
1131if test "$ac_init_help" = "recursive"; then
1132  # If there are subdirs, report their specific --help.
1133  ac_popdir=`pwd`
1134  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1135    test -d $ac_dir || continue
1136    ac_builddir=.
1137
1138if test "$ac_dir" != .; then
1139  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1140  # A "../" for each directory in $ac_dir_suffix.
1141  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1142else
1143  ac_dir_suffix= ac_top_builddir=
1144fi
1145
1146case $srcdir in
1147  .)  # No --srcdir option.  We are building in place.
1148    ac_srcdir=.
1149    if test -z "$ac_top_builddir"; then
1150       ac_top_srcdir=.
1151    else
1152       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1153    fi ;;
1154  [\\/]* | ?:[\\/]* )  # Absolute path.
1155    ac_srcdir=$srcdir$ac_dir_suffix;
1156    ac_top_srcdir=$srcdir ;;
1157  *) # Relative path.
1158    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1159    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1160esac
1161
1162# Do not use `cd foo && pwd` to compute absolute paths, because
1163# the directories may not exist.
1164case `pwd` in
1165.) ac_abs_builddir="$ac_dir";;
1166*)
1167  case "$ac_dir" in
1168  .) ac_abs_builddir=`pwd`;;
1169  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1170  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1171  esac;;
1172esac
1173case $ac_abs_builddir in
1174.) ac_abs_top_builddir=${ac_top_builddir}.;;
1175*)
1176  case ${ac_top_builddir}. in
1177  .) ac_abs_top_builddir=$ac_abs_builddir;;
1178  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1179  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1180  esac;;
1181esac
1182case $ac_abs_builddir in
1183.) ac_abs_srcdir=$ac_srcdir;;
1184*)
1185  case $ac_srcdir in
1186  .) ac_abs_srcdir=$ac_abs_builddir;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1188  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1189  esac;;
1190esac
1191case $ac_abs_builddir in
1192.) ac_abs_top_srcdir=$ac_top_srcdir;;
1193*)
1194  case $ac_top_srcdir in
1195  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1196  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1197  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1198  esac;;
1199esac
1200
1201    cd $ac_dir
1202    # Check for guested configure; otherwise get Cygnus style configure.
1203    if test -f $ac_srcdir/configure.gnu; then
1204      echo
1205      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1206    elif test -f $ac_srcdir/configure; then
1207      echo
1208      $SHELL $ac_srcdir/configure  --help=recursive
1209    elif test -f $ac_srcdir/configure.ac ||
1210           test -f $ac_srcdir/configure.in; then
1211      echo
1212      $ac_configure --help
1213    else
1214      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1215    fi
1216    cd $ac_popdir
1217  done
1218fi
1219
1220test -n "$ac_init_help" && exit 0
1221if $ac_init_version; then
1222  cat <<\_ACEOF
1223ThirdPartyLapack configure 0.0
1224generated by GNU Autoconf 2.59
1225
1226Copyright (C) 2003 Free Software Foundation, Inc.
1227This configure script is free software; the Free Software Foundation
1228gives unlimited permission to copy, distribute and modify it.
1229
1230
1231Copyright 2006 International Business Machines and others.
1232All Rights Reserved.
1233This file is part of the open source package Coin which is distributed
1234under the Common Public License.
1235_ACEOF
1236  exit 0
1237fi
1238exec 5>config.log
1239cat >&5 <<_ACEOF
1240This file contains any messages produced by compilers while
1241running configure, to aid debugging if configure makes a mistake.
1242
1243It was created by ThirdPartyLapack $as_me 0.0, which was
1244generated by GNU Autoconf 2.59.  Invocation command line was
1245
1246  $ $0 $@
1247
1248_ACEOF
1249{
1250cat <<_ASUNAME
1251## --------- ##
1252## Platform. ##
1253## --------- ##
1254
1255hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1256uname -m = `(uname -m) 2>/dev/null || echo unknown`
1257uname -r = `(uname -r) 2>/dev/null || echo unknown`
1258uname -s = `(uname -s) 2>/dev/null || echo unknown`
1259uname -v = `(uname -v) 2>/dev/null || echo unknown`
1260
1261/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1262/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1263
1264/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1265/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1266/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1267hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1268/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1269/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1270/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1271
1272_ASUNAME
1273
1274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1275for as_dir in $PATH
1276do
1277  IFS=$as_save_IFS
1278  test -z "$as_dir" && as_dir=.
1279  echo "PATH: $as_dir"
1280done
1281
1282} >&5
1283
1284cat >&5 <<_ACEOF
1285
1286
1287## ----------- ##
1288## Core tests. ##
1289## ----------- ##
1290
1291_ACEOF
1292
1293
1294# Keep a trace of the command line.
1295# Strip out --no-create and --no-recursion so they do not pile up.
1296# Strip out --silent because we don't want to record it for future runs.
1297# Also quote any args containing shell meta-characters.
1298# Make two passes to allow for proper duplicate-argument suppression.
1299ac_configure_args=
1300ac_configure_args0=
1301ac_configure_args1=
1302ac_sep=
1303ac_must_keep_next=false
1304for ac_pass in 1 2
1305do
1306  for ac_arg
1307  do
1308    case $ac_arg in
1309    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1310    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1311    | -silent | --silent | --silen | --sile | --sil)
1312      continue ;;
1313    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1315    esac
1316    case $ac_pass in
1317    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1318    2)
1319      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1320      if test $ac_must_keep_next = true; then
1321        ac_must_keep_next=false # Got value, back to normal.
1322      else
1323        case $ac_arg in
1324          *=* | --config-cache | -C | -disable-* | --disable-* \
1325          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1326          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1327          | -with-* | --with-* | -without-* | --without-* | --x)
1328            case "$ac_configure_args0 " in
1329              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1330            esac
1331            ;;
1332          -* ) ac_must_keep_next=true ;;
1333        esac
1334      fi
1335      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1336      # Get rid of the leading space.
1337      ac_sep=" "
1338      ;;
1339    esac
1340  done
1341done
1342$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1343$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1344
1345# When interrupted or exit'd, cleanup temporary files, and complete
1346# config.log.  We remove comments because anyway the quotes in there
1347# would cause problems or look ugly.
1348# WARNING: Be sure not to use single quotes in there, as some shells,
1349# such as our DU 5.0 friend, will then `close' the trap.
1350trap 'exit_status=$?
1351  # Save into config.log some information that might help in debugging.
1352  {
1353    echo
1354
1355    cat <<\_ASBOX
1356## ---------------- ##
1357## Cache variables. ##
1358## ---------------- ##
1359_ASBOX
1360    echo
1361    # The following way of writing the cache mishandles newlines in values,
1362{
1363  (set) 2>&1 |
1364    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1365    *ac_space=\ *)
1366      sed -n \
1367        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1368          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1369      ;;
1370    *)
1371      sed -n \
1372        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1373      ;;
1374    esac;
1375}
1376    echo
1377
1378    cat <<\_ASBOX
1379## ----------------- ##
1380## Output variables. ##
1381## ----------------- ##
1382_ASBOX
1383    echo
1384    for ac_var in $ac_subst_vars
1385    do
1386      eval ac_val=$`echo $ac_var`
1387      echo "$ac_var='"'"'$ac_val'"'"'"
1388    done | sort
1389    echo
1390
1391    if test -n "$ac_subst_files"; then
1392      cat <<\_ASBOX
1393## ------------- ##
1394## Output files. ##
1395## ------------- ##
1396_ASBOX
1397      echo
1398      for ac_var in $ac_subst_files
1399      do
1400        eval ac_val=$`echo $ac_var`
1401        echo "$ac_var='"'"'$ac_val'"'"'"
1402      done | sort
1403      echo
1404    fi
1405
1406    if test -s confdefs.h; then
1407      cat <<\_ASBOX
1408## ----------- ##
1409## confdefs.h. ##
1410## ----------- ##
1411_ASBOX
1412      echo
1413      sed "/^$/d" confdefs.h | sort
1414      echo
1415    fi
1416    test "$ac_signal" != 0 &&
1417      echo "$as_me: caught signal $ac_signal"
1418    echo "$as_me: exit $exit_status"
1419  } >&5
1420  rm -f core *.core &&
1421  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1422    exit $exit_status
1423     ' 0
1424for ac_signal in 1 2 13 15; do
1425  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1426done
1427ac_signal=0
1428
1429# confdefs.h avoids OS command line length limits that DEFS can exceed.
1430rm -rf conftest* confdefs.h
1431# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1432echo >confdefs.h
1433
1434# Predefined preprocessor variables.
1435
1436cat >>confdefs.h <<_ACEOF
1437#define PACKAGE_NAME "$PACKAGE_NAME"
1438_ACEOF
1439
1440
1441cat >>confdefs.h <<_ACEOF
1442#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1443_ACEOF
1444
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_VERSION "$PACKAGE_VERSION"
1448_ACEOF
1449
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_STRING "$PACKAGE_STRING"
1453_ACEOF
1454
1455
1456cat >>confdefs.h <<_ACEOF
1457#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1458_ACEOF
1459
1460
1461# Let the site file select an alternate cache file if it wants to.
1462# Prefer explicitly selected file to automatically selected ones.
1463if test -z "$CONFIG_SITE"; then
1464  if test "x$prefix" != xNONE; then
1465    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1466  else
1467    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1468  fi
1469fi
1470for ac_site_file in $CONFIG_SITE; do
1471  if test -r "$ac_site_file"; then
1472    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1473echo "$as_me: loading site script $ac_site_file" >&6;}
1474    sed 's/^/| /' "$ac_site_file" >&5
1475    . "$ac_site_file"
1476  fi
1477done
1478
1479if test -r "$cache_file"; then
1480  # Some versions of bash will fail to source /dev/null (special
1481  # files actually), so we avoid doing that.
1482  if test -f "$cache_file"; then
1483    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1484echo "$as_me: loading cache $cache_file" >&6;}
1485    case $cache_file in
1486      [\\/]* | ?:[\\/]* ) . $cache_file;;
1487      *)                      . ./$cache_file;;
1488    esac
1489  fi
1490else
1491  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1492echo "$as_me: creating cache $cache_file" >&6;}
1493  >$cache_file
1494fi
1495
1496# Check that the precious variables saved in the cache have kept the same
1497# value.
1498ac_cache_corrupted=false
1499for ac_var in `(set) 2>&1 |
1500               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1501  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1502  eval ac_new_set=\$ac_env_${ac_var}_set
1503  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1504  eval ac_new_val="\$ac_env_${ac_var}_value"
1505  case $ac_old_set,$ac_new_set in
1506    set,)
1507      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1508echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1509      ac_cache_corrupted=: ;;
1510    ,set)
1511      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1512echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1513      ac_cache_corrupted=: ;;
1514    ,);;
1515    *)
1516      if test "x$ac_old_val" != "x$ac_new_val"; then
1517        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1518echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1519        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1520echo "$as_me:   former value:  $ac_old_val" >&2;}
1521        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1522echo "$as_me:   current value: $ac_new_val" >&2;}
1523        ac_cache_corrupted=:
1524      fi;;
1525  esac
1526  # Pass precious variables to config.status.
1527  if test "$ac_new_set" = set; then
1528    case $ac_new_val in
1529    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1530      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1531    *) ac_arg=$ac_var=$ac_new_val ;;
1532    esac
1533    case " $ac_configure_args " in
1534      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1535      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1536    esac
1537  fi
1538done
1539if $ac_cache_corrupted; then
1540  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1541echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1542  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1543echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1544   { (exit 1); exit 1; }; }
1545fi
1546
1547ac_ext=c
1548ac_cpp='$CPP $CPPFLAGS'
1549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1551ac_compiler_gnu=$ac_cv_c_compiler_gnu
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582# List one file in the package so that the configure script can test
1583# whether the package is actually there
1584
1585
1586# Where should everything be installed by default?  Here, we want it
1587# to be installed directly in 'bin', 'lib', 'include' subdirectories
1588# of the directory where configure is run.  The default would be
1589# /usr/local.
1590
1591
1592# Initialize the ADDLIBS variable
1593ADDLIBS='-lm'
1594
1595
1596# Initialize the FADDLIBS variable (which is to be used with a fortran
1597# compiler and will not include FLIBS)
1598FADDLIBS=
1599
1600
1601# A useful makefile conditional that is always false
1602
1603
1604if false; then
1605  ALWAYS_FALSE_TRUE=
1606  ALWAYS_FALSE_FALSE='#'
1607else
1608  ALWAYS_FALSE_TRUE='#'
1609  ALWAYS_FALSE_FALSE=
1610fi
1611
1612
1613# We set the following variable so that we know later in AC_COIN_FINALIZE
1614# that we are in a project main directory
1615coin_projectdir=yes
1616
1617
1618#############################################################################
1619#                         Standard build tool stuff                         #
1620#############################################################################
1621
1622# Get the system type
1623ac_aux_dir=
1624for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1625  if test -f $ac_dir/install-sh; then
1626    ac_aux_dir=$ac_dir
1627    ac_install_sh="$ac_aux_dir/install-sh -c"
1628    break
1629  elif test -f $ac_dir/install.sh; then
1630    ac_aux_dir=$ac_dir
1631    ac_install_sh="$ac_aux_dir/install.sh -c"
1632    break
1633  elif test -f $ac_dir/shtool; then
1634    ac_aux_dir=$ac_dir
1635    ac_install_sh="$ac_aux_dir/shtool install -c"
1636    break
1637  fi
1638done
1639if test -z "$ac_aux_dir"; then
1640  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1641echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1642   { (exit 1); exit 1; }; }
1643fi
1644ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1645ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1646ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1647
1648# Make sure we can run config.sub.
1649$ac_config_sub sun4 >/dev/null 2>&1 ||
1650  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1651echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1652   { (exit 1); exit 1; }; }
1653
1654echo "$as_me:$LINENO: checking build system type" >&5
1655echo $ECHO_N "checking build system type... $ECHO_C" >&6
1656if test "${ac_cv_build+set}" = set; then
1657  echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659  ac_cv_build_alias=$build_alias
1660test -z "$ac_cv_build_alias" &&
1661  ac_cv_build_alias=`$ac_config_guess`
1662test -z "$ac_cv_build_alias" &&
1663  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1664echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1665   { (exit 1); exit 1; }; }
1666ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1667  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1668echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1669   { (exit 1); exit 1; }; }
1670
1671fi
1672echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1673echo "${ECHO_T}$ac_cv_build" >&6
1674build=$ac_cv_build
1675build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678
1679
1680
1681# Check if user wants to produce debugging code
1682
1683echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1684echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1685
1686# Check whether --enable-debug or --disable-debug was given.
1687if test "${enable_debug+set}" = set; then
1688  enableval="$enable_debug"
1689  case "${enableval}" in
1690   yes) coin_debug_compile=true
1691        enable_shared=no
1692        ;;
1693   no)  coin_debug_compile=false
1694        ;;
1695   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1696echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1697   { (exit 1); exit 1; }; }
1698        ;;
1699esac
1700else
1701  coin_debug_compile=false
1702fi;
1703
1704# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1705if test "${enable_debug_lapack+set}" = set; then
1706  enableval="$enable_debug_lapack"
1707  case "${enableval}" in
1708    yes) coin_debug_compile=true
1709         enable_shared=no
1710         ;;
1711    no)  coin_debug_compile=false
1712         ;;
1713    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1714echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1715   { (exit 1); exit 1; }; }
1716         ;;
1717 esac
1718else
1719  :
1720fi;
1721
1722 # m4_ifvaln([Lapack],
1723
1724if test $coin_debug_compile = true; then
1725  echo "$as_me:$LINENO: result: yes" >&5
1726echo "${ECHO_T}yes" >&6
1727else
1728  echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732
1733# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1734if test "${with_lapack_verbosity+set}" = set; then
1735  withval="$with_lapack_verbosity"
1736  coin_lapack_verbosity=$withval
1737else
1738  coin_lapack_verbosity=0
1739fi;
1740
1741cat >>confdefs.h <<_ACEOF
1742#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1743_ACEOF
1744
1745
1746
1747# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1748if test "${with_lapack_checklevel+set}" = set; then
1749  withval="$with_lapack_checklevel"
1750  coin_lapack_checklevel=$withval
1751else
1752  coin_lapack_checklevel=0
1753fi;
1754
1755cat >>confdefs.h <<_ACEOF
1756#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1757_ACEOF
1758
1759
1760# We use the following variable to have a string with the upper case
1761# version of the project name
1762COIN_PRJCT=LAPACK
1763
1764
1765 # m4_ifvaln([Lapack],
1766
1767
1768
1769# Get the name of the Fortran compiler and appropriate compiler options
1770case $build in
1771  *-mingw*)
1772    if test "${LD+set}" = set; then :; else
1773      LD=link
1774    fi
1775    ;;
1776esac
1777
1778# Check whether --enable-doscompile or --disable-doscompile was given.
1779if test "${enable_doscompile+set}" = set; then
1780  enableval="$enable_doscompile"
1781  if test "$enable_doscompile = yes"; then
1782  case $build in
1783    *-cygwin*) ;;
1784    *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
1785echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
1786   { (exit 1); exit 1; }; } ;;
1787  esac
1788fi
1789else
1790  enable_doscompile=no
1791fi;
1792
1793
1794
1795
1796ac_ext=c
1797ac_cpp='$CPP $CPPFLAGS'
1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801
1802
1803# For consistency, we set the C compiler to the same value of the C++
1804# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1805if test x"$CXX" != x; then
1806  case "$CXX" in
1807    cl*)
1808      if test x"$CC" = x; then
1809        CC="$CXX"
1810        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1811echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1812      fi
1813      ;;
1814  esac
1815fi
1816
1817
1818
1819
1820
1821
1822coin_has_cc=yes
1823
1824save_cflags="$CFLAGS"
1825case $build in
1826  *-cygwin* | *-mingw*)
1827             comps="gcc cl" ;;
1828  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1829  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1830esac
1831
1832# We delete the cached value, since the test might not have been
1833# performed with out choise of compilers earlier
1834$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1835ac_ext=c
1836ac_cpp='$CPP $CPPFLAGS'
1837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839ac_compiler_gnu=$ac_cv_c_compiler_gnu
1840if test -n "$ac_tool_prefix"; then
1841  for ac_prog in $comps
1842  do
1843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_CC+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$CC"; then
1851  ac_cv_prog_CC="$CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869CC=$ac_cv_prog_CC
1870if test -n "$CC"; then
1871  echo "$as_me:$LINENO: result: $CC" >&5
1872echo "${ECHO_T}$CC" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878    test -n "$CC" && break
1879  done
1880fi
1881if test -z "$CC"; then
1882  ac_ct_CC=$CC
1883  for ac_prog in $comps
1884do
1885  # Extract the first word of "$ac_prog", so it can be a program name with args.
1886set dummy $ac_prog; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$ac_ct_CC"; then
1893  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900  for ac_exec_ext in '' $ac_executable_extensions; do
1901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902    ac_cv_prog_ac_ct_CC="$ac_prog"
1903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904    break 2
1905  fi
1906done
1907done
1908
1909fi
1910fi
1911ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912if test -n "$ac_ct_CC"; then
1913  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914echo "${ECHO_T}$ac_ct_CC" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920  test -n "$ac_ct_CC" && break
1921done
1922
1923  CC=$ac_ct_CC
1924fi
1925
1926
1927test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1928See \`config.log' for more details." >&5
1929echo "$as_me: error: no acceptable C compiler found in \$PATH
1930See \`config.log' for more details." >&2;}
1931   { (exit 1); exit 1; }; }
1932
1933# Provide some information about the compiler.
1934echo "$as_me:$LINENO:" \
1935     "checking for C compiler version" >&5
1936ac_compiler=`set X $ac_compile; echo $2`
1937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1938  (eval $ac_compiler --version </dev/null >&5) 2>&5
1939  ac_status=$?
1940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941  (exit $ac_status); }
1942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1943  (eval $ac_compiler -v </dev/null >&5) 2>&5
1944  ac_status=$?
1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946  (exit $ac_status); }
1947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1948  (eval $ac_compiler -V </dev/null >&5) 2>&5
1949  ac_status=$?
1950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951  (exit $ac_status); }
1952
1953cat >conftest.$ac_ext <<_ACEOF
1954/* confdefs.h.  */
1955_ACEOF
1956cat confdefs.h >>conftest.$ac_ext
1957cat >>conftest.$ac_ext <<_ACEOF
1958/* end confdefs.h.  */
1959
1960int
1961main ()
1962{
1963
1964  ;
1965  return 0;
1966}
1967_ACEOF
1968ac_clean_files_save=$ac_clean_files
1969ac_clean_files="$ac_clean_files a.out a.exe b.out"
1970# Try to create an executable without -o first, disregard a.out.
1971# It will help us diagnose broken compilers, and finding out an intuition
1972# of exeext.
1973echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1974echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1975ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1976if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1977  (eval $ac_link_default) 2>&5
1978  ac_status=$?
1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980  (exit $ac_status); }; then
1981  # Find the output, starting from the most likely.  This scheme is
1982# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1983# resort.
1984
1985# Be careful to initialize this variable, since it used to be cached.
1986# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1987ac_cv_exeext=
1988# b.out is created by i960 compilers.
1989for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1990do
1991  test -f "$ac_file" || continue
1992  case $ac_file in
1993    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1994        ;;
1995    conftest.$ac_ext )
1996        # This is the source file.
1997        ;;
1998    [ab].out )
1999        # We found the default executable, but exeext='' is most
2000        # certainly right.
2001        break;;
2002    *.* )
2003        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004        # FIXME: I believe we export ac_cv_exeext for Libtool,
2005        # but it would be cool to find out if it's true.  Does anybody
2006        # maintain Libtool? --akim.
2007        export ac_cv_exeext
2008        break;;
2009    * )
2010        break;;
2011  esac
2012done
2013else
2014  echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2018See \`config.log' for more details." >&5
2019echo "$as_me: error: C compiler cannot create executables
2020See \`config.log' for more details." >&2;}
2021   { (exit 77); exit 77; }; }
2022fi
2023
2024ac_exeext=$ac_cv_exeext
2025echo "$as_me:$LINENO: result: $ac_file" >&5
2026echo "${ECHO_T}$ac_file" >&6
2027
2028# Check the compiler produces executables we can run.  If not, either
2029# the compiler is broken, or we cross compile.
2030echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2031echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2032# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2033# If not cross compiling, check that we can run a simple program.
2034if test "$cross_compiling" != yes; then
2035  if { ac_try='./$ac_file'
2036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037  (eval $ac_try) 2>&5
2038  ac_status=$?
2039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040  (exit $ac_status); }; }; then
2041    cross_compiling=no
2042  else
2043    if test "$cross_compiling" = maybe; then
2044        cross_compiling=yes
2045    else
2046        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2047If you meant to cross compile, use \`--host'.
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot run C compiled programs.
2050If you meant to cross compile, use \`--host'.
2051See \`config.log' for more details." >&2;}
2052   { (exit 1); exit 1; }; }
2053    fi
2054  fi
2055fi
2056echo "$as_me:$LINENO: result: yes" >&5
2057echo "${ECHO_T}yes" >&6
2058
2059rm -f a.out a.exe conftest$ac_cv_exeext b.out
2060ac_clean_files=$ac_clean_files_save
2061# Check the compiler produces executables we can run.  If not, either
2062# the compiler is broken, or we cross compile.
2063echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2064echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2065echo "$as_me:$LINENO: result: $cross_compiling" >&5
2066echo "${ECHO_T}$cross_compiling" >&6
2067
2068echo "$as_me:$LINENO: checking for suffix of executables" >&5
2069echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2071  (eval $ac_link) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; then
2075  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2076# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2077# work properly (i.e., refer to `conftest.exe'), while it won't with
2078# `rm'.
2079for ac_file in conftest.exe conftest conftest.*; do
2080  test -f "$ac_file" || continue
2081  case $ac_file in
2082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2083    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084          export ac_cv_exeext
2085          break;;
2086    * ) break;;
2087  esac
2088done
2089else
2090  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2091See \`config.log' for more details." >&5
2092echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2093See \`config.log' for more details." >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096
2097rm -f conftest$ac_cv_exeext
2098echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2099echo "${ECHO_T}$ac_cv_exeext" >&6
2100
2101rm -f conftest.$ac_ext
2102EXEEXT=$ac_cv_exeext
2103ac_exeext=$EXEEXT
2104echo "$as_me:$LINENO: checking for suffix of object files" >&5
2105echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2106if test "${ac_cv_objext+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  cat >conftest.$ac_ext <<_ACEOF
2110/* confdefs.h.  */
2111_ACEOF
2112cat confdefs.h >>conftest.$ac_ext
2113cat >>conftest.$ac_ext <<_ACEOF
2114/* end confdefs.h.  */
2115
2116int
2117main ()
2118{
2119
2120  ;
2121  return 0;
2122}
2123_ACEOF
2124rm -f conftest.o conftest.obj
2125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126  (eval $ac_compile) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; then
2130  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2131  case $ac_file in
2132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2133    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2134       break;;
2135  esac
2136done
2137else
2138  echo "$as_me: failed program was:" >&5
2139sed 's/^/| /' conftest.$ac_ext >&5
2140
2141{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144See \`config.log' for more details." >&2;}
2145   { (exit 1); exit 1; }; }
2146fi
2147
2148rm -f conftest.$ac_cv_objext conftest.$ac_ext
2149fi
2150echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151echo "${ECHO_T}$ac_cv_objext" >&6
2152OBJEXT=$ac_cv_objext
2153ac_objext=$OBJEXT
2154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h.  */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h.  */
2165
2166int
2167main ()
2168{
2169#ifndef __GNUC__
2170       choke me
2171#endif
2172
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179  (eval $ac_compile) 2>conftest.er1
2180  ac_status=$?
2181  grep -v '^ *+' conftest.er1 >conftest.err
2182  rm -f conftest.er1
2183  cat conftest.err >&5
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); } &&
2186         { ac_try='test -z "$ac_c_werror_flag"
2187                         || test ! -s conftest.err'
2188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189  (eval $ac_try) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; } &&
2193         { ac_try='test -s conftest.$ac_objext'
2194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195  (eval $ac_try) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; }; then
2199  ac_compiler_gnu=yes
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204ac_compiler_gnu=no
2205fi
2206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207ac_cv_c_compiler_gnu=$ac_compiler_gnu
2208
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212GCC=`test $ac_compiler_gnu = yes && echo yes`
2213ac_test_CFLAGS=${CFLAGS+set}
2214ac_save_CFLAGS=$CFLAGS
2215CFLAGS="-g"
2216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218if test "${ac_cv_prog_cc_g+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238  (eval $ac_compile) 2>conftest.er1
2239  ac_status=$?
2240  grep -v '^ *+' conftest.er1 >conftest.err
2241  rm -f conftest.er1
2242  cat conftest.err >&5
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); } &&
2245         { ac_try='test -z "$ac_c_werror_flag"
2246                         || test ! -s conftest.err'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; } &&
2252         { ac_try='test -s conftest.$ac_objext'
2253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254  (eval $ac_try) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); }; }; then
2258  ac_cv_prog_cc_g=yes
2259else
2260  echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263ac_cv_prog_cc_g=no
2264fi
2265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269if test "$ac_test_CFLAGS" = set; then
2270  CFLAGS=$ac_save_CFLAGS
2271elif test $ac_cv_prog_cc_g = yes; then
2272  if test "$GCC" = yes; then
2273    CFLAGS="-g -O2"
2274  else
2275    CFLAGS="-g"
2276  fi
2277else
2278  if test "$GCC" = yes; then
2279    CFLAGS="-O2"
2280  else
2281    CFLAGS=
2282  fi
2283fi
2284echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287  echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289  ac_cv_prog_cc_stdc=no
2290ac_save_CC=$CC
2291cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h.  */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h.  */
2297#include <stdarg.h>
2298#include <stdio.h>
2299#include <sys/types.h>
2300#include <sys/stat.h>
2301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2302struct buf { int x; };
2303FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304static char *e (p, i)
2305     char **p;
2306     int i;
2307{
2308  return p[i];
2309}
2310static char *f (char * (*g) (char **, int), char **p, ...)
2311{
2312  char *s;
2313  va_list v;
2314  va_start (v,p);
2315  s = g (p, va_arg (v,int));
2316  va_end (v);
2317  return s;
2318}
2319
2320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2321   function prototypes and stuff, but not '\xHH' hex character constants.
2322   These don't provoke an error unfortunately, instead are silently treated
2323   as 'x'.  The following induces an error, until -std1 is added to get
2324   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2325   array size at least.  It's necessary to write '\x00'==0 to get something
2326   that's true only with -std1.  */
2327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328
2329int test (int i, double x);
2330struct s1 {int (*f) (int a);};
2331struct s2 {int (*f) (double a);};
2332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333int argc;
2334char **argv;
2335int
2336main ()
2337{
2338return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2339  ;
2340  return 0;
2341}
2342_ACEOF
2343# Don't try gcc -ansi; that turns off useful extensions and
2344# breaks some systems' header files.
2345# AIX                   -qlanglvl=ansi
2346# Ultrix and OSF/1      -std1
2347# HP-UX 10.20 and later -Ae
2348# HP-UX older versions  -Aa -D_HPUX_SOURCE
2349# SVR4                  -Xc -D__EXTENSIONS__
2350for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351do
2352  CC="$ac_save_CC $ac_arg"
2353  rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362         { ac_try='test -z "$ac_c_werror_flag"
2363                         || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369         { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  ac_cv_prog_cc_stdc=$ac_arg
2376break
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.err conftest.$ac_objext
2383done
2384rm -f conftest.$ac_ext conftest.$ac_objext
2385CC=$ac_save_CC
2386
2387fi
2388
2389case "x$ac_cv_prog_cc_stdc" in
2390  x|xno)
2391    echo "$as_me:$LINENO: result: none needed" >&5
2392echo "${ECHO_T}none needed" >&6 ;;
2393  *)
2394    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396    CC="$CC $ac_cv_prog_cc_stdc" ;;
2397esac
2398
2399# Some people use a C++ compiler to compile C.  Since we use `exit',
2400# in C++ we need to declare it.  In case someone uses the same compiler
2401# for both compiling C and C++ we need to have the C++ compiler decide
2402# the declaration of exit, since it's the most demanding environment.
2403cat >conftest.$ac_ext <<_ACEOF
2404#ifndef __cplusplus
2405  choke me
2406#endif
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  for ac_declaration in \
2431   '' \
2432   'extern "C" void std::exit (int) throw (); using std::exit;' \
2433   'extern "C" void std::exit (int); using std::exit;' \
2434   'extern "C" void exit (int) throw ();' \
2435   'extern "C" void exit (int);' \
2436   'void exit (int);'
2437do
2438  cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h.  */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h.  */
2444$ac_declaration
2445#include <stdlib.h>
2446int
2447main ()
2448{
2449exit (42);
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456  (eval $ac_compile) 2>conftest.er1
2457  ac_status=$?
2458  grep -v '^ *+' conftest.er1 >conftest.err
2459  rm -f conftest.er1
2460  cat conftest.err >&5
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); } &&
2463         { ac_try='test -z "$ac_c_werror_flag"
2464                         || test ! -s conftest.err'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; } &&
2470         { ac_try='test -s conftest.$ac_objext'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; }; then
2476  :
2477else
2478  echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484  cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h.  */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h.  */
2490$ac_declaration
2491int
2492main ()
2493{
2494exit (42);
2495  ;
2496  return 0;
2497}
2498_ACEOF
2499rm -f conftest.$ac_objext
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501  (eval $ac_compile) 2>conftest.er1
2502  ac_status=$?
2503  grep -v '^ *+' conftest.er1 >conftest.err
2504  rm -f conftest.er1
2505  cat conftest.err >&5
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); } &&
2508         { ac_try='test -z "$ac_c_werror_flag"
2509                         || test ! -s conftest.err'
2510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511  (eval $ac_try) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; } &&
2515         { ac_try='test -s conftest.$ac_objext'
2516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517  (eval $ac_try) 2>&5
2518  ac_status=$?
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; }; then
2521  break
2522else
2523  echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528done
2529rm -f conftest*
2530if test -n "$ac_declaration"; then
2531  echo '#ifdef __cplusplus' >>confdefs.h
2532  echo $ac_declaration      >>confdefs.h
2533  echo '#endif'             >>confdefs.h
2534fi
2535
2536else
2537  echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548CFLAGS="$save_cflags"
2549
2550# Check if a project specific CFLAGS variable has been set
2551if test x$COIN_PRJCT != x; then
2552  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2553  if test x$coin_tmp = xset; then
2554    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2555  fi
2556fi
2557
2558if test x"$CFLAGS" = x; then
2559
2560  coin_add_cflags=
2561  coin_opt_cflags=
2562  coin_dbg_cflags=
2563  coin_warn_cflags=
2564
2565  if test "$GCC" = "yes"; then
2566    case "$CC" in
2567      icc* | */icc*)
2568        ;;
2569      *)
2570        coin_opt_cflags="-O3 -fomit-frame-pointer"
2571        coin_add_cflags="-pipe"
2572        coin_dbg_cflags="-g"
2573        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2574        if test "$enable_doscompile" = yes; then
2575          case $build in
2576            *-cygwin*)
2577              CFLAGS="-mno-cygwin"
2578              cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h.  */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h.  */
2584
2585int
2586main ()
2587{
2588int i=0; i++;
2589  ;
2590  return 0;
2591}
2592_ACEOF
2593rm -f conftest.$ac_objext conftest$ac_exeext
2594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2595  (eval $ac_link) 2>conftest.er1
2596  ac_status=$?
2597  grep -v '^ *+' conftest.er1 >conftest.err
2598  rm -f conftest.er1
2599  cat conftest.err >&5
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); } &&
2602         { ac_try='test -z "$ac_c_werror_flag"
2603                         || test ! -s conftest.err'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; } &&
2609         { ac_try='test -s conftest$ac_exeext'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; }; then
2615  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2616else
2617  echo "$as_me: failed program was:" >&5
2618sed 's/^/| /' conftest.$ac_ext >&5
2619
2620fi
2621rm -f conftest.err conftest.$ac_objext \
2622      conftest$ac_exeext conftest.$ac_ext
2623              CFLAGS=
2624            ;;
2625          esac
2626        fi
2627    esac
2628  fi
2629  if test -z "$coin_opt_cflags"; then
2630    case $build in
2631      *-cygwin* | *-mingw*)
2632        case "$CC" in
2633          cl* | */cl*)
2634            coin_opt_cflags='-O2'
2635            coin_add_cflags='-nologo'
2636            coin_dbg_cflags='-Yd'
2637            ;;
2638        esac
2639        ;;
2640      *-linux-*)
2641        case "$CC" in
2642          icc* | */icc*)
2643            coin_opt_cflags="-O3 -ip"
2644            coin_add_cflags=""
2645            coin_dbg_cflags="-g"
2646            # Check if -i_dynamic is necessary (for new glibc library)
2647            CFLAGS=
2648            cat >conftest.$ac_ext <<_ACEOF
2649/* confdefs.h.  */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h.  */
2654
2655int
2656main ()
2657{
2658int i=0; i++;
2659  ;
2660  return 0;
2661}
2662_ACEOF
2663rm -f conftest.$ac_objext conftest$ac_exeext
2664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2665  (eval $ac_link) 2>conftest.er1
2666  ac_status=$?
2667  grep -v '^ *+' conftest.er1 >conftest.err
2668  rm -f conftest.er1
2669  cat conftest.err >&5
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); } &&
2672         { ac_try='test -z "$ac_c_werror_flag"
2673                         || test ! -s conftest.err'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; } &&
2679         { ac_try='test -s conftest$ac_exeext'
2680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681  (eval $ac_try) 2>&5
2682  ac_status=$?
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); }; }; then
2685  :
2686else
2687  echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690coin_add_cflags="-i_dynamic $coin_add_cflags"
2691fi
2692rm -f conftest.err conftest.$ac_objext \
2693      conftest$ac_exeext conftest.$ac_ext
2694            ;;
2695          pgcc* | */pgcc*)
2696            coin_opt_cflags="-fast"
2697            coin_add_cflags="-Kieee -pc 64"
2698            coin_dbg_cflags="-g"
2699            ;;
2700        esac
2701        ;;
2702      *-ibm-*)
2703        case "$CC" in
2704          xlc* | */xlc* | mpxlc* | */mpxlc*)
2705            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2706            coin_add_cflags="-bmaxdata:0x80000000"
2707            coin_dbg_cflags="-g"
2708          ;;
2709        esac
2710        ;;
2711      *-hp-*)
2712        coin_opt_cflags="-O"
2713        coin_add_cflags="-Ae"
2714        coin_dbg_cflags="-g"
2715        ;;
2716      *-sun-*)
2717        coin_opt_cflags="-xO4"
2718        coin_dbg_cflags="-g"
2719        ;;
2720      *-sgi-*)
2721        coin_opt_cflags="-O -OPT:Olimit=0"
2722        coin_dbg_cflags="-g"
2723        ;;
2724    esac
2725  fi
2726
2727  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2728    coin_dbg_cflags="-g"
2729  fi
2730
2731  if test -z "$coin_opt_cflags"; then
2732    # Try if -O option works if nothing else is set
2733    CFLAGS="-O"
2734    cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h.  */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h.  */
2740
2741int
2742main ()
2743{
2744int i=0; i++;
2745  ;
2746  return 0;
2747}
2748_ACEOF
2749rm -f conftest.$ac_objext conftest$ac_exeext
2750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2751  (eval $ac_link) 2>conftest.er1
2752  ac_status=$?
2753  grep -v '^ *+' conftest.er1 >conftest.err
2754  rm -f conftest.er1
2755  cat conftest.err >&5
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); } &&
2758         { ac_try='test -z "$ac_c_werror_flag"
2759                         || test ! -s conftest.err'
2760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761  (eval $ac_try) 2>&5
2762  ac_status=$?
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); }; } &&
2765         { ac_try='test -s conftest$ac_exeext'
2766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767  (eval $ac_try) 2>&5
2768  ac_status=$?
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); }; }; then
2771  coin_opt_cflags="-O"
2772else
2773  echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776fi
2777rm -f conftest.err conftest.$ac_objext \
2778      conftest$ac_exeext conftest.$ac_ext
2779  fi
2780
2781  if test x${DBG_CFLAGS+set} != xset; then
2782    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2783  fi
2784  if test x${OPT_CFLAGS+set} != xset; then
2785    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2786  fi
2787
2788  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2789  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2790
2791  if test "$coin_debug_compile" = "true"; then
2792    CFLAGS="$DBG_CFLAGS"
2793  else
2794    CFLAGS="$OPT_CFLAGS"
2795  fi
2796else
2797  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2798  if test x${DBG_CFLAGS+set} != xset; then
2799    DBG_CFLAGS="$CFLAGS"
2800  fi
2801  if test x${OPT_CFLAGS+set} != xset; then
2802    OPT_CFLAGS="$CFLAGS"
2803  fi
2804fi
2805
2806# Check if user wants to have additional CFLAGS options
2807
2808if test x"$ADD_CFLAGS" != x; then
2809  CFLAGS="$CFLAGS $ADD_CFLAGS"
2810fi
2811
2812# Try if CFLAGS works
2813save_CFLAGS="$CFLAGS"
2814cat >conftest.$ac_ext <<_ACEOF
2815/* confdefs.h.  */
2816_ACEOF
2817cat confdefs.h >>conftest.$ac_ext
2818cat >>conftest.$ac_ext <<_ACEOF
2819/* end confdefs.h.  */
2820
2821int
2822main ()
2823{
2824int i=0; i++;
2825  ;
2826  return 0;
2827}
2828_ACEOF
2829rm -f conftest.$ac_objext conftest$ac_exeext
2830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2831  (eval $ac_link) 2>conftest.er1
2832  ac_status=$?
2833  grep -v '^ *+' conftest.er1 >conftest.err
2834  rm -f conftest.er1
2835  cat conftest.err >&5
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); } &&
2838         { ac_try='test -z "$ac_c_werror_flag"
2839                         || test ! -s conftest.err'
2840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841  (eval $ac_try) 2>&5
2842  ac_status=$?
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); }; } &&
2845         { ac_try='test -s conftest$ac_exeext'
2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847  (eval $ac_try) 2>&5
2848  ac_status=$?
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); }; }; then
2851  :
2852else
2853  echo "$as_me: failed program was:" >&5
2854sed 's/^/| /' conftest.$ac_ext >&5
2855
2856CFLAGS=
2857fi
2858rm -f conftest.err conftest.$ac_objext \
2859      conftest$ac_exeext conftest.$ac_ext
2860if test -z "$CFLAGS"; then
2861  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
2862echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
2863  CFLAGS='-O'
2864  cat >conftest.$ac_ext <<_ACEOF
2865/* confdefs.h.  */
2866_ACEOF
2867cat confdefs.h >>conftest.$ac_ext
2868cat >>conftest.$ac_ext <<_ACEOF
2869/* end confdefs.h.  */
2870
2871int
2872main ()
2873{
2874int i=0; i++;
2875  ;
2876  return 0;
2877}
2878_ACEOF
2879rm -f conftest.$ac_objext conftest$ac_exeext
2880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881  (eval $ac_link) 2>conftest.er1
2882  ac_status=$?
2883  grep -v '^ *+' conftest.er1 >conftest.err
2884  rm -f conftest.er1
2885  cat conftest.err >&5
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); } &&
2888         { ac_try='test -z "$ac_c_werror_flag"
2889                         || test ! -s conftest.err'
2890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891  (eval $ac_try) 2>&5
2892  ac_status=$?
2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); }; } &&
2895         { ac_try='test -s conftest$ac_exeext'
2896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897  (eval $ac_try) 2>&5
2898  ac_status=$?
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); }; }; then
2901  :
2902else
2903  echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905
2906CFLAGS=
2907fi
2908rm -f conftest.err conftest.$ac_objext \
2909      conftest$ac_exeext conftest.$ac_ext
2910  if test -z "$CFLAGS"; then
2911    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
2912echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
2913  fi
2914fi
2915
2916{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2917echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2918
2919
2920if test x"$MPICC" = x; then :; else
2921  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2922echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2923  CC="$MPICC"
2924fi
2925
2926# Correct ADDLIBS initialization if we are using the MS compiler
2927case "$CC" in
2928  cl*)
2929    ADDLIBS=
2930    case $build in
2931  *-mingw*)
2932    if test "${LD+set}" = set; then :; else
2933      LD=link
2934    fi
2935    ;;
2936esac
2937
2938    ;;
2939esac
2940
2941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946
2947
2948
2949
2950
2951
2952ac_ext=f
2953ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2954ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2956
2957
2958
2959
2960
2961
2962coin_has_f77=yes
2963
2964save_fflags="$FFLAGS"
2965case $build in
2966  *-cygwin* | *-mingw*)
2967             comps="gfortran g77 ifort fl32" ;;
2968  *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
2969esac
2970
2971# We delete the cached value, since the test might not have been
2972# performed with out choise of compilers earlier
2973$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
2974ac_ext=f
2975ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2976ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2978if test -n "$ac_tool_prefix"; then
2979  for ac_prog in $comps
2980  do
2981    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2983echo "$as_me:$LINENO: checking for $ac_word" >&5
2984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985if test "${ac_cv_prog_F77+set}" = set; then
2986  echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988  if test -n "$F77"; then
2989  ac_cv_prog_F77="$F77" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994  IFS=$as_save_IFS
2995  test -z "$as_dir" && as_dir=.
2996  for ac_exec_ext in '' $ac_executable_extensions; do
2997  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
2999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000    break 2
3001  fi
3002done
3003done
3004
3005fi
3006fi
3007F77=$ac_cv_prog_F77
3008if test -n "$F77"; then
3009  echo "$as_me:$LINENO: result: $F77" >&5
3010echo "${ECHO_T}$F77" >&6
3011else
3012  echo "$as_me:$LINENO: result: no" >&5
3013echo "${ECHO_T}no" >&6
3014fi
3015
3016    test -n "$F77" && break
3017  done
3018fi
3019if test -z "$F77"; then
3020  ac_ct_F77=$F77
3021  for ac_prog in $comps
3022do
3023  # Extract the first word of "$ac_prog", so it can be a program name with args.
3024set dummy $ac_prog; ac_word=$2
3025echo "$as_me:$LINENO: checking for $ac_word" >&5
3026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3028  echo $ECHO_N "(cached) $ECHO_C" >&6
3029else
3030  if test -n "$ac_ct_F77"; then
3031  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036  IFS=$as_save_IFS
3037  test -z "$as_dir" && as_dir=.
3038  for ac_exec_ext in '' $ac_executable_extensions; do
3039  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040    ac_cv_prog_ac_ct_F77="$ac_prog"
3041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042    break 2
3043  fi
3044done
3045done
3046
3047fi
3048fi
3049ac_ct_F77=$ac_cv_prog_ac_ct_F77
3050if test -n "$ac_ct_F77"; then
3051  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3052echo "${ECHO_T}$ac_ct_F77" >&6
3053else
3054  echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
3056fi
3057
3058  test -n "$ac_ct_F77" && break
3059done
3060
3061  F77=$ac_ct_F77
3062fi
3063
3064
3065# Provide some information about the compiler.
3066echo "$as_me:3066:" \
3067     "checking for Fortran 77 compiler version" >&5
3068ac_compiler=`set X $ac_compile; echo $2`
3069{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3070  (eval $ac_compiler --version </dev/null >&5) 2>&5
3071  ac_status=$?
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); }
3074{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3075  (eval $ac_compiler -v </dev/null >&5) 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }
3079{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3080  (eval $ac_compiler -V </dev/null >&5) 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }
3084rm -f a.out
3085
3086# If we don't use `.F' as extension, the preprocessor is not run on the
3087# input file.  (Note that this only needs to work for GNU compilers.)
3088ac_save_ext=$ac_ext
3089ac_ext=F
3090echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3091echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3092if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3093  echo $ECHO_N "(cached) $ECHO_C" >&6
3094else
3095  cat >conftest.$ac_ext <<_ACEOF
3096      program main
3097#ifndef __GNUC__
3098       choke me
3099#endif
3100
3101      end
3102_ACEOF
3103rm -f conftest.$ac_objext
3104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105  (eval $ac_compile) 2>conftest.er1
3106  ac_status=$?
3107  grep -v '^ *+' conftest.er1 >conftest.err
3108  rm -f conftest.er1
3109  cat conftest.err >&5
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } &&
3112         { ac_try='test -z "$ac_f77_werror_flag"
3113                         || test ! -s conftest.err'
3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115  (eval $ac_try) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; } &&
3119         { ac_try='test -s conftest.$ac_objext'
3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121  (eval $ac_try) 2>&5
3122  ac_status=$?
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }; }; then
3125  ac_compiler_gnu=yes
3126else
3127  echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130ac_compiler_gnu=no
3131fi
3132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3134
3135fi
3136echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3137echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3138ac_ext=$ac_save_ext
3139ac_test_FFLAGS=${FFLAGS+set}
3140ac_save_FFLAGS=$FFLAGS
3141FFLAGS=
3142echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3143echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3144if test "${ac_cv_prog_f77_g+set}" = set; then
3145  echo $ECHO_N "(cached) $ECHO_C" >&6
3146else
3147  FFLAGS=-g
3148cat >conftest.$ac_ext <<_ACEOF
3149      program main
3150
3151      end
3152_ACEOF
3153rm -f conftest.$ac_objext
3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155  (eval $ac_compile) 2>conftest.er1
3156  ac_status=$?
3157  grep -v '^ *+' conftest.er1 >conftest.err
3158  rm -f conftest.er1
3159  cat conftest.err >&5
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); } &&
3162         { ac_try='test -z "$ac_f77_werror_flag"
3163                         || test ! -s conftest.err'
3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165  (eval $ac_try) 2>&5
3166  ac_status=$?
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }; } &&
3169         { ac_try='test -s conftest.$ac_objext'
3170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171  (eval $ac_try) 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }; }; then
3175  ac_cv_prog_f77_g=yes
3176else
3177  echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180ac_cv_prog_f77_g=no
3181fi
3182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3183
3184fi
3185echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3186echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3187if test "$ac_test_FFLAGS" = set; then
3188  FFLAGS=$ac_save_FFLAGS
3189elif test $ac_cv_prog_f77_g = yes; then
3190  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3191    FFLAGS="-g -O2"
3192  else
3193    FFLAGS="-g"
3194  fi
3195else
3196  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3197    FFLAGS="-O2"
3198  else
3199    FFLAGS=
3200  fi
3201fi
3202
3203G77=`test $ac_compiler_gnu = yes && echo yes`
3204ac_ext=f
3205ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3206ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3208
3209FFLAGS="$save_fflags"
3210
3211# Check if a project specific FFLAGS variable has been set
3212if test x$COIN_PRJCT != x; then
3213  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3214  if test x$coin_tmp = xset; then
3215    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3216  fi
3217fi
3218
3219if test x"$FFLAGS" = x; then
3220
3221  coin_add_fflags=
3222  coin_opt_fflags=
3223  coin_dbg_fflags=
3224  coin_warn_fflags=
3225
3226  if test "$G77" = "yes"; then
3227    coin_opt_fflags="-O3 -fomit-frame-pointer"
3228    coin_add_fflags="-pipe"
3229    coin_dbg_fflags="-g"
3230    if test "$enable_doscompile" = yes; then
3231      case $build in
3232        *-cygwin*)
3233          FFLAGS="-mno-cygwin"
3234          cat >conftest.$ac_ext <<_ACEOF
3235      program main
3236      write(*,*) 'Hello world'
3237      end
3238_ACEOF
3239rm -f conftest.$ac_objext conftest$ac_exeext
3240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3241  (eval $ac_link) 2>conftest.er1
3242  ac_status=$?
3243  grep -v '^ *+' conftest.er1 >conftest.err
3244  rm -f conftest.er1
3245  cat conftest.err >&5
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); } &&
3248         { ac_try='test -z "$ac_f77_werror_flag"
3249                         || test ! -s conftest.err'
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); }; } &&
3255         { ac_try='test -s conftest$ac_exeext'
3256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257  (eval $ac_try) 2>&5
3258  ac_status=$?
3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); }; }; then
3261  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3262else
3263  echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266fi
3267rm -f conftest.err conftest.$ac_objext \
3268      conftest$ac_exeext conftest.$ac_ext
3269          FFLAGS=
3270        ;;
3271      esac
3272    fi
3273  else
3274    case $build in
3275      *-cygwin* | *-mingw*)
3276        case $F77 in
3277          ifort* | */ifort*)
3278            coin_opt_fflags='-O3'
3279            coin_add_fflags='-nologo -MT'
3280            coin_dbg_fflags='-debug'
3281          ;;
3282        esac
3283        ;;
3284      *-linux-*)
3285        case $F77 in
3286          ifc* | */ifc* | ifort* | */ifort*)
3287            coin_opt_fflags="-O3 -ip"
3288            coin_add_fflags="-cm -w90 -w95"
3289            coin_dbg_fflags="-g -CA -CB -CS"
3290            # Check if -i_dynamic is necessary (for new glibc library)
3291            FFLAGS=
3292            cat >conftest.$ac_ext <<_ACEOF
3293      program main
3294      write(*,*) 'Hello world'
3295      end
3296_ACEOF
3297rm -f conftest.$ac_objext conftest$ac_exeext
3298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3299  (eval $ac_link) 2>conftest.er1
3300  ac_status=$?
3301  grep -v '^ *+' conftest.er1 >conftest.err
3302  rm -f conftest.er1
3303  cat conftest.err >&5
3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305  (exit $ac_status); } &&
3306         { ac_try='test -z "$ac_f77_werror_flag"
3307                         || test ! -s conftest.err'
3308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309  (eval $ac_try) 2>&5
3310  ac_status=$?
3311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312  (exit $ac_status); }; } &&
3313         { ac_try='test -s conftest$ac_exeext'
3314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315  (eval $ac_try) 2>&5
3316  ac_status=$?
3317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318  (exit $ac_status); }; }; then
3319  :
3320else
3321  echo "$as_me: failed program was:" >&5
3322sed 's/^/| /' conftest.$ac_ext >&5
3323
3324coin_add_fflags="-i_dynamic $coin_add_fflags"
3325fi
3326rm -f conftest.err conftest.$ac_objext \
3327      conftest$ac_exeext conftest.$ac_ext
3328            ;;
3329          pgf77* | */pgf77* | pgf90* | */pgf90*)
3330            coin_opt_fflags="-fast"
3331            coin_add_fflags="-Kieee -pc 64"
3332            coin_dbg_fflags="-g"
3333          ;;
3334        esac
3335        ;;
3336      *-ibm-*)
3337        case "$F77" in
3338          xlf* | */xlf* | mpxlf* | */mpxlf* )
3339            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3340            coin_add_fflags="-bmaxdata:0x80000000"
3341            coin_dbg_fflags="-g -C"
3342            ;;
3343        esac
3344        ;;
3345      *-hp-*)
3346        coin_opt_fflags="+O3"
3347        coin_add_fflags="+U77"
3348        coin_dbg_fflags="-C -g"
3349        ;;
3350      *-sun-*)
3351        coin_opt_fflags="-O4"
3352        coin_dbg_fflags="-g"
3353        ;;
3354      *-sgi-*)
3355        coin_opt_fflags="-O5 -OPT:Olimit=0"
3356        coin_dbg_fflags="-g"
3357        ;;
3358    esac
3359  fi
3360
3361  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3362    coin_dbg_fflags="-g"
3363  fi
3364
3365  if test -z "$coin_opt_fflags"; then
3366    # Try if -O option works if nothing else is set
3367    FFLAGS=-O
3368    cat >conftest.$ac_ext <<_ACEOF
3369      program main
3370      integer i
3371      end
3372_ACEOF
3373rm -f conftest.$ac_objext conftest$ac_exeext
3374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3375  (eval $ac_link) 2>conftest.er1
3376  ac_status=$?
3377  grep -v '^ *+' conftest.er1 >conftest.err
3378  rm -f conftest.er1
3379  cat conftest.err >&5
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); } &&
3382         { ac_try='test -z "$ac_f77_werror_flag"
3383                         || test ! -s conftest.err'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; } &&
3389         { ac_try='test -s conftest$ac_exeext'
3390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391  (eval $ac_try) 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }; }; then
3395  coin_opt_fflags="-O"
3396else
3397  echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400fi
3401rm -f conftest.err conftest.$ac_objext \
3402      conftest$ac_exeext conftest.$ac_ext
3403  fi
3404
3405  if test x${DBG_FFLAGS+set} != xset; then
3406    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3407  fi
3408  if test x${OPT_FFLAGS+set} != xset; then
3409    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3410  fi
3411
3412  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3413  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3414
3415  if test "$coin_debug_compile" = "true"; then
3416    FFLAGS="$DBG_FFLAGS"
3417  else
3418    FFLAGS="$OPT_FFLAGS"
3419  fi
3420else
3421  FFLAGS="$FFLAGS $ADD_FFLAGS"
3422  if test x${DBG_FFLAGS+set} != xset; then
3423    DBG_FFLAGS="$FFLAGS"
3424  fi
3425  if test x${OPT_FFLAGS+set} != xset; then
3426    OPT_FFLAGS="$FFLAGS"
3427  fi
3428fi
3429
3430# Try if FFLAGS works
3431cat >conftest.$ac_ext <<_ACEOF
3432      program main
3433      integer i
3434      end
3435_ACEOF
3436rm -f conftest.$ac_objext conftest$ac_exeext
3437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438  (eval $ac_link) 2>conftest.er1
3439  ac_status=$?
3440  grep -v '^ *+' conftest.er1 >conftest.err
3441  rm -f conftest.er1
3442  cat conftest.err >&5
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); } &&
3445         { ac_try='test -z "$ac_f77_werror_flag"
3446                         || test ! -s conftest.err'
3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448  (eval $ac_try) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }; } &&
3452         { ac_try='test -s conftest$ac_exeext'
3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454  (eval $ac_try) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }; }; then
3458  :
3459else
3460  echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463FFLAGS=
3464fi
3465rm -f conftest.err conftest.$ac_objext \
3466      conftest$ac_exeext conftest.$ac_ext
3467if test -z "$FFLAGS"; then
3468  { 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
3469echo "$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;}
3470  FFLAGS='-O'
3471  cat >conftest.$ac_ext <<_ACEOF
3472      program main
3473      integer i
3474      end
3475_ACEOF
3476rm -f conftest.$ac_objext conftest$ac_exeext
3477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3478  (eval $ac_link) 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } &&
3485         { ac_try='test -z "$ac_f77_werror_flag"
3486                         || test ! -s conftest.err'
3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); }; } &&
3492         { ac_try='test -s conftest$ac_exeext'
3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494  (eval $ac_try) 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }; }; then
3498  :
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503FFLAGS=
3504fi
3505rm -f conftest.err conftest.$ac_objext \
3506      conftest$ac_exeext conftest.$ac_ext
3507  if test -z "$FFLAGS"; then
3508    { 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
3509echo "$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;}
3510  fi
3511fi
3512
3513{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3514echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3515
3516
3517if test x"$MPIF77" = x; then :; else
3518  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3519echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3520  F77="$MPIF77"
3521fi
3522
3523case "$F77" in
3524  ifort*)
3525    case $build in
3526  *-mingw*)
3527    if test "${LD+set}" = set; then :; else
3528      LD=link
3529    fi
3530    ;;
3531esac
3532
3533    ;;
3534esac
3535
3536ac_ext=c
3537ac_cpp='$CPP $CPPFLAGS'
3538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541
3542
3543
3544# Initialize autotools
3545
3546# On Cygwin, building DLLs doesn't work
3547case $build in
3548  *-cygwin*)
3549    coin_disable_shared=yes
3550    platform=Cygwin
3551  ;;
3552  *-mingw*)
3553    coin_disable_shared=yes
3554    platform="Msys"
3555#    case "$CXX" in
3556#      cl*)
3557#        coin_disable_shared=yes
3558#        platform="Msys with cl"
3559#    ;;
3560#    esac
3561  ;;
3562esac
3563if test x"$coin_disable_shared" = xyes; then
3564  if test x"$enable_shared" = xyes; then
3565    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3566echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3567  fi
3568  enable_shared=no
3569fi
3570# By default, we only want the shared objects to be compiled
3571# Check whether --enable-static or --disable-static was given.
3572if test "${enable_static+set}" = set; then
3573  enableval="$enable_static"
3574  p=${PACKAGE-default}
3575    case $enableval in
3576    yes) enable_static=yes ;;
3577    no) enable_static=no ;;
3578    *)
3579     enable_static=no
3580      # Look at the argument we got.  We use all the common list separators.
3581      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3582      for pkg in $enableval; do
3583        IFS="$lt_save_ifs"
3584        if test "X$pkg" = "X$p"; then
3585          enable_static=yes
3586        fi
3587      done
3588      IFS="$lt_save_ifs"
3589      ;;
3590    esac
3591else
3592  enable_static=no
3593fi;
3594
3595
3596
3597echo "$as_me:$LINENO: checking for egrep" >&5
3598echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3599if test "${ac_cv_prog_egrep+set}" = set; then
3600  echo $ECHO_N "(cached) $ECHO_C" >&6
3601else
3602  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3603    then ac_cv_prog_egrep='grep -E'
3604    else ac_cv_prog_egrep='egrep'
3605    fi
3606fi
3607echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3608echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3609 EGREP=$ac_cv_prog_egrep
3610
3611
3612am__api_version="1.9"
3613# Find a good install program.  We prefer a C program (faster),
3614# so one script is as good as another.  But avoid the broken or
3615# incompatible versions:
3616# SysV /etc/install, /usr/sbin/install
3617# SunOS /usr/etc/install
3618# IRIX /sbin/install
3619# AIX /bin/install
3620# AmigaOS /C/install, which installs bootblocks on floppy discs
3621# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3622# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3623# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3624# OS/2's system install, which has a completely different semantic
3625# ./install, which can be erroneously created by make from ./install.sh.
3626echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3627echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3628if test -z "$INSTALL"; then
3629if test "${ac_cv_path_install+set}" = set; then
3630  echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635  IFS=$as_save_IFS
3636  test -z "$as_dir" && as_dir=.
3637  # Account for people who put trailing slashes in PATH elements.
3638case $as_dir/ in
3639  ./ | .// | /cC/* | \
3640  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3641  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3642  /usr/ucb/* ) ;;
3643  *)
3644    # OSF1 and SCO ODT 3.0 have their own names for install.
3645    # Don't use installbsd from OSF since it installs stuff as root
3646    # by default.
3647    for ac_prog in ginstall scoinst install; do
3648      for ac_exec_ext in '' $ac_executable_extensions; do
3649        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3650          if test $ac_prog = install &&
3651            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3652            # AIX install.  It has an incompatible calling convention.
3653            :
3654          elif test $ac_prog = install &&
3655            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3656            # program-specific install script used by HP pwplus--don't use.
3657            :
3658          else
3659            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3660            break 3
3661          fi
3662        fi
3663      done
3664    done
3665    ;;
3666esac
3667done
3668
3669
3670fi
3671  if test "${ac_cv_path_install+set}" = set; then
3672    INSTALL=$ac_cv_path_install
3673  else
3674    # As a last resort, use the slow shell script.  We don't cache a
3675    # path for INSTALL within a source directory, because that will
3676    # break other packages using the cache if that directory is
3677    # removed, or if the path is relative.
3678    INSTALL=$ac_install_sh
3679  fi
3680fi
3681echo "$as_me:$LINENO: result: $INSTALL" >&5
3682echo "${ECHO_T}$INSTALL" >&6
3683
3684# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3685# It thinks the first close brace ends the variable substitution.
3686test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3687
3688test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3689
3690test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3691
3692echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3693echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3694# Just in case
3695sleep 1
3696echo timestamp > conftest.file
3697# Do `set' in a subshell so we don't clobber the current shell's
3698# arguments.  Must try -L first in case configure is actually a
3699# symlink; some systems play weird games with the mod time of symlinks
3700# (eg FreeBSD returns the mod time of the symlink's containing
3701# directory).
3702if (
3703   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3704   if test "$*" = "X"; then
3705      # -L didn't work.
3706      set X `ls -t $srcdir/configure conftest.file`
3707   fi
3708   rm -f conftest.file
3709   if test "$*" != "X $srcdir/configure conftest.file" \
3710      && test "$*" != "X conftest.file $srcdir/configure"; then
3711
3712      # If neither matched, then we have a broken ls.  This can happen
3713      # if, for instance, CONFIG_SHELL is bash and it inherits a
3714      # broken ls alias from the environment.  This has actually
3715      # happened.  Such a system could not be considered "sane".
3716      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3717alias in your environment" >&5
3718echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3719alias in your environment" >&2;}
3720   { (exit 1); exit 1; }; }
3721   fi
3722
3723   test "$2" = conftest.file
3724   )
3725then
3726   # Ok.
3727   :
3728else
3729   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3730Check your system clock" >&5
3731echo "$as_me: error: newly created file is older than distributed files!
3732Check your system clock" >&2;}
3733   { (exit 1); exit 1; }; }
3734fi
3735echo "$as_me:$LINENO: result: yes" >&5
3736echo "${ECHO_T}yes" >&6
3737test "$program_prefix" != NONE &&
3738  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3739# Use a double $ so make ignores it.
3740test "$program_suffix" != NONE &&
3741  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3742# Double any \ or $.  echo might interpret backslashes.
3743# By default was `s,x,x', remove it if useless.
3744cat <<\_ACEOF >conftest.sed
3745s/[\\$]/&&/g;s/;s,x,x,$//
3746_ACEOF
3747program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3748rm conftest.sed
3749
3750# expand $ac_aux_dir to an absolute path
3751am_aux_dir=`cd $ac_aux_dir && pwd`
3752
3753test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3754# Use eval to expand $SHELL
3755if eval "$MISSING --run true"; then
3756  am_missing_run="$MISSING --run "
3757else
3758  am_missing_run=
3759  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3760echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3761fi
3762
3763if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3764  # We used to keeping the `.' as first argument, in order to
3765  # allow $(mkdir_p) to be used without argument.  As in
3766  #   $(mkdir_p) $(somedir)
3767  # where $(somedir) is conditionally defined.  However this is wrong
3768  # for two reasons:
3769  #  1. if the package is installed by a user who cannot write `.'
3770  #     make install will fail,
3771  #  2. the above comment should most certainly read
3772  #     $(mkdir_p) $(DESTDIR)$(somedir)
3773  #     so it does not work when $(somedir) is undefined and
3774  #     $(DESTDIR) is not.
3775  #  To support the latter case, we have to write
3776  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3777  #  so the `.' trick is pointless.
3778  mkdir_p='mkdir -p --'
3779else
3780  # On NextStep and OpenStep, the `mkdir' command does not
3781  # recognize any option.  It will interpret all options as
3782  # directories to create, and then abort because `.' already
3783  # exists.
3784  for d in ./-p ./--version;
3785  do
3786    test -d $d && rmdir $d
3787  done
3788  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3789  if test -f "$ac_aux_dir/mkinstalldirs"; then
3790    mkdir_p='$(mkinstalldirs)'
3791  else
3792    mkdir_p='$(install_sh) -d'
3793  fi
3794fi
3795
3796for ac_prog in gawk mawk nawk awk
3797do
3798  # Extract the first word of "$ac_prog", so it can be a program name with args.
3799set dummy $ac_prog; ac_word=$2
3800echo "$as_me:$LINENO: checking for $ac_word" >&5
3801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3802if test "${ac_cv_prog_AWK+set}" = set; then
3803  echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805  if test -n "$AWK"; then
3806  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811  IFS=$as_save_IFS
3812  test -z "$as_dir" && as_dir=.
3813  for ac_exec_ext in '' $ac_executable_extensions; do
3814  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815    ac_cv_prog_AWK="$ac_prog"
3816    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817    break 2
3818  fi
3819done
3820done
3821
3822fi
3823fi
3824AWK=$ac_cv_prog_AWK
3825if test -n "$AWK"; then
3826  echo "$as_me:$LINENO: result: $AWK" >&5
3827echo "${ECHO_T}$AWK" >&6
3828else
3829  echo "$as_me:$LINENO: result: no" >&5
3830echo "${ECHO_T}no" >&6
3831fi
3832
3833  test -n "$AWK" && break
3834done
3835
3836echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3837echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3838set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3839if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3840  echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842  cat >conftest.make <<\_ACEOF
3843all:
3844        @echo 'ac_maketemp="$(MAKE)"'
3845_ACEOF
3846# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3847eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3848if test -n "$ac_maketemp"; then
3849  eval ac_cv_prog_make_${ac_make}_set=yes
3850else
3851  eval ac_cv_prog_make_${ac_make}_set=no
3852fi
3853rm -f conftest.make
3854fi
3855if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3856  echo "$as_me:$LINENO: result: yes" >&5
3857echo "${ECHO_T}yes" >&6
3858  SET_MAKE=
3859else
3860  echo "$as_me:$LINENO: result: no" >&5
3861echo "${ECHO_T}no" >&6
3862  SET_MAKE="MAKE=${MAKE-make}"
3863fi
3864
3865rm -rf .tst 2>/dev/null
3866mkdir .tst 2>/dev/null
3867if test -d .tst; then
3868  am__leading_dot=.
3869else
3870  am__leading_dot=_
3871fi
3872rmdir .tst 2>/dev/null
3873
3874DEPDIR="${am__leading_dot}deps"
3875
3876          ac_config_commands="$ac_config_commands depfiles"
3877
3878
3879am_make=${MAKE-make}
3880cat > confinc << 'END'
3881am__doit:
3882        @echo done
3883.PHONY: am__doit
3884END
3885# If we don't find an include directive, just comment out the code.
3886echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3887echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3888am__include="#"
3889am__quote=
3890_am_result=none
3891# First try GNU make style include.
3892echo "include confinc" > confmf
3893# We grep out `Entering directory' and `Leaving directory'
3894# messages which can occur if `w' ends up in MAKEFLAGS.
3895# In particular we don't look at `^make:' because GNU make might
3896# be invoked under some other name (usually "gmake"), in which
3897# case it prints its new name instead of `make'.
3898if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3899   am__include=include
3900   am__quote=
3901   _am_result=GNU
3902fi
3903# Now try BSD make style include.
3904if test "$am__include" = "#"; then
3905   echo '.include "confinc"' > confmf
3906   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3907      am__include=.include
3908      am__quote="\""
3909      _am_result=BSD
3910   fi
3911fi
3912
3913
3914echo "$as_me:$LINENO: result: $_am_result" >&5
3915echo "${ECHO_T}$_am_result" >&6
3916rm -f confinc confmf
3917
3918# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3919if test "${enable_dependency_tracking+set}" = set; then
3920  enableval="$enable_dependency_tracking"
3921
3922fi;
3923if test "x$enable_dependency_tracking" != xno; then
3924  am_depcomp="$ac_aux_dir/depcomp"
3925  AMDEPBACKSLASH='\'
3926fi
3927
3928
3929if test "x$enable_dependency_tracking" != xno; then
3930  AMDEP_TRUE=
3931  AMDEP_FALSE='#'
3932else
3933  AMDEP_TRUE='#'
3934  AMDEP_FALSE=
3935fi
3936
3937
3938
3939ac_ext=c
3940ac_cpp='$CPP $CPPFLAGS'
3941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944
3945if test x"" = x; then
3946  hdr="#include <dlfcn.h>"
3947else
3948  hdr=""
3949fi
3950
3951for ac_header in dlfcn.h
3952do
3953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3954echo "$as_me:$LINENO: checking for $ac_header" >&5
3955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3956if eval "test \"\${$as_ac_Header+set}\" = set"; then
3957  echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959  cat >conftest.$ac_ext <<_ACEOF
3960/* confdefs.h.  */
3961_ACEOF
3962cat confdefs.h >>conftest.$ac_ext
3963cat >>conftest.$ac_ext <<_ACEOF
3964/* end confdefs.h.  */
3965$hdr
3966
3967#include <$ac_header>
3968_ACEOF
3969rm -f conftest.$ac_objext
3970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971  (eval $ac_compile) 2>conftest.er1
3972  ac_status=$?
3973  grep -v '^ *+' conftest.er1 >conftest.err
3974  rm -f conftest.er1
3975  cat conftest.err >&5
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); } &&
3978         { ac_try='test -z "$ac_c_werror_flag"
3979                         || test ! -s conftest.err'
3980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981  (eval $ac_try) 2>&5
3982  ac_status=$?
3983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984  (exit $ac_status); }; } &&
3985         { ac_try='test -s conftest.$ac_objext'
3986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987  (eval $ac_try) 2>&5
3988  ac_status=$?
3989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990  (exit $ac_status); }; }; then
3991  eval "$as_ac_Header=yes"
3992else
3993  echo "$as_me: failed program was:" >&5
3994sed 's/^/| /' conftest.$ac_ext >&5
3995
3996eval "$as_ac_Header=no"
3997fi
3998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3999fi
4000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4002if test `eval echo '${'$as_ac_Header'}'` = yes; then
4003  cat >>confdefs.h <<_ACEOF
4004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4005_ACEOF
4006
4007fi
4008
4009done
4010
4011
4012ac_ext=c
4013ac_cpp='$CPP $CPPFLAGS'
4014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017
4018
4019# Check whether --enable-shared or --disable-shared was given.
4020if test "${enable_shared+set}" = set; then
4021  enableval="$enable_shared"
4022  p=${PACKAGE-default}
4023    case $enableval in
4024    yes) enable_shared=yes ;;
4025    no) enable_shared=no ;;
4026    *)
4027      enable_shared=no
4028      # Look at the argument we got.  We use all the common list separators.
4029      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4030      for pkg in $enableval; do
4031        IFS="$lt_save_ifs"
4032        if test "X$pkg" = "X$p"; then
4033          enable_shared=yes
4034        fi
4035      done
4036      IFS="$lt_save_ifs"
4037      ;;
4038    esac
4039else
4040  enable_shared=yes
4041fi;
4042
4043# Check whether --enable-fast-install or --disable-fast-install was given.
4044if test "${enable_fast_install+set}" = set; then
4045  enableval="$enable_fast_install"
4046  p=${PACKAGE-default}
4047    case $enableval in
4048    yes) enable_fast_install=yes ;;
4049    no) enable_fast_install=no ;;
4050    *)
4051      enable_fast_install=no
4052      # Look at the argument we got.  We use all the common list separators.
4053      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4054      for pkg in $enableval; do
4055        IFS="$lt_save_ifs"
4056        if test "X$pkg" = "X$p"; then
4057          enable_fast_install=yes
4058        fi
4059      done
4060      IFS="$lt_save_ifs"
4061      ;;
4062    esac
4063else
4064  enable_fast_install=yes
4065fi;
4066
4067echo "$as_me:$LINENO: checking host system type" >&5
4068echo $ECHO_N "checking host system type... $ECHO_C" >&6
4069if test "${ac_cv_host+set}" = set; then
4070  echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072  ac_cv_host_alias=$host_alias
4073test -z "$ac_cv_host_alias" &&
4074  ac_cv_host_alias=$ac_cv_build_alias
4075ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4076  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4077echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4078   { (exit 1); exit 1; }; }
4079
4080fi
4081echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4082echo "${ECHO_T}$ac_cv_host" >&6
4083host=$ac_cv_host
4084host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4085host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4086host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4087
4088
4089echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4090echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4091if test "${lt_cv_path_SED+set}" = set; then
4092  echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094  # Loop through the user's path and test for sed and gsed.
4095# Then use that list of sed's as ones to test for truncation.
4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099  IFS=$as_save_IFS
4100  test -z "$as_dir" && as_dir=.
4101  for lt_ac_prog in sed gsed; do
4102    for ac_exec_ext in '' $ac_executable_extensions; do
4103      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4104        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4105      fi
4106    done
4107  done
4108done
4109lt_ac_max=0
4110lt_ac_count=0
4111# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4112# along with /bin/sed that truncates output.
4113for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4114  test ! -f $lt_ac_sed && continue
4115  cat /dev/null > conftest.in
4116  lt_ac_count=0
4117  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4118  # Check for GNU sed and select it if it is found.
4119  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4120    lt_cv_path_SED=$lt_ac_sed
4121    break
4122  fi
4123  while true; do
4124    cat conftest.in conftest.in >conftest.tmp
4125    mv conftest.tmp conftest.in
4126    cp conftest.in conftest.nl
4127    echo >>conftest.nl
4128    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4129    cmp -s conftest.out conftest.nl || break
4130    # 10000 chars as input seems more than enough
4131    test $lt_ac_count -gt 10 && break
4132    lt_ac_count=`expr $lt_ac_count + 1`
4133    if test $lt_ac_count -gt $lt_ac_max; then
4134      lt_ac_max=$lt_ac_count
4135      lt_cv_path_SED=$lt_ac_sed
4136    fi
4137  done
4138done
4139
4140fi
4141
4142SED=$lt_cv_path_SED
4143echo "$as_me:$LINENO: result: $SED" >&5
4144echo "${ECHO_T}$SED" >&6
4145
4146
4147# Check whether --with-gnu-ld or --without-gnu-ld was given.
4148if test "${with_gnu_ld+set}" = set; then
4149  withval="$with_gnu_ld"
4150  test "$withval" = no || with_gnu_ld=yes
4151else
4152  with_gnu_ld=no
4153fi;
4154ac_prog=ld
4155if test "$GCC" = yes; then
4156  # Check if gcc -print-prog-name=ld gives a path.
4157  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4158echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4159  case $host in
4160  *-*-mingw*)
4161    # gcc leaves a trailing carriage return which upsets mingw
4162    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4163  *)
4164    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4165  esac
4166  case $ac_prog in
4167    # Accept absolute paths.
4168    [\\/]* | ?:[\\/]*)
4169      re_direlt='/[^/][^/]*/\.\./'
4170      # Canonicalize the pathname of ld
4171      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4172      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4173        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4174      done
4175      test -z "$LD" && LD="$ac_prog"
4176      ;;
4177  "")
4178    # If it fails, then pretend we aren't using GCC.
4179    ac_prog=ld
4180    ;;
4181  *)
4182    # If it is relative, then search for the first ld in PATH.
4183    with_gnu_ld=unknown
4184    ;;
4185  esac
4186elif test "$with_gnu_ld" = yes; then
4187  echo "$as_me:$LINENO: checking for GNU ld" >&5
4188echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4189else
4190  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4191echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4192fi
4193if test "${lt_cv_path_LD+set}" = set; then
4194  echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196  if test -z "$LD"; then
4197  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4198  for ac_dir in $PATH; do
4199    IFS="$lt_save_ifs"
4200    test -z "$ac_dir" && ac_dir=.
4201    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4202      lt_cv_path_LD="$ac_dir/$ac_prog"
4203      # Check to see if the program is GNU ld.  I'd rather use --version,
4204      # but apparently some variants of GNU ld only accept -v.
4205      # Break only if it was the GNU/non-GNU ld that we prefer.
4206      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4207      *GNU* | *'with BFD'*)
4208        test "$with_gnu_ld" != no && break
4209        ;;
4210      *)
4211        test "$with_gnu_ld" != yes && break
4212        ;;
4213      esac
4214    fi
4215  done
4216  IFS="$lt_save_ifs"
4217else
4218  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4219fi
4220fi
4221
4222LD="$lt_cv_path_LD"
4223if test -n "$LD"; then
4224  echo "$as_me:$LINENO: result: $LD" >&5
4225echo "${ECHO_T}$LD" >&6
4226else
4227  echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6
4229fi
4230test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4231echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4232   { (exit 1); exit 1; }; }
4233echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4234echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4235if test "${lt_cv_prog_gnu_ld+set}" = set; then
4236  echo $ECHO_N "(cached) $ECHO_C" >&6
4237else
4238  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4239case `$LD -v 2>&1 </dev/null` in
4240*GNU* | *'with BFD'*)
4241  lt_cv_prog_gnu_ld=yes
4242  ;;
4243*)
4244  lt_cv_prog_gnu_ld=no
4245  ;;
4246esac
4247fi
4248echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4249echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4250with_gnu_ld=$lt_cv_prog_gnu_ld
4251
4252
4253echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4254echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4255if test "${lt_cv_ld_reload_flag+set}" = set; then
4256  echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
4258  lt_cv_ld_reload_flag='-r'
4259fi
4260echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4261echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4262reload_flag=$lt_cv_ld_reload_flag
4263case $reload_flag in
4264"" | " "*) ;;
4265*) reload_flag=" $reload_flag" ;;
4266esac
4267reload_cmds='$LD$reload_flag -o $output$reload_objs'
4268case $host_os in
4269  darwin*)
4270    if test "$GCC" = yes; then
4271      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4272    else
4273      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4274    fi
4275    ;;
4276esac
4277
4278echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4279echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4280if test "${lt_cv_path_NM+set}" = set; then
4281  echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
4283  if test -n "$NM"; then
4284  # Let the user override the test.
4285  lt_cv_path_NM="$NM"
4286else
4287  lt_nm_to_check="${ac_tool_prefix}nm"
4288  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4289    lt_nm_to_check="$lt_nm_to_check nm"
4290  fi
4291  for lt_tmp_nm in $lt_nm_to_check; do
4292    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4293    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4294      IFS="$lt_save_ifs"
4295      test -z "$ac_dir" && ac_dir=.
4296      tmp_nm="$ac_dir/$lt_tmp_nm"
4297      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4298        # Check to see if the nm accepts a BSD-compat flag.
4299        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4300        #   nm: unknown option "B" ignored
4301        # Tru64's nm complains that /dev/null is an invalid object file
4302        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4303        */dev/null* | *'Invalid file or object type'*)
4304          lt_cv_path_NM="$tmp_nm -B"
4305          break
4306          ;;
4307        *)
4308          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4309          */dev/null*)
4310            lt_cv_path_NM="$tmp_nm -p"
4311            break
4312            ;;
4313          *)
4314            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4315            continue # so that we can try to find one that supports BSD flags
4316            ;;
4317          esac
4318          ;;
4319        esac
4320      fi
4321    done
4322    IFS="$lt_save_ifs"
4323  done
4324  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4325fi
4326fi
4327echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4328echo "${ECHO_T}$lt_cv_path_NM" >&6
4329NM="$lt_cv_path_NM"
4330
4331echo "$as_me:$LINENO: checking whether ln -s works" >&5
4332echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4333LN_S=$as_ln_s
4334if test "$LN_S" = "ln -s"; then
4335  echo "$as_me:$LINENO: result: yes" >&5
4336echo "${ECHO_T}yes" >&6
4337else
4338  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4339echo "${ECHO_T}no, using $LN_S" >&6
4340fi
4341
4342echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4343echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4344if test "${lt_cv_deplibs_check_method+set}" = set; then
4345  echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347  lt_cv_file_magic_cmd='$MAGIC_CMD'
4348lt_cv_file_magic_test_file=
4349lt_cv_deplibs_check_method='unknown'
4350# Need to set the preceding variable on all platforms that support
4351# interlibrary dependencies.
4352# 'none' -- dependencies not supported.
4353# `unknown' -- same as none, but documents that we really don't know.
4354# 'pass_all' -- all dependencies passed with no checks.
4355# 'test_compile' -- check by making test program.
4356# 'file_magic [[regex]]' -- check by looking for files in library path
4357# which responds to the $file_magic_cmd with a given extended regex.
4358# If you have `file' or equivalent on your system and you're not sure
4359# whether `pass_all' will *always* work, you probably want this one.
4360
4361case $host_os in
4362aix4* | aix5*)
4363  lt_cv_deplibs_check_method=pass_all
4364  ;;
4365
4366beos*)
4367  lt_cv_deplibs_check_method=pass_all
4368  ;;
4369
4370bsdi[45]*)
4371  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4372  lt_cv_file_magic_cmd='/usr/bin/file -L'
4373  lt_cv_file_magic_test_file=/shlib/libc.so
4374  ;;
4375
4376cygwin*)
4377  # func_win32_libid is a shell function defined in ltmain.sh
4378  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4379  lt_cv_file_magic_cmd='func_win32_libid'
4380  ;;
4381
4382mingw* | pw32*)
4383  # Base MSYS/MinGW do not provide the 'file' command needed by
4384  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4385  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4386  lt_cv_file_magic_cmd='$OBJDUMP -f'
4387  ;;
4388
4389darwin* | rhapsody*)
4390  lt_cv_deplibs_check_method=pass_all
4391  ;;
4392
4393freebsd* | kfreebsd*-gnu | dragonfly*)
4394  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4395    case $host_cpu in
4396    i*86 )
4397      # Not sure whether the presence of OpenBSD here was a mistake.
4398      # Let's accept both of them until this is cleared up.
4399      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4400      lt_cv_file_magic_cmd=/usr/bin/file
4401      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4402      ;;
4403    esac
4404  else
4405    lt_cv_deplibs_check_method=pass_all
4406  fi
4407  ;;
4408
4409gnu*)
4410  lt_cv_deplibs_check_method=pass_all
4411  ;;
4412
4413hpux10.20* | hpux11*)
4414  lt_cv_file_magic_cmd=/usr/bin/file
4415  case $host_cpu in
4416  ia64*)
4417    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4418    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4419    ;;
4420  hppa*64*)
4421    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]'
4422    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4423    ;;
4424  *)
4425    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4426    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4427    ;;
4428  esac
4429  ;;
4430
4431interix3*)
4432  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4433  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4434  ;;
4435
4436irix5* | irix6* | nonstopux*)
4437  case $LD in
4438  *-32|*"-32 ") libmagic=32-bit;;
4439  *-n32|*"-n32 ") libmagic=N32;;
4440  *-64|*"-64 ") libmagic=64-bit;;
4441  *) libmagic=never-match;;
4442  esac
4443  lt_cv_deplibs_check_method=pass_all
4444  ;;
4445
4446# This must be Linux ELF.
4447linux*)
4448  lt_cv_deplibs_check_method=pass_all
4449  ;;
4450
4451netbsd*)
4452  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4453    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4454  else
4455    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4456  fi
4457  ;;
4458
4459newos6*)
4460  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4461  lt_cv_file_magic_cmd=/usr/bin/file
4462  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4463  ;;
4464
4465nto-qnx*)
4466  lt_cv_deplibs_check_method=unknown
4467  ;;
4468
4469openbsd*)
4470  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4471    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4472  else
4473    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4474  fi
4475  ;;
4476
4477osf3* | osf4* | osf5*)
4478  lt_cv_deplibs_check_method=pass_all
4479  ;;
4480
4481solaris*)
4482  lt_cv_deplibs_check_method=pass_all
4483  ;;
4484
4485sysv4 | sysv4.3*)
4486  case $host_vendor in
4487  motorola)
4488    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]'
4489    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4490    ;;
4491  ncr)
4492    lt_cv_deplibs_check_method=pass_all
4493    ;;
4494  sequent)
4495    lt_cv_file_magic_cmd='/bin/file'
4496    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4497    ;;
4498  sni)
4499    lt_cv_file_magic_cmd='/bin/file'
4500    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4501    lt_cv_file_magic_test_file=/lib/libc.so
4502    ;;
4503  siemens)
4504    lt_cv_deplibs_check_method=pass_all
4505    ;;
4506  pc)
4507    lt_cv_deplibs_check_method=pass_all
4508    ;;
4509  esac
4510  ;;
4511
4512sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4513  lt_cv_deplibs_check_method=pass_all
4514  ;;
4515esac
4516
4517fi
4518echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4519echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4520file_magic_cmd=$lt_cv_file_magic_cmd
4521deplibs_check_method=$lt_cv_deplibs_check_method
4522test -z "$deplibs_check_method" && deplibs_check_method=unknown
4523
4524
4525
4526
4527# If no C compiler was specified, use CC.
4528LTCC=${LTCC-"$CC"}
4529
4530# If no C compiler flags were specified, use CFLAGS.
4531LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4532
4533# Allow CC to be a program name with arguments.
4534compiler=$CC
4535
4536# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4537if test "${enable_libtool_lock+set}" = set; then
4538  enableval="$enable_libtool_lock"
4539
4540fi;
4541test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4542
4543# Some flags need to be propagated to the compiler or linker for good
4544# libtool support.
4545case $host in
4546ia64-*-hpux*)
4547  # Find out which ABI we are using.
4548  echo 'int i;' > conftest.$ac_ext
4549  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550  (eval $ac_compile) 2>&5
4551  ac_status=$?
4552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553  (exit $ac_status); }; then
4554    case `/usr/bin/file conftest.$ac_objext` in
4555    *ELF-32*)
4556      HPUX_IA64_MODE="32"
4557      ;;
4558    *ELF-64*)
4559      HPUX_IA64_MODE="64"
4560      ;;
4561    esac
4562  fi
4563  rm -rf conftest*
4564  ;;
4565*-*-irix6*)
4566  # Find out which ABI we are using.
4567  echo '#line 4567 "configure"' > conftest.$ac_ext
4568  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569  (eval $ac_compile) 2>&5
4570  ac_status=$?
4571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572  (exit $ac_status); }; then
4573   if test "$lt_cv_prog_gnu_ld" = yes; then
4574    case `/usr/bin/file conftest.$ac_objext` in
4575    *32-bit*)
4576      LD="${LD-ld} -melf32bsmip"
4577      ;;
4578    *N32*)
4579      LD="${LD-ld} -melf32bmipn32"
4580      ;;
4581    *64-bit*)
4582      LD="${LD-ld} -melf64bmip"
4583      ;;
4584    esac
4585   else
4586    case `/usr/bin/file conftest.$ac_objext` in
4587    *32-bit*)
4588      LD="${LD-ld} -32"
4589      ;;
4590    *N32*)
4591      LD="${LD-ld} -n32"
4592      ;;
4593    *64-bit*)
4594      LD="${LD-ld} -64"
4595      ;;
4596    esac
4597   fi
4598  fi
4599  rm -rf conftest*
4600  ;;
4601
4602x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4603  # Find out which ABI we are using.
4604  echo 'int i;' > conftest.$ac_ext
4605  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606  (eval $ac_compile) 2>&5
4607  ac_status=$?
4608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609  (exit $ac_status); }; then
4610    case `/usr/bin/file conftest.o` in
4611    *32-bit*)
4612      case $host in
4613        x86_64-*linux*)
4614          LD="${LD-ld} -m elf_i386"
4615          ;;
4616        ppc64-*linux*|powerpc64-*linux*)
4617          LD="${LD-ld} -m elf32ppclinux"
4618          ;;
4619        s390x-*linux*)
4620          LD="${LD-ld} -m elf_s390"
4621          ;;
4622        sparc64-*linux*)
4623          LD="${LD-ld} -m elf32_sparc"
4624          ;;
4625      esac
4626      ;;
4627    *64-bit*)
4628      case $host in
4629        x86_64-*linux*)
4630          LD="${LD-ld} -m elf_x86_64"
4631          ;;
4632        ppc*-*linux*|powerpc*-*linux*)
4633          LD="${LD-ld} -m elf64ppc"
4634          ;;
4635        s390*-*linux*)
4636          LD="${LD-ld} -m elf64_s390"
4637          ;;
4638        sparc*-*linux*)
4639          LD="${LD-ld} -m elf64_sparc"
4640          ;;
4641      esac
4642      ;;
4643    esac
4644  fi
4645  rm -rf conftest*
4646  ;;
4647
4648*-*-sco3.2v5*)
4649  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4650  SAVE_CFLAGS="$CFLAGS"
4651  CFLAGS="$CFLAGS -belf"
4652  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4653echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4654if test "${lt_cv_cc_needs_belf+set}" = set; then
4655  echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657  ac_ext=c
4658ac_cpp='$CPP $CPPFLAGS'
4659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662
4663     cat >conftest.$ac_ext <<_ACEOF
4664/* confdefs.h.  */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h.  */
4669
4670int
4671main ()
4672{
4673
4674  ;
4675  return 0;
4676}
4677_ACEOF
4678rm -f conftest.$ac_objext conftest$ac_exeext
4679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680  (eval $ac_link) 2>conftest.er1
4681  ac_status=$?
4682  grep -v '^ *+' conftest.er1 >conftest.err
4683  rm -f conftest.er1
4684  cat conftest.err >&5
4685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686  (exit $ac_status); } &&
4687         { ac_try='test -z "$ac_c_werror_flag"
4688                         || test ! -s conftest.err'
4689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690  (eval $ac_try) 2>&5
4691  ac_status=$?
4692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693  (exit $ac_status); }; } &&
4694         { ac_try='test -s conftest$ac_exeext'
4695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696  (eval $ac_try) 2>&5
4697  ac_status=$?
4698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699  (exit $ac_status); }; }; then
4700  lt_cv_cc_needs_belf=yes
4701else
4702  echo "$as_me: failed program was:" >&5
4703sed 's/^/| /' conftest.$ac_ext >&5
4704
4705lt_cv_cc_needs_belf=no
4706fi
4707rm -f conftest.err conftest.$ac_objext \
4708      conftest$ac_exeext conftest.$ac_ext
4709     ac_ext=c
4710ac_cpp='$CPP $CPPFLAGS'
4711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714
4715fi
4716echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4717echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4718  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4719    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4720    CFLAGS="$SAVE_CFLAGS"
4721  fi
4722  ;;
4723sparc*-*solaris*)
4724  # Find out which ABI we are using.
4725  echo 'int i;' > conftest.$ac_ext
4726  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727  (eval $ac_compile) 2>&5
4728  ac_status=$?
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); }; then
4731    case `/usr/bin/file conftest.o` in
4732    *64-bit*)
4733      case $lt_cv_prog_gnu_ld in
4734      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4735      *)    LD="${LD-ld} -64" ;;
4736      esac
4737      ;;
4738    esac
4739  fi
4740  rm -rf conftest*
4741  ;;
4742
4743
4744esac
4745
4746need_locks="$enable_libtool_lock"
4747
4748
4749ac_ext=c
4750ac_cpp='$CPP $CPPFLAGS'
4751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4755echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4756# On Suns, sometimes $CPP names a directory.
4757if test -n "$CPP" && test -d "$CPP"; then
4758  CPP=
4759fi
4760if test -z "$CPP"; then
4761  if test "${ac_cv_prog_CPP+set}" = set; then
4762  echo $ECHO_N "(cached) $ECHO_C" >&6
4763else
4764      # Double quotes because CPP needs to be expanded
4765    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4766    do
4767      ac_preproc_ok=false
4768for ac_c_preproc_warn_flag in '' yes
4769do
4770  # Use a header file that comes with gcc, so configuring glibc
4771  # with a fresh cross-compiler works.
4772  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4773  # <limits.h> exists even on freestanding compilers.
4774  # On the NeXT, cc -E runs the code through the compiler's parser,
4775  # not just through cpp. "Syntax error" is here to catch this case.
4776  cat >conftest.$ac_ext <<_ACEOF
4777/* confdefs.h.  */
4778_ACEOF
4779cat confdefs.h >>conftest.$ac_ext
4780cat >>conftest.$ac_ext <<_ACEOF
4781/* end confdefs.h.  */
4782#ifdef __STDC__
4783# include <limits.h>
4784#else
4785# include <assert.h>
4786#endif
4787                     Syntax error
4788_ACEOF
4789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4790  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4791  ac_status=$?
4792  grep -v '^ *+' conftest.er1 >conftest.err
4793  rm -f conftest.er1
4794  cat conftest.err >&5
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); } >/dev/null; then
4797  if test -s conftest.err; then
4798    ac_cpp_err=$ac_c_preproc_warn_flag
4799    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4800  else
4801    ac_cpp_err=
4802  fi
4803else
4804  ac_cpp_err=yes
4805fi
4806if test -z "$ac_cpp_err"; then
4807  :
4808else
4809  echo "$as_me: failed program was:" >&5
4810sed 's/^/| /' conftest.$ac_ext >&5
4811
4812  # Broken: fails on valid input.
4813continue
4814fi
4815rm -f conftest.err conftest.$ac_ext
4816
4817  # OK, works on sane cases.  Now check whether non-existent headers
4818  # can be detected and how.
4819  cat >conftest.$ac_ext <<_ACEOF
4820/* confdefs.h.  */
4821_ACEOF
4822cat confdefs.h >>conftest.$ac_ext
4823cat >>conftest.$ac_ext <<_ACEOF
4824/* end confdefs.h.  */
4825#include <ac_nonexistent.h>
4826_ACEOF
4827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4829  ac_status=$?
4830  grep -v '^ *+' conftest.er1 >conftest.err
4831  rm -f conftest.er1
4832  cat conftest.err >&5
4833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834  (exit $ac_status); } >/dev/null; then
4835  if test -s conftest.err; then
4836    ac_cpp_err=$ac_c_preproc_warn_flag
4837    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4838  else
4839    ac_cpp_err=
4840  fi
4841else
4842  ac_cpp_err=yes
4843fi
4844if test -z "$ac_cpp_err"; then
4845  # Broken: success on invalid input.
4846continue
4847else
4848  echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851  # Passes both tests.
4852ac_preproc_ok=:
4853break
4854fi
4855rm -f conftest.err conftest.$ac_ext
4856
4857done
4858# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4859rm -f conftest.err conftest.$ac_ext
4860if $ac_preproc_ok; then
4861  break
4862fi
4863
4864    done
4865    ac_cv_prog_CPP=$CPP
4866
4867fi
4868  CPP=$ac_cv_prog_CPP
4869else
4870  ac_cv_prog_CPP=$CPP
4871fi
4872echo "$as_me:$LINENO: result: $CPP" >&5
4873echo "${ECHO_T}$CPP" >&6
4874ac_preproc_ok=false
4875for ac_c_preproc_warn_flag in '' yes
4876do
4877  # Use a header file that comes with gcc, so configuring glibc
4878  # with a fresh cross-compiler works.
4879  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4880  # <limits.h> exists even on freestanding compilers.
4881  # On the NeXT, cc -E runs the code through the compiler's parser,
4882  # not just through cpp. "Syntax error" is here to catch this case.
4883  cat >conftest.$ac_ext <<_ACEOF
4884/* confdefs.h.  */
4885_ACEOF
4886cat confdefs.h >>conftest.$ac_ext
4887cat >>conftest.$ac_ext <<_ACEOF
4888/* end confdefs.h.  */
4889#ifdef __STDC__
4890# include <limits.h>
4891#else
4892# include <assert.h>
4893#endif
4894                     Syntax error
4895_ACEOF
4896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4897  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4904  if test -s conftest.err; then
4905    ac_cpp_err=$ac_c_preproc_warn_flag
4906    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4907  else
4908    ac_cpp_err=
4909  fi
4910else
4911  ac_cpp_err=yes
4912fi
4913if test -z "$ac_cpp_err"; then
4914  :
4915else
4916  echo "$as_me: failed program was:" >&5
4917sed 's/^/| /' conftest.$ac_ext >&5
4918
4919  # Broken: fails on valid input.
4920continue
4921fi
4922rm -f conftest.err conftest.$ac_ext
4923
4924  # OK, works on sane cases.  Now check whether non-existent headers
4925  # can be detected and how.
4926  cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h.  */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h.  */
4932#include <ac_nonexistent.h>
4933_ACEOF
4934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936  ac_status=$?
4937  grep -v '^ *+' conftest.er1 >conftest.err
4938  rm -f conftest.er1
4939  cat conftest.err >&5
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); } >/dev/null; then
4942  if test -s conftest.err; then
4943    ac_cpp_err=$ac_c_preproc_warn_flag
4944    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4945  else
4946    ac_cpp_err=
4947  fi
4948else
4949  ac_cpp_err=yes
4950fi
4951if test -z "$ac_cpp_err"; then
4952  # Broken: success on invalid input.
4953continue
4954else
4955  echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958  # Passes both tests.
4959ac_preproc_ok=:
4960break
4961fi
4962rm -f conftest.err conftest.$ac_ext
4963
4964done
4965# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966rm -f conftest.err conftest.$ac_ext
4967if $ac_preproc_ok; then
4968  :
4969else
4970  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4971See \`config.log' for more details." >&5
4972echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4973See \`config.log' for more details." >&2;}
4974   { (exit 1); exit 1; }; }
4975fi
4976
4977ac_ext=c
4978ac_cpp='$CPP $CPPFLAGS'
4979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982
4983
4984echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4985echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4986if test "${ac_cv_header_stdc+set}" = set; then
4987  echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4989  cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h.  */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h.  */
4995#include <stdlib.h>
4996#include <stdarg.h>
4997#include <string.h>
4998#include <float.h>
4999
5000int
5001main ()
5002{
5003
5004  ;
5005  return 0;
5006}
5007_ACEOF
5008rm -f conftest.$ac_objext
5009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010  (eval $ac_compile) 2>conftest.er1
5011  ac_status=$?
5012  grep -v '^ *+' conftest.er1 >conftest.err
5013  rm -f conftest.er1
5014  cat conftest.err >&5
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); } &&
5017         { ac_try='test -z "$ac_c_werror_flag"
5018                         || test ! -s conftest.err'
5019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020  (eval $ac_try) 2>&5
5021  ac_status=$?
5022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023  (exit $ac_status); }; } &&
5024         { ac_try='test -s conftest.$ac_objext'
5025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026  (eval $ac_try) 2>&5
5027  ac_status=$?
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); }; }; then
5030  ac_cv_header_stdc=yes
5031else
5032  echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035ac_cv_header_stdc=no
5036fi
5037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038
5039if test $ac_cv_header_stdc = yes; then
5040  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5041  cat >conftest.$ac_ext <<_ACEOF
5042/* confdefs.h.  */
5043_ACEOF
5044cat confdefs.h >>conftest.$ac_ext
5045cat >>conftest.$ac_ext <<_ACEOF
5046/* end confdefs.h.  */
5047#include <string.h>
5048
5049_ACEOF
5050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5051  $EGREP "memchr" >/dev/null 2>&1; then
5052  :
5053else
5054  ac_cv_header_stdc=no
5055fi
5056rm -f conftest*
5057
5058fi
5059
5060if test $ac_cv_header_stdc = yes; then
5061  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5062  cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h.  */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h.  */
5068#include <stdlib.h>
5069
5070_ACEOF
5071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5072  $EGREP "free" >/dev/null 2>&1; then
5073  :
5074else
5075  ac_cv_header_stdc=no
5076fi
5077rm -f conftest*
5078
5079fi
5080
5081if test $ac_cv_header_stdc = yes; then
5082  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5083  if test "$cross_compiling" = yes; then
5084  :
5085else
5086  cat >conftest.$ac_ext <<_ACEOF
5087/* confdefs.h.  */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h.  */
5092#include <ctype.h>
5093#if ((' ' & 0x0FF) == 0x020)
5094# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5095# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5096#else
5097# define ISLOWER(c) \
5098                   (('a' <= (c) && (c) <= 'i') \
5099                     || ('j' <= (c) && (c) <= 'r') \
5100                     || ('s' <= (c) && (c) <= 'z'))
5101# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5102#endif
5103
5104#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5105int
5106main ()
5107{
5108  int i;
5109  for (i = 0; i < 256; i++)
5110    if (XOR (islower (i), ISLOWER (i))
5111        || toupper (i) != TOUPPER (i))
5112      exit(2);
5113  exit (0);
5114}
5115_ACEOF
5116rm -f conftest$ac_exeext
5117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118  (eval $ac_link) 2>&5
5119  ac_status=$?
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123  (eval $ac_try) 2>&5
5124  ac_status=$?
5125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); }; }; then
5127  :
5128else
5129  echo "$as_me: program exited with status $ac_status" >&5
5130echo "$as_me: failed program was:" >&5
5131sed 's/^/| /' conftest.$ac_ext >&5
5132
5133( exit $ac_status )
5134ac_cv_header_stdc=no
5135fi
5136rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5137fi
5138fi
5139fi
5140echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5141echo "${ECHO_T}$ac_cv_header_stdc" >&6
5142if test $ac_cv_header_stdc = yes; then
5143
5144cat >>confdefs.h <<\_ACEOF
5145#define STDC_HEADERS 1
5146_ACEOF
5147
5148fi
5149
5150# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5161                  inttypes.h stdint.h unistd.h
5162do
5163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5164echo "$as_me:$LINENO: checking for $ac_header" >&5
5165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5166if eval "test \"\${$as_ac_Header+set}\" = set"; then
5167  echo $ECHO_N "(cached) $ECHO_C" >&6
5168else
5169  cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h.  */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h.  */
5175$ac_includes_default
5176
5177#include <$ac_header>
5178_ACEOF
5179rm -f conftest.$ac_objext
5180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181  (eval $ac_compile) 2>conftest.er1
5182  ac_status=$?
5183  grep -v '^ *+' conftest.er1 >conftest.err
5184  rm -f conftest.er1
5185  cat conftest.err >&5
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); } &&
5188         { ac_try='test -z "$ac_c_werror_flag"
5189                         || test ! -s conftest.err'
5190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191  (eval $ac_try) 2>&5
5192  ac_status=$?
5193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194  (exit $ac_status); }; } &&
5195         { ac_try='test -s conftest.$ac_objext'
5196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197  (eval $ac_try) 2>&5
5198  ac_status=$?
5199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200  (exit $ac_status); }; }; then
5201  eval "$as_ac_Header=yes"
5202else
5203  echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
5206eval "$as_ac_Header=no"
5207fi
5208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209fi
5210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5212if test `eval echo '${'$as_ac_Header'}'` = yes; then
5213  cat >>confdefs.h <<_ACEOF
5214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215_ACEOF
5216
5217fi
5218
5219done
5220
5221
5222
5223for ac_header in dlfcn.h
5224do
5225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226if eval "test \"\${$as_ac_Header+set}\" = set"; then
5227  echo "$as_me:$LINENO: checking for $ac_header" >&5
5228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5229if eval "test \"\${$as_ac_Header+set}\" = set"; then
5230  echo $ECHO_N "(cached) $ECHO_C" >&6
5231fi
5232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5234else
5235  # Is the header compilable?
5236echo "$as_me:$LINENO: checking $ac_header usability" >&5
5237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5238cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h.  */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h.  */
5244$ac_includes_default
5245#include <$ac_header>
5246_ACEOF
5247rm -f conftest.$ac_objext
5248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249  (eval $ac_compile) 2>conftest.er1
5250  ac_status=$?
5251  grep -v '^ *+' conftest.er1 >conftest.err
5252  rm -f conftest.er1
5253  cat conftest.err >&5
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); } &&
5256         { ac_try='test -z "$ac_c_werror_flag"
5257                         || test ! -s conftest.err'
5258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259  (eval $ac_try) 2>&5
5260  ac_status=$?
5261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262  (exit $ac_status); }; } &&
5263         { ac_try='test -s conftest.$ac_objext'
5264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265  (eval $ac_try) 2>&5
5266  ac_status=$?
5267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268  (exit $ac_status); }; }; then
5269  ac_header_compiler=yes
5270else
5271  echo "$as_me: failed program was:" >&5
5272sed 's/^/| /' conftest.$ac_ext >&5
5273
5274ac_header_compiler=no
5275fi
5276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5278echo "${ECHO_T}$ac_header_compiler" >&6
5279
5280# Is the header present?
5281echo "$as_me:$LINENO: checking $ac_header presence" >&5
5282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5283cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h.  */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h.  */
5289#include <$ac_header>
5290_ACEOF
5291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5293  ac_status=$?
5294  grep -v '^ *+' conftest.er1 >conftest.err
5295  rm -f conftest.er1
5296  cat conftest.err >&5
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); } >/dev/null; then
5299  if test -s conftest.err; then
5300    ac_cpp_err=$ac_c_preproc_warn_flag
5301    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5302  else
5303    ac_cpp_err=
5304  fi
5305else
5306  ac_cpp_err=yes
5307fi
5308if test -z "$ac_cpp_err"; then
5309  ac_header_preproc=yes
5310else
5311  echo "$as_me: failed program was:" >&5
5312sed 's/^/| /' conftest.$ac_ext >&5
5313
5314  ac_header_preproc=no
5315fi
5316rm -f conftest.err conftest.$ac_ext
5317echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5318echo "${ECHO_T}$ac_header_preproc" >&6
5319
5320# So?  What about this header?
5321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5322  yes:no: )
5323    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5325    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5326echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5327    ac_header_preproc=yes
5328    ;;
5329  no:yes:* )
5330    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5331echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5332    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5333echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5334    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5335echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5336    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5337echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5338    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5340    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5341echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5342    (
5343      cat <<\_ASBOX
5344## --------------------------------------------------------------- ##
5345## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5346## --------------------------------------------------------------- ##
5347_ASBOX
5348    ) |
5349      sed "s/^/$as_me: WARNING:     /" >&2
5350    ;;
5351esac
5352echo "$as_me:$LINENO: checking for $ac_header" >&5
5353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5354if eval "test \"\${$as_ac_Header+set}\" = set"; then
5355  echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357  eval "$as_ac_Header=\$ac_header_preproc"
5358fi
5359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5361
5362fi
5363if test `eval echo '${'$as_ac_Header'}'` = yes; then
5364  cat >>confdefs.h <<_ACEOF
5365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5366_ACEOF
5367
5368fi
5369
5370done
5371
5372ac_ext=cc
5373ac_cpp='$CXXCPP $CPPFLAGS'
5374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5377if test -n "$ac_tool_prefix"; then
5378  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5379  do
5380    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5381set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5382echo "$as_me:$LINENO: checking for $ac_word" >&5
5383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384if test "${ac_cv_prog_CXX+set}" = set; then
5385  echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387  if test -n "$CXX"; then
5388  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393  IFS=$as_save_IFS
5394  test -z "$as_dir" && as_dir=.
5395  for ac_exec_ext in '' $ac_executable_extensions; do
5396  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399    break 2
5400  fi
5401done
5402done
5403
5404fi
5405fi
5406CXX=$ac_cv_prog_CXX
5407if test -n "$CXX"; then
5408  echo "$as_me:$LINENO: result: $CXX" >&5
5409echo "${ECHO_T}$CXX" >&6
5410else
5411  echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
5413fi
5414
5415    test -n "$CXX" && break
5416  done
5417fi
5418if test -z "$CXX"; then
5419  ac_ct_CXX=$CXX
5420  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5421do
5422  # Extract the first word of "$ac_prog", so it can be a program name with args.
5423set dummy $ac_prog; ac_word=$2
5424echo "$as_me:$LINENO: checking for $ac_word" >&5
5425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5427  echo $ECHO_N "(cached) $ECHO_C" >&6
5428else
5429  if test -n "$ac_ct_CXX"; then
5430  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5431else
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435  IFS=$as_save_IFS
5436  test -z "$as_dir" && as_dir=.
5437  for ac_exec_ext in '' $ac_executable_extensions; do
5438  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439    ac_cv_prog_ac_ct_CXX="$ac_prog"
5440    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441    break 2
5442  fi
5443done
5444done
5445
5446fi
5447fi
5448ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5449if test -n "$ac_ct_CXX"; then
5450  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5451echo "${ECHO_T}$ac_ct_CXX" >&6
5452else
5453  echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6
5455fi
5456
5457  test -n "$ac_ct_CXX" && break
5458done
5459test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5460
5461  CXX=$ac_ct_CXX
5462fi
5463
5464
5465# Provide some information about the compiler.
5466echo "$as_me:$LINENO:" \
5467     "checking for C++ compiler version" >&5
5468ac_compiler=`set X $ac_compile; echo $2`
5469{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5470  (eval $ac_compiler --version </dev/null >&5) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); }
5474{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5475  (eval $ac_compiler -v </dev/null >&5) 2>&5
5476  ac_status=$?
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }
5479{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5480  (eval $ac_compiler -V </dev/null >&5) 2>&5
5481  ac_status=$?
5482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483  (exit $ac_status); }
5484
5485echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5486echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5487if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5488  echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490  cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h.  */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h.  */
5496
5497int
5498main ()
5499{
5500#ifndef __GNUC__
5501       choke me
5502#endif
5503
5504  ;
5505  return 0;
5506}
5507_ACEOF
5508rm -f conftest.$ac_objext
5509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510  (eval $ac_compile) 2>conftest.er1
5511  ac_status=$?
5512  grep -v '^ *+' conftest.er1 >conftest.err
5513  rm -f conftest.er1
5514  cat conftest.err >&5
5515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516  (exit $ac_status); } &&
5517         { ac_try='test -z "$ac_cxx_werror_flag"
5518                         || test ! -s conftest.err'
5519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520  (eval $ac_try) 2>&5
5521  ac_status=$?
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); }; } &&
5524         { ac_try='test -s conftest.$ac_objext'
5525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526  (eval $ac_try) 2>&5
5527  ac_status=$?
5528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529  (exit $ac_status); }; }; then
5530  ac_compiler_gnu=yes
5531else
5532  echo "$as_me: failed program was:" >&5
5533sed 's/^/| /' conftest.$ac_ext >&5
5534
5535ac_compiler_gnu=no
5536fi
5537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5538ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5539
5540fi
5541echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5542echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5543GXX=`test $ac_compiler_gnu = yes && echo yes`
5544ac_test_CXXFLAGS=${CXXFLAGS+set}
5545ac_save_CXXFLAGS=$CXXFLAGS
5546CXXFLAGS="-g"
5547echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5548echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5549if test "${ac_cv_prog_cxx_g+set}" = set; then
5550  echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552  cat >conftest.$ac_ext <<_ACEOF
5553/* confdefs.h.  */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h.  */
5558
5559int
5560main ()
5561{
5562
5563  ;
5564  return 0;
5565}
5566_ACEOF
5567rm -f conftest.$ac_objext
5568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569  (eval $ac_compile) 2>conftest.er1
5570  ac_status=$?
5571  grep -v '^ *+' conftest.er1 >conftest.err
5572  rm -f conftest.er1
5573  cat conftest.err >&5
5574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575  (exit $ac_status); } &&
5576         { ac_try='test -z "$ac_cxx_werror_flag"
5577                         || test ! -s conftest.err'
5578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579  (eval $ac_try) 2>&5
5580  ac_status=$?
5581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582  (exit $ac_status); }; } &&
5583         { ac_try='test -s conftest.$ac_objext'
5584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585  (eval $ac_try) 2>&5
5586  ac_status=$?
5587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588  (exit $ac_status); }; }; then
5589  ac_cv_prog_cxx_g=yes
5590else
5591  echo "$as_me: failed program was:" >&5
5592sed 's/^/| /' conftest.$ac_ext >&5
5593
5594ac_cv_prog_cxx_g=no
5595fi
5596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5597fi
5598echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5599echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5600if test "$ac_test_CXXFLAGS" = set; then
5601  CXXFLAGS=$ac_save_CXXFLAGS
5602elif test $ac_cv_prog_cxx_g = yes; then
5603  if test "$GXX" = yes; then
5604    CXXFLAGS="-g -O2"
5605  else
5606    CXXFLAGS="-g"
5607  fi
5608else
5609  if test "$GXX" = yes; then
5610    CXXFLAGS="-O2"
5611  else
5612    CXXFLAGS=
5613  fi
5614fi
5615for ac_declaration in \
5616   '' \
5617   'extern "C" void std::exit (int) throw (); using std::exit;' \
5618   'extern "C" void std::exit (int); using std::exit;' \
5619   'extern "C" void exit (int) throw ();' \
5620   'extern "C" void exit (int);' \
5621   'void exit (int);'
5622do
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$ac_declaration
5630#include <stdlib.h>
5631int
5632main ()
5633{
5634exit (42);
5635  ;
5636  return 0;
5637}
5638_ACEOF
5639rm -f conftest.$ac_objext
5640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5641  (eval $ac_compile) 2>conftest.er1
5642  ac_status=$?
5643  grep -v '^ *+' conftest.er1 >conftest.err
5644  rm -f conftest.er1
5645  cat conftest.err >&5
5646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); } &&
5648         { ac_try='test -z "$ac_cxx_werror_flag"
5649                         || test ! -s conftest.err'
5650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651  (eval $ac_try) 2>&5
5652  ac_status=$?
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); }; } &&
5655         { ac_try='test -s conftest.$ac_objext'
5656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657  (eval $ac_try) 2>&5
5658  ac_status=$?
5659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660  (exit $ac_status); }; }; then
5661  :
5662else
5663  echo "$as_me: failed program was:" >&5
5664sed 's/^/| /' conftest.$ac_ext >&5
5665
5666continue
5667fi
5668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5669  cat >conftest.$ac_ext <<_ACEOF
5670/* confdefs.h.  */
5671_ACEOF
5672cat confdefs.h >>conftest.$ac_ext
5673cat >>conftest.$ac_ext <<_ACEOF
5674/* end confdefs.h.  */
5675$ac_declaration
5676int
5677main ()
5678{
5679exit (42);
5680  ;
5681  return 0;
5682}
5683_ACEOF
5684rm -f conftest.$ac_objext
5685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686  (eval $ac_compile) 2>conftest.er1
5687  ac_status=$?
5688  grep -v '^ *+' conftest.er1 >conftest.err
5689  rm -f conftest.er1
5690  cat conftest.err >&5
5691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692  (exit $ac_status); } &&
5693         { ac_try='test -z "$ac_cxx_werror_flag"
5694                         || test ! -s conftest.err'
5695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696  (eval $ac_try) 2>&5
5697  ac_status=$?
5698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699  (exit $ac_status); }; } &&
5700         { ac_try='test -s conftest.$ac_objext'
5701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702  (eval $ac_try) 2>&5
5703  ac_status=$?
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); }; }; then
5706  break
5707else
5708  echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
5711fi
5712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5713done
5714rm -f conftest*
5715if test -n "$ac_declaration"; then
5716  echo '#ifdef __cplusplus' >>confdefs.h
5717  echo $ac_declaration      >>confdefs.h
5718  echo '#endif'             >>confdefs.h
5719fi
5720
5721ac_ext=cc
5722ac_cpp='$CXXCPP $CPPFLAGS'
5723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5726
5727depcc="$CXX"  am_compiler_list=
5728
5729echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5730echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5731if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5732  echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5735  # We make a subdir and do the tests there.  Otherwise we can end up
5736  # making bogus files that we don't know about and never remove.  For
5737  # instance it was reported that on HP-UX the gcc test will end up
5738  # making a dummy file named `D' -- because `-MD' means `put the output
5739  # in D'.
5740  mkdir conftest.dir
5741  # Copy depcomp to subdir because otherwise we won't find it if we're
5742  # using a relative directory.
5743  cp "$am_depcomp" conftest.dir
5744  cd conftest.dir
5745  # We will build objects and dependencies in a subdirectory because
5746  # it helps to detect inapplicable dependency modes.  For instance
5747  # both Tru64's cc and ICC support -MD to output dependencies as a
5748  # side effect of compilation, but ICC will put the dependencies in
5749  # the current directory while Tru64 will put them in the object
5750  # directory.
5751  mkdir sub
5752
5753  am_cv_CXX_dependencies_compiler_type=none
5754  if test "$am_compiler_list" = ""; then
5755     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5756  fi
5757  for depmode in $am_compiler_list; do
5758    # Setup a source with many dependencies, because some compilers
5759    # like to wrap large dependency lists on column 80 (with \), and
5760    # we should not choose a depcomp mode which is confused by this.
5761    #
5762    # We need to recreate these files for each test, as the compiler may
5763    # overwrite some of them when testing with obscure command lines.
5764    # This happens at least with the AIX C compiler.
5765    : > sub/conftest.c
5766    for i in 1 2 3 4 5 6; do
5767      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5768      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5769      # Solaris 8's {/usr,}/bin/sh.
5770      touch sub/conftst$i.h
5771    done
5772    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5773
5774    case $depmode in
5775    nosideeffect)
5776      # after this tag, mechanisms are not by side-effect, so they'll
5777      # only be used when explicitly requested
5778      if test "x$enable_dependency_tracking" = xyes; then
5779        continue
5780      else
5781        break
5782      fi
5783      ;;
5784    none) break ;;
5785    esac
5786    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5787    # mode.  It turns out that the SunPro C++ compiler does not properly
5788    # handle `-M -o', and we need to detect this.
5789    if depmode=$depmode \
5790       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5791       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5792       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5793         >/dev/null 2>conftest.err &&
5794       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5795       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5796       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5797      # icc doesn't choke on unknown options, it will just issue warnings
5798      # or remarks (even with -Werror).  So we grep stderr for any message
5799      # that says an option was ignored or not supported.
5800      # When given -MP, icc 7.0 and 7.1 complain thusly:
5801      #   icc: Command line warning: ignoring option '-M'; no argument required
5802      # The diagnosis changed in icc 8.0:
5803      #   icc: Command line remark: option '-MP' not supported
5804      if (grep 'ignoring option' conftest.err ||
5805          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5806        am_cv_CXX_dependencies_compiler_type=$depmode
5807        break
5808      fi
5809    fi
5810  done
5811
5812  cd ..
5813  rm -rf conftest.dir
5814else
5815  am_cv_CXX_dependencies_compiler_type=none
5816fi
5817
5818fi
5819echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5820echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5821CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5822
5823
5824
5825if
5826  test "x$enable_dependency_tracking" != xno \
5827  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5828  am__fastdepCXX_TRUE=
5829  am__fastdepCXX_FALSE='#'
5830else
5831  am__fastdepCXX_TRUE='#'
5832  am__fastdepCXX_FALSE=
5833fi
5834
5835
5836
5837
5838if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5839    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5840    (test "X$CXX" != "Xg++"))) ; then
5841  ac_ext=cc
5842ac_cpp='$CXXCPP $CPPFLAGS'
5843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5846echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5847echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5848if test -z "$CXXCPP"; then
5849  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5850  echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
5852      # Double quotes because CXXCPP needs to be expanded
5853    for CXXCPP in "$CXX -E" "/lib/cpp"
5854    do
5855      ac_preproc_ok=false
5856for ac_cxx_preproc_warn_flag in '' yes
5857do
5858  # Use a header file that comes with gcc, so configuring glibc
5859  # with a fresh cross-compiler works.
5860  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861  # <limits.h> exists even on freestanding compilers.
5862  # On the NeXT, cc -E runs the code through the compiler's parser,
5863  # not just through cpp. "Syntax error" is here to catch this case.
5864  cat >conftest.$ac_ext <<_ACEOF
5865/* confdefs.h.  */
5866_ACEOF
5867cat confdefs.h >>conftest.$ac_ext
5868cat >>conftest.$ac_ext <<_ACEOF
5869/* end confdefs.h.  */
5870#ifdef __STDC__
5871# include <limits.h>
5872#else
5873# include <assert.h>
5874#endif
5875                     Syntax error
5876_ACEOF
5877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5878  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5879  ac_status=$?
5880  grep -v '^ *+' conftest.er1 >conftest.err
5881  rm -f conftest.er1
5882  cat conftest.err >&5
5883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884  (exit $ac_status); } >/dev/null; then
5885  if test -s conftest.err; then
5886    ac_cpp_err=$ac_cxx_preproc_warn_flag
5887    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5888  else
5889    ac_cpp_err=
5890  fi
5891else
5892  ac_cpp_err=yes
5893fi
5894if test -z "$ac_cpp_err"; then
5895  :
5896else
5897  echo "$as_me: failed program was:" >&5
5898sed 's/^/| /' conftest.$ac_ext >&5
5899
5900  # Broken: fails on valid input.
5901continue
5902fi
5903rm -f conftest.err conftest.$ac_ext
5904
5905  # OK, works on sane cases.  Now check whether non-existent headers
5906  # can be detected and how.
5907  cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h.  */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h.  */
5913#include <ac_nonexistent.h>
5914_ACEOF
5915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5916  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5917  ac_status=$?
5918  grep -v '^ *+' conftest.er1 >conftest.err
5919  rm -f conftest.er1
5920  cat conftest.err >&5
5921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922  (exit $ac_status); } >/dev/null; then
5923  if test -s conftest.err; then
5924    ac_cpp_err=$ac_cxx_preproc_warn_flag
5925    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5926  else
5927    ac_cpp_err=
5928  fi
5929else
5930  ac_cpp_err=yes
5931fi
5932if test -z "$ac_cpp_err"; then
5933  # Broken: success on invalid input.
5934continue
5935else
5936  echo "$as_me: failed program was:" >&5
5937sed 's/^/| /' conftest.$ac_ext >&5
5938
5939  # Passes both tests.
5940ac_preproc_ok=:
5941break
5942fi
5943rm -f conftest.err conftest.$ac_ext
5944
5945done
5946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947rm -f conftest.err conftest.$ac_ext
5948if $ac_preproc_ok; then
5949  break
5950fi
5951
5952    done
5953    ac_cv_prog_CXXCPP=$CXXCPP
5954
5955fi
5956  CXXCPP=$ac_cv_prog_CXXCPP
5957else
5958  ac_cv_prog_CXXCPP=$CXXCPP
5959fi
5960echo "$as_me:$LINENO: result: $CXXCPP" >&5
5961echo "${ECHO_T}$CXXCPP" >&6
5962ac_preproc_ok=false
5963for ac_cxx_preproc_warn_flag in '' yes
5964do
5965  # Use a header file that comes with gcc, so configuring glibc
5966  # with a fresh cross-compiler works.
5967  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968  # <limits.h> exists even on freestanding compilers.
5969  # On the NeXT, cc -E runs the code through the compiler's parser,
5970  # not just through cpp. "Syntax error" is here to catch this case.
5971  cat >conftest.$ac_ext <<_ACEOF
5972/* confdefs.h.  */
5973_ACEOF
5974cat confdefs.h >>conftest.$ac_ext
5975cat >>conftest.$ac_ext <<_ACEOF
5976/* end confdefs.h.  */
5977#ifdef __STDC__
5978# include <limits.h>
5979#else
5980# include <assert.h>
5981#endif
5982                     Syntax error
5983_ACEOF
5984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5985  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5986  ac_status=$?
5987  grep -v '^ *+' conftest.er1 >conftest.err
5988  rm -f conftest.er1
5989  cat conftest.err >&5
5990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991  (exit $ac_status); } >/dev/null; then
5992  if test -s conftest.err; then
5993    ac_cpp_err=$ac_cxx_preproc_warn_flag
5994    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5995  else
5996    ac_cpp_err=
5997  fi
5998else
5999  ac_cpp_err=yes
6000fi
6001if test -z "$ac_cpp_err"; then
6002  :
6003else
6004  echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007  # Broken: fails on valid input.
6008continue
6009fi
6010rm -f conftest.err conftest.$ac_ext
6011
6012  # OK, works on sane cases.  Now check whether non-existent headers
6013  # can be detected and how.
6014  cat >conftest.$ac_ext <<_ACEOF
6015/* confdefs.h.  */
6016_ACEOF
6017cat confdefs.h >>conftest.$ac_ext
6018cat >>conftest.$ac_ext <<_ACEOF
6019/* end confdefs.h.  */
6020#include <ac_nonexistent.h>
6021_ACEOF
6022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6023  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6024  ac_status=$?
6025  grep -v '^ *+' conftest.er1 >conftest.err
6026  rm -f conftest.er1
6027  cat conftest.err >&5
6028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029  (exit $ac_status); } >/dev/null; then
6030  if test -s conftest.err; then
6031    ac_cpp_err=$ac_cxx_preproc_warn_flag
6032    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6033  else
6034    ac_cpp_err=
6035  fi
6036else
6037  ac_cpp_err=yes
6038fi
6039if test -z "$ac_cpp_err"; then
6040  # Broken: success on invalid input.
6041continue
6042else
6043  echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
6045
6046  # Passes both tests.
6047ac_preproc_ok=:
6048break
6049fi
6050rm -f conftest.err conftest.$ac_ext
6051
6052done
6053# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6054rm -f conftest.err conftest.$ac_ext
6055if $ac_preproc_ok; then
6056  :
6057else
6058  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6059See \`config.log' for more details." >&5
6060echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6061See \`config.log' for more details." >&2;}
6062   { (exit 1); exit 1; }; }
6063fi
6064
6065ac_ext=cc
6066ac_cpp='$CXXCPP $CPPFLAGS'
6067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6070
6071fi
6072
6073
6074
6075# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6076
6077# find the maximum length of command line arguments
6078echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6079echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6080if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6081  echo $ECHO_N "(cached) $ECHO_C" >&6
6082else
6083    i=0
6084  teststring="ABCD"
6085
6086  case $build_os in
6087  msdosdjgpp*)
6088    # On DJGPP, this test can blow up pretty badly due to problems in libc
6089    # (any single argument exceeding 2000 bytes causes a buffer overrun
6090    # during glob expansion).  Even if it were fixed, the result of this
6091    # check would be larger than it should be.
6092    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6093    ;;
6094
6095  gnu*)
6096    # Under GNU Hurd, this test is not required because there is
6097    # no limit to the length of command line arguments.
6098    # Libtool will interpret -1 as no limit whatsoever
6099    lt_cv_sys_max_cmd_len=-1;
6100    ;;
6101
6102  cygwin* | mingw*)
6103    # On Win9x/ME, this test blows up -- it succeeds, but takes
6104    # about 5 minutes as the teststring grows exponentially.
6105    # Worse, since 9x/ME are not pre-emptively multitasking,
6106    # you end up with a "frozen" computer, even though with patience
6107    # the test eventually succeeds (with a max line length of 256k).
6108    # Instead, let's just punt: use the minimum linelength reported by
6109    # all of the supported platforms: 8192 (on NT/2K/XP).
6110    lt_cv_sys_max_cmd_len=8192;
6111    ;;
6112
6113  amigaos*)
6114    # On AmigaOS with pdksh, this test takes hours, literally.
6115    # So we just punt and use a minimum line length of 8192.
6116    lt_cv_sys_max_cmd_len=8192;
6117    ;;
6118
6119  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6120    # This has been around since 386BSD, at least.  Likely further.
6121    if test -x /sbin/sysctl; then
6122      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6123    elif test -x /usr/sbin/sysctl; then
6124      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6125    else
6126      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6127    fi
6128    # And add a safety zone
6129    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6130    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6131    ;;
6132
6133  interix*)
6134    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6135    lt_cv_sys_max_cmd_len=196608
6136    ;;
6137
6138  osf*)
6139    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6140    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6141    # nice to cause kernel panics so lets avoid the loop below.
6142    # First set a reasonable default.
6143    lt_cv_sys_max_cmd_len=16384
6144    #
6145    if test -x /sbin/sysconfig; then
6146      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6147        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6148      esac
6149    fi
6150    ;;
6151  sco3.2v5*)
6152    lt_cv_sys_max_cmd_len=102400
6153    ;;
6154  sysv5* | sco5v6* | sysv4.2uw2*)
6155    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6156    if test -n "$kargmax"; then
6157      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6158    else
6159      lt_cv_sys_max_cmd_len=32768
6160    fi
6161    ;;
6162  *)
6163    # If test is not a shell built-in, we'll probably end up computing a
6164    # maximum length that is only half of the actual maximum length, but
6165    # we can't tell.
6166    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6167    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6168               = "XX$teststring") >/dev/null 2>&1 &&
6169            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6170            lt_cv_sys_max_cmd_len=$new_result &&
6171            test $i != 17 # 1/2 MB should be enough
6172    do
6173      i=`expr $i + 1`
6174      teststring=$teststring$teststring
6175    done
6176    teststring=
6177    # Add a significant safety factor because C++ compilers can tack on massive
6178    # amounts of additional arguments before passing them to the linker.
6179    # It appears as though 1/2 is a usable value.
6180    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6181    ;;
6182  esac
6183
6184fi
6185
6186if test -n $lt_cv_sys_max_cmd_len ; then
6187  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6188echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6189else
6190  echo "$as_me:$LINENO: result: none" >&5
6191echo "${ECHO_T}none" >&6
6192fi
6193
6194
6195
6196
6197# Check for command to grab the raw symbol name followed by C symbol from nm.
6198echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6199echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6200if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6201  echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203
6204# These are sane defaults that work on at least a few old systems.
6205# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6206
6207# Character class describing NM global symbol codes.
6208symcode='[BCDEGRST]'
6209
6210# Regexp to match symbols that can be accessed directly from C.
6211sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6212
6213# Transform an extracted symbol line into a proper C declaration
6214lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6215
6216# Transform an extracted symbol line into symbol name and symbol address
6217lt_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'"
6218
6219# Define system-specific variables.
6220case $host_os in
6221aix*)
6222  symcode='[BCDT]'
6223  ;;
6224cygwin* | mingw* | pw32*)
6225  symcode='[ABCDGISTW]'
6226  ;;
6227hpux*) # Its linker distinguishes data from code symbols
6228  if test "$host_cpu" = ia64; then
6229    symcode='[ABCDEGRST]'
6230  fi
6231  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6232  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'"
6233  ;;
6234linux*)
6235  if test "$host_cpu" = ia64; then
6236    symcode='[ABCDGIRSTW]'
6237    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6238    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'"
6239  fi
6240  ;;
6241irix* | nonstopux*)
6242  symcode='[BCDEGRST]'
6243  ;;
6244osf*)
6245  symcode='[BCDEGQRST]'
6246  ;;
6247solaris*)
6248  symcode='[BDRT]'
6249  ;;
6250sco3.2v5*)
6251  symcode='[DT]'
6252  ;;
6253sysv4.2uw2*)
6254  symcode='[DT]'
6255  ;;
6256sysv5* | sco5v6* | unixware* | OpenUNIX*)
6257  symcode='[ABDT]'
6258  ;;
6259sysv4)
6260  symcode='[DFNSTU]'
6261  ;;
6262esac
6263
6264# Handle CRLF in mingw tool chain
6265opt_cr=
6266case $build_os in
6267mingw*)
6268  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6269  ;;
6270esac
6271
6272# If we're using GNU nm, then use its standard symbol codes.
6273case `$NM -V 2>&1` in
6274*GNU* | *'with BFD'*)
6275  symcode='[ABCDGIRSTW]' ;;
6276esac
6277
6278# Try without a prefix undercore, then with it.
6279for ac_symprfx in "" "_"; do
6280
6281  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6282  symxfrm="\\1 $ac_symprfx\\2 \\2"
6283
6284  # Write the raw and C identifiers.
6285  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6286
6287  # Check to see that the pipe works correctly.
6288  pipe_works=no
6289
6290  rm -f conftest*
6291  cat > conftest.$ac_ext <<EOF
6292#ifdef __cplusplus
6293extern "C" {
6294#endif
6295char nm_test_var;
6296void nm_test_func(){}
6297#ifdef __cplusplus
6298}
6299#endif
6300int main(){nm_test_var='a';nm_test_func();return(0);}
6301EOF
6302
6303  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304  (eval $ac_compile) 2>&5
6305  ac_status=$?
6306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307  (exit $ac_status); }; then
6308    # Now try to grab the symbols.
6309    nlist=conftest.nm
6310    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6311  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6312  ac_status=$?
6313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); } && test -s "$nlist"; then
6315      # Try sorting and uniquifying the output.
6316      if sort "$nlist" | uniq > "$nlist"T; then
6317        mv -f "$nlist"T "$nlist"
6318      else
6319        rm -f "$nlist"T
6320      fi
6321
6322      # Make sure that we snagged all the symbols we need.
6323      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6324        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6325          cat <<EOF > conftest.$ac_ext
6326#ifdef __cplusplus
6327extern "C" {
6328#endif
6329
6330EOF
6331          # Now generate the symbol file.
6332          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6333
6334          cat <<EOF >> conftest.$ac_ext
6335#if defined (__STDC__) && __STDC__
6336# define lt_ptr_t void *
6337#else
6338# define lt_ptr_t char *
6339# define const
6340#endif
6341
6342/* The mapping between symbol names and symbols. */
6343const struct {
6344  const char *name;
6345  lt_ptr_t address;
6346}
6347lt_preloaded_symbols[] =
6348{
6349EOF
6350          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6351          cat <<\EOF >> conftest.$ac_ext
6352  {0, (lt_ptr_t) 0}
6353};
6354
6355#ifdef __cplusplus
6356}
6357#endif
6358EOF
6359          # Now try linking the two files.
6360          mv conftest.$ac_objext conftstm.$ac_objext
6361          lt_save_LIBS="$LIBS"
6362          lt_save_CFLAGS="$CFLAGS"
6363          LIBS="conftstm.$ac_objext"
6364          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6365          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366  (eval $ac_link) 2>&5
6367  ac_status=$?
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6370            pipe_works=yes
6371          fi
6372          LIBS="$lt_save_LIBS"
6373          CFLAGS="$lt_save_CFLAGS"
6374        else
6375          echo "cannot find nm_test_func in $nlist" >&5
6376        fi
6377      else
6378        echo "cannot find nm_test_var in $nlist" >&5
6379      fi
6380    else
6381      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6382    fi
6383  else
6384    echo "$progname: failed program was:" >&5
6385    cat conftest.$ac_ext >&5
6386  fi
6387  rm -f conftest* conftst*
6388
6389  # Do not use the global_symbol_pipe unless it works.
6390  if test "$pipe_works" = yes; then
6391    break
6392  else
6393    lt_cv_sys_global_symbol_pipe=
6394  fi
6395done
6396
6397fi
6398
6399if test -z "$lt_cv_sys_global_symbol_pipe"; then
6400  lt_cv_sys_global_symbol_to_cdecl=
6401fi
6402if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6403  echo "$as_me:$LINENO: result: failed" >&5
6404echo "${ECHO_T}failed" >&6
6405else
6406  echo "$as_me:$LINENO: result: ok" >&5
6407echo "${ECHO_T}ok" >&6
6408fi
6409
6410echo "$as_me:$LINENO: checking for objdir" >&5
6411echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6412if test "${lt_cv_objdir+set}" = set; then
6413  echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
6415  rm -f .libs 2>/dev/null
6416mkdir .libs 2>/dev/null
6417if test -d .libs; then
6418  lt_cv_objdir=.libs
6419else
6420  # MS-DOS does not allow filenames that begin with a dot.
6421  lt_cv_objdir=_libs
6422fi
6423rmdir .libs 2>/dev/null
6424fi
6425echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6426echo "${ECHO_T}$lt_cv_objdir" >&6
6427objdir=$lt_cv_objdir
6428
6429
6430
6431
6432
6433case $host_os in
6434aix3*)
6435  # AIX sometimes has problems with the GCC collect2 program.  For some
6436  # reason, if we set the COLLECT_NAMES environment variable, the problems
6437  # vanish in a puff of smoke.
6438  if test "X${COLLECT_NAMES+set}" != Xset; then
6439    COLLECT_NAMES=
6440    export COLLECT_NAMES
6441  fi
6442  ;;
6443esac
6444
6445# Sed substitution that helps us do robust quoting.  It backslashifies
6446# metacharacters that are still active within double-quoted strings.
6447Xsed='sed -e 1s/^X//'
6448sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6449
6450# Same as above, but do not quote variable references.
6451double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6452
6453# Sed substitution to delay expansion of an escaped shell variable in a
6454# double_quote_subst'ed string.
6455delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6456
6457# Sed substitution to avoid accidental globbing in evaled expressions
6458no_glob_subst='s/\*/\\\*/g'
6459
6460# Constants:
6461rm="rm -f"
6462
6463# Global variables:
6464default_ofile=libtool
6465can_build_shared=yes
6466
6467# All known linkers require a `.a' archive for static linking (except MSVC,
6468# which needs '.lib').
6469libext=a
6470ltmain="$ac_aux_dir/ltmain.sh"
6471ofile="$default_ofile"
6472with_gnu_ld="$lt_cv_prog_gnu_ld"
6473
6474if test -n "$ac_tool_prefix"; then
6475  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6476set dummy ${ac_tool_prefix}ar; ac_word=$2
6477echo "$as_me:$LINENO: checking for $ac_word" >&5
6478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6479if test "${ac_cv_prog_AR+set}" = set; then
6480  echo $ECHO_N "(cached) $ECHO_C" >&6
6481else
6482  if test -n "$AR"; then
6483  ac_cv_prog_AR="$AR" # Let the user override the test.
6484else
6485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH
6487do
6488  IFS=$as_save_IFS
6489  test -z "$as_dir" && as_dir=.
6490  for ac_exec_ext in '' $ac_executable_extensions; do
6491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492    ac_cv_prog_AR="${ac_tool_prefix}ar"
6493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494    break 2
6495  fi
6496done
6497done
6498
6499fi
6500fi
6501AR=$ac_cv_prog_AR
6502if test -n "$AR"; then
6503  echo "$as_me:$LINENO: result: $AR" >&5
6504echo "${ECHO_T}$AR" >&6
6505else
6506  echo "$as_me:$LINENO: result: no" >&5
6507echo "${ECHO_T}no" >&6
6508fi
6509
6510fi
6511if test -z "$ac_cv_prog_AR"; then
6512  ac_ct_AR=$AR
6513  # Extract the first word of "ar", so it can be a program name with args.
6514set dummy ar; ac_word=$2
6515echo "$as_me:$LINENO: checking for $ac_word" >&5
6516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6517if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6518  echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520  if test -n "$ac_ct_AR"; then
6521  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6522else
6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526  IFS=$as_save_IFS
6527  test -z "$as_dir" && as_dir=.
6528  for ac_exec_ext in '' $ac_executable_extensions; do
6529  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530    ac_cv_prog_ac_ct_AR="ar"
6531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532    break 2
6533  fi
6534done
6535done
6536
6537  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6538fi
6539fi
6540ac_ct_AR=$ac_cv_prog_ac_ct_AR
6541if test -n "$ac_ct_AR"; then
6542  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6543echo "${ECHO_T}$ac_ct_AR" >&6
6544else
6545  echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6
6547fi
6548
6549  AR=$ac_ct_AR
6550else
6551  AR="$ac_cv_prog_AR"
6552fi
6553
6554if test -n "$ac_tool_prefix"; then
6555  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6556set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6557echo "$as_me:$LINENO: checking for $ac_word" >&5
6558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6559if test "${ac_cv_prog_RANLIB+set}" = set; then
6560  echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562  if test -n "$RANLIB"; then
6563  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568  IFS=$as_save_IFS
6569  test -z "$as_dir" && as_dir=.
6570  for ac_exec_ext in '' $ac_executable_extensions; do
6571  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574    break 2
6575  fi
6576done
6577done
6578
6579fi
6580fi
6581RANLIB=$ac_cv_prog_RANLIB
6582if test -n "$RANLIB"; then
6583  echo "$as_me:$LINENO: result: $RANLIB" >&5
6584echo "${ECHO_T}$RANLIB" >&6
6585else
6586  echo "$as_me:$LINENO: result: no" >&5
6587echo "${ECHO_T}no" >&6
6588fi
6589
6590fi
6591if test -z "$ac_cv_prog_RANLIB"; then
6592  ac_ct_RANLIB=$RANLIB
6593  # Extract the first word of "ranlib", so it can be a program name with args.
6594set dummy ranlib; ac_word=$2
6595echo "$as_me:$LINENO: checking for $ac_word" >&5
6596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6597if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6598  echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
6600  if test -n "$ac_ct_RANLIB"; then
6601  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6602else
6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606  IFS=$as_save_IFS
6607  test -z "$as_dir" && as_dir=.
6608  for ac_exec_ext in '' $ac_executable_extensions; do
6609  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610    ac_cv_prog_ac_ct_RANLIB="ranlib"
6611    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612    break 2
6613  fi
6614done
6615done
6616
6617  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6618fi
6619fi
6620ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6621if test -n "$ac_ct_RANLIB"; then
6622  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6623echo "${ECHO_T}$ac_ct_RANLIB" >&6
6624else
6625  echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6
6627fi
6628
6629  RANLIB=$ac_ct_RANLIB
6630else
6631  RANLIB="$ac_cv_prog_RANLIB"
6632fi
6633
6634if test -n "$ac_tool_prefix"; then
6635  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6636set dummy ${ac_tool_prefix}strip; ac_word=$2
6637echo "$as_me:$LINENO: checking for $ac_word" >&5
6638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6639if test "${ac_cv_prog_STRIP+set}" = set; then
6640  echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642  if test -n "$STRIP"; then
6643  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6644else
6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648  IFS=$as_save_IFS
6649  test -z "$as_dir" && as_dir=.
6650  for ac_exec_ext in '' $ac_executable_extensions; do
6651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654    break 2
6655  fi
6656done
6657done
6658
6659fi
6660fi
6661STRIP=$ac_cv_prog_STRIP
6662if test -n "$STRIP"; then
6663  echo "$as_me:$LINENO: result: $STRIP" >&5
6664echo "${ECHO_T}$STRIP" >&6
6665else
6666  echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668fi
6669
6670fi
6671if test -z "$ac_cv_prog_STRIP"; then
6672  ac_ct_STRIP=$STRIP
6673  # Extract the first word of "strip", so it can be a program name with args.
6674set dummy strip; ac_word=$2
6675echo "$as_me:$LINENO: checking for $ac_word" >&5
6676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6677if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6678  echo $ECHO_N "(cached) $ECHO_C" >&6
6679else
6680  if test -n "$ac_ct_STRIP"; then
6681  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686  IFS=$as_save_IFS
6687  test -z "$as_dir" && as_dir=.
6688  for ac_exec_ext in '' $ac_executable_extensions; do
6689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690    ac_cv_prog_ac_ct_STRIP="strip"
6691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692    break 2
6693  fi
6694done
6695done
6696
6697  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6698fi
6699fi
6700ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6701if test -n "$ac_ct_STRIP"; then
6702  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6703echo "${ECHO_T}$ac_ct_STRIP" >&6
6704else
6705  echo "$as_me:$LINENO: result: no" >&5
6706echo "${ECHO_T}no" >&6
6707fi
6708
6709  STRIP=$ac_ct_STRIP
6710else
6711  STRIP="$ac_cv_prog_STRIP"
6712fi
6713
6714
6715old_CC="$CC"
6716old_CFLAGS="$CFLAGS"
6717
6718# Set sane defaults for various variables
6719test -z "$AR" && AR=ar
6720test -z "$AR_FLAGS" && AR_FLAGS=cru
6721test -z "$AS" && AS=as
6722test -z "$CC" && CC=cc
6723test -z "$LTCC" && LTCC=$CC
6724test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6725test -z "$DLLTOOL" && DLLTOOL=dlltool
6726test -z "$LD" && LD=ld
6727test -z "$LN_S" && LN_S="ln -s"
6728test -z "$MAGIC_CMD" && MAGIC_CMD=file
6729test -z "$NM" && NM=nm
6730test -z "$SED" && SED=sed
6731test -z "$OBJDUMP" && OBJDUMP=objdump
6732test -z "$RANLIB" && RANLIB=:
6733test -z "$STRIP" && STRIP=:
6734test -z "$ac_objext" && ac_objext=o
6735
6736# Determine commands to create old-style static archives.
6737old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6738old_postinstall_cmds='chmod 644 $oldlib'
6739old_postuninstall_cmds=
6740
6741if test -n "$RANLIB"; then
6742  case $host_os in
6743  openbsd*)
6744    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6745    ;;
6746  *)
6747    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6748    ;;
6749  esac
6750  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6751fi
6752
6753for cc_temp in $compiler""; do
6754  case $cc_temp in
6755    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6756    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6757    \-*) ;;
6758    *) break;;
6759  esac
6760done
6761cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6762
6763
6764# Only perform the check for file, if the check method requires it
6765case $deplibs_check_method in
6766file_magic*)
6767  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6768    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6769echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6770if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6771  echo $ECHO_N "(cached) $ECHO_C" >&6
6772else
6773  case $MAGIC_CMD in
6774[\\/*] |  ?:[\\/]*)
6775  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6776  ;;
6777*)
6778  lt_save_MAGIC_CMD="$MAGIC_CMD"
6779  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6780  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6781  for ac_dir in $ac_dummy; do
6782    IFS="$lt_save_ifs"
6783    test -z "$ac_dir" && ac_dir=.
6784    if test -f $ac_dir/${ac_tool_prefix}file; then
6785      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6786      if test -n "$file_magic_test_file"; then
6787        case $deplibs_check_method in
6788        "file_magic "*)
6789          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6790          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6791          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6792            $EGREP "$file_magic_regex" > /dev/null; then
6793            :
6794          else
6795            cat <<EOF 1>&2
6796
6797*** Warning: the command libtool uses to detect shared libraries,
6798*** $file_magic_cmd, produces output that libtool cannot recognize.
6799*** The result is that libtool may fail to recognize shared libraries
6800*** as such.  This will affect the creation of libtool libraries that
6801*** depend on shared libraries, but programs linked with such libtool
6802*** libraries will work regardless of this problem.  Nevertheless, you
6803*** may want to report the problem to your system manager and/or to
6804*** bug-libtool@gnu.org
6805
6806EOF
6807          fi ;;
6808        esac
6809      fi
6810      break
6811    fi
6812  done
6813  IFS="$lt_save_ifs"
6814  MAGIC_CMD="$lt_save_MAGIC_CMD"
6815  ;;
6816esac
6817fi
6818
6819MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6820if test -n "$MAGIC_CMD"; then
6821  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6822echo "${ECHO_T}$MAGIC_CMD" >&6
6823else
6824  echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6
6826fi
6827
6828if test -z "$lt_cv_path_MAGIC_CMD"; then
6829  if test -n "$ac_tool_prefix"; then
6830    echo "$as_me:$LINENO: checking for file" >&5
6831echo $ECHO_N "checking for file... $ECHO_C" >&6
6832if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6833  echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835  case $MAGIC_CMD in
6836[\\/*] |  ?:[\\/]*)
6837  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6838  ;;
6839*)
6840  lt_save_MAGIC_CMD="$MAGIC_CMD"
6841  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6842  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6843  for ac_dir in $ac_dummy; do
6844    IFS="$lt_save_ifs"
6845    test -z "$ac_dir" && ac_dir=.
6846    if test -f $ac_dir/file; then
6847      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6848      if test -n "$file_magic_test_file"; then
6849        case $deplibs_check_method in
6850        "file_magic "*)
6851          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6852          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6853          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6854            $EGREP "$file_magic_regex" > /dev/null; then
6855            :
6856          else
6857            cat <<EOF 1>&2
6858
6859*** Warning: the command libtool uses to detect shared libraries,
6860*** $file_magic_cmd, produces output that libtool cannot recognize.
6861*** The result is that libtool may fail to recognize shared libraries
6862*** as such.  This will affect the creation of libtool libraries that
6863*** depend on shared libraries, but programs linked with such libtool
6864*** libraries will work regardless of this problem.  Nevertheless, you
6865*** may want to report the problem to your system manager and/or to
6866*** bug-libtool@gnu.org
6867
6868EOF
6869          fi ;;
6870        esac
6871      fi
6872      break
6873    fi
6874  done
6875  IFS="$lt_save_ifs"
6876  MAGIC_CMD="$lt_save_MAGIC_CMD"
6877  ;;
6878esac
6879fi
6880
6881MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6882if test -n "$MAGIC_CMD"; then
6883  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6884echo "${ECHO_T}$MAGIC_CMD" >&6
6885else
6886  echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6
6888fi
6889
6890  else
6891    MAGIC_CMD=:
6892  fi
6893fi
6894
6895  fi
6896  ;;
6897esac
6898
6899enable_dlopen=no
6900enable_win32_dll=no
6901
6902# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6903if test "${enable_libtool_lock+set}" = set; then
6904  enableval="$enable_libtool_lock"
6905
6906fi;
6907test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6908
6909
6910# Check whether --with-pic or --without-pic was given.
6911if test "${with_pic+set}" = set; then
6912  withval="$with_pic"
6913  pic_mode="$withval"
6914else
6915  pic_mode=default
6916fi;
6917test -z "$pic_mode" && pic_mode=default
6918
6919# Use C for the default configuration in the libtool script
6920tagname=
6921lt_save_CC="$CC"
6922ac_ext=c
6923ac_cpp='$CPP $CPPFLAGS'
6924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927
6928
6929# Source file extension for C test sources.
6930ac_ext=c
6931
6932# Object file extension for compiled C test sources.
6933objext=o
6934objext=$objext
6935
6936# Code to be used in simple compile tests
6937lt_simple_compile_test_code="int some_variable = 0;\n"
6938
6939# Code to be used in simple link tests
6940lt_simple_link_test_code='int main(){return(0);}\n'
6941
6942
6943# If no C compiler was specified, use CC.
6944LTCC=${LTCC-"$CC"}
6945
6946# If no C compiler flags were specified, use CFLAGS.
6947LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6948
6949# Allow CC to be a program name with arguments.
6950compiler=$CC
6951
6952
6953# save warnings/boilerplate of simple test code
6954ac_outfile=conftest.$ac_objext
6955printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6956eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6957_lt_compiler_boilerplate=`cat conftest.err`
6958$rm conftest*
6959
6960ac_outfile=conftest.$ac_objext
6961printf "$lt_simple_link_test_code" >conftest.$ac_ext
6962eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6963_lt_linker_boilerplate=`cat conftest.err`
6964$rm conftest*
6965
6966
6967## CAVEAT EMPTOR:
6968## There is no encapsulation within the following macros, do not change
6969## the running order or otherwise move them around unless you know exactly
6970## what you are doing...
6971
6972lt_prog_compiler_no_builtin_flag=
6973
6974if test "$GCC" = yes; then
6975  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6976
6977
6978echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6979echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6980if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6981  echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
6983  lt_cv_prog_compiler_rtti_exceptions=no
6984  ac_outfile=conftest.$ac_objext
6985   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6986   lt_compiler_flag="-fno-rtti -fno-exceptions"
6987   # Insert the option either (1) after the last *FLAGS variable, or
6988   # (2) before a word containing "conftest.", or (3) at the end.
6989   # Note that $ac_compile itself does not contain backslashes and begins
6990   # with a dollar sign (not a hyphen), so the echo should work correctly.
6991   # The option is referenced via a variable to avoid confusing sed.
6992   lt_compile=`echo "$ac_compile" | $SED \
6993   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6994   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6995   -e 's:$: $lt_compiler_flag:'`
6996   (eval echo "\"\$as_me:6996: $lt_compile\"" >&5)
6997   (eval "$lt_compile" 2>conftest.err)
6998   ac_status=$?
6999   cat conftest.err >&5
7000   echo "$as_me:7000: \$? = $ac_status" >&5
7001   if (exit $ac_status) && test -s "$ac_outfile"; then
7002     # The compiler can only warn and ignore the option if not recognized
7003     # So say no if there are warnings other than the usual output.
7004     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7005     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7006     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7007       lt_cv_prog_compiler_rtti_exceptions=yes
7008     fi
7009   fi
7010   $rm conftest*
7011
7012fi
7013echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7014echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7015
7016if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7017    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7018else
7019    :
7020fi
7021
7022fi
7023
7024lt_prog_compiler_wl=
7025lt_prog_compiler_pic=
7026lt_prog_compiler_static=
7027
7028echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7029echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7030
7031  if test "$GCC" = yes; then
7032    lt_prog_compiler_wl='-Wl,'
7033    lt_prog_compiler_static='-static'
7034
7035    case $host_os in
7036      aix*)
7037      # All AIX code is PIC.
7038      if test "$host_cpu" = ia64; then
7039        # AIX 5 now supports IA64 processor
7040        lt_prog_compiler_static='-Bstatic'
7041      fi
7042      ;;
7043
7044    amigaos*)
7045      # FIXME: we need at least 68020 code to build shared libraries, but
7046      # adding the `-m68020' flag to GCC prevents building anything better,
7047      # like `-m68040'.
7048      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7049      ;;
7050
7051    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7052      # PIC is the default for these OSes.
7053      ;;
7054
7055    mingw* | pw32* | os2*)
7056      # This hack is so that the source file can tell whether it is being
7057      # built for inclusion in a dll (and should export symbols for example).
7058      lt_prog_compiler_pic='-DDLL_EXPORT'
7059      ;;
7060
7061    darwin* | rhapsody*)
7062      # PIC is the default on this platform
7063      # Common symbols not allowed in MH_DYLIB files
7064      lt_prog_compiler_pic='-fno-common'
7065      ;;
7066
7067    interix3*)
7068      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7069      # Instead, we relocate shared libraries at runtime.
7070      ;;
7071
7072    msdosdjgpp*)
7073      # Just because we use GCC doesn't mean we suddenly get shared libraries
7074      # on systems that don't support them.
7075      lt_prog_compiler_can_build_shared=no
7076      enable_shared=no
7077      ;;
7078
7079    sysv4*MP*)
7080      if test -d /usr/nec; then
7081        lt_prog_compiler_pic=-Kconform_pic
7082      fi
7083      ;;
7084
7085    hpux*)
7086      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7087      # not for PA HP-UX.
7088      case $host_cpu in
7089      hppa*64*|ia64*)
7090        # +Z the default
7091        ;;
7092      *)
7093        lt_prog_compiler_pic='-fPIC'
7094        ;;
7095      esac
7096      ;;
7097
7098    *)
7099      lt_prog_compiler_pic='-fPIC'
7100      ;;
7101    esac
7102  else
7103    # PORTME Check for flag to pass linker flags through the system compiler.
7104    case $host_os in
7105    aix*)
7106      lt_prog_compiler_wl='-Wl,'
7107      if test "$host_cpu" = ia64; then
7108        # AIX 5 now supports IA64 processor
7109        lt_prog_compiler_static='-Bstatic'
7110      else
7111        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7112      fi
7113      ;;
7114      darwin*)
7115        # PIC is the default on this platform
7116        # Common symbols not allowed in MH_DYLIB files
7117       case $cc_basename in
7118         xlc*)
7119         lt_prog_compiler_pic='-qnocommon'
7120         lt_prog_compiler_wl='-Wl,'
7121         ;;
7122       esac
7123       ;;
7124
7125    mingw* | pw32* | os2*)
7126      # This hack is so that the source file can tell whether it is being
7127      # built for inclusion in a dll (and should export symbols for example).
7128      lt_prog_compiler_pic='-DDLL_EXPORT'
7129      ;;
7130
7131    hpux9* | hpux10* | hpux11*)
7132      lt_prog_compiler_wl='-Wl,'
7133      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7134      # not for PA HP-UX.
7135      case $host_cpu in
7136      hppa*64*|ia64*)
7137        # +Z the default
7138        ;;
7139      *)
7140        lt_prog_compiler_pic='+Z'
7141        ;;
7142      esac
7143      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7144      lt_prog_compiler_static='${wl}-a ${wl}archive'
7145      ;;
7146
7147    irix5* | irix6* | nonstopux*)
7148      lt_prog_compiler_wl='-Wl,'
7149      # PIC (with -KPIC) is the default.
7150      lt_prog_compiler_static='-non_shared'
7151      ;;
7152
7153    newsos6)
7154      lt_prog_compiler_pic='-KPIC'
7155      lt_prog_compiler_static='-Bstatic'
7156      ;;
7157
7158    linux*)
7159      case $cc_basename in
7160      icc* | ecc*)
7161        lt_prog_compiler_wl='-Wl,'
7162        lt_prog_compiler_pic='-KPIC'
7163        lt_prog_compiler_static='-static'
7164        ;;
7165      pgcc* | pgf77* | pgf90* | pgf95*)
7166        # Portland Group compilers (*not* the Pentium gcc compiler,
7167        # which looks to be a dead project)
7168        lt_prog_compiler_wl='-Wl,'
7169        lt_prog_compiler_pic='-fpic'
7170        lt_prog_compiler_static='-Bstatic'
7171        ;;
7172      ccc*)
7173        lt_prog_compiler_wl='-Wl,'
7174        # All Alpha code is PIC.
7175        lt_prog_compiler_static='-non_shared'
7176        ;;
7177      esac
7178      ;;
7179
7180    osf3* | osf4* | osf5*)
7181      lt_prog_compiler_wl='-Wl,'
7182      # All OSF/1 code is PIC.
7183      lt_prog_compiler_static='-non_shared'
7184      ;;
7185
7186    solaris*)
7187      lt_prog_compiler_pic='-KPIC'
7188      lt_prog_compiler_static='-Bstatic'
7189      case $cc_basename in
7190      f77* | f90* | f95*)
7191        lt_prog_compiler_wl='-Qoption ld ';;
7192      *)
7193        lt_prog_compiler_wl='-Wl,';;
7194      esac
7195      ;;
7196
7197    sunos4*)
7198      lt_prog_compiler_wl='-Qoption ld '
7199      lt_prog_compiler_pic='-PIC'
7200      lt_prog_compiler_static='-Bstatic'
7201      ;;
7202
7203    sysv4 | sysv4.2uw2* | sysv4.3*)
7204      lt_prog_compiler_wl='-Wl,'
7205      lt_prog_compiler_pic='-KPIC'
7206      lt_prog_compiler_static='-Bstatic'
7207      ;;
7208
7209    sysv4*MP*)
7210      if test -d /usr/nec ;then
7211        lt_prog_compiler_pic='-Kconform_pic'
7212        lt_prog_compiler_static='-Bstatic'
7213      fi
7214      ;;
7215
7216    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7217      lt_prog_compiler_wl='-Wl,'
7218      lt_prog_compiler_pic='-KPIC'
7219      lt_prog_compiler_static='-Bstatic'
7220      ;;
7221
7222    unicos*)
7223      lt_prog_compiler_wl='-Wl,'
7224      lt_prog_compiler_can_build_shared=no
7225      ;;
7226
7227    uts4*)
7228      lt_prog_compiler_pic='-pic'
7229      lt_prog_compiler_static='-Bstatic'
7230      ;;
7231
7232    *)
7233      lt_prog_compiler_can_build_shared=no
7234      ;;
7235    esac
7236  fi
7237
7238echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7239echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7240
7241#
7242# Check to make sure the PIC flag actually works.
7243#
7244if test -n "$lt_prog_compiler_pic"; then
7245
7246echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7247echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7248if test "${lt_prog_compiler_pic_works+set}" = set; then
7249  echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251  lt_prog_compiler_pic_works=no
7252  ac_outfile=conftest.$ac_objext
7253   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7254   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7255   # Insert the option either (1) after the last *FLAGS variable, or
7256   # (2) before a word containing "conftest.", or (3) at the end.
7257   # Note that $ac_compile itself does not contain backslashes and begins
7258   # with a dollar sign (not a hyphen), so the echo should work correctly.
7259   # The option is referenced via a variable to avoid confusing sed.
7260   lt_compile=`echo "$ac_compile" | $SED \
7261   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7262   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7263   -e 's:$: $lt_compiler_flag:'`
7264   (eval echo "\"\$as_me:7264: $lt_compile\"" >&5)
7265   (eval "$lt_compile" 2>conftest.err)
7266   ac_status=$?
7267   cat conftest.err >&5
7268   echo "$as_me:7268: \$? = $ac_status" >&5
7269   if (exit $ac_status) && test -s "$ac_outfile"; then
7270     # The compiler can only warn and ignore the option if not recognized
7271     # So say no if there are warnings other than the usual output.
7272     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7273     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7274     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7275       lt_prog_compiler_pic_works=yes
7276     fi
7277   fi
7278   $rm conftest*
7279
7280fi
7281echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7282echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7283
7284if test x"$lt_prog_compiler_pic_works" = xyes; then
7285    case $lt_prog_compiler_pic in
7286     "" | " "*) ;;
7287     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7288     esac
7289else
7290    lt_prog_compiler_pic=
7291     lt_prog_compiler_can_build_shared=no
7292fi
7293
7294fi
7295case $host_os in
7296  # For platforms which do not support PIC, -DPIC is meaningless:
7297  *djgpp*)
7298    lt_prog_compiler_pic=
7299    ;;
7300  *)
7301    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7302    ;;
7303esac
7304
7305#
7306# Check to make sure the static flag actually works.
7307#
7308wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7309echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7310echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7311if test "${lt_prog_compiler_static_works+set}" = set; then
7312  echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314  lt_prog_compiler_static_works=no
7315   save_LDFLAGS="$LDFLAGS"
7316   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7317   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7318   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7319     # The linker can only warn and ignore the option if not recognized
7320     # So say no if there are warnings
7321     if test -s conftest.err; then
7322       # Append any errors to the config.log.
7323       cat conftest.err 1>&5
7324       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7325       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7326       if diff conftest.exp conftest.er2 >/dev/null; then
7327         lt_prog_compiler_static_works=yes
7328       fi
7329     else
7330       lt_prog_compiler_static_works=yes
7331     fi
7332   fi
7333   $rm conftest*
7334   LDFLAGS="$save_LDFLAGS"
7335
7336fi
7337echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7338echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7339
7340if test x"$lt_prog_compiler_static_works" = xyes; then
7341    :
7342else
7343    lt_prog_compiler_static=
7344fi
7345
7346
7347echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7348echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7349if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7350  echo $ECHO_N "(cached) $ECHO_C" >&6
7351else
7352  lt_cv_prog_compiler_c_o=no
7353   $rm -r conftest 2>/dev/null
7354   mkdir conftest
7355   cd conftest
7356   mkdir out
7357   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7358
7359   lt_compiler_flag="-o out/conftest2.$ac_objext"
7360   # Insert the option either (1) after the last *FLAGS variable, or
7361   # (2) before a word containing "conftest.", or (3) at the end.
7362   # Note that $ac_compile itself does not contain backslashes and begins
7363   # with a dollar sign (not a hyphen), so the echo should work correctly.
7364   lt_compile=`echo "$ac_compile" | $SED \
7365   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7366   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7367   -e 's:$: $lt_compiler_flag:'`
7368   (eval echo "\"\$as_me:7368: $lt_compile\"" >&5)
7369   (eval "$lt_compile" 2>out/conftest.err)
7370   ac_status=$?
7371   cat out/conftest.err >&5
7372   echo "$as_me:7372: \$? = $ac_status" >&5
7373   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7374   then
7375     # The compiler can only warn and ignore the option if not recognized
7376     # So say no if there are warnings
7377     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7378     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7379     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7380       lt_cv_prog_compiler_c_o=yes
7381     fi
7382   fi
7383   chmod u+w . 2>&5
7384   $rm conftest*
7385   # SGI C++ compiler will create directory out/ii_files/ for
7386   # template instantiation
7387   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7388   $rm out/* && rmdir out
7389   cd ..
7390   rmdir conftest
7391   $rm conftest*
7392
7393fi
7394echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7395echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7396
7397
7398hard_links="nottested"
7399if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7400  # do not overwrite the value of need_locks provided by the user
7401  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7402echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7403  hard_links=yes
7404  $rm conftest*
7405  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7406  touch conftest.a
7407  ln conftest.a conftest.b 2>&5 || hard_links=no
7408  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7409  echo "$as_me:$LINENO: result: $hard_links" >&5
7410echo "${ECHO_T}$hard_links" >&6
7411  if test "$hard_links" = no; then
7412    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7413echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7414    need_locks=warn
7415  fi
7416else
7417  need_locks=no
7418fi
7419
7420echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7421echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7422
7423  runpath_var=
7424  allow_undefined_flag=
7425  enable_shared_with_static_runtimes=no
7426  archive_cmds=
7427  archive_expsym_cmds=
7428  old_archive_From_new_cmds=
7429  old_archive_from_expsyms_cmds=
7430  export_dynamic_flag_spec=
7431  whole_archive_flag_spec=
7432  thread_safe_flag_spec=
7433  hardcode_libdir_flag_spec=
7434  hardcode_libdir_flag_spec_ld=
7435  hardcode_libdir_separator=
7436  hardcode_direct=no
7437  hardcode_minus_L=no
7438  hardcode_shlibpath_var=unsupported
7439  link_all_deplibs=unknown
7440  hardcode_automatic=no
7441  module_cmds=
7442  module_expsym_cmds=
7443  always_export_symbols=no
7444  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7445  # include_expsyms should be a list of space-separated symbols to be *always*
7446  # included in the symbol list
7447  include_expsyms=
7448  # exclude_expsyms can be an extended regexp of symbols to exclude
7449  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7450  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7451  # as well as any symbol that contains `d'.
7452  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7453  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7454  # platforms (ab)use it in PIC code, but their linkers get confused if
7455  # the symbol is explicitly referenced.  Since portable code cannot
7456  # rely on this symbol name, it's probably fine to never include it in
7457  # preloaded symbol tables.
7458  extract_expsyms_cmds=
7459  # Just being paranoid about ensuring that cc_basename is set.
7460  for cc_temp in $compiler""; do
7461  case $cc_temp in
7462    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7463    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7464    \-*) ;;
7465    *) break;;
7466  esac
7467done
7468cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7469
7470  case $host_os in
7471  cygwin* | mingw* | pw32*)
7472    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7473    # When not using gcc, we currently assume that we are using
7474    # Microsoft Visual C++.
7475    if test "$GCC" != yes; then
7476      with_gnu_ld=no
7477    fi
7478    ;;
7479  interix*)
7480    # we just hope/assume this is gcc and not c89 (= MSVC++)
7481    with_gnu_ld=yes
7482    ;;
7483  openbsd*)
7484    with_gnu_ld=no
7485    ;;
7486  esac
7487
7488  ld_shlibs=yes
7489  if test "$with_gnu_ld" = yes; then
7490    # If archive_cmds runs LD, not CC, wlarc should be empty
7491    wlarc='${wl}'
7492
7493    # Set some defaults for GNU ld with shared library support. These
7494    # are reset later if shared libraries are not supported. Putting them
7495    # here allows them to be overridden if necessary.
7496    runpath_var=LD_RUN_PATH
7497    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7498    export_dynamic_flag_spec='${wl}--export-dynamic'
7499    # ancient GNU ld didn't support --whole-archive et. al.
7500    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7501        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7502      else
7503        whole_archive_flag_spec=
7504    fi
7505    supports_anon_versioning=no
7506    case `$LD -v 2>/dev/null` in
7507      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7508      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7509      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7510      *\ 2.11.*) ;; # other 2.11 versions
7511      *) supports_anon_versioning=yes ;;
7512    esac
7513
7514    # See if GNU ld supports shared libraries.
7515    case $host_os in
7516    aix3* | aix4* | aix5*)
7517      # On AIX/PPC, the GNU linker is very broken
7518      if test "$host_cpu" != ia64; then
7519        ld_shlibs=no
7520        cat <<EOF 1>&2
7521
7522*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7523*** to be unable to reliably create shared libraries on AIX.
7524*** Therefore, libtool is disabling shared libraries support.  If you
7525*** really care for shared libraries, you may want to modify your PATH
7526*** so that a non-GNU linker is found, and then restart.
7527
7528EOF
7529      fi
7530      ;;
7531
7532    amigaos*)
7533      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)'
7534      hardcode_libdir_flag_spec='-L$libdir'
7535      hardcode_minus_L=yes
7536
7537      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7538      # that the semantics of dynamic libraries on AmigaOS, at least up
7539      # to version 4, is to share data among multiple programs linked
7540      # with the same dynamic library.  Since this doesn't match the
7541      # behavior of shared libraries on other platforms, we can't use
7542      # them.
7543      ld_shlibs=no
7544      ;;
7545
7546    beos*)
7547      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7548        allow_undefined_flag=unsupported
7549        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7550        # support --undefined.  This deserves some investigation.  FIXME
7551        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7552      else
7553        ld_shlibs=no
7554      fi
7555      ;;
7556
7557    cygwin* | mingw* | pw32*)
7558      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7559      # as there is no search path for DLLs.
7560      hardcode_libdir_flag_spec='-L$libdir'
7561      allow_undefined_flag=unsupported
7562      always_export_symbols=no
7563      enable_shared_with_static_runtimes=yes
7564      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7565
7566      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7567        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7568        # If the export-symbols file already is a .def file (1st line
7569        # is EXPORTS), use it as is; otherwise, prepend...
7570        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7571          cp $export_symbols $output_objdir/$soname.def;
7572        else
7573          echo EXPORTS > $output_objdir/$soname.def;
7574          cat $export_symbols >> $output_objdir/$soname.def;
7575        fi~
7576        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7577      else
7578        ld_shlibs=no
7579      fi
7580      ;;
7581
7582    interix3*)
7583      hardcode_direct=no
7584      hardcode_shlibpath_var=no
7585      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7586      export_dynamic_flag_spec='${wl}-E'
7587      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7588      # Instead, shared libraries are loaded at an image base (0x10000000 by
7589      # default) and relocated if they conflict, which is a slow very memory
7590      # consuming and fragmenting process.  To avoid this, we pick a random,
7591      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7592      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7593      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7594      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'
7595      ;;
7596
7597    linux*)
7598      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7599        tmp_addflag=
7600        case $cc_basename,$host_cpu in
7601        pgcc*)                          # Portland Group C compiler
7602          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'
7603          tmp_addflag=' $pic_flag'
7604          ;;
7605        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7606          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'
7607          tmp_addflag=' $pic_flag -Mnomain' ;;
7608        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7609          tmp_addflag=' -i_dynamic' ;;
7610        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7611          tmp_addflag=' -i_dynamic -nofor_main' ;;
7612        ifc* | ifort*)                  # Intel Fortran compiler
7613          tmp_addflag=' -nofor_main' ;;
7614        esac
7615        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7616
7617        if test $supports_anon_versioning = yes; then
7618          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7619  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7620  $echo "local: *; };" >> $output_objdir/$libname.ver~
7621          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7622        fi
7623      else
7624        ld_shlibs=no
7625      fi
7626      ;;
7627
7628    netbsd*)
7629      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7630        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7631        wlarc=
7632      else
7633        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7634        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7635      fi
7636      ;;
7637
7638    solaris*)
7639      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7640        ld_shlibs=no
7641        cat <<EOF 1>&2
7642
7643*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7644*** create shared libraries on Solaris systems.  Therefore, libtool
7645*** is disabling shared libraries support.  We urge you to upgrade GNU
7646*** binutils to release 2.9.1 or newer.  Another option is to modify
7647*** your PATH or compiler configuration so that the native linker is
7648*** used, and then restart.
7649
7650EOF
7651      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7652        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7653        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7654      else
7655        ld_shlibs=no
7656      fi
7657      ;;
7658
7659    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7660      case `$LD -v 2>&1` in
7661        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7662        ld_shlibs=no
7663        cat <<_LT_EOF 1>&2
7664
7665*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7666*** reliably create shared libraries on SCO systems.  Therefore, libtool
7667*** is disabling shared libraries support.  We urge you to upgrade GNU
7668*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7669*** your PATH or compiler configuration so that the native linker is
7670*** used, and then restart.
7671
7672_LT_EOF
7673        ;;
7674        *)
7675          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7676            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7677            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7678            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7679          else
7680            ld_shlibs=no
7681          fi
7682        ;;
7683      esac
7684      ;;
7685
7686    sunos4*)
7687      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7688      wlarc=
7689      hardcode_direct=yes
7690      hardcode_shlibpath_var=no
7691      ;;
7692
7693    *)
7694      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7695        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7696        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7697      else
7698        ld_shlibs=no
7699      fi
7700      ;;
7701    esac
7702
7703    if test "$ld_shlibs" = no; then
7704      runpath_var=
7705      hardcode_libdir_flag_spec=
7706      export_dynamic_flag_spec=
7707      whole_archive_flag_spec=
7708    fi
7709  else
7710    # PORTME fill in a description of your system's linker (not GNU ld)
7711    case $host_os in
7712    aix3*)
7713      allow_undefined_flag=unsupported
7714      always_export_symbols=yes
7715      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'
7716      # Note: this linker hardcodes the directories in LIBPATH if there
7717      # are no directories specified by -L.
7718      hardcode_minus_L=yes
7719      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7720        # Neither direct hardcoding nor static linking is supported with a
7721        # broken collect2.
7722        hardcode_direct=unsupported
7723      fi
7724      ;;
7725
7726    aix4* | aix5*)
7727      if test "$host_cpu" = ia64; then
7728        # On IA64, the linker does run time linking by default, so we don't
7729        # have to do anything special.
7730        aix_use_runtimelinking=no
7731        exp_sym_flag='-Bexport'
7732        no_entry_flag=""
7733      else
7734        # If we're using GNU nm, then we don't want the "-C" option.
7735        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7736        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7737          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'
7738        else
7739          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'
7740        fi
7741        aix_use_runtimelinking=no
7742
7743        # Test if we are trying to use run time linking or normal
7744        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7745        # need to do runtime linking.
7746        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7747          for ld_flag in $LDFLAGS; do
7748          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7749            aix_use_runtimelinking=yes
7750            break
7751          fi
7752          done
7753          ;;
7754        esac
7755
7756        exp_sym_flag='-bexport'
7757        no_entry_flag='-bnoentry'
7758      fi
7759
7760      # When large executables or shared objects are built, AIX ld can
7761      # have problems creating the table of contents.  If linking a library
7762      # or program results in "error TOC overflow" add -mminimal-toc to
7763      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7764      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7765
7766      archive_cmds=''
7767      hardcode_direct=yes
7768      hardcode_libdir_separator=':'
7769      link_all_deplibs=yes
7770
7771      if test "$GCC" = yes; then
7772        case $host_os in aix4.[012]|aix4.[012].*)
7773        # We only want to do this on AIX 4.2 and lower, the check
7774        # below for broken collect2 doesn't work under 4.3+
7775          collect2name=`${CC} -print-prog-name=collect2`
7776          if test -f "$collect2name" && \
7777           strings "$collect2name" | grep resolve_lib_name >/dev/null
7778          then
7779          # We have reworked collect2
7780          hardcode_direct=yes
7781          else
7782          # We have old collect2
7783          hardcode_direct=unsupported
7784          # It fails to find uninstalled libraries when the uninstalled
7785          # path is not listed in the libpath.  Setting hardcode_minus_L
7786          # to unsupported forces relinking
7787          hardcode_minus_L=yes
7788          hardcode_libdir_flag_spec='-L$libdir'
7789          hardcode_libdir_separator=
7790          fi
7791          ;;
7792        esac
7793        shared_flag='-shared'
7794        if test "$aix_use_runtimelinking" = yes; then
7795          shared_flag="$shared_flag "'${wl}-G'
7796        fi
7797      else
7798        # not using gcc
7799        if test "$host_cpu" = ia64; then
7800        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7801        # chokes on -Wl,-G. The following line is correct:
7802          shared_flag='-G'
7803        else
7804          if test "$aix_use_runtimelinking" = yes; then
7805            shared_flag='${wl}-G'
7806          else
7807            shared_flag='${wl}-bM:SRE'
7808          fi
7809        fi
7810      fi
7811
7812      # It seems that -bexpall does not export symbols beginning with
7813      # underscore (_), so it is better to generate a list of symbols to export.
7814      always_export_symbols=yes
7815      if test "$aix_use_runtimelinking" = yes; then
7816        # Warning - without using the other runtime loading flags (-brtl),
7817        # -berok will link without error, but may produce a broken library.
7818        allow_undefined_flag='-berok'
7819       # Determine the default libpath from the value encoded in an empty executable.
7820       cat >conftest.$ac_ext <<_ACEOF
7821/* confdefs.h.  */
7822_ACEOF
7823cat confdefs.h >>conftest.$ac_ext
7824cat >>conftest.$ac_ext <<_ACEOF
7825/* end confdefs.h.  */
7826
7827int
7828main ()
7829{
7830
7831  ;
7832  return 0;
7833}
7834_ACEOF
7835rm -f conftest.$ac_objext conftest$ac_exeext
7836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837  (eval $ac_link) 2>conftest.er1
7838  ac_status=$?
7839  grep -v '^ *+' conftest.er1 >conftest.err
7840  rm -f conftest.er1
7841  cat conftest.err >&5
7842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843  (exit $ac_status); } &&
7844         { ac_try='test -z "$ac_c_werror_flag"
7845                         || test ! -s conftest.err'
7846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847  (eval $ac_try) 2>&5
7848  ac_status=$?
7849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850  (exit $ac_status); }; } &&
7851         { ac_try='test -s conftest$ac_exeext'
7852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853  (eval $ac_try) 2>&5
7854  ac_status=$?
7855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856  (exit $ac_status); }; }; then
7857
7858aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7859}'`
7860# Check for a 64-bit object if we didn't find anything.
7861if 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; }
7862}'`; fi
7863else
7864  echo "$as_me: failed program was:" >&5
7865sed 's/^/| /' conftest.$ac_ext >&5
7866
7867fi
7868rm -f conftest.err conftest.$ac_objext \
7869      conftest$ac_exeext conftest.$ac_ext
7870if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7871
7872       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7873        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"
7874       else
7875        if test "$host_cpu" = ia64; then
7876          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7877          allow_undefined_flag="-z nodefs"
7878          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"
7879        else
7880         # Determine the default libpath from the value encoded in an empty executable.
7881         cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h.  */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h.  */
7887
7888int
7889main ()
7890{
7891
7892  ;
7893  return 0;
7894}
7895_ACEOF
7896rm -f conftest.$ac_objext conftest$ac_exeext
7897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898  (eval $ac_link) 2>conftest.er1
7899  ac_status=$?
7900  grep -v '^ *+' conftest.er1 >conftest.err
7901  rm -f conftest.er1
7902  cat conftest.err >&5
7903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904  (exit $ac_status); } &&
7905         { ac_try='test -z "$ac_c_werror_flag"
7906                         || test ! -s conftest.err'
7907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908  (eval $ac_try) 2>&5
7909  ac_status=$?
7910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911  (exit $ac_status); }; } &&
7912         { ac_try='test -s conftest$ac_exeext'
7913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914  (eval $ac_try) 2>&5
7915  ac_status=$?
7916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917  (exit $ac_status); }; }; then
7918
7919aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7920}'`
7921# Check for a 64-bit object if we didn't find anything.
7922if 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; }
7923}'`; fi
7924else
7925  echo "$as_me: failed program was:" >&5
7926sed 's/^/| /' conftest.$ac_ext >&5
7927
7928fi
7929rm -f conftest.err conftest.$ac_objext \
7930      conftest$ac_exeext conftest.$ac_ext
7931if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7932
7933         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7934          # Warning - without using the other run time loading flags,
7935          # -berok will link without error, but may produce a broken library.
7936          no_undefined_flag=' ${wl}-bernotok'
7937          allow_undefined_flag=' ${wl}-berok'
7938          # Exported symbols can be pulled into shared objects from archives
7939          whole_archive_flag_spec='$convenience'
7940          archive_cmds_need_lc=yes
7941          # This is similar to how AIX traditionally builds its shared libraries.
7942          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'
7943        fi
7944      fi
7945      ;;
7946
7947    amigaos*)
7948      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)'
7949      hardcode_libdir_flag_spec='-L$libdir'
7950      hardcode_minus_L=yes
7951      # see comment about different semantics on the GNU ld section
7952      ld_shlibs=no
7953      ;;
7954
7955    bsdi[45]*)
7956      export_dynamic_flag_spec=-rdynamic
7957      ;;
7958
7959    cygwin* | mingw* | pw32*)
7960      # When not using gcc, we currently assume that we are using
7961      # Microsoft Visual C++.
7962      # hardcode_libdir_flag_spec is actually meaningless, as there is
7963      # no search path for DLLs.
7964      hardcode_libdir_flag_spec=' '
7965      allow_undefined_flag=unsupported
7966      # Tell ltmain to make .lib files, not .a files.
7967      libext=lib
7968      # Tell ltmain to make .dll files, not .so files.
7969      shrext_cmds=".dll"
7970      # FIXME: Setting linknames here is a bad hack.
7971      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7972      # The linker will automatically build a .lib file if we build a DLL.
7973      old_archive_From_new_cmds='true'
7974      # FIXME: Should let the user specify the lib program.
7975      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7976      fix_srcfile_path='`cygpath -w "$srcfile"`'
7977      enable_shared_with_static_runtimes=yes
7978      ;;
7979
7980    darwin* | rhapsody*)
7981      case $host_os in
7982        rhapsody* | darwin1.[012])
7983         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7984         ;;
7985       *) # Darwin 1.3 on
7986         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7987           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7988         else
7989           case ${MACOSX_DEPLOYMENT_TARGET} in
7990             10.[012])
7991               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7992               ;;
7993             10.*)
7994               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7995               ;;
7996           esac
7997         fi
7998         ;;
7999      esac
8000      archive_cmds_need_lc=no
8001      hardcode_direct=no
8002      hardcode_automatic=yes
8003      hardcode_shlibpath_var=unsupported
8004      whole_archive_flag_spec=''
8005      link_all_deplibs=yes
8006    if test "$GCC" = yes ; then
8007        output_verbose_link_cmd='echo'
8008        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8009      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8010      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8011      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}'
8012      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}'
8013    else
8014      case $cc_basename in
8015        xlc*)
8016         output_verbose_link_cmd='echo'
8017         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8018         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8019          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8020         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}'
8021          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}'
8022          ;;
8023       *)
8024         ld_shlibs=no
8025          ;;
8026      esac
8027    fi
8028      ;;
8029
8030    dgux*)
8031      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8032      hardcode_libdir_flag_spec='-L$libdir'
8033      hardcode_shlibpath_var=no
8034      ;;
8035
8036    freebsd1*)
8037      ld_shlibs=no
8038      ;;
8039
8040    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8041    # support.  Future versions do this automatically, but an explicit c++rt0.o
8042    # does not break anything, and helps significantly (at the cost of a little
8043    # extra space).
8044    freebsd2.2*)
8045      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8046      hardcode_libdir_flag_spec='-R$libdir'
8047      hardcode_direct=yes
8048      hardcode_shlibpath_var=no
8049      ;;
8050
8051    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8052    freebsd2*)
8053      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8054      hardcode_direct=yes
8055      hardcode_minus_L=yes
8056      hardcode_shlibpath_var=no
8057      ;;
8058
8059    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8060    freebsd* | kfreebsd*-gnu | dragonfly*)
8061      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8062      hardcode_libdir_flag_spec='-R$libdir'
8063      hardcode_direct=yes
8064      hardcode_shlibpath_var=no
8065      ;;
8066
8067    hpux9*)
8068      if test "$GCC" = yes; then
8069        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'
8070      else
8071        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'
8072      fi
8073      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8074      hardcode_libdir_separator=:
8075      hardcode_direct=yes
8076
8077      # hardcode_minus_L: Not really in the search PATH,
8078      # but as the default location of the library.
8079      hardcode_minus_L=yes
8080      export_dynamic_flag_spec='${wl}-E'
8081      ;;
8082
8083    hpux10*)
8084      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8085        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8086      else
8087        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8088      fi
8089      if test "$with_gnu_ld" = no; then
8090        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8091        hardcode_libdir_separator=:
8092
8093        hardcode_direct=yes
8094        export_dynamic_flag_spec='${wl}-E'
8095
8096        # hardcode_minus_L: Not really in the search PATH,
8097        # but as the default location of the library.
8098        hardcode_minus_L=yes
8099      fi
8100      ;;
8101
8102    hpux11*)
8103      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8104        case $host_cpu in
8105        hppa*64*)
8106          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8107          ;;
8108        ia64*)
8109          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8110          ;;
8111        *)
8112          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8113          ;;
8114        esac
8115      else
8116        case $host_cpu in
8117        hppa*64*)
8118          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8119          ;;
8120        ia64*)
8121          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8122          ;;
8123        *)
8124          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8125          ;;
8126        esac
8127      fi
8128      if test "$with_gnu_ld" = no; then
8129        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8130        hardcode_libdir_separator=:
8131
8132        case $host_cpu in
8133        hppa*64*|ia64*)
8134          hardcode_libdir_flag_spec_ld='+b $libdir'
8135          hardcode_direct=no
8136          hardcode_shlibpath_var=no
8137          ;;
8138        *)
8139          hardcode_direct=yes
8140          export_dynamic_flag_spec='${wl}-E'
8141
8142          # hardcode_minus_L: Not really in the search PATH,
8143          # but as the default location of the library.
8144          hardcode_minus_L=yes
8145          ;;
8146        esac
8147      fi
8148      ;;
8149
8150    irix5* | irix6* | nonstopux*)
8151      if test "$GCC" = yes; then
8152        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'
8153      else
8154        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'
8155        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8156      fi
8157      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8158      hardcode_libdir_separator=:
8159      link_all_deplibs=yes
8160      ;;
8161
8162    netbsd*)
8163      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8164        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8165      else
8166        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8167      fi
8168      hardcode_libdir_flag_spec='-R$libdir'
8169      hardcode_direct=yes
8170      hardcode_shlibpath_var=no
8171      ;;
8172
8173    newsos6)
8174      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8175      hardcode_direct=yes
8176      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8177      hardcode_libdir_separator=:
8178      hardcode_shlibpath_var=no
8179      ;;
8180
8181    openbsd*)
8182      hardcode_direct=yes
8183      hardcode_shlibpath_var=no
8184      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8185        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8186        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8187        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8188        export_dynamic_flag_spec='${wl}-E'
8189      else
8190       case $host_os in
8191         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8192           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8193           hardcode_libdir_flag_spec='-R$libdir'
8194           ;;
8195         *)
8196           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8197           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8198           ;;
8199       esac
8200      fi
8201      ;;
8202
8203    os2*)
8204      hardcode_libdir_flag_spec='-L$libdir'
8205      hardcode_minus_L=yes
8206      allow_undefined_flag=unsupported
8207      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'
8208      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8209      ;;
8210
8211    osf3*)
8212      if test "$GCC" = yes; then
8213        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8214        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'
8215      else
8216        allow_undefined_flag=' -expect_unresolved \*'
8217        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'
8218      fi
8219      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8220      hardcode_libdir_separator=:
8221      ;;
8222
8223    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8224      if test "$GCC" = yes; then
8225        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8226        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'
8227        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8228      else
8229        allow_undefined_flag=' -expect_unresolved \*'
8230        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'
8231        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8232        $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'
8233
8234        # Both c and cxx compiler support -rpath directly
8235        hardcode_libdir_flag_spec='-rpath $libdir'
8236      fi
8237      hardcode_libdir_separator=:
8238      ;;
8239
8240    solaris*)
8241      no_undefined_flag=' -z text'
8242      if test "$GCC" = yes; then
8243        wlarc='${wl}'
8244        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8245        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8246          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8247      else
8248        wlarc=''
8249        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8250        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8251        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8252      fi
8253      hardcode_libdir_flag_spec='-R$libdir'
8254      hardcode_shlibpath_var=no
8255      case $host_os in
8256      solaris2.[0-5] | solaris2.[0-5].*) ;;
8257      *)
8258        # The compiler driver will combine linker options so we
8259        # cannot just pass the convience library names through
8260        # without $wl, iff we do not link with $LD.
8261        # Luckily, gcc supports the same syntax we need for Sun Studio.
8262        # Supported since Solaris 2.6 (maybe 2.5.1?)
8263        case $wlarc in
8264        '')
8265          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8266        *)
8267          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' ;;
8268        esac ;;
8269      esac
8270      link_all_deplibs=yes
8271      ;;
8272
8273    sunos4*)
8274      if test "x$host_vendor" = xsequent; then
8275        # Use $CC to link under sequent, because it throws in some extra .o
8276        # files that make .init and .fini sections work.
8277        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8278      else
8279        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8280      fi
8281      hardcode_libdir_flag_spec='-L$libdir'
8282      hardcode_direct=yes
8283      hardcode_minus_L=yes
8284      hardcode_shlibpath_var=no
8285      ;;
8286
8287    sysv4)
8288      case $host_vendor in
8289        sni)
8290          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8291          hardcode_direct=yes # is this really true???
8292        ;;
8293        siemens)
8294          ## LD is ld it makes a PLAMLIB
8295          ## CC just makes a GrossModule.
8296          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8297          reload_cmds='$CC -r -o $output$reload_objs'
8298          hardcode_direct=no
8299        ;;
8300        motorola)
8301          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8302          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8303        ;;
8304      esac
8305      runpath_var='LD_RUN_PATH'
8306      hardcode_shlibpath_var=no
8307      ;;
8308
8309    sysv4.3*)
8310      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8311      hardcode_shlibpath_var=no
8312      export_dynamic_flag_spec='-Bexport'
8313      ;;
8314
8315    sysv4*MP*)
8316      if test -d /usr/nec; then
8317        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8318        hardcode_shlibpath_var=no
8319        runpath_var=LD_RUN_PATH
8320        hardcode_runpath_var=yes
8321        ld_shlibs=yes
8322      fi
8323      ;;
8324
8325    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8326      no_undefined_flag='${wl}-z,text'
8327      archive_cmds_need_lc=no
8328      hardcode_shlibpath_var=no
8329      runpath_var='LD_RUN_PATH'
8330
8331      if test "$GCC" = yes; then
8332        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8333        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8334      else
8335        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8336        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8337      fi
8338      ;;
8339
8340    sysv5* | sco3.2v5* | sco5v6*)
8341      # Note: We can NOT use -z defs as we might desire, because we do not
8342      # link with -lc, and that would cause any symbols used from libc to
8343      # always be unresolved, which means just about no library would
8344      # ever link correctly.  If we're not using GNU ld we use -z text
8345      # though, which does catch some bad symbols but isn't as heavy-handed
8346      # as -z defs.
8347      no_undefined_flag='${wl}-z,text'
8348      allow_undefined_flag='${wl}-z,nodefs'
8349      archive_cmds_need_lc=no
8350      hardcode_shlibpath_var=no
8351      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8352      hardcode_libdir_separator=':'
8353      link_all_deplibs=yes
8354      export_dynamic_flag_spec='${wl}-Bexport'
8355      runpath_var='LD_RUN_PATH'
8356
8357      if test "$GCC" = yes; then
8358        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8359        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8360      else
8361        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8362        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8363      fi
8364      ;;
8365
8366    uts4*)
8367      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8368      hardcode_libdir_flag_spec='-L$libdir'
8369      hardcode_shlibpath_var=no
8370      ;;
8371
8372    *)
8373      ld_shlibs=no
8374      ;;
8375    esac
8376  fi
8377
8378echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8379echo "${ECHO_T}$ld_shlibs" >&6
8380test "$ld_shlibs" = no && can_build_shared=no
8381
8382#
8383# Do we need to explicitly link libc?
8384#
8385case "x$archive_cmds_need_lc" in
8386x|xyes)
8387  # Assume -lc should be added
8388  archive_cmds_need_lc=yes
8389
8390  if test "$enable_shared" = yes && test "$GCC" = yes; then
8391    case $archive_cmds in
8392    *'~'*)
8393      # FIXME: we may have to deal with multi-command sequences.
8394      ;;
8395    '$CC '*)
8396      # Test whether the compiler implicitly links with -lc since on some
8397      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8398      # to ld, don't add -lc before -lgcc.
8399      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8400echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8401      $rm conftest*
8402      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8403
8404      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8405  (eval $ac_compile) 2>&5
8406  ac_status=$?
8407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408  (exit $ac_status); } 2>conftest.err; then
8409        soname=conftest
8410        lib=conftest
8411        libobjs=conftest.$ac_objext
8412        deplibs=
8413        wl=$lt_prog_compiler_wl
8414        pic_flag=$lt_prog_compiler_pic
8415        compiler_flags=-v
8416        linker_flags=-v
8417        verstring=
8418        output_objdir=.
8419        libname=conftest
8420        lt_save_allow_undefined_flag=$allow_undefined_flag
8421        allow_undefined_flag=
8422        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8423  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8424  ac_status=$?
8425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426  (exit $ac_status); }
8427        then
8428          archive_cmds_need_lc=no
8429        else
8430          archive_cmds_need_lc=yes
8431        fi
8432        allow_undefined_flag=$lt_save_allow_undefined_flag
8433      else
8434        cat conftest.err 1>&5
8435      fi
8436      $rm conftest*
8437      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8438echo "${ECHO_T}$archive_cmds_need_lc" >&6
8439      ;;
8440    esac
8441  fi
8442  ;;
8443esac
8444
8445echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8446echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8447library_names_spec=
8448libname_spec='lib$name'
8449soname_spec=
8450shrext_cmds=".so"
8451postinstall_cmds=
8452postuninstall_cmds=
8453finish_cmds=
8454finish_eval=
8455shlibpath_var=
8456shlibpath_overrides_runpath=unknown
8457version_type=none
8458dynamic_linker="$host_os ld.so"
8459sys_lib_dlsearch_path_spec="/lib /usr/lib"
8460if test "$GCC" = yes; then
8461  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8462  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8463    # if the path contains ";" then we assume it to be the separator
8464    # otherwise default to the standard path separator (i.e. ":") - it is
8465    # assumed that no part of a normal pathname contains ";" but that should
8466    # okay in the real world where ";" in dirpaths is itself problematic.
8467    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8468  else
8469    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8470  fi
8471else
8472  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8473fi
8474need_lib_prefix=unknown
8475hardcode_into_libs=no
8476
8477# when you set need_version to no, make sure it does not cause -set_version
8478# flags to be left without arguments
8479need_version=unknown
8480
8481case $host_os in
8482aix3*)
8483  version_type=linux
8484  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8485  shlibpath_var=LIBPATH
8486
8487  # AIX 3 has no versioning support, so we append a major version to the name.
8488  soname_spec='${libname}${release}${shared_ext}$major'
8489  ;;
8490
8491aix4* | aix5*)
8492  version_type=linux
8493  need_lib_prefix=no
8494  need_version=no
8495  hardcode_into_libs=yes
8496  if test "$host_cpu" = ia64; then
8497    # AIX 5 supports IA64
8498    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8499    shlibpath_var=LD_LIBRARY_PATH
8500  else
8501    # With GCC up to 2.95.x, collect2 would create an import file
8502    # for dependence libraries.  The import file would start with
8503    # the line `#! .'.  This would cause the generated library to
8504    # depend on `.', always an invalid library.  This was fixed in
8505    # development snapshots of GCC prior to 3.0.
8506    case $host_os in
8507      aix4 | aix4.[01] | aix4.[01].*)
8508      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8509           echo ' yes '
8510           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8511        :
8512      else
8513        can_build_shared=no
8514      fi
8515      ;;
8516    esac
8517    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8518    # soname into executable. Probably we can add versioning support to
8519    # collect2, so additional links can be useful in future.
8520    if test "$aix_use_runtimelinking" = yes; then
8521      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8522      # instead of lib<name>.a to let people know that these are not
8523      # typical AIX shared libraries.
8524      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525    else
8526      # We preserve .a as extension for shared libraries through AIX4.2
8527      # and later when we are not doing run time linking.
8528      library_names_spec='${libname}${release}.a $libname.a'
8529      soname_spec='${libname}${release}${shared_ext}$major'
8530    fi
8531    shlibpath_var=LIBPATH
8532  fi
8533  ;;
8534
8535amigaos*)
8536  library_names_spec='$libname.ixlibrary $libname.a'
8537  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8538  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'
8539  ;;
8540
8541beos*)
8542  library_names_spec='${libname}${shared_ext}'
8543  dynamic_linker="$host_os ld.so"
8544  shlibpath_var=LIBRARY_PATH
8545  ;;
8546
8547bsdi[45]*)
8548  version_type=linux
8549  need_version=no
8550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8551  soname_spec='${libname}${release}${shared_ext}$major'
8552  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8553  shlibpath_var=LD_LIBRARY_PATH
8554  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8555  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8556  # the default ld.so.conf also contains /usr/contrib/lib and
8557  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8558  # libtool to hard-code these into programs
8559  ;;
8560
8561cygwin* | mingw* | pw32*)
8562  version_type=windows
8563  shrext_cmds=".dll"
8564  need_version=no
8565  need_lib_prefix=no
8566
8567  case $GCC,$host_os in
8568  yes,cygwin* | yes,mingw* | yes,pw32*)
8569    library_names_spec='$libname.dll.a'
8570    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8571    postinstall_cmds='base_file=`basename \${file}`~
8572      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8573      dldir=$destdir/`dirname \$dlpath`~
8574      test -d \$dldir || mkdir -p \$dldir~
8575      $install_prog $dir/$dlname \$dldir/$dlname~
8576      chmod a+x \$dldir/$dlname'
8577    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8578      dlpath=$dir/\$dldll~
8579       $rm \$dlpath'
8580    shlibpath_overrides_runpath=yes
8581
8582    case $host_os in
8583    cygwin*)
8584      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8585      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8586      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8587      ;;
8588    mingw*)
8589      # MinGW DLLs use traditional 'lib' prefix
8590      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8591      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8592      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8593        # It is most probably a Windows format PATH printed by
8594        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8595        # path with ; separators, and with drive letters. We can handle the
8596        # drive letters (cygwin fileutils understands them), so leave them,
8597        # especially as we might pass files found there to a mingw objdump,
8598        # which wouldn't understand a cygwinified path. Ahh.
8599        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8600      else
8601        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8602      fi
8603      ;;
8604    pw32*)
8605      # pw32 DLLs use 'pw' prefix rather than 'lib'
8606      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8607      ;;
8608    esac
8609    ;;
8610
8611  *)
8612    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8613    ;;
8614  esac
8615  dynamic_linker='Win32 ld.exe'
8616  # FIXME: first we should search . and the directory the executable is in
8617  shlibpath_var=PATH
8618  ;;
8619
8620darwin* | rhapsody*)
8621  dynamic_linker="$host_os dyld"
8622  version_type=darwin
8623  need_lib_prefix=no
8624  need_version=no
8625  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8626  soname_spec='${libname}${release}${major}$shared_ext'
8627  shlibpath_overrides_runpath=yes
8628  shlibpath_var=DYLD_LIBRARY_PATH
8629  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8630  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8631  if test "$GCC" = yes; then
8632    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"`
8633  else
8634    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8635  fi
8636  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8637  ;;
8638
8639dgux*)
8640  version_type=linux
8641  need_lib_prefix=no
8642  need_version=no
8643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8644  soname_spec='${libname}${release}${shared_ext}$major'
8645  shlibpath_var=LD_LIBRARY_PATH
8646  ;;
8647
8648freebsd1*)
8649  dynamic_linker=no
8650  ;;
8651
8652kfreebsd*-gnu)
8653  version_type=linux
8654  need_lib_prefix=no
8655  need_version=no
8656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8657  soname_spec='${libname}${release}${shared_ext}$major'
8658  shlibpath_var=LD_LIBRARY_PATH
8659  shlibpath_overrides_runpath=no
8660  hardcode_into_libs=yes
8661  dynamic_linker='GNU ld.so'
8662  ;;
8663
8664freebsd* | dragonfly*)
8665  # DragonFly does not have aout.  When/if they implement a new
8666  # versioning mechanism, adjust this.
8667  if test -x /usr/bin/objformat; then
8668    objformat=`/usr/bin/objformat`
8669  else
8670    case $host_os in
8671    freebsd[123]*) objformat=aout ;;
8672    *) objformat=elf ;;
8673    esac
8674  fi
8675  version_type=freebsd-$objformat
8676  case $version_type in
8677    freebsd-elf*)
8678      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8679      need_version=no
8680      need_lib_prefix=no
8681      ;;
8682    freebsd-*)
8683      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8684      need_version=yes
8685      ;;
8686  esac
8687  shlibpath_var=LD_LIBRARY_PATH
8688  case $host_os in
8689  freebsd2*)
8690    shlibpath_overrides_runpath=yes
8691    ;;
8692  freebsd3.[01]* | freebsdelf3.[01]*)
8693    shlibpath_overrides_runpath=yes
8694    hardcode_into_libs=yes
8695    ;;
8696  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8697  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8698    shlibpath_overrides_runpath=no
8699    hardcode_into_libs=yes
8700    ;;
8701  freebsd*) # from 4.6 on
8702    shlibpath_overrides_runpath=yes
8703    hardcode_into_libs=yes
8704    ;;
8705  esac
8706  ;;
8707
8708gnu*)
8709  version_type=linux
8710  need_lib_prefix=no
8711  need_version=no
8712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8713  soname_spec='${libname}${release}${shared_ext}$major'
8714  shlibpath_var=LD_LIBRARY_PATH
8715  hardcode_into_libs=yes
8716  ;;
8717
8718hpux9* | hpux10* | hpux11*)
8719  # Give a soname corresponding to the major version so that dld.sl refuses to
8720  # link against other versions.
8721  version_type=sunos
8722  need_lib_prefix=no
8723  need_version=no
8724  case $host_cpu in
8725  ia64*)
8726    shrext_cmds='.so'
8727    hardcode_into_libs=yes
8728    dynamic_linker="$host_os dld.so"
8729    shlibpath_var=LD_LIBRARY_PATH
8730    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8731    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8732    soname_spec='${libname}${release}${shared_ext}$major'
8733    if test "X$HPUX_IA64_MODE" = X32; then
8734      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8735    else
8736      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8737    fi
8738    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8739    ;;
8740   hppa*64*)
8741     shrext_cmds='.sl'
8742     hardcode_into_libs=yes
8743     dynamic_linker="$host_os dld.sl"
8744     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8745     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747     soname_spec='${libname}${release}${shared_ext}$major'
8748     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8750     ;;
8751   *)
8752    shrext_cmds='.sl'
8753    dynamic_linker="$host_os dld.sl"
8754    shlibpath_var=SHLIB_PATH
8755    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8756    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757    soname_spec='${libname}${release}${shared_ext}$major'
8758    ;;
8759  esac
8760  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8761  postinstall_cmds='chmod 555 $lib'
8762  ;;
8763
8764interix3*)
8765  version_type=linux
8766  need_lib_prefix=no
8767  need_version=no
8768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8769  soname_spec='${libname}${release}${shared_ext}$major'
8770  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8771  shlibpath_var=LD_LIBRARY_PATH
8772  shlibpath_overrides_runpath=no
8773  hardcode_into_libs=yes
8774  ;;
8775
8776irix5* | irix6* | nonstopux*)
8777  case $host_os in
8778    nonstopux*) version_type=nonstopux ;;
8779    *)
8780        if test "$lt_cv_prog_gnu_ld" = yes; then
8781                version_type=linux
8782        else
8783                version_type=irix
8784        fi ;;
8785  esac
8786  need_lib_prefix=no
8787  need_version=no
8788  soname_spec='${libname}${release}${shared_ext}$major'
8789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8790  case $host_os in
8791  irix5* | nonstopux*)
8792    libsuff= shlibsuff=
8793    ;;
8794  *)
8795    case $LD in # libtool.m4 will add one of these switches to LD
8796    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8797      libsuff= shlibsuff= libmagic=32-bit;;
8798    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8799      libsuff=32 shlibsuff=N32 libmagic=N32;;
8800    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8801      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8802    *) libsuff= shlibsuff= libmagic=never-match;;
8803    esac
8804    ;;
8805  esac
8806  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8807  shlibpath_overrides_runpath=no
8808  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8809  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8810  hardcode_into_libs=yes
8811  ;;
8812
8813# No shared lib support for Linux oldld, aout, or coff.
8814linux*oldld* | linux*aout* | linux*coff*)
8815  dynamic_linker=no
8816  ;;
8817
8818# This must be Linux ELF.
8819linux*)
8820  version_type=linux
8821  need_lib_prefix=no
8822  need_version=no
8823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824  soname_spec='${libname}${release}${shared_ext}$major'
8825  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8826  shlibpath_var=LD_LIBRARY_PATH
8827  shlibpath_overrides_runpath=no
8828  # This implies no fast_install, which is unacceptable.
8829  # Some rework will be needed to allow for fast_install
8830  # before this can be enabled.
8831  hardcode_into_libs=yes
8832
8833  # Append ld.so.conf contents to the search path
8834  if test -f /etc/ld.so.conf; then
8835    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' ' '`
8836    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8837  fi
8838
8839  # We used to test for /lib/ld.so.1 and disable shared libraries on
8840  # powerpc, because MkLinux only supported shared libraries with the
8841  # GNU dynamic linker.  Since this was broken with cross compilers,
8842  # most powerpc-linux boxes support dynamic linking these days and
8843  # people can always --disable-shared, the test was removed, and we
8844  # assume the GNU/Linux dynamic linker is in use.
8845  dynamic_linker='GNU/Linux ld.so'
8846  ;;
8847
8848knetbsd*-gnu)
8849  version_type=linux
8850  need_lib_prefix=no
8851  need_version=no
8852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8853  soname_spec='${libname}${release}${shared_ext}$major'
8854  shlibpath_var=LD_LIBRARY_PATH
8855  shlibpath_overrides_runpath=no
8856  hardcode_into_libs=yes
8857  dynamic_linker='GNU ld.so'
8858  ;;
8859
8860netbsd*)
8861  version_type=sunos
8862  need_lib_prefix=no
8863  need_version=no
8864  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8866    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8867    dynamic_linker='NetBSD (a.out) ld.so'
8868  else
8869    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8870    soname_spec='${libname}${release}${shared_ext}$major'
8871    dynamic_linker='NetBSD ld.elf_so'
8872  fi
8873  shlibpath_var=LD_LIBRARY_PATH
8874  shlibpath_overrides_runpath=yes
8875  hardcode_into_libs=yes
8876  ;;
8877
8878newsos6)
8879  version_type=linux
8880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881  shlibpath_var=LD_LIBRARY_PATH
8882  shlibpath_overrides_runpath=yes
8883  ;;
8884
8885nto-qnx*)
8886  version_type=linux
8887  need_lib_prefix=no
8888  need_version=no
8889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890  soname_spec='${libname}${release}${shared_ext}$major'
8891  shlibpath_var=LD_LIBRARY_PATH
8892  shlibpath_overrides_runpath=yes
8893  ;;
8894
8895openbsd*)
8896  version_type=sunos
8897  sys_lib_dlsearch_path_spec="/usr/lib"
8898  need_lib_prefix=no
8899  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8900  case $host_os in
8901    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8902    *)                         need_version=no  ;;
8903  esac
8904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8905  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8906  shlibpath_var=LD_LIBRARY_PATH
8907  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8908    case $host_os in
8909      openbsd2.[89] | openbsd2.[89].*)
8910        shlibpath_overrides_runpath=no
8911        ;;
8912      *)
8913        shlibpath_overrides_runpath=yes
8914        ;;
8915      esac
8916  else
8917    shlibpath_overrides_runpath=yes
8918  fi
8919  ;;
8920
8921os2*)
8922  libname_spec='$name'
8923  shrext_cmds=".dll"
8924  need_lib_prefix=no
8925  library_names_spec='$libname${shared_ext} $libname.a'
8926  dynamic_linker='OS/2 ld.exe'
8927  shlibpath_var=LIBPATH
8928  ;;
8929
8930osf3* | osf4* | osf5*)
8931  version_type=osf
8932  need_lib_prefix=no
8933  need_version=no
8934  soname_spec='${libname}${release}${shared_ext}$major'
8935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936  shlibpath_var=LD_LIBRARY_PATH
8937  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8938  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8939  ;;
8940
8941solaris*)
8942  version_type=linux
8943  need_lib_prefix=no
8944  need_version=no
8945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946  soname_spec='${libname}${release}${shared_ext}$major'
8947  shlibpath_var=LD_LIBRARY_PATH
8948  shlibpath_overrides_runpath=yes
8949  hardcode_into_libs=yes
8950  # ldd complains unless libraries are executable
8951  postinstall_cmds='chmod +x $lib'
8952  ;;
8953
8954sunos4*)
8955  version_type=sunos
8956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8957  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8958  shlibpath_var=LD_LIBRARY_PATH
8959  shlibpath_overrides_runpath=yes
8960  if test "$with_gnu_ld" = yes; then
8961    need_lib_prefix=no
8962  fi
8963  need_version=yes
8964  ;;
8965
8966sysv4 | sysv4.3*)
8967  version_type=linux
8968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969  soname_spec='${libname}${release}${shared_ext}$major'
8970  shlibpath_var=LD_LIBRARY_PATH
8971  case $host_vendor in
8972    sni)
8973      shlibpath_overrides_runpath=no
8974      need_lib_prefix=no
8975      export_dynamic_flag_spec='${wl}-Blargedynsym'
8976      runpath_var=LD_RUN_PATH
8977      ;;
8978    siemens)
8979      need_lib_prefix=no
8980      ;;
8981    motorola)
8982      need_lib_prefix=no
8983      need_version=no
8984      shlibpath_overrides_runpath=no
8985      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8986      ;;
8987  esac
8988  ;;
8989
8990sysv4*MP*)
8991  if test -d /usr/nec ;then
8992    version_type=linux
8993    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8994    soname_spec='$libname${shared_ext}.$major'
8995    shlibpath_var=LD_LIBRARY_PATH
8996  fi
8997  ;;
8998
8999sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9000  version_type=freebsd-elf
9001  need_lib_prefix=no
9002  need_version=no
9003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9004  soname_spec='${libname}${release}${shared_ext}$major'
9005  shlibpath_var=LD_LIBRARY_PATH
9006  hardcode_into_libs=yes
9007  if test "$with_gnu_ld" = yes; then
9008    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9009    shlibpath_overrides_runpath=no
9010  else
9011    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9012    shlibpath_overrides_runpath=yes
9013    case $host_os in
9014      sco3.2v5*)
9015        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9016        ;;
9017    esac
9018  fi
9019  sys_lib_dlsearch_path_spec='/usr/lib'
9020  ;;
9021
9022uts4*)
9023  version_type=linux
9024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025  soname_spec='${libname}${release}${shared_ext}$major'
9026  shlibpath_var=LD_LIBRARY_PATH
9027  ;;
9028
9029*)
9030  dynamic_linker=no
9031  ;;
9032esac
9033echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9034echo "${ECHO_T}$dynamic_linker" >&6
9035test "$dynamic_linker" = no && can_build_shared=no
9036
9037variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9038if test "$GCC" = yes; then
9039  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9040fi
9041
9042echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9043echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9044hardcode_action=
9045if test -n "$hardcode_libdir_flag_spec" || \
9046   test -n "$runpath_var" || \
9047   test "X$hardcode_automatic" = "Xyes" ; then
9048
9049  # We can hardcode non-existant directories.
9050  if test "$hardcode_direct" != no &&
9051     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9052     # have to relink, otherwise we might link with an installed library
9053     # when we should be linking with a yet-to-be-installed one
9054     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9055     test "$hardcode_minus_L" != no; then
9056    # Linking always hardcodes the temporary library directory.
9057    hardcode_action=relink
9058  else
9059    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9060    hardcode_action=immediate
9061  fi
9062else
9063  # We cannot hardcode anything, or else we can only hardcode existing
9064  # directories.
9065  hardcode_action=unsupported
9066fi
9067echo "$as_me:$LINENO: result: $hardcode_action" >&5
9068echo "${ECHO_T}$hardcode_action" >&6
9069
9070if test "$hardcode_action" = relink; then
9071  # Fast installation is not supported
9072  enable_fast_install=no
9073elif test "$shlibpath_overrides_runpath" = yes ||
9074     test "$enable_shared" = no; then
9075  # Fast installation is not necessary
9076  enable_fast_install=needless
9077fi
9078
9079striplib=
9080old_striplib=
9081echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9082echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9083if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9084  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9085  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9086  echo "$as_me:$LINENO: result: yes" >&5
9087echo "${ECHO_T}yes" >&6
9088else
9089# FIXME - insert some real tests, host_os isn't really good enough
9090  case $host_os in
9091   darwin*)
9092       if test -n "$STRIP" ; then
9093         striplib="$STRIP -x"
9094         echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096       else
9097  echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099fi
9100       ;;
9101   *)
9102  echo "$as_me:$LINENO: result: no" >&5
9103echo "${ECHO_T}no" >&6
9104    ;;
9105  esac
9106fi
9107
9108if test "x$enable_dlopen" != xyes; then
9109  enable_dlopen=unknown
9110  enable_dlopen_self=unknown
9111  enable_dlopen_self_static=unknown
9112else
9113  lt_cv_dlopen=no
9114  lt_cv_dlopen_libs=
9115
9116  case $host_os in
9117  beos*)
9118    lt_cv_dlopen="load_add_on"
9119    lt_cv_dlopen_libs=
9120    lt_cv_dlopen_self=yes
9121    ;;
9122
9123  mingw* | pw32*)
9124    lt_cv_dlopen="LoadLibrary"
9125    lt_cv_dlopen_libs=
9126   ;;
9127
9128  cygwin*)
9129    lt_cv_dlopen="dlopen"
9130    lt_cv_dlopen_libs=
9131   ;;
9132
9133  darwin*)
9134  # if libdl is installed we need to link against it
9135    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9136echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9137if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9138  echo $ECHO_N "(cached) $ECHO_C" >&6
9139else
9140  ac_check_lib_save_LIBS=$LIBS
9141LIBS="-ldl  $LIBS"
9142cat >conftest.$ac_ext <<_ACEOF
9143/* confdefs.h.  */
9144_ACEOF
9145cat confdefs.h >>conftest.$ac_ext
9146cat >>conftest.$ac_ext <<_ACEOF
9147/* end confdefs.h.  */
9148
9149/* Override any gcc2 internal prototype to avoid an error.  */
9150#ifdef __cplusplus
9151extern "C"
9152#endif
9153/* We use char because int might match the return type of a gcc2
9154   builtin and then its argument prototype would still apply.  */
9155char dlopen ();
9156int
9157main ()
9158{
9159dlopen ();
9160  ;
9161  return 0;
9162}
9163_ACEOF
9164rm -f conftest.$ac_objext conftest$ac_exeext
9165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166  (eval $ac_link) 2>conftest.er1
9167  ac_status=$?
9168  grep -v '^ *+' conftest.er1 >conftest.err
9169  rm -f conftest.er1
9170  cat conftest.err >&5
9171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172  (exit $ac_status); } &&
9173         { ac_try='test -z "$ac_c_werror_flag"
9174                         || test ! -s conftest.err'
9175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176  (eval $ac_try) 2>&5
9177  ac_status=$?
9178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179  (exit $ac_status); }; } &&
9180         { ac_try='test -s conftest$ac_exeext'
9181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182  (eval $ac_try) 2>&5
9183  ac_status=$?
9184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185  (exit $ac_status); }; }; then
9186  ac_cv_lib_dl_dlopen=yes
9187else
9188  echo "$as_me: failed program was:" >&5
9189sed 's/^/| /' conftest.$ac_ext >&5
9190
9191ac_cv_lib_dl_dlopen=no
9192fi
9193rm -f conftest.err conftest.$ac_objext \
9194      conftest$ac_exeext conftest.$ac_ext
9195LIBS=$ac_check_lib_save_LIBS
9196fi
9197echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9198echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9199if test $ac_cv_lib_dl_dlopen = yes; then
9200  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9201else
9202
9203    lt_cv_dlopen="dyld"
9204    lt_cv_dlopen_libs=
9205    lt_cv_dlopen_self=yes
9206
9207fi
9208
9209   ;;
9210
9211  *)
9212    echo "$as_me:$LINENO: checking for shl_load" >&5
9213echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9214if test "${ac_cv_func_shl_load+set}" = set; then
9215  echo $ECHO_N "(cached) $ECHO_C" >&6
9216else
9217  cat >conftest.$ac_ext <<_ACEOF
9218/* confdefs.h.  */
9219_ACEOF
9220cat confdefs.h >>conftest.$ac_ext
9221cat >>conftest.$ac_ext <<_ACEOF
9222/* end confdefs.h.  */
9223/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9224   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9225#define shl_load innocuous_shl_load
9226
9227/* System header to define __stub macros and hopefully few prototypes,
9228    which can conflict with char shl_load (); below.
9229    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9230    <limits.h> exists even on freestanding compilers.  */
9231
9232#ifdef __STDC__
9233# include <limits.h>
9234#else
9235# include <assert.h>
9236#endif
9237
9238#undef shl_load
9239
9240/* Override any gcc2 internal prototype to avoid an error.  */
9241#ifdef __cplusplus
9242extern "C"
9243{
9244#endif
9245/* We use char because int might match the return type of a gcc2
9246   builtin and then its argument prototype would still apply.  */
9247char shl_load ();
9248/* The GNU C library defines this for functions which it implements
9249    to always fail with ENOSYS.  Some functions are actually named
9250    something starting with __ and the normal name is an alias.  */
9251#if defined (__stub_shl_load) || defined (__stub___shl_load)
9252choke me
9253#else
9254char (*f) () = shl_load;
9255#endif
9256#ifdef __cplusplus
9257}
9258#endif
9259
9260int
9261main ()
9262{
9263return f != shl_load;
9264  ;
9265  return 0;
9266}
9267_ACEOF
9268rm -f conftest.$ac_objext conftest$ac_exeext
9269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270  (eval $ac_link) 2>conftest.er1
9271  ac_status=$?
9272  grep -v '^ *+' conftest.er1 >conftest.err
9273  rm -f conftest.er1
9274  cat conftest.err >&5
9275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276  (exit $ac_status); } &&
9277         { ac_try='test -z "$ac_c_werror_flag"
9278                         || test ! -s conftest.err'
9279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280  (eval $ac_try) 2>&5
9281  ac_status=$?
9282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283  (exit $ac_status); }; } &&
9284         { ac_try='test -s conftest$ac_exeext'
9285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286  (eval $ac_try) 2>&5
9287  ac_status=$?
9288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289  (exit $ac_status); }; }; then
9290  ac_cv_func_shl_load=yes
9291else
9292  echo "$as_me: failed program was:" >&5
9293sed 's/^/| /' conftest.$ac_ext >&5
9294
9295ac_cv_func_shl_load=no
9296fi
9297rm -f conftest.err conftest.$ac_objext \
9298      conftest$ac_exeext conftest.$ac_ext
9299fi
9300echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9301echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9302if test $ac_cv_func_shl_load = yes; then
9303  lt_cv_dlopen="shl_load"
9304else
9305  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9306echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9307if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9308  echo $ECHO_N "(cached) $ECHO_C" >&6
9309else
9310  ac_check_lib_save_LIBS=$LIBS
9311LIBS="-ldld  $LIBS"
9312cat >conftest.$ac_ext <<_ACEOF
9313/* confdefs.h.  */
9314_ACEOF
9315cat confdefs.h >>conftest.$ac_ext
9316cat >>conftest.$ac_ext <<_ACEOF
9317/* end confdefs.h.  */
9318
9319/* Override any gcc2 internal prototype to avoid an error.  */
9320#ifdef __cplusplus
9321extern "C"
9322#endif
9323/* We use char because int might match the return type of a gcc2
9324   builtin and then its argument prototype would still apply.  */
9325char shl_load ();
9326int
9327main ()
9328{
9329shl_load ();
9330  ;
9331  return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext conftest$ac_exeext
9335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336  (eval $ac_link) 2>conftest.er1
9337  ac_status=$?
9338  grep -v '^ *+' conftest.er1 >conftest.err
9339  rm -f conftest.er1
9340  cat conftest.err >&5
9341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342  (exit $ac_status); } &&
9343         { ac_try='test -z "$ac_c_werror_flag"
9344                         || test ! -s conftest.err'
9345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346  (eval $ac_try) 2>&5
9347  ac_status=$?
9348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349  (exit $ac_status); }; } &&
9350         { ac_try='test -s conftest$ac_exeext'
9351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352  (eval $ac_try) 2>&5
9353  ac_status=$?
9354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355  (exit $ac_status); }; }; then
9356  ac_cv_lib_dld_shl_load=yes
9357else
9358  echo "$as_me: failed program was:" >&5
9359sed 's/^/| /' conftest.$ac_ext >&5
9360
9361ac_cv_lib_dld_shl_load=no
9362fi
9363rm -f conftest.err conftest.$ac_objext \
9364      conftest$ac_exeext conftest.$ac_ext
9365LIBS=$ac_check_lib_save_LIBS
9366fi
9367echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9368echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9369if test $ac_cv_lib_dld_shl_load = yes; then
9370  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9371else
9372  echo "$as_me:$LINENO: checking for dlopen" >&5
9373echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9374if test "${ac_cv_func_dlopen+set}" = set; then
9375  echo $ECHO_N "(cached) $ECHO_C" >&6
9376else
9377  cat >conftest.$ac_ext <<_ACEOF
9378/* confdefs.h.  */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h.  */
9383/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9384   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9385#define dlopen innocuous_dlopen
9386
9387/* System header to define __stub macros and hopefully few prototypes,
9388    which can conflict with char dlopen (); below.
9389    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9390    <limits.h> exists even on freestanding compilers.  */
9391
9392#ifdef __STDC__
9393# include <limits.h>
9394#else
9395# include <assert.h>
9396#endif
9397
9398#undef dlopen
9399
9400/* Override any gcc2 internal prototype to avoid an error.  */
9401#ifdef __cplusplus
9402extern "C"
9403{
9404#endif
9405/* We use char because int might match the return type of a gcc2
9406   builtin and then its argument prototype would still apply.  */
9407char dlopen ();
9408/* The GNU C library defines this for functions which it implements
9409    to always fail with ENOSYS.  Some functions are actually named
9410    something starting with __ and the normal name is an alias.  */
9411#if defined (__stub_dlopen) || defined (__stub___dlopen)
9412choke me
9413#else
9414char (*f) () = dlopen;
9415#endif
9416#ifdef __cplusplus
9417}
9418#endif
9419
9420int
9421main ()
9422{
9423return f != dlopen;
9424  ;
9425  return 0;
9426}
9427_ACEOF
9428rm -f conftest.$ac_objext conftest$ac_exeext
9429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9430  (eval $ac_link) 2>conftest.er1
9431  ac_status=$?
9432  grep -v '^ *+' conftest.er1 >conftest.err
9433  rm -f conftest.er1
9434  cat conftest.err >&5
9435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436  (exit $ac_status); } &&
9437         { ac_try='test -z "$ac_c_werror_flag"
9438                         || test ! -s conftest.err'
9439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440  (eval $ac_try) 2>&5
9441  ac_status=$?
9442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443  (exit $ac_status); }; } &&
9444         { ac_try='test -s conftest$ac_exeext'
9445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446  (eval $ac_try) 2>&5
9447  ac_status=$?
9448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449  (exit $ac_status); }; }; then
9450  ac_cv_func_dlopen=yes
9451else
9452  echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
9455ac_cv_func_dlopen=no
9456fi
9457rm -f conftest.err conftest.$ac_objext \
9458      conftest$ac_exeext conftest.$ac_ext
9459fi
9460echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9461echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9462if test $ac_cv_func_dlopen = yes; then
9463  lt_cv_dlopen="dlopen"
9464else
9465  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9466echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9467if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9468  echo $ECHO_N "(cached) $ECHO_C" >&6
9469else
9470  ac_check_lib_save_LIBS=$LIBS
9471LIBS="-ldl  $LIBS"
9472cat >conftest.$ac_ext <<_ACEOF
9473/* confdefs.h.  */
9474_ACEOF
9475cat confdefs.h >>conftest.$ac_ext
9476cat >>conftest.$ac_ext <<_ACEOF
9477/* end confdefs.h.  */
9478
9479/* Override any gcc2 internal prototype to avoid an error.  */
9480#ifdef __cplusplus
9481extern "C"
9482#endif
9483/* We use char because int might match the return type of a gcc2
9484   builtin and then its argument prototype would still apply.  */
9485char dlopen ();
9486int
9487main ()
9488{
9489dlopen ();
9490  ;
9491  return 0;
9492}
9493_ACEOF
9494rm -f conftest.$ac_objext conftest$ac_exeext
9495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9496  (eval $ac_link) 2>conftest.er1
9497  ac_status=$?
9498  grep -v '^ *+' conftest.er1 >conftest.err
9499  rm -f conftest.er1
9500  cat conftest.err >&5
9501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502  (exit $ac_status); } &&
9503         { ac_try='test -z "$ac_c_werror_flag"
9504                         || test ! -s conftest.err'
9505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506  (eval $ac_try) 2>&5
9507  ac_status=$?
9508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509  (exit $ac_status); }; } &&
9510         { ac_try='test -s conftest$ac_exeext'
9511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512  (eval $ac_try) 2>&5
9513  ac_status=$?
9514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515  (exit $ac_status); }; }; then
9516  ac_cv_lib_dl_dlopen=yes
9517else
9518  echo "$as_me: failed program was:" >&5
9519sed 's/^/| /' conftest.$ac_ext >&5
9520
9521ac_cv_lib_dl_dlopen=no
9522fi
9523rm -f conftest.err conftest.$ac_objext \
9524      conftest$ac_exeext conftest.$ac_ext
9525LIBS=$ac_check_lib_save_LIBS
9526fi
9527echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9528echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9529if test $ac_cv_lib_dl_dlopen = yes; then
9530  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9531else
9532  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9533echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9534if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9535  echo $ECHO_N "(cached) $ECHO_C" >&6
9536else
9537  ac_check_lib_save_LIBS=$LIBS
9538LIBS="-lsvld  $LIBS"
9539cat >conftest.$ac_ext <<_ACEOF
9540/* confdefs.h.  */
9541_ACEOF
9542cat confdefs.h >>conftest.$ac_ext
9543cat >>conftest.$ac_ext <<_ACEOF
9544/* end confdefs.h.  */
9545
9546/* Override any gcc2 internal prototype to avoid an error.  */
9547#ifdef __cplusplus
9548extern "C"
9549#endif
9550/* We use char because int might match the return type of a gcc2
9551   builtin and then its argument prototype would still apply.  */
9552char dlopen ();
9553int
9554main ()
9555{
9556dlopen ();
9557  ;
9558  return 0;
9559}
9560_ACEOF
9561rm -f conftest.$ac_objext conftest$ac_exeext
9562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563  (eval $ac_link) 2>conftest.er1
9564  ac_status=$?
9565  grep -v '^ *+' conftest.er1 >conftest.err
9566  rm -f conftest.er1
9567  cat conftest.err >&5
9568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569  (exit $ac_status); } &&
9570         { ac_try='test -z "$ac_c_werror_flag"
9571                         || test ! -s conftest.err'
9572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573  (eval $ac_try) 2>&5
9574  ac_status=$?
9575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576  (exit $ac_status); }; } &&
9577         { ac_try='test -s conftest$ac_exeext'
9578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579  (eval $ac_try) 2>&5
9580  ac_status=$?
9581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582  (exit $ac_status); }; }; then
9583  ac_cv_lib_svld_dlopen=yes
9584else
9585  echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
9588ac_cv_lib_svld_dlopen=no
9589fi
9590rm -f conftest.err conftest.$ac_objext \
9591      conftest$ac_exeext conftest.$ac_ext
9592LIBS=$ac_check_lib_save_LIBS
9593fi
9594echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9595echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9596if test $ac_cv_lib_svld_dlopen = yes; then
9597  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9598else
9599  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9600echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9601if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9602  echo $ECHO_N "(cached) $ECHO_C" >&6
9603else
9604  ac_check_lib_save_LIBS=$LIBS
9605LIBS="-ldld  $LIBS"
9606cat >conftest.$ac_ext <<_ACEOF
9607/* confdefs.h.  */
9608_ACEOF
9609cat confdefs.h >>conftest.$ac_ext
9610cat >>conftest.$ac_ext <<_ACEOF
9611/* end confdefs.h.  */
9612
9613/* Override any gcc2 internal prototype to avoid an error.  */
9614#ifdef __cplusplus
9615extern "C"
9616#endif
9617/* We use char because int might match the return type of a gcc2
9618   builtin and then its argument prototype would still apply.  */
9619char dld_link ();
9620int
9621main ()
9622{
9623dld_link ();
9624  ;
9625  return 0;
9626}
9627_ACEOF
9628rm -f conftest.$ac_objext conftest$ac_exeext
9629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630  (eval $ac_link) 2>conftest.er1
9631  ac_status=$?
9632  grep -v '^ *+' conftest.er1 >conftest.err
9633  rm -f conftest.er1
9634  cat conftest.err >&5
9635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636  (exit $ac_status); } &&
9637         { ac_try='test -z "$ac_c_werror_flag"
9638                         || test ! -s conftest.err'
9639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640  (eval $ac_try) 2>&5
9641  ac_status=$?
9642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643  (exit $ac_status); }; } &&
9644         { ac_try='test -s conftest$ac_exeext'
9645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646  (eval $ac_try) 2>&5
9647  ac_status=$?
9648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649  (exit $ac_status); }; }; then
9650  ac_cv_lib_dld_dld_link=yes
9651else
9652  echo "$as_me: failed program was:" >&5
9653sed 's/^/| /' conftest.$ac_ext >&5
9654
9655ac_cv_lib_dld_dld_link=no
9656fi
9657rm -f conftest.err conftest.$ac_objext \
9658      conftest$ac_exeext conftest.$ac_ext
9659LIBS=$ac_check_lib_save_LIBS
9660fi
9661echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9662echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9663if test $ac_cv_lib_dld_dld_link = yes; then
9664  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9665fi
9666
9667
9668fi
9669
9670
9671fi
9672
9673
9674fi
9675
9676
9677fi
9678
9679
9680fi
9681
9682    ;;
9683  esac
9684
9685  if test "x$lt_cv_dlopen" != xno; then
9686    enable_dlopen=yes
9687  else
9688    enable_dlopen=no
9689  fi
9690
9691  case $lt_cv_dlopen in
9692  dlopen)
9693    save_CPPFLAGS="$CPPFLAGS"
9694    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9695
9696    save_LDFLAGS="$LDFLAGS"
9697    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9698
9699    save_LIBS="$LIBS"
9700    LIBS="$lt_cv_dlopen_libs $LIBS"
9701
9702    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9703echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9704if test "${lt_cv_dlopen_self+set}" = set; then
9705  echo $ECHO_N "(cached) $ECHO_C" >&6
9706else
9707          if test "$cross_compiling" = yes; then :
9708  lt_cv_dlopen_self=cross
9709else
9710  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9711  lt_status=$lt_dlunknown
9712  cat > conftest.$ac_ext <<EOF
9713#line 9713 "configure"
9714#include "confdefs.h"
9715
9716#if HAVE_DLFCN_H
9717#include <dlfcn.h>
9718#endif
9719
9720#include <stdio.h>
9721
9722#ifdef RTLD_GLOBAL
9723#  define LT_DLGLOBAL           RTLD_GLOBAL
9724#else
9725#  ifdef DL_GLOBAL
9726#    define LT_DLGLOBAL         DL_GLOBAL
9727#  else
9728#    define LT_DLGLOBAL         0
9729#  endif
9730#endif
9731
9732/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9733   find out it does not work in some platform. */
9734#ifndef LT_DLLAZY_OR_NOW
9735#  ifdef RTLD_LAZY
9736#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9737#  else
9738#    ifdef DL_LAZY
9739#      define LT_DLLAZY_OR_NOW          DL_LAZY
9740#    else
9741#      ifdef RTLD_NOW
9742#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9743#      else
9744#        ifdef DL_NOW
9745#          define LT_DLLAZY_OR_NOW      DL_NOW
9746#        else
9747#          define LT_DLLAZY_OR_NOW      0
9748#        endif
9749#      endif
9750#    endif
9751#  endif
9752#endif
9753
9754#ifdef __cplusplus
9755extern "C" void exit (int);
9756#endif
9757
9758void fnord() { int i=42;}
9759int main ()
9760{
9761  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9762  int status = $lt_dlunknown;
9763
9764  if (self)
9765    {
9766      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9767      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9768      /* dlclose (self); */
9769    }
9770  else
9771    puts (dlerror ());
9772
9773    exit (status);
9774}
9775EOF
9776  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777  (eval $ac_link) 2>&5
9778  ac_status=$?
9779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9781    (./conftest; exit; ) >&5 2>/dev/null
9782    lt_status=$?
9783    case x$lt_status in
9784      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9785      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9786      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9787    esac
9788  else :
9789    # compilation failed
9790    lt_cv_dlopen_self=no
9791  fi
9792fi
9793rm -fr conftest*
9794
9795
9796fi
9797echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9798echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9799
9800    if test "x$lt_cv_dlopen_self" = xyes; then
9801      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9802      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9803echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9804if test "${lt_cv_dlopen_self_static+set}" = set; then
9805  echo $ECHO_N "(cached) $ECHO_C" >&6
9806else
9807          if test "$cross_compiling" = yes; then :
9808  lt_cv_dlopen_self_static=cross
9809else
9810  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9811  lt_status=$lt_dlunknown
9812  cat > conftest.$ac_ext <<EOF
9813#line 9813 "configure"
9814#include "confdefs.h"
9815
9816#if HAVE_DLFCN_H
9817#include <dlfcn.h>
9818#endif
9819
9820#include <stdio.h>
9821
9822#ifdef RTLD_GLOBAL
9823#  define LT_DLGLOBAL           RTLD_GLOBAL
9824#else
9825#  ifdef DL_GLOBAL
9826#    define LT_DLGLOBAL         DL_GLOBAL
9827#  else
9828#    define LT_DLGLOBAL         0
9829#  endif
9830#endif
9831
9832/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9833   find out it does not work in some platform. */
9834#ifndef LT_DLLAZY_OR_NOW
9835#  ifdef RTLD_LAZY
9836#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9837#  else
9838#    ifdef DL_LAZY
9839#      define LT_DLLAZY_OR_NOW          DL_LAZY
9840#    else
9841#      ifdef RTLD_NOW
9842#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9843#      else
9844#        ifdef DL_NOW
9845#          define LT_DLLAZY_OR_NOW      DL_NOW
9846#        else
9847#          define LT_DLLAZY_OR_NOW      0
9848#        endif
9849#      endif
9850#    endif
9851#  endif
9852#endif
9853
9854#ifdef __cplusplus
9855extern "C" void exit (int);
9856#endif
9857
9858void fnord() { int i=42;}
9859int main ()
9860{
9861  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9862  int status = $lt_dlunknown;
9863
9864  if (self)
9865    {
9866      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9867      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9868      /* dlclose (self); */
9869    }
9870  else
9871    puts (dlerror ());
9872
9873    exit (status);
9874}
9875EOF
9876  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877  (eval $ac_link) 2>&5
9878  ac_status=$?
9879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9881    (./conftest; exit; ) >&5 2>/dev/null
9882    lt_status=$?
9883    case x$lt_status in
9884      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9885      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9886      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9887    esac
9888  else :
9889    # compilation failed
9890    lt_cv_dlopen_self_static=no
9891  fi
9892fi
9893rm -fr conftest*
9894
9895
9896fi
9897echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9898echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9899    fi
9900
9901    CPPFLAGS="$save_CPPFLAGS"
9902    LDFLAGS="$save_LDFLAGS"
9903    LIBS="$save_LIBS"
9904    ;;
9905  esac
9906
9907  case $lt_cv_dlopen_self in
9908  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9909  *) enable_dlopen_self=unknown ;;
9910  esac
9911
9912  case $lt_cv_dlopen_self_static in
9913  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9914  *) enable_dlopen_self_static=unknown ;;
9915  esac
9916fi
9917
9918
9919# Report which library types will actually be built
9920echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9921echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9922echo "$as_me:$LINENO: result: $can_build_shared" >&5
9923echo "${ECHO_T}$can_build_shared" >&6
9924
9925echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9926echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9927test "$can_build_shared" = "no" && enable_shared=no
9928
9929# On AIX, shared libraries and static libraries use the same namespace, and
9930# are all built from PIC.
9931case $host_os in
9932aix3*)
9933  test "$enable_shared" = yes && enable_static=no
9934  if test -n "$RANLIB"; then
9935    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9936    postinstall_cmds='$RANLIB $lib'
9937  fi
9938  ;;
9939
9940aix4* | aix5*)
9941  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9942    test "$enable_shared" = yes && enable_static=no
9943  fi
9944    ;;
9945esac
9946echo "$as_me:$LINENO: result: $enable_shared" >&5
9947echo "${ECHO_T}$enable_shared" >&6
9948
9949echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9950echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9951# Make sure either enable_shared or enable_static is yes.
9952test "$enable_shared" = yes || enable_static=yes
9953echo "$as_me:$LINENO: result: $enable_static" >&5
9954echo "${ECHO_T}$enable_static" >&6
9955
9956# The else clause should only fire when bootstrapping the
9957# libtool distribution, otherwise you forgot to ship ltmain.sh
9958# with your package, and you will get complaints that there are
9959# no rules to generate ltmain.sh.
9960if test -f "$ltmain"; then
9961  # See if we are running on zsh, and set the options which allow our commands through
9962  # without removal of \ escapes.
9963  if test -n "${ZSH_VERSION+set}" ; then
9964    setopt NO_GLOB_SUBST
9965  fi
9966  # Now quote all the things that may contain metacharacters while being
9967  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9968  # variables and quote the copies for generation of the libtool script.
9969  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9970    SED SHELL STRIP \
9971    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9972    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9973    deplibs_check_method reload_flag reload_cmds need_locks \
9974    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9975    lt_cv_sys_global_symbol_to_c_name_address \
9976    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9977    old_postinstall_cmds old_postuninstall_cmds \
9978    compiler \
9979    CC \
9980    LD \
9981    lt_prog_compiler_wl \
9982    lt_prog_compiler_pic \
9983    lt_prog_compiler_static \
9984    lt_prog_compiler_no_builtin_flag \
9985    export_dynamic_flag_spec \
9986    thread_safe_flag_spec \
9987    whole_archive_flag_spec \
9988    enable_shared_with_static_runtimes \
9989    old_archive_cmds \
9990    old_archive_from_new_cmds \
9991    predep_objects \
9992    postdep_objects \
9993    predeps \
9994    postdeps \
9995    compiler_lib_search_path \
9996    archive_cmds \
9997    archive_expsym_cmds \
9998    postinstall_cmds \
9999    postuninstall_cmds \
10000    old_archive_from_expsyms_cmds \
10001    allow_undefined_flag \
10002    no_undefined_flag \
10003    export_symbols_cmds \
10004    hardcode_libdir_flag_spec \
10005    hardcode_libdir_flag_spec_ld \
10006    hardcode_libdir_separator \
10007    hardcode_automatic \
10008    module_cmds \
10009    module_expsym_cmds \
10010    lt_cv_prog_compiler_c_o \
10011    exclude_expsyms \
10012    include_expsyms; do
10013
10014    case $var in
10015    old_archive_cmds | \
10016    old_archive_from_new_cmds | \
10017    archive_cmds | \
10018    archive_expsym_cmds | \
10019    module_cmds | \
10020    module_expsym_cmds | \
10021    old_archive_from_expsyms_cmds | \
10022    export_symbols_cmds | \
10023    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10024    postinstall_cmds | postuninstall_cmds | \
10025    old_postinstall_cmds | old_postuninstall_cmds | \
10026    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10027      # Double-quote double-evaled strings.
10028      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10029      ;;
10030    *)
10031      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10032      ;;
10033    esac
10034  done
10035
10036  case $lt_echo in
10037  *'\$0 --fallback-echo"')
10038    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10039    ;;
10040  esac
10041
10042cfgfile="${ofile}T"
10043  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10044  $rm -f "$cfgfile"
10045  { echo "$as_me:$LINENO: creating $ofile" >&5
10046echo "$as_me: creating $ofile" >&6;}
10047
10048  cat <<__EOF__ >> "$cfgfile"
10049#! $SHELL
10050
10051# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10052# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10053# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10054#
10055# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10056# Free Software Foundation, Inc.
10057#
10058# This file is part of GNU Libtool:
10059# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10060#
10061# This program is free software; you can redistribute it and/or modify
10062# it under the terms of the GNU General Public License as published by
10063# the Free Software Foundation; either version 2 of the License, or
10064# (at your option) any later version.
10065#
10066# This program is distributed in the hope that it will be useful, but
10067# WITHOUT ANY WARRANTY; without even the implied warranty of
10068# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10069# General Public License for more details.
10070#
10071# You should have received a copy of the GNU General Public License
10072# along with this program; if not, write to the Free Software
10073# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10074#
10075# As a special exception to the GNU General Public License, if you
10076# distribute this file as part of a program that contains a
10077# configuration script generated by Autoconf, you may include it under
10078# the same distribution terms that you use for the rest of that program.
10079
10080# A sed program that does not truncate output.
10081SED=$lt_SED
10082
10083# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10084Xsed="$SED -e 1s/^X//"
10085
10086# The HP-UX ksh and POSIX shell print the target directory to stdout
10087# if CDPATH is set.
10088(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10089
10090# The names of the tagged configurations supported by this script.
10091available_tags=
10092
10093# ### BEGIN LIBTOOL CONFIG
10094
10095# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10096
10097# Shell to use when invoking shell scripts.
10098SHELL=$lt_SHELL
10099
10100# Whether or not to build shared libraries.
10101build_libtool_libs=$enable_shared
10102
10103# Whether or not to build static libraries.
10104build_old_libs=$enable_static
10105
10106# Whether or not to add -lc for building shared libraries.
10107build_libtool_need_lc=$archive_cmds_need_lc
10108
10109# Whether or not to disallow shared libs when runtime libs are static
10110allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10111
10112# Whether or not to optimize for fast installation.
10113fast_install=$enable_fast_install
10114
10115# The host system.
10116host_alias=$host_alias
10117host=$host
10118host_os=$host_os
10119
10120# The build system.
10121build_alias=$build_alias
10122build=$build
10123build_os=$build_os
10124
10125# An echo program that does not interpret backslashes.
10126echo=$lt_echo
10127
10128# The archiver.
10129AR=$lt_AR
10130AR_FLAGS=$lt_AR_FLAGS
10131
10132# A C compiler.
10133LTCC=$lt_LTCC
10134
10135# LTCC compiler flags.
10136LTCFLAGS=$lt_LTCFLAGS
10137
10138# A language-specific compiler.
10139CC=$lt_compiler
10140
10141# Is the compiler the GNU C compiler?
10142with_gcc=$GCC
10143
10144# An ERE matcher.
10145EGREP=$lt_EGREP
10146
10147# The linker used to build libraries.
10148LD=$lt_LD
10149
10150# Whether we need hard or soft links.
10151LN_S=$lt_LN_S
10152
10153# A BSD-compatible nm program.
10154NM=$lt_NM
10155
10156# A symbol stripping program
10157STRIP=$lt_STRIP
10158
10159# Used to examine libraries when file_magic_cmd begins "file"
10160MAGIC_CMD=$MAGIC_CMD
10161
10162# Used on cygwin: DLL creation program.
10163DLLTOOL="$DLLTOOL"
10164
10165# Used on cygwin: object dumper.
10166OBJDUMP="$OBJDUMP"
10167
10168# Used on cygwin: assembler.
10169AS="$AS"
10170
10171# The name of the directory that contains temporary libtool files.
10172objdir=$objdir
10173
10174# How to create reloadable object files.
10175reload_flag=$lt_reload_flag
10176reload_cmds=$lt_reload_cmds
10177
10178# How to pass a linker flag through the compiler.
10179wl=$lt_lt_prog_compiler_wl
10180
10181# Object file suffix (normally "o").
10182objext="$ac_objext"
10183
10184# Old archive suffix (normally "a").
10185libext="$libext"
10186
10187# Shared library suffix (normally ".so").
10188shrext_cmds='$shrext_cmds'
10189
10190# Executable file suffix (normally "").
10191exeext="$exeext"
10192
10193# Additional compiler flags for building library objects.
10194pic_flag=$lt_lt_prog_compiler_pic
10195pic_mode=$pic_mode
10196
10197# What is the maximum length of a command?
10198max_cmd_len=$lt_cv_sys_max_cmd_len
10199
10200# Does compiler simultaneously support -c and -o options?
10201compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10202
10203# Must we lock files when doing compilation?
10204need_locks=$lt_need_locks
10205
10206# Do we need the lib prefix for modules?
10207need_lib_prefix=$need_lib_prefix
10208
10209# Do we need a version for libraries?
10210need_version=$need_version
10211
10212# Whether dlopen is supported.
10213dlopen_support=$enable_dlopen
10214
10215# Whether dlopen of programs is supported.
10216dlopen_self=$enable_dlopen_self
10217
10218# Whether dlopen of statically linked programs is supported.
10219dlopen_self_static=$enable_dlopen_self_static
10220
10221# Compiler flag to prevent dynamic linking.
10222link_static_flag=$lt_lt_prog_compiler_static
10223
10224# Compiler flag to turn off builtin functions.
10225no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10226
10227# Compiler flag to allow reflexive dlopens.
10228export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10229
10230# Compiler flag to generate shared objects directly from archives.
10231whole_archive_flag_spec=$lt_whole_archive_flag_spec
10232
10233# Compiler flag to generate thread-safe objects.
10234thread_safe_flag_spec=$lt_thread_safe_flag_spec
10235
10236# Library versioning type.
10237version_type=$version_type
10238
10239# Format of library name prefix.
10240libname_spec=$lt_libname_spec
10241
10242# List of archive names.  First name is the real one, the rest are links.
10243# The last name is the one that the linker finds with -lNAME.
10244library_names_spec=$lt_library_names_spec
10245
10246# The coded name of the library, if different from the real name.
10247soname_spec=$lt_soname_spec
10248
10249# Commands used to build and install an old-style archive.
10250RANLIB=$lt_RANLIB
10251old_archive_cmds=$lt_old_archive_cmds
10252old_postinstall_cmds=$lt_old_postinstall_cmds
10253old_postuninstall_cmds=$lt_old_postuninstall_cmds
10254
10255# Create an old-style archive from a shared archive.
10256old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10257
10258# Create a temporary old-style archive to link instead of a shared archive.
10259old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10260
10261# Commands used to build and install a shared archive.
10262archive_cmds=$lt_archive_cmds
10263archive_expsym_cmds=$lt_archive_expsym_cmds
10264postinstall_cmds=$lt_postinstall_cmds
10265postuninstall_cmds=$lt_postuninstall_cmds
10266
10267# Commands used to build a loadable module (assumed same as above if empty)
10268module_cmds=$lt_module_cmds
10269module_expsym_cmds=$lt_module_expsym_cmds
10270
10271# Commands to strip libraries.
10272old_striplib=$lt_old_striplib
10273striplib=$lt_striplib
10274
10275# Dependencies to place before the objects being linked to create a
10276# shared library.
10277predep_objects=$lt_predep_objects
10278
10279# Dependencies to place after the objects being linked to create a
10280# shared library.
10281postdep_objects=$lt_postdep_objects
10282
10283# Dependencies to place before the objects being linked to create a
10284# shared library.
10285predeps=$lt_predeps
10286
10287# Dependencies to place after the objects being linked to create a
10288# shared library.
10289postdeps=$lt_postdeps
10290
10291# The library search path used internally by the compiler when linking
10292# a shared library.
10293compiler_lib_search_path=$lt_compiler_lib_search_path
10294
10295# Method to check whether dependent libraries are shared objects.
10296deplibs_check_method=$lt_deplibs_check_method
10297
10298# Command to use when deplibs_check_method == file_magic.
10299file_magic_cmd=$lt_file_magic_cmd
10300
10301# Flag that allows shared libraries with undefined symbols to be built.
10302allow_undefined_flag=$lt_allow_undefined_flag
10303
10304# Flag that forces no undefined symbols.
10305no_undefined_flag=$lt_no_undefined_flag
10306
10307# Commands used to finish a libtool library installation in a directory.
10308finish_cmds=$lt_finish_cmds
10309
10310# Same as above, but a single script fragment to be evaled but not shown.
10311finish_eval=$lt_finish_eval
10312
10313# Take the output of nm and produce a listing of raw symbols and C names.
10314global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10315
10316# Transform the output of nm in a proper C declaration
10317global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10318
10319# Transform the output of nm in a C name address pair
10320global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10321
10322# This is the shared library runtime path variable.
10323runpath_var=$runpath_var
10324
10325# This is the shared library path variable.
10326shlibpath_var=$shlibpath_var
10327
10328# Is shlibpath searched before the hard-coded library search path?
10329shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10330
10331# How to hardcode a shared library path into an executable.
10332hardcode_action=$hardcode_action
10333
10334# Whether we should hardcode library paths into libraries.
10335hardcode_into_libs=$hardcode_into_libs
10336
10337# Flag to hardcode \$libdir into a binary during linking.
10338# This must work even if \$libdir does not exist.
10339hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10340
10341# If ld is used when linking, flag to hardcode \$libdir into
10342# a binary during linking. This must work even if \$libdir does
10343# not exist.
10344hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10345
10346# Whether we need a single -rpath flag with a separated argument.
10347hardcode_libdir_separator=$lt_hardcode_libdir_separator
10348
10349# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10350# resulting binary.
10351hardcode_direct=$hardcode_direct
10352
10353# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10354# resulting binary.
10355hardcode_minus_L=$hardcode_minus_L
10356
10357# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10358# the resulting binary.
10359hardcode_shlibpath_var=$hardcode_shlibpath_var
10360
10361# Set to yes if building a shared library automatically hardcodes DIR into the library
10362# and all subsequent libraries and executables linked against it.
10363hardcode_automatic=$hardcode_automatic
10364
10365# Variables whose values should be saved in libtool wrapper scripts and
10366# restored at relink time.
10367variables_saved_for_relink="$variables_saved_for_relink"
10368
10369# Whether libtool must link a program against all its dependency libraries.
10370link_all_deplibs=$link_all_deplibs
10371
10372# Compile-time system search path for libraries
10373sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10374
10375# Run-time system search path for libraries
10376sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10377
10378# Fix the shell variable \$srcfile for the compiler.
10379fix_srcfile_path="$fix_srcfile_path"
10380
10381# Set to yes if exported symbols are required.
10382always_export_symbols=$always_export_symbols
10383
10384# The commands to list exported symbols.
10385export_symbols_cmds=$lt_export_symbols_cmds
10386
10387# The commands to extract the exported symbol list from a shared archive.
10388extract_expsyms_cmds=$lt_extract_expsyms_cmds
10389
10390# Symbols that should not be listed in the preloaded symbols.
10391exclude_expsyms=$lt_exclude_expsyms
10392
10393# Symbols that must always be exported.
10394include_expsyms=$lt_include_expsyms
10395
10396# ### END LIBTOOL CONFIG
10397
10398__EOF__
10399
10400
10401  case $host_os in
10402  aix3*)
10403    cat <<\EOF >> "$cfgfile"
10404
10405# AIX sometimes has problems with the GCC collect2 program.  For some
10406# reason, if we set the COLLECT_NAMES environment variable, the problems
10407# vanish in a puff of smoke.
10408if test "X${COLLECT_NAMES+set}" != Xset; then
10409  COLLECT_NAMES=
10410  export COLLECT_NAMES
10411fi
10412EOF
10413    ;;
10414  esac
10415
10416  # We use sed instead of cat because bash on DJGPP gets confused if
10417  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10418  # text mode, it properly converts lines to CR/LF.  This bash problem
10419  # is reportedly fixed, but why not run on old versions too?
10420  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10421
10422  mv -f "$cfgfile" "$ofile" || \
10423    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10424  chmod +x "$ofile"
10425
10426else
10427  # If there is no Makefile yet, we rely on a make rule to execute
10428  # `config.status --recheck' to rerun these tests and create the
10429  # libtool script then.
10430  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10431  if test -f "$ltmain_in"; then
10432    test -f Makefile && make "$ltmain"
10433  fi
10434fi
10435
10436
10437ac_ext=c
10438ac_cpp='$CPP $CPPFLAGS'
10439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10441ac_compiler_gnu=$ac_cv_c_compiler_gnu
10442
10443CC="$lt_save_CC"
10444
10445
10446# Check whether --with-tags or --without-tags was given.
10447if test "${with_tags+set}" = set; then
10448  withval="$with_tags"
10449  tagnames="$withval"
10450fi;
10451
10452if test -f "$ltmain" && test -n "$tagnames"; then
10453  if test ! -f "${ofile}"; then
10454    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10455echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10456  fi
10457
10458  if test -z "$LTCC"; then
10459    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10460    if test -z "$LTCC"; then
10461      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10462echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10463    else
10464      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10465echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10466    fi
10467  fi
10468  if test -z "$LTCFLAGS"; then
10469    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10470  fi
10471
10472  # Extract list of available tagged configurations in $ofile.
10473  # Note that this assumes the entire list is on one line.
10474  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10475
10476  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10477  for tagname in $tagnames; do
10478    IFS="$lt_save_ifs"
10479    # Check whether tagname contains only valid characters
10480    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10481    "") ;;
10482    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10483echo "$as_me: error: invalid tag name: $tagname" >&2;}
10484   { (exit 1); exit 1; }; }
10485        ;;
10486    esac
10487
10488    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10489    then
10490      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10491echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10492   { (exit 1); exit 1; }; }
10493    fi
10494
10495    # Update the list of available tags.
10496    if test -n "$tagname"; then
10497      echo appending configuration tag \"$tagname\" to $ofile
10498
10499      case $tagname in
10500      CXX)
10501        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10502            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10503            (test "X$CXX" != "Xg++"))) ; then
10504          ac_ext=cc
10505ac_cpp='$CXXCPP $CPPFLAGS'
10506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10509
10510
10511
10512
10513archive_cmds_need_lc_CXX=no
10514allow_undefined_flag_CXX=
10515always_export_symbols_CXX=no
10516archive_expsym_cmds_CXX=
10517export_dynamic_flag_spec_CXX=
10518hardcode_direct_CXX=no
10519hardcode_libdir_flag_spec_CXX=
10520hardcode_libdir_flag_spec_ld_CXX=
10521hardcode_libdir_separator_CXX=
10522hardcode_minus_L_CXX=no
10523hardcode_shlibpath_var_CXX=unsupported
10524hardcode_automatic_CXX=no
10525module_cmds_CXX=
10526module_expsym_cmds_CXX=
10527link_all_deplibs_CXX=unknown
10528old_archive_cmds_CXX=$old_archive_cmds
10529no_undefined_flag_CXX=
10530whole_archive_flag_spec_CXX=
10531enable_shared_with_static_runtimes_CXX=no
10532
10533# Dependencies to place before and after the object being linked:
10534predep_objects_CXX=
10535postdep_objects_CXX=
10536predeps_CXX=
10537postdeps_CXX=
10538compiler_lib_search_path_CXX=
10539
10540# Source file extension for C++ test sources.
10541ac_ext=cpp
10542
10543# Object file extension for compiled C++ test sources.
10544objext=o
10545objext_CXX=$objext
10546
10547# Code to be used in simple compile tests
10548lt_simple_compile_test_code="int some_variable = 0;\n"
10549
10550# Code to be used in simple link tests
10551lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10552
10553# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10554
10555# If no C compiler was specified, use CC.
10556LTCC=${LTCC-"$CC"}
10557
10558# If no C compiler flags were specified, use CFLAGS.
10559LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10560
10561# Allow CC to be a program name with arguments.
10562compiler=$CC
10563
10564
10565# save warnings/boilerplate of simple test code
10566ac_outfile=conftest.$ac_objext
10567printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10568eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10569_lt_compiler_boilerplate=`cat conftest.err`
10570$rm conftest*
10571
10572ac_outfile=conftest.$ac_objext
10573printf "$lt_simple_link_test_code" >conftest.$ac_ext
10574eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10575_lt_linker_boilerplate=`cat conftest.err`
10576$rm conftest*
10577
10578
10579# Allow CC to be a program name with arguments.
10580lt_save_CC=$CC
10581lt_save_LD=$LD
10582lt_save_GCC=$GCC
10583GCC=$GXX
10584lt_save_with_gnu_ld=$with_gnu_ld
10585lt_save_path_LD=$lt_cv_path_LD
10586if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10587  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10588else
10589  $as_unset lt_cv_prog_gnu_ld
10590fi
10591if test -n "${lt_cv_path_LDCXX+set}"; then
10592  lt_cv_path_LD=$lt_cv_path_LDCXX
10593else
10594  $as_unset lt_cv_path_LD
10595fi
10596test -z "${LDCXX+set}" || LD=$LDCXX
10597CC=${CXX-"c++"}
10598compiler=$CC
10599compiler_CXX=$CC
10600for cc_temp in $compiler""; do
10601  case $cc_temp in
10602    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10603    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10604    \-*) ;;
10605    *) break;;
10606  esac
10607done
10608cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10609
10610
10611# We don't want -fno-exception wen compiling C++ code, so set the
10612# no_builtin_flag separately
10613if test "$GXX" = yes; then
10614  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10615else
10616  lt_prog_compiler_no_builtin_flag_CXX=
10617fi
10618
10619if test "$GXX" = yes; then
10620  # Set up default GNU C++ configuration
10621
10622
10623# Check whether --with-gnu-ld or --without-gnu-ld was given.
10624if test "${with_gnu_ld+set}" = set; then
10625  withval="$with_gnu_ld"
10626  test "$withval" = no || with_gnu_ld=yes
10627else
10628  with_gnu_ld=no
10629fi;
10630ac_prog=ld
10631if test "$GCC" = yes; then
10632  # Check if gcc -print-prog-name=ld gives a path.
10633  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10634echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10635  case $host in
10636  *-*-mingw*)
10637    # gcc leaves a trailing carriage return which upsets mingw
10638    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10639  *)
10640    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10641  esac
10642  case $ac_prog in
10643    # Accept absolute paths.
10644    [\\/]* | ?:[\\/]*)
10645      re_direlt='/[^/][^/]*/\.\./'
10646      # Canonicalize the pathname of ld
10647      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10648      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10649        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10650      done
10651      test -z "$LD" && LD="$ac_prog"
10652      ;;
10653  "")
10654    # If it fails, then pretend we aren't using GCC.
10655    ac_prog=ld
10656    ;;
10657  *)
10658    # If it is relative, then search for the first ld in PATH.
10659    with_gnu_ld=unknown
10660    ;;
10661  esac
10662elif test "$with_gnu_ld" = yes; then
10663  echo "$as_me:$LINENO: checking for GNU ld" >&5
10664echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10665else
10666  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10667echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10668fi
10669if test "${lt_cv_path_LD+set}" = set; then
10670  echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672  if test -z "$LD"; then
10673  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10674  for ac_dir in $PATH; do
10675    IFS="$lt_save_ifs"
10676    test -z "$ac_dir" && ac_dir=.
10677    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10678      lt_cv_path_LD="$ac_dir/$ac_prog"
10679      # Check to see if the program is GNU ld.  I'd rather use --version,
10680      # but apparently some variants of GNU ld only accept -v.
10681      # Break only if it was the GNU/non-GNU ld that we prefer.
10682      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10683      *GNU* | *'with BFD'*)
10684        test "$with_gnu_ld" != no && break
10685        ;;
10686      *)
10687        test "$with_gnu_ld" != yes && break
10688        ;;
10689      esac
10690    fi
10691  done
10692  IFS="$lt_save_ifs"
10693else
10694  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10695fi
10696fi
10697
10698LD="$lt_cv_path_LD"
10699if test -n "$LD"; then
10700  echo "$as_me:$LINENO: result: $LD" >&5
10701echo "${ECHO_T}$LD" >&6
10702else
10703  echo "$as_me:$LINENO: result: no" >&5
10704echo "${ECHO_T}no" >&6
10705fi
10706test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10707echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10708   { (exit 1); exit 1; }; }
10709echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10710echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10711if test "${lt_cv_prog_gnu_ld+set}" = set; then
10712  echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10715case `$LD -v 2>&1 </dev/null` in
10716*GNU* | *'with BFD'*)
10717  lt_cv_prog_gnu_ld=yes
10718  ;;
10719*)
10720  lt_cv_prog_gnu_ld=no
10721  ;;
10722esac
10723fi
10724echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10725echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10726with_gnu_ld=$lt_cv_prog_gnu_ld
10727
10728
10729
10730  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10731  # archiving commands below assume that GNU ld is being used.
10732  if test "$with_gnu_ld" = yes; then
10733    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10734    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'
10735
10736    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10737    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10738
10739    # If archive_cmds runs LD, not CC, wlarc should be empty
10740    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10741    #     investigate it a little bit more. (MM)
10742    wlarc='${wl}'
10743
10744    # ancient GNU ld didn't support --whole-archive et. al.
10745    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10746        grep 'no-whole-archive' > /dev/null; then
10747      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10748    else
10749      whole_archive_flag_spec_CXX=
10750    fi
10751  else
10752    with_gnu_ld=no
10753    wlarc=
10754
10755    # A generic and very simple default shared library creation
10756    # command for GNU C++ for the case where it uses the native
10757    # linker, instead of GNU ld.  If possible, this setting should
10758    # overridden to take advantage of the native linker features on
10759    # the platform it is being used on.
10760    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10761  fi
10762
10763  # Commands to make compiler produce verbose output that lists
10764  # what "hidden" libraries, object files and flags are used when
10765  # linking a shared library.
10766  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10767
10768else
10769  GXX=no
10770  with_gnu_ld=no
10771  wlarc=
10772fi
10773
10774# PORTME: fill in a description of your system's C++ link characteristics
10775echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10776echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10777ld_shlibs_CXX=yes
10778case $host_os in
10779  aix3*)
10780    # FIXME: insert proper C++ library support
10781    ld_shlibs_CXX=no
10782    ;;
10783  aix4* | aix5*)
10784    if test "$host_cpu" = ia64; then
10785      # On IA64, the linker does run time linking by default, so we don't
10786      # have to do anything special.
10787      aix_use_runtimelinking=no
10788      exp_sym_flag='-Bexport'
10789      no_entry_flag=""
10790    else
10791      aix_use_runtimelinking=no
10792
10793      # Test if we are trying to use run time linking or normal
10794      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10795      # need to do runtime linking.
10796      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10797        for ld_flag in $LDFLAGS; do
10798          case $ld_flag in
10799          *-brtl*)
10800            aix_use_runtimelinking=yes
10801            break
10802            ;;
10803          esac
10804        done
10805        ;;
10806      esac
10807
10808      exp_sym_flag='-bexport'
10809      no_entry_flag='-bnoentry'
10810    fi
10811
10812    # When large executables or shared objects are built, AIX ld can
10813    # have problems creating the table of contents.  If linking a library
10814    # or program results in "error TOC overflow" add -mminimal-toc to
10815    # CXXFLAGS/CFLAGS for g++/gcc.