source: ThirdParty/HSL/trunk/configure @ 952

Last change on this file since 952 was 952, checked in by andreasw, 12 years ago

added configure auxilliary stripts to that ThirdParty?/HSL can be run stand-alone

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