source: ThirdParty/HSL/stable/1.1/configure @ 1334

Last change on this file since 1334 was 1334, checked in by andreasw, 11 years ago

synchronizing stable of ThirdParty?/HSL with current trunk; reran autotools

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