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

Last change on this file since 1122 was 1122, checked in by stefan, 12 years ago

synchronize stable/1.1 with trunk rev 1121

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