source: trunk/Clp/configure @ 1684

Last change on this file since 1684 was 1684, checked in by stefan, 9 years ago

rerun autotools to get fix for msys

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