source: ThirdParty/HSL/trunk/configure @ 1411

Last change on this file since 1411 was 1411, checked in by stefan, 11 years ago

revert my recent changes related to BSPsplit after copying them into branches

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